From 95a066cc692fefd0cf16b40b04db4f1b78d262f3 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Wed, 31 Aug 2005 12:57:06 +0000 Subject: [PATCH] Add --enable-ld-version-script. --- configure.in | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/configure.in b/configure.in index e55d1cd..dfe34a0 100644 --- a/configure.in +++ b/configure.in @@ -79,6 +79,25 @@ AC_CHECK_SIZEOF(unsigned int, 4) AC_CHECK_SIZEOF(unsigned short int, 2) AC_CHECK_SIZEOF(unsigned char, 1) +# For some systems we know that we have ld_version scripts. +# Use it then as default. +have_ld_version_script=no +case "${host}" in + *-*-linux*) + have_ld_version_script=yes + ;; + *-*-gnu*) + have_ld_version_script=yes + ;; +esac +AC_ARG_ENABLE([ld-version-script], + AC_HELP_STRING([--enable-ld-version-script], + [enable/disable use of linker version script. + (default is system dependent)]), + [have_ld_version_script=$enableval], + [ : ] ) +AM_CONDITIONAL(HAVE_LD_VERSION_SCRIPT, test "$have_ld_version_script" = "yes") + gl_SOURCE_BASE(gl) gl_M4_BASE(gl/m4) gl_MODULES(memmove) -- 2.11.4.GIT