aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO2
-rw-r--r--configure.ac8
-rw-r--r--libltdl/Makefile.in14
-rw-r--r--libltdl/aclocal.m41662
-rwxr-xr-xlibltdl/config.guess581
-rwxr-xr-xlibltdl/config.sub115
-rwxr-xr-xlibltdl/configure13160
-rw-r--r--libltdl/ltmain.sh1255
-rw-r--r--ltmain.sh1255
-rw-r--r--mkinstalldirs69
-rw-r--r--src/core/main.c2
-rw-r--r--src/plugins/fs/search.c13
12 files changed, 10174 insertions, 7962 deletions
diff --git a/TODO b/TODO
index 2785d158..0110db78 100644
--- a/TODO
+++ b/TODO
@@ -1,4 +1,6 @@
10.7.1: 10.7.1:
2- support abort of search (without killing it)
3- support new FSUI apis
2- create directory from known file IDs [ medium ] 4- create directory from known file IDs [ medium ]
3 in Assemble Directory's Files Available/Selected 5 in Assemble Directory's Files Available/Selected
4 + have sortability 6 + have sortability
diff --git a/configure.ac b/configure.ac
index a4892020..fa720a9c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -163,14 +163,14 @@ AC_ARG_WITH(gnunet,
163 ;; 163 ;;
164 yes) 164 yes)
165 AC_CHECK_HEADERS(GNUnet/gnunet_util.h, 165 AC_CHECK_HEADERS(GNUnet/gnunet_util.h,
166 AC_CHECK_LIB([gnunetutil], [initUtil], 166 AC_CHECK_LIB([gnunetutil], [GC_free],
167 gnunet=1)) 167 gnunet=1))
168 ;; 168 ;;
169 *) 169 *)
170 LDFLAGS="-L$with_gnunet/lib $LDFLAGS" 170 LDFLAGS="-L$with_gnunet/lib $LDFLAGS"
171 CPPFLAGS="-I$with_gnunet/include $CPPFLAGS" 171 CPPFLAGS="-I$with_gnunet/include $CPPFLAGS"
172 AC_CHECK_HEADERS(GNUnet/gnunet_util.h, 172 AC_CHECK_HEADERS(GNUnet/gnunet_util.h,
173 AC_CHECK_LIB([gnunetutil], [initUtil], 173 AC_CHECK_LIB([gnunetutil], [GC_free],
174 EXT_LIB_PATH="-L$with_gnunet/lib $EXT_LIB_PATH" 174 EXT_LIB_PATH="-L$with_gnunet/lib $EXT_LIB_PATH"
175 gnunet=1)) 175 gnunet=1))
176 ;; 176 ;;
@@ -178,7 +178,7 @@ AC_ARG_WITH(gnunet,
178 ], 178 ],
179 [AC_MSG_RESULT([--with-gnunet not specified]) 179 [AC_MSG_RESULT([--with-gnunet not specified])
180 AC_CHECK_HEADERS(gnunet_util.h, 180 AC_CHECK_HEADERS(gnunet_util.h,
181 AC_CHECK_LIB([GNUnet/gnunet_util.h], [initUtil], 181 AC_CHECK_LIB([GNUnet/gnunet_util.h], [GC_free],
182 gnunet=1))]) 182 gnunet=1))])
183 183
184# if GNUnet was not found, try in /usr/local 184# if GNUnet was not found, try in /usr/local
@@ -189,7 +189,7 @@ with_gnunet=/usr/local
189 LDFLAGS="-L$with_gnunet/lib $LDFLAGS" 189 LDFLAGS="-L$with_gnunet/lib $LDFLAGS"
190 CPPFLAGS="-I$with_gnunet/include $CPPFLAGS" 190 CPPFLAGS="-I$with_gnunet/include $CPPFLAGS"
191 AC_CHECK_HEADERS(GNUnet/gnunet_util.h, 191 AC_CHECK_HEADERS(GNUnet/gnunet_util.h,
192 AC_CHECK_LIB([gnunetutil], [initUtil], 192 AC_CHECK_LIB([gnunetutil], [GC_core],
193 EXT_LIB_PATH="-L$with_gnunet/lib $EXT_LIB_PATH" 193 EXT_LIB_PATH="-L$with_gnunet/lib $EXT_LIB_PATH"
194 gnunet=1)) 194 gnunet=1))
195fi 195fi
diff --git a/libltdl/Makefile.in b/libltdl/Makefile.in
index f00684f6..228b7ce8 100644
--- a/libltdl/Makefile.in
+++ b/libltdl/Makefile.in
@@ -126,6 +126,7 @@ EGREP = @EGREP@
126EXEEXT = @EXEEXT@ 126EXEEXT = @EXEEXT@
127F77 = @F77@ 127F77 = @F77@
128FFLAGS = @FFLAGS@ 128FFLAGS = @FFLAGS@
129GREP = @GREP@
129INSTALL_DATA = @INSTALL_DATA@ 130INSTALL_DATA = @INSTALL_DATA@
130INSTALL_LTDL_FALSE = @INSTALL_LTDL_FALSE@ 131INSTALL_LTDL_FALSE = @INSTALL_LTDL_FALSE@
131INSTALL_LTDL_TRUE = @INSTALL_LTDL_TRUE@ 132INSTALL_LTDL_TRUE = @INSTALL_LTDL_TRUE@
@@ -158,15 +159,9 @@ SET_MAKE = @SET_MAKE@
158SHELL = @SHELL@ 159SHELL = @SHELL@
159STRIP = @STRIP@ 160STRIP = @STRIP@
160VERSION = @VERSION@ 161VERSION = @VERSION@
161ac_ct_AR = @ac_ct_AR@
162ac_ct_AS = @ac_ct_AS@
163ac_ct_CC = @ac_ct_CC@ 162ac_ct_CC = @ac_ct_CC@
164ac_ct_CXX = @ac_ct_CXX@ 163ac_ct_CXX = @ac_ct_CXX@
165ac_ct_DLLTOOL = @ac_ct_DLLTOOL@
166ac_ct_F77 = @ac_ct_F77@ 164ac_ct_F77 = @ac_ct_F77@
167ac_ct_OBJDUMP = @ac_ct_OBJDUMP@
168ac_ct_RANLIB = @ac_ct_RANLIB@
169ac_ct_STRIP = @ac_ct_STRIP@
170am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ 165am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
171am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ 166am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
172am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ 167am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
@@ -181,23 +176,30 @@ build_cpu = @build_cpu@
181build_os = @build_os@ 176build_os = @build_os@
182build_vendor = @build_vendor@ 177build_vendor = @build_vendor@
183datadir = @datadir@ 178datadir = @datadir@
179datarootdir = @datarootdir@
180docdir = @docdir@
181dvidir = @dvidir@
184exec_prefix = @exec_prefix@ 182exec_prefix = @exec_prefix@
185host = @host@ 183host = @host@
186host_alias = @host_alias@ 184host_alias = @host_alias@
187host_cpu = @host_cpu@ 185host_cpu = @host_cpu@
188host_os = @host_os@ 186host_os = @host_os@
189host_vendor = @host_vendor@ 187host_vendor = @host_vendor@
188htmldir = @htmldir@
190includedir = @includedir@ 189includedir = @includedir@
191infodir = @infodir@ 190infodir = @infodir@
192install_sh = @install_sh@ 191install_sh = @install_sh@
193libdir = @libdir@ 192libdir = @libdir@
194libexecdir = @libexecdir@ 193libexecdir = @libexecdir@
194localedir = @localedir@
195localstatedir = @localstatedir@ 195localstatedir = @localstatedir@
196mandir = @mandir@ 196mandir = @mandir@
197mkdir_p = @mkdir_p@ 197mkdir_p = @mkdir_p@
198oldincludedir = @oldincludedir@ 198oldincludedir = @oldincludedir@
199pdfdir = @pdfdir@
199prefix = @prefix@ 200prefix = @prefix@
200program_transform_name = @program_transform_name@ 201program_transform_name = @program_transform_name@
202psdir = @psdir@
201sbindir = @sbindir@ 203sbindir = @sbindir@
202sharedstatedir = @sharedstatedir@ 204sharedstatedir = @sharedstatedir@
203sysconfdir = @sysconfdir@ 205sysconfdir = @sysconfdir@
diff --git a/libltdl/aclocal.m4 b/libltdl/aclocal.m4
index f83c9b74..4f3077ba 100644
--- a/libltdl/aclocal.m4
+++ b/libltdl/aclocal.m4
@@ -13,8 +13,7 @@
13 13
14# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 14# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
15 15
16# serial 47 AC_PROG_LIBTOOL 16# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
17# Debian $Rev: 214 $
18 17
19 18
20# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 19# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
@@ -124,7 +123,7 @@ esac
124 123
125# Sed substitution that helps us do robust quoting. It backslashifies 124# Sed substitution that helps us do robust quoting. It backslashifies
126# metacharacters that are still active within double-quoted strings. 125# metacharacters that are still active within double-quoted strings.
127Xsed='sed -e s/^X//' 126Xsed='sed -e 1s/^X//'
128[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] 127[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
129 128
130# Same as above, but do not quote variable references. 129# Same as above, but do not quote variable references.
@@ -144,7 +143,7 @@ rm="rm -f"
144default_ofile=libtool 143default_ofile=libtool
145can_build_shared=yes 144can_build_shared=yes
146 145
147# All known linkers require a `.a' archive for static linking (except M$VC, 146# All known linkers require a `.a' archive for static linking (except MSVC,
148# which needs '.lib'). 147# which needs '.lib').
149libext=a 148libext=a
150ltmain="$ac_aux_dir/ltmain.sh" 149ltmain="$ac_aux_dir/ltmain.sh"
@@ -164,6 +163,7 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
164test -z "$AS" && AS=as 163test -z "$AS" && AS=as
165test -z "$CC" && CC=cc 164test -z "$CC" && CC=cc
166test -z "$LTCC" && LTCC=$CC 165test -z "$LTCC" && LTCC=$CC
166test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
167test -z "$DLLTOOL" && DLLTOOL=dlltool 167test -z "$DLLTOOL" && DLLTOOL=dlltool
168test -z "$LD" && LD=ld 168test -z "$LD" && LD=ld
169test -z "$LN_S" && LN_S="ln -s" 169test -z "$LN_S" && LN_S="ln -s"
@@ -183,15 +183,17 @@ old_postuninstall_cmds=
183if test -n "$RANLIB"; then 183if test -n "$RANLIB"; then
184 case $host_os in 184 case $host_os in
185 openbsd*) 185 openbsd*)
186 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 186 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
187 ;; 187 ;;
188 *) 188 *)
189 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 189 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
190 ;; 190 ;;
191 esac 191 esac
192 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 192 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
193fi 193fi
194 194
195_LT_CC_BASENAME([$compiler])
196
195# Only perform the check for file, if the check method requires it 197# Only perform the check for file, if the check method requires it
196case $deplibs_check_method in 198case $deplibs_check_method in
197file_magic*) 199file_magic*)
@@ -232,11 +234,56 @@ AC_DEFUN([_LT_AC_SYS_COMPILER],
232# If no C compiler was specified, use CC. 234# If no C compiler was specified, use CC.
233LTCC=${LTCC-"$CC"} 235LTCC=${LTCC-"$CC"}
234 236
237# If no C compiler flags were specified, use CFLAGS.
238LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
239
235# Allow CC to be a program name with arguments. 240# Allow CC to be a program name with arguments.
236compiler=$CC 241compiler=$CC
237])# _LT_AC_SYS_COMPILER 242])# _LT_AC_SYS_COMPILER
238 243
239 244
245# _LT_CC_BASENAME(CC)
246# -------------------
247# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
248AC_DEFUN([_LT_CC_BASENAME],
249[for cc_temp in $1""; do
250 case $cc_temp in
251 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
252 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
253 \-*) ;;
254 *) break;;
255 esac
256done
257cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
258])
259
260
261# _LT_COMPILER_BOILERPLATE
262# ------------------------
263# Check for compiler boilerplate output or warnings with
264# the simple compiler test code.
265AC_DEFUN([_LT_COMPILER_BOILERPLATE],
266[ac_outfile=conftest.$ac_objext
267printf "$lt_simple_compile_test_code" >conftest.$ac_ext
268eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
269_lt_compiler_boilerplate=`cat conftest.err`
270$rm conftest*
271])# _LT_COMPILER_BOILERPLATE
272
273
274# _LT_LINKER_BOILERPLATE
275# ----------------------
276# Check for linker boilerplate output or warnings with
277# the simple link test code.
278AC_DEFUN([_LT_LINKER_BOILERPLATE],
279[ac_outfile=conftest.$ac_objext
280printf "$lt_simple_link_test_code" >conftest.$ac_ext
281eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
282_lt_linker_boilerplate=`cat conftest.err`
283$rm conftest*
284])# _LT_LINKER_BOILERPLATE
285
286
240# _LT_AC_SYS_LIBPATH_AIX 287# _LT_AC_SYS_LIBPATH_AIX
241# ---------------------- 288# ----------------------
242# Links a minimal program and checks the executable 289# Links a minimal program and checks the executable
@@ -309,15 +356,15 @@ fi
309 356
310# The HP-UX ksh and POSIX shell print the target directory to stdout 357# The HP-UX ksh and POSIX shell print the target directory to stdout
311# if CDPATH is set. 358# if CDPATH is set.
312if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 359(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
313 360
314if test -z "$ECHO"; then 361if test -z "$ECHO"; then
315if test "X${echo_test_string+set}" != Xset; then 362if test "X${echo_test_string+set}" != Xset; then
316# find a string as large as possible, as long as the shell can cope with it 363# find a string as large as possible, as long as the shell can cope with it
317 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 364 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
318 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 365 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
319 if (echo_test_string="`eval $cmd`") 2>/dev/null && 366 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
320 echo_test_string="`eval $cmd`" && 367 echo_test_string=`eval $cmd` &&
321 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 368 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
322 then 369 then
323 break 370 break
@@ -486,7 +533,7 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
486 # Find out which ABI we are using. 533 # Find out which ABI we are using.
487 echo 'int i;' > conftest.$ac_ext 534 echo 'int i;' > conftest.$ac_ext
488 if AC_TRY_EVAL(ac_compile); then 535 if AC_TRY_EVAL(ac_compile); then
489 case "`/usr/bin/file conftest.o`" in 536 case `/usr/bin/file conftest.o` in
490 *32-bit*) 537 *32-bit*)
491 case $host in 538 case $host in
492 x86_64-*linux*) 539 x86_64-*linux*)
@@ -537,6 +584,22 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
537 CFLAGS="$SAVE_CFLAGS" 584 CFLAGS="$SAVE_CFLAGS"
538 fi 585 fi
539 ;; 586 ;;
587sparc*-*solaris*)
588 # Find out which ABI we are using.
589 echo 'int i;' > conftest.$ac_ext
590 if AC_TRY_EVAL(ac_compile); then
591 case `/usr/bin/file conftest.o` in
592 *64-bit*)
593 case $lt_cv_prog_gnu_ld in
594 yes*) LD="${LD-ld} -m elf64_sparc" ;;
595 *) LD="${LD-ld} -64" ;;
596 esac
597 ;;
598 esac
599 fi
600 rm -rf conftest*
601 ;;
602
540AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 603AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
541[*-*-cygwin* | *-*-mingw* | *-*-pw32*) 604[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
542 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 605 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
@@ -568,7 +631,7 @@ AC_CACHE_CHECK([$1], [$2],
568 # with a dollar sign (not a hyphen), so the echo should work correctly. 631 # with a dollar sign (not a hyphen), so the echo should work correctly.
569 # The option is referenced via a variable to avoid confusing sed. 632 # The option is referenced via a variable to avoid confusing sed.
570 lt_compile=`echo "$ac_compile" | $SED \ 633 lt_compile=`echo "$ac_compile" | $SED \
571 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 634 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
572 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 635 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
573 -e 's:$: $lt_compiler_flag:'` 636 -e 's:$: $lt_compiler_flag:'`
574 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 637 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
@@ -578,8 +641,10 @@ AC_CACHE_CHECK([$1], [$2],
578 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 641 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
579 if (exit $ac_status) && test -s "$ac_outfile"; then 642 if (exit $ac_status) && test -s "$ac_outfile"; then
580 # The compiler can only warn and ignore the option if not recognized 643 # The compiler can only warn and ignore the option if not recognized
581 # So say no if there are warnings 644 # So say no if there are warnings other than the usual output.
582 if test ! -s conftest.err; then 645 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
646 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
647 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
583 $2=yes 648 $2=yes
584 fi 649 fi
585 fi 650 fi
@@ -605,11 +670,16 @@ AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
605 LDFLAGS="$LDFLAGS $3" 670 LDFLAGS="$LDFLAGS $3"
606 printf "$lt_simple_link_test_code" > conftest.$ac_ext 671 printf "$lt_simple_link_test_code" > conftest.$ac_ext
607 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 672 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
608 # The compiler can only warn and ignore the option if not recognized 673 # The linker can only warn and ignore the option if not recognized
609 # So say no if there are warnings 674 # So say no if there are warnings
610 if test -s conftest.err; then 675 if test -s conftest.err; then
611 # Append any errors to the config.log. 676 # Append any errors to the config.log.
612 cat conftest.err 1>&AS_MESSAGE_LOG_FD 677 cat conftest.err 1>&AS_MESSAGE_LOG_FD
678 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
679 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
680 if diff conftest.exp conftest.er2 >/dev/null; then
681 $2=yes
682 fi
613 else 683 else
614 $2=yes 684 $2=yes
615 fi 685 fi
@@ -668,11 +738,55 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
668 lt_cv_sys_max_cmd_len=8192; 738 lt_cv_sys_max_cmd_len=8192;
669 ;; 739 ;;
670 740
671 *) 741 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
742 # This has been around since 386BSD, at least. Likely further.
743 if test -x /sbin/sysctl; then
744 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
745 elif test -x /usr/sbin/sysctl; then
746 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
747 else
748 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
749 fi
750 # And add a safety zone
751 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
752 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
753 ;;
754
755 interix*)
756 # We know the value 262144 and hardcode it with a safety zone (like BSD)
757 lt_cv_sys_max_cmd_len=196608
758 ;;
759
760 osf*)
761 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
762 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
763 # nice to cause kernel panics so lets avoid the loop below.
764 # First set a reasonable default.
765 lt_cv_sys_max_cmd_len=16384
766 #
767 if test -x /sbin/sysconfig; then
768 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
769 *1*) lt_cv_sys_max_cmd_len=-1 ;;
770 esac
771 fi
772 ;;
773 sco3.2v5*)
774 lt_cv_sys_max_cmd_len=102400
775 ;;
776 sysv5* | sco5v6* | sysv4.2uw2*)
777 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
778 if test -n "$kargmax"; then
779 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
780 else
781 lt_cv_sys_max_cmd_len=32768
782 fi
783 ;;
784 *)
672 # If test is not a shell built-in, we'll probably end up computing a 785 # If test is not a shell built-in, we'll probably end up computing a
673 # maximum length that is only half of the actual maximum length, but 786 # maximum length that is only half of the actual maximum length, but
674 # we can't tell. 787 # we can't tell.
675 while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 788 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
789 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
676 = "XX$teststring") >/dev/null 2>&1 && 790 = "XX$teststring") >/dev/null 2>&1 &&
677 new_result=`expr "X$teststring" : ".*" 2>&1` && 791 new_result=`expr "X$teststring" : ".*" 2>&1` &&
678 lt_cv_sys_max_cmd_len=$new_result && 792 lt_cv_sys_max_cmd_len=$new_result &&
@@ -698,7 +812,7 @@ fi
698 812
699 813
700# _LT_AC_CHECK_DLFCN 814# _LT_AC_CHECK_DLFCN
701# -------------------- 815# ------------------
702AC_DEFUN([_LT_AC_CHECK_DLFCN], 816AC_DEFUN([_LT_AC_CHECK_DLFCN],
703[AC_CHECK_HEADERS(dlfcn.h)dnl 817[AC_CHECK_HEADERS(dlfcn.h)dnl
704])# _LT_AC_CHECK_DLFCN 818])# _LT_AC_CHECK_DLFCN
@@ -706,7 +820,7 @@ AC_DEFUN([_LT_AC_CHECK_DLFCN],
706 820
707# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 821# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
708# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 822# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
709# ------------------------------------------------------------------ 823# ---------------------------------------------------------------------
710AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], 824AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
711[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 825[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
712if test "$cross_compiling" = yes; then : 826if test "$cross_compiling" = yes; then :
@@ -772,17 +886,19 @@ int main ()
772 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 886 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
773 /* dlclose (self); */ 887 /* dlclose (self); */
774 } 888 }
889 else
890 puts (dlerror ());
775 891
776 exit (status); 892 exit (status);
777}] 893}]
778EOF 894EOF
779 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 895 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
780 (./conftest; exit; ) 2>/dev/null 896 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
781 lt_status=$? 897 lt_status=$?
782 case x$lt_status in 898 case x$lt_status in
783 x$lt_dlno_uscore) $1 ;; 899 x$lt_dlno_uscore) $1 ;;
784 x$lt_dlneed_uscore) $2 ;; 900 x$lt_dlneed_uscore) $2 ;;
785 x$lt_unknown|x*) $3 ;; 901 x$lt_dlunknown|x*) $3 ;;
786 esac 902 esac
787 else : 903 else :
788 # compilation failed 904 # compilation failed
@@ -794,7 +910,7 @@ rm -fr conftest*
794 910
795 911
796# AC_LIBTOOL_DLOPEN_SELF 912# AC_LIBTOOL_DLOPEN_SELF
797# ------------------- 913# ----------------------
798AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], 914AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
799[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 915[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
800if test "x$enable_dlopen" != xyes; then 916if test "x$enable_dlopen" != xyes; then
@@ -865,7 +981,7 @@ else
865 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 981 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
866 982
867 save_LDFLAGS="$LDFLAGS" 983 save_LDFLAGS="$LDFLAGS"
868 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 984 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
869 985
870 save_LIBS="$LIBS" 986 save_LIBS="$LIBS"
871 LIBS="$lt_cv_dlopen_libs $LIBS" 987 LIBS="$lt_cv_dlopen_libs $LIBS"
@@ -878,7 +994,7 @@ else
878 ]) 994 ])
879 995
880 if test "x$lt_cv_dlopen_self" = xyes; then 996 if test "x$lt_cv_dlopen_self" = xyes; then
881 LDFLAGS="$LDFLAGS $link_static_flag" 997 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
882 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 998 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
883 lt_cv_dlopen_self_static, [dnl 999 lt_cv_dlopen_self_static, [dnl
884 _LT_AC_TRY_DLOPEN_SELF( 1000 _LT_AC_TRY_DLOPEN_SELF(
@@ -926,7 +1042,7 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
926 # Note that $ac_compile itself does not contain backslashes and begins 1042 # Note that $ac_compile itself does not contain backslashes and begins
927 # with a dollar sign (not a hyphen), so the echo should work correctly. 1043 # with a dollar sign (not a hyphen), so the echo should work correctly.
928 lt_compile=`echo "$ac_compile" | $SED \ 1044 lt_compile=`echo "$ac_compile" | $SED \
929 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 1045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
930 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 1046 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
931 -e 's:$: $lt_compiler_flag:'` 1047 -e 's:$: $lt_compiler_flag:'`
932 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 1048 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
@@ -938,11 +1054,13 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
938 then 1054 then
939 # The compiler can only warn and ignore the option if not recognized 1055 # The compiler can only warn and ignore the option if not recognized
940 # So say no if there are warnings 1056 # So say no if there are warnings
941 if test ! -s out/conftest.err; then 1057 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1058 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1059 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
942 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 1060 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
943 fi 1061 fi
944 fi 1062 fi
945 chmod u+w . 1063 chmod u+w . 2>&AS_MESSAGE_LOG_FD
946 $rm conftest* 1064 $rm conftest*
947 # SGI C++ compiler will create directory out/ii_files/ for 1065 # SGI C++ compiler will create directory out/ii_files/ for
948 # template instantiation 1066 # template instantiation
@@ -1006,8 +1124,8 @@ AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1006[AC_MSG_CHECKING([how to hardcode library paths into programs]) 1124[AC_MSG_CHECKING([how to hardcode library paths into programs])
1007_LT_AC_TAGVAR(hardcode_action, $1)= 1125_LT_AC_TAGVAR(hardcode_action, $1)=
1008if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ 1126if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1009 test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \ 1127 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1010 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then 1128 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1011 1129
1012 # We can hardcode non-existant directories. 1130 # We can hardcode non-existant directories.
1013 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && 1131 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
@@ -1174,7 +1292,7 @@ beos*)
1174 shlibpath_var=LIBRARY_PATH 1292 shlibpath_var=LIBRARY_PATH
1175 ;; 1293 ;;
1176 1294
1177bsdi4*) 1295bsdi[[45]]*)
1178 version_type=linux 1296 version_type=linux
1179 need_version=no 1297 need_version=no
1180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -1202,7 +1320,8 @@ cygwin* | mingw* | pw32*)
1202 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 1320 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1203 dldir=$destdir/`dirname \$dlpath`~ 1321 dldir=$destdir/`dirname \$dlpath`~
1204 test -d \$dldir || mkdir -p \$dldir~ 1322 test -d \$dldir || mkdir -p \$dldir~
1205 $install_prog $dir/$dlname \$dldir/$dlname' 1323 $install_prog $dir/$dlname \$dldir/$dlname~
1324 chmod a+x \$dldir/$dlname'
1206 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 1325 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1207 dlpath=$dir/\$dldll~ 1326 dlpath=$dir/\$dldll~
1208 $rm \$dlpath' 1327 $rm \$dlpath'
@@ -1232,7 +1351,7 @@ cygwin* | mingw* | pw32*)
1232 ;; 1351 ;;
1233 pw32*) 1352 pw32*)
1234 # pw32 DLLs use 'pw' prefix rather than 'lib' 1353 # pw32 DLLs use 'pw' prefix rather than 'lib'
1235 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 1354 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1236 ;; 1355 ;;
1237 esac 1356 esac
1238 ;; 1357 ;;
@@ -1255,7 +1374,7 @@ darwin* | rhapsody*)
1255 soname_spec='${libname}${release}${major}$shared_ext' 1374 soname_spec='${libname}${release}${major}$shared_ext'
1256 shlibpath_overrides_runpath=yes 1375 shlibpath_overrides_runpath=yes
1257 shlibpath_var=DYLD_LIBRARY_PATH 1376 shlibpath_var=DYLD_LIBRARY_PATH
1258 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 1377 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1259 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 1378 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1260 if test "$GCC" = yes; then 1379 if test "$GCC" = yes; then
1261 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 1380 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
@@ -1278,20 +1397,17 @@ freebsd1*)
1278 dynamic_linker=no 1397 dynamic_linker=no
1279 ;; 1398 ;;
1280 1399
1281kfreebsd*-gnu) 1400freebsd* | dragonfly*)
1282 version_type=linux 1401 # DragonFly does not have aout. When/if they implement a new
1283 need_lib_prefix=no 1402 # versioning mechanism, adjust this.
1284 need_version=no 1403 if test -x /usr/bin/objformat; then
1285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1404 objformat=`/usr/bin/objformat`
1286 soname_spec='${libname}${release}${shared_ext}$major' 1405 else
1287 shlibpath_var=LD_LIBRARY_PATH 1406 case $host_os in
1288 shlibpath_overrides_runpath=no 1407 freebsd[[123]]*) objformat=aout ;;
1289 hardcode_into_libs=yes 1408 *) objformat=elf ;;
1290 dynamic_linker='GNU ld.so' 1409 esac
1291 ;; 1410 fi
1292
1293freebsd*)
1294 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
1295 version_type=freebsd-$objformat 1411 version_type=freebsd-$objformat
1296 case $version_type in 1412 case $version_type in
1297 freebsd-elf*) 1413 freebsd-elf*)
@@ -1309,14 +1425,19 @@ freebsd*)
1309 freebsd2*) 1425 freebsd2*)
1310 shlibpath_overrides_runpath=yes 1426 shlibpath_overrides_runpath=yes
1311 ;; 1427 ;;
1312 freebsd3.[01]* | freebsdelf3.[01]*) 1428 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1313 shlibpath_overrides_runpath=yes 1429 shlibpath_overrides_runpath=yes
1314 hardcode_into_libs=yes 1430 hardcode_into_libs=yes
1315 ;; 1431 ;;
1316 *) # from 3.2 on 1432 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1433 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1317 shlibpath_overrides_runpath=no 1434 shlibpath_overrides_runpath=no
1318 hardcode_into_libs=yes 1435 hardcode_into_libs=yes
1319 ;; 1436 ;;
1437 freebsd*) # from 4.6 on
1438 shlibpath_overrides_runpath=yes
1439 hardcode_into_libs=yes
1440 ;;
1320 esac 1441 esac
1321 ;; 1442 ;;
1322 1443
@@ -1336,7 +1457,7 @@ hpux9* | hpux10* | hpux11*)
1336 version_type=sunos 1457 version_type=sunos
1337 need_lib_prefix=no 1458 need_lib_prefix=no
1338 need_version=no 1459 need_version=no
1339 case "$host_cpu" in 1460 case $host_cpu in
1340 ia64*) 1461 ia64*)
1341 shrext_cmds='.so' 1462 shrext_cmds='.so'
1342 hardcode_into_libs=yes 1463 hardcode_into_libs=yes
@@ -1376,6 +1497,18 @@ hpux9* | hpux10* | hpux11*)
1376 postinstall_cmds='chmod 555 $lib' 1497 postinstall_cmds='chmod 555 $lib'
1377 ;; 1498 ;;
1378 1499
1500interix3*)
1501 version_type=linux
1502 need_lib_prefix=no
1503 need_version=no
1504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1505 soname_spec='${libname}${release}${shared_ext}$major'
1506 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1507 shlibpath_var=LD_LIBRARY_PATH
1508 shlibpath_overrides_runpath=no
1509 hardcode_into_libs=yes
1510 ;;
1511
1379irix5* | irix6* | nonstopux*) 1512irix5* | irix6* | nonstopux*)
1380 case $host_os in 1513 case $host_os in
1381 nonstopux*) version_type=nonstopux ;; 1514 nonstopux*) version_type=nonstopux ;;
@@ -1419,7 +1552,7 @@ linux*oldld* | linux*aout* | linux*coff*)
1419 ;; 1552 ;;
1420 1553
1421# This must be Linux ELF. 1554# This must be Linux ELF.
1422linux*) 1555linux* | k*bsd*-gnu)
1423 version_type=linux 1556 version_type=linux
1424 need_lib_prefix=no 1557 need_lib_prefix=no
1425 need_version=no 1558 need_version=no
@@ -1435,7 +1568,7 @@ linux*)
1435 1568
1436 # Append ld.so.conf contents to the search path 1569 # Append ld.so.conf contents to the search path
1437 if test -f /etc/ld.so.conf; then 1570 if test -f /etc/ld.so.conf; then
1438 lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '` 1571 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1439 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 1572 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1440 fi 1573 fi
1441 1574
@@ -1460,18 +1593,6 @@ netbsdelf*-gnu)
1460 dynamic_linker='NetBSD ld.elf_so' 1593 dynamic_linker='NetBSD ld.elf_so'
1461 ;; 1594 ;;
1462 1595
1463knetbsd*-gnu)
1464 version_type=linux
1465 need_lib_prefix=no
1466 need_version=no
1467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1468 soname_spec='${libname}${release}${shared_ext}$major'
1469 shlibpath_var=LD_LIBRARY_PATH
1470 shlibpath_overrides_runpath=no
1471 hardcode_into_libs=yes
1472 dynamic_linker='GNU ld.so'
1473 ;;
1474
1475netbsd*) 1596netbsd*)
1476 version_type=sunos 1597 version_type=sunos
1477 need_lib_prefix=no 1598 need_lib_prefix=no
@@ -1509,8 +1630,13 @@ nto-qnx*)
1509 1630
1510openbsd*) 1631openbsd*)
1511 version_type=sunos 1632 version_type=sunos
1633 sys_lib_dlsearch_path_spec="/usr/lib"
1512 need_lib_prefix=no 1634 need_lib_prefix=no
1513 need_version=yes 1635 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1636 case $host_os in
1637 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1638 *) need_version=no ;;
1639 esac
1514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 1640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1515 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 1641 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1516 shlibpath_var=LD_LIBRARY_PATH 1642 shlibpath_var=LD_LIBRARY_PATH
@@ -1548,13 +1674,6 @@ osf3* | osf4* | osf5*)
1548 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 1674 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1549 ;; 1675 ;;
1550 1676
1551sco3.2v5*)
1552 version_type=osf
1553 soname_spec='${libname}${release}${shared_ext}$major'
1554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1555 shlibpath_var=LD_LIBRARY_PATH
1556 ;;
1557
1558solaris*) 1677solaris*)
1559 version_type=linux 1678 version_type=linux
1560 need_lib_prefix=no 1679 need_lib_prefix=no
@@ -1580,7 +1699,7 @@ sunos4*)
1580 need_version=yes 1699 need_version=yes
1581 ;; 1700 ;;
1582 1701
1583sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 1702sysv4 | sysv4.3*)
1584 version_type=linux 1703 version_type=linux
1585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1586 soname_spec='${libname}${release}${shared_ext}$major' 1705 soname_spec='${libname}${release}${shared_ext}$major'
@@ -1613,6 +1732,29 @@ sysv4*MP*)
1613 fi 1732 fi
1614 ;; 1733 ;;
1615 1734
1735sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1736 version_type=freebsd-elf
1737 need_lib_prefix=no
1738 need_version=no
1739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1740 soname_spec='${libname}${release}${shared_ext}$major'
1741 shlibpath_var=LD_LIBRARY_PATH
1742 hardcode_into_libs=yes
1743 if test "$with_gnu_ld" = yes; then
1744 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1745 shlibpath_overrides_runpath=no
1746 else
1747 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1748 shlibpath_overrides_runpath=yes
1749 case $host_os in
1750 sco3.2v5*)
1751 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1752 ;;
1753 esac
1754 fi
1755 sys_lib_dlsearch_path_spec='/usr/lib'
1756 ;;
1757
1616uts4*) 1758uts4*)
1617 version_type=linux 1759 version_type=linux
1618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -1626,6 +1768,11 @@ uts4*)
1626esac 1768esac
1627AC_MSG_RESULT([$dynamic_linker]) 1769AC_MSG_RESULT([$dynamic_linker])
1628test "$dynamic_linker" = no && can_build_shared=no 1770test "$dynamic_linker" = no && can_build_shared=no
1771
1772variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1773if test "$GCC" = yes; then
1774 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1775fi
1629])# AC_LIBTOOL_SYS_DYNAMIC_LINKER 1776])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1630 1777
1631 1778
@@ -1650,6 +1797,9 @@ if test -f "$ltmain" && test -n "$tagnames"; then
1650 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) 1797 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1651 fi 1798 fi
1652 fi 1799 fi
1800 if test -z "$LTCFLAGS"; then
1801 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1802 fi
1653 1803
1654 # Extract list of available tagged configurations in $ofile. 1804 # Extract list of available tagged configurations in $ofile.
1655 # Note that this assumes the entire list is on one line. 1805 # Note that this assumes the entire list is on one line.
@@ -1676,7 +1826,9 @@ if test -f "$ltmain" && test -n "$tagnames"; then
1676 1826
1677 case $tagname in 1827 case $tagname in
1678 CXX) 1828 CXX)
1679 if test -n "$CXX" && test "X$CXX" != "Xno"; then 1829 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1830 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1831 (test "X$CXX" != "Xg++"))) ; then
1680 AC_LIBTOOL_LANG_CXX_CONFIG 1832 AC_LIBTOOL_LANG_CXX_CONFIG
1681 else 1833 else
1682 tagname="" 1834 tagname=""
@@ -1738,7 +1890,7 @@ AC_DEFUN([AC_LIBTOOL_DLOPEN],
1738 1890
1739# AC_LIBTOOL_WIN32_DLL 1891# AC_LIBTOOL_WIN32_DLL
1740# -------------------- 1892# --------------------
1741# declare package support for building win32 dll's 1893# declare package support for building win32 DLLs
1742AC_DEFUN([AC_LIBTOOL_WIN32_DLL], 1894AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1743[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) 1895[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1744])# AC_LIBTOOL_WIN32_DLL 1896])# AC_LIBTOOL_WIN32_DLL
@@ -1776,7 +1928,7 @@ AC_ARG_ENABLE([shared],
1776 1928
1777# AC_DISABLE_SHARED 1929# AC_DISABLE_SHARED
1778# ----------------- 1930# -----------------
1779#- set the default shared flag to --disable-shared 1931# set the default shared flag to --disable-shared
1780AC_DEFUN([AC_DISABLE_SHARED], 1932AC_DEFUN([AC_DISABLE_SHARED],
1781[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 1933[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1782AC_ENABLE_SHARED(no) 1934AC_ENABLE_SHARED(no)
@@ -1912,7 +2064,7 @@ dnl not every word. This closes a longstanding sh security hole.
1912 if test -n "$file_magic_test_file"; then 2064 if test -n "$file_magic_test_file"; then
1913 case $deplibs_check_method in 2065 case $deplibs_check_method in
1914 "file_magic "*) 2066 "file_magic "*)
1915 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 2067 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1916 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 2068 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1917 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 2069 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1918 $EGREP "$file_magic_regex" > /dev/null; then 2070 $EGREP "$file_magic_regex" > /dev/null; then
@@ -2022,7 +2174,7 @@ AC_CACHE_VAL(lt_cv_path_LD,
2022 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 2174 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2023 lt_cv_path_LD="$ac_dir/$ac_prog" 2175 lt_cv_path_LD="$ac_dir/$ac_prog"
2024 # Check to see if the program is GNU ld. I'd rather use --version, 2176 # Check to see if the program is GNU ld. I'd rather use --version,
2025 # but apparently some GNU ld's only accept -v. 2177 # but apparently some variants of GNU ld only accept -v.
2026 # Break only if it was the GNU/non-GNU ld that we prefer. 2178 # Break only if it was the GNU/non-GNU ld that we prefer.
2027 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 2179 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2028 *GNU* | *'with BFD'*) 2180 *GNU* | *'with BFD'*)
@@ -2054,7 +2206,7 @@ AC_PROG_LD_GNU
2054AC_DEFUN([AC_PROG_LD_GNU], 2206AC_DEFUN([AC_PROG_LD_GNU],
2055[AC_REQUIRE([AC_PROG_EGREP])dnl 2207[AC_REQUIRE([AC_PROG_EGREP])dnl
2056AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 2208AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2057[# I'd rather use --version here, but apparently some GNU ld's only accept -v. 2209[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2058case `$LD -v 2>&1 </dev/null` in 2210case `$LD -v 2>&1 </dev/null` in
2059*GNU* | *'with BFD'*) 2211*GNU* | *'with BFD'*)
2060 lt_cv_prog_gnu_ld=yes 2212 lt_cv_prog_gnu_ld=yes
@@ -2081,6 +2233,15 @@ case $reload_flag in
2081*) reload_flag=" $reload_flag" ;; 2233*) reload_flag=" $reload_flag" ;;
2082esac 2234esac
2083reload_cmds='$LD$reload_flag -o $output$reload_objs' 2235reload_cmds='$LD$reload_flag -o $output$reload_objs'
2236case $host_os in
2237 darwin*)
2238 if test "$GCC" = yes; then
2239 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2240 else
2241 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2242 fi
2243 ;;
2244esac
2084])# AC_PROG_LD_RELOAD_FLAG 2245])# AC_PROG_LD_RELOAD_FLAG
2085 2246
2086 2247
@@ -2114,7 +2275,7 @@ beos*)
2114 lt_cv_deplibs_check_method=pass_all 2275 lt_cv_deplibs_check_method=pass_all
2115 ;; 2276 ;;
2116 2277
2117bsdi4*) 2278bsdi[[45]]*)
2118 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 2279 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2119 lt_cv_file_magic_cmd='/usr/bin/file -L' 2280 lt_cv_file_magic_cmd='/usr/bin/file -L'
2120 lt_cv_file_magic_test_file=/shlib/libc.so 2281 lt_cv_file_magic_test_file=/shlib/libc.so
@@ -2137,13 +2298,13 @@ darwin* | rhapsody*)
2137 lt_cv_deplibs_check_method=pass_all 2298 lt_cv_deplibs_check_method=pass_all
2138 ;; 2299 ;;
2139 2300
2140freebsd* | kfreebsd*-gnu) 2301freebsd* | dragonfly*)
2141 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2302 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2142 case $host_cpu in 2303 case $host_cpu in
2143 i*86 ) 2304 i*86 )
2144 # Not sure whether the presence of OpenBSD here was a mistake. 2305 # Not sure whether the presence of OpenBSD here was a mistake.
2145 # Let's accept both of them until this is cleared up. 2306 # Let's accept both of them until this is cleared up.
2146 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' 2307 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2147 lt_cv_file_magic_cmd=/usr/bin/file 2308 lt_cv_file_magic_cmd=/usr/bin/file
2148 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 2309 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2149 ;; 2310 ;;
@@ -2159,7 +2320,7 @@ gnu*)
2159 2320
2160hpux10.20* | hpux11*) 2321hpux10.20* | hpux11*)
2161 lt_cv_file_magic_cmd=/usr/bin/file 2322 lt_cv_file_magic_cmd=/usr/bin/file
2162 case "$host_cpu" in 2323 case $host_cpu in
2163 ia64*) 2324 ia64*)
2164 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 2325 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2165 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 2326 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
@@ -2175,6 +2336,11 @@ hpux10.20* | hpux11*)
2175 esac 2336 esac
2176 ;; 2337 ;;
2177 2338
2339interix3*)
2340 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2341 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2342 ;;
2343
2178irix5* | irix6* | nonstopux*) 2344irix5* | irix6* | nonstopux*)
2179 case $LD in 2345 case $LD in
2180 *-32|*"-32 ") libmagic=32-bit;; 2346 *-32|*"-32 ") libmagic=32-bit;;
@@ -2186,11 +2352,11 @@ irix5* | irix6* | nonstopux*)
2186 ;; 2352 ;;
2187 2353
2188# This must be Linux ELF. 2354# This must be Linux ELF.
2189linux*) 2355linux* | k*bsd*-gnu)
2190 lt_cv_deplibs_check_method=pass_all 2356 lt_cv_deplibs_check_method=pass_all
2191 ;; 2357 ;;
2192 2358
2193netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 2359netbsd* | netbsdelf*-gnu)
2194 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2360 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2195 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 2361 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2196 else 2362 else
@@ -2209,12 +2375,10 @@ nto-qnx*)
2209 ;; 2375 ;;
2210 2376
2211openbsd*) 2377openbsd*)
2212 lt_cv_file_magic_cmd=/usr/bin/file
2213 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2214 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2378 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2215 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' 2379 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2216 else 2380 else
2217 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 2381 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2218 fi 2382 fi
2219 ;; 2383 ;;
2220 2384
@@ -2222,15 +2386,11 @@ osf3* | osf4* | osf5*)
2222 lt_cv_deplibs_check_method=pass_all 2386 lt_cv_deplibs_check_method=pass_all
2223 ;; 2387 ;;
2224 2388
2225sco3.2v5*)
2226 lt_cv_deplibs_check_method=pass_all
2227 ;;
2228
2229solaris*) 2389solaris*)
2230 lt_cv_deplibs_check_method=pass_all 2390 lt_cv_deplibs_check_method=pass_all
2231 ;; 2391 ;;
2232 2392
2233sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 2393sysv4 | sysv4.3*)
2234 case $host_vendor in 2394 case $host_vendor in
2235 motorola) 2395 motorola)
2236 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' 2396 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
@@ -2251,10 +2411,13 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2251 siemens) 2411 siemens)
2252 lt_cv_deplibs_check_method=pass_all 2412 lt_cv_deplibs_check_method=pass_all
2253 ;; 2413 ;;
2414 pc)
2415 lt_cv_deplibs_check_method=pass_all
2416 ;;
2254 esac 2417 esac
2255 ;; 2418 ;;
2256 2419
2257sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) 2420sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2258 lt_cv_deplibs_check_method=pass_all 2421 lt_cv_deplibs_check_method=pass_all
2259 ;; 2422 ;;
2260esac 2423esac
@@ -2274,36 +2437,43 @@ AC_DEFUN([AC_PROG_NM],
2274 # Let the user override the test. 2437 # Let the user override the test.
2275 lt_cv_path_NM="$NM" 2438 lt_cv_path_NM="$NM"
2276else 2439else
2277 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2440 lt_nm_to_check="${ac_tool_prefix}nm"
2278 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 2441 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2279 IFS="$lt_save_ifs" 2442 lt_nm_to_check="$lt_nm_to_check nm"
2280 test -z "$ac_dir" && ac_dir=. 2443 fi
2281 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 2444 for lt_tmp_nm in $lt_nm_to_check; do
2282 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 2445 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2283 # Check to see if the nm accepts a BSD-compat flag. 2446 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2284 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 2447 IFS="$lt_save_ifs"
2285 # nm: unknown option "B" ignored 2448 test -z "$ac_dir" && ac_dir=.
2286 # Tru64's nm complains that /dev/null is an invalid object file 2449 tmp_nm="$ac_dir/$lt_tmp_nm"
2287 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 2450 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2288 */dev/null* | *'Invalid file or object type'*) 2451 # Check to see if the nm accepts a BSD-compat flag.
2289 lt_cv_path_NM="$tmp_nm -B" 2452 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2290 break 2453 # nm: unknown option "B" ignored
2291 ;; 2454 # Tru64's nm complains that /dev/null is an invalid object file
2292 *) 2455 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2293 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 2456 */dev/null* | *'Invalid file or object type'*)
2294 */dev/null*) 2457 lt_cv_path_NM="$tmp_nm -B"
2295 lt_cv_path_NM="$tmp_nm -p"
2296 break 2458 break
2297 ;; 2459 ;;
2298 *) 2460 *)
2299 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 2461 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2300 continue # so that we can try to find one that supports BSD flags 2462 */dev/null*)
2463 lt_cv_path_NM="$tmp_nm -p"
2464 break
2465 ;;
2466 *)
2467 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2468 continue # so that we can try to find one that supports BSD flags
2469 ;;
2470 esac
2301 ;; 2471 ;;
2302 esac 2472 esac
2303 esac 2473 fi
2304 fi 2474 done
2475 IFS="$lt_save_ifs"
2305 done 2476 done
2306 IFS="$lt_save_ifs"
2307 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 2477 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2308fi]) 2478fi])
2309NM="$lt_cv_path_NM" 2479NM="$lt_cv_path_NM"
@@ -2335,13 +2505,13 @@ esac
2335# ----------------------------------- 2505# -----------------------------------
2336# sets LIBLTDL to the link flags for the libltdl convenience library and 2506# sets LIBLTDL to the link flags for the libltdl convenience library and
2337# LTDLINCL to the include flags for the libltdl header and adds 2507# LTDLINCL to the include flags for the libltdl header and adds
2338# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL 2508# --enable-ltdl-convenience to the configure arguments. Note that
2339# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If 2509# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2340# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will 2510# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2341# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with 2511# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2342# '${top_srcdir}/' (note the single quotes!). If your package is not 2512# (note the single quotes!). If your package is not flat and you're not
2343# flat and you're not using automake, define top_builddir and 2513# using automake, define top_builddir and top_srcdir appropriately in
2344# top_srcdir appropriately in the Makefiles. 2514# the Makefiles.
2345AC_DEFUN([AC_LIBLTDL_CONVENIENCE], 2515AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2346[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2516[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2347 case $enable_ltdl_convenience in 2517 case $enable_ltdl_convenience in
@@ -2360,13 +2530,13 @@ AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2360# ----------------------------------- 2530# -----------------------------------
2361# sets LIBLTDL to the link flags for the libltdl installable library and 2531# sets LIBLTDL to the link flags for the libltdl installable library and
2362# LTDLINCL to the include flags for the libltdl header and adds 2532# LTDLINCL to the include flags for the libltdl header and adds
2363# --enable-ltdl-install to the configure arguments. Note that LIBLTDL 2533# --enable-ltdl-install to the configure arguments. Note that
2364# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If 2534# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2365# DIRECTORY is not provided and an installed libltdl is not found, it is 2535# and an installed libltdl is not found, it is assumed to be `libltdl'.
2366# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/' 2536# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2367# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single 2537# '${top_srcdir}/' (note the single quotes!). If your package is not
2368# quotes!). If your package is not flat and you're not using automake, 2538# flat and you're not using automake, define top_builddir and top_srcdir
2369# define top_builddir and top_srcdir appropriately in the Makefiles. 2539# appropriately in the Makefiles.
2370# In the future, this macro may have to be called after AC_PROG_LIBTOOL. 2540# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2371AC_DEFUN([AC_LIBLTDL_INSTALLABLE], 2541AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2372[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2542[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
@@ -2404,10 +2574,21 @@ AC_DEFUN([AC_LIBTOOL_CXX],
2404# --------------- 2574# ---------------
2405AC_DEFUN([_LT_AC_LANG_CXX], 2575AC_DEFUN([_LT_AC_LANG_CXX],
2406[AC_REQUIRE([AC_PROG_CXX]) 2576[AC_REQUIRE([AC_PROG_CXX])
2407AC_REQUIRE([AC_PROG_CXXCPP]) 2577AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2408_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) 2578_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2409])# _LT_AC_LANG_CXX 2579])# _LT_AC_LANG_CXX
2410 2580
2581# _LT_AC_PROG_CXXCPP
2582# ------------------
2583AC_DEFUN([_LT_AC_PROG_CXXCPP],
2584[
2585AC_REQUIRE([AC_PROG_CXX])
2586if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2587 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2588 (test "X$CXX" != "Xg++"))) ; then
2589 AC_PROG_CXXCPP
2590fi
2591])# _LT_AC_PROG_CXXCPP
2411 2592
2412# AC_LIBTOOL_F77 2593# AC_LIBTOOL_F77
2413# -------------- 2594# --------------
@@ -2447,7 +2628,7 @@ _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2447 2628
2448 2629
2449# AC_LIBTOOL_RC 2630# AC_LIBTOOL_RC
2450# -------------- 2631# -------------
2451# enable support for Windows resource files 2632# enable support for Windows resource files
2452AC_DEFUN([AC_LIBTOOL_RC], 2633AC_DEFUN([AC_LIBTOOL_RC],
2453[AC_REQUIRE([LT_AC_PROG_RC]) 2634[AC_REQUIRE([LT_AC_PROG_RC])
@@ -2480,36 +2661,9 @@ lt_simple_link_test_code='int main(){return(0);}\n'
2480 2661
2481_LT_AC_SYS_COMPILER 2662_LT_AC_SYS_COMPILER
2482 2663
2483# 2664# save warnings/boilerplate of simple test code
2484# Check for any special shared library compilation flags. 2665_LT_COMPILER_BOILERPLATE
2485# 2666_LT_LINKER_BOILERPLATE
2486_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2487if test "$GCC" = no; then
2488 case $host_os in
2489 sco3.2v5*)
2490 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2491 ;;
2492 esac
2493fi
2494if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2495 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2496 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
2497 else
2498 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2499 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2500 fi
2501fi
2502
2503
2504#
2505# Check to make sure the static flag actually works.
2506#
2507AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2508 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2509 $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2510 [],
2511 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2512
2513 2667
2514AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 2668AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2515AC_LIBTOOL_PROG_COMPILER_PIC($1) 2669AC_LIBTOOL_PROG_COMPILER_PIC($1)
@@ -2519,9 +2673,9 @@ AC_LIBTOOL_PROG_LD_SHLIBS($1)
2519AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 2673AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2520AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 2674AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2521AC_LIBTOOL_SYS_LIB_STRIP 2675AC_LIBTOOL_SYS_LIB_STRIP
2522AC_LIBTOOL_DLOPEN_SELF($1) 2676AC_LIBTOOL_DLOPEN_SELF
2523 2677
2524# Report which librarie types wil actually be built 2678# Report which library types will actually be built
2525AC_MSG_CHECKING([if libtool supports shared libraries]) 2679AC_MSG_CHECKING([if libtool supports shared libraries])
2526AC_MSG_RESULT([$can_build_shared]) 2680AC_MSG_RESULT([$can_build_shared])
2527 2681
@@ -2530,7 +2684,7 @@ test "$can_build_shared" = "no" && enable_shared=no
2530 2684
2531# On AIX, shared libraries and static libraries use the same namespace, and 2685# On AIX, shared libraries and static libraries use the same namespace, and
2532# are all built from PIC. 2686# are all built from PIC.
2533case "$host_os" in 2687case $host_os in
2534aix3*) 2688aix3*)
2535 test "$enable_shared" = yes && enable_static=no 2689 test "$enable_shared" = yes && enable_static=no
2536 if test -n "$RANLIB"; then 2690 if test -n "$RANLIB"; then
@@ -2543,43 +2697,6 @@ aix4* | aix5*)
2543 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 2697 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2544 test "$enable_shared" = yes && enable_static=no 2698 test "$enable_shared" = yes && enable_static=no
2545 fi 2699 fi
2546 ;;
2547 darwin* | rhapsody*)
2548 if test "$GCC" = yes; then
2549 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2550 case "$host_os" in
2551 rhapsody* | darwin1.[[012]])
2552 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
2553 ;;
2554 *) # Darwin 1.3 on
2555 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2556 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2557 else
2558 case ${MACOSX_DEPLOYMENT_TARGET} in
2559 10.[[012]])
2560 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2561 ;;
2562 10.*)
2563 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
2564 ;;
2565 esac
2566 fi
2567 ;;
2568 esac
2569 output_verbose_link_cmd='echo'
2570 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
2571 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2572 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2573 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2574 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2575 _LT_AC_TAGVAR(hardcode_direct, $1)=no
2576 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2577 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2578 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2579 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2580 else
2581 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2582 fi
2583 ;; 2700 ;;
2584esac 2701esac
2585AC_MSG_RESULT([$enable_shared]) 2702AC_MSG_RESULT([$enable_shared])
@@ -2605,7 +2722,7 @@ AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2605AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], 2722AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2606[AC_LANG_PUSH(C++) 2723[AC_LANG_PUSH(C++)
2607AC_REQUIRE([AC_PROG_CXX]) 2724AC_REQUIRE([AC_PROG_CXX])
2608AC_REQUIRE([AC_PROG_CXXCPP]) 2725AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2609 2726
2610_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 2727_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2611_LT_AC_TAGVAR(allow_undefined_flag, $1)= 2728_LT_AC_TAGVAR(allow_undefined_flag, $1)=
@@ -2617,6 +2734,7 @@ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2617_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 2734_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2618_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 2735_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2619_LT_AC_TAGVAR(hardcode_minus_L, $1)=no 2736_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2737_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2620_LT_AC_TAGVAR(hardcode_automatic, $1)=no 2738_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2621_LT_AC_TAGVAR(module_cmds, $1)= 2739_LT_AC_TAGVAR(module_cmds, $1)=
2622_LT_AC_TAGVAR(module_expsym_cmds, $1)= 2740_LT_AC_TAGVAR(module_expsym_cmds, $1)=
@@ -2634,7 +2752,7 @@ _LT_AC_TAGVAR(postdeps, $1)=
2634_LT_AC_TAGVAR(compiler_lib_search_path, $1)= 2752_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2635 2753
2636# Source file extension for C++ test sources. 2754# Source file extension for C++ test sources.
2637ac_ext=cc 2755ac_ext=cpp
2638 2756
2639# Object file extension for compiled C++ test sources. 2757# Object file extension for compiled C++ test sources.
2640objext=o 2758objext=o
@@ -2644,11 +2762,15 @@ _LT_AC_TAGVAR(objext, $1)=$objext
2644lt_simple_compile_test_code="int some_variable = 0;\n" 2762lt_simple_compile_test_code="int some_variable = 0;\n"
2645 2763
2646# Code to be used in simple link tests 2764# Code to be used in simple link tests
2647lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 2765lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2648 2766
2649# ltmain only uses $CC for tagged configurations so make sure $CC is set. 2767# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2650_LT_AC_SYS_COMPILER 2768_LT_AC_SYS_COMPILER
2651 2769
2770# save warnings/boilerplate of simple test code
2771_LT_COMPILER_BOILERPLATE
2772_LT_LINKER_BOILERPLATE
2773
2652# Allow CC to be a program name with arguments. 2774# Allow CC to be a program name with arguments.
2653lt_save_CC=$CC 2775lt_save_CC=$CC
2654lt_save_LD=$LD 2776lt_save_LD=$LD
@@ -2659,18 +2781,18 @@ lt_save_path_LD=$lt_cv_path_LD
2659if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 2781if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2660 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 2782 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2661else 2783else
2662 unset lt_cv_prog_gnu_ld 2784 $as_unset lt_cv_prog_gnu_ld
2663fi 2785fi
2664if test -n "${lt_cv_path_LDCXX+set}"; then 2786if test -n "${lt_cv_path_LDCXX+set}"; then
2665 lt_cv_path_LD=$lt_cv_path_LDCXX 2787 lt_cv_path_LD=$lt_cv_path_LDCXX
2666else 2788else
2667 unset lt_cv_path_LD 2789 $as_unset lt_cv_path_LD
2668fi 2790fi
2669test -z "${LDCXX+set}" || LD=$LDCXX 2791test -z "${LDCXX+set}" || LD=$LDCXX
2670CC=${CXX-"c++"} 2792CC=${CXX-"c++"}
2671compiler=$CC 2793compiler=$CC
2672_LT_AC_TAGVAR(compiler, $1)=$CC 2794_LT_AC_TAGVAR(compiler, $1)=$CC
2673cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 2795_LT_CC_BASENAME([$compiler])
2674 2796
2675# We don't want -fno-exception wen compiling C++ code, so set the 2797# We don't want -fno-exception wen compiling C++ code, so set the
2676# no_builtin_flag separately 2798# no_builtin_flag separately
@@ -2759,6 +2881,7 @@ case $host_os in
2759 ;; 2881 ;;
2760 esac 2882 esac
2761 done 2883 done
2884 ;;
2762 esac 2885 esac
2763 2886
2764 exp_sym_flag='-bexport' 2887 exp_sym_flag='-bexport'
@@ -2777,7 +2900,7 @@ case $host_os in
2777 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 2900 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2778 2901
2779 if test "$GXX" = yes; then 2902 if test "$GXX" = yes; then
2780 case $host_os in aix4.[012]|aix4.[012].*) 2903 case $host_os in aix4.[[012]]|aix4.[[012]].*)
2781 # We only want to do this on AIX 4.2 and lower, the check 2904 # We only want to do this on AIX 4.2 and lower, the check
2782 # below for broken collect2 doesn't work under 4.3+ 2905 # below for broken collect2 doesn't work under 4.3+
2783 collect2name=`${CC} -print-prog-name=collect2` 2906 collect2name=`${CC} -print-prog-name=collect2`
@@ -2796,8 +2919,12 @@ case $host_os in
2796 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 2919 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2797 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 2920 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2798 fi 2921 fi
2922 ;;
2799 esac 2923 esac
2800 shared_flag='-shared' 2924 shared_flag='-shared'
2925 if test "$aix_use_runtimelinking" = yes; then
2926 shared_flag="$shared_flag "'${wl}-G'
2927 fi
2801 else 2928 else
2802 # not using gcc 2929 # not using gcc
2803 if test "$host_cpu" = ia64; then 2930 if test "$host_cpu" = ia64; then
@@ -2824,12 +2951,12 @@ case $host_os in
2824 _LT_AC_SYS_LIBPATH_AIX 2951 _LT_AC_SYS_LIBPATH_AIX
2825 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 2952 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2826 2953
2827 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 2954 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2828 else 2955 else
2829 if test "$host_cpu" = ia64; then 2956 if test "$host_cpu" = ia64; then
2830 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 2957 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2831 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 2958 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2832 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 2959 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
2833 else 2960 else
2834 # Determine the default libpath from the value encoded in an empty executable. 2961 # Determine the default libpath from the value encoded in an empty executable.
2835 _LT_AC_SYS_LIBPATH_AIX 2962 _LT_AC_SYS_LIBPATH_AIX
@@ -2838,16 +2965,26 @@ case $host_os in
2838 # -berok will link without error, but may produce a broken library. 2965 # -berok will link without error, but may produce a broken library.
2839 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 2966 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2840 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 2967 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2841 # -bexpall does not export symbols beginning with underscore (_)
2842 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2843 # Exported symbols can be pulled into shared objects from archives 2968 # Exported symbols can be pulled into shared objects from archives
2844 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' 2969 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2845 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 2970 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2846 # This is similar to how AIX traditionally builds it's shared libraries. 2971 # This is similar to how AIX traditionally builds its shared libraries.
2847 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 2972 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
2848 fi 2973 fi
2849 fi 2974 fi
2850 ;; 2975 ;;
2976
2977 beos*)
2978 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
2979 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2980 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
2981 # support --undefined. This deserves some investigation. FIXME
2982 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2983 else
2984 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2985 fi
2986 ;;
2987
2851 chorus*) 2988 chorus*)
2852 case $cc_basename in 2989 case $cc_basename in
2853 *) 2990 *)
@@ -2866,7 +3003,7 @@ case $host_os in
2866 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 3003 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2867 3004
2868 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 3005 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
2869 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 3006 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
2870 # If the export-symbols file already is a .def file (1st line 3007 # If the export-symbols file already is a .def file (1st line
2871 # is EXPORTS), use it as is; otherwise, prepend... 3008 # is EXPORTS), use it as is; otherwise, prepend...
2872 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 3009 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
@@ -2875,70 +3012,81 @@ case $host_os in
2875 echo EXPORTS > $output_objdir/$soname.def; 3012 echo EXPORTS > $output_objdir/$soname.def;
2876 cat $export_symbols >> $output_objdir/$soname.def; 3013 cat $export_symbols >> $output_objdir/$soname.def;
2877 fi~ 3014 fi~
2878 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 3015 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
2879 else 3016 else
2880 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3017 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2881 fi 3018 fi
2882 ;; 3019 ;;
3020 darwin* | rhapsody*)
3021 case $host_os in
3022 rhapsody* | darwin1.[[012]])
3023 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3024 ;;
3025 *) # Darwin 1.3 on
3026 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3027 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3028 else
3029 case ${MACOSX_DEPLOYMENT_TARGET} in
3030 10.[[012]])
3031 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3032 ;;
3033 10.*)
3034 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3035 ;;
3036 esac
3037 fi
3038 ;;
3039 esac
3040 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3041 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3042 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3043 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3044 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3045 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2883 3046
2884 darwin* | rhapsody*) 3047 if test "$GXX" = yes ; then
2885 if test "$GXX" = yes; then 3048 lt_int_apple_cc_single_mod=no
2886 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3049 output_verbose_link_cmd='echo'
2887 case "$host_os" in 3050 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
2888 rhapsody* | darwin1.[[012]]) 3051 lt_int_apple_cc_single_mod=yes
2889 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' 3052 fi
2890 ;; 3053 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2891 *) # Darwin 1.3 on 3054 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2892 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2893 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2894 else 3055 else
2895 case ${MACOSX_DEPLOYMENT_TARGET} in 3056 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2896 10.[[012]]) 3057 fi
2897 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 3058 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2898 ;; 3059 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
2899 10.*) 3060 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2900 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 3061 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2901 ;; 3062 else
2902 esac 3063 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3064 fi
3065 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3066 else
3067 case $cc_basename in
3068 xlc*)
3069 output_verbose_link_cmd='echo'
3070 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3071 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3072 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3073 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3074 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3075 ;;
3076 *)
3077 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3078 ;;
3079 esac
2903 fi 3080 fi
2904 ;; 3081 ;;
2905 esac
2906 lt_int_apple_cc_single_mod=no
2907 output_verbose_link_cmd='echo'
2908 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
2909 lt_int_apple_cc_single_mod=yes
2910 fi
2911 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2912 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2913 else
2914 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2915 fi
2916 _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2917
2918 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2919 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2920 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2921 else
2922 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2923 fi
2924 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2925 _LT_AC_TAGVAR(hardcode_direct, $1)=no
2926 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2927 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2928 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2929 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2930 else
2931 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2932 fi
2933 ;;
2934 3082
2935 dgux*) 3083 dgux*)
2936 case $cc_basename in 3084 case $cc_basename in
2937 ec++) 3085 ec++*)
2938 # FIXME: insert proper C++ library support 3086 # FIXME: insert proper C++ library support
2939 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3087 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2940 ;; 3088 ;;
2941 ghcx) 3089 ghcx*)
2942 # Green Hills C++ Compiler 3090 # Green Hills C++ Compiler
2943 # FIXME: insert proper C++ library support 3091 # FIXME: insert proper C++ library support
2944 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3092 _LT_AC_TAGVAR(ld_shlibs, $1)=no
@@ -2949,14 +3097,14 @@ case $host_os in
2949 ;; 3097 ;;
2950 esac 3098 esac
2951 ;; 3099 ;;
2952 freebsd[12]*) 3100 freebsd[[12]]*)
2953 # C++ shared libraries reported to be fairly broken before switch to ELF 3101 # C++ shared libraries reported to be fairly broken before switch to ELF
2954 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3102 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2955 ;; 3103 ;;
2956 freebsd-elf*) 3104 freebsd-elf*)
2957 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3105 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2958 ;; 3106 ;;
2959 freebsd* | kfreebsd*-gnu) 3107 freebsd* | dragonfly*)
2960 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 3108 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
2961 # conventions 3109 # conventions
2962 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 3110 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
@@ -2973,11 +3121,11 @@ case $host_os in
2973 # location of the library. 3121 # location of the library.
2974 3122
2975 case $cc_basename in 3123 case $cc_basename in
2976 CC) 3124 CC*)
2977 # FIXME: insert proper C++ library support 3125 # FIXME: insert proper C++ library support
2978 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3126 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2979 ;; 3127 ;;
2980 aCC) 3128 aCC*)
2981 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 3129 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
2982 # Commands to make compiler produce verbose output that lists 3130 # Commands to make compiler produce verbose output that lists
2983 # what "hidden" libraries, object files and flags are used when 3131 # what "hidden" libraries, object files and flags are used when
@@ -2987,7 +3135,7 @@ case $host_os in
2987 # explicitly linking system object files so we need to strip them 3135 # explicitly linking system object files so we need to strip them
2988 # from the output so that they don't get included in the library 3136 # from the output so that they don't get included in the library
2989 # dependencies. 3137 # dependencies.
2990 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 3138 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
2991 ;; 3139 ;;
2992 *) 3140 *)
2993 if test "$GXX" = yes; then 3141 if test "$GXX" = yes; then
@@ -3001,33 +3149,22 @@ case $host_os in
3001 ;; 3149 ;;
3002 hpux10*|hpux11*) 3150 hpux10*|hpux11*)
3003 if test $with_gnu_ld = no; then 3151 if test $with_gnu_ld = no; then
3004 case "$host_cpu" in 3152 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3005 hppa*64*) 3153 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3006 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 3154
3155 case $host_cpu in
3156 hppa*64*|ia64*)
3007 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 3157 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3008 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3009 ;;
3010 ia64*)
3011 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3012 ;; 3158 ;;
3013 *) 3159 *)
3014 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3015 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3016 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3160 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3017 ;; 3161 ;;
3018 esac 3162 esac
3019 fi 3163 fi
3020 case "$host_cpu" in 3164 case $host_cpu in
3021 hppa*64*) 3165 hppa*64*|ia64*)
3022 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3023 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3024 ;;
3025 ia64*)
3026 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3166 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3027 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3167 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3028 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3029 # but as the default
3030 # location of the library.
3031 ;; 3168 ;;
3032 *) 3169 *)
3033 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3170 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
@@ -3038,14 +3175,17 @@ case $host_os in
3038 esac 3175 esac
3039 3176
3040 case $cc_basename in 3177 case $cc_basename in
3041 CC) 3178 CC*)
3042 # FIXME: insert proper C++ library support 3179 # FIXME: insert proper C++ library support
3043 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3180 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3044 ;; 3181 ;;
3045 aCC) 3182 aCC*)
3046 case "$host_cpu" in 3183 case $host_cpu in
3047 hppa*64*|ia64*) 3184 hppa*64*)
3048 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 3185 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3186 ;;
3187 ia64*)
3188 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3049 ;; 3189 ;;
3050 *) 3190 *)
3051 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3191 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
@@ -3064,9 +3204,12 @@ case $host_os in
3064 *) 3204 *)
3065 if test "$GXX" = yes; then 3205 if test "$GXX" = yes; then
3066 if test $with_gnu_ld = no; then 3206 if test $with_gnu_ld = no; then
3067 case "$host_cpu" in 3207 case $host_cpu in
3068 ia64*|hppa*64*) 3208 hppa*64*)
3069 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 3209 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3210 ;;
3211 ia64*)
3212 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3070 ;; 3213 ;;
3071 *) 3214 *)
3072 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3215 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
@@ -3080,11 +3223,25 @@ case $host_os in
3080 ;; 3223 ;;
3081 esac 3224 esac
3082 ;; 3225 ;;
3226 interix3*)
3227 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3228 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3229 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3230 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3231 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3232 # Instead, shared libraries are loaded at an image base (0x10000000 by
3233 # default) and relocated if they conflict, which is a slow very memory
3234 # consuming and fragmenting process. To avoid this, we pick a random,
3235 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3236 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3237 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3238 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3239 ;;
3083 irix5* | irix6*) 3240 irix5* | irix6*)
3084 case $cc_basename in 3241 case $cc_basename in
3085 CC) 3242 CC*)
3086 # SGI C++ 3243 # SGI C++
3087 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 3244 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3088 3245
3089 # Archives containing C++ object files must be created using 3246 # Archives containing C++ object files must be created using
3090 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 3247 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
@@ -3095,7 +3252,7 @@ case $host_os in
3095 *) 3252 *)
3096 if test "$GXX" = yes; then 3253 if test "$GXX" = yes; then
3097 if test "$with_gnu_ld" = no; then 3254 if test "$with_gnu_ld" = no; then
3098 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 3255 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3099 else 3256 else
3100 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 3257 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
3101 fi 3258 fi
@@ -3106,9 +3263,9 @@ case $host_os in
3106 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3263 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3107 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3264 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3108 ;; 3265 ;;
3109 linux*) 3266 linux* | k*bsd*-gnu)
3110 case $cc_basename in 3267 case $cc_basename in
3111 KCC) 3268 KCC*)
3112 # Kuck and Associates, Inc. (KAI) C++ Compiler 3269 # Kuck and Associates, Inc. (KAI) C++ Compiler
3113 3270
3114 # KCC will only create a shared library if the output file 3271 # KCC will only create a shared library if the output file
@@ -3133,17 +3290,41 @@ case $host_os in
3133 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 3290 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3134 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 3291 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3135 ;; 3292 ;;
3136 icpc) 3293 icpc*)
3137 # Intel C++ 3294 # Intel C++
3138 with_gnu_ld=yes 3295 with_gnu_ld=yes
3296 # version 8.0 and above of icpc choke on multiply defined symbols
3297 # if we add $predep_objects and $postdep_objects, however 7.1 and
3298 # earlier do not add the objects themselves.
3299 case `$CC -V 2>&1` in
3300 *"Version 7."*)
3301 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3302 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3303 ;;
3304 *) # Version 8.0 or newer
3305 tmp_idyn=
3306 case $host_cpu in
3307 ia64*) tmp_idyn=' -i_dynamic';;
3308 esac
3309 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3310 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3311 ;;
3312 esac
3139 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3313 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3140 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3141 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3142 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3314 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3143 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 3315 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3144 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 3316 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3145 ;; 3317 ;;
3146 cxx) 3318 pgCC*)
3319 # Portland Group C++ compiler
3320 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3321 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
3322
3323 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3324 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3325 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3326 ;;
3327 cxx*)
3147 # Compaq C++ 3328 # Compaq C++
3148 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 3329 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3149 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 3330 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
@@ -3174,7 +3355,7 @@ case $host_os in
3174 ;; 3355 ;;
3175 mvs*) 3356 mvs*)
3176 case $cc_basename in 3357 case $cc_basename in
3177 cxx) 3358 cxx*)
3178 # FIXME: insert proper C++ library support 3359 # FIXME: insert proper C++ library support
3179 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3360 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3180 ;; 3361 ;;
@@ -3184,7 +3365,7 @@ case $host_os in
3184 ;; 3365 ;;
3185 esac 3366 esac
3186 ;; 3367 ;;
3187 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 3368 netbsd* | netbsdelf*-gnu)
3188 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 3369 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3189 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 3370 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3190 wlarc= 3371 wlarc=
@@ -3195,9 +3376,25 @@ case $host_os in
3195 # Workaround some broken pre-1.5 toolchains 3376 # Workaround some broken pre-1.5 toolchains
3196 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 3377 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3197 ;; 3378 ;;
3379 openbsd2*)
3380 # C++ shared libraries are fairly broken
3381 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3382 ;;
3383 openbsd*)
3384 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3385 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3386 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3387 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3388 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3389 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3390 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3391 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3392 fi
3393 output_verbose_link_cmd='echo'
3394 ;;
3198 osf3*) 3395 osf3*)
3199 case $cc_basename in 3396 case $cc_basename in
3200 KCC) 3397 KCC*)
3201 # Kuck and Associates, Inc. (KAI) C++ Compiler 3398 # Kuck and Associates, Inc. (KAI) C++ Compiler
3202 3399
3203 # KCC will only create a shared library if the output file 3400 # KCC will only create a shared library if the output file
@@ -3213,14 +3410,14 @@ case $host_os in
3213 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 3410 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3214 3411
3215 ;; 3412 ;;
3216 RCC) 3413 RCC*)
3217 # Rational C++ 2.4.1 3414 # Rational C++ 2.4.1
3218 # FIXME: insert proper C++ library support 3415 # FIXME: insert proper C++ library support
3219 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3416 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3220 ;; 3417 ;;
3221 cxx) 3418 cxx*)
3222 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3419 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3223 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 3420 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3224 3421
3225 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3422 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3226 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3423 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
@@ -3238,7 +3435,7 @@ case $host_os in
3238 *) 3435 *)
3239 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 3436 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3240 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3437 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3241 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 3438 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3242 3439
3243 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3440 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3244 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3441 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
@@ -3257,7 +3454,7 @@ case $host_os in
3257 ;; 3454 ;;
3258 osf4* | osf5*) 3455 osf4* | osf5*)
3259 case $cc_basename in 3456 case $cc_basename in
3260 KCC) 3457 KCC*)
3261 # Kuck and Associates, Inc. (KAI) C++ Compiler 3458 # Kuck and Associates, Inc. (KAI) C++ Compiler
3262 3459
3263 # KCC will only create a shared library if the output file 3460 # KCC will only create a shared library if the output file
@@ -3272,17 +3469,17 @@ case $host_os in
3272 # the KAI C++ compiler. 3469 # the KAI C++ compiler.
3273 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' 3470 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3274 ;; 3471 ;;
3275 RCC) 3472 RCC*)
3276 # Rational C++ 2.4.1 3473 # Rational C++ 2.4.1
3277 # FIXME: insert proper C++ library support 3474 # FIXME: insert proper C++ library support
3278 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3475 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3279 ;; 3476 ;;
3280 cxx) 3477 cxx*)
3281 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 3478 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3282 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 3479 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3283 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 3480 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3284 echo "-hidden">> $lib.exp~ 3481 echo "-hidden">> $lib.exp~
3285 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ 3482 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
3286 $rm $lib.exp' 3483 $rm $lib.exp'
3287 3484
3288 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 3485 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
@@ -3301,7 +3498,7 @@ case $host_os in
3301 *) 3498 *)
3302 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 3499 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3303 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3500 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3304 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 3501 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3305 3502
3306 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3503 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3307 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3504 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
@@ -3322,27 +3519,14 @@ case $host_os in
3322 # FIXME: insert proper C++ library support 3519 # FIXME: insert proper C++ library support
3323 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3520 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3324 ;; 3521 ;;
3325 sco*)
3326 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3327 case $cc_basename in
3328 CC)
3329 # FIXME: insert proper C++ library support
3330 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3331 ;;
3332 *)
3333 # FIXME: insert proper C++ library support
3334 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3335 ;;
3336 esac
3337 ;;
3338 sunos4*) 3522 sunos4*)
3339 case $cc_basename in 3523 case $cc_basename in
3340 CC) 3524 CC*)
3341 # Sun C++ 4.x 3525 # Sun C++ 4.x
3342 # FIXME: insert proper C++ library support 3526 # FIXME: insert proper C++ library support
3343 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3527 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3344 ;; 3528 ;;
3345 lcc) 3529 lcc*)
3346 # Lucid 3530 # Lucid
3347 # FIXME: insert proper C++ library support 3531 # FIXME: insert proper C++ library support
3348 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3532 _LT_AC_TAGVAR(ld_shlibs, $1)=no
@@ -3355,36 +3539,33 @@ case $host_os in
3355 ;; 3539 ;;
3356 solaris*) 3540 solaris*)
3357 case $cc_basename in 3541 case $cc_basename in
3358 CC) 3542 CC*)
3359 # Sun C++ 4.2, 5.x and Centerline C++ 3543 # Sun C++ 4.2, 5.x and Centerline C++
3544 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3360 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 3545 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3361 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3546 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3362 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 3547 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3363 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 3548 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3364 3549
3365 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 3550 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3366 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3551 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3367 case $host_os in 3552 case $host_os in
3368 solaris2.[0-5] | solaris2.[0-5].*) ;; 3553 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3369 *) 3554 *)
3370 # The C++ compiler is used as linker so we must use $wl 3555 # The C++ compiler is used as linker so we must use $wl
3371 # flag to pass the commands to the underlying system 3556 # flag to pass the commands to the underlying system
3372 # linker. 3557 # linker. We must also pass each convience library through
3558 # to the system linker between allextract/defaultextract.
3559 # The C++ compiler will combine linker options so we
3560 # cannot just pass the convience library names through
3561 # without $wl.
3373 # Supported since Solaris 2.6 (maybe 2.5.1?) 3562 # Supported since Solaris 2.6 (maybe 2.5.1?)
3374 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 3563 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
3375 ;; 3564 ;;
3376 esac 3565 esac
3377 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3566 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3378 3567
3379 # Commands to make compiler produce verbose output that lists 3568 output_verbose_link_cmd='echo'
3380 # what "hidden" libraries, object files and flags are used when
3381 # linking a shared library.
3382 #
3383 # There doesn't appear to be a way to prevent this compiler from
3384 # explicitly linking system object files so we need to strip them
3385 # from the output so that they don't get included in the library
3386 # dependencies.
3387 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3388 3569
3389 # Archives containing C++ object files must be created using 3570 # Archives containing C++ object files must be created using
3390 # "CC -xar", where "CC" is the Sun C++ compiler. This is 3571 # "CC -xar", where "CC" is the Sun C++ compiler. This is
@@ -3392,7 +3573,7 @@ case $host_os in
3392 # in the archive. 3573 # in the archive.
3393 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 3574 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3394 ;; 3575 ;;
3395 gcx) 3576 gcx*)
3396 # Green Hills C++ Compiler 3577 # Green Hills C++ Compiler
3397 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 3578 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3398 3579
@@ -3430,12 +3611,63 @@ case $host_os in
3430 ;; 3611 ;;
3431 esac 3612 esac
3432 ;; 3613 ;;
3433 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) 3614 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3615 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3434 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3616 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3617 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3618 runpath_var='LD_RUN_PATH'
3619
3620 case $cc_basename in
3621 CC*)
3622 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3623 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3624 ;;
3625 *)
3626 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3627 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3628 ;;
3629 esac
3630 ;;
3631 sysv5* | sco3.2v5* | sco5v6*)
3632 # Note: We can NOT use -z defs as we might desire, because we do not
3633 # link with -lc, and that would cause any symbols used from libc to
3634 # always be unresolved, which means just about no library would
3635 # ever link correctly. If we're not using GNU ld we use -z text
3636 # though, which does catch some bad symbols but isn't as heavy-handed
3637 # as -z defs.
3638 # For security reasons, it is highly recommended that you always
3639 # use absolute paths for naming shared libraries, and exclude the
3640 # DT_RUNPATH tag from executables and libraries. But doing so
3641 # requires that you compile everything twice, which is a pain.
3642 # So that behaviour is only enabled if SCOABSPATH is set to a
3643 # non-empty value in the environment. Most likely only useful for
3644 # creating official distributions of packages.
3645 # This is a hack until libtool officially supports absolute path
3646 # names for shared libraries.
3647 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3648 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3649 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3650 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3651 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3652 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3653 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3654 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3655 runpath_var='LD_RUN_PATH'
3656
3657 case $cc_basename in
3658 CC*)
3659 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3660 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3661 ;;
3662 *)
3663 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3664 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3665 ;;
3666 esac
3435 ;; 3667 ;;
3436 tandem*) 3668 tandem*)
3437 case $cc_basename in 3669 case $cc_basename in
3438 NCC) 3670 NCC*)
3439 # NonStop-UX NCC 3.20 3671 # NonStop-UX NCC 3.20
3440 # FIXME: insert proper C++ library support 3672 # FIXME: insert proper C++ library support
3441 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3673 _LT_AC_TAGVAR(ld_shlibs, $1)=no
@@ -3468,8 +3700,6 @@ AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3468AC_LIBTOOL_PROG_LD_SHLIBS($1) 3700AC_LIBTOOL_PROG_LD_SHLIBS($1)
3469AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3701AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3470AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3702AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3471AC_LIBTOOL_SYS_LIB_STRIP
3472AC_LIBTOOL_DLOPEN_SELF($1)
3473 3703
3474AC_LIBTOOL_CONFIG($1) 3704AC_LIBTOOL_CONFIG($1)
3475 3705
@@ -3487,7 +3717,7 @@ lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3487])# AC_LIBTOOL_LANG_CXX_CONFIG 3717])# AC_LIBTOOL_LANG_CXX_CONFIG
3488 3718
3489# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) 3719# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3490# ------------------------ 3720# ------------------------------------
3491# Figure out "hidden" library dependencies from verbose 3721# Figure out "hidden" library dependencies from verbose
3492# compiler output when linking a shared library. 3722# compiler output when linking a shared library.
3493# Parse the compiler output and extract the necessary 3723# Parse the compiler output and extract the necessary
@@ -3541,7 +3771,7 @@ if AC_TRY_EVAL(ac_compile); then
3541 # The `*' in the case matches for architectures that use `case' in 3771 # The `*' in the case matches for architectures that use `case' in
3542 # $output_verbose_cmd can trigger glob expansion during the loop 3772 # $output_verbose_cmd can trigger glob expansion during the loop
3543 # eval without this substitution. 3773 # eval without this substitution.
3544 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 3774 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3545 3775
3546 for p in `eval $output_verbose_link_cmd`; do 3776 for p in `eval $output_verbose_link_cmd`; do
3547 case $p in 3777 case $p in
@@ -3617,13 +3847,37 @@ fi
3617 3847
3618$rm -f confest.$objext 3848$rm -f confest.$objext
3619 3849
3850# PORTME: override above test on systems where it is broken
3851ifelse([$1],[CXX],
3852[case $host_os in
3853interix3*)
3854 # Interix 3.5 installs completely hosed .la files for C++, so rather than
3855 # hack all around it, let's just trust "g++" to DTRT.
3856 _LT_AC_TAGVAR(predep_objects,$1)=
3857 _LT_AC_TAGVAR(postdep_objects,$1)=
3858 _LT_AC_TAGVAR(postdeps,$1)=
3859 ;;
3860
3861solaris*)
3862 case $cc_basename in
3863 CC*)
3864 # Adding this requires a known-good setup of shared libraries for
3865 # Sun compiler versions before 5.6, else PIC objects from an old
3866 # archive will be linked into the output, leading to subtle bugs.
3867 _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
3868 ;;
3869 esac
3870 ;;
3871esac
3872])
3873
3620case " $_LT_AC_TAGVAR(postdeps, $1) " in 3874case " $_LT_AC_TAGVAR(postdeps, $1) " in
3621*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; 3875*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3622esac 3876esac
3623])# AC_LIBTOOL_POSTDEP_PREDEP 3877])# AC_LIBTOOL_POSTDEP_PREDEP
3624 3878
3625# AC_LIBTOOL_LANG_F77_CONFIG 3879# AC_LIBTOOL_LANG_F77_CONFIG
3626# ------------------------ 3880# --------------------------
3627# Ensure that the configuration vars for the C compiler are 3881# Ensure that the configuration vars for the C compiler are
3628# suitably defined. Those variables are subsequently used by 3882# suitably defined. Those variables are subsequently used by
3629# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 3883# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
@@ -3667,12 +3921,16 @@ lt_simple_link_test_code=" program t\n end\n"
3667# ltmain only uses $CC for tagged configurations so make sure $CC is set. 3921# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3668_LT_AC_SYS_COMPILER 3922_LT_AC_SYS_COMPILER
3669 3923
3924# save warnings/boilerplate of simple test code
3925_LT_COMPILER_BOILERPLATE
3926_LT_LINKER_BOILERPLATE
3927
3670# Allow CC to be a program name with arguments. 3928# Allow CC to be a program name with arguments.
3671lt_save_CC="$CC" 3929lt_save_CC="$CC"
3672CC=${F77-"f77"} 3930CC=${F77-"f77"}
3673compiler=$CC 3931compiler=$CC
3674_LT_AC_TAGVAR(compiler, $1)=$CC 3932_LT_AC_TAGVAR(compiler, $1)=$CC
3675cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 3933_LT_CC_BASENAME([$compiler])
3676 3934
3677AC_MSG_CHECKING([if libtool supports shared libraries]) 3935AC_MSG_CHECKING([if libtool supports shared libraries])
3678AC_MSG_RESULT([$can_build_shared]) 3936AC_MSG_RESULT([$can_build_shared])
@@ -3682,7 +3940,7 @@ test "$can_build_shared" = "no" && enable_shared=no
3682 3940
3683# On AIX, shared libraries and static libraries use the same namespace, and 3941# On AIX, shared libraries and static libraries use the same namespace, and
3684# are all built from PIC. 3942# are all built from PIC.
3685case "$host_os" in 3943case $host_os in
3686aix3*) 3944aix3*)
3687 test "$enable_shared" = yes && enable_static=no 3945 test "$enable_shared" = yes && enable_static=no
3688 if test -n "$RANLIB"; then 3946 if test -n "$RANLIB"; then
@@ -3691,7 +3949,9 @@ aix3*)
3691 fi 3949 fi
3692 ;; 3950 ;;
3693aix4* | aix5*) 3951aix4* | aix5*)
3694 test "$enable_shared" = yes && enable_static=no 3952 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3953 test "$enable_shared" = yes && enable_static=no
3954 fi
3695 ;; 3955 ;;
3696esac 3956esac
3697AC_MSG_RESULT([$enable_shared]) 3957AC_MSG_RESULT([$enable_shared])
@@ -3701,8 +3961,6 @@ AC_MSG_CHECKING([whether to build static libraries])
3701test "$enable_shared" = yes || enable_static=yes 3961test "$enable_shared" = yes || enable_static=yes
3702AC_MSG_RESULT([$enable_static]) 3962AC_MSG_RESULT([$enable_static])
3703 3963
3704test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3705
3706_LT_AC_TAGVAR(GCC, $1)="$G77" 3964_LT_AC_TAGVAR(GCC, $1)="$G77"
3707_LT_AC_TAGVAR(LD, $1)="$LD" 3965_LT_AC_TAGVAR(LD, $1)="$LD"
3708 3966
@@ -3712,8 +3970,6 @@ AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3712AC_LIBTOOL_PROG_LD_SHLIBS($1) 3970AC_LIBTOOL_PROG_LD_SHLIBS($1)
3713AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3971AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3714AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3972AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3715AC_LIBTOOL_SYS_LIB_STRIP
3716
3717 3973
3718AC_LIBTOOL_CONFIG($1) 3974AC_LIBTOOL_CONFIG($1)
3719 3975
@@ -3742,20 +3998,27 @@ _LT_AC_TAGVAR(objext, $1)=$objext
3742lt_simple_compile_test_code="class foo {}\n" 3998lt_simple_compile_test_code="class foo {}\n"
3743 3999
3744# Code to be used in simple link tests 4000# Code to be used in simple link tests
3745lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 4001lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
3746 4002
3747# ltmain only uses $CC for tagged configurations so make sure $CC is set. 4003# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3748_LT_AC_SYS_COMPILER 4004_LT_AC_SYS_COMPILER
3749 4005
4006# save warnings/boilerplate of simple test code
4007_LT_COMPILER_BOILERPLATE
4008_LT_LINKER_BOILERPLATE
4009
3750# Allow CC to be a program name with arguments. 4010# Allow CC to be a program name with arguments.
3751lt_save_CC="$CC" 4011lt_save_CC="$CC"
3752CC=${GCJ-"gcj"} 4012CC=${GCJ-"gcj"}
3753compiler=$CC 4013compiler=$CC
3754_LT_AC_TAGVAR(compiler, $1)=$CC 4014_LT_AC_TAGVAR(compiler, $1)=$CC
4015_LT_CC_BASENAME([$compiler])
3755 4016
3756# GCJ did not exist at the time GCC didn't implicitly link libc in. 4017# GCJ did not exist at the time GCC didn't implicitly link libc in.
3757_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4018_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3758 4019
4020_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4021
3759AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 4022AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3760AC_LIBTOOL_PROG_COMPILER_PIC($1) 4023AC_LIBTOOL_PROG_COMPILER_PIC($1)
3761AC_LIBTOOL_PROG_CC_C_O($1) 4024AC_LIBTOOL_PROG_CC_C_O($1)
@@ -3763,8 +4026,6 @@ AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3763AC_LIBTOOL_PROG_LD_SHLIBS($1) 4026AC_LIBTOOL_PROG_LD_SHLIBS($1)
3764AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 4027AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3765AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 4028AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3766AC_LIBTOOL_SYS_LIB_STRIP
3767AC_LIBTOOL_DLOPEN_SELF($1)
3768 4029
3769AC_LIBTOOL_CONFIG($1) 4030AC_LIBTOOL_CONFIG($1)
3770 4031
@@ -3774,7 +4035,7 @@ CC="$lt_save_CC"
3774 4035
3775 4036
3776# AC_LIBTOOL_LANG_RC_CONFIG 4037# AC_LIBTOOL_LANG_RC_CONFIG
3777# -------------------------- 4038# -------------------------
3778# Ensure that the configuration vars for the Windows resource compiler are 4039# Ensure that the configuration vars for the Windows resource compiler are
3779# suitably defined. Those variables are subsequently used by 4040# suitably defined. Those variables are subsequently used by
3780# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 4041# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
@@ -3798,11 +4059,16 @@ lt_simple_link_test_code="$lt_simple_compile_test_code"
3798# ltmain only uses $CC for tagged configurations so make sure $CC is set. 4059# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3799_LT_AC_SYS_COMPILER 4060_LT_AC_SYS_COMPILER
3800 4061
4062# save warnings/boilerplate of simple test code
4063_LT_COMPILER_BOILERPLATE
4064_LT_LINKER_BOILERPLATE
4065
3801# Allow CC to be a program name with arguments. 4066# Allow CC to be a program name with arguments.
3802lt_save_CC="$CC" 4067lt_save_CC="$CC"
3803CC=${RC-"windres"} 4068CC=${RC-"windres"}
3804compiler=$CC 4069compiler=$CC
3805_LT_AC_TAGVAR(compiler, $1)=$CC 4070_LT_AC_TAGVAR(compiler, $1)=$CC
4071_LT_CC_BASENAME([$compiler])
3806_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 4072_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3807 4073
3808AC_LIBTOOL_CONFIG($1) 4074AC_LIBTOOL_CONFIG($1)
@@ -3832,7 +4098,7 @@ if test -f "$ltmain"; then
3832 # Now quote all the things that may contain metacharacters while being 4098 # Now quote all the things that may contain metacharacters while being
3833 # careful not to overquote the AC_SUBSTed values. We take copies of the 4099 # careful not to overquote the AC_SUBSTed values. We take copies of the
3834 # variables and quote the copies for generation of the libtool script. 4100 # variables and quote the copies for generation of the libtool script.
3835 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 4101 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
3836 SED SHELL STRIP \ 4102 SED SHELL STRIP \
3837 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 4103 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
3838 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 4104 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
@@ -3938,7 +4204,7 @@ ifelse([$1], [],
3938# 4204#
3939# You should have received a copy of the GNU General Public License 4205# You should have received a copy of the GNU General Public License
3940# along with this program; if not, write to the Free Software 4206# along with this program; if not, write to the Free Software
3941# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 4207# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
3942# 4208#
3943# As a special exception to the GNU General Public License, if you 4209# As a special exception to the GNU General Public License, if you
3944# distribute this file as part of a program that contains a 4210# distribute this file as part of a program that contains a
@@ -3949,11 +4215,11 @@ ifelse([$1], [],
3949SED=$lt_SED 4215SED=$lt_SED
3950 4216
3951# Sed that helps us avoid accidentally triggering echo(1) options like -n. 4217# Sed that helps us avoid accidentally triggering echo(1) options like -n.
3952Xsed="$SED -e s/^X//" 4218Xsed="$SED -e 1s/^X//"
3953 4219
3954# The HP-UX ksh and POSIX shell print the target directory to stdout 4220# The HP-UX ksh and POSIX shell print the target directory to stdout
3955# if CDPATH is set. 4221# if CDPATH is set.
3956if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 4222(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3957 4223
3958# The names of the tagged configurations supported by this script. 4224# The names of the tagged configurations supported by this script.
3959available_tags= 4225available_tags=
@@ -3984,6 +4250,12 @@ fast_install=$enable_fast_install
3984# The host system. 4250# The host system.
3985host_alias=$host_alias 4251host_alias=$host_alias
3986host=$host 4252host=$host
4253host_os=$host_os
4254
4255# The build system.
4256build_alias=$build_alias
4257build=$build
4258build_os=$build_os
3987 4259
3988# An echo program that does not interpret backslashes. 4260# An echo program that does not interpret backslashes.
3989echo=$lt_echo 4261echo=$lt_echo
@@ -3995,6 +4267,9 @@ AR_FLAGS=$lt_AR_FLAGS
3995# A C compiler. 4267# A C compiler.
3996LTCC=$lt_LTCC 4268LTCC=$lt_LTCC
3997 4269
4270# LTCC compiler flags.
4271LTCFLAGS=$lt_LTCFLAGS
4272
3998# A language-specific compiler. 4273# A language-specific compiler.
3999CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) 4274CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4000 4275
@@ -4060,7 +4335,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
4060# Does compiler simultaneously support -c and -o options? 4335# Does compiler simultaneously support -c and -o options?
4061compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) 4336compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4062 4337
4063# Must we lock files when doing compilation ? 4338# Must we lock files when doing compilation?
4064need_locks=$lt_need_locks 4339need_locks=$lt_need_locks
4065 4340
4066# Do we need the lib prefix for modules? 4341# Do we need the lib prefix for modules?
@@ -4334,9 +4609,6 @@ symcode='[[BCDEGRST]]'
4334# Regexp to match symbols that can be accessed directly from C. 4609# Regexp to match symbols that can be accessed directly from C.
4335sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 4610sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4336 4611
4337# Transform the above into a raw symbol and a C symbol.
4338symxfrm='\1 \2\3 \3'
4339
4340# Transform an extracted symbol line into a proper C declaration 4612# Transform an extracted symbol line into a proper C declaration
4341lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 4613lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4342 4614
@@ -4358,15 +4630,31 @@ hpux*) # Its linker distinguishes data from code symbols
4358 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4630 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4359 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 4631 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4360 ;; 4632 ;;
4633linux* | k*bsd*-gnu)
4634 if test "$host_cpu" = ia64; then
4635 symcode='[[ABCDGIRSTW]]'
4636 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4637 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4638 fi
4639 ;;
4361irix* | nonstopux*) 4640irix* | nonstopux*)
4362 symcode='[[BCDEGRST]]' 4641 symcode='[[BCDEGRST]]'
4363 ;; 4642 ;;
4364osf*) 4643osf*)
4365 symcode='[[BCDEGQRST]]' 4644 symcode='[[BCDEGQRST]]'
4366 ;; 4645 ;;
4367solaris* | sysv5*) 4646solaris*)
4368 symcode='[[BDRT]]' 4647 symcode='[[BDRT]]'
4369 ;; 4648 ;;
4649sco3.2v5*)
4650 symcode='[[DT]]'
4651 ;;
4652sysv4.2uw2*)
4653 symcode='[[DT]]'
4654 ;;
4655sysv5* | sco5v6* | unixware* | OpenUNIX*)
4656 symcode='[[ABDT]]'
4657 ;;
4370sysv4) 4658sysv4)
4371 symcode='[[DFNSTU]]' 4659 symcode='[[DFNSTU]]'
4372 ;; 4660 ;;
@@ -4389,8 +4677,11 @@ esac
4389# Try without a prefix undercore, then with it. 4677# Try without a prefix undercore, then with it.
4390for ac_symprfx in "" "_"; do 4678for ac_symprfx in "" "_"; do
4391 4679
4680 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4681 symxfrm="\\1 $ac_symprfx\\2 \\2"
4682
4392 # Write the raw and C identifiers. 4683 # Write the raw and C identifiers.
4393 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 4684 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4394 4685
4395 # Check to see that the pipe works correctly. 4686 # Check to see that the pipe works correctly.
4396 pipe_works=no 4687 pipe_works=no
@@ -4546,6 +4837,10 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4546 # DJGPP does not support shared libraries at all 4837 # DJGPP does not support shared libraries at all
4547 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 4838 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4548 ;; 4839 ;;
4840 interix3*)
4841 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4842 # Instead, we relocate shared libraries at runtime.
4843 ;;
4549 sysv4*MP*) 4844 sysv4*MP*)
4550 if test -d /usr/nec; then 4845 if test -d /usr/nec; then
4551 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 4846 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
@@ -4554,7 +4849,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4554 hpux*) 4849 hpux*)
4555 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 4850 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4556 # not for PA HP-UX. 4851 # not for PA HP-UX.
4557 case "$host_cpu" in 4852 case $host_cpu in
4558 hppa*64*|ia64*) 4853 hppa*64*|ia64*)
4559 ;; 4854 ;;
4560 *) 4855 *)
@@ -4579,18 +4874,28 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4579 ;; 4874 ;;
4580 chorus*) 4875 chorus*)
4581 case $cc_basename in 4876 case $cc_basename in
4582 cxch68) 4877 cxch68*)
4583 # Green Hills C++ Compiler 4878 # Green Hills C++ Compiler
4584 # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 4879 # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
4585 ;; 4880 ;;
4586 esac 4881 esac
4587 ;; 4882 ;;
4883 darwin*)
4884 # PIC is the default on this platform
4885 # Common symbols not allowed in MH_DYLIB files
4886 case $cc_basename in
4887 xlc*)
4888 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
4889 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4890 ;;
4891 esac
4892 ;;
4588 dgux*) 4893 dgux*)
4589 case $cc_basename in 4894 case $cc_basename in
4590 ec++) 4895 ec++*)
4591 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4896 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4592 ;; 4897 ;;
4593 ghcx) 4898 ghcx*)
4594 # Green Hills C++ Compiler 4899 # Green Hills C++ Compiler
4595 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4900 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4596 ;; 4901 ;;
@@ -4598,22 +4903,22 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4598 ;; 4903 ;;
4599 esac 4904 esac
4600 ;; 4905 ;;
4601 freebsd* | kfreebsd*-gnu) 4906 freebsd* | dragonfly*)
4602 # FreeBSD uses GNU C++ 4907 # FreeBSD uses GNU C++
4603 ;; 4908 ;;
4604 hpux9* | hpux10* | hpux11*) 4909 hpux9* | hpux10* | hpux11*)
4605 case $cc_basename in 4910 case $cc_basename in
4606 CC) 4911 CC*)
4607 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4912 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4608 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 4913 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4609 if test "$host_cpu" != ia64; then 4914 if test "$host_cpu" != ia64; then
4610 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4915 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4611 fi 4916 fi
4612 ;; 4917 ;;
4613 aCC) 4918 aCC*)
4614 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4919 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4615 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 4920 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4616 case "$host_cpu" in 4921 case $host_cpu in
4617 hppa*64*|ia64*) 4922 hppa*64*|ia64*)
4618 # +Z the default 4923 # +Z the default
4619 ;; 4924 ;;
@@ -4626,9 +4931,13 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4626 ;; 4931 ;;
4627 esac 4932 esac
4628 ;; 4933 ;;
4934 interix*)
4935 # This is c89, which is MS Visual C++ (no shared libs)
4936 # Anyone wants to do a port?
4937 ;;
4629 irix5* | irix6* | nonstopux*) 4938 irix5* | irix6* | nonstopux*)
4630 case $cc_basename in 4939 case $cc_basename in
4631 CC) 4940 CC*)
4632 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4941 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4633 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4942 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4634 # CC pic flag -KPIC is the default. 4943 # CC pic flag -KPIC is the default.
@@ -4637,20 +4946,26 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4637 ;; 4946 ;;
4638 esac 4947 esac
4639 ;; 4948 ;;
4640 linux*) 4949 linux* | k*bsd*-gnu)
4641 case $cc_basename in 4950 case $cc_basename in
4642 KCC) 4951 KCC*)
4643 # KAI C++ Compiler 4952 # KAI C++ Compiler
4644 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4953 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4645 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4954 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4646 ;; 4955 ;;
4647 icpc) 4956 icpc* | ecpc*)
4648 # Intel C++ 4957 # Intel C++
4649 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4958 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4650 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4959 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4651 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 4960 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4652 ;; 4961 ;;
4653 cxx) 4962 pgCC*)
4963 # Portland Group C++ compiler.
4964 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4965 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4966 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4967 ;;
4968 cxx*)
4654 # Compaq C++ 4969 # Compaq C++
4655 # Make sure the PIC flag is empty. It appears that all Alpha 4970 # Make sure the PIC flag is empty. It appears that all Alpha
4656 # Linux and Compaq Tru64 Unix objects are PIC. 4971 # Linux and Compaq Tru64 Unix objects are PIC.
@@ -4667,25 +4982,25 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4667 ;; 4982 ;;
4668 mvs*) 4983 mvs*)
4669 case $cc_basename in 4984 case $cc_basename in
4670 cxx) 4985 cxx*)
4671 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 4986 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4672 ;; 4987 ;;
4673 *) 4988 *)
4674 ;; 4989 ;;
4675 esac 4990 esac
4676 ;; 4991 ;;
4677 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 4992 netbsd* | netbsdelf*-gnu)
4678 ;; 4993 ;;
4679 osf3* | osf4* | osf5*) 4994 osf3* | osf4* | osf5*)
4680 case $cc_basename in 4995 case $cc_basename in
4681 KCC) 4996 KCC*)
4682 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4997 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4683 ;; 4998 ;;
4684 RCC) 4999 RCC*)
4685 # Rational C++ 2.4.1 5000 # Rational C++ 2.4.1
4686 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5001 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4687 ;; 5002 ;;
4688 cxx) 5003 cxx*)
4689 # Digital/Compaq C++ 5004 # Digital/Compaq C++
4690 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5005 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4691 # Make sure the PIC flag is empty. It appears that all Alpha 5006 # Make sure the PIC flag is empty. It appears that all Alpha
@@ -4699,24 +5014,15 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4699 ;; 5014 ;;
4700 psos*) 5015 psos*)
4701 ;; 5016 ;;
4702 sco*)
4703 case $cc_basename in
4704 CC)
4705 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4706 ;;
4707 *)
4708 ;;
4709 esac
4710 ;;
4711 solaris*) 5017 solaris*)
4712 case $cc_basename in 5018 case $cc_basename in
4713 CC) 5019 CC*)
4714 # Sun C++ 4.2, 5.x and Centerline C++ 5020 # Sun C++ 4.2, 5.x and Centerline C++
4715 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5021 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4716 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5022 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4717 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5023 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4718 ;; 5024 ;;
4719 gcx) 5025 gcx*)
4720 # Green Hills C++ Compiler 5026 # Green Hills C++ Compiler
4721 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 5027 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4722 ;; 5028 ;;
@@ -4726,12 +5032,12 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4726 ;; 5032 ;;
4727 sunos4*) 5033 sunos4*)
4728 case $cc_basename in 5034 case $cc_basename in
4729 CC) 5035 CC*)
4730 # Sun C++ 4.x 5036 # Sun C++ 4.x
4731 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5037 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4732 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5038 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4733 ;; 5039 ;;
4734 lcc) 5040 lcc*)
4735 # Lucid 5041 # Lucid
4736 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5042 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4737 ;; 5043 ;;
@@ -4741,7 +5047,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4741 ;; 5047 ;;
4742 tandem*) 5048 tandem*)
4743 case $cc_basename in 5049 case $cc_basename in
4744 NCC) 5050 NCC*)
4745 # NonStop-UX NCC 3.20 5051 # NonStop-UX NCC 3.20
4746 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5052 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4747 ;; 5053 ;;
@@ -4749,7 +5055,14 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4749 ;; 5055 ;;
4750 esac 5056 esac
4751 ;; 5057 ;;
4752 unixware*) 5058 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5059 case $cc_basename in
5060 CC*)
5061 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5062 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5063 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5064 ;;
5065 esac
4753 ;; 5066 ;;
4754 vxworks*) 5067 vxworks*)
4755 ;; 5068 ;;
@@ -4796,6 +5109,11 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4796 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5109 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4797 ;; 5110 ;;
4798 5111
5112 interix3*)
5113 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5114 # Instead, we relocate shared libraries at runtime.
5115 ;;
5116
4799 msdosdjgpp*) 5117 msdosdjgpp*)
4800 # Just because we use GCC doesn't mean we suddenly get shared libraries 5118 # Just because we use GCC doesn't mean we suddenly get shared libraries
4801 # on systems that don't support them. 5119 # on systems that don't support them.
@@ -4812,7 +5130,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4812 hpux*) 5130 hpux*)
4813 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5131 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4814 # not for PA HP-UX. 5132 # not for PA HP-UX.
4815 case "$host_cpu" in 5133 case $host_cpu in
4816 hppa*64*|ia64*) 5134 hppa*64*|ia64*)
4817 # +Z the default 5135 # +Z the default
4818 ;; 5136 ;;
@@ -4838,6 +5156,16 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4838 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 5156 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4839 fi 5157 fi
4840 ;; 5158 ;;
5159 darwin*)
5160 # PIC is the default on this platform
5161 # Common symbols not allowed in MH_DYLIB files
5162 case $cc_basename in
5163 xlc*)
5164 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5165 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5166 ;;
5167 esac
5168 ;;
4841 5169
4842 mingw* | pw32* | os2*) 5170 mingw* | pw32* | os2*)
4843 # This hack is so that the source file can tell whether it is being 5171 # This hack is so that the source file can tell whether it is being
@@ -4849,7 +5177,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4849 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5177 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4850 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5178 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4851 # not for PA HP-UX. 5179 # not for PA HP-UX.
4852 case "$host_cpu" in 5180 case $host_cpu in
4853 hppa*64*|ia64*) 5181 hppa*64*|ia64*)
4854 # +Z the default 5182 # +Z the default
4855 ;; 5183 ;;
@@ -4872,13 +5200,20 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4872 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5200 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4873 ;; 5201 ;;
4874 5202
4875 linux*) 5203 linux* | k*bsd*-gnu)
4876 case $CC in 5204 case $cc_basename in
4877 icc* | ecc*) 5205 icc* | ecc*)
4878 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5206 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4879 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5207 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4880 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5208 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4881 ;; 5209 ;;
5210 pgcc* | pgf77* | pgf90* | pgf95*)
5211 # Portland Group compilers (*not* the Pentium gcc compiler,
5212 # which looks to be a dead project)
5213 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5214 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5215 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5216 ;;
4882 ccc*) 5217 ccc*)
4883 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5218 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4884 # All Alpha code is PIC. 5219 # All Alpha code is PIC.
@@ -4893,15 +5228,15 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4893 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5228 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4894 ;; 5229 ;;
4895 5230
4896 sco3.2v5*)
4897 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
4898 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
4899 ;;
4900
4901 solaris*) 5231 solaris*)
4902 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4903 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5232 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4904 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5233 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5234 case $cc_basename in
5235 f77* | f90* | f95*)
5236 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5237 *)
5238 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5239 esac
4905 ;; 5240 ;;
4906 5241
4907 sunos4*) 5242 sunos4*)
@@ -4910,7 +5245,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4910 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5245 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4911 ;; 5246 ;;
4912 5247
4913 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 5248 sysv4 | sysv4.2uw2* | sysv4.3*)
4914 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5249 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4915 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5250 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4916 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5251 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
@@ -4923,6 +5258,17 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
4923 fi 5258 fi
4924 ;; 5259 ;;
4925 5260
5261 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5262 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5263 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5264 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5265 ;;
5266
5267 unicos*)
5268 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5269 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5270 ;;
5271
4926 uts4*) 5272 uts4*)
4927 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5273 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4928 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5274 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
@@ -4950,7 +5296,7 @@ if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
4950 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5296 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4951 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 5297 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4952fi 5298fi
4953case "$host_os" in 5299case $host_os in
4954 # For platforms which do not support PIC, -DPIC is meaningless: 5300 # For platforms which do not support PIC, -DPIC is meaningless:
4955 *djgpp*) 5301 *djgpp*)
4956 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5302 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
@@ -4959,6 +5305,16 @@ case "$host_os" in
4959 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" 5305 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
4960 ;; 5306 ;;
4961esac 5307esac
5308
5309#
5310# Check to make sure the static flag actually works.
5311#
5312wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5313AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5314 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
5315 $lt_tmp_static_flag,
5316 [],
5317 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
4962]) 5318])
4963 5319
4964 5320
@@ -4983,9 +5339,9 @@ ifelse([$1],[CXX],[
4983 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 5339 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4984 ;; 5340 ;;
4985 cygwin* | mingw*) 5341 cygwin* | mingw*)
4986 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' 5342 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
4987 ;; 5343 ;;
4988 linux*) 5344 linux* | k*bsd*-gnu)
4989 _LT_AC_TAGVAR(link_all_deplibs, $1)=no 5345 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
4990 ;; 5346 ;;
4991 *) 5347 *)
@@ -5029,7 +5385,8 @@ ifelse([$1],[CXX],[
5029 # rely on this symbol name, it's probably fine to never include it in 5385 # rely on this symbol name, it's probably fine to never include it in
5030 # preloaded symbol tables. 5386 # preloaded symbol tables.
5031 extract_expsyms_cmds= 5387 extract_expsyms_cmds=
5032 5388 # Just being paranoid about ensuring that cc_basename is set.
5389 _LT_CC_BASENAME([$compiler])
5033 case $host_os in 5390 case $host_os in
5034 cygwin* | mingw* | pw32*) 5391 cygwin* | mingw* | pw32*)
5035 # FIXME: the MSVC++ port hasn't been tested in a loooong time 5392 # FIXME: the MSVC++ port hasn't been tested in a loooong time
@@ -5039,6 +5396,10 @@ ifelse([$1],[CXX],[
5039 with_gnu_ld=no 5396 with_gnu_ld=no
5040 fi 5397 fi
5041 ;; 5398 ;;
5399 interix*)
5400 # we just hope/assume this is gcc and not c89 (= MSVC++)
5401 with_gnu_ld=yes
5402 ;;
5042 openbsd*) 5403 openbsd*)
5043 with_gnu_ld=no 5404 with_gnu_ld=no
5044 ;; 5405 ;;
@@ -5049,6 +5410,27 @@ ifelse([$1],[CXX],[
5049 # If archive_cmds runs LD, not CC, wlarc should be empty 5410 # If archive_cmds runs LD, not CC, wlarc should be empty
5050 wlarc='${wl}' 5411 wlarc='${wl}'
5051 5412
5413 # Set some defaults for GNU ld with shared library support. These
5414 # are reset later if shared libraries are not supported. Putting them
5415 # here allows them to be overridden if necessary.
5416 runpath_var=LD_RUN_PATH
5417 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5418 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5419 # ancient GNU ld didn't support --whole-archive et. al.
5420 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5421 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5422 else
5423 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5424 fi
5425 supports_anon_versioning=no
5426 case `$LD -v 2>/dev/null` in
5427 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5428 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5429 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5430 *\ 2.11.*) ;; # other 2.11 versions
5431 *) supports_anon_versioning=yes ;;
5432 esac
5433
5052 # See if GNU ld supports shared libraries. 5434 # See if GNU ld supports shared libraries.
5053 case $host_os in 5435 case $host_os in
5054 aix3* | aix4* | aix5*) 5436 aix3* | aix4* | aix5*)
@@ -5099,10 +5481,10 @@ EOF
5099 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 5481 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5100 _LT_AC_TAGVAR(always_export_symbols, $1)=no 5482 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5101 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5483 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5102 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' 5484 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5103 5485
5104 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 5486 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5105 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 5487 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5106 # If the export-symbols file already is a .def file (1st line 5488 # If the export-symbols file already is a .def file (1st line
5107 # is EXPORTS), use it as is; otherwise, prepend... 5489 # is EXPORTS), use it as is; otherwise, prepend...
5108 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 5490 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
@@ -5111,13 +5493,60 @@ EOF
5111 echo EXPORTS > $output_objdir/$soname.def; 5493 echo EXPORTS > $output_objdir/$soname.def;
5112 cat $export_symbols >> $output_objdir/$soname.def; 5494 cat $export_symbols >> $output_objdir/$soname.def;
5113 fi~ 5495 fi~
5114 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 5496 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5115 else 5497 else
5116 ld_shlibs=no 5498 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5117 fi 5499 fi
5118 ;; 5500 ;;
5119 5501
5120 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 5502 interix3*)
5503 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5504 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5505 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5506 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5507 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5508 # Instead, shared libraries are loaded at an image base (0x10000000 by
5509 # default) and relocated if they conflict, which is a slow very memory
5510 # consuming and fragmenting process. To avoid this, we pick a random,
5511 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5512 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5513 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5514 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5515 ;;
5516
5517 linux* | k*bsd*-gnu)
5518 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5519 tmp_addflag=
5520 case $cc_basename,$host_cpu in
5521 pgcc*) # Portland Group C compiler
5522 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5523 tmp_addflag=' $pic_flag'
5524 ;;
5525 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5526 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5527 tmp_addflag=' $pic_flag -Mnomain' ;;
5528 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5529 tmp_addflag=' -i_dynamic' ;;
5530 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5531 tmp_addflag=' -i_dynamic -nofor_main' ;;
5532 ifc* | ifort*) # Intel Fortran compiler
5533 tmp_addflag=' -nofor_main' ;;
5534 esac
5535 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5536
5537 if test $supports_anon_versioning = yes; then
5538 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5539 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5540 $echo "local: *; };" >> $output_objdir/$libname.ver~
5541 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5542 fi
5543 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5544 else
5545 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5546 fi
5547 ;;
5548
5549 netbsd* | netbsdelf*-gnu)
5121 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5550 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5122 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 5551 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5123 wlarc= 5552 wlarc=
@@ -5127,7 +5556,7 @@ EOF
5127 fi 5556 fi
5128 ;; 5557 ;;
5129 5558
5130 solaris* | sysv5*) 5559 solaris*)
5131 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 5560 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5132 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5561 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5133 cat <<EOF 1>&2 5562 cat <<EOF 1>&2
@@ -5148,6 +5577,33 @@ EOF
5148 fi 5577 fi
5149 ;; 5578 ;;
5150 5579
5580 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5581 case `$LD -v 2>&1` in
5582 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5583 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5584 cat <<_LT_EOF 1>&2
5585
5586*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5587*** reliably create shared libraries on SCO systems. Therefore, libtool
5588*** is disabling shared libraries support. We urge you to upgrade GNU
5589*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5590*** your PATH or compiler configuration so that the native linker is
5591*** used, and then restart.
5592
5593_LT_EOF
5594 ;;
5595 *)
5596 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5597 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5598 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5599 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
5600 else
5601 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5602 fi
5603 ;;
5604 esac
5605 ;;
5606
5151 sunos4*) 5607 sunos4*)
5152 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5608 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5153 wlarc= 5609 wlarc=
@@ -5155,32 +5611,6 @@ EOF
5155 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5611 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5156 ;; 5612 ;;
5157 5613
5158 linux*)
5159 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5160 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5161 _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
5162 supports_anon_versioning=no
5163 case `$LD -v 2>/dev/null` in
5164 *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5165 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5166 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5167 *\ 2.11.*) ;; # other 2.11 versions
5168 *) supports_anon_versioning=yes ;;
5169 esac
5170 if test $supports_anon_versioning = yes; then
5171 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5172cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5173$echo "local: *; };" >> $output_objdir/$libname.ver~
5174 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5175 else
5176 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
5177 fi
5178 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5179 else
5180 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5181 fi
5182 ;;
5183
5184 *) 5614 *)
5185 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5615 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5186 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5616 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
@@ -5191,16 +5621,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5191 ;; 5621 ;;
5192 esac 5622 esac
5193 5623
5194 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then 5624 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
5195 runpath_var=LD_RUN_PATH 5625 runpath_var=
5196 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 5626 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5197 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5627 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5198 # ancient GNU ld didn't support --whole-archive et. al. 5628 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5199 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5200 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5201 else
5202 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5203 fi
5204 fi 5629 fi
5205 else 5630 else
5206 # PORTME fill in a description of your system's linker (not GNU ld) 5631 # PORTME fill in a description of your system's linker (not GNU ld)
@@ -5212,7 +5637,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5212 # Note: this linker hardcodes the directories in LIBPATH if there 5637 # Note: this linker hardcodes the directories in LIBPATH if there
5213 # are no directories specified by -L. 5638 # are no directories specified by -L.
5214 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5639 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5215 if test "$GCC" = yes && test -z "$link_static_flag"; then 5640 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5216 # Neither direct hardcoding nor static linking is supported with a 5641 # Neither direct hardcoding nor static linking is supported with a
5217 # broken collect2. 5642 # broken collect2.
5218 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 5643 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
@@ -5246,6 +5671,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5246 break 5671 break
5247 fi 5672 fi
5248 done 5673 done
5674 ;;
5249 esac 5675 esac
5250 5676
5251 exp_sym_flag='-bexport' 5677 exp_sym_flag='-bexport'
@@ -5264,7 +5690,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5264 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 5690 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5265 5691
5266 if test "$GCC" = yes; then 5692 if test "$GCC" = yes; then
5267 case $host_os in aix4.[012]|aix4.[012].*) 5693 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5268 # We only want to do this on AIX 4.2 and lower, the check 5694 # We only want to do this on AIX 4.2 and lower, the check
5269 # below for broken collect2 doesn't work under 4.3+ 5695 # below for broken collect2 doesn't work under 4.3+
5270 collect2name=`${CC} -print-prog-name=collect2` 5696 collect2name=`${CC} -print-prog-name=collect2`
@@ -5283,8 +5709,12 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5283 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5709 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5284 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 5710 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5285 fi 5711 fi
5712 ;;
5286 esac 5713 esac
5287 shared_flag='-shared' 5714 shared_flag='-shared'
5715 if test "$aix_use_runtimelinking" = yes; then
5716 shared_flag="$shared_flag "'${wl}-G'
5717 fi
5288 else 5718 else
5289 # not using gcc 5719 # not using gcc
5290 if test "$host_cpu" = ia64; then 5720 if test "$host_cpu" = ia64; then
@@ -5292,11 +5722,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5292 # chokes on -Wl,-G. The following line is correct: 5722 # chokes on -Wl,-G. The following line is correct:
5293 shared_flag='-G' 5723 shared_flag='-G'
5294 else 5724 else
5295 if test "$aix_use_runtimelinking" = yes; then 5725 if test "$aix_use_runtimelinking" = yes; then
5296 shared_flag='${wl}-G' 5726 shared_flag='${wl}-G'
5297 else 5727 else
5298 shared_flag='${wl}-bM:SRE' 5728 shared_flag='${wl}-bM:SRE'
5299 fi 5729 fi
5300 fi 5730 fi
5301 fi 5731 fi
5302 5732
@@ -5310,12 +5740,12 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5310 # Determine the default libpath from the value encoded in an empty executable. 5740 # Determine the default libpath from the value encoded in an empty executable.
5311 _LT_AC_SYS_LIBPATH_AIX 5741 _LT_AC_SYS_LIBPATH_AIX
5312 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5742 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5313 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 5743 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5314 else 5744 else
5315 if test "$host_cpu" = ia64; then 5745 if test "$host_cpu" = ia64; then
5316 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 5746 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5317 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 5747 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5318 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 5748 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5319 else 5749 else
5320 # Determine the default libpath from the value encoded in an empty executable. 5750 # Determine the default libpath from the value encoded in an empty executable.
5321 _LT_AC_SYS_LIBPATH_AIX 5751 _LT_AC_SYS_LIBPATH_AIX
@@ -5324,13 +5754,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5324 # -berok will link without error, but may produce a broken library. 5754 # -berok will link without error, but may produce a broken library.
5325 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 5755 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5326 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 5756 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5327 # -bexpall does not export symbols beginning with underscore (_)
5328 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5329 # Exported symbols can be pulled into shared objects from archives 5757 # Exported symbols can be pulled into shared objects from archives
5330 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' 5758 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5331 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 5759 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5332 # This is similar to how AIX traditionally builds it's shared libraries. 5760 # This is similar to how AIX traditionally builds its shared libraries.
5333 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 5761 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5334 fi 5762 fi
5335 fi 5763 fi
5336 ;; 5764 ;;
@@ -5343,7 +5771,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5343 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5771 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5344 ;; 5772 ;;
5345 5773
5346 bsdi4*) 5774 bsdi[[45]]*)
5347 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 5775 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5348 ;; 5776 ;;
5349 5777
@@ -5364,57 +5792,57 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5364 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' 5792 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5365 # FIXME: Should let the user specify the lib program. 5793 # FIXME: Should let the user specify the lib program.
5366 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' 5794 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5367 fix_srcfile_path='`cygpath -w "$srcfile"`' 5795 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5368 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5796 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5369 ;; 5797 ;;
5370 5798
5371 darwin* | rhapsody*) 5799 darwin* | rhapsody*)
5372 if test "$GXX" = yes ; then 5800 case $host_os in
5373 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 5801 rhapsody* | darwin1.[[012]])
5374 case "$host_os" in 5802 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5375 rhapsody* | darwin1.[[012]]) 5803 ;;
5376 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' 5804 *) # Darwin 1.3 on
5377 ;; 5805 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5378 *) # Darwin 1.3 on 5806 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5379 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 5807 else
5380 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 5808 case ${MACOSX_DEPLOYMENT_TARGET} in
5381 else 5809 10.[[012]])
5382 case ${MACOSX_DEPLOYMENT_TARGET} in 5810 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5383 10.[[012]]) 5811 ;;
5384 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 5812 10.*)
5385 ;; 5813 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5386 10.*) 5814 ;;
5387 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 5815 esac
5388 ;; 5816 fi
5389 esac 5817 ;;
5390 fi
5391 ;;
5392 esac 5818 esac
5393 lt_int_apple_cc_single_mod=no 5819 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5394 output_verbose_link_cmd='echo'
5395 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
5396 lt_int_apple_cc_single_mod=yes
5397 fi
5398 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5399 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5400 else
5401 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5402 fi
5403 _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5404 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
5405 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5406 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5407 else
5408 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5409 fi
5410 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5411 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5820 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5412 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 5821 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5413 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 5822 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5414 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' 5823 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
5415 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 5824 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5825 if test "$GCC" = yes ; then
5826 output_verbose_link_cmd='echo'
5827 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5828 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5829 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5830 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5831 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5416 else 5832 else
5417 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5833 case $cc_basename in
5834 xlc*)
5835 output_verbose_link_cmd='echo'
5836 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
5837 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5838 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5839 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5840 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5841 ;;
5842 *)
5843 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5844 ;;
5845 esac
5418 fi 5846 fi
5419 ;; 5847 ;;
5420 5848
@@ -5448,7 +5876,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5448 ;; 5876 ;;
5449 5877
5450 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 5878 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5451 freebsd* | kfreebsd*-gnu) 5879 freebsd* | dragonfly*)
5452 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 5880 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5453 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5881 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5454 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5882 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
@@ -5471,47 +5899,62 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5471 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5899 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5472 ;; 5900 ;;
5473 5901
5474 hpux10* | hpux11*) 5902 hpux10*)
5475 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 5903 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5476 case "$host_cpu" in 5904 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5477 hppa*64*|ia64*) 5905 else
5906 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5907 fi
5908 if test "$with_gnu_ld" = no; then
5909 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5910 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5911
5912 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5913 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5914
5915 # hardcode_minus_L: Not really in the search PATH,
5916 # but as the default location of the library.
5917 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5918 fi
5919 ;;
5920
5921 hpux11*)
5922 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5923 case $host_cpu in
5924 hppa*64*)
5478 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5925 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5479 ;; 5926 ;;
5927 ia64*)
5928 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5929 ;;
5480 *) 5930 *)
5481 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5931 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5482 ;; 5932 ;;
5483 esac 5933 esac
5484 else 5934 else
5485 case "$host_cpu" in 5935 case $host_cpu in
5486 hppa*64*|ia64*) 5936 hppa*64*)
5487 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 5937 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5938 ;;
5939 ia64*)
5940 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5488 ;; 5941 ;;
5489 *) 5942 *)
5490 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 5943 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5491 ;; 5944 ;;
5492 esac 5945 esac
5493 fi 5946 fi
5494 if test "$with_gnu_ld" = no; then 5947 if test "$with_gnu_ld" = no; then
5495 case "$host_cpu" in 5948 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5496 hppa*64*) 5949 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5497 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 5950
5951 case $host_cpu in
5952 hppa*64*|ia64*)
5498 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 5953 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5499 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5500 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5954 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5501 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5955 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5502 ;; 5956 ;;
5503 ia64*)
5504 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5505 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5506 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5507
5508 # hardcode_minus_L: Not really in the search PATH,
5509 # but as the default location of the library.
5510 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5511 ;;
5512 *) 5957 *)
5513 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5514 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5515 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5958 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5516 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5959 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5517 5960
@@ -5535,7 +5978,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5535 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 5978 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5536 ;; 5979 ;;
5537 5980
5538 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 5981 netbsd* | netbsdelf*-gnu)
5539 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5982 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5540 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 5983 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5541 else 5984 else
@@ -5559,6 +6002,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5559 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6002 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5560 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6003 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5561 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6004 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6005 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5562 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6006 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5563 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6007 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5564 else 6008 else
@@ -5604,7 +6048,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5604 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6048 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5605 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 6049 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5606 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 6050 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5607 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 6051 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
5608 6052
5609 # Both c and cxx compiler support -rpath directly 6053 # Both c and cxx compiler support -rpath directly
5610 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6054 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
@@ -5612,21 +6056,15 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5612 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6056 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5613 ;; 6057 ;;
5614 6058
5615 sco3.2v5*)
5616 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5617 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5618 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5619 runpath_var=LD_RUN_PATH
5620 hardcode_runpath_var=yes
5621 ;;
5622
5623 solaris*) 6059 solaris*)
5624 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' 6060 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5625 if test "$GCC" = yes; then 6061 if test "$GCC" = yes; then
6062 wlarc='${wl}'
5626 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6063 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5627 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6064 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5628 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 6065 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5629 else 6066 else
6067 wlarc=''
5630 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6068 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5631 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6069 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5632 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6070 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
@@ -5635,8 +6073,18 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5635 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6073 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5636 case $host_os in 6074 case $host_os in
5637 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6075 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5638 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 6076 *)
5639 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; 6077 # The compiler driver will combine linker options so we
6078 # cannot just pass the convience library names through
6079 # without $wl, iff we do not link with $LD.
6080 # Luckily, gcc supports the same syntax we need for Sun Studio.
6081 # Supported since Solaris 2.6 (maybe 2.5.1?)
6082 case $wlarc in
6083 '')
6084 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6085 *)
6086 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6087 esac ;;
5640 esac 6088 esac
5641 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6089 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5642 ;; 6090 ;;
@@ -5693,36 +6141,45 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5693 fi 6141 fi
5694 ;; 6142 ;;
5695 6143
5696 sysv4.2uw2*) 6144 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
5697 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6145 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5698 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6146 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5699 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5700 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6147 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5701 hardcode_runpath_var=yes 6148 runpath_var='LD_RUN_PATH'
5702 runpath_var=LD_RUN_PATH
5703 ;;
5704 6149
5705 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
5706 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
5707 if test "$GCC" = yes; then 6150 if test "$GCC" = yes; then
5708 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6151 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6152 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5709 else 6153 else
5710 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6154 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6155 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5711 fi 6156 fi
5712 runpath_var='LD_RUN_PATH'
5713 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5714 ;; 6157 ;;
5715 6158
5716 sysv5*) 6159 sysv5* | sco3.2v5* | sco5v6*)
5717 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' 6160 # Note: We can NOT use -z defs as we might desire, because we do not
5718 # $CC -shared without GNU ld will not create a library from C++ 6161 # link with -lc, and that would cause any symbols used from libc to
5719 # object files and a static libstdc++, better avoid it by now 6162 # always be unresolved, which means just about no library would
5720 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6163 # ever link correctly. If we're not using GNU ld we use -z text
5721 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6164 # though, which does catch some bad symbols but isn't as heavy-handed
5722 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6165 # as -z defs.
5723 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 6166 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6167 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6168 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5724 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6169 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6170 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6171 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6172 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6173 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5725 runpath_var='LD_RUN_PATH' 6174 runpath_var='LD_RUN_PATH'
6175
6176 if test "$GCC" = yes; then
6177 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6178 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6179 else
6180 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6181 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6182 fi
5726 ;; 6183 ;;
5727 6184
5728 uts4*) 6185 uts4*)
@@ -5740,11 +6197,6 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
5740AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 6197AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5741test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 6198test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5742 6199
5743variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5744if test "$GCC" = yes; then
5745 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5746fi
5747
5748# 6200#
5749# Do we need to explicitly link libc? 6201# Do we need to explicitly link libc?
5750# 6202#
@@ -5772,6 +6224,7 @@ x|xyes)
5772 libobjs=conftest.$ac_objext 6224 libobjs=conftest.$ac_objext
5773 deplibs= 6225 deplibs=
5774 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 6226 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6227 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5775 compiler_flags=-v 6228 compiler_flags=-v
5776 linker_flags=-v 6229 linker_flags=-v
5777 verstring= 6230 verstring=
@@ -5897,7 +6350,7 @@ lt_ac_count=0
5897# Add /usr/xpg4/bin/sed as it is typically found on Solaris 6350# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5898# along with /bin/sed that truncates output. 6351# along with /bin/sed that truncates output.
5899for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 6352for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5900 test ! -f $lt_ac_sed && break 6353 test ! -f $lt_ac_sed && continue
5901 cat /dev/null > conftest.in 6354 cat /dev/null > conftest.in
5902 lt_ac_count=0 6355 lt_ac_count=0
5903 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 6356 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
@@ -5922,14 +6375,13 @@ for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5922 fi 6375 fi
5923 done 6376 done
5924done 6377done
5925SED=$lt_cv_path_SED
5926]) 6378])
6379SED=$lt_cv_path_SED
5927AC_MSG_RESULT([$SED]) 6380AC_MSG_RESULT([$SED])
5928]) 6381])
5929 6382
5930 6383
5931# serial 6 AC_LIB_LTDL 6384# serial 7 AC_LIB_LTDL
5932# Debian $Rev: 214 $
5933 6385
5934# AC_WITH_LTDL 6386# AC_WITH_LTDL
5935# ------------ 6387# ------------
@@ -5966,7 +6418,7 @@ fi
5966if test "x$with_included_ltdl" = xno; then 6418if test "x$with_included_ltdl" = xno; then
5967 # If the included ltdl is not to be used. then Use the 6419 # If the included ltdl is not to be used. then Use the
5968 # preinstalled libltdl we found. 6420 # preinstalled libltdl we found.
5969 AC_DEFINE([HAVE_LTDL], 1, 6421 AC_DEFINE([HAVE_LTDL], [1],
5970 [Define this if a modern libltdl is already installed]) 6422 [Define this if a modern libltdl is already installed])
5971 LIBLTDL=-lltdl 6423 LIBLTDL=-lltdl
5972fi 6424fi
@@ -6023,7 +6475,7 @@ AC_DEFUN([AC_LTDL_ENABLE_INSTALL],
6023 6475
6024AM_CONDITIONAL(INSTALL_LTDL, test x"${enable_ltdl_install-no}" != xno) 6476AM_CONDITIONAL(INSTALL_LTDL, test x"${enable_ltdl_install-no}" != xno)
6025AM_CONDITIONAL(CONVENIENCE_LTDL, test x"${enable_ltdl_convenience-no}" != xno) 6477AM_CONDITIONAL(CONVENIENCE_LTDL, test x"${enable_ltdl_convenience-no}" != xno)
6026])])# AC_LTDL_ENABLE_INSTALL 6478])# AC_LTDL_ENABLE_INSTALL
6027 6479
6028 6480
6029# AC_LTDL_SYS_DLOPEN_DEPLIBS 6481# AC_LTDL_SYS_DLOPEN_DEPLIBS
@@ -6050,14 +6502,17 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
6050 # Assuming the user has installed a libdl from somewhere, this is true 6502 # Assuming the user has installed a libdl from somewhere, this is true
6051 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 6503 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
6052 libltdl_cv_sys_dlopen_deplibs=yes 6504 libltdl_cv_sys_dlopen_deplibs=yes
6053 ;; 6505 ;;
6054 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) 6506 gnu* | linux* | k*bsd*-gnu)
6055 # GNU and its variants, using gnu ld.so (Glibc) 6507 # GNU and its variants, using gnu ld.so (Glibc)
6056 libltdl_cv_sys_dlopen_deplibs=yes 6508 libltdl_cv_sys_dlopen_deplibs=yes
6057 ;; 6509 ;;
6058 hpux10*|hpux11*) 6510 hpux10*|hpux11*)
6059 libltdl_cv_sys_dlopen_deplibs=yes 6511 libltdl_cv_sys_dlopen_deplibs=yes
6060 ;; 6512 ;;
6513 interix*)
6514 libltdl_cv_sys_dlopen_deplibs=yes
6515 ;;
6061 irix[[12345]]*|irix6.[[01]]*) 6516 irix[[12345]]*|irix6.[[01]]*)
6062 # Catch all versions of IRIX before 6.2, and indicate that we don't 6517 # Catch all versions of IRIX before 6.2, and indicate that we don't
6063 # know how it worked for any of those versions. 6518 # know how it worked for any of those versions.
@@ -6099,6 +6554,9 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
6099 solaris*) 6554 solaris*)
6100 libltdl_cv_sys_dlopen_deplibs=yes 6555 libltdl_cv_sys_dlopen_deplibs=yes
6101 ;; 6556 ;;
6557 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6558 libltdl_cv_sys_dlopen_deplibs=yes
6559 ;;
6102 esac 6560 esac
6103 ]) 6561 ])
6104if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then 6562if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
@@ -6119,7 +6577,7 @@ module=yes
6119eval libltdl_cv_shlibext=$shrext_cmds 6577eval libltdl_cv_shlibext=$shrext_cmds
6120 ]) 6578 ])
6121if test -n "$libltdl_cv_shlibext"; then 6579if test -n "$libltdl_cv_shlibext"; then
6122 AC_DEFINE_UNQUOTED(LTDL_SHLIB_EXT, "$libltdl_cv_shlibext", 6580 AC_DEFINE_UNQUOTED([LTDL_SHLIB_EXT], ["$libltdl_cv_shlibext"],
6123 [Define to the extension used for shared libraries, say, ".so".]) 6581 [Define to the extension used for shared libraries, say, ".so".])
6124fi 6582fi
6125])# AC_LTDL_SHLIBEXT 6583])# AC_LTDL_SHLIBEXT
@@ -6132,7 +6590,7 @@ AC_DEFUN([AC_LTDL_SHLIBPATH],
6132AC_CACHE_CHECK([which variable specifies run-time library path], 6590AC_CACHE_CHECK([which variable specifies run-time library path],
6133 [libltdl_cv_shlibpath_var], [libltdl_cv_shlibpath_var="$shlibpath_var"]) 6591 [libltdl_cv_shlibpath_var], [libltdl_cv_shlibpath_var="$shlibpath_var"])
6134if test -n "$libltdl_cv_shlibpath_var"; then 6592if test -n "$libltdl_cv_shlibpath_var"; then
6135 AC_DEFINE_UNQUOTED(LTDL_SHLIBPATH_VAR, "$libltdl_cv_shlibpath_var", 6593 AC_DEFINE_UNQUOTED([LTDL_SHLIBPATH_VAR], ["$libltdl_cv_shlibpath_var"],
6136 [Define to the name of the environment variable that determines the dynamic library search path.]) 6594 [Define to the name of the environment variable that determines the dynamic library search path.])
6137fi 6595fi
6138])# AC_LTDL_SHLIBPATH 6596])# AC_LTDL_SHLIBPATH
@@ -6154,7 +6612,7 @@ if test -n "$libltdl_cv_sys_search_path"; then
6154 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" 6612 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
6155 fi 6613 fi
6156 done 6614 done
6157 AC_DEFINE_UNQUOTED(LTDL_SYSSEARCHPATH, "$sys_search_path", 6615 AC_DEFINE_UNQUOTED([LTDL_SYSSEARCHPATH], ["$sys_search_path"],
6158 [Define to the system default library search path.]) 6616 [Define to the system default library search path.])
6159fi 6617fi
6160])# AC_LTDL_SYSSEARCHPATH 6618])# AC_LTDL_SYSSEARCHPATH
@@ -6180,7 +6638,7 @@ AC_DEFUN([AC_LTDL_OBJDIR],
6180 rmdir .libs 2>/dev/null 6638 rmdir .libs 2>/dev/null
6181 fi 6639 fi
6182 ]) 6640 ])
6183AC_DEFINE_UNQUOTED(LTDL_OBJDIR, "$libltdl_cv_objdir/", 6641AC_DEFINE_UNQUOTED([LTDL_OBJDIR], ["$libltdl_cv_objdir/"],
6184 [Define to the sub-directory in which libtool stores uninstalled libraries.]) 6642 [Define to the sub-directory in which libtool stores uninstalled libraries.])
6185])# AC_LTDL_OBJDIR 6643])# AC_LTDL_OBJDIR
6186 6644
@@ -6198,7 +6656,7 @@ AC_CACHE_CHECK([whether libtool supports -dlopen/-dlpreopen],
6198 fi 6656 fi
6199 ]) 6657 ])
6200if test x"$libltdl_cv_preloaded_symbols" = xyes; then 6658if test x"$libltdl_cv_preloaded_symbols" = xyes; then
6201 AC_DEFINE(HAVE_PRELOADED_SYMBOLS, 1, 6659 AC_DEFINE([HAVE_PRELOADED_SYMBOLS], [1],
6202 [Define if libtool can extract symbol lists from object files.]) 6660 [Define if libtool can extract symbol lists from object files.])
6203fi 6661fi
6204])# AC_LTDL_DLPREOPEN 6662])# AC_LTDL_DLPREOPEN
@@ -6317,7 +6775,7 @@ if test x"$ac_cv_sys_symbol_underscore" = xyes; then
6317fi 6775fi
6318 6776
6319if test x"$libltdl_cv_need_uscore" = xyes; then 6777if test x"$libltdl_cv_need_uscore" = xyes; then
6320 AC_DEFINE(NEED_USCORE, 1, 6778 AC_DEFINE([NEED_USCORE], [1],
6321 [Define if dlsym() requires a leading underscore in symbol names.]) 6779 [Define if dlsym() requires a leading underscore in symbol names.])
6322fi 6780fi
6323])# AC_LTDL_DLSYM_USCORE 6781])# AC_LTDL_DLSYM_USCORE
diff --git a/libltdl/config.guess b/libltdl/config.guess
index 45bee139..396482d6 100755
--- a/libltdl/config.guess
+++ b/libltdl/config.guess
@@ -1,9 +1,10 @@
1#! /bin/sh 1#! /bin/sh
2# Attempt to guess a canonical system name. 2# Attempt to guess a canonical system name.
3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 4# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
5# Inc.
5 6
6timestamp='2005-04-22' 7timestamp='2006-07-02'
7 8
8# This file is free software; you can redistribute it and/or modify it 9# This file is free software; you can redistribute it and/or modify it
9# under the terms of the GNU General Public License as published by 10# under the terms of the GNU General Public License as published by
@@ -17,13 +18,15 @@ timestamp='2005-04-22'
17# 18#
18# You should have received a copy of the GNU General Public License 19# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software 20# along with this program; if not, write to the Free Software
20# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 21# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
22# 02110-1301, USA.
21# 23#
22# As a special exception to the GNU General Public License, if you 24# As a special exception to the GNU General Public License, if you
23# distribute this file as part of a program that contains a 25# distribute this file as part of a program that contains a
24# configuration script generated by Autoconf, you may include it under 26# configuration script generated by Autoconf, you may include it under
25# the same distribution terms that you use for the rest of that program. 27# the same distribution terms that you use for the rest of that program.
26 28
29
27# Originally written by Per Bothner <per@bothner.com>. 30# Originally written by Per Bothner <per@bothner.com>.
28# Please send patches to <config-patches@gnu.org>. Submit a context 31# Please send patches to <config-patches@gnu.org>. Submit a context
29# diff and a properly formatted ChangeLog entry. 32# diff and a properly formatted ChangeLog entry.
@@ -66,11 +69,11 @@ Try \`$me --help' for more information."
66while test $# -gt 0 ; do 69while test $# -gt 0 ; do
67 case $1 in 70 case $1 in
68 --time-stamp | --time* | -t ) 71 --time-stamp | --time* | -t )
69 echo "$timestamp" ; exit 0 ;; 72 echo "$timestamp" ; exit ;;
70 --version | -v ) 73 --version | -v )
71 echo "$version" ; exit 0 ;; 74 echo "$version" ; exit ;;
72 --help | --h* | -h ) 75 --help | --h* | -h )
73 echo "$usage"; exit 0 ;; 76 echo "$usage"; exit ;;
74 -- ) # Stop option processing 77 -- ) # Stop option processing
75 shift; break ;; 78 shift; break ;;
76 - ) # Use stdin as input. 79 - ) # Use stdin as input.
@@ -104,7 +107,7 @@ set_cc_for_build='
104trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 107trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
105trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 108trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
106: ${TMPDIR=/tmp} ; 109: ${TMPDIR=/tmp} ;
107 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 110 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
108 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 111 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
109 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 112 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
110 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 113 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
@@ -123,7 +126,7 @@ case $CC_FOR_BUILD,$HOST_CC,$CC in
123 ;; 126 ;;
124 ,,*) CC_FOR_BUILD=$CC ;; 127 ,,*) CC_FOR_BUILD=$CC ;;
125 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 128 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
126esac ;' 129esac ; set_cc_for_build= ;'
127 130
128# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 131# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
129# (ghazi@noc.rutgers.edu 1994-08-24) 132# (ghazi@noc.rutgers.edu 1994-08-24)
@@ -196,55 +199,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
196 # contains redundant information, the shorter form: 199 # contains redundant information, the shorter form:
197 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 200 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
198 echo "${machine}-${os}${release}" 201 echo "${machine}-${os}${release}"
199 exit 0 ;; 202 exit ;;
200 amd64:OpenBSD:*:*)
201 echo x86_64-unknown-openbsd${UNAME_RELEASE}
202 exit 0 ;;
203 amiga:OpenBSD:*:*)
204 echo m68k-unknown-openbsd${UNAME_RELEASE}
205 exit 0 ;;
206 cats:OpenBSD:*:*)
207 echo arm-unknown-openbsd${UNAME_RELEASE}
208 exit 0 ;;
209 hp300:OpenBSD:*:*)
210 echo m68k-unknown-openbsd${UNAME_RELEASE}
211 exit 0 ;;
212 luna88k:OpenBSD:*:*)
213 echo m88k-unknown-openbsd${UNAME_RELEASE}
214 exit 0 ;;
215 mac68k:OpenBSD:*:*)
216 echo m68k-unknown-openbsd${UNAME_RELEASE}
217 exit 0 ;;
218 macppc:OpenBSD:*:*)
219 echo powerpc-unknown-openbsd${UNAME_RELEASE}
220 exit 0 ;;
221 mvme68k:OpenBSD:*:*)
222 echo m68k-unknown-openbsd${UNAME_RELEASE}
223 exit 0 ;;
224 mvme88k:OpenBSD:*:*)
225 echo m88k-unknown-openbsd${UNAME_RELEASE}
226 exit 0 ;;
227 mvmeppc:OpenBSD:*:*)
228 echo powerpc-unknown-openbsd${UNAME_RELEASE}
229 exit 0 ;;
230 sgi:OpenBSD:*:*)
231 echo mips64-unknown-openbsd${UNAME_RELEASE}
232 exit 0 ;;
233 sun3:OpenBSD:*:*)
234 echo m68k-unknown-openbsd${UNAME_RELEASE}
235 exit 0 ;;
236 *:OpenBSD:*:*) 203 *:OpenBSD:*:*)
237 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} 204 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
238 exit 0 ;; 205 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
206 exit ;;
239 *:ekkoBSD:*:*) 207 *:ekkoBSD:*:*)
240 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 208 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
241 exit 0 ;; 209 exit ;;
210 *:SolidBSD:*:*)
211 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
212 exit ;;
242 macppc:MirBSD:*:*) 213 macppc:MirBSD:*:*)
243 echo powerppc-unknown-mirbsd${UNAME_RELEASE} 214 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
244 exit 0 ;; 215 exit ;;
245 *:MirBSD:*:*) 216 *:MirBSD:*:*)
246 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 217 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
247 exit 0 ;; 218 exit ;;
248 alpha:OSF1:*:*) 219 alpha:OSF1:*:*)
249 case $UNAME_RELEASE in 220 case $UNAME_RELEASE in
250 *4.0) 221 *4.0)
@@ -297,40 +268,43 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
297 # A Xn.n version is an unreleased experimental baselevel. 268 # A Xn.n version is an unreleased experimental baselevel.
298 # 1.2 uses "1.2" for uname -r. 269 # 1.2 uses "1.2" for uname -r.
299 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 270 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
300 exit 0 ;; 271 exit ;;
301 Alpha\ *:Windows_NT*:*) 272 Alpha\ *:Windows_NT*:*)
302 # How do we know it's Interix rather than the generic POSIX subsystem? 273 # How do we know it's Interix rather than the generic POSIX subsystem?
303 # Should we change UNAME_MACHINE based on the output of uname instead 274 # Should we change UNAME_MACHINE based on the output of uname instead
304 # of the specific Alpha model? 275 # of the specific Alpha model?
305 echo alpha-pc-interix 276 echo alpha-pc-interix
306 exit 0 ;; 277 exit ;;
307 21064:Windows_NT:50:3) 278 21064:Windows_NT:50:3)
308 echo alpha-dec-winnt3.5 279 echo alpha-dec-winnt3.5
309 exit 0 ;; 280 exit ;;
310 Amiga*:UNIX_System_V:4.0:*) 281 Amiga*:UNIX_System_V:4.0:*)
311 echo m68k-unknown-sysv4 282 echo m68k-unknown-sysv4
312 exit 0;; 283 exit ;;
313 *:[Aa]miga[Oo][Ss]:*:*) 284 *:[Aa]miga[Oo][Ss]:*:*)
314 echo ${UNAME_MACHINE}-unknown-amigaos 285 echo ${UNAME_MACHINE}-unknown-amigaos
315 exit 0 ;; 286 exit ;;
316 *:[Mm]orph[Oo][Ss]:*:*) 287 *:[Mm]orph[Oo][Ss]:*:*)
317 echo ${UNAME_MACHINE}-unknown-morphos 288 echo ${UNAME_MACHINE}-unknown-morphos
318 exit 0 ;; 289 exit ;;
319 *:OS/390:*:*) 290 *:OS/390:*:*)
320 echo i370-ibm-openedition 291 echo i370-ibm-openedition
321 exit 0 ;; 292 exit ;;
322 *:z/VM:*:*) 293 *:z/VM:*:*)
323 echo s390-ibm-zvmoe 294 echo s390-ibm-zvmoe
324 exit 0 ;; 295 exit ;;
325 *:OS400:*:*) 296 *:OS400:*:*)
326 echo powerpc-ibm-os400 297 echo powerpc-ibm-os400
327 exit 0 ;; 298 exit ;;
328 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 299 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
329 echo arm-acorn-riscix${UNAME_RELEASE} 300 echo arm-acorn-riscix${UNAME_RELEASE}
330 exit 0;; 301 exit ;;
302 arm:riscos:*:*|arm:RISCOS:*:*)
303 echo arm-unknown-riscos
304 exit ;;
331 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 305 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
332 echo hppa1.1-hitachi-hiuxmpp 306 echo hppa1.1-hitachi-hiuxmpp
333 exit 0;; 307 exit ;;
334 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 308 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
335 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 309 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
336 if test "`(/bin/universe) 2>/dev/null`" = att ; then 310 if test "`(/bin/universe) 2>/dev/null`" = att ; then
@@ -338,32 +312,32 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
338 else 312 else
339 echo pyramid-pyramid-bsd 313 echo pyramid-pyramid-bsd
340 fi 314 fi
341 exit 0 ;; 315 exit ;;
342 NILE*:*:*:dcosx) 316 NILE*:*:*:dcosx)
343 echo pyramid-pyramid-svr4 317 echo pyramid-pyramid-svr4
344 exit 0 ;; 318 exit ;;
345 DRS?6000:unix:4.0:6*) 319 DRS?6000:unix:4.0:6*)
346 echo sparc-icl-nx6 320 echo sparc-icl-nx6
347 exit 0 ;; 321 exit ;;
348 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 322 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
349 case `/usr/bin/uname -p` in 323 case `/usr/bin/uname -p` in
350 sparc) echo sparc-icl-nx7 && exit 0 ;; 324 sparc) echo sparc-icl-nx7; exit ;;
351 esac ;; 325 esac ;;
352 sun4H:SunOS:5.*:*) 326 sun4H:SunOS:5.*:*)
353 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 327 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
354 exit 0 ;; 328 exit ;;
355 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 329 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
356 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 330 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
357 exit 0 ;; 331 exit ;;
358 i86pc:SunOS:5.*:*) 332 i86pc:SunOS:5.*:*)
359 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 333 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
360 exit 0 ;; 334 exit ;;
361 sun4*:SunOS:6*:*) 335 sun4*:SunOS:6*:*)
362 # According to config.sub, this is the proper way to canonicalize 336 # According to config.sub, this is the proper way to canonicalize
363 # SunOS6. Hard to guess exactly what SunOS6 will be like, but 337 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
364 # it's likely to be more like Solaris than SunOS4. 338 # it's likely to be more like Solaris than SunOS4.
365 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 339 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
366 exit 0 ;; 340 exit ;;
367 sun4*:SunOS:*:*) 341 sun4*:SunOS:*:*)
368 case "`/usr/bin/arch -k`" in 342 case "`/usr/bin/arch -k`" in
369 Series*|S4*) 343 Series*|S4*)
@@ -372,10 +346,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
372 esac 346 esac
373 # Japanese Language versions have a version number like `4.1.3-JL'. 347 # Japanese Language versions have a version number like `4.1.3-JL'.
374 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 348 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
375 exit 0 ;; 349 exit ;;
376 sun3*:SunOS:*:*) 350 sun3*:SunOS:*:*)
377 echo m68k-sun-sunos${UNAME_RELEASE} 351 echo m68k-sun-sunos${UNAME_RELEASE}
378 exit 0 ;; 352 exit ;;
379 sun*:*:4.2BSD:*) 353 sun*:*:4.2BSD:*)
380 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 354 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
381 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 355 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
@@ -387,10 +361,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
387 echo sparc-sun-sunos${UNAME_RELEASE} 361 echo sparc-sun-sunos${UNAME_RELEASE}
388 ;; 362 ;;
389 esac 363 esac
390 exit 0 ;; 364 exit ;;
391 aushp:SunOS:*:*) 365 aushp:SunOS:*:*)
392 echo sparc-auspex-sunos${UNAME_RELEASE} 366 echo sparc-auspex-sunos${UNAME_RELEASE}
393 exit 0 ;; 367 exit ;;
394 # The situation for MiNT is a little confusing. The machine name 368 # The situation for MiNT is a little confusing. The machine name
395 # can be virtually everything (everything which is not 369 # can be virtually everything (everything which is not
396 # "atarist" or "atariste" at least should have a processor 370 # "atarist" or "atariste" at least should have a processor
@@ -401,40 +375,40 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
401 # be no problem. 375 # be no problem.
402 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 376 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
403 echo m68k-atari-mint${UNAME_RELEASE} 377 echo m68k-atari-mint${UNAME_RELEASE}
404 exit 0 ;; 378 exit ;;
405 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 379 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
406 echo m68k-atari-mint${UNAME_RELEASE} 380 echo m68k-atari-mint${UNAME_RELEASE}
407 exit 0 ;; 381 exit ;;
408 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 382 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
409 echo m68k-atari-mint${UNAME_RELEASE} 383 echo m68k-atari-mint${UNAME_RELEASE}
410 exit 0 ;; 384 exit ;;
411 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 385 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
412 echo m68k-milan-mint${UNAME_RELEASE} 386 echo m68k-milan-mint${UNAME_RELEASE}
413 exit 0 ;; 387 exit ;;
414 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 388 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
415 echo m68k-hades-mint${UNAME_RELEASE} 389 echo m68k-hades-mint${UNAME_RELEASE}
416 exit 0 ;; 390 exit ;;
417 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 391 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
418 echo m68k-unknown-mint${UNAME_RELEASE} 392 echo m68k-unknown-mint${UNAME_RELEASE}
419 exit 0 ;; 393 exit ;;
420 m68k:machten:*:*) 394 m68k:machten:*:*)
421 echo m68k-apple-machten${UNAME_RELEASE} 395 echo m68k-apple-machten${UNAME_RELEASE}
422 exit 0 ;; 396 exit ;;
423 powerpc:machten:*:*) 397 powerpc:machten:*:*)
424 echo powerpc-apple-machten${UNAME_RELEASE} 398 echo powerpc-apple-machten${UNAME_RELEASE}
425 exit 0 ;; 399 exit ;;
426 RISC*:Mach:*:*) 400 RISC*:Mach:*:*)
427 echo mips-dec-mach_bsd4.3 401 echo mips-dec-mach_bsd4.3
428 exit 0 ;; 402 exit ;;
429 RISC*:ULTRIX:*:*) 403 RISC*:ULTRIX:*:*)
430 echo mips-dec-ultrix${UNAME_RELEASE} 404 echo mips-dec-ultrix${UNAME_RELEASE}
431 exit 0 ;; 405 exit ;;
432 VAX*:ULTRIX*:*:*) 406 VAX*:ULTRIX*:*:*)
433 echo vax-dec-ultrix${UNAME_RELEASE} 407 echo vax-dec-ultrix${UNAME_RELEASE}
434 exit 0 ;; 408 exit ;;
435 2020:CLIX:*:* | 2430:CLIX:*:*) 409 2020:CLIX:*:* | 2430:CLIX:*:*)
436 echo clipper-intergraph-clix${UNAME_RELEASE} 410 echo clipper-intergraph-clix${UNAME_RELEASE}
437 exit 0 ;; 411 exit ;;
438 mips:*:*:UMIPS | mips:*:*:RISCos) 412 mips:*:*:UMIPS | mips:*:*:RISCos)
439 eval $set_cc_for_build 413 eval $set_cc_for_build
440 sed 's/^ //' << EOF >$dummy.c 414 sed 's/^ //' << EOF >$dummy.c
@@ -458,32 +432,33 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
458 exit (-1); 432 exit (-1);
459 } 433 }
460EOF 434EOF
461 $CC_FOR_BUILD -o $dummy $dummy.c \ 435 $CC_FOR_BUILD -o $dummy $dummy.c &&
462 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 436 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
463 && exit 0 437 SYSTEM_NAME=`$dummy $dummyarg` &&
438 { echo "$SYSTEM_NAME"; exit; }
464 echo mips-mips-riscos${UNAME_RELEASE} 439 echo mips-mips-riscos${UNAME_RELEASE}
465 exit 0 ;; 440 exit ;;
466 Motorola:PowerMAX_OS:*:*) 441 Motorola:PowerMAX_OS:*:*)
467 echo powerpc-motorola-powermax 442 echo powerpc-motorola-powermax
468 exit 0 ;; 443 exit ;;
469 Motorola:*:4.3:PL8-*) 444 Motorola:*:4.3:PL8-*)
470 echo powerpc-harris-powermax 445 echo powerpc-harris-powermax
471 exit 0 ;; 446 exit ;;
472 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 447 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
473 echo powerpc-harris-powermax 448 echo powerpc-harris-powermax
474 exit 0 ;; 449 exit ;;
475 Night_Hawk:Power_UNIX:*:*) 450 Night_Hawk:Power_UNIX:*:*)
476 echo powerpc-harris-powerunix 451 echo powerpc-harris-powerunix
477 exit 0 ;; 452 exit ;;
478 m88k:CX/UX:7*:*) 453 m88k:CX/UX:7*:*)
479 echo m88k-harris-cxux7 454 echo m88k-harris-cxux7
480 exit 0 ;; 455 exit ;;
481 m88k:*:4*:R4*) 456 m88k:*:4*:R4*)
482 echo m88k-motorola-sysv4 457 echo m88k-motorola-sysv4
483 exit 0 ;; 458 exit ;;
484 m88k:*:3*:R3*) 459 m88k:*:3*:R3*)
485 echo m88k-motorola-sysv3 460 echo m88k-motorola-sysv3
486 exit 0 ;; 461 exit ;;
487 AViiON:dgux:*:*) 462 AViiON:dgux:*:*)
488 # DG/UX returns AViiON for all architectures 463 # DG/UX returns AViiON for all architectures
489 UNAME_PROCESSOR=`/usr/bin/uname -p` 464 UNAME_PROCESSOR=`/usr/bin/uname -p`
@@ -499,29 +474,29 @@ EOF
499 else 474 else
500 echo i586-dg-dgux${UNAME_RELEASE} 475 echo i586-dg-dgux${UNAME_RELEASE}
501 fi 476 fi
502 exit 0 ;; 477 exit ;;
503 M88*:DolphinOS:*:*) # DolphinOS (SVR3) 478 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
504 echo m88k-dolphin-sysv3 479 echo m88k-dolphin-sysv3
505 exit 0 ;; 480 exit ;;
506 M88*:*:R3*:*) 481 M88*:*:R3*:*)
507 # Delta 88k system running SVR3 482 # Delta 88k system running SVR3
508 echo m88k-motorola-sysv3 483 echo m88k-motorola-sysv3
509 exit 0 ;; 484 exit ;;
510 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 485 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
511 echo m88k-tektronix-sysv3 486 echo m88k-tektronix-sysv3
512 exit 0 ;; 487 exit ;;
513 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 488 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
514 echo m68k-tektronix-bsd 489 echo m68k-tektronix-bsd
515 exit 0 ;; 490 exit ;;
516 *:IRIX*:*:*) 491 *:IRIX*:*:*)
517 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 492 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
518 exit 0 ;; 493 exit ;;
519 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 494 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
520 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 495 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
521 exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 496 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
522 i*86:AIX:*:*) 497 i*86:AIX:*:*)
523 echo i386-ibm-aix 498 echo i386-ibm-aix
524 exit 0 ;; 499 exit ;;
525 ia64:AIX:*:*) 500 ia64:AIX:*:*)
526 if [ -x /usr/bin/oslevel ] ; then 501 if [ -x /usr/bin/oslevel ] ; then
527 IBM_REV=`/usr/bin/oslevel` 502 IBM_REV=`/usr/bin/oslevel`
@@ -529,7 +504,7 @@ EOF
529 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 504 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
530 fi 505 fi
531 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 506 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
532 exit 0 ;; 507 exit ;;
533 *:AIX:2:3) 508 *:AIX:2:3)
534 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 509 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
535 eval $set_cc_for_build 510 eval $set_cc_for_build
@@ -544,14 +519,18 @@ EOF
544 exit(0); 519 exit(0);
545 } 520 }
546EOF 521EOF
547 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 522 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
548 echo rs6000-ibm-aix3.2.5 523 then
524 echo "$SYSTEM_NAME"
525 else
526 echo rs6000-ibm-aix3.2.5
527 fi
549 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 528 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
550 echo rs6000-ibm-aix3.2.4 529 echo rs6000-ibm-aix3.2.4
551 else 530 else
552 echo rs6000-ibm-aix3.2 531 echo rs6000-ibm-aix3.2
553 fi 532 fi
554 exit 0 ;; 533 exit ;;
555 *:AIX:*:[45]) 534 *:AIX:*:[45])
556 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 535 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
557 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 536 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
@@ -565,28 +544,28 @@ EOF
565 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 544 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
566 fi 545 fi
567 echo ${IBM_ARCH}-ibm-aix${IBM_REV} 546 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
568 exit 0 ;; 547 exit ;;
569 *:AIX:*:*) 548 *:AIX:*:*)
570 echo rs6000-ibm-aix 549 echo rs6000-ibm-aix
571 exit 0 ;; 550 exit ;;
572 ibmrt:4.4BSD:*|romp-ibm:BSD:*) 551 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
573 echo romp-ibm-bsd4.4 552 echo romp-ibm-bsd4.4
574 exit 0 ;; 553 exit ;;
575 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 554 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
576 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 555 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
577 exit 0 ;; # report: romp-ibm BSD 4.3 556 exit ;; # report: romp-ibm BSD 4.3
578 *:BOSX:*:*) 557 *:BOSX:*:*)
579 echo rs6000-bull-bosx 558 echo rs6000-bull-bosx
580 exit 0 ;; 559 exit ;;
581 DPX/2?00:B.O.S.:*:*) 560 DPX/2?00:B.O.S.:*:*)
582 echo m68k-bull-sysv3 561 echo m68k-bull-sysv3
583 exit 0 ;; 562 exit ;;
584 9000/[34]??:4.3bsd:1.*:*) 563 9000/[34]??:4.3bsd:1.*:*)
585 echo m68k-hp-bsd 564 echo m68k-hp-bsd
586 exit 0 ;; 565 exit ;;
587 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 566 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
588 echo m68k-hp-bsd4.4 567 echo m68k-hp-bsd4.4
589 exit 0 ;; 568 exit ;;
590 9000/[34678]??:HP-UX:*:*) 569 9000/[34678]??:HP-UX:*:*)
591 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 570 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
592 case "${UNAME_MACHINE}" in 571 case "${UNAME_MACHINE}" in
@@ -648,9 +627,19 @@ EOF
648 esac 627 esac
649 if [ ${HP_ARCH} = "hppa2.0w" ] 628 if [ ${HP_ARCH} = "hppa2.0w" ]
650 then 629 then
651 # avoid double evaluation of $set_cc_for_build 630 eval $set_cc_for_build
652 test -n "$CC_FOR_BUILD" || eval $set_cc_for_build 631
653 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null 632 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
633 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
634 # generating 64-bit code. GNU and HP use different nomenclature:
635 #
636 # $ CC_FOR_BUILD=cc ./config.guess
637 # => hppa2.0w-hp-hpux11.23
638 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
639 # => hppa64-hp-hpux11.23
640
641 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
642 grep __LP64__ >/dev/null
654 then 643 then
655 HP_ARCH="hppa2.0w" 644 HP_ARCH="hppa2.0w"
656 else 645 else
@@ -658,11 +647,11 @@ EOF
658 fi 647 fi
659 fi 648 fi
660 echo ${HP_ARCH}-hp-hpux${HPUX_REV} 649 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
661 exit 0 ;; 650 exit ;;
662 ia64:HP-UX:*:*) 651 ia64:HP-UX:*:*)
663 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 652 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
664 echo ia64-hp-hpux${HPUX_REV} 653 echo ia64-hp-hpux${HPUX_REV}
665 exit 0 ;; 654 exit ;;
666 3050*:HI-UX:*:*) 655 3050*:HI-UX:*:*)
667 eval $set_cc_for_build 656 eval $set_cc_for_build
668 sed 's/^ //' << EOF >$dummy.c 657 sed 's/^ //' << EOF >$dummy.c
@@ -690,161 +679,179 @@ EOF
690 exit (0); 679 exit (0);
691 } 680 }
692EOF 681EOF
693 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 682 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
683 { echo "$SYSTEM_NAME"; exit; }
694 echo unknown-hitachi-hiuxwe2 684 echo unknown-hitachi-hiuxwe2
695 exit 0 ;; 685 exit ;;
696 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 686 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
697 echo hppa1.1-hp-bsd 687 echo hppa1.1-hp-bsd
698 exit 0 ;; 688 exit ;;
699 9000/8??:4.3bsd:*:*) 689 9000/8??:4.3bsd:*:*)
700 echo hppa1.0-hp-bsd 690 echo hppa1.0-hp-bsd
701 exit 0 ;; 691 exit ;;
702 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 692 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
703 echo hppa1.0-hp-mpeix 693 echo hppa1.0-hp-mpeix
704 exit 0 ;; 694 exit ;;
705 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 695 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
706 echo hppa1.1-hp-osf 696 echo hppa1.1-hp-osf
707 exit 0 ;; 697 exit ;;
708 hp8??:OSF1:*:*) 698 hp8??:OSF1:*:*)
709 echo hppa1.0-hp-osf 699 echo hppa1.0-hp-osf
710 exit 0 ;; 700 exit ;;
711 i*86:OSF1:*:*) 701 i*86:OSF1:*:*)
712 if [ -x /usr/sbin/sysversion ] ; then 702 if [ -x /usr/sbin/sysversion ] ; then
713 echo ${UNAME_MACHINE}-unknown-osf1mk 703 echo ${UNAME_MACHINE}-unknown-osf1mk
714 else 704 else
715 echo ${UNAME_MACHINE}-unknown-osf1 705 echo ${UNAME_MACHINE}-unknown-osf1
716 fi 706 fi
717 exit 0 ;; 707 exit ;;
718 parisc*:Lites*:*:*) 708 parisc*:Lites*:*:*)
719 echo hppa1.1-hp-lites 709 echo hppa1.1-hp-lites
720 exit 0 ;; 710 exit ;;
721 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 711 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
722 echo c1-convex-bsd 712 echo c1-convex-bsd
723 exit 0 ;; 713 exit ;;
724 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 714 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
725 if getsysinfo -f scalar_acc 715 if getsysinfo -f scalar_acc
726 then echo c32-convex-bsd 716 then echo c32-convex-bsd
727 else echo c2-convex-bsd 717 else echo c2-convex-bsd
728 fi 718 fi
729 exit 0 ;; 719 exit ;;
730 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 720 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
731 echo c34-convex-bsd 721 echo c34-convex-bsd
732 exit 0 ;; 722 exit ;;
733 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 723 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
734 echo c38-convex-bsd 724 echo c38-convex-bsd
735 exit 0 ;; 725 exit ;;
736 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 726 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
737 echo c4-convex-bsd 727 echo c4-convex-bsd
738 exit 0 ;; 728 exit ;;
739 CRAY*Y-MP:*:*:*) 729 CRAY*Y-MP:*:*:*)
740 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 730 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
741 exit 0 ;; 731 exit ;;
742 CRAY*[A-Z]90:*:*:*) 732 CRAY*[A-Z]90:*:*:*)
743 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 733 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
744 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 734 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
745 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 735 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
746 -e 's/\.[^.]*$/.X/' 736 -e 's/\.[^.]*$/.X/'
747 exit 0 ;; 737 exit ;;
748 CRAY*TS:*:*:*) 738 CRAY*TS:*:*:*)
749 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 739 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
750 exit 0 ;; 740 exit ;;
751 CRAY*T3E:*:*:*) 741 CRAY*T3E:*:*:*)
752 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 742 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
753 exit 0 ;; 743 exit ;;
754 CRAY*SV1:*:*:*) 744 CRAY*SV1:*:*:*)
755 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 745 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
756 exit 0 ;; 746 exit ;;
757 *:UNICOS/mp:*:*) 747 *:UNICOS/mp:*:*)
758 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 748 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
759 exit 0 ;; 749 exit ;;
760 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 750 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
761 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 751 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
762 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 752 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
763 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 753 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
764 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 754 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
765 exit 0 ;; 755 exit ;;
766 5000:UNIX_System_V:4.*:*) 756 5000:UNIX_System_V:4.*:*)
767 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 757 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
768 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 758 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
769 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 759 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
770 exit 0 ;; 760 exit ;;
771 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 761 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
772 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 762 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
773 exit 0 ;; 763 exit ;;
774 sparc*:BSD/OS:*:*) 764 sparc*:BSD/OS:*:*)
775 echo sparc-unknown-bsdi${UNAME_RELEASE} 765 echo sparc-unknown-bsdi${UNAME_RELEASE}
776 exit 0 ;; 766 exit ;;
777 *:BSD/OS:*:*) 767 *:BSD/OS:*:*)
778 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 768 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
779 exit 0 ;; 769 exit ;;
780 *:FreeBSD:*:*) 770 *:FreeBSD:*:*)
781 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 771 case ${UNAME_MACHINE} in
782 exit 0 ;; 772 pc98)
773 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
774 amd64)
775 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
776 *)
777 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
778 esac
779 exit ;;
783 i*:CYGWIN*:*) 780 i*:CYGWIN*:*)
784 echo ${UNAME_MACHINE}-pc-cygwin 781 echo ${UNAME_MACHINE}-pc-cygwin
785 exit 0 ;; 782 exit ;;
786 i*:MINGW*:*) 783 i*:MINGW*:*)
787 echo ${UNAME_MACHINE}-pc-mingw32 784 echo ${UNAME_MACHINE}-pc-mingw32
788 exit 0 ;; 785 exit ;;
786 i*:windows32*:*)
787 # uname -m includes "-pc" on this system.
788 echo ${UNAME_MACHINE}-mingw32
789 exit ;;
789 i*:PW*:*) 790 i*:PW*:*)
790 echo ${UNAME_MACHINE}-pc-pw32 791 echo ${UNAME_MACHINE}-pc-pw32
791 exit 0 ;; 792 exit ;;
792 x86:Interix*:[34]*) 793 x86:Interix*:[3456]*)
793 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' 794 echo i586-pc-interix${UNAME_RELEASE}
794 exit 0 ;; 795 exit ;;
796 EM64T:Interix*:[3456]*)
797 echo x86_64-unknown-interix${UNAME_RELEASE}
798 exit ;;
795 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 799 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
796 echo i${UNAME_MACHINE}-pc-mks 800 echo i${UNAME_MACHINE}-pc-mks
797 exit 0 ;; 801 exit ;;
798 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 802 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
799 # How do we know it's Interix rather than the generic POSIX subsystem? 803 # How do we know it's Interix rather than the generic POSIX subsystem?
800 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 804 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
801 # UNAME_MACHINE based on the output of uname instead of i386? 805 # UNAME_MACHINE based on the output of uname instead of i386?
802 echo i586-pc-interix 806 echo i586-pc-interix
803 exit 0 ;; 807 exit ;;
804 i*:UWIN*:*) 808 i*:UWIN*:*)
805 echo ${UNAME_MACHINE}-pc-uwin 809 echo ${UNAME_MACHINE}-pc-uwin
806 exit 0 ;; 810 exit ;;
807 amd64:CYGWIN*:*:*) 811 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
808 echo x86_64-unknown-cygwin 812 echo x86_64-unknown-cygwin
809 exit 0 ;; 813 exit ;;
810 p*:CYGWIN*:*) 814 p*:CYGWIN*:*)
811 echo powerpcle-unknown-cygwin 815 echo powerpcle-unknown-cygwin
812 exit 0 ;; 816 exit ;;
813 prep*:SunOS:5.*:*) 817 prep*:SunOS:5.*:*)
814 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 818 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
815 exit 0 ;; 819 exit ;;
816 *:GNU:*:*) 820 *:GNU:*:*)
817 # the GNU system 821 # the GNU system
818 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 822 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
819 exit 0 ;; 823 exit ;;
820 *:GNU/*:*:*) 824 *:GNU/*:*:*)
821 # other systems with GNU libc and userland 825 # other systems with GNU libc and userland
822 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 826 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
823 exit 0 ;; 827 exit ;;
824 i*86:Minix:*:*) 828 i*86:Minix:*:*)
825 echo ${UNAME_MACHINE}-pc-minix 829 echo ${UNAME_MACHINE}-pc-minix
826 exit 0 ;; 830 exit ;;
827 arm*:Linux:*:*) 831 arm*:Linux:*:*)
828 echo ${UNAME_MACHINE}-unknown-linux-gnu 832 echo ${UNAME_MACHINE}-unknown-linux-gnu
829 exit 0 ;; 833 exit ;;
834 avr32*:Linux:*:*)
835 echo ${UNAME_MACHINE}-unknown-linux-gnu
836 exit ;;
830 cris:Linux:*:*) 837 cris:Linux:*:*)
831 echo cris-axis-linux-gnu 838 echo cris-axis-linux-gnu
832 exit 0 ;; 839 exit ;;
833 crisv32:Linux:*:*) 840 crisv32:Linux:*:*)
834 echo crisv32-axis-linux-gnu 841 echo crisv32-axis-linux-gnu
835 exit 0 ;; 842 exit ;;
836 frv:Linux:*:*) 843 frv:Linux:*:*)
837 echo frv-unknown-linux-gnu 844 echo frv-unknown-linux-gnu
838 exit 0 ;; 845 exit ;;
839 ia64:Linux:*:*) 846 ia64:Linux:*:*)
840 echo ${UNAME_MACHINE}-unknown-linux-gnu 847 echo ${UNAME_MACHINE}-unknown-linux-gnu
841 exit 0 ;; 848 exit ;;
842 m32r*:Linux:*:*) 849 m32r*:Linux:*:*)
843 echo ${UNAME_MACHINE}-unknown-linux-gnu 850 echo ${UNAME_MACHINE}-unknown-linux-gnu
844 exit 0 ;; 851 exit ;;
845 m68*:Linux:*:*) 852 m68*:Linux:*:*)
846 echo ${UNAME_MACHINE}-unknown-linux-gnu 853 echo ${UNAME_MACHINE}-unknown-linux-gnu
847 exit 0 ;; 854 exit ;;
848 mips:Linux:*:*) 855 mips:Linux:*:*)
849 eval $set_cc_for_build 856 eval $set_cc_for_build
850 sed 's/^ //' << EOF >$dummy.c 857 sed 's/^ //' << EOF >$dummy.c
@@ -861,8 +868,12 @@ EOF
861 #endif 868 #endif
862 #endif 869 #endif
863EOF 870EOF
864 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 871 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
865 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 872 /^CPU/{
873 s: ::g
874 p
875 }'`"
876 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
866 ;; 877 ;;
867 mips64:Linux:*:*) 878 mips64:Linux:*:*)
868 eval $set_cc_for_build 879 eval $set_cc_for_build
@@ -880,15 +891,22 @@ EOF
880 #endif 891 #endif
881 #endif 892 #endif
882EOF 893EOF
883 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 894 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
884 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 895 /^CPU/{
896 s: ::g
897 p
898 }'`"
899 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
885 ;; 900 ;;
901 or32:Linux:*:*)
902 echo or32-unknown-linux-gnu
903 exit ;;
886 ppc:Linux:*:*) 904 ppc:Linux:*:*)
887 echo powerpc-unknown-linux-gnu 905 echo powerpc-unknown-linux-gnu
888 exit 0 ;; 906 exit ;;
889 ppc64:Linux:*:*) 907 ppc64:Linux:*:*)
890 echo powerpc64-unknown-linux-gnu 908 echo powerpc64-unknown-linux-gnu
891 exit 0 ;; 909 exit ;;
892 alpha:Linux:*:*) 910 alpha:Linux:*:*)
893 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 911 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
894 EV5) UNAME_MACHINE=alphaev5 ;; 912 EV5) UNAME_MACHINE=alphaev5 ;;
@@ -902,7 +920,7 @@ EOF
902 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 920 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
903 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 921 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
904 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 922 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
905 exit 0 ;; 923 exit ;;
906 parisc:Linux:*:* | hppa:Linux:*:*) 924 parisc:Linux:*:* | hppa:Linux:*:*)
907 # Look for CPU level 925 # Look for CPU level
908 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 926 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
@@ -910,25 +928,28 @@ EOF
910 PA8*) echo hppa2.0-unknown-linux-gnu ;; 928 PA8*) echo hppa2.0-unknown-linux-gnu ;;
911 *) echo hppa-unknown-linux-gnu ;; 929 *) echo hppa-unknown-linux-gnu ;;
912 esac 930 esac
913 exit 0 ;; 931 exit ;;
914 parisc64:Linux:*:* | hppa64:Linux:*:*) 932 parisc64:Linux:*:* | hppa64:Linux:*:*)
915 echo hppa64-unknown-linux-gnu 933 echo hppa64-unknown-linux-gnu
916 exit 0 ;; 934 exit ;;
917 s390:Linux:*:* | s390x:Linux:*:*) 935 s390:Linux:*:* | s390x:Linux:*:*)
918 echo ${UNAME_MACHINE}-ibm-linux 936 echo ${UNAME_MACHINE}-ibm-linux
919 exit 0 ;; 937 exit ;;
920 sh64*:Linux:*:*) 938 sh64*:Linux:*:*)
921 echo ${UNAME_MACHINE}-unknown-linux-gnu 939 echo ${UNAME_MACHINE}-unknown-linux-gnu
922 exit 0 ;; 940 exit ;;
923 sh*:Linux:*:*) 941 sh*:Linux:*:*)
924 echo ${UNAME_MACHINE}-unknown-linux-gnu 942 echo ${UNAME_MACHINE}-unknown-linux-gnu
925 exit 0 ;; 943 exit ;;
926 sparc:Linux:*:* | sparc64:Linux:*:*) 944 sparc:Linux:*:* | sparc64:Linux:*:*)
927 echo ${UNAME_MACHINE}-unknown-linux-gnu 945 echo ${UNAME_MACHINE}-unknown-linux-gnu
928 exit 0 ;; 946 exit ;;
947 vax:Linux:*:*)
948 echo ${UNAME_MACHINE}-dec-linux-gnu
949 exit ;;
929 x86_64:Linux:*:*) 950 x86_64:Linux:*:*)
930 echo x86_64-unknown-linux-gnu 951 echo x86_64-unknown-linux-gnu
931 exit 0 ;; 952 exit ;;
932 i*86:Linux:*:*) 953 i*86:Linux:*:*)
933 # The BFD linker knows what the default object file format is, so 954 # The BFD linker knows what the default object file format is, so
934 # first see if it will tell us. cd to the root directory to prevent 955 # first see if it will tell us. cd to the root directory to prevent
@@ -946,15 +967,15 @@ EOF
946 ;; 967 ;;
947 a.out-i386-linux) 968 a.out-i386-linux)
948 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 969 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
949 exit 0 ;; 970 exit ;;
950 coff-i386) 971 coff-i386)
951 echo "${UNAME_MACHINE}-pc-linux-gnucoff" 972 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
952 exit 0 ;; 973 exit ;;
953 "") 974 "")
954 # Either a pre-BFD a.out linker (linux-gnuoldld) or 975 # Either a pre-BFD a.out linker (linux-gnuoldld) or
955 # one that does not give us useful --help. 976 # one that does not give us useful --help.
956 echo "${UNAME_MACHINE}-pc-linux-gnuoldld" 977 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
957 exit 0 ;; 978 exit ;;
958 esac 979 esac
959 # Determine whether the default compiler is a.out or elf 980 # Determine whether the default compiler is a.out or elf
960 eval $set_cc_for_build 981 eval $set_cc_for_build
@@ -971,7 +992,7 @@ EOF
971 LIBC=gnulibc1 992 LIBC=gnulibc1
972 # endif 993 # endif
973 #else 994 #else
974 #ifdef __INTEL_COMPILER 995 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
975 LIBC=gnu 996 LIBC=gnu
976 #else 997 #else
977 LIBC=gnuaout 998 LIBC=gnuaout
@@ -981,16 +1002,23 @@ EOF
981 LIBC=dietlibc 1002 LIBC=dietlibc
982 #endif 1003 #endif
983EOF 1004EOF
984 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 1005 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
985 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 1006 /^LIBC/{
986 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 1007 s: ::g
1008 p
1009 }'`"
1010 test x"${LIBC}" != x && {
1011 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1012 exit
1013 }
1014 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
987 ;; 1015 ;;
988 i*86:DYNIX/ptx:4*:*) 1016 i*86:DYNIX/ptx:4*:*)
989 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 1017 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
990 # earlier versions are messed up and put the nodename in both 1018 # earlier versions are messed up and put the nodename in both
991 # sysname and nodename. 1019 # sysname and nodename.
992 echo i386-sequent-sysv4 1020 echo i386-sequent-sysv4
993 exit 0 ;; 1021 exit ;;
994 i*86:UNIX_SV:4.2MP:2.*) 1022 i*86:UNIX_SV:4.2MP:2.*)
995 # Unixware is an offshoot of SVR4, but it has its own version 1023 # Unixware is an offshoot of SVR4, but it has its own version
996 # number series starting with 2... 1024 # number series starting with 2...
@@ -998,27 +1026,27 @@ EOF
998 # I just have to hope. -- rms. 1026 # I just have to hope. -- rms.
999 # Use sysv4.2uw... so that sysv4* matches it. 1027 # Use sysv4.2uw... so that sysv4* matches it.
1000 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 1028 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1001 exit 0 ;; 1029 exit ;;
1002 i*86:OS/2:*:*) 1030 i*86:OS/2:*:*)
1003 # If we were able to find `uname', then EMX Unix compatibility 1031 # If we were able to find `uname', then EMX Unix compatibility
1004 # is probably installed. 1032 # is probably installed.
1005 echo ${UNAME_MACHINE}-pc-os2-emx 1033 echo ${UNAME_MACHINE}-pc-os2-emx
1006 exit 0 ;; 1034 exit ;;
1007 i*86:XTS-300:*:STOP) 1035 i*86:XTS-300:*:STOP)
1008 echo ${UNAME_MACHINE}-unknown-stop 1036 echo ${UNAME_MACHINE}-unknown-stop
1009 exit 0 ;; 1037 exit ;;
1010 i*86:atheos:*:*) 1038 i*86:atheos:*:*)
1011 echo ${UNAME_MACHINE}-unknown-atheos 1039 echo ${UNAME_MACHINE}-unknown-atheos
1012 exit 0 ;; 1040 exit ;;
1013 i*86:syllable:*:*) 1041 i*86:syllable:*:*)
1014 echo ${UNAME_MACHINE}-pc-syllable 1042 echo ${UNAME_MACHINE}-pc-syllable
1015 exit 0 ;; 1043 exit ;;
1016 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) 1044 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1017 echo i386-unknown-lynxos${UNAME_RELEASE} 1045 echo i386-unknown-lynxos${UNAME_RELEASE}
1018 exit 0 ;; 1046 exit ;;
1019 i*86:*DOS:*:*) 1047 i*86:*DOS:*:*)
1020 echo ${UNAME_MACHINE}-pc-msdosdjgpp 1048 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1021 exit 0 ;; 1049 exit ;;
1022 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 1050 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1023 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 1051 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1024 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 1052 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
@@ -1026,15 +1054,16 @@ EOF
1026 else 1054 else
1027 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 1055 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1028 fi 1056 fi
1029 exit 0 ;; 1057 exit ;;
1030 i*86:*:5:[78]*) 1058 i*86:*:5:[678]*)
1059 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1031 case `/bin/uname -X | grep "^Machine"` in 1060 case `/bin/uname -X | grep "^Machine"` in
1032 *486*) UNAME_MACHINE=i486 ;; 1061 *486*) UNAME_MACHINE=i486 ;;
1033 *Pentium) UNAME_MACHINE=i586 ;; 1062 *Pentium) UNAME_MACHINE=i586 ;;
1034 *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 1063 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1035 esac 1064 esac
1036 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 1065 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1037 exit 0 ;; 1066 exit ;;
1038 i*86:*:3.2:*) 1067 i*86:*:3.2:*)
1039 if test -f /usr/options/cb.name; then 1068 if test -f /usr/options/cb.name; then
1040 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 1069 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
@@ -1052,73 +1081,73 @@ EOF
1052 else 1081 else
1053 echo ${UNAME_MACHINE}-pc-sysv32 1082 echo ${UNAME_MACHINE}-pc-sysv32
1054 fi 1083 fi
1055 exit 0 ;; 1084 exit ;;
1056 pc:*:*:*) 1085 pc:*:*:*)
1057 # Left here for compatibility: 1086 # Left here for compatibility:
1058 # uname -m prints for DJGPP always 'pc', but it prints nothing about 1087 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1059 # the processor, so we play safe by assuming i386. 1088 # the processor, so we play safe by assuming i386.
1060 echo i386-pc-msdosdjgpp 1089 echo i386-pc-msdosdjgpp
1061 exit 0 ;; 1090 exit ;;
1062 Intel:Mach:3*:*) 1091 Intel:Mach:3*:*)
1063 echo i386-pc-mach3 1092 echo i386-pc-mach3
1064 exit 0 ;; 1093 exit ;;
1065 paragon:*:*:*) 1094 paragon:*:*:*)
1066 echo i860-intel-osf1 1095 echo i860-intel-osf1
1067 exit 0 ;; 1096 exit ;;
1068 i860:*:4.*:*) # i860-SVR4 1097 i860:*:4.*:*) # i860-SVR4
1069 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 1098 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1070 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 1099 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1071 else # Add other i860-SVR4 vendors below as they are discovered. 1100 else # Add other i860-SVR4 vendors below as they are discovered.
1072 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 1101 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1073 fi 1102 fi
1074 exit 0 ;; 1103 exit ;;
1075 mini*:CTIX:SYS*5:*) 1104 mini*:CTIX:SYS*5:*)
1076 # "miniframe" 1105 # "miniframe"
1077 echo m68010-convergent-sysv 1106 echo m68010-convergent-sysv
1078 exit 0 ;; 1107 exit ;;
1079 mc68k:UNIX:SYSTEM5:3.51m) 1108 mc68k:UNIX:SYSTEM5:3.51m)
1080 echo m68k-convergent-sysv 1109 echo m68k-convergent-sysv
1081 exit 0 ;; 1110 exit ;;
1082 M680?0:D-NIX:5.3:*) 1111 M680?0:D-NIX:5.3:*)
1083 echo m68k-diab-dnix 1112 echo m68k-diab-dnix
1084 exit 0 ;; 1113 exit ;;
1085 M68*:*:R3V[5678]*:*) 1114 M68*:*:R3V[5678]*:*)
1086 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 1115 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1087 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) 1116 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
1088 OS_REL='' 1117 OS_REL=''
1089 test -r /etc/.relid \ 1118 test -r /etc/.relid \
1090 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1119 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1091 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1120 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1092 && echo i486-ncr-sysv4.3${OS_REL} && exit 0 1121 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1093 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1122 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1094 && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; 1123 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1095 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 1124 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1096 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1125 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1097 && echo i486-ncr-sysv4 && exit 0 ;; 1126 && { echo i486-ncr-sysv4; exit; } ;;
1098 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1127 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1099 echo m68k-unknown-lynxos${UNAME_RELEASE} 1128 echo m68k-unknown-lynxos${UNAME_RELEASE}
1100 exit 0 ;; 1129 exit ;;
1101 mc68030:UNIX_System_V:4.*:*) 1130 mc68030:UNIX_System_V:4.*:*)
1102 echo m68k-atari-sysv4 1131 echo m68k-atari-sysv4
1103 exit 0 ;; 1132 exit ;;
1104 TSUNAMI:LynxOS:2.*:*) 1133 TSUNAMI:LynxOS:2.*:*)
1105 echo sparc-unknown-lynxos${UNAME_RELEASE} 1134 echo sparc-unknown-lynxos${UNAME_RELEASE}
1106 exit 0 ;; 1135 exit ;;
1107 rs6000:LynxOS:2.*:*) 1136 rs6000:LynxOS:2.*:*)
1108 echo rs6000-unknown-lynxos${UNAME_RELEASE} 1137 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1109 exit 0 ;; 1138 exit ;;
1110 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) 1139 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1111 echo powerpc-unknown-lynxos${UNAME_RELEASE} 1140 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1112 exit 0 ;; 1141 exit ;;
1113 SM[BE]S:UNIX_SV:*:*) 1142 SM[BE]S:UNIX_SV:*:*)
1114 echo mips-dde-sysv${UNAME_RELEASE} 1143 echo mips-dde-sysv${UNAME_RELEASE}
1115 exit 0 ;; 1144 exit ;;
1116 RM*:ReliantUNIX-*:*:*) 1145 RM*:ReliantUNIX-*:*:*)
1117 echo mips-sni-sysv4 1146 echo mips-sni-sysv4
1118 exit 0 ;; 1147 exit ;;
1119 RM*:SINIX-*:*:*) 1148 RM*:SINIX-*:*:*)
1120 echo mips-sni-sysv4 1149 echo mips-sni-sysv4
1121 exit 0 ;; 1150 exit ;;
1122 *:SINIX-*:*:*) 1151 *:SINIX-*:*:*)
1123 if uname -p 2>/dev/null >/dev/null ; then 1152 if uname -p 2>/dev/null >/dev/null ; then
1124 UNAME_MACHINE=`(uname -p) 2>/dev/null` 1153 UNAME_MACHINE=`(uname -p) 2>/dev/null`
@@ -1126,73 +1155,72 @@ EOF
1126 else 1155 else
1127 echo ns32k-sni-sysv 1156 echo ns32k-sni-sysv
1128 fi 1157 fi
1129 exit 0 ;; 1158 exit ;;
1130 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 1159 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1131 # says <Richard.M.Bartel@ccMail.Census.GOV> 1160 # says <Richard.M.Bartel@ccMail.Census.GOV>
1132 echo i586-unisys-sysv4 1161 echo i586-unisys-sysv4
1133 exit 0 ;; 1162 exit ;;
1134 *:UNIX_System_V:4*:FTX*) 1163 *:UNIX_System_V:4*:FTX*)
1135 # From Gerald Hewes <hewes@openmarket.com>. 1164 # From Gerald Hewes <hewes@openmarket.com>.
1136 # How about differentiating between stratus architectures? -djm 1165 # How about differentiating between stratus architectures? -djm
1137 echo hppa1.1-stratus-sysv4 1166 echo hppa1.1-stratus-sysv4
1138 exit 0 ;; 1167 exit ;;
1139 *:*:*:FTX*) 1168 *:*:*:FTX*)
1140 # From seanf@swdc.stratus.com. 1169 # From seanf@swdc.stratus.com.
1141 echo i860-stratus-sysv4 1170 echo i860-stratus-sysv4
1142 exit 0 ;; 1171 exit ;;
1143 i*86:VOS:*:*) 1172 i*86:VOS:*:*)
1144 # From Paul.Green@stratus.com. 1173 # From Paul.Green@stratus.com.
1145 echo ${UNAME_MACHINE}-stratus-vos 1174 echo ${UNAME_MACHINE}-stratus-vos
1146 exit 0 ;; 1175 exit ;;
1147 *:VOS:*:*) 1176 *:VOS:*:*)
1148 # From Paul.Green@stratus.com. 1177 # From Paul.Green@stratus.com.
1149 echo hppa1.1-stratus-vos 1178 echo hppa1.1-stratus-vos
1150 exit 0 ;; 1179 exit ;;
1151 mc68*:A/UX:*:*) 1180 mc68*:A/UX:*:*)
1152 echo m68k-apple-aux${UNAME_RELEASE} 1181 echo m68k-apple-aux${UNAME_RELEASE}
1153 exit 0 ;; 1182 exit ;;
1154 news*:NEWS-OS:6*:*) 1183 news*:NEWS-OS:6*:*)
1155 echo mips-sony-newsos6 1184 echo mips-sony-newsos6
1156 exit 0 ;; 1185 exit ;;
1157 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 1186 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1158 if [ -d /usr/nec ]; then 1187 if [ -d /usr/nec ]; then
1159 echo mips-nec-sysv${UNAME_RELEASE} 1188 echo mips-nec-sysv${UNAME_RELEASE}
1160 else 1189 else
1161 echo mips-unknown-sysv${UNAME_RELEASE} 1190 echo mips-unknown-sysv${UNAME_RELEASE}
1162 fi 1191 fi
1163 exit 0 ;; 1192 exit ;;
1164 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 1193 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1165 echo powerpc-be-beos 1194 echo powerpc-be-beos
1166 exit 0 ;; 1195 exit ;;
1167 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 1196 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1168 echo powerpc-apple-beos 1197 echo powerpc-apple-beos
1169 exit 0 ;; 1198 exit ;;
1170 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 1199 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1171 echo i586-pc-beos 1200 echo i586-pc-beos
1172 exit 0 ;; 1201 exit ;;
1173 SX-4:SUPER-UX:*:*) 1202 SX-4:SUPER-UX:*:*)
1174 echo sx4-nec-superux${UNAME_RELEASE} 1203 echo sx4-nec-superux${UNAME_RELEASE}
1175 exit 0 ;; 1204 exit ;;
1176 SX-5:SUPER-UX:*:*) 1205 SX-5:SUPER-UX:*:*)
1177 echo sx5-nec-superux${UNAME_RELEASE} 1206 echo sx5-nec-superux${UNAME_RELEASE}
1178 exit 0 ;; 1207 exit ;;
1179 SX-6:SUPER-UX:*:*) 1208 SX-6:SUPER-UX:*:*)
1180 echo sx6-nec-superux${UNAME_RELEASE} 1209 echo sx6-nec-superux${UNAME_RELEASE}
1181 exit 0 ;; 1210 exit ;;
1182 Power*:Rhapsody:*:*) 1211 Power*:Rhapsody:*:*)
1183 echo powerpc-apple-rhapsody${UNAME_RELEASE} 1212 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1184 exit 0 ;; 1213 exit ;;
1185 *:Rhapsody:*:*) 1214 *:Rhapsody:*:*)
1186 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 1215 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1187 exit 0 ;; 1216 exit ;;
1188 *:Darwin:*:*) 1217 *:Darwin:*:*)
1189 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1218 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1190 case $UNAME_PROCESSOR in 1219 case $UNAME_PROCESSOR in
1191 *86) UNAME_PROCESSOR=i686 ;;
1192 unknown) UNAME_PROCESSOR=powerpc ;; 1220 unknown) UNAME_PROCESSOR=powerpc ;;
1193 esac 1221 esac
1194 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 1222 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1195 exit 0 ;; 1223 exit ;;
1196 *:procnto*:*:* | *:QNX:[0123456789]*:*) 1224 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1197 UNAME_PROCESSOR=`uname -p` 1225 UNAME_PROCESSOR=`uname -p`
1198 if test "$UNAME_PROCESSOR" = "x86"; then 1226 if test "$UNAME_PROCESSOR" = "x86"; then
@@ -1200,25 +1228,25 @@ EOF
1200 UNAME_MACHINE=pc 1228 UNAME_MACHINE=pc
1201 fi 1229 fi
1202 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 1230 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1203 exit 0 ;; 1231 exit ;;
1204 *:QNX:*:4*) 1232 *:QNX:*:4*)
1205 echo i386-pc-qnx 1233 echo i386-pc-qnx
1206 exit 0 ;; 1234 exit ;;
1207 NSE-?:NONSTOP_KERNEL:*:*) 1235 NSE-?:NONSTOP_KERNEL:*:*)
1208 echo nse-tandem-nsk${UNAME_RELEASE} 1236 echo nse-tandem-nsk${UNAME_RELEASE}
1209 exit 0 ;; 1237 exit ;;
1210 NSR-?:NONSTOP_KERNEL:*:*) 1238 NSR-?:NONSTOP_KERNEL:*:*)
1211 echo nsr-tandem-nsk${UNAME_RELEASE} 1239 echo nsr-tandem-nsk${UNAME_RELEASE}
1212 exit 0 ;; 1240 exit ;;
1213 *:NonStop-UX:*:*) 1241 *:NonStop-UX:*:*)
1214 echo mips-compaq-nonstopux 1242 echo mips-compaq-nonstopux
1215 exit 0 ;; 1243 exit ;;
1216 BS2000:POSIX*:*:*) 1244 BS2000:POSIX*:*:*)
1217 echo bs2000-siemens-sysv 1245 echo bs2000-siemens-sysv
1218 exit 0 ;; 1246 exit ;;
1219 DS/*:UNIX_System_V:*:*) 1247 DS/*:UNIX_System_V:*:*)
1220 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 1248 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1221 exit 0 ;; 1249 exit ;;
1222 *:Plan9:*:*) 1250 *:Plan9:*:*)
1223 # "uname -m" is not consistent, so use $cputype instead. 386 1251 # "uname -m" is not consistent, so use $cputype instead. 386
1224 # is converted to i386 for consistency with other x86 1252 # is converted to i386 for consistency with other x86
@@ -1229,41 +1257,47 @@ EOF
1229 UNAME_MACHINE="$cputype" 1257 UNAME_MACHINE="$cputype"
1230 fi 1258 fi
1231 echo ${UNAME_MACHINE}-unknown-plan9 1259 echo ${UNAME_MACHINE}-unknown-plan9
1232 exit 0 ;; 1260 exit ;;
1233 *:TOPS-10:*:*) 1261 *:TOPS-10:*:*)
1234 echo pdp10-unknown-tops10 1262 echo pdp10-unknown-tops10
1235 exit 0 ;; 1263 exit ;;
1236 *:TENEX:*:*) 1264 *:TENEX:*:*)
1237 echo pdp10-unknown-tenex 1265 echo pdp10-unknown-tenex
1238 exit 0 ;; 1266 exit ;;
1239 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 1267 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1240 echo pdp10-dec-tops20 1268 echo pdp10-dec-tops20
1241 exit 0 ;; 1269 exit ;;
1242 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 1270 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1243 echo pdp10-xkl-tops20 1271 echo pdp10-xkl-tops20
1244 exit 0 ;; 1272 exit ;;
1245 *:TOPS-20:*:*) 1273 *:TOPS-20:*:*)
1246 echo pdp10-unknown-tops20 1274 echo pdp10-unknown-tops20
1247 exit 0 ;; 1275 exit ;;
1248 *:ITS:*:*) 1276 *:ITS:*:*)
1249 echo pdp10-unknown-its 1277 echo pdp10-unknown-its
1250 exit 0 ;; 1278 exit ;;
1251 SEI:*:*:SEIUX) 1279 SEI:*:*:SEIUX)
1252 echo mips-sei-seiux${UNAME_RELEASE} 1280 echo mips-sei-seiux${UNAME_RELEASE}
1253 exit 0 ;; 1281 exit ;;
1254 *:DragonFly:*:*) 1282 *:DragonFly:*:*)
1255 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 1283 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1256 exit 0 ;; 1284 exit ;;
1257 *:*VMS:*:*) 1285 *:*VMS:*:*)
1258 UNAME_MACHINE=`(uname -p) 2>/dev/null` 1286 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1259 case "${UNAME_MACHINE}" in 1287 case "${UNAME_MACHINE}" in
1260 A*) echo alpha-dec-vms && exit 0 ;; 1288 A*) echo alpha-dec-vms ; exit ;;
1261 I*) echo ia64-dec-vms && exit 0 ;; 1289 I*) echo ia64-dec-vms ; exit ;;
1262 V*) echo vax-dec-vms && exit 0 ;; 1290 V*) echo vax-dec-vms ; exit ;;
1263 esac ;; 1291 esac ;;
1264 *:XENIX:*:SysV) 1292 *:XENIX:*:SysV)
1265 echo i386-pc-xenix 1293 echo i386-pc-xenix
1266 exit 0 ;; 1294 exit ;;
1295 i*86:skyos:*:*)
1296 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1297 exit ;;
1298 i*86:rdos:*:*)
1299 echo ${UNAME_MACHINE}-pc-rdos
1300 exit ;;
1267esac 1301esac
1268 1302
1269#echo '(No uname command or uname output not recognized.)' 1>&2 1303#echo '(No uname command or uname output not recognized.)' 1>&2
@@ -1295,7 +1329,7 @@ main ()
1295#endif 1329#endif
1296 1330
1297#if defined (__arm) && defined (__acorn) && defined (__unix) 1331#if defined (__arm) && defined (__acorn) && defined (__unix)
1298 printf ("arm-acorn-riscix"); exit (0); 1332 printf ("arm-acorn-riscix\n"); exit (0);
1299#endif 1333#endif
1300 1334
1301#if defined (hp300) && !defined (hpux) 1335#if defined (hp300) && !defined (hpux)
@@ -1384,11 +1418,12 @@ main ()
1384} 1418}
1385EOF 1419EOF
1386 1420
1387$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 1421$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1422 { echo "$SYSTEM_NAME"; exit; }
1388 1423
1389# Apollos put the system type in the environment. 1424# Apollos put the system type in the environment.
1390 1425
1391test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } 1426test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1392 1427
1393# Convex versions that predate uname can use getsysinfo(1) 1428# Convex versions that predate uname can use getsysinfo(1)
1394 1429
@@ -1397,22 +1432,22 @@ then
1397 case `getsysinfo -f cpu_type` in 1432 case `getsysinfo -f cpu_type` in
1398 c1*) 1433 c1*)
1399 echo c1-convex-bsd 1434 echo c1-convex-bsd
1400 exit 0 ;; 1435 exit ;;
1401 c2*) 1436 c2*)
1402 if getsysinfo -f scalar_acc 1437 if getsysinfo -f scalar_acc
1403 then echo c32-convex-bsd 1438 then echo c32-convex-bsd
1404 else echo c2-convex-bsd 1439 else echo c2-convex-bsd
1405 fi 1440 fi
1406 exit 0 ;; 1441 exit ;;
1407 c34*) 1442 c34*)
1408 echo c34-convex-bsd 1443 echo c34-convex-bsd
1409 exit 0 ;; 1444 exit ;;
1410 c38*) 1445 c38*)
1411 echo c38-convex-bsd 1446 echo c38-convex-bsd
1412 exit 0 ;; 1447 exit ;;
1413 c4*) 1448 c4*)
1414 echo c4-convex-bsd 1449 echo c4-convex-bsd
1415 exit 0 ;; 1450 exit ;;
1416 esac 1451 esac
1417fi 1452fi
1418 1453
diff --git a/libltdl/config.sub b/libltdl/config.sub
index 87a1ee49..387c18d1 100755
--- a/libltdl/config.sub
+++ b/libltdl/config.sub
@@ -1,9 +1,10 @@
1#! /bin/sh 1#! /bin/sh
2# Configuration validation subroutine script. 2# Configuration validation subroutine script.
3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 4# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
5# Inc.
5 6
6timestamp='2005-04-22' 7timestamp='2006-07-02'
7 8
8# This file is (in principle) common to ALL GNU software. 9# This file is (in principle) common to ALL GNU software.
9# The presence of a machine in this file suggests that SOME GNU software 10# The presence of a machine in this file suggests that SOME GNU software
@@ -21,14 +22,15 @@ timestamp='2005-04-22'
21# 22#
22# You should have received a copy of the GNU General Public License 23# You should have received a copy of the GNU General Public License
23# along with this program; if not, write to the Free Software 24# along with this program; if not, write to the Free Software
24# Foundation, Inc., 59 Temple Place - Suite 330, 25# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25# Boston, MA 02111-1307, USA. 26# 02110-1301, USA.
26 27#
27# As a special exception to the GNU General Public License, if you 28# As a special exception to the GNU General Public License, if you
28# distribute this file as part of a program that contains a 29# distribute this file as part of a program that contains a
29# configuration script generated by Autoconf, you may include it under 30# configuration script generated by Autoconf, you may include it under
30# the same distribution terms that you use for the rest of that program. 31# the same distribution terms that you use for the rest of that program.
31 32
33
32# Please send patches to <config-patches@gnu.org>. Submit a context 34# Please send patches to <config-patches@gnu.org>. Submit a context
33# diff and a properly formatted ChangeLog entry. 35# diff and a properly formatted ChangeLog entry.
34# 36#
@@ -83,11 +85,11 @@ Try \`$me --help' for more information."
83while test $# -gt 0 ; do 85while test $# -gt 0 ; do
84 case $1 in 86 case $1 in
85 --time-stamp | --time* | -t ) 87 --time-stamp | --time* | -t )
86 echo "$timestamp" ; exit 0 ;; 88 echo "$timestamp" ; exit ;;
87 --version | -v ) 89 --version | -v )
88 echo "$version" ; exit 0 ;; 90 echo "$version" ; exit ;;
89 --help | --h* | -h ) 91 --help | --h* | -h )
90 echo "$usage"; exit 0 ;; 92 echo "$usage"; exit ;;
91 -- ) # Stop option processing 93 -- ) # Stop option processing
92 shift; break ;; 94 shift; break ;;
93 - ) # Use stdin as input. 95 - ) # Use stdin as input.
@@ -99,7 +101,7 @@ while test $# -gt 0 ; do
99 *local*) 101 *local*)
100 # First pass through any local machine types. 102 # First pass through any local machine types.
101 echo $1 103 echo $1
102 exit 0;; 104 exit ;;
103 105
104 * ) 106 * )
105 break ;; 107 break ;;
@@ -118,8 +120,9 @@ esac
118# Here we must recognize all the valid KERNEL-OS combinations. 120# Here we must recognize all the valid KERNEL-OS combinations.
119maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 121maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
120case $maybe_os in 122case $maybe_os in
121 nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ 123 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
122 kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 124 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
125 storm-chaos* | os2-emx* | rtmk-nova*)
123 os=-$maybe_os 126 os=-$maybe_os
124 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
125 ;; 128 ;;
@@ -170,6 +173,10 @@ case $os in
170 -hiux*) 173 -hiux*)
171 os=-hiuxwe2 174 os=-hiuxwe2
172 ;; 175 ;;
176 -sco6)
177 os=-sco5v6
178 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
179 ;;
173 -sco5) 180 -sco5)
174 os=-sco3.2v5 181 os=-sco3.2v5
175 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 182 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
@@ -186,6 +193,10 @@ case $os in
186 # Don't forget version if it is 3.2v4 or newer. 193 # Don't forget version if it is 3.2v4 or newer.
187 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 194 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
188 ;; 195 ;;
196 -sco5v6*)
197 # Don't forget version if it is 3.2v4 or newer.
198 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
199 ;;
189 -sco*) 200 -sco*)
190 os=-sco3.2v2 201 os=-sco3.2v2
191 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 202 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
@@ -230,7 +241,7 @@ case $basic_machine in
230 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 241 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
231 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 242 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
232 | am33_2.0 \ 243 | am33_2.0 \
233 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 244 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
234 | bfin \ 245 | bfin \
235 | c4x | clipper \ 246 | c4x | clipper \
236 | d10v | d30v | dlx | dsp16xx \ 247 | d10v | d30v | dlx | dsp16xx \
@@ -238,7 +249,8 @@ case $basic_machine in
238 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 249 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
239 | i370 | i860 | i960 | ia64 \ 250 | i370 | i860 | i960 | ia64 \
240 | ip2k | iq2000 \ 251 | ip2k | iq2000 \
241 | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ 252 | m32c | m32r | m32rle | m68000 | m68k | m88k \
253 | maxq | mb | microblaze | mcore \
242 | mips | mipsbe | mipseb | mipsel | mipsle \ 254 | mips | mipsbe | mipseb | mipsel | mipsle \
243 | mips16 \ 255 | mips16 \
244 | mips64 | mips64el \ 256 | mips64 | mips64el \
@@ -247,6 +259,7 @@ case $basic_machine in
247 | mips64vr4100 | mips64vr4100el \ 259 | mips64vr4100 | mips64vr4100el \
248 | mips64vr4300 | mips64vr4300el \ 260 | mips64vr4300 | mips64vr4300el \
249 | mips64vr5000 | mips64vr5000el \ 261 | mips64vr5000 | mips64vr5000el \
262 | mips64vr5900 | mips64vr5900el \
250 | mipsisa32 | mipsisa32el \ 263 | mipsisa32 | mipsisa32el \
251 | mipsisa32r2 | mipsisa32r2el \ 264 | mipsisa32r2 | mipsisa32r2el \
252 | mipsisa64 | mipsisa64el \ 265 | mipsisa64 | mipsisa64el \
@@ -255,17 +268,19 @@ case $basic_machine in
255 | mipsisa64sr71k | mipsisa64sr71kel \ 268 | mipsisa64sr71k | mipsisa64sr71kel \
256 | mipstx39 | mipstx39el \ 269 | mipstx39 | mipstx39el \
257 | mn10200 | mn10300 \ 270 | mn10200 | mn10300 \
271 | mt \
258 | msp430 \ 272 | msp430 \
273 | nios | nios2 \
259 | ns16k | ns32k \ 274 | ns16k | ns32k \
260 | openrisc | or32 \ 275 | or32 \
261 | pdp10 | pdp11 | pj | pjl \ 276 | pdp10 | pdp11 | pj | pjl \
262 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 277 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
263 | pyramid \ 278 | pyramid \
264 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 279 | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
265 | sh64 | sh64le \ 280 | sh64 | sh64le \
266 | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ 281 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
267 | sparcv8 | sparcv9 | sparcv9b \ 282 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
268 | strongarm \ 283 | spu | strongarm \
269 | tahoe | thumb | tic4x | tic80 | tron \ 284 | tahoe | thumb | tic4x | tic80 | tron \
270 | v850 | v850e \ 285 | v850 | v850e \
271 | we32k \ 286 | we32k \
@@ -280,6 +295,9 @@ case $basic_machine in
280 ;; 295 ;;
281 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 296 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
282 ;; 297 ;;
298 ms1)
299 basic_machine=mt-unknown
300 ;;
283 301
284 # We use `pc' rather than `unknown' 302 # We use `pc' rather than `unknown'
285 # because (1) that's what they normally are, and 303 # because (1) that's what they normally are, and
@@ -299,7 +317,7 @@ case $basic_machine in
299 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 317 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
300 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 318 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
301 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 319 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
302 | avr-* \ 320 | avr-* | avr32-* \
303 | bfin-* | bs2000-* \ 321 | bfin-* | bs2000-* \
304 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 322 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
305 | clipper-* | craynv-* | cydra-* \ 323 | clipper-* | craynv-* | cydra-* \
@@ -310,7 +328,7 @@ case $basic_machine in
310 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 328 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
311 | i*86-* | i860-* | i960-* | ia64-* \ 329 | i*86-* | i860-* | i960-* | ia64-* \
312 | ip2k-* | iq2000-* \ 330 | ip2k-* | iq2000-* \
313 | m32r-* | m32rle-* \ 331 | m32c-* | m32r-* | m32rle-* \
314 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 332 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
315 | m88110-* | m88k-* | maxq-* | mcore-* \ 333 | m88110-* | m88k-* | maxq-* | mcore-* \
316 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 334 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
@@ -321,6 +339,7 @@ case $basic_machine in
321 | mips64vr4100-* | mips64vr4100el-* \ 339 | mips64vr4100-* | mips64vr4100el-* \
322 | mips64vr4300-* | mips64vr4300el-* \ 340 | mips64vr4300-* | mips64vr4300el-* \
323 | mips64vr5000-* | mips64vr5000el-* \ 341 | mips64vr5000-* | mips64vr5000el-* \
342 | mips64vr5900-* | mips64vr5900el-* \
324 | mipsisa32-* | mipsisa32el-* \ 343 | mipsisa32-* | mipsisa32el-* \
325 | mipsisa32r2-* | mipsisa32r2el-* \ 344 | mipsisa32r2-* | mipsisa32r2el-* \
326 | mipsisa64-* | mipsisa64el-* \ 345 | mipsisa64-* | mipsisa64el-* \
@@ -329,18 +348,20 @@ case $basic_machine in
329 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 348 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
330 | mipstx39-* | mipstx39el-* \ 349 | mipstx39-* | mipstx39el-* \
331 | mmix-* \ 350 | mmix-* \
351 | mt-* \
332 | msp430-* \ 352 | msp430-* \
353 | nios-* | nios2-* \
333 | none-* | np1-* | ns16k-* | ns32k-* \ 354 | none-* | np1-* | ns16k-* | ns32k-* \
334 | orion-* \ 355 | orion-* \
335 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 356 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
336 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 357 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
337 | pyramid-* \ 358 | pyramid-* \
338 | romp-* | rs6000-* \ 359 | romp-* | rs6000-* \
339 | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ 360 | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
340 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 361 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
341 | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ 362 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
342 | sparclite-* \ 363 | sparclite-* \
343 | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 364 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
344 | tahoe-* | thumb-* \ 365 | tahoe-* | thumb-* \
345 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 366 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
346 | tron-* \ 367 | tron-* \
@@ -686,6 +707,9 @@ case $basic_machine in
686 basic_machine=i386-pc 707 basic_machine=i386-pc
687 os=-msdos 708 os=-msdos
688 ;; 709 ;;
710 ms1-*)
711 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
712 ;;
689 mvs) 713 mvs)
690 basic_machine=i370-ibm 714 basic_machine=i370-ibm
691 os=-mvs 715 os=-mvs
@@ -761,9 +785,8 @@ case $basic_machine in
761 basic_machine=hppa1.1-oki 785 basic_machine=hppa1.1-oki
762 os=-proelf 786 os=-proelf
763 ;; 787 ;;
764 or32 | or32-*) 788 openrisc | openrisc-*)
765 basic_machine=or32-unknown 789 basic_machine=or32-unknown
766 os=-coff
767 ;; 790 ;;
768 os400) 791 os400)
769 basic_machine=powerpc-ibm 792 basic_machine=powerpc-ibm
@@ -794,6 +817,12 @@ case $basic_machine in
794 pc532 | pc532-*) 817 pc532 | pc532-*)
795 basic_machine=ns32k-pc532 818 basic_machine=ns32k-pc532
796 ;; 819 ;;
820 pc98)
821 basic_machine=i386-pc
822 ;;
823 pc98-*)
824 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
825 ;;
797 pentium | p5 | k5 | k6 | nexgen | viac3) 826 pentium | p5 | k5 | k6 | nexgen | viac3)
798 basic_machine=i586-pc 827 basic_machine=i586-pc
799 ;; 828 ;;
@@ -850,6 +879,10 @@ case $basic_machine in
850 basic_machine=i586-unknown 879 basic_machine=i586-unknown
851 os=-pw32 880 os=-pw32
852 ;; 881 ;;
882 rdos)
883 basic_machine=i386-pc
884 os=-rdos
885 ;;
853 rom68k) 886 rom68k)
854 basic_machine=m68k-rom68k 887 basic_machine=m68k-rom68k
855 os=-coff 888 os=-coff
@@ -1089,13 +1122,10 @@ case $basic_machine in
1089 we32k) 1122 we32k)
1090 basic_machine=we32k-att 1123 basic_machine=we32k-att
1091 ;; 1124 ;;
1092 sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) 1125 sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1093 basic_machine=sh-unknown 1126 basic_machine=sh-unknown
1094 ;; 1127 ;;
1095 sh64) 1128 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1096 basic_machine=sh64-unknown
1097 ;;
1098 sparc | sparcv8 | sparcv9 | sparcv9b)
1099 basic_machine=sparc-sun 1129 basic_machine=sparc-sun
1100 ;; 1130 ;;
1101 cydra) 1131 cydra)
@@ -1168,20 +1198,23 @@ case $os in
1168 | -aos* \ 1198 | -aos* \
1169 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1199 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1170 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1200 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1171 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ 1201 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1202 | -openbsd* | -solidbsd* \
1172 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1203 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1173 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1204 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1174 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1205 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1175 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1206 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1176 | -chorusos* | -chorusrdb* \ 1207 | -chorusos* | -chorusrdb* \
1177 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1208 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1178 | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ 1209 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1210 | -uxpv* | -beos* | -mpeix* | -udk* \
1179 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1211 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1180 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1212 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1181 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1213 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1182 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1214 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1183 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1215 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1184 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) 1216 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1217 | -skyos* | -haiku* | -rdos* | -toppers*)
1185 # Remember, each alternative MUST END IN *, to match a version number. 1218 # Remember, each alternative MUST END IN *, to match a version number.
1186 ;; 1219 ;;
1187 -qnx*) 1220 -qnx*)
@@ -1199,7 +1232,7 @@ case $os in
1199 os=`echo $os | sed -e 's|nto|nto-qnx|'` 1232 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1200 ;; 1233 ;;
1201 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 1234 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1202 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ 1235 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1203 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 1236 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1204 ;; 1237 ;;
1205 -mac*) 1238 -mac*)
@@ -1333,6 +1366,9 @@ else
1333# system, and we'll never get to this point. 1366# system, and we'll never get to this point.
1334 1367
1335case $basic_machine in 1368case $basic_machine in
1369 spu-*)
1370 os=-elf
1371 ;;
1336 *-acorn) 1372 *-acorn)
1337 os=-riscix1.2 1373 os=-riscix1.2
1338 ;; 1374 ;;
@@ -1342,9 +1378,9 @@ case $basic_machine in
1342 arm*-semi) 1378 arm*-semi)
1343 os=-aout 1379 os=-aout
1344 ;; 1380 ;;
1345 c4x-* | tic4x-*) 1381 c4x-* | tic4x-*)
1346 os=-coff 1382 os=-coff
1347 ;; 1383 ;;
1348 # This must come before the *-dec entry. 1384 # This must come before the *-dec entry.
1349 pdp10-*) 1385 pdp10-*)
1350 os=-tops20 1386 os=-tops20
@@ -1388,6 +1424,9 @@ case $basic_machine in
1388 *-be) 1424 *-be)
1389 os=-beos 1425 os=-beos
1390 ;; 1426 ;;
1427 *-haiku)
1428 os=-haiku
1429 ;;
1391 *-ibm) 1430 *-ibm)
1392 os=-aix 1431 os=-aix
1393 ;; 1432 ;;
@@ -1559,7 +1598,7 @@ case $basic_machine in
1559esac 1598esac
1560 1599
1561echo $basic_machine$os 1600echo $basic_machine$os
1562exit 0 1601exit
1563 1602
1564# Local variables: 1603# Local variables:
1565# eval: (add-hook 'write-file-hooks 'time-stamp) 1604# eval: (add-hook 'write-file-hooks 'time-stamp)
diff --git a/libltdl/configure b/libltdl/configure
index 13b09f57..7e32fbe0 100755
--- a/libltdl/configure
+++ b/libltdl/configure
@@ -1,10 +1,11 @@
1#! /bin/sh 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for libltdl 1.2. 3# Generated by GNU Autoconf 2.60a for libltdl 1.2.
4# 4#
5# Report bugs to <bug-libtool@gnu.org>. 5# Report bugs to <bug-libtool@gnu.org>.
6# 6#
7# Copyright (C) 2003 Free Software Foundation, Inc. 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation 9# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it. 10# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ## 11## --------------------- ##
@@ -18,11 +19,35 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature. 20 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"' 21 alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22 setopt NO_GLOB_SUBST
22 set -o posix 23else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23fi 25fi
26BIN_SH=xpg4; export BIN_SH # for Tru64
24DUALCASE=1; export DUALCASE # for MKS sh 27DUALCASE=1; export DUALCASE # for MKS sh
25 28
29
30# PATH needs CR
31# Avoid depending upon Character Ranges.
32as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35as_cr_digits='0123456789'
36as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38# The user is always right.
39if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
47 fi
48 rm -f conf$$.sh
49fi
50
26# Support unset when possible. 51# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset 53 as_unset=unset
@@ -31,8 +56,43 @@ else
31fi 56fi
32 57
33 58
59# IFS
60# We need space, tab and new line, in precisely that order. Quoting is
61# there to prevent editors from complaining about space-tab.
62# (If _AS_PATH_WALK were called with IFS unset, it would disable word
63# splitting by setting IFS to empty value.)
64as_nl='
65'
66IFS=" "" $as_nl"
67
68# Find who we are. Look in the path if we contain no directory separator.
69case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72for as_dir in $PATH
73do
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77done
78IFS=$as_save_IFS
79
80 ;;
81esac
82# We did not find ourselves, most probably we were run as `sh COMMAND'
83# in which case we are not to be found in the path.
84if test "x$as_myself" = x; then
85 as_myself=$0
86fi
87if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
90fi
91
34# Work around bugs in pre-3.0 UWIN ksh. 92# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH 93for as_var in ENV MAIL MAILPATH
94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95done
36PS1='$ ' 96PS1='$ '
37PS2='> ' 97PS2='> '
38PS4='+ ' 98PS4='+ '
@@ -46,18 +106,19 @@ do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var 107 eval $as_var=C; export $as_var
48 else 108 else
49 $as_unset $as_var 109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
50 fi 110 fi
51done 111done
52 112
53# Required to use basename. 113# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then 114if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
55 as_expr=expr 116 as_expr=expr
56else 117else
57 as_expr=false 118 as_expr=false
58fi 119fi
59 120
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
61 as_basename=basename 122 as_basename=basename
62else 123else
63 as_basename=false 124 as_basename=false
@@ -65,157 +126,386 @@ fi
65 126
66 127
67# Name of the executable. 128# Name of the executable.
68as_me=`$as_basename "$0" || 129as_me=`$as_basename -- "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \ 131 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \ 132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" | 133echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 134 sed '/^.*\/\([^/][^/]*\)\/*$/{
75 /^X\/\(\/\/\)$/{ s//\1/; q; } 135 s//\1/
76 /^X\/\(\/\).*/{ s//\1/; q; } 136 q
77 s/.*/./; q'` 137 }
138 /^X\/\(\/\/\)$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\).*/{
143 s//\1/
144 q
145 }
146 s/.*/./; q'`
78 147
148# CDPATH.
149$as_unset CDPATH
79 150
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87 151
88# The user is always right. 152if test "x$CONFIG_SHELL" = x; then
89if test "${PATH_SEPARATOR+set}" != set; then 153 if (eval ":") 2>/dev/null; then
90 echo "#! /bin/sh" >conf$$.sh 154 as_have_required=yes
91 echo "exit 0" >>conf$$.sh 155else
92 chmod +x conf$$.sh 156 as_have_required=no
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi 157fi
100 158
159 if test $as_have_required = yes && (eval ":
160(as_func_return () {
161 (exit \$1)
162}
163as_func_success () {
164 as_func_return 0
165}
166as_func_failure () {
167 as_func_return 1
168}
169as_func_ret_success () {
170 return 0
171}
172as_func_ret_failure () {
173 return 1
174}
101 175
102 as_lineno_1=$LINENO 176exitcode=0
103 as_lineno_2=$LINENO 177if as_func_success; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 178 :
105 test "x$as_lineno_1" != "x$as_lineno_2" && 179else
106 test "x$as_lineno_3" = "x$as_lineno_2" || { 180 exitcode=1
107 # Find who we are. Look in the path if we contain no path at all 181 echo as_func_success failed.
108 # relative or not. 182fi
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118 183
119 ;; 184if as_func_failure; then
120 esac 185 exitcode=1
121 # We did not find ourselves, most probably we were run as `sh COMMAND' 186 echo as_func_failure succeeded.
122 # in which case we are not to be found in the path. 187fi
123 if test "x$as_myself" = x; then 188
124 as_myself=$0 189if as_func_ret_success; then
125 fi 190 :
126 if test ! -f "$as_myself"; then 191else
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 192 exitcode=1
128 { (exit 1); exit 1; }; } 193 echo as_func_ret_success failed.
129 fi 194fi
130 case $CONFIG_SHELL in 195
131 '') 196if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
199fi
200
201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202 :
203else
204 exitcode=1
205 echo positional parameters were not saved.
206fi
207
208test \$exitcode = 0) || { (exit 1); exit 1; }
209
210(
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215") 2> /dev/null; then
216 :
217else
218 as_candidate_shells=
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do 221do
135 IFS=$as_save_IFS 222 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=. 223 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do 224 case $as_dir in
138 case $as_dir in
139 /*) 225 /*)
140 if ("$as_dir/$as_base" -c ' 226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230done
231IFS=$as_save_IFS
232
233
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238# Be Bourne compatible
239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248fi
249BIN_SH=xpg4; export BIN_SH # for Tru64
250DUALCASE=1; export DUALCASE # for MKS sh
251
252:
253_ASEOF
254}; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258# Be Bourne compatible
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268fi
269BIN_SH=xpg4; export BIN_SH # for Tru64
270DUALCASE=1; export DUALCASE # for MKS sh
271
272:
273(as_func_return () {
274 (exit $1)
275}
276as_func_success () {
277 as_func_return 0
278}
279as_func_failure () {
280 as_func_return 1
281}
282as_func_ret_success () {
283 return 0
284}
285as_func_ret_failure () {
286 return 1
287}
288
289exitcode=0
290if as_func_success; then
291 :
292else
293 exitcode=1
294 echo as_func_success failed.
295fi
296
297if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
300fi
301
302if as_func_ret_success; then
303 :
304else
305 exitcode=1
306 echo as_func_ret_success failed.
307fi
308
309if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
312fi
313
314if ( set x; as_func_ret_success y && test x = "$1" ); then
315 :
316else
317 exitcode=1
318 echo positional parameters were not saved.
319fi
320
321test $exitcode = 0) || { (exit 1); exit 1; }
322
323(
141 as_lineno_1=$LINENO 324 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO 325 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" && 326 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 328
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 329_ASEOF
148 CONFIG_SHELL=$as_dir/$as_base 330}; then
149 export CONFIG_SHELL 331 break
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 332fi
151 fi;; 333
152 esac 334fi
153 done 335
154done 336 done
155;; 337
156 esac 338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344fi
345
346
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
353fi
354
355
356fi
357
358fi
359
360
361
362(eval "as_func_return () {
363 (exit \$1)
364}
365as_func_success () {
366 as_func_return 0
367}
368as_func_failure () {
369 as_func_return 1
370}
371as_func_ret_success () {
372 return 0
373}
374as_func_ret_failure () {
375 return 1
376}
377
378exitcode=0
379if as_func_success; then
380 :
381else
382 exitcode=1
383 echo as_func_success failed.
384fi
385
386if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
389fi
390
391if as_func_ret_success; then
392 :
393else
394 exitcode=1
395 echo as_func_ret_success failed.
396fi
397
398if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
401fi
402
403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404 :
405else
406 exitcode=1
407 echo positional parameters were not saved.
408fi
409
410test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
415}
416
417
418
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
157 423
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a 425 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real 426 # line-number line after each line using $LINENO; the second 'sed'
161 # work. The second script uses 'N' to pair each line-number line 427 # does the real work. The second script uses 'N' to pair each
162 # with the numbered line, and appends trailing '-' during 428 # line-number line with the line containing $LINENO, and appends
163 # substitution so that $LINENO is not a special case at line end. 429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 432 # scripts with optimization help from Paolo Bonzini. Blame Lee
166 sed '=' <$as_myself | 433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
167 sed ' 438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
168 N 443 N
169 s,$,-, 444 :loop
170 : loop 445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop 446 t loop
173 s,-$,, 447 s/-\n.*//
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno && 448 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno || 449 chmod +x "$as_me.lineno" ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; } 451 { (exit 1); exit 1; }; }
179 452
180 # Don't try to exec as it changes $[0], causing all sort of problems 453 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the 454 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this). 455 # original and so on. Autoconf is especially sensitive to this).
183 . ./$as_me.lineno 456 . "./$as_me.lineno"
184 # Exit status is that of the last command. 457 # Exit status is that of the last command.
185 exit 458 exit
186} 459}
187 460
188 461
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
190 *c*,-n*) ECHO_N= ECHO_C=' 463 as_dirname=dirname
191' ECHO_T=' ' ;; 464else
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 465 as_dirname=false
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 466fi
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in
470-n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
475*)
476 ECHO_N='-n';;
194esac 477esac
195 478
196if expr a : '\(a\)' >/dev/null 2>&1; then 479if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
197 as_expr=expr 481 as_expr=expr
198else 482else
199 as_expr=false 483 as_expr=false
200fi 484fi
201 485
202rm -f conf$$ conf$$.exe conf$$.file 486rm -f conf$$ conf$$.exe conf$$.file
487if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
492fi
203echo >conf$$.file 493echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then 494if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic 495 as_ln_s='ln -s'
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 496 # ... but there are two gotchas:
207 if test -f conf$$.exe; then 497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
208 # Don't use ln at all; we don't have any links 498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
209 as_ln_s='cp -p' 501 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then 502elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln 503 as_ln_s=ln
215else 504else
216 as_ln_s='cp -p' 505 as_ln_s='cp -p'
217fi 506fi
218rm -f conf$$ conf$$.exe conf$$.file 507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508rmdir conf$$.dir 2>/dev/null
219 509
220if mkdir -p . 2>/dev/null; then 510if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=: 511 as_mkdir_p=:
@@ -224,7 +514,19 @@ else
224 as_mkdir_p=false 514 as_mkdir_p=false
225fi 515fi
226 516
227as_executable_p="test -f" 517# Find out whether ``test -x'' works. Don't use a zero-byte file, as
518# systems may use methods other than mode bits to determine executability.
519cat >conf$$.file <<_ASEOF
520#! /bin/sh
521exit 0
522_ASEOF
523chmod +x conf$$.file
524if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526else
527 as_executable_p=:
528fi
529rm -f conf$$.file
228 530
229# Sed expression to map a string onto a valid CPP name. 531# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
@@ -233,15 +535,6 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 536
235 537
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245 538
246 539
247# Check that we are running under the correct shell. 540# Check that we are running under the correct shell.
@@ -280,15 +573,15 @@ fi
280 573
281# The HP-UX ksh and POSIX shell print the target directory to stdout 574# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set. 575# if CDPATH is set.
283if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 576(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284 577
285if test -z "$ECHO"; then 578if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then 579if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it 580# find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 581 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 582 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null && 583 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string="`eval $cmd`" && 584 echo_test_string=`eval $cmd` &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 585 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then 586 then
294 break 587 break
@@ -397,29 +690,26 @@ tagnames=${tagnames+${tagnames},}CXX
397 690
398tagnames=${tagnames+${tagnames},}F77 691tagnames=${tagnames+${tagnames},}F77
399 692
693exec 7<&0 </dev/null 6>&1
694
400# Name of the host. 695# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 696# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too. 697# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 698ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404 699
405exec 6>&1
406
407# 700#
408# Initializations. 701# Initializations.
409# 702#
410ac_default_prefix=/usr/local 703ac_default_prefix=/usr/local
704ac_clean_files=
411ac_config_libobj_dir=. 705ac_config_libobj_dir=.
706LIBOBJS=
412cross_compiling=no 707cross_compiling=no
413subdirs= 708subdirs=
414MFLAGS= 709MFLAGS=
415MAKEFLAGS= 710MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh} 711SHELL=${CONFIG_SHELL-/bin/sh}
417 712
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete. It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package. 713# Identity of this package.
424PACKAGE_NAME='libltdl' 714PACKAGE_NAME='libltdl'
425PACKAGE_TARNAME='libltdl' 715PACKAGE_TARNAME='libltdl'
@@ -431,42 +721,167 @@ ac_unique_file="ltdl.c"
431# Factoring default headers for most tests. 721# Factoring default headers for most tests.
432ac_includes_default="\ 722ac_includes_default="\
433#include <stdio.h> 723#include <stdio.h>
434#if HAVE_SYS_TYPES_H 724#ifdef HAVE_SYS_TYPES_H
435# include <sys/types.h> 725# include <sys/types.h>
436#endif 726#endif
437#if HAVE_SYS_STAT_H 727#ifdef HAVE_SYS_STAT_H
438# include <sys/stat.h> 728# include <sys/stat.h>
439#endif 729#endif
440#if STDC_HEADERS 730#ifdef STDC_HEADERS
441# include <stdlib.h> 731# include <stdlib.h>
442# include <stddef.h> 732# include <stddef.h>
443#else 733#else
444# if HAVE_STDLIB_H 734# ifdef HAVE_STDLIB_H
445# include <stdlib.h> 735# include <stdlib.h>
446# endif 736# endif
447#endif 737#endif
448#if HAVE_STRING_H 738#ifdef HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H 739# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
450# include <memory.h> 740# include <memory.h>
451# endif 741# endif
452# include <string.h> 742# include <string.h>
453#endif 743#endif
454#if HAVE_STRINGS_H 744#ifdef HAVE_STRINGS_H
455# include <strings.h> 745# include <strings.h>
456#endif 746#endif
457#if HAVE_INTTYPES_H 747#ifdef HAVE_INTTYPES_H
458# include <inttypes.h> 748# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461# include <stdint.h>
462# endif
463#endif 749#endif
464#if HAVE_UNISTD_H 750#ifdef HAVE_STDINT_H
751# include <stdint.h>
752#endif
753#ifdef HAVE_UNISTD_H
465# include <unistd.h> 754# include <unistd.h>
466#endif" 755#endif"
467 756
468ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL LIBOBJS LTLIBOBJS' 757ac_subst_vars='SHELL
758PATH_SEPARATOR
759PACKAGE_NAME
760PACKAGE_TARNAME
761PACKAGE_VERSION
762PACKAGE_STRING
763PACKAGE_BUGREPORT
764exec_prefix
765prefix
766program_transform_name
767bindir
768sbindir
769libexecdir
770datarootdir
771datadir
772sysconfdir
773sharedstatedir
774localstatedir
775includedir
776oldincludedir
777docdir
778infodir
779htmldir
780dvidir
781pdfdir
782psdir
783libdir
784localedir
785mandir
786DEFS
787ECHO_C
788ECHO_N
789ECHO_T
790LIBS
791build_alias
792host_alias
793target_alias
794INSTALL_PROGRAM
795INSTALL_SCRIPT
796INSTALL_DATA
797CYGPATH_W
798PACKAGE
799VERSION
800ACLOCAL
801AUTOCONF
802AUTOMAKE
803AUTOHEADER
804MAKEINFO
805AMTAR
806install_sh
807STRIP
808INSTALL_STRIP_PROGRAM
809mkdir_p
810AWK
811SET_MAKE
812am__leading_dot
813MAINTAINER_MODE_TRUE
814MAINTAINER_MODE_FALSE
815MAINT
816CC
817CFLAGS
818LDFLAGS
819CPPFLAGS
820ac_ct_CC
821EXEEXT
822OBJEXT
823DEPDIR
824am__include
825am__quote
826AMDEP_TRUE
827AMDEP_FALSE
828AMDEPBACKSLASH
829CCDEPMODE
830am__fastdepCC_TRUE
831am__fastdepCC_FALSE
832build
833build_cpu
834build_vendor
835build_os
836host
837host_cpu
838host_vendor
839host_os
840GREP
841EGREP
842LN_S
843ECHO
844AR
845RANLIB
846DLLTOOL
847AS
848OBJDUMP
849CPP
850CXX
851CXXFLAGS
852ac_ct_CXX
853CXXDEPMODE
854am__fastdepCXX_TRUE
855am__fastdepCXX_FALSE
856CXXCPP
857F77
858FFLAGS
859ac_ct_F77
860LIBTOOL
861LIBTOOL_DEPS
862INSTALL_LTDL_TRUE
863INSTALL_LTDL_FALSE
864CONVENIENCE_LTDL_TRUE
865CONVENIENCE_LTDL_FALSE
866LIBADD_DL
867LIBOBJS
868LTLIBOBJS'
469ac_subst_files='' 869ac_subst_files=''
870 ac_precious_vars='build_alias
871host_alias
872target_alias
873CC
874CFLAGS
875LDFLAGS
876CPPFLAGS
877CPP
878CXX
879CXXFLAGS
880CCC
881CXXCPP
882F77
883FFLAGS'
884
470 885
471# Initialize some variables set by options. 886# Initialize some variables set by options.
472ac_init_help= 887ac_init_help=
@@ -493,34 +908,48 @@ x_libraries=NONE
493# and all the variables that are supposed to be based on exec_prefix 908# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change. 909# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them. 910# Use braces instead of parens because sh, perl, etc. also accept them.
911# (The list follows the same order as the GNU Coding Standards.)
496bindir='${exec_prefix}/bin' 912bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin' 913sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec' 914libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share' 915datarootdir='${prefix}/share'
916datadir='${datarootdir}'
500sysconfdir='${prefix}/etc' 917sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com' 918sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var' 919localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include' 920includedir='${prefix}/include'
505oldincludedir='/usr/include' 921oldincludedir='/usr/include'
506infodir='${prefix}/info' 922docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
507mandir='${prefix}/man' 923infodir='${datarootdir}/info'
924htmldir='${docdir}'
925dvidir='${docdir}'
926pdfdir='${docdir}'
927psdir='${docdir}'
928libdir='${exec_prefix}/lib'
929localedir='${datarootdir}/locale'
930mandir='${datarootdir}/man'
508 931
509ac_prev= 932ac_prev=
933ac_dashdash=
510for ac_option 934for ac_option
511do 935do
512 # If the previous option needs an argument, assign it. 936 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then 937 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option" 938 eval $ac_prev=\$ac_option
515 ac_prev= 939 ac_prev=
516 continue 940 continue
517 fi 941 fi
518 942
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 943 case $ac_option in
944 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945 *) ac_optarg=yes ;;
946 esac
520 947
521 # Accept the important Cygnus configure options, so we can diagnose typos. 948 # Accept the important Cygnus configure options, so we can diagnose typos.
522 949
523 case $ac_option in 950 case $ac_dashdash$ac_option in
951 --)
952 ac_dashdash=yes ;;
524 953
525 -bindir | --bindir | --bindi | --bind | --bin | --bi) 954 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;; 955 ac_prev=bindir ;;
@@ -542,12 +971,18 @@ do
542 --config-cache | -C) 971 --config-cache | -C)
543 cache_file=config.cache ;; 972 cache_file=config.cache ;;
544 973
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 974 -datadir | --datadir | --datadi | --datad)
546 ac_prev=datadir ;; 975 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 976 -datadir=* | --datadir=* | --datadi=* | --datad=*)
548 | --da=*)
549 datadir=$ac_optarg ;; 977 datadir=$ac_optarg ;;
550 978
979 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
980 | --dataroo | --dataro | --datar)
981 ac_prev=datarootdir ;;
982 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
983 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
984 datarootdir=$ac_optarg ;;
985
551 -disable-* | --disable-*) 986 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 987 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names. 988 # Reject names that are not valid shell variable names.
@@ -555,7 +990,17 @@ do
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 990 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; } 991 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 992 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;; 993 eval enable_$ac_feature=no ;;
994
995 -docdir | --docdir | --docdi | --doc | --do)
996 ac_prev=docdir ;;
997 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
998 docdir=$ac_optarg ;;
999
1000 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1001 ac_prev=dvidir ;;
1002 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1003 dvidir=$ac_optarg ;;
559 1004
560 -enable-* | --enable-*) 1005 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1006 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
@@ -564,11 +1009,7 @@ do
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1009 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; } 1010 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 1011 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in 1012 eval enable_$ac_feature=\$ac_optarg ;;
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
572 1013
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1014 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1015 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
@@ -595,6 +1036,12 @@ do
595 -host=* | --host=* | --hos=* | --ho=*) 1036 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;; 1037 host_alias=$ac_optarg ;;
597 1038
1039 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1040 ac_prev=htmldir ;;
1041 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1042 | --ht=*)
1043 htmldir=$ac_optarg ;;
1044
598 -includedir | --includedir | --includedi | --included | --include \ 1045 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc) 1046 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;; 1047 ac_prev=includedir ;;
@@ -619,13 +1066,16 @@ do
619 | --libexe=* | --libex=* | --libe=*) 1066 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;; 1067 libexecdir=$ac_optarg ;;
621 1068
1069 -localedir | --localedir | --localedi | --localed | --locale)
1070 ac_prev=localedir ;;
1071 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1072 localedir=$ac_optarg ;;
1073
622 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1074 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \ 1075 | --localstate | --localstat | --localsta | --localst | --locals)
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;; 1076 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1077 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 1078 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;; 1079 localstatedir=$ac_optarg ;;
630 1080
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1081 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
@@ -690,6 +1140,16 @@ do
690 | --progr-tra=* | --program-tr=* | --program-t=*) 1140 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;; 1141 program_transform_name=$ac_optarg ;;
692 1142
1143 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1144 ac_prev=pdfdir ;;
1145 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1146 pdfdir=$ac_optarg ;;
1147
1148 -psdir | --psdir | --psdi | --psd | --ps)
1149 ac_prev=psdir ;;
1150 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1151 psdir=$ac_optarg ;;
1152
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil) 1154 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;; 1155 silent=yes ;;
@@ -746,11 +1206,7 @@ do
746 { echo "$as_me: error: invalid package name: $ac_package" >&2 1206 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; } 1207 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'` 1208 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in 1209 eval with_$ac_package=\$ac_optarg ;;
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
754 1210
755 -without-* | --without-*) 1211 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1212 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
@@ -759,7 +1215,7 @@ do
759 { echo "$as_me: error: invalid package name: $ac_package" >&2 1215 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; } 1216 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'` 1217 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;; 1218 eval with_$ac_package=no ;;
763 1219
764 --x) 1220 --x)
765 # Obsolete; use --with-x. 1221 # Obsolete; use --with-x.
@@ -790,8 +1246,7 @@ Try \`$0 --help' for more information." >&2
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1246 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1247 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; } 1248 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 1249 eval $ac_envvar=\$ac_optarg
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;; 1250 export $ac_envvar ;;
796 1251
797 *) 1252 *)
@@ -811,27 +1266,19 @@ if test -n "$ac_prev"; then
811 { (exit 1); exit 1; }; } 1266 { (exit 1); exit 1; }; }
812fi 1267fi
813 1268
814# Be sure to have absolute paths. 1269# Be sure to have absolute directory names.
815for ac_var in exec_prefix prefix 1270for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273 libdir localedir mandir
816do 1274do
817 eval ac_val=$`echo $ac_var` 1275 eval ac_val=\$$ac_var
818 case $ac_val in 1276 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 1277 [\\/$]* | ?:[\\/]* ) continue;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
821 { (exit 1); exit 1; }; };;
822 esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
828do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac 1279 esac
1280 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1281 { (exit 1); exit 1; }; }
835done 1282done
836 1283
837# There might be people who depend on the old broken behavior: `$host' 1284# There might be people who depend on the old broken behavior: `$host'
@@ -858,94 +1305,76 @@ test -n "$host_alias" && ac_tool_prefix=$host_alias-
858test "$silent" = yes && exec 6>/dev/null 1305test "$silent" = yes && exec 6>/dev/null
859 1306
860 1307
1308ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309ac_ls_di=`ls -di .` &&
1310ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 { echo "$as_me: error: Working directory cannot be determined" >&2
1312 { (exit 1); exit 1; }; }
1313test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 { echo "$as_me: error: pwd does not report name of working directory" >&2
1315 { (exit 1); exit 1; }; }
1316
1317
861# Find the source files, if location was not specified. 1318# Find the source files, if location was not specified.
862if test -z "$srcdir"; then 1319if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes 1320 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent. 1321 # Try the directory containing this script, then the parent directory.
865 ac_confdir=`(dirname "$0") 2>/dev/null || 1322 ac_confdir=`$as_dirname -- "$0" ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1323$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \ 1324 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \ 1325 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \ 1326 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
870 . : '\(.\)' 2>/dev/null ||
871echo X"$0" | 1327echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 1329 s//\1/
874 /^X\(\/\/\)$/{ s//\1/; q; } 1330 q
875 /^X\(\/\).*/{ s//\1/; q; } 1331 }
876 s/.*/./; q'` 1332 /^X\(\/\/\)[^/].*/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\/\)$/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\).*/{
1341 s//\1/
1342 q
1343 }
1344 s/.*/./; q'`
877 srcdir=$ac_confdir 1345 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then 1346 if test ! -r "$srcdir/$ac_unique_file"; then
879 srcdir=.. 1347 srcdir=..
880 fi 1348 fi
881else 1349else
882 ac_srcdir_defaulted=no 1350 ac_srcdir_defaulted=no
883fi 1351fi
884if test ! -r $srcdir/$ac_unique_file; then 1352if test ! -r "$srcdir/$ac_unique_file"; then
885 if test "$ac_srcdir_defaulted" = yes; then 1353 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 1354 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
887 { (exit 1); exit 1; }; } 1355 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
891 fi
892fi 1356fi
893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 1357ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 1358ac_abs_confdir=`(
1359 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
895 { (exit 1); exit 1; }; } 1360 { (exit 1); exit 1; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 1361 pwd)`
897ac_env_build_alias_set=${build_alias+set} 1362# When building in place, set srcdir=.
898ac_env_build_alias_value=$build_alias 1363if test "$ac_abs_confdir" = "$ac_pwd"; then
899ac_cv_env_build_alias_set=${build_alias+set} 1364 srcdir=.
900ac_cv_env_build_alias_value=$build_alias 1365fi
901ac_env_host_alias_set=${host_alias+set} 1366# Remove unnecessary trailing slashes from srcdir.
902ac_env_host_alias_value=$host_alias 1367# Double slashes in file names in object file debugging info
903ac_cv_env_host_alias_set=${host_alias+set} 1368# mess up M-x gdb in Emacs.
904ac_cv_env_host_alias_value=$host_alias 1369case $srcdir in
905ac_env_target_alias_set=${target_alias+set} 1370*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
906ac_env_target_alias_value=$target_alias 1371esac
907ac_cv_env_target_alias_set=${target_alias+set} 1372for ac_var in $ac_precious_vars; do
908ac_cv_env_target_alias_value=$target_alias 1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
909ac_env_CC_set=${CC+set} 1374 eval ac_env_${ac_var}_value=\$${ac_var}
910ac_env_CC_value=$CC 1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
911ac_cv_env_CC_set=${CC+set} 1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
912ac_cv_env_CC_value=$CC 1377done
913ac_env_CFLAGS_set=${CFLAGS+set}
914ac_env_CFLAGS_value=$CFLAGS
915ac_cv_env_CFLAGS_set=${CFLAGS+set}
916ac_cv_env_CFLAGS_value=$CFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CPP_set=${CPP+set}
926ac_env_CPP_value=$CPP
927ac_cv_env_CPP_set=${CPP+set}
928ac_cv_env_CPP_value=$CPP
929ac_env_CXX_set=${CXX+set}
930ac_env_CXX_value=$CXX
931ac_cv_env_CXX_set=${CXX+set}
932ac_cv_env_CXX_value=$CXX
933ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_env_CXXFLAGS_value=$CXXFLAGS
935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
949 1378
950# 1379#
951# Report the --help message. 1380# Report the --help message.
@@ -974,9 +1403,6 @@ Configuration:
974 -n, --no-create do not create output files 1403 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
976 1405
977_ACEOF
978
979 cat <<_ACEOF
980Installation directories: 1406Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX 1407 --prefix=PREFIX install architecture-independent files in PREFIX
982 [$ac_default_prefix] 1408 [$ac_default_prefix]
@@ -994,15 +1420,22 @@ Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin] 1420 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin] 1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec] 1422 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib] 1426 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include] 1427 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info] 1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1005 --mandir=DIR man documentation [PREFIX/man] 1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1006_ACEOF 1439_ACEOF
1007 1440
1008 cat <<\_ACEOF 1441 cat <<\_ACEOF
@@ -1031,10 +1464,8 @@ Optional Features:
1031 (and sometimes confusing) to the casual installer 1464 (and sometimes confusing) to the casual installer
1032 --disable-dependency-tracking speeds up one-time build 1465 --disable-dependency-tracking speeds up one-time build
1033 --enable-dependency-tracking do not reject slow dependency extractors 1466 --enable-dependency-tracking do not reject slow dependency extractors
1034 --enable-shared[=PKGS] 1467 --enable-shared[=PKGS] build shared libraries [default=yes]
1035 build shared libraries [default=yes] 1468 --enable-static[=PKGS] build static libraries [default=yes]
1036 --enable-static[=PKGS]
1037 build static libraries [default=yes]
1038 --enable-fast-install[=PKGS] 1469 --enable-fast-install[=PKGS]
1039 optimize for fast installation [default=yes] 1470 optimize for fast installation [default=yes]
1040 --disable-libtool-lock avoid locking (might break parallel builds) 1471 --disable-libtool-lock avoid locking (might break parallel builds)
@@ -1046,16 +1477,15 @@ Optional Packages:
1046 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1477 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use 1478 --with-pic try to use only PIC/non-PIC objects [default=use
1048 both] 1479 both]
1049 --with-tags[=TAGS] 1480 --with-tags[=TAGS] include additional configurations [automatic]
1050 include additional configurations [automatic]
1051 1481
1052Some influential environment variables: 1482Some influential environment variables:
1053 CC C compiler command 1483 CC C compiler command
1054 CFLAGS C compiler flags 1484 CFLAGS C compiler flags
1055 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1485 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1056 nonstandard directory <lib dir> 1486 nonstandard directory <lib dir>
1057 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1487 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1058 headers in a nonstandard directory <include dir> 1488 you have headers in a nonstandard directory <include dir>
1059 CPP C preprocessor 1489 CPP C preprocessor
1060 CXX C++ compiler command 1490 CXX C++ compiler command
1061 CXXFLAGS C++ compiler flags 1491 CXXFLAGS C++ compiler flags
@@ -1068,120 +1498,86 @@ it to find libraries and programs with nonstandard names/locations.
1068 1498
1069Report bugs to <bug-libtool@gnu.org>. 1499Report bugs to <bug-libtool@gnu.org>.
1070_ACEOF 1500_ACEOF
1501ac_status=$?
1071fi 1502fi
1072 1503
1073if test "$ac_init_help" = "recursive"; then 1504if test "$ac_init_help" = "recursive"; then
1074 # If there are subdirs, report their specific --help. 1505 # If there are subdirs, report their specific --help.
1075 ac_popdir=`pwd`
1076 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1506 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1077 test -d $ac_dir || continue 1507 test -d "$ac_dir" || continue
1078 ac_builddir=. 1508 ac_builddir=.
1079 1509
1080if test "$ac_dir" != .; then 1510case "$ac_dir" in
1511.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512*)
1081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1513 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1082 # A "../" for each directory in $ac_dir_suffix. 1514 # A ".." for each directory in $ac_dir_suffix.
1083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1515 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1084else 1516 case $ac_top_builddir_sub in
1085 ac_dir_suffix= ac_top_builddir= 1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1086fi 1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 esac ;;
1520esac
1521ac_abs_top_builddir=$ac_pwd
1522ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523# for backward compatibility:
1524ac_top_builddir=$ac_top_build_prefix
1087 1525
1088case $srcdir in 1526case $srcdir in
1089 .) # No --srcdir option. We are building in place. 1527 .) # We are building in place.
1090 ac_srcdir=. 1528 ac_srcdir=.
1091 if test -z "$ac_top_builddir"; then 1529 ac_top_srcdir=$ac_top_builddir_sub
1092 ac_top_srcdir=. 1530 ac_abs_top_srcdir=$ac_pwd ;;
1093 else 1531 [\\/]* | ?:[\\/]* ) # Absolute name.
1094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1095 fi ;;
1096 [\\/]* | ?:[\\/]* ) # Absolute path.
1097 ac_srcdir=$srcdir$ac_dir_suffix; 1532 ac_srcdir=$srcdir$ac_dir_suffix;
1098 ac_top_srcdir=$srcdir ;; 1533 ac_top_srcdir=$srcdir
1099 *) # Relative path. 1534 ac_abs_top_srcdir=$srcdir ;;
1100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1535 *) # Relative name.
1101 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1102esac 1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1103 1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1104# Do not use `cd foo && pwd` to compute absolute paths, because
1105# the directories may not exist.
1106case `pwd` in
1107.) ac_abs_builddir="$ac_dir";;
1108*)
1109 case "$ac_dir" in
1110 .) ac_abs_builddir=`pwd`;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1112 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1113 esac;;
1114esac
1115case $ac_abs_builddir in
1116.) ac_abs_top_builddir=${ac_top_builddir}.;;
1117*)
1118 case ${ac_top_builddir}. in
1119 .) ac_abs_top_builddir=$ac_abs_builddir;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1121 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1122 esac;;
1123esac 1539esac
1124case $ac_abs_builddir in 1540ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1125.) ac_abs_srcdir=$ac_srcdir;; 1541
1126*) 1542 cd "$ac_dir" || { ac_status=$?; continue; }
1127 case $ac_srcdir in 1543 # Check for guested configure.
1128 .) ac_abs_srcdir=$ac_abs_builddir;; 1544 if test -f "$ac_srcdir/configure.gnu"; then
1129 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1545 echo &&
1130 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1131 esac;; 1547 elif test -f "$ac_srcdir/configure"; then
1132esac 1548 echo &&
1133case $ac_abs_builddir in 1549 $SHELL "$ac_srcdir/configure" --help=recursive
1134.) ac_abs_top_srcdir=$ac_top_srcdir;;
1135*)
1136 case $ac_top_srcdir in
1137 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1139 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1140 esac;;
1141esac
1142
1143 cd $ac_dir
1144 # Check for guested configure; otherwise get Cygnus style configure.
1145 if test -f $ac_srcdir/configure.gnu; then
1146 echo
1147 $SHELL $ac_srcdir/configure.gnu --help=recursive
1148 elif test -f $ac_srcdir/configure; then
1149 echo
1150 $SHELL $ac_srcdir/configure --help=recursive
1151 elif test -f $ac_srcdir/configure.ac ||
1152 test -f $ac_srcdir/configure.in; then
1153 echo
1154 $ac_configure --help
1155 else 1550 else
1156 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1551 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1157 fi 1552 fi || ac_status=$?
1158 cd "$ac_popdir" 1553 cd "$ac_pwd" || { ac_status=$?; break; }
1159 done 1554 done
1160fi 1555fi
1161 1556
1162test -n "$ac_init_help" && exit 0 1557test -n "$ac_init_help" && exit $ac_status
1163if $ac_init_version; then 1558if $ac_init_version; then
1164 cat <<\_ACEOF 1559 cat <<\_ACEOF
1165libltdl configure 1.2 1560libltdl configure 1.2
1166generated by GNU Autoconf 2.59 1561generated by GNU Autoconf 2.60a
1167 1562
1168Copyright (C) 2003 Free Software Foundation, Inc. 1563Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15642002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1169This configure script is free software; the Free Software Foundation 1565This configure script is free software; the Free Software Foundation
1170gives unlimited permission to copy, distribute and modify it. 1566gives unlimited permission to copy, distribute and modify it.
1171_ACEOF 1567_ACEOF
1172 exit 0 1568 exit
1173fi 1569fi
1174exec 5>config.log 1570cat >config.log <<_ACEOF
1175cat >&5 <<_ACEOF
1176This file contains any messages produced by compilers while 1571This file contains any messages produced by compilers while
1177running configure, to aid debugging if configure makes a mistake. 1572running configure, to aid debugging if configure makes a mistake.
1178 1573
1179It was created by libltdl $as_me 1.2, which was 1574It was created by libltdl $as_me 1.2, which was
1180generated by GNU Autoconf 2.59. Invocation command line was 1575generated by GNU Autoconf 2.60a. Invocation command line was
1181 1576
1182 $ $0 $@ 1577 $ $0 $@
1183 1578
1184_ACEOF 1579_ACEOF
1580exec 5>>config.log
1185{ 1581{
1186cat <<_ASUNAME 1582cat <<_ASUNAME
1187## --------- ## 1583## --------- ##
@@ -1200,7 +1596,7 @@ uname -v = `(uname -v) 2>/dev/null || echo unknown`
1200/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1596/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1201/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1597/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1202/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1598/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1203hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1599/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1204/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1600/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1205/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1601/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1206/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1602/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
@@ -1214,6 +1610,7 @@ do
1214 test -z "$as_dir" && as_dir=. 1610 test -z "$as_dir" && as_dir=.
1215 echo "PATH: $as_dir" 1611 echo "PATH: $as_dir"
1216done 1612done
1613IFS=$as_save_IFS
1217 1614
1218} >&5 1615} >&5
1219 1616
@@ -1235,7 +1632,6 @@ _ACEOF
1235ac_configure_args= 1632ac_configure_args=
1236ac_configure_args0= 1633ac_configure_args0=
1237ac_configure_args1= 1634ac_configure_args1=
1238ac_sep=
1239ac_must_keep_next=false 1635ac_must_keep_next=false
1240for ac_pass in 1 2 1636for ac_pass in 1 2
1241do 1637do
@@ -1246,7 +1642,7 @@ do
1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247 | -silent | --silent | --silen | --sile | --sil) 1643 | -silent | --silent | --silen | --sile | --sil)
1248 continue ;; 1644 continue ;;
1249 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1645 *\'*)
1250 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1646 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1251 esac 1647 esac
1252 case $ac_pass in 1648 case $ac_pass in
@@ -1268,9 +1664,7 @@ do
1268 -* ) ac_must_keep_next=true ;; 1664 -* ) ac_must_keep_next=true ;;
1269 esac 1665 esac
1270 fi 1666 fi
1271 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1667 ac_configure_args="$ac_configure_args '$ac_arg'"
1272 # Get rid of the leading space.
1273 ac_sep=" "
1274 ;; 1668 ;;
1275 esac 1669 esac
1276 done 1670 done
@@ -1281,8 +1675,8 @@ $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_
1281# When interrupted or exit'd, cleanup temporary files, and complete 1675# When interrupted or exit'd, cleanup temporary files, and complete
1282# config.log. We remove comments because anyway the quotes in there 1676# config.log. We remove comments because anyway the quotes in there
1283# would cause problems or look ugly. 1677# would cause problems or look ugly.
1284# WARNING: Be sure not to use single quotes in there, as some shells, 1678# WARNING: Use '\'' to represent an apostrophe within the trap.
1285# such as our DU 5.0 friend, will then `close' the trap. 1679# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1286trap 'exit_status=$? 1680trap 'exit_status=$?
1287 # Save into config.log some information that might help in debugging. 1681 # Save into config.log some information that might help in debugging.
1288 { 1682 {
@@ -1295,20 +1689,34 @@ trap 'exit_status=$?
1295_ASBOX 1689_ASBOX
1296 echo 1690 echo
1297 # The following way of writing the cache mishandles newlines in values, 1691 # The following way of writing the cache mishandles newlines in values,
1298{ 1692(
1693 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1694 eval ac_val=\$$ac_var
1695 case $ac_val in #(
1696 *${as_nl}*)
1697 case $ac_var in #(
1698 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1699echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1700 esac
1701 case $ac_var in #(
1702 _ | IFS | as_nl) ;; #(
1703 *) $as_unset $ac_var ;;
1704 esac ;;
1705 esac
1706 done
1299 (set) 2>&1 | 1707 (set) 2>&1 |
1300 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1708 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1301 *ac_space=\ *) 1709 *${as_nl}ac_space=\ *)
1302 sed -n \ 1710 sed -n \
1303 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1711 "s/'\''/'\''\\\\'\'''\''/g;
1304 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1305 ;; 1713 ;; #(
1306 *) 1714 *)
1307 sed -n \ 1715 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1308 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1309 ;; 1716 ;;
1310 esac; 1717 esac |
1311} 1718 sort
1719)
1312 echo 1720 echo
1313 1721
1314 cat <<\_ASBOX 1722 cat <<\_ASBOX
@@ -1319,22 +1727,28 @@ _ASBOX
1319 echo 1727 echo
1320 for ac_var in $ac_subst_vars 1728 for ac_var in $ac_subst_vars
1321 do 1729 do
1322 eval ac_val=$`echo $ac_var` 1730 eval ac_val=\$$ac_var
1323 echo "$ac_var='"'"'$ac_val'"'"'" 1731 case $ac_val in
1732 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1733 esac
1734 echo "$ac_var='\''$ac_val'\''"
1324 done | sort 1735 done | sort
1325 echo 1736 echo
1326 1737
1327 if test -n "$ac_subst_files"; then 1738 if test -n "$ac_subst_files"; then
1328 cat <<\_ASBOX 1739 cat <<\_ASBOX
1329## ------------- ## 1740## ------------------- ##
1330## Output files. ## 1741## File substitutions. ##
1331## ------------- ## 1742## ------------------- ##
1332_ASBOX 1743_ASBOX
1333 echo 1744 echo
1334 for ac_var in $ac_subst_files 1745 for ac_var in $ac_subst_files
1335 do 1746 do
1336 eval ac_val=$`echo $ac_var` 1747 eval ac_val=\$$ac_var
1337 echo "$ac_var='"'"'$ac_val'"'"'" 1748 case $ac_val in
1749 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1750 esac
1751 echo "$ac_var='\''$ac_val'\''"
1338 done | sort 1752 done | sort
1339 echo 1753 echo
1340 fi 1754 fi
@@ -1346,26 +1760,24 @@ _ASBOX
1346## ----------- ## 1760## ----------- ##
1347_ASBOX 1761_ASBOX
1348 echo 1762 echo
1349 sed "/^$/d" confdefs.h | sort 1763 cat confdefs.h
1350 echo 1764 echo
1351 fi 1765 fi
1352 test "$ac_signal" != 0 && 1766 test "$ac_signal" != 0 &&
1353 echo "$as_me: caught signal $ac_signal" 1767 echo "$as_me: caught signal $ac_signal"
1354 echo "$as_me: exit $exit_status" 1768 echo "$as_me: exit $exit_status"
1355 } >&5 1769 } >&5
1356 rm -f core *.core && 1770 rm -f core *.core core.conftest.* &&
1357 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1771 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1358 exit $exit_status 1772 exit $exit_status
1359 ' 0 1773' 0
1360for ac_signal in 1 2 13 15; do 1774for ac_signal in 1 2 13 15; do
1361 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1775 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1362done 1776done
1363ac_signal=0 1777ac_signal=0
1364 1778
1365# confdefs.h avoids OS command line length limits that DEFS can exceed. 1779# confdefs.h avoids OS command line length limits that DEFS can exceed.
1366rm -rf conftest* confdefs.h 1780rm -f -r conftest* confdefs.h
1367# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1368echo >confdefs.h
1369 1781
1370# Predefined preprocessor variables. 1782# Predefined preprocessor variables.
1371 1783
@@ -1396,14 +1808,17 @@ _ACEOF
1396 1808
1397# Let the site file select an alternate cache file if it wants to. 1809# Let the site file select an alternate cache file if it wants to.
1398# Prefer explicitly selected file to automatically selected ones. 1810# Prefer explicitly selected file to automatically selected ones.
1399if test -z "$CONFIG_SITE"; then 1811if test -n "$CONFIG_SITE"; then
1400 if test "x$prefix" != xNONE; then 1812 set x "$CONFIG_SITE"
1401 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1813elif test "x$prefix" != xNONE; then
1402 else 1814 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1403 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1815else
1404 fi 1816 set x "$ac_default_prefix/share/config.site" \
1817 "$ac_default_prefix/etc/config.site"
1405fi 1818fi
1406for ac_site_file in $CONFIG_SITE; do 1819shift
1820for ac_site_file
1821do
1407 if test -r "$ac_site_file"; then 1822 if test -r "$ac_site_file"; then
1408 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1823 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1409echo "$as_me: loading site script $ac_site_file" >&6;} 1824echo "$as_me: loading site script $ac_site_file" >&6;}
@@ -1419,8 +1834,8 @@ if test -r "$cache_file"; then
1419 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1834 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1420echo "$as_me: loading cache $cache_file" >&6;} 1835echo "$as_me: loading cache $cache_file" >&6;}
1421 case $cache_file in 1836 case $cache_file in
1422 [\\/]* | ?:[\\/]* ) . $cache_file;; 1837 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1423 *) . ./$cache_file;; 1838 *) . "./$cache_file";;
1424 esac 1839 esac
1425 fi 1840 fi
1426else 1841else
@@ -1432,12 +1847,11 @@ fi
1432# Check that the precious variables saved in the cache have kept the same 1847# Check that the precious variables saved in the cache have kept the same
1433# value. 1848# value.
1434ac_cache_corrupted=false 1849ac_cache_corrupted=false
1435for ac_var in `(set) 2>&1 | 1850for ac_var in $ac_precious_vars; do
1436 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1437 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1851 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1438 eval ac_new_set=\$ac_env_${ac_var}_set 1852 eval ac_new_set=\$ac_env_${ac_var}_set
1439 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1853 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1440 eval ac_new_val="\$ac_env_${ac_var}_value" 1854 eval ac_new_val=\$ac_env_${ac_var}_value
1441 case $ac_old_set,$ac_new_set in 1855 case $ac_old_set,$ac_new_set in
1442 set,) 1856 set,)
1443 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1857 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
@@ -1462,8 +1876,7 @@ echo "$as_me: current value: $ac_new_val" >&2;}
1462 # Pass precious variables to config.status. 1876 # Pass precious variables to config.status.
1463 if test "$ac_new_set" = set; then 1877 if test "$ac_new_set" = set; then
1464 case $ac_new_val in 1878 case $ac_new_val in
1465 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1879 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1466 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1467 *) ac_arg=$ac_var=$ac_new_val ;; 1880 *) ac_arg=$ac_var=$ac_new_val ;;
1468 esac 1881 esac
1469 case " $ac_configure_args " in 1882 case " $ac_configure_args " in
@@ -1480,12 +1893,6 @@ echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start ov
1480 { (exit 1); exit 1; }; } 1893 { (exit 1); exit 1; }; }
1481fi 1894fi
1482 1895
1483ac_ext=c
1484ac_cpp='$CPP $CPPFLAGS'
1485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1487ac_compiler_gnu=$ac_cv_c_compiler_gnu
1488
1489 1896
1490 1897
1491 1898
@@ -1510,6 +1917,11 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
1510 1917
1511 1918
1512 1919
1920ac_ext=c
1921ac_cpp='$CPP $CPPFLAGS'
1922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924ac_compiler_gnu=$ac_cv_c_compiler_gnu
1513 1925
1514 1926
1515 1927
@@ -1520,29 +1932,35 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
1520## ------------------------------- ## 1932## ------------------------------- ##
1521 1933
1522ac_aux_dir= 1934ac_aux_dir=
1523for ac_dir in . $srcdir/.; do 1935for ac_dir in . "$srcdir"/.; do
1524 if test -f $ac_dir/install-sh; then 1936 if test -f "$ac_dir/install-sh"; then
1525 ac_aux_dir=$ac_dir 1937 ac_aux_dir=$ac_dir
1526 ac_install_sh="$ac_aux_dir/install-sh -c" 1938 ac_install_sh="$ac_aux_dir/install-sh -c"
1527 break 1939 break
1528 elif test -f $ac_dir/install.sh; then 1940 elif test -f "$ac_dir/install.sh"; then
1529 ac_aux_dir=$ac_dir 1941 ac_aux_dir=$ac_dir
1530 ac_install_sh="$ac_aux_dir/install.sh -c" 1942 ac_install_sh="$ac_aux_dir/install.sh -c"
1531 break 1943 break
1532 elif test -f $ac_dir/shtool; then 1944 elif test -f "$ac_dir/shtool"; then
1533 ac_aux_dir=$ac_dir 1945 ac_aux_dir=$ac_dir
1534 ac_install_sh="$ac_aux_dir/shtool install -c" 1946 ac_install_sh="$ac_aux_dir/shtool install -c"
1535 break 1947 break
1536 fi 1948 fi
1537done 1949done
1538if test -z "$ac_aux_dir"; then 1950if test -z "$ac_aux_dir"; then
1539 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5 1951 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
1540echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;} 1952echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
1541 { (exit 1); exit 1; }; } 1953 { (exit 1); exit 1; }; }
1542fi 1954fi
1543ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1955
1544ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1956# These three variables are undocumented and unsupported,
1545ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1957# and are intended to be withdrawn in a future Autoconf release.
1958# They can cause serious problems if a builder's source tree is in a directory
1959# whose full name contains unusual characters.
1960ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1961ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1962ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1963
1546 1964
1547 1965
1548if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then 1966if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
@@ -1579,8 +1997,8 @@ am__api_version="1.8"
1579# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1997# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1580# OS/2's system install, which has a completely different semantic 1998# OS/2's system install, which has a completely different semantic
1581# ./install, which can be erroneously created by make from ./install.sh. 1999# ./install, which can be erroneously created by make from ./install.sh.
1582echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2000{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1583echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2001echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1584if test -z "$INSTALL"; then 2002if test -z "$INSTALL"; then
1585if test "${ac_cv_path_install+set}" = set; then 2003if test "${ac_cv_path_install+set}" = set; then
1586 echo $ECHO_N "(cached) $ECHO_C" >&6 2004 echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -1602,7 +2020,7 @@ case $as_dir/ in
1602 # by default. 2020 # by default.
1603 for ac_prog in ginstall scoinst install; do 2021 for ac_prog in ginstall scoinst install; do
1604 for ac_exec_ext in '' $ac_executable_extensions; do 2022 for ac_exec_ext in '' $ac_executable_extensions; do
1605 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2023 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
1606 if test $ac_prog = install && 2024 if test $ac_prog = install &&
1607 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2025 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1608 # AIX install. It has an incompatible calling convention. 2026 # AIX install. It has an incompatible calling convention.
@@ -1621,21 +2039,22 @@ case $as_dir/ in
1621 ;; 2039 ;;
1622esac 2040esac
1623done 2041done
2042IFS=$as_save_IFS
1624 2043
1625 2044
1626fi 2045fi
1627 if test "${ac_cv_path_install+set}" = set; then 2046 if test "${ac_cv_path_install+set}" = set; then
1628 INSTALL=$ac_cv_path_install 2047 INSTALL=$ac_cv_path_install
1629 else 2048 else
1630 # As a last resort, use the slow shell script. We don't cache a 2049 # As a last resort, use the slow shell script. Don't cache a
1631 # path for INSTALL within a source directory, because that will 2050 # value for INSTALL within a source directory, because that will
1632 # break other packages using the cache if that directory is 2051 # break other packages using the cache if that directory is
1633 # removed, or if the path is relative. 2052 # removed, or if the value is a relative name.
1634 INSTALL=$ac_install_sh 2053 INSTALL=$ac_install_sh
1635 fi 2054 fi
1636fi 2055fi
1637echo "$as_me:$LINENO: result: $INSTALL" >&5 2056{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1638echo "${ECHO_T}$INSTALL" >&6 2057echo "${ECHO_T}$INSTALL" >&6; }
1639 2058
1640# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2059# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1641# It thinks the first close brace ends the variable substitution. 2060# It thinks the first close brace ends the variable substitution.
@@ -1645,8 +2064,8 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1645 2064
1646test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2065test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1647 2066
1648echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2067{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1649echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 2068echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1650# Just in case 2069# Just in case
1651sleep 1 2070sleep 1
1652echo timestamp > conftest.file 2071echo timestamp > conftest.file
@@ -1688,20 +2107,20 @@ echo "$as_me: error: newly created file is older than distributed files!
1688Check your system clock" >&2;} 2107Check your system clock" >&2;}
1689 { (exit 1); exit 1; }; } 2108 { (exit 1); exit 1; }; }
1690fi 2109fi
1691echo "$as_me:$LINENO: result: yes" >&5 2110{ echo "$as_me:$LINENO: result: yes" >&5
1692echo "${ECHO_T}yes" >&6 2111echo "${ECHO_T}yes" >&6; }
1693test "$program_prefix" != NONE && 2112test "$program_prefix" != NONE &&
1694 program_transform_name="s,^,$program_prefix,;$program_transform_name" 2113 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1695# Use a double $ so make ignores it. 2114# Use a double $ so make ignores it.
1696test "$program_suffix" != NONE && 2115test "$program_suffix" != NONE &&
1697 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 2116 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1698# Double any \ or $. echo might interpret backslashes. 2117# Double any \ or $. echo might interpret backslashes.
1699# By default was `s,x,x', remove it if useless. 2118# By default was `s,x,x', remove it if useless.
1700cat <<\_ACEOF >conftest.sed 2119cat <<\_ACEOF >conftest.sed
1701s/[\\$]/&&/g;s/;s,x,x,$// 2120s/[\\$]/&&/g;s/;s,x,x,$//
1702_ACEOF 2121_ACEOF
1703program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2122program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1704rm conftest.sed 2123rm -f conftest.sed
1705 2124
1706# expand $ac_aux_dir to an absolute path 2125# expand $ac_aux_dir to an absolute path
1707am_aux_dir=`cd $ac_aux_dir && pwd` 2126am_aux_dir=`cd $ac_aux_dir && pwd`
@@ -1745,8 +2164,8 @@ for ac_prog in gawk mawk nawk awk
1745do 2164do
1746 # Extract the first word of "$ac_prog", so it can be a program name with args. 2165 # Extract the first word of "$ac_prog", so it can be a program name with args.
1747set dummy $ac_prog; ac_word=$2 2166set dummy $ac_prog; ac_word=$2
1748echo "$as_me:$LINENO: checking for $ac_word" >&5 2167{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1750if test "${ac_cv_prog_AWK+set}" = set; then 2169if test "${ac_cv_prog_AWK+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6 2170 echo $ECHO_N "(cached) $ECHO_C" >&6
1752else 2171else
@@ -1759,54 +2178,57 @@ do
1759 IFS=$as_save_IFS 2178 IFS=$as_save_IFS
1760 test -z "$as_dir" && as_dir=. 2179 test -z "$as_dir" && as_dir=.
1761 for ac_exec_ext in '' $ac_executable_extensions; do 2180 for ac_exec_ext in '' $ac_executable_extensions; do
1762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1763 ac_cv_prog_AWK="$ac_prog" 2182 ac_cv_prog_AWK="$ac_prog"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765 break 2 2184 break 2
1766 fi 2185 fi
1767done 2186done
1768done 2187done
2188IFS=$as_save_IFS
1769 2189
1770fi 2190fi
1771fi 2191fi
1772AWK=$ac_cv_prog_AWK 2192AWK=$ac_cv_prog_AWK
1773if test -n "$AWK"; then 2193if test -n "$AWK"; then
1774 echo "$as_me:$LINENO: result: $AWK" >&5 2194 { echo "$as_me:$LINENO: result: $AWK" >&5
1775echo "${ECHO_T}$AWK" >&6 2195echo "${ECHO_T}$AWK" >&6; }
1776else 2196else
1777 echo "$as_me:$LINENO: result: no" >&5 2197 { echo "$as_me:$LINENO: result: no" >&5
1778echo "${ECHO_T}no" >&6 2198echo "${ECHO_T}no" >&6; }
1779fi 2199fi
1780 2200
2201
1781 test -n "$AWK" && break 2202 test -n "$AWK" && break
1782done 2203done
1783 2204
1784echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2205{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1785echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2206echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1786set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 2207set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1787if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2208if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6 2209 echo $ECHO_N "(cached) $ECHO_C" >&6
1789else 2210else
1790 cat >conftest.make <<\_ACEOF 2211 cat >conftest.make <<\_ACEOF
2212SHELL = /bin/sh
1791all: 2213all:
1792 @echo 'ac_maketemp="$(MAKE)"' 2214 @echo '@@@%%%=$(MAKE)=@@@%%%'
1793_ACEOF 2215_ACEOF
1794# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2216# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1795eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2217case `${MAKE-make} -f conftest.make 2>/dev/null` in
1796if test -n "$ac_maketemp"; then 2218 *@@@%%%=?*=@@@%%%*)
1797 eval ac_cv_prog_make_${ac_make}_set=yes 2219 eval ac_cv_prog_make_${ac_make}_set=yes;;
1798else 2220 *)
1799 eval ac_cv_prog_make_${ac_make}_set=no 2221 eval ac_cv_prog_make_${ac_make}_set=no;;
1800fi 2222esac
1801rm -f conftest.make 2223rm -f conftest.make
1802fi 2224fi
1803if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2225if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1804 echo "$as_me:$LINENO: result: yes" >&5 2226 { echo "$as_me:$LINENO: result: yes" >&5
1805echo "${ECHO_T}yes" >&6 2227echo "${ECHO_T}yes" >&6; }
1806 SET_MAKE= 2228 SET_MAKE=
1807else 2229else
1808 echo "$as_me:$LINENO: result: no" >&5 2230 { echo "$as_me:$LINENO: result: no" >&5
1809echo "${ECHO_T}no" >&6 2231echo "${ECHO_T}no" >&6; }
1810 SET_MAKE="MAKE=${MAKE-make}" 2232 SET_MAKE="MAKE=${MAKE-make}"
1811fi 2233fi
1812 2234
@@ -1871,8 +2293,8 @@ if test "$cross_compiling" != no; then
1871 if test -n "$ac_tool_prefix"; then 2293 if test -n "$ac_tool_prefix"; then
1872 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2294 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1873set dummy ${ac_tool_prefix}strip; ac_word=$2 2295set dummy ${ac_tool_prefix}strip; ac_word=$2
1874echo "$as_me:$LINENO: checking for $ac_word" >&5 2296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1876if test "${ac_cv_prog_STRIP+set}" = set; then 2298if test "${ac_cv_prog_STRIP+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6 2299 echo $ECHO_N "(cached) $ECHO_C" >&6
1878else 2300else
@@ -1885,32 +2307,34 @@ do
1885 IFS=$as_save_IFS 2307 IFS=$as_save_IFS
1886 test -z "$as_dir" && as_dir=. 2308 test -z "$as_dir" && as_dir=.
1887 for ac_exec_ext in '' $ac_executable_extensions; do 2309 for ac_exec_ext in '' $ac_executable_extensions; do
1888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1889 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2311 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 break 2 2313 break 2
1892 fi 2314 fi
1893done 2315done
1894done 2316done
2317IFS=$as_save_IFS
1895 2318
1896fi 2319fi
1897fi 2320fi
1898STRIP=$ac_cv_prog_STRIP 2321STRIP=$ac_cv_prog_STRIP
1899if test -n "$STRIP"; then 2322if test -n "$STRIP"; then
1900 echo "$as_me:$LINENO: result: $STRIP" >&5 2323 { echo "$as_me:$LINENO: result: $STRIP" >&5
1901echo "${ECHO_T}$STRIP" >&6 2324echo "${ECHO_T}$STRIP" >&6; }
1902else 2325else
1903 echo "$as_me:$LINENO: result: no" >&5 2326 { echo "$as_me:$LINENO: result: no" >&5
1904echo "${ECHO_T}no" >&6 2327echo "${ECHO_T}no" >&6; }
1905fi 2328fi
1906 2329
2330
1907fi 2331fi
1908if test -z "$ac_cv_prog_STRIP"; then 2332if test -z "$ac_cv_prog_STRIP"; then
1909 ac_ct_STRIP=$STRIP 2333 ac_ct_STRIP=$STRIP
1910 # Extract the first word of "strip", so it can be a program name with args. 2334 # Extract the first word of "strip", so it can be a program name with args.
1911set dummy strip; ac_word=$2 2335set dummy strip; ac_word=$2
1912echo "$as_me:$LINENO: checking for $ac_word" >&5 2336{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1914if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2338if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6 2339 echo $ECHO_N "(cached) $ECHO_C" >&6
1916else 2340else
@@ -1923,27 +2347,41 @@ do
1923 IFS=$as_save_IFS 2347 IFS=$as_save_IFS
1924 test -z "$as_dir" && as_dir=. 2348 test -z "$as_dir" && as_dir=.
1925 for ac_exec_ext in '' $ac_executable_extensions; do 2349 for ac_exec_ext in '' $ac_executable_extensions; do
1926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1927 ac_cv_prog_ac_ct_STRIP="strip" 2351 ac_cv_prog_ac_ct_STRIP="strip"
1928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929 break 2 2353 break 2
1930 fi 2354 fi
1931done 2355done
1932done 2356done
2357IFS=$as_save_IFS
1933 2358
1934 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1935fi 2359fi
1936fi 2360fi
1937ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2361ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1938if test -n "$ac_ct_STRIP"; then 2362if test -n "$ac_ct_STRIP"; then
1939 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2363 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1940echo "${ECHO_T}$ac_ct_STRIP" >&6 2364echo "${ECHO_T}$ac_ct_STRIP" >&6; }
1941else 2365else
1942 echo "$as_me:$LINENO: result: no" >&5 2366 { echo "$as_me:$LINENO: result: no" >&5
1943echo "${ECHO_T}no" >&6 2367echo "${ECHO_T}no" >&6; }
1944fi 2368fi
1945 2369
1946 STRIP=$ac_ct_STRIP 2370 if test "x$ac_ct_STRIP" = x; then
2371 STRIP=":"
2372 else
2373 case $cross_compiling:$ac_tool_warned in
2374yes:)
2375{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2376whose name does not start with the host triplet. If you think this
2377configuration is useful to you, please write to autoconf@gnu.org." >&5
2378echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2379whose name does not start with the host triplet. If you think this
2380configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2381ac_tool_warned=yes ;;
2382esac
2383 STRIP=$ac_ct_STRIP
2384 fi
1947else 2385else
1948 STRIP="$ac_cv_prog_STRIP" 2386 STRIP="$ac_cv_prog_STRIP"
1949fi 2387fi
@@ -1956,19 +2394,19 @@ INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1956 2394
1957 2395
1958 2396
1959 ac_config_headers="$ac_config_headers config.h:config-h.in" 2397ac_config_headers="$ac_config_headers config.h:config-h.in"
1960 2398
1961echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2399{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1962echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 2400echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
1963 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 2401 # Check whether --enable-maintainer-mode was given.
1964if test "${enable_maintainer_mode+set}" = set; then 2402if test "${enable_maintainer_mode+set}" = set; then
1965 enableval="$enable_maintainer_mode" 2403 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1966 USE_MAINTAINER_MODE=$enableval
1967else 2404else
1968 USE_MAINTAINER_MODE=no 2405 USE_MAINTAINER_MODE=no
1969fi; 2406fi
1970 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2407
1971echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 2408 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2409echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
1972 2410
1973 2411
1974if test $USE_MAINTAINER_MODE = yes; then 2412if test $USE_MAINTAINER_MODE = yes; then
@@ -1995,8 +2433,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
1995if test -n "$ac_tool_prefix"; then 2433if test -n "$ac_tool_prefix"; then
1996 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2434 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1997set dummy ${ac_tool_prefix}gcc; ac_word=$2 2435set dummy ${ac_tool_prefix}gcc; ac_word=$2
1998echo "$as_me:$LINENO: checking for $ac_word" >&5 2436{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2000if test "${ac_cv_prog_CC+set}" = set; then 2438if test "${ac_cv_prog_CC+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6 2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2002else 2440else
@@ -2009,32 +2447,34 @@ do
2009 IFS=$as_save_IFS 2447 IFS=$as_save_IFS
2010 test -z "$as_dir" && as_dir=. 2448 test -z "$as_dir" && as_dir=.
2011 for ac_exec_ext in '' $ac_executable_extensions; do 2449 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2013 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2451 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015 break 2 2453 break 2
2016 fi 2454 fi
2017done 2455done
2018done 2456done
2457IFS=$as_save_IFS
2019 2458
2020fi 2459fi
2021fi 2460fi
2022CC=$ac_cv_prog_CC 2461CC=$ac_cv_prog_CC
2023if test -n "$CC"; then 2462if test -n "$CC"; then
2024 echo "$as_me:$LINENO: result: $CC" >&5 2463 { echo "$as_me:$LINENO: result: $CC" >&5
2025echo "${ECHO_T}$CC" >&6 2464echo "${ECHO_T}$CC" >&6; }
2026else 2465else
2027 echo "$as_me:$LINENO: result: no" >&5 2466 { echo "$as_me:$LINENO: result: no" >&5
2028echo "${ECHO_T}no" >&6 2467echo "${ECHO_T}no" >&6; }
2029fi 2468fi
2030 2469
2470
2031fi 2471fi
2032if test -z "$ac_cv_prog_CC"; then 2472if test -z "$ac_cv_prog_CC"; then
2033 ac_ct_CC=$CC 2473 ac_ct_CC=$CC
2034 # Extract the first word of "gcc", so it can be a program name with args. 2474 # Extract the first word of "gcc", so it can be a program name with args.
2035set dummy gcc; ac_word=$2 2475set dummy gcc; ac_word=$2
2036echo "$as_me:$LINENO: checking for $ac_word" >&5 2476{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2038if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2478if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6 2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2040else 2480else
@@ -2047,36 +2487,51 @@ do
2047 IFS=$as_save_IFS 2487 IFS=$as_save_IFS
2048 test -z "$as_dir" && as_dir=. 2488 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do 2489 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2051 ac_cv_prog_ac_ct_CC="gcc" 2491 ac_cv_prog_ac_ct_CC="gcc"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 break 2 2493 break 2
2054 fi 2494 fi
2055done 2495done
2056done 2496done
2497IFS=$as_save_IFS
2057 2498
2058fi 2499fi
2059fi 2500fi
2060ac_ct_CC=$ac_cv_prog_ac_ct_CC 2501ac_ct_CC=$ac_cv_prog_ac_ct_CC
2061if test -n "$ac_ct_CC"; then 2502if test -n "$ac_ct_CC"; then
2062 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2503 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2063echo "${ECHO_T}$ac_ct_CC" >&6 2504echo "${ECHO_T}$ac_ct_CC" >&6; }
2064else 2505else
2065 echo "$as_me:$LINENO: result: no" >&5 2506 { echo "$as_me:$LINENO: result: no" >&5
2066echo "${ECHO_T}no" >&6 2507echo "${ECHO_T}no" >&6; }
2067fi 2508fi
2068 2509
2069 CC=$ac_ct_CC 2510 if test "x$ac_ct_CC" = x; then
2511 CC=""
2512 else
2513 case $cross_compiling:$ac_tool_warned in
2514yes:)
2515{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2516whose name does not start with the host triplet. If you think this
2517configuration is useful to you, please write to autoconf@gnu.org." >&5
2518echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2519whose name does not start with the host triplet. If you think this
2520configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2521ac_tool_warned=yes ;;
2522esac
2523 CC=$ac_ct_CC
2524 fi
2070else 2525else
2071 CC="$ac_cv_prog_CC" 2526 CC="$ac_cv_prog_CC"
2072fi 2527fi
2073 2528
2074if test -z "$CC"; then 2529if test -z "$CC"; then
2075 if test -n "$ac_tool_prefix"; then 2530 if test -n "$ac_tool_prefix"; then
2076 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2531 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2077set dummy ${ac_tool_prefix}cc; ac_word=$2 2532set dummy ${ac_tool_prefix}cc; ac_word=$2
2078echo "$as_me:$LINENO: checking for $ac_word" >&5 2533{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2080if test "${ac_cv_prog_CC+set}" = set; then 2535if test "${ac_cv_prog_CC+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6 2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2082else 2537else
@@ -2089,74 +2544,34 @@ do
2089 IFS=$as_save_IFS 2544 IFS=$as_save_IFS
2090 test -z "$as_dir" && as_dir=. 2545 test -z "$as_dir" && as_dir=.
2091 for ac_exec_ext in '' $ac_executable_extensions; do 2546 for ac_exec_ext in '' $ac_executable_extensions; do
2092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2093 ac_cv_prog_CC="${ac_tool_prefix}cc" 2548 ac_cv_prog_CC="${ac_tool_prefix}cc"
2094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 break 2 2550 break 2
2096 fi 2551 fi
2097done 2552done
2098done 2553done
2554IFS=$as_save_IFS
2099 2555
2100fi 2556fi
2101fi 2557fi
2102CC=$ac_cv_prog_CC 2558CC=$ac_cv_prog_CC
2103if test -n "$CC"; then 2559if test -n "$CC"; then
2104 echo "$as_me:$LINENO: result: $CC" >&5 2560 { echo "$as_me:$LINENO: result: $CC" >&5
2105echo "${ECHO_T}$CC" >&6 2561echo "${ECHO_T}$CC" >&6; }
2106else 2562else
2107 echo "$as_me:$LINENO: result: no" >&5 2563 { echo "$as_me:$LINENO: result: no" >&5
2108echo "${ECHO_T}no" >&6 2564echo "${ECHO_T}no" >&6; }
2109fi 2565fi
2110 2566
2111fi
2112if test -z "$ac_cv_prog_CC"; then
2113 ac_ct_CC=$CC
2114 # Extract the first word of "cc", so it can be a program name with args.
2115set dummy cc; ac_word=$2
2116echo "$as_me:$LINENO: checking for $ac_word" >&5
2117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2118if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2120else
2121 if test -n "$ac_ct_CC"; then
2122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2123else
2124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125for as_dir in $PATH
2126do
2127 IFS=$as_save_IFS
2128 test -z "$as_dir" && as_dir=.
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131 ac_cv_prog_ac_ct_CC="cc"
2132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133 break 2
2134 fi
2135done
2136done
2137
2138fi
2139fi
2140ac_ct_CC=$ac_cv_prog_ac_ct_CC
2141if test -n "$ac_ct_CC"; then
2142 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2143echo "${ECHO_T}$ac_ct_CC" >&6
2144else
2145 echo "$as_me:$LINENO: result: no" >&5
2146echo "${ECHO_T}no" >&6
2147fi
2148
2149 CC=$ac_ct_CC
2150else
2151 CC="$ac_cv_prog_CC"
2152fi
2153 2567
2568 fi
2154fi 2569fi
2155if test -z "$CC"; then 2570if test -z "$CC"; then
2156 # Extract the first word of "cc", so it can be a program name with args. 2571 # Extract the first word of "cc", so it can be a program name with args.
2157set dummy cc; ac_word=$2 2572set dummy cc; ac_word=$2
2158echo "$as_me:$LINENO: checking for $ac_word" >&5 2573{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2160if test "${ac_cv_prog_CC+set}" = set; then 2575if test "${ac_cv_prog_CC+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6 2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2162else 2577else
@@ -2170,7 +2585,7 @@ do
2170 IFS=$as_save_IFS 2585 IFS=$as_save_IFS
2171 test -z "$as_dir" && as_dir=. 2586 test -z "$as_dir" && as_dir=.
2172 for ac_exec_ext in '' $ac_executable_extensions; do 2587 for ac_exec_ext in '' $ac_executable_extensions; do
2173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2174 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2589 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2175 ac_prog_rejected=yes 2590 ac_prog_rejected=yes
2176 continue 2591 continue
@@ -2181,6 +2596,7 @@ do
2181 fi 2596 fi
2182done 2597done
2183done 2598done
2599IFS=$as_save_IFS
2184 2600
2185if test $ac_prog_rejected = yes; then 2601if test $ac_prog_rejected = yes; then
2186 # We found a bogon in the path, so make sure we never use it. 2602 # We found a bogon in the path, so make sure we never use it.
@@ -2198,22 +2614,23 @@ fi
2198fi 2614fi
2199CC=$ac_cv_prog_CC 2615CC=$ac_cv_prog_CC
2200if test -n "$CC"; then 2616if test -n "$CC"; then
2201 echo "$as_me:$LINENO: result: $CC" >&5 2617 { echo "$as_me:$LINENO: result: $CC" >&5
2202echo "${ECHO_T}$CC" >&6 2618echo "${ECHO_T}$CC" >&6; }
2203else 2619else
2204 echo "$as_me:$LINENO: result: no" >&5 2620 { echo "$as_me:$LINENO: result: no" >&5
2205echo "${ECHO_T}no" >&6 2621echo "${ECHO_T}no" >&6; }
2206fi 2622fi
2207 2623
2624
2208fi 2625fi
2209if test -z "$CC"; then 2626if test -z "$CC"; then
2210 if test -n "$ac_tool_prefix"; then 2627 if test -n "$ac_tool_prefix"; then
2211 for ac_prog in cl 2628 for ac_prog in cl.exe
2212 do 2629 do
2213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2630 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2214set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2631set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2215echo "$as_me:$LINENO: checking for $ac_word" >&5 2632{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2217if test "${ac_cv_prog_CC+set}" = set; then 2634if test "${ac_cv_prog_CC+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6 2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2219else 2636else
@@ -2226,36 +2643,38 @@ do
2226 IFS=$as_save_IFS 2643 IFS=$as_save_IFS
2227 test -z "$as_dir" && as_dir=. 2644 test -z "$as_dir" && as_dir=.
2228 for ac_exec_ext in '' $ac_executable_extensions; do 2645 for ac_exec_ext in '' $ac_executable_extensions; do
2229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2230 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2647 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 break 2 2649 break 2
2233 fi 2650 fi
2234done 2651done
2235done 2652done
2653IFS=$as_save_IFS
2236 2654
2237fi 2655fi
2238fi 2656fi
2239CC=$ac_cv_prog_CC 2657CC=$ac_cv_prog_CC
2240if test -n "$CC"; then 2658if test -n "$CC"; then
2241 echo "$as_me:$LINENO: result: $CC" >&5 2659 { echo "$as_me:$LINENO: result: $CC" >&5
2242echo "${ECHO_T}$CC" >&6 2660echo "${ECHO_T}$CC" >&6; }
2243else 2661else
2244 echo "$as_me:$LINENO: result: no" >&5 2662 { echo "$as_me:$LINENO: result: no" >&5
2245echo "${ECHO_T}no" >&6 2663echo "${ECHO_T}no" >&6; }
2246fi 2664fi
2247 2665
2666
2248 test -n "$CC" && break 2667 test -n "$CC" && break
2249 done 2668 done
2250fi 2669fi
2251if test -z "$CC"; then 2670if test -z "$CC"; then
2252 ac_ct_CC=$CC 2671 ac_ct_CC=$CC
2253 for ac_prog in cl 2672 for ac_prog in cl.exe
2254do 2673do
2255 # Extract the first word of "$ac_prog", so it can be a program name with args. 2674 # Extract the first word of "$ac_prog", so it can be a program name with args.
2256set dummy $ac_prog; ac_word=$2 2675set dummy $ac_prog; ac_word=$2
2257echo "$as_me:$LINENO: checking for $ac_word" >&5 2676{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2259if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2678if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6 2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2261else 2680else
@@ -2268,29 +2687,45 @@ do
2268 IFS=$as_save_IFS 2687 IFS=$as_save_IFS
2269 test -z "$as_dir" && as_dir=. 2688 test -z "$as_dir" && as_dir=.
2270 for ac_exec_ext in '' $ac_executable_extensions; do 2689 for ac_exec_ext in '' $ac_executable_extensions; do
2271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2272 ac_cv_prog_ac_ct_CC="$ac_prog" 2691 ac_cv_prog_ac_ct_CC="$ac_prog"
2273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274 break 2 2693 break 2
2275 fi 2694 fi
2276done 2695done
2277done 2696done
2697IFS=$as_save_IFS
2278 2698
2279fi 2699fi
2280fi 2700fi
2281ac_ct_CC=$ac_cv_prog_ac_ct_CC 2701ac_ct_CC=$ac_cv_prog_ac_ct_CC
2282if test -n "$ac_ct_CC"; then 2702if test -n "$ac_ct_CC"; then
2283 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2703 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2284echo "${ECHO_T}$ac_ct_CC" >&6 2704echo "${ECHO_T}$ac_ct_CC" >&6; }
2285else 2705else
2286 echo "$as_me:$LINENO: result: no" >&5 2706 { echo "$as_me:$LINENO: result: no" >&5
2287echo "${ECHO_T}no" >&6 2707echo "${ECHO_T}no" >&6; }
2288fi 2708fi
2289 2709
2710
2290 test -n "$ac_ct_CC" && break 2711 test -n "$ac_ct_CC" && break
2291done 2712done
2292 2713
2293 CC=$ac_ct_CC 2714 if test "x$ac_ct_CC" = x; then
2715 CC=""
2716 else
2717 case $cross_compiling:$ac_tool_warned in
2718yes:)
2719{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2720whose name does not start with the host triplet. If you think this
2721configuration is useful to you, please write to autoconf@gnu.org." >&5
2722echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2723whose name does not start with the host triplet. If you think this
2724configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2725ac_tool_warned=yes ;;
2726esac
2727 CC=$ac_ct_CC
2728 fi
2294fi 2729fi
2295 2730
2296fi 2731fi
@@ -2303,21 +2738,35 @@ See \`config.log' for more details." >&2;}
2303 { (exit 1); exit 1; }; } 2738 { (exit 1); exit 1; }; }
2304 2739
2305# Provide some information about the compiler. 2740# Provide some information about the compiler.
2306echo "$as_me:$LINENO:" \ 2741echo "$as_me:$LINENO: checking for C compiler version" >&5
2307 "checking for C compiler version" >&5
2308ac_compiler=`set X $ac_compile; echo $2` 2742ac_compiler=`set X $ac_compile; echo $2`
2309{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2743{ (ac_try="$ac_compiler --version >&5"
2310 (eval $ac_compiler --version </dev/null >&5) 2>&5 2744case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2747esac
2748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749 (eval "$ac_compiler --version >&5") 2>&5
2311 ac_status=$? 2750 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } 2752 (exit $ac_status); }
2314{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2753{ (ac_try="$ac_compiler -v >&5"
2315 (eval $ac_compiler -v </dev/null >&5) 2>&5 2754case "(($ac_try" in
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2757esac
2758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_compiler -v >&5") 2>&5
2316 ac_status=$? 2760 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } 2762 (exit $ac_status); }
2319{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2763{ (ac_try="$ac_compiler -V >&5"
2320 (eval $ac_compiler -V </dev/null >&5) 2>&5 2764case "(($ac_try" in
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2767esac
2768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769 (eval "$ac_compiler -V >&5") 2>&5
2321 ac_status=$? 2770 ac_status=$?
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); } 2772 (exit $ac_status); }
@@ -2342,47 +2791,77 @@ ac_clean_files="$ac_clean_files a.out a.exe b.out"
2342# Try to create an executable without -o first, disregard a.out. 2791# Try to create an executable without -o first, disregard a.out.
2343# It will help us diagnose broken compilers, and finding out an intuition 2792# It will help us diagnose broken compilers, and finding out an intuition
2344# of exeext. 2793# of exeext.
2345echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2794{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2346echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2795echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2347ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2796ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2348if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2797#
2349 (eval $ac_link_default) 2>&5 2798# List of possible output files, starting from the most likely.
2799# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2800# only as a last resort. b.out is created by i960 compilers.
2801ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2802#
2803# The IRIX 6 linker writes into existing files which may not be
2804# executable, retaining their permissions. Remove them first so a
2805# subsequent execution test works.
2806ac_rmfiles=
2807for ac_file in $ac_files
2808do
2809 case $ac_file in
2810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2811 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2812 esac
2813done
2814rm -f $ac_rmfiles
2815
2816if { (ac_try="$ac_link_default"
2817case "(($ac_try" in
2818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819 *) ac_try_echo=$ac_try;;
2820esac
2821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2822 (eval "$ac_link_default") 2>&5
2350 ac_status=$? 2823 ac_status=$?
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; then 2825 (exit $ac_status); }; then
2353 # Find the output, starting from the most likely. This scheme is 2826 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2354# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2827# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2355# resort. 2828# in a Makefile. We should not override ac_cv_exeext if it was cached,
2356 2829# so that the user can short-circuit this test for compilers unknown to
2357# Be careful to initialize this variable, since it used to be cached. 2830# Autoconf.
2358# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2831for ac_file in $ac_files ''
2359ac_cv_exeext=
2360# b.out is created by i960 compilers.
2361for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2362do 2832do
2363 test -f "$ac_file" || continue 2833 test -f "$ac_file" || continue
2364 case $ac_file in 2834 case $ac_file in
2365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2366 ;;
2367 conftest.$ac_ext )
2368 # This is the source file.
2369 ;; 2836 ;;
2370 [ab].out ) 2837 [ab].out )
2371 # We found the default executable, but exeext='' is most 2838 # We found the default executable, but exeext='' is most
2372 # certainly right. 2839 # certainly right.
2373 break;; 2840 break;;
2374 *.* ) 2841 *.* )
2375 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2842 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2376 # FIXME: I believe we export ac_cv_exeext for Libtool, 2843 then :; else
2377 # but it would be cool to find out if it's true. Does anybody 2844 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2378 # maintain Libtool? --akim. 2845 fi
2379 export ac_cv_exeext 2846 # We set ac_cv_exeext here because the later test for it is not
2847 # safe: cross compilers may not add the suffix if given an `-o'
2848 # argument, so we may need to know it at that point already.
2849 # Even if this section looks crufty: it has the advantage of
2850 # actually working.
2380 break;; 2851 break;;
2381 * ) 2852 * )
2382 break;; 2853 break;;
2383 esac 2854 esac
2384done 2855done
2856test "$ac_cv_exeext" = no && ac_cv_exeext=
2857
2385else 2858else
2859 ac_file=''
2860fi
2861
2862{ echo "$as_me:$LINENO: result: $ac_file" >&5
2863echo "${ECHO_T}$ac_file" >&6; }
2864if test -z "$ac_file"; then
2386 echo "$as_me: failed program was:" >&5 2865 echo "$as_me: failed program was:" >&5
2387sed 's/^/| /' conftest.$ac_ext >&5 2866sed 's/^/| /' conftest.$ac_ext >&5
2388 2867
@@ -2394,19 +2873,21 @@ See \`config.log' for more details." >&2;}
2394fi 2873fi
2395 2874
2396ac_exeext=$ac_cv_exeext 2875ac_exeext=$ac_cv_exeext
2397echo "$as_me:$LINENO: result: $ac_file" >&5
2398echo "${ECHO_T}$ac_file" >&6
2399 2876
2400# Check the compiler produces executables we can run. If not, either 2877# Check that the compiler produces executables we can run. If not, either
2401# the compiler is broken, or we cross compile. 2878# the compiler is broken, or we cross compile.
2402echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2879{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2403echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2880echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2404# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2881# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2405# If not cross compiling, check that we can run a simple program. 2882# If not cross compiling, check that we can run a simple program.
2406if test "$cross_compiling" != yes; then 2883if test "$cross_compiling" != yes; then
2407 if { ac_try='./$ac_file' 2884 if { ac_try='./$ac_file'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2885 { (case "(($ac_try" in
2409 (eval $ac_try) 2>&5 2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888esac
2889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_try") 2>&5
2410 ac_status=$? 2891 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; }; then 2893 (exit $ac_status); }; }; then
@@ -2425,22 +2906,27 @@ See \`config.log' for more details." >&2;}
2425 fi 2906 fi
2426 fi 2907 fi
2427fi 2908fi
2428echo "$as_me:$LINENO: result: yes" >&5 2909{ echo "$as_me:$LINENO: result: yes" >&5
2429echo "${ECHO_T}yes" >&6 2910echo "${ECHO_T}yes" >&6; }
2430 2911
2431rm -f a.out a.exe conftest$ac_cv_exeext b.out 2912rm -f a.out a.exe conftest$ac_cv_exeext b.out
2432ac_clean_files=$ac_clean_files_save 2913ac_clean_files=$ac_clean_files_save
2433# Check the compiler produces executables we can run. If not, either 2914# Check that the compiler produces executables we can run. If not, either
2434# the compiler is broken, or we cross compile. 2915# the compiler is broken, or we cross compile.
2435echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2916{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2436echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2917echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2437echo "$as_me:$LINENO: result: $cross_compiling" >&5 2918{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2438echo "${ECHO_T}$cross_compiling" >&6 2919echo "${ECHO_T}$cross_compiling" >&6; }
2439 2920
2440echo "$as_me:$LINENO: checking for suffix of executables" >&5 2921{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2441echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2922echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2923if { (ac_try="$ac_link"
2443 (eval $ac_link) 2>&5 2924case "(($ac_try" in
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2927esac
2928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929 (eval "$ac_link") 2>&5
2444 ac_status=$? 2930 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; then 2932 (exit $ac_status); }; then
@@ -2451,9 +2937,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2451for ac_file in conftest.exe conftest conftest.*; do 2937for ac_file in conftest.exe conftest conftest.*; do
2452 test -f "$ac_file" || continue 2938 test -f "$ac_file" || continue
2453 case $ac_file in 2939 case $ac_file in
2454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2455 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2941 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2456 export ac_cv_exeext
2457 break;; 2942 break;;
2458 * ) break;; 2943 * ) break;;
2459 esac 2944 esac
@@ -2467,14 +2952,14 @@ See \`config.log' for more details." >&2;}
2467fi 2952fi
2468 2953
2469rm -f conftest$ac_cv_exeext 2954rm -f conftest$ac_cv_exeext
2470echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2955{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2471echo "${ECHO_T}$ac_cv_exeext" >&6 2956echo "${ECHO_T}$ac_cv_exeext" >&6; }
2472 2957
2473rm -f conftest.$ac_ext 2958rm -f conftest.$ac_ext
2474EXEEXT=$ac_cv_exeext 2959EXEEXT=$ac_cv_exeext
2475ac_exeext=$EXEEXT 2960ac_exeext=$EXEEXT
2476echo "$as_me:$LINENO: checking for suffix of object files" >&5 2961{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2477echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2962echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2478if test "${ac_cv_objext+set}" = set; then 2963if test "${ac_cv_objext+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6 2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2480else 2965else
@@ -2494,14 +2979,20 @@ main ()
2494} 2979}
2495_ACEOF 2980_ACEOF
2496rm -f conftest.o conftest.obj 2981rm -f conftest.o conftest.obj
2497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2982if { (ac_try="$ac_compile"
2498 (eval $ac_compile) 2>&5 2983case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986esac
2987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_compile") 2>&5
2499 ac_status=$? 2989 ac_status=$?
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; then 2991 (exit $ac_status); }; then
2502 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2992 for ac_file in conftest.o conftest.obj conftest.*; do
2993 test -f "$ac_file" || continue;
2503 case $ac_file in 2994 case $ac_file in
2504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2505 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2996 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2506 break;; 2997 break;;
2507 esac 2998 esac
@@ -2519,12 +3010,12 @@ fi
2519 3010
2520rm -f conftest.$ac_cv_objext conftest.$ac_ext 3011rm -f conftest.$ac_cv_objext conftest.$ac_ext
2521fi 3012fi
2522echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3013{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2523echo "${ECHO_T}$ac_cv_objext" >&6 3014echo "${ECHO_T}$ac_cv_objext" >&6; }
2524OBJEXT=$ac_cv_objext 3015OBJEXT=$ac_cv_objext
2525ac_objext=$OBJEXT 3016ac_objext=$OBJEXT
2526echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3017{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2527echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 3018echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2528if test "${ac_cv_c_compiler_gnu+set}" = set; then 3019if test "${ac_cv_c_compiler_gnu+set}" = set; then
2529 echo $ECHO_N "(cached) $ECHO_C" >&6 3020 echo $ECHO_N "(cached) $ECHO_C" >&6
2530else 3021else
@@ -2547,23 +3038,36 @@ main ()
2547} 3038}
2548_ACEOF 3039_ACEOF
2549rm -f conftest.$ac_objext 3040rm -f conftest.$ac_objext
2550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3041if { (ac_try="$ac_compile"
2551 (eval $ac_compile) 2>conftest.er1 3042case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045esac
3046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_compile") 2>conftest.er1
2552 ac_status=$? 3048 ac_status=$?
2553 grep -v '^ *+' conftest.er1 >conftest.err 3049 grep -v '^ *+' conftest.er1 >conftest.err
2554 rm -f conftest.er1 3050 rm -f conftest.er1
2555 cat conftest.err >&5 3051 cat conftest.err >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } && 3053 (exit $ac_status); } &&
2558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3055 { (case "(($ac_try" in
2560 (eval $ac_try) 2>&5 3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058esac
3059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_try") 2>&5
2561 ac_status=$? 3061 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; } && 3063 (exit $ac_status); }; } &&
2564 { ac_try='test -s conftest.$ac_objext' 3064 { ac_try='test -s conftest.$ac_objext'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3065 { (case "(($ac_try" in
2566 (eval $ac_try) 2>&5 3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068esac
3069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_try") 2>&5
2567 ac_status=$? 3071 ac_status=$?
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; }; then 3073 (exit $ac_status); }; }; then
@@ -2572,24 +3076,28 @@ else
2572 echo "$as_me: failed program was:" >&5 3076 echo "$as_me: failed program was:" >&5
2573sed 's/^/| /' conftest.$ac_ext >&5 3077sed 's/^/| /' conftest.$ac_ext >&5
2574 3078
2575ac_compiler_gnu=no 3079 ac_compiler_gnu=no
2576fi 3080fi
2577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3081
3082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2578ac_cv_c_compiler_gnu=$ac_compiler_gnu 3083ac_cv_c_compiler_gnu=$ac_compiler_gnu
2579 3084
2580fi 3085fi
2581echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3086{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2582echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 3087echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2583GCC=`test $ac_compiler_gnu = yes && echo yes` 3088GCC=`test $ac_compiler_gnu = yes && echo yes`
2584ac_test_CFLAGS=${CFLAGS+set} 3089ac_test_CFLAGS=${CFLAGS+set}
2585ac_save_CFLAGS=$CFLAGS 3090ac_save_CFLAGS=$CFLAGS
2586CFLAGS="-g" 3091{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2587echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3092echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2588echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2589if test "${ac_cv_prog_cc_g+set}" = set; then 3093if test "${ac_cv_prog_cc_g+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6 3094 echo $ECHO_N "(cached) $ECHO_C" >&6
2591else 3095else
2592 cat >conftest.$ac_ext <<_ACEOF 3096 ac_save_c_werror_flag=$ac_c_werror_flag
3097 ac_c_werror_flag=yes
3098 ac_cv_prog_cc_g=no
3099 CFLAGS="-g"
3100 cat >conftest.$ac_ext <<_ACEOF
2593/* confdefs.h. */ 3101/* confdefs.h. */
2594_ACEOF 3102_ACEOF
2595cat confdefs.h >>conftest.$ac_ext 3103cat confdefs.h >>conftest.$ac_ext
@@ -2605,23 +3113,147 @@ main ()
2605} 3113}
2606_ACEOF 3114_ACEOF
2607rm -f conftest.$ac_objext 3115rm -f conftest.$ac_objext
2608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3116if { (ac_try="$ac_compile"
2609 (eval $ac_compile) 2>conftest.er1 3117case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120esac
3121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122 (eval "$ac_compile") 2>conftest.er1
3123 ac_status=$?
3124 grep -v '^ *+' conftest.er1 >conftest.err
3125 rm -f conftest.er1
3126 cat conftest.err >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } &&
3129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3130 { (case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133esac
3134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_try") 2>&5
3136 ac_status=$?
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; } &&
3139 { ac_try='test -s conftest.$ac_objext'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143esac
3144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; }; then
3149 ac_cv_prog_cc_g=yes
3150else
3151 echo "$as_me: failed program was:" >&5
3152sed 's/^/| /' conftest.$ac_ext >&5
3153
3154 CFLAGS=""
3155 cat >conftest.$ac_ext <<_ACEOF
3156/* confdefs.h. */
3157_ACEOF
3158cat confdefs.h >>conftest.$ac_ext
3159cat >>conftest.$ac_ext <<_ACEOF
3160/* end confdefs.h. */
3161
3162int
3163main ()
3164{
3165
3166 ;
3167 return 0;
3168}
3169_ACEOF
3170rm -f conftest.$ac_objext
3171if { (ac_try="$ac_compile"
3172case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175esac
3176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_compile") 2>conftest.er1
3178 ac_status=$?
3179 grep -v '^ *+' conftest.er1 >conftest.err
3180 rm -f conftest.er1
3181 cat conftest.err >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } &&
3184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3185 { (case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188esac
3189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_try") 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; } &&
3194 { ac_try='test -s conftest.$ac_objext'
3195 { (case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198esac
3199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_try") 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; }; then
3204 :
3205else
3206 echo "$as_me: failed program was:" >&5
3207sed 's/^/| /' conftest.$ac_ext >&5
3208
3209 ac_c_werror_flag=$ac_save_c_werror_flag
3210 CFLAGS="-g"
3211 cat >conftest.$ac_ext <<_ACEOF
3212/* confdefs.h. */
3213_ACEOF
3214cat confdefs.h >>conftest.$ac_ext
3215cat >>conftest.$ac_ext <<_ACEOF
3216/* end confdefs.h. */
3217
3218int
3219main ()
3220{
3221
3222 ;
3223 return 0;
3224}
3225_ACEOF
3226rm -f conftest.$ac_objext
3227if { (ac_try="$ac_compile"
3228case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231esac
3232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_compile") 2>conftest.er1
2610 ac_status=$? 3234 ac_status=$?
2611 grep -v '^ *+' conftest.er1 >conftest.err 3235 grep -v '^ *+' conftest.er1 >conftest.err
2612 rm -f conftest.er1 3236 rm -f conftest.er1
2613 cat conftest.err >&5 3237 cat conftest.err >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } && 3239 (exit $ac_status); } &&
2616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3241 { (case "(($ac_try" in
2618 (eval $ac_try) 2>&5 3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244esac
3245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246 (eval "$ac_try") 2>&5
2619 ac_status=$? 3247 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; } && 3249 (exit $ac_status); }; } &&
2622 { ac_try='test -s conftest.$ac_objext' 3250 { ac_try='test -s conftest.$ac_objext'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3251 { (case "(($ac_try" in
2624 (eval $ac_try) 2>&5 3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254esac
3255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_try") 2>&5
2625 ac_status=$? 3257 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; }; then 3259 (exit $ac_status); }; }; then
@@ -2630,12 +3262,20 @@ else
2630 echo "$as_me: failed program was:" >&5 3262 echo "$as_me: failed program was:" >&5
2631sed 's/^/| /' conftest.$ac_ext >&5 3263sed 's/^/| /' conftest.$ac_ext >&5
2632 3264
2633ac_cv_prog_cc_g=no 3265
2634fi 3266fi
2635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3267
3268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636fi 3269fi
2637echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3270
2638echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 3271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272fi
3273
3274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275 ac_c_werror_flag=$ac_save_c_werror_flag
3276fi
3277{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3278echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2639if test "$ac_test_CFLAGS" = set; then 3279if test "$ac_test_CFLAGS" = set; then
2640 CFLAGS=$ac_save_CFLAGS 3280 CFLAGS=$ac_save_CFLAGS
2641elif test $ac_cv_prog_cc_g = yes; then 3281elif test $ac_cv_prog_cc_g = yes; then
@@ -2651,12 +3291,12 @@ else
2651 CFLAGS= 3291 CFLAGS=
2652 fi 3292 fi
2653fi 3293fi
2654echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 3294{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2655echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 3295echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2656if test "${ac_cv_prog_cc_stdc+set}" = set; then 3296if test "${ac_cv_prog_cc_c89+set}" = set; then
2657 echo $ECHO_N "(cached) $ECHO_C" >&6 3297 echo $ECHO_N "(cached) $ECHO_C" >&6
2658else 3298else
2659 ac_cv_prog_cc_stdc=no 3299 ac_cv_prog_cc_c89=no
2660ac_save_CC=$CC 3300ac_save_CC=$CC
2661cat >conftest.$ac_ext <<_ACEOF 3301cat >conftest.$ac_ext <<_ACEOF
2662/* confdefs.h. */ 3302/* confdefs.h. */
@@ -2690,12 +3330,17 @@ static char *f (char * (*g) (char **, int), char **p, ...)
2690/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3330/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2691 function prototypes and stuff, but not '\xHH' hex character constants. 3331 function prototypes and stuff, but not '\xHH' hex character constants.
2692 These don't provoke an error unfortunately, instead are silently treated 3332 These don't provoke an error unfortunately, instead are silently treated
2693 as 'x'. The following induces an error, until -std1 is added to get 3333 as 'x'. The following induces an error, until -std is added to get
2694 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3334 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2695 array size at least. It's necessary to write '\x00'==0 to get something 3335 array size at least. It's necessary to write '\x00'==0 to get something
2696 that's true only with -std1. */ 3336 that's true only with -std. */
2697int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3337int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2698 3338
3339/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3340 inside strings and character constants. */
3341#define FOO(x) 'x'
3342int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3343
2699int test (int i, double x); 3344int test (int i, double x);
2700struct s1 {int (*f) (int a);}; 3345struct s1 {int (*f) (int a);};
2701struct s2 {int (*f) (double a);}; 3346struct s2 {int (*f) (double a);};
@@ -2710,201 +3355,74 @@ return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2710 return 0; 3355 return 0;
2711} 3356}
2712_ACEOF 3357_ACEOF
2713# Don't try gcc -ansi; that turns off useful extensions and 3358for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2714# breaks some systems' header files. 3359 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2715# AIX -qlanglvl=ansi
2716# Ultrix and OSF/1 -std1
2717# HP-UX 10.20 and later -Ae
2718# HP-UX older versions -Aa -D_HPUX_SOURCE
2719# SVR4 -Xc -D__EXTENSIONS__
2720for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2721do 3360do
2722 CC="$ac_save_CC $ac_arg" 3361 CC="$ac_save_CC $ac_arg"
2723 rm -f conftest.$ac_objext 3362 rm -f conftest.$ac_objext
2724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3363if { (ac_try="$ac_compile"
2725 (eval $ac_compile) 2>conftest.er1 3364case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3367esac
3368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3369 (eval "$ac_compile") 2>conftest.er1
2726 ac_status=$? 3370 ac_status=$?
2727 grep -v '^ *+' conftest.er1 >conftest.err 3371 grep -v '^ *+' conftest.er1 >conftest.err
2728 rm -f conftest.er1 3372 rm -f conftest.er1
2729 cat conftest.err >&5 3373 cat conftest.err >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); } && 3375 (exit $ac_status); } &&
2732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3377 { (case "(($ac_try" in
2734 (eval $ac_try) 2>&5 3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380esac
3381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382 (eval "$ac_try") 2>&5
2735 ac_status=$? 3383 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; } && 3385 (exit $ac_status); }; } &&
2738 { ac_try='test -s conftest.$ac_objext' 3386 { ac_try='test -s conftest.$ac_objext'
2739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3387 { (case "(($ac_try" in
2740 (eval $ac_try) 2>&5 3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3390esac
3391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3392 (eval "$ac_try") 2>&5
2741 ac_status=$? 3393 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; }; then 3395 (exit $ac_status); }; }; then
2744 ac_cv_prog_cc_stdc=$ac_arg 3396 ac_cv_prog_cc_c89=$ac_arg
2745break
2746else 3397else
2747 echo "$as_me: failed program was:" >&5 3398 echo "$as_me: failed program was:" >&5
2748sed 's/^/| /' conftest.$ac_ext >&5 3399sed 's/^/| /' conftest.$ac_ext >&5
2749 3400
3401
2750fi 3402fi
2751rm -f conftest.err conftest.$ac_objext 3403
3404rm -f core conftest.err conftest.$ac_objext
3405 test "x$ac_cv_prog_cc_c89" != "xno" && break
2752done 3406done
2753rm -f conftest.$ac_ext conftest.$ac_objext 3407rm -f conftest.$ac_ext
2754CC=$ac_save_CC 3408CC=$ac_save_CC
2755 3409
2756fi 3410fi
2757 3411# AC_CACHE_VAL
2758case "x$ac_cv_prog_cc_stdc" in 3412case "x$ac_cv_prog_cc_c89" in
2759 x|xno) 3413 x)
2760 echo "$as_me:$LINENO: result: none needed" >&5 3414 { echo "$as_me:$LINENO: result: none needed" >&5
2761echo "${ECHO_T}none needed" >&6 ;; 3415echo "${ECHO_T}none needed" >&6; } ;;
3416 xno)
3417 { echo "$as_me:$LINENO: result: unsupported" >&5
3418echo "${ECHO_T}unsupported" >&6; } ;;
2762 *) 3419 *)
2763 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 3420 CC="$CC $ac_cv_prog_cc_c89"
2764echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 3421 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2765 CC="$CC $ac_cv_prog_cc_stdc" ;; 3422echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2766esac 3423esac
2767 3424
2768# Some people use a C++ compiler to compile C. Since we use `exit',
2769# in C++ we need to declare it. In case someone uses the same compiler
2770# for both compiling C and C++ we need to have the C++ compiler decide
2771# the declaration of exit, since it's the most demanding environment.
2772cat >conftest.$ac_ext <<_ACEOF
2773#ifndef __cplusplus
2774 choke me
2775#endif
2776_ACEOF
2777rm -f conftest.$ac_objext
2778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779 (eval $ac_compile) 2>conftest.er1
2780 ac_status=$?
2781 grep -v '^ *+' conftest.er1 >conftest.err
2782 rm -f conftest.er1
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
2786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 (eval $ac_try) 2>&5
2789 ac_status=$?
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; } &&
2792 { ac_try='test -s conftest.$ac_objext'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 (eval $ac_try) 2>&5
2795 ac_status=$?
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2798 for ac_declaration in \
2799 '' \
2800 'extern "C" void std::exit (int) throw (); using std::exit;' \
2801 'extern "C" void std::exit (int); using std::exit;' \
2802 'extern "C" void exit (int) throw ();' \
2803 'extern "C" void exit (int);' \
2804 'void exit (int);'
2805do
2806 cat >conftest.$ac_ext <<_ACEOF
2807/* confdefs.h. */
2808_ACEOF
2809cat confdefs.h >>conftest.$ac_ext
2810cat >>conftest.$ac_ext <<_ACEOF
2811/* end confdefs.h. */
2812$ac_declaration
2813#include <stdlib.h>
2814int
2815main ()
2816{
2817exit (42);
2818 ;
2819 return 0;
2820}
2821_ACEOF
2822rm -f conftest.$ac_objext
2823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2824 (eval $ac_compile) 2>conftest.er1
2825 ac_status=$?
2826 grep -v '^ *+' conftest.er1 >conftest.err
2827 rm -f conftest.er1
2828 cat conftest.err >&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); } &&
2831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 (eval $ac_try) 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; } &&
2837 { ac_try='test -s conftest.$ac_objext'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 (eval $ac_try) 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; }; then
2843 :
2844else
2845 echo "$as_me: failed program was:" >&5
2846sed 's/^/| /' conftest.$ac_ext >&5
2847
2848continue
2849fi
2850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2851 cat >conftest.$ac_ext <<_ACEOF
2852/* confdefs.h. */
2853_ACEOF
2854cat confdefs.h >>conftest.$ac_ext
2855cat >>conftest.$ac_ext <<_ACEOF
2856/* end confdefs.h. */
2857$ac_declaration
2858int
2859main ()
2860{
2861exit (42);
2862 ;
2863 return 0;
2864}
2865_ACEOF
2866rm -f conftest.$ac_objext
2867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2868 (eval $ac_compile) 2>conftest.er1
2869 ac_status=$?
2870 grep -v '^ *+' conftest.er1 >conftest.err
2871 rm -f conftest.er1
2872 cat conftest.err >&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); } &&
2875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877 (eval $ac_try) 2>&5
2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; } &&
2881 { ac_try='test -s conftest.$ac_objext'
2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883 (eval $ac_try) 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; }; then
2887 break
2888else
2889 echo "$as_me: failed program was:" >&5
2890sed 's/^/| /' conftest.$ac_ext >&5
2891
2892fi
2893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2894done
2895rm -f conftest*
2896if test -n "$ac_declaration"; then
2897 echo '#ifdef __cplusplus' >>confdefs.h
2898 echo $ac_declaration >>confdefs.h
2899 echo '#endif' >>confdefs.h
2900fi
2901
2902else
2903 echo "$as_me: failed program was:" >&5
2904sed 's/^/| /' conftest.$ac_ext >&5
2905 3425
2906fi
2907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2908ac_ext=c 3426ac_ext=c
2909ac_cpp='$CPP $CPPFLAGS' 3427ac_cpp='$CPP $CPPFLAGS'
2910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -2912,7 +3430,7 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
2912ac_compiler_gnu=$ac_cv_c_compiler_gnu 3430ac_compiler_gnu=$ac_cv_c_compiler_gnu
2913DEPDIR="${am__leading_dot}deps" 3431DEPDIR="${am__leading_dot}deps"
2914 3432
2915 ac_config_commands="$ac_config_commands depfiles" 3433ac_config_commands="$ac_config_commands depfiles"
2916 3434
2917 3435
2918am_make=${MAKE-make} 3436am_make=${MAKE-make}
@@ -2922,8 +3440,8 @@ am__doit:
2922.PHONY: am__doit 3440.PHONY: am__doit
2923END 3441END
2924# If we don't find an include directive, just comment out the code. 3442# If we don't find an include directive, just comment out the code.
2925echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3443{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2926echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 3444echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2927am__include="#" 3445am__include="#"
2928am__quote= 3446am__quote=
2929_am_result=none 3447_am_result=none
@@ -2950,15 +3468,15 @@ if test "$am__include" = "#"; then
2950fi 3468fi
2951 3469
2952 3470
2953echo "$as_me:$LINENO: result: $_am_result" >&5 3471{ echo "$as_me:$LINENO: result: $_am_result" >&5
2954echo "${ECHO_T}$_am_result" >&6 3472echo "${ECHO_T}$_am_result" >&6; }
2955rm -f confinc confmf 3473rm -f confinc confmf
2956 3474
2957# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 3475# Check whether --enable-dependency-tracking was given.
2958if test "${enable_dependency_tracking+set}" = set; then 3476if test "${enable_dependency_tracking+set}" = set; then
2959 enableval="$enable_dependency_tracking" 3477 enableval=$enable_dependency_tracking;
3478fi
2960 3479
2961fi;
2962if test "x$enable_dependency_tracking" != xno; then 3480if test "x$enable_dependency_tracking" != xno; then
2963 am_depcomp="$ac_aux_dir/depcomp" 3481 am_depcomp="$ac_aux_dir/depcomp"
2964 AMDEPBACKSLASH='\' 3482 AMDEPBACKSLASH='\'
@@ -2978,8 +3496,8 @@ fi
2978 3496
2979depcc="$CC" am_compiler_list= 3497depcc="$CC" am_compiler_list=
2980 3498
2981echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3499{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2982echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3500echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2983if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3501if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6 3502 echo $ECHO_N "(cached) $ECHO_C" >&6
2985else 3503else
@@ -3068,8 +3586,8 @@ else
3068fi 3586fi
3069 3587
3070fi 3588fi
3071echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3589{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3072echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3590echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3073CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3591CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3074 3592
3075 3593
@@ -3086,8 +3604,8 @@ fi
3086 3604
3087 3605
3088 3606
3089echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 3607{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3090echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 3608echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3091if test "${ac_cv_c_const+set}" = set; then 3609if test "${ac_cv_c_const+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6 3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3093else 3611else
@@ -3105,10 +3623,10 @@ main ()
3105#ifndef __cplusplus 3623#ifndef __cplusplus
3106 /* Ultrix mips cc rejects this. */ 3624 /* Ultrix mips cc rejects this. */
3107 typedef int charset[2]; 3625 typedef int charset[2];
3108 const charset x; 3626 const charset cs;
3109 /* SunOS 4.1.1 cc rejects this. */ 3627 /* SunOS 4.1.1 cc rejects this. */
3110 char const *const *ccp; 3628 char const *const *pcpcc;
3111 char **p; 3629 char **ppc;
3112 /* NEC SVR4.0.2 mips cc rejects this. */ 3630 /* NEC SVR4.0.2 mips cc rejects this. */
3113 struct point {int x, y;}; 3631 struct point {int x, y;};
3114 static struct point const zero = {0,0}; 3632 static struct point const zero = {0,0};
@@ -3117,16 +3635,17 @@ main ()
3117 an arm of an if-expression whose if-part is not a constant 3635 an arm of an if-expression whose if-part is not a constant
3118 expression */ 3636 expression */
3119 const char *g = "string"; 3637 const char *g = "string";
3120 ccp = &g + (g ? g-g : 0); 3638 pcpcc = &g + (g ? g-g : 0);
3121 /* HPUX 7.0 cc rejects these. */ 3639 /* HPUX 7.0 cc rejects these. */
3122 ++ccp; 3640 ++pcpcc;
3123 p = (char**) ccp; 3641 ppc = (char**) pcpcc;
3124 ccp = (char const *const *) p; 3642 pcpcc = (char const *const *) ppc;
3125 { /* SCO 3.2v4 cc rejects this. */ 3643 { /* SCO 3.2v4 cc rejects this. */
3126 char *t; 3644 char *t;
3127 char const *s = 0 ? (char *) 0 : (char const *) 0; 3645 char const *s = 0 ? (char *) 0 : (char const *) 0;
3128 3646
3129 *t++ = 0; 3647 *t++ = 0;
3648 if (s) return 0;
3130 } 3649 }
3131 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 3650 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3132 int x[] = {25, 17}; 3651 int x[] = {25, 17};
@@ -3145,7 +3664,9 @@ main ()
3145 } 3664 }
3146 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 3665 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3147 const int foo = 10; 3666 const int foo = 10;
3667 if (!foo) return 0;
3148 } 3668 }
3669 return !cs[0] && !zero.x;
3149#endif 3670#endif
3150 3671
3151 ; 3672 ;
@@ -3153,23 +3674,36 @@ main ()
3153} 3674}
3154_ACEOF 3675_ACEOF
3155rm -f conftest.$ac_objext 3676rm -f conftest.$ac_objext
3156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3677if { (ac_try="$ac_compile"
3157 (eval $ac_compile) 2>conftest.er1 3678case "(($ac_try" in
3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3681esac
3682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3683 (eval "$ac_compile") 2>conftest.er1
3158 ac_status=$? 3684 ac_status=$?
3159 grep -v '^ *+' conftest.er1 >conftest.err 3685 grep -v '^ *+' conftest.er1 >conftest.err
3160 rm -f conftest.er1 3686 rm -f conftest.er1
3161 cat conftest.err >&5 3687 cat conftest.err >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } && 3689 (exit $ac_status); } &&
3164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3691 { (case "(($ac_try" in
3166 (eval $ac_try) 2>&5 3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3694esac
3695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696 (eval "$ac_try") 2>&5
3167 ac_status=$? 3697 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; } && 3699 (exit $ac_status); }; } &&
3170 { ac_try='test -s conftest.$ac_objext' 3700 { ac_try='test -s conftest.$ac_objext'
3171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3701 { (case "(($ac_try" in
3172 (eval $ac_try) 2>&5 3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704esac
3705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3706 (eval "$ac_try") 2>&5
3173 ac_status=$? 3707 ac_status=$?
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }; }; then 3709 (exit $ac_status); }; }; then
@@ -3178,12 +3712,13 @@ else
3178 echo "$as_me: failed program was:" >&5 3712 echo "$as_me: failed program was:" >&5
3179sed 's/^/| /' conftest.$ac_ext >&5 3713sed 's/^/| /' conftest.$ac_ext >&5
3180 3714
3181ac_cv_c_const=no 3715 ac_cv_c_const=no
3182fi 3716fi
3183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3717
3718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184fi 3719fi
3185echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 3720{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3186echo "${ECHO_T}$ac_cv_c_const" >&6 3721echo "${ECHO_T}$ac_cv_c_const" >&6; }
3187if test $ac_cv_c_const = no; then 3722if test $ac_cv_c_const = no; then
3188 3723
3189cat >>confdefs.h <<\_ACEOF 3724cat >>confdefs.h <<\_ACEOF
@@ -3192,8 +3727,8 @@ _ACEOF
3192 3727
3193fi 3728fi
3194 3729
3195echo "$as_me:$LINENO: checking for inline" >&5 3730{ echo "$as_me:$LINENO: checking for inline" >&5
3196echo $ECHO_N "checking for inline... $ECHO_C" >&6 3731echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3197if test "${ac_cv_c_inline+set}" = set; then 3732if test "${ac_cv_c_inline+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6 3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3199else 3734else
@@ -3213,38 +3748,54 @@ $ac_kw foo_t foo () {return 0; }
3213 3748
3214_ACEOF 3749_ACEOF
3215rm -f conftest.$ac_objext 3750rm -f conftest.$ac_objext
3216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3751if { (ac_try="$ac_compile"
3217 (eval $ac_compile) 2>conftest.er1 3752case "(($ac_try" in
3753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754 *) ac_try_echo=$ac_try;;
3755esac
3756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3757 (eval "$ac_compile") 2>conftest.er1
3218 ac_status=$? 3758 ac_status=$?
3219 grep -v '^ *+' conftest.er1 >conftest.err 3759 grep -v '^ *+' conftest.er1 >conftest.err
3220 rm -f conftest.er1 3760 rm -f conftest.er1
3221 cat conftest.err >&5 3761 cat conftest.err >&5
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); } && 3763 (exit $ac_status); } &&
3224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3765 { (case "(($ac_try" in
3226 (eval $ac_try) 2>&5 3766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3767 *) ac_try_echo=$ac_try;;
3768esac
3769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3770 (eval "$ac_try") 2>&5
3227 ac_status=$? 3771 ac_status=$?
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; } && 3773 (exit $ac_status); }; } &&
3230 { ac_try='test -s conftest.$ac_objext' 3774 { ac_try='test -s conftest.$ac_objext'
3231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3775 { (case "(($ac_try" in
3232 (eval $ac_try) 2>&5 3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3778esac
3779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3780 (eval "$ac_try") 2>&5
3233 ac_status=$? 3781 ac_status=$?
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); }; }; then 3783 (exit $ac_status); }; }; then
3236 ac_cv_c_inline=$ac_kw; break 3784 ac_cv_c_inline=$ac_kw
3237else 3785else
3238 echo "$as_me: failed program was:" >&5 3786 echo "$as_me: failed program was:" >&5
3239sed 's/^/| /' conftest.$ac_ext >&5 3787sed 's/^/| /' conftest.$ac_ext >&5
3240 3788
3789
3241fi 3790fi
3242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3791
3792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793 test "$ac_cv_c_inline" != no && break
3243done 3794done
3244 3795
3245fi 3796fi
3246echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 3797{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3247echo "${ECHO_T}$ac_cv_c_inline" >&6 3798echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3248 3799
3249 3800
3250case $ac_cv_c_inline in 3801case $ac_cv_c_inline in
@@ -3269,10 +3820,9 @@ esac
3269## ----------------------- ## 3820## ----------------------- ##
3270 3821
3271 3822
3272# Check whether --enable-shared or --disable-shared was given. 3823# Check whether --enable-shared was given.
3273if test "${enable_shared+set}" = set; then 3824if test "${enable_shared+set}" = set; then
3274 enableval="$enable_shared" 3825 enableval=$enable_shared; p=${PACKAGE-default}
3275 p=${PACKAGE-default}
3276 case $enableval in 3826 case $enableval in
3277 yes) enable_shared=yes ;; 3827 yes) enable_shared=yes ;;
3278 no) enable_shared=no ;; 3828 no) enable_shared=no ;;
@@ -3291,12 +3841,12 @@ if test "${enable_shared+set}" = set; then
3291 esac 3841 esac
3292else 3842else
3293 enable_shared=yes 3843 enable_shared=yes
3294fi; 3844fi
3295 3845
3296# Check whether --enable-static or --disable-static was given. 3846
3847# Check whether --enable-static was given.
3297if test "${enable_static+set}" = set; then 3848if test "${enable_static+set}" = set; then
3298 enableval="$enable_static" 3849 enableval=$enable_static; p=${PACKAGE-default}
3299 p=${PACKAGE-default}
3300 case $enableval in 3850 case $enableval in
3301 yes) enable_static=yes ;; 3851 yes) enable_static=yes ;;
3302 no) enable_static=no ;; 3852 no) enable_static=no ;;
@@ -3315,12 +3865,12 @@ if test "${enable_static+set}" = set; then
3315 esac 3865 esac
3316else 3866else
3317 enable_static=yes 3867 enable_static=yes
3318fi; 3868fi
3319 3869
3320# Check whether --enable-fast-install or --disable-fast-install was given. 3870
3871# Check whether --enable-fast-install was given.
3321if test "${enable_fast_install+set}" = set; then 3872if test "${enable_fast_install+set}" = set; then
3322 enableval="$enable_fast_install" 3873 enableval=$enable_fast_install; p=${PACKAGE-default}
3323 p=${PACKAGE-default}
3324 case $enableval in 3874 case $enableval in
3325 yes) enable_fast_install=yes ;; 3875 yes) enable_fast_install=yes ;;
3326 no) enable_fast_install=no ;; 3876 no) enable_fast_install=no ;;
@@ -3339,64 +3889,94 @@ if test "${enable_fast_install+set}" = set; then
3339 esac 3889 esac
3340else 3890else
3341 enable_fast_install=yes 3891 enable_fast_install=yes
3342fi; 3892fi
3893
3343 3894
3344# Make sure we can run config.sub. 3895# Make sure we can run config.sub.
3345$ac_config_sub sun4 >/dev/null 2>&1 || 3896$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3346 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 3897 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3347echo "$as_me: error: cannot run $ac_config_sub" >&2;} 3898echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3348 { (exit 1); exit 1; }; } 3899 { (exit 1); exit 1; }; }
3349 3900
3350echo "$as_me:$LINENO: checking build system type" >&5 3901{ echo "$as_me:$LINENO: checking build system type" >&5
3351echo $ECHO_N "checking build system type... $ECHO_C" >&6 3902echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3352if test "${ac_cv_build+set}" = set; then 3903if test "${ac_cv_build+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6 3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3354else 3905else
3355 ac_cv_build_alias=$build_alias 3906 ac_build_alias=$build_alias
3356test -z "$ac_cv_build_alias" && 3907test "x$ac_build_alias" = x &&
3357 ac_cv_build_alias=`$ac_config_guess` 3908 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3358test -z "$ac_cv_build_alias" && 3909test "x$ac_build_alias" = x &&
3359 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3910 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3360echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3911echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3361 { (exit 1); exit 1; }; } 3912 { (exit 1); exit 1; }; }
3362ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 3913ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3363 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 3914 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3364echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 3915echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3365 { (exit 1); exit 1; }; } 3916 { (exit 1); exit 1; }; }
3366 3917
3367fi 3918fi
3368echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3919{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3369echo "${ECHO_T}$ac_cv_build" >&6 3920echo "${ECHO_T}$ac_cv_build" >&6; }
3921case $ac_cv_build in
3922*-*-*) ;;
3923*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3924echo "$as_me: error: invalid value of canonical build" >&2;}
3925 { (exit 1); exit 1; }; };;
3926esac
3370build=$ac_cv_build 3927build=$ac_cv_build
3371build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3928ac_save_IFS=$IFS; IFS='-'
3372build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3929set x $ac_cv_build
3373build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3930shift
3374 3931build_cpu=$1
3375 3932build_vendor=$2
3376echo "$as_me:$LINENO: checking host system type" >&5 3933shift; shift
3377echo $ECHO_N "checking host system type... $ECHO_C" >&6 3934# Remember, the first character of IFS is used to create $*,
3935# except with old shells:
3936build_os=$*
3937IFS=$ac_save_IFS
3938case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3939
3940
3941{ echo "$as_me:$LINENO: checking host system type" >&5
3942echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3378if test "${ac_cv_host+set}" = set; then 3943if test "${ac_cv_host+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6 3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3380else 3945else
3381 ac_cv_host_alias=$host_alias 3946 if test "x$host_alias" = x; then
3382test -z "$ac_cv_host_alias" && 3947 ac_cv_host=$ac_cv_build
3383 ac_cv_host_alias=$ac_cv_build_alias 3948else
3384ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 3949 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3385 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 3950 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3386echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 3951echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3387 { (exit 1); exit 1; }; } 3952 { (exit 1); exit 1; }; }
3953fi
3388 3954
3389fi 3955fi
3390echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3956{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3391echo "${ECHO_T}$ac_cv_host" >&6 3957echo "${ECHO_T}$ac_cv_host" >&6; }
3958case $ac_cv_host in
3959*-*-*) ;;
3960*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3961echo "$as_me: error: invalid value of canonical host" >&2;}
3962 { (exit 1); exit 1; }; };;
3963esac
3392host=$ac_cv_host 3964host=$ac_cv_host
3393host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3965ac_save_IFS=$IFS; IFS='-'
3394host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3966set x $ac_cv_host
3395host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3967shift
3396 3968host_cpu=$1
3397 3969host_vendor=$2
3398echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3970shift; shift
3399echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3971# Remember, the first character of IFS is used to create $*,
3972# except with old shells:
3973host_os=$*
3974IFS=$ac_save_IFS
3975case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3976
3977
3978{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3979echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3400if test "${lt_cv_path_SED+set}" = set; then 3980if test "${lt_cv_path_SED+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6 3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3402else 3982else
@@ -3420,7 +4000,7 @@ lt_ac_count=0
3420# Add /usr/xpg4/bin/sed as it is typically found on Solaris 4000# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3421# along with /bin/sed that truncates output. 4001# along with /bin/sed that truncates output.
3422for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 4002for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3423 test ! -f $lt_ac_sed && break 4003 test ! -f $lt_ac_sed && continue
3424 cat /dev/null > conftest.in 4004 cat /dev/null > conftest.in
3425 lt_ac_count=0 4005 lt_ac_count=0
3426 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 4006 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
@@ -3445,41 +4025,188 @@ for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3445 fi 4025 fi
3446 done 4026 done
3447done 4027done
4028
4029fi
4030
3448SED=$lt_cv_path_SED 4031SED=$lt_cv_path_SED
4032{ echo "$as_me:$LINENO: result: $SED" >&5
4033echo "${ECHO_T}$SED" >&6; }
4034
4035{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4036echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4037if test "${ac_cv_path_GREP+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4039else
4040 # Extract the first word of "grep ggrep" to use in msg output
4041if test -z "$GREP"; then
4042set dummy grep ggrep; ac_prog_name=$2
4043if test "${ac_cv_path_GREP+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045else
4046 ac_path_GREP_found=false
4047# Loop through the user's path and test for each of PROGNAME-LIST
4048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4050do
4051 IFS=$as_save_IFS
4052 test -z "$as_dir" && as_dir=.
4053 for ac_prog in grep ggrep; do
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4056 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4057 # Check for GNU ac_path_GREP and select it if it is found.
4058 # Check for GNU $ac_path_GREP
4059case `"$ac_path_GREP" --version 2>&1` in
4060*GNU*)
4061 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4062*)
4063 ac_count=0
4064 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4065 while :
4066 do
4067 cat "conftest.in" "conftest.in" >"conftest.tmp"
4068 mv "conftest.tmp" "conftest.in"
4069 cp "conftest.in" "conftest.nl"
4070 echo 'GREP' >> "conftest.nl"
4071 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4072 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4073 ac_count=`expr $ac_count + 1`
4074 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4075 # Best one so far, save it but keep looking for a better one
4076 ac_cv_path_GREP="$ac_path_GREP"
4077 ac_path_GREP_max=$ac_count
4078 fi
4079 # 10*(2^10) chars as input seems more than enough
4080 test $ac_count -gt 10 && break
4081 done
4082 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4083esac
4084
4085
4086 $ac_path_GREP_found && break 3
4087 done
4088done
4089
4090done
4091IFS=$as_save_IFS
4092
3449 4093
3450fi 4094fi
3451 4095
3452echo "$as_me:$LINENO: result: $SED" >&5 4096GREP="$ac_cv_path_GREP"
3453echo "${ECHO_T}$SED" >&6 4097if test -z "$GREP"; then
4098 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4099echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4100 { (exit 1); exit 1; }; }
4101fi
4102
4103else
4104 ac_cv_path_GREP=$GREP
4105fi
4106
4107
4108fi
4109{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4110echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4111 GREP="$ac_cv_path_GREP"
4112
3454 4113
3455echo "$as_me:$LINENO: checking for egrep" >&5 4114{ echo "$as_me:$LINENO: checking for egrep" >&5
3456echo $ECHO_N "checking for egrep... $ECHO_C" >&6 4115echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3457if test "${ac_cv_prog_egrep+set}" = set; then 4116if test "${ac_cv_path_EGREP+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6 4117 echo $ECHO_N "(cached) $ECHO_C" >&6
3459else 4118else
3460 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 4119 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3461 then ac_cv_prog_egrep='grep -E' 4120 then ac_cv_path_EGREP="$GREP -E"
3462 else ac_cv_prog_egrep='egrep' 4121 else
4122 # Extract the first word of "egrep" to use in msg output
4123if test -z "$EGREP"; then
4124set dummy egrep; ac_prog_name=$2
4125if test "${ac_cv_path_EGREP+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127else
4128 ac_path_EGREP_found=false
4129# Loop through the user's path and test for each of PROGNAME-LIST
4130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4132do
4133 IFS=$as_save_IFS
4134 test -z "$as_dir" && as_dir=.
4135 for ac_prog in egrep; do
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4138 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4139 # Check for GNU ac_path_EGREP and select it if it is found.
4140 # Check for GNU $ac_path_EGREP
4141case `"$ac_path_EGREP" --version 2>&1` in
4142*GNU*)
4143 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4144*)
4145 ac_count=0
4146 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4147 while :
4148 do
4149 cat "conftest.in" "conftest.in" >"conftest.tmp"
4150 mv "conftest.tmp" "conftest.in"
4151 cp "conftest.in" "conftest.nl"
4152 echo 'EGREP' >> "conftest.nl"
4153 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4155 ac_count=`expr $ac_count + 1`
4156 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4157 # Best one so far, save it but keep looking for a better one
4158 ac_cv_path_EGREP="$ac_path_EGREP"
4159 ac_path_EGREP_max=$ac_count
3463 fi 4160 fi
4161 # 10*(2^10) chars as input seems more than enough
4162 test $ac_count -gt 10 && break
4163 done
4164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4165esac
4166
4167
4168 $ac_path_EGREP_found && break 3
4169 done
4170done
4171
4172done
4173IFS=$as_save_IFS
4174
4175
4176fi
4177
4178EGREP="$ac_cv_path_EGREP"
4179if test -z "$EGREP"; then
4180 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4181echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4182 { (exit 1); exit 1; }; }
3464fi 4183fi
3465echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3466echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3467 EGREP=$ac_cv_prog_egrep
3468 4184
4185else
4186 ac_cv_path_EGREP=$EGREP
4187fi
3469 4188
3470 4189
3471# Check whether --with-gnu-ld or --without-gnu-ld was given. 4190 fi
4191fi
4192{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4193echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4194 EGREP="$ac_cv_path_EGREP"
4195
4196
4197
4198# Check whether --with-gnu-ld was given.
3472if test "${with_gnu_ld+set}" = set; then 4199if test "${with_gnu_ld+set}" = set; then
3473 withval="$with_gnu_ld" 4200 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3474 test "$withval" = no || with_gnu_ld=yes
3475else 4201else
3476 with_gnu_ld=no 4202 with_gnu_ld=no
3477fi; 4203fi
4204
3478ac_prog=ld 4205ac_prog=ld
3479if test "$GCC" = yes; then 4206if test "$GCC" = yes; then
3480 # Check if gcc -print-prog-name=ld gives a path. 4207 # Check if gcc -print-prog-name=ld gives a path.
3481 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4208 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3482echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 4209echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3483 case $host in 4210 case $host in
3484 *-*-mingw*) 4211 *-*-mingw*)
3485 # gcc leaves a trailing carriage return which upsets mingw 4212 # gcc leaves a trailing carriage return which upsets mingw
@@ -3508,11 +4235,11 @@ echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3508 ;; 4235 ;;
3509 esac 4236 esac
3510elif test "$with_gnu_ld" = yes; then 4237elif test "$with_gnu_ld" = yes; then
3511 echo "$as_me:$LINENO: checking for GNU ld" >&5 4238 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3512echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 4239echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3513else 4240else
3514 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4241 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3515echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 4242echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3516fi 4243fi
3517if test "${lt_cv_path_LD+set}" = set; then 4244if test "${lt_cv_path_LD+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6 4245 echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -3525,7 +4252,7 @@ else
3525 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4252 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3526 lt_cv_path_LD="$ac_dir/$ac_prog" 4253 lt_cv_path_LD="$ac_dir/$ac_prog"
3527 # Check to see if the program is GNU ld. I'd rather use --version, 4254 # Check to see if the program is GNU ld. I'd rather use --version,
3528 # but apparently some GNU ld's only accept -v. 4255 # but apparently some variants of GNU ld only accept -v.
3529 # Break only if it was the GNU/non-GNU ld that we prefer. 4256 # Break only if it was the GNU/non-GNU ld that we prefer.
3530 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4257 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3531 *GNU* | *'with BFD'*) 4258 *GNU* | *'with BFD'*)
@@ -3545,21 +4272,21 @@ fi
3545 4272
3546LD="$lt_cv_path_LD" 4273LD="$lt_cv_path_LD"
3547if test -n "$LD"; then 4274if test -n "$LD"; then
3548 echo "$as_me:$LINENO: result: $LD" >&5 4275 { echo "$as_me:$LINENO: result: $LD" >&5
3549echo "${ECHO_T}$LD" >&6 4276echo "${ECHO_T}$LD" >&6; }
3550else 4277else
3551 echo "$as_me:$LINENO: result: no" >&5 4278 { echo "$as_me:$LINENO: result: no" >&5
3552echo "${ECHO_T}no" >&6 4279echo "${ECHO_T}no" >&6; }
3553fi 4280fi
3554test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4281test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3555echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4282echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3556 { (exit 1); exit 1; }; } 4283 { (exit 1); exit 1; }; }
3557echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4284{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3558echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 4285echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3559if test "${lt_cv_prog_gnu_ld+set}" = set; then 4286if test "${lt_cv_prog_gnu_ld+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6 4287 echo $ECHO_N "(cached) $ECHO_C" >&6
3561else 4288else
3562 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 4289 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3563case `$LD -v 2>&1 </dev/null` in 4290case `$LD -v 2>&1 </dev/null` in
3564*GNU* | *'with BFD'*) 4291*GNU* | *'with BFD'*)
3565 lt_cv_prog_gnu_ld=yes 4292 lt_cv_prog_gnu_ld=yes
@@ -3569,29 +4296,38 @@ case `$LD -v 2>&1 </dev/null` in
3569 ;; 4296 ;;
3570esac 4297esac
3571fi 4298fi
3572echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4299{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3573echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 4300echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3574with_gnu_ld=$lt_cv_prog_gnu_ld 4301with_gnu_ld=$lt_cv_prog_gnu_ld
3575 4302
3576 4303
3577echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4304{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3578echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 4305echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3579if test "${lt_cv_ld_reload_flag+set}" = set; then 4306if test "${lt_cv_ld_reload_flag+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6 4307 echo $ECHO_N "(cached) $ECHO_C" >&6
3581else 4308else
3582 lt_cv_ld_reload_flag='-r' 4309 lt_cv_ld_reload_flag='-r'
3583fi 4310fi
3584echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4311{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3585echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 4312echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3586reload_flag=$lt_cv_ld_reload_flag 4313reload_flag=$lt_cv_ld_reload_flag
3587case $reload_flag in 4314case $reload_flag in
3588"" | " "*) ;; 4315"" | " "*) ;;
3589*) reload_flag=" $reload_flag" ;; 4316*) reload_flag=" $reload_flag" ;;
3590esac 4317esac
3591reload_cmds='$LD$reload_flag -o $output$reload_objs' 4318reload_cmds='$LD$reload_flag -o $output$reload_objs'
4319case $host_os in
4320 darwin*)
4321 if test "$GCC" = yes; then
4322 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4323 else
4324 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4325 fi
4326 ;;
4327esac
3592 4328
3593echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4329{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3594echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 4330echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3595if test "${lt_cv_path_NM+set}" = set; then 4331if test "${lt_cv_path_NM+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6 4332 echo $ECHO_N "(cached) $ECHO_C" >&6
3597else 4333else
@@ -3599,56 +4335,63 @@ else
3599 # Let the user override the test. 4335 # Let the user override the test.
3600 lt_cv_path_NM="$NM" 4336 lt_cv_path_NM="$NM"
3601else 4337else
3602 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4338 lt_nm_to_check="${ac_tool_prefix}nm"
3603 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 4339 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3604 IFS="$lt_save_ifs" 4340 lt_nm_to_check="$lt_nm_to_check nm"
3605 test -z "$ac_dir" && ac_dir=. 4341 fi
3606 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 4342 for lt_tmp_nm in $lt_nm_to_check; do
3607 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3608 # Check to see if the nm accepts a BSD-compat flag. 4344 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3609 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4345 IFS="$lt_save_ifs"
3610 # nm: unknown option "B" ignored 4346 test -z "$ac_dir" && ac_dir=.
3611 # Tru64's nm complains that /dev/null is an invalid object file 4347 tmp_nm="$ac_dir/$lt_tmp_nm"
3612 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4348 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3613 */dev/null* | *'Invalid file or object type'*) 4349 # Check to see if the nm accepts a BSD-compat flag.
3614 lt_cv_path_NM="$tmp_nm -B" 4350 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3615 break 4351 # nm: unknown option "B" ignored
3616 ;; 4352 # Tru64's nm complains that /dev/null is an invalid object file
3617 *) 4353 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3618 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4354 */dev/null* | *'Invalid file or object type'*)
3619 */dev/null*) 4355 lt_cv_path_NM="$tmp_nm -B"
3620 lt_cv_path_NM="$tmp_nm -p"
3621 break 4356 break
3622 ;; 4357 ;;
3623 *) 4358 *)
3624 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4359 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3625 continue # so that we can try to find one that supports BSD flags 4360 */dev/null*)
4361 lt_cv_path_NM="$tmp_nm -p"
4362 break
4363 ;;
4364 *)
4365 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4366 continue # so that we can try to find one that supports BSD flags
4367 ;;
4368 esac
3626 ;; 4369 ;;
3627 esac 4370 esac
3628 esac 4371 fi
3629 fi 4372 done
4373 IFS="$lt_save_ifs"
3630 done 4374 done
3631 IFS="$lt_save_ifs"
3632 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4375 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3633fi 4376fi
3634fi 4377fi
3635echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4378{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3636echo "${ECHO_T}$lt_cv_path_NM" >&6 4379echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3637NM="$lt_cv_path_NM" 4380NM="$lt_cv_path_NM"
3638 4381
3639echo "$as_me:$LINENO: checking whether ln -s works" >&5 4382{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3640echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 4383echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3641LN_S=$as_ln_s 4384LN_S=$as_ln_s
3642if test "$LN_S" = "ln -s"; then 4385if test "$LN_S" = "ln -s"; then
3643 echo "$as_me:$LINENO: result: yes" >&5 4386 { echo "$as_me:$LINENO: result: yes" >&5
3644echo "${ECHO_T}yes" >&6 4387echo "${ECHO_T}yes" >&6; }
3645else 4388else
3646 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4389 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3647echo "${ECHO_T}no, using $LN_S" >&6 4390echo "${ECHO_T}no, using $LN_S" >&6; }
3648fi 4391fi
3649 4392
3650echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4393{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3651echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 4394echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
3652if test "${lt_cv_deplibs_check_method+set}" = set; then 4395if test "${lt_cv_deplibs_check_method+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6 4396 echo $ECHO_N "(cached) $ECHO_C" >&6
3654else 4397else
@@ -3675,7 +4418,7 @@ beos*)
3675 lt_cv_deplibs_check_method=pass_all 4418 lt_cv_deplibs_check_method=pass_all
3676 ;; 4419 ;;
3677 4420
3678bsdi4*) 4421bsdi[45]*)
3679 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4422 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3680 lt_cv_file_magic_cmd='/usr/bin/file -L' 4423 lt_cv_file_magic_cmd='/usr/bin/file -L'
3681 lt_cv_file_magic_test_file=/shlib/libc.so 4424 lt_cv_file_magic_test_file=/shlib/libc.so
@@ -3698,13 +4441,13 @@ darwin* | rhapsody*)
3698 lt_cv_deplibs_check_method=pass_all 4441 lt_cv_deplibs_check_method=pass_all
3699 ;; 4442 ;;
3700 4443
3701freebsd* | kfreebsd*-gnu) 4444freebsd* | dragonfly*)
3702 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4445 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3703 case $host_cpu in 4446 case $host_cpu in
3704 i*86 ) 4447 i*86 )
3705 # Not sure whether the presence of OpenBSD here was a mistake. 4448 # Not sure whether the presence of OpenBSD here was a mistake.
3706 # Let's accept both of them until this is cleared up. 4449 # Let's accept both of them until this is cleared up.
3707 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 4450 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3708 lt_cv_file_magic_cmd=/usr/bin/file 4451 lt_cv_file_magic_cmd=/usr/bin/file
3709 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4452 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3710 ;; 4453 ;;
@@ -3720,7 +4463,7 @@ gnu*)
3720 4463
3721hpux10.20* | hpux11*) 4464hpux10.20* | hpux11*)
3722 lt_cv_file_magic_cmd=/usr/bin/file 4465 lt_cv_file_magic_cmd=/usr/bin/file
3723 case "$host_cpu" in 4466 case $host_cpu in
3724 ia64*) 4467 ia64*)
3725 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4468 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3726 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4469 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
@@ -3736,6 +4479,11 @@ hpux10.20* | hpux11*)
3736 esac 4479 esac
3737 ;; 4480 ;;
3738 4481
4482interix3*)
4483 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4484 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4485 ;;
4486
3739irix5* | irix6* | nonstopux*) 4487irix5* | irix6* | nonstopux*)
3740 case $LD in 4488 case $LD in
3741 *-32|*"-32 ") libmagic=32-bit;; 4489 *-32|*"-32 ") libmagic=32-bit;;
@@ -3747,11 +4495,11 @@ irix5* | irix6* | nonstopux*)
3747 ;; 4495 ;;
3748 4496
3749# This must be Linux ELF. 4497# This must be Linux ELF.
3750linux*) 4498linux* | k*bsd*-gnu)
3751 lt_cv_deplibs_check_method=pass_all 4499 lt_cv_deplibs_check_method=pass_all
3752 ;; 4500 ;;
3753 4501
3754netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 4502netbsd* | netbsdelf*-gnu)
3755 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4503 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3756 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4504 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3757 else 4505 else
@@ -3770,12 +4518,10 @@ nto-qnx*)
3770 ;; 4518 ;;
3771 4519
3772openbsd*) 4520openbsd*)
3773 lt_cv_file_magic_cmd=/usr/bin/file
3774 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3775 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4521 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3776 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 4522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3777 else 4523 else
3778 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 4524 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3779 fi 4525 fi
3780 ;; 4526 ;;
3781 4527
@@ -3783,15 +4529,11 @@ osf3* | osf4* | osf5*)
3783 lt_cv_deplibs_check_method=pass_all 4529 lt_cv_deplibs_check_method=pass_all
3784 ;; 4530 ;;
3785 4531
3786sco3.2v5*)
3787 lt_cv_deplibs_check_method=pass_all
3788 ;;
3789
3790solaris*) 4532solaris*)
3791 lt_cv_deplibs_check_method=pass_all 4533 lt_cv_deplibs_check_method=pass_all
3792 ;; 4534 ;;
3793 4535
3794sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 4536sysv4 | sysv4.3*)
3795 case $host_vendor in 4537 case $host_vendor in
3796 motorola) 4538 motorola)
3797 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 4539 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
@@ -3812,17 +4554,20 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3812 siemens) 4554 siemens)
3813 lt_cv_deplibs_check_method=pass_all 4555 lt_cv_deplibs_check_method=pass_all
3814 ;; 4556 ;;
4557 pc)
4558 lt_cv_deplibs_check_method=pass_all
4559 ;;
3815 esac 4560 esac
3816 ;; 4561 ;;
3817 4562
3818sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 4563sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3819 lt_cv_deplibs_check_method=pass_all 4564 lt_cv_deplibs_check_method=pass_all
3820 ;; 4565 ;;
3821esac 4566esac
3822 4567
3823fi 4568fi
3824echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4569{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3825echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 4570echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
3826file_magic_cmd=$lt_cv_file_magic_cmd 4571file_magic_cmd=$lt_cv_file_magic_cmd
3827deplibs_check_method=$lt_cv_deplibs_check_method 4572deplibs_check_method=$lt_cv_deplibs_check_method
3828test -z "$deplibs_check_method" && deplibs_check_method=unknown 4573test -z "$deplibs_check_method" && deplibs_check_method=unknown
@@ -3833,14 +4578,17 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
3833# If no C compiler was specified, use CC. 4578# If no C compiler was specified, use CC.
3834LTCC=${LTCC-"$CC"} 4579LTCC=${LTCC-"$CC"}
3835 4580
4581# If no C compiler flags were specified, use CFLAGS.
4582LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4583
3836# Allow CC to be a program name with arguments. 4584# Allow CC to be a program name with arguments.
3837compiler=$CC 4585compiler=$CC
3838 4586
3839# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 4587# Check whether --enable-libtool-lock was given.
3840if test "${enable_libtool_lock+set}" = set; then 4588if test "${enable_libtool_lock+set}" = set; then
3841 enableval="$enable_libtool_lock" 4589 enableval=$enable_libtool_lock;
4590fi
3842 4591
3843fi;
3844test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4592test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3845 4593
3846# Some flags need to be propagated to the compiler or linker for good 4594# Some flags need to be propagated to the compiler or linker for good
@@ -3867,7 +4615,7 @@ ia64-*-hpux*)
3867 ;; 4615 ;;
3868*-*-irix6*) 4616*-*-irix6*)
3869 # Find out which ABI we are using. 4617 # Find out which ABI we are using.
3870 echo '#line 3870 "configure"' > conftest.$ac_ext 4618 echo '#line 4618 "configure"' > conftest.$ac_ext
3871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3872 (eval $ac_compile) 2>&5 4620 (eval $ac_compile) 2>&5
3873 ac_status=$? 4621 ac_status=$?
@@ -3910,7 +4658,7 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3910 ac_status=$? 4658 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; then 4660 (exit $ac_status); }; then
3913 case "`/usr/bin/file conftest.o`" in 4661 case `/usr/bin/file conftest.o` in
3914 *32-bit*) 4662 *32-bit*)
3915 case $host in 4663 case $host in
3916 x86_64-*linux*) 4664 x86_64-*linux*)
@@ -3952,8 +4700,8 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3952 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4700 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3953 SAVE_CFLAGS="$CFLAGS" 4701 SAVE_CFLAGS="$CFLAGS"
3954 CFLAGS="$CFLAGS -belf" 4702 CFLAGS="$CFLAGS -belf"
3955 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4703 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3956echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 4704echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
3957if test "${lt_cv_cc_needs_belf+set}" = set; then 4705if test "${lt_cv_cc_needs_belf+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6 4706 echo $ECHO_N "(cached) $ECHO_C" >&6
3959else 4707else
@@ -3979,23 +4727,36 @@ main ()
3979} 4727}
3980_ACEOF 4728_ACEOF
3981rm -f conftest.$ac_objext conftest$ac_exeext 4729rm -f conftest.$ac_objext conftest$ac_exeext
3982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4730if { (ac_try="$ac_link"
3983 (eval $ac_link) 2>conftest.er1 4731case "(($ac_try" in
4732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4733 *) ac_try_echo=$ac_try;;
4734esac
4735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4736 (eval "$ac_link") 2>conftest.er1
3984 ac_status=$? 4737 ac_status=$?
3985 grep -v '^ *+' conftest.er1 >conftest.err 4738 grep -v '^ *+' conftest.er1 >conftest.err
3986 rm -f conftest.er1 4739 rm -f conftest.er1
3987 cat conftest.err >&5 4740 cat conftest.err >&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } && 4742 (exit $ac_status); } &&
3990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4744 { (case "(($ac_try" in
3992 (eval $ac_try) 2>&5 4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4747esac
4748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4749 (eval "$ac_try") 2>&5
3993 ac_status=$? 4750 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; } && 4752 (exit $ac_status); }; } &&
3996 { ac_try='test -s conftest$ac_exeext' 4753 { ac_try='test -s conftest$ac_exeext'
3997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4754 { (case "(($ac_try" in
3998 (eval $ac_try) 2>&5 4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756 *) ac_try_echo=$ac_try;;
4757esac
4758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4759 (eval "$ac_try") 2>&5
3999 ac_status=$? 4760 ac_status=$?
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }; }; then 4762 (exit $ac_status); }; }; then
@@ -4004,9 +4765,10 @@ else
4004 echo "$as_me: failed program was:" >&5 4765 echo "$as_me: failed program was:" >&5
4005sed 's/^/| /' conftest.$ac_ext >&5 4766sed 's/^/| /' conftest.$ac_ext >&5
4006 4767
4007lt_cv_cc_needs_belf=no 4768 lt_cv_cc_needs_belf=no
4008fi 4769fi
4009rm -f conftest.err conftest.$ac_objext \ 4770
4771rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4010 conftest$ac_exeext conftest.$ac_ext 4772 conftest$ac_exeext conftest.$ac_ext
4011 ac_ext=c 4773 ac_ext=c
4012ac_cpp='$CPP $CPPFLAGS' 4774ac_cpp='$CPP $CPPFLAGS'
@@ -4015,19 +4777,39 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
4015ac_compiler_gnu=$ac_cv_c_compiler_gnu 4777ac_compiler_gnu=$ac_cv_c_compiler_gnu
4016 4778
4017fi 4779fi
4018echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4780{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4019echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 4781echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4020 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4782 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4021 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4783 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4022 CFLAGS="$SAVE_CFLAGS" 4784 CFLAGS="$SAVE_CFLAGS"
4023 fi 4785 fi
4024 ;; 4786 ;;
4787sparc*-*solaris*)
4788 # Find out which ABI we are using.
4789 echo 'int i;' > conftest.$ac_ext
4790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4791 (eval $ac_compile) 2>&5
4792 ac_status=$?
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }; then
4795 case `/usr/bin/file conftest.o` in
4796 *64-bit*)
4797 case $lt_cv_prog_gnu_ld in
4798 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4799 *) LD="${LD-ld} -64" ;;
4800 esac
4801 ;;
4802 esac
4803 fi
4804 rm -rf conftest*
4805 ;;
4806
4025*-*-cygwin* | *-*-mingw* | *-*-pw32*) 4807*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4026 if test -n "$ac_tool_prefix"; then 4808 if test -n "$ac_tool_prefix"; then
4027 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4809 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4028set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4810set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4029echo "$as_me:$LINENO: checking for $ac_word" >&5 4811{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4031if test "${ac_cv_prog_DLLTOOL+set}" = set; then 4813if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6 4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4033else 4815else
@@ -4040,32 +4822,34 @@ do
4040 IFS=$as_save_IFS 4822 IFS=$as_save_IFS
4041 test -z "$as_dir" && as_dir=. 4823 test -z "$as_dir" && as_dir=.
4042 for ac_exec_ext in '' $ac_executable_extensions; do 4824 for ac_exec_ext in '' $ac_executable_extensions; do
4043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4044 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4826 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4046 break 2 4828 break 2
4047 fi 4829 fi
4048done 4830done
4049done 4831done
4832IFS=$as_save_IFS
4050 4833
4051fi 4834fi
4052fi 4835fi
4053DLLTOOL=$ac_cv_prog_DLLTOOL 4836DLLTOOL=$ac_cv_prog_DLLTOOL
4054if test -n "$DLLTOOL"; then 4837if test -n "$DLLTOOL"; then
4055 echo "$as_me:$LINENO: result: $DLLTOOL" >&5 4838 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4056echo "${ECHO_T}$DLLTOOL" >&6 4839echo "${ECHO_T}$DLLTOOL" >&6; }
4057else 4840else
4058 echo "$as_me:$LINENO: result: no" >&5 4841 { echo "$as_me:$LINENO: result: no" >&5
4059echo "${ECHO_T}no" >&6 4842echo "${ECHO_T}no" >&6; }
4060fi 4843fi
4061 4844
4845
4062fi 4846fi
4063if test -z "$ac_cv_prog_DLLTOOL"; then 4847if test -z "$ac_cv_prog_DLLTOOL"; then
4064 ac_ct_DLLTOOL=$DLLTOOL 4848 ac_ct_DLLTOOL=$DLLTOOL
4065 # Extract the first word of "dlltool", so it can be a program name with args. 4849 # Extract the first word of "dlltool", so it can be a program name with args.
4066set dummy dlltool; ac_word=$2 4850set dummy dlltool; ac_word=$2
4067echo "$as_me:$LINENO: checking for $ac_word" >&5 4851{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4069if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then 4853if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6 4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4071else 4855else
@@ -4078,27 +4862,41 @@ do
4078 IFS=$as_save_IFS 4862 IFS=$as_save_IFS
4079 test -z "$as_dir" && as_dir=. 4863 test -z "$as_dir" && as_dir=.
4080 for ac_exec_ext in '' $ac_executable_extensions; do 4864 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4082 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4866 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 break 2 4868 break 2
4085 fi 4869 fi
4086done 4870done
4087done 4871done
4872IFS=$as_save_IFS
4088 4873
4089 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4090fi 4874fi
4091fi 4875fi
4092ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4876ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4093if test -n "$ac_ct_DLLTOOL"; then 4877if test -n "$ac_ct_DLLTOOL"; then
4094 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 4878 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4095echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 4879echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4096else 4880else
4097 echo "$as_me:$LINENO: result: no" >&5 4881 { echo "$as_me:$LINENO: result: no" >&5
4098echo "${ECHO_T}no" >&6 4882echo "${ECHO_T}no" >&6; }
4099fi 4883fi
4100 4884
4101 DLLTOOL=$ac_ct_DLLTOOL 4885 if test "x$ac_ct_DLLTOOL" = x; then
4886 DLLTOOL="false"
4887 else
4888 case $cross_compiling:$ac_tool_warned in
4889yes:)
4890{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4891whose name does not start with the host triplet. If you think this
4892configuration is useful to you, please write to autoconf@gnu.org." >&5
4893echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4894whose name does not start with the host triplet. If you think this
4895configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4896ac_tool_warned=yes ;;
4897esac
4898 DLLTOOL=$ac_ct_DLLTOOL
4899 fi
4102else 4900else
4103 DLLTOOL="$ac_cv_prog_DLLTOOL" 4901 DLLTOOL="$ac_cv_prog_DLLTOOL"
4104fi 4902fi
@@ -4106,8 +4904,8 @@ fi
4106 if test -n "$ac_tool_prefix"; then 4904 if test -n "$ac_tool_prefix"; then
4107 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 4905 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4108set dummy ${ac_tool_prefix}as; ac_word=$2 4906set dummy ${ac_tool_prefix}as; ac_word=$2
4109echo "$as_me:$LINENO: checking for $ac_word" >&5 4907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4111if test "${ac_cv_prog_AS+set}" = set; then 4909if test "${ac_cv_prog_AS+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6 4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4113else 4911else
@@ -4120,32 +4918,34 @@ do
4120 IFS=$as_save_IFS 4918 IFS=$as_save_IFS
4121 test -z "$as_dir" && as_dir=. 4919 test -z "$as_dir" && as_dir=.
4122 for ac_exec_ext in '' $ac_executable_extensions; do 4920 for ac_exec_ext in '' $ac_executable_extensions; do
4123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4124 ac_cv_prog_AS="${ac_tool_prefix}as" 4922 ac_cv_prog_AS="${ac_tool_prefix}as"
4125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4126 break 2 4924 break 2
4127 fi 4925 fi
4128done 4926done
4129done 4927done
4928IFS=$as_save_IFS
4130 4929
4131fi 4930fi
4132fi 4931fi
4133AS=$ac_cv_prog_AS 4932AS=$ac_cv_prog_AS
4134if test -n "$AS"; then 4933if test -n "$AS"; then
4135 echo "$as_me:$LINENO: result: $AS" >&5 4934 { echo "$as_me:$LINENO: result: $AS" >&5
4136echo "${ECHO_T}$AS" >&6 4935echo "${ECHO_T}$AS" >&6; }
4137else 4936else
4138 echo "$as_me:$LINENO: result: no" >&5 4937 { echo "$as_me:$LINENO: result: no" >&5
4139echo "${ECHO_T}no" >&6 4938echo "${ECHO_T}no" >&6; }
4140fi 4939fi
4141 4940
4941
4142fi 4942fi
4143if test -z "$ac_cv_prog_AS"; then 4943if test -z "$ac_cv_prog_AS"; then
4144 ac_ct_AS=$AS 4944 ac_ct_AS=$AS
4145 # Extract the first word of "as", so it can be a program name with args. 4945 # Extract the first word of "as", so it can be a program name with args.
4146set dummy as; ac_word=$2 4946set dummy as; ac_word=$2
4147echo "$as_me:$LINENO: checking for $ac_word" >&5 4947{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4149if test "${ac_cv_prog_ac_ct_AS+set}" = set; then 4949if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6 4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4151else 4951else
@@ -4158,27 +4958,41 @@ do
4158 IFS=$as_save_IFS 4958 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=. 4959 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do 4960 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4162 ac_cv_prog_ac_ct_AS="as" 4962 ac_cv_prog_ac_ct_AS="as"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2 4964 break 2
4165 fi 4965 fi
4166done 4966done
4167done 4967done
4968IFS=$as_save_IFS
4168 4969
4169 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4170fi 4970fi
4171fi 4971fi
4172ac_ct_AS=$ac_cv_prog_ac_ct_AS 4972ac_ct_AS=$ac_cv_prog_ac_ct_AS
4173if test -n "$ac_ct_AS"; then 4973if test -n "$ac_ct_AS"; then
4174 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 4974 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4175echo "${ECHO_T}$ac_ct_AS" >&6 4975echo "${ECHO_T}$ac_ct_AS" >&6; }
4176else 4976else
4177 echo "$as_me:$LINENO: result: no" >&5 4977 { echo "$as_me:$LINENO: result: no" >&5
4178echo "${ECHO_T}no" >&6 4978echo "${ECHO_T}no" >&6; }
4179fi 4979fi
4180 4980
4181 AS=$ac_ct_AS 4981 if test "x$ac_ct_AS" = x; then
4982 AS="false"
4983 else
4984 case $cross_compiling:$ac_tool_warned in
4985yes:)
4986{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4987whose name does not start with the host triplet. If you think this
4988configuration is useful to you, please write to autoconf@gnu.org." >&5
4989echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4990whose name does not start with the host triplet. If you think this
4991configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4992ac_tool_warned=yes ;;
4993esac
4994 AS=$ac_ct_AS
4995 fi
4182else 4996else
4183 AS="$ac_cv_prog_AS" 4997 AS="$ac_cv_prog_AS"
4184fi 4998fi
@@ -4186,8 +5000,8 @@ fi
4186 if test -n "$ac_tool_prefix"; then 5000 if test -n "$ac_tool_prefix"; then
4187 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5001 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4188set dummy ${ac_tool_prefix}objdump; ac_word=$2 5002set dummy ${ac_tool_prefix}objdump; ac_word=$2
4189echo "$as_me:$LINENO: checking for $ac_word" >&5 5003{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4191if test "${ac_cv_prog_OBJDUMP+set}" = set; then 5005if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6 5006 echo $ECHO_N "(cached) $ECHO_C" >&6
4193else 5007else
@@ -4200,32 +5014,34 @@ do
4200 IFS=$as_save_IFS 5014 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=. 5015 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do 5016 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4204 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5018 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 break 2 5020 break 2
4207 fi 5021 fi
4208done 5022done
4209done 5023done
5024IFS=$as_save_IFS
4210 5025
4211fi 5026fi
4212fi 5027fi
4213OBJDUMP=$ac_cv_prog_OBJDUMP 5028OBJDUMP=$ac_cv_prog_OBJDUMP
4214if test -n "$OBJDUMP"; then 5029if test -n "$OBJDUMP"; then
4215 echo "$as_me:$LINENO: result: $OBJDUMP" >&5 5030 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4216echo "${ECHO_T}$OBJDUMP" >&6 5031echo "${ECHO_T}$OBJDUMP" >&6; }
4217else 5032else
4218 echo "$as_me:$LINENO: result: no" >&5 5033 { echo "$as_me:$LINENO: result: no" >&5
4219echo "${ECHO_T}no" >&6 5034echo "${ECHO_T}no" >&6; }
4220fi 5035fi
4221 5036
5037
4222fi 5038fi
4223if test -z "$ac_cv_prog_OBJDUMP"; then 5039if test -z "$ac_cv_prog_OBJDUMP"; then
4224 ac_ct_OBJDUMP=$OBJDUMP 5040 ac_ct_OBJDUMP=$OBJDUMP
4225 # Extract the first word of "objdump", so it can be a program name with args. 5041 # Extract the first word of "objdump", so it can be a program name with args.
4226set dummy objdump; ac_word=$2 5042set dummy objdump; ac_word=$2
4227echo "$as_me:$LINENO: checking for $ac_word" >&5 5043{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4229if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 5045if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6 5046 echo $ECHO_N "(cached) $ECHO_C" >&6
4231else 5047else
@@ -4238,27 +5054,41 @@ do
4238 IFS=$as_save_IFS 5054 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=. 5055 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do 5056 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4242 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5058 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 break 2 5060 break 2
4245 fi 5061 fi
4246done 5062done
4247done 5063done
5064IFS=$as_save_IFS
4248 5065
4249 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4250fi 5066fi
4251fi 5067fi
4252ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5068ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4253if test -n "$ac_ct_OBJDUMP"; then 5069if test -n "$ac_ct_OBJDUMP"; then
4254 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 5070 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4255echo "${ECHO_T}$ac_ct_OBJDUMP" >&6 5071echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4256else 5072else
4257 echo "$as_me:$LINENO: result: no" >&5 5073 { echo "$as_me:$LINENO: result: no" >&5
4258echo "${ECHO_T}no" >&6 5074echo "${ECHO_T}no" >&6; }
4259fi 5075fi
4260 5076
4261 OBJDUMP=$ac_ct_OBJDUMP 5077 if test "x$ac_ct_OBJDUMP" = x; then
5078 OBJDUMP="false"
5079 else
5080 case $cross_compiling:$ac_tool_warned in
5081yes:)
5082{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5083whose name does not start with the host triplet. If you think this
5084configuration is useful to you, please write to autoconf@gnu.org." >&5
5085echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5086whose name does not start with the host triplet. If you think this
5087configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5088ac_tool_warned=yes ;;
5089esac
5090 OBJDUMP=$ac_ct_OBJDUMP
5091 fi
4262else 5092else
4263 OBJDUMP="$ac_cv_prog_OBJDUMP" 5093 OBJDUMP="$ac_cv_prog_OBJDUMP"
4264fi 5094fi
@@ -4275,8 +5105,8 @@ ac_cpp='$CPP $CPPFLAGS'
4275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4277ac_compiler_gnu=$ac_cv_c_compiler_gnu 5107ac_compiler_gnu=$ac_cv_c_compiler_gnu
4278echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5108{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4279echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 5109echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4280# On Suns, sometimes $CPP names a directory. 5110# On Suns, sometimes $CPP names a directory.
4281if test -n "$CPP" && test -d "$CPP"; then 5111if test -n "$CPP" && test -d "$CPP"; then
4282 CPP= 5112 CPP=
@@ -4310,8 +5140,13 @@ cat >>conftest.$ac_ext <<_ACEOF
4310#endif 5140#endif
4311 Syntax error 5141 Syntax error
4312_ACEOF 5142_ACEOF
4313if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5143if { (ac_try="$ac_cpp conftest.$ac_ext"
4314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5144case "(($ac_try" in
5145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5146 *) ac_try_echo=$ac_try;;
5147esac
5148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4315 ac_status=$? 5150 ac_status=$?
4316 grep -v '^ *+' conftest.er1 >conftest.err 5151 grep -v '^ *+' conftest.er1 >conftest.err
4317 rm -f conftest.er1 5152 rm -f conftest.er1
@@ -4336,9 +5171,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
4336 # Broken: fails on valid input. 5171 # Broken: fails on valid input.
4337continue 5172continue
4338fi 5173fi
5174
4339rm -f conftest.err conftest.$ac_ext 5175rm -f conftest.err conftest.$ac_ext
4340 5176
4341 # OK, works on sane cases. Now check whether non-existent headers 5177 # OK, works on sane cases. Now check whether nonexistent headers
4342 # can be detected and how. 5178 # can be detected and how.
4343 cat >conftest.$ac_ext <<_ACEOF 5179 cat >conftest.$ac_ext <<_ACEOF
4344/* confdefs.h. */ 5180/* confdefs.h. */
@@ -4348,8 +5184,13 @@ cat >>conftest.$ac_ext <<_ACEOF
4348/* end confdefs.h. */ 5184/* end confdefs.h. */
4349#include <ac_nonexistent.h> 5185#include <ac_nonexistent.h>
4350_ACEOF 5186_ACEOF
4351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5187if { (ac_try="$ac_cpp conftest.$ac_ext"
4352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5188case "(($ac_try" in
5189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5190 *) ac_try_echo=$ac_try;;
5191esac
5192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4353 ac_status=$? 5194 ac_status=$?
4354 grep -v '^ *+' conftest.er1 >conftest.err 5195 grep -v '^ *+' conftest.er1 >conftest.err
4355 rm -f conftest.er1 5196 rm -f conftest.er1
@@ -4376,6 +5217,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
4376ac_preproc_ok=: 5217ac_preproc_ok=:
4377break 5218break
4378fi 5219fi
5220
4379rm -f conftest.err conftest.$ac_ext 5221rm -f conftest.err conftest.$ac_ext
4380 5222
4381done 5223done
@@ -4393,8 +5235,8 @@ fi
4393else 5235else
4394 ac_cv_prog_CPP=$CPP 5236 ac_cv_prog_CPP=$CPP
4395fi 5237fi
4396echo "$as_me:$LINENO: result: $CPP" >&5 5238{ echo "$as_me:$LINENO: result: $CPP" >&5
4397echo "${ECHO_T}$CPP" >&6 5239echo "${ECHO_T}$CPP" >&6; }
4398ac_preproc_ok=false 5240ac_preproc_ok=false
4399for ac_c_preproc_warn_flag in '' yes 5241for ac_c_preproc_warn_flag in '' yes
4400do 5242do
@@ -4417,8 +5259,13 @@ cat >>conftest.$ac_ext <<_ACEOF
4417#endif 5259#endif
4418 Syntax error 5260 Syntax error
4419_ACEOF 5261_ACEOF
4420if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5262if { (ac_try="$ac_cpp conftest.$ac_ext"
4421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5263case "(($ac_try" in
5264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5265 *) ac_try_echo=$ac_try;;
5266esac
5267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4422 ac_status=$? 5269 ac_status=$?
4423 grep -v '^ *+' conftest.er1 >conftest.err 5270 grep -v '^ *+' conftest.er1 >conftest.err
4424 rm -f conftest.er1 5271 rm -f conftest.er1
@@ -4443,9 +5290,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
4443 # Broken: fails on valid input. 5290 # Broken: fails on valid input.
4444continue 5291continue
4445fi 5292fi
5293
4446rm -f conftest.err conftest.$ac_ext 5294rm -f conftest.err conftest.$ac_ext
4447 5295
4448 # OK, works on sane cases. Now check whether non-existent headers 5296 # OK, works on sane cases. Now check whether nonexistent headers
4449 # can be detected and how. 5297 # can be detected and how.
4450 cat >conftest.$ac_ext <<_ACEOF 5298 cat >conftest.$ac_ext <<_ACEOF
4451/* confdefs.h. */ 5299/* confdefs.h. */
@@ -4455,8 +5303,13 @@ cat >>conftest.$ac_ext <<_ACEOF
4455/* end confdefs.h. */ 5303/* end confdefs.h. */
4456#include <ac_nonexistent.h> 5304#include <ac_nonexistent.h>
4457_ACEOF 5305_ACEOF
4458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5306if { (ac_try="$ac_cpp conftest.$ac_ext"
4459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5307case "(($ac_try" in
5308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309 *) ac_try_echo=$ac_try;;
5310esac
5311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4460 ac_status=$? 5313 ac_status=$?
4461 grep -v '^ *+' conftest.er1 >conftest.err 5314 grep -v '^ *+' conftest.er1 >conftest.err
4462 rm -f conftest.er1 5315 rm -f conftest.er1
@@ -4483,6 +5336,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
4483ac_preproc_ok=: 5336ac_preproc_ok=:
4484break 5337break
4485fi 5338fi
5339
4486rm -f conftest.err conftest.$ac_ext 5340rm -f conftest.err conftest.$ac_ext
4487 5341
4488done 5342done
@@ -4505,8 +5359,8 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
4505ac_compiler_gnu=$ac_cv_c_compiler_gnu 5359ac_compiler_gnu=$ac_cv_c_compiler_gnu
4506 5360
4507 5361
4508echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5362{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4509echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 5363echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4510if test "${ac_cv_header_stdc+set}" = set; then 5364if test "${ac_cv_header_stdc+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6 5365 echo $ECHO_N "(cached) $ECHO_C" >&6
4512else 5366else
@@ -4530,23 +5384,36 @@ main ()
4530} 5384}
4531_ACEOF 5385_ACEOF
4532rm -f conftest.$ac_objext 5386rm -f conftest.$ac_objext
4533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5387if { (ac_try="$ac_compile"
4534 (eval $ac_compile) 2>conftest.er1 5388case "(($ac_try" in
5389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390 *) ac_try_echo=$ac_try;;
5391esac
5392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393 (eval "$ac_compile") 2>conftest.er1
4535 ac_status=$? 5394 ac_status=$?
4536 grep -v '^ *+' conftest.er1 >conftest.err 5395 grep -v '^ *+' conftest.er1 >conftest.err
4537 rm -f conftest.er1 5396 rm -f conftest.er1
4538 cat conftest.err >&5 5397 cat conftest.err >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); } && 5399 (exit $ac_status); } &&
4541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5401 { (case "(($ac_try" in
4543 (eval $ac_try) 2>&5 5402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5403 *) ac_try_echo=$ac_try;;
5404esac
5405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5406 (eval "$ac_try") 2>&5
4544 ac_status=$? 5407 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; } && 5409 (exit $ac_status); }; } &&
4547 { ac_try='test -s conftest.$ac_objext' 5410 { ac_try='test -s conftest.$ac_objext'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5411 { (case "(($ac_try" in
4549 (eval $ac_try) 2>&5 5412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413 *) ac_try_echo=$ac_try;;
5414esac
5415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5416 (eval "$ac_try") 2>&5
4550 ac_status=$? 5417 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then 5419 (exit $ac_status); }; }; then
@@ -4555,9 +5422,10 @@ else
4555 echo "$as_me: failed program was:" >&5 5422 echo "$as_me: failed program was:" >&5
4556sed 's/^/| /' conftest.$ac_ext >&5 5423sed 's/^/| /' conftest.$ac_ext >&5
4557 5424
4558ac_cv_header_stdc=no 5425 ac_cv_header_stdc=no
4559fi 5426fi
4560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5427
5428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4561 5429
4562if test $ac_cv_header_stdc = yes; then 5430if test $ac_cv_header_stdc = yes; then
4563 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5431 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
@@ -4613,6 +5481,7 @@ cat confdefs.h >>conftest.$ac_ext
4613cat >>conftest.$ac_ext <<_ACEOF 5481cat >>conftest.$ac_ext <<_ACEOF
4614/* end confdefs.h. */ 5482/* end confdefs.h. */
4615#include <ctype.h> 5483#include <ctype.h>
5484#include <stdlib.h>
4616#if ((' ' & 0x0FF) == 0x020) 5485#if ((' ' & 0x0FF) == 0x020)
4617# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5486# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4618# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5487# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
@@ -4632,18 +5501,27 @@ main ()
4632 for (i = 0; i < 256; i++) 5501 for (i = 0; i < 256; i++)
4633 if (XOR (islower (i), ISLOWER (i)) 5502 if (XOR (islower (i), ISLOWER (i))
4634 || toupper (i) != TOUPPER (i)) 5503 || toupper (i) != TOUPPER (i))
4635 exit(2); 5504 return 2;
4636 exit (0); 5505 return 0;
4637} 5506}
4638_ACEOF 5507_ACEOF
4639rm -f conftest$ac_exeext 5508rm -f conftest$ac_exeext
4640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5509if { (ac_try="$ac_link"
4641 (eval $ac_link) 2>&5 5510case "(($ac_try" in
5511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512 *) ac_try_echo=$ac_try;;
5513esac
5514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515 (eval "$ac_link") 2>&5
4642 ac_status=$? 5516 ac_status=$?
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5519 { (case "(($ac_try" in
4646 (eval $ac_try) 2>&5 5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521 *) ac_try_echo=$ac_try;;
5522esac
5523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5524 (eval "$ac_try") 2>&5
4647 ac_status=$? 5525 ac_status=$?
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; }; then 5527 (exit $ac_status); }; }; then
@@ -4656,12 +5534,14 @@ sed 's/^/| /' conftest.$ac_ext >&5
4656( exit $ac_status ) 5534( exit $ac_status )
4657ac_cv_header_stdc=no 5535ac_cv_header_stdc=no
4658fi 5536fi
4659rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5537rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4660fi 5538fi
5539
5540
4661fi 5541fi
4662fi 5542fi
4663echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5543{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4664echo "${ECHO_T}$ac_cv_header_stdc" >&6 5544echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4665if test $ac_cv_header_stdc = yes; then 5545if test $ac_cv_header_stdc = yes; then
4666 5546
4667cat >>confdefs.h <<\_ACEOF 5547cat >>confdefs.h <<\_ACEOF
@@ -4684,9 +5564,9 @@ for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4684 inttypes.h stdint.h unistd.h 5564 inttypes.h stdint.h unistd.h
4685do 5565do
4686as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5566as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4687echo "$as_me:$LINENO: checking for $ac_header" >&5 5567{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5568echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4689if eval "test \"\${$as_ac_Header+set}\" = set"; then 5569if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6 5570 echo $ECHO_N "(cached) $ECHO_C" >&6
4691else 5571else
4692 cat >conftest.$ac_ext <<_ACEOF 5572 cat >conftest.$ac_ext <<_ACEOF
@@ -4700,23 +5580,36 @@ $ac_includes_default
4700#include <$ac_header> 5580#include <$ac_header>
4701_ACEOF 5581_ACEOF
4702rm -f conftest.$ac_objext 5582rm -f conftest.$ac_objext
4703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5583if { (ac_try="$ac_compile"
4704 (eval $ac_compile) 2>conftest.er1 5584case "(($ac_try" in
5585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586 *) ac_try_echo=$ac_try;;
5587esac
5588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5589 (eval "$ac_compile") 2>conftest.er1
4705 ac_status=$? 5590 ac_status=$?
4706 grep -v '^ *+' conftest.er1 >conftest.err 5591 grep -v '^ *+' conftest.er1 >conftest.err
4707 rm -f conftest.er1 5592 rm -f conftest.er1
4708 cat conftest.err >&5 5593 cat conftest.err >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } && 5595 (exit $ac_status); } &&
4711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5597 { (case "(($ac_try" in
4713 (eval $ac_try) 2>&5 5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5600esac
5601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_try") 2>&5
4714 ac_status=$? 5603 ac_status=$?
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; } && 5605 (exit $ac_status); }; } &&
4717 { ac_try='test -s conftest.$ac_objext' 5606 { ac_try='test -s conftest.$ac_objext'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5607 { (case "(($ac_try" in
4719 (eval $ac_try) 2>&5 5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5610esac
5611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5612 (eval "$ac_try") 2>&5
4720 ac_status=$? 5613 ac_status=$?
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then 5615 (exit $ac_status); }; }; then
@@ -4725,12 +5618,14 @@ else
4725 echo "$as_me: failed program was:" >&5 5618 echo "$as_me: failed program was:" >&5
4726sed 's/^/| /' conftest.$ac_ext >&5 5619sed 's/^/| /' conftest.$ac_ext >&5
4727 5620
4728eval "$as_ac_Header=no" 5621 eval "$as_ac_Header=no"
4729fi 5622fi
4730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5623
5624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731fi 5625fi
4732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5626ac_res=`eval echo '${'$as_ac_Header'}'`
4733echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5627 { echo "$as_me:$LINENO: result: $ac_res" >&5
5628echo "${ECHO_T}$ac_res" >&6; }
4734if test `eval echo '${'$as_ac_Header'}'` = yes; then 5629if test `eval echo '${'$as_ac_Header'}'` = yes; then
4735 cat >>confdefs.h <<_ACEOF 5630 cat >>confdefs.h <<_ACEOF
4736#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5631#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
@@ -4745,18 +5640,19 @@ done
4745for ac_header in dlfcn.h 5640for ac_header in dlfcn.h
4746do 5641do
4747as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5642as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4748if eval "test \"\${$as_ac_Header+set}\" = set"; then 5643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4749 echo "$as_me:$LINENO: checking for $ac_header" >&5 5644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4750echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4751if eval "test \"\${$as_ac_Header+set}\" = set"; then 5646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4752 echo $ECHO_N "(cached) $ECHO_C" >&6 5647 echo $ECHO_N "(cached) $ECHO_C" >&6
4753fi 5648fi
4754echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5649ac_res=`eval echo '${'$as_ac_Header'}'`
4755echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5650 { echo "$as_me:$LINENO: result: $ac_res" >&5
5651echo "${ECHO_T}$ac_res" >&6; }
4756else 5652else
4757 # Is the header compilable? 5653 # Is the header compilable?
4758echo "$as_me:$LINENO: checking $ac_header usability" >&5 5654{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4759echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5655echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4760cat >conftest.$ac_ext <<_ACEOF 5656cat >conftest.$ac_ext <<_ACEOF
4761/* confdefs.h. */ 5657/* confdefs.h. */
4762_ACEOF 5658_ACEOF
@@ -4767,23 +5663,36 @@ $ac_includes_default
4767#include <$ac_header> 5663#include <$ac_header>
4768_ACEOF 5664_ACEOF
4769rm -f conftest.$ac_objext 5665rm -f conftest.$ac_objext
4770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5666if { (ac_try="$ac_compile"
4771 (eval $ac_compile) 2>conftest.er1 5667case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670esac
5671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672 (eval "$ac_compile") 2>conftest.er1
4772 ac_status=$? 5673 ac_status=$?
4773 grep -v '^ *+' conftest.er1 >conftest.err 5674 grep -v '^ *+' conftest.er1 >conftest.err
4774 rm -f conftest.er1 5675 rm -f conftest.er1
4775 cat conftest.err >&5 5676 cat conftest.err >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } && 5678 (exit $ac_status); } &&
4778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5680 { (case "(($ac_try" in
4780 (eval $ac_try) 2>&5 5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5683esac
5684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_try") 2>&5
4781 ac_status=$? 5686 ac_status=$?
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; } && 5688 (exit $ac_status); }; } &&
4784 { ac_try='test -s conftest.$ac_objext' 5689 { ac_try='test -s conftest.$ac_objext'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5690 { (case "(($ac_try" in
4786 (eval $ac_try) 2>&5 5691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5693esac
5694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695 (eval "$ac_try") 2>&5
4787 ac_status=$? 5696 ac_status=$?
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then 5698 (exit $ac_status); }; }; then
@@ -4792,15 +5701,16 @@ else
4792 echo "$as_me: failed program was:" >&5 5701 echo "$as_me: failed program was:" >&5
4793sed 's/^/| /' conftest.$ac_ext >&5 5702sed 's/^/| /' conftest.$ac_ext >&5
4794 5703
4795ac_header_compiler=no 5704 ac_header_compiler=no
4796fi 5705fi
4797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5706
4798echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4799echo "${ECHO_T}$ac_header_compiler" >&6 5708{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5709echo "${ECHO_T}$ac_header_compiler" >&6; }
4800 5710
4801# Is the header present? 5711# Is the header present?
4802echo "$as_me:$LINENO: checking $ac_header presence" >&5 5712{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4803echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5713echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4804cat >conftest.$ac_ext <<_ACEOF 5714cat >conftest.$ac_ext <<_ACEOF
4805/* confdefs.h. */ 5715/* confdefs.h. */
4806_ACEOF 5716_ACEOF
@@ -4809,8 +5719,13 @@ cat >>conftest.$ac_ext <<_ACEOF
4809/* end confdefs.h. */ 5719/* end confdefs.h. */
4810#include <$ac_header> 5720#include <$ac_header>
4811_ACEOF 5721_ACEOF
4812if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5722if { (ac_try="$ac_cpp conftest.$ac_ext"
4813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5723case "(($ac_try" in
5724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725 *) ac_try_echo=$ac_try;;
5726esac
5727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4814 ac_status=$? 5729 ac_status=$?
4815 grep -v '^ *+' conftest.er1 >conftest.err 5730 grep -v '^ *+' conftest.er1 >conftest.err
4816 rm -f conftest.er1 5731 rm -f conftest.er1
@@ -4834,9 +5749,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
4834 5749
4835 ac_header_preproc=no 5750 ac_header_preproc=no
4836fi 5751fi
5752
4837rm -f conftest.err conftest.$ac_ext 5753rm -f conftest.err conftest.$ac_ext
4838echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5754{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4839echo "${ECHO_T}$ac_header_preproc" >&6 5755echo "${ECHO_T}$ac_header_preproc" >&6; }
4840 5756
4841# So? What about this header? 5757# So? What about this header?
4842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
@@ -4860,25 +5776,24 @@ echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\
4860echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5776echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4862echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5778echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4863 ( 5779 ( cat <<\_ASBOX
4864 cat <<\_ASBOX
4865## ---------------------------------- ## 5780## ---------------------------------- ##
4866## Report this to bug-libtool@gnu.org ## 5781## Report this to bug-libtool@gnu.org ##
4867## ---------------------------------- ## 5782## ---------------------------------- ##
4868_ASBOX 5783_ASBOX
4869 ) | 5784 ) | sed "s/^/$as_me: WARNING: /" >&2
4870 sed "s/^/$as_me: WARNING: /" >&2
4871 ;; 5785 ;;
4872esac 5786esac
4873echo "$as_me:$LINENO: checking for $ac_header" >&5 5787{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4875if eval "test \"\${$as_ac_Header+set}\" = set"; then 5789if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6 5790 echo $ECHO_N "(cached) $ECHO_C" >&6
4877else 5791else
4878 eval "$as_ac_Header=\$ac_header_preproc" 5792 eval "$as_ac_Header=\$ac_header_preproc"
4879fi 5793fi
4880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5794ac_res=`eval echo '${'$as_ac_Header'}'`
4881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5795 { echo "$as_me:$LINENO: result: $ac_res" >&5
5796echo "${ECHO_T}$ac_res" >&6; }
4882 5797
4883fi 5798fi
4884if test `eval echo '${'$as_ac_Header'}'` = yes; then 5799if test `eval echo '${'$as_ac_Header'}'` = yes; then
@@ -4890,18 +5805,22 @@ fi
4890 5805
4891done 5806done
4892 5807
4893ac_ext=cc 5808ac_ext=cpp
4894ac_cpp='$CXXCPP $CPPFLAGS' 5809ac_cpp='$CXXCPP $CPPFLAGS'
4895ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5810ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5811ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5812ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4898if test -n "$ac_tool_prefix"; then 5813if test -z "$CXX"; then
4899 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 5814 if test -n "$CCC"; then
5815 CXX=$CCC
5816 else
5817 if test -n "$ac_tool_prefix"; then
5818 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4900 do 5819 do
4901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4902set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5821set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4903echo "$as_me:$LINENO: checking for $ac_word" >&5 5822{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4905if test "${ac_cv_prog_CXX+set}" = set; then 5824if test "${ac_cv_prog_CXX+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6 5825 echo $ECHO_N "(cached) $ECHO_C" >&6
4907else 5826else
@@ -4914,36 +5833,38 @@ do
4914 IFS=$as_save_IFS 5833 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=. 5834 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do 5835 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4918 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5837 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 break 2 5839 break 2
4921 fi 5840 fi
4922done 5841done
4923done 5842done
5843IFS=$as_save_IFS
4924 5844
4925fi 5845fi
4926fi 5846fi
4927CXX=$ac_cv_prog_CXX 5847CXX=$ac_cv_prog_CXX
4928if test -n "$CXX"; then 5848if test -n "$CXX"; then
4929 echo "$as_me:$LINENO: result: $CXX" >&5 5849 { echo "$as_me:$LINENO: result: $CXX" >&5
4930echo "${ECHO_T}$CXX" >&6 5850echo "${ECHO_T}$CXX" >&6; }
4931else 5851else
4932 echo "$as_me:$LINENO: result: no" >&5 5852 { echo "$as_me:$LINENO: result: no" >&5
4933echo "${ECHO_T}no" >&6 5853echo "${ECHO_T}no" >&6; }
4934fi 5854fi
4935 5855
5856
4936 test -n "$CXX" && break 5857 test -n "$CXX" && break
4937 done 5858 done
4938fi 5859fi
4939if test -z "$CXX"; then 5860if test -z "$CXX"; then
4940 ac_ct_CXX=$CXX 5861 ac_ct_CXX=$CXX
4941 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 5862 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4942do 5863do
4943 # Extract the first word of "$ac_prog", so it can be a program name with args. 5864 # Extract the first word of "$ac_prog", so it can be a program name with args.
4944set dummy $ac_prog; ac_word=$2 5865set dummy $ac_prog; ac_word=$2
4945echo "$as_me:$LINENO: checking for $ac_word" >&5 5866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4947if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5868if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6 5869 echo $ECHO_N "(cached) $ECHO_C" >&6
4949else 5870else
@@ -4956,55 +5877,85 @@ do
4956 IFS=$as_save_IFS 5877 IFS=$as_save_IFS
4957 test -z "$as_dir" && as_dir=. 5878 test -z "$as_dir" && as_dir=.
4958 for ac_exec_ext in '' $ac_executable_extensions; do 5879 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4960 ac_cv_prog_ac_ct_CXX="$ac_prog" 5881 ac_cv_prog_ac_ct_CXX="$ac_prog"
4961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 break 2 5883 break 2
4963 fi 5884 fi
4964done 5885done
4965done 5886done
5887IFS=$as_save_IFS
4966 5888
4967fi 5889fi
4968fi 5890fi
4969ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5891ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4970if test -n "$ac_ct_CXX"; then 5892if test -n "$ac_ct_CXX"; then
4971 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5893 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4972echo "${ECHO_T}$ac_ct_CXX" >&6 5894echo "${ECHO_T}$ac_ct_CXX" >&6; }
4973else 5895else
4974 echo "$as_me:$LINENO: result: no" >&5 5896 { echo "$as_me:$LINENO: result: no" >&5
4975echo "${ECHO_T}no" >&6 5897echo "${ECHO_T}no" >&6; }
4976fi 5898fi
4977 5899
5900
4978 test -n "$ac_ct_CXX" && break 5901 test -n "$ac_ct_CXX" && break
4979done 5902done
4980test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4981 5903
4982 CXX=$ac_ct_CXX 5904 if test "x$ac_ct_CXX" = x; then
5905 CXX="g++"
5906 else
5907 case $cross_compiling:$ac_tool_warned in
5908yes:)
5909{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5910whose name does not start with the host triplet. If you think this
5911configuration is useful to you, please write to autoconf@gnu.org." >&5
5912echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5913whose name does not start with the host triplet. If you think this
5914configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5915ac_tool_warned=yes ;;
5916esac
5917 CXX=$ac_ct_CXX
5918 fi
4983fi 5919fi
4984 5920
4985 5921 fi
5922fi
4986# Provide some information about the compiler. 5923# Provide some information about the compiler.
4987echo "$as_me:$LINENO:" \ 5924echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4988 "checking for C++ compiler version" >&5
4989ac_compiler=`set X $ac_compile; echo $2` 5925ac_compiler=`set X $ac_compile; echo $2`
4990{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5926{ (ac_try="$ac_compiler --version >&5"
4991 (eval $ac_compiler --version </dev/null >&5) 2>&5 5927case "(($ac_try" in
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5930esac
5931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932 (eval "$ac_compiler --version >&5") 2>&5
4992 ac_status=$? 5933 ac_status=$?
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } 5935 (exit $ac_status); }
4995{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5936{ (ac_try="$ac_compiler -v >&5"
4996 (eval $ac_compiler -v </dev/null >&5) 2>&5 5937case "(($ac_try" in
5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5940esac
5941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5942 (eval "$ac_compiler -v >&5") 2>&5
4997 ac_status=$? 5943 ac_status=$?
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } 5945 (exit $ac_status); }
5000{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5946{ (ac_try="$ac_compiler -V >&5"
5001 (eval $ac_compiler -V </dev/null >&5) 2>&5 5947case "(($ac_try" in
5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;;
5950esac
5951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952 (eval "$ac_compiler -V >&5") 2>&5
5002 ac_status=$? 5953 ac_status=$?
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } 5955 (exit $ac_status); }
5005 5956
5006echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5957{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5007echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 5958echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5008if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5959if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6 5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5010else 5961else
@@ -5027,23 +5978,36 @@ main ()
5027} 5978}
5028_ACEOF 5979_ACEOF
5029rm -f conftest.$ac_objext 5980rm -f conftest.$ac_objext
5030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5981if { (ac_try="$ac_compile"
5031 (eval $ac_compile) 2>conftest.er1 5982case "(($ac_try" in
5983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5985esac
5986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5987 (eval "$ac_compile") 2>conftest.er1
5032 ac_status=$? 5988 ac_status=$?
5033 grep -v '^ *+' conftest.er1 >conftest.err 5989 grep -v '^ *+' conftest.er1 >conftest.err
5034 rm -f conftest.er1 5990 rm -f conftest.er1
5035 cat conftest.err >&5 5991 cat conftest.err >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } && 5993 (exit $ac_status); } &&
5038 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5995 { (case "(($ac_try" in
5040 (eval $ac_try) 2>&5 5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5998esac
5999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_try") 2>&5
5041 ac_status=$? 6001 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; } && 6003 (exit $ac_status); }; } &&
5044 { ac_try='test -s conftest.$ac_objext' 6004 { ac_try='test -s conftest.$ac_objext'
5045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6005 { (case "(($ac_try" in
5046 (eval $ac_try) 2>&5 6006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007 *) ac_try_echo=$ac_try;;
6008esac
6009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010 (eval "$ac_try") 2>&5
5047 ac_status=$? 6011 ac_status=$?
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; }; then 6013 (exit $ac_status); }; }; then
@@ -5052,24 +6016,28 @@ else
5052 echo "$as_me: failed program was:" >&5 6016 echo "$as_me: failed program was:" >&5
5053sed 's/^/| /' conftest.$ac_ext >&5 6017sed 's/^/| /' conftest.$ac_ext >&5
5054 6018
5055ac_compiler_gnu=no 6019 ac_compiler_gnu=no
5056fi 6020fi
5057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6021
6022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6023ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5059 6024
5060fi 6025fi
5061echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 6026{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5062echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 6027echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5063GXX=`test $ac_compiler_gnu = yes && echo yes` 6028GXX=`test $ac_compiler_gnu = yes && echo yes`
5064ac_test_CXXFLAGS=${CXXFLAGS+set} 6029ac_test_CXXFLAGS=${CXXFLAGS+set}
5065ac_save_CXXFLAGS=$CXXFLAGS 6030ac_save_CXXFLAGS=$CXXFLAGS
5066CXXFLAGS="-g" 6031{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5067echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 6032echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5068echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5069if test "${ac_cv_prog_cxx_g+set}" = set; then 6033if test "${ac_cv_prog_cxx_g+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6 6034 echo $ECHO_N "(cached) $ECHO_C" >&6
5071else 6035else
5072 cat >conftest.$ac_ext <<_ACEOF 6036 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6037 ac_cxx_werror_flag=yes
6038 ac_cv_prog_cxx_g=no
6039 CXXFLAGS="-g"
6040 cat >conftest.$ac_ext <<_ACEOF
5073/* confdefs.h. */ 6041/* confdefs.h. */
5074_ACEOF 6042_ACEOF
5075cat confdefs.h >>conftest.$ac_ext 6043cat confdefs.h >>conftest.$ac_ext
@@ -5085,23 +6053,36 @@ main ()
5085} 6053}
5086_ACEOF 6054_ACEOF
5087rm -f conftest.$ac_objext 6055rm -f conftest.$ac_objext
5088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6056if { (ac_try="$ac_compile"
5089 (eval $ac_compile) 2>conftest.er1 6057case "(($ac_try" in
6058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059 *) ac_try_echo=$ac_try;;
6060esac
6061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062 (eval "$ac_compile") 2>conftest.er1
5090 ac_status=$? 6063 ac_status=$?
5091 grep -v '^ *+' conftest.er1 >conftest.err 6064 grep -v '^ *+' conftest.er1 >conftest.err
5092 rm -f conftest.er1 6065 rm -f conftest.er1
5093 cat conftest.err >&5 6066 cat conftest.err >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } && 6068 (exit $ac_status); } &&
5096 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6070 { (case "(($ac_try" in
5098 (eval $ac_try) 2>&5 6071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072 *) ac_try_echo=$ac_try;;
6073esac
6074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075 (eval "$ac_try") 2>&5
5099 ac_status=$? 6076 ac_status=$?
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; } && 6078 (exit $ac_status); }; } &&
5102 { ac_try='test -s conftest.$ac_objext' 6079 { ac_try='test -s conftest.$ac_objext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6080 { (case "(($ac_try" in
5104 (eval $ac_try) 2>&5 6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6083esac
6084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085 (eval "$ac_try") 2>&5
5105 ac_status=$? 6086 ac_status=$?
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then 6088 (exit $ac_status); }; }; then
@@ -5110,69 +6091,53 @@ else
5110 echo "$as_me: failed program was:" >&5 6091 echo "$as_me: failed program was:" >&5
5111sed 's/^/| /' conftest.$ac_ext >&5 6092sed 's/^/| /' conftest.$ac_ext >&5
5112 6093
5113ac_cv_prog_cxx_g=no 6094 CXXFLAGS=""
5114fi 6095 cat >conftest.$ac_ext <<_ACEOF
5115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5116fi
5117echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5118echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5119if test "$ac_test_CXXFLAGS" = set; then
5120 CXXFLAGS=$ac_save_CXXFLAGS
5121elif test $ac_cv_prog_cxx_g = yes; then
5122 if test "$GXX" = yes; then
5123 CXXFLAGS="-g -O2"
5124 else
5125 CXXFLAGS="-g"
5126 fi
5127else
5128 if test "$GXX" = yes; then
5129 CXXFLAGS="-O2"
5130 else
5131 CXXFLAGS=
5132 fi
5133fi
5134for ac_declaration in \
5135 '' \
5136 'extern "C" void std::exit (int) throw (); using std::exit;' \
5137 'extern "C" void std::exit (int); using std::exit;' \
5138 'extern "C" void exit (int) throw ();' \
5139 'extern "C" void exit (int);' \
5140 'void exit (int);'
5141do
5142 cat >conftest.$ac_ext <<_ACEOF
5143/* confdefs.h. */ 6096/* confdefs.h. */
5144_ACEOF 6097_ACEOF
5145cat confdefs.h >>conftest.$ac_ext 6098cat confdefs.h >>conftest.$ac_ext
5146cat >>conftest.$ac_ext <<_ACEOF 6099cat >>conftest.$ac_ext <<_ACEOF
5147/* end confdefs.h. */ 6100/* end confdefs.h. */
5148$ac_declaration 6101
5149#include <stdlib.h>
5150int 6102int
5151main () 6103main ()
5152{ 6104{
5153exit (42); 6105
5154 ; 6106 ;
5155 return 0; 6107 return 0;
5156} 6108}
5157_ACEOF 6109_ACEOF
5158rm -f conftest.$ac_objext 6110rm -f conftest.$ac_objext
5159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6111if { (ac_try="$ac_compile"
5160 (eval $ac_compile) 2>conftest.er1 6112case "(($ac_try" in
6113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114 *) ac_try_echo=$ac_try;;
6115esac
6116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117 (eval "$ac_compile") 2>conftest.er1
5161 ac_status=$? 6118 ac_status=$?
5162 grep -v '^ *+' conftest.er1 >conftest.err 6119 grep -v '^ *+' conftest.er1 >conftest.err
5163 rm -f conftest.er1 6120 rm -f conftest.er1
5164 cat conftest.err >&5 6121 cat conftest.err >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } && 6123 (exit $ac_status); } &&
5167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6124 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6125 { (case "(($ac_try" in
5169 (eval $ac_try) 2>&5 6126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6127 *) ac_try_echo=$ac_try;;
6128esac
6129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6130 (eval "$ac_try") 2>&5
5170 ac_status=$? 6131 ac_status=$?
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; } && 6133 (exit $ac_status); }; } &&
5173 { ac_try='test -s conftest.$ac_objext' 6134 { ac_try='test -s conftest.$ac_objext'
5174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6135 { (case "(($ac_try" in
5175 (eval $ac_try) 2>&5 6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6138esac
6139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_try") 2>&5
5176 ac_status=$? 6141 ac_status=$?
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; }; then 6143 (exit $ac_status); }; }; then
@@ -5181,61 +6146,92 @@ else
5181 echo "$as_me: failed program was:" >&5 6146 echo "$as_me: failed program was:" >&5
5182sed 's/^/| /' conftest.$ac_ext >&5 6147sed 's/^/| /' conftest.$ac_ext >&5
5183 6148
5184continue 6149 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5185fi 6150 CXXFLAGS="-g"
5186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6151 cat >conftest.$ac_ext <<_ACEOF
5187 cat >conftest.$ac_ext <<_ACEOF
5188/* confdefs.h. */ 6152/* confdefs.h. */
5189_ACEOF 6153_ACEOF
5190cat confdefs.h >>conftest.$ac_ext 6154cat confdefs.h >>conftest.$ac_ext
5191cat >>conftest.$ac_ext <<_ACEOF 6155cat >>conftest.$ac_ext <<_ACEOF
5192/* end confdefs.h. */ 6156/* end confdefs.h. */
5193$ac_declaration 6157
5194int 6158int
5195main () 6159main ()
5196{ 6160{
5197exit (42); 6161
5198 ; 6162 ;
5199 return 0; 6163 return 0;
5200} 6164}
5201_ACEOF 6165_ACEOF
5202rm -f conftest.$ac_objext 6166rm -f conftest.$ac_objext
5203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6167if { (ac_try="$ac_compile"
5204 (eval $ac_compile) 2>conftest.er1 6168case "(($ac_try" in
6169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170 *) ac_try_echo=$ac_try;;
6171esac
6172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173 (eval "$ac_compile") 2>conftest.er1
5205 ac_status=$? 6174 ac_status=$?
5206 grep -v '^ *+' conftest.er1 >conftest.err 6175 grep -v '^ *+' conftest.er1 >conftest.err
5207 rm -f conftest.er1 6176 rm -f conftest.er1
5208 cat conftest.err >&5 6177 cat conftest.err >&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); } && 6179 (exit $ac_status); } &&
5211 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6180 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6181 { (case "(($ac_try" in
5213 (eval $ac_try) 2>&5 6182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6183 *) ac_try_echo=$ac_try;;
6184esac
6185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6186 (eval "$ac_try") 2>&5
5214 ac_status=$? 6187 ac_status=$?
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }; } && 6189 (exit $ac_status); }; } &&
5217 { ac_try='test -s conftest.$ac_objext' 6190 { ac_try='test -s conftest.$ac_objext'
5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6191 { (case "(($ac_try" in
5219 (eval $ac_try) 2>&5 6192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193 *) ac_try_echo=$ac_try;;
6194esac
6195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196 (eval "$ac_try") 2>&5
5220 ac_status=$? 6197 ac_status=$?
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; }; then 6199 (exit $ac_status); }; }; then
5223 break 6200 ac_cv_prog_cxx_g=yes
5224else 6201else
5225 echo "$as_me: failed program was:" >&5 6202 echo "$as_me: failed program was:" >&5
5226sed 's/^/| /' conftest.$ac_ext >&5 6203sed 's/^/| /' conftest.$ac_ext >&5
5227 6204
6205
5228fi 6206fi
5229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6207
5230done 6208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5231rm -f conftest* 6209fi
5232if test -n "$ac_declaration"; then 6210
5233 echo '#ifdef __cplusplus' >>confdefs.h 6211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5234 echo $ac_declaration >>confdefs.h
5235 echo '#endif' >>confdefs.h
5236fi 6212fi
5237 6213
5238ac_ext=cc 6214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6216fi
6217{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6218echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6219if test "$ac_test_CXXFLAGS" = set; then
6220 CXXFLAGS=$ac_save_CXXFLAGS
6221elif test $ac_cv_prog_cxx_g = yes; then
6222 if test "$GXX" = yes; then
6223 CXXFLAGS="-g -O2"
6224 else
6225 CXXFLAGS="-g"
6226 fi
6227else
6228 if test "$GXX" = yes; then
6229 CXXFLAGS="-O2"
6230 else
6231 CXXFLAGS=
6232 fi
6233fi
6234ac_ext=cpp
5239ac_cpp='$CXXCPP $CPPFLAGS' 6235ac_cpp='$CXXCPP $CPPFLAGS'
5240ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6236ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5241ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6237ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
@@ -5243,8 +6239,8 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5243 6239
5244depcc="$CXX" am_compiler_list= 6240depcc="$CXX" am_compiler_list=
5245 6241
5246echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 6242{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5247echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 6243echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5248if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 6244if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5249 echo $ECHO_N "(cached) $ECHO_C" >&6 6245 echo $ECHO_N "(cached) $ECHO_C" >&6
5250else 6246else
@@ -5333,8 +6329,8 @@ else
5333fi 6329fi
5334 6330
5335fi 6331fi
5336echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 6332{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5337echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 6333echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5338CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6334CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5339 6335
5340 6336
@@ -5350,13 +6346,18 @@ else
5350fi 6346fi
5351 6347
5352 6348
5353ac_ext=cc 6349
6350
6351if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6352 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6353 (test "X$CXX" != "Xg++"))) ; then
6354 ac_ext=cpp
5354ac_cpp='$CXXCPP $CPPFLAGS' 6355ac_cpp='$CXXCPP $CPPFLAGS'
5355ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6356ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6357ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6358ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5358echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 6359{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5359echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 6360echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5360if test -z "$CXXCPP"; then 6361if test -z "$CXXCPP"; then
5361 if test "${ac_cv_prog_CXXCPP+set}" = set; then 6362 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5362 echo $ECHO_N "(cached) $ECHO_C" >&6 6363 echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -5386,8 +6387,13 @@ cat >>conftest.$ac_ext <<_ACEOF
5386#endif 6387#endif
5387 Syntax error 6388 Syntax error
5388_ACEOF 6389_ACEOF
5389if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6390if { (ac_try="$ac_cpp conftest.$ac_ext"
5390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6391case "(($ac_try" in
6392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393 *) ac_try_echo=$ac_try;;
6394esac
6395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5391 ac_status=$? 6397 ac_status=$?
5392 grep -v '^ *+' conftest.er1 >conftest.err 6398 grep -v '^ *+' conftest.er1 >conftest.err
5393 rm -f conftest.er1 6399 rm -f conftest.er1
@@ -5412,9 +6418,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
5412 # Broken: fails on valid input. 6418 # Broken: fails on valid input.
5413continue 6419continue
5414fi 6420fi
6421
5415rm -f conftest.err conftest.$ac_ext 6422rm -f conftest.err conftest.$ac_ext
5416 6423
5417 # OK, works on sane cases. Now check whether non-existent headers 6424 # OK, works on sane cases. Now check whether nonexistent headers
5418 # can be detected and how. 6425 # can be detected and how.
5419 cat >conftest.$ac_ext <<_ACEOF 6426 cat >conftest.$ac_ext <<_ACEOF
5420/* confdefs.h. */ 6427/* confdefs.h. */
@@ -5424,8 +6431,13 @@ cat >>conftest.$ac_ext <<_ACEOF
5424/* end confdefs.h. */ 6431/* end confdefs.h. */
5425#include <ac_nonexistent.h> 6432#include <ac_nonexistent.h>
5426_ACEOF 6433_ACEOF
5427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6434if { (ac_try="$ac_cpp conftest.$ac_ext"
5428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6435case "(($ac_try" in
6436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6437 *) ac_try_echo=$ac_try;;
6438esac
6439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5429 ac_status=$? 6441 ac_status=$?
5430 grep -v '^ *+' conftest.er1 >conftest.err 6442 grep -v '^ *+' conftest.er1 >conftest.err
5431 rm -f conftest.er1 6443 rm -f conftest.er1
@@ -5452,6 +6464,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
5452ac_preproc_ok=: 6464ac_preproc_ok=:
5453break 6465break
5454fi 6466fi
6467
5455rm -f conftest.err conftest.$ac_ext 6468rm -f conftest.err conftest.$ac_ext
5456 6469
5457done 6470done
@@ -5469,8 +6482,8 @@ fi
5469else 6482else
5470 ac_cv_prog_CXXCPP=$CXXCPP 6483 ac_cv_prog_CXXCPP=$CXXCPP
5471fi 6484fi
5472echo "$as_me:$LINENO: result: $CXXCPP" >&5 6485{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5473echo "${ECHO_T}$CXXCPP" >&6 6486echo "${ECHO_T}$CXXCPP" >&6; }
5474ac_preproc_ok=false 6487ac_preproc_ok=false
5475for ac_cxx_preproc_warn_flag in '' yes 6488for ac_cxx_preproc_warn_flag in '' yes
5476do 6489do
@@ -5493,8 +6506,13 @@ cat >>conftest.$ac_ext <<_ACEOF
5493#endif 6506#endif
5494 Syntax error 6507 Syntax error
5495_ACEOF 6508_ACEOF
5496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6509if { (ac_try="$ac_cpp conftest.$ac_ext"
5497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6510case "(($ac_try" in
6511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512 *) ac_try_echo=$ac_try;;
6513esac
6514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5498 ac_status=$? 6516 ac_status=$?
5499 grep -v '^ *+' conftest.er1 >conftest.err 6517 grep -v '^ *+' conftest.er1 >conftest.err
5500 rm -f conftest.er1 6518 rm -f conftest.er1
@@ -5519,9 +6537,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
5519 # Broken: fails on valid input. 6537 # Broken: fails on valid input.
5520continue 6538continue
5521fi 6539fi
6540
5522rm -f conftest.err conftest.$ac_ext 6541rm -f conftest.err conftest.$ac_ext
5523 6542
5524 # OK, works on sane cases. Now check whether non-existent headers 6543 # OK, works on sane cases. Now check whether nonexistent headers
5525 # can be detected and how. 6544 # can be detected and how.
5526 cat >conftest.$ac_ext <<_ACEOF 6545 cat >conftest.$ac_ext <<_ACEOF
5527/* confdefs.h. */ 6546/* confdefs.h. */
@@ -5531,8 +6550,13 @@ cat >>conftest.$ac_ext <<_ACEOF
5531/* end confdefs.h. */ 6550/* end confdefs.h. */
5532#include <ac_nonexistent.h> 6551#include <ac_nonexistent.h>
5533_ACEOF 6552_ACEOF
5534if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6553if { (ac_try="$ac_cpp conftest.$ac_ext"
5535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6554case "(($ac_try" in
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6557esac
6558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5536 ac_status=$? 6560 ac_status=$?
5537 grep -v '^ *+' conftest.er1 >conftest.err 6561 grep -v '^ *+' conftest.er1 >conftest.err
5538 rm -f conftest.er1 6562 rm -f conftest.er1
@@ -5559,6 +6583,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
5559ac_preproc_ok=: 6583ac_preproc_ok=:
5560break 6584break
5561fi 6585fi
6586
5562rm -f conftest.err conftest.$ac_ext 6587rm -f conftest.err conftest.$ac_ext
5563 6588
5564done 6589done
@@ -5574,24 +6599,26 @@ See \`config.log' for more details." >&2;}
5574 { (exit 1); exit 1; }; } 6599 { (exit 1); exit 1; }; }
5575fi 6600fi
5576 6601
5577ac_ext=cc 6602ac_ext=cpp
5578ac_cpp='$CXXCPP $CPPFLAGS' 6603ac_cpp='$CXXCPP $CPPFLAGS'
5579ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6604ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5580ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6605ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5581ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6606ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5582 6607
6608fi
6609
5583 6610
5584ac_ext=f 6611ac_ext=f
5585ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6612ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5586ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6613ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5587ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6614ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5588if test -n "$ac_tool_prefix"; then 6615if test -n "$ac_tool_prefix"; then
5589 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 6616 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
5590 do 6617 do
5591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5592set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6619set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5593echo "$as_me:$LINENO: checking for $ac_word" >&5 6620{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5595if test "${ac_cv_prog_F77+set}" = set; then 6622if test "${ac_cv_prog_F77+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6 6623 echo $ECHO_N "(cached) $ECHO_C" >&6
5597else 6624else
@@ -5604,36 +6631,38 @@ do
5604 IFS=$as_save_IFS 6631 IFS=$as_save_IFS
5605 test -z "$as_dir" && as_dir=. 6632 test -z "$as_dir" && as_dir=.
5606 for ac_exec_ext in '' $ac_executable_extensions; do 6633 for ac_exec_ext in '' $ac_executable_extensions; do
5607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5608 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6635 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 break 2 6637 break 2
5611 fi 6638 fi
5612done 6639done
5613done 6640done
6641IFS=$as_save_IFS
5614 6642
5615fi 6643fi
5616fi 6644fi
5617F77=$ac_cv_prog_F77 6645F77=$ac_cv_prog_F77
5618if test -n "$F77"; then 6646if test -n "$F77"; then
5619 echo "$as_me:$LINENO: result: $F77" >&5 6647 { echo "$as_me:$LINENO: result: $F77" >&5
5620echo "${ECHO_T}$F77" >&6 6648echo "${ECHO_T}$F77" >&6; }
5621else 6649else
5622 echo "$as_me:$LINENO: result: no" >&5 6650 { echo "$as_me:$LINENO: result: no" >&5
5623echo "${ECHO_T}no" >&6 6651echo "${ECHO_T}no" >&6; }
5624fi 6652fi
5625 6653
6654
5626 test -n "$F77" && break 6655 test -n "$F77" && break
5627 done 6656 done
5628fi 6657fi
5629if test -z "$F77"; then 6658if test -z "$F77"; then
5630 ac_ct_F77=$F77 6659 ac_ct_F77=$F77
5631 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 6660 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
5632do 6661do
5633 # Extract the first word of "$ac_prog", so it can be a program name with args. 6662 # Extract the first word of "$ac_prog", so it can be a program name with args.
5634set dummy $ac_prog; ac_word=$2 6663set dummy $ac_prog; ac_word=$2
5635echo "$as_me:$LINENO: checking for $ac_word" >&5 6664{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5637if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6666if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6 6667 echo $ECHO_N "(cached) $ECHO_C" >&6
5639else 6668else
@@ -5646,48 +6675,78 @@ do
5646 IFS=$as_save_IFS 6675 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=. 6676 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do 6677 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5650 ac_cv_prog_ac_ct_F77="$ac_prog" 6679 ac_cv_prog_ac_ct_F77="$ac_prog"
5651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 break 2 6681 break 2
5653 fi 6682 fi
5654done 6683done
5655done 6684done
6685IFS=$as_save_IFS
5656 6686
5657fi 6687fi
5658fi 6688fi
5659ac_ct_F77=$ac_cv_prog_ac_ct_F77 6689ac_ct_F77=$ac_cv_prog_ac_ct_F77
5660if test -n "$ac_ct_F77"; then 6690if test -n "$ac_ct_F77"; then
5661 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6691 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5662echo "${ECHO_T}$ac_ct_F77" >&6 6692echo "${ECHO_T}$ac_ct_F77" >&6; }
5663else 6693else
5664 echo "$as_me:$LINENO: result: no" >&5 6694 { echo "$as_me:$LINENO: result: no" >&5
5665echo "${ECHO_T}no" >&6 6695echo "${ECHO_T}no" >&6; }
5666fi 6696fi
5667 6697
6698
5668 test -n "$ac_ct_F77" && break 6699 test -n "$ac_ct_F77" && break
5669done 6700done
5670 6701
5671 F77=$ac_ct_F77 6702 if test "x$ac_ct_F77" = x; then
6703 F77=""
6704 else
6705 case $cross_compiling:$ac_tool_warned in
6706yes:)
6707{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6708whose name does not start with the host triplet. If you think this
6709configuration is useful to you, please write to autoconf@gnu.org." >&5
6710echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6711whose name does not start with the host triplet. If you think this
6712configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6713ac_tool_warned=yes ;;
6714esac
6715 F77=$ac_ct_F77
6716 fi
5672fi 6717fi
5673 6718
5674 6719
5675# Provide some information about the compiler. 6720# Provide some information about the compiler.
5676echo "$as_me:5676:" \ 6721echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5677 "checking for Fortran 77 compiler version" >&5
5678ac_compiler=`set X $ac_compile; echo $2` 6722ac_compiler=`set X $ac_compile; echo $2`
5679{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 6723{ (ac_try="$ac_compiler --version >&5"
5680 (eval $ac_compiler --version </dev/null >&5) 2>&5 6724case "(($ac_try" in
6725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726 *) ac_try_echo=$ac_try;;
6727esac
6728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6729 (eval "$ac_compiler --version >&5") 2>&5
5681 ac_status=$? 6730 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } 6732 (exit $ac_status); }
5684{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 6733{ (ac_try="$ac_compiler -v >&5"
5685 (eval $ac_compiler -v </dev/null >&5) 2>&5 6734case "(($ac_try" in
6735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736 *) ac_try_echo=$ac_try;;
6737esac
6738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6739 (eval "$ac_compiler -v >&5") 2>&5
5686 ac_status=$? 6740 ac_status=$?
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } 6742 (exit $ac_status); }
5689{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 6743{ (ac_try="$ac_compiler -V >&5"
5690 (eval $ac_compiler -V </dev/null >&5) 2>&5 6744case "(($ac_try" in
6745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6746 *) ac_try_echo=$ac_try;;
6747esac
6748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6749 (eval "$ac_compiler -V >&5") 2>&5
5691 ac_status=$? 6750 ac_status=$?
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } 6752 (exit $ac_status); }
@@ -5697,8 +6756,8 @@ rm -f a.out
5697# input file. (Note that this only needs to work for GNU compilers.) 6756# input file. (Note that this only needs to work for GNU compilers.)
5698ac_save_ext=$ac_ext 6757ac_save_ext=$ac_ext
5699ac_ext=F 6758ac_ext=F
5700echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6759{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5701echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 6760echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5702if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6761if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6 6762 echo $ECHO_N "(cached) $ECHO_C" >&6
5704else 6763else
@@ -5711,23 +6770,36 @@ else
5711 end 6770 end
5712_ACEOF 6771_ACEOF
5713rm -f conftest.$ac_objext 6772rm -f conftest.$ac_objext
5714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6773if { (ac_try="$ac_compile"
5715 (eval $ac_compile) 2>conftest.er1 6774case "(($ac_try" in
6775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6776 *) ac_try_echo=$ac_try;;
6777esac
6778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6779 (eval "$ac_compile") 2>conftest.er1
5716 ac_status=$? 6780 ac_status=$?
5717 grep -v '^ *+' conftest.er1 >conftest.err 6781 grep -v '^ *+' conftest.er1 >conftest.err
5718 rm -f conftest.er1 6782 rm -f conftest.er1
5719 cat conftest.err >&5 6783 cat conftest.err >&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); } && 6785 (exit $ac_status); } &&
5722 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6786 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6787 { (case "(($ac_try" in
5724 (eval $ac_try) 2>&5 6788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6789 *) ac_try_echo=$ac_try;;
6790esac
6791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6792 (eval "$ac_try") 2>&5
5725 ac_status=$? 6793 ac_status=$?
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; } && 6795 (exit $ac_status); }; } &&
5728 { ac_try='test -s conftest.$ac_objext' 6796 { ac_try='test -s conftest.$ac_objext'
5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6797 { (case "(($ac_try" in
5730 (eval $ac_try) 2>&5 6798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799 *) ac_try_echo=$ac_try;;
6800esac
6801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802 (eval "$ac_try") 2>&5
5731 ac_status=$? 6803 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then 6805 (exit $ac_status); }; }; then
@@ -5736,20 +6808,21 @@ else
5736 echo "$as_me: failed program was:" >&5 6808 echo "$as_me: failed program was:" >&5
5737sed 's/^/| /' conftest.$ac_ext >&5 6809sed 's/^/| /' conftest.$ac_ext >&5
5738 6810
5739ac_compiler_gnu=no 6811 ac_compiler_gnu=no
5740fi 6812fi
5741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6813
6814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6815ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5743 6816
5744fi 6817fi
5745echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6818{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5746echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 6819echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5747ac_ext=$ac_save_ext 6820ac_ext=$ac_save_ext
5748ac_test_FFLAGS=${FFLAGS+set} 6821ac_test_FFLAGS=${FFLAGS+set}
5749ac_save_FFLAGS=$FFLAGS 6822ac_save_FFLAGS=$FFLAGS
5750FFLAGS= 6823FFLAGS=
5751echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6824{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5752echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 6825echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5753if test "${ac_cv_prog_f77_g+set}" = set; then 6826if test "${ac_cv_prog_f77_g+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6 6827 echo $ECHO_N "(cached) $ECHO_C" >&6
5755else 6828else
@@ -5760,23 +6833,36 @@ cat >conftest.$ac_ext <<_ACEOF
5760 end 6833 end
5761_ACEOF 6834_ACEOF
5762rm -f conftest.$ac_objext 6835rm -f conftest.$ac_objext
5763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6836if { (ac_try="$ac_compile"
5764 (eval $ac_compile) 2>conftest.er1 6837case "(($ac_try" in
6838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6839 *) ac_try_echo=$ac_try;;
6840esac
6841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6842 (eval "$ac_compile") 2>conftest.er1
5765 ac_status=$? 6843 ac_status=$?
5766 grep -v '^ *+' conftest.er1 >conftest.err 6844 grep -v '^ *+' conftest.er1 >conftest.err
5767 rm -f conftest.er1 6845 rm -f conftest.er1
5768 cat conftest.err >&5 6846 cat conftest.err >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } && 6848 (exit $ac_status); } &&
5771 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6849 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6850 { (case "(($ac_try" in
5773 (eval $ac_try) 2>&5 6851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6852 *) ac_try_echo=$ac_try;;
6853esac
6854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6855 (eval "$ac_try") 2>&5
5774 ac_status=$? 6856 ac_status=$?
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; } && 6858 (exit $ac_status); }; } &&
5777 { ac_try='test -s conftest.$ac_objext' 6859 { ac_try='test -s conftest.$ac_objext'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6860 { (case "(($ac_try" in
5779 (eval $ac_try) 2>&5 6861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6862 *) ac_try_echo=$ac_try;;
6863esac
6864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6865 (eval "$ac_try") 2>&5
5780 ac_status=$? 6866 ac_status=$?
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; }; then 6868 (exit $ac_status); }; }; then
@@ -5785,13 +6871,14 @@ else
5785 echo "$as_me: failed program was:" >&5 6871 echo "$as_me: failed program was:" >&5
5786sed 's/^/| /' conftest.$ac_ext >&5 6872sed 's/^/| /' conftest.$ac_ext >&5
5787 6873
5788ac_cv_prog_f77_g=no 6874 ac_cv_prog_f77_g=no
5789fi 6875fi
5790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6876
6877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791 6878
5792fi 6879fi
5793echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6880{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5794echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 6881echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5795if test "$ac_test_FFLAGS" = set; then 6882if test "$ac_test_FFLAGS" = set; then
5796 FFLAGS=$ac_save_FFLAGS 6883 FFLAGS=$ac_save_FFLAGS
5797elif test $ac_cv_prog_f77_g = yes; then 6884elif test $ac_cv_prog_f77_g = yes; then
@@ -5820,8 +6907,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
5820# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6907# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5821 6908
5822# find the maximum length of command line arguments 6909# find the maximum length of command line arguments
5823echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6910{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5824echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 6911echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5825if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6912if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6 6913 echo $ECHO_N "(cached) $ECHO_C" >&6
5827else 6914else
@@ -5861,11 +6948,55 @@ else
5861 lt_cv_sys_max_cmd_len=8192; 6948 lt_cv_sys_max_cmd_len=8192;
5862 ;; 6949 ;;
5863 6950
5864 *) 6951 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6952 # This has been around since 386BSD, at least. Likely further.
6953 if test -x /sbin/sysctl; then
6954 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6955 elif test -x /usr/sbin/sysctl; then
6956 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6957 else
6958 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6959 fi
6960 # And add a safety zone
6961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6962 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6963 ;;
6964
6965 interix*)
6966 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6967 lt_cv_sys_max_cmd_len=196608
6968 ;;
6969
6970 osf*)
6971 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6972 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6973 # nice to cause kernel panics so lets avoid the loop below.
6974 # First set a reasonable default.
6975 lt_cv_sys_max_cmd_len=16384
6976 #
6977 if test -x /sbin/sysconfig; then
6978 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6979 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6980 esac
6981 fi
6982 ;;
6983 sco3.2v5*)
6984 lt_cv_sys_max_cmd_len=102400
6985 ;;
6986 sysv5* | sco5v6* | sysv4.2uw2*)
6987 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6988 if test -n "$kargmax"; then
6989 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6990 else
6991 lt_cv_sys_max_cmd_len=32768
6992 fi
6993 ;;
6994 *)
5865 # If test is not a shell built-in, we'll probably end up computing a 6995 # If test is not a shell built-in, we'll probably end up computing a
5866 # maximum length that is only half of the actual maximum length, but 6996 # maximum length that is only half of the actual maximum length, but
5867 # we can't tell. 6997 # we can't tell.
5868 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6998 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6999 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5869 = "XX$teststring") >/dev/null 2>&1 && 7000 = "XX$teststring") >/dev/null 2>&1 &&
5870 new_result=`expr "X$teststring" : ".*" 2>&1` && 7001 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5871 lt_cv_sys_max_cmd_len=$new_result && 7002 lt_cv_sys_max_cmd_len=$new_result &&
@@ -5885,19 +7016,19 @@ else
5885fi 7016fi
5886 7017
5887if test -n $lt_cv_sys_max_cmd_len ; then 7018if test -n $lt_cv_sys_max_cmd_len ; then
5888 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 7019 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5889echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 7020echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5890else 7021else
5891 echo "$as_me:$LINENO: result: none" >&5 7022 { echo "$as_me:$LINENO: result: none" >&5
5892echo "${ECHO_T}none" >&6 7023echo "${ECHO_T}none" >&6; }
5893fi 7024fi
5894 7025
5895 7026
5896 7027
5897 7028
5898# Check for command to grab the raw symbol name followed by C symbol from nm. 7029# Check for command to grab the raw symbol name followed by C symbol from nm.
5899echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 7030{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5900echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 7031echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5901if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 7032if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6 7033 echo $ECHO_N "(cached) $ECHO_C" >&6
5903else 7034else
@@ -5911,9 +7042,6 @@ symcode='[BCDEGRST]'
5911# Regexp to match symbols that can be accessed directly from C. 7042# Regexp to match symbols that can be accessed directly from C.
5912sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7043sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5913 7044
5914# Transform the above into a raw symbol and a C symbol.
5915symxfrm='\1 \2\3 \3'
5916
5917# Transform an extracted symbol line into a proper C declaration 7045# Transform an extracted symbol line into a proper C declaration
5918lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 7046lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5919 7047
@@ -5935,15 +7063,31 @@ hpux*) # Its linker distinguishes data from code symbols
5935 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7063 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5936 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 7064 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5937 ;; 7065 ;;
7066linux* | k*bsd*-gnu)
7067 if test "$host_cpu" = ia64; then
7068 symcode='[ABCDGIRSTW]'
7069 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7070 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7071 fi
7072 ;;
5938irix* | nonstopux*) 7073irix* | nonstopux*)
5939 symcode='[BCDEGRST]' 7074 symcode='[BCDEGRST]'
5940 ;; 7075 ;;
5941osf*) 7076osf*)
5942 symcode='[BCDEGQRST]' 7077 symcode='[BCDEGQRST]'
5943 ;; 7078 ;;
5944solaris* | sysv5*) 7079solaris*)
5945 symcode='[BDRT]' 7080 symcode='[BDRT]'
5946 ;; 7081 ;;
7082sco3.2v5*)
7083 symcode='[DT]'
7084 ;;
7085sysv4.2uw2*)
7086 symcode='[DT]'
7087 ;;
7088sysv5* | sco5v6* | unixware* | OpenUNIX*)
7089 symcode='[ABDT]'
7090 ;;
5947sysv4) 7091sysv4)
5948 symcode='[DFNSTU]' 7092 symcode='[DFNSTU]'
5949 ;; 7093 ;;
@@ -5966,8 +7110,11 @@ esac
5966# Try without a prefix undercore, then with it. 7110# Try without a prefix undercore, then with it.
5967for ac_symprfx in "" "_"; do 7111for ac_symprfx in "" "_"; do
5968 7112
7113 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7114 symxfrm="\\1 $ac_symprfx\\2 \\2"
7115
5969 # Write the raw and C identifiers. 7116 # Write the raw and C identifiers.
5970 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 7117 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5971 7118
5972 # Check to see that the pipe works correctly. 7119 # Check to see that the pipe works correctly.
5973 pipe_works=no 7120 pipe_works=no
@@ -6085,15 +7232,15 @@ if test -z "$lt_cv_sys_global_symbol_pipe"; then
6085 lt_cv_sys_global_symbol_to_cdecl= 7232 lt_cv_sys_global_symbol_to_cdecl=
6086fi 7233fi
6087if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7234if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6088 echo "$as_me:$LINENO: result: failed" >&5 7235 { echo "$as_me:$LINENO: result: failed" >&5
6089echo "${ECHO_T}failed" >&6 7236echo "${ECHO_T}failed" >&6; }
6090else 7237else
6091 echo "$as_me:$LINENO: result: ok" >&5 7238 { echo "$as_me:$LINENO: result: ok" >&5
6092echo "${ECHO_T}ok" >&6 7239echo "${ECHO_T}ok" >&6; }
6093fi 7240fi
6094 7241
6095echo "$as_me:$LINENO: checking for objdir" >&5 7242{ echo "$as_me:$LINENO: checking for objdir" >&5
6096echo $ECHO_N "checking for objdir... $ECHO_C" >&6 7243echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6097if test "${lt_cv_objdir+set}" = set; then 7244if test "${lt_cv_objdir+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6 7245 echo $ECHO_N "(cached) $ECHO_C" >&6
6099else 7246else
@@ -6107,8 +7254,8 @@ else
6107fi 7254fi
6108rmdir .libs 2>/dev/null 7255rmdir .libs 2>/dev/null
6109fi 7256fi
6110echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7257{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6111echo "${ECHO_T}$lt_cv_objdir" >&6 7258echo "${ECHO_T}$lt_cv_objdir" >&6; }
6112objdir=$lt_cv_objdir 7259objdir=$lt_cv_objdir
6113 7260
6114 7261
@@ -6129,7 +7276,7 @@ esac
6129 7276
6130# Sed substitution that helps us do robust quoting. It backslashifies 7277# Sed substitution that helps us do robust quoting. It backslashifies
6131# metacharacters that are still active within double-quoted strings. 7278# metacharacters that are still active within double-quoted strings.
6132Xsed='sed -e s/^X//' 7279Xsed='sed -e 1s/^X//'
6133sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 7280sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6134 7281
6135# Same as above, but do not quote variable references. 7282# Same as above, but do not quote variable references.
@@ -6149,7 +7296,7 @@ rm="rm -f"
6149default_ofile=libtool 7296default_ofile=libtool
6150can_build_shared=yes 7297can_build_shared=yes
6151 7298
6152# All known linkers require a `.a' archive for static linking (except M$VC, 7299# All known linkers require a `.a' archive for static linking (except MSVC,
6153# which needs '.lib'). 7300# which needs '.lib').
6154libext=a 7301libext=a
6155ltmain="$ac_aux_dir/ltmain.sh" 7302ltmain="$ac_aux_dir/ltmain.sh"
@@ -6159,8 +7306,8 @@ with_gnu_ld="$lt_cv_prog_gnu_ld"
6159if test -n "$ac_tool_prefix"; then 7306if test -n "$ac_tool_prefix"; then
6160 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7307 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6161set dummy ${ac_tool_prefix}ar; ac_word=$2 7308set dummy ${ac_tool_prefix}ar; ac_word=$2
6162echo "$as_me:$LINENO: checking for $ac_word" >&5 7309{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6164if test "${ac_cv_prog_AR+set}" = set; then 7311if test "${ac_cv_prog_AR+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6 7312 echo $ECHO_N "(cached) $ECHO_C" >&6
6166else 7313else
@@ -6173,32 +7320,34 @@ do
6173 IFS=$as_save_IFS 7320 IFS=$as_save_IFS
6174 test -z "$as_dir" && as_dir=. 7321 test -z "$as_dir" && as_dir=.
6175 for ac_exec_ext in '' $ac_executable_extensions; do 7322 for ac_exec_ext in '' $ac_executable_extensions; do
6176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6177 ac_cv_prog_AR="${ac_tool_prefix}ar" 7324 ac_cv_prog_AR="${ac_tool_prefix}ar"
6178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6179 break 2 7326 break 2
6180 fi 7327 fi
6181done 7328done
6182done 7329done
7330IFS=$as_save_IFS
6183 7331
6184fi 7332fi
6185fi 7333fi
6186AR=$ac_cv_prog_AR 7334AR=$ac_cv_prog_AR
6187if test -n "$AR"; then 7335if test -n "$AR"; then
6188 echo "$as_me:$LINENO: result: $AR" >&5 7336 { echo "$as_me:$LINENO: result: $AR" >&5
6189echo "${ECHO_T}$AR" >&6 7337echo "${ECHO_T}$AR" >&6; }
6190else 7338else
6191 echo "$as_me:$LINENO: result: no" >&5 7339 { echo "$as_me:$LINENO: result: no" >&5
6192echo "${ECHO_T}no" >&6 7340echo "${ECHO_T}no" >&6; }
6193fi 7341fi
6194 7342
7343
6195fi 7344fi
6196if test -z "$ac_cv_prog_AR"; then 7345if test -z "$ac_cv_prog_AR"; then
6197 ac_ct_AR=$AR 7346 ac_ct_AR=$AR
6198 # Extract the first word of "ar", so it can be a program name with args. 7347 # Extract the first word of "ar", so it can be a program name with args.
6199set dummy ar; ac_word=$2 7348set dummy ar; ac_word=$2
6200echo "$as_me:$LINENO: checking for $ac_word" >&5 7349{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6202if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7351if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6 7352 echo $ECHO_N "(cached) $ECHO_C" >&6
6204else 7353else
@@ -6211,27 +7360,41 @@ do
6211 IFS=$as_save_IFS 7360 IFS=$as_save_IFS
6212 test -z "$as_dir" && as_dir=. 7361 test -z "$as_dir" && as_dir=.
6213 for ac_exec_ext in '' $ac_executable_extensions; do 7362 for ac_exec_ext in '' $ac_executable_extensions; do
6214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6215 ac_cv_prog_ac_ct_AR="ar" 7364 ac_cv_prog_ac_ct_AR="ar"
6216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6217 break 2 7366 break 2
6218 fi 7367 fi
6219done 7368done
6220done 7369done
7370IFS=$as_save_IFS
6221 7371
6222 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6223fi 7372fi
6224fi 7373fi
6225ac_ct_AR=$ac_cv_prog_ac_ct_AR 7374ac_ct_AR=$ac_cv_prog_ac_ct_AR
6226if test -n "$ac_ct_AR"; then 7375if test -n "$ac_ct_AR"; then
6227 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7376 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6228echo "${ECHO_T}$ac_ct_AR" >&6 7377echo "${ECHO_T}$ac_ct_AR" >&6; }
6229else 7378else
6230 echo "$as_me:$LINENO: result: no" >&5 7379 { echo "$as_me:$LINENO: result: no" >&5
6231echo "${ECHO_T}no" >&6 7380echo "${ECHO_T}no" >&6; }
6232fi 7381fi
6233 7382
6234 AR=$ac_ct_AR 7383 if test "x$ac_ct_AR" = x; then
7384 AR="false"
7385 else
7386 case $cross_compiling:$ac_tool_warned in
7387yes:)
7388{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7389whose name does not start with the host triplet. If you think this
7390configuration is useful to you, please write to autoconf@gnu.org." >&5
7391echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7392whose name does not start with the host triplet. If you think this
7393configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7394ac_tool_warned=yes ;;
7395esac
7396 AR=$ac_ct_AR
7397 fi
6235else 7398else
6236 AR="$ac_cv_prog_AR" 7399 AR="$ac_cv_prog_AR"
6237fi 7400fi
@@ -6239,8 +7402,8 @@ fi
6239if test -n "$ac_tool_prefix"; then 7402if test -n "$ac_tool_prefix"; then
6240 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7403 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6241set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7404set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6242echo "$as_me:$LINENO: checking for $ac_word" >&5 7405{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6244if test "${ac_cv_prog_RANLIB+set}" = set; then 7407if test "${ac_cv_prog_RANLIB+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6 7408 echo $ECHO_N "(cached) $ECHO_C" >&6
6246else 7409else
@@ -6253,32 +7416,34 @@ do
6253 IFS=$as_save_IFS 7416 IFS=$as_save_IFS
6254 test -z "$as_dir" && as_dir=. 7417 test -z "$as_dir" && as_dir=.
6255 for ac_exec_ext in '' $ac_executable_extensions; do 7418 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6257 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7420 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6259 break 2 7422 break 2
6260 fi 7423 fi
6261done 7424done
6262done 7425done
7426IFS=$as_save_IFS
6263 7427
6264fi 7428fi
6265fi 7429fi
6266RANLIB=$ac_cv_prog_RANLIB 7430RANLIB=$ac_cv_prog_RANLIB
6267if test -n "$RANLIB"; then 7431if test -n "$RANLIB"; then
6268 echo "$as_me:$LINENO: result: $RANLIB" >&5 7432 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6269echo "${ECHO_T}$RANLIB" >&6 7433echo "${ECHO_T}$RANLIB" >&6; }
6270else 7434else
6271 echo "$as_me:$LINENO: result: no" >&5 7435 { echo "$as_me:$LINENO: result: no" >&5
6272echo "${ECHO_T}no" >&6 7436echo "${ECHO_T}no" >&6; }
6273fi 7437fi
6274 7438
7439
6275fi 7440fi
6276if test -z "$ac_cv_prog_RANLIB"; then 7441if test -z "$ac_cv_prog_RANLIB"; then
6277 ac_ct_RANLIB=$RANLIB 7442 ac_ct_RANLIB=$RANLIB
6278 # Extract the first word of "ranlib", so it can be a program name with args. 7443 # Extract the first word of "ranlib", so it can be a program name with args.
6279set dummy ranlib; ac_word=$2 7444set dummy ranlib; ac_word=$2
6280echo "$as_me:$LINENO: checking for $ac_word" >&5 7445{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6282if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7447if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6 7448 echo $ECHO_N "(cached) $ECHO_C" >&6
6284else 7449else
@@ -6291,27 +7456,41 @@ do
6291 IFS=$as_save_IFS 7456 IFS=$as_save_IFS
6292 test -z "$as_dir" && as_dir=. 7457 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do 7458 for ac_exec_ext in '' $ac_executable_extensions; do
6294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6295 ac_cv_prog_ac_ct_RANLIB="ranlib" 7460 ac_cv_prog_ac_ct_RANLIB="ranlib"
6296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 break 2 7462 break 2
6298 fi 7463 fi
6299done 7464done
6300done 7465done
7466IFS=$as_save_IFS
6301 7467
6302 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6303fi 7468fi
6304fi 7469fi
6305ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7470ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6306if test -n "$ac_ct_RANLIB"; then 7471if test -n "$ac_ct_RANLIB"; then
6307 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7472 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6308echo "${ECHO_T}$ac_ct_RANLIB" >&6 7473echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6309else 7474else
6310 echo "$as_me:$LINENO: result: no" >&5 7475 { echo "$as_me:$LINENO: result: no" >&5
6311echo "${ECHO_T}no" >&6 7476echo "${ECHO_T}no" >&6; }
6312fi 7477fi
6313 7478
6314 RANLIB=$ac_ct_RANLIB 7479 if test "x$ac_ct_RANLIB" = x; then
7480 RANLIB=":"
7481 else
7482 case $cross_compiling:$ac_tool_warned in
7483yes:)
7484{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7485whose name does not start with the host triplet. If you think this
7486configuration is useful to you, please write to autoconf@gnu.org." >&5
7487echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7488whose name does not start with the host triplet. If you think this
7489configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7490ac_tool_warned=yes ;;
7491esac
7492 RANLIB=$ac_ct_RANLIB
7493 fi
6315else 7494else
6316 RANLIB="$ac_cv_prog_RANLIB" 7495 RANLIB="$ac_cv_prog_RANLIB"
6317fi 7496fi
@@ -6319,8 +7498,8 @@ fi
6319if test -n "$ac_tool_prefix"; then 7498if test -n "$ac_tool_prefix"; then
6320 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7499 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6321set dummy ${ac_tool_prefix}strip; ac_word=$2 7500set dummy ${ac_tool_prefix}strip; ac_word=$2
6322echo "$as_me:$LINENO: checking for $ac_word" >&5 7501{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6324if test "${ac_cv_prog_STRIP+set}" = set; then 7503if test "${ac_cv_prog_STRIP+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6 7504 echo $ECHO_N "(cached) $ECHO_C" >&6
6326else 7505else
@@ -6333,32 +7512,34 @@ do
6333 IFS=$as_save_IFS 7512 IFS=$as_save_IFS
6334 test -z "$as_dir" && as_dir=. 7513 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do 7514 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6337 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7516 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 break 2 7518 break 2
6340 fi 7519 fi
6341done 7520done
6342done 7521done
7522IFS=$as_save_IFS
6343 7523
6344fi 7524fi
6345fi 7525fi
6346STRIP=$ac_cv_prog_STRIP 7526STRIP=$ac_cv_prog_STRIP
6347if test -n "$STRIP"; then 7527if test -n "$STRIP"; then
6348 echo "$as_me:$LINENO: result: $STRIP" >&5 7528 { echo "$as_me:$LINENO: result: $STRIP" >&5
6349echo "${ECHO_T}$STRIP" >&6 7529echo "${ECHO_T}$STRIP" >&6; }
6350else 7530else
6351 echo "$as_me:$LINENO: result: no" >&5 7531 { echo "$as_me:$LINENO: result: no" >&5
6352echo "${ECHO_T}no" >&6 7532echo "${ECHO_T}no" >&6; }
6353fi 7533fi
6354 7534
7535
6355fi 7536fi
6356if test -z "$ac_cv_prog_STRIP"; then 7537if test -z "$ac_cv_prog_STRIP"; then
6357 ac_ct_STRIP=$STRIP 7538 ac_ct_STRIP=$STRIP
6358 # Extract the first word of "strip", so it can be a program name with args. 7539 # Extract the first word of "strip", so it can be a program name with args.
6359set dummy strip; ac_word=$2 7540set dummy strip; ac_word=$2
6360echo "$as_me:$LINENO: checking for $ac_word" >&5 7541{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6362if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7543if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6 7544 echo $ECHO_N "(cached) $ECHO_C" >&6
6364else 7545else
@@ -6371,27 +7552,41 @@ do
6371 IFS=$as_save_IFS 7552 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=. 7553 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do 7554 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6375 ac_cv_prog_ac_ct_STRIP="strip" 7556 ac_cv_prog_ac_ct_STRIP="strip"
6376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 break 2 7558 break 2
6378 fi 7559 fi
6379done 7560done
6380done 7561done
7562IFS=$as_save_IFS
6381 7563
6382 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6383fi 7564fi
6384fi 7565fi
6385ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7566ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6386if test -n "$ac_ct_STRIP"; then 7567if test -n "$ac_ct_STRIP"; then
6387 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7568 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6388echo "${ECHO_T}$ac_ct_STRIP" >&6 7569echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6389else 7570else
6390 echo "$as_me:$LINENO: result: no" >&5 7571 { echo "$as_me:$LINENO: result: no" >&5
6391echo "${ECHO_T}no" >&6 7572echo "${ECHO_T}no" >&6; }
6392fi 7573fi
6393 7574
6394 STRIP=$ac_ct_STRIP 7575 if test "x$ac_ct_STRIP" = x; then
7576 STRIP=":"
7577 else
7578 case $cross_compiling:$ac_tool_warned in
7579yes:)
7580{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7581whose name does not start with the host triplet. If you think this
7582configuration is useful to you, please write to autoconf@gnu.org." >&5
7583echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7584whose name does not start with the host triplet. If you think this
7585configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7586ac_tool_warned=yes ;;
7587esac
7588 STRIP=$ac_ct_STRIP
7589 fi
6395else 7590else
6396 STRIP="$ac_cv_prog_STRIP" 7591 STRIP="$ac_cv_prog_STRIP"
6397fi 7592fi
@@ -6406,6 +7601,7 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
6406test -z "$AS" && AS=as 7601test -z "$AS" && AS=as
6407test -z "$CC" && CC=cc 7602test -z "$CC" && CC=cc
6408test -z "$LTCC" && LTCC=$CC 7603test -z "$LTCC" && LTCC=$CC
7604test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6409test -z "$DLLTOOL" && DLLTOOL=dlltool 7605test -z "$DLLTOOL" && DLLTOOL=dlltool
6410test -z "$LD" && LD=ld 7606test -z "$LD" && LD=ld
6411test -z "$LN_S" && LN_S="ln -s" 7607test -z "$LN_S" && LN_S="ln -s"
@@ -6425,21 +7621,32 @@ old_postuninstall_cmds=
6425if test -n "$RANLIB"; then 7621if test -n "$RANLIB"; then
6426 case $host_os in 7622 case $host_os in
6427 openbsd*) 7623 openbsd*)
6428 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 7624 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6429 ;; 7625 ;;
6430 *) 7626 *)
6431 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 7627 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6432 ;; 7628 ;;
6433 esac 7629 esac
6434 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7630 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6435fi 7631fi
6436 7632
7633for cc_temp in $compiler""; do
7634 case $cc_temp in
7635 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7636 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7637 \-*) ;;
7638 *) break;;
7639 esac
7640done
7641cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7642
7643
6437# Only perform the check for file, if the check method requires it 7644# Only perform the check for file, if the check method requires it
6438case $deplibs_check_method in 7645case $deplibs_check_method in
6439file_magic*) 7646file_magic*)
6440 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7647 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6441 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7648 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6442echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 7649echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6443if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7650if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6444 echo $ECHO_N "(cached) $ECHO_C" >&6 7651 echo $ECHO_N "(cached) $ECHO_C" >&6
6445else 7652else
@@ -6459,7 +7666,7 @@ else
6459 if test -n "$file_magic_test_file"; then 7666 if test -n "$file_magic_test_file"; then
6460 case $deplibs_check_method in 7667 case $deplibs_check_method in
6461 "file_magic "*) 7668 "file_magic "*)
6462 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 7669 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6463 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7670 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6464 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7671 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6465 $EGREP "$file_magic_regex" > /dev/null; then 7672 $EGREP "$file_magic_regex" > /dev/null; then
@@ -6491,17 +7698,17 @@ fi
6491 7698
6492MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7699MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6493if test -n "$MAGIC_CMD"; then 7700if test -n "$MAGIC_CMD"; then
6494 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7701 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6495echo "${ECHO_T}$MAGIC_CMD" >&6 7702echo "${ECHO_T}$MAGIC_CMD" >&6; }
6496else 7703else
6497 echo "$as_me:$LINENO: result: no" >&5 7704 { echo "$as_me:$LINENO: result: no" >&5
6498echo "${ECHO_T}no" >&6 7705echo "${ECHO_T}no" >&6; }
6499fi 7706fi
6500 7707
6501if test -z "$lt_cv_path_MAGIC_CMD"; then 7708if test -z "$lt_cv_path_MAGIC_CMD"; then
6502 if test -n "$ac_tool_prefix"; then 7709 if test -n "$ac_tool_prefix"; then
6503 echo "$as_me:$LINENO: checking for file" >&5 7710 { echo "$as_me:$LINENO: checking for file" >&5
6504echo $ECHO_N "checking for file... $ECHO_C" >&6 7711echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6505if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7712if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6 7713 echo $ECHO_N "(cached) $ECHO_C" >&6
6507else 7714else
@@ -6521,7 +7728,7 @@ else
6521 if test -n "$file_magic_test_file"; then 7728 if test -n "$file_magic_test_file"; then
6522 case $deplibs_check_method in 7729 case $deplibs_check_method in
6523 "file_magic "*) 7730 "file_magic "*)
6524 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 7731 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6525 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7732 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6526 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7733 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6527 $EGREP "$file_magic_regex" > /dev/null; then 7734 $EGREP "$file_magic_regex" > /dev/null; then
@@ -6553,11 +7760,11 @@ fi
6553 7760
6554MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7761MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6555if test -n "$MAGIC_CMD"; then 7762if test -n "$MAGIC_CMD"; then
6556 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7763 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6557echo "${ECHO_T}$MAGIC_CMD" >&6 7764echo "${ECHO_T}$MAGIC_CMD" >&6; }
6558else 7765else
6559 echo "$as_me:$LINENO: result: no" >&5 7766 { echo "$as_me:$LINENO: result: no" >&5
6560echo "${ECHO_T}no" >&6 7767echo "${ECHO_T}no" >&6; }
6561fi 7768fi
6562 7769
6563 else 7770 else
@@ -6572,21 +7779,21 @@ esac
6572enable_dlopen=no 7779enable_dlopen=no
6573enable_win32_dll=yes 7780enable_win32_dll=yes
6574 7781
6575# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 7782# Check whether --enable-libtool-lock was given.
6576if test "${enable_libtool_lock+set}" = set; then 7783if test "${enable_libtool_lock+set}" = set; then
6577 enableval="$enable_libtool_lock" 7784 enableval=$enable_libtool_lock;
7785fi
6578 7786
6579fi;
6580test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7787test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6581 7788
6582 7789
6583# Check whether --with-pic or --without-pic was given. 7790# Check whether --with-pic was given.
6584if test "${with_pic+set}" = set; then 7791if test "${with_pic+set}" = set; then
6585 withval="$with_pic" 7792 withval=$with_pic; pic_mode="$withval"
6586 pic_mode="$withval"
6587else 7793else
6588 pic_mode=default 7794 pic_mode=default
6589fi; 7795fi
7796
6590test -z "$pic_mode" && pic_mode=default 7797test -z "$pic_mode" && pic_mode=default
6591 7798
6592# Use C for the default configuration in the libtool script 7799# Use C for the default configuration in the libtool script
@@ -6616,68 +7823,25 @@ lt_simple_link_test_code='int main(){return(0);}\n'
6616# If no C compiler was specified, use CC. 7823# If no C compiler was specified, use CC.
6617LTCC=${LTCC-"$CC"} 7824LTCC=${LTCC-"$CC"}
6618 7825
7826# If no C compiler flags were specified, use CFLAGS.
7827LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7828
6619# Allow CC to be a program name with arguments. 7829# Allow CC to be a program name with arguments.
6620compiler=$CC 7830compiler=$CC
6621 7831
6622 7832
6623# 7833# save warnings/boilerplate of simple test code
6624# Check for any special shared library compilation flags. 7834ac_outfile=conftest.$ac_objext
6625# 7835printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6626lt_prog_cc_shlib= 7836eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6627if test "$GCC" = no; then 7837_lt_compiler_boilerplate=`cat conftest.err`
6628 case $host_os in 7838$rm conftest*
6629 sco3.2v5*)
6630 lt_prog_cc_shlib='-belf'
6631 ;;
6632 esac
6633fi
6634if test -n "$lt_prog_cc_shlib"; then
6635 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6636echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6637 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6638 else
6639 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6640echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6641 lt_cv_prog_cc_can_build_shared=no
6642 fi
6643fi
6644
6645
6646#
6647# Check to make sure the static flag actually works.
6648#
6649echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6650echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6651if test "${lt_prog_compiler_static_works+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6653else
6654 lt_prog_compiler_static_works=no
6655 save_LDFLAGS="$LDFLAGS"
6656 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6657 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6658 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6659 # The compiler can only warn and ignore the option if not recognized
6660 # So say no if there are warnings
6661 if test -s conftest.err; then
6662 # Append any errors to the config.log.
6663 cat conftest.err 1>&5
6664 else
6665 lt_prog_compiler_static_works=yes
6666 fi
6667 fi
6668 $rm conftest*
6669 LDFLAGS="$save_LDFLAGS"
6670
6671fi
6672echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6673echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6674
6675if test x"$lt_prog_compiler_static_works" = xyes; then
6676 :
6677else
6678 lt_prog_compiler_static=
6679fi
6680 7839
7840ac_outfile=conftest.$ac_objext
7841printf "$lt_simple_link_test_code" >conftest.$ac_ext
7842eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7843_lt_linker_boilerplate=`cat conftest.err`
7844$rm conftest*
6681 7845
6682 7846
6683 7847
@@ -6687,8 +7851,8 @@ if test "$GCC" = yes; then
6687 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7851 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6688 7852
6689 7853
6690echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7854{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6691echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 7855echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6692if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7856if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6 7857 echo $ECHO_N "(cached) $ECHO_C" >&6
6694else 7858else
@@ -6702,26 +7866,28 @@ else
6702 # with a dollar sign (not a hyphen), so the echo should work correctly. 7866 # with a dollar sign (not a hyphen), so the echo should work correctly.
6703 # The option is referenced via a variable to avoid confusing sed. 7867 # The option is referenced via a variable to avoid confusing sed.
6704 lt_compile=`echo "$ac_compile" | $SED \ 7868 lt_compile=`echo "$ac_compile" | $SED \
6705 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 7869 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7870 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6707 -e 's:$: $lt_compiler_flag:'` 7871 -e 's:$: $lt_compiler_flag:'`
6708 (eval echo "\"\$as_me:6708: $lt_compile\"" >&5) 7872 (eval echo "\"\$as_me:7872: $lt_compile\"" >&5)
6709 (eval "$lt_compile" 2>conftest.err) 7873 (eval "$lt_compile" 2>conftest.err)
6710 ac_status=$? 7874 ac_status=$?
6711 cat conftest.err >&5 7875 cat conftest.err >&5
6712 echo "$as_me:6712: \$? = $ac_status" >&5 7876 echo "$as_me:7876: \$? = $ac_status" >&5
6713 if (exit $ac_status) && test -s "$ac_outfile"; then 7877 if (exit $ac_status) && test -s "$ac_outfile"; then
6714 # The compiler can only warn and ignore the option if not recognized 7878 # The compiler can only warn and ignore the option if not recognized
6715 # So say no if there are warnings 7879 # So say no if there are warnings other than the usual output.
6716 if test ! -s conftest.err; then 7880 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7881 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7882 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6717 lt_cv_prog_compiler_rtti_exceptions=yes 7883 lt_cv_prog_compiler_rtti_exceptions=yes
6718 fi 7884 fi
6719 fi 7885 fi
6720 $rm conftest* 7886 $rm conftest*
6721 7887
6722fi 7888fi
6723echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7889{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6724echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 7890echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6725 7891
6726if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7892if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6727 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7893 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
@@ -6735,8 +7901,8 @@ lt_prog_compiler_wl=
6735lt_prog_compiler_pic= 7901lt_prog_compiler_pic=
6736lt_prog_compiler_static= 7902lt_prog_compiler_static=
6737 7903
6738echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7904{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6739echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 7905echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6740 7906
6741 if test "$GCC" = yes; then 7907 if test "$GCC" = yes; then
6742 lt_prog_compiler_wl='-Wl,' 7908 lt_prog_compiler_wl='-Wl,'
@@ -6774,6 +7940,11 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6774 lt_prog_compiler_pic='-fno-common' 7940 lt_prog_compiler_pic='-fno-common'
6775 ;; 7941 ;;
6776 7942
7943 interix3*)
7944 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7945 # Instead, we relocate shared libraries at runtime.
7946 ;;
7947
6777 msdosdjgpp*) 7948 msdosdjgpp*)
6778 # Just because we use GCC doesn't mean we suddenly get shared libraries 7949 # Just because we use GCC doesn't mean we suddenly get shared libraries
6779 # on systems that don't support them. 7950 # on systems that don't support them.
@@ -6790,7 +7961,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6790 hpux*) 7961 hpux*)
6791 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7962 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6792 # not for PA HP-UX. 7963 # not for PA HP-UX.
6793 case "$host_cpu" in 7964 case $host_cpu in
6794 hppa*64*|ia64*) 7965 hppa*64*|ia64*)
6795 # +Z the default 7966 # +Z the default
6796 ;; 7967 ;;
@@ -6816,6 +7987,16 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6816 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7987 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6817 fi 7988 fi
6818 ;; 7989 ;;
7990 darwin*)
7991 # PIC is the default on this platform
7992 # Common symbols not allowed in MH_DYLIB files
7993 case $cc_basename in
7994 xlc*)
7995 lt_prog_compiler_pic='-qnocommon'
7996 lt_prog_compiler_wl='-Wl,'
7997 ;;
7998 esac
7999 ;;
6819 8000
6820 mingw* | pw32* | os2*) 8001 mingw* | pw32* | os2*)
6821 # This hack is so that the source file can tell whether it is being 8002 # This hack is so that the source file can tell whether it is being
@@ -6827,7 +8008,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6827 lt_prog_compiler_wl='-Wl,' 8008 lt_prog_compiler_wl='-Wl,'
6828 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8009 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6829 # not for PA HP-UX. 8010 # not for PA HP-UX.
6830 case "$host_cpu" in 8011 case $host_cpu in
6831 hppa*64*|ia64*) 8012 hppa*64*|ia64*)
6832 # +Z the default 8013 # +Z the default
6833 ;; 8014 ;;
@@ -6850,13 +8031,20 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6850 lt_prog_compiler_static='-Bstatic' 8031 lt_prog_compiler_static='-Bstatic'
6851 ;; 8032 ;;
6852 8033
6853 linux*) 8034 linux* | k*bsd*-gnu)
6854 case $CC in 8035 case $cc_basename in
6855 icc* | ecc*) 8036 icc* | ecc*)
6856 lt_prog_compiler_wl='-Wl,' 8037 lt_prog_compiler_wl='-Wl,'
6857 lt_prog_compiler_pic='-KPIC' 8038 lt_prog_compiler_pic='-KPIC'
6858 lt_prog_compiler_static='-static' 8039 lt_prog_compiler_static='-static'
6859 ;; 8040 ;;
8041 pgcc* | pgf77* | pgf90* | pgf95*)
8042 # Portland Group compilers (*not* the Pentium gcc compiler,
8043 # which looks to be a dead project)
8044 lt_prog_compiler_wl='-Wl,'
8045 lt_prog_compiler_pic='-fpic'
8046 lt_prog_compiler_static='-Bstatic'
8047 ;;
6860 ccc*) 8048 ccc*)
6861 lt_prog_compiler_wl='-Wl,' 8049 lt_prog_compiler_wl='-Wl,'
6862 # All Alpha code is PIC. 8050 # All Alpha code is PIC.
@@ -6871,15 +8059,15 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6871 lt_prog_compiler_static='-non_shared' 8059 lt_prog_compiler_static='-non_shared'
6872 ;; 8060 ;;
6873 8061
6874 sco3.2v5*)
6875 lt_prog_compiler_pic='-Kpic'
6876 lt_prog_compiler_static='-dn'
6877 ;;
6878
6879 solaris*) 8062 solaris*)
6880 lt_prog_compiler_wl='-Wl,'
6881 lt_prog_compiler_pic='-KPIC' 8063 lt_prog_compiler_pic='-KPIC'
6882 lt_prog_compiler_static='-Bstatic' 8064 lt_prog_compiler_static='-Bstatic'
8065 case $cc_basename in
8066 f77* | f90* | f95*)
8067 lt_prog_compiler_wl='-Qoption ld ';;
8068 *)
8069 lt_prog_compiler_wl='-Wl,';;
8070 esac
6883 ;; 8071 ;;
6884 8072
6885 sunos4*) 8073 sunos4*)
@@ -6888,7 +8076,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6888 lt_prog_compiler_static='-Bstatic' 8076 lt_prog_compiler_static='-Bstatic'
6889 ;; 8077 ;;
6890 8078
6891 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8079 sysv4 | sysv4.2uw2* | sysv4.3*)
6892 lt_prog_compiler_wl='-Wl,' 8080 lt_prog_compiler_wl='-Wl,'
6893 lt_prog_compiler_pic='-KPIC' 8081 lt_prog_compiler_pic='-KPIC'
6894 lt_prog_compiler_static='-Bstatic' 8082 lt_prog_compiler_static='-Bstatic'
@@ -6901,6 +8089,17 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6901 fi 8089 fi
6902 ;; 8090 ;;
6903 8091
8092 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8093 lt_prog_compiler_wl='-Wl,'
8094 lt_prog_compiler_pic='-KPIC'
8095 lt_prog_compiler_static='-Bstatic'
8096 ;;
8097
8098 unicos*)
8099 lt_prog_compiler_wl='-Wl,'
8100 lt_prog_compiler_can_build_shared=no
8101 ;;
8102
6904 uts4*) 8103 uts4*)
6905 lt_prog_compiler_pic='-pic' 8104 lt_prog_compiler_pic='-pic'
6906 lt_prog_compiler_static='-Bstatic' 8105 lt_prog_compiler_static='-Bstatic'
@@ -6912,16 +8111,16 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6912 esac 8111 esac
6913 fi 8112 fi
6914 8113
6915echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8114{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6916echo "${ECHO_T}$lt_prog_compiler_pic" >&6 8115echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6917 8116
6918# 8117#
6919# Check to make sure the PIC flag actually works. 8118# Check to make sure the PIC flag actually works.
6920# 8119#
6921if test -n "$lt_prog_compiler_pic"; then 8120if test -n "$lt_prog_compiler_pic"; then
6922 8121
6923echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8122{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6924echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 8123echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6925if test "${lt_prog_compiler_pic_works+set}" = set; then 8124if test "${lt_prog_compiler_pic_works+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6 8125 echo $ECHO_N "(cached) $ECHO_C" >&6
6927else 8126else
@@ -6935,26 +8134,28 @@ else
6935 # with a dollar sign (not a hyphen), so the echo should work correctly. 8134 # with a dollar sign (not a hyphen), so the echo should work correctly.
6936 # The option is referenced via a variable to avoid confusing sed. 8135 # The option is referenced via a variable to avoid confusing sed.
6937 lt_compile=`echo "$ac_compile" | $SED \ 8136 lt_compile=`echo "$ac_compile" | $SED \
6938 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 8137 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8138 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6940 -e 's:$: $lt_compiler_flag:'` 8139 -e 's:$: $lt_compiler_flag:'`
6941 (eval echo "\"\$as_me:6941: $lt_compile\"" >&5) 8140 (eval echo "\"\$as_me:8140: $lt_compile\"" >&5)
6942 (eval "$lt_compile" 2>conftest.err) 8141 (eval "$lt_compile" 2>conftest.err)
6943 ac_status=$? 8142 ac_status=$?
6944 cat conftest.err >&5 8143 cat conftest.err >&5
6945 echo "$as_me:6945: \$? = $ac_status" >&5 8144 echo "$as_me:8144: \$? = $ac_status" >&5
6946 if (exit $ac_status) && test -s "$ac_outfile"; then 8145 if (exit $ac_status) && test -s "$ac_outfile"; then
6947 # The compiler can only warn and ignore the option if not recognized 8146 # The compiler can only warn and ignore the option if not recognized
6948 # So say no if there are warnings 8147 # So say no if there are warnings other than the usual output.
6949 if test ! -s conftest.err; then 8148 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8149 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8150 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6950 lt_prog_compiler_pic_works=yes 8151 lt_prog_compiler_pic_works=yes
6951 fi 8152 fi
6952 fi 8153 fi
6953 $rm conftest* 8154 $rm conftest*
6954 8155
6955fi 8156fi
6956echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 8157{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6957echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 8158echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6958 8159
6959if test x"$lt_prog_compiler_pic_works" = xyes; then 8160if test x"$lt_prog_compiler_pic_works" = xyes; then
6960 case $lt_prog_compiler_pic in 8161 case $lt_prog_compiler_pic in
@@ -6967,7 +8168,7 @@ else
6967fi 8168fi
6968 8169
6969fi 8170fi
6970case "$host_os" in 8171case $host_os in
6971 # For platforms which do not support PIC, -DPIC is meaningless: 8172 # For platforms which do not support PIC, -DPIC is meaningless:
6972 *djgpp*) 8173 *djgpp*)
6973 lt_prog_compiler_pic= 8174 lt_prog_compiler_pic=
@@ -6977,8 +8178,50 @@ case "$host_os" in
6977 ;; 8178 ;;
6978esac 8179esac
6979 8180
6980echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8181#
6981echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 8182# Check to make sure the static flag actually works.
8183#
8184wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8185{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8186echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8187if test "${lt_prog_compiler_static_works+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8189else
8190 lt_prog_compiler_static_works=no
8191 save_LDFLAGS="$LDFLAGS"
8192 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8193 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8194 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8195 # The linker can only warn and ignore the option if not recognized
8196 # So say no if there are warnings
8197 if test -s conftest.err; then
8198 # Append any errors to the config.log.
8199 cat conftest.err 1>&5
8200 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8202 if diff conftest.exp conftest.er2 >/dev/null; then
8203 lt_prog_compiler_static_works=yes
8204 fi
8205 else
8206 lt_prog_compiler_static_works=yes
8207 fi
8208 fi
8209 $rm conftest*
8210 LDFLAGS="$save_LDFLAGS"
8211
8212fi
8213{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8214echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8215
8216if test x"$lt_prog_compiler_static_works" = xyes; then
8217 :
8218else
8219 lt_prog_compiler_static=
8220fi
8221
8222
8223{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8224echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6982if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8225if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6 8226 echo $ECHO_N "(cached) $ECHO_C" >&6
6984else 8227else
@@ -6995,23 +8238,25 @@ else
6995 # Note that $ac_compile itself does not contain backslashes and begins 8238 # Note that $ac_compile itself does not contain backslashes and begins
6996 # with a dollar sign (not a hyphen), so the echo should work correctly. 8239 # with a dollar sign (not a hyphen), so the echo should work correctly.
6997 lt_compile=`echo "$ac_compile" | $SED \ 8240 lt_compile=`echo "$ac_compile" | $SED \
6998 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 8241 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6999 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7000 -e 's:$: $lt_compiler_flag:'` 8243 -e 's:$: $lt_compiler_flag:'`
7001 (eval echo "\"\$as_me:7001: $lt_compile\"" >&5) 8244 (eval echo "\"\$as_me:8244: $lt_compile\"" >&5)
7002 (eval "$lt_compile" 2>out/conftest.err) 8245 (eval "$lt_compile" 2>out/conftest.err)
7003 ac_status=$? 8246 ac_status=$?
7004 cat out/conftest.err >&5 8247 cat out/conftest.err >&5
7005 echo "$as_me:7005: \$? = $ac_status" >&5 8248 echo "$as_me:8248: \$? = $ac_status" >&5
7006 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8249 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7007 then 8250 then
7008 # The compiler can only warn and ignore the option if not recognized 8251 # The compiler can only warn and ignore the option if not recognized
7009 # So say no if there are warnings 8252 # So say no if there are warnings
7010 if test ! -s out/conftest.err; then 8253 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8254 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8255 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7011 lt_cv_prog_compiler_c_o=yes 8256 lt_cv_prog_compiler_c_o=yes
7012 fi 8257 fi
7013 fi 8258 fi
7014 chmod u+w . 8259 chmod u+w . 2>&5
7015 $rm conftest* 8260 $rm conftest*
7016 # SGI C++ compiler will create directory out/ii_files/ for 8261 # SGI C++ compiler will create directory out/ii_files/ for
7017 # template instantiation 8262 # template instantiation
@@ -7022,23 +8267,23 @@ else
7022 $rm conftest* 8267 $rm conftest*
7023 8268
7024fi 8269fi
7025echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8270{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7026echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 8271echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7027 8272
7028 8273
7029hard_links="nottested" 8274hard_links="nottested"
7030if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8275if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7031 # do not overwrite the value of need_locks provided by the user 8276 # do not overwrite the value of need_locks provided by the user
7032 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8277 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7033echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 8278echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7034 hard_links=yes 8279 hard_links=yes
7035 $rm conftest* 8280 $rm conftest*
7036 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8281 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7037 touch conftest.a 8282 touch conftest.a
7038 ln conftest.a conftest.b 2>&5 || hard_links=no 8283 ln conftest.a conftest.b 2>&5 || hard_links=no
7039 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8284 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7040 echo "$as_me:$LINENO: result: $hard_links" >&5 8285 { echo "$as_me:$LINENO: result: $hard_links" >&5
7041echo "${ECHO_T}$hard_links" >&6 8286echo "${ECHO_T}$hard_links" >&6; }
7042 if test "$hard_links" = no; then 8287 if test "$hard_links" = no; then
7043 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8288 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7044echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8289echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
@@ -7048,8 +8293,8 @@ else
7048 need_locks=no 8293 need_locks=no
7049fi 8294fi
7050 8295
7051echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8296{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7052echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 8297echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7053 8298
7054 runpath_var= 8299 runpath_var=
7055 allow_undefined_flag= 8300 allow_undefined_flag=
@@ -7087,6 +8332,16 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
7087 # rely on this symbol name, it's probably fine to never include it in 8332 # rely on this symbol name, it's probably fine to never include it in
7088 # preloaded symbol tables. 8333 # preloaded symbol tables.
7089 extract_expsyms_cmds= 8334 extract_expsyms_cmds=
8335 # Just being paranoid about ensuring that cc_basename is set.
8336 for cc_temp in $compiler""; do
8337 case $cc_temp in
8338 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8339 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8340 \-*) ;;
8341 *) break;;
8342 esac
8343done
8344cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7090 8345
7091 case $host_os in 8346 case $host_os in
7092 cygwin* | mingw* | pw32*) 8347 cygwin* | mingw* | pw32*)
@@ -7097,6 +8352,10 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
7097 with_gnu_ld=no 8352 with_gnu_ld=no
7098 fi 8353 fi
7099 ;; 8354 ;;
8355 interix*)
8356 # we just hope/assume this is gcc and not c89 (= MSVC++)
8357 with_gnu_ld=yes
8358 ;;
7100 openbsd*) 8359 openbsd*)
7101 with_gnu_ld=no 8360 with_gnu_ld=no
7102 ;; 8361 ;;
@@ -7107,6 +8366,27 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
7107 # If archive_cmds runs LD, not CC, wlarc should be empty 8366 # If archive_cmds runs LD, not CC, wlarc should be empty
7108 wlarc='${wl}' 8367 wlarc='${wl}'
7109 8368
8369 # Set some defaults for GNU ld with shared library support. These
8370 # are reset later if shared libraries are not supported. Putting them
8371 # here allows them to be overridden if necessary.
8372 runpath_var=LD_RUN_PATH
8373 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8374 export_dynamic_flag_spec='${wl}--export-dynamic'
8375 # ancient GNU ld didn't support --whole-archive et. al.
8376 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8377 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8378 else
8379 whole_archive_flag_spec=
8380 fi
8381 supports_anon_versioning=no
8382 case `$LD -v 2>/dev/null` in
8383 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8384 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8385 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8386 *\ 2.11.*) ;; # other 2.11 versions
8387 *) supports_anon_versioning=yes ;;
8388 esac
8389
7110 # See if GNU ld supports shared libraries. 8390 # See if GNU ld supports shared libraries.
7111 case $host_os in 8391 case $host_os in
7112 aix3* | aix4* | aix5*) 8392 aix3* | aix4* | aix5*)
@@ -7157,10 +8437,10 @@ EOF
7157 allow_undefined_flag=unsupported 8437 allow_undefined_flag=unsupported
7158 always_export_symbols=no 8438 always_export_symbols=no
7159 enable_shared_with_static_runtimes=yes 8439 enable_shared_with_static_runtimes=yes
7160 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 8440 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7161 8441
7162 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8442 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7163 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 8443 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7164 # If the export-symbols file already is a .def file (1st line 8444 # If the export-symbols file already is a .def file (1st line
7165 # is EXPORTS), use it as is; otherwise, prepend... 8445 # is EXPORTS), use it as is; otherwise, prepend...
7166 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8446 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
@@ -7169,13 +8449,60 @@ EOF
7169 echo EXPORTS > $output_objdir/$soname.def; 8449 echo EXPORTS > $output_objdir/$soname.def;
7170 cat $export_symbols >> $output_objdir/$soname.def; 8450 cat $export_symbols >> $output_objdir/$soname.def;
7171 fi~ 8451 fi~
7172 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 8452 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8453 else
8454 ld_shlibs=no
8455 fi
8456 ;;
8457
8458 interix3*)
8459 hardcode_direct=no
8460 hardcode_shlibpath_var=no
8461 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8462 export_dynamic_flag_spec='${wl}-E'
8463 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8464 # Instead, shared libraries are loaded at an image base (0x10000000 by
8465 # default) and relocated if they conflict, which is a slow very memory
8466 # consuming and fragmenting process. To avoid this, we pick a random,
8467 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8468 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8469 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8470 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8471 ;;
8472
8473 linux* | k*bsd*-gnu)
8474 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8475 tmp_addflag=
8476 case $cc_basename,$host_cpu in
8477 pgcc*) # Portland Group C compiler
8478 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8479 tmp_addflag=' $pic_flag'
8480 ;;
8481 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8482 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8483 tmp_addflag=' $pic_flag -Mnomain' ;;
8484 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8485 tmp_addflag=' -i_dynamic' ;;
8486 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8487 tmp_addflag=' -i_dynamic -nofor_main' ;;
8488 ifc* | ifort*) # Intel Fortran compiler
8489 tmp_addflag=' -nofor_main' ;;
8490 esac
8491 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8492
8493 if test $supports_anon_versioning = yes; then
8494 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8495 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8496 $echo "local: *; };" >> $output_objdir/$libname.ver~
8497 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8498 fi
8499 link_all_deplibs=no
7173 else 8500 else
7174 ld_shlibs=no 8501 ld_shlibs=no
7175 fi 8502 fi
7176 ;; 8503 ;;
7177 8504
7178 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 8505 netbsd* | netbsdelf*-gnu)
7179 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8506 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7180 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8507 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7181 wlarc= 8508 wlarc=
@@ -7185,7 +8512,7 @@ EOF
7185 fi 8512 fi
7186 ;; 8513 ;;
7187 8514
7188 solaris* | sysv5*) 8515 solaris*)
7189 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8516 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7190 ld_shlibs=no 8517 ld_shlibs=no
7191 cat <<EOF 1>&2 8518 cat <<EOF 1>&2
@@ -7206,6 +8533,33 @@ EOF
7206 fi 8533 fi
7207 ;; 8534 ;;
7208 8535
8536 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8537 case `$LD -v 2>&1` in
8538 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8539 ld_shlibs=no
8540 cat <<_LT_EOF 1>&2
8541
8542*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8543*** reliably create shared libraries on SCO systems. Therefore, libtool
8544*** is disabling shared libraries support. We urge you to upgrade GNU
8545*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8546*** your PATH or compiler configuration so that the native linker is
8547*** used, and then restart.
8548
8549_LT_EOF
8550 ;;
8551 *)
8552 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8553 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8554 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8555 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8556 else
8557 ld_shlibs=no
8558 fi
8559 ;;
8560 esac
8561 ;;
8562
7209 sunos4*) 8563 sunos4*)
7210 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8564 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7211 wlarc= 8565 wlarc=
@@ -7213,32 +8567,6 @@ EOF
7213 hardcode_shlibpath_var=no 8567 hardcode_shlibpath_var=no
7214 ;; 8568 ;;
7215 8569
7216 linux*)
7217 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7218 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7219 archive_cmds="$tmp_archive_cmds"
7220 supports_anon_versioning=no
7221 case `$LD -v 2>/dev/null` in
7222 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7223 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7224 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7225 *\ 2.11.*) ;; # other 2.11 versions
7226 *) supports_anon_versioning=yes ;;
7227 esac
7228 if test $supports_anon_versioning = yes; then
7229 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7230cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7231$echo "local: *; };" >> $output_objdir/$libname.ver~
7232 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7233 else
7234 archive_expsym_cmds="$tmp_archive_cmds"
7235 fi
7236 link_all_deplibs=no
7237 else
7238 ld_shlibs=no
7239 fi
7240 ;;
7241
7242 *) 8570 *)
7243 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8571 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8572 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
@@ -7249,16 +8577,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
7249 ;; 8577 ;;
7250 esac 8578 esac
7251 8579
7252 if test "$ld_shlibs" = yes; then 8580 if test "$ld_shlibs" = no; then
7253 runpath_var=LD_RUN_PATH 8581 runpath_var=
7254 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8582 hardcode_libdir_flag_spec=
7255 export_dynamic_flag_spec='${wl}--export-dynamic' 8583 export_dynamic_flag_spec=
7256 # ancient GNU ld didn't support --whole-archive et. al. 8584 whole_archive_flag_spec=
7257 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7258 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7259 else
7260 whole_archive_flag_spec=
7261 fi
7262 fi 8585 fi
7263 else 8586 else
7264 # PORTME fill in a description of your system's linker (not GNU ld) 8587 # PORTME fill in a description of your system's linker (not GNU ld)
@@ -7270,7 +8593,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
7270 # Note: this linker hardcodes the directories in LIBPATH if there 8593 # Note: this linker hardcodes the directories in LIBPATH if there
7271 # are no directories specified by -L. 8594 # are no directories specified by -L.
7272 hardcode_minus_L=yes 8595 hardcode_minus_L=yes
7273 if test "$GCC" = yes && test -z "$link_static_flag"; then 8596 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7274 # Neither direct hardcoding nor static linking is supported with a 8597 # Neither direct hardcoding nor static linking is supported with a
7275 # broken collect2. 8598 # broken collect2.
7276 hardcode_direct=unsupported 8599 hardcode_direct=unsupported
@@ -7304,6 +8627,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
7304 break 8627 break
7305 fi 8628 fi
7306 done 8629 done
8630 ;;
7307 esac 8631 esac
7308 8632
7309 exp_sym_flag='-bexport' 8633 exp_sym_flag='-bexport'
@@ -7322,7 +8646,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
7322 link_all_deplibs=yes 8646 link_all_deplibs=yes
7323 8647
7324 if test "$GCC" = yes; then 8648 if test "$GCC" = yes; then
7325 case $host_os in aix4.012|aix4.012.*) 8649 case $host_os in aix4.[012]|aix4.[012].*)
7326 # We only want to do this on AIX 4.2 and lower, the check 8650 # We only want to do this on AIX 4.2 and lower, the check
7327 # below for broken collect2 doesn't work under 4.3+ 8651 # below for broken collect2 doesn't work under 4.3+
7328 collect2name=`${CC} -print-prog-name=collect2` 8652 collect2name=`${CC} -print-prog-name=collect2`
@@ -7341,8 +8665,12 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
7341 hardcode_libdir_flag_spec='-L$libdir' 8665 hardcode_libdir_flag_spec='-L$libdir'
7342 hardcode_libdir_separator= 8666 hardcode_libdir_separator=
7343 fi 8667 fi
8668 ;;
7344 esac 8669 esac
7345 shared_flag='-shared' 8670 shared_flag='-shared'
8671 if test "$aix_use_runtimelinking" = yes; then
8672 shared_flag="$shared_flag "'${wl}-G'
8673 fi
7346 else 8674 else
7347 # not using gcc 8675 # not using gcc
7348 if test "$host_cpu" = ia64; then 8676 if test "$host_cpu" = ia64; then
@@ -7350,11 +8678,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
7350 # chokes on -Wl,-G. The following line is correct: 8678 # chokes on -Wl,-G. The following line is correct:
7351 shared_flag='-G' 8679 shared_flag='-G'
7352 else 8680 else
7353 if test "$aix_use_runtimelinking" = yes; then 8681 if test "$aix_use_runtimelinking" = yes; then
7354 shared_flag='${wl}-G' 8682 shared_flag='${wl}-G'
7355 else 8683 else
7356 shared_flag='${wl}-bM:SRE' 8684 shared_flag='${wl}-bM:SRE'
7357 fi 8685 fi
7358 fi 8686 fi
7359 fi 8687 fi
7360 8688
@@ -7382,23 +8710,36 @@ main ()
7382} 8710}
7383_ACEOF 8711_ACEOF
7384rm -f conftest.$ac_objext conftest$ac_exeext 8712rm -f conftest.$ac_objext conftest$ac_exeext
7385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8713if { (ac_try="$ac_link"
7386 (eval $ac_link) 2>conftest.er1 8714case "(($ac_try" in
8715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716 *) ac_try_echo=$ac_try;;
8717esac
8718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8719 (eval "$ac_link") 2>conftest.er1
7387 ac_status=$? 8720 ac_status=$?
7388 grep -v '^ *+' conftest.er1 >conftest.err 8721 grep -v '^ *+' conftest.er1 >conftest.err
7389 rm -f conftest.er1 8722 rm -f conftest.er1
7390 cat conftest.err >&5 8723 cat conftest.err >&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); } && 8725 (exit $ac_status); } &&
7393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8727 { (case "(($ac_try" in
7395 (eval $ac_try) 2>&5 8728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729 *) ac_try_echo=$ac_try;;
8730esac
8731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732 (eval "$ac_try") 2>&5
7396 ac_status=$? 8733 ac_status=$?
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); }; } && 8735 (exit $ac_status); }; } &&
7399 { ac_try='test -s conftest$ac_exeext' 8736 { ac_try='test -s conftest$ac_exeext'
7400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8737 { (case "(($ac_try" in
7401 (eval $ac_try) 2>&5 8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8740esac
8741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742 (eval "$ac_try") 2>&5
7402 ac_status=$? 8743 ac_status=$?
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); }; }; then 8745 (exit $ac_status); }; }; then
@@ -7412,18 +8753,20 @@ else
7412 echo "$as_me: failed program was:" >&5 8753 echo "$as_me: failed program was:" >&5
7413sed 's/^/| /' conftest.$ac_ext >&5 8754sed 's/^/| /' conftest.$ac_ext >&5
7414 8755
8756
7415fi 8757fi
7416rm -f conftest.err conftest.$ac_objext \ 8758
8759rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7417 conftest$ac_exeext conftest.$ac_ext 8760 conftest$ac_exeext conftest.$ac_ext
7418if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8761if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7419 8762
7420 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8763 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7421 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8764 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7422 else 8765 else
7423 if test "$host_cpu" = ia64; then 8766 if test "$host_cpu" = ia64; then
7424 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8767 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7425 allow_undefined_flag="-z nodefs" 8768 allow_undefined_flag="-z nodefs"
7426 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 8769 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7427 else 8770 else
7428 # Determine the default libpath from the value encoded in an empty executable. 8771 # Determine the default libpath from the value encoded in an empty executable.
7429 cat >conftest.$ac_ext <<_ACEOF 8772 cat >conftest.$ac_ext <<_ACEOF
@@ -7442,23 +8785,36 @@ main ()
7442} 8785}
7443_ACEOF 8786_ACEOF
7444rm -f conftest.$ac_objext conftest$ac_exeext 8787rm -f conftest.$ac_objext conftest$ac_exeext
7445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8788if { (ac_try="$ac_link"
7446 (eval $ac_link) 2>conftest.er1 8789case "(($ac_try" in
8790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8791 *) ac_try_echo=$ac_try;;
8792esac
8793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8794 (eval "$ac_link") 2>conftest.er1
7447 ac_status=$? 8795 ac_status=$?
7448 grep -v '^ *+' conftest.er1 >conftest.err 8796 grep -v '^ *+' conftest.er1 >conftest.err
7449 rm -f conftest.er1 8797 rm -f conftest.er1
7450 cat conftest.err >&5 8798 cat conftest.err >&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } && 8800 (exit $ac_status); } &&
7453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8802 { (case "(($ac_try" in
7455 (eval $ac_try) 2>&5 8803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8804 *) ac_try_echo=$ac_try;;
8805esac
8806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8807 (eval "$ac_try") 2>&5
7456 ac_status=$? 8808 ac_status=$?
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; } && 8810 (exit $ac_status); }; } &&
7459 { ac_try='test -s conftest$ac_exeext' 8811 { ac_try='test -s conftest$ac_exeext'
7460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8812 { (case "(($ac_try" in
7461 (eval $ac_try) 2>&5 8813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8814 *) ac_try_echo=$ac_try;;
8815esac
8816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8817 (eval "$ac_try") 2>&5
7462 ac_status=$? 8818 ac_status=$?
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); }; }; then 8820 (exit $ac_status); }; }; then
@@ -7472,8 +8828,10 @@ else
7472 echo "$as_me: failed program was:" >&5 8828 echo "$as_me: failed program was:" >&5
7473sed 's/^/| /' conftest.$ac_ext >&5 8829sed 's/^/| /' conftest.$ac_ext >&5
7474 8830
8831
7475fi 8832fi
7476rm -f conftest.err conftest.$ac_objext \ 8833
8834rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7477 conftest$ac_exeext conftest.$ac_ext 8835 conftest$ac_exeext conftest.$ac_ext
7478if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8836if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7479 8837
@@ -7482,13 +8840,11 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7482 # -berok will link without error, but may produce a broken library. 8840 # -berok will link without error, but may produce a broken library.
7483 no_undefined_flag=' ${wl}-bernotok' 8841 no_undefined_flag=' ${wl}-bernotok'
7484 allow_undefined_flag=' ${wl}-berok' 8842 allow_undefined_flag=' ${wl}-berok'
7485 # -bexpall does not export symbols beginning with underscore (_)
7486 always_export_symbols=yes
7487 # Exported symbols can be pulled into shared objects from archives 8843 # Exported symbols can be pulled into shared objects from archives
7488 whole_archive_flag_spec=' ' 8844 whole_archive_flag_spec='$convenience'
7489 archive_cmds_need_lc=yes 8845 archive_cmds_need_lc=yes
7490 # This is similar to how AIX traditionally builds it's shared libraries. 8846 # This is similar to how AIX traditionally builds its shared libraries.
7491 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 8847 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7492 fi 8848 fi
7493 fi 8849 fi
7494 ;; 8850 ;;
@@ -7501,7 +8857,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7501 ld_shlibs=no 8857 ld_shlibs=no
7502 ;; 8858 ;;
7503 8859
7504 bsdi4*) 8860 bsdi[45]*)
7505 export_dynamic_flag_spec=-rdynamic 8861 export_dynamic_flag_spec=-rdynamic
7506 ;; 8862 ;;
7507 8863
@@ -7527,52 +8883,52 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7527 ;; 8883 ;;
7528 8884
7529 darwin* | rhapsody*) 8885 darwin* | rhapsody*)
7530 if test "$GXX" = yes ; then 8886 case $host_os in
7531 archive_cmds_need_lc=no 8887 rhapsody* | darwin1.[012])
7532 case "$host_os" in 8888 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7533 rhapsody* | darwin1.[012]) 8889 ;;
7534 allow_undefined_flag='-undefined suppress' 8890 *) # Darwin 1.3 on
7535 ;; 8891 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7536 *) # Darwin 1.3 on 8892 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7537 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8893 else
7538 allow_undefined_flag='-flat_namespace -undefined suppress' 8894 case ${MACOSX_DEPLOYMENT_TARGET} in
7539 else 8895 10.[012])
7540 case ${MACOSX_DEPLOYMENT_TARGET} in 8896 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7541 10.[012]) 8897 ;;
7542 allow_undefined_flag='-flat_namespace -undefined suppress' 8898 10.*)
7543 ;; 8899 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7544 10.*) 8900 ;;
7545 allow_undefined_flag='-undefined dynamic_lookup' 8901 esac
7546 ;; 8902 fi
7547 esac 8903 ;;
7548 fi
7549 ;;
7550 esac 8904 esac
7551 lt_int_apple_cc_single_mod=no 8905 archive_cmds_need_lc=no
7552 output_verbose_link_cmd='echo'
7553 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7554 lt_int_apple_cc_single_mod=yes
7555 fi
7556 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7557 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7558 else
7559 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7560 fi
7561 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7562 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7563 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7564 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7565 else
7566 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7567 fi
7568 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7569 hardcode_direct=no 8906 hardcode_direct=no
7570 hardcode_automatic=yes 8907 hardcode_automatic=yes
7571 hardcode_shlibpath_var=unsupported 8908 hardcode_shlibpath_var=unsupported
7572 whole_archive_flag_spec='-all_load $convenience' 8909 whole_archive_flag_spec=''
7573 link_all_deplibs=yes 8910 link_all_deplibs=yes
8911 if test "$GCC" = yes ; then
8912 output_verbose_link_cmd='echo'
8913 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8914 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8915 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8916 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8917 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7574 else 8918 else
7575 ld_shlibs=no 8919 case $cc_basename in
8920 xlc*)
8921 output_verbose_link_cmd='echo'
8922 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8923 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8924 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8925 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8926 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8927 ;;
8928 *)
8929 ld_shlibs=no
8930 ;;
8931 esac
7576 fi 8932 fi
7577 ;; 8933 ;;
7578 8934
@@ -7606,7 +8962,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7606 ;; 8962 ;;
7607 8963
7608 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8964 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7609 freebsd* | kfreebsd*-gnu) 8965 freebsd* | dragonfly*)
7610 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8966 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7611 hardcode_libdir_flag_spec='-R$libdir' 8967 hardcode_libdir_flag_spec='-R$libdir'
7612 hardcode_direct=yes 8968 hardcode_direct=yes
@@ -7629,47 +8985,62 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7629 export_dynamic_flag_spec='${wl}-E' 8985 export_dynamic_flag_spec='${wl}-E'
7630 ;; 8986 ;;
7631 8987
7632 hpux10* | hpux11*) 8988 hpux10*)
7633 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8989 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7634 case "$host_cpu" in 8990 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7635 hppa*64*|ia64*) 8991 else
8992 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8993 fi
8994 if test "$with_gnu_ld" = no; then
8995 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8996 hardcode_libdir_separator=:
8997
8998 hardcode_direct=yes
8999 export_dynamic_flag_spec='${wl}-E'
9000
9001 # hardcode_minus_L: Not really in the search PATH,
9002 # but as the default location of the library.
9003 hardcode_minus_L=yes
9004 fi
9005 ;;
9006
9007 hpux11*)
9008 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9009 case $host_cpu in
9010 hppa*64*)
7636 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9011 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7637 ;; 9012 ;;
9013 ia64*)
9014 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9015 ;;
7638 *) 9016 *)
7639 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9017 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7640 ;; 9018 ;;
7641 esac 9019 esac
7642 else 9020 else
7643 case "$host_cpu" in 9021 case $host_cpu in
7644 hppa*64*|ia64*) 9022 hppa*64*)
7645 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 9023 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9024 ;;
9025 ia64*)
9026 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7646 ;; 9027 ;;
7647 *) 9028 *)
7648 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9029 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7649 ;; 9030 ;;
7650 esac 9031 esac
7651 fi 9032 fi
7652 if test "$with_gnu_ld" = no; then 9033 if test "$with_gnu_ld" = no; then
7653 case "$host_cpu" in 9034 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7654 hppa*64*) 9035 hardcode_libdir_separator=:
7655 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9036
9037 case $host_cpu in
9038 hppa*64*|ia64*)
7656 hardcode_libdir_flag_spec_ld='+b $libdir' 9039 hardcode_libdir_flag_spec_ld='+b $libdir'
7657 hardcode_libdir_separator=:
7658 hardcode_direct=no
7659 hardcode_shlibpath_var=no
7660 ;;
7661 ia64*)
7662 hardcode_libdir_flag_spec='-L$libdir'
7663 hardcode_direct=no 9040 hardcode_direct=no
7664 hardcode_shlibpath_var=no 9041 hardcode_shlibpath_var=no
7665
7666 # hardcode_minus_L: Not really in the search PATH,
7667 # but as the default location of the library.
7668 hardcode_minus_L=yes
7669 ;; 9042 ;;
7670 *) 9043 *)
7671 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7672 hardcode_libdir_separator=:
7673 hardcode_direct=yes 9044 hardcode_direct=yes
7674 export_dynamic_flag_spec='${wl}-E' 9045 export_dynamic_flag_spec='${wl}-E'
7675 9046
@@ -7693,7 +9064,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7693 link_all_deplibs=yes 9064 link_all_deplibs=yes
7694 ;; 9065 ;;
7695 9066
7696 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 9067 netbsd* | netbsdelf*-gnu)
7697 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9068 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7698 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9069 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7699 else 9070 else
@@ -7717,6 +9088,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7717 hardcode_shlibpath_var=no 9088 hardcode_shlibpath_var=no
7718 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9089 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7719 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9090 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9091 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7720 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9092 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7721 export_dynamic_flag_spec='${wl}-E' 9093 export_dynamic_flag_spec='${wl}-E'
7722 else 9094 else
@@ -7762,7 +9134,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7762 allow_undefined_flag=' -expect_unresolved \*' 9134 allow_undefined_flag=' -expect_unresolved \*'
7763 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 9135 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7764 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 9136 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7765 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 9137 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7766 9138
7767 # Both c and cxx compiler support -rpath directly 9139 # Both c and cxx compiler support -rpath directly
7768 hardcode_libdir_flag_spec='-rpath $libdir' 9140 hardcode_libdir_flag_spec='-rpath $libdir'
@@ -7770,21 +9142,15 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7770 hardcode_libdir_separator=: 9142 hardcode_libdir_separator=:
7771 ;; 9143 ;;
7772 9144
7773 sco3.2v5*)
7774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7775 hardcode_shlibpath_var=no
7776 export_dynamic_flag_spec='${wl}-Bexport'
7777 runpath_var=LD_RUN_PATH
7778 hardcode_runpath_var=yes
7779 ;;
7780
7781 solaris*) 9145 solaris*)
7782 no_undefined_flag=' -z text' 9146 no_undefined_flag=' -z text'
7783 if test "$GCC" = yes; then 9147 if test "$GCC" = yes; then
9148 wlarc='${wl}'
7784 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9149 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7785 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9150 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7786 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 9151 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7787 else 9152 else
9153 wlarc=''
7788 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9154 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7789 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9155 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7790 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 9156 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
@@ -7793,8 +9159,18 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7793 hardcode_shlibpath_var=no 9159 hardcode_shlibpath_var=no
7794 case $host_os in 9160 case $host_os in
7795 solaris2.[0-5] | solaris2.[0-5].*) ;; 9161 solaris2.[0-5] | solaris2.[0-5].*) ;;
7796 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 9162 *)
7797 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 9163 # The compiler driver will combine linker options so we
9164 # cannot just pass the convience library names through
9165 # without $wl, iff we do not link with $LD.
9166 # Luckily, gcc supports the same syntax we need for Sun Studio.
9167 # Supported since Solaris 2.6 (maybe 2.5.1?)
9168 case $wlarc in
9169 '')
9170 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9171 *)
9172 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9173 esac ;;
7798 esac 9174 esac
7799 link_all_deplibs=yes 9175 link_all_deplibs=yes
7800 ;; 9176 ;;
@@ -7851,36 +9227,45 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7851 fi 9227 fi
7852 ;; 9228 ;;
7853 9229
7854 sysv4.2uw2*) 9230 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7855 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9231 no_undefined_flag='${wl}-z,text'
7856 hardcode_direct=yes 9232 archive_cmds_need_lc=no
7857 hardcode_minus_L=no
7858 hardcode_shlibpath_var=no 9233 hardcode_shlibpath_var=no
7859 hardcode_runpath_var=yes 9234 runpath_var='LD_RUN_PATH'
7860 runpath_var=LD_RUN_PATH
7861 ;;
7862 9235
7863 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7864 no_undefined_flag='${wl}-z ${wl}text'
7865 if test "$GCC" = yes; then 9236 if test "$GCC" = yes; then
7866 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9237 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9238 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7867 else 9239 else
7868 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9240 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9241 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7869 fi 9242 fi
7870 runpath_var='LD_RUN_PATH'
7871 hardcode_shlibpath_var=no
7872 ;; 9243 ;;
7873 9244
7874 sysv5*) 9245 sysv5* | sco3.2v5* | sco5v6*)
7875 no_undefined_flag=' -z text' 9246 # Note: We can NOT use -z defs as we might desire, because we do not
7876 # $CC -shared without GNU ld will not create a library from C++ 9247 # link with -lc, and that would cause any symbols used from libc to
7877 # object files and a static libstdc++, better avoid it by now 9248 # always be unresolved, which means just about no library would
7878 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9249 # ever link correctly. If we're not using GNU ld we use -z text
7879 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9250 # though, which does catch some bad symbols but isn't as heavy-handed
7880 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 9251 # as -z defs.
7881 hardcode_libdir_flag_spec= 9252 no_undefined_flag='${wl}-z,text'
9253 allow_undefined_flag='${wl}-z,nodefs'
9254 archive_cmds_need_lc=no
7882 hardcode_shlibpath_var=no 9255 hardcode_shlibpath_var=no
9256 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9257 hardcode_libdir_separator=':'
9258 link_all_deplibs=yes
9259 export_dynamic_flag_spec='${wl}-Bexport'
7883 runpath_var='LD_RUN_PATH' 9260 runpath_var='LD_RUN_PATH'
9261
9262 if test "$GCC" = yes; then
9263 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9264 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9265 else
9266 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9267 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9268 fi
7884 ;; 9269 ;;
7885 9270
7886 uts4*) 9271 uts4*)
@@ -7895,15 +9280,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7895 esac 9280 esac
7896 fi 9281 fi
7897 9282
7898echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9283{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7899echo "${ECHO_T}$ld_shlibs" >&6 9284echo "${ECHO_T}$ld_shlibs" >&6; }
7900test "$ld_shlibs" = no && can_build_shared=no 9285test "$ld_shlibs" = no && can_build_shared=no
7901 9286
7902variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7903if test "$GCC" = yes; then
7904 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7905fi
7906
7907# 9287#
7908# Do we need to explicitly link libc? 9288# Do we need to explicitly link libc?
7909# 9289#
@@ -7921,8 +9301,8 @@ x|xyes)
7921 # Test whether the compiler implicitly links with -lc since on some 9301 # Test whether the compiler implicitly links with -lc since on some
7922 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9302 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7923 # to ld, don't add -lc before -lgcc. 9303 # to ld, don't add -lc before -lgcc.
7924 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9304 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7925echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 9305echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7926 $rm conftest* 9306 $rm conftest*
7927 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9307 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7928 9308
@@ -7936,6 +9316,7 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
7936 libobjs=conftest.$ac_objext 9316 libobjs=conftest.$ac_objext
7937 deplibs= 9317 deplibs=
7938 wl=$lt_prog_compiler_wl 9318 wl=$lt_prog_compiler_wl
9319 pic_flag=$lt_prog_compiler_pic
7939 compiler_flags=-v 9320 compiler_flags=-v
7940 linker_flags=-v 9321 linker_flags=-v
7941 verstring= 9322 verstring=
@@ -7958,16 +9339,16 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
7958 cat conftest.err 1>&5 9339 cat conftest.err 1>&5
7959 fi 9340 fi
7960 $rm conftest* 9341 $rm conftest*
7961 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9342 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7962echo "${ECHO_T}$archive_cmds_need_lc" >&6 9343echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7963 ;; 9344 ;;
7964 esac 9345 esac
7965 fi 9346 fi
7966 ;; 9347 ;;
7967esac 9348esac
7968 9349
7969echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9350{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7970echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 9351echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7971library_names_spec= 9352library_names_spec=
7972libname_spec='lib$name' 9353libname_spec='lib$name'
7973soname_spec= 9354soname_spec=
@@ -8068,7 +9449,7 @@ beos*)
8068 shlibpath_var=LIBRARY_PATH 9449 shlibpath_var=LIBRARY_PATH
8069 ;; 9450 ;;
8070 9451
8071bsdi4*) 9452bsdi[45]*)
8072 version_type=linux 9453 version_type=linux
8073 need_version=no 9454 need_version=no
8074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -8096,7 +9477,8 @@ cygwin* | mingw* | pw32*)
8096 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9477 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8097 dldir=$destdir/`dirname \$dlpath`~ 9478 dldir=$destdir/`dirname \$dlpath`~
8098 test -d \$dldir || mkdir -p \$dldir~ 9479 test -d \$dldir || mkdir -p \$dldir~
8099 $install_prog $dir/$dlname \$dldir/$dlname' 9480 $install_prog $dir/$dlname \$dldir/$dlname~
9481 chmod a+x \$dldir/$dlname'
8100 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9482 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8101 dlpath=$dir/\$dldll~ 9483 dlpath=$dir/\$dldll~
8102 $rm \$dlpath' 9484 $rm \$dlpath'
@@ -8126,7 +9508,7 @@ cygwin* | mingw* | pw32*)
8126 ;; 9508 ;;
8127 pw32*) 9509 pw32*)
8128 # pw32 DLLs use 'pw' prefix rather than 'lib' 9510 # pw32 DLLs use 'pw' prefix rather than 'lib'
8129 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 9511 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8130 ;; 9512 ;;
8131 esac 9513 esac
8132 ;; 9514 ;;
@@ -8149,7 +9531,7 @@ darwin* | rhapsody*)
8149 soname_spec='${libname}${release}${major}$shared_ext' 9531 soname_spec='${libname}${release}${major}$shared_ext'
8150 shlibpath_overrides_runpath=yes 9532 shlibpath_overrides_runpath=yes
8151 shlibpath_var=DYLD_LIBRARY_PATH 9533 shlibpath_var=DYLD_LIBRARY_PATH
8152 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 9534 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8153 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9535 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8154 if test "$GCC" = yes; then 9536 if test "$GCC" = yes; then
8155 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 9537 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
@@ -8172,20 +9554,17 @@ freebsd1*)
8172 dynamic_linker=no 9554 dynamic_linker=no
8173 ;; 9555 ;;
8174 9556
8175kfreebsd*-gnu) 9557freebsd* | dragonfly*)
8176 version_type=linux 9558 # DragonFly does not have aout. When/if they implement a new
8177 need_lib_prefix=no 9559 # versioning mechanism, adjust this.
8178 need_version=no 9560 if test -x /usr/bin/objformat; then
8179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9561 objformat=`/usr/bin/objformat`
8180 soname_spec='${libname}${release}${shared_ext}$major' 9562 else
8181 shlibpath_var=LD_LIBRARY_PATH 9563 case $host_os in
8182 shlibpath_overrides_runpath=no 9564 freebsd[123]*) objformat=aout ;;
8183 hardcode_into_libs=yes 9565 *) objformat=elf ;;
8184 dynamic_linker='GNU ld.so' 9566 esac
8185 ;; 9567 fi
8186
8187freebsd*)
8188 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8189 version_type=freebsd-$objformat 9568 version_type=freebsd-$objformat
8190 case $version_type in 9569 case $version_type in
8191 freebsd-elf*) 9570 freebsd-elf*)
@@ -8203,14 +9582,19 @@ freebsd*)
8203 freebsd2*) 9582 freebsd2*)
8204 shlibpath_overrides_runpath=yes 9583 shlibpath_overrides_runpath=yes
8205 ;; 9584 ;;
8206 freebsd3.01* | freebsdelf3.01*) 9585 freebsd3.[01]* | freebsdelf3.[01]*)
8207 shlibpath_overrides_runpath=yes 9586 shlibpath_overrides_runpath=yes
8208 hardcode_into_libs=yes 9587 hardcode_into_libs=yes
8209 ;; 9588 ;;
8210 *) # from 3.2 on 9589 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9590 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8211 shlibpath_overrides_runpath=no 9591 shlibpath_overrides_runpath=no
8212 hardcode_into_libs=yes 9592 hardcode_into_libs=yes
8213 ;; 9593 ;;
9594 freebsd*) # from 4.6 on
9595 shlibpath_overrides_runpath=yes
9596 hardcode_into_libs=yes
9597 ;;
8214 esac 9598 esac
8215 ;; 9599 ;;
8216 9600
@@ -8230,7 +9614,7 @@ hpux9* | hpux10* | hpux11*)
8230 version_type=sunos 9614 version_type=sunos
8231 need_lib_prefix=no 9615 need_lib_prefix=no
8232 need_version=no 9616 need_version=no
8233 case "$host_cpu" in 9617 case $host_cpu in
8234 ia64*) 9618 ia64*)
8235 shrext_cmds='.so' 9619 shrext_cmds='.so'
8236 hardcode_into_libs=yes 9620 hardcode_into_libs=yes
@@ -8270,6 +9654,18 @@ hpux9* | hpux10* | hpux11*)
8270 postinstall_cmds='chmod 555 $lib' 9654 postinstall_cmds='chmod 555 $lib'
8271 ;; 9655 ;;
8272 9656
9657interix3*)
9658 version_type=linux
9659 need_lib_prefix=no
9660 need_version=no
9661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9662 soname_spec='${libname}${release}${shared_ext}$major'
9663 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9664 shlibpath_var=LD_LIBRARY_PATH
9665 shlibpath_overrides_runpath=no
9666 hardcode_into_libs=yes
9667 ;;
9668
8273irix5* | irix6* | nonstopux*) 9669irix5* | irix6* | nonstopux*)
8274 case $host_os in 9670 case $host_os in
8275 nonstopux*) version_type=nonstopux ;; 9671 nonstopux*) version_type=nonstopux ;;
@@ -8313,7 +9709,7 @@ linux*oldld* | linux*aout* | linux*coff*)
8313 ;; 9709 ;;
8314 9710
8315# This must be Linux ELF. 9711# This must be Linux ELF.
8316linux*) 9712linux* | k*bsd*-gnu)
8317 version_type=linux 9713 version_type=linux
8318 need_lib_prefix=no 9714 need_lib_prefix=no
8319 need_version=no 9715 need_version=no
@@ -8329,7 +9725,7 @@ linux*)
8329 9725
8330 # Append ld.so.conf contents to the search path 9726 # Append ld.so.conf contents to the search path
8331 if test -f /etc/ld.so.conf; then 9727 if test -f /etc/ld.so.conf; then
8332 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 9728 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8333 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9729 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8334 fi 9730 fi
8335 9731
@@ -8354,18 +9750,6 @@ netbsdelf*-gnu)
8354 dynamic_linker='NetBSD ld.elf_so' 9750 dynamic_linker='NetBSD ld.elf_so'
8355 ;; 9751 ;;
8356 9752
8357knetbsd*-gnu)
8358 version_type=linux
8359 need_lib_prefix=no
8360 need_version=no
8361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8362 soname_spec='${libname}${release}${shared_ext}$major'
8363 shlibpath_var=LD_LIBRARY_PATH
8364 shlibpath_overrides_runpath=no
8365 hardcode_into_libs=yes
8366 dynamic_linker='GNU ld.so'
8367 ;;
8368
8369netbsd*) 9753netbsd*)
8370 version_type=sunos 9754 version_type=sunos
8371 need_lib_prefix=no 9755 need_lib_prefix=no
@@ -8403,8 +9787,13 @@ nto-qnx*)
8403 9787
8404openbsd*) 9788openbsd*)
8405 version_type=sunos 9789 version_type=sunos
9790 sys_lib_dlsearch_path_spec="/usr/lib"
8406 need_lib_prefix=no 9791 need_lib_prefix=no
8407 need_version=yes 9792 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9793 case $host_os in
9794 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9795 *) need_version=no ;;
9796 esac
8408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9798 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8410 shlibpath_var=LD_LIBRARY_PATH 9799 shlibpath_var=LD_LIBRARY_PATH
@@ -8442,13 +9831,6 @@ osf3* | osf4* | osf5*)
8442 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9831 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8443 ;; 9832 ;;
8444 9833
8445sco3.2v5*)
8446 version_type=osf
8447 soname_spec='${libname}${release}${shared_ext}$major'
8448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8449 shlibpath_var=LD_LIBRARY_PATH
8450 ;;
8451
8452solaris*) 9834solaris*)
8453 version_type=linux 9835 version_type=linux
8454 need_lib_prefix=no 9836 need_lib_prefix=no
@@ -8474,7 +9856,7 @@ sunos4*)
8474 need_version=yes 9856 need_version=yes
8475 ;; 9857 ;;
8476 9858
8477sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9859sysv4 | sysv4.3*)
8478 version_type=linux 9860 version_type=linux
8479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8480 soname_spec='${libname}${release}${shared_ext}$major' 9862 soname_spec='${libname}${release}${shared_ext}$major'
@@ -8507,6 +9889,29 @@ sysv4*MP*)
8507 fi 9889 fi
8508 ;; 9890 ;;
8509 9891
9892sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9893 version_type=freebsd-elf
9894 need_lib_prefix=no
9895 need_version=no
9896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9897 soname_spec='${libname}${release}${shared_ext}$major'
9898 shlibpath_var=LD_LIBRARY_PATH
9899 hardcode_into_libs=yes
9900 if test "$with_gnu_ld" = yes; then
9901 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9902 shlibpath_overrides_runpath=no
9903 else
9904 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9905 shlibpath_overrides_runpath=yes
9906 case $host_os in
9907 sco3.2v5*)
9908 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9909 ;;
9910 esac
9911 fi
9912 sys_lib_dlsearch_path_spec='/usr/lib'
9913 ;;
9914
8510uts4*) 9915uts4*)
8511 version_type=linux 9916 version_type=linux
8512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -8518,16 +9923,21 @@ uts4*)
8518 dynamic_linker=no 9923 dynamic_linker=no
8519 ;; 9924 ;;
8520esac 9925esac
8521echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9926{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8522echo "${ECHO_T}$dynamic_linker" >&6 9927echo "${ECHO_T}$dynamic_linker" >&6; }
8523test "$dynamic_linker" = no && can_build_shared=no 9928test "$dynamic_linker" = no && can_build_shared=no
8524 9929
8525echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9930variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8526echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 9931if test "$GCC" = yes; then
9932 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9933fi
9934
9935{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9936echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8527hardcode_action= 9937hardcode_action=
8528if test -n "$hardcode_libdir_flag_spec" || \ 9938if test -n "$hardcode_libdir_flag_spec" || \
8529 test -n "$runpath_var " || \ 9939 test -n "$runpath_var" || \
8530 test "X$hardcode_automatic"="Xyes" ; then 9940 test "X$hardcode_automatic" = "Xyes" ; then
8531 9941
8532 # We can hardcode non-existant directories. 9942 # We can hardcode non-existant directories.
8533 if test "$hardcode_direct" != no && 9943 if test "$hardcode_direct" != no &&
@@ -8547,8 +9957,8 @@ else
8547 # directories. 9957 # directories.
8548 hardcode_action=unsupported 9958 hardcode_action=unsupported
8549fi 9959fi
8550echo "$as_me:$LINENO: result: $hardcode_action" >&5 9960{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
8551echo "${ECHO_T}$hardcode_action" >&6 9961echo "${ECHO_T}$hardcode_action" >&6; }
8552 9962
8553if test "$hardcode_action" = relink; then 9963if test "$hardcode_action" = relink; then
8554 # Fast installation is not supported 9964 # Fast installation is not supported
@@ -8561,29 +9971,29 @@ fi
8561 9971
8562striplib= 9972striplib=
8563old_striplib= 9973old_striplib=
8564echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9974{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8565echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 9975echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8566if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9976if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8567 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9977 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8568 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9978 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8569 echo "$as_me:$LINENO: result: yes" >&5 9979 { echo "$as_me:$LINENO: result: yes" >&5
8570echo "${ECHO_T}yes" >&6 9980echo "${ECHO_T}yes" >&6; }
8571else 9981else
8572# FIXME - insert some real tests, host_os isn't really good enough 9982# FIXME - insert some real tests, host_os isn't really good enough
8573 case $host_os in 9983 case $host_os in
8574 darwin*) 9984 darwin*)
8575 if test -n "$STRIP" ; then 9985 if test -n "$STRIP" ; then
8576 striplib="$STRIP -x" 9986 striplib="$STRIP -x"
8577 echo "$as_me:$LINENO: result: yes" >&5 9987 { echo "$as_me:$LINENO: result: yes" >&5
8578echo "${ECHO_T}yes" >&6 9988echo "${ECHO_T}yes" >&6; }
8579 else 9989 else
8580 echo "$as_me:$LINENO: result: no" >&5 9990 { echo "$as_me:$LINENO: result: no" >&5
8581echo "${ECHO_T}no" >&6 9991echo "${ECHO_T}no" >&6; }
8582fi 9992fi
8583 ;; 9993 ;;
8584 *) 9994 *)
8585 echo "$as_me:$LINENO: result: no" >&5 9995 { echo "$as_me:$LINENO: result: no" >&5
8586echo "${ECHO_T}no" >&6 9996echo "${ECHO_T}no" >&6; }
8587 ;; 9997 ;;
8588 esac 9998 esac
8589fi 9999fi
@@ -8615,8 +10025,8 @@ else
8615 10025
8616 darwin*) 10026 darwin*)
8617 # if libdl is installed we need to link against it 10027 # if libdl is installed we need to link against it
8618 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10028 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8619echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 10029echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8620if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10030if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6 10031 echo $ECHO_N "(cached) $ECHO_C" >&6
8622else 10032else
@@ -8629,39 +10039,52 @@ cat confdefs.h >>conftest.$ac_ext
8629cat >>conftest.$ac_ext <<_ACEOF 10039cat >>conftest.$ac_ext <<_ACEOF
8630/* end confdefs.h. */ 10040/* end confdefs.h. */
8631 10041
8632/* Override any gcc2 internal prototype to avoid an error. */ 10042/* Override any GCC internal prototype to avoid an error.
10043 Use char because int might match the return type of a GCC
10044 builtin and then its argument prototype would still apply. */
8633#ifdef __cplusplus 10045#ifdef __cplusplus
8634extern "C" 10046extern "C"
8635#endif 10047#endif
8636/* We use char because int might match the return type of a gcc2
8637 builtin and then its argument prototype would still apply. */
8638char dlopen (); 10048char dlopen ();
8639int 10049int
8640main () 10050main ()
8641{ 10051{
8642dlopen (); 10052return dlopen ();
8643 ; 10053 ;
8644 return 0; 10054 return 0;
8645} 10055}
8646_ACEOF 10056_ACEOF
8647rm -f conftest.$ac_objext conftest$ac_exeext 10057rm -f conftest.$ac_objext conftest$ac_exeext
8648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10058if { (ac_try="$ac_link"
8649 (eval $ac_link) 2>conftest.er1 10059case "(($ac_try" in
10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061 *) ac_try_echo=$ac_try;;
10062esac
10063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064 (eval "$ac_link") 2>conftest.er1
8650 ac_status=$? 10065 ac_status=$?
8651 grep -v '^ *+' conftest.er1 >conftest.err 10066 grep -v '^ *+' conftest.er1 >conftest.err
8652 rm -f conftest.er1 10067 rm -f conftest.er1
8653 cat conftest.err >&5 10068 cat conftest.err >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } && 10070 (exit $ac_status); } &&
8656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10072 { (case "(($ac_try" in
8658 (eval $ac_try) 2>&5 10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074 *) ac_try_echo=$ac_try;;
10075esac
10076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077 (eval "$ac_try") 2>&5
8659 ac_status=$? 10078 ac_status=$?
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); }; } && 10080 (exit $ac_status); }; } &&
8662 { ac_try='test -s conftest$ac_exeext' 10081 { ac_try='test -s conftest$ac_exeext'
8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10082 { (case "(($ac_try" in
8664 (eval $ac_try) 2>&5 10083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084 *) ac_try_echo=$ac_try;;
10085esac
10086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10087 (eval "$ac_try") 2>&5
8665 ac_status=$? 10088 ac_status=$?
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; }; then 10090 (exit $ac_status); }; }; then
@@ -8670,14 +10093,15 @@ else
8670 echo "$as_me: failed program was:" >&5 10093 echo "$as_me: failed program was:" >&5
8671sed 's/^/| /' conftest.$ac_ext >&5 10094sed 's/^/| /' conftest.$ac_ext >&5
8672 10095
8673ac_cv_lib_dl_dlopen=no 10096 ac_cv_lib_dl_dlopen=no
8674fi 10097fi
8675rm -f conftest.err conftest.$ac_objext \ 10098
10099rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8676 conftest$ac_exeext conftest.$ac_ext 10100 conftest$ac_exeext conftest.$ac_ext
8677LIBS=$ac_check_lib_save_LIBS 10101LIBS=$ac_check_lib_save_LIBS
8678fi 10102fi
8679echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10103{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8680echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 10104echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8681if test $ac_cv_lib_dl_dlopen = yes; then 10105if test $ac_cv_lib_dl_dlopen = yes; then
8682 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8683else 10107else
@@ -8691,8 +10115,8 @@ fi
8691 ;; 10115 ;;
8692 10116
8693 *) 10117 *)
8694 echo "$as_me:$LINENO: checking for shl_load" >&5 10118 { echo "$as_me:$LINENO: checking for shl_load" >&5
8695echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 10119echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8696if test "${ac_cv_func_shl_load+set}" = set; then 10120if test "${ac_cv_func_shl_load+set}" = set; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6 10121 echo $ECHO_N "(cached) $ECHO_C" >&6
8698else 10122else
@@ -8719,52 +10143,59 @@ cat >>conftest.$ac_ext <<_ACEOF
8719 10143
8720#undef shl_load 10144#undef shl_load
8721 10145
8722/* Override any gcc2 internal prototype to avoid an error. */ 10146/* Override any GCC internal prototype to avoid an error.
10147 Use char because int might match the return type of a GCC
10148 builtin and then its argument prototype would still apply. */
8723#ifdef __cplusplus 10149#ifdef __cplusplus
8724extern "C" 10150extern "C"
8725{
8726#endif 10151#endif
8727/* We use char because int might match the return type of a gcc2
8728 builtin and then its argument prototype would still apply. */
8729char shl_load (); 10152char shl_load ();
8730/* The GNU C library defines this for functions which it implements 10153/* The GNU C library defines this for functions which it implements
8731 to always fail with ENOSYS. Some functions are actually named 10154 to always fail with ENOSYS. Some functions are actually named
8732 something starting with __ and the normal name is an alias. */ 10155 something starting with __ and the normal name is an alias. */
8733#if defined (__stub_shl_load) || defined (__stub___shl_load) 10156#if defined __stub_shl_load || defined __stub___shl_load
8734choke me 10157choke me
8735#else
8736char (*f) () = shl_load;
8737#endif
8738#ifdef __cplusplus
8739}
8740#endif 10158#endif
8741 10159
8742int 10160int
8743main () 10161main ()
8744{ 10162{
8745return f != shl_load; 10163return shl_load ();
8746 ; 10164 ;
8747 return 0; 10165 return 0;
8748} 10166}
8749_ACEOF 10167_ACEOF
8750rm -f conftest.$ac_objext conftest$ac_exeext 10168rm -f conftest.$ac_objext conftest$ac_exeext
8751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10169if { (ac_try="$ac_link"
8752 (eval $ac_link) 2>conftest.er1 10170case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10173esac
10174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_link") 2>conftest.er1
8753 ac_status=$? 10176 ac_status=$?
8754 grep -v '^ *+' conftest.er1 >conftest.err 10177 grep -v '^ *+' conftest.er1 >conftest.err
8755 rm -f conftest.er1 10178 rm -f conftest.er1
8756 cat conftest.err >&5 10179 cat conftest.err >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } && 10181 (exit $ac_status); } &&
8759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10183 { (case "(($ac_try" in
8761 (eval $ac_try) 2>&5 10184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185 *) ac_try_echo=$ac_try;;
10186esac
10187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10188 (eval "$ac_try") 2>&5
8762 ac_status=$? 10189 ac_status=$?
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); }; } && 10191 (exit $ac_status); }; } &&
8765 { ac_try='test -s conftest$ac_exeext' 10192 { ac_try='test -s conftest$ac_exeext'
8766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10193 { (case "(($ac_try" in
8767 (eval $ac_try) 2>&5 10194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195 *) ac_try_echo=$ac_try;;
10196esac
10197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198 (eval "$ac_try") 2>&5
8768 ac_status=$? 10199 ac_status=$?
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }; }; then 10201 (exit $ac_status); }; }; then
@@ -8773,18 +10204,19 @@ else
8773 echo "$as_me: failed program was:" >&5 10204 echo "$as_me: failed program was:" >&5
8774sed 's/^/| /' conftest.$ac_ext >&5 10205sed 's/^/| /' conftest.$ac_ext >&5
8775 10206
8776ac_cv_func_shl_load=no 10207 ac_cv_func_shl_load=no
8777fi 10208fi
8778rm -f conftest.err conftest.$ac_objext \ 10209
10210rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8779 conftest$ac_exeext conftest.$ac_ext 10211 conftest$ac_exeext conftest.$ac_ext
8780fi 10212fi
8781echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10213{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8782echo "${ECHO_T}$ac_cv_func_shl_load" >&6 10214echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8783if test $ac_cv_func_shl_load = yes; then 10215if test $ac_cv_func_shl_load = yes; then
8784 lt_cv_dlopen="shl_load" 10216 lt_cv_dlopen="shl_load"
8785else 10217else
8786 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10218 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8787echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 10219echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8788if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10220if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6 10221 echo $ECHO_N "(cached) $ECHO_C" >&6
8790else 10222else
@@ -8797,39 +10229,52 @@ cat confdefs.h >>conftest.$ac_ext
8797cat >>conftest.$ac_ext <<_ACEOF 10229cat >>conftest.$ac_ext <<_ACEOF
8798/* end confdefs.h. */ 10230/* end confdefs.h. */
8799 10231
8800/* Override any gcc2 internal prototype to avoid an error. */ 10232/* Override any GCC internal prototype to avoid an error.
10233 Use char because int might match the return type of a GCC
10234 builtin and then its argument prototype would still apply. */
8801#ifdef __cplusplus 10235#ifdef __cplusplus
8802extern "C" 10236extern "C"
8803#endif 10237#endif
8804/* We use char because int might match the return type of a gcc2
8805 builtin and then its argument prototype would still apply. */
8806char shl_load (); 10238char shl_load ();
8807int 10239int
8808main () 10240main ()
8809{ 10241{
8810shl_load (); 10242return shl_load ();
8811 ; 10243 ;
8812 return 0; 10244 return 0;
8813} 10245}
8814_ACEOF 10246_ACEOF
8815rm -f conftest.$ac_objext conftest$ac_exeext 10247rm -f conftest.$ac_objext conftest$ac_exeext
8816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10248if { (ac_try="$ac_link"
8817 (eval $ac_link) 2>conftest.er1 10249case "(($ac_try" in
10250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10251 *) ac_try_echo=$ac_try;;
10252esac
10253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10254 (eval "$ac_link") 2>conftest.er1
8818 ac_status=$? 10255 ac_status=$?
8819 grep -v '^ *+' conftest.er1 >conftest.err 10256 grep -v '^ *+' conftest.er1 >conftest.err
8820 rm -f conftest.er1 10257 rm -f conftest.er1
8821 cat conftest.err >&5 10258 cat conftest.err >&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); } && 10260 (exit $ac_status); } &&
8824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10262 { (case "(($ac_try" in
8826 (eval $ac_try) 2>&5 10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10265esac
10266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267 (eval "$ac_try") 2>&5
8827 ac_status=$? 10268 ac_status=$?
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; } && 10270 (exit $ac_status); }; } &&
8830 { ac_try='test -s conftest$ac_exeext' 10271 { ac_try='test -s conftest$ac_exeext'
8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10272 { (case "(($ac_try" in
8832 (eval $ac_try) 2>&5 10273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274 *) ac_try_echo=$ac_try;;
10275esac
10276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10277 (eval "$ac_try") 2>&5
8833 ac_status=$? 10278 ac_status=$?
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; }; then 10280 (exit $ac_status); }; }; then
@@ -8838,19 +10283,20 @@ else
8838 echo "$as_me: failed program was:" >&5 10283 echo "$as_me: failed program was:" >&5
8839sed 's/^/| /' conftest.$ac_ext >&5 10284sed 's/^/| /' conftest.$ac_ext >&5
8840 10285
8841ac_cv_lib_dld_shl_load=no 10286 ac_cv_lib_dld_shl_load=no
8842fi 10287fi
8843rm -f conftest.err conftest.$ac_objext \ 10288
10289rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8844 conftest$ac_exeext conftest.$ac_ext 10290 conftest$ac_exeext conftest.$ac_ext
8845LIBS=$ac_check_lib_save_LIBS 10291LIBS=$ac_check_lib_save_LIBS
8846fi 10292fi
8847echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10293{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8848echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 10294echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8849if test $ac_cv_lib_dld_shl_load = yes; then 10295if test $ac_cv_lib_dld_shl_load = yes; then
8850 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 10296 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8851else 10297else
8852 echo "$as_me:$LINENO: checking for dlopen" >&5 10298 { echo "$as_me:$LINENO: checking for dlopen" >&5
8853echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 10299echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8854if test "${ac_cv_func_dlopen+set}" = set; then 10300if test "${ac_cv_func_dlopen+set}" = set; then
8855 echo $ECHO_N "(cached) $ECHO_C" >&6 10301 echo $ECHO_N "(cached) $ECHO_C" >&6
8856else 10302else
@@ -8877,52 +10323,59 @@ cat >>conftest.$ac_ext <<_ACEOF
8877 10323
8878#undef dlopen 10324#undef dlopen
8879 10325
8880/* Override any gcc2 internal prototype to avoid an error. */ 10326/* Override any GCC internal prototype to avoid an error.
10327 Use char because int might match the return type of a GCC
10328 builtin and then its argument prototype would still apply. */
8881#ifdef __cplusplus 10329#ifdef __cplusplus
8882extern "C" 10330extern "C"
8883{
8884#endif 10331#endif
8885/* We use char because int might match the return type of a gcc2
8886 builtin and then its argument prototype would still apply. */
8887char dlopen (); 10332char dlopen ();
8888/* The GNU C library defines this for functions which it implements 10333/* The GNU C library defines this for functions which it implements
8889 to always fail with ENOSYS. Some functions are actually named 10334 to always fail with ENOSYS. Some functions are actually named
8890 something starting with __ and the normal name is an alias. */ 10335 something starting with __ and the normal name is an alias. */
8891#if defined (__stub_dlopen) || defined (__stub___dlopen) 10336#if defined __stub_dlopen || defined __stub___dlopen
8892choke me 10337choke me
8893#else
8894char (*f) () = dlopen;
8895#endif
8896#ifdef __cplusplus
8897}
8898#endif 10338#endif
8899 10339
8900int 10340int
8901main () 10341main ()
8902{ 10342{
8903return f != dlopen; 10343return dlopen ();
8904 ; 10344 ;
8905 return 0; 10345 return 0;
8906} 10346}
8907_ACEOF 10347_ACEOF
8908rm -f conftest.$ac_objext conftest$ac_exeext 10348rm -f conftest.$ac_objext conftest$ac_exeext
8909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10349if { (ac_try="$ac_link"
8910 (eval $ac_link) 2>conftest.er1 10350case "(($ac_try" in
10351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352 *) ac_try_echo=$ac_try;;
10353esac
10354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355 (eval "$ac_link") 2>conftest.er1
8911 ac_status=$? 10356 ac_status=$?
8912 grep -v '^ *+' conftest.er1 >conftest.err 10357 grep -v '^ *+' conftest.er1 >conftest.err
8913 rm -f conftest.er1 10358 rm -f conftest.er1
8914 cat conftest.err >&5 10359 cat conftest.err >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); } && 10361 (exit $ac_status); } &&
8917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10363 { (case "(($ac_try" in
8919 (eval $ac_try) 2>&5 10364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10365 *) ac_try_echo=$ac_try;;
10366esac
10367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10368 (eval "$ac_try") 2>&5
8920 ac_status=$? 10369 ac_status=$?
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); }; } && 10371 (exit $ac_status); }; } &&
8923 { ac_try='test -s conftest$ac_exeext' 10372 { ac_try='test -s conftest$ac_exeext'
8924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10373 { (case "(($ac_try" in
8925 (eval $ac_try) 2>&5 10374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375 *) ac_try_echo=$ac_try;;
10376esac
10377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378 (eval "$ac_try") 2>&5
8926 ac_status=$? 10379 ac_status=$?
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; }; then 10381 (exit $ac_status); }; }; then
@@ -8931,18 +10384,19 @@ else
8931 echo "$as_me: failed program was:" >&5 10384 echo "$as_me: failed program was:" >&5
8932sed 's/^/| /' conftest.$ac_ext >&5 10385sed 's/^/| /' conftest.$ac_ext >&5
8933 10386
8934ac_cv_func_dlopen=no 10387 ac_cv_func_dlopen=no
8935fi 10388fi
8936rm -f conftest.err conftest.$ac_objext \ 10389
10390rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8937 conftest$ac_exeext conftest.$ac_ext 10391 conftest$ac_exeext conftest.$ac_ext
8938fi 10392fi
8939echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10393{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8940echo "${ECHO_T}$ac_cv_func_dlopen" >&6 10394echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8941if test $ac_cv_func_dlopen = yes; then 10395if test $ac_cv_func_dlopen = yes; then
8942 lt_cv_dlopen="dlopen" 10396 lt_cv_dlopen="dlopen"
8943else 10397else
8944 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10398 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8945echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 10399echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8946if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10400if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6 10401 echo $ECHO_N "(cached) $ECHO_C" >&6
8948else 10402else
@@ -8955,39 +10409,52 @@ cat confdefs.h >>conftest.$ac_ext
8955cat >>conftest.$ac_ext <<_ACEOF 10409cat >>conftest.$ac_ext <<_ACEOF
8956/* end confdefs.h. */ 10410/* end confdefs.h. */
8957 10411
8958/* Override any gcc2 internal prototype to avoid an error. */ 10412/* Override any GCC internal prototype to avoid an error.
10413 Use char because int might match the return type of a GCC
10414 builtin and then its argument prototype would still apply. */
8959#ifdef __cplusplus 10415#ifdef __cplusplus
8960extern "C" 10416extern "C"
8961#endif 10417#endif
8962/* We use char because int might match the return type of a gcc2
8963 builtin and then its argument prototype would still apply. */
8964char dlopen (); 10418char dlopen ();
8965int 10419int
8966main () 10420main ()
8967{ 10421{
8968dlopen (); 10422return dlopen ();
8969 ; 10423 ;
8970 return 0; 10424 return 0;
8971} 10425}
8972_ACEOF 10426_ACEOF
8973rm -f conftest.$ac_objext conftest$ac_exeext 10427rm -f conftest.$ac_objext conftest$ac_exeext
8974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10428if { (ac_try="$ac_link"
8975 (eval $ac_link) 2>conftest.er1 10429case "(($ac_try" in
10430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10431 *) ac_try_echo=$ac_try;;
10432esac
10433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10434 (eval "$ac_link") 2>conftest.er1
8976 ac_status=$? 10435 ac_status=$?
8977 grep -v '^ *+' conftest.er1 >conftest.err 10436 grep -v '^ *+' conftest.er1 >conftest.err
8978 rm -f conftest.er1 10437 rm -f conftest.er1
8979 cat conftest.err >&5 10438 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } && 10440 (exit $ac_status); } &&
8982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10442 { (case "(($ac_try" in
8984 (eval $ac_try) 2>&5 10443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444 *) ac_try_echo=$ac_try;;
10445esac
10446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10447 (eval "$ac_try") 2>&5
8985 ac_status=$? 10448 ac_status=$?
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; } && 10450 (exit $ac_status); }; } &&
8988 { ac_try='test -s conftest$ac_exeext' 10451 { ac_try='test -s conftest$ac_exeext'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10452 { (case "(($ac_try" in
8990 (eval $ac_try) 2>&5 10453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10454 *) ac_try_echo=$ac_try;;
10455esac
10456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10457 (eval "$ac_try") 2>&5
8991 ac_status=$? 10458 ac_status=$?
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; }; then 10460 (exit $ac_status); }; }; then
@@ -8996,19 +10463,20 @@ else
8996 echo "$as_me: failed program was:" >&5 10463 echo "$as_me: failed program was:" >&5
8997sed 's/^/| /' conftest.$ac_ext >&5 10464sed 's/^/| /' conftest.$ac_ext >&5
8998 10465
8999ac_cv_lib_dl_dlopen=no 10466 ac_cv_lib_dl_dlopen=no
9000fi 10467fi
9001rm -f conftest.err conftest.$ac_objext \ 10468
10469rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9002 conftest$ac_exeext conftest.$ac_ext 10470 conftest$ac_exeext conftest.$ac_ext
9003LIBS=$ac_check_lib_save_LIBS 10471LIBS=$ac_check_lib_save_LIBS
9004fi 10472fi
9005echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10473{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9006echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 10474echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9007if test $ac_cv_lib_dl_dlopen = yes; then 10475if test $ac_cv_lib_dl_dlopen = yes; then
9008 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10476 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9009else 10477else
9010 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10478 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9011echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 10479echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9012if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10480if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6 10481 echo $ECHO_N "(cached) $ECHO_C" >&6
9014else 10482else
@@ -9021,39 +10489,52 @@ cat confdefs.h >>conftest.$ac_ext
9021cat >>conftest.$ac_ext <<_ACEOF 10489cat >>conftest.$ac_ext <<_ACEOF
9022/* end confdefs.h. */ 10490/* end confdefs.h. */
9023 10491
9024/* Override any gcc2 internal prototype to avoid an error. */ 10492/* Override any GCC internal prototype to avoid an error.
10493 Use char because int might match the return type of a GCC
10494 builtin and then its argument prototype would still apply. */
9025#ifdef __cplusplus 10495#ifdef __cplusplus
9026extern "C" 10496extern "C"
9027#endif 10497#endif
9028/* We use char because int might match the return type of a gcc2
9029 builtin and then its argument prototype would still apply. */
9030char dlopen (); 10498char dlopen ();
9031int 10499int
9032main () 10500main ()
9033{ 10501{
9034dlopen (); 10502return dlopen ();
9035 ; 10503 ;
9036 return 0; 10504 return 0;
9037} 10505}
9038_ACEOF 10506_ACEOF
9039rm -f conftest.$ac_objext conftest$ac_exeext 10507rm -f conftest.$ac_objext conftest$ac_exeext
9040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10508if { (ac_try="$ac_link"
9041 (eval $ac_link) 2>conftest.er1 10509case "(($ac_try" in
10510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511 *) ac_try_echo=$ac_try;;
10512esac
10513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10514 (eval "$ac_link") 2>conftest.er1
9042 ac_status=$? 10515 ac_status=$?
9043 grep -v '^ *+' conftest.er1 >conftest.err 10516 grep -v '^ *+' conftest.er1 >conftest.err
9044 rm -f conftest.er1 10517 rm -f conftest.er1
9045 cat conftest.err >&5 10518 cat conftest.err >&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); } && 10520 (exit $ac_status); } &&
9048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10522 { (case "(($ac_try" in
9050 (eval $ac_try) 2>&5 10523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524 *) ac_try_echo=$ac_try;;
10525esac
10526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10527 (eval "$ac_try") 2>&5
9051 ac_status=$? 10528 ac_status=$?
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); }; } && 10530 (exit $ac_status); }; } &&
9054 { ac_try='test -s conftest$ac_exeext' 10531 { ac_try='test -s conftest$ac_exeext'
9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10532 { (case "(($ac_try" in
9056 (eval $ac_try) 2>&5 10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10535esac
10536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_try") 2>&5
9057 ac_status=$? 10538 ac_status=$?
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; }; then 10540 (exit $ac_status); }; }; then
@@ -9062,19 +10543,20 @@ else
9062 echo "$as_me: failed program was:" >&5 10543 echo "$as_me: failed program was:" >&5
9063sed 's/^/| /' conftest.$ac_ext >&5 10544sed 's/^/| /' conftest.$ac_ext >&5
9064 10545
9065ac_cv_lib_svld_dlopen=no 10546 ac_cv_lib_svld_dlopen=no
9066fi 10547fi
9067rm -f conftest.err conftest.$ac_objext \ 10548
10549rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9068 conftest$ac_exeext conftest.$ac_ext 10550 conftest$ac_exeext conftest.$ac_ext
9069LIBS=$ac_check_lib_save_LIBS 10551LIBS=$ac_check_lib_save_LIBS
9070fi 10552fi
9071echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10553{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9072echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 10554echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9073if test $ac_cv_lib_svld_dlopen = yes; then 10555if test $ac_cv_lib_svld_dlopen = yes; then
9074 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10556 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9075else 10557else
9076 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10558 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9077echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 10559echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9078if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10560if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9079 echo $ECHO_N "(cached) $ECHO_C" >&6 10561 echo $ECHO_N "(cached) $ECHO_C" >&6
9080else 10562else
@@ -9087,39 +10569,52 @@ cat confdefs.h >>conftest.$ac_ext
9087cat >>conftest.$ac_ext <<_ACEOF 10569cat >>conftest.$ac_ext <<_ACEOF
9088/* end confdefs.h. */ 10570/* end confdefs.h. */
9089 10571
9090/* Override any gcc2 internal prototype to avoid an error. */ 10572/* Override any GCC internal prototype to avoid an error.
10573 Use char because int might match the return type of a GCC
10574 builtin and then its argument prototype would still apply. */
9091#ifdef __cplusplus 10575#ifdef __cplusplus
9092extern "C" 10576extern "C"
9093#endif 10577#endif
9094/* We use char because int might match the return type of a gcc2
9095 builtin and then its argument prototype would still apply. */
9096char dld_link (); 10578char dld_link ();
9097int 10579int
9098main () 10580main ()
9099{ 10581{
9100dld_link (); 10582return dld_link ();
9101 ; 10583 ;
9102 return 0; 10584 return 0;
9103} 10585}
9104_ACEOF 10586_ACEOF
9105rm -f conftest.$ac_objext conftest$ac_exeext 10587rm -f conftest.$ac_objext conftest$ac_exeext
9106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10588if { (ac_try="$ac_link"
9107 (eval $ac_link) 2>conftest.er1 10589case "(($ac_try" in
10590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10591 *) ac_try_echo=$ac_try;;
10592esac
10593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10594 (eval "$ac_link") 2>conftest.er1
9108 ac_status=$? 10595 ac_status=$?
9109 grep -v '^ *+' conftest.er1 >conftest.err 10596 grep -v '^ *+' conftest.er1 >conftest.err
9110 rm -f conftest.er1 10597 rm -f conftest.er1
9111 cat conftest.err >&5 10598 cat conftest.err >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } && 10600 (exit $ac_status); } &&
9114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10602 { (case "(($ac_try" in
9116 (eval $ac_try) 2>&5 10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10605esac
10606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607 (eval "$ac_try") 2>&5
9117 ac_status=$? 10608 ac_status=$?
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); }; } && 10610 (exit $ac_status); }; } &&
9120 { ac_try='test -s conftest$ac_exeext' 10611 { ac_try='test -s conftest$ac_exeext'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10612 { (case "(($ac_try" in
9122 (eval $ac_try) 2>&5 10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10615esac
10616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_try") 2>&5
9123 ac_status=$? 10618 ac_status=$?
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; }; then 10620 (exit $ac_status); }; }; then
@@ -9128,14 +10623,15 @@ else
9128 echo "$as_me: failed program was:" >&5 10623 echo "$as_me: failed program was:" >&5
9129sed 's/^/| /' conftest.$ac_ext >&5 10624sed 's/^/| /' conftest.$ac_ext >&5
9130 10625
9131ac_cv_lib_dld_dld_link=no 10626 ac_cv_lib_dld_dld_link=no
9132fi 10627fi
9133rm -f conftest.err conftest.$ac_objext \ 10628
10629rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9134 conftest$ac_exeext conftest.$ac_ext 10630 conftest$ac_exeext conftest.$ac_ext
9135LIBS=$ac_check_lib_save_LIBS 10631LIBS=$ac_check_lib_save_LIBS
9136fi 10632fi
9137echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10633{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9138echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 10634echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9139if test $ac_cv_lib_dld_dld_link = yes; then 10635if test $ac_cv_lib_dld_dld_link = yes; then
9140 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10636 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9141fi 10637fi
@@ -9170,13 +10666,13 @@ fi
9170 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10666 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9171 10667
9172 save_LDFLAGS="$LDFLAGS" 10668 save_LDFLAGS="$LDFLAGS"
9173 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10669 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9174 10670
9175 save_LIBS="$LIBS" 10671 save_LIBS="$LIBS"
9176 LIBS="$lt_cv_dlopen_libs $LIBS" 10672 LIBS="$lt_cv_dlopen_libs $LIBS"
9177 10673
9178 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10674 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9179echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 10675echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9180if test "${lt_cv_dlopen_self+set}" = set; then 10676if test "${lt_cv_dlopen_self+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6 10677 echo $ECHO_N "(cached) $ECHO_C" >&6
9182else 10678else
@@ -9186,7 +10682,7 @@ else
9186 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10682 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9187 lt_status=$lt_dlunknown 10683 lt_status=$lt_dlunknown
9188 cat > conftest.$ac_ext <<EOF 10684 cat > conftest.$ac_ext <<EOF
9189#line 9189 "configure" 10685#line 10685 "configure"
9190#include "confdefs.h" 10686#include "confdefs.h"
9191 10687
9192#if HAVE_DLFCN_H 10688#if HAVE_DLFCN_H
@@ -9243,6 +10739,8 @@ int main ()
9243 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10739 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9244 /* dlclose (self); */ 10740 /* dlclose (self); */
9245 } 10741 }
10742 else
10743 puts (dlerror ());
9246 10744
9247 exit (status); 10745 exit (status);
9248} 10746}
@@ -9252,12 +10750,12 @@ EOF
9252 ac_status=$? 10750 ac_status=$?
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10752 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9255 (./conftest; exit; ) 2>/dev/null 10753 (./conftest; exit; ) >&5 2>/dev/null
9256 lt_status=$? 10754 lt_status=$?
9257 case x$lt_status in 10755 case x$lt_status in
9258 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10756 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9259 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10757 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9260 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 10758 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9261 esac 10759 esac
9262 else : 10760 else :
9263 # compilation failed 10761 # compilation failed
@@ -9268,13 +10766,13 @@ rm -fr conftest*
9268 10766
9269 10767
9270fi 10768fi
9271echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10769{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9272echo "${ECHO_T}$lt_cv_dlopen_self" >&6 10770echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9273 10771
9274 if test "x$lt_cv_dlopen_self" = xyes; then 10772 if test "x$lt_cv_dlopen_self" = xyes; then
9275 LDFLAGS="$LDFLAGS $link_static_flag" 10773 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9276 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10774 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9277echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 10775echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9278if test "${lt_cv_dlopen_self_static+set}" = set; then 10776if test "${lt_cv_dlopen_self_static+set}" = set; then
9279 echo $ECHO_N "(cached) $ECHO_C" >&6 10777 echo $ECHO_N "(cached) $ECHO_C" >&6
9280else 10778else
@@ -9284,7 +10782,7 @@ else
9284 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10782 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9285 lt_status=$lt_dlunknown 10783 lt_status=$lt_dlunknown
9286 cat > conftest.$ac_ext <<EOF 10784 cat > conftest.$ac_ext <<EOF
9287#line 9287 "configure" 10785#line 10785 "configure"
9288#include "confdefs.h" 10786#include "confdefs.h"
9289 10787
9290#if HAVE_DLFCN_H 10788#if HAVE_DLFCN_H
@@ -9341,6 +10839,8 @@ int main ()
9341 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10839 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9342 /* dlclose (self); */ 10840 /* dlclose (self); */
9343 } 10841 }
10842 else
10843 puts (dlerror ());
9344 10844
9345 exit (status); 10845 exit (status);
9346} 10846}
@@ -9350,12 +10850,12 @@ EOF
9350 ac_status=$? 10850 ac_status=$?
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10852 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9353 (./conftest; exit; ) 2>/dev/null 10853 (./conftest; exit; ) >&5 2>/dev/null
9354 lt_status=$? 10854 lt_status=$?
9355 case x$lt_status in 10855 case x$lt_status in
9356 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10856 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9357 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10857 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9358 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 10858 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9359 esac 10859 esac
9360 else : 10860 else :
9361 # compilation failed 10861 # compilation failed
@@ -9366,8 +10866,8 @@ rm -fr conftest*
9366 10866
9367 10867
9368fi 10868fi
9369echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10869{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9370echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 10870echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9371 fi 10871 fi
9372 10872
9373 CPPFLAGS="$save_CPPFLAGS" 10873 CPPFLAGS="$save_CPPFLAGS"
@@ -9388,19 +10888,19 @@ echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9388fi 10888fi
9389 10889
9390 10890
9391# Report which librarie types wil actually be built 10891# Report which library types will actually be built
9392echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10892{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9393echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 10893echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9394echo "$as_me:$LINENO: result: $can_build_shared" >&5 10894{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9395echo "${ECHO_T}$can_build_shared" >&6 10895echo "${ECHO_T}$can_build_shared" >&6; }
9396 10896
9397echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10897{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9398echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 10898echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9399test "$can_build_shared" = "no" && enable_shared=no 10899test "$can_build_shared" = "no" && enable_shared=no
9400 10900
9401# On AIX, shared libraries and static libraries use the same namespace, and 10901# On AIX, shared libraries and static libraries use the same namespace, and
9402# are all built from PIC. 10902# are all built from PIC.
9403case "$host_os" in 10903case $host_os in
9404aix3*) 10904aix3*)
9405 test "$enable_shared" = yes && enable_static=no 10905 test "$enable_shared" = yes && enable_static=no
9406 if test -n "$RANLIB"; then 10906 if test -n "$RANLIB"; then
@@ -9413,54 +10913,17 @@ aix4* | aix5*)
9413 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10913 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9414 test "$enable_shared" = yes && enable_static=no 10914 test "$enable_shared" = yes && enable_static=no
9415 fi 10915 fi
9416 ;;
9417 darwin* | rhapsody*)
9418 if test "$GCC" = yes; then
9419 archive_cmds_need_lc=no
9420 case "$host_os" in
9421 rhapsody* | darwin1.[012])
9422 allow_undefined_flag='-undefined suppress'
9423 ;;
9424 *) # Darwin 1.3 on
9425 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9426 allow_undefined_flag='-flat_namespace -undefined suppress'
9427 else
9428 case ${MACOSX_DEPLOYMENT_TARGET} in
9429 10.[012])
9430 allow_undefined_flag='-flat_namespace -undefined suppress'
9431 ;;
9432 10.*)
9433 allow_undefined_flag='-undefined dynamic_lookup'
9434 ;;
9435 esac
9436 fi
9437 ;;
9438 esac
9439 output_verbose_link_cmd='echo'
9440 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9441 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9442 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9443 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9444 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9445 hardcode_direct=no
9446 hardcode_automatic=yes
9447 hardcode_shlibpath_var=unsupported
9448 whole_archive_flag_spec='-all_load $convenience'
9449 link_all_deplibs=yes
9450 else
9451 ld_shlibs=no
9452 fi
9453 ;; 10916 ;;
9454esac 10917esac
9455echo "$as_me:$LINENO: result: $enable_shared" >&5 10918{ echo "$as_me:$LINENO: result: $enable_shared" >&5
9456echo "${ECHO_T}$enable_shared" >&6 10919echo "${ECHO_T}$enable_shared" >&6; }
9457 10920
9458echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10921{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9459echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 10922echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9460# Make sure either enable_shared or enable_static is yes. 10923# Make sure either enable_shared or enable_static is yes.
9461test "$enable_shared" = yes || enable_static=yes 10924test "$enable_shared" = yes || enable_static=yes
9462echo "$as_me:$LINENO: result: $enable_static" >&5 10925{ echo "$as_me:$LINENO: result: $enable_static" >&5
9463echo "${ECHO_T}$enable_static" >&6 10926echo "${ECHO_T}$enable_static" >&6; }
9464 10927
9465# The else clause should only fire when bootstrapping the 10928# The else clause should only fire when bootstrapping the
9466# libtool distribution, otherwise you forgot to ship ltmain.sh 10929# libtool distribution, otherwise you forgot to ship ltmain.sh
@@ -9475,7 +10938,7 @@ if test -f "$ltmain"; then
9475 # Now quote all the things that may contain metacharacters while being 10938 # Now quote all the things that may contain metacharacters while being
9476 # careful not to overquote the AC_SUBSTed values. We take copies of the 10939 # careful not to overquote the AC_SUBSTed values. We take copies of the
9477 # variables and quote the copies for generation of the libtool script. 10940 # variables and quote the copies for generation of the libtool script.
9478 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 10941 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9479 SED SHELL STRIP \ 10942 SED SHELL STRIP \
9480 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10943 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9481 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10944 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
@@ -9579,7 +11042,7 @@ echo "$as_me: creating $ofile" >&6;}
9579# 11042#
9580# You should have received a copy of the GNU General Public License 11043# You should have received a copy of the GNU General Public License
9581# along with this program; if not, write to the Free Software 11044# along with this program; if not, write to the Free Software
9582# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 11045# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9583# 11046#
9584# As a special exception to the GNU General Public License, if you 11047# As a special exception to the GNU General Public License, if you
9585# distribute this file as part of a program that contains a 11048# distribute this file as part of a program that contains a
@@ -9590,11 +11053,11 @@ echo "$as_me: creating $ofile" >&6;}
9590SED=$lt_SED 11053SED=$lt_SED
9591 11054
9592# Sed that helps us avoid accidentally triggering echo(1) options like -n. 11055# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9593Xsed="$SED -e s/^X//" 11056Xsed="$SED -e 1s/^X//"
9594 11057
9595# The HP-UX ksh and POSIX shell print the target directory to stdout 11058# The HP-UX ksh and POSIX shell print the target directory to stdout
9596# if CDPATH is set. 11059# if CDPATH is set.
9597if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 11060(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9598 11061
9599# The names of the tagged configurations supported by this script. 11062# The names of the tagged configurations supported by this script.
9600available_tags= 11063available_tags=
@@ -9624,6 +11087,12 @@ fast_install=$enable_fast_install
9624# The host system. 11087# The host system.
9625host_alias=$host_alias 11088host_alias=$host_alias
9626host=$host 11089host=$host
11090host_os=$host_os
11091
11092# The build system.
11093build_alias=$build_alias
11094build=$build
11095build_os=$build_os
9627 11096
9628# An echo program that does not interpret backslashes. 11097# An echo program that does not interpret backslashes.
9629echo=$lt_echo 11098echo=$lt_echo
@@ -9635,6 +11104,9 @@ AR_FLAGS=$lt_AR_FLAGS
9635# A C compiler. 11104# A C compiler.
9636LTCC=$lt_LTCC 11105LTCC=$lt_LTCC
9637 11106
11107# LTCC compiler flags.
11108LTCFLAGS=$lt_LTCFLAGS
11109
9638# A language-specific compiler. 11110# A language-specific compiler.
9639CC=$lt_compiler 11111CC=$lt_compiler
9640 11112
@@ -9700,7 +11172,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
9700# Does compiler simultaneously support -c and -o options? 11172# Does compiler simultaneously support -c and -o options?
9701compiler_c_o=$lt_lt_cv_prog_compiler_c_o 11173compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9702 11174
9703# Must we lock files when doing compilation ? 11175# Must we lock files when doing compilation?
9704need_locks=$lt_need_locks 11176need_locks=$lt_need_locks
9705 11177
9706# Do we need the lib prefix for modules? 11178# Do we need the lib prefix for modules?
@@ -9943,11 +11415,11 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
9943CC="$lt_save_CC" 11415CC="$lt_save_CC"
9944 11416
9945 11417
9946# Check whether --with-tags or --without-tags was given. 11418# Check whether --with-tags was given.
9947if test "${with_tags+set}" = set; then 11419if test "${with_tags+set}" = set; then
9948 withval="$with_tags" 11420 withval=$with_tags; tagnames="$withval"
9949 tagnames="$withval" 11421fi
9950fi; 11422
9951 11423
9952if test -f "$ltmain" && test -n "$tagnames"; then 11424if test -f "$ltmain" && test -n "$tagnames"; then
9953 if test ! -f "${ofile}"; then 11425 if test ! -f "${ofile}"; then
@@ -9965,6 +11437,9 @@ echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script
9965echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11437echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9966 fi 11438 fi
9967 fi 11439 fi
11440 if test -z "$LTCFLAGS"; then
11441 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11442 fi
9968 11443
9969 # Extract list of available tagged configurations in $ofile. 11444 # Extract list of available tagged configurations in $ofile.
9970 # Note that this assumes the entire list is on one line. 11445 # Note that this assumes the entire list is on one line.
@@ -9995,8 +11470,10 @@ echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9995 11470
9996 case $tagname in 11471 case $tagname in
9997 CXX) 11472 CXX)
9998 if test -n "$CXX" && test "X$CXX" != "Xno"; then 11473 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9999 ac_ext=cc 11474 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11475 (test "X$CXX" != "Xg++"))) ; then
11476 ac_ext=cpp
10000ac_cpp='$CXXCPP $CPPFLAGS' 11477ac_cpp='$CXXCPP $CPPFLAGS'
10001ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11478ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10002ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11479ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
@@ -10015,6 +11492,7 @@ hardcode_libdir_flag_spec_CXX=
10015hardcode_libdir_flag_spec_ld_CXX= 11492hardcode_libdir_flag_spec_ld_CXX=
10016hardcode_libdir_separator_CXX= 11493hardcode_libdir_separator_CXX=
10017hardcode_minus_L_CXX=no 11494hardcode_minus_L_CXX=no
11495hardcode_shlibpath_var_CXX=unsupported
10018hardcode_automatic_CXX=no 11496hardcode_automatic_CXX=no
10019module_cmds_CXX= 11497module_cmds_CXX=
10020module_expsym_cmds_CXX= 11498module_expsym_cmds_CXX=
@@ -10032,7 +11510,7 @@ postdeps_CXX=
10032compiler_lib_search_path_CXX= 11510compiler_lib_search_path_CXX=
10033 11511
10034# Source file extension for C++ test sources. 11512# Source file extension for C++ test sources.
10035ac_ext=cc 11513ac_ext=cpp
10036 11514
10037# Object file extension for compiled C++ test sources. 11515# Object file extension for compiled C++ test sources.
10038objext=o 11516objext=o
@@ -10042,17 +11520,34 @@ objext_CXX=$objext
10042lt_simple_compile_test_code="int some_variable = 0;\n" 11520lt_simple_compile_test_code="int some_variable = 0;\n"
10043 11521
10044# Code to be used in simple link tests 11522# Code to be used in simple link tests
10045lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 11523lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10046 11524
10047# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11525# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10048 11526
10049# If no C compiler was specified, use CC. 11527# If no C compiler was specified, use CC.
10050LTCC=${LTCC-"$CC"} 11528LTCC=${LTCC-"$CC"}
10051 11529
11530# If no C compiler flags were specified, use CFLAGS.
11531LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11532
10052# Allow CC to be a program name with arguments. 11533# Allow CC to be a program name with arguments.
10053compiler=$CC 11534compiler=$CC
10054 11535
10055 11536
11537# save warnings/boilerplate of simple test code
11538ac_outfile=conftest.$ac_objext
11539printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11540eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11541_lt_compiler_boilerplate=`cat conftest.err`
11542$rm conftest*
11543
11544ac_outfile=conftest.$ac_objext
11545printf "$lt_simple_link_test_code" >conftest.$ac_ext
11546eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11547_lt_linker_boilerplate=`cat conftest.err`
11548$rm conftest*
11549
11550
10056# Allow CC to be a program name with arguments. 11551# Allow CC to be a program name with arguments.
10057lt_save_CC=$CC 11552lt_save_CC=$CC
10058lt_save_LD=$LD 11553lt_save_LD=$LD
@@ -10063,18 +11558,27 @@ lt_save_path_LD=$lt_cv_path_LD
10063if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11558if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10064 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11559 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10065else 11560else
10066 unset lt_cv_prog_gnu_ld 11561 $as_unset lt_cv_prog_gnu_ld
10067fi 11562fi
10068if test -n "${lt_cv_path_LDCXX+set}"; then 11563if test -n "${lt_cv_path_LDCXX+set}"; then
10069 lt_cv_path_LD=$lt_cv_path_LDCXX 11564 lt_cv_path_LD=$lt_cv_path_LDCXX
10070else 11565else
10071 unset lt_cv_path_LD 11566 $as_unset lt_cv_path_LD
10072fi 11567fi
10073test -z "${LDCXX+set}" || LD=$LDCXX 11568test -z "${LDCXX+set}" || LD=$LDCXX
10074CC=${CXX-"c++"} 11569CC=${CXX-"c++"}
10075compiler=$CC 11570compiler=$CC
10076compiler_CXX=$CC 11571compiler_CXX=$CC
10077cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 11572for cc_temp in $compiler""; do
11573 case $cc_temp in
11574 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11575 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11576 \-*) ;;
11577 *) break;;
11578 esac
11579done
11580cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11581
10078 11582
10079# We don't want -fno-exception wen compiling C++ code, so set the 11583# We don't want -fno-exception wen compiling C++ code, so set the
10080# no_builtin_flag separately 11584# no_builtin_flag separately
@@ -10088,18 +11592,18 @@ if test "$GXX" = yes; then
10088 # Set up default GNU C++ configuration 11592 # Set up default GNU C++ configuration
10089 11593
10090 11594
10091# Check whether --with-gnu-ld or --without-gnu-ld was given. 11595# Check whether --with-gnu-ld was given.
10092if test "${with_gnu_ld+set}" = set; then 11596if test "${with_gnu_ld+set}" = set; then
10093 withval="$with_gnu_ld" 11597 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10094 test "$withval" = no || with_gnu_ld=yes
10095else 11598else
10096 with_gnu_ld=no 11599 with_gnu_ld=no
10097fi; 11600fi
11601
10098ac_prog=ld 11602ac_prog=ld
10099if test "$GCC" = yes; then 11603if test "$GCC" = yes; then
10100 # Check if gcc -print-prog-name=ld gives a path. 11604 # Check if gcc -print-prog-name=ld gives a path.
10101 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11605 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10102echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 11606echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10103 case $host in 11607 case $host in
10104 *-*-mingw*) 11608 *-*-mingw*)
10105 # gcc leaves a trailing carriage return which upsets mingw 11609 # gcc leaves a trailing carriage return which upsets mingw
@@ -10128,11 +11632,11 @@ echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10128 ;; 11632 ;;
10129 esac 11633 esac
10130elif test "$with_gnu_ld" = yes; then 11634elif test "$with_gnu_ld" = yes; then
10131 echo "$as_me:$LINENO: checking for GNU ld" >&5 11635 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10132echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 11636echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10133else 11637else
10134 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11638 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10135echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 11639echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10136fi 11640fi
10137if test "${lt_cv_path_LD+set}" = set; then 11641if test "${lt_cv_path_LD+set}" = set; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6 11642 echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -10145,7 +11649,7 @@ else
10145 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11649 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10146 lt_cv_path_LD="$ac_dir/$ac_prog" 11650 lt_cv_path_LD="$ac_dir/$ac_prog"
10147 # Check to see if the program is GNU ld. I'd rather use --version, 11651 # Check to see if the program is GNU ld. I'd rather use --version,
10148 # but apparently some GNU ld's only accept -v. 11652 # but apparently some variants of GNU ld only accept -v.
10149 # Break only if it was the GNU/non-GNU ld that we prefer. 11653 # Break only if it was the GNU/non-GNU ld that we prefer.
10150 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11654 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10151 *GNU* | *'with BFD'*) 11655 *GNU* | *'with BFD'*)
@@ -10165,21 +11669,21 @@ fi
10165 11669
10166LD="$lt_cv_path_LD" 11670LD="$lt_cv_path_LD"
10167if test -n "$LD"; then 11671if test -n "$LD"; then
10168 echo "$as_me:$LINENO: result: $LD" >&5 11672 { echo "$as_me:$LINENO: result: $LD" >&5
10169echo "${ECHO_T}$LD" >&6 11673echo "${ECHO_T}$LD" >&6; }
10170else 11674else
10171 echo "$as_me:$LINENO: result: no" >&5 11675 { echo "$as_me:$LINENO: result: no" >&5
10172echo "${ECHO_T}no" >&6 11676echo "${ECHO_T}no" >&6; }
10173fi 11677fi
10174test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11678test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10175echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11679echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10176 { (exit 1); exit 1; }; } 11680 { (exit 1); exit 1; }; }
10177echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11681{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10178echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 11682echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10179if test "${lt_cv_prog_gnu_ld+set}" = set; then 11683if test "${lt_cv_prog_gnu_ld+set}" = set; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6 11684 echo $ECHO_N "(cached) $ECHO_C" >&6
10181else 11685else
10182 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 11686 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10183case `$LD -v 2>&1 </dev/null` in 11687case `$LD -v 2>&1 </dev/null` in
10184*GNU* | *'with BFD'*) 11688*GNU* | *'with BFD'*)
10185 lt_cv_prog_gnu_ld=yes 11689 lt_cv_prog_gnu_ld=yes
@@ -10189,8 +11693,8 @@ case `$LD -v 2>&1 </dev/null` in
10189 ;; 11693 ;;
10190esac 11694esac
10191fi 11695fi
10192echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11696{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10193echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 11697echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10194with_gnu_ld=$lt_cv_prog_gnu_ld 11698with_gnu_ld=$lt_cv_prog_gnu_ld
10195 11699
10196 11700
@@ -10240,8 +11744,8 @@ else
10240fi 11744fi
10241 11745
10242# PORTME: fill in a description of your system's C++ link characteristics 11746# PORTME: fill in a description of your system's C++ link characteristics
10243echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11747{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10244echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11748echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10245ld_shlibs_CXX=yes 11749ld_shlibs_CXX=yes
10246case $host_os in 11750case $host_os in
10247 aix3*) 11751 aix3*)
@@ -10270,6 +11774,7 @@ case $host_os in
10270 ;; 11774 ;;
10271 esac 11775 esac
10272 done 11776 done
11777 ;;
10273 esac 11778 esac
10274 11779
10275 exp_sym_flag='-bexport' 11780 exp_sym_flag='-bexport'
@@ -10288,7 +11793,7 @@ case $host_os in
10288 link_all_deplibs_CXX=yes 11793 link_all_deplibs_CXX=yes
10289 11794
10290 if test "$GXX" = yes; then 11795 if test "$GXX" = yes; then
10291 case $host_os in aix4.012|aix4.012.*) 11796 case $host_os in aix4.[012]|aix4.[012].*)
10292 # We only want to do this on AIX 4.2 and lower, the check 11797 # We only want to do this on AIX 4.2 and lower, the check
10293 # below for broken collect2 doesn't work under 4.3+ 11798 # below for broken collect2 doesn't work under 4.3+
10294 collect2name=`${CC} -print-prog-name=collect2` 11799 collect2name=`${CC} -print-prog-name=collect2`
@@ -10307,8 +11812,12 @@ case $host_os in
10307 hardcode_libdir_flag_spec_CXX='-L$libdir' 11812 hardcode_libdir_flag_spec_CXX='-L$libdir'
10308 hardcode_libdir_separator_CXX= 11813 hardcode_libdir_separator_CXX=
10309 fi 11814 fi
11815 ;;
10310 esac 11816 esac
10311 shared_flag='-shared' 11817 shared_flag='-shared'
11818 if test "$aix_use_runtimelinking" = yes; then
11819 shared_flag="$shared_flag "'${wl}-G'
11820 fi
10312 else 11821 else
10313 # not using gcc 11822 # not using gcc
10314 if test "$host_cpu" = ia64; then 11823 if test "$host_cpu" = ia64; then
@@ -10348,23 +11857,36 @@ main ()
10348} 11857}
10349_ACEOF 11858_ACEOF
10350rm -f conftest.$ac_objext conftest$ac_exeext 11859rm -f conftest.$ac_objext conftest$ac_exeext
10351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11860if { (ac_try="$ac_link"
10352 (eval $ac_link) 2>conftest.er1 11861case "(($ac_try" in
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11864esac
11865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866 (eval "$ac_link") 2>conftest.er1
10353 ac_status=$? 11867 ac_status=$?
10354 grep -v '^ *+' conftest.er1 >conftest.err 11868 grep -v '^ *+' conftest.er1 >conftest.err
10355 rm -f conftest.er1 11869 rm -f conftest.er1
10356 cat conftest.err >&5 11870 cat conftest.err >&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); } && 11872 (exit $ac_status); } &&
10359 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11873 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11874 { (case "(($ac_try" in
10361 (eval $ac_try) 2>&5 11875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11876 *) ac_try_echo=$ac_try;;
11877esac
11878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11879 (eval "$ac_try") 2>&5
10362 ac_status=$? 11880 ac_status=$?
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); }; } && 11882 (exit $ac_status); }; } &&
10365 { ac_try='test -s conftest$ac_exeext' 11883 { ac_try='test -s conftest$ac_exeext'
10366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11884 { (case "(($ac_try" in
10367 (eval $ac_try) 2>&5 11885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886 *) ac_try_echo=$ac_try;;
11887esac
11888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889 (eval "$ac_try") 2>&5
10368 ac_status=$? 11890 ac_status=$?
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; }; then 11892 (exit $ac_status); }; }; then
@@ -10378,19 +11900,21 @@ else
10378 echo "$as_me: failed program was:" >&5 11900 echo "$as_me: failed program was:" >&5
10379sed 's/^/| /' conftest.$ac_ext >&5 11901sed 's/^/| /' conftest.$ac_ext >&5
10380 11902
11903
10381fi 11904fi
10382rm -f conftest.err conftest.$ac_objext \ 11905
11906rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10383 conftest$ac_exeext conftest.$ac_ext 11907 conftest$ac_exeext conftest.$ac_ext
10384if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11908if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10385 11909
10386 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11910 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10387 11911
10388 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11912 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10389 else 11913 else
10390 if test "$host_cpu" = ia64; then 11914 if test "$host_cpu" = ia64; then
10391 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11915 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10392 allow_undefined_flag_CXX="-z nodefs" 11916 allow_undefined_flag_CXX="-z nodefs"
10393 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 11917 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10394 else 11918 else
10395 # Determine the default libpath from the value encoded in an empty executable. 11919 # Determine the default libpath from the value encoded in an empty executable.
10396 cat >conftest.$ac_ext <<_ACEOF 11920 cat >conftest.$ac_ext <<_ACEOF
@@ -10409,23 +11933,36 @@ main ()
10409} 11933}
10410_ACEOF 11934_ACEOF
10411rm -f conftest.$ac_objext conftest$ac_exeext 11935rm -f conftest.$ac_objext conftest$ac_exeext
10412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11936if { (ac_try="$ac_link"
10413 (eval $ac_link) 2>conftest.er1 11937case "(($ac_try" in
11938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939 *) ac_try_echo=$ac_try;;
11940esac
11941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11942 (eval "$ac_link") 2>conftest.er1
10414 ac_status=$? 11943 ac_status=$?
10415 grep -v '^ *+' conftest.er1 >conftest.err 11944 grep -v '^ *+' conftest.er1 >conftest.err
10416 rm -f conftest.er1 11945 rm -f conftest.er1
10417 cat conftest.err >&5 11946 cat conftest.err >&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); } && 11948 (exit $ac_status); } &&
10420 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11949 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11950 { (case "(($ac_try" in
10422 (eval $ac_try) 2>&5 11951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952 *) ac_try_echo=$ac_try;;
11953esac
11954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11955 (eval "$ac_try") 2>&5
10423 ac_status=$? 11956 ac_status=$?
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); }; } && 11958 (exit $ac_status); }; } &&
10426 { ac_try='test -s conftest$ac_exeext' 11959 { ac_try='test -s conftest$ac_exeext'
10427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11960 { (case "(($ac_try" in
10428 (eval $ac_try) 2>&5 11961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962 *) ac_try_echo=$ac_try;;
11963esac
11964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11965 (eval "$ac_try") 2>&5
10429 ac_status=$? 11966 ac_status=$?
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); }; }; then 11968 (exit $ac_status); }; }; then
@@ -10439,8 +11976,10 @@ else
10439 echo "$as_me: failed program was:" >&5 11976 echo "$as_me: failed program was:" >&5
10440sed 's/^/| /' conftest.$ac_ext >&5 11977sed 's/^/| /' conftest.$ac_ext >&5
10441 11978
11979
10442fi 11980fi
10443rm -f conftest.err conftest.$ac_objext \ 11981
11982rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10444 conftest$ac_exeext conftest.$ac_ext 11983 conftest$ac_exeext conftest.$ac_ext
10445if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11984if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10446 11985
@@ -10449,16 +11988,26 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10449 # -berok will link without error, but may produce a broken library. 11988 # -berok will link without error, but may produce a broken library.
10450 no_undefined_flag_CXX=' ${wl}-bernotok' 11989 no_undefined_flag_CXX=' ${wl}-bernotok'
10451 allow_undefined_flag_CXX=' ${wl}-berok' 11990 allow_undefined_flag_CXX=' ${wl}-berok'
10452 # -bexpall does not export symbols beginning with underscore (_)
10453 always_export_symbols_CXX=yes
10454 # Exported symbols can be pulled into shared objects from archives 11991 # Exported symbols can be pulled into shared objects from archives
10455 whole_archive_flag_spec_CXX=' ' 11992 whole_archive_flag_spec_CXX='$convenience'
10456 archive_cmds_need_lc_CXX=yes 11993 archive_cmds_need_lc_CXX=yes
10457 # This is similar to how AIX traditionally builds it's shared libraries. 11994 # This is similar to how AIX traditionally builds its shared libraries.
10458 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 11995 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10459 fi 11996 fi
10460 fi 11997 fi
10461 ;; 11998 ;;
11999
12000 beos*)
12001 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12002 allow_undefined_flag_CXX=unsupported
12003 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12004 # support --undefined. This deserves some investigation. FIXME
12005 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12006 else
12007 ld_shlibs_CXX=no
12008 fi
12009 ;;
12010
10462 chorus*) 12011 chorus*)
10463 case $cc_basename in 12012 case $cc_basename in
10464 *) 12013 *)
@@ -10477,7 +12026,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10477 enable_shared_with_static_runtimes_CXX=yes 12026 enable_shared_with_static_runtimes_CXX=yes
10478 12027
10479 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 12028 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10480 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 12029 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10481 # If the export-symbols file already is a .def file (1st line 12030 # If the export-symbols file already is a .def file (1st line
10482 # is EXPORTS), use it as is; otherwise, prepend... 12031 # is EXPORTS), use it as is; otherwise, prepend...
10483 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12032 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
@@ -10486,70 +12035,81 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10486 echo EXPORTS > $output_objdir/$soname.def; 12035 echo EXPORTS > $output_objdir/$soname.def;
10487 cat $export_symbols >> $output_objdir/$soname.def; 12036 cat $export_symbols >> $output_objdir/$soname.def;
10488 fi~ 12037 fi~
10489 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 12038 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10490 else 12039 else
10491 ld_shlibs_CXX=no 12040 ld_shlibs_CXX=no
10492 fi 12041 fi
10493 ;; 12042 ;;
12043 darwin* | rhapsody*)
12044 case $host_os in
12045 rhapsody* | darwin1.[012])
12046 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12047 ;;
12048 *) # Darwin 1.3 on
12049 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12050 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12051 else
12052 case ${MACOSX_DEPLOYMENT_TARGET} in
12053 10.[012])
12054 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12055 ;;
12056 10.*)
12057 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12058 ;;
12059 esac
12060 fi
12061 ;;
12062 esac
12063 archive_cmds_need_lc_CXX=no
12064 hardcode_direct_CXX=no
12065 hardcode_automatic_CXX=yes
12066 hardcode_shlibpath_var_CXX=unsupported
12067 whole_archive_flag_spec_CXX=''
12068 link_all_deplibs_CXX=yes
10494 12069
10495 darwin* | rhapsody*) 12070 if test "$GXX" = yes ; then
10496 if test "$GXX" = yes; then 12071 lt_int_apple_cc_single_mod=no
10497 archive_cmds_need_lc_CXX=no 12072 output_verbose_link_cmd='echo'
10498 case "$host_os" in 12073 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10499 rhapsody* | darwin1.[012]) 12074 lt_int_apple_cc_single_mod=yes
10500 allow_undefined_flag_CXX='-undefined suppress' 12075 fi
10501 ;; 12076 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10502 *) # Darwin 1.3 on 12077 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10503 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10504 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10505 else 12078 else
10506 case ${MACOSX_DEPLOYMENT_TARGET} in 12079 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10507 10.[012]) 12080 fi
10508 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 12081 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10509 ;; 12082 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10510 10.*) 12083 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10511 allow_undefined_flag_CXX='-undefined dynamic_lookup' 12084 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10512 ;; 12085 else
10513 esac 12086 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12087 fi
12088 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12089 else
12090 case $cc_basename in
12091 xlc*)
12092 output_verbose_link_cmd='echo'
12093 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12094 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12095 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12096 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12097 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12098 ;;
12099 *)
12100 ld_shlibs_CXX=no
12101 ;;
12102 esac
10514 fi 12103 fi
10515 ;; 12104 ;;
10516 esac
10517 lt_int_apple_cc_single_mod=no
10518 output_verbose_link_cmd='echo'
10519 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10520 lt_int_apple_cc_single_mod=yes
10521 fi
10522 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10523 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10524 else
10525 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10526 fi
10527 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10528
10529 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10530 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10531 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10532 else
10533 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10534 fi
10535 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10536 hardcode_direct_CXX=no
10537 hardcode_automatic_CXX=yes
10538 hardcode_shlibpath_var_CXX=unsupported
10539 whole_archive_flag_spec_CXX='-all_load $convenience'
10540 link_all_deplibs_CXX=yes
10541 else
10542 ld_shlibs_CXX=no
10543 fi
10544 ;;
10545 12105
10546 dgux*) 12106 dgux*)
10547 case $cc_basename in 12107 case $cc_basename in
10548 ec++) 12108 ec++*)
10549 # FIXME: insert proper C++ library support 12109 # FIXME: insert proper C++ library support
10550 ld_shlibs_CXX=no 12110 ld_shlibs_CXX=no
10551 ;; 12111 ;;
10552 ghcx) 12112 ghcx*)
10553 # Green Hills C++ Compiler 12113 # Green Hills C++ Compiler
10554 # FIXME: insert proper C++ library support 12114 # FIXME: insert proper C++ library support
10555 ld_shlibs_CXX=no 12115 ld_shlibs_CXX=no
@@ -10560,14 +12120,14 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10560 ;; 12120 ;;
10561 esac 12121 esac
10562 ;; 12122 ;;
10563 freebsd12*) 12123 freebsd[12]*)
10564 # C++ shared libraries reported to be fairly broken before switch to ELF 12124 # C++ shared libraries reported to be fairly broken before switch to ELF
10565 ld_shlibs_CXX=no 12125 ld_shlibs_CXX=no
10566 ;; 12126 ;;
10567 freebsd-elf*) 12127 freebsd-elf*)
10568 archive_cmds_need_lc_CXX=no 12128 archive_cmds_need_lc_CXX=no
10569 ;; 12129 ;;
10570 freebsd* | kfreebsd*-gnu) 12130 freebsd* | dragonfly*)
10571 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12131 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10572 # conventions 12132 # conventions
10573 ld_shlibs_CXX=yes 12133 ld_shlibs_CXX=yes
@@ -10584,11 +12144,11 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10584 # location of the library. 12144 # location of the library.
10585 12145
10586 case $cc_basename in 12146 case $cc_basename in
10587 CC) 12147 CC*)
10588 # FIXME: insert proper C++ library support 12148 # FIXME: insert proper C++ library support
10589 ld_shlibs_CXX=no 12149 ld_shlibs_CXX=no
10590 ;; 12150 ;;
10591 aCC) 12151 aCC*)
10592 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12152 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10593 # Commands to make compiler produce verbose output that lists 12153 # Commands to make compiler produce verbose output that lists
10594 # what "hidden" libraries, object files and flags are used when 12154 # what "hidden" libraries, object files and flags are used when
@@ -10598,7 +12158,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10598 # explicitly linking system object files so we need to strip them 12158 # explicitly linking system object files so we need to strip them
10599 # from the output so that they don't get included in the library 12159 # from the output so that they don't get included in the library
10600 # dependencies. 12160 # dependencies.
10601 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12161 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10602 ;; 12162 ;;
10603 *) 12163 *)
10604 if test "$GXX" = yes; then 12164 if test "$GXX" = yes; then
@@ -10612,33 +12172,22 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10612 ;; 12172 ;;
10613 hpux10*|hpux11*) 12173 hpux10*|hpux11*)
10614 if test $with_gnu_ld = no; then 12174 if test $with_gnu_ld = no; then
10615 case "$host_cpu" in 12175 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10616 hppa*64*) 12176 hardcode_libdir_separator_CXX=:
10617 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12177
12178 case $host_cpu in
12179 hppa*64*|ia64*)
10618 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 12180 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10619 hardcode_libdir_separator_CXX=:
10620 ;;
10621 ia64*)
10622 hardcode_libdir_flag_spec_CXX='-L$libdir'
10623 ;; 12181 ;;
10624 *) 12182 *)
10625 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10626 hardcode_libdir_separator_CXX=:
10627 export_dynamic_flag_spec_CXX='${wl}-E' 12183 export_dynamic_flag_spec_CXX='${wl}-E'
10628 ;; 12184 ;;
10629 esac 12185 esac
10630 fi 12186 fi
10631 case "$host_cpu" in 12187 case $host_cpu in
10632 hppa*64*) 12188 hppa*64*|ia64*)
10633 hardcode_direct_CXX=no
10634 hardcode_shlibpath_var_CXX=no
10635 ;;
10636 ia64*)
10637 hardcode_direct_CXX=no 12189 hardcode_direct_CXX=no
10638 hardcode_shlibpath_var_CXX=no 12190 hardcode_shlibpath_var_CXX=no
10639 hardcode_minus_L_CXX=yes # Not in the search PATH,
10640 # but as the default
10641 # location of the library.
10642 ;; 12191 ;;
10643 *) 12192 *)
10644 hardcode_direct_CXX=yes 12193 hardcode_direct_CXX=yes
@@ -10649,14 +12198,17 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10649 esac 12198 esac
10650 12199
10651 case $cc_basename in 12200 case $cc_basename in
10652 CC) 12201 CC*)
10653 # FIXME: insert proper C++ library support 12202 # FIXME: insert proper C++ library support
10654 ld_shlibs_CXX=no 12203 ld_shlibs_CXX=no
10655 ;; 12204 ;;
10656 aCC) 12205 aCC*)
10657 case "$host_cpu" in 12206 case $host_cpu in
10658 hppa*64*|ia64*) 12207 hppa*64*)
10659 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 12208 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12209 ;;
12210 ia64*)
12211 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10660 ;; 12212 ;;
10661 *) 12213 *)
10662 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12214 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
@@ -10675,9 +12227,12 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10675 *) 12227 *)
10676 if test "$GXX" = yes; then 12228 if test "$GXX" = yes; then
10677 if test $with_gnu_ld = no; then 12229 if test $with_gnu_ld = no; then
10678 case "$host_cpu" in 12230 case $host_cpu in
10679 ia64*|hppa*64*) 12231 hppa*64*)
10680 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 12232 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12233 ;;
12234 ia64*)
12235 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10681 ;; 12236 ;;
10682 *) 12237 *)
10683 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12238 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
@@ -10691,11 +12246,25 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10691 ;; 12246 ;;
10692 esac 12247 esac
10693 ;; 12248 ;;
12249 interix3*)
12250 hardcode_direct_CXX=no
12251 hardcode_shlibpath_var_CXX=no
12252 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12253 export_dynamic_flag_spec_CXX='${wl}-E'
12254 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12255 # Instead, shared libraries are loaded at an image base (0x10000000 by
12256 # default) and relocated if they conflict, which is a slow very memory
12257 # consuming and fragmenting process. To avoid this, we pick a random,
12258 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12259 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12260 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12261 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12262 ;;
10694 irix5* | irix6*) 12263 irix5* | irix6*)
10695 case $cc_basename in 12264 case $cc_basename in
10696 CC) 12265 CC*)
10697 # SGI C++ 12266 # SGI C++
10698 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 12267 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10699 12268
10700 # Archives containing C++ object files must be created using 12269 # Archives containing C++ object files must be created using
10701 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12270 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
@@ -10706,7 +12275,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10706 *) 12275 *)
10707 if test "$GXX" = yes; then 12276 if test "$GXX" = yes; then
10708 if test "$with_gnu_ld" = no; then 12277 if test "$with_gnu_ld" = no; then
10709 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 12278 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10710 else 12279 else
10711 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 12280 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10712 fi 12281 fi
@@ -10717,9 +12286,9 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10717 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12286 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10718 hardcode_libdir_separator_CXX=: 12287 hardcode_libdir_separator_CXX=:
10719 ;; 12288 ;;
10720 linux*) 12289 linux* | k*bsd*-gnu)
10721 case $cc_basename in 12290 case $cc_basename in
10722 KCC) 12291 KCC*)
10723 # Kuck and Associates, Inc. (KAI) C++ Compiler 12292 # Kuck and Associates, Inc. (KAI) C++ Compiler
10724 12293
10725 # KCC will only create a shared library if the output file 12294 # KCC will only create a shared library if the output file
@@ -10744,17 +12313,41 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10744 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12313 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10745 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12314 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10746 ;; 12315 ;;
10747 icpc) 12316 icpc*)
10748 # Intel C++ 12317 # Intel C++
10749 with_gnu_ld=yes 12318 with_gnu_ld=yes
12319 # version 8.0 and above of icpc choke on multiply defined symbols
12320 # if we add $predep_objects and $postdep_objects, however 7.1 and
12321 # earlier do not add the objects themselves.
12322 case `$CC -V 2>&1` in
12323 *"Version 7."*)
12324 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12325 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12326 ;;
12327 *) # Version 8.0 or newer
12328 tmp_idyn=
12329 case $host_cpu in
12330 ia64*) tmp_idyn=' -i_dynamic';;
12331 esac
12332 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12333 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12334 ;;
12335 esac
10750 archive_cmds_need_lc_CXX=no 12336 archive_cmds_need_lc_CXX=no
10751 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10752 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10753 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12337 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10754 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12338 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10755 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12339 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10756 ;; 12340 ;;
10757 cxx) 12341 pgCC*)
12342 # Portland Group C++ compiler
12343 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12344 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12345
12346 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12347 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12348 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12349 ;;
12350 cxx*)
10758 # Compaq C++ 12351 # Compaq C++
10759 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12352 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10760 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 12353 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
@@ -10785,7 +12378,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10785 ;; 12378 ;;
10786 mvs*) 12379 mvs*)
10787 case $cc_basename in 12380 case $cc_basename in
10788 cxx) 12381 cxx*)
10789 # FIXME: insert proper C++ library support 12382 # FIXME: insert proper C++ library support
10790 ld_shlibs_CXX=no 12383 ld_shlibs_CXX=no
10791 ;; 12384 ;;
@@ -10795,7 +12388,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10795 ;; 12388 ;;
10796 esac 12389 esac
10797 ;; 12390 ;;
10798 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 12391 netbsd* | netbsdelf*-gnu)
10799 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12392 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10800 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12393 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10801 wlarc= 12394 wlarc=
@@ -10806,9 +12399,25 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10806 # Workaround some broken pre-1.5 toolchains 12399 # Workaround some broken pre-1.5 toolchains
10807 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12400 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10808 ;; 12401 ;;
12402 openbsd2*)
12403 # C++ shared libraries are fairly broken
12404 ld_shlibs_CXX=no
12405 ;;
12406 openbsd*)
12407 hardcode_direct_CXX=yes
12408 hardcode_shlibpath_var_CXX=no
12409 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12410 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12411 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12412 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12413 export_dynamic_flag_spec_CXX='${wl}-E'
12414 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12415 fi
12416 output_verbose_link_cmd='echo'
12417 ;;
10809 osf3*) 12418 osf3*)
10810 case $cc_basename in 12419 case $cc_basename in
10811 KCC) 12420 KCC*)
10812 # Kuck and Associates, Inc. (KAI) C++ Compiler 12421 # Kuck and Associates, Inc. (KAI) C++ Compiler
10813 12422
10814 # KCC will only create a shared library if the output file 12423 # KCC will only create a shared library if the output file
@@ -10824,14 +12433,14 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10824 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12433 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10825 12434
10826 ;; 12435 ;;
10827 RCC) 12436 RCC*)
10828 # Rational C++ 2.4.1 12437 # Rational C++ 2.4.1
10829 # FIXME: insert proper C++ library support 12438 # FIXME: insert proper C++ library support
10830 ld_shlibs_CXX=no 12439 ld_shlibs_CXX=no
10831 ;; 12440 ;;
10832 cxx) 12441 cxx*)
10833 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12442 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10834 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 12443 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10835 12444
10836 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12445 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10837 hardcode_libdir_separator_CXX=: 12446 hardcode_libdir_separator_CXX=:
@@ -10849,7 +12458,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10849 *) 12458 *)
10850 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12459 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10851 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12460 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10852 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 12461 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10853 12462
10854 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12463 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10855 hardcode_libdir_separator_CXX=: 12464 hardcode_libdir_separator_CXX=:
@@ -10868,7 +12477,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10868 ;; 12477 ;;
10869 osf4* | osf5*) 12478 osf4* | osf5*)
10870 case $cc_basename in 12479 case $cc_basename in
10871 KCC) 12480 KCC*)
10872 # Kuck and Associates, Inc. (KAI) C++ Compiler 12481 # Kuck and Associates, Inc. (KAI) C++ Compiler
10873 12482
10874 # KCC will only create a shared library if the output file 12483 # KCC will only create a shared library if the output file
@@ -10883,17 +12492,17 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10883 # the KAI C++ compiler. 12492 # the KAI C++ compiler.
10884 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12493 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10885 ;; 12494 ;;
10886 RCC) 12495 RCC*)
10887 # Rational C++ 2.4.1 12496 # Rational C++ 2.4.1
10888 # FIXME: insert proper C++ library support 12497 # FIXME: insert proper C++ library support
10889 ld_shlibs_CXX=no 12498 ld_shlibs_CXX=no
10890 ;; 12499 ;;
10891 cxx) 12500 cxx*)
10892 allow_undefined_flag_CXX=' -expect_unresolved \*' 12501 allow_undefined_flag_CXX=' -expect_unresolved \*'
10893 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 12502 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10894 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12503 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10895 echo "-hidden">> $lib.exp~ 12504 echo "-hidden">> $lib.exp~
10896 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ 12505 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10897 $rm $lib.exp' 12506 $rm $lib.exp'
10898 12507
10899 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12508 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
@@ -10912,7 +12521,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10912 *) 12521 *)
10913 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12522 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10914 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12523 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10915 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 12524 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10916 12525
10917 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12526 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10918 hardcode_libdir_separator_CXX=: 12527 hardcode_libdir_separator_CXX=:
@@ -10933,27 +12542,14 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10933 # FIXME: insert proper C++ library support 12542 # FIXME: insert proper C++ library support
10934 ld_shlibs_CXX=no 12543 ld_shlibs_CXX=no
10935 ;; 12544 ;;
10936 sco*)
10937 archive_cmds_need_lc_CXX=no
10938 case $cc_basename in
10939 CC)
10940 # FIXME: insert proper C++ library support
10941 ld_shlibs_CXX=no
10942 ;;
10943 *)
10944 # FIXME: insert proper C++ library support
10945 ld_shlibs_CXX=no
10946 ;;
10947 esac
10948 ;;
10949 sunos4*) 12545 sunos4*)
10950 case $cc_basename in 12546 case $cc_basename in
10951 CC) 12547 CC*)
10952 # Sun C++ 4.x 12548 # Sun C++ 4.x
10953 # FIXME: insert proper C++ library support 12549 # FIXME: insert proper C++ library support
10954 ld_shlibs_CXX=no 12550 ld_shlibs_CXX=no
10955 ;; 12551 ;;
10956 lcc) 12552 lcc*)
10957 # Lucid 12553 # Lucid
10958 # FIXME: insert proper C++ library support 12554 # FIXME: insert proper C++ library support
10959 ld_shlibs_CXX=no 12555 ld_shlibs_CXX=no
@@ -10966,36 +12562,33 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10966 ;; 12562 ;;
10967 solaris*) 12563 solaris*)
10968 case $cc_basename in 12564 case $cc_basename in
10969 CC) 12565 CC*)
10970 # Sun C++ 4.2, 5.x and Centerline C++ 12566 # Sun C++ 4.2, 5.x and Centerline C++
12567 archive_cmds_need_lc_CXX=yes
10971 no_undefined_flag_CXX=' -zdefs' 12568 no_undefined_flag_CXX=' -zdefs'
10972 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12569 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10973 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12570 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10974 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12571 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10975 12572
10976 hardcode_libdir_flag_spec_CXX='-R$libdir' 12573 hardcode_libdir_flag_spec_CXX='-R$libdir'
10977 hardcode_shlibpath_var_CXX=no 12574 hardcode_shlibpath_var_CXX=no
10978 case $host_os in 12575 case $host_os in
10979 solaris2.0-5 | solaris2.0-5.*) ;; 12576 solaris2.[0-5] | solaris2.[0-5].*) ;;
10980 *) 12577 *)
10981 # The C++ compiler is used as linker so we must use $wl 12578 # The C++ compiler is used as linker so we must use $wl
10982 # flag to pass the commands to the underlying system 12579 # flag to pass the commands to the underlying system
10983 # linker. 12580 # linker. We must also pass each convience library through
12581 # to the system linker between allextract/defaultextract.
12582 # The C++ compiler will combine linker options so we
12583 # cannot just pass the convience library names through
12584 # without $wl.
10984 # Supported since Solaris 2.6 (maybe 2.5.1?) 12585 # Supported since Solaris 2.6 (maybe 2.5.1?)
10985 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12586 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10986 ;; 12587 ;;
10987 esac 12588 esac
10988 link_all_deplibs_CXX=yes 12589 link_all_deplibs_CXX=yes
10989 12590
10990 # Commands to make compiler produce verbose output that lists 12591 output_verbose_link_cmd='echo'
10991 # what "hidden" libraries, object files and flags are used when
10992 # linking a shared library.
10993 #
10994 # There doesn't appear to be a way to prevent this compiler from
10995 # explicitly linking system object files so we need to strip them
10996 # from the output so that they don't get included in the library
10997 # dependencies.
10998 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10999 12592
11000 # Archives containing C++ object files must be created using 12593 # Archives containing C++ object files must be created using
11001 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12594 # "CC -xar", where "CC" is the Sun C++ compiler. This is
@@ -11003,7 +12596,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11003 # in the archive. 12596 # in the archive.
11004 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12597 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11005 ;; 12598 ;;
11006 gcx) 12599 gcx*)
11007 # Green Hills C++ Compiler 12600 # Green Hills C++ Compiler
11008 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12601 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11009 12602
@@ -11041,12 +12634,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11041 ;; 12634 ;;
11042 esac 12635 esac
11043 ;; 12636 ;;
11044 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 12637 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12638 no_undefined_flag_CXX='${wl}-z,text'
12639 archive_cmds_need_lc_CXX=no
12640 hardcode_shlibpath_var_CXX=no
12641 runpath_var='LD_RUN_PATH'
12642
12643 case $cc_basename in
12644 CC*)
12645 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12646 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12647 ;;
12648 *)
12649 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12650 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12651 ;;
12652 esac
12653 ;;
12654 sysv5* | sco3.2v5* | sco5v6*)
12655 # Note: We can NOT use -z defs as we might desire, because we do not
12656 # link with -lc, and that would cause any symbols used from libc to
12657 # always be unresolved, which means just about no library would
12658 # ever link correctly. If we're not using GNU ld we use -z text
12659 # though, which does catch some bad symbols but isn't as heavy-handed
12660 # as -z defs.
12661 # For security reasons, it is highly recommended that you always
12662 # use absolute paths for naming shared libraries, and exclude the
12663 # DT_RUNPATH tag from executables and libraries. But doing so
12664 # requires that you compile everything twice, which is a pain.
12665 # So that behaviour is only enabled if SCOABSPATH is set to a
12666 # non-empty value in the environment. Most likely only useful for
12667 # creating official distributions of packages.
12668 # This is a hack until libtool officially supports absolute path
12669 # names for shared libraries.
12670 no_undefined_flag_CXX='${wl}-z,text'
12671 allow_undefined_flag_CXX='${wl}-z,nodefs'
11045 archive_cmds_need_lc_CXX=no 12672 archive_cmds_need_lc_CXX=no
12673 hardcode_shlibpath_var_CXX=no
12674 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12675 hardcode_libdir_separator_CXX=':'
12676 link_all_deplibs_CXX=yes
12677 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12678 runpath_var='LD_RUN_PATH'
12679
12680 case $cc_basename in
12681 CC*)
12682 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12683 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12684 ;;
12685 *)
12686 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12687 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12688 ;;
12689 esac
11046 ;; 12690 ;;
11047 tandem*) 12691 tandem*)
11048 case $cc_basename in 12692 case $cc_basename in
11049 NCC) 12693 NCC*)
11050 # NonStop-UX NCC 3.20 12694 # NonStop-UX NCC 3.20
11051 # FIXME: insert proper C++ library support 12695 # FIXME: insert proper C++ library support
11052 ld_shlibs_CXX=no 12696 ld_shlibs_CXX=no
@@ -11066,8 +12710,8 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11066 ld_shlibs_CXX=no 12710 ld_shlibs_CXX=no
11067 ;; 12711 ;;
11068esac 12712esac
11069echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12713{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11070echo "${ECHO_T}$ld_shlibs_CXX" >&6 12714echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11071test "$ld_shlibs_CXX" = no && can_build_shared=no 12715test "$ld_shlibs_CXX" = no && can_build_shared=no
11072 12716
11073GCC_CXX="$GXX" 12717GCC_CXX="$GXX"
@@ -11099,7 +12743,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11099 # The `*' in the case matches for architectures that use `case' in 12743 # The `*' in the case matches for architectures that use `case' in
11100 # $output_verbose_cmd can trigger glob expansion during the loop 12744 # $output_verbose_cmd can trigger glob expansion during the loop
11101 # eval without this substitution. 12745 # eval without this substitution.
11102 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 12746 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11103 12747
11104 for p in `eval $output_verbose_link_cmd`; do 12748 for p in `eval $output_verbose_link_cmd`; do
11105 case $p in 12749 case $p in
@@ -11175,6 +12819,29 @@ fi
11175 12819
11176$rm -f confest.$objext 12820$rm -f confest.$objext
11177 12821
12822# PORTME: override above test on systems where it is broken
12823case $host_os in
12824interix3*)
12825 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12826 # hack all around it, let's just trust "g++" to DTRT.
12827 predep_objects_CXX=
12828 postdep_objects_CXX=
12829 postdeps_CXX=
12830 ;;
12831
12832solaris*)
12833 case $cc_basename in
12834 CC*)
12835 # Adding this requires a known-good setup of shared libraries for
12836 # Sun compiler versions before 5.6, else PIC objects from an old
12837 # archive will be linked into the output, leading to subtle bugs.
12838 postdeps_CXX='-lCstd -lCrun'
12839 ;;
12840 esac
12841 ;;
12842esac
12843
12844
11178case " $postdeps_CXX " in 12845case " $postdeps_CXX " in
11179*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12846*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11180esac 12847esac
@@ -11183,8 +12850,8 @@ lt_prog_compiler_wl_CXX=
11183lt_prog_compiler_pic_CXX= 12850lt_prog_compiler_pic_CXX=
11184lt_prog_compiler_static_CXX= 12851lt_prog_compiler_static_CXX=
11185 12852
11186echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12853{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11187echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 12854echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11188 12855
11189 # C++ specific cases for pic, static, wl, etc. 12856 # C++ specific cases for pic, static, wl, etc.
11190 if test "$GXX" = yes; then 12857 if test "$GXX" = yes; then
@@ -11222,6 +12889,10 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11222 # DJGPP does not support shared libraries at all 12889 # DJGPP does not support shared libraries at all
11223 lt_prog_compiler_pic_CXX= 12890 lt_prog_compiler_pic_CXX=
11224 ;; 12891 ;;
12892 interix3*)
12893 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12894 # Instead, we relocate shared libraries at runtime.
12895 ;;
11225 sysv4*MP*) 12896 sysv4*MP*)
11226 if test -d /usr/nec; then 12897 if test -d /usr/nec; then
11227 lt_prog_compiler_pic_CXX=-Kconform_pic 12898 lt_prog_compiler_pic_CXX=-Kconform_pic
@@ -11230,7 +12901,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11230 hpux*) 12901 hpux*)
11231 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12902 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11232 # not for PA HP-UX. 12903 # not for PA HP-UX.
11233 case "$host_cpu" in 12904 case $host_cpu in
11234 hppa*64*|ia64*) 12905 hppa*64*|ia64*)
11235 ;; 12906 ;;
11236 *) 12907 *)
@@ -11255,18 +12926,28 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11255 ;; 12926 ;;
11256 chorus*) 12927 chorus*)
11257 case $cc_basename in 12928 case $cc_basename in
11258 cxch68) 12929 cxch68*)
11259 # Green Hills C++ Compiler 12930 # Green Hills C++ Compiler
11260 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 12931 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11261 ;; 12932 ;;
11262 esac 12933 esac
11263 ;; 12934 ;;
12935 darwin*)
12936 # PIC is the default on this platform
12937 # Common symbols not allowed in MH_DYLIB files
12938 case $cc_basename in
12939 xlc*)
12940 lt_prog_compiler_pic_CXX='-qnocommon'
12941 lt_prog_compiler_wl_CXX='-Wl,'
12942 ;;
12943 esac
12944 ;;
11264 dgux*) 12945 dgux*)
11265 case $cc_basename in 12946 case $cc_basename in
11266 ec++) 12947 ec++*)
11267 lt_prog_compiler_pic_CXX='-KPIC' 12948 lt_prog_compiler_pic_CXX='-KPIC'
11268 ;; 12949 ;;
11269 ghcx) 12950 ghcx*)
11270 # Green Hills C++ Compiler 12951 # Green Hills C++ Compiler
11271 lt_prog_compiler_pic_CXX='-pic' 12952 lt_prog_compiler_pic_CXX='-pic'
11272 ;; 12953 ;;
@@ -11274,22 +12955,22 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11274 ;; 12955 ;;
11275 esac 12956 esac
11276 ;; 12957 ;;
11277 freebsd* | kfreebsd*-gnu) 12958 freebsd* | dragonfly*)
11278 # FreeBSD uses GNU C++ 12959 # FreeBSD uses GNU C++
11279 ;; 12960 ;;
11280 hpux9* | hpux10* | hpux11*) 12961 hpux9* | hpux10* | hpux11*)
11281 case $cc_basename in 12962 case $cc_basename in
11282 CC) 12963 CC*)
11283 lt_prog_compiler_wl_CXX='-Wl,' 12964 lt_prog_compiler_wl_CXX='-Wl,'
11284 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 12965 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11285 if test "$host_cpu" != ia64; then 12966 if test "$host_cpu" != ia64; then
11286 lt_prog_compiler_pic_CXX='+Z' 12967 lt_prog_compiler_pic_CXX='+Z'
11287 fi 12968 fi
11288 ;; 12969 ;;
11289 aCC) 12970 aCC*)
11290 lt_prog_compiler_wl_CXX='-Wl,' 12971 lt_prog_compiler_wl_CXX='-Wl,'
11291 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 12972 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11292 case "$host_cpu" in 12973 case $host_cpu in
11293 hppa*64*|ia64*) 12974 hppa*64*|ia64*)
11294 # +Z the default 12975 # +Z the default
11295 ;; 12976 ;;
@@ -11302,9 +12983,13 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11302 ;; 12983 ;;
11303 esac 12984 esac
11304 ;; 12985 ;;
12986 interix*)
12987 # This is c89, which is MS Visual C++ (no shared libs)
12988 # Anyone wants to do a port?
12989 ;;
11305 irix5* | irix6* | nonstopux*) 12990 irix5* | irix6* | nonstopux*)
11306 case $cc_basename in 12991 case $cc_basename in
11307 CC) 12992 CC*)
11308 lt_prog_compiler_wl_CXX='-Wl,' 12993 lt_prog_compiler_wl_CXX='-Wl,'
11309 lt_prog_compiler_static_CXX='-non_shared' 12994 lt_prog_compiler_static_CXX='-non_shared'
11310 # CC pic flag -KPIC is the default. 12995 # CC pic flag -KPIC is the default.
@@ -11313,20 +12998,26 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11313 ;; 12998 ;;
11314 esac 12999 esac
11315 ;; 13000 ;;
11316 linux*) 13001 linux* | k*bsd*-gnu)
11317 case $cc_basename in 13002 case $cc_basename in
11318 KCC) 13003 KCC*)
11319 # KAI C++ Compiler 13004 # KAI C++ Compiler
11320 lt_prog_compiler_wl_CXX='--backend -Wl,' 13005 lt_prog_compiler_wl_CXX='--backend -Wl,'
11321 lt_prog_compiler_pic_CXX='-fPIC' 13006 lt_prog_compiler_pic_CXX='-fPIC'
11322 ;; 13007 ;;
11323 icpc) 13008 icpc* | ecpc*)
11324 # Intel C++ 13009 # Intel C++
11325 lt_prog_compiler_wl_CXX='-Wl,' 13010 lt_prog_compiler_wl_CXX='-Wl,'
11326 lt_prog_compiler_pic_CXX='-KPIC' 13011 lt_prog_compiler_pic_CXX='-KPIC'
11327 lt_prog_compiler_static_CXX='-static' 13012 lt_prog_compiler_static_CXX='-static'
11328 ;; 13013 ;;
11329 cxx) 13014 pgCC*)
13015 # Portland Group C++ compiler.
13016 lt_prog_compiler_wl_CXX='-Wl,'
13017 lt_prog_compiler_pic_CXX='-fpic'
13018 lt_prog_compiler_static_CXX='-Bstatic'
13019 ;;
13020 cxx*)
11330 # Compaq C++ 13021 # Compaq C++
11331 # Make sure the PIC flag is empty. It appears that all Alpha 13022 # Make sure the PIC flag is empty. It appears that all Alpha
11332 # Linux and Compaq Tru64 Unix objects are PIC. 13023 # Linux and Compaq Tru64 Unix objects are PIC.
@@ -11343,25 +13034,25 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11343 ;; 13034 ;;
11344 mvs*) 13035 mvs*)
11345 case $cc_basename in 13036 case $cc_basename in
11346 cxx) 13037 cxx*)
11347 lt_prog_compiler_pic_CXX='-W c,exportall' 13038 lt_prog_compiler_pic_CXX='-W c,exportall'
11348 ;; 13039 ;;
11349 *) 13040 *)
11350 ;; 13041 ;;
11351 esac 13042 esac
11352 ;; 13043 ;;
11353 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 13044 netbsd* | netbsdelf*-gnu)
11354 ;; 13045 ;;
11355 osf3* | osf4* | osf5*) 13046 osf3* | osf4* | osf5*)
11356 case $cc_basename in 13047 case $cc_basename in
11357 KCC) 13048 KCC*)
11358 lt_prog_compiler_wl_CXX='--backend -Wl,' 13049 lt_prog_compiler_wl_CXX='--backend -Wl,'
11359 ;; 13050 ;;
11360 RCC) 13051 RCC*)
11361 # Rational C++ 2.4.1 13052 # Rational C++ 2.4.1
11362 lt_prog_compiler_pic_CXX='-pic' 13053 lt_prog_compiler_pic_CXX='-pic'
11363 ;; 13054 ;;
11364 cxx) 13055 cxx*)
11365 # Digital/Compaq C++ 13056 # Digital/Compaq C++
11366 lt_prog_compiler_wl_CXX='-Wl,' 13057 lt_prog_compiler_wl_CXX='-Wl,'
11367 # Make sure the PIC flag is empty. It appears that all Alpha 13058 # Make sure the PIC flag is empty. It appears that all Alpha
@@ -11375,24 +13066,15 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11375 ;; 13066 ;;
11376 psos*) 13067 psos*)
11377 ;; 13068 ;;
11378 sco*)
11379 case $cc_basename in
11380 CC)
11381 lt_prog_compiler_pic_CXX='-fPIC'
11382 ;;
11383 *)
11384 ;;
11385 esac
11386 ;;
11387 solaris*) 13069 solaris*)
11388 case $cc_basename in 13070 case $cc_basename in
11389 CC) 13071 CC*)
11390 # Sun C++ 4.2, 5.x and Centerline C++ 13072 # Sun C++ 4.2, 5.x and Centerline C++
11391 lt_prog_compiler_pic_CXX='-KPIC' 13073 lt_prog_compiler_pic_CXX='-KPIC'
11392 lt_prog_compiler_static_CXX='-Bstatic' 13074 lt_prog_compiler_static_CXX='-Bstatic'
11393 lt_prog_compiler_wl_CXX='-Qoption ld ' 13075 lt_prog_compiler_wl_CXX='-Qoption ld '
11394 ;; 13076 ;;
11395 gcx) 13077 gcx*)
11396 # Green Hills C++ Compiler 13078 # Green Hills C++ Compiler
11397 lt_prog_compiler_pic_CXX='-PIC' 13079 lt_prog_compiler_pic_CXX='-PIC'
11398 ;; 13080 ;;
@@ -11402,12 +13084,12 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11402 ;; 13084 ;;
11403 sunos4*) 13085 sunos4*)
11404 case $cc_basename in 13086 case $cc_basename in
11405 CC) 13087 CC*)
11406 # Sun C++ 4.x 13088 # Sun C++ 4.x
11407 lt_prog_compiler_pic_CXX='-pic' 13089 lt_prog_compiler_pic_CXX='-pic'
11408 lt_prog_compiler_static_CXX='-Bstatic' 13090 lt_prog_compiler_static_CXX='-Bstatic'
11409 ;; 13091 ;;
11410 lcc) 13092 lcc*)
11411 # Lucid 13093 # Lucid
11412 lt_prog_compiler_pic_CXX='-pic' 13094 lt_prog_compiler_pic_CXX='-pic'
11413 ;; 13095 ;;
@@ -11417,7 +13099,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11417 ;; 13099 ;;
11418 tandem*) 13100 tandem*)
11419 case $cc_basename in 13101 case $cc_basename in
11420 NCC) 13102 NCC*)
11421 # NonStop-UX NCC 3.20 13103 # NonStop-UX NCC 3.20
11422 lt_prog_compiler_pic_CXX='-KPIC' 13104 lt_prog_compiler_pic_CXX='-KPIC'
11423 ;; 13105 ;;
@@ -11425,7 +13107,14 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11425 ;; 13107 ;;
11426 esac 13108 esac
11427 ;; 13109 ;;
11428 unixware*) 13110 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13111 case $cc_basename in
13112 CC*)
13113 lt_prog_compiler_wl_CXX='-Wl,'
13114 lt_prog_compiler_pic_CXX='-KPIC'
13115 lt_prog_compiler_static_CXX='-Bstatic'
13116 ;;
13117 esac
11429 ;; 13118 ;;
11430 vxworks*) 13119 vxworks*)
11431 ;; 13120 ;;
@@ -11435,16 +13124,16 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11435 esac 13124 esac
11436 fi 13125 fi
11437 13126
11438echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 13127{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11439echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 13128echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11440 13129
11441# 13130#
11442# Check to make sure the PIC flag actually works. 13131# Check to make sure the PIC flag actually works.
11443# 13132#
11444if test -n "$lt_prog_compiler_pic_CXX"; then 13133if test -n "$lt_prog_compiler_pic_CXX"; then
11445 13134
11446echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13135{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11447echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 13136echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11448if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 13137if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11449 echo $ECHO_N "(cached) $ECHO_C" >&6 13138 echo $ECHO_N "(cached) $ECHO_C" >&6
11450else 13139else
@@ -11458,26 +13147,28 @@ else
11458 # with a dollar sign (not a hyphen), so the echo should work correctly. 13147 # with a dollar sign (not a hyphen), so the echo should work correctly.
11459 # The option is referenced via a variable to avoid confusing sed. 13148 # The option is referenced via a variable to avoid confusing sed.
11460 lt_compile=`echo "$ac_compile" | $SED \ 13149 lt_compile=`echo "$ac_compile" | $SED \
11461 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13150 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11463 -e 's:$: $lt_compiler_flag:'` 13152 -e 's:$: $lt_compiler_flag:'`
11464 (eval echo "\"\$as_me:11464: $lt_compile\"" >&5) 13153 (eval echo "\"\$as_me:13153: $lt_compile\"" >&5)
11465 (eval "$lt_compile" 2>conftest.err) 13154 (eval "$lt_compile" 2>conftest.err)
11466 ac_status=$? 13155 ac_status=$?
11467 cat conftest.err >&5 13156 cat conftest.err >&5
11468 echo "$as_me:11468: \$? = $ac_status" >&5 13157 echo "$as_me:13157: \$? = $ac_status" >&5
11469 if (exit $ac_status) && test -s "$ac_outfile"; then 13158 if (exit $ac_status) && test -s "$ac_outfile"; then
11470 # The compiler can only warn and ignore the option if not recognized 13159 # The compiler can only warn and ignore the option if not recognized
11471 # So say no if there are warnings 13160 # So say no if there are warnings other than the usual output.
11472 if test ! -s conftest.err; then 13161 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13162 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13163 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11473 lt_prog_compiler_pic_works_CXX=yes 13164 lt_prog_compiler_pic_works_CXX=yes
11474 fi 13165 fi
11475 fi 13166 fi
11476 $rm conftest* 13167 $rm conftest*
11477 13168
11478fi 13169fi
11479echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 13170{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11480echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 13171echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11481 13172
11482if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 13173if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11483 case $lt_prog_compiler_pic_CXX in 13174 case $lt_prog_compiler_pic_CXX in
@@ -11490,7 +13181,7 @@ else
11490fi 13181fi
11491 13182
11492fi 13183fi
11493case "$host_os" in 13184case $host_os in
11494 # For platforms which do not support PIC, -DPIC is meaningless: 13185 # For platforms which do not support PIC, -DPIC is meaningless:
11495 *djgpp*) 13186 *djgpp*)
11496 lt_prog_compiler_pic_CXX= 13187 lt_prog_compiler_pic_CXX=
@@ -11500,8 +13191,50 @@ case "$host_os" in
11500 ;; 13191 ;;
11501esac 13192esac
11502 13193
11503echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13194#
11504echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13195# Check to make sure the static flag actually works.
13196#
13197wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13198{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13199echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13200if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13201 echo $ECHO_N "(cached) $ECHO_C" >&6
13202else
13203 lt_prog_compiler_static_works_CXX=no
13204 save_LDFLAGS="$LDFLAGS"
13205 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13206 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13207 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13208 # The linker can only warn and ignore the option if not recognized
13209 # So say no if there are warnings
13210 if test -s conftest.err; then
13211 # Append any errors to the config.log.
13212 cat conftest.err 1>&5
13213 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13214 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13215 if diff conftest.exp conftest.er2 >/dev/null; then
13216 lt_prog_compiler_static_works_CXX=yes
13217 fi
13218 else
13219 lt_prog_compiler_static_works_CXX=yes
13220 fi
13221 fi
13222 $rm conftest*
13223 LDFLAGS="$save_LDFLAGS"
13224
13225fi
13226{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13227echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13228
13229if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13230 :
13231else
13232 lt_prog_compiler_static_CXX=
13233fi
13234
13235
13236{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13237echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11505if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 13238if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11506 echo $ECHO_N "(cached) $ECHO_C" >&6 13239 echo $ECHO_N "(cached) $ECHO_C" >&6
11507else 13240else
@@ -11518,23 +13251,25 @@ else
11518 # Note that $ac_compile itself does not contain backslashes and begins 13251 # Note that $ac_compile itself does not contain backslashes and begins
11519 # with a dollar sign (not a hyphen), so the echo should work correctly. 13252 # with a dollar sign (not a hyphen), so the echo should work correctly.
11520 lt_compile=`echo "$ac_compile" | $SED \ 13253 lt_compile=`echo "$ac_compile" | $SED \
11521 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13254 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11523 -e 's:$: $lt_compiler_flag:'` 13256 -e 's:$: $lt_compiler_flag:'`
11524 (eval echo "\"\$as_me:11524: $lt_compile\"" >&5) 13257 (eval echo "\"\$as_me:13257: $lt_compile\"" >&5)
11525 (eval "$lt_compile" 2>out/conftest.err) 13258 (eval "$lt_compile" 2>out/conftest.err)
11526 ac_status=$? 13259 ac_status=$?
11527 cat out/conftest.err >&5 13260 cat out/conftest.err >&5
11528 echo "$as_me:11528: \$? = $ac_status" >&5 13261 echo "$as_me:13261: \$? = $ac_status" >&5
11529 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13262 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11530 then 13263 then
11531 # The compiler can only warn and ignore the option if not recognized 13264 # The compiler can only warn and ignore the option if not recognized
11532 # So say no if there are warnings 13265 # So say no if there are warnings
11533 if test ! -s out/conftest.err; then 13266 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13267 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13268 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11534 lt_cv_prog_compiler_c_o_CXX=yes 13269 lt_cv_prog_compiler_c_o_CXX=yes
11535 fi 13270 fi
11536 fi 13271 fi
11537 chmod u+w . 13272 chmod u+w . 2>&5
11538 $rm conftest* 13273 $rm conftest*
11539 # SGI C++ compiler will create directory out/ii_files/ for 13274 # SGI C++ compiler will create directory out/ii_files/ for
11540 # template instantiation 13275 # template instantiation
@@ -11545,23 +13280,23 @@ else
11545 $rm conftest* 13280 $rm conftest*
11546 13281
11547fi 13282fi
11548echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13283{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11549echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 13284echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11550 13285
11551 13286
11552hard_links="nottested" 13287hard_links="nottested"
11553if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13288if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11554 # do not overwrite the value of need_locks provided by the user 13289 # do not overwrite the value of need_locks provided by the user
11555 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13290 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11556echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13291echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11557 hard_links=yes 13292 hard_links=yes
11558 $rm conftest* 13293 $rm conftest*
11559 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13294 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11560 touch conftest.a 13295 touch conftest.a
11561 ln conftest.a conftest.b 2>&5 || hard_links=no 13296 ln conftest.a conftest.b 2>&5 || hard_links=no
11562 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13297 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11563 echo "$as_me:$LINENO: result: $hard_links" >&5 13298 { echo "$as_me:$LINENO: result: $hard_links" >&5
11564echo "${ECHO_T}$hard_links" >&6 13299echo "${ECHO_T}$hard_links" >&6; }
11565 if test "$hard_links" = no; then 13300 if test "$hard_links" = no; then
11566 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13301 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11567echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13302echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
@@ -11571,8 +13306,8 @@ else
11571 need_locks=no 13306 need_locks=no
11572fi 13307fi
11573 13308
11574echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13309{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11575echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13310echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11576 13311
11577 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13312 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11578 case $host_os in 13313 case $host_os in
@@ -11589,9 +13324,9 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
11589 export_symbols_cmds_CXX="$ltdll_cmds" 13324 export_symbols_cmds_CXX="$ltdll_cmds"
11590 ;; 13325 ;;
11591 cygwin* | mingw*) 13326 cygwin* | mingw*)
11592 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13327 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11593 ;; 13328 ;;
11594 linux*) 13329 linux* | k*bsd*-gnu)
11595 link_all_deplibs_CXX=no 13330 link_all_deplibs_CXX=no
11596 ;; 13331 ;;
11597 *) 13332 *)
@@ -11599,15 +13334,10 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
11599 ;; 13334 ;;
11600 esac 13335 esac
11601 13336
11602echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13337{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11603echo "${ECHO_T}$ld_shlibs_CXX" >&6 13338echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11604test "$ld_shlibs_CXX" = no && can_build_shared=no 13339test "$ld_shlibs_CXX" = no && can_build_shared=no
11605 13340
11606variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11607if test "$GCC" = yes; then
11608 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11609fi
11610
11611# 13341#
11612# Do we need to explicitly link libc? 13342# Do we need to explicitly link libc?
11613# 13343#
@@ -11625,8 +13355,8 @@ x|xyes)
11625 # Test whether the compiler implicitly links with -lc since on some 13355 # Test whether the compiler implicitly links with -lc since on some
11626 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13356 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11627 # to ld, don't add -lc before -lgcc. 13357 # to ld, don't add -lc before -lgcc.
11628 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13358 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11629echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 13359echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11630 $rm conftest* 13360 $rm conftest*
11631 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13361 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11632 13362
@@ -11640,6 +13370,7 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
11640 libobjs=conftest.$ac_objext 13370 libobjs=conftest.$ac_objext
11641 deplibs= 13371 deplibs=
11642 wl=$lt_prog_compiler_wl_CXX 13372 wl=$lt_prog_compiler_wl_CXX
13373 pic_flag=$lt_prog_compiler_pic_CXX
11643 compiler_flags=-v 13374 compiler_flags=-v
11644 linker_flags=-v 13375 linker_flags=-v
11645 verstring= 13376 verstring=
@@ -11662,16 +13393,16 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
11662 cat conftest.err 1>&5 13393 cat conftest.err 1>&5
11663 fi 13394 fi
11664 $rm conftest* 13395 $rm conftest*
11665 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13396 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11666echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 13397echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11667 ;; 13398 ;;
11668 esac 13399 esac
11669 fi 13400 fi
11670 ;; 13401 ;;
11671esac 13402esac
11672 13403
11673echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13404{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11674echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 13405echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11675library_names_spec= 13406library_names_spec=
11676libname_spec='lib$name' 13407libname_spec='lib$name'
11677soname_spec= 13408soname_spec=
@@ -11772,7 +13503,7 @@ beos*)
11772 shlibpath_var=LIBRARY_PATH 13503 shlibpath_var=LIBRARY_PATH
11773 ;; 13504 ;;
11774 13505
11775bsdi4*) 13506bsdi[45]*)
11776 version_type=linux 13507 version_type=linux
11777 need_version=no 13508 need_version=no
11778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -11800,7 +13531,8 @@ cygwin* | mingw* | pw32*)
11800 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13531 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11801 dldir=$destdir/`dirname \$dlpath`~ 13532 dldir=$destdir/`dirname \$dlpath`~
11802 test -d \$dldir || mkdir -p \$dldir~ 13533 test -d \$dldir || mkdir -p \$dldir~
11803 $install_prog $dir/$dlname \$dldir/$dlname' 13534 $install_prog $dir/$dlname \$dldir/$dlname~
13535 chmod a+x \$dldir/$dlname'
11804 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13536 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11805 dlpath=$dir/\$dldll~ 13537 dlpath=$dir/\$dldll~
11806 $rm \$dlpath' 13538 $rm \$dlpath'
@@ -11830,7 +13562,7 @@ cygwin* | mingw* | pw32*)
11830 ;; 13562 ;;
11831 pw32*) 13563 pw32*)
11832 # pw32 DLLs use 'pw' prefix rather than 'lib' 13564 # pw32 DLLs use 'pw' prefix rather than 'lib'
11833 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 13565 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11834 ;; 13566 ;;
11835 esac 13567 esac
11836 ;; 13568 ;;
@@ -11853,7 +13585,7 @@ darwin* | rhapsody*)
11853 soname_spec='${libname}${release}${major}$shared_ext' 13585 soname_spec='${libname}${release}${major}$shared_ext'
11854 shlibpath_overrides_runpath=yes 13586 shlibpath_overrides_runpath=yes
11855 shlibpath_var=DYLD_LIBRARY_PATH 13587 shlibpath_var=DYLD_LIBRARY_PATH
11856 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 13588 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11857 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13589 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11858 if test "$GCC" = yes; then 13590 if test "$GCC" = yes; then
11859 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 13591 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
@@ -11876,20 +13608,17 @@ freebsd1*)
11876 dynamic_linker=no 13608 dynamic_linker=no
11877 ;; 13609 ;;
11878 13610
11879kfreebsd*-gnu) 13611freebsd* | dragonfly*)
11880 version_type=linux 13612 # DragonFly does not have aout. When/if they implement a new
11881 need_lib_prefix=no 13613 # versioning mechanism, adjust this.
11882 need_version=no 13614 if test -x /usr/bin/objformat; then
11883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13615 objformat=`/usr/bin/objformat`
11884 soname_spec='${libname}${release}${shared_ext}$major' 13616 else
11885 shlibpath_var=LD_LIBRARY_PATH 13617 case $host_os in
11886 shlibpath_overrides_runpath=no 13618 freebsd[123]*) objformat=aout ;;
11887 hardcode_into_libs=yes 13619 *) objformat=elf ;;
11888 dynamic_linker='GNU ld.so' 13620 esac
11889 ;; 13621 fi
11890
11891freebsd*)
11892 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11893 version_type=freebsd-$objformat 13622 version_type=freebsd-$objformat
11894 case $version_type in 13623 case $version_type in
11895 freebsd-elf*) 13624 freebsd-elf*)
@@ -11907,14 +13636,19 @@ freebsd*)
11907 freebsd2*) 13636 freebsd2*)
11908 shlibpath_overrides_runpath=yes 13637 shlibpath_overrides_runpath=yes
11909 ;; 13638 ;;
11910 freebsd3.01* | freebsdelf3.01*) 13639 freebsd3.[01]* | freebsdelf3.[01]*)
11911 shlibpath_overrides_runpath=yes 13640 shlibpath_overrides_runpath=yes
11912 hardcode_into_libs=yes 13641 hardcode_into_libs=yes
11913 ;; 13642 ;;
11914 *) # from 3.2 on 13643 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13644 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11915 shlibpath_overrides_runpath=no 13645 shlibpath_overrides_runpath=no
11916 hardcode_into_libs=yes 13646 hardcode_into_libs=yes
11917 ;; 13647 ;;
13648 freebsd*) # from 4.6 on
13649 shlibpath_overrides_runpath=yes
13650 hardcode_into_libs=yes
13651 ;;
11918 esac 13652 esac
11919 ;; 13653 ;;
11920 13654
@@ -11934,7 +13668,7 @@ hpux9* | hpux10* | hpux11*)
11934 version_type=sunos 13668 version_type=sunos
11935 need_lib_prefix=no 13669 need_lib_prefix=no
11936 need_version=no 13670 need_version=no
11937 case "$host_cpu" in 13671 case $host_cpu in
11938 ia64*) 13672 ia64*)
11939 shrext_cmds='.so' 13673 shrext_cmds='.so'
11940 hardcode_into_libs=yes 13674 hardcode_into_libs=yes
@@ -11974,6 +13708,18 @@ hpux9* | hpux10* | hpux11*)
11974 postinstall_cmds='chmod 555 $lib' 13708 postinstall_cmds='chmod 555 $lib'
11975 ;; 13709 ;;
11976 13710
13711interix3*)
13712 version_type=linux
13713 need_lib_prefix=no
13714 need_version=no
13715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13716 soname_spec='${libname}${release}${shared_ext}$major'
13717 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13718 shlibpath_var=LD_LIBRARY_PATH
13719 shlibpath_overrides_runpath=no
13720 hardcode_into_libs=yes
13721 ;;
13722
11977irix5* | irix6* | nonstopux*) 13723irix5* | irix6* | nonstopux*)
11978 case $host_os in 13724 case $host_os in
11979 nonstopux*) version_type=nonstopux ;; 13725 nonstopux*) version_type=nonstopux ;;
@@ -12017,7 +13763,7 @@ linux*oldld* | linux*aout* | linux*coff*)
12017 ;; 13763 ;;
12018 13764
12019# This must be Linux ELF. 13765# This must be Linux ELF.
12020linux*) 13766linux* | k*bsd*-gnu)
12021 version_type=linux 13767 version_type=linux
12022 need_lib_prefix=no 13768 need_lib_prefix=no
12023 need_version=no 13769 need_version=no
@@ -12033,7 +13779,7 @@ linux*)
12033 13779
12034 # Append ld.so.conf contents to the search path 13780 # Append ld.so.conf contents to the search path
12035 if test -f /etc/ld.so.conf; then 13781 if test -f /etc/ld.so.conf; then
12036 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 13782 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12037 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13783 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12038 fi 13784 fi
12039 13785
@@ -12058,18 +13804,6 @@ netbsdelf*-gnu)
12058 dynamic_linker='NetBSD ld.elf_so' 13804 dynamic_linker='NetBSD ld.elf_so'
12059 ;; 13805 ;;
12060 13806
12061knetbsd*-gnu)
12062 version_type=linux
12063 need_lib_prefix=no
12064 need_version=no
12065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12066 soname_spec='${libname}${release}${shared_ext}$major'
12067 shlibpath_var=LD_LIBRARY_PATH
12068 shlibpath_overrides_runpath=no
12069 hardcode_into_libs=yes
12070 dynamic_linker='GNU ld.so'
12071 ;;
12072
12073netbsd*) 13807netbsd*)
12074 version_type=sunos 13808 version_type=sunos
12075 need_lib_prefix=no 13809 need_lib_prefix=no
@@ -12107,8 +13841,13 @@ nto-qnx*)
12107 13841
12108openbsd*) 13842openbsd*)
12109 version_type=sunos 13843 version_type=sunos
13844 sys_lib_dlsearch_path_spec="/usr/lib"
12110 need_lib_prefix=no 13845 need_lib_prefix=no
12111 need_version=yes 13846 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13847 case $host_os in
13848 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13849 *) need_version=no ;;
13850 esac
12112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13852 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12114 shlibpath_var=LD_LIBRARY_PATH 13853 shlibpath_var=LD_LIBRARY_PATH
@@ -12146,13 +13885,6 @@ osf3* | osf4* | osf5*)
12146 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13885 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12147 ;; 13886 ;;
12148 13887
12149sco3.2v5*)
12150 version_type=osf
12151 soname_spec='${libname}${release}${shared_ext}$major'
12152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12153 shlibpath_var=LD_LIBRARY_PATH
12154 ;;
12155
12156solaris*) 13888solaris*)
12157 version_type=linux 13889 version_type=linux
12158 need_lib_prefix=no 13890 need_lib_prefix=no
@@ -12178,7 +13910,7 @@ sunos4*)
12178 need_version=yes 13910 need_version=yes
12179 ;; 13911 ;;
12180 13912
12181sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13913sysv4 | sysv4.3*)
12182 version_type=linux 13914 version_type=linux
12183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12184 soname_spec='${libname}${release}${shared_ext}$major' 13916 soname_spec='${libname}${release}${shared_ext}$major'
@@ -12211,6 +13943,29 @@ sysv4*MP*)
12211 fi 13943 fi
12212 ;; 13944 ;;
12213 13945
13946sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13947 version_type=freebsd-elf
13948 need_lib_prefix=no
13949 need_version=no
13950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13951 soname_spec='${libname}${release}${shared_ext}$major'
13952 shlibpath_var=LD_LIBRARY_PATH
13953 hardcode_into_libs=yes
13954 if test "$with_gnu_ld" = yes; then
13955 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13956 shlibpath_overrides_runpath=no
13957 else
13958 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13959 shlibpath_overrides_runpath=yes
13960 case $host_os in
13961 sco3.2v5*)
13962 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13963 ;;
13964 esac
13965 fi
13966 sys_lib_dlsearch_path_spec='/usr/lib'
13967 ;;
13968
12214uts4*) 13969uts4*)
12215 version_type=linux 13970 version_type=linux
12216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -12222,16 +13977,21 @@ uts4*)
12222 dynamic_linker=no 13977 dynamic_linker=no
12223 ;; 13978 ;;
12224esac 13979esac
12225echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13980{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12226echo "${ECHO_T}$dynamic_linker" >&6 13981echo "${ECHO_T}$dynamic_linker" >&6; }
12227test "$dynamic_linker" = no && can_build_shared=no 13982test "$dynamic_linker" = no && can_build_shared=no
12228 13983
12229echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13984variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12230echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 13985if test "$GCC" = yes; then
13986 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13987fi
13988
13989{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13990echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12231hardcode_action_CXX= 13991hardcode_action_CXX=
12232if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13992if test -n "$hardcode_libdir_flag_spec_CXX" || \
12233 test -n "$runpath_var CXX" || \ 13993 test -n "$runpath_var_CXX" || \
12234 test "X$hardcode_automatic_CXX"="Xyes" ; then 13994 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12235 13995
12236 # We can hardcode non-existant directories. 13996 # We can hardcode non-existant directories.
12237 if test "$hardcode_direct_CXX" != no && 13997 if test "$hardcode_direct_CXX" != no &&
@@ -12251,8 +14011,8 @@ else
12251 # directories. 14011 # directories.
12252 hardcode_action_CXX=unsupported 14012 hardcode_action_CXX=unsupported
12253fi 14013fi
12254echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 14014{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12255echo "${ECHO_T}$hardcode_action_CXX" >&6 14015echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12256 14016
12257if test "$hardcode_action_CXX" = relink; then 14017if test "$hardcode_action_CXX" = relink; then
12258 # Fast installation is not supported 14018 # Fast installation is not supported
@@ -12263,834 +14023,6 @@ elif test "$shlibpath_overrides_runpath" = yes ||
12263 enable_fast_install=needless 14023 enable_fast_install=needless
12264fi 14024fi
12265 14025
12266striplib=
12267old_striplib=
12268echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12269echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12270if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12271 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12272 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12273 echo "$as_me:$LINENO: result: yes" >&5
12274echo "${ECHO_T}yes" >&6
12275else
12276# FIXME - insert some real tests, host_os isn't really good enough
12277 case $host_os in
12278 darwin*)
12279 if test -n "$STRIP" ; then
12280 striplib="$STRIP -x"
12281 echo "$as_me:$LINENO: result: yes" >&5
12282echo "${ECHO_T}yes" >&6
12283 else
12284 echo "$as_me:$LINENO: result: no" >&5
12285echo "${ECHO_T}no" >&6
12286fi
12287 ;;
12288 *)
12289 echo "$as_me:$LINENO: result: no" >&5
12290echo "${ECHO_T}no" >&6
12291 ;;
12292 esac
12293fi
12294
12295if test "x$enable_dlopen" != xyes; then
12296 enable_dlopen=unknown
12297 enable_dlopen_self=unknown
12298 enable_dlopen_self_static=unknown
12299else
12300 lt_cv_dlopen=no
12301 lt_cv_dlopen_libs=
12302
12303 case $host_os in
12304 beos*)
12305 lt_cv_dlopen="load_add_on"
12306 lt_cv_dlopen_libs=
12307 lt_cv_dlopen_self=yes
12308 ;;
12309
12310 mingw* | pw32*)
12311 lt_cv_dlopen="LoadLibrary"
12312 lt_cv_dlopen_libs=
12313 ;;
12314
12315 cygwin*)
12316 lt_cv_dlopen="dlopen"
12317 lt_cv_dlopen_libs=
12318 ;;
12319
12320 darwin*)
12321 # if libdl is installed we need to link against it
12322 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12323echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12324if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12325 echo $ECHO_N "(cached) $ECHO_C" >&6
12326else
12327 ac_check_lib_save_LIBS=$LIBS
12328LIBS="-ldl $LIBS"
12329cat >conftest.$ac_ext <<_ACEOF
12330/* confdefs.h. */
12331_ACEOF
12332cat confdefs.h >>conftest.$ac_ext
12333cat >>conftest.$ac_ext <<_ACEOF
12334/* end confdefs.h. */
12335
12336/* Override any gcc2 internal prototype to avoid an error. */
12337#ifdef __cplusplus
12338extern "C"
12339#endif
12340/* We use char because int might match the return type of a gcc2
12341 builtin and then its argument prototype would still apply. */
12342char dlopen ();
12343int
12344main ()
12345{
12346dlopen ();
12347 ;
12348 return 0;
12349}
12350_ACEOF
12351rm -f conftest.$ac_objext conftest$ac_exeext
12352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12353 (eval $ac_link) 2>conftest.er1
12354 ac_status=$?
12355 grep -v '^ *+' conftest.er1 >conftest.err
12356 rm -f conftest.er1
12357 cat conftest.err >&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); } &&
12360 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12362 (eval $ac_try) 2>&5
12363 ac_status=$?
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); }; } &&
12366 { ac_try='test -s conftest$ac_exeext'
12367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368 (eval $ac_try) 2>&5
12369 ac_status=$?
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; }; then
12372 ac_cv_lib_dl_dlopen=yes
12373else
12374 echo "$as_me: failed program was:" >&5
12375sed 's/^/| /' conftest.$ac_ext >&5
12376
12377ac_cv_lib_dl_dlopen=no
12378fi
12379rm -f conftest.err conftest.$ac_objext \
12380 conftest$ac_exeext conftest.$ac_ext
12381LIBS=$ac_check_lib_save_LIBS
12382fi
12383echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12384echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12385if test $ac_cv_lib_dl_dlopen = yes; then
12386 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12387else
12388
12389 lt_cv_dlopen="dyld"
12390 lt_cv_dlopen_libs=
12391 lt_cv_dlopen_self=yes
12392
12393fi
12394
12395 ;;
12396
12397 *)
12398 echo "$as_me:$LINENO: checking for shl_load" >&5
12399echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12400if test "${ac_cv_func_shl_load+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12402else
12403 cat >conftest.$ac_ext <<_ACEOF
12404/* confdefs.h. */
12405_ACEOF
12406cat confdefs.h >>conftest.$ac_ext
12407cat >>conftest.$ac_ext <<_ACEOF
12408/* end confdefs.h. */
12409/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12411#define shl_load innocuous_shl_load
12412
12413/* System header to define __stub macros and hopefully few prototypes,
12414 which can conflict with char shl_load (); below.
12415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12416 <limits.h> exists even on freestanding compilers. */
12417
12418#ifdef __STDC__
12419# include <limits.h>
12420#else
12421# include <assert.h>
12422#endif
12423
12424#undef shl_load
12425
12426/* Override any gcc2 internal prototype to avoid an error. */
12427#ifdef __cplusplus
12428extern "C"
12429{
12430#endif
12431/* We use char because int might match the return type of a gcc2
12432 builtin and then its argument prototype would still apply. */
12433char shl_load ();
12434/* The GNU C library defines this for functions which it implements
12435 to always fail with ENOSYS. Some functions are actually named
12436 something starting with __ and the normal name is an alias. */
12437#if defined (__stub_shl_load) || defined (__stub___shl_load)
12438choke me
12439#else
12440char (*f) () = shl_load;
12441#endif
12442#ifdef __cplusplus
12443}
12444#endif
12445
12446int
12447main ()
12448{
12449return f != shl_load;
12450 ;
12451 return 0;
12452}
12453_ACEOF
12454rm -f conftest.$ac_objext conftest$ac_exeext
12455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12456 (eval $ac_link) 2>conftest.er1
12457 ac_status=$?
12458 grep -v '^ *+' conftest.er1 >conftest.err
12459 rm -f conftest.er1
12460 cat conftest.err >&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); } &&
12463 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465 (eval $ac_try) 2>&5
12466 ac_status=$?
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; } &&
12469 { ac_try='test -s conftest$ac_exeext'
12470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12472 ac_status=$?
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; }; then
12475 ac_cv_func_shl_load=yes
12476else
12477 echo "$as_me: failed program was:" >&5
12478sed 's/^/| /' conftest.$ac_ext >&5
12479
12480ac_cv_func_shl_load=no
12481fi
12482rm -f conftest.err conftest.$ac_objext \
12483 conftest$ac_exeext conftest.$ac_ext
12484fi
12485echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12486echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12487if test $ac_cv_func_shl_load = yes; then
12488 lt_cv_dlopen="shl_load"
12489else
12490 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12491echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12492if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12493 echo $ECHO_N "(cached) $ECHO_C" >&6
12494else
12495 ac_check_lib_save_LIBS=$LIBS
12496LIBS="-ldld $LIBS"
12497cat >conftest.$ac_ext <<_ACEOF
12498/* confdefs.h. */
12499_ACEOF
12500cat confdefs.h >>conftest.$ac_ext
12501cat >>conftest.$ac_ext <<_ACEOF
12502/* end confdefs.h. */
12503
12504/* Override any gcc2 internal prototype to avoid an error. */
12505#ifdef __cplusplus
12506extern "C"
12507#endif
12508/* We use char because int might match the return type of a gcc2
12509 builtin and then its argument prototype would still apply. */
12510char shl_load ();
12511int
12512main ()
12513{
12514shl_load ();
12515 ;
12516 return 0;
12517}
12518_ACEOF
12519rm -f conftest.$ac_objext conftest$ac_exeext
12520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12521 (eval $ac_link) 2>conftest.er1
12522 ac_status=$?
12523 grep -v '^ *+' conftest.er1 >conftest.err
12524 rm -f conftest.er1
12525 cat conftest.err >&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); } &&
12528 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530 (eval $ac_try) 2>&5
12531 ac_status=$?
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; } &&
12534 { ac_try='test -s conftest$ac_exeext'
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; }; then
12540 ac_cv_lib_dld_shl_load=yes
12541else
12542 echo "$as_me: failed program was:" >&5
12543sed 's/^/| /' conftest.$ac_ext >&5
12544
12545ac_cv_lib_dld_shl_load=no
12546fi
12547rm -f conftest.err conftest.$ac_objext \
12548 conftest$ac_exeext conftest.$ac_ext
12549LIBS=$ac_check_lib_save_LIBS
12550fi
12551echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12552echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12553if test $ac_cv_lib_dld_shl_load = yes; then
12554 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12555else
12556 echo "$as_me:$LINENO: checking for dlopen" >&5
12557echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12558if test "${ac_cv_func_dlopen+set}" = set; then
12559 echo $ECHO_N "(cached) $ECHO_C" >&6
12560else
12561 cat >conftest.$ac_ext <<_ACEOF
12562/* confdefs.h. */
12563_ACEOF
12564cat confdefs.h >>conftest.$ac_ext
12565cat >>conftest.$ac_ext <<_ACEOF
12566/* end confdefs.h. */
12567/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12569#define dlopen innocuous_dlopen
12570
12571/* System header to define __stub macros and hopefully few prototypes,
12572 which can conflict with char dlopen (); below.
12573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12574 <limits.h> exists even on freestanding compilers. */
12575
12576#ifdef __STDC__
12577# include <limits.h>
12578#else
12579# include <assert.h>
12580#endif
12581
12582#undef dlopen
12583
12584/* Override any gcc2 internal prototype to avoid an error. */
12585#ifdef __cplusplus
12586extern "C"
12587{
12588#endif
12589/* We use char because int might match the return type of a gcc2
12590 builtin and then its argument prototype would still apply. */
12591char dlopen ();
12592/* The GNU C library defines this for functions which it implements
12593 to always fail with ENOSYS. Some functions are actually named
12594 something starting with __ and the normal name is an alias. */
12595#if defined (__stub_dlopen) || defined (__stub___dlopen)
12596choke me
12597#else
12598char (*f) () = dlopen;
12599#endif
12600#ifdef __cplusplus
12601}
12602#endif
12603
12604int
12605main ()
12606{
12607return f != dlopen;
12608 ;
12609 return 0;
12610}
12611_ACEOF
12612rm -f conftest.$ac_objext conftest$ac_exeext
12613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12614 (eval $ac_link) 2>conftest.er1
12615 ac_status=$?
12616 grep -v '^ *+' conftest.er1 >conftest.err
12617 rm -f conftest.er1
12618 cat conftest.err >&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } &&
12621 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623 (eval $ac_try) 2>&5
12624 ac_status=$?
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; } &&
12627 { ac_try='test -s conftest$ac_exeext'
12628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12629 (eval $ac_try) 2>&5
12630 ac_status=$?
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); }; }; then
12633 ac_cv_func_dlopen=yes
12634else
12635 echo "$as_me: failed program was:" >&5
12636sed 's/^/| /' conftest.$ac_ext >&5
12637
12638ac_cv_func_dlopen=no
12639fi
12640rm -f conftest.err conftest.$ac_objext \
12641 conftest$ac_exeext conftest.$ac_ext
12642fi
12643echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12644echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12645if test $ac_cv_func_dlopen = yes; then
12646 lt_cv_dlopen="dlopen"
12647else
12648 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12649echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12650if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12651 echo $ECHO_N "(cached) $ECHO_C" >&6
12652else
12653 ac_check_lib_save_LIBS=$LIBS
12654LIBS="-ldl $LIBS"
12655cat >conftest.$ac_ext <<_ACEOF
12656/* confdefs.h. */
12657_ACEOF
12658cat confdefs.h >>conftest.$ac_ext
12659cat >>conftest.$ac_ext <<_ACEOF
12660/* end confdefs.h. */
12661
12662/* Override any gcc2 internal prototype to avoid an error. */
12663#ifdef __cplusplus
12664extern "C"
12665#endif
12666/* We use char because int might match the return type of a gcc2
12667 builtin and then its argument prototype would still apply. */
12668char dlopen ();
12669int
12670main ()
12671{
12672dlopen ();
12673 ;
12674 return 0;
12675}
12676_ACEOF
12677rm -f conftest.$ac_objext conftest$ac_exeext
12678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12679 (eval $ac_link) 2>conftest.er1
12680 ac_status=$?
12681 grep -v '^ *+' conftest.er1 >conftest.err
12682 rm -f conftest.er1
12683 cat conftest.err >&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); } &&
12686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688 (eval $ac_try) 2>&5
12689 ac_status=$?
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; } &&
12692 { ac_try='test -s conftest$ac_exeext'
12693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694 (eval $ac_try) 2>&5
12695 ac_status=$?
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; }; then
12698 ac_cv_lib_dl_dlopen=yes
12699else
12700 echo "$as_me: failed program was:" >&5
12701sed 's/^/| /' conftest.$ac_ext >&5
12702
12703ac_cv_lib_dl_dlopen=no
12704fi
12705rm -f conftest.err conftest.$ac_objext \
12706 conftest$ac_exeext conftest.$ac_ext
12707LIBS=$ac_check_lib_save_LIBS
12708fi
12709echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12710echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12711if test $ac_cv_lib_dl_dlopen = yes; then
12712 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12713else
12714 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12715echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12716if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12717 echo $ECHO_N "(cached) $ECHO_C" >&6
12718else
12719 ac_check_lib_save_LIBS=$LIBS
12720LIBS="-lsvld $LIBS"
12721cat >conftest.$ac_ext <<_ACEOF
12722/* confdefs.h. */
12723_ACEOF
12724cat confdefs.h >>conftest.$ac_ext
12725cat >>conftest.$ac_ext <<_ACEOF
12726/* end confdefs.h. */
12727
12728/* Override any gcc2 internal prototype to avoid an error. */
12729#ifdef __cplusplus
12730extern "C"
12731#endif
12732/* We use char because int might match the return type of a gcc2
12733 builtin and then its argument prototype would still apply. */
12734char dlopen ();
12735int
12736main ()
12737{
12738dlopen ();
12739 ;
12740 return 0;
12741}
12742_ACEOF
12743rm -f conftest.$ac_objext conftest$ac_exeext
12744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12745 (eval $ac_link) 2>conftest.er1
12746 ac_status=$?
12747 grep -v '^ *+' conftest.er1 >conftest.err
12748 rm -f conftest.er1
12749 cat conftest.err >&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } &&
12752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754 (eval $ac_try) 2>&5
12755 ac_status=$?
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; } &&
12758 { ac_try='test -s conftest$ac_exeext'
12759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760 (eval $ac_try) 2>&5
12761 ac_status=$?
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); }; }; then
12764 ac_cv_lib_svld_dlopen=yes
12765else
12766 echo "$as_me: failed program was:" >&5
12767sed 's/^/| /' conftest.$ac_ext >&5
12768
12769ac_cv_lib_svld_dlopen=no
12770fi
12771rm -f conftest.err conftest.$ac_objext \
12772 conftest$ac_exeext conftest.$ac_ext
12773LIBS=$ac_check_lib_save_LIBS
12774fi
12775echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12776echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12777if test $ac_cv_lib_svld_dlopen = yes; then
12778 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12779else
12780 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12781echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12782if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
12784else
12785 ac_check_lib_save_LIBS=$LIBS
12786LIBS="-ldld $LIBS"
12787cat >conftest.$ac_ext <<_ACEOF
12788/* confdefs.h. */
12789_ACEOF
12790cat confdefs.h >>conftest.$ac_ext
12791cat >>conftest.$ac_ext <<_ACEOF
12792/* end confdefs.h. */
12793
12794/* Override any gcc2 internal prototype to avoid an error. */
12795#ifdef __cplusplus
12796extern "C"
12797#endif
12798/* We use char because int might match the return type of a gcc2
12799 builtin and then its argument prototype would still apply. */
12800char dld_link ();
12801int
12802main ()
12803{
12804dld_link ();
12805 ;
12806 return 0;
12807}
12808_ACEOF
12809rm -f conftest.$ac_objext conftest$ac_exeext
12810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12811 (eval $ac_link) 2>conftest.er1
12812 ac_status=$?
12813 grep -v '^ *+' conftest.er1 >conftest.err
12814 rm -f conftest.er1
12815 cat conftest.err >&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); } &&
12818 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12820 (eval $ac_try) 2>&5
12821 ac_status=$?
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }; } &&
12824 { ac_try='test -s conftest$ac_exeext'
12825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826 (eval $ac_try) 2>&5
12827 ac_status=$?
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); }; }; then
12830 ac_cv_lib_dld_dld_link=yes
12831else
12832 echo "$as_me: failed program was:" >&5
12833sed 's/^/| /' conftest.$ac_ext >&5
12834
12835ac_cv_lib_dld_dld_link=no
12836fi
12837rm -f conftest.err conftest.$ac_objext \
12838 conftest$ac_exeext conftest.$ac_ext
12839LIBS=$ac_check_lib_save_LIBS
12840fi
12841echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12842echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12843if test $ac_cv_lib_dld_dld_link = yes; then
12844 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12845fi
12846
12847
12848fi
12849
12850
12851fi
12852
12853
12854fi
12855
12856
12857fi
12858
12859
12860fi
12861
12862 ;;
12863 esac
12864
12865 if test "x$lt_cv_dlopen" != xno; then
12866 enable_dlopen=yes
12867 else
12868 enable_dlopen=no
12869 fi
12870
12871 case $lt_cv_dlopen in
12872 dlopen)
12873 save_CPPFLAGS="$CPPFLAGS"
12874 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12875
12876 save_LDFLAGS="$LDFLAGS"
12877 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12878
12879 save_LIBS="$LIBS"
12880 LIBS="$lt_cv_dlopen_libs $LIBS"
12881
12882 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12883echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12884if test "${lt_cv_dlopen_self+set}" = set; then
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
12886else
12887 if test "$cross_compiling" = yes; then :
12888 lt_cv_dlopen_self=cross
12889else
12890 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12891 lt_status=$lt_dlunknown
12892 cat > conftest.$ac_ext <<EOF
12893#line 12893 "configure"
12894#include "confdefs.h"
12895
12896#if HAVE_DLFCN_H
12897#include <dlfcn.h>
12898#endif
12899
12900#include <stdio.h>
12901
12902#ifdef RTLD_GLOBAL
12903# define LT_DLGLOBAL RTLD_GLOBAL
12904#else
12905# ifdef DL_GLOBAL
12906# define LT_DLGLOBAL DL_GLOBAL
12907# else
12908# define LT_DLGLOBAL 0
12909# endif
12910#endif
12911
12912/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12913 find out it does not work in some platform. */
12914#ifndef LT_DLLAZY_OR_NOW
12915# ifdef RTLD_LAZY
12916# define LT_DLLAZY_OR_NOW RTLD_LAZY
12917# else
12918# ifdef DL_LAZY
12919# define LT_DLLAZY_OR_NOW DL_LAZY
12920# else
12921# ifdef RTLD_NOW
12922# define LT_DLLAZY_OR_NOW RTLD_NOW
12923# else
12924# ifdef DL_NOW
12925# define LT_DLLAZY_OR_NOW DL_NOW
12926# else
12927# define LT_DLLAZY_OR_NOW 0
12928# endif
12929# endif
12930# endif
12931# endif
12932#endif
12933
12934#ifdef __cplusplus
12935extern "C" void exit (int);
12936#endif
12937
12938void fnord() { int i=42;}
12939int main ()
12940{
12941 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12942 int status = $lt_dlunknown;
12943
12944 if (self)
12945 {
12946 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12947 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12948 /* dlclose (self); */
12949 }
12950
12951 exit (status);
12952}
12953EOF
12954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12955 (eval $ac_link) 2>&5
12956 ac_status=$?
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12959 (./conftest; exit; ) 2>/dev/null
12960 lt_status=$?
12961 case x$lt_status in
12962 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12963 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12964 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12965 esac
12966 else :
12967 # compilation failed
12968 lt_cv_dlopen_self=no
12969 fi
12970fi
12971rm -fr conftest*
12972
12973
12974fi
12975echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12976echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12977
12978 if test "x$lt_cv_dlopen_self" = xyes; then
12979 LDFLAGS="$LDFLAGS $link_static_flag"
12980 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12981echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12982if test "${lt_cv_dlopen_self_static+set}" = set; then
12983 echo $ECHO_N "(cached) $ECHO_C" >&6
12984else
12985 if test "$cross_compiling" = yes; then :
12986 lt_cv_dlopen_self_static=cross
12987else
12988 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12989 lt_status=$lt_dlunknown
12990 cat > conftest.$ac_ext <<EOF
12991#line 12991 "configure"
12992#include "confdefs.h"
12993
12994#if HAVE_DLFCN_H
12995#include <dlfcn.h>
12996#endif
12997
12998#include <stdio.h>
12999
13000#ifdef RTLD_GLOBAL
13001# define LT_DLGLOBAL RTLD_GLOBAL
13002#else
13003# ifdef DL_GLOBAL
13004# define LT_DLGLOBAL DL_GLOBAL
13005# else
13006# define LT_DLGLOBAL 0
13007# endif
13008#endif
13009
13010/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13011 find out it does not work in some platform. */
13012#ifndef LT_DLLAZY_OR_NOW
13013# ifdef RTLD_LAZY
13014# define LT_DLLAZY_OR_NOW RTLD_LAZY
13015# else
13016# ifdef DL_LAZY
13017# define LT_DLLAZY_OR_NOW DL_LAZY
13018# else
13019# ifdef RTLD_NOW
13020# define LT_DLLAZY_OR_NOW RTLD_NOW
13021# else
13022# ifdef DL_NOW
13023# define LT_DLLAZY_OR_NOW DL_NOW
13024# else
13025# define LT_DLLAZY_OR_NOW 0
13026# endif
13027# endif
13028# endif
13029# endif
13030#endif
13031
13032#ifdef __cplusplus
13033extern "C" void exit (int);
13034#endif
13035
13036void fnord() { int i=42;}
13037int main ()
13038{
13039 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13040 int status = $lt_dlunknown;
13041
13042 if (self)
13043 {
13044 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13045 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13046 /* dlclose (self); */
13047 }
13048
13049 exit (status);
13050}
13051EOF
13052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13053 (eval $ac_link) 2>&5
13054 ac_status=$?
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13057 (./conftest; exit; ) 2>/dev/null
13058 lt_status=$?
13059 case x$lt_status in
13060 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13061 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13062 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13063 esac
13064 else :
13065 # compilation failed
13066 lt_cv_dlopen_self_static=no
13067 fi
13068fi
13069rm -fr conftest*
13070
13071
13072fi
13073echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13074echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13075 fi
13076
13077 CPPFLAGS="$save_CPPFLAGS"
13078 LDFLAGS="$save_LDFLAGS"
13079 LIBS="$save_LIBS"
13080 ;;
13081 esac
13082
13083 case $lt_cv_dlopen_self in
13084 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13085 *) enable_dlopen_self=unknown ;;
13086 esac
13087
13088 case $lt_cv_dlopen_self_static in
13089 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13090 *) enable_dlopen_self_static=unknown ;;
13091 esac
13092fi
13093
13094 14026
13095# The else clause should only fire when bootstrapping the 14027# The else clause should only fire when bootstrapping the
13096# libtool distribution, otherwise you forgot to ship ltmain.sh 14028# libtool distribution, otherwise you forgot to ship ltmain.sh
@@ -13105,7 +14037,7 @@ if test -f "$ltmain"; then
13105 # Now quote all the things that may contain metacharacters while being 14037 # Now quote all the things that may contain metacharacters while being
13106 # careful not to overquote the AC_SUBSTed values. We take copies of the 14038 # careful not to overquote the AC_SUBSTed values. We take copies of the
13107 # variables and quote the copies for generation of the libtool script. 14039 # variables and quote the copies for generation of the libtool script.
13108 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 14040 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13109 SED SHELL STRIP \ 14041 SED SHELL STRIP \
13110 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14042 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13111 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14043 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
@@ -13206,6 +14138,12 @@ fast_install=$enable_fast_install
13206# The host system. 14138# The host system.
13207host_alias=$host_alias 14139host_alias=$host_alias
13208host=$host 14140host=$host
14141host_os=$host_os
14142
14143# The build system.
14144build_alias=$build_alias
14145build=$build
14146build_os=$build_os
13209 14147
13210# An echo program that does not interpret backslashes. 14148# An echo program that does not interpret backslashes.
13211echo=$lt_echo 14149echo=$lt_echo
@@ -13217,6 +14155,9 @@ AR_FLAGS=$lt_AR_FLAGS
13217# A C compiler. 14155# A C compiler.
13218LTCC=$lt_LTCC 14156LTCC=$lt_LTCC
13219 14157
14158# LTCC compiler flags.
14159LTCFLAGS=$lt_LTCFLAGS
14160
13220# A language-specific compiler. 14161# A language-specific compiler.
13221CC=$lt_compiler_CXX 14162CC=$lt_compiler_CXX
13222 14163
@@ -13282,7 +14223,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
13282# Does compiler simultaneously support -c and -o options? 14223# Does compiler simultaneously support -c and -o options?
13283compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 14224compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13284 14225
13285# Must we lock files when doing compilation ? 14226# Must we lock files when doing compilation?
13286need_locks=$lt_need_locks 14227need_locks=$lt_need_locks
13287 14228
13288# Do we need the lib prefix for modules? 14229# Do we need the lib prefix for modules?
@@ -13559,29 +14500,55 @@ lt_simple_link_test_code=" program t\n end\n"
13559# If no C compiler was specified, use CC. 14500# If no C compiler was specified, use CC.
13560LTCC=${LTCC-"$CC"} 14501LTCC=${LTCC-"$CC"}
13561 14502
14503# If no C compiler flags were specified, use CFLAGS.
14504LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14505
13562# Allow CC to be a program name with arguments. 14506# Allow CC to be a program name with arguments.
13563compiler=$CC 14507compiler=$CC
13564 14508
13565 14509
14510# save warnings/boilerplate of simple test code
14511ac_outfile=conftest.$ac_objext
14512printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14513eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14514_lt_compiler_boilerplate=`cat conftest.err`
14515$rm conftest*
14516
14517ac_outfile=conftest.$ac_objext
14518printf "$lt_simple_link_test_code" >conftest.$ac_ext
14519eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14520_lt_linker_boilerplate=`cat conftest.err`
14521$rm conftest*
14522
14523
13566# Allow CC to be a program name with arguments. 14524# Allow CC to be a program name with arguments.
13567lt_save_CC="$CC" 14525lt_save_CC="$CC"
13568CC=${F77-"f77"} 14526CC=${F77-"f77"}
13569compiler=$CC 14527compiler=$CC
13570compiler_F77=$CC 14528compiler_F77=$CC
13571cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 14529for cc_temp in $compiler""; do
14530 case $cc_temp in
14531 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14532 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14533 \-*) ;;
14534 *) break;;
14535 esac
14536done
14537cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14538
13572 14539
13573echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14540{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13574echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 14541echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13575echo "$as_me:$LINENO: result: $can_build_shared" >&5 14542{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13576echo "${ECHO_T}$can_build_shared" >&6 14543echo "${ECHO_T}$can_build_shared" >&6; }
13577 14544
13578echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14545{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13579echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 14546echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13580test "$can_build_shared" = "no" && enable_shared=no 14547test "$can_build_shared" = "no" && enable_shared=no
13581 14548
13582# On AIX, shared libraries and static libraries use the same namespace, and 14549# On AIX, shared libraries and static libraries use the same namespace, and
13583# are all built from PIC. 14550# are all built from PIC.
13584case "$host_os" in 14551case $host_os in
13585aix3*) 14552aix3*)
13586 test "$enable_shared" = yes && enable_static=no 14553 test "$enable_shared" = yes && enable_static=no
13587 if test -n "$RANLIB"; then 14554 if test -n "$RANLIB"; then
@@ -13590,20 +14557,20 @@ aix3*)
13590 fi 14557 fi
13591 ;; 14558 ;;
13592aix4* | aix5*) 14559aix4* | aix5*)
13593 test "$enable_shared" = yes && enable_static=no 14560 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14561 test "$enable_shared" = yes && enable_static=no
14562 fi
13594 ;; 14563 ;;
13595esac 14564esac
13596echo "$as_me:$LINENO: result: $enable_shared" >&5 14565{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13597echo "${ECHO_T}$enable_shared" >&6 14566echo "${ECHO_T}$enable_shared" >&6; }
13598 14567
13599echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14568{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13600echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 14569echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13601# Make sure either enable_shared or enable_static is yes. 14570# Make sure either enable_shared or enable_static is yes.
13602test "$enable_shared" = yes || enable_static=yes 14571test "$enable_shared" = yes || enable_static=yes
13603echo "$as_me:$LINENO: result: $enable_static" >&5 14572{ echo "$as_me:$LINENO: result: $enable_static" >&5
13604echo "${ECHO_T}$enable_static" >&6 14573echo "${ECHO_T}$enable_static" >&6; }
13605
13606test "$ld_shlibs_F77" = no && can_build_shared=no
13607 14574
13608GCC_F77="$G77" 14575GCC_F77="$G77"
13609LD_F77="$LD" 14576LD_F77="$LD"
@@ -13612,8 +14579,8 @@ lt_prog_compiler_wl_F77=
13612lt_prog_compiler_pic_F77= 14579lt_prog_compiler_pic_F77=
13613lt_prog_compiler_static_F77= 14580lt_prog_compiler_static_F77=
13614 14581
13615echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14582{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13616echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 14583echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13617 14584
13618 if test "$GCC" = yes; then 14585 if test "$GCC" = yes; then
13619 lt_prog_compiler_wl_F77='-Wl,' 14586 lt_prog_compiler_wl_F77='-Wl,'
@@ -13651,6 +14618,11 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13651 lt_prog_compiler_pic_F77='-fno-common' 14618 lt_prog_compiler_pic_F77='-fno-common'
13652 ;; 14619 ;;
13653 14620
14621 interix3*)
14622 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14623 # Instead, we relocate shared libraries at runtime.
14624 ;;
14625
13654 msdosdjgpp*) 14626 msdosdjgpp*)
13655 # Just because we use GCC doesn't mean we suddenly get shared libraries 14627 # Just because we use GCC doesn't mean we suddenly get shared libraries
13656 # on systems that don't support them. 14628 # on systems that don't support them.
@@ -13667,7 +14639,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13667 hpux*) 14639 hpux*)
13668 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14640 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13669 # not for PA HP-UX. 14641 # not for PA HP-UX.
13670 case "$host_cpu" in 14642 case $host_cpu in
13671 hppa*64*|ia64*) 14643 hppa*64*|ia64*)
13672 # +Z the default 14644 # +Z the default
13673 ;; 14645 ;;
@@ -13693,6 +14665,16 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13693 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14665 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13694 fi 14666 fi
13695 ;; 14667 ;;
14668 darwin*)
14669 # PIC is the default on this platform
14670 # Common symbols not allowed in MH_DYLIB files
14671 case $cc_basename in
14672 xlc*)
14673 lt_prog_compiler_pic_F77='-qnocommon'
14674 lt_prog_compiler_wl_F77='-Wl,'
14675 ;;
14676 esac
14677 ;;
13696 14678
13697 mingw* | pw32* | os2*) 14679 mingw* | pw32* | os2*)
13698 # This hack is so that the source file can tell whether it is being 14680 # This hack is so that the source file can tell whether it is being
@@ -13704,7 +14686,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13704 lt_prog_compiler_wl_F77='-Wl,' 14686 lt_prog_compiler_wl_F77='-Wl,'
13705 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14687 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13706 # not for PA HP-UX. 14688 # not for PA HP-UX.
13707 case "$host_cpu" in 14689 case $host_cpu in
13708 hppa*64*|ia64*) 14690 hppa*64*|ia64*)
13709 # +Z the default 14691 # +Z the default
13710 ;; 14692 ;;
@@ -13727,13 +14709,20 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13727 lt_prog_compiler_static_F77='-Bstatic' 14709 lt_prog_compiler_static_F77='-Bstatic'
13728 ;; 14710 ;;
13729 14711
13730 linux*) 14712 linux* | k*bsd*-gnu)
13731 case $CC in 14713 case $cc_basename in
13732 icc* | ecc*) 14714 icc* | ecc*)
13733 lt_prog_compiler_wl_F77='-Wl,' 14715 lt_prog_compiler_wl_F77='-Wl,'
13734 lt_prog_compiler_pic_F77='-KPIC' 14716 lt_prog_compiler_pic_F77='-KPIC'
13735 lt_prog_compiler_static_F77='-static' 14717 lt_prog_compiler_static_F77='-static'
13736 ;; 14718 ;;
14719 pgcc* | pgf77* | pgf90* | pgf95*)
14720 # Portland Group compilers (*not* the Pentium gcc compiler,
14721 # which looks to be a dead project)
14722 lt_prog_compiler_wl_F77='-Wl,'
14723 lt_prog_compiler_pic_F77='-fpic'
14724 lt_prog_compiler_static_F77='-Bstatic'
14725 ;;
13737 ccc*) 14726 ccc*)
13738 lt_prog_compiler_wl_F77='-Wl,' 14727 lt_prog_compiler_wl_F77='-Wl,'
13739 # All Alpha code is PIC. 14728 # All Alpha code is PIC.
@@ -13748,15 +14737,15 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13748 lt_prog_compiler_static_F77='-non_shared' 14737 lt_prog_compiler_static_F77='-non_shared'
13749 ;; 14738 ;;
13750 14739
13751 sco3.2v5*)
13752 lt_prog_compiler_pic_F77='-Kpic'
13753 lt_prog_compiler_static_F77='-dn'
13754 ;;
13755
13756 solaris*) 14740 solaris*)
13757 lt_prog_compiler_wl_F77='-Wl,'
13758 lt_prog_compiler_pic_F77='-KPIC' 14741 lt_prog_compiler_pic_F77='-KPIC'
13759 lt_prog_compiler_static_F77='-Bstatic' 14742 lt_prog_compiler_static_F77='-Bstatic'
14743 case $cc_basename in
14744 f77* | f90* | f95*)
14745 lt_prog_compiler_wl_F77='-Qoption ld ';;
14746 *)
14747 lt_prog_compiler_wl_F77='-Wl,';;
14748 esac
13760 ;; 14749 ;;
13761 14750
13762 sunos4*) 14751 sunos4*)
@@ -13765,7 +14754,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13765 lt_prog_compiler_static_F77='-Bstatic' 14754 lt_prog_compiler_static_F77='-Bstatic'
13766 ;; 14755 ;;
13767 14756
13768 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14757 sysv4 | sysv4.2uw2* | sysv4.3*)
13769 lt_prog_compiler_wl_F77='-Wl,' 14758 lt_prog_compiler_wl_F77='-Wl,'
13770 lt_prog_compiler_pic_F77='-KPIC' 14759 lt_prog_compiler_pic_F77='-KPIC'
13771 lt_prog_compiler_static_F77='-Bstatic' 14760 lt_prog_compiler_static_F77='-Bstatic'
@@ -13778,6 +14767,17 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13778 fi 14767 fi
13779 ;; 14768 ;;
13780 14769
14770 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14771 lt_prog_compiler_wl_F77='-Wl,'
14772 lt_prog_compiler_pic_F77='-KPIC'
14773 lt_prog_compiler_static_F77='-Bstatic'
14774 ;;
14775
14776 unicos*)
14777 lt_prog_compiler_wl_F77='-Wl,'
14778 lt_prog_compiler_can_build_shared_F77=no
14779 ;;
14780
13781 uts4*) 14781 uts4*)
13782 lt_prog_compiler_pic_F77='-pic' 14782 lt_prog_compiler_pic_F77='-pic'
13783 lt_prog_compiler_static_F77='-Bstatic' 14783 lt_prog_compiler_static_F77='-Bstatic'
@@ -13789,16 +14789,16 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13789 esac 14789 esac
13790 fi 14790 fi
13791 14791
13792echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14792{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13793echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 14793echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13794 14794
13795# 14795#
13796# Check to make sure the PIC flag actually works. 14796# Check to make sure the PIC flag actually works.
13797# 14797#
13798if test -n "$lt_prog_compiler_pic_F77"; then 14798if test -n "$lt_prog_compiler_pic_F77"; then
13799 14799
13800echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14800{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13801echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 14801echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13802if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14802if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13803 echo $ECHO_N "(cached) $ECHO_C" >&6 14803 echo $ECHO_N "(cached) $ECHO_C" >&6
13804else 14804else
@@ -13812,26 +14812,28 @@ else
13812 # with a dollar sign (not a hyphen), so the echo should work correctly. 14812 # with a dollar sign (not a hyphen), so the echo should work correctly.
13813 # The option is referenced via a variable to avoid confusing sed. 14813 # The option is referenced via a variable to avoid confusing sed.
13814 lt_compile=`echo "$ac_compile" | $SED \ 14814 lt_compile=`echo "$ac_compile" | $SED \
13815 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 14815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13817 -e 's:$: $lt_compiler_flag:'` 14817 -e 's:$: $lt_compiler_flag:'`
13818 (eval echo "\"\$as_me:13818: $lt_compile\"" >&5) 14818 (eval echo "\"\$as_me:14818: $lt_compile\"" >&5)
13819 (eval "$lt_compile" 2>conftest.err) 14819 (eval "$lt_compile" 2>conftest.err)
13820 ac_status=$? 14820 ac_status=$?
13821 cat conftest.err >&5 14821 cat conftest.err >&5
13822 echo "$as_me:13822: \$? = $ac_status" >&5 14822 echo "$as_me:14822: \$? = $ac_status" >&5
13823 if (exit $ac_status) && test -s "$ac_outfile"; then 14823 if (exit $ac_status) && test -s "$ac_outfile"; then
13824 # The compiler can only warn and ignore the option if not recognized 14824 # The compiler can only warn and ignore the option if not recognized
13825 # So say no if there are warnings 14825 # So say no if there are warnings other than the usual output.
13826 if test ! -s conftest.err; then 14826 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14828 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13827 lt_prog_compiler_pic_works_F77=yes 14829 lt_prog_compiler_pic_works_F77=yes
13828 fi 14830 fi
13829 fi 14831 fi
13830 $rm conftest* 14832 $rm conftest*
13831 14833
13832fi 14834fi
13833echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14835{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13834echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 14836echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13835 14837
13836if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14838if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13837 case $lt_prog_compiler_pic_F77 in 14839 case $lt_prog_compiler_pic_F77 in
@@ -13844,7 +14846,7 @@ else
13844fi 14846fi
13845 14847
13846fi 14848fi
13847case "$host_os" in 14849case $host_os in
13848 # For platforms which do not support PIC, -DPIC is meaningless: 14850 # For platforms which do not support PIC, -DPIC is meaningless:
13849 *djgpp*) 14851 *djgpp*)
13850 lt_prog_compiler_pic_F77= 14852 lt_prog_compiler_pic_F77=
@@ -13854,8 +14856,50 @@ case "$host_os" in
13854 ;; 14856 ;;
13855esac 14857esac
13856 14858
13857echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14859#
13858echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 14860# Check to make sure the static flag actually works.
14861#
14862wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14863{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14864echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14865if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14866 echo $ECHO_N "(cached) $ECHO_C" >&6
14867else
14868 lt_prog_compiler_static_works_F77=no
14869 save_LDFLAGS="$LDFLAGS"
14870 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14871 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14872 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14873 # The linker can only warn and ignore the option if not recognized
14874 # So say no if there are warnings
14875 if test -s conftest.err; then
14876 # Append any errors to the config.log.
14877 cat conftest.err 1>&5
14878 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14879 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14880 if diff conftest.exp conftest.er2 >/dev/null; then
14881 lt_prog_compiler_static_works_F77=yes
14882 fi
14883 else
14884 lt_prog_compiler_static_works_F77=yes
14885 fi
14886 fi
14887 $rm conftest*
14888 LDFLAGS="$save_LDFLAGS"
14889
14890fi
14891{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14892echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14893
14894if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14895 :
14896else
14897 lt_prog_compiler_static_F77=
14898fi
14899
14900
14901{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14902echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13859if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14903if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13860 echo $ECHO_N "(cached) $ECHO_C" >&6 14904 echo $ECHO_N "(cached) $ECHO_C" >&6
13861else 14905else
@@ -13872,23 +14916,25 @@ else
13872 # Note that $ac_compile itself does not contain backslashes and begins 14916 # Note that $ac_compile itself does not contain backslashes and begins
13873 # with a dollar sign (not a hyphen), so the echo should work correctly. 14917 # with a dollar sign (not a hyphen), so the echo should work correctly.
13874 lt_compile=`echo "$ac_compile" | $SED \ 14918 lt_compile=`echo "$ac_compile" | $SED \
13875 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 14919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13876 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13877 -e 's:$: $lt_compiler_flag:'` 14921 -e 's:$: $lt_compiler_flag:'`
13878 (eval echo "\"\$as_me:13878: $lt_compile\"" >&5) 14922 (eval echo "\"\$as_me:14922: $lt_compile\"" >&5)
13879 (eval "$lt_compile" 2>out/conftest.err) 14923 (eval "$lt_compile" 2>out/conftest.err)
13880 ac_status=$? 14924 ac_status=$?
13881 cat out/conftest.err >&5 14925 cat out/conftest.err >&5
13882 echo "$as_me:13882: \$? = $ac_status" >&5 14926 echo "$as_me:14926: \$? = $ac_status" >&5
13883 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14927 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13884 then 14928 then
13885 # The compiler can only warn and ignore the option if not recognized 14929 # The compiler can only warn and ignore the option if not recognized
13886 # So say no if there are warnings 14930 # So say no if there are warnings
13887 if test ! -s out/conftest.err; then 14931 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14932 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14933 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13888 lt_cv_prog_compiler_c_o_F77=yes 14934 lt_cv_prog_compiler_c_o_F77=yes
13889 fi 14935 fi
13890 fi 14936 fi
13891 chmod u+w . 14937 chmod u+w . 2>&5
13892 $rm conftest* 14938 $rm conftest*
13893 # SGI C++ compiler will create directory out/ii_files/ for 14939 # SGI C++ compiler will create directory out/ii_files/ for
13894 # template instantiation 14940 # template instantiation
@@ -13899,23 +14945,23 @@ else
13899 $rm conftest* 14945 $rm conftest*
13900 14946
13901fi 14947fi
13902echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14948{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13903echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 14949echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13904 14950
13905 14951
13906hard_links="nottested" 14952hard_links="nottested"
13907if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14953if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13908 # do not overwrite the value of need_locks provided by the user 14954 # do not overwrite the value of need_locks provided by the user
13909 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14955 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13910echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 14956echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13911 hard_links=yes 14957 hard_links=yes
13912 $rm conftest* 14958 $rm conftest*
13913 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14959 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13914 touch conftest.a 14960 touch conftest.a
13915 ln conftest.a conftest.b 2>&5 || hard_links=no 14961 ln conftest.a conftest.b 2>&5 || hard_links=no
13916 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14962 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13917 echo "$as_me:$LINENO: result: $hard_links" >&5 14963 { echo "$as_me:$LINENO: result: $hard_links" >&5
13918echo "${ECHO_T}$hard_links" >&6 14964echo "${ECHO_T}$hard_links" >&6; }
13919 if test "$hard_links" = no; then 14965 if test "$hard_links" = no; then
13920 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14966 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13921echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14967echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
@@ -13925,8 +14971,8 @@ else
13925 need_locks=no 14971 need_locks=no
13926fi 14972fi
13927 14973
13928echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14974{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13929echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 14975echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13930 14976
13931 runpath_var= 14977 runpath_var=
13932 allow_undefined_flag_F77= 14978 allow_undefined_flag_F77=
@@ -13964,6 +15010,16 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
13964 # rely on this symbol name, it's probably fine to never include it in 15010 # rely on this symbol name, it's probably fine to never include it in
13965 # preloaded symbol tables. 15011 # preloaded symbol tables.
13966 extract_expsyms_cmds= 15012 extract_expsyms_cmds=
15013 # Just being paranoid about ensuring that cc_basename is set.
15014 for cc_temp in $compiler""; do
15015 case $cc_temp in
15016 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15017 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15018 \-*) ;;
15019 *) break;;
15020 esac
15021done
15022cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13967 15023
13968 case $host_os in 15024 case $host_os in
13969 cygwin* | mingw* | pw32*) 15025 cygwin* | mingw* | pw32*)
@@ -13974,6 +15030,10 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
13974 with_gnu_ld=no 15030 with_gnu_ld=no
13975 fi 15031 fi
13976 ;; 15032 ;;
15033 interix*)
15034 # we just hope/assume this is gcc and not c89 (= MSVC++)
15035 with_gnu_ld=yes
15036 ;;
13977 openbsd*) 15037 openbsd*)
13978 with_gnu_ld=no 15038 with_gnu_ld=no
13979 ;; 15039 ;;
@@ -13984,6 +15044,27 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
13984 # If archive_cmds runs LD, not CC, wlarc should be empty 15044 # If archive_cmds runs LD, not CC, wlarc should be empty
13985 wlarc='${wl}' 15045 wlarc='${wl}'
13986 15046
15047 # Set some defaults for GNU ld with shared library support. These
15048 # are reset later if shared libraries are not supported. Putting them
15049 # here allows them to be overridden if necessary.
15050 runpath_var=LD_RUN_PATH
15051 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15052 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15053 # ancient GNU ld didn't support --whole-archive et. al.
15054 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15055 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15056 else
15057 whole_archive_flag_spec_F77=
15058 fi
15059 supports_anon_versioning=no
15060 case `$LD -v 2>/dev/null` in
15061 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15062 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15063 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15064 *\ 2.11.*) ;; # other 2.11 versions
15065 *) supports_anon_versioning=yes ;;
15066 esac
15067
13987 # See if GNU ld supports shared libraries. 15068 # See if GNU ld supports shared libraries.
13988 case $host_os in 15069 case $host_os in
13989 aix3* | aix4* | aix5*) 15070 aix3* | aix4* | aix5*)
@@ -14034,10 +15115,10 @@ EOF
14034 allow_undefined_flag_F77=unsupported 15115 allow_undefined_flag_F77=unsupported
14035 always_export_symbols_F77=no 15116 always_export_symbols_F77=no
14036 enable_shared_with_static_runtimes_F77=yes 15117 enable_shared_with_static_runtimes_F77=yes
14037 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15118 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14038 15119
14039 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15120 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14040 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 15121 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14041 # If the export-symbols file already is a .def file (1st line 15122 # If the export-symbols file already is a .def file (1st line
14042 # is EXPORTS), use it as is; otherwise, prepend... 15123 # is EXPORTS), use it as is; otherwise, prepend...
14043 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15124 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
@@ -14046,13 +15127,60 @@ EOF
14046 echo EXPORTS > $output_objdir/$soname.def; 15127 echo EXPORTS > $output_objdir/$soname.def;
14047 cat $export_symbols >> $output_objdir/$soname.def; 15128 cat $export_symbols >> $output_objdir/$soname.def;
14048 fi~ 15129 fi~
14049 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 15130 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14050 else 15131 else
14051 ld_shlibs=no 15132 ld_shlibs_F77=no
14052 fi 15133 fi
14053 ;; 15134 ;;
14054 15135
14055 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 15136 interix3*)
15137 hardcode_direct_F77=no
15138 hardcode_shlibpath_var_F77=no
15139 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15140 export_dynamic_flag_spec_F77='${wl}-E'
15141 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15142 # Instead, shared libraries are loaded at an image base (0x10000000 by
15143 # default) and relocated if they conflict, which is a slow very memory
15144 # consuming and fragmenting process. To avoid this, we pick a random,
15145 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15146 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15147 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15148 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15149 ;;
15150
15151 linux* | k*bsd*-gnu)
15152 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15153 tmp_addflag=
15154 case $cc_basename,$host_cpu in
15155 pgcc*) # Portland Group C compiler
15156 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15157 tmp_addflag=' $pic_flag'
15158 ;;
15159 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15160 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15161 tmp_addflag=' $pic_flag -Mnomain' ;;
15162 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15163 tmp_addflag=' -i_dynamic' ;;
15164 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15165 tmp_addflag=' -i_dynamic -nofor_main' ;;
15166 ifc* | ifort*) # Intel Fortran compiler
15167 tmp_addflag=' -nofor_main' ;;
15168 esac
15169 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15170
15171 if test $supports_anon_versioning = yes; then
15172 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15173 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15174 $echo "local: *; };" >> $output_objdir/$libname.ver~
15175 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15176 fi
15177 link_all_deplibs_F77=no
15178 else
15179 ld_shlibs_F77=no
15180 fi
15181 ;;
15182
15183 netbsd* | netbsdelf*-gnu)
14056 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15184 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14057 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15185 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14058 wlarc= 15186 wlarc=
@@ -14062,7 +15190,7 @@ EOF
14062 fi 15190 fi
14063 ;; 15191 ;;
14064 15192
14065 solaris* | sysv5*) 15193 solaris*)
14066 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15194 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14067 ld_shlibs_F77=no 15195 ld_shlibs_F77=no
14068 cat <<EOF 1>&2 15196 cat <<EOF 1>&2
@@ -14083,6 +15211,33 @@ EOF
14083 fi 15211 fi
14084 ;; 15212 ;;
14085 15213
15214 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15215 case `$LD -v 2>&1` in
15216 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15217 ld_shlibs_F77=no
15218 cat <<_LT_EOF 1>&2
15219
15220*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15221*** reliably create shared libraries on SCO systems. Therefore, libtool
15222*** is disabling shared libraries support. We urge you to upgrade GNU
15223*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15224*** your PATH or compiler configuration so that the native linker is
15225*** used, and then restart.
15226
15227_LT_EOF
15228 ;;
15229 *)
15230 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15231 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15232 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15233 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15234 else
15235 ld_shlibs_F77=no
15236 fi
15237 ;;
15238 esac
15239 ;;
15240
14086 sunos4*) 15241 sunos4*)
14087 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15242 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14088 wlarc= 15243 wlarc=
@@ -14090,32 +15245,6 @@ EOF
14090 hardcode_shlibpath_var_F77=no 15245 hardcode_shlibpath_var_F77=no
14091 ;; 15246 ;;
14092 15247
14093 linux*)
14094 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14095 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14096 archive_cmds_F77="$tmp_archive_cmds"
14097 supports_anon_versioning=no
14098 case `$LD -v 2>/dev/null` in
14099 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14100 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14101 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14102 *\ 2.11.*) ;; # other 2.11 versions
14103 *) supports_anon_versioning=yes ;;
14104 esac
14105 if test $supports_anon_versioning = yes; then
14106 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14107cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14108$echo "local: *; };" >> $output_objdir/$libname.ver~
14109 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14110 else
14111 archive_expsym_cmds_F77="$tmp_archive_cmds"
14112 fi
14113 link_all_deplibs_F77=no
14114 else
14115 ld_shlibs_F77=no
14116 fi
14117 ;;
14118
14119 *) 15248 *)
14120 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15249 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14121 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15250 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
@@ -14126,16 +15255,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
14126 ;; 15255 ;;
14127 esac 15256 esac
14128 15257
14129 if test "$ld_shlibs_F77" = yes; then 15258 if test "$ld_shlibs_F77" = no; then
14130 runpath_var=LD_RUN_PATH 15259 runpath_var=
14131 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 15260 hardcode_libdir_flag_spec_F77=
14132 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 15261 export_dynamic_flag_spec_F77=
14133 # ancient GNU ld didn't support --whole-archive et. al. 15262 whole_archive_flag_spec_F77=
14134 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14135 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14136 else
14137 whole_archive_flag_spec_F77=
14138 fi
14139 fi 15263 fi
14140 else 15264 else
14141 # PORTME fill in a description of your system's linker (not GNU ld) 15265 # PORTME fill in a description of your system's linker (not GNU ld)
@@ -14147,7 +15271,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
14147 # Note: this linker hardcodes the directories in LIBPATH if there 15271 # Note: this linker hardcodes the directories in LIBPATH if there
14148 # are no directories specified by -L. 15272 # are no directories specified by -L.
14149 hardcode_minus_L_F77=yes 15273 hardcode_minus_L_F77=yes
14150 if test "$GCC" = yes && test -z "$link_static_flag"; then 15274 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14151 # Neither direct hardcoding nor static linking is supported with a 15275 # Neither direct hardcoding nor static linking is supported with a
14152 # broken collect2. 15276 # broken collect2.
14153 hardcode_direct_F77=unsupported 15277 hardcode_direct_F77=unsupported
@@ -14181,6 +15305,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
14181 break 15305 break
14182 fi 15306 fi
14183 done 15307 done
15308 ;;
14184 esac 15309 esac
14185 15310
14186 exp_sym_flag='-bexport' 15311 exp_sym_flag='-bexport'
@@ -14199,7 +15324,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
14199 link_all_deplibs_F77=yes 15324 link_all_deplibs_F77=yes
14200 15325
14201 if test "$GCC" = yes; then 15326 if test "$GCC" = yes; then
14202 case $host_os in aix4.012|aix4.012.*) 15327 case $host_os in aix4.[012]|aix4.[012].*)
14203 # We only want to do this on AIX 4.2 and lower, the check 15328 # We only want to do this on AIX 4.2 and lower, the check
14204 # below for broken collect2 doesn't work under 4.3+ 15329 # below for broken collect2 doesn't work under 4.3+
14205 collect2name=`${CC} -print-prog-name=collect2` 15330 collect2name=`${CC} -print-prog-name=collect2`
@@ -14218,8 +15343,12 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
14218 hardcode_libdir_flag_spec_F77='-L$libdir' 15343 hardcode_libdir_flag_spec_F77='-L$libdir'
14219 hardcode_libdir_separator_F77= 15344 hardcode_libdir_separator_F77=
14220 fi 15345 fi
15346 ;;
14221 esac 15347 esac
14222 shared_flag='-shared' 15348 shared_flag='-shared'
15349 if test "$aix_use_runtimelinking" = yes; then
15350 shared_flag="$shared_flag "'${wl}-G'
15351 fi
14223 else 15352 else
14224 # not using gcc 15353 # not using gcc
14225 if test "$host_cpu" = ia64; then 15354 if test "$host_cpu" = ia64; then
@@ -14227,11 +15356,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
14227 # chokes on -Wl,-G. The following line is correct: 15356 # chokes on -Wl,-G. The following line is correct:
14228 shared_flag='-G' 15357 shared_flag='-G'
14229 else 15358 else
14230 if test "$aix_use_runtimelinking" = yes; then 15359 if test "$aix_use_runtimelinking" = yes; then
14231 shared_flag='${wl}-G' 15360 shared_flag='${wl}-G'
14232 else 15361 else
14233 shared_flag='${wl}-bM:SRE' 15362 shared_flag='${wl}-bM:SRE'
14234 fi 15363 fi
14235 fi 15364 fi
14236 fi 15365 fi
14237 15366
@@ -14249,23 +15378,36 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
14249 end 15378 end
14250_ACEOF 15379_ACEOF
14251rm -f conftest.$ac_objext conftest$ac_exeext 15380rm -f conftest.$ac_objext conftest$ac_exeext
14252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15381if { (ac_try="$ac_link"
14253 (eval $ac_link) 2>conftest.er1 15382case "(($ac_try" in
15383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384 *) ac_try_echo=$ac_try;;
15385esac
15386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387 (eval "$ac_link") 2>conftest.er1
14254 ac_status=$? 15388 ac_status=$?
14255 grep -v '^ *+' conftest.er1 >conftest.err 15389 grep -v '^ *+' conftest.er1 >conftest.err
14256 rm -f conftest.er1 15390 rm -f conftest.er1
14257 cat conftest.err >&5 15391 cat conftest.err >&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); } && 15393 (exit $ac_status); } &&
14260 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 15394 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15395 { (case "(($ac_try" in
14262 (eval $ac_try) 2>&5 15396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397 *) ac_try_echo=$ac_try;;
15398esac
15399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15400 (eval "$ac_try") 2>&5
14263 ac_status=$? 15401 ac_status=$?
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; } && 15403 (exit $ac_status); }; } &&
14266 { ac_try='test -s conftest$ac_exeext' 15404 { ac_try='test -s conftest$ac_exeext'
14267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15405 { (case "(($ac_try" in
14268 (eval $ac_try) 2>&5 15406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407 *) ac_try_echo=$ac_try;;
15408esac
15409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410 (eval "$ac_try") 2>&5
14269 ac_status=$? 15411 ac_status=$?
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); }; }; then 15413 (exit $ac_status); }; }; then
@@ -14279,18 +15421,20 @@ else
14279 echo "$as_me: failed program was:" >&5 15421 echo "$as_me: failed program was:" >&5
14280sed 's/^/| /' conftest.$ac_ext >&5 15422sed 's/^/| /' conftest.$ac_ext >&5
14281 15423
15424
14282fi 15425fi
14283rm -f conftest.err conftest.$ac_objext \ 15426
15427rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14284 conftest$ac_exeext conftest.$ac_ext 15428 conftest$ac_exeext conftest.$ac_ext
14285if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15429if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14286 15430
14287 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15431 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14288 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 15432 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14289 else 15433 else
14290 if test "$host_cpu" = ia64; then 15434 if test "$host_cpu" = ia64; then
14291 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15435 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14292 allow_undefined_flag_F77="-z nodefs" 15436 allow_undefined_flag_F77="-z nodefs"
14293 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 15437 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14294 else 15438 else
14295 # Determine the default libpath from the value encoded in an empty executable. 15439 # Determine the default libpath from the value encoded in an empty executable.
14296 cat >conftest.$ac_ext <<_ACEOF 15440 cat >conftest.$ac_ext <<_ACEOF
@@ -14299,23 +15443,36 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14299 end 15443 end
14300_ACEOF 15444_ACEOF
14301rm -f conftest.$ac_objext conftest$ac_exeext 15445rm -f conftest.$ac_objext conftest$ac_exeext
14302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15446if { (ac_try="$ac_link"
14303 (eval $ac_link) 2>conftest.er1 15447case "(($ac_try" in
15448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15449 *) ac_try_echo=$ac_try;;
15450esac
15451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15452 (eval "$ac_link") 2>conftest.er1
14304 ac_status=$? 15453 ac_status=$?
14305 grep -v '^ *+' conftest.er1 >conftest.err 15454 grep -v '^ *+' conftest.er1 >conftest.err
14306 rm -f conftest.er1 15455 rm -f conftest.er1
14307 cat conftest.err >&5 15456 cat conftest.err >&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } && 15458 (exit $ac_status); } &&
14310 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 15459 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15460 { (case "(($ac_try" in
14312 (eval $ac_try) 2>&5 15461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15462 *) ac_try_echo=$ac_try;;
15463esac
15464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15465 (eval "$ac_try") 2>&5
14313 ac_status=$? 15466 ac_status=$?
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); }; } && 15468 (exit $ac_status); }; } &&
14316 { ac_try='test -s conftest$ac_exeext' 15469 { ac_try='test -s conftest$ac_exeext'
14317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15470 { (case "(($ac_try" in
14318 (eval $ac_try) 2>&5 15471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15472 *) ac_try_echo=$ac_try;;
15473esac
15474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15475 (eval "$ac_try") 2>&5
14319 ac_status=$? 15476 ac_status=$?
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); }; }; then 15478 (exit $ac_status); }; }; then
@@ -14329,8 +15486,10 @@ else
14329 echo "$as_me: failed program was:" >&5 15486 echo "$as_me: failed program was:" >&5
14330sed 's/^/| /' conftest.$ac_ext >&5 15487sed 's/^/| /' conftest.$ac_ext >&5
14331 15488
15489
14332fi 15490fi
14333rm -f conftest.err conftest.$ac_objext \ 15491
15492rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14334 conftest$ac_exeext conftest.$ac_ext 15493 conftest$ac_exeext conftest.$ac_ext
14335if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15494if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14336 15495
@@ -14339,13 +15498,11 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14339 # -berok will link without error, but may produce a broken library. 15498 # -berok will link without error, but may produce a broken library.
14340 no_undefined_flag_F77=' ${wl}-bernotok' 15499 no_undefined_flag_F77=' ${wl}-bernotok'
14341 allow_undefined_flag_F77=' ${wl}-berok' 15500 allow_undefined_flag_F77=' ${wl}-berok'
14342 # -bexpall does not export symbols beginning with underscore (_)
14343 always_export_symbols_F77=yes
14344 # Exported symbols can be pulled into shared objects from archives 15501 # Exported symbols can be pulled into shared objects from archives
14345 whole_archive_flag_spec_F77=' ' 15502 whole_archive_flag_spec_F77='$convenience'
14346 archive_cmds_need_lc_F77=yes 15503 archive_cmds_need_lc_F77=yes
14347 # This is similar to how AIX traditionally builds it's shared libraries. 15504 # This is similar to how AIX traditionally builds its shared libraries.
14348 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 15505 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14349 fi 15506 fi
14350 fi 15507 fi
14351 ;; 15508 ;;
@@ -14358,7 +15515,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14358 ld_shlibs_F77=no 15515 ld_shlibs_F77=no
14359 ;; 15516 ;;
14360 15517
14361 bsdi4*) 15518 bsdi[45]*)
14362 export_dynamic_flag_spec_F77=-rdynamic 15519 export_dynamic_flag_spec_F77=-rdynamic
14363 ;; 15520 ;;
14364 15521
@@ -14379,57 +15536,57 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14379 old_archive_From_new_cmds_F77='true' 15536 old_archive_From_new_cmds_F77='true'
14380 # FIXME: Should let the user specify the lib program. 15537 # FIXME: Should let the user specify the lib program.
14381 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 15538 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14382 fix_srcfile_path='`cygpath -w "$srcfile"`' 15539 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14383 enable_shared_with_static_runtimes_F77=yes 15540 enable_shared_with_static_runtimes_F77=yes
14384 ;; 15541 ;;
14385 15542
14386 darwin* | rhapsody*) 15543 darwin* | rhapsody*)
14387 if test "$GXX" = yes ; then 15544 case $host_os in
14388 archive_cmds_need_lc_F77=no 15545 rhapsody* | darwin1.[012])
14389 case "$host_os" in 15546 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14390 rhapsody* | darwin1.[012]) 15547 ;;
14391 allow_undefined_flag_F77='-undefined suppress' 15548 *) # Darwin 1.3 on
14392 ;; 15549 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14393 *) # Darwin 1.3 on 15550 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14394 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15551 else
14395 allow_undefined_flag_F77='-flat_namespace -undefined suppress' 15552 case ${MACOSX_DEPLOYMENT_TARGET} in
14396 else 15553 10.[012])
14397 case ${MACOSX_DEPLOYMENT_TARGET} in 15554 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14398 10.[012]) 15555 ;;
14399 allow_undefined_flag_F77='-flat_namespace -undefined suppress' 15556 10.*)
14400 ;; 15557 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14401 10.*) 15558 ;;
14402 allow_undefined_flag_F77='-undefined dynamic_lookup' 15559 esac
14403 ;; 15560 fi
14404 esac 15561 ;;
14405 fi
14406 ;;
14407 esac 15562 esac
14408 lt_int_apple_cc_single_mod=no 15563 archive_cmds_need_lc_F77=no
14409 output_verbose_link_cmd='echo'
14410 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14411 lt_int_apple_cc_single_mod=yes
14412 fi
14413 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14414 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14415 else
14416 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14417 fi
14418 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14419 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14420 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14421 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14422 else
14423 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14424 fi
14425 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14426 hardcode_direct_F77=no 15564 hardcode_direct_F77=no
14427 hardcode_automatic_F77=yes 15565 hardcode_automatic_F77=yes
14428 hardcode_shlibpath_var_F77=unsupported 15566 hardcode_shlibpath_var_F77=unsupported
14429 whole_archive_flag_spec_F77='-all_load $convenience' 15567 whole_archive_flag_spec_F77=''
14430 link_all_deplibs_F77=yes 15568 link_all_deplibs_F77=yes
15569 if test "$GCC" = yes ; then
15570 output_verbose_link_cmd='echo'
15571 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15572 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15573 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15574 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15575 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14431 else 15576 else
14432 ld_shlibs_F77=no 15577 case $cc_basename in
15578 xlc*)
15579 output_verbose_link_cmd='echo'
15580 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15581 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15582 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15583 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15584 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15585 ;;
15586 *)
15587 ld_shlibs_F77=no
15588 ;;
15589 esac
14433 fi 15590 fi
14434 ;; 15591 ;;
14435 15592
@@ -14463,7 +15620,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14463 ;; 15620 ;;
14464 15621
14465 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15622 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14466 freebsd* | kfreebsd*-gnu) 15623 freebsd* | dragonfly*)
14467 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15624 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14468 hardcode_libdir_flag_spec_F77='-R$libdir' 15625 hardcode_libdir_flag_spec_F77='-R$libdir'
14469 hardcode_direct_F77=yes 15626 hardcode_direct_F77=yes
@@ -14486,47 +15643,62 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14486 export_dynamic_flag_spec_F77='${wl}-E' 15643 export_dynamic_flag_spec_F77='${wl}-E'
14487 ;; 15644 ;;
14488 15645
14489 hpux10* | hpux11*) 15646 hpux10*)
14490 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15647 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14491 case "$host_cpu" in 15648 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14492 hppa*64*|ia64*) 15649 else
15650 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15651 fi
15652 if test "$with_gnu_ld" = no; then
15653 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15654 hardcode_libdir_separator_F77=:
15655
15656 hardcode_direct_F77=yes
15657 export_dynamic_flag_spec_F77='${wl}-E'
15658
15659 # hardcode_minus_L: Not really in the search PATH,
15660 # but as the default location of the library.
15661 hardcode_minus_L_F77=yes
15662 fi
15663 ;;
15664
15665 hpux11*)
15666 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15667 case $host_cpu in
15668 hppa*64*)
14493 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15669 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14494 ;; 15670 ;;
15671 ia64*)
15672 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15673 ;;
14495 *) 15674 *)
14496 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15675 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14497 ;; 15676 ;;
14498 esac 15677 esac
14499 else 15678 else
14500 case "$host_cpu" in 15679 case $host_cpu in
14501 hppa*64*|ia64*) 15680 hppa*64*)
14502 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 15681 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15682 ;;
15683 ia64*)
15684 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14503 ;; 15685 ;;
14504 *) 15686 *)
14505 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15687 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14506 ;; 15688 ;;
14507 esac 15689 esac
14508 fi 15690 fi
14509 if test "$with_gnu_ld" = no; then 15691 if test "$with_gnu_ld" = no; then
14510 case "$host_cpu" in 15692 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14511 hppa*64*) 15693 hardcode_libdir_separator_F77=:
14512 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15694
15695 case $host_cpu in
15696 hppa*64*|ia64*)
14513 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15697 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14514 hardcode_libdir_separator_F77=:
14515 hardcode_direct_F77=no 15698 hardcode_direct_F77=no
14516 hardcode_shlibpath_var_F77=no 15699 hardcode_shlibpath_var_F77=no
14517 ;; 15700 ;;
14518 ia64*)
14519 hardcode_libdir_flag_spec_F77='-L$libdir'
14520 hardcode_direct_F77=no
14521 hardcode_shlibpath_var_F77=no
14522
14523 # hardcode_minus_L: Not really in the search PATH,
14524 # but as the default location of the library.
14525 hardcode_minus_L_F77=yes
14526 ;;
14527 *) 15701 *)
14528 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14529 hardcode_libdir_separator_F77=:
14530 hardcode_direct_F77=yes 15702 hardcode_direct_F77=yes
14531 export_dynamic_flag_spec_F77='${wl}-E' 15703 export_dynamic_flag_spec_F77='${wl}-E'
14532 15704
@@ -14550,7 +15722,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14550 link_all_deplibs_F77=yes 15722 link_all_deplibs_F77=yes
14551 ;; 15723 ;;
14552 15724
14553 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 15725 netbsd* | netbsdelf*-gnu)
14554 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15726 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14555 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15727 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14556 else 15728 else
@@ -14574,6 +15746,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14574 hardcode_shlibpath_var_F77=no 15746 hardcode_shlibpath_var_F77=no
14575 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15747 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14576 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15748 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15749 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14577 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15750 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14578 export_dynamic_flag_spec_F77='${wl}-E' 15751 export_dynamic_flag_spec_F77='${wl}-E'
14579 else 15752 else
@@ -14619,7 +15792,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14619 allow_undefined_flag_F77=' -expect_unresolved \*' 15792 allow_undefined_flag_F77=' -expect_unresolved \*'
14620 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15793 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14621 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 15794 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14622 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 15795 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14623 15796
14624 # Both c and cxx compiler support -rpath directly 15797 # Both c and cxx compiler support -rpath directly
14625 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15798 hardcode_libdir_flag_spec_F77='-rpath $libdir'
@@ -14627,21 +15800,15 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14627 hardcode_libdir_separator_F77=: 15800 hardcode_libdir_separator_F77=:
14628 ;; 15801 ;;
14629 15802
14630 sco3.2v5*)
14631 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14632 hardcode_shlibpath_var_F77=no
14633 export_dynamic_flag_spec_F77='${wl}-Bexport'
14634 runpath_var=LD_RUN_PATH
14635 hardcode_runpath_var=yes
14636 ;;
14637
14638 solaris*) 15803 solaris*)
14639 no_undefined_flag_F77=' -z text' 15804 no_undefined_flag_F77=' -z text'
14640 if test "$GCC" = yes; then 15805 if test "$GCC" = yes; then
15806 wlarc='${wl}'
14641 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15807 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14642 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15808 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14643 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15809 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14644 else 15810 else
15811 wlarc=''
14645 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15812 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14646 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15813 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14647 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15814 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
@@ -14650,8 +15817,18 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14650 hardcode_shlibpath_var_F77=no 15817 hardcode_shlibpath_var_F77=no
14651 case $host_os in 15818 case $host_os in
14652 solaris2.[0-5] | solaris2.[0-5].*) ;; 15819 solaris2.[0-5] | solaris2.[0-5].*) ;;
14653 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 15820 *)
14654 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15821 # The compiler driver will combine linker options so we
15822 # cannot just pass the convience library names through
15823 # without $wl, iff we do not link with $LD.
15824 # Luckily, gcc supports the same syntax we need for Sun Studio.
15825 # Supported since Solaris 2.6 (maybe 2.5.1?)
15826 case $wlarc in
15827 '')
15828 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15829 *)
15830 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15831 esac ;;
14655 esac 15832 esac
14656 link_all_deplibs_F77=yes 15833 link_all_deplibs_F77=yes
14657 ;; 15834 ;;
@@ -14708,36 +15885,45 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14708 fi 15885 fi
14709 ;; 15886 ;;
14710 15887
14711 sysv4.2uw2*) 15888 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14712 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15889 no_undefined_flag_F77='${wl}-z,text'
14713 hardcode_direct_F77=yes 15890 archive_cmds_need_lc_F77=no
14714 hardcode_minus_L_F77=no
14715 hardcode_shlibpath_var_F77=no 15891 hardcode_shlibpath_var_F77=no
14716 hardcode_runpath_var=yes 15892 runpath_var='LD_RUN_PATH'
14717 runpath_var=LD_RUN_PATH
14718 ;;
14719 15893
14720 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14721 no_undefined_flag_F77='${wl}-z ${wl}text'
14722 if test "$GCC" = yes; then 15894 if test "$GCC" = yes; then
14723 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15895 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15896 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14724 else 15897 else
14725 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15898 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15899 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14726 fi 15900 fi
14727 runpath_var='LD_RUN_PATH'
14728 hardcode_shlibpath_var_F77=no
14729 ;; 15901 ;;
14730 15902
14731 sysv5*) 15903 sysv5* | sco3.2v5* | sco5v6*)
14732 no_undefined_flag_F77=' -z text' 15904 # Note: We can NOT use -z defs as we might desire, because we do not
14733 # $CC -shared without GNU ld will not create a library from C++ 15905 # link with -lc, and that would cause any symbols used from libc to
14734 # object files and a static libstdc++, better avoid it by now 15906 # always be unresolved, which means just about no library would
14735 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15907 # ever link correctly. If we're not using GNU ld we use -z text
14736 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15908 # though, which does catch some bad symbols but isn't as heavy-handed
14737 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15909 # as -z defs.
14738 hardcode_libdir_flag_spec_F77= 15910 no_undefined_flag_F77='${wl}-z,text'
15911 allow_undefined_flag_F77='${wl}-z,nodefs'
15912 archive_cmds_need_lc_F77=no
14739 hardcode_shlibpath_var_F77=no 15913 hardcode_shlibpath_var_F77=no
15914 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15915 hardcode_libdir_separator_F77=':'
15916 link_all_deplibs_F77=yes
15917 export_dynamic_flag_spec_F77='${wl}-Bexport'
14740 runpath_var='LD_RUN_PATH' 15918 runpath_var='LD_RUN_PATH'
15919
15920 if test "$GCC" = yes; then
15921 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15922 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15923 else
15924 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15925 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15926 fi
14741 ;; 15927 ;;
14742 15928
14743 uts4*) 15929 uts4*)
@@ -14752,15 +15938,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14752 esac 15938 esac
14753 fi 15939 fi
14754 15940
14755echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15941{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14756echo "${ECHO_T}$ld_shlibs_F77" >&6 15942echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14757test "$ld_shlibs_F77" = no && can_build_shared=no 15943test "$ld_shlibs_F77" = no && can_build_shared=no
14758 15944
14759variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14760if test "$GCC" = yes; then
14761 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14762fi
14763
14764# 15945#
14765# Do we need to explicitly link libc? 15946# Do we need to explicitly link libc?
14766# 15947#
@@ -14778,8 +15959,8 @@ x|xyes)
14778 # Test whether the compiler implicitly links with -lc since on some 15959 # Test whether the compiler implicitly links with -lc since on some
14779 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15960 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14780 # to ld, don't add -lc before -lgcc. 15961 # to ld, don't add -lc before -lgcc.
14781 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15962 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14782echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 15963echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14783 $rm conftest* 15964 $rm conftest*
14784 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15965 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14785 15966
@@ -14793,6 +15974,7 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
14793 libobjs=conftest.$ac_objext 15974 libobjs=conftest.$ac_objext
14794 deplibs= 15975 deplibs=
14795 wl=$lt_prog_compiler_wl_F77 15976 wl=$lt_prog_compiler_wl_F77
15977 pic_flag=$lt_prog_compiler_pic_F77
14796 compiler_flags=-v 15978 compiler_flags=-v
14797 linker_flags=-v 15979 linker_flags=-v
14798 verstring= 15980 verstring=
@@ -14815,16 +15997,16 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
14815 cat conftest.err 1>&5 15997 cat conftest.err 1>&5
14816 fi 15998 fi
14817 $rm conftest* 15999 $rm conftest*
14818 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 16000 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14819echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 16001echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14820 ;; 16002 ;;
14821 esac 16003 esac
14822 fi 16004 fi
14823 ;; 16005 ;;
14824esac 16006esac
14825 16007
14826echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16008{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14827echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 16009echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14828library_names_spec= 16010library_names_spec=
14829libname_spec='lib$name' 16011libname_spec='lib$name'
14830soname_spec= 16012soname_spec=
@@ -14925,7 +16107,7 @@ beos*)
14925 shlibpath_var=LIBRARY_PATH 16107 shlibpath_var=LIBRARY_PATH
14926 ;; 16108 ;;
14927 16109
14928bsdi4*) 16110bsdi[45]*)
14929 version_type=linux 16111 version_type=linux
14930 need_version=no 16112 need_version=no
14931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -14953,7 +16135,8 @@ cygwin* | mingw* | pw32*)
14953 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16135 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14954 dldir=$destdir/`dirname \$dlpath`~ 16136 dldir=$destdir/`dirname \$dlpath`~
14955 test -d \$dldir || mkdir -p \$dldir~ 16137 test -d \$dldir || mkdir -p \$dldir~
14956 $install_prog $dir/$dlname \$dldir/$dlname' 16138 $install_prog $dir/$dlname \$dldir/$dlname~
16139 chmod a+x \$dldir/$dlname'
14957 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16140 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14958 dlpath=$dir/\$dldll~ 16141 dlpath=$dir/\$dldll~
14959 $rm \$dlpath' 16142 $rm \$dlpath'
@@ -14983,7 +16166,7 @@ cygwin* | mingw* | pw32*)
14983 ;; 16166 ;;
14984 pw32*) 16167 pw32*)
14985 # pw32 DLLs use 'pw' prefix rather than 'lib' 16168 # pw32 DLLs use 'pw' prefix rather than 'lib'
14986 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 16169 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14987 ;; 16170 ;;
14988 esac 16171 esac
14989 ;; 16172 ;;
@@ -15006,7 +16189,7 @@ darwin* | rhapsody*)
15006 soname_spec='${libname}${release}${major}$shared_ext' 16189 soname_spec='${libname}${release}${major}$shared_ext'
15007 shlibpath_overrides_runpath=yes 16190 shlibpath_overrides_runpath=yes
15008 shlibpath_var=DYLD_LIBRARY_PATH 16191 shlibpath_var=DYLD_LIBRARY_PATH
15009 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 16192 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15010 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16193 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15011 if test "$GCC" = yes; then 16194 if test "$GCC" = yes; then
15012 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 16195 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
@@ -15029,20 +16212,17 @@ freebsd1*)
15029 dynamic_linker=no 16212 dynamic_linker=no
15030 ;; 16213 ;;
15031 16214
15032kfreebsd*-gnu) 16215freebsd* | dragonfly*)
15033 version_type=linux 16216 # DragonFly does not have aout. When/if they implement a new
15034 need_lib_prefix=no 16217 # versioning mechanism, adjust this.
15035 need_version=no 16218 if test -x /usr/bin/objformat; then
15036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16219 objformat=`/usr/bin/objformat`
15037 soname_spec='${libname}${release}${shared_ext}$major' 16220 else
15038 shlibpath_var=LD_LIBRARY_PATH 16221 case $host_os in
15039 shlibpath_overrides_runpath=no 16222 freebsd[123]*) objformat=aout ;;
15040 hardcode_into_libs=yes 16223 *) objformat=elf ;;
15041 dynamic_linker='GNU ld.so' 16224 esac
15042 ;; 16225 fi
15043
15044freebsd*)
15045 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15046 version_type=freebsd-$objformat 16226 version_type=freebsd-$objformat
15047 case $version_type in 16227 case $version_type in
15048 freebsd-elf*) 16228 freebsd-elf*)
@@ -15060,14 +16240,19 @@ freebsd*)
15060 freebsd2*) 16240 freebsd2*)
15061 shlibpath_overrides_runpath=yes 16241 shlibpath_overrides_runpath=yes
15062 ;; 16242 ;;
15063 freebsd3.01* | freebsdelf3.01*) 16243 freebsd3.[01]* | freebsdelf3.[01]*)
15064 shlibpath_overrides_runpath=yes 16244 shlibpath_overrides_runpath=yes
15065 hardcode_into_libs=yes 16245 hardcode_into_libs=yes
15066 ;; 16246 ;;
15067 *) # from 3.2 on 16247 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16248 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15068 shlibpath_overrides_runpath=no 16249 shlibpath_overrides_runpath=no
15069 hardcode_into_libs=yes 16250 hardcode_into_libs=yes
15070 ;; 16251 ;;
16252 freebsd*) # from 4.6 on
16253 shlibpath_overrides_runpath=yes
16254 hardcode_into_libs=yes
16255 ;;
15071 esac 16256 esac
15072 ;; 16257 ;;
15073 16258
@@ -15087,7 +16272,7 @@ hpux9* | hpux10* | hpux11*)
15087 version_type=sunos 16272 version_type=sunos
15088 need_lib_prefix=no 16273 need_lib_prefix=no
15089 need_version=no 16274 need_version=no
15090 case "$host_cpu" in 16275 case $host_cpu in
15091 ia64*) 16276 ia64*)
15092 shrext_cmds='.so' 16277 shrext_cmds='.so'
15093 hardcode_into_libs=yes 16278 hardcode_into_libs=yes
@@ -15127,6 +16312,18 @@ hpux9* | hpux10* | hpux11*)
15127 postinstall_cmds='chmod 555 $lib' 16312 postinstall_cmds='chmod 555 $lib'
15128 ;; 16313 ;;
15129 16314
16315interix3*)
16316 version_type=linux
16317 need_lib_prefix=no
16318 need_version=no
16319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16320 soname_spec='${libname}${release}${shared_ext}$major'
16321 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16322 shlibpath_var=LD_LIBRARY_PATH
16323 shlibpath_overrides_runpath=no
16324 hardcode_into_libs=yes
16325 ;;
16326
15130irix5* | irix6* | nonstopux*) 16327irix5* | irix6* | nonstopux*)
15131 case $host_os in 16328 case $host_os in
15132 nonstopux*) version_type=nonstopux ;; 16329 nonstopux*) version_type=nonstopux ;;
@@ -15170,7 +16367,7 @@ linux*oldld* | linux*aout* | linux*coff*)
15170 ;; 16367 ;;
15171 16368
15172# This must be Linux ELF. 16369# This must be Linux ELF.
15173linux*) 16370linux* | k*bsd*-gnu)
15174 version_type=linux 16371 version_type=linux
15175 need_lib_prefix=no 16372 need_lib_prefix=no
15176 need_version=no 16373 need_version=no
@@ -15186,7 +16383,7 @@ linux*)
15186 16383
15187 # Append ld.so.conf contents to the search path 16384 # Append ld.so.conf contents to the search path
15188 if test -f /etc/ld.so.conf; then 16385 if test -f /etc/ld.so.conf; then
15189 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 16386 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15190 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16387 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15191 fi 16388 fi
15192 16389
@@ -15211,18 +16408,6 @@ netbsdelf*-gnu)
15211 dynamic_linker='NetBSD ld.elf_so' 16408 dynamic_linker='NetBSD ld.elf_so'
15212 ;; 16409 ;;
15213 16410
15214knetbsd*-gnu)
15215 version_type=linux
15216 need_lib_prefix=no
15217 need_version=no
15218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15219 soname_spec='${libname}${release}${shared_ext}$major'
15220 shlibpath_var=LD_LIBRARY_PATH
15221 shlibpath_overrides_runpath=no
15222 hardcode_into_libs=yes
15223 dynamic_linker='GNU ld.so'
15224 ;;
15225
15226netbsd*) 16411netbsd*)
15227 version_type=sunos 16412 version_type=sunos
15228 need_lib_prefix=no 16413 need_lib_prefix=no
@@ -15260,8 +16445,13 @@ nto-qnx*)
15260 16445
15261openbsd*) 16446openbsd*)
15262 version_type=sunos 16447 version_type=sunos
16448 sys_lib_dlsearch_path_spec="/usr/lib"
15263 need_lib_prefix=no 16449 need_lib_prefix=no
15264 need_version=yes 16450 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16451 case $host_os in
16452 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16453 *) need_version=no ;;
16454 esac
15265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15267 shlibpath_var=LD_LIBRARY_PATH 16457 shlibpath_var=LD_LIBRARY_PATH
@@ -15299,13 +16489,6 @@ osf3* | osf4* | osf5*)
15299 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16489 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15300 ;; 16490 ;;
15301 16491
15302sco3.2v5*)
15303 version_type=osf
15304 soname_spec='${libname}${release}${shared_ext}$major'
15305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15306 shlibpath_var=LD_LIBRARY_PATH
15307 ;;
15308
15309solaris*) 16492solaris*)
15310 version_type=linux 16493 version_type=linux
15311 need_lib_prefix=no 16494 need_lib_prefix=no
@@ -15331,7 +16514,7 @@ sunos4*)
15331 need_version=yes 16514 need_version=yes
15332 ;; 16515 ;;
15333 16516
15334sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16517sysv4 | sysv4.3*)
15335 version_type=linux 16518 version_type=linux
15336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15337 soname_spec='${libname}${release}${shared_ext}$major' 16520 soname_spec='${libname}${release}${shared_ext}$major'
@@ -15364,6 +16547,29 @@ sysv4*MP*)
15364 fi 16547 fi
15365 ;; 16548 ;;
15366 16549
16550sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16551 version_type=freebsd-elf
16552 need_lib_prefix=no
16553 need_version=no
16554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16555 soname_spec='${libname}${release}${shared_ext}$major'
16556 shlibpath_var=LD_LIBRARY_PATH
16557 hardcode_into_libs=yes
16558 if test "$with_gnu_ld" = yes; then
16559 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16560 shlibpath_overrides_runpath=no
16561 else
16562 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16563 shlibpath_overrides_runpath=yes
16564 case $host_os in
16565 sco3.2v5*)
16566 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16567 ;;
16568 esac
16569 fi
16570 sys_lib_dlsearch_path_spec='/usr/lib'
16571 ;;
16572
15367uts4*) 16573uts4*)
15368 version_type=linux 16574 version_type=linux
15369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -15375,16 +16581,21 @@ uts4*)
15375 dynamic_linker=no 16581 dynamic_linker=no
15376 ;; 16582 ;;
15377esac 16583esac
15378echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16584{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15379echo "${ECHO_T}$dynamic_linker" >&6 16585echo "${ECHO_T}$dynamic_linker" >&6; }
15380test "$dynamic_linker" = no && can_build_shared=no 16586test "$dynamic_linker" = no && can_build_shared=no
15381 16587
15382echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16588variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15383echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 16589if test "$GCC" = yes; then
16590 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16591fi
16592
16593{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16594echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15384hardcode_action_F77= 16595hardcode_action_F77=
15385if test -n "$hardcode_libdir_flag_spec_F77" || \ 16596if test -n "$hardcode_libdir_flag_spec_F77" || \
15386 test -n "$runpath_var F77" || \ 16597 test -n "$runpath_var_F77" || \
15387 test "X$hardcode_automatic_F77"="Xyes" ; then 16598 test "X$hardcode_automatic_F77" = "Xyes" ; then
15388 16599
15389 # We can hardcode non-existant directories. 16600 # We can hardcode non-existant directories.
15390 if test "$hardcode_direct_F77" != no && 16601 if test "$hardcode_direct_F77" != no &&
@@ -15404,8 +16615,8 @@ else
15404 # directories. 16615 # directories.
15405 hardcode_action_F77=unsupported 16616 hardcode_action_F77=unsupported
15406fi 16617fi
15407echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16618{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15408echo "${ECHO_T}$hardcode_action_F77" >&6 16619echo "${ECHO_T}$hardcode_action_F77" >&6; }
15409 16620
15410if test "$hardcode_action_F77" = relink; then 16621if test "$hardcode_action_F77" = relink; then
15411 # Fast installation is not supported 16622 # Fast installation is not supported
@@ -15416,36 +16627,6 @@ elif test "$shlibpath_overrides_runpath" = yes ||
15416 enable_fast_install=needless 16627 enable_fast_install=needless
15417fi 16628fi
15418 16629
15419striplib=
15420old_striplib=
15421echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15422echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15423if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15424 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15425 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15426 echo "$as_me:$LINENO: result: yes" >&5
15427echo "${ECHO_T}yes" >&6
15428else
15429# FIXME - insert some real tests, host_os isn't really good enough
15430 case $host_os in
15431 darwin*)
15432 if test -n "$STRIP" ; then
15433 striplib="$STRIP -x"
15434 echo "$as_me:$LINENO: result: yes" >&5
15435echo "${ECHO_T}yes" >&6
15436 else
15437 echo "$as_me:$LINENO: result: no" >&5
15438echo "${ECHO_T}no" >&6
15439fi
15440 ;;
15441 *)
15442 echo "$as_me:$LINENO: result: no" >&5
15443echo "${ECHO_T}no" >&6
15444 ;;
15445 esac
15446fi
15447
15448
15449 16630
15450# The else clause should only fire when bootstrapping the 16631# The else clause should only fire when bootstrapping the
15451# libtool distribution, otherwise you forgot to ship ltmain.sh 16632# libtool distribution, otherwise you forgot to ship ltmain.sh
@@ -15460,7 +16641,7 @@ if test -f "$ltmain"; then
15460 # Now quote all the things that may contain metacharacters while being 16641 # Now quote all the things that may contain metacharacters while being
15461 # careful not to overquote the AC_SUBSTed values. We take copies of the 16642 # careful not to overquote the AC_SUBSTed values. We take copies of the
15462 # variables and quote the copies for generation of the libtool script. 16643 # variables and quote the copies for generation of the libtool script.
15463 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 16644 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15464 SED SHELL STRIP \ 16645 SED SHELL STRIP \
15465 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16646 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15466 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16647 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
@@ -15561,6 +16742,12 @@ fast_install=$enable_fast_install
15561# The host system. 16742# The host system.
15562host_alias=$host_alias 16743host_alias=$host_alias
15563host=$host 16744host=$host
16745host_os=$host_os
16746
16747# The build system.
16748build_alias=$build_alias
16749build=$build
16750build_os=$build_os
15564 16751
15565# An echo program that does not interpret backslashes. 16752# An echo program that does not interpret backslashes.
15566echo=$lt_echo 16753echo=$lt_echo
@@ -15572,6 +16759,9 @@ AR_FLAGS=$lt_AR_FLAGS
15572# A C compiler. 16759# A C compiler.
15573LTCC=$lt_LTCC 16760LTCC=$lt_LTCC
15574 16761
16762# LTCC compiler flags.
16763LTCFLAGS=$lt_LTCFLAGS
16764
15575# A language-specific compiler. 16765# A language-specific compiler.
15576CC=$lt_compiler_F77 16766CC=$lt_compiler_F77
15577 16767
@@ -15637,7 +16827,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
15637# Does compiler simultaneously support -c and -o options? 16827# Does compiler simultaneously support -c and -o options?
15638compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16828compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15639 16829
15640# Must we lock files when doing compilation ? 16830# Must we lock files when doing compilation?
15641need_locks=$lt_need_locks 16831need_locks=$lt_need_locks
15642 16832
15643# Do we need the lib prefix for modules? 16833# Do we need the lib prefix for modules?
@@ -15863,7 +17053,6 @@ CC="$lt_save_CC"
15863 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 17053 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15864 17054
15865 17055
15866
15867# Source file extension for Java test sources. 17056# Source file extension for Java test sources.
15868ac_ext=java 17057ac_ext=java
15869 17058
@@ -15875,26 +17064,55 @@ objext_GCJ=$objext
15875lt_simple_compile_test_code="class foo {}\n" 17064lt_simple_compile_test_code="class foo {}\n"
15876 17065
15877# Code to be used in simple link tests 17066# Code to be used in simple link tests
15878lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' 17067lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15879 17068
15880# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17069# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15881 17070
15882# If no C compiler was specified, use CC. 17071# If no C compiler was specified, use CC.
15883LTCC=${LTCC-"$CC"} 17072LTCC=${LTCC-"$CC"}
15884 17073
17074# If no C compiler flags were specified, use CFLAGS.
17075LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17076
15885# Allow CC to be a program name with arguments. 17077# Allow CC to be a program name with arguments.
15886compiler=$CC 17078compiler=$CC
15887 17079
15888 17080
17081# save warnings/boilerplate of simple test code
17082ac_outfile=conftest.$ac_objext
17083printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17084eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17085_lt_compiler_boilerplate=`cat conftest.err`
17086$rm conftest*
17087
17088ac_outfile=conftest.$ac_objext
17089printf "$lt_simple_link_test_code" >conftest.$ac_ext
17090eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17091_lt_linker_boilerplate=`cat conftest.err`
17092$rm conftest*
17093
17094
15889# Allow CC to be a program name with arguments. 17095# Allow CC to be a program name with arguments.
15890lt_save_CC="$CC" 17096lt_save_CC="$CC"
15891CC=${GCJ-"gcj"} 17097CC=${GCJ-"gcj"}
15892compiler=$CC 17098compiler=$CC
15893compiler_GCJ=$CC 17099compiler_GCJ=$CC
17100for cc_temp in $compiler""; do
17101 case $cc_temp in
17102 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17103 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17104 \-*) ;;
17105 *) break;;
17106 esac
17107done
17108cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17109
15894 17110
15895# GCJ did not exist at the time GCC didn't implicitly link libc in. 17111# GCJ did not exist at the time GCC didn't implicitly link libc in.
15896archive_cmds_need_lc_GCJ=no 17112archive_cmds_need_lc_GCJ=no
15897 17113
17114old_archive_cmds_GCJ=$old_archive_cmds
17115
15898 17116
15899lt_prog_compiler_no_builtin_flag_GCJ= 17117lt_prog_compiler_no_builtin_flag_GCJ=
15900 17118
@@ -15902,8 +17120,8 @@ if test "$GCC" = yes; then
15902 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 17120 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15903 17121
15904 17122
15905echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 17123{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15906echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 17124echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15907if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 17125if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15908 echo $ECHO_N "(cached) $ECHO_C" >&6 17126 echo $ECHO_N "(cached) $ECHO_C" >&6
15909else 17127else
@@ -15917,26 +17135,28 @@ else
15917 # with a dollar sign (not a hyphen), so the echo should work correctly. 17135 # with a dollar sign (not a hyphen), so the echo should work correctly.
15918 # The option is referenced via a variable to avoid confusing sed. 17136 # The option is referenced via a variable to avoid confusing sed.
15919 lt_compile=`echo "$ac_compile" | $SED \ 17137 lt_compile=`echo "$ac_compile" | $SED \
15920 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 17138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15922 -e 's:$: $lt_compiler_flag:'` 17140 -e 's:$: $lt_compiler_flag:'`
15923 (eval echo "\"\$as_me:15923: $lt_compile\"" >&5) 17141 (eval echo "\"\$as_me:17141: $lt_compile\"" >&5)
15924 (eval "$lt_compile" 2>conftest.err) 17142 (eval "$lt_compile" 2>conftest.err)
15925 ac_status=$? 17143 ac_status=$?
15926 cat conftest.err >&5 17144 cat conftest.err >&5
15927 echo "$as_me:15927: \$? = $ac_status" >&5 17145 echo "$as_me:17145: \$? = $ac_status" >&5
15928 if (exit $ac_status) && test -s "$ac_outfile"; then 17146 if (exit $ac_status) && test -s "$ac_outfile"; then
15929 # The compiler can only warn and ignore the option if not recognized 17147 # The compiler can only warn and ignore the option if not recognized
15930 # So say no if there are warnings 17148 # So say no if there are warnings other than the usual output.
15931 if test ! -s conftest.err; then 17149 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17150 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17151 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15932 lt_cv_prog_compiler_rtti_exceptions=yes 17152 lt_cv_prog_compiler_rtti_exceptions=yes
15933 fi 17153 fi
15934 fi 17154 fi
15935 $rm conftest* 17155 $rm conftest*
15936 17156
15937fi 17157fi
15938echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 17158{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15939echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 17159echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15940 17160
15941if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 17161if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15942 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 17162 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
@@ -15950,8 +17170,8 @@ lt_prog_compiler_wl_GCJ=
15950lt_prog_compiler_pic_GCJ= 17170lt_prog_compiler_pic_GCJ=
15951lt_prog_compiler_static_GCJ= 17171lt_prog_compiler_static_GCJ=
15952 17172
15953echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 17173{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15954echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 17174echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15955 17175
15956 if test "$GCC" = yes; then 17176 if test "$GCC" = yes; then
15957 lt_prog_compiler_wl_GCJ='-Wl,' 17177 lt_prog_compiler_wl_GCJ='-Wl,'
@@ -15989,6 +17209,11 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15989 lt_prog_compiler_pic_GCJ='-fno-common' 17209 lt_prog_compiler_pic_GCJ='-fno-common'
15990 ;; 17210 ;;
15991 17211
17212 interix3*)
17213 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17214 # Instead, we relocate shared libraries at runtime.
17215 ;;
17216
15992 msdosdjgpp*) 17217 msdosdjgpp*)
15993 # Just because we use GCC doesn't mean we suddenly get shared libraries 17218 # Just because we use GCC doesn't mean we suddenly get shared libraries
15994 # on systems that don't support them. 17219 # on systems that don't support them.
@@ -16005,7 +17230,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16005 hpux*) 17230 hpux*)
16006 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17231 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16007 # not for PA HP-UX. 17232 # not for PA HP-UX.
16008 case "$host_cpu" in 17233 case $host_cpu in
16009 hppa*64*|ia64*) 17234 hppa*64*|ia64*)
16010 # +Z the default 17235 # +Z the default
16011 ;; 17236 ;;
@@ -16031,6 +17256,16 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16031 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17256 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16032 fi 17257 fi
16033 ;; 17258 ;;
17259 darwin*)
17260 # PIC is the default on this platform
17261 # Common symbols not allowed in MH_DYLIB files
17262 case $cc_basename in
17263 xlc*)
17264 lt_prog_compiler_pic_GCJ='-qnocommon'
17265 lt_prog_compiler_wl_GCJ='-Wl,'
17266 ;;
17267 esac
17268 ;;
16034 17269
16035 mingw* | pw32* | os2*) 17270 mingw* | pw32* | os2*)
16036 # This hack is so that the source file can tell whether it is being 17271 # This hack is so that the source file can tell whether it is being
@@ -16042,7 +17277,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16042 lt_prog_compiler_wl_GCJ='-Wl,' 17277 lt_prog_compiler_wl_GCJ='-Wl,'
16043 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17278 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16044 # not for PA HP-UX. 17279 # not for PA HP-UX.
16045 case "$host_cpu" in 17280 case $host_cpu in
16046 hppa*64*|ia64*) 17281 hppa*64*|ia64*)
16047 # +Z the default 17282 # +Z the default
16048 ;; 17283 ;;
@@ -16065,13 +17300,20 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16065 lt_prog_compiler_static_GCJ='-Bstatic' 17300 lt_prog_compiler_static_GCJ='-Bstatic'
16066 ;; 17301 ;;
16067 17302
16068 linux*) 17303 linux* | k*bsd*-gnu)
16069 case $CC in 17304 case $cc_basename in
16070 icc* | ecc*) 17305 icc* | ecc*)
16071 lt_prog_compiler_wl_GCJ='-Wl,' 17306 lt_prog_compiler_wl_GCJ='-Wl,'
16072 lt_prog_compiler_pic_GCJ='-KPIC' 17307 lt_prog_compiler_pic_GCJ='-KPIC'
16073 lt_prog_compiler_static_GCJ='-static' 17308 lt_prog_compiler_static_GCJ='-static'
16074 ;; 17309 ;;
17310 pgcc* | pgf77* | pgf90* | pgf95*)
17311 # Portland Group compilers (*not* the Pentium gcc compiler,
17312 # which looks to be a dead project)
17313 lt_prog_compiler_wl_GCJ='-Wl,'
17314 lt_prog_compiler_pic_GCJ='-fpic'
17315 lt_prog_compiler_static_GCJ='-Bstatic'
17316 ;;
16075 ccc*) 17317 ccc*)
16076 lt_prog_compiler_wl_GCJ='-Wl,' 17318 lt_prog_compiler_wl_GCJ='-Wl,'
16077 # All Alpha code is PIC. 17319 # All Alpha code is PIC.
@@ -16086,15 +17328,15 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16086 lt_prog_compiler_static_GCJ='-non_shared' 17328 lt_prog_compiler_static_GCJ='-non_shared'
16087 ;; 17329 ;;
16088 17330
16089 sco3.2v5*)
16090 lt_prog_compiler_pic_GCJ='-Kpic'
16091 lt_prog_compiler_static_GCJ='-dn'
16092 ;;
16093
16094 solaris*) 17331 solaris*)
16095 lt_prog_compiler_wl_GCJ='-Wl,'
16096 lt_prog_compiler_pic_GCJ='-KPIC' 17332 lt_prog_compiler_pic_GCJ='-KPIC'
16097 lt_prog_compiler_static_GCJ='-Bstatic' 17333 lt_prog_compiler_static_GCJ='-Bstatic'
17334 case $cc_basename in
17335 f77* | f90* | f95*)
17336 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17337 *)
17338 lt_prog_compiler_wl_GCJ='-Wl,';;
17339 esac
16098 ;; 17340 ;;
16099 17341
16100 sunos4*) 17342 sunos4*)
@@ -16103,7 +17345,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16103 lt_prog_compiler_static_GCJ='-Bstatic' 17345 lt_prog_compiler_static_GCJ='-Bstatic'
16104 ;; 17346 ;;
16105 17347
16106 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17348 sysv4 | sysv4.2uw2* | sysv4.3*)
16107 lt_prog_compiler_wl_GCJ='-Wl,' 17349 lt_prog_compiler_wl_GCJ='-Wl,'
16108 lt_prog_compiler_pic_GCJ='-KPIC' 17350 lt_prog_compiler_pic_GCJ='-KPIC'
16109 lt_prog_compiler_static_GCJ='-Bstatic' 17351 lt_prog_compiler_static_GCJ='-Bstatic'
@@ -16116,6 +17358,17 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16116 fi 17358 fi
16117 ;; 17359 ;;
16118 17360
17361 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17362 lt_prog_compiler_wl_GCJ='-Wl,'
17363 lt_prog_compiler_pic_GCJ='-KPIC'
17364 lt_prog_compiler_static_GCJ='-Bstatic'
17365 ;;
17366
17367 unicos*)
17368 lt_prog_compiler_wl_GCJ='-Wl,'
17369 lt_prog_compiler_can_build_shared_GCJ=no
17370 ;;
17371
16119 uts4*) 17372 uts4*)
16120 lt_prog_compiler_pic_GCJ='-pic' 17373 lt_prog_compiler_pic_GCJ='-pic'
16121 lt_prog_compiler_static_GCJ='-Bstatic' 17374 lt_prog_compiler_static_GCJ='-Bstatic'
@@ -16127,16 +17380,16 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16127 esac 17380 esac
16128 fi 17381 fi
16129 17382
16130echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17383{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16131echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 17384echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16132 17385
16133# 17386#
16134# Check to make sure the PIC flag actually works. 17387# Check to make sure the PIC flag actually works.
16135# 17388#
16136if test -n "$lt_prog_compiler_pic_GCJ"; then 17389if test -n "$lt_prog_compiler_pic_GCJ"; then
16137 17390
16138echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17391{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16139echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 17392echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16140if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 17393if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16141 echo $ECHO_N "(cached) $ECHO_C" >&6 17394 echo $ECHO_N "(cached) $ECHO_C" >&6
16142else 17395else
@@ -16150,26 +17403,28 @@ else
16150 # with a dollar sign (not a hyphen), so the echo should work correctly. 17403 # with a dollar sign (not a hyphen), so the echo should work correctly.
16151 # The option is referenced via a variable to avoid confusing sed. 17404 # The option is referenced via a variable to avoid confusing sed.
16152 lt_compile=`echo "$ac_compile" | $SED \ 17405 lt_compile=`echo "$ac_compile" | $SED \
16153 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 17406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16154 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16155 -e 's:$: $lt_compiler_flag:'` 17408 -e 's:$: $lt_compiler_flag:'`
16156 (eval echo "\"\$as_me:16156: $lt_compile\"" >&5) 17409 (eval echo "\"\$as_me:17409: $lt_compile\"" >&5)
16157 (eval "$lt_compile" 2>conftest.err) 17410 (eval "$lt_compile" 2>conftest.err)
16158 ac_status=$? 17411 ac_status=$?
16159 cat conftest.err >&5 17412 cat conftest.err >&5
16160 echo "$as_me:16160: \$? = $ac_status" >&5 17413 echo "$as_me:17413: \$? = $ac_status" >&5
16161 if (exit $ac_status) && test -s "$ac_outfile"; then 17414 if (exit $ac_status) && test -s "$ac_outfile"; then
16162 # The compiler can only warn and ignore the option if not recognized 17415 # The compiler can only warn and ignore the option if not recognized
16163 # So say no if there are warnings 17416 # So say no if there are warnings other than the usual output.
16164 if test ! -s conftest.err; then 17417 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17419 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16165 lt_prog_compiler_pic_works_GCJ=yes 17420 lt_prog_compiler_pic_works_GCJ=yes
16166 fi 17421 fi
16167 fi 17422 fi
16168 $rm conftest* 17423 $rm conftest*
16169 17424
16170fi 17425fi
16171echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 17426{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16172echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 17427echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16173 17428
16174if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 17429if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16175 case $lt_prog_compiler_pic_GCJ in 17430 case $lt_prog_compiler_pic_GCJ in
@@ -16182,7 +17437,7 @@ else
16182fi 17437fi
16183 17438
16184fi 17439fi
16185case "$host_os" in 17440case $host_os in
16186 # For platforms which do not support PIC, -DPIC is meaningless: 17441 # For platforms which do not support PIC, -DPIC is meaningless:
16187 *djgpp*) 17442 *djgpp*)
16188 lt_prog_compiler_pic_GCJ= 17443 lt_prog_compiler_pic_GCJ=
@@ -16192,8 +17447,50 @@ case "$host_os" in
16192 ;; 17447 ;;
16193esac 17448esac
16194 17449
16195echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17450#
16196echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 17451# Check to make sure the static flag actually works.
17452#
17453wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17454{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17455echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17456if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17457 echo $ECHO_N "(cached) $ECHO_C" >&6
17458else
17459 lt_prog_compiler_static_works_GCJ=no
17460 save_LDFLAGS="$LDFLAGS"
17461 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17462 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17463 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17464 # The linker can only warn and ignore the option if not recognized
17465 # So say no if there are warnings
17466 if test -s conftest.err; then
17467 # Append any errors to the config.log.
17468 cat conftest.err 1>&5
17469 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17470 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17471 if diff conftest.exp conftest.er2 >/dev/null; then
17472 lt_prog_compiler_static_works_GCJ=yes
17473 fi
17474 else
17475 lt_prog_compiler_static_works_GCJ=yes
17476 fi
17477 fi
17478 $rm conftest*
17479 LDFLAGS="$save_LDFLAGS"
17480
17481fi
17482{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17483echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17484
17485if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17486 :
17487else
17488 lt_prog_compiler_static_GCJ=
17489fi
17490
17491
17492{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17493echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16197if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17494if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16198 echo $ECHO_N "(cached) $ECHO_C" >&6 17495 echo $ECHO_N "(cached) $ECHO_C" >&6
16199else 17496else
@@ -16210,23 +17507,25 @@ else
16210 # Note that $ac_compile itself does not contain backslashes and begins 17507 # Note that $ac_compile itself does not contain backslashes and begins
16211 # with a dollar sign (not a hyphen), so the echo should work correctly. 17508 # with a dollar sign (not a hyphen), so the echo should work correctly.
16212 lt_compile=`echo "$ac_compile" | $SED \ 17509 lt_compile=`echo "$ac_compile" | $SED \
16213 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 17510 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16215 -e 's:$: $lt_compiler_flag:'` 17512 -e 's:$: $lt_compiler_flag:'`
16216 (eval echo "\"\$as_me:16216: $lt_compile\"" >&5) 17513 (eval echo "\"\$as_me:17513: $lt_compile\"" >&5)
16217 (eval "$lt_compile" 2>out/conftest.err) 17514 (eval "$lt_compile" 2>out/conftest.err)
16218 ac_status=$? 17515 ac_status=$?
16219 cat out/conftest.err >&5 17516 cat out/conftest.err >&5
16220 echo "$as_me:16220: \$? = $ac_status" >&5 17517 echo "$as_me:17517: \$? = $ac_status" >&5
16221 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17518 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16222 then 17519 then
16223 # The compiler can only warn and ignore the option if not recognized 17520 # The compiler can only warn and ignore the option if not recognized
16224 # So say no if there are warnings 17521 # So say no if there are warnings
16225 if test ! -s out/conftest.err; then 17522 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17523 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17524 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16226 lt_cv_prog_compiler_c_o_GCJ=yes 17525 lt_cv_prog_compiler_c_o_GCJ=yes
16227 fi 17526 fi
16228 fi 17527 fi
16229 chmod u+w . 17528 chmod u+w . 2>&5
16230 $rm conftest* 17529 $rm conftest*
16231 # SGI C++ compiler will create directory out/ii_files/ for 17530 # SGI C++ compiler will create directory out/ii_files/ for
16232 # template instantiation 17531 # template instantiation
@@ -16237,23 +17536,23 @@ else
16237 $rm conftest* 17536 $rm conftest*
16238 17537
16239fi 17538fi
16240echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17539{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16241echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 17540echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16242 17541
16243 17542
16244hard_links="nottested" 17543hard_links="nottested"
16245if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17544if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16246 # do not overwrite the value of need_locks provided by the user 17545 # do not overwrite the value of need_locks provided by the user
16247 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17546 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16248echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 17547echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16249 hard_links=yes 17548 hard_links=yes
16250 $rm conftest* 17549 $rm conftest*
16251 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17550 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16252 touch conftest.a 17551 touch conftest.a
16253 ln conftest.a conftest.b 2>&5 || hard_links=no 17552 ln conftest.a conftest.b 2>&5 || hard_links=no
16254 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17553 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16255 echo "$as_me:$LINENO: result: $hard_links" >&5 17554 { echo "$as_me:$LINENO: result: $hard_links" >&5
16256echo "${ECHO_T}$hard_links" >&6 17555echo "${ECHO_T}$hard_links" >&6; }
16257 if test "$hard_links" = no; then 17556 if test "$hard_links" = no; then
16258 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17557 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16259echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17558echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
@@ -16263,8 +17562,8 @@ else
16263 need_locks=no 17562 need_locks=no
16264fi 17563fi
16265 17564
16266echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17565{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16267echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 17566echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16268 17567
16269 runpath_var= 17568 runpath_var=
16270 allow_undefined_flag_GCJ= 17569 allow_undefined_flag_GCJ=
@@ -16302,6 +17601,16 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
16302 # rely on this symbol name, it's probably fine to never include it in 17601 # rely on this symbol name, it's probably fine to never include it in
16303 # preloaded symbol tables. 17602 # preloaded symbol tables.
16304 extract_expsyms_cmds= 17603 extract_expsyms_cmds=
17604 # Just being paranoid about ensuring that cc_basename is set.
17605 for cc_temp in $compiler""; do
17606 case $cc_temp in
17607 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17608 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17609 \-*) ;;
17610 *) break;;
17611 esac
17612done
17613cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16305 17614
16306 case $host_os in 17615 case $host_os in
16307 cygwin* | mingw* | pw32*) 17616 cygwin* | mingw* | pw32*)
@@ -16312,6 +17621,10 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
16312 with_gnu_ld=no 17621 with_gnu_ld=no
16313 fi 17622 fi
16314 ;; 17623 ;;
17624 interix*)
17625 # we just hope/assume this is gcc and not c89 (= MSVC++)
17626 with_gnu_ld=yes
17627 ;;
16315 openbsd*) 17628 openbsd*)
16316 with_gnu_ld=no 17629 with_gnu_ld=no
16317 ;; 17630 ;;
@@ -16322,6 +17635,27 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
16322 # If archive_cmds runs LD, not CC, wlarc should be empty 17635 # If archive_cmds runs LD, not CC, wlarc should be empty
16323 wlarc='${wl}' 17636 wlarc='${wl}'
16324 17637
17638 # Set some defaults for GNU ld with shared library support. These
17639 # are reset later if shared libraries are not supported. Putting them
17640 # here allows them to be overridden if necessary.
17641 runpath_var=LD_RUN_PATH
17642 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17643 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17644 # ancient GNU ld didn't support --whole-archive et. al.
17645 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17646 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17647 else
17648 whole_archive_flag_spec_GCJ=
17649 fi
17650 supports_anon_versioning=no
17651 case `$LD -v 2>/dev/null` in
17652 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17653 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17654 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17655 *\ 2.11.*) ;; # other 2.11 versions
17656 *) supports_anon_versioning=yes ;;
17657 esac
17658
16325 # See if GNU ld supports shared libraries. 17659 # See if GNU ld supports shared libraries.
16326 case $host_os in 17660 case $host_os in
16327 aix3* | aix4* | aix5*) 17661 aix3* | aix4* | aix5*)
@@ -16372,10 +17706,10 @@ EOF
16372 allow_undefined_flag_GCJ=unsupported 17706 allow_undefined_flag_GCJ=unsupported
16373 always_export_symbols_GCJ=no 17707 always_export_symbols_GCJ=no
16374 enable_shared_with_static_runtimes_GCJ=yes 17708 enable_shared_with_static_runtimes_GCJ=yes
16375 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17709 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16376 17710
16377 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17711 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16378 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 17712 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16379 # If the export-symbols file already is a .def file (1st line 17713 # If the export-symbols file already is a .def file (1st line
16380 # is EXPORTS), use it as is; otherwise, prepend... 17714 # is EXPORTS), use it as is; otherwise, prepend...
16381 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17715 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
@@ -16384,13 +17718,60 @@ EOF
16384 echo EXPORTS > $output_objdir/$soname.def; 17718 echo EXPORTS > $output_objdir/$soname.def;
16385 cat $export_symbols >> $output_objdir/$soname.def; 17719 cat $export_symbols >> $output_objdir/$soname.def;
16386 fi~ 17720 fi~
16387 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 17721 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16388 else 17722 else
16389 ld_shlibs=no 17723 ld_shlibs_GCJ=no
16390 fi 17724 fi
16391 ;; 17725 ;;
16392 17726
16393 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 17727 interix3*)
17728 hardcode_direct_GCJ=no
17729 hardcode_shlibpath_var_GCJ=no
17730 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17731 export_dynamic_flag_spec_GCJ='${wl}-E'
17732 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17733 # Instead, shared libraries are loaded at an image base (0x10000000 by
17734 # default) and relocated if they conflict, which is a slow very memory
17735 # consuming and fragmenting process. To avoid this, we pick a random,
17736 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17737 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17738 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17739 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17740 ;;
17741
17742 linux* | k*bsd*-gnu)
17743 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17744 tmp_addflag=
17745 case $cc_basename,$host_cpu in
17746 pgcc*) # Portland Group C compiler
17747 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17748 tmp_addflag=' $pic_flag'
17749 ;;
17750 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17751 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17752 tmp_addflag=' $pic_flag -Mnomain' ;;
17753 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17754 tmp_addflag=' -i_dynamic' ;;
17755 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17756 tmp_addflag=' -i_dynamic -nofor_main' ;;
17757 ifc* | ifort*) # Intel Fortran compiler
17758 tmp_addflag=' -nofor_main' ;;
17759 esac
17760 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17761
17762 if test $supports_anon_versioning = yes; then
17763 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17764 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17765 $echo "local: *; };" >> $output_objdir/$libname.ver~
17766 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17767 fi
17768 link_all_deplibs_GCJ=no
17769 else
17770 ld_shlibs_GCJ=no
17771 fi
17772 ;;
17773
17774 netbsd* | netbsdelf*-gnu)
16394 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17775 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16395 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17776 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16396 wlarc= 17777 wlarc=
@@ -16400,7 +17781,7 @@ EOF
16400 fi 17781 fi
16401 ;; 17782 ;;
16402 17783
16403 solaris* | sysv5*) 17784 solaris*)
16404 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17785 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16405 ld_shlibs_GCJ=no 17786 ld_shlibs_GCJ=no
16406 cat <<EOF 1>&2 17787 cat <<EOF 1>&2
@@ -16421,6 +17802,33 @@ EOF
16421 fi 17802 fi
16422 ;; 17803 ;;
16423 17804
17805 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17806 case `$LD -v 2>&1` in
17807 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17808 ld_shlibs_GCJ=no
17809 cat <<_LT_EOF 1>&2
17810
17811*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17812*** reliably create shared libraries on SCO systems. Therefore, libtool
17813*** is disabling shared libraries support. We urge you to upgrade GNU
17814*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17815*** your PATH or compiler configuration so that the native linker is
17816*** used, and then restart.
17817
17818_LT_EOF
17819 ;;
17820 *)
17821 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17822 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17823 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17824 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17825 else
17826 ld_shlibs_GCJ=no
17827 fi
17828 ;;
17829 esac
17830 ;;
17831
16424 sunos4*) 17832 sunos4*)
16425 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17833 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16426 wlarc= 17834 wlarc=
@@ -16428,32 +17836,6 @@ EOF
16428 hardcode_shlibpath_var_GCJ=no 17836 hardcode_shlibpath_var_GCJ=no
16429 ;; 17837 ;;
16430 17838
16431 linux*)
16432 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16433 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16434 archive_cmds_GCJ="$tmp_archive_cmds"
16435 supports_anon_versioning=no
16436 case `$LD -v 2>/dev/null` in
16437 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16438 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16439 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16440 *\ 2.11.*) ;; # other 2.11 versions
16441 *) supports_anon_versioning=yes ;;
16442 esac
16443 if test $supports_anon_versioning = yes; then
16444 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16445cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16446$echo "local: *; };" >> $output_objdir/$libname.ver~
16447 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16448 else
16449 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16450 fi
16451 link_all_deplibs_GCJ=no
16452 else
16453 ld_shlibs_GCJ=no
16454 fi
16455 ;;
16456
16457 *) 17839 *)
16458 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17840 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16459 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17841 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
@@ -16464,16 +17846,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
16464 ;; 17846 ;;
16465 esac 17847 esac
16466 17848
16467 if test "$ld_shlibs_GCJ" = yes; then 17849 if test "$ld_shlibs_GCJ" = no; then
16468 runpath_var=LD_RUN_PATH 17850 runpath_var=
16469 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17851 hardcode_libdir_flag_spec_GCJ=
16470 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17852 export_dynamic_flag_spec_GCJ=
16471 # ancient GNU ld didn't support --whole-archive et. al. 17853 whole_archive_flag_spec_GCJ=
16472 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16473 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16474 else
16475 whole_archive_flag_spec_GCJ=
16476 fi
16477 fi 17854 fi
16478 else 17855 else
16479 # PORTME fill in a description of your system's linker (not GNU ld) 17856 # PORTME fill in a description of your system's linker (not GNU ld)
@@ -16485,7 +17862,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
16485 # Note: this linker hardcodes the directories in LIBPATH if there 17862 # Note: this linker hardcodes the directories in LIBPATH if there
16486 # are no directories specified by -L. 17863 # are no directories specified by -L.
16487 hardcode_minus_L_GCJ=yes 17864 hardcode_minus_L_GCJ=yes
16488 if test "$GCC" = yes && test -z "$link_static_flag"; then 17865 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16489 # Neither direct hardcoding nor static linking is supported with a 17866 # Neither direct hardcoding nor static linking is supported with a
16490 # broken collect2. 17867 # broken collect2.
16491 hardcode_direct_GCJ=unsupported 17868 hardcode_direct_GCJ=unsupported
@@ -16519,6 +17896,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
16519 break 17896 break
16520 fi 17897 fi
16521 done 17898 done
17899 ;;
16522 esac 17900 esac
16523 17901
16524 exp_sym_flag='-bexport' 17902 exp_sym_flag='-bexport'
@@ -16537,7 +17915,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
16537 link_all_deplibs_GCJ=yes 17915 link_all_deplibs_GCJ=yes
16538 17916
16539 if test "$GCC" = yes; then 17917 if test "$GCC" = yes; then
16540 case $host_os in aix4.012|aix4.012.*) 17918 case $host_os in aix4.[012]|aix4.[012].*)
16541 # We only want to do this on AIX 4.2 and lower, the check 17919 # We only want to do this on AIX 4.2 and lower, the check
16542 # below for broken collect2 doesn't work under 4.3+ 17920 # below for broken collect2 doesn't work under 4.3+
16543 collect2name=`${CC} -print-prog-name=collect2` 17921 collect2name=`${CC} -print-prog-name=collect2`
@@ -16556,8 +17934,12 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
16556 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17934 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16557 hardcode_libdir_separator_GCJ= 17935 hardcode_libdir_separator_GCJ=
16558 fi 17936 fi
17937 ;;
16559 esac 17938 esac
16560 shared_flag='-shared' 17939 shared_flag='-shared'
17940 if test "$aix_use_runtimelinking" = yes; then
17941 shared_flag="$shared_flag "'${wl}-G'
17942 fi
16561 else 17943 else
16562 # not using gcc 17944 # not using gcc
16563 if test "$host_cpu" = ia64; then 17945 if test "$host_cpu" = ia64; then
@@ -16565,11 +17947,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
16565 # chokes on -Wl,-G. The following line is correct: 17947 # chokes on -Wl,-G. The following line is correct:
16566 shared_flag='-G' 17948 shared_flag='-G'
16567 else 17949 else
16568 if test "$aix_use_runtimelinking" = yes; then 17950 if test "$aix_use_runtimelinking" = yes; then
16569 shared_flag='${wl}-G' 17951 shared_flag='${wl}-G'
16570 else 17952 else
16571 shared_flag='${wl}-bM:SRE' 17953 shared_flag='${wl}-bM:SRE'
16572 fi 17954 fi
16573 fi 17955 fi
16574 fi 17956 fi
16575 17957
@@ -16597,23 +17979,36 @@ main ()
16597} 17979}
16598_ACEOF 17980_ACEOF
16599rm -f conftest.$ac_objext conftest$ac_exeext 17981rm -f conftest.$ac_objext conftest$ac_exeext
16600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17982if { (ac_try="$ac_link"
16601 (eval $ac_link) 2>conftest.er1 17983case "(($ac_try" in
17984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17985 *) ac_try_echo=$ac_try;;
17986esac
17987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17988 (eval "$ac_link") 2>conftest.er1
16602 ac_status=$? 17989 ac_status=$?
16603 grep -v '^ *+' conftest.er1 >conftest.err 17990 grep -v '^ *+' conftest.er1 >conftest.err
16604 rm -f conftest.er1 17991 rm -f conftest.er1
16605 cat conftest.err >&5 17992 cat conftest.err >&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); } && 17994 (exit $ac_status); } &&
16608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17996 { (case "(($ac_try" in
16610 (eval $ac_try) 2>&5 17997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17998 *) ac_try_echo=$ac_try;;
17999esac
18000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18001 (eval "$ac_try") 2>&5
16611 ac_status=$? 18002 ac_status=$?
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); }; } && 18004 (exit $ac_status); }; } &&
16614 { ac_try='test -s conftest$ac_exeext' 18005 { ac_try='test -s conftest$ac_exeext'
16615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18006 { (case "(($ac_try" in
16616 (eval $ac_try) 2>&5 18007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18008 *) ac_try_echo=$ac_try;;
18009esac
18010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18011 (eval "$ac_try") 2>&5
16617 ac_status=$? 18012 ac_status=$?
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); }; }; then 18014 (exit $ac_status); }; }; then
@@ -16627,18 +18022,20 @@ else
16627 echo "$as_me: failed program was:" >&5 18022 echo "$as_me: failed program was:" >&5
16628sed 's/^/| /' conftest.$ac_ext >&5 18023sed 's/^/| /' conftest.$ac_ext >&5
16629 18024
18025
16630fi 18026fi
16631rm -f conftest.err conftest.$ac_objext \ 18027
18028rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16632 conftest$ac_exeext conftest.$ac_ext 18029 conftest$ac_exeext conftest.$ac_ext
16633if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18030if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16634 18031
16635 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18032 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16636 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 18033 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16637 else 18034 else
16638 if test "$host_cpu" = ia64; then 18035 if test "$host_cpu" = ia64; then
16639 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 18036 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16640 allow_undefined_flag_GCJ="-z nodefs" 18037 allow_undefined_flag_GCJ="-z nodefs"
16641 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 18038 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16642 else 18039 else
16643 # Determine the default libpath from the value encoded in an empty executable. 18040 # Determine the default libpath from the value encoded in an empty executable.
16644 cat >conftest.$ac_ext <<_ACEOF 18041 cat >conftest.$ac_ext <<_ACEOF
@@ -16657,23 +18054,36 @@ main ()
16657} 18054}
16658_ACEOF 18055_ACEOF
16659rm -f conftest.$ac_objext conftest$ac_exeext 18056rm -f conftest.$ac_objext conftest$ac_exeext
16660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18057if { (ac_try="$ac_link"
16661 (eval $ac_link) 2>conftest.er1 18058case "(($ac_try" in
18059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18060 *) ac_try_echo=$ac_try;;
18061esac
18062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18063 (eval "$ac_link") 2>conftest.er1
16662 ac_status=$? 18064 ac_status=$?
16663 grep -v '^ *+' conftest.er1 >conftest.err 18065 grep -v '^ *+' conftest.er1 >conftest.err
16664 rm -f conftest.er1 18066 rm -f conftest.er1
16665 cat conftest.err >&5 18067 cat conftest.err >&5
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); } && 18069 (exit $ac_status); } &&
16668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18071 { (case "(($ac_try" in
16670 (eval $ac_try) 2>&5 18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18074esac
18075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_try") 2>&5
16671 ac_status=$? 18077 ac_status=$?
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; } && 18079 (exit $ac_status); }; } &&
16674 { ac_try='test -s conftest$ac_exeext' 18080 { ac_try='test -s conftest$ac_exeext'
16675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18081 { (case "(($ac_try" in
16676 (eval $ac_try) 2>&5 18082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18083 *) ac_try_echo=$ac_try;;
18084esac
18085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18086 (eval "$ac_try") 2>&5
16677 ac_status=$? 18087 ac_status=$?
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); }; }; then 18089 (exit $ac_status); }; }; then
@@ -16687,8 +18097,10 @@ else
16687 echo "$as_me: failed program was:" >&5 18097 echo "$as_me: failed program was:" >&5
16688sed 's/^/| /' conftest.$ac_ext >&5 18098sed 's/^/| /' conftest.$ac_ext >&5
16689 18099
18100
16690fi 18101fi
16691rm -f conftest.err conftest.$ac_objext \ 18102
18103rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16692 conftest$ac_exeext conftest.$ac_ext 18104 conftest$ac_exeext conftest.$ac_ext
16693if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18105if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16694 18106
@@ -16697,13 +18109,11 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16697 # -berok will link without error, but may produce a broken library. 18109 # -berok will link without error, but may produce a broken library.
16698 no_undefined_flag_GCJ=' ${wl}-bernotok' 18110 no_undefined_flag_GCJ=' ${wl}-bernotok'
16699 allow_undefined_flag_GCJ=' ${wl}-berok' 18111 allow_undefined_flag_GCJ=' ${wl}-berok'
16700 # -bexpall does not export symbols beginning with underscore (_)
16701 always_export_symbols_GCJ=yes
16702 # Exported symbols can be pulled into shared objects from archives 18112 # Exported symbols can be pulled into shared objects from archives
16703 whole_archive_flag_spec_GCJ=' ' 18113 whole_archive_flag_spec_GCJ='$convenience'
16704 archive_cmds_need_lc_GCJ=yes 18114 archive_cmds_need_lc_GCJ=yes
16705 # This is similar to how AIX traditionally builds it's shared libraries. 18115 # This is similar to how AIX traditionally builds its shared libraries.
16706 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 18116 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16707 fi 18117 fi
16708 fi 18118 fi
16709 ;; 18119 ;;
@@ -16716,7 +18126,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16716 ld_shlibs_GCJ=no 18126 ld_shlibs_GCJ=no
16717 ;; 18127 ;;
16718 18128
16719 bsdi4*) 18129 bsdi[45]*)
16720 export_dynamic_flag_spec_GCJ=-rdynamic 18130 export_dynamic_flag_spec_GCJ=-rdynamic
16721 ;; 18131 ;;
16722 18132
@@ -16737,57 +18147,57 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16737 old_archive_From_new_cmds_GCJ='true' 18147 old_archive_From_new_cmds_GCJ='true'
16738 # FIXME: Should let the user specify the lib program. 18148 # FIXME: Should let the user specify the lib program.
16739 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 18149 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16740 fix_srcfile_path='`cygpath -w "$srcfile"`' 18150 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16741 enable_shared_with_static_runtimes_GCJ=yes 18151 enable_shared_with_static_runtimes_GCJ=yes
16742 ;; 18152 ;;
16743 18153
16744 darwin* | rhapsody*) 18154 darwin* | rhapsody*)
16745 if test "$GXX" = yes ; then 18155 case $host_os in
16746 archive_cmds_need_lc_GCJ=no 18156 rhapsody* | darwin1.[012])
16747 case "$host_os" in 18157 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16748 rhapsody* | darwin1.[012]) 18158 ;;
16749 allow_undefined_flag_GCJ='-undefined suppress' 18159 *) # Darwin 1.3 on
16750 ;; 18160 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16751 *) # Darwin 1.3 on 18161 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16752 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 18162 else
16753 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 18163 case ${MACOSX_DEPLOYMENT_TARGET} in
16754 else 18164 10.[012])
16755 case ${MACOSX_DEPLOYMENT_TARGET} in 18165 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16756 10.[012]) 18166 ;;
16757 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 18167 10.*)
16758 ;; 18168 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16759 10.*) 18169 ;;
16760 allow_undefined_flag_GCJ='-undefined dynamic_lookup' 18170 esac
16761 ;; 18171 fi
16762 esac 18172 ;;
16763 fi
16764 ;;
16765 esac 18173 esac
16766 lt_int_apple_cc_single_mod=no 18174 archive_cmds_need_lc_GCJ=no
16767 output_verbose_link_cmd='echo'
16768 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16769 lt_int_apple_cc_single_mod=yes
16770 fi
16771 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16772 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16773 else
16774 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16775 fi
16776 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16777 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16778 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16779 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16780 else
16781 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16782 fi
16783 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16784 hardcode_direct_GCJ=no 18175 hardcode_direct_GCJ=no
16785 hardcode_automatic_GCJ=yes 18176 hardcode_automatic_GCJ=yes
16786 hardcode_shlibpath_var_GCJ=unsupported 18177 hardcode_shlibpath_var_GCJ=unsupported
16787 whole_archive_flag_spec_GCJ='-all_load $convenience' 18178 whole_archive_flag_spec_GCJ=''
16788 link_all_deplibs_GCJ=yes 18179 link_all_deplibs_GCJ=yes
18180 if test "$GCC" = yes ; then
18181 output_verbose_link_cmd='echo'
18182 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18183 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18184 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18185 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18186 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16789 else 18187 else
16790 ld_shlibs_GCJ=no 18188 case $cc_basename in
18189 xlc*)
18190 output_verbose_link_cmd='echo'
18191 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18192 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18193 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18194 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18195 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18196 ;;
18197 *)
18198 ld_shlibs_GCJ=no
18199 ;;
18200 esac
16791 fi 18201 fi
16792 ;; 18202 ;;
16793 18203
@@ -16821,7 +18231,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16821 ;; 18231 ;;
16822 18232
16823 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18233 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16824 freebsd* | kfreebsd*-gnu) 18234 freebsd* | dragonfly*)
16825 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18235 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16826 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18236 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16827 hardcode_direct_GCJ=yes 18237 hardcode_direct_GCJ=yes
@@ -16844,47 +18254,62 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16844 export_dynamic_flag_spec_GCJ='${wl}-E' 18254 export_dynamic_flag_spec_GCJ='${wl}-E'
16845 ;; 18255 ;;
16846 18256
16847 hpux10* | hpux11*) 18257 hpux10*)
16848 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18258 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16849 case "$host_cpu" in 18259 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16850 hppa*64*|ia64*) 18260 else
18261 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18262 fi
18263 if test "$with_gnu_ld" = no; then
18264 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18265 hardcode_libdir_separator_GCJ=:
18266
18267 hardcode_direct_GCJ=yes
18268 export_dynamic_flag_spec_GCJ='${wl}-E'
18269
18270 # hardcode_minus_L: Not really in the search PATH,
18271 # but as the default location of the library.
18272 hardcode_minus_L_GCJ=yes
18273 fi
18274 ;;
18275
18276 hpux11*)
18277 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18278 case $host_cpu in
18279 hppa*64*)
16851 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18280 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16852 ;; 18281 ;;
18282 ia64*)
18283 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18284 ;;
16853 *) 18285 *)
16854 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18286 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16855 ;; 18287 ;;
16856 esac 18288 esac
16857 else 18289 else
16858 case "$host_cpu" in 18290 case $host_cpu in
16859 hppa*64*|ia64*) 18291 hppa*64*)
16860 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 18292 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18293 ;;
18294 ia64*)
18295 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16861 ;; 18296 ;;
16862 *) 18297 *)
16863 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18298 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16864 ;; 18299 ;;
16865 esac 18300 esac
16866 fi 18301 fi
16867 if test "$with_gnu_ld" = no; then 18302 if test "$with_gnu_ld" = no; then
16868 case "$host_cpu" in 18303 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16869 hppa*64*) 18304 hardcode_libdir_separator_GCJ=:
16870 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18305
18306 case $host_cpu in
18307 hppa*64*|ia64*)
16871 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18308 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16872 hardcode_libdir_separator_GCJ=:
16873 hardcode_direct_GCJ=no 18309 hardcode_direct_GCJ=no
16874 hardcode_shlibpath_var_GCJ=no 18310 hardcode_shlibpath_var_GCJ=no
16875 ;; 18311 ;;
16876 ia64*)
16877 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16878 hardcode_direct_GCJ=no
16879 hardcode_shlibpath_var_GCJ=no
16880
16881 # hardcode_minus_L: Not really in the search PATH,
16882 # but as the default location of the library.
16883 hardcode_minus_L_GCJ=yes
16884 ;;
16885 *) 18312 *)
16886 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16887 hardcode_libdir_separator_GCJ=:
16888 hardcode_direct_GCJ=yes 18313 hardcode_direct_GCJ=yes
16889 export_dynamic_flag_spec_GCJ='${wl}-E' 18314 export_dynamic_flag_spec_GCJ='${wl}-E'
16890 18315
@@ -16908,7 +18333,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16908 link_all_deplibs_GCJ=yes 18333 link_all_deplibs_GCJ=yes
16909 ;; 18334 ;;
16910 18335
16911 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 18336 netbsd* | netbsdelf*-gnu)
16912 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18337 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16913 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18338 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16914 else 18339 else
@@ -16932,6 +18357,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16932 hardcode_shlibpath_var_GCJ=no 18357 hardcode_shlibpath_var_GCJ=no
16933 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18358 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16934 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18359 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18360 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16935 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18361 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16936 export_dynamic_flag_spec_GCJ='${wl}-E' 18362 export_dynamic_flag_spec_GCJ='${wl}-E'
16937 else 18363 else
@@ -16977,7 +18403,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16977 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18403 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16978 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 18404 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16979 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 18405 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16980 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 18406 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16981 18407
16982 # Both c and cxx compiler support -rpath directly 18408 # Both c and cxx compiler support -rpath directly
16983 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18409 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
@@ -16985,21 +18411,15 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16985 hardcode_libdir_separator_GCJ=: 18411 hardcode_libdir_separator_GCJ=:
16986 ;; 18412 ;;
16987 18413
16988 sco3.2v5*)
16989 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16990 hardcode_shlibpath_var_GCJ=no
16991 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16992 runpath_var=LD_RUN_PATH
16993 hardcode_runpath_var=yes
16994 ;;
16995
16996 solaris*) 18414 solaris*)
16997 no_undefined_flag_GCJ=' -z text' 18415 no_undefined_flag_GCJ=' -z text'
16998 if test "$GCC" = yes; then 18416 if test "$GCC" = yes; then
18417 wlarc='${wl}'
16999 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18418 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17000 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18419 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17001 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18420 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17002 else 18421 else
18422 wlarc=''
17003 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18423 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17004 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18424 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17005 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18425 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
@@ -17008,8 +18428,18 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17008 hardcode_shlibpath_var_GCJ=no 18428 hardcode_shlibpath_var_GCJ=no
17009 case $host_os in 18429 case $host_os in
17010 solaris2.[0-5] | solaris2.[0-5].*) ;; 18430 solaris2.[0-5] | solaris2.[0-5].*) ;;
17011 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 18431 *)
17012 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 18432 # The compiler driver will combine linker options so we
18433 # cannot just pass the convience library names through
18434 # without $wl, iff we do not link with $LD.
18435 # Luckily, gcc supports the same syntax we need for Sun Studio.
18436 # Supported since Solaris 2.6 (maybe 2.5.1?)
18437 case $wlarc in
18438 '')
18439 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18440 *)
18441 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18442 esac ;;
17013 esac 18443 esac
17014 link_all_deplibs_GCJ=yes 18444 link_all_deplibs_GCJ=yes
17015 ;; 18445 ;;
@@ -17066,36 +18496,45 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17066 fi 18496 fi
17067 ;; 18497 ;;
17068 18498
17069 sysv4.2uw2*) 18499 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17070 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18500 no_undefined_flag_GCJ='${wl}-z,text'
17071 hardcode_direct_GCJ=yes 18501 archive_cmds_need_lc_GCJ=no
17072 hardcode_minus_L_GCJ=no
17073 hardcode_shlibpath_var_GCJ=no 18502 hardcode_shlibpath_var_GCJ=no
17074 hardcode_runpath_var=yes 18503 runpath_var='LD_RUN_PATH'
17075 runpath_var=LD_RUN_PATH
17076 ;;
17077 18504
17078 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17079 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17080 if test "$GCC" = yes; then 18505 if test "$GCC" = yes; then
17081 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18506 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18507 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17082 else 18508 else
17083 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18509 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18510 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17084 fi 18511 fi
17085 runpath_var='LD_RUN_PATH'
17086 hardcode_shlibpath_var_GCJ=no
17087 ;; 18512 ;;
17088 18513
17089 sysv5*) 18514 sysv5* | sco3.2v5* | sco5v6*)
17090 no_undefined_flag_GCJ=' -z text' 18515 # Note: We can NOT use -z defs as we might desire, because we do not
17091 # $CC -shared without GNU ld will not create a library from C++ 18516 # link with -lc, and that would cause any symbols used from libc to
17092 # object files and a static libstdc++, better avoid it by now 18517 # always be unresolved, which means just about no library would
17093 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18518 # ever link correctly. If we're not using GNU ld we use -z text
17094 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18519 # though, which does catch some bad symbols but isn't as heavy-handed
17095 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18520 # as -z defs.
17096 hardcode_libdir_flag_spec_GCJ= 18521 no_undefined_flag_GCJ='${wl}-z,text'
18522 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18523 archive_cmds_need_lc_GCJ=no
17097 hardcode_shlibpath_var_GCJ=no 18524 hardcode_shlibpath_var_GCJ=no
18525 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18526 hardcode_libdir_separator_GCJ=':'
18527 link_all_deplibs_GCJ=yes
18528 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17098 runpath_var='LD_RUN_PATH' 18529 runpath_var='LD_RUN_PATH'
18530
18531 if test "$GCC" = yes; then
18532 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18533 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18534 else
18535 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18536 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18537 fi
17099 ;; 18538 ;;
17100 18539
17101 uts4*) 18540 uts4*)
@@ -17110,15 +18549,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17110 esac 18549 esac
17111 fi 18550 fi
17112 18551
17113echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18552{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17114echo "${ECHO_T}$ld_shlibs_GCJ" >&6 18553echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17115test "$ld_shlibs_GCJ" = no && can_build_shared=no 18554test "$ld_shlibs_GCJ" = no && can_build_shared=no
17116 18555
17117variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17118if test "$GCC" = yes; then
17119 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17120fi
17121
17122# 18556#
17123# Do we need to explicitly link libc? 18557# Do we need to explicitly link libc?
17124# 18558#
@@ -17136,8 +18570,8 @@ x|xyes)
17136 # Test whether the compiler implicitly links with -lc since on some 18570 # Test whether the compiler implicitly links with -lc since on some
17137 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18571 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17138 # to ld, don't add -lc before -lgcc. 18572 # to ld, don't add -lc before -lgcc.
17139 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18573 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17140echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 18574echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17141 $rm conftest* 18575 $rm conftest*
17142 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18576 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17143 18577
@@ -17151,6 +18585,7 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
17151 libobjs=conftest.$ac_objext 18585 libobjs=conftest.$ac_objext
17152 deplibs= 18586 deplibs=
17153 wl=$lt_prog_compiler_wl_GCJ 18587 wl=$lt_prog_compiler_wl_GCJ
18588 pic_flag=$lt_prog_compiler_pic_GCJ
17154 compiler_flags=-v 18589 compiler_flags=-v
17155 linker_flags=-v 18590 linker_flags=-v
17156 verstring= 18591 verstring=
@@ -17173,16 +18608,16 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&
17173 cat conftest.err 1>&5 18608 cat conftest.err 1>&5
17174 fi 18609 fi
17175 $rm conftest* 18610 $rm conftest*
17176 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18611 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17177echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 18612echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17178 ;; 18613 ;;
17179 esac 18614 esac
17180 fi 18615 fi
17181 ;; 18616 ;;
17182esac 18617esac
17183 18618
17184echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18619{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17185echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 18620echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17186library_names_spec= 18621library_names_spec=
17187libname_spec='lib$name' 18622libname_spec='lib$name'
17188soname_spec= 18623soname_spec=
@@ -17283,7 +18718,7 @@ beos*)
17283 shlibpath_var=LIBRARY_PATH 18718 shlibpath_var=LIBRARY_PATH
17284 ;; 18719 ;;
17285 18720
17286bsdi4*) 18721bsdi[45]*)
17287 version_type=linux 18722 version_type=linux
17288 need_version=no 18723 need_version=no
17289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -17311,7 +18746,8 @@ cygwin* | mingw* | pw32*)
17311 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18746 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17312 dldir=$destdir/`dirname \$dlpath`~ 18747 dldir=$destdir/`dirname \$dlpath`~
17313 test -d \$dldir || mkdir -p \$dldir~ 18748 test -d \$dldir || mkdir -p \$dldir~
17314 $install_prog $dir/$dlname \$dldir/$dlname' 18749 $install_prog $dir/$dlname \$dldir/$dlname~
18750 chmod a+x \$dldir/$dlname'
17315 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18751 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17316 dlpath=$dir/\$dldll~ 18752 dlpath=$dir/\$dldll~
17317 $rm \$dlpath' 18753 $rm \$dlpath'
@@ -17341,7 +18777,7 @@ cygwin* | mingw* | pw32*)
17341 ;; 18777 ;;
17342 pw32*) 18778 pw32*)
17343 # pw32 DLLs use 'pw' prefix rather than 'lib' 18779 # pw32 DLLs use 'pw' prefix rather than 'lib'
17344 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 18780 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17345 ;; 18781 ;;
17346 esac 18782 esac
17347 ;; 18783 ;;
@@ -17364,7 +18800,7 @@ darwin* | rhapsody*)
17364 soname_spec='${libname}${release}${major}$shared_ext' 18800 soname_spec='${libname}${release}${major}$shared_ext'
17365 shlibpath_overrides_runpath=yes 18801 shlibpath_overrides_runpath=yes
17366 shlibpath_var=DYLD_LIBRARY_PATH 18802 shlibpath_var=DYLD_LIBRARY_PATH
17367 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 18803 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17368 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18804 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17369 if test "$GCC" = yes; then 18805 if test "$GCC" = yes; then
17370 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 18806 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
@@ -17387,20 +18823,17 @@ freebsd1*)
17387 dynamic_linker=no 18823 dynamic_linker=no
17388 ;; 18824 ;;
17389 18825
17390kfreebsd*-gnu) 18826freebsd* | dragonfly*)
17391 version_type=linux 18827 # DragonFly does not have aout. When/if they implement a new
17392 need_lib_prefix=no 18828 # versioning mechanism, adjust this.
17393 need_version=no 18829 if test -x /usr/bin/objformat; then
17394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18830 objformat=`/usr/bin/objformat`
17395 soname_spec='${libname}${release}${shared_ext}$major' 18831 else
17396 shlibpath_var=LD_LIBRARY_PATH 18832 case $host_os in
17397 shlibpath_overrides_runpath=no 18833 freebsd[123]*) objformat=aout ;;
17398 hardcode_into_libs=yes 18834 *) objformat=elf ;;
17399 dynamic_linker='GNU ld.so' 18835 esac
17400 ;; 18836 fi
17401
17402freebsd*)
17403 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17404 version_type=freebsd-$objformat 18837 version_type=freebsd-$objformat
17405 case $version_type in 18838 case $version_type in
17406 freebsd-elf*) 18839 freebsd-elf*)
@@ -17418,14 +18851,19 @@ freebsd*)
17418 freebsd2*) 18851 freebsd2*)
17419 shlibpath_overrides_runpath=yes 18852 shlibpath_overrides_runpath=yes
17420 ;; 18853 ;;
17421 freebsd3.01* | freebsdelf3.01*) 18854 freebsd3.[01]* | freebsdelf3.[01]*)
17422 shlibpath_overrides_runpath=yes 18855 shlibpath_overrides_runpath=yes
17423 hardcode_into_libs=yes 18856 hardcode_into_libs=yes
17424 ;; 18857 ;;
17425 *) # from 3.2 on 18858 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18859 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17426 shlibpath_overrides_runpath=no 18860 shlibpath_overrides_runpath=no
17427 hardcode_into_libs=yes 18861 hardcode_into_libs=yes
17428 ;; 18862 ;;
18863 freebsd*) # from 4.6 on
18864 shlibpath_overrides_runpath=yes
18865 hardcode_into_libs=yes
18866 ;;
17429 esac 18867 esac
17430 ;; 18868 ;;
17431 18869
@@ -17445,7 +18883,7 @@ hpux9* | hpux10* | hpux11*)
17445 version_type=sunos 18883 version_type=sunos
17446 need_lib_prefix=no 18884 need_lib_prefix=no
17447 need_version=no 18885 need_version=no
17448 case "$host_cpu" in 18886 case $host_cpu in
17449 ia64*) 18887 ia64*)
17450 shrext_cmds='.so' 18888 shrext_cmds='.so'
17451 hardcode_into_libs=yes 18889 hardcode_into_libs=yes
@@ -17485,6 +18923,18 @@ hpux9* | hpux10* | hpux11*)
17485 postinstall_cmds='chmod 555 $lib' 18923 postinstall_cmds='chmod 555 $lib'
17486 ;; 18924 ;;
17487 18925
18926interix3*)
18927 version_type=linux
18928 need_lib_prefix=no
18929 need_version=no
18930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18931 soname_spec='${libname}${release}${shared_ext}$major'
18932 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18933 shlibpath_var=LD_LIBRARY_PATH
18934 shlibpath_overrides_runpath=no
18935 hardcode_into_libs=yes
18936 ;;
18937
17488irix5* | irix6* | nonstopux*) 18938irix5* | irix6* | nonstopux*)
17489 case $host_os in 18939 case $host_os in
17490 nonstopux*) version_type=nonstopux ;; 18940 nonstopux*) version_type=nonstopux ;;
@@ -17528,7 +18978,7 @@ linux*oldld* | linux*aout* | linux*coff*)
17528 ;; 18978 ;;
17529 18979
17530# This must be Linux ELF. 18980# This must be Linux ELF.
17531linux*) 18981linux* | k*bsd*-gnu)
17532 version_type=linux 18982 version_type=linux
17533 need_lib_prefix=no 18983 need_lib_prefix=no
17534 need_version=no 18984 need_version=no
@@ -17544,7 +18994,7 @@ linux*)
17544 18994
17545 # Append ld.so.conf contents to the search path 18995 # Append ld.so.conf contents to the search path
17546 if test -f /etc/ld.so.conf; then 18996 if test -f /etc/ld.so.conf; then
17547 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 18997 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17548 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18998 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17549 fi 18999 fi
17550 19000
@@ -17569,18 +19019,6 @@ netbsdelf*-gnu)
17569 dynamic_linker='NetBSD ld.elf_so' 19019 dynamic_linker='NetBSD ld.elf_so'
17570 ;; 19020 ;;
17571 19021
17572knetbsd*-gnu)
17573 version_type=linux
17574 need_lib_prefix=no
17575 need_version=no
17576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17577 soname_spec='${libname}${release}${shared_ext}$major'
17578 shlibpath_var=LD_LIBRARY_PATH
17579 shlibpath_overrides_runpath=no
17580 hardcode_into_libs=yes
17581 dynamic_linker='GNU ld.so'
17582 ;;
17583
17584netbsd*) 19022netbsd*)
17585 version_type=sunos 19023 version_type=sunos
17586 need_lib_prefix=no 19024 need_lib_prefix=no
@@ -17618,8 +19056,13 @@ nto-qnx*)
17618 19056
17619openbsd*) 19057openbsd*)
17620 version_type=sunos 19058 version_type=sunos
19059 sys_lib_dlsearch_path_spec="/usr/lib"
17621 need_lib_prefix=no 19060 need_lib_prefix=no
17622 need_version=yes 19061 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19062 case $host_os in
19063 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19064 *) need_version=no ;;
19065 esac
17623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17625 shlibpath_var=LD_LIBRARY_PATH 19068 shlibpath_var=LD_LIBRARY_PATH
@@ -17657,13 +19100,6 @@ osf3* | osf4* | osf5*)
17657 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 19100 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17658 ;; 19101 ;;
17659 19102
17660sco3.2v5*)
17661 version_type=osf
17662 soname_spec='${libname}${release}${shared_ext}$major'
17663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17664 shlibpath_var=LD_LIBRARY_PATH
17665 ;;
17666
17667solaris*) 19103solaris*)
17668 version_type=linux 19104 version_type=linux
17669 need_lib_prefix=no 19105 need_lib_prefix=no
@@ -17689,7 +19125,7 @@ sunos4*)
17689 need_version=yes 19125 need_version=yes
17690 ;; 19126 ;;
17691 19127
17692sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 19128sysv4 | sysv4.3*)
17693 version_type=linux 19129 version_type=linux
17694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17695 soname_spec='${libname}${release}${shared_ext}$major' 19131 soname_spec='${libname}${release}${shared_ext}$major'
@@ -17722,6 +19158,29 @@ sysv4*MP*)
17722 fi 19158 fi
17723 ;; 19159 ;;
17724 19160
19161sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19162 version_type=freebsd-elf
19163 need_lib_prefix=no
19164 need_version=no
19165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19166 soname_spec='${libname}${release}${shared_ext}$major'
19167 shlibpath_var=LD_LIBRARY_PATH
19168 hardcode_into_libs=yes
19169 if test "$with_gnu_ld" = yes; then
19170 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19171 shlibpath_overrides_runpath=no
19172 else
19173 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19174 shlibpath_overrides_runpath=yes
19175 case $host_os in
19176 sco3.2v5*)
19177 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19178 ;;
19179 esac
19180 fi
19181 sys_lib_dlsearch_path_spec='/usr/lib'
19182 ;;
19183
17725uts4*) 19184uts4*)
17726 version_type=linux 19185 version_type=linux
17727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -17733,16 +19192,21 @@ uts4*)
17733 dynamic_linker=no 19192 dynamic_linker=no
17734 ;; 19193 ;;
17735esac 19194esac
17736echo "$as_me:$LINENO: result: $dynamic_linker" >&5 19195{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17737echo "${ECHO_T}$dynamic_linker" >&6 19196echo "${ECHO_T}$dynamic_linker" >&6; }
17738test "$dynamic_linker" = no && can_build_shared=no 19197test "$dynamic_linker" = no && can_build_shared=no
17739 19198
17740echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 19199variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17741echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 19200if test "$GCC" = yes; then
19201 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19202fi
19203
19204{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19205echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17742hardcode_action_GCJ= 19206hardcode_action_GCJ=
17743if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 19207if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17744 test -n "$runpath_var GCJ" || \ 19208 test -n "$runpath_var_GCJ" || \
17745 test "X$hardcode_automatic_GCJ"="Xyes" ; then 19209 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17746 19210
17747 # We can hardcode non-existant directories. 19211 # We can hardcode non-existant directories.
17748 if test "$hardcode_direct_GCJ" != no && 19212 if test "$hardcode_direct_GCJ" != no &&
@@ -17762,8 +19226,8 @@ else
17762 # directories. 19226 # directories.
17763 hardcode_action_GCJ=unsupported 19227 hardcode_action_GCJ=unsupported
17764fi 19228fi
17765echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 19229{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17766echo "${ECHO_T}$hardcode_action_GCJ" >&6 19230echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17767 19231
17768if test "$hardcode_action_GCJ" = relink; then 19232if test "$hardcode_action_GCJ" = relink; then
17769 # Fast installation is not supported 19233 # Fast installation is not supported
@@ -17774,834 +19238,6 @@ elif test "$shlibpath_overrides_runpath" = yes ||
17774 enable_fast_install=needless 19238 enable_fast_install=needless
17775fi 19239fi
17776 19240
17777striplib=
17778old_striplib=
17779echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17780echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17781if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17782 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17783 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17784 echo "$as_me:$LINENO: result: yes" >&5
17785echo "${ECHO_T}yes" >&6
17786else
17787# FIXME - insert some real tests, host_os isn't really good enough
17788 case $host_os in
17789 darwin*)
17790 if test -n "$STRIP" ; then
17791 striplib="$STRIP -x"
17792 echo "$as_me:$LINENO: result: yes" >&5
17793echo "${ECHO_T}yes" >&6
17794 else
17795 echo "$as_me:$LINENO: result: no" >&5
17796echo "${ECHO_T}no" >&6
17797fi
17798 ;;
17799 *)
17800 echo "$as_me:$LINENO: result: no" >&5
17801echo "${ECHO_T}no" >&6
17802 ;;
17803 esac
17804fi
17805
17806if test "x$enable_dlopen" != xyes; then
17807 enable_dlopen=unknown
17808 enable_dlopen_self=unknown
17809 enable_dlopen_self_static=unknown
17810else
17811 lt_cv_dlopen=no
17812 lt_cv_dlopen_libs=
17813
17814 case $host_os in
17815 beos*)
17816 lt_cv_dlopen="load_add_on"
17817 lt_cv_dlopen_libs=
17818 lt_cv_dlopen_self=yes
17819 ;;
17820
17821 mingw* | pw32*)
17822 lt_cv_dlopen="LoadLibrary"
17823 lt_cv_dlopen_libs=
17824 ;;
17825
17826 cygwin*)
17827 lt_cv_dlopen="dlopen"
17828 lt_cv_dlopen_libs=
17829 ;;
17830
17831 darwin*)
17832 # if libdl is installed we need to link against it
17833 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17834echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17835if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17836 echo $ECHO_N "(cached) $ECHO_C" >&6
17837else
17838 ac_check_lib_save_LIBS=$LIBS
17839LIBS="-ldl $LIBS"
17840cat >conftest.$ac_ext <<_ACEOF
17841/* confdefs.h. */
17842_ACEOF
17843cat confdefs.h >>conftest.$ac_ext
17844cat >>conftest.$ac_ext <<_ACEOF
17845/* end confdefs.h. */
17846
17847/* Override any gcc2 internal prototype to avoid an error. */
17848#ifdef __cplusplus
17849extern "C"
17850#endif
17851/* We use char because int might match the return type of a gcc2
17852 builtin and then its argument prototype would still apply. */
17853char dlopen ();
17854int
17855main ()
17856{
17857dlopen ();
17858 ;
17859 return 0;
17860}
17861_ACEOF
17862rm -f conftest.$ac_objext conftest$ac_exeext
17863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17864 (eval $ac_link) 2>conftest.er1
17865 ac_status=$?
17866 grep -v '^ *+' conftest.er1 >conftest.err
17867 rm -f conftest.er1
17868 cat conftest.err >&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); } &&
17871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17873 (eval $ac_try) 2>&5
17874 ac_status=$?
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); }; } &&
17877 { ac_try='test -s conftest$ac_exeext'
17878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17879 (eval $ac_try) 2>&5
17880 ac_status=$?
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); }; }; then
17883 ac_cv_lib_dl_dlopen=yes
17884else
17885 echo "$as_me: failed program was:" >&5
17886sed 's/^/| /' conftest.$ac_ext >&5
17887
17888ac_cv_lib_dl_dlopen=no
17889fi
17890rm -f conftest.err conftest.$ac_objext \
17891 conftest$ac_exeext conftest.$ac_ext
17892LIBS=$ac_check_lib_save_LIBS
17893fi
17894echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17895echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17896if test $ac_cv_lib_dl_dlopen = yes; then
17897 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17898else
17899
17900 lt_cv_dlopen="dyld"
17901 lt_cv_dlopen_libs=
17902 lt_cv_dlopen_self=yes
17903
17904fi
17905
17906 ;;
17907
17908 *)
17909 echo "$as_me:$LINENO: checking for shl_load" >&5
17910echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17911if test "${ac_cv_func_shl_load+set}" = set; then
17912 echo $ECHO_N "(cached) $ECHO_C" >&6
17913else
17914 cat >conftest.$ac_ext <<_ACEOF
17915/* confdefs.h. */
17916_ACEOF
17917cat confdefs.h >>conftest.$ac_ext
17918cat >>conftest.$ac_ext <<_ACEOF
17919/* end confdefs.h. */
17920/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17922#define shl_load innocuous_shl_load
17923
17924/* System header to define __stub macros and hopefully few prototypes,
17925 which can conflict with char shl_load (); below.
17926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17927 <limits.h> exists even on freestanding compilers. */
17928
17929#ifdef __STDC__
17930# include <limits.h>
17931#else
17932# include <assert.h>
17933#endif
17934
17935#undef shl_load
17936
17937/* Override any gcc2 internal prototype to avoid an error. */
17938#ifdef __cplusplus
17939extern "C"
17940{
17941#endif
17942/* We use char because int might match the return type of a gcc2
17943 builtin and then its argument prototype would still apply. */
17944char shl_load ();
17945/* The GNU C library defines this for functions which it implements
17946 to always fail with ENOSYS. Some functions are actually named
17947 something starting with __ and the normal name is an alias. */
17948#if defined (__stub_shl_load) || defined (__stub___shl_load)
17949choke me
17950#else
17951char (*f) () = shl_load;
17952#endif
17953#ifdef __cplusplus
17954}
17955#endif
17956
17957int
17958main ()
17959{
17960return f != shl_load;
17961 ;
17962 return 0;
17963}
17964_ACEOF
17965rm -f conftest.$ac_objext conftest$ac_exeext
17966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17967 (eval $ac_link) 2>conftest.er1
17968 ac_status=$?
17969 grep -v '^ *+' conftest.er1 >conftest.err
17970 rm -f conftest.er1
17971 cat conftest.err >&5
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); } &&
17974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17976 (eval $ac_try) 2>&5
17977 ac_status=$?
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); }; } &&
17980 { ac_try='test -s conftest$ac_exeext'
17981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17982 (eval $ac_try) 2>&5
17983 ac_status=$?
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); }; }; then
17986 ac_cv_func_shl_load=yes
17987else
17988 echo "$as_me: failed program was:" >&5
17989sed 's/^/| /' conftest.$ac_ext >&5
17990
17991ac_cv_func_shl_load=no
17992fi
17993rm -f conftest.err conftest.$ac_objext \
17994 conftest$ac_exeext conftest.$ac_ext
17995fi
17996echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17997echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17998if test $ac_cv_func_shl_load = yes; then
17999 lt_cv_dlopen="shl_load"
18000else
18001 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18002echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18003if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18004 echo $ECHO_N "(cached) $ECHO_C" >&6
18005else
18006 ac_check_lib_save_LIBS=$LIBS
18007LIBS="-ldld $LIBS"
18008cat >conftest.$ac_ext <<_ACEOF
18009/* confdefs.h. */
18010_ACEOF
18011cat confdefs.h >>conftest.$ac_ext
18012cat >>conftest.$ac_ext <<_ACEOF
18013/* end confdefs.h. */
18014
18015/* Override any gcc2 internal prototype to avoid an error. */
18016#ifdef __cplusplus
18017extern "C"
18018#endif
18019/* We use char because int might match the return type of a gcc2
18020 builtin and then its argument prototype would still apply. */
18021char shl_load ();
18022int
18023main ()
18024{
18025shl_load ();
18026 ;
18027 return 0;
18028}
18029_ACEOF
18030rm -f conftest.$ac_objext conftest$ac_exeext
18031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18032 (eval $ac_link) 2>conftest.er1
18033 ac_status=$?
18034 grep -v '^ *+' conftest.er1 >conftest.err
18035 rm -f conftest.er1
18036 cat conftest.err >&5
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); } &&
18039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18041 (eval $ac_try) 2>&5
18042 ac_status=$?
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); }; } &&
18045 { ac_try='test -s conftest$ac_exeext'
18046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18047 (eval $ac_try) 2>&5
18048 ac_status=$?
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); }; }; then
18051 ac_cv_lib_dld_shl_load=yes
18052else
18053 echo "$as_me: failed program was:" >&5
18054sed 's/^/| /' conftest.$ac_ext >&5
18055
18056ac_cv_lib_dld_shl_load=no
18057fi
18058rm -f conftest.err conftest.$ac_objext \
18059 conftest$ac_exeext conftest.$ac_ext
18060LIBS=$ac_check_lib_save_LIBS
18061fi
18062echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18063echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18064if test $ac_cv_lib_dld_shl_load = yes; then
18065 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18066else
18067 echo "$as_me:$LINENO: checking for dlopen" >&5
18068echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18069if test "${ac_cv_func_dlopen+set}" = set; then
18070 echo $ECHO_N "(cached) $ECHO_C" >&6
18071else
18072 cat >conftest.$ac_ext <<_ACEOF
18073/* confdefs.h. */
18074_ACEOF
18075cat confdefs.h >>conftest.$ac_ext
18076cat >>conftest.$ac_ext <<_ACEOF
18077/* end confdefs.h. */
18078/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18080#define dlopen innocuous_dlopen
18081
18082/* System header to define __stub macros and hopefully few prototypes,
18083 which can conflict with char dlopen (); below.
18084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18085 <limits.h> exists even on freestanding compilers. */
18086
18087#ifdef __STDC__
18088# include <limits.h>
18089#else
18090# include <assert.h>
18091#endif
18092
18093#undef dlopen
18094
18095/* Override any gcc2 internal prototype to avoid an error. */
18096#ifdef __cplusplus
18097extern "C"
18098{
18099#endif
18100/* We use char because int might match the return type of a gcc2
18101 builtin and then its argument prototype would still apply. */
18102char dlopen ();
18103/* The GNU C library defines this for functions which it implements
18104 to always fail with ENOSYS. Some functions are actually named
18105 something starting with __ and the normal name is an alias. */
18106#if defined (__stub_dlopen) || defined (__stub___dlopen)
18107choke me
18108#else
18109char (*f) () = dlopen;
18110#endif
18111#ifdef __cplusplus
18112}
18113#endif
18114
18115int
18116main ()
18117{
18118return f != dlopen;
18119 ;
18120 return 0;
18121}
18122_ACEOF
18123rm -f conftest.$ac_objext conftest$ac_exeext
18124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18125 (eval $ac_link) 2>conftest.er1
18126 ac_status=$?
18127 grep -v '^ *+' conftest.er1 >conftest.err
18128 rm -f conftest.er1
18129 cat conftest.err >&5
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); } &&
18132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134 (eval $ac_try) 2>&5
18135 ac_status=$?
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); }; } &&
18138 { ac_try='test -s conftest$ac_exeext'
18139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18140 (eval $ac_try) 2>&5
18141 ac_status=$?
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); }; }; then
18144 ac_cv_func_dlopen=yes
18145else
18146 echo "$as_me: failed program was:" >&5
18147sed 's/^/| /' conftest.$ac_ext >&5
18148
18149ac_cv_func_dlopen=no
18150fi
18151rm -f conftest.err conftest.$ac_objext \
18152 conftest$ac_exeext conftest.$ac_ext
18153fi
18154echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18155echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18156if test $ac_cv_func_dlopen = yes; then
18157 lt_cv_dlopen="dlopen"
18158else
18159 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18160echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18161if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18162 echo $ECHO_N "(cached) $ECHO_C" >&6
18163else
18164 ac_check_lib_save_LIBS=$LIBS
18165LIBS="-ldl $LIBS"
18166cat >conftest.$ac_ext <<_ACEOF
18167/* confdefs.h. */
18168_ACEOF
18169cat confdefs.h >>conftest.$ac_ext
18170cat >>conftest.$ac_ext <<_ACEOF
18171/* end confdefs.h. */
18172
18173/* Override any gcc2 internal prototype to avoid an error. */
18174#ifdef __cplusplus
18175extern "C"
18176#endif
18177/* We use char because int might match the return type of a gcc2
18178 builtin and then its argument prototype would still apply. */
18179char dlopen ();
18180int
18181main ()
18182{
18183dlopen ();
18184 ;
18185 return 0;
18186}
18187_ACEOF
18188rm -f conftest.$ac_objext conftest$ac_exeext
18189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18190 (eval $ac_link) 2>conftest.er1
18191 ac_status=$?
18192 grep -v '^ *+' conftest.er1 >conftest.err
18193 rm -f conftest.er1
18194 cat conftest.err >&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); } &&
18197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18199 (eval $ac_try) 2>&5
18200 ac_status=$?
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); }; } &&
18203 { ac_try='test -s conftest$ac_exeext'
18204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18205 (eval $ac_try) 2>&5
18206 ac_status=$?
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); }; }; then
18209 ac_cv_lib_dl_dlopen=yes
18210else
18211 echo "$as_me: failed program was:" >&5
18212sed 's/^/| /' conftest.$ac_ext >&5
18213
18214ac_cv_lib_dl_dlopen=no
18215fi
18216rm -f conftest.err conftest.$ac_objext \
18217 conftest$ac_exeext conftest.$ac_ext
18218LIBS=$ac_check_lib_save_LIBS
18219fi
18220echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18221echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18222if test $ac_cv_lib_dl_dlopen = yes; then
18223 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18224else
18225 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18226echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18227if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18228 echo $ECHO_N "(cached) $ECHO_C" >&6
18229else
18230 ac_check_lib_save_LIBS=$LIBS
18231LIBS="-lsvld $LIBS"
18232cat >conftest.$ac_ext <<_ACEOF
18233/* confdefs.h. */
18234_ACEOF
18235cat confdefs.h >>conftest.$ac_ext
18236cat >>conftest.$ac_ext <<_ACEOF
18237/* end confdefs.h. */
18238
18239/* Override any gcc2 internal prototype to avoid an error. */
18240#ifdef __cplusplus
18241extern "C"
18242#endif
18243/* We use char because int might match the return type of a gcc2
18244 builtin and then its argument prototype would still apply. */
18245char dlopen ();
18246int
18247main ()
18248{
18249dlopen ();
18250 ;
18251 return 0;
18252}
18253_ACEOF
18254rm -f conftest.$ac_objext conftest$ac_exeext
18255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18256 (eval $ac_link) 2>conftest.er1
18257 ac_status=$?
18258 grep -v '^ *+' conftest.er1 >conftest.err
18259 rm -f conftest.er1
18260 cat conftest.err >&5
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); } &&
18263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18265 (eval $ac_try) 2>&5
18266 ac_status=$?
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); }; } &&
18269 { ac_try='test -s conftest$ac_exeext'
18270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271 (eval $ac_try) 2>&5
18272 ac_status=$?
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); }; }; then
18275 ac_cv_lib_svld_dlopen=yes
18276else
18277 echo "$as_me: failed program was:" >&5
18278sed 's/^/| /' conftest.$ac_ext >&5
18279
18280ac_cv_lib_svld_dlopen=no
18281fi
18282rm -f conftest.err conftest.$ac_objext \
18283 conftest$ac_exeext conftest.$ac_ext
18284LIBS=$ac_check_lib_save_LIBS
18285fi
18286echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18287echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18288if test $ac_cv_lib_svld_dlopen = yes; then
18289 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18290else
18291 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18292echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18293if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18294 echo $ECHO_N "(cached) $ECHO_C" >&6
18295else
18296 ac_check_lib_save_LIBS=$LIBS
18297LIBS="-ldld $LIBS"
18298cat >conftest.$ac_ext <<_ACEOF
18299/* confdefs.h. */
18300_ACEOF
18301cat confdefs.h >>conftest.$ac_ext
18302cat >>conftest.$ac_ext <<_ACEOF
18303/* end confdefs.h. */
18304
18305/* Override any gcc2 internal prototype to avoid an error. */
18306#ifdef __cplusplus
18307extern "C"
18308#endif
18309/* We use char because int might match the return type of a gcc2
18310 builtin and then its argument prototype would still apply. */
18311char dld_link ();
18312int
18313main ()
18314{
18315dld_link ();
18316 ;
18317 return 0;
18318}
18319_ACEOF
18320rm -f conftest.$ac_objext conftest$ac_exeext
18321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18322 (eval $ac_link) 2>conftest.er1
18323 ac_status=$?
18324 grep -v '^ *+' conftest.er1 >conftest.err
18325 rm -f conftest.er1
18326 cat conftest.err >&5
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); } &&
18329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331 (eval $ac_try) 2>&5
18332 ac_status=$?
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; } &&
18335 { ac_try='test -s conftest$ac_exeext'
18336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18337 (eval $ac_try) 2>&5
18338 ac_status=$?
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); }; }; then
18341 ac_cv_lib_dld_dld_link=yes
18342else
18343 echo "$as_me: failed program was:" >&5
18344sed 's/^/| /' conftest.$ac_ext >&5
18345
18346ac_cv_lib_dld_dld_link=no
18347fi
18348rm -f conftest.err conftest.$ac_objext \
18349 conftest$ac_exeext conftest.$ac_ext
18350LIBS=$ac_check_lib_save_LIBS
18351fi
18352echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18353echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18354if test $ac_cv_lib_dld_dld_link = yes; then
18355 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18356fi
18357
18358
18359fi
18360
18361
18362fi
18363
18364
18365fi
18366
18367
18368fi
18369
18370
18371fi
18372
18373 ;;
18374 esac
18375
18376 if test "x$lt_cv_dlopen" != xno; then
18377 enable_dlopen=yes
18378 else
18379 enable_dlopen=no
18380 fi
18381
18382 case $lt_cv_dlopen in
18383 dlopen)
18384 save_CPPFLAGS="$CPPFLAGS"
18385 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18386
18387 save_LDFLAGS="$LDFLAGS"
18388 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18389
18390 save_LIBS="$LIBS"
18391 LIBS="$lt_cv_dlopen_libs $LIBS"
18392
18393 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18394echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18395if test "${lt_cv_dlopen_self+set}" = set; then
18396 echo $ECHO_N "(cached) $ECHO_C" >&6
18397else
18398 if test "$cross_compiling" = yes; then :
18399 lt_cv_dlopen_self=cross
18400else
18401 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18402 lt_status=$lt_dlunknown
18403 cat > conftest.$ac_ext <<EOF
18404#line 18404 "configure"
18405#include "confdefs.h"
18406
18407#if HAVE_DLFCN_H
18408#include <dlfcn.h>
18409#endif
18410
18411#include <stdio.h>
18412
18413#ifdef RTLD_GLOBAL
18414# define LT_DLGLOBAL RTLD_GLOBAL
18415#else
18416# ifdef DL_GLOBAL
18417# define LT_DLGLOBAL DL_GLOBAL
18418# else
18419# define LT_DLGLOBAL 0
18420# endif
18421#endif
18422
18423/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18424 find out it does not work in some platform. */
18425#ifndef LT_DLLAZY_OR_NOW
18426# ifdef RTLD_LAZY
18427# define LT_DLLAZY_OR_NOW RTLD_LAZY
18428# else
18429# ifdef DL_LAZY
18430# define LT_DLLAZY_OR_NOW DL_LAZY
18431# else
18432# ifdef RTLD_NOW
18433# define LT_DLLAZY_OR_NOW RTLD_NOW
18434# else
18435# ifdef DL_NOW
18436# define LT_DLLAZY_OR_NOW DL_NOW
18437# else
18438# define LT_DLLAZY_OR_NOW 0
18439# endif
18440# endif
18441# endif
18442# endif
18443#endif
18444
18445#ifdef __cplusplus
18446extern "C" void exit (int);
18447#endif
18448
18449void fnord() { int i=42;}
18450int main ()
18451{
18452 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18453 int status = $lt_dlunknown;
18454
18455 if (self)
18456 {
18457 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18458 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18459 /* dlclose (self); */
18460 }
18461
18462 exit (status);
18463}
18464EOF
18465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18466 (eval $ac_link) 2>&5
18467 ac_status=$?
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18470 (./conftest; exit; ) 2>/dev/null
18471 lt_status=$?
18472 case x$lt_status in
18473 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18474 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18475 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18476 esac
18477 else :
18478 # compilation failed
18479 lt_cv_dlopen_self=no
18480 fi
18481fi
18482rm -fr conftest*
18483
18484
18485fi
18486echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18487echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18488
18489 if test "x$lt_cv_dlopen_self" = xyes; then
18490 LDFLAGS="$LDFLAGS $link_static_flag"
18491 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18492echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18493if test "${lt_cv_dlopen_self_static+set}" = set; then
18494 echo $ECHO_N "(cached) $ECHO_C" >&6
18495else
18496 if test "$cross_compiling" = yes; then :
18497 lt_cv_dlopen_self_static=cross
18498else
18499 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18500 lt_status=$lt_dlunknown
18501 cat > conftest.$ac_ext <<EOF
18502#line 18502 "configure"
18503#include "confdefs.h"
18504
18505#if HAVE_DLFCN_H
18506#include <dlfcn.h>
18507#endif
18508
18509#include <stdio.h>
18510
18511#ifdef RTLD_GLOBAL
18512# define LT_DLGLOBAL RTLD_GLOBAL
18513#else
18514# ifdef DL_GLOBAL
18515# define LT_DLGLOBAL DL_GLOBAL
18516# else
18517# define LT_DLGLOBAL 0
18518# endif
18519#endif
18520
18521/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18522 find out it does not work in some platform. */
18523#ifndef LT_DLLAZY_OR_NOW
18524# ifdef RTLD_LAZY
18525# define LT_DLLAZY_OR_NOW RTLD_LAZY
18526# else
18527# ifdef DL_LAZY
18528# define LT_DLLAZY_OR_NOW DL_LAZY
18529# else
18530# ifdef RTLD_NOW
18531# define LT_DLLAZY_OR_NOW RTLD_NOW
18532# else
18533# ifdef DL_NOW
18534# define LT_DLLAZY_OR_NOW DL_NOW
18535# else
18536# define LT_DLLAZY_OR_NOW 0
18537# endif
18538# endif
18539# endif
18540# endif
18541#endif
18542
18543#ifdef __cplusplus
18544extern "C" void exit (int);
18545#endif
18546
18547void fnord() { int i=42;}
18548int main ()
18549{
18550 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18551 int status = $lt_dlunknown;
18552
18553 if (self)
18554 {
18555 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18556 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18557 /* dlclose (self); */
18558 }
18559
18560 exit (status);
18561}
18562EOF
18563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18564 (eval $ac_link) 2>&5
18565 ac_status=$?
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18568 (./conftest; exit; ) 2>/dev/null
18569 lt_status=$?
18570 case x$lt_status in
18571 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18572 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18573 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18574 esac
18575 else :
18576 # compilation failed
18577 lt_cv_dlopen_self_static=no
18578 fi
18579fi
18580rm -fr conftest*
18581
18582
18583fi
18584echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18585echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18586 fi
18587
18588 CPPFLAGS="$save_CPPFLAGS"
18589 LDFLAGS="$save_LDFLAGS"
18590 LIBS="$save_LIBS"
18591 ;;
18592 esac
18593
18594 case $lt_cv_dlopen_self in
18595 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18596 *) enable_dlopen_self=unknown ;;
18597 esac
18598
18599 case $lt_cv_dlopen_self_static in
18600 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18601 *) enable_dlopen_self_static=unknown ;;
18602 esac
18603fi
18604
18605 19241
18606# The else clause should only fire when bootstrapping the 19242# The else clause should only fire when bootstrapping the
18607# libtool distribution, otherwise you forgot to ship ltmain.sh 19243# libtool distribution, otherwise you forgot to ship ltmain.sh
@@ -18616,7 +19252,7 @@ if test -f "$ltmain"; then
18616 # Now quote all the things that may contain metacharacters while being 19252 # Now quote all the things that may contain metacharacters while being
18617 # careful not to overquote the AC_SUBSTed values. We take copies of the 19253 # careful not to overquote the AC_SUBSTed values. We take copies of the
18618 # variables and quote the copies for generation of the libtool script. 19254 # variables and quote the copies for generation of the libtool script.
18619 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 19255 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18620 SED SHELL STRIP \ 19256 SED SHELL STRIP \
18621 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19257 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18622 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19258 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
@@ -18717,6 +19353,12 @@ fast_install=$enable_fast_install
18717# The host system. 19353# The host system.
18718host_alias=$host_alias 19354host_alias=$host_alias
18719host=$host 19355host=$host
19356host_os=$host_os
19357
19358# The build system.
19359build_alias=$build_alias
19360build=$build
19361build_os=$build_os
18720 19362
18721# An echo program that does not interpret backslashes. 19363# An echo program that does not interpret backslashes.
18722echo=$lt_echo 19364echo=$lt_echo
@@ -18728,6 +19370,9 @@ AR_FLAGS=$lt_AR_FLAGS
18728# A C compiler. 19370# A C compiler.
18729LTCC=$lt_LTCC 19371LTCC=$lt_LTCC
18730 19372
19373# LTCC compiler flags.
19374LTCFLAGS=$lt_LTCFLAGS
19375
18731# A language-specific compiler. 19376# A language-specific compiler.
18732CC=$lt_compiler_GCJ 19377CC=$lt_compiler_GCJ
18733 19378
@@ -18793,7 +19438,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
18793# Does compiler simultaneously support -c and -o options? 19438# Does compiler simultaneously support -c and -o options?
18794compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19439compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18795 19440
18796# Must we lock files when doing compilation ? 19441# Must we lock files when doing compilation?
18797need_locks=$lt_need_locks 19442need_locks=$lt_need_locks
18798 19443
18799# Do we need the lib prefix for modules? 19444# Do we need the lib prefix for modules?
@@ -19018,7 +19663,6 @@ CC="$lt_save_CC"
19018 RC) 19663 RC)
19019 19664
19020 19665
19021
19022# Source file extension for RC test sources. 19666# Source file extension for RC test sources.
19023ac_ext=rc 19667ac_ext=rc
19024 19668
@@ -19037,15 +19681,42 @@ lt_simple_link_test_code="$lt_simple_compile_test_code"
19037# If no C compiler was specified, use CC. 19681# If no C compiler was specified, use CC.
19038LTCC=${LTCC-"$CC"} 19682LTCC=${LTCC-"$CC"}
19039 19683
19684# If no C compiler flags were specified, use CFLAGS.
19685LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19686
19040# Allow CC to be a program name with arguments. 19687# Allow CC to be a program name with arguments.
19041compiler=$CC 19688compiler=$CC
19042 19689
19043 19690
19691# save warnings/boilerplate of simple test code
19692ac_outfile=conftest.$ac_objext
19693printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19694eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19695_lt_compiler_boilerplate=`cat conftest.err`
19696$rm conftest*
19697
19698ac_outfile=conftest.$ac_objext
19699printf "$lt_simple_link_test_code" >conftest.$ac_ext
19700eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19701_lt_linker_boilerplate=`cat conftest.err`
19702$rm conftest*
19703
19704
19044# Allow CC to be a program name with arguments. 19705# Allow CC to be a program name with arguments.
19045lt_save_CC="$CC" 19706lt_save_CC="$CC"
19046CC=${RC-"windres"} 19707CC=${RC-"windres"}
19047compiler=$CC 19708compiler=$CC
19048compiler_RC=$CC 19709compiler_RC=$CC
19710for cc_temp in $compiler""; do
19711 case $cc_temp in
19712 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19713 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19714 \-*) ;;
19715 *) break;;
19716 esac
19717done
19718cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19719
19049lt_cv_prog_compiler_c_o_RC=yes 19720lt_cv_prog_compiler_c_o_RC=yes
19050 19721
19051# The else clause should only fire when bootstrapping the 19722# The else clause should only fire when bootstrapping the
@@ -19061,7 +19732,7 @@ if test -f "$ltmain"; then
19061 # Now quote all the things that may contain metacharacters while being 19732 # Now quote all the things that may contain metacharacters while being
19062 # careful not to overquote the AC_SUBSTed values. We take copies of the 19733 # careful not to overquote the AC_SUBSTed values. We take copies of the
19063 # variables and quote the copies for generation of the libtool script. 19734 # variables and quote the copies for generation of the libtool script.
19064 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 19735 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19065 SED SHELL STRIP \ 19736 SED SHELL STRIP \
19066 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19737 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19067 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19738 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
@@ -19162,6 +19833,12 @@ fast_install=$enable_fast_install
19162# The host system. 19833# The host system.
19163host_alias=$host_alias 19834host_alias=$host_alias
19164host=$host 19835host=$host
19836host_os=$host_os
19837
19838# The build system.
19839build_alias=$build_alias
19840build=$build
19841build_os=$build_os
19165 19842
19166# An echo program that does not interpret backslashes. 19843# An echo program that does not interpret backslashes.
19167echo=$lt_echo 19844echo=$lt_echo
@@ -19173,6 +19850,9 @@ AR_FLAGS=$lt_AR_FLAGS
19173# A C compiler. 19850# A C compiler.
19174LTCC=$lt_LTCC 19851LTCC=$lt_LTCC
19175 19852
19853# LTCC compiler flags.
19854LTCFLAGS=$lt_LTCFLAGS
19855
19176# A language-specific compiler. 19856# A language-specific compiler.
19177CC=$lt_compiler_RC 19857CC=$lt_compiler_RC
19178 19858
@@ -19238,7 +19918,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
19238# Does compiler simultaneously support -c and -o options? 19918# Does compiler simultaneously support -c and -o options?
19239compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19919compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19240 19920
19241# Must we lock files when doing compilation ? 19921# Must we lock files when doing compilation?
19242need_locks=$lt_need_locks 19922need_locks=$lt_need_locks
19243 19923
19244# Do we need the lib prefix for modules? 19924# Do we need the lib prefix for modules?
@@ -19523,9 +20203,9 @@ LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19523ac_header_dirent=no 20203ac_header_dirent=no
19524for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 20204for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19525 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 20205 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19526echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 20206{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19527echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 20207echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19528if eval "test \"\${$as_ac_Header+set}\" = set"; then 20208if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19529 echo $ECHO_N "(cached) $ECHO_C" >&6 20209 echo $ECHO_N "(cached) $ECHO_C" >&6
19530else 20210else
19531 cat >conftest.$ac_ext <<_ACEOF 20211 cat >conftest.$ac_ext <<_ACEOF
@@ -19547,23 +20227,36 @@ return 0;
19547} 20227}
19548_ACEOF 20228_ACEOF
19549rm -f conftest.$ac_objext 20229rm -f conftest.$ac_objext
19550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20230if { (ac_try="$ac_compile"
19551 (eval $ac_compile) 2>conftest.er1 20231case "(($ac_try" in
20232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233 *) ac_try_echo=$ac_try;;
20234esac
20235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236 (eval "$ac_compile") 2>conftest.er1
19552 ac_status=$? 20237 ac_status=$?
19553 grep -v '^ *+' conftest.er1 >conftest.err 20238 grep -v '^ *+' conftest.er1 >conftest.err
19554 rm -f conftest.er1 20239 rm -f conftest.er1
19555 cat conftest.err >&5 20240 cat conftest.err >&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); } && 20242 (exit $ac_status); } &&
19558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20244 { (case "(($ac_try" in
19560 (eval $ac_try) 2>&5 20245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20246 *) ac_try_echo=$ac_try;;
20247esac
20248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20249 (eval "$ac_try") 2>&5
19561 ac_status=$? 20250 ac_status=$?
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; } && 20252 (exit $ac_status); }; } &&
19564 { ac_try='test -s conftest.$ac_objext' 20253 { ac_try='test -s conftest.$ac_objext'
19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20254 { (case "(($ac_try" in
19566 (eval $ac_try) 2>&5 20255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20256 *) ac_try_echo=$ac_try;;
20257esac
20258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20259 (eval "$ac_try") 2>&5
19567 ac_status=$? 20260 ac_status=$?
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; }; then 20262 (exit $ac_status); }; }; then
@@ -19572,12 +20265,14 @@ else
19572 echo "$as_me: failed program was:" >&5 20265 echo "$as_me: failed program was:" >&5
19573sed 's/^/| /' conftest.$ac_ext >&5 20266sed 's/^/| /' conftest.$ac_ext >&5
19574 20267
19575eval "$as_ac_Header=no" 20268 eval "$as_ac_Header=no"
19576fi 20269fi
19577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20270
20271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19578fi 20272fi
19579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20273ac_res=`eval echo '${'$as_ac_Header'}'`
19580echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20274 { echo "$as_me:$LINENO: result: $ac_res" >&5
20275echo "${ECHO_T}$ac_res" >&6; }
19581if test `eval echo '${'$as_ac_Header'}'` = yes; then 20276if test `eval echo '${'$as_ac_Header'}'` = yes; then
19582 cat >>confdefs.h <<_ACEOF 20277 cat >>confdefs.h <<_ACEOF
19583#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 20278#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
@@ -19589,13 +20284,12 @@ fi
19589done 20284done
19590# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 20285# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19591if test $ac_header_dirent = dirent.h; then 20286if test $ac_header_dirent = dirent.h; then
19592 echo "$as_me:$LINENO: checking for library containing opendir" >&5 20287 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19593echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 20288echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19594if test "${ac_cv_search_opendir+set}" = set; then 20289if test "${ac_cv_search_opendir+set}" = set; then
19595 echo $ECHO_N "(cached) $ECHO_C" >&6 20290 echo $ECHO_N "(cached) $ECHO_C" >&6
19596else 20291else
19597 ac_func_search_save_LIBS=$LIBS 20292 ac_func_search_save_LIBS=$LIBS
19598ac_cv_search_opendir=no
19599cat >conftest.$ac_ext <<_ACEOF 20293cat >conftest.$ac_ext <<_ACEOF
19600/* confdefs.h. */ 20294/* confdefs.h. */
19601_ACEOF 20295_ACEOF
@@ -19603,124 +20297,99 @@ cat confdefs.h >>conftest.$ac_ext
19603cat >>conftest.$ac_ext <<_ACEOF 20297cat >>conftest.$ac_ext <<_ACEOF
19604/* end confdefs.h. */ 20298/* end confdefs.h. */
19605 20299
19606/* Override any gcc2 internal prototype to avoid an error. */ 20300/* Override any GCC internal prototype to avoid an error.
20301 Use char because int might match the return type of a GCC
20302 builtin and then its argument prototype would still apply. */
19607#ifdef __cplusplus 20303#ifdef __cplusplus
19608extern "C" 20304extern "C"
19609#endif 20305#endif
19610/* We use char because int might match the return type of a gcc2
19611 builtin and then its argument prototype would still apply. */
19612char opendir (); 20306char opendir ();
19613int 20307int
19614main () 20308main ()
19615{ 20309{
19616opendir (); 20310return opendir ();
19617 ; 20311 ;
19618 return 0; 20312 return 0;
19619} 20313}
19620_ACEOF 20314_ACEOF
19621rm -f conftest.$ac_objext conftest$ac_exeext 20315for ac_lib in '' dir; do
19622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20316 if test -z "$ac_lib"; then
19623 (eval $ac_link) 2>conftest.er1 20317 ac_res="none required"
20318 else
20319 ac_res=-l$ac_lib
20320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20321 fi
20322 rm -f conftest.$ac_objext conftest$ac_exeext
20323if { (ac_try="$ac_link"
20324case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20327esac
20328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329 (eval "$ac_link") 2>conftest.er1
19624 ac_status=$? 20330 ac_status=$?
19625 grep -v '^ *+' conftest.er1 >conftest.err 20331 grep -v '^ *+' conftest.er1 >conftest.err
19626 rm -f conftest.er1 20332 rm -f conftest.er1
19627 cat conftest.err >&5 20333 cat conftest.err >&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } && 20335 (exit $ac_status); } &&
19630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20337 { (case "(($ac_try" in
19632 (eval $ac_try) 2>&5 20338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20339 *) ac_try_echo=$ac_try;;
20340esac
20341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20342 (eval "$ac_try") 2>&5
19633 ac_status=$? 20343 ac_status=$?
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); }; } && 20345 (exit $ac_status); }; } &&
19636 { ac_try='test -s conftest$ac_exeext' 20346 { ac_try='test -s conftest$ac_exeext'
19637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20347 { (case "(($ac_try" in
19638 (eval $ac_try) 2>&5 20348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349 *) ac_try_echo=$ac_try;;
20350esac
20351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20352 (eval "$ac_try") 2>&5
19639 ac_status=$? 20353 ac_status=$?
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; }; then 20355 (exit $ac_status); }; }; then
19642 ac_cv_search_opendir="none required" 20356 ac_cv_search_opendir=$ac_res
19643else 20357else
19644 echo "$as_me: failed program was:" >&5 20358 echo "$as_me: failed program was:" >&5
19645sed 's/^/| /' conftest.$ac_ext >&5 20359sed 's/^/| /' conftest.$ac_ext >&5
19646 20360
19647fi
19648rm -f conftest.err conftest.$ac_objext \
19649 conftest$ac_exeext conftest.$ac_ext
19650if test "$ac_cv_search_opendir" = no; then
19651 for ac_lib in dir; do
19652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19653 cat >conftest.$ac_ext <<_ACEOF
19654/* confdefs.h. */
19655_ACEOF
19656cat confdefs.h >>conftest.$ac_ext
19657cat >>conftest.$ac_ext <<_ACEOF
19658/* end confdefs.h. */
19659 20361
19660/* Override any gcc2 internal prototype to avoid an error. */ 20362fi
19661#ifdef __cplusplus
19662extern "C"
19663#endif
19664/* We use char because int might match the return type of a gcc2
19665 builtin and then its argument prototype would still apply. */
19666char opendir ();
19667int
19668main ()
19669{
19670opendir ();
19671 ;
19672 return 0;
19673}
19674_ACEOF
19675rm -f conftest.$ac_objext conftest$ac_exeext
19676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19677 (eval $ac_link) 2>conftest.er1
19678 ac_status=$?
19679 grep -v '^ *+' conftest.er1 >conftest.err
19680 rm -f conftest.er1
19681 cat conftest.err >&5
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); } &&
19684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686 (eval $ac_try) 2>&5
19687 ac_status=$?
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); }; } &&
19690 { ac_try='test -s conftest$ac_exeext'
19691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692 (eval $ac_try) 2>&5
19693 ac_status=$?
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); }; }; then
19696 ac_cv_search_opendir="-l$ac_lib"
19697break
19698else
19699 echo "$as_me: failed program was:" >&5
19700sed 's/^/| /' conftest.$ac_ext >&5
19701 20363
20364rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20365 conftest$ac_exeext
20366 if test "${ac_cv_search_opendir+set}" = set; then
20367 break
19702fi 20368fi
19703rm -f conftest.err conftest.$ac_objext \ 20369done
19704 conftest$ac_exeext conftest.$ac_ext 20370if test "${ac_cv_search_opendir+set}" = set; then
19705 done 20371 :
20372else
20373 ac_cv_search_opendir=no
19706fi 20374fi
20375rm conftest.$ac_ext
19707LIBS=$ac_func_search_save_LIBS 20376LIBS=$ac_func_search_save_LIBS
19708fi 20377fi
19709echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 20378{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19710echo "${ECHO_T}$ac_cv_search_opendir" >&6 20379echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19711if test "$ac_cv_search_opendir" != no; then 20380ac_res=$ac_cv_search_opendir
19712 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 20381if test "$ac_res" != no; then
20382 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19713 20383
19714fi 20384fi
19715 20385
19716else 20386else
19717 echo "$as_me:$LINENO: checking for library containing opendir" >&5 20387 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19718echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 20388echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19719if test "${ac_cv_search_opendir+set}" = set; then 20389if test "${ac_cv_search_opendir+set}" = set; then
19720 echo $ECHO_N "(cached) $ECHO_C" >&6 20390 echo $ECHO_N "(cached) $ECHO_C" >&6
19721else 20391else
19722 ac_func_search_save_LIBS=$LIBS 20392 ac_func_search_save_LIBS=$LIBS
19723ac_cv_search_opendir=no
19724cat >conftest.$ac_ext <<_ACEOF 20393cat >conftest.$ac_ext <<_ACEOF
19725/* confdefs.h. */ 20394/* confdefs.h. */
19726_ACEOF 20395_ACEOF
@@ -19728,123 +20397,99 @@ cat confdefs.h >>conftest.$ac_ext
19728cat >>conftest.$ac_ext <<_ACEOF 20397cat >>conftest.$ac_ext <<_ACEOF
19729/* end confdefs.h. */ 20398/* end confdefs.h. */
19730 20399
19731/* Override any gcc2 internal prototype to avoid an error. */ 20400/* Override any GCC internal prototype to avoid an error.
20401 Use char because int might match the return type of a GCC
20402 builtin and then its argument prototype would still apply. */
19732#ifdef __cplusplus 20403#ifdef __cplusplus
19733extern "C" 20404extern "C"
19734#endif 20405#endif
19735/* We use char because int might match the return type of a gcc2
19736 builtin and then its argument prototype would still apply. */
19737char opendir (); 20406char opendir ();
19738int 20407int
19739main () 20408main ()
19740{ 20409{
19741opendir (); 20410return opendir ();
19742 ; 20411 ;
19743 return 0; 20412 return 0;
19744} 20413}
19745_ACEOF 20414_ACEOF
19746rm -f conftest.$ac_objext conftest$ac_exeext 20415for ac_lib in '' x; do
19747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20416 if test -z "$ac_lib"; then
19748 (eval $ac_link) 2>conftest.er1 20417 ac_res="none required"
20418 else
20419 ac_res=-l$ac_lib
20420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20421 fi
20422 rm -f conftest.$ac_objext conftest$ac_exeext
20423if { (ac_try="$ac_link"
20424case "(($ac_try" in
20425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426 *) ac_try_echo=$ac_try;;
20427esac
20428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20429 (eval "$ac_link") 2>conftest.er1
19749 ac_status=$? 20430 ac_status=$?
19750 grep -v '^ *+' conftest.er1 >conftest.err 20431 grep -v '^ *+' conftest.er1 >conftest.err
19751 rm -f conftest.er1 20432 rm -f conftest.er1
19752 cat conftest.err >&5 20433 cat conftest.err >&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); } && 20435 (exit $ac_status); } &&
19755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20437 { (case "(($ac_try" in
19757 (eval $ac_try) 2>&5 20438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20439 *) ac_try_echo=$ac_try;;
20440esac
20441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20442 (eval "$ac_try") 2>&5
19758 ac_status=$? 20443 ac_status=$?
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); }; } && 20445 (exit $ac_status); }; } &&
19761 { ac_try='test -s conftest$ac_exeext' 20446 { ac_try='test -s conftest$ac_exeext'
19762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20447 { (case "(($ac_try" in
19763 (eval $ac_try) 2>&5 20448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449 *) ac_try_echo=$ac_try;;
20450esac
20451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452 (eval "$ac_try") 2>&5
19764 ac_status=$? 20453 ac_status=$?
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); }; }; then 20455 (exit $ac_status); }; }; then
19767 ac_cv_search_opendir="none required" 20456 ac_cv_search_opendir=$ac_res
19768else 20457else
19769 echo "$as_me: failed program was:" >&5 20458 echo "$as_me: failed program was:" >&5
19770sed 's/^/| /' conftest.$ac_ext >&5 20459sed 's/^/| /' conftest.$ac_ext >&5
19771 20460
19772fi
19773rm -f conftest.err conftest.$ac_objext \
19774 conftest$ac_exeext conftest.$ac_ext
19775if test "$ac_cv_search_opendir" = no; then
19776 for ac_lib in x; do
19777 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19778 cat >conftest.$ac_ext <<_ACEOF
19779/* confdefs.h. */
19780_ACEOF
19781cat confdefs.h >>conftest.$ac_ext
19782cat >>conftest.$ac_ext <<_ACEOF
19783/* end confdefs.h. */
19784 20461
19785/* Override any gcc2 internal prototype to avoid an error. */ 20462fi
19786#ifdef __cplusplus
19787extern "C"
19788#endif
19789/* We use char because int might match the return type of a gcc2
19790 builtin and then its argument prototype would still apply. */
19791char opendir ();
19792int
19793main ()
19794{
19795opendir ();
19796 ;
19797 return 0;
19798}
19799_ACEOF
19800rm -f conftest.$ac_objext conftest$ac_exeext
19801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19802 (eval $ac_link) 2>conftest.er1
19803 ac_status=$?
19804 grep -v '^ *+' conftest.er1 >conftest.err
19805 rm -f conftest.er1
19806 cat conftest.err >&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } &&
19809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811 (eval $ac_try) 2>&5
19812 ac_status=$?
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; } &&
19815 { ac_try='test -s conftest$ac_exeext'
19816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19817 (eval $ac_try) 2>&5
19818 ac_status=$?
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); }; }; then
19821 ac_cv_search_opendir="-l$ac_lib"
19822break
19823else
19824 echo "$as_me: failed program was:" >&5
19825sed 's/^/| /' conftest.$ac_ext >&5
19826 20463
20464rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20465 conftest$ac_exeext
20466 if test "${ac_cv_search_opendir+set}" = set; then
20467 break
19827fi 20468fi
19828rm -f conftest.err conftest.$ac_objext \ 20469done
19829 conftest$ac_exeext conftest.$ac_ext 20470if test "${ac_cv_search_opendir+set}" = set; then
19830 done 20471 :
20472else
20473 ac_cv_search_opendir=no
19831fi 20474fi
20475rm conftest.$ac_ext
19832LIBS=$ac_func_search_save_LIBS 20476LIBS=$ac_func_search_save_LIBS
19833fi 20477fi
19834echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 20478{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19835echo "${ECHO_T}$ac_cv_search_opendir" >&6 20479echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19836if test "$ac_cv_search_opendir" != no; then 20480ac_res=$ac_cv_search_opendir
19837 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 20481if test "$ac_res" != no; then
20482 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19838 20483
19839fi 20484fi
19840 20485
19841fi 20486fi
19842 20487
19843# Check whether --enable-ltdl-install or --disable-ltdl-install was given. 20488# Check whether --enable-ltdl-install was given.
19844if test "${enable_ltdl_install+set}" = set; then 20489if test "${enable_ltdl_install+set}" = set; then
19845 enableval="$enable_ltdl_install" 20490 enableval=$enable_ltdl_install;
20491fi
19846 20492
19847fi;
19848 20493
19849 20494
19850 20495
@@ -19868,8 +20513,8 @@ fi
19868 20513
19869 20514
19870 20515
19871echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 20516{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
19872echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6 20517echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
19873if test "${libltdl_cv_shlibext+set}" = set; then 20518if test "${libltdl_cv_shlibext+set}" = set; then
19874 echo $ECHO_N "(cached) $ECHO_C" >&6 20519 echo $ECHO_N "(cached) $ECHO_C" >&6
19875else 20520else
@@ -19878,8 +20523,8 @@ module=yes
19878eval libltdl_cv_shlibext=$shrext_cmds 20523eval libltdl_cv_shlibext=$shrext_cmds
19879 20524
19880fi 20525fi
19881echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 20526{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
19882echo "${ECHO_T}$libltdl_cv_shlibext" >&6 20527echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
19883if test -n "$libltdl_cv_shlibext"; then 20528if test -n "$libltdl_cv_shlibext"; then
19884 20529
19885cat >>confdefs.h <<_ACEOF 20530cat >>confdefs.h <<_ACEOF
@@ -19889,15 +20534,15 @@ _ACEOF
19889fi 20534fi
19890 20535
19891 20536
19892echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 20537{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
19893echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6 20538echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
19894if test "${libltdl_cv_shlibpath_var+set}" = set; then 20539if test "${libltdl_cv_shlibpath_var+set}" = set; then
19895 echo $ECHO_N "(cached) $ECHO_C" >&6 20540 echo $ECHO_N "(cached) $ECHO_C" >&6
19896else 20541else
19897 libltdl_cv_shlibpath_var="$shlibpath_var" 20542 libltdl_cv_shlibpath_var="$shlibpath_var"
19898fi 20543fi
19899echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 20544{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
19900echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6 20545echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
19901if test -n "$libltdl_cv_shlibpath_var"; then 20546if test -n "$libltdl_cv_shlibpath_var"; then
19902 20547
19903cat >>confdefs.h <<_ACEOF 20548cat >>confdefs.h <<_ACEOF
@@ -19907,15 +20552,15 @@ _ACEOF
19907fi 20552fi
19908 20553
19909 20554
19910echo "$as_me:$LINENO: checking for the default library search path" >&5 20555{ echo "$as_me:$LINENO: checking for the default library search path" >&5
19911echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6 20556echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
19912if test "${libltdl_cv_sys_search_path+set}" = set; then 20557if test "${libltdl_cv_sys_search_path+set}" = set; then
19913 echo $ECHO_N "(cached) $ECHO_C" >&6 20558 echo $ECHO_N "(cached) $ECHO_C" >&6
19914else 20559else
19915 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" 20560 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
19916fi 20561fi
19917echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 20562{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
19918echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6 20563echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
19919if test -n "$libltdl_cv_sys_search_path"; then 20564if test -n "$libltdl_cv_sys_search_path"; then
19920 sys_search_path= 20565 sys_search_path=
19921 for dir in $libltdl_cv_sys_search_path; do 20566 for dir in $libltdl_cv_sys_search_path; do
@@ -19932,8 +20577,8 @@ _ACEOF
19932 20577
19933fi 20578fi
19934 20579
19935echo "$as_me:$LINENO: checking for objdir" >&5 20580{ echo "$as_me:$LINENO: checking for objdir" >&5
19936echo $ECHO_N "checking for objdir... $ECHO_C" >&6 20581echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
19937if test "${libltdl_cv_objdir+set}" = set; then 20582if test "${libltdl_cv_objdir+set}" = set; then
19938 echo $ECHO_N "(cached) $ECHO_C" >&6 20583 echo $ECHO_N "(cached) $ECHO_C" >&6
19939else 20584else
@@ -19953,8 +20598,8 @@ else
19953 fi 20598 fi
19954 20599
19955fi 20600fi
19956echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 20601{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
19957echo "${ECHO_T}$libltdl_cv_objdir" >&6 20602echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
19958 20603
19959cat >>confdefs.h <<_ACEOF 20604cat >>confdefs.h <<_ACEOF
19960#define LTDL_OBJDIR "$libltdl_cv_objdir/" 20605#define LTDL_OBJDIR "$libltdl_cv_objdir/"
@@ -19962,8 +20607,8 @@ _ACEOF
19962 20607
19963 20608
19964 20609
19965echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 20610{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
19966echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6 20611echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
19967if test "${libltdl_cv_preloaded_symbols+set}" = set; then 20612if test "${libltdl_cv_preloaded_symbols+set}" = set; then
19968 echo $ECHO_N "(cached) $ECHO_C" >&6 20613 echo $ECHO_N "(cached) $ECHO_C" >&6
19969else 20614else
@@ -19974,8 +20619,8 @@ else
19974 fi 20619 fi
19975 20620
19976fi 20621fi
19977echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 20622{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
19978echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6 20623echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
19979if test x"$libltdl_cv_preloaded_symbols" = xyes; then 20624if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19980 20625
19981cat >>confdefs.h <<\_ACEOF 20626cat >>confdefs.h <<\_ACEOF
@@ -19993,8 +20638,8 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
19993ac_compiler_gnu=$ac_cv_c_compiler_gnu 20638ac_compiler_gnu=$ac_cv_c_compiler_gnu
19994 20639
19995 20640
19996echo "$as_me:$LINENO: checking for shl_load" >&5 20641{ echo "$as_me:$LINENO: checking for shl_load" >&5
19997echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 20642echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
19998if test "${ac_cv_func_shl_load+set}" = set; then 20643if test "${ac_cv_func_shl_load+set}" = set; then
19999 echo $ECHO_N "(cached) $ECHO_C" >&6 20644 echo $ECHO_N "(cached) $ECHO_C" >&6
20000else 20645else
@@ -20021,52 +20666,59 @@ cat >>conftest.$ac_ext <<_ACEOF
20021 20666
20022#undef shl_load 20667#undef shl_load
20023 20668
20024/* Override any gcc2 internal prototype to avoid an error. */ 20669/* Override any GCC internal prototype to avoid an error.
20670 Use char because int might match the return type of a GCC
20671 builtin and then its argument prototype would still apply. */
20025#ifdef __cplusplus 20672#ifdef __cplusplus
20026extern "C" 20673extern "C"
20027{
20028#endif 20674#endif
20029/* We use char because int might match the return type of a gcc2
20030 builtin and then its argument prototype would still apply. */
20031char shl_load (); 20675char shl_load ();
20032/* The GNU C library defines this for functions which it implements 20676/* The GNU C library defines this for functions which it implements
20033 to always fail with ENOSYS. Some functions are actually named 20677 to always fail with ENOSYS. Some functions are actually named
20034 something starting with __ and the normal name is an alias. */ 20678 something starting with __ and the normal name is an alias. */
20035#if defined (__stub_shl_load) || defined (__stub___shl_load) 20679#if defined __stub_shl_load || defined __stub___shl_load
20036choke me 20680choke me
20037#else
20038char (*f) () = shl_load;
20039#endif
20040#ifdef __cplusplus
20041}
20042#endif 20681#endif
20043 20682
20044int 20683int
20045main () 20684main ()
20046{ 20685{
20047return f != shl_load; 20686return shl_load ();
20048 ; 20687 ;
20049 return 0; 20688 return 0;
20050} 20689}
20051_ACEOF 20690_ACEOF
20052rm -f conftest.$ac_objext conftest$ac_exeext 20691rm -f conftest.$ac_objext conftest$ac_exeext
20053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20692if { (ac_try="$ac_link"
20054 (eval $ac_link) 2>conftest.er1 20693case "(($ac_try" in
20694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695 *) ac_try_echo=$ac_try;;
20696esac
20697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20698 (eval "$ac_link") 2>conftest.er1
20055 ac_status=$? 20699 ac_status=$?
20056 grep -v '^ *+' conftest.er1 >conftest.err 20700 grep -v '^ *+' conftest.er1 >conftest.err
20057 rm -f conftest.er1 20701 rm -f conftest.er1
20058 cat conftest.err >&5 20702 cat conftest.err >&5
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); } && 20704 (exit $ac_status); } &&
20061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20706 { (case "(($ac_try" in
20063 (eval $ac_try) 2>&5 20707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20708 *) ac_try_echo=$ac_try;;
20709esac
20710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20711 (eval "$ac_try") 2>&5
20064 ac_status=$? 20712 ac_status=$?
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); }; } && 20714 (exit $ac_status); }; } &&
20067 { ac_try='test -s conftest$ac_exeext' 20715 { ac_try='test -s conftest$ac_exeext'
20068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20716 { (case "(($ac_try" in
20069 (eval $ac_try) 2>&5 20717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718 *) ac_try_echo=$ac_try;;
20719esac
20720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721 (eval "$ac_try") 2>&5
20070 ac_status=$? 20722 ac_status=$?
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); }; }; then 20724 (exit $ac_status); }; }; then
@@ -20075,13 +20727,14 @@ else
20075 echo "$as_me: failed program was:" >&5 20727 echo "$as_me: failed program was:" >&5
20076sed 's/^/| /' conftest.$ac_ext >&5 20728sed 's/^/| /' conftest.$ac_ext >&5
20077 20729
20078ac_cv_func_shl_load=no 20730 ac_cv_func_shl_load=no
20079fi 20731fi
20080rm -f conftest.err conftest.$ac_objext \ 20732
20733rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20081 conftest$ac_exeext conftest.$ac_ext 20734 conftest$ac_exeext conftest.$ac_ext
20082fi 20735fi
20083echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 20736{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20084echo "${ECHO_T}$ac_cv_func_shl_load" >&6 20737echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
20085if test $ac_cv_func_shl_load = yes; then 20738if test $ac_cv_func_shl_load = yes; then
20086 20739
20087cat >>confdefs.h <<\_ACEOF 20740cat >>confdefs.h <<\_ACEOF
@@ -20089,8 +20742,8 @@ cat >>confdefs.h <<\_ACEOF
20089_ACEOF 20742_ACEOF
20090 20743
20091else 20744else
20092 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 20745 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20093echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 20746echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
20094if test "${ac_cv_lib_dld_shl_load+set}" = set; then 20747if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20095 echo $ECHO_N "(cached) $ECHO_C" >&6 20748 echo $ECHO_N "(cached) $ECHO_C" >&6
20096else 20749else
@@ -20103,39 +20756,52 @@ cat confdefs.h >>conftest.$ac_ext
20103cat >>conftest.$ac_ext <<_ACEOF 20756cat >>conftest.$ac_ext <<_ACEOF
20104/* end confdefs.h. */ 20757/* end confdefs.h. */
20105 20758
20106/* Override any gcc2 internal prototype to avoid an error. */ 20759/* Override any GCC internal prototype to avoid an error.
20760 Use char because int might match the return type of a GCC
20761 builtin and then its argument prototype would still apply. */
20107#ifdef __cplusplus 20762#ifdef __cplusplus
20108extern "C" 20763extern "C"
20109#endif 20764#endif
20110/* We use char because int might match the return type of a gcc2
20111 builtin and then its argument prototype would still apply. */
20112char shl_load (); 20765char shl_load ();
20113int 20766int
20114main () 20767main ()
20115{ 20768{
20116shl_load (); 20769return shl_load ();
20117 ; 20770 ;
20118 return 0; 20771 return 0;
20119} 20772}
20120_ACEOF 20773_ACEOF
20121rm -f conftest.$ac_objext conftest$ac_exeext 20774rm -f conftest.$ac_objext conftest$ac_exeext
20122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20775if { (ac_try="$ac_link"
20123 (eval $ac_link) 2>conftest.er1 20776case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20779esac
20780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_link") 2>conftest.er1
20124 ac_status=$? 20782 ac_status=$?
20125 grep -v '^ *+' conftest.er1 >conftest.err 20783 grep -v '^ *+' conftest.er1 >conftest.err
20126 rm -f conftest.er1 20784 rm -f conftest.er1
20127 cat conftest.err >&5 20785 cat conftest.err >&5
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); } && 20787 (exit $ac_status); } &&
20130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20789 { (case "(($ac_try" in
20132 (eval $ac_try) 2>&5 20790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20791 *) ac_try_echo=$ac_try;;
20792esac
20793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20794 (eval "$ac_try") 2>&5
20133 ac_status=$? 20795 ac_status=$?
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); }; } && 20797 (exit $ac_status); }; } &&
20136 { ac_try='test -s conftest$ac_exeext' 20798 { ac_try='test -s conftest$ac_exeext'
20137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20799 { (case "(($ac_try" in
20138 (eval $ac_try) 2>&5 20800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20801 *) ac_try_echo=$ac_try;;
20802esac
20803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20804 (eval "$ac_try") 2>&5
20139 ac_status=$? 20805 ac_status=$?
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); }; }; then 20807 (exit $ac_status); }; }; then
@@ -20144,14 +20810,15 @@ else
20144 echo "$as_me: failed program was:" >&5 20810 echo "$as_me: failed program was:" >&5
20145sed 's/^/| /' conftest.$ac_ext >&5 20811sed 's/^/| /' conftest.$ac_ext >&5
20146 20812
20147ac_cv_lib_dld_shl_load=no 20813 ac_cv_lib_dld_shl_load=no
20148fi 20814fi
20149rm -f conftest.err conftest.$ac_objext \ 20815
20816rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20150 conftest$ac_exeext conftest.$ac_ext 20817 conftest$ac_exeext conftest.$ac_ext
20151LIBS=$ac_check_lib_save_LIBS 20818LIBS=$ac_check_lib_save_LIBS
20152fi 20819fi
20153echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 20820{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20154echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 20821echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
20155if test $ac_cv_lib_dld_shl_load = yes; then 20822if test $ac_cv_lib_dld_shl_load = yes; then
20156 20823
20157cat >>confdefs.h <<\_ACEOF 20824cat >>confdefs.h <<\_ACEOF
@@ -20160,8 +20827,8 @@ _ACEOF
20160 20827
20161 LIBADD_DL="$LIBADD_DL -ldld" 20828 LIBADD_DL="$LIBADD_DL -ldld"
20162else 20829else
20163 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 20830 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20164echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 20831echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20165if test "${ac_cv_lib_dl_dlopen+set}" = set; then 20832if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20166 echo $ECHO_N "(cached) $ECHO_C" >&6 20833 echo $ECHO_N "(cached) $ECHO_C" >&6
20167else 20834else
@@ -20174,39 +20841,52 @@ cat confdefs.h >>conftest.$ac_ext
20174cat >>conftest.$ac_ext <<_ACEOF 20841cat >>conftest.$ac_ext <<_ACEOF
20175/* end confdefs.h. */ 20842/* end confdefs.h. */
20176 20843
20177/* Override any gcc2 internal prototype to avoid an error. */ 20844/* Override any GCC internal prototype to avoid an error.
20845 Use char because int might match the return type of a GCC
20846 builtin and then its argument prototype would still apply. */
20178#ifdef __cplusplus 20847#ifdef __cplusplus
20179extern "C" 20848extern "C"
20180#endif 20849#endif
20181/* We use char because int might match the return type of a gcc2
20182 builtin and then its argument prototype would still apply. */
20183char dlopen (); 20850char dlopen ();
20184int 20851int
20185main () 20852main ()
20186{ 20853{
20187dlopen (); 20854return dlopen ();
20188 ; 20855 ;
20189 return 0; 20856 return 0;
20190} 20857}
20191_ACEOF 20858_ACEOF
20192rm -f conftest.$ac_objext conftest$ac_exeext 20859rm -f conftest.$ac_objext conftest$ac_exeext
20193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20860if { (ac_try="$ac_link"
20194 (eval $ac_link) 2>conftest.er1 20861case "(($ac_try" in
20862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863 *) ac_try_echo=$ac_try;;
20864esac
20865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866 (eval "$ac_link") 2>conftest.er1
20195 ac_status=$? 20867 ac_status=$?
20196 grep -v '^ *+' conftest.er1 >conftest.err 20868 grep -v '^ *+' conftest.er1 >conftest.err
20197 rm -f conftest.er1 20869 rm -f conftest.er1
20198 cat conftest.err >&5 20870 cat conftest.err >&5
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } && 20872 (exit $ac_status); } &&
20201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20874 { (case "(($ac_try" in
20203 (eval $ac_try) 2>&5 20875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20876 *) ac_try_echo=$ac_try;;
20877esac
20878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20879 (eval "$ac_try") 2>&5
20204 ac_status=$? 20880 ac_status=$?
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; } && 20882 (exit $ac_status); }; } &&
20207 { ac_try='test -s conftest$ac_exeext' 20883 { ac_try='test -s conftest$ac_exeext'
20208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20884 { (case "(($ac_try" in
20209 (eval $ac_try) 2>&5 20885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20886 *) ac_try_echo=$ac_try;;
20887esac
20888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20889 (eval "$ac_try") 2>&5
20210 ac_status=$? 20890 ac_status=$?
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; }; then 20892 (exit $ac_status); }; }; then
@@ -20215,14 +20895,15 @@ else
20215 echo "$as_me: failed program was:" >&5 20895 echo "$as_me: failed program was:" >&5
20216sed 's/^/| /' conftest.$ac_ext >&5 20896sed 's/^/| /' conftest.$ac_ext >&5
20217 20897
20218ac_cv_lib_dl_dlopen=no 20898 ac_cv_lib_dl_dlopen=no
20219fi 20899fi
20220rm -f conftest.err conftest.$ac_objext \ 20900
20901rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20221 conftest$ac_exeext conftest.$ac_ext 20902 conftest$ac_exeext conftest.$ac_ext
20222LIBS=$ac_check_lib_save_LIBS 20903LIBS=$ac_check_lib_save_LIBS
20223fi 20904fi
20224echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 20905{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20225echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 20906echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20226if test $ac_cv_lib_dl_dlopen = yes; then 20907if test $ac_cv_lib_dl_dlopen = yes; then
20227 20908
20228cat >>confdefs.h <<\_ACEOF 20909cat >>confdefs.h <<\_ACEOF
@@ -20250,23 +20931,36 @@ dlopen(0, 0);
20250} 20931}
20251_ACEOF 20932_ACEOF
20252rm -f conftest.$ac_objext conftest$ac_exeext 20933rm -f conftest.$ac_objext conftest$ac_exeext
20253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20934if { (ac_try="$ac_link"
20254 (eval $ac_link) 2>conftest.er1 20935case "(($ac_try" in
20936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20937 *) ac_try_echo=$ac_try;;
20938esac
20939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20940 (eval "$ac_link") 2>conftest.er1
20255 ac_status=$? 20941 ac_status=$?
20256 grep -v '^ *+' conftest.er1 >conftest.err 20942 grep -v '^ *+' conftest.er1 >conftest.err
20257 rm -f conftest.er1 20943 rm -f conftest.er1
20258 cat conftest.err >&5 20944 cat conftest.err >&5
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); } && 20946 (exit $ac_status); } &&
20261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20948 { (case "(($ac_try" in
20263 (eval $ac_try) 2>&5 20949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20950 *) ac_try_echo=$ac_try;;
20951esac
20952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20953 (eval "$ac_try") 2>&5
20264 ac_status=$? 20954 ac_status=$?
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); }; } && 20956 (exit $ac_status); }; } &&
20267 { ac_try='test -s conftest$ac_exeext' 20957 { ac_try='test -s conftest$ac_exeext'
20268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20958 { (case "(($ac_try" in
20269 (eval $ac_try) 2>&5 20959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20960 *) ac_try_echo=$ac_try;;
20961esac
20962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20963 (eval "$ac_try") 2>&5
20270 ac_status=$? 20964 ac_status=$?
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); }; }; then 20966 (exit $ac_status); }; }; then
@@ -20279,8 +20973,8 @@ else
20279 echo "$as_me: failed program was:" >&5 20973 echo "$as_me: failed program was:" >&5
20280sed 's/^/| /' conftest.$ac_ext >&5 20974sed 's/^/| /' conftest.$ac_ext >&5
20281 20975
20282echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 20976 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20283echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 20977echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
20284if test "${ac_cv_lib_svld_dlopen+set}" = set; then 20978if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20285 echo $ECHO_N "(cached) $ECHO_C" >&6 20979 echo $ECHO_N "(cached) $ECHO_C" >&6
20286else 20980else
@@ -20293,39 +20987,52 @@ cat confdefs.h >>conftest.$ac_ext
20293cat >>conftest.$ac_ext <<_ACEOF 20987cat >>conftest.$ac_ext <<_ACEOF
20294/* end confdefs.h. */ 20988/* end confdefs.h. */
20295 20989
20296/* Override any gcc2 internal prototype to avoid an error. */ 20990/* Override any GCC internal prototype to avoid an error.
20991 Use char because int might match the return type of a GCC
20992 builtin and then its argument prototype would still apply. */
20297#ifdef __cplusplus 20993#ifdef __cplusplus
20298extern "C" 20994extern "C"
20299#endif 20995#endif
20300/* We use char because int might match the return type of a gcc2
20301 builtin and then its argument prototype would still apply. */
20302char dlopen (); 20996char dlopen ();
20303int 20997int
20304main () 20998main ()
20305{ 20999{
20306dlopen (); 21000return dlopen ();
20307 ; 21001 ;
20308 return 0; 21002 return 0;
20309} 21003}
20310_ACEOF 21004_ACEOF
20311rm -f conftest.$ac_objext conftest$ac_exeext 21005rm -f conftest.$ac_objext conftest$ac_exeext
20312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21006if { (ac_try="$ac_link"
20313 (eval $ac_link) 2>conftest.er1 21007case "(($ac_try" in
21008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009 *) ac_try_echo=$ac_try;;
21010esac
21011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21012 (eval "$ac_link") 2>conftest.er1
20314 ac_status=$? 21013 ac_status=$?
20315 grep -v '^ *+' conftest.er1 >conftest.err 21014 grep -v '^ *+' conftest.er1 >conftest.err
20316 rm -f conftest.er1 21015 rm -f conftest.er1
20317 cat conftest.err >&5 21016 cat conftest.err >&5
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); } && 21018 (exit $ac_status); } &&
20320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21020 { (case "(($ac_try" in
20322 (eval $ac_try) 2>&5 21021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022 *) ac_try_echo=$ac_try;;
21023esac
21024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025 (eval "$ac_try") 2>&5
20323 ac_status=$? 21026 ac_status=$?
20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); }; } && 21028 (exit $ac_status); }; } &&
20326 { ac_try='test -s conftest$ac_exeext' 21029 { ac_try='test -s conftest$ac_exeext'
20327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21030 { (case "(($ac_try" in
20328 (eval $ac_try) 2>&5 21031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032 *) ac_try_echo=$ac_try;;
21033esac
21034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035 (eval "$ac_try") 2>&5
20329 ac_status=$? 21036 ac_status=$?
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); }; }; then 21038 (exit $ac_status); }; }; then
@@ -20334,14 +21041,15 @@ else
20334 echo "$as_me: failed program was:" >&5 21041 echo "$as_me: failed program was:" >&5
20335sed 's/^/| /' conftest.$ac_ext >&5 21042sed 's/^/| /' conftest.$ac_ext >&5
20336 21043
20337ac_cv_lib_svld_dlopen=no 21044 ac_cv_lib_svld_dlopen=no
20338fi 21045fi
20339rm -f conftest.err conftest.$ac_objext \ 21046
21047rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20340 conftest$ac_exeext conftest.$ac_ext 21048 conftest$ac_exeext conftest.$ac_ext
20341LIBS=$ac_check_lib_save_LIBS 21049LIBS=$ac_check_lib_save_LIBS
20342fi 21050fi
20343echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 21051{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20344echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 21052echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
20345if test $ac_cv_lib_svld_dlopen = yes; then 21053if test $ac_cv_lib_svld_dlopen = yes; then
20346 21054
20347cat >>confdefs.h <<\_ACEOF 21055cat >>confdefs.h <<\_ACEOF
@@ -20350,8 +21058,8 @@ _ACEOF
20350 21058
20351 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" 21059 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20352else 21060else
20353 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 21061 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20354echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 21062echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
20355if test "${ac_cv_lib_dld_dld_link+set}" = set; then 21063if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20356 echo $ECHO_N "(cached) $ECHO_C" >&6 21064 echo $ECHO_N "(cached) $ECHO_C" >&6
20357else 21065else
@@ -20364,39 +21072,52 @@ cat confdefs.h >>conftest.$ac_ext
20364cat >>conftest.$ac_ext <<_ACEOF 21072cat >>conftest.$ac_ext <<_ACEOF
20365/* end confdefs.h. */ 21073/* end confdefs.h. */
20366 21074
20367/* Override any gcc2 internal prototype to avoid an error. */ 21075/* Override any GCC internal prototype to avoid an error.
21076 Use char because int might match the return type of a GCC
21077 builtin and then its argument prototype would still apply. */
20368#ifdef __cplusplus 21078#ifdef __cplusplus
20369extern "C" 21079extern "C"
20370#endif 21080#endif
20371/* We use char because int might match the return type of a gcc2
20372 builtin and then its argument prototype would still apply. */
20373char dld_link (); 21081char dld_link ();
20374int 21082int
20375main () 21083main ()
20376{ 21084{
20377dld_link (); 21085return dld_link ();
20378 ; 21086 ;
20379 return 0; 21087 return 0;
20380} 21088}
20381_ACEOF 21089_ACEOF
20382rm -f conftest.$ac_objext conftest$ac_exeext 21090rm -f conftest.$ac_objext conftest$ac_exeext
20383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21091if { (ac_try="$ac_link"
20384 (eval $ac_link) 2>conftest.er1 21092case "(($ac_try" in
21093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21094 *) ac_try_echo=$ac_try;;
21095esac
21096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21097 (eval "$ac_link") 2>conftest.er1
20385 ac_status=$? 21098 ac_status=$?
20386 grep -v '^ *+' conftest.er1 >conftest.err 21099 grep -v '^ *+' conftest.er1 >conftest.err
20387 rm -f conftest.er1 21100 rm -f conftest.er1
20388 cat conftest.err >&5 21101 cat conftest.err >&5
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); } && 21103 (exit $ac_status); } &&
20391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21105 { (case "(($ac_try" in
20393 (eval $ac_try) 2>&5 21106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21107 *) ac_try_echo=$ac_try;;
21108esac
21109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21110 (eval "$ac_try") 2>&5
20394 ac_status=$? 21111 ac_status=$?
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); }; } && 21113 (exit $ac_status); }; } &&
20397 { ac_try='test -s conftest$ac_exeext' 21114 { ac_try='test -s conftest$ac_exeext'
20398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21115 { (case "(($ac_try" in
20399 (eval $ac_try) 2>&5 21116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21117 *) ac_try_echo=$ac_try;;
21118esac
21119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21120 (eval "$ac_try") 2>&5
20400 ac_status=$? 21121 ac_status=$?
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); }; }; then 21123 (exit $ac_status); }; }; then
@@ -20405,14 +21126,15 @@ else
20405 echo "$as_me: failed program was:" >&5 21126 echo "$as_me: failed program was:" >&5
20406sed 's/^/| /' conftest.$ac_ext >&5 21127sed 's/^/| /' conftest.$ac_ext >&5
20407 21128
20408ac_cv_lib_dld_dld_link=no 21129 ac_cv_lib_dld_dld_link=no
20409fi 21130fi
20410rm -f conftest.err conftest.$ac_objext \ 21131
21132rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20411 conftest$ac_exeext conftest.$ac_ext 21133 conftest$ac_exeext conftest.$ac_ext
20412LIBS=$ac_check_lib_save_LIBS 21134LIBS=$ac_check_lib_save_LIBS
20413fi 21135fi
20414echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 21136{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20415echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 21137echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
20416if test $ac_cv_lib_dld_dld_link = yes; then 21138if test $ac_cv_lib_dld_dld_link = yes; then
20417 21139
20418cat >>confdefs.h <<\_ACEOF 21140cat >>confdefs.h <<\_ACEOF
@@ -20421,8 +21143,8 @@ _ACEOF
20421 21143
20422 LIBADD_DL="$LIBADD_DL -ldld" 21144 LIBADD_DL="$LIBADD_DL -ldld"
20423else 21145else
20424 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 21146 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
20425echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6 21147echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
20426if test "${ac_cv_func__dyld_func_lookup+set}" = set; then 21148if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20427 echo $ECHO_N "(cached) $ECHO_C" >&6 21149 echo $ECHO_N "(cached) $ECHO_C" >&6
20428else 21150else
@@ -20449,52 +21171,59 @@ cat >>conftest.$ac_ext <<_ACEOF
20449 21171
20450#undef _dyld_func_lookup 21172#undef _dyld_func_lookup
20451 21173
20452/* Override any gcc2 internal prototype to avoid an error. */ 21174/* Override any GCC internal prototype to avoid an error.
21175 Use char because int might match the return type of a GCC
21176 builtin and then its argument prototype would still apply. */
20453#ifdef __cplusplus 21177#ifdef __cplusplus
20454extern "C" 21178extern "C"
20455{
20456#endif 21179#endif
20457/* We use char because int might match the return type of a gcc2
20458 builtin and then its argument prototype would still apply. */
20459char _dyld_func_lookup (); 21180char _dyld_func_lookup ();
20460/* The GNU C library defines this for functions which it implements 21181/* The GNU C library defines this for functions which it implements
20461 to always fail with ENOSYS. Some functions are actually named 21182 to always fail with ENOSYS. Some functions are actually named
20462 something starting with __ and the normal name is an alias. */ 21183 something starting with __ and the normal name is an alias. */
20463#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup) 21184#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
20464choke me 21185choke me
20465#else
20466char (*f) () = _dyld_func_lookup;
20467#endif
20468#ifdef __cplusplus
20469}
20470#endif 21186#endif
20471 21187
20472int 21188int
20473main () 21189main ()
20474{ 21190{
20475return f != _dyld_func_lookup; 21191return _dyld_func_lookup ();
20476 ; 21192 ;
20477 return 0; 21193 return 0;
20478} 21194}
20479_ACEOF 21195_ACEOF
20480rm -f conftest.$ac_objext conftest$ac_exeext 21196rm -f conftest.$ac_objext conftest$ac_exeext
20481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21197if { (ac_try="$ac_link"
20482 (eval $ac_link) 2>conftest.er1 21198case "(($ac_try" in
21199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21200 *) ac_try_echo=$ac_try;;
21201esac
21202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21203 (eval "$ac_link") 2>conftest.er1
20483 ac_status=$? 21204 ac_status=$?
20484 grep -v '^ *+' conftest.er1 >conftest.err 21205 grep -v '^ *+' conftest.er1 >conftest.err
20485 rm -f conftest.er1 21206 rm -f conftest.er1
20486 cat conftest.err >&5 21207 cat conftest.err >&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); } && 21209 (exit $ac_status); } &&
20489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21211 { (case "(($ac_try" in
20491 (eval $ac_try) 2>&5 21212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21213 *) ac_try_echo=$ac_try;;
21214esac
21215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21216 (eval "$ac_try") 2>&5
20492 ac_status=$? 21217 ac_status=$?
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); }; } && 21219 (exit $ac_status); }; } &&
20495 { ac_try='test -s conftest$ac_exeext' 21220 { ac_try='test -s conftest$ac_exeext'
20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21221 { (case "(($ac_try" in
20497 (eval $ac_try) 2>&5 21222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21223 *) ac_try_echo=$ac_try;;
21224esac
21225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21226 (eval "$ac_try") 2>&5
20498 ac_status=$? 21227 ac_status=$?
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; }; then 21229 (exit $ac_status); }; }; then
@@ -20503,13 +21232,14 @@ else
20503 echo "$as_me: failed program was:" >&5 21232 echo "$as_me: failed program was:" >&5
20504sed 's/^/| /' conftest.$ac_ext >&5 21233sed 's/^/| /' conftest.$ac_ext >&5
20505 21234
20506ac_cv_func__dyld_func_lookup=no 21235 ac_cv_func__dyld_func_lookup=no
20507fi 21236fi
20508rm -f conftest.err conftest.$ac_objext \ 21237
21238rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20509 conftest$ac_exeext conftest.$ac_ext 21239 conftest$ac_exeext conftest.$ac_ext
20510fi 21240fi
20511echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 21241{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20512echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6 21242echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
20513if test $ac_cv_func__dyld_func_lookup = yes; then 21243if test $ac_cv_func__dyld_func_lookup = yes; then
20514 21244
20515cat >>confdefs.h <<\_ACEOF 21245cat >>confdefs.h <<\_ACEOF
@@ -20526,7 +21256,8 @@ fi
20526 21256
20527 21257
20528fi 21258fi
20529rm -f conftest.err conftest.$ac_objext \ 21259
21260rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20530 conftest$ac_exeext conftest.$ac_ext 21261 conftest$ac_exeext conftest.$ac_ext
20531 21262
20532fi 21263fi
@@ -20546,9 +21277,9 @@ then
20546for ac_func in dlerror 21277for ac_func in dlerror
20547do 21278do
20548as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21279as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20549echo "$as_me:$LINENO: checking for $ac_func" >&5 21280{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20550echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 21281echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20551if eval "test \"\${$as_ac_var+set}\" = set"; then 21282if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20552 echo $ECHO_N "(cached) $ECHO_C" >&6 21283 echo $ECHO_N "(cached) $ECHO_C" >&6
20553else 21284else
20554 cat >conftest.$ac_ext <<_ACEOF 21285 cat >conftest.$ac_ext <<_ACEOF
@@ -20574,52 +21305,59 @@ cat >>conftest.$ac_ext <<_ACEOF
20574 21305
20575#undef $ac_func 21306#undef $ac_func
20576 21307
20577/* Override any gcc2 internal prototype to avoid an error. */ 21308/* Override any GCC internal prototype to avoid an error.
21309 Use char because int might match the return type of a GCC
21310 builtin and then its argument prototype would still apply. */
20578#ifdef __cplusplus 21311#ifdef __cplusplus
20579extern "C" 21312extern "C"
20580{
20581#endif 21313#endif
20582/* We use char because int might match the return type of a gcc2
20583 builtin and then its argument prototype would still apply. */
20584char $ac_func (); 21314char $ac_func ();
20585/* The GNU C library defines this for functions which it implements 21315/* The GNU C library defines this for functions which it implements
20586 to always fail with ENOSYS. Some functions are actually named 21316 to always fail with ENOSYS. Some functions are actually named
20587 something starting with __ and the normal name is an alias. */ 21317 something starting with __ and the normal name is an alias. */
20588#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21318#if defined __stub_$ac_func || defined __stub___$ac_func
20589choke me 21319choke me
20590#else
20591char (*f) () = $ac_func;
20592#endif
20593#ifdef __cplusplus
20594}
20595#endif 21320#endif
20596 21321
20597int 21322int
20598main () 21323main ()
20599{ 21324{
20600return f != $ac_func; 21325return $ac_func ();
20601 ; 21326 ;
20602 return 0; 21327 return 0;
20603} 21328}
20604_ACEOF 21329_ACEOF
20605rm -f conftest.$ac_objext conftest$ac_exeext 21330rm -f conftest.$ac_objext conftest$ac_exeext
20606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21331if { (ac_try="$ac_link"
20607 (eval $ac_link) 2>conftest.er1 21332case "(($ac_try" in
21333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21334 *) ac_try_echo=$ac_try;;
21335esac
21336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21337 (eval "$ac_link") 2>conftest.er1
20608 ac_status=$? 21338 ac_status=$?
20609 grep -v '^ *+' conftest.er1 >conftest.err 21339 grep -v '^ *+' conftest.er1 >conftest.err
20610 rm -f conftest.er1 21340 rm -f conftest.er1
20611 cat conftest.err >&5 21341 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } && 21343 (exit $ac_status); } &&
20614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21345 { (case "(($ac_try" in
20616 (eval $ac_try) 2>&5 21346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21347 *) ac_try_echo=$ac_try;;
21348esac
21349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21350 (eval "$ac_try") 2>&5
20617 ac_status=$? 21351 ac_status=$?
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); }; } && 21353 (exit $ac_status); }; } &&
20620 { ac_try='test -s conftest$ac_exeext' 21354 { ac_try='test -s conftest$ac_exeext'
20621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21355 { (case "(($ac_try" in
20622 (eval $ac_try) 2>&5 21356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21357 *) ac_try_echo=$ac_try;;
21358esac
21359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21360 (eval "$ac_try") 2>&5
20623 ac_status=$? 21361 ac_status=$?
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); }; }; then 21363 (exit $ac_status); }; }; then
@@ -20628,13 +21366,15 @@ else
20628 echo "$as_me: failed program was:" >&5 21366 echo "$as_me: failed program was:" >&5
20629sed 's/^/| /' conftest.$ac_ext >&5 21367sed 's/^/| /' conftest.$ac_ext >&5
20630 21368
20631eval "$as_ac_var=no" 21369 eval "$as_ac_var=no"
20632fi 21370fi
20633rm -f conftest.err conftest.$ac_objext \ 21371
21372rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20634 conftest$ac_exeext conftest.$ac_ext 21373 conftest$ac_exeext conftest.$ac_ext
20635fi 21374fi
20636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 21375ac_res=`eval echo '${'$as_ac_var'}'`
20637echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 21376 { echo "$as_me:$LINENO: result: $ac_res" >&5
21377echo "${ECHO_T}$ac_res" >&6; }
20638if test `eval echo '${'$as_ac_var'}'` = yes; then 21378if test `eval echo '${'$as_ac_var'}'` = yes; then
20639 cat >>confdefs.h <<_ACEOF 21379 cat >>confdefs.h <<_ACEOF
20640#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21380#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
@@ -20653,8 +21393,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
20653 21393
20654 21394
20655 21395
20656echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 21396{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20657echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6 21397echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
20658if test "${ac_cv_sys_symbol_underscore+set}" = set; then 21398if test "${ac_cv_sys_symbol_underscore+set}" = set; then
20659 echo $ECHO_N "(cached) $ECHO_C" >&6 21399 echo $ECHO_N "(cached) $ECHO_C" >&6
20660else 21400else
@@ -20695,15 +21435,15 @@ EOF
20695 rm -rf conftest* 21435 rm -rf conftest*
20696 21436
20697fi 21437fi
20698echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 21438{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
20699echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6 21439echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
20700 21440
20701 21441
20702if test x"$ac_cv_sys_symbol_underscore" = xyes; then 21442if test x"$ac_cv_sys_symbol_underscore" = xyes; then
20703 if test x"$libltdl_cv_func_dlopen" = xyes || 21443 if test x"$libltdl_cv_func_dlopen" = xyes ||
20704 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then 21444 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20705 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 21445 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20706echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6 21446echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
20707if test "${libltdl_cv_need_uscore+set}" = set; then 21447if test "${libltdl_cv_need_uscore+set}" = set; then
20708 echo $ECHO_N "(cached) $ECHO_C" >&6 21448 echo $ECHO_N "(cached) $ECHO_C" >&6
20709else 21449else
@@ -20716,7 +21456,7 @@ else
20716 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 21456 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20717 lt_status=$lt_dlunknown 21457 lt_status=$lt_dlunknown
20718 cat > conftest.$ac_ext <<EOF 21458 cat > conftest.$ac_ext <<EOF
20719#line 20719 "configure" 21459#line 21459 "configure"
20720#include "confdefs.h" 21460#include "confdefs.h"
20721 21461
20722#if HAVE_DLFCN_H 21462#if HAVE_DLFCN_H
@@ -20773,6 +21513,8 @@ int main ()
20773 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 21513 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20774 /* dlclose (self); */ 21514 /* dlclose (self); */
20775 } 21515 }
21516 else
21517 puts (dlerror ());
20776 21518
20777 exit (status); 21519 exit (status);
20778} 21520}
@@ -20782,12 +21524,12 @@ EOF
20782 ac_status=$? 21524 ac_status=$?
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 21526 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20785 (./conftest; exit; ) 2>/dev/null 21527 (./conftest; exit; ) >&5 2>/dev/null
20786 lt_status=$? 21528 lt_status=$?
20787 case x$lt_status in 21529 case x$lt_status in
20788 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; 21530 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20789 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; 21531 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20790 x$lt_unknown|x*) ;; 21532 x$lt_dlunknown|x*) ;;
20791 esac 21533 esac
20792 else : 21534 else :
20793 # compilation failed 21535 # compilation failed
@@ -20799,8 +21541,8 @@ rm -fr conftest*
20799 LIBS="$save_LIBS" 21541 LIBS="$save_LIBS"
20800 21542
20801fi 21543fi
20802echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 21544{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
20803echo "${ECHO_T}$libltdl_cv_need_uscore" >&6 21545echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
20804 fi 21546 fi
20805fi 21547fi
20806 21548
@@ -20813,8 +21555,8 @@ _ACEOF
20813fi 21555fi
20814 21556
20815 21557
20816echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 21558{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
20817echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6 21559echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
20818if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then 21560if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
20819 echo $ECHO_N "(cached) $ECHO_C" >&6 21561 echo $ECHO_N "(cached) $ECHO_C" >&6
20820else 21562else
@@ -20837,13 +21579,16 @@ else
20837 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 21579 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20838 libltdl_cv_sys_dlopen_deplibs=yes 21580 libltdl_cv_sys_dlopen_deplibs=yes
20839 ;; 21581 ;;
20840 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) 21582 gnu* | linux* | k*bsd*-gnu)
20841 # GNU and its variants, using gnu ld.so (Glibc) 21583 # GNU and its variants, using gnu ld.so (Glibc)
20842 libltdl_cv_sys_dlopen_deplibs=yes 21584 libltdl_cv_sys_dlopen_deplibs=yes
20843 ;; 21585 ;;
20844 hpux10*|hpux11*) 21586 hpux10*|hpux11*)
20845 libltdl_cv_sys_dlopen_deplibs=yes 21587 libltdl_cv_sys_dlopen_deplibs=yes
20846 ;; 21588 ;;
21589 interix*)
21590 libltdl_cv_sys_dlopen_deplibs=yes
21591 ;;
20847 irix[12345]*|irix6.[01]*) 21592 irix[12345]*|irix6.[01]*)
20848 # Catch all versions of IRIX before 6.2, and indicate that we don't 21593 # Catch all versions of IRIX before 6.2, and indicate that we don't
20849 # know how it worked for any of those versions. 21594 # know how it worked for any of those versions.
@@ -20885,11 +21630,14 @@ else
20885 solaris*) 21630 solaris*)
20886 libltdl_cv_sys_dlopen_deplibs=yes 21631 libltdl_cv_sys_dlopen_deplibs=yes
20887 ;; 21632 ;;
21633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21634 libltdl_cv_sys_dlopen_deplibs=yes
21635 ;;
20888 esac 21636 esac
20889 21637
20890fi 21638fi
20891echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 21639{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
20892echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6 21640echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
20893if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then 21641if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
20894 21642
20895cat >>confdefs.h <<\_ACEOF 21643cat >>confdefs.h <<\_ACEOF
@@ -20902,18 +21650,19 @@ fi
20902for ac_header in argz.h 21650for ac_header in argz.h
20903do 21651do
20904as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21652as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20905if eval "test \"\${$as_ac_Header+set}\" = set"; then 21653if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20906 echo "$as_me:$LINENO: checking for $ac_header" >&5 21654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21655echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20908if eval "test \"\${$as_ac_Header+set}\" = set"; then 21656if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20909 echo $ECHO_N "(cached) $ECHO_C" >&6 21657 echo $ECHO_N "(cached) $ECHO_C" >&6
20910fi 21658fi
20911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21659ac_res=`eval echo '${'$as_ac_Header'}'`
20912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21660 { echo "$as_me:$LINENO: result: $ac_res" >&5
21661echo "${ECHO_T}$ac_res" >&6; }
20913else 21662else
20914 # Is the header compilable? 21663 # Is the header compilable?
20915echo "$as_me:$LINENO: checking $ac_header usability" >&5 21664{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20916echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 21665echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20917cat >conftest.$ac_ext <<_ACEOF 21666cat >conftest.$ac_ext <<_ACEOF
20918/* confdefs.h. */ 21667/* confdefs.h. */
20919_ACEOF 21668_ACEOF
@@ -20924,23 +21673,36 @@ $ac_includes_default
20924#include <$ac_header> 21673#include <$ac_header>
20925_ACEOF 21674_ACEOF
20926rm -f conftest.$ac_objext 21675rm -f conftest.$ac_objext
20927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21676if { (ac_try="$ac_compile"
20928 (eval $ac_compile) 2>conftest.er1 21677case "(($ac_try" in
21678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21679 *) ac_try_echo=$ac_try;;
21680esac
21681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21682 (eval "$ac_compile") 2>conftest.er1
20929 ac_status=$? 21683 ac_status=$?
20930 grep -v '^ *+' conftest.er1 >conftest.err 21684 grep -v '^ *+' conftest.er1 >conftest.err
20931 rm -f conftest.er1 21685 rm -f conftest.er1
20932 cat conftest.err >&5 21686 cat conftest.err >&5
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); } && 21688 (exit $ac_status); } &&
20935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21690 { (case "(($ac_try" in
20937 (eval $ac_try) 2>&5 21691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21692 *) ac_try_echo=$ac_try;;
21693esac
21694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21695 (eval "$ac_try") 2>&5
20938 ac_status=$? 21696 ac_status=$?
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); }; } && 21698 (exit $ac_status); }; } &&
20941 { ac_try='test -s conftest.$ac_objext' 21699 { ac_try='test -s conftest.$ac_objext'
20942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21700 { (case "(($ac_try" in
20943 (eval $ac_try) 2>&5 21701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21702 *) ac_try_echo=$ac_try;;
21703esac
21704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21705 (eval "$ac_try") 2>&5
20944 ac_status=$? 21706 ac_status=$?
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); }; }; then 21708 (exit $ac_status); }; }; then
@@ -20949,15 +21711,16 @@ else
20949 echo "$as_me: failed program was:" >&5 21711 echo "$as_me: failed program was:" >&5
20950sed 's/^/| /' conftest.$ac_ext >&5 21712sed 's/^/| /' conftest.$ac_ext >&5
20951 21713
20952ac_header_compiler=no 21714 ac_header_compiler=no
20953fi 21715fi
20954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21716
20955echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20956echo "${ECHO_T}$ac_header_compiler" >&6 21718{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21719echo "${ECHO_T}$ac_header_compiler" >&6; }
20957 21720
20958# Is the header present? 21721# Is the header present?
20959echo "$as_me:$LINENO: checking $ac_header presence" >&5 21722{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20960echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 21723echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20961cat >conftest.$ac_ext <<_ACEOF 21724cat >conftest.$ac_ext <<_ACEOF
20962/* confdefs.h. */ 21725/* confdefs.h. */
20963_ACEOF 21726_ACEOF
@@ -20966,8 +21729,13 @@ cat >>conftest.$ac_ext <<_ACEOF
20966/* end confdefs.h. */ 21729/* end confdefs.h. */
20967#include <$ac_header> 21730#include <$ac_header>
20968_ACEOF 21731_ACEOF
20969if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21732if { (ac_try="$ac_cpp conftest.$ac_ext"
20970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21733case "(($ac_try" in
21734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21735 *) ac_try_echo=$ac_try;;
21736esac
21737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20971 ac_status=$? 21739 ac_status=$?
20972 grep -v '^ *+' conftest.er1 >conftest.err 21740 grep -v '^ *+' conftest.er1 >conftest.err
20973 rm -f conftest.er1 21741 rm -f conftest.er1
@@ -20991,9 +21759,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
20991 21759
20992 ac_header_preproc=no 21760 ac_header_preproc=no
20993fi 21761fi
21762
20994rm -f conftest.err conftest.$ac_ext 21763rm -f conftest.err conftest.$ac_ext
20995echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21764{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20996echo "${ECHO_T}$ac_header_preproc" >&6 21765echo "${ECHO_T}$ac_header_preproc" >&6; }
20997 21766
20998# So? What about this header? 21767# So? What about this header?
20999case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21768case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
@@ -21017,25 +21786,24 @@ echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\
21017echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21786echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21787 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21019echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21788echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21020 ( 21789 ( cat <<\_ASBOX
21021 cat <<\_ASBOX
21022## ---------------------------------- ## 21790## ---------------------------------- ##
21023## Report this to bug-libtool@gnu.org ## 21791## Report this to bug-libtool@gnu.org ##
21024## ---------------------------------- ## 21792## ---------------------------------- ##
21025_ASBOX 21793_ASBOX
21026 ) | 21794 ) | sed "s/^/$as_me: WARNING: /" >&2
21027 sed "s/^/$as_me: WARNING: /" >&2
21028 ;; 21795 ;;
21029esac 21796esac
21030echo "$as_me:$LINENO: checking for $ac_header" >&5 21797{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21032if eval "test \"\${$as_ac_Header+set}\" = set"; then 21799if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21033 echo $ECHO_N "(cached) $ECHO_C" >&6 21800 echo $ECHO_N "(cached) $ECHO_C" >&6
21034else 21801else
21035 eval "$as_ac_Header=\$ac_header_preproc" 21802 eval "$as_ac_Header=\$ac_header_preproc"
21036fi 21803fi
21037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21804ac_res=`eval echo '${'$as_ac_Header'}'`
21038echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21805 { echo "$as_me:$LINENO: result: $ac_res" >&5
21806echo "${ECHO_T}$ac_res" >&6; }
21039 21807
21040fi 21808fi
21041if test `eval echo '${'$as_ac_Header'}'` = yes; then 21809if test `eval echo '${'$as_ac_Header'}'` = yes; then
@@ -21048,8 +21816,8 @@ fi
21048done 21816done
21049 21817
21050 21818
21051echo "$as_me:$LINENO: checking for error_t" >&5 21819{ echo "$as_me:$LINENO: checking for error_t" >&5
21052echo $ECHO_N "checking for error_t... $ECHO_C" >&6 21820echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
21053if test "${ac_cv_type_error_t+set}" = set; then 21821if test "${ac_cv_type_error_t+set}" = set; then
21054 echo $ECHO_N "(cached) $ECHO_C" >&6 21822 echo $ECHO_N "(cached) $ECHO_C" >&6
21055else 21823else
@@ -21063,35 +21831,49 @@ cat >>conftest.$ac_ext <<_ACEOF
21063# include <argz.h> 21831# include <argz.h>
21064#endif 21832#endif
21065 21833
21834typedef error_t ac__type_new_;
21066int 21835int
21067main () 21836main ()
21068{ 21837{
21069if ((error_t *) 0) 21838if ((ac__type_new_ *) 0)
21070 return 0; 21839 return 0;
21071if (sizeof (error_t)) 21840if (sizeof (ac__type_new_))
21072 return 0; 21841 return 0;
21073 ; 21842 ;
21074 return 0; 21843 return 0;
21075} 21844}
21076_ACEOF 21845_ACEOF
21077rm -f conftest.$ac_objext 21846rm -f conftest.$ac_objext
21078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21847if { (ac_try="$ac_compile"
21079 (eval $ac_compile) 2>conftest.er1 21848case "(($ac_try" in
21849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21850 *) ac_try_echo=$ac_try;;
21851esac
21852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21853 (eval "$ac_compile") 2>conftest.er1
21080 ac_status=$? 21854 ac_status=$?
21081 grep -v '^ *+' conftest.er1 >conftest.err 21855 grep -v '^ *+' conftest.er1 >conftest.err
21082 rm -f conftest.er1 21856 rm -f conftest.er1
21083 cat conftest.err >&5 21857 cat conftest.err >&5
21084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); } && 21859 (exit $ac_status); } &&
21086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21861 { (case "(($ac_try" in
21088 (eval $ac_try) 2>&5 21862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21863 *) ac_try_echo=$ac_try;;
21864esac
21865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21866 (eval "$ac_try") 2>&5
21089 ac_status=$? 21867 ac_status=$?
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; } && 21869 (exit $ac_status); }; } &&
21092 { ac_try='test -s conftest.$ac_objext' 21870 { ac_try='test -s conftest.$ac_objext'
21093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21871 { (case "(($ac_try" in
21094 (eval $ac_try) 2>&5 21872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21873 *) ac_try_echo=$ac_try;;
21874esac
21875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21876 (eval "$ac_try") 2>&5
21095 ac_status=$? 21877 ac_status=$?
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; }; then 21879 (exit $ac_status); }; }; then
@@ -21100,12 +21882,13 @@ else
21100 echo "$as_me: failed program was:" >&5 21882 echo "$as_me: failed program was:" >&5
21101sed 's/^/| /' conftest.$ac_ext >&5 21883sed 's/^/| /' conftest.$ac_ext >&5
21102 21884
21103ac_cv_type_error_t=no 21885 ac_cv_type_error_t=no
21104fi 21886fi
21105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21887
21888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21106fi 21889fi
21107echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 21890{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
21108echo "${ECHO_T}$ac_cv_type_error_t" >&6 21891echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
21109if test $ac_cv_type_error_t = yes; then 21892if test $ac_cv_type_error_t = yes; then
21110 21893
21111cat >>confdefs.h <<_ACEOF 21894cat >>confdefs.h <<_ACEOF
@@ -21130,9 +21913,9 @@ fi
21130for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify 21913for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21131do 21914do
21132as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21915as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21133echo "$as_me:$LINENO: checking for $ac_func" >&5 21916{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21134echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 21917echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21135if eval "test \"\${$as_ac_var+set}\" = set"; then 21918if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21136 echo $ECHO_N "(cached) $ECHO_C" >&6 21919 echo $ECHO_N "(cached) $ECHO_C" >&6
21137else 21920else
21138 cat >conftest.$ac_ext <<_ACEOF 21921 cat >conftest.$ac_ext <<_ACEOF
@@ -21158,52 +21941,59 @@ cat >>conftest.$ac_ext <<_ACEOF
21158 21941
21159#undef $ac_func 21942#undef $ac_func
21160 21943
21161/* Override any gcc2 internal prototype to avoid an error. */ 21944/* Override any GCC internal prototype to avoid an error.
21945 Use char because int might match the return type of a GCC
21946 builtin and then its argument prototype would still apply. */
21162#ifdef __cplusplus 21947#ifdef __cplusplus
21163extern "C" 21948extern "C"
21164{
21165#endif 21949#endif
21166/* We use char because int might match the return type of a gcc2
21167 builtin and then its argument prototype would still apply. */
21168char $ac_func (); 21950char $ac_func ();
21169/* The GNU C library defines this for functions which it implements 21951/* The GNU C library defines this for functions which it implements
21170 to always fail with ENOSYS. Some functions are actually named 21952 to always fail with ENOSYS. Some functions are actually named
21171 something starting with __ and the normal name is an alias. */ 21953 something starting with __ and the normal name is an alias. */
21172#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21954#if defined __stub_$ac_func || defined __stub___$ac_func
21173choke me 21955choke me
21174#else
21175char (*f) () = $ac_func;
21176#endif
21177#ifdef __cplusplus
21178}
21179#endif 21956#endif
21180 21957
21181int 21958int
21182main () 21959main ()
21183{ 21960{
21184return f != $ac_func; 21961return $ac_func ();
21185 ; 21962 ;
21186 return 0; 21963 return 0;
21187} 21964}
21188_ACEOF 21965_ACEOF
21189rm -f conftest.$ac_objext conftest$ac_exeext 21966rm -f conftest.$ac_objext conftest$ac_exeext
21190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21967if { (ac_try="$ac_link"
21191 (eval $ac_link) 2>conftest.er1 21968case "(($ac_try" in
21969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970 *) ac_try_echo=$ac_try;;
21971esac
21972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21973 (eval "$ac_link") 2>conftest.er1
21192 ac_status=$? 21974 ac_status=$?
21193 grep -v '^ *+' conftest.er1 >conftest.err 21975 grep -v '^ *+' conftest.er1 >conftest.err
21194 rm -f conftest.er1 21976 rm -f conftest.er1
21195 cat conftest.err >&5 21977 cat conftest.err >&5
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); } && 21979 (exit $ac_status); } &&
21198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21981 { (case "(($ac_try" in
21200 (eval $ac_try) 2>&5 21982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983 *) ac_try_echo=$ac_try;;
21984esac
21985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21986 (eval "$ac_try") 2>&5
21201 ac_status=$? 21987 ac_status=$?
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); }; } && 21989 (exit $ac_status); }; } &&
21204 { ac_try='test -s conftest$ac_exeext' 21990 { ac_try='test -s conftest$ac_exeext'
21205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21991 { (case "(($ac_try" in
21206 (eval $ac_try) 2>&5 21992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21993 *) ac_try_echo=$ac_try;;
21994esac
21995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21996 (eval "$ac_try") 2>&5
21207 ac_status=$? 21997 ac_status=$?
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); }; }; then 21999 (exit $ac_status); }; }; then
@@ -21212,13 +22002,15 @@ else
21212 echo "$as_me: failed program was:" >&5 22002 echo "$as_me: failed program was:" >&5
21213sed 's/^/| /' conftest.$ac_ext >&5 22003sed 's/^/| /' conftest.$ac_ext >&5
21214 22004
21215eval "$as_ac_var=no" 22005 eval "$as_ac_var=no"
21216fi 22006fi
21217rm -f conftest.err conftest.$ac_objext \ 22007
22008rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21218 conftest$ac_exeext conftest.$ac_ext 22009 conftest$ac_exeext conftest.$ac_ext
21219fi 22010fi
21220echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 22011ac_res=`eval echo '${'$as_ac_var'}'`
21221echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 22012 { echo "$as_me:$LINENO: result: $ac_res" >&5
22013echo "${ECHO_T}$ac_res" >&6; }
21222if test `eval echo '${'$as_ac_var'}'` = yes; then 22014if test `eval echo '${'$as_ac_var'}'` = yes; then
21223 cat >>confdefs.h <<_ACEOF 22015 cat >>confdefs.h <<_ACEOF
21224#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22016#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
@@ -21258,18 +22050,19 @@ for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21258 stdio.h unistd.h 22050 stdio.h unistd.h
21259do 22051do
21260as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 22052as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21261if eval "test \"\${$as_ac_Header+set}\" = set"; then 22053if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21262 echo "$as_me:$LINENO: checking for $ac_header" >&5 22054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21263echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 22055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21264if eval "test \"\${$as_ac_Header+set}\" = set"; then 22056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21265 echo $ECHO_N "(cached) $ECHO_C" >&6 22057 echo $ECHO_N "(cached) $ECHO_C" >&6
21266fi 22058fi
21267echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 22059ac_res=`eval echo '${'$as_ac_Header'}'`
21268echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 22060 { echo "$as_me:$LINENO: result: $ac_res" >&5
22061echo "${ECHO_T}$ac_res" >&6; }
21269else 22062else
21270 # Is the header compilable? 22063 # Is the header compilable?
21271echo "$as_me:$LINENO: checking $ac_header usability" >&5 22064{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21272echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 22065echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21273cat >conftest.$ac_ext <<_ACEOF 22066cat >conftest.$ac_ext <<_ACEOF
21274/* confdefs.h. */ 22067/* confdefs.h. */
21275_ACEOF 22068_ACEOF
@@ -21280,23 +22073,36 @@ $ac_includes_default
21280#include <$ac_header> 22073#include <$ac_header>
21281_ACEOF 22074_ACEOF
21282rm -f conftest.$ac_objext 22075rm -f conftest.$ac_objext
21283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22076if { (ac_try="$ac_compile"
21284 (eval $ac_compile) 2>conftest.er1 22077case "(($ac_try" in
22078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22079 *) ac_try_echo=$ac_try;;
22080esac
22081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22082 (eval "$ac_compile") 2>conftest.er1
21285 ac_status=$? 22083 ac_status=$?
21286 grep -v '^ *+' conftest.er1 >conftest.err 22084 grep -v '^ *+' conftest.er1 >conftest.err
21287 rm -f conftest.er1 22085 rm -f conftest.er1
21288 cat conftest.err >&5 22086 cat conftest.err >&5
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); } && 22088 (exit $ac_status); } &&
21291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22090 { (case "(($ac_try" in
21293 (eval $ac_try) 2>&5 22091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22092 *) ac_try_echo=$ac_try;;
22093esac
22094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22095 (eval "$ac_try") 2>&5
21294 ac_status=$? 22096 ac_status=$?
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); }; } && 22098 (exit $ac_status); }; } &&
21297 { ac_try='test -s conftest.$ac_objext' 22099 { ac_try='test -s conftest.$ac_objext'
21298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22100 { (case "(($ac_try" in
21299 (eval $ac_try) 2>&5 22101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102 *) ac_try_echo=$ac_try;;
22103esac
22104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105 (eval "$ac_try") 2>&5
21300 ac_status=$? 22106 ac_status=$?
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); }; }; then 22108 (exit $ac_status); }; }; then
@@ -21305,15 +22111,16 @@ else
21305 echo "$as_me: failed program was:" >&5 22111 echo "$as_me: failed program was:" >&5
21306sed 's/^/| /' conftest.$ac_ext >&5 22112sed 's/^/| /' conftest.$ac_ext >&5
21307 22113
21308ac_header_compiler=no 22114 ac_header_compiler=no
21309fi 22115fi
21310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22116
21311echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 22117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21312echo "${ECHO_T}$ac_header_compiler" >&6 22118{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22119echo "${ECHO_T}$ac_header_compiler" >&6; }
21313 22120
21314# Is the header present? 22121# Is the header present?
21315echo "$as_me:$LINENO: checking $ac_header presence" >&5 22122{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21316echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 22123echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21317cat >conftest.$ac_ext <<_ACEOF 22124cat >conftest.$ac_ext <<_ACEOF
21318/* confdefs.h. */ 22125/* confdefs.h. */
21319_ACEOF 22126_ACEOF
@@ -21322,8 +22129,13 @@ cat >>conftest.$ac_ext <<_ACEOF
21322/* end confdefs.h. */ 22129/* end confdefs.h. */
21323#include <$ac_header> 22130#include <$ac_header>
21324_ACEOF 22131_ACEOF
21325if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 22132if { (ac_try="$ac_cpp conftest.$ac_ext"
21326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 22133case "(($ac_try" in
22134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22135 *) ac_try_echo=$ac_try;;
22136esac
22137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21327 ac_status=$? 22139 ac_status=$?
21328 grep -v '^ *+' conftest.er1 >conftest.err 22140 grep -v '^ *+' conftest.er1 >conftest.err
21329 rm -f conftest.er1 22141 rm -f conftest.er1
@@ -21347,9 +22159,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
21347 22159
21348 ac_header_preproc=no 22160 ac_header_preproc=no
21349fi 22161fi
22162
21350rm -f conftest.err conftest.$ac_ext 22163rm -f conftest.err conftest.$ac_ext
21351echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22164{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21352echo "${ECHO_T}$ac_header_preproc" >&6 22165echo "${ECHO_T}$ac_header_preproc" >&6; }
21353 22166
21354# So? What about this header? 22167# So? What about this header?
21355case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22168case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
@@ -21373,25 +22186,24 @@ echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\
21373echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 22186echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21374 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 22187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21375echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 22188echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21376 ( 22189 ( cat <<\_ASBOX
21377 cat <<\_ASBOX
21378## ---------------------------------- ## 22190## ---------------------------------- ##
21379## Report this to bug-libtool@gnu.org ## 22191## Report this to bug-libtool@gnu.org ##
21380## ---------------------------------- ## 22192## ---------------------------------- ##
21381_ASBOX 22193_ASBOX
21382 ) | 22194 ) | sed "s/^/$as_me: WARNING: /" >&2
21383 sed "s/^/$as_me: WARNING: /" >&2
21384 ;; 22195 ;;
21385esac 22196esac
21386echo "$as_me:$LINENO: checking for $ac_header" >&5 22197{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 22198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21388if eval "test \"\${$as_ac_Header+set}\" = set"; then 22199if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21389 echo $ECHO_N "(cached) $ECHO_C" >&6 22200 echo $ECHO_N "(cached) $ECHO_C" >&6
21390else 22201else
21391 eval "$as_ac_Header=\$ac_header_preproc" 22202 eval "$as_ac_Header=\$ac_header_preproc"
21392fi 22203fi
21393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 22204ac_res=`eval echo '${'$as_ac_Header'}'`
21394echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 22205 { echo "$as_me:$LINENO: result: $ac_res" >&5
22206echo "${ECHO_T}$ac_res" >&6; }
21395 22207
21396fi 22208fi
21397if test `eval echo '${'$as_ac_Header'}'` = yes; then 22209if test `eval echo '${'$as_ac_Header'}'` = yes; then
@@ -21410,18 +22222,19 @@ done
21410for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h 22222for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
21411do 22223do
21412as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 22224as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21413if eval "test \"\${$as_ac_Header+set}\" = set"; then 22225if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21414 echo "$as_me:$LINENO: checking for $ac_header" >&5 22226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 22227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21416if eval "test \"\${$as_ac_Header+set}\" = set"; then 22228if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21417 echo $ECHO_N "(cached) $ECHO_C" >&6 22229 echo $ECHO_N "(cached) $ECHO_C" >&6
21418fi 22230fi
21419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 22231ac_res=`eval echo '${'$as_ac_Header'}'`
21420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 22232 { echo "$as_me:$LINENO: result: $ac_res" >&5
22233echo "${ECHO_T}$ac_res" >&6; }
21421else 22234else
21422 # Is the header compilable? 22235 # Is the header compilable?
21423echo "$as_me:$LINENO: checking $ac_header usability" >&5 22236{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21424echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 22237echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21425cat >conftest.$ac_ext <<_ACEOF 22238cat >conftest.$ac_ext <<_ACEOF
21426/* confdefs.h. */ 22239/* confdefs.h. */
21427_ACEOF 22240_ACEOF
@@ -21432,23 +22245,36 @@ $ac_includes_default
21432#include <$ac_header> 22245#include <$ac_header>
21433_ACEOF 22246_ACEOF
21434rm -f conftest.$ac_objext 22247rm -f conftest.$ac_objext
21435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22248if { (ac_try="$ac_compile"
21436 (eval $ac_compile) 2>conftest.er1 22249case "(($ac_try" in
22250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22251 *) ac_try_echo=$ac_try;;
22252esac
22253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22254 (eval "$ac_compile") 2>conftest.er1
21437 ac_status=$? 22255 ac_status=$?
21438 grep -v '^ *+' conftest.er1 >conftest.err 22256 grep -v '^ *+' conftest.er1 >conftest.err
21439 rm -f conftest.er1 22257 rm -f conftest.er1
21440 cat conftest.err >&5 22258 cat conftest.err >&5
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); } && 22260 (exit $ac_status); } &&
21443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22262 { (case "(($ac_try" in
21445 (eval $ac_try) 2>&5 22263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22264 *) ac_try_echo=$ac_try;;
22265esac
22266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22267 (eval "$ac_try") 2>&5
21446 ac_status=$? 22268 ac_status=$?
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); }; } && 22270 (exit $ac_status); }; } &&
21449 { ac_try='test -s conftest.$ac_objext' 22271 { ac_try='test -s conftest.$ac_objext'
21450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22272 { (case "(($ac_try" in
21451 (eval $ac_try) 2>&5 22273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274 *) ac_try_echo=$ac_try;;
22275esac
22276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277 (eval "$ac_try") 2>&5
21452 ac_status=$? 22278 ac_status=$?
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); }; }; then 22280 (exit $ac_status); }; }; then
@@ -21457,15 +22283,16 @@ else
21457 echo "$as_me: failed program was:" >&5 22283 echo "$as_me: failed program was:" >&5
21458sed 's/^/| /' conftest.$ac_ext >&5 22284sed 's/^/| /' conftest.$ac_ext >&5
21459 22285
21460ac_header_compiler=no 22286 ac_header_compiler=no
21461fi 22287fi
21462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22288
21463echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 22289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21464echo "${ECHO_T}$ac_header_compiler" >&6 22290{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22291echo "${ECHO_T}$ac_header_compiler" >&6; }
21465 22292
21466# Is the header present? 22293# Is the header present?
21467echo "$as_me:$LINENO: checking $ac_header presence" >&5 22294{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21468echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 22295echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21469cat >conftest.$ac_ext <<_ACEOF 22296cat >conftest.$ac_ext <<_ACEOF
21470/* confdefs.h. */ 22297/* confdefs.h. */
21471_ACEOF 22298_ACEOF
@@ -21474,8 +22301,13 @@ cat >>conftest.$ac_ext <<_ACEOF
21474/* end confdefs.h. */ 22301/* end confdefs.h. */
21475#include <$ac_header> 22302#include <$ac_header>
21476_ACEOF 22303_ACEOF
21477if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 22304if { (ac_try="$ac_cpp conftest.$ac_ext"
21478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 22305case "(($ac_try" in
22306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22307 *) ac_try_echo=$ac_try;;
22308esac
22309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21479 ac_status=$? 22311 ac_status=$?
21480 grep -v '^ *+' conftest.er1 >conftest.err 22312 grep -v '^ *+' conftest.er1 >conftest.err
21481 rm -f conftest.er1 22313 rm -f conftest.er1
@@ -21499,9 +22331,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
21499 22331
21500 ac_header_preproc=no 22332 ac_header_preproc=no
21501fi 22333fi
22334
21502rm -f conftest.err conftest.$ac_ext 22335rm -f conftest.err conftest.$ac_ext
21503echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22336{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21504echo "${ECHO_T}$ac_header_preproc" >&6 22337echo "${ECHO_T}$ac_header_preproc" >&6; }
21505 22338
21506# So? What about this header? 22339# So? What about this header?
21507case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22340case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
@@ -21525,25 +22358,24 @@ echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\
21525echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 22358echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 22359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21527echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 22360echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21528 ( 22361 ( cat <<\_ASBOX
21529 cat <<\_ASBOX
21530## ---------------------------------- ## 22362## ---------------------------------- ##
21531## Report this to bug-libtool@gnu.org ## 22363## Report this to bug-libtool@gnu.org ##
21532## ---------------------------------- ## 22364## ---------------------------------- ##
21533_ASBOX 22365_ASBOX
21534 ) | 22366 ) | sed "s/^/$as_me: WARNING: /" >&2
21535 sed "s/^/$as_me: WARNING: /" >&2
21536 ;; 22367 ;;
21537esac 22368esac
21538echo "$as_me:$LINENO: checking for $ac_header" >&5 22369{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 22370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21540if eval "test \"\${$as_ac_Header+set}\" = set"; then 22371if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21541 echo $ECHO_N "(cached) $ECHO_C" >&6 22372 echo $ECHO_N "(cached) $ECHO_C" >&6
21542else 22373else
21543 eval "$as_ac_Header=\$ac_header_preproc" 22374 eval "$as_ac_Header=\$ac_header_preproc"
21544fi 22375fi
21545echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 22376ac_res=`eval echo '${'$as_ac_Header'}'`
21546echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 22377 { echo "$as_me:$LINENO: result: $ac_res" >&5
22378echo "${ECHO_T}$ac_res" >&6; }
21547 22379
21548fi 22380fi
21549if test `eval echo '${'$as_ac_Header'}'` = yes; then 22381if test `eval echo '${'$as_ac_Header'}'` = yes; then
@@ -21560,18 +22392,19 @@ done
21560for ac_header in string.h strings.h 22392for ac_header in string.h strings.h
21561do 22393do
21562as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 22394as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21563if eval "test \"\${$as_ac_Header+set}\" = set"; then 22395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21564 echo "$as_me:$LINENO: checking for $ac_header" >&5 22396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 22397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21566if eval "test \"\${$as_ac_Header+set}\" = set"; then 22398if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21567 echo $ECHO_N "(cached) $ECHO_C" >&6 22399 echo $ECHO_N "(cached) $ECHO_C" >&6
21568fi 22400fi
21569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 22401ac_res=`eval echo '${'$as_ac_Header'}'`
21570echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 22402 { echo "$as_me:$LINENO: result: $ac_res" >&5
22403echo "${ECHO_T}$ac_res" >&6; }
21571else 22404else
21572 # Is the header compilable? 22405 # Is the header compilable?
21573echo "$as_me:$LINENO: checking $ac_header usability" >&5 22406{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21574echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 22407echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21575cat >conftest.$ac_ext <<_ACEOF 22408cat >conftest.$ac_ext <<_ACEOF
21576/* confdefs.h. */ 22409/* confdefs.h. */
21577_ACEOF 22410_ACEOF
@@ -21582,23 +22415,36 @@ $ac_includes_default
21582#include <$ac_header> 22415#include <$ac_header>
21583_ACEOF 22416_ACEOF
21584rm -f conftest.$ac_objext 22417rm -f conftest.$ac_objext
21585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22418if { (ac_try="$ac_compile"
21586 (eval $ac_compile) 2>conftest.er1 22419case "(($ac_try" in
22420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22421 *) ac_try_echo=$ac_try;;
22422esac
22423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22424 (eval "$ac_compile") 2>conftest.er1
21587 ac_status=$? 22425 ac_status=$?
21588 grep -v '^ *+' conftest.er1 >conftest.err 22426 grep -v '^ *+' conftest.er1 >conftest.err
21589 rm -f conftest.er1 22427 rm -f conftest.er1
21590 cat conftest.err >&5 22428 cat conftest.err >&5
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); } && 22430 (exit $ac_status); } &&
21593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22432 { (case "(($ac_try" in
21595 (eval $ac_try) 2>&5 22433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22434 *) ac_try_echo=$ac_try;;
22435esac
22436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22437 (eval "$ac_try") 2>&5
21596 ac_status=$? 22438 ac_status=$?
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); }; } && 22440 (exit $ac_status); }; } &&
21599 { ac_try='test -s conftest.$ac_objext' 22441 { ac_try='test -s conftest.$ac_objext'
21600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22442 { (case "(($ac_try" in
21601 (eval $ac_try) 2>&5 22443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22444 *) ac_try_echo=$ac_try;;
22445esac
22446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22447 (eval "$ac_try") 2>&5
21602 ac_status=$? 22448 ac_status=$?
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); }; }; then 22450 (exit $ac_status); }; }; then
@@ -21607,15 +22453,16 @@ else
21607 echo "$as_me: failed program was:" >&5 22453 echo "$as_me: failed program was:" >&5
21608sed 's/^/| /' conftest.$ac_ext >&5 22454sed 's/^/| /' conftest.$ac_ext >&5
21609 22455
21610ac_header_compiler=no 22456 ac_header_compiler=no
21611fi 22457fi
21612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22458
21613echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 22459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21614echo "${ECHO_T}$ac_header_compiler" >&6 22460{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22461echo "${ECHO_T}$ac_header_compiler" >&6; }
21615 22462
21616# Is the header present? 22463# Is the header present?
21617echo "$as_me:$LINENO: checking $ac_header presence" >&5 22464{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21618echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 22465echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21619cat >conftest.$ac_ext <<_ACEOF 22466cat >conftest.$ac_ext <<_ACEOF
21620/* confdefs.h. */ 22467/* confdefs.h. */
21621_ACEOF 22468_ACEOF
@@ -21624,8 +22471,13 @@ cat >>conftest.$ac_ext <<_ACEOF
21624/* end confdefs.h. */ 22471/* end confdefs.h. */
21625#include <$ac_header> 22472#include <$ac_header>
21626_ACEOF 22473_ACEOF
21627if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 22474if { (ac_try="$ac_cpp conftest.$ac_ext"
21628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 22475case "(($ac_try" in
22476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22477 *) ac_try_echo=$ac_try;;
22478esac
22479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21629 ac_status=$? 22481 ac_status=$?
21630 grep -v '^ *+' conftest.er1 >conftest.err 22482 grep -v '^ *+' conftest.er1 >conftest.err
21631 rm -f conftest.er1 22483 rm -f conftest.er1
@@ -21649,9 +22501,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
21649 22501
21650 ac_header_preproc=no 22502 ac_header_preproc=no
21651fi 22503fi
22504
21652rm -f conftest.err conftest.$ac_ext 22505rm -f conftest.err conftest.$ac_ext
21653echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22506{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21654echo "${ECHO_T}$ac_header_preproc" >&6 22507echo "${ECHO_T}$ac_header_preproc" >&6; }
21655 22508
21656# So? What about this header? 22509# So? What about this header?
21657case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22510case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
@@ -21675,25 +22528,24 @@ echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\
21675echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 22528echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21676 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 22529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21677echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 22530echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21678 ( 22531 ( cat <<\_ASBOX
21679 cat <<\_ASBOX
21680## ---------------------------------- ## 22532## ---------------------------------- ##
21681## Report this to bug-libtool@gnu.org ## 22533## Report this to bug-libtool@gnu.org ##
21682## ---------------------------------- ## 22534## ---------------------------------- ##
21683_ASBOX 22535_ASBOX
21684 ) | 22536 ) | sed "s/^/$as_me: WARNING: /" >&2
21685 sed "s/^/$as_me: WARNING: /" >&2
21686 ;; 22537 ;;
21687esac 22538esac
21688echo "$as_me:$LINENO: checking for $ac_header" >&5 22539{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21689echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 22540echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21690if eval "test \"\${$as_ac_Header+set}\" = set"; then 22541if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21691 echo $ECHO_N "(cached) $ECHO_C" >&6 22542 echo $ECHO_N "(cached) $ECHO_C" >&6
21692else 22543else
21693 eval "$as_ac_Header=\$ac_header_preproc" 22544 eval "$as_ac_Header=\$ac_header_preproc"
21694fi 22545fi
21695echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 22546ac_res=`eval echo '${'$as_ac_Header'}'`
21696echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 22547 { echo "$as_me:$LINENO: result: $ac_res" >&5
22548echo "${ECHO_T}$ac_res" >&6; }
21697 22549
21698fi 22550fi
21699if test `eval echo '${'$as_ac_Header'}'` = yes; then 22551if test `eval echo '${'$as_ac_Header'}'` = yes; then
@@ -21711,9 +22563,9 @@ done
21711for ac_func in strchr index 22563for ac_func in strchr index
21712do 22564do
21713as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22565as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21714echo "$as_me:$LINENO: checking for $ac_func" >&5 22566{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21715echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 22567echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21716if eval "test \"\${$as_ac_var+set}\" = set"; then 22568if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21717 echo $ECHO_N "(cached) $ECHO_C" >&6 22569 echo $ECHO_N "(cached) $ECHO_C" >&6
21718else 22570else
21719 cat >conftest.$ac_ext <<_ACEOF 22571 cat >conftest.$ac_ext <<_ACEOF
@@ -21739,52 +22591,59 @@ cat >>conftest.$ac_ext <<_ACEOF
21739 22591
21740#undef $ac_func 22592#undef $ac_func
21741 22593
21742/* Override any gcc2 internal prototype to avoid an error. */ 22594/* Override any GCC internal prototype to avoid an error.
22595 Use char because int might match the return type of a GCC
22596 builtin and then its argument prototype would still apply. */
21743#ifdef __cplusplus 22597#ifdef __cplusplus
21744extern "C" 22598extern "C"
21745{
21746#endif 22599#endif
21747/* We use char because int might match the return type of a gcc2
21748 builtin and then its argument prototype would still apply. */
21749char $ac_func (); 22600char $ac_func ();
21750/* The GNU C library defines this for functions which it implements 22601/* The GNU C library defines this for functions which it implements
21751 to always fail with ENOSYS. Some functions are actually named 22602 to always fail with ENOSYS. Some functions are actually named
21752 something starting with __ and the normal name is an alias. */ 22603 something starting with __ and the normal name is an alias. */
21753#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 22604#if defined __stub_$ac_func || defined __stub___$ac_func
21754choke me 22605choke me
21755#else
21756char (*f) () = $ac_func;
21757#endif
21758#ifdef __cplusplus
21759}
21760#endif 22606#endif
21761 22607
21762int 22608int
21763main () 22609main ()
21764{ 22610{
21765return f != $ac_func; 22611return $ac_func ();
21766 ; 22612 ;
21767 return 0; 22613 return 0;
21768} 22614}
21769_ACEOF 22615_ACEOF
21770rm -f conftest.$ac_objext conftest$ac_exeext 22616rm -f conftest.$ac_objext conftest$ac_exeext
21771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22617if { (ac_try="$ac_link"
21772 (eval $ac_link) 2>conftest.er1 22618case "(($ac_try" in
22619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22620 *) ac_try_echo=$ac_try;;
22621esac
22622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22623 (eval "$ac_link") 2>conftest.er1
21773 ac_status=$? 22624 ac_status=$?
21774 grep -v '^ *+' conftest.er1 >conftest.err 22625 grep -v '^ *+' conftest.er1 >conftest.err
21775 rm -f conftest.er1 22626 rm -f conftest.er1
21776 cat conftest.err >&5 22627 cat conftest.err >&5
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); } && 22629 (exit $ac_status); } &&
21779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22631 { (case "(($ac_try" in
21781 (eval $ac_try) 2>&5 22632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22633 *) ac_try_echo=$ac_try;;
22634esac
22635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22636 (eval "$ac_try") 2>&5
21782 ac_status=$? 22637 ac_status=$?
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); }; } && 22639 (exit $ac_status); }; } &&
21785 { ac_try='test -s conftest$ac_exeext' 22640 { ac_try='test -s conftest$ac_exeext'
21786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22641 { (case "(($ac_try" in
21787 (eval $ac_try) 2>&5 22642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22643 *) ac_try_echo=$ac_try;;
22644esac
22645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22646 (eval "$ac_try") 2>&5
21788 ac_status=$? 22647 ac_status=$?
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); }; }; then 22649 (exit $ac_status); }; }; then
@@ -21793,13 +22652,15 @@ else
21793 echo "$as_me: failed program was:" >&5 22652 echo "$as_me: failed program was:" >&5
21794sed 's/^/| /' conftest.$ac_ext >&5 22653sed 's/^/| /' conftest.$ac_ext >&5
21795 22654
21796eval "$as_ac_var=no" 22655 eval "$as_ac_var=no"
21797fi 22656fi
21798rm -f conftest.err conftest.$ac_objext \ 22657
22658rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21799 conftest$ac_exeext conftest.$ac_ext 22659 conftest$ac_exeext conftest.$ac_ext
21800fi 22660fi
21801echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 22661ac_res=`eval echo '${'$as_ac_var'}'`
21802echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 22662 { echo "$as_me:$LINENO: result: $ac_res" >&5
22663echo "${ECHO_T}$ac_res" >&6; }
21803if test `eval echo '${'$as_ac_var'}'` = yes; then 22664if test `eval echo '${'$as_ac_var'}'` = yes; then
21804 cat >>confdefs.h <<_ACEOF 22665 cat >>confdefs.h <<_ACEOF
21805#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22666#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
@@ -21813,9 +22674,9 @@ done
21813for ac_func in strrchr rindex 22674for ac_func in strrchr rindex
21814do 22675do
21815as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22676as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21816echo "$as_me:$LINENO: checking for $ac_func" >&5 22677{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21817echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 22678echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21818if eval "test \"\${$as_ac_var+set}\" = set"; then 22679if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21819 echo $ECHO_N "(cached) $ECHO_C" >&6 22680 echo $ECHO_N "(cached) $ECHO_C" >&6
21820else 22681else
21821 cat >conftest.$ac_ext <<_ACEOF 22682 cat >conftest.$ac_ext <<_ACEOF
@@ -21841,52 +22702,59 @@ cat >>conftest.$ac_ext <<_ACEOF
21841 22702
21842#undef $ac_func 22703#undef $ac_func
21843 22704
21844/* Override any gcc2 internal prototype to avoid an error. */ 22705/* Override any GCC internal prototype to avoid an error.
22706 Use char because int might match the return type of a GCC
22707 builtin and then its argument prototype would still apply. */
21845#ifdef __cplusplus 22708#ifdef __cplusplus
21846extern "C" 22709extern "C"
21847{
21848#endif 22710#endif
21849/* We use char because int might match the return type of a gcc2
21850 builtin and then its argument prototype would still apply. */
21851char $ac_func (); 22711char $ac_func ();
21852/* The GNU C library defines this for functions which it implements 22712/* The GNU C library defines this for functions which it implements
21853 to always fail with ENOSYS. Some functions are actually named 22713 to always fail with ENOSYS. Some functions are actually named
21854 something starting with __ and the normal name is an alias. */ 22714 something starting with __ and the normal name is an alias. */
21855#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 22715#if defined __stub_$ac_func || defined __stub___$ac_func
21856choke me 22716choke me
21857#else
21858char (*f) () = $ac_func;
21859#endif
21860#ifdef __cplusplus
21861}
21862#endif 22717#endif
21863 22718
21864int 22719int
21865main () 22720main ()
21866{ 22721{
21867return f != $ac_func; 22722return $ac_func ();
21868 ; 22723 ;
21869 return 0; 22724 return 0;
21870} 22725}
21871_ACEOF 22726_ACEOF
21872rm -f conftest.$ac_objext conftest$ac_exeext 22727rm -f conftest.$ac_objext conftest$ac_exeext
21873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22728if { (ac_try="$ac_link"
21874 (eval $ac_link) 2>conftest.er1 22729case "(($ac_try" in
22730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22731 *) ac_try_echo=$ac_try;;
22732esac
22733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22734 (eval "$ac_link") 2>conftest.er1
21875 ac_status=$? 22735 ac_status=$?
21876 grep -v '^ *+' conftest.er1 >conftest.err 22736 grep -v '^ *+' conftest.er1 >conftest.err
21877 rm -f conftest.er1 22737 rm -f conftest.er1
21878 cat conftest.err >&5 22738 cat conftest.err >&5
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); } && 22740 (exit $ac_status); } &&
21881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22742 { (case "(($ac_try" in
21883 (eval $ac_try) 2>&5 22743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22744 *) ac_try_echo=$ac_try;;
22745esac
22746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22747 (eval "$ac_try") 2>&5
21884 ac_status=$? 22748 ac_status=$?
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); }; } && 22750 (exit $ac_status); }; } &&
21887 { ac_try='test -s conftest$ac_exeext' 22751 { ac_try='test -s conftest$ac_exeext'
21888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22752 { (case "(($ac_try" in
21889 (eval $ac_try) 2>&5 22753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22754 *) ac_try_echo=$ac_try;;
22755esac
22756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22757 (eval "$ac_try") 2>&5
21890 ac_status=$? 22758 ac_status=$?
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); }; }; then 22760 (exit $ac_status); }; }; then
@@ -21895,13 +22763,15 @@ else
21895 echo "$as_me: failed program was:" >&5 22763 echo "$as_me: failed program was:" >&5
21896sed 's/^/| /' conftest.$ac_ext >&5 22764sed 's/^/| /' conftest.$ac_ext >&5
21897 22765
21898eval "$as_ac_var=no" 22766 eval "$as_ac_var=no"
21899fi 22767fi
21900rm -f conftest.err conftest.$ac_objext \ 22768
22769rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21901 conftest$ac_exeext conftest.$ac_ext 22770 conftest$ac_exeext conftest.$ac_ext
21902fi 22771fi
21903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 22772ac_res=`eval echo '${'$as_ac_var'}'`
21904echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 22773 { echo "$as_me:$LINENO: result: $ac_res" >&5
22774echo "${ECHO_T}$ac_res" >&6; }
21905if test `eval echo '${'$as_ac_var'}'` = yes; then 22775if test `eval echo '${'$as_ac_var'}'` = yes; then
21906 cat >>confdefs.h <<_ACEOF 22776 cat >>confdefs.h <<_ACEOF
21907#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22777#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
@@ -21915,9 +22785,9 @@ done
21915for ac_func in memcpy bcopy 22785for ac_func in memcpy bcopy
21916do 22786do
21917as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22787as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21918echo "$as_me:$LINENO: checking for $ac_func" >&5 22788{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21919echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 22789echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21920if eval "test \"\${$as_ac_var+set}\" = set"; then 22790if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21921 echo $ECHO_N "(cached) $ECHO_C" >&6 22791 echo $ECHO_N "(cached) $ECHO_C" >&6
21922else 22792else
21923 cat >conftest.$ac_ext <<_ACEOF 22793 cat >conftest.$ac_ext <<_ACEOF
@@ -21943,52 +22813,59 @@ cat >>conftest.$ac_ext <<_ACEOF
21943 22813
21944#undef $ac_func 22814#undef $ac_func
21945 22815
21946/* Override any gcc2 internal prototype to avoid an error. */ 22816/* Override any GCC internal prototype to avoid an error.
22817 Use char because int might match the return type of a GCC
22818 builtin and then its argument prototype would still apply. */
21947#ifdef __cplusplus 22819#ifdef __cplusplus
21948extern "C" 22820extern "C"
21949{
21950#endif 22821#endif
21951/* We use char because int might match the return type of a gcc2
21952 builtin and then its argument prototype would still apply. */
21953char $ac_func (); 22822char $ac_func ();
21954/* The GNU C library defines this for functions which it implements 22823/* The GNU C library defines this for functions which it implements
21955 to always fail with ENOSYS. Some functions are actually named 22824 to always fail with ENOSYS. Some functions are actually named
21956 something starting with __ and the normal name is an alias. */ 22825 something starting with __ and the normal name is an alias. */
21957#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 22826#if defined __stub_$ac_func || defined __stub___$ac_func
21958choke me 22827choke me
21959#else
21960char (*f) () = $ac_func;
21961#endif
21962#ifdef __cplusplus
21963}
21964#endif 22828#endif
21965 22829
21966int 22830int
21967main () 22831main ()
21968{ 22832{
21969return f != $ac_func; 22833return $ac_func ();
21970 ; 22834 ;
21971 return 0; 22835 return 0;
21972} 22836}
21973_ACEOF 22837_ACEOF
21974rm -f conftest.$ac_objext conftest$ac_exeext 22838rm -f conftest.$ac_objext conftest$ac_exeext
21975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22839if { (ac_try="$ac_link"
21976 (eval $ac_link) 2>conftest.er1 22840case "(($ac_try" in
22841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22842 *) ac_try_echo=$ac_try;;
22843esac
22844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22845 (eval "$ac_link") 2>conftest.er1
21977 ac_status=$? 22846 ac_status=$?
21978 grep -v '^ *+' conftest.er1 >conftest.err 22847 grep -v '^ *+' conftest.er1 >conftest.err
21979 rm -f conftest.er1 22848 rm -f conftest.er1
21980 cat conftest.err >&5 22849 cat conftest.err >&5
21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); } && 22851 (exit $ac_status); } &&
21983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22853 { (case "(($ac_try" in
21985 (eval $ac_try) 2>&5 22854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22855 *) ac_try_echo=$ac_try;;
22856esac
22857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22858 (eval "$ac_try") 2>&5
21986 ac_status=$? 22859 ac_status=$?
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); }; } && 22861 (exit $ac_status); }; } &&
21989 { ac_try='test -s conftest$ac_exeext' 22862 { ac_try='test -s conftest$ac_exeext'
21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22863 { (case "(($ac_try" in
21991 (eval $ac_try) 2>&5 22864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22865 *) ac_try_echo=$ac_try;;
22866esac
22867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22868 (eval "$ac_try") 2>&5
21992 ac_status=$? 22869 ac_status=$?
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; }; then 22871 (exit $ac_status); }; }; then
@@ -21997,13 +22874,15 @@ else
21997 echo "$as_me: failed program was:" >&5 22874 echo "$as_me: failed program was:" >&5
21998sed 's/^/| /' conftest.$ac_ext >&5 22875sed 's/^/| /' conftest.$ac_ext >&5
21999 22876
22000eval "$as_ac_var=no" 22877 eval "$as_ac_var=no"
22001fi 22878fi
22002rm -f conftest.err conftest.$ac_objext \ 22879
22880rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22003 conftest$ac_exeext conftest.$ac_ext 22881 conftest$ac_exeext conftest.$ac_ext
22004fi 22882fi
22005echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 22883ac_res=`eval echo '${'$as_ac_var'}'`
22006echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 22884 { echo "$as_me:$LINENO: result: $ac_res" >&5
22885echo "${ECHO_T}$ac_res" >&6; }
22007if test `eval echo '${'$as_ac_var'}'` = yes; then 22886if test `eval echo '${'$as_ac_var'}'` = yes; then
22008 cat >>confdefs.h <<_ACEOF 22887 cat >>confdefs.h <<_ACEOF
22009#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22888#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
@@ -22017,9 +22896,9 @@ done
22017for ac_func in memmove strcmp 22896for ac_func in memmove strcmp
22018do 22897do
22019as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22898as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22020echo "$as_me:$LINENO: checking for $ac_func" >&5 22899{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22021echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 22900echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22022if eval "test \"\${$as_ac_var+set}\" = set"; then 22901if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22023 echo $ECHO_N "(cached) $ECHO_C" >&6 22902 echo $ECHO_N "(cached) $ECHO_C" >&6
22024else 22903else
22025 cat >conftest.$ac_ext <<_ACEOF 22904 cat >conftest.$ac_ext <<_ACEOF
@@ -22045,52 +22924,59 @@ cat >>conftest.$ac_ext <<_ACEOF
22045 22924
22046#undef $ac_func 22925#undef $ac_func
22047 22926
22048/* Override any gcc2 internal prototype to avoid an error. */ 22927/* Override any GCC internal prototype to avoid an error.
22928 Use char because int might match the return type of a GCC
22929 builtin and then its argument prototype would still apply. */
22049#ifdef __cplusplus 22930#ifdef __cplusplus
22050extern "C" 22931extern "C"
22051{
22052#endif 22932#endif
22053/* We use char because int might match the return type of a gcc2
22054 builtin and then its argument prototype would still apply. */
22055char $ac_func (); 22933char $ac_func ();
22056/* The GNU C library defines this for functions which it implements 22934/* The GNU C library defines this for functions which it implements
22057 to always fail with ENOSYS. Some functions are actually named 22935 to always fail with ENOSYS. Some functions are actually named
22058 something starting with __ and the normal name is an alias. */ 22936 something starting with __ and the normal name is an alias. */
22059#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 22937#if defined __stub_$ac_func || defined __stub___$ac_func
22060choke me 22938choke me
22061#else
22062char (*f) () = $ac_func;
22063#endif
22064#ifdef __cplusplus
22065}
22066#endif 22939#endif
22067 22940
22068int 22941int
22069main () 22942main ()
22070{ 22943{
22071return f != $ac_func; 22944return $ac_func ();
22072 ; 22945 ;
22073 return 0; 22946 return 0;
22074} 22947}
22075_ACEOF 22948_ACEOF
22076rm -f conftest.$ac_objext conftest$ac_exeext 22949rm -f conftest.$ac_objext conftest$ac_exeext
22077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22950if { (ac_try="$ac_link"
22078 (eval $ac_link) 2>conftest.er1 22951case "(($ac_try" in
22952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22953 *) ac_try_echo=$ac_try;;
22954esac
22955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22956 (eval "$ac_link") 2>conftest.er1
22079 ac_status=$? 22957 ac_status=$?
22080 grep -v '^ *+' conftest.er1 >conftest.err 22958 grep -v '^ *+' conftest.er1 >conftest.err
22081 rm -f conftest.er1 22959 rm -f conftest.er1
22082 cat conftest.err >&5 22960 cat conftest.err >&5
22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); } && 22962 (exit $ac_status); } &&
22085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22964 { (case "(($ac_try" in
22087 (eval $ac_try) 2>&5 22965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22966 *) ac_try_echo=$ac_try;;
22967esac
22968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22969 (eval "$ac_try") 2>&5
22088 ac_status=$? 22970 ac_status=$?
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); }; } && 22972 (exit $ac_status); }; } &&
22091 { ac_try='test -s conftest$ac_exeext' 22973 { ac_try='test -s conftest$ac_exeext'
22092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22974 { (case "(($ac_try" in
22093 (eval $ac_try) 2>&5 22975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22976 *) ac_try_echo=$ac_try;;
22977esac
22978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22979 (eval "$ac_try") 2>&5
22094 ac_status=$? 22980 ac_status=$?
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); }; }; then 22982 (exit $ac_status); }; }; then
@@ -22099,13 +22985,15 @@ else
22099 echo "$as_me: failed program was:" >&5 22985 echo "$as_me: failed program was:" >&5
22100sed 's/^/| /' conftest.$ac_ext >&5 22986sed 's/^/| /' conftest.$ac_ext >&5
22101 22987
22102eval "$as_ac_var=no" 22988 eval "$as_ac_var=no"
22103fi 22989fi
22104rm -f conftest.err conftest.$ac_objext \ 22990
22991rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22105 conftest$ac_exeext conftest.$ac_ext 22992 conftest$ac_exeext conftest.$ac_ext
22106fi 22993fi
22107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 22994ac_res=`eval echo '${'$as_ac_var'}'`
22108echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 22995 { echo "$as_me:$LINENO: result: $ac_res" >&5
22996echo "${ECHO_T}$ac_res" >&6; }
22109if test `eval echo '${'$as_ac_var'}'` = yes; then 22997if test `eval echo '${'$as_ac_var'}'` = yes; then
22110 cat >>confdefs.h <<_ACEOF 22998 cat >>confdefs.h <<_ACEOF
22111#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22999#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
@@ -22120,9 +23008,9 @@ done
22120for ac_func in closedir opendir readdir 23008for ac_func in closedir opendir readdir
22121do 23009do
22122as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 23010as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22123echo "$as_me:$LINENO: checking for $ac_func" >&5 23011{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22124echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 23012echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22125if eval "test \"\${$as_ac_var+set}\" = set"; then 23013if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22126 echo $ECHO_N "(cached) $ECHO_C" >&6 23014 echo $ECHO_N "(cached) $ECHO_C" >&6
22127else 23015else
22128 cat >conftest.$ac_ext <<_ACEOF 23016 cat >conftest.$ac_ext <<_ACEOF
@@ -22148,52 +23036,59 @@ cat >>conftest.$ac_ext <<_ACEOF
22148 23036
22149#undef $ac_func 23037#undef $ac_func
22150 23038
22151/* Override any gcc2 internal prototype to avoid an error. */ 23039/* Override any GCC internal prototype to avoid an error.
23040 Use char because int might match the return type of a GCC
23041 builtin and then its argument prototype would still apply. */
22152#ifdef __cplusplus 23042#ifdef __cplusplus
22153extern "C" 23043extern "C"
22154{
22155#endif 23044#endif
22156/* We use char because int might match the return type of a gcc2
22157 builtin and then its argument prototype would still apply. */
22158char $ac_func (); 23045char $ac_func ();
22159/* The GNU C library defines this for functions which it implements 23046/* The GNU C library defines this for functions which it implements
22160 to always fail with ENOSYS. Some functions are actually named 23047 to always fail with ENOSYS. Some functions are actually named
22161 something starting with __ and the normal name is an alias. */ 23048 something starting with __ and the normal name is an alias. */
22162#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 23049#if defined __stub_$ac_func || defined __stub___$ac_func
22163choke me 23050choke me
22164#else
22165char (*f) () = $ac_func;
22166#endif
22167#ifdef __cplusplus
22168}
22169#endif 23051#endif
22170 23052
22171int 23053int
22172main () 23054main ()
22173{ 23055{
22174return f != $ac_func; 23056return $ac_func ();
22175 ; 23057 ;
22176 return 0; 23058 return 0;
22177} 23059}
22178_ACEOF 23060_ACEOF
22179rm -f conftest.$ac_objext conftest$ac_exeext 23061rm -f conftest.$ac_objext conftest$ac_exeext
22180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23062if { (ac_try="$ac_link"
22181 (eval $ac_link) 2>conftest.er1 23063case "(($ac_try" in
23064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065 *) ac_try_echo=$ac_try;;
23066esac
23067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23068 (eval "$ac_link") 2>conftest.er1
22182 ac_status=$? 23069 ac_status=$?
22183 grep -v '^ *+' conftest.er1 >conftest.err 23070 grep -v '^ *+' conftest.er1 >conftest.err
22184 rm -f conftest.er1 23071 rm -f conftest.er1
22185 cat conftest.err >&5 23072 cat conftest.err >&5
22186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187 (exit $ac_status); } && 23074 (exit $ac_status); } &&
22188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 23075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23076 { (case "(($ac_try" in
22190 (eval $ac_try) 2>&5 23077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23078 *) ac_try_echo=$ac_try;;
23079esac
23080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23081 (eval "$ac_try") 2>&5
22191 ac_status=$? 23082 ac_status=$?
22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193 (exit $ac_status); }; } && 23084 (exit $ac_status); }; } &&
22194 { ac_try='test -s conftest$ac_exeext' 23085 { ac_try='test -s conftest$ac_exeext'
22195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23086 { (case "(($ac_try" in
22196 (eval $ac_try) 2>&5 23087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088 *) ac_try_echo=$ac_try;;
23089esac
23090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23091 (eval "$ac_try") 2>&5
22197 ac_status=$? 23092 ac_status=$?
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); }; }; then 23094 (exit $ac_status); }; }; then
@@ -22202,13 +23097,15 @@ else
22202 echo "$as_me: failed program was:" >&5 23097 echo "$as_me: failed program was:" >&5
22203sed 's/^/| /' conftest.$ac_ext >&5 23098sed 's/^/| /' conftest.$ac_ext >&5
22204 23099
22205eval "$as_ac_var=no" 23100 eval "$as_ac_var=no"
22206fi 23101fi
22207rm -f conftest.err conftest.$ac_objext \ 23102
23103rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22208 conftest$ac_exeext conftest.$ac_ext 23104 conftest$ac_exeext conftest.$ac_ext
22209fi 23105fi
22210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 23106ac_res=`eval echo '${'$as_ac_var'}'`
22211echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 23107 { echo "$as_me:$LINENO: result: $ac_res" >&5
23108echo "${ECHO_T}$ac_res" >&6; }
22212if test `eval echo '${'$as_ac_var'}'` = yes; then 23109if test `eval echo '${'$as_ac_var'}'` = yes; then
22213 cat >>confdefs.h <<_ACEOF 23110 cat >>confdefs.h <<_ACEOF
22214#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 23111#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
@@ -22223,7 +23120,7 @@ done
22223## -------- ## 23120## -------- ##
22224## Outputs. ## 23121## Outputs. ##
22225## -------- ## 23122## -------- ##
22226 ac_config_files="$ac_config_files Makefile" 23123ac_config_files="$ac_config_files Makefile"
22227 23124
22228cat >confcache <<\_ACEOF 23125cat >confcache <<\_ACEOF
22229# This file is a shell script that caches the results of configure 23126# This file is a shell script that caches the results of configure
@@ -22243,39 +23140,58 @@ _ACEOF
22243 23140
22244# The following way of writing the cache mishandles newlines in values, 23141# The following way of writing the cache mishandles newlines in values,
22245# but we know of no workaround that is simple, portable, and efficient. 23142# but we know of no workaround that is simple, portable, and efficient.
22246# So, don't put newlines in cache variables' values. 23143# So, we kill variables containing newlines.
22247# Ultrix sh set writes to stderr and can't be redirected directly, 23144# Ultrix sh set writes to stderr and can't be redirected directly,
22248# and sets the high bit in the cache file unless we assign to the vars. 23145# and sets the high bit in the cache file unless we assign to the vars.
22249{ 23146(
23147 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23148 eval ac_val=\$$ac_var
23149 case $ac_val in #(
23150 *${as_nl}*)
23151 case $ac_var in #(
23152 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23153echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23154 esac
23155 case $ac_var in #(
23156 _ | IFS | as_nl) ;; #(
23157 *) $as_unset $ac_var ;;
23158 esac ;;
23159 esac
23160 done
23161
22250 (set) 2>&1 | 23162 (set) 2>&1 |
22251 case `(ac_space=' '; set | grep ac_space) 2>&1` in 23163 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22252 *ac_space=\ *) 23164 *${as_nl}ac_space=\ *)
22253 # `set' does not quote correctly, so add quotes (double-quote 23165 # `set' does not quote correctly, so add quotes (double-quote
22254 # substitution turns \\\\ into \\, and sed turns \\ into \). 23166 # substitution turns \\\\ into \\, and sed turns \\ into \).
22255 sed -n \ 23167 sed -n \
22256 "s/'/'\\\\''/g; 23168 "s/'/'\\\\''/g;
22257 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 23169 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22258 ;; 23170 ;; #(
22259 *) 23171 *)
22260 # `set' quotes correctly as required by POSIX, so do not add quotes. 23172 # `set' quotes correctly as required by POSIX, so do not add quotes.
22261 sed -n \ 23173 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22262 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22263 ;; 23174 ;;
22264 esac; 23175 esac |
22265} | 23176 sort
23177) |
22266 sed ' 23178 sed '
23179 /^ac_cv_env_/b end
22267 t clear 23180 t clear
22268 : clear 23181 :clear
22269 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 23182 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22270 t end 23183 t end
22271 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 23184 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22272 : end' >>confcache 23185 :end' >>confcache
22273if diff $cache_file confcache >/dev/null 2>&1; then :; else 23186if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22274 if test -w $cache_file; then 23187 if test -w "$cache_file"; then
22275 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 23188 test "x$cache_file" != "x/dev/null" &&
23189 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23190echo "$as_me: updating cache $cache_file" >&6;}
22276 cat confcache >$cache_file 23191 cat confcache >$cache_file
22277 else 23192 else
22278 echo "not updating unwritable cache $cache_file" 23193 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23194echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22279 fi 23195 fi
22280fi 23196fi
22281rm -f confcache 23197rm -f confcache
@@ -22284,32 +23200,18 @@ test "x$prefix" = xNONE && prefix=$ac_default_prefix
22284# Let make expand exec_prefix. 23200# Let make expand exec_prefix.
22285test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 23201test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22286 23202
22287# VPATH may cause trouble with some makes, so we remove $(srcdir),
22288# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22289# trailing colons and then remove the whole line if VPATH becomes empty
22290# (actually we leave an empty line to preserve line numbers).
22291if test "x$srcdir" = x.; then
22292 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22293s/:*\$(srcdir):*/:/;
22294s/:*\${srcdir}:*/:/;
22295s/:*@srcdir@:*/:/;
22296s/^\([^=]*=[ ]*\):*/\1/;
22297s/:*$//;
22298s/^[^=]*=[ ]*$//;
22299}'
22300fi
22301
22302DEFS=-DHAVE_CONFIG_H 23203DEFS=-DHAVE_CONFIG_H
22303 23204
22304ac_libobjs= 23205ac_libobjs=
22305ac_ltlibobjs= 23206ac_ltlibobjs=
22306for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 23207for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22307 # 1. Remove the extension, and $U if already installed. 23208 # 1. Remove the extension, and $U if already installed.
22308 ac_i=`echo "$ac_i" | 23209 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22309 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 23210 ac_i=`echo "$ac_i" | sed "$ac_script"`
22310 # 2. Add them. 23211 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22311 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 23212 # will be set to the directory where LIBOBJS objects are built.
22312 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 23213 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23214 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22313done 23215done
22314LIBOBJS=$ac_libobjs 23216LIBOBJS=$ac_libobjs
22315 23217
@@ -22389,11 +23291,35 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22389 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 23291 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22390 # is contrary to our usage. Disable this feature. 23292 # is contrary to our usage. Disable this feature.
22391 alias -g '${1+"$@"}'='"$@"' 23293 alias -g '${1+"$@"}'='"$@"'
22392elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 23294 setopt NO_GLOB_SUBST
22393 set -o posix 23295else
23296 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22394fi 23297fi
23298BIN_SH=xpg4; export BIN_SH # for Tru64
22395DUALCASE=1; export DUALCASE # for MKS sh 23299DUALCASE=1; export DUALCASE # for MKS sh
22396 23300
23301
23302# PATH needs CR
23303# Avoid depending upon Character Ranges.
23304as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23305as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23306as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23307as_cr_digits='0123456789'
23308as_cr_alnum=$as_cr_Letters$as_cr_digits
23309
23310# The user is always right.
23311if test "${PATH_SEPARATOR+set}" != set; then
23312 echo "#! /bin/sh" >conf$$.sh
23313 echo "exit 0" >>conf$$.sh
23314 chmod +x conf$$.sh
23315 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23316 PATH_SEPARATOR=';'
23317 else
23318 PATH_SEPARATOR=:
23319 fi
23320 rm -f conf$$.sh
23321fi
23322
22397# Support unset when possible. 23323# Support unset when possible.
22398if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 23324if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22399 as_unset=unset 23325 as_unset=unset
@@ -22402,8 +23328,43 @@ else
22402fi 23328fi
22403 23329
22404 23330
23331# IFS
23332# We need space, tab and new line, in precisely that order. Quoting is
23333# there to prevent editors from complaining about space-tab.
23334# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23335# splitting by setting IFS to empty value.)
23336as_nl='
23337'
23338IFS=" "" $as_nl"
23339
23340# Find who we are. Look in the path if we contain no directory separator.
23341case $0 in
23342 *[\\/]* ) as_myself=$0 ;;
23343 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23344for as_dir in $PATH
23345do
23346 IFS=$as_save_IFS
23347 test -z "$as_dir" && as_dir=.
23348 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23349done
23350IFS=$as_save_IFS
23351
23352 ;;
23353esac
23354# We did not find ourselves, most probably we were run as `sh COMMAND'
23355# in which case we are not to be found in the path.
23356if test "x$as_myself" = x; then
23357 as_myself=$0
23358fi
23359if test ! -f "$as_myself"; then
23360 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23361 { (exit 1); exit 1; }
23362fi
23363
22405# Work around bugs in pre-3.0 UWIN ksh. 23364# Work around bugs in pre-3.0 UWIN ksh.
22406$as_unset ENV MAIL MAILPATH 23365for as_var in ENV MAIL MAILPATH
23366do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23367done
22407PS1='$ ' 23368PS1='$ '
22408PS2='> ' 23369PS2='> '
22409PS4='+ ' 23370PS4='+ '
@@ -22417,18 +23378,19 @@ do
22417 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 23378 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22418 eval $as_var=C; export $as_var 23379 eval $as_var=C; export $as_var
22419 else 23380 else
22420 $as_unset $as_var 23381 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22421 fi 23382 fi
22422done 23383done
22423 23384
22424# Required to use basename. 23385# Required to use basename.
22425if expr a : '\(a\)' >/dev/null 2>&1; then 23386if expr a : '\(a\)' >/dev/null 2>&1 &&
23387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22426 as_expr=expr 23388 as_expr=expr
22427else 23389else
22428 as_expr=false 23390 as_expr=false
22429fi 23391fi
22430 23392
22431if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 23393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22432 as_basename=basename 23394 as_basename=basename
22433else 23395else
22434 as_basename=false 23396 as_basename=false
@@ -22436,159 +23398,120 @@ fi
22436 23398
22437 23399
22438# Name of the executable. 23400# Name of the executable.
22439as_me=`$as_basename "$0" || 23401as_me=`$as_basename -- "$0" ||
22440$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23402$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22441 X"$0" : 'X\(//\)$' \| \ 23403 X"$0" : 'X\(//\)$' \| \
22442 X"$0" : 'X\(/\)$' \| \ 23404 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22443 . : '\(.\)' 2>/dev/null ||
22444echo X/"$0" | 23405echo X/"$0" |
22445 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 23406 sed '/^.*\/\([^/][^/]*\)\/*$/{
22446 /^X\/\(\/\/\)$/{ s//\1/; q; } 23407 s//\1/
22447 /^X\/\(\/\).*/{ s//\1/; q; } 23408 q
22448 s/.*/./; q'` 23409 }
23410 /^X\/\(\/\/\)$/{
23411 s//\1/
23412 q
23413 }
23414 /^X\/\(\/\).*/{
23415 s//\1/
23416 q
23417 }
23418 s/.*/./; q'`
22449 23419
22450 23420# CDPATH.
22451# PATH needs CR, and LINENO needs CR and PATH. 23421$as_unset CDPATH
22452# Avoid depending upon Character Ranges.
22453as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22454as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22455as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22456as_cr_digits='0123456789'
22457as_cr_alnum=$as_cr_Letters$as_cr_digits
22458
22459# The user is always right.
22460if test "${PATH_SEPARATOR+set}" != set; then
22461 echo "#! /bin/sh" >conf$$.sh
22462 echo "exit 0" >>conf$$.sh
22463 chmod +x conf$$.sh
22464 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22465 PATH_SEPARATOR=';'
22466 else
22467 PATH_SEPARATOR=:
22468 fi
22469 rm -f conf$$.sh
22470fi
22471 23422
22472 23423
22473 as_lineno_1=$LINENO
22474 as_lineno_2=$LINENO
22475 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22476 test "x$as_lineno_1" != "x$as_lineno_2" &&
22477 test "x$as_lineno_3" = "x$as_lineno_2" || {
22478 # Find who we are. Look in the path if we contain no path at all
22479 # relative or not.
22480 case $0 in
22481 *[\\/]* ) as_myself=$0 ;;
22482 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22483for as_dir in $PATH
22484do
22485 IFS=$as_save_IFS
22486 test -z "$as_dir" && as_dir=.
22487 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22488done
22489 23424
22490 ;;
22491 esac
22492 # We did not find ourselves, most probably we were run as `sh COMMAND'
22493 # in which case we are not to be found in the path.
22494 if test "x$as_myself" = x; then
22495 as_myself=$0
22496 fi
22497 if test ! -f "$as_myself"; then
22498 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22499echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22500 { (exit 1); exit 1; }; }
22501 fi
22502 case $CONFIG_SHELL in
22503 '')
22504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22505for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22506do
22507 IFS=$as_save_IFS
22508 test -z "$as_dir" && as_dir=.
22509 for as_base in sh bash ksh sh5; do
22510 case $as_dir in
22511 /*)
22512 if ("$as_dir/$as_base" -c '
22513 as_lineno_1=$LINENO 23425 as_lineno_1=$LINENO
22514 as_lineno_2=$LINENO 23426 as_lineno_2=$LINENO
22515 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22516 test "x$as_lineno_1" != "x$as_lineno_2" && 23427 test "x$as_lineno_1" != "x$as_lineno_2" &&
22517 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 23428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22518 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22519 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22520 CONFIG_SHELL=$as_dir/$as_base
22521 export CONFIG_SHELL
22522 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22523 fi;;
22524 esac
22525 done
22526done
22527;;
22528 esac
22529 23429
22530 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 23430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22531 # uniformly replaced by the line number. The first 'sed' inserts a 23431 # uniformly replaced by the line number. The first 'sed' inserts a
22532 # line-number line before each line; the second 'sed' does the real 23432 # line-number line after each line using $LINENO; the second 'sed'
22533 # work. The second script uses 'N' to pair each line-number line 23433 # does the real work. The second script uses 'N' to pair each
22534 # with the numbered line, and appends trailing '-' during 23434 # line-number line with the line containing $LINENO, and appends
22535 # substitution so that $LINENO is not a special case at line end. 23435 # trailing '-' during substitution so that $LINENO is not a special
23436 # case at line end.
22536 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 23437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22537 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 23438 # scripts with optimization help from Paolo Bonzini. Blame Lee
22538 sed '=' <$as_myself | 23439 # E. McMahon (1931-1989) for sed's syntax. :-)
23440 sed -n '
23441 p
23442 /[$]LINENO/=
23443 ' <$as_myself |
22539 sed ' 23444 sed '
23445 s/[$]LINENO.*/&-/
23446 t lineno
23447 b
23448 :lineno
22540 N 23449 N
22541 s,$,-, 23450 :loop
22542 : loop 23451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22543 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22544 t loop 23452 t loop
22545 s,-$,, 23453 s/-\n.*//
22546 s,^['$as_cr_digits']*\n,,
22547 ' >$as_me.lineno && 23454 ' >$as_me.lineno &&
22548 chmod +x $as_me.lineno || 23455 chmod +x "$as_me.lineno" ||
22549 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 23456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22550echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22551 { (exit 1); exit 1; }; } 23457 { (exit 1); exit 1; }; }
22552 23458
22553 # Don't try to exec as it changes $[0], causing all sort of problems 23459 # Don't try to exec as it changes $[0], causing all sort of problems
22554 # (the dirname of $[0] is not the place where we might find the 23460 # (the dirname of $[0] is not the place where we might find the
22555 # original and so on. Autoconf is especially sensible to this). 23461 # original and so on. Autoconf is especially sensitive to this).
22556 . ./$as_me.lineno 23462 . "./$as_me.lineno"
22557 # Exit status is that of the last command. 23463 # Exit status is that of the last command.
22558 exit 23464 exit
22559} 23465}
22560 23466
22561 23467
22562case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 23468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22563 *c*,-n*) ECHO_N= ECHO_C=' 23469 as_dirname=dirname
22564' ECHO_T=' ' ;; 23470else
22565 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 23471 as_dirname=false
22566 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 23472fi
23473
23474ECHO_C= ECHO_N= ECHO_T=
23475case `echo -n x` in
23476-n*)
23477 case `echo 'x\c'` in
23478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23479 *) ECHO_C='\c';;
23480 esac;;
23481*)
23482 ECHO_N='-n';;
22567esac 23483esac
22568 23484
22569if expr a : '\(a\)' >/dev/null 2>&1; then 23485if expr a : '\(a\)' >/dev/null 2>&1 &&
23486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22570 as_expr=expr 23487 as_expr=expr
22571else 23488else
22572 as_expr=false 23489 as_expr=false
22573fi 23490fi
22574 23491
22575rm -f conf$$ conf$$.exe conf$$.file 23492rm -f conf$$ conf$$.exe conf$$.file
23493if test -d conf$$.dir; then
23494 rm -f conf$$.dir/conf$$.file
23495else
23496 rm -f conf$$.dir
23497 mkdir conf$$.dir
23498fi
22576echo >conf$$.file 23499echo >conf$$.file
22577if ln -s conf$$.file conf$$ 2>/dev/null; then 23500if ln -s conf$$.file conf$$ 2>/dev/null; then
22578 # We could just check for DJGPP; but this test a) works b) is more generic 23501 as_ln_s='ln -s'
22579 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 23502 # ... but there are two gotchas:
22580 if test -f conf$$.exe; then 23503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22581 # Don't use ln at all; we don't have any links 23504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23505 # In both cases, we have to default to `cp -p'.
23506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22582 as_ln_s='cp -p' 23507 as_ln_s='cp -p'
22583 else
22584 as_ln_s='ln -s'
22585 fi
22586elif ln conf$$.file conf$$ 2>/dev/null; then 23508elif ln conf$$.file conf$$ 2>/dev/null; then
22587 as_ln_s=ln 23509 as_ln_s=ln
22588else 23510else
22589 as_ln_s='cp -p' 23511 as_ln_s='cp -p'
22590fi 23512fi
22591rm -f conf$$ conf$$.exe conf$$.file 23513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23514rmdir conf$$.dir 2>/dev/null
22592 23515
22593if mkdir -p . 2>/dev/null; then 23516if mkdir -p . 2>/dev/null; then
22594 as_mkdir_p=: 23517 as_mkdir_p=:
@@ -22597,7 +23520,19 @@ else
22597 as_mkdir_p=false 23520 as_mkdir_p=false
22598fi 23521fi
22599 23522
22600as_executable_p="test -f" 23523# Find out whether ``test -x'' works. Don't use a zero-byte file, as
23524# systems may use methods other than mode bits to determine executability.
23525cat >conf$$.file <<_ASEOF
23526#! /bin/sh
23527exit 0
23528_ASEOF
23529chmod +x conf$$.file
23530if test -x conf$$.file >/dev/null 2>&1; then
23531 as_executable_p="test -x"
23532else
23533 as_executable_p=:
23534fi
23535rm -f conf$$.file
22601 23536
22602# Sed expression to map a string onto a valid CPP name. 23537# Sed expression to map a string onto a valid CPP name.
22603as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23538as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
@@ -22606,31 +23541,14 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22606as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23541as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22607 23542
22608 23543
22609# IFS
22610# We need space, tab and new line, in precisely that order.
22611as_nl='
22612'
22613IFS=" $as_nl"
22614
22615# CDPATH.
22616$as_unset CDPATH
22617
22618exec 6>&1 23544exec 6>&1
22619 23545
22620# Open the log real soon, to keep \$[0] and so on meaningful, and to 23546# Save the log message, to keep $[0] and so on meaningful, and to
22621# report actual input values of CONFIG_FILES etc. instead of their 23547# report actual input values of CONFIG_FILES etc. instead of their
22622# values after options handling. Logging --version etc. is OK. 23548# values after options handling.
22623exec 5>>config.log 23549ac_log="
22624{
22625 echo
22626 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22627## Running $as_me. ##
22628_ASBOX
22629} >&5
22630cat >&5 <<_CSEOF
22631
22632This file was extended by libltdl $as_me 1.2, which was 23550This file was extended by libltdl $as_me 1.2, which was
22633generated by GNU Autoconf 2.59. Invocation command line was 23551generated by GNU Autoconf 2.60a. Invocation command line was
22634 23552
22635 CONFIG_FILES = $CONFIG_FILES 23553 CONFIG_FILES = $CONFIG_FILES
22636 CONFIG_HEADERS = $CONFIG_HEADERS 23554 CONFIG_HEADERS = $CONFIG_HEADERS
@@ -22638,30 +23556,20 @@ generated by GNU Autoconf 2.59. Invocation command line was
22638 CONFIG_COMMANDS = $CONFIG_COMMANDS 23556 CONFIG_COMMANDS = $CONFIG_COMMANDS
22639 $ $0 $@ 23557 $ $0 $@
22640 23558
22641_CSEOF 23559on `(hostname || uname -n) 2>/dev/null | sed 1q`
22642echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 23560"
22643echo >&5 23561
22644_ACEOF 23562_ACEOF
22645 23563
23564cat >>$CONFIG_STATUS <<_ACEOF
22646# Files that config.status was made for. 23565# Files that config.status was made for.
22647if test -n "$ac_config_files"; then 23566config_files="$ac_config_files"
22648 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 23567config_headers="$ac_config_headers"
22649fi 23568config_commands="$ac_config_commands"
22650
22651if test -n "$ac_config_headers"; then
22652 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22653fi
22654 23569
22655if test -n "$ac_config_links"; then 23570_ACEOF
22656 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22657fi
22658
22659if test -n "$ac_config_commands"; then
22660 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22661fi
22662 23571
22663cat >>$CONFIG_STATUS <<\_ACEOF 23572cat >>$CONFIG_STATUS <<\_ACEOF
22664
22665ac_cs_usage="\ 23573ac_cs_usage="\
22666\`$as_me' instantiates files from templates according to the 23574\`$as_me' instantiates files from templates according to the
22667current configuration. 23575current configuration.
@@ -22669,7 +23577,7 @@ current configuration.
22669Usage: $0 [OPTIONS] [FILE]... 23577Usage: $0 [OPTIONS] [FILE]...
22670 23578
22671 -h, --help print this help, then exit 23579 -h, --help print this help, then exit
22672 -V, --version print version number, then exit 23580 -V, --version print version number and configuration settings, then exit
22673 -q, --quiet do not print progress messages 23581 -q, --quiet do not print progress messages
22674 -d, --debug don't remove temporary files 23582 -d, --debug don't remove temporary files
22675 --recheck update $as_me by reconfiguring in the same conditions 23583 --recheck update $as_me by reconfiguring in the same conditions
@@ -22688,19 +23596,21 @@ Configuration commands:
22688$config_commands 23596$config_commands
22689 23597
22690Report bugs to <bug-autoconf@gnu.org>." 23598Report bugs to <bug-autoconf@gnu.org>."
22691_ACEOF
22692 23599
23600_ACEOF
22693cat >>$CONFIG_STATUS <<_ACEOF 23601cat >>$CONFIG_STATUS <<_ACEOF
22694ac_cs_version="\\ 23602ac_cs_version="\\
22695libltdl config.status 1.2 23603libltdl config.status 1.2
22696configured by $0, generated by GNU Autoconf 2.59, 23604configured by $0, generated by GNU Autoconf 2.60a,
22697 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 23605 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22698 23606
22699Copyright (C) 2003 Free Software Foundation, Inc. 23607Copyright (C) 2006 Free Software Foundation, Inc.
22700This config.status script is free software; the Free Software Foundation 23608This config.status script is free software; the Free Software Foundation
22701gives unlimited permission to copy, distribute and modify it." 23609gives unlimited permission to copy, distribute and modify it."
22702srcdir=$srcdir 23610
22703INSTALL="$INSTALL" 23611ac_pwd='$ac_pwd'
23612srcdir='$srcdir'
23613INSTALL='$INSTALL'
22704_ACEOF 23614_ACEOF
22705 23615
22706cat >>$CONFIG_STATUS <<\_ACEOF 23616cat >>$CONFIG_STATUS <<\_ACEOF
@@ -22711,39 +23621,24 @@ while test $# != 0
22711do 23621do
22712 case $1 in 23622 case $1 in
22713 --*=*) 23623 --*=*)
22714 ac_option=`expr "x$1" : 'x\([^=]*\)='` 23624 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22715 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 23625 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22716 ac_shift=: 23626 ac_shift=:
22717 ;; 23627 ;;
22718 -*) 23628 *)
22719 ac_option=$1 23629 ac_option=$1
22720 ac_optarg=$2 23630 ac_optarg=$2
22721 ac_shift=shift 23631 ac_shift=shift
22722 ;; 23632 ;;
22723 *) # This is not an option, so the user has probably given explicit
22724 # arguments.
22725 ac_option=$1
22726 ac_need_defaults=false;;
22727 esac 23633 esac
22728 23634
22729 case $ac_option in 23635 case $ac_option in
22730 # Handling of the options. 23636 # Handling of the options.
22731_ACEOF
22732cat >>$CONFIG_STATUS <<\_ACEOF
22733 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23637 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22734 ac_cs_recheck=: ;; 23638 ac_cs_recheck=: ;;
22735 --version | --vers* | -V ) 23639 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22736 echo "$ac_cs_version"; exit 0 ;; 23640 echo "$ac_cs_version"; exit ;;
22737 --he | --h) 23641 --debug | --debu | --deb | --de | --d | -d )
22738 # Conflict between --help and --header
22739 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22740Try \`$0 --help' for more information." >&5
22741echo "$as_me: error: ambiguous option: $1
22742Try \`$0 --help' for more information." >&2;}
22743 { (exit 1); exit 1; }; };;
22744 --help | --hel | -h )
22745 echo "$ac_cs_usage"; exit 0 ;;
22746 --debug | --d* | -d )
22747 debug=: ;; 23642 debug=: ;;
22748 --file | --fil | --fi | --f ) 23643 --file | --fil | --fi | --f )
22749 $ac_shift 23644 $ac_shift
@@ -22753,18 +23648,24 @@ Try \`$0 --help' for more information." >&2;}
22753 $ac_shift 23648 $ac_shift
22754 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 23649 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22755 ac_need_defaults=false;; 23650 ac_need_defaults=false;;
23651 --he | --h)
23652 # Conflict between --help and --header
23653 { echo "$as_me: error: ambiguous option: $1
23654Try \`$0 --help' for more information." >&2
23655 { (exit 1); exit 1; }; };;
23656 --help | --hel | -h )
23657 echo "$ac_cs_usage"; exit ;;
22756 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22757 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23659 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22758 ac_cs_silent=: ;; 23660 ac_cs_silent=: ;;
22759 23661
22760 # This is an error. 23662 # This is an error.
22761 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 23663 -*) { echo "$as_me: error: unrecognized option: $1
22762Try \`$0 --help' for more information." >&5 23664Try \`$0 --help' for more information." >&2
22763echo "$as_me: error: unrecognized option: $1
22764Try \`$0 --help' for more information." >&2;}
22765 { (exit 1); exit 1; }; } ;; 23665 { (exit 1); exit 1; }; } ;;
22766 23666
22767 *) ac_config_targets="$ac_config_targets $1" ;; 23667 *) ac_config_targets="$ac_config_targets $1"
23668 ac_need_defaults=false ;;
22768 23669
22769 esac 23670 esac
22770 shift 23671 shift
@@ -22780,37 +23681,49 @@ fi
22780_ACEOF 23681_ACEOF
22781cat >>$CONFIG_STATUS <<_ACEOF 23682cat >>$CONFIG_STATUS <<_ACEOF
22782if \$ac_cs_recheck; then 23683if \$ac_cs_recheck; then
22783 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 23684 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22784 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23685 CONFIG_SHELL=$SHELL
23686 export CONFIG_SHELL
23687 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22785fi 23688fi
22786 23689
22787_ACEOF 23690_ACEOF
23691cat >>$CONFIG_STATUS <<\_ACEOF
23692exec 5>>config.log
23693{
23694 echo
23695 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23696## Running $as_me. ##
23697_ASBOX
23698 echo "$ac_log"
23699} >&5
22788 23700
23701_ACEOF
22789cat >>$CONFIG_STATUS <<_ACEOF 23702cat >>$CONFIG_STATUS <<_ACEOF
22790# 23703#
22791# INIT-COMMANDS section. 23704# INIT-COMMANDS
22792# 23705#
22793
22794AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 23706AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22795 23707
22796_ACEOF 23708_ACEOF
22797 23709
22798
22799
22800cat >>$CONFIG_STATUS <<\_ACEOF 23710cat >>$CONFIG_STATUS <<\_ACEOF
23711
23712# Handling of arguments.
22801for ac_config_target in $ac_config_targets 23713for ac_config_target in $ac_config_targets
22802do 23714do
22803 case "$ac_config_target" in 23715 case $ac_config_target in
22804 # Handling of arguments. 23716 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
22805 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23717 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22806 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23718 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22807 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;; 23719
22808 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23720 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22809echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23721echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22810 { (exit 1); exit 1; }; };; 23722 { (exit 1); exit 1; }; };;
22811 esac 23723 esac
22812done 23724done
22813 23725
23726
22814# If the user did not use the arguments to specify the items to instantiate, 23727# If the user did not use the arguments to specify the items to instantiate,
22815# then the envvar interface is used. Set only those that are not. 23728# then the envvar interface is used. Set only those that are not.
22816# We use the long form for the default assignment because of an extremely 23729# We use the long form for the default assignment because of an extremely
@@ -22822,365 +23735,467 @@ if $ac_need_defaults; then
22822fi 23735fi
22823 23736
22824# Have a temporary directory for convenience. Make it in the build tree 23737# Have a temporary directory for convenience. Make it in the build tree
22825# simply because there is no reason to put it here, and in addition, 23738# simply because there is no reason against having it here, and in addition,
22826# creating and moving files from /tmp can sometimes cause problems. 23739# creating and moving files from /tmp can sometimes cause problems.
22827# Create a temporary directory, and hook for its removal unless debugging. 23740# Hook for its removal unless debugging.
23741# Note that there is a small window in which the directory will not be cleaned:
23742# after its creation but before its name has been assigned to `$tmp'.
22828$debug || 23743$debug ||
22829{ 23744{
22830 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 23745 tmp=
23746 trap 'exit_status=$?
23747 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23748' 0
22831 trap '{ (exit 1); exit 1; }' 1 2 13 15 23749 trap '{ (exit 1); exit 1; }' 1 2 13 15
22832} 23750}
22833
22834# Create a (secure) tmp directory for tmp files. 23751# Create a (secure) tmp directory for tmp files.
22835 23752
22836{ 23753{
22837 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 23754 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22838 test -n "$tmp" && test -d "$tmp" 23755 test -n "$tmp" && test -d "$tmp"
22839} || 23756} ||
22840{ 23757{
22841 tmp=./confstat$$-$RANDOM 23758 tmp=./conf$$-$RANDOM
22842 (umask 077 && mkdir $tmp) 23759 (umask 077 && mkdir "$tmp")
22843} || 23760} ||
22844{ 23761{
22845 echo "$me: cannot create a temporary directory in ." >&2 23762 echo "$me: cannot create a temporary directory in ." >&2
22846 { (exit 1); exit 1; } 23763 { (exit 1); exit 1; }
22847} 23764}
22848 23765
22849_ACEOF
22850
22851cat >>$CONFIG_STATUS <<_ACEOF
22852
22853# 23766#
22854# CONFIG_FILES section. 23767# Set up the sed scripts for CONFIG_FILES section.
22855# 23768#
22856 23769
22857# No need to generate the scripts if there are no CONFIG_FILES. 23770# No need to generate the scripts if there are no CONFIG_FILES.
22858# This happens for instance when ./config.status config.h 23771# This happens for instance when ./config.status config.h
22859if test -n "\$CONFIG_FILES"; then 23772if test -n "$CONFIG_FILES"; then
22860 # Protect against being on the right side of a sed subst in config.status.
22861 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22862 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22863s,@SHELL@,$SHELL,;t t
22864s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22865s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22866s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22867s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22868s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22869s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22870s,@exec_prefix@,$exec_prefix,;t t
22871s,@prefix@,$prefix,;t t
22872s,@program_transform_name@,$program_transform_name,;t t
22873s,@bindir@,$bindir,;t t
22874s,@sbindir@,$sbindir,;t t
22875s,@libexecdir@,$libexecdir,;t t
22876s,@datadir@,$datadir,;t t
22877s,@sysconfdir@,$sysconfdir,;t t
22878s,@sharedstatedir@,$sharedstatedir,;t t
22879s,@localstatedir@,$localstatedir,;t t
22880s,@libdir@,$libdir,;t t
22881s,@includedir@,$includedir,;t t
22882s,@oldincludedir@,$oldincludedir,;t t
22883s,@infodir@,$infodir,;t t
22884s,@mandir@,$mandir,;t t
22885s,@build_alias@,$build_alias,;t t
22886s,@host_alias@,$host_alias,;t t
22887s,@target_alias@,$target_alias,;t t
22888s,@DEFS@,$DEFS,;t t
22889s,@ECHO_C@,$ECHO_C,;t t
22890s,@ECHO_N@,$ECHO_N,;t t
22891s,@ECHO_T@,$ECHO_T,;t t
22892s,@LIBS@,$LIBS,;t t
22893s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22894s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22895s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22896s,@CYGPATH_W@,$CYGPATH_W,;t t
22897s,@PACKAGE@,$PACKAGE,;t t
22898s,@VERSION@,$VERSION,;t t
22899s,@ACLOCAL@,$ACLOCAL,;t t
22900s,@AUTOCONF@,$AUTOCONF,;t t
22901s,@AUTOMAKE@,$AUTOMAKE,;t t
22902s,@AUTOHEADER@,$AUTOHEADER,;t t
22903s,@MAKEINFO@,$MAKEINFO,;t t
22904s,@AMTAR@,$AMTAR,;t t
22905s,@install_sh@,$install_sh,;t t
22906s,@STRIP@,$STRIP,;t t
22907s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22908s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22909s,@mkdir_p@,$mkdir_p,;t t
22910s,@AWK@,$AWK,;t t
22911s,@SET_MAKE@,$SET_MAKE,;t t
22912s,@am__leading_dot@,$am__leading_dot,;t t
22913s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22914s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22915s,@MAINT@,$MAINT,;t t
22916s,@CC@,$CC,;t t
22917s,@CFLAGS@,$CFLAGS,;t t
22918s,@LDFLAGS@,$LDFLAGS,;t t
22919s,@CPPFLAGS@,$CPPFLAGS,;t t
22920s,@ac_ct_CC@,$ac_ct_CC,;t t
22921s,@EXEEXT@,$EXEEXT,;t t
22922s,@OBJEXT@,$OBJEXT,;t t
22923s,@DEPDIR@,$DEPDIR,;t t
22924s,@am__include@,$am__include,;t t
22925s,@am__quote@,$am__quote,;t t
22926s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22927s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22928s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22929s,@CCDEPMODE@,$CCDEPMODE,;t t
22930s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22931s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22932s,@build@,$build,;t t
22933s,@build_cpu@,$build_cpu,;t t
22934s,@build_vendor@,$build_vendor,;t t
22935s,@build_os@,$build_os,;t t
22936s,@host@,$host,;t t
22937s,@host_cpu@,$host_cpu,;t t
22938s,@host_vendor@,$host_vendor,;t t
22939s,@host_os@,$host_os,;t t
22940s,@EGREP@,$EGREP,;t t
22941s,@LN_S@,$LN_S,;t t
22942s,@ECHO@,$ECHO,;t t
22943s,@AR@,$AR,;t t
22944s,@ac_ct_AR@,$ac_ct_AR,;t t
22945s,@RANLIB@,$RANLIB,;t t
22946s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22947s,@DLLTOOL@,$DLLTOOL,;t t
22948s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22949s,@AS@,$AS,;t t
22950s,@ac_ct_AS@,$ac_ct_AS,;t t
22951s,@OBJDUMP@,$OBJDUMP,;t t
22952s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
22953s,@CPP@,$CPP,;t t
22954s,@CXX@,$CXX,;t t
22955s,@CXXFLAGS@,$CXXFLAGS,;t t
22956s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22957s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22958s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22959s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22960s,@CXXCPP@,$CXXCPP,;t t
22961s,@F77@,$F77,;t t
22962s,@FFLAGS@,$FFLAGS,;t t
22963s,@ac_ct_F77@,$ac_ct_F77,;t t
22964s,@LIBTOOL@,$LIBTOOL,;t t
22965s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
22966s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
22967s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
22968s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
22969s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
22970s,@LIBADD_DL@,$LIBADD_DL,;t t
22971s,@LIBOBJS@,$LIBOBJS,;t t
22972s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22973CEOF
22974 23773
22975_ACEOF 23774_ACEOF
22976 23775
22977 cat >>$CONFIG_STATUS <<\_ACEOF 23776
22978 # Split the substitutions into bite-sized pieces for seds with 23777
22979 # small command number limits, like on Digital OSF/1 and HP-UX. 23778ac_delim='%!_!# '
22980 ac_max_sed_lines=48 23779for ac_last_try in false false false false false :; do
22981 ac_sed_frag=1 # Number of current file. 23780 cat >conf$$subs.sed <<_ACEOF
22982 ac_beg=1 # First line for current file. 23781SHELL!$SHELL$ac_delim
22983 ac_end=$ac_max_sed_lines # Line after last line for current file. 23782PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22984 ac_more_lines=: 23783PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22985 ac_sed_cmds= 23784PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22986 while $ac_more_lines; do 23785PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22987 if test $ac_beg -gt 1; then 23786PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22988 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 23787PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22989 else 23788exec_prefix!$exec_prefix$ac_delim
22990 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 23789prefix!$prefix$ac_delim
22991 fi 23790program_transform_name!$program_transform_name$ac_delim
22992 if test ! -s $tmp/subs.frag; then 23791bindir!$bindir$ac_delim
22993 ac_more_lines=false 23792sbindir!$sbindir$ac_delim
22994 else 23793libexecdir!$libexecdir$ac_delim
22995 # The purpose of the label and of the branching condition is to 23794datarootdir!$datarootdir$ac_delim
22996 # speed up the sed processing (if there are no `@' at all, there 23795datadir!$datadir$ac_delim
22997 # is no need to browse any of the substitutions). 23796sysconfdir!$sysconfdir$ac_delim
22998 # These are the two extra sed commands mentioned above. 23797sharedstatedir!$sharedstatedir$ac_delim
22999 (echo ':t 23798localstatedir!$localstatedir$ac_delim
23000 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 23799includedir!$includedir$ac_delim
23001 if test -z "$ac_sed_cmds"; then 23800oldincludedir!$oldincludedir$ac_delim
23002 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 23801docdir!$docdir$ac_delim
23003 else 23802infodir!$infodir$ac_delim
23004 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 23803htmldir!$htmldir$ac_delim
23005 fi 23804dvidir!$dvidir$ac_delim
23006 ac_sed_frag=`expr $ac_sed_frag + 1` 23805pdfdir!$pdfdir$ac_delim
23007 ac_beg=$ac_end 23806psdir!$psdir$ac_delim
23008 ac_end=`expr $ac_end + $ac_max_sed_lines` 23807libdir!$libdir$ac_delim
23009 fi 23808localedir!$localedir$ac_delim
23010 done 23809mandir!$mandir$ac_delim
23011 if test -z "$ac_sed_cmds"; then 23810DEFS!$DEFS$ac_delim
23012 ac_sed_cmds=cat 23811ECHO_C!$ECHO_C$ac_delim
23812ECHO_N!$ECHO_N$ac_delim
23813ECHO_T!$ECHO_T$ac_delim
23814LIBS!$LIBS$ac_delim
23815build_alias!$build_alias$ac_delim
23816host_alias!$host_alias$ac_delim
23817target_alias!$target_alias$ac_delim
23818INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23819INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23820INSTALL_DATA!$INSTALL_DATA$ac_delim
23821CYGPATH_W!$CYGPATH_W$ac_delim
23822PACKAGE!$PACKAGE$ac_delim
23823VERSION!$VERSION$ac_delim
23824ACLOCAL!$ACLOCAL$ac_delim
23825AUTOCONF!$AUTOCONF$ac_delim
23826AUTOMAKE!$AUTOMAKE$ac_delim
23827AUTOHEADER!$AUTOHEADER$ac_delim
23828MAKEINFO!$MAKEINFO$ac_delim
23829AMTAR!$AMTAR$ac_delim
23830install_sh!$install_sh$ac_delim
23831STRIP!$STRIP$ac_delim
23832INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23833mkdir_p!$mkdir_p$ac_delim
23834AWK!$AWK$ac_delim
23835SET_MAKE!$SET_MAKE$ac_delim
23836am__leading_dot!$am__leading_dot$ac_delim
23837MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23838MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23839MAINT!$MAINT$ac_delim
23840CC!$CC$ac_delim
23841CFLAGS!$CFLAGS$ac_delim
23842LDFLAGS!$LDFLAGS$ac_delim
23843CPPFLAGS!$CPPFLAGS$ac_delim
23844ac_ct_CC!$ac_ct_CC$ac_delim
23845EXEEXT!$EXEEXT$ac_delim
23846OBJEXT!$OBJEXT$ac_delim
23847DEPDIR!$DEPDIR$ac_delim
23848am__include!$am__include$ac_delim
23849am__quote!$am__quote$ac_delim
23850AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23851AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23852AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23853CCDEPMODE!$CCDEPMODE$ac_delim
23854am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23855am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23856build!$build$ac_delim
23857build_cpu!$build_cpu$ac_delim
23858build_vendor!$build_vendor$ac_delim
23859build_os!$build_os$ac_delim
23860host!$host$ac_delim
23861host_cpu!$host_cpu$ac_delim
23862host_vendor!$host_vendor$ac_delim
23863host_os!$host_os$ac_delim
23864GREP!$GREP$ac_delim
23865EGREP!$EGREP$ac_delim
23866LN_S!$LN_S$ac_delim
23867ECHO!$ECHO$ac_delim
23868AR!$AR$ac_delim
23869RANLIB!$RANLIB$ac_delim
23870DLLTOOL!$DLLTOOL$ac_delim
23871AS!$AS$ac_delim
23872OBJDUMP!$OBJDUMP$ac_delim
23873CPP!$CPP$ac_delim
23874CXX!$CXX$ac_delim
23875CXXFLAGS!$CXXFLAGS$ac_delim
23876ac_ct_CXX!$ac_ct_CXX$ac_delim
23877CXXDEPMODE!$CXXDEPMODE$ac_delim
23878_ACEOF
23879
23880 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23881 break
23882 elif $ac_last_try; then
23883 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23884echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23885 { (exit 1); exit 1; }; }
23886 else
23887 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23013 fi 23888 fi
23014fi # test -n "$CONFIG_FILES" 23889done
23890
23891ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23892if test -n "$ac_eof"; then
23893 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23894 ac_eof=`expr $ac_eof + 1`
23895fi
23015 23896
23897cat >>$CONFIG_STATUS <<_ACEOF
23898cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23899/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23900_ACEOF
23901sed '
23902s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23903s/^/s,@/; s/!/@,|#_!!_#|/
23904:n
23905t n
23906s/'"$ac_delim"'$/,g/; t
23907s/$/\\/; p
23908N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23909' >>$CONFIG_STATUS <conf$$subs.sed
23910rm -f conf$$subs.sed
23911cat >>$CONFIG_STATUS <<_ACEOF
23912CEOF$ac_eof
23016_ACEOF 23913_ACEOF
23914
23915
23916ac_delim='%!_!# '
23917for ac_last_try in false false false false false :; do
23918 cat >conf$$subs.sed <<_ACEOF
23919am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23920am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23921CXXCPP!$CXXCPP$ac_delim
23922F77!$F77$ac_delim
23923FFLAGS!$FFLAGS$ac_delim
23924ac_ct_F77!$ac_ct_F77$ac_delim
23925LIBTOOL!$LIBTOOL$ac_delim
23926LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
23927INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23928INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23929CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23930CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23931LIBADD_DL!$LIBADD_DL$ac_delim
23932LIBOBJS!$LIBOBJS$ac_delim
23933LTLIBOBJS!$LTLIBOBJS$ac_delim
23934_ACEOF
23935
23936 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
23937 break
23938 elif $ac_last_try; then
23939 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23940echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23941 { (exit 1); exit 1; }; }
23942 else
23943 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23944 fi
23945done
23946
23947ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23948if test -n "$ac_eof"; then
23949 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23950 ac_eof=`expr $ac_eof + 1`
23951fi
23952
23953cat >>$CONFIG_STATUS <<_ACEOF
23954cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23955/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23956_ACEOF
23957sed '
23958s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23959s/^/s,@/; s/!/@,|#_!!_#|/
23960:n
23961t n
23962s/'"$ac_delim"'$/,g/; t
23963s/$/\\/; p
23964N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23965' >>$CONFIG_STATUS <conf$$subs.sed
23966rm -f conf$$subs.sed
23967cat >>$CONFIG_STATUS <<_ACEOF
23968:end
23969s/|#_!!_#|//g
23970CEOF$ac_eof
23971_ACEOF
23972
23973
23974# VPATH may cause trouble with some makes, so we remove $(srcdir),
23975# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23976# trailing colons and then remove the whole line if VPATH becomes empty
23977# (actually we leave an empty line to preserve line numbers).
23978if test "x$srcdir" = x.; then
23979 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23980s/:*\$(srcdir):*/:/
23981s/:*\${srcdir}:*/:/
23982s/:*@srcdir@:*/:/
23983s/^\([^=]*=[ ]*\):*/\1/
23984s/:*$//
23985s/^[^=]*=[ ]*$//
23986}'
23987fi
23988
23017cat >>$CONFIG_STATUS <<\_ACEOF 23989cat >>$CONFIG_STATUS <<\_ACEOF
23018for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 23990fi # test -n "$CONFIG_FILES"
23019 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 23991
23020 case $ac_file in 23992
23021 - | *:- | *:-:* ) # input from stdin 23993for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23022 cat >$tmp/stdin 23994do
23023 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23995 case $ac_tag in
23024 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23996 :[FHLC]) ac_mode=$ac_tag; continue;;
23025 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23997 esac
23026 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23998 case $ac_mode$ac_tag in
23027 * ) ac_file_in=$ac_file.in ;; 23999 :[FHL]*:*);;
24000 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24001echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24002 { (exit 1); exit 1; }; };;
24003 :[FH]-) ac_tag=-:-;;
24004 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23028 esac 24005 esac
24006 ac_save_IFS=$IFS
24007 IFS=:
24008 set x $ac_tag
24009 IFS=$ac_save_IFS
24010 shift
24011 ac_file=$1
24012 shift
23029 24013
23030 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 24014 case $ac_mode in
23031 ac_dir=`(dirname "$ac_file") 2>/dev/null || 24015 :L) ac_source=$1;;
24016 :[FH])
24017 ac_file_inputs=
24018 for ac_f
24019 do
24020 case $ac_f in
24021 -) ac_f="$tmp/stdin";;
24022 *) # Look for the file first in the build tree, then in the source tree
24023 # (if the path is not absolute). The absolute path cannot be DOS-style,
24024 # because $ac_f cannot contain `:'.
24025 test -f "$ac_f" ||
24026 case $ac_f in
24027 [\\/$]*) false;;
24028 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24029 esac ||
24030 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24031echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24032 { (exit 1); exit 1; }; };;
24033 esac
24034 ac_file_inputs="$ac_file_inputs $ac_f"
24035 done
24036
24037 # Let's still pretend it is `configure' which instantiates (i.e., don't
24038 # use $as_me), people would be surprised to read:
24039 # /* config.h. Generated by config.status. */
24040 configure_input="Generated from "`IFS=:
24041 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24042 if test x"$ac_file" != x-; then
24043 configure_input="$ac_file. $configure_input"
24044 { echo "$as_me:$LINENO: creating $ac_file" >&5
24045echo "$as_me: creating $ac_file" >&6;}
24046 fi
24047
24048 case $ac_tag in
24049 *:-:* | *:-) cat >"$tmp/stdin";;
24050 esac
24051 ;;
24052 esac
24053
24054 ac_dir=`$as_dirname -- "$ac_file" ||
23032$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24055$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23033 X"$ac_file" : 'X\(//\)[^/]' \| \ 24056 X"$ac_file" : 'X\(//\)[^/]' \| \
23034 X"$ac_file" : 'X\(//\)$' \| \ 24057 X"$ac_file" : 'X\(//\)$' \| \
23035 X"$ac_file" : 'X\(/\)' \| \ 24058 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23036 . : '\(.\)' 2>/dev/null ||
23037echo X"$ac_file" | 24059echo X"$ac_file" |
23038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23039 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24061 s//\1/
23040 /^X\(\/\/\)$/{ s//\1/; q; } 24062 q
23041 /^X\(\/\).*/{ s//\1/; q; } 24063 }
23042 s/.*/./; q'` 24064 /^X\(\/\/\)[^/].*/{
23043 { if $as_mkdir_p; then 24065 s//\1/
23044 mkdir -p "$ac_dir" 24066 q
23045 else 24067 }
23046 as_dir="$ac_dir" 24068 /^X\(\/\/\)$/{
24069 s//\1/
24070 q
24071 }
24072 /^X\(\/\).*/{
24073 s//\1/
24074 q
24075 }
24076 s/.*/./; q'`
24077 { as_dir="$ac_dir"
24078 case $as_dir in #(
24079 -*) as_dir=./$as_dir;;
24080 esac
24081 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23047 as_dirs= 24082 as_dirs=
23048 while test ! -d "$as_dir"; do 24083 while :; do
23049 as_dirs="$as_dir $as_dirs" 24084 case $as_dir in #(
23050 as_dir=`(dirname "$as_dir") 2>/dev/null || 24085 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24086 *) as_qdir=$as_dir;;
24087 esac
24088 as_dirs="'$as_qdir' $as_dirs"
24089 as_dir=`$as_dirname -- "$as_dir" ||
23051$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24090$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23052 X"$as_dir" : 'X\(//\)[^/]' \| \ 24091 X"$as_dir" : 'X\(//\)[^/]' \| \
23053 X"$as_dir" : 'X\(//\)$' \| \ 24092 X"$as_dir" : 'X\(//\)$' \| \
23054 X"$as_dir" : 'X\(/\)' \| \ 24093 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23055 . : '\(.\)' 2>/dev/null ||
23056echo X"$as_dir" | 24094echo X"$as_dir" |
23057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23058 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24096 s//\1/
23059 /^X\(\/\/\)$/{ s//\1/; q; } 24097 q
23060 /^X\(\/\).*/{ s//\1/; q; } 24098 }
23061 s/.*/./; q'` 24099 /^X\(\/\/\)[^/].*/{
24100 s//\1/
24101 q
24102 }
24103 /^X\(\/\/\)$/{
24104 s//\1/
24105 q
24106 }
24107 /^X\(\/\).*/{
24108 s//\1/
24109 q
24110 }
24111 s/.*/./; q'`
24112 test -d "$as_dir" && break
23062 done 24113 done
23063 test ! -n "$as_dirs" || mkdir $as_dirs 24114 test -z "$as_dirs" || eval "mkdir $as_dirs"
23064 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 24115 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23065echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 24116echo "$as_me: error: cannot create directory $as_dir" >&2;}
23066 { (exit 1); exit 1; }; }; } 24117 { (exit 1); exit 1; }; }; }
23067
23068 ac_builddir=. 24118 ac_builddir=.
23069 24119
23070if test "$ac_dir" != .; then 24120case "$ac_dir" in
24121.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24122*)
23071 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 24123 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23072 # A "../" for each directory in $ac_dir_suffix. 24124 # A ".." for each directory in $ac_dir_suffix.
23073 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 24125 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23074else 24126 case $ac_top_builddir_sub in
23075 ac_dir_suffix= ac_top_builddir= 24127 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23076fi 24128 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24129 esac ;;
24130esac
24131ac_abs_top_builddir=$ac_pwd
24132ac_abs_builddir=$ac_pwd$ac_dir_suffix
24133# for backward compatibility:
24134ac_top_builddir=$ac_top_build_prefix
23077 24135
23078case $srcdir in 24136case $srcdir in
23079 .) # No --srcdir option. We are building in place. 24137 .) # We are building in place.
23080 ac_srcdir=. 24138 ac_srcdir=.
23081 if test -z "$ac_top_builddir"; then 24139 ac_top_srcdir=$ac_top_builddir_sub
23082 ac_top_srcdir=. 24140 ac_abs_top_srcdir=$ac_pwd ;;
23083 else 24141 [\\/]* | ?:[\\/]* ) # Absolute name.
23084 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23085 fi ;;
23086 [\\/]* | ?:[\\/]* ) # Absolute path.
23087 ac_srcdir=$srcdir$ac_dir_suffix; 24142 ac_srcdir=$srcdir$ac_dir_suffix;
23088 ac_top_srcdir=$srcdir ;; 24143 ac_top_srcdir=$srcdir
23089 *) # Relative path. 24144 ac_abs_top_srcdir=$srcdir ;;
23090 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 24145 *) # Relative name.
23091 ac_top_srcdir=$ac_top_builddir$srcdir ;; 24146 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24147 ac_top_srcdir=$ac_top_build_prefix$srcdir
24148 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23092esac 24149esac
24150ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23093 24151
23094# Do not use `cd foo && pwd` to compute absolute paths, because
23095# the directories may not exist.
23096case `pwd` in
23097.) ac_abs_builddir="$ac_dir";;
23098*)
23099 case "$ac_dir" in
23100 .) ac_abs_builddir=`pwd`;;
23101 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23102 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23103 esac;;
23104esac
23105case $ac_abs_builddir in
23106.) ac_abs_top_builddir=${ac_top_builddir}.;;
23107*)
23108 case ${ac_top_builddir}. in
23109 .) ac_abs_top_builddir=$ac_abs_builddir;;
23110 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23111 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23112 esac;;
23113esac
23114case $ac_abs_builddir in
23115.) ac_abs_srcdir=$ac_srcdir;;
23116*)
23117 case $ac_srcdir in
23118 .) ac_abs_srcdir=$ac_abs_builddir;;
23119 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23120 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23121 esac;;
23122esac
23123case $ac_abs_builddir in
23124.) ac_abs_top_srcdir=$ac_top_srcdir;;
23125*)
23126 case $ac_top_srcdir in
23127 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23128 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23129 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23130 esac;;
23131esac
23132 24152
24153 case $ac_mode in
24154 :F)
24155 #
24156 # CONFIG_FILE
24157 #
23133 24158
23134 case $INSTALL in 24159 case $INSTALL in
23135 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24160 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23136 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 24161 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23137 esac 24162 esac
24163_ACEOF
23138 24164
23139 # Let's still pretend it is `configure' which instantiates (i.e., don't 24165cat >>$CONFIG_STATUS <<\_ACEOF
23140 # use $as_me), people would be surprised to read: 24166# If the template does not know about datarootdir, expand it.
23141 # /* config.h. Generated by config.status. */ 24167# FIXME: This hack should be removed a few years after 2.60.
23142 if test x"$ac_file" = x-; then 24168ac_datarootdir_hack=; ac_datarootdir_seen=
23143 configure_input=
23144 else
23145 configure_input="$ac_file. "
23146 fi
23147 configure_input=$configure_input"Generated from `echo $ac_file_in |
23148 sed 's,.*/,,'` by configure."
23149
23150 # First look for the input files in the build tree, otherwise in the
23151 # src tree.
23152 ac_file_inputs=`IFS=:
23153 for f in $ac_file_in; do
23154 case $f in
23155 -) echo $tmp/stdin ;;
23156 [\\/$]*)
23157 # Absolute (can't be DOS-style, as IFS=:)
23158 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23159echo "$as_me: error: cannot find input file: $f" >&2;}
23160 { (exit 1); exit 1; }; }
23161 echo "$f";;
23162 *) # Relative
23163 if test -f "$f"; then
23164 # Build tree
23165 echo "$f"
23166 elif test -f "$srcdir/$f"; then
23167 # Source tree
23168 echo "$srcdir/$f"
23169 else
23170 # /dev/null tree
23171 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23172echo "$as_me: error: cannot find input file: $f" >&2;}
23173 { (exit 1); exit 1; }; }
23174 fi;;
23175 esac
23176 done` || { (exit 1); exit 1; }
23177 24169
23178 if test x"$ac_file" != x-; then 24170case `sed -n '/datarootdir/ {
23179 { echo "$as_me:$LINENO: creating $ac_file" >&5 24171 p
23180echo "$as_me: creating $ac_file" >&6;} 24172 q
23181 rm -f "$ac_file" 24173}
23182 fi 24174/@datadir@/p
24175/@docdir@/p
24176/@infodir@/p
24177/@localedir@/p
24178/@mandir@/p
24179' $ac_file_inputs` in
24180*datarootdir*) ac_datarootdir_seen=yes;;
24181*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24182 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24183echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24184_ACEOF
24185cat >>$CONFIG_STATUS <<_ACEOF
24186 ac_datarootdir_hack='
24187 s&@datadir@&$datadir&g
24188 s&@docdir@&$docdir&g
24189 s&@infodir@&$infodir&g
24190 s&@localedir@&$localedir&g
24191 s&@mandir@&$mandir&g
24192 s&\\\${datarootdir}&$datarootdir&g' ;;
24193esac
23183_ACEOF 24194_ACEOF
24195
24196# Neutralize VPATH when `$srcdir' = `.'.
24197# Shell code in configure.ac might set extrasub.
24198# FIXME: do we really want to maintain this feature?
23184cat >>$CONFIG_STATUS <<_ACEOF 24199cat >>$CONFIG_STATUS <<_ACEOF
23185 sed "$ac_vpsub 24200 sed "$ac_vpsub
23186$extrasub 24201$extrasub
@@ -23188,248 +24203,130 @@ _ACEOF
23188cat >>$CONFIG_STATUS <<\_ACEOF 24203cat >>$CONFIG_STATUS <<\_ACEOF
23189:t 24204:t
23190/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24205/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23191s,@configure_input@,$configure_input,;t t 24206s&@configure_input@&$configure_input&;t t
23192s,@srcdir@,$ac_srcdir,;t t 24207s&@top_builddir@&$ac_top_builddir_sub&;t t
23193s,@abs_srcdir@,$ac_abs_srcdir,;t t 24208s&@srcdir@&$ac_srcdir&;t t
23194s,@top_srcdir@,$ac_top_srcdir,;t t 24209s&@abs_srcdir@&$ac_abs_srcdir&;t t
23195s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 24210s&@top_srcdir@&$ac_top_srcdir&;t t
23196s,@builddir@,$ac_builddir,;t t 24211s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23197s,@abs_builddir@,$ac_abs_builddir,;t t 24212s&@builddir@&$ac_builddir&;t t
23198s,@top_builddir@,$ac_top_builddir,;t t 24213s&@abs_builddir@&$ac_abs_builddir&;t t
23199s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 24214s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23200s,@INSTALL@,$ac_INSTALL,;t t 24215s&@INSTALL@&$ac_INSTALL&;t t
23201" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 24216$ac_datarootdir_hack
23202 rm -f $tmp/stdin 24217" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23203 if test x"$ac_file" != x-; then 24218
23204 mv $tmp/out $ac_file 24219test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23205 else 24220 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23206 cat $tmp/out 24221 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23207 rm -f $tmp/out 24222 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23208 fi 24223which seems to be undefined. Please make sure it is defined." >&5
23209 24224echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23210done 24225which seems to be undefined. Please make sure it is defined." >&2;}
23211_ACEOF 24226
23212cat >>$CONFIG_STATUS <<\_ACEOF 24227 rm -f "$tmp/stdin"
23213
23214#
23215# CONFIG_HEADER section.
23216#
23217
23218# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23219# NAME is the cpp macro being defined and VALUE is the value it is being given.
23220#
23221# ac_d sets the value in "#define NAME VALUE" lines.
23222ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23223ac_dB='[ ].*$,\1#\2'
23224ac_dC=' '
23225ac_dD=',;t'
23226# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23227ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23228ac_uB='$,\1#\2define\3'
23229ac_uC=' '
23230ac_uD=',;t'
23231
23232for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23233 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23234 case $ac_file in 24228 case $ac_file in
23235 - | *:- | *:-:* ) # input from stdin 24229 -) cat "$tmp/out"; rm -f "$tmp/out";;
23236 cat >$tmp/stdin 24230 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23237 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23238 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23239 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23240 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23241 * ) ac_file_in=$ac_file.in ;;
23242 esac 24231 esac
23243 24232 ;;
23244 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 24233 :H)
23245echo "$as_me: creating $ac_file" >&6;} 24234 #
23246 24235 # CONFIG_HEADER
23247 # First look for the input files in the build tree, otherwise in the 24236 #
23248 # src tree.
23249 ac_file_inputs=`IFS=:
23250 for f in $ac_file_in; do
23251 case $f in
23252 -) echo $tmp/stdin ;;
23253 [\\/$]*)
23254 # Absolute (can't be DOS-style, as IFS=:)
23255 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23256echo "$as_me: error: cannot find input file: $f" >&2;}
23257 { (exit 1); exit 1; }; }
23258 # Do quote $f, to prevent DOS paths from being IFS'd.
23259 echo "$f";;
23260 *) # Relative
23261 if test -f "$f"; then
23262 # Build tree
23263 echo "$f"
23264 elif test -f "$srcdir/$f"; then
23265 # Source tree
23266 echo "$srcdir/$f"
23267 else
23268 # /dev/null tree
23269 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23270echo "$as_me: error: cannot find input file: $f" >&2;}
23271 { (exit 1); exit 1; }; }
23272 fi;;
23273 esac
23274 done` || { (exit 1); exit 1; }
23275 # Remove the trailing spaces.
23276 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23277
23278_ACEOF 24237_ACEOF
23279 24238
23280# Transform confdefs.h into two sed scripts, `conftest.defines' and 24239# Transform confdefs.h into a sed script `conftest.defines', that
23281# `conftest.undefs', that substitutes the proper values into 24240# substitutes the proper values into config.h.in to produce config.h.
23282# config.h.in to produce config.h. The first handles `#define' 24241rm -f conftest.defines conftest.tail
23283# templates, and the second `#undef' templates. 24242# First, append a space to every undef/define line, to ease matching.
23284# And first: Protect against being on the right side of a sed subst in 24243echo 's/$/ /' >conftest.defines
23285# config.status. Protect against being in an unquoted here document 24244# Then, protect against being on the right side of a sed subst, or in
23286# in config.status. 24245# an unquoted here document, in config.status. If some macros were
23287rm -f conftest.defines conftest.undefs 24246# called several times there might be several #defines for the same
23288# Using a here document instead of a string reduces the quoting nightmare. 24247# symbol, which is useless. But do not sort them, since the last
23289# Putting comments in sed scripts is not portable. 24248# AC_DEFINE must be honored.
23290# 24249ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23291# `end' is used to avoid that the second main sed command (meant for 24250# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23292# 0-ary CPP macros) applies to n-ary macro definitions. 24251# NAME is the cpp macro being defined, VALUE is the value it is being given.
23293# See the Autoconf documentation for `clear'. 24252# PARAMS is the parameter list in the macro definition--in most cases, it's
23294cat >confdef2sed.sed <<\_ACEOF 24253# just an empty string.
23295s/[\\&,]/\\&/g 24254ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23296s,[\\$`],\\&,g 24255ac_dB='\\)[ (].*,\\1define\\2'
23297t clear 24256ac_dC=' '
23298: clear 24257ac_dD=' ,'
23299s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 24258
23300t end 24259uniq confdefs.h |
23301s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 24260 sed -n '
23302: end 24261 t rset
23303_ACEOF 24262 :rset
23304# If some macros were called several times there might be several times 24263 s/^[ ]*#[ ]*define[ ][ ]*//
23305# the same #defines, which is useless. Nevertheless, we may not want to 24264 t ok
23306# sort them, since we want the *last* AC-DEFINE to be honored. 24265 d
23307uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 24266 :ok
23308sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 24267 s/[\\&,]/\\&/g
23309rm -f confdef2sed.sed 24268 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23310 24269 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23311# This sed command replaces #undef with comments. This is necessary, for 24270 ' >>conftest.defines
24271
24272# Remove the space that was appended to ease matching.
24273# Then replace #undef with comments. This is necessary, for
23312# example, in the case of _POSIX_SOURCE, which is predefined and required 24274# example, in the case of _POSIX_SOURCE, which is predefined and required
23313# on some systems where configure will not decide to define it. 24275# on some systems where configure will not decide to define it.
23314cat >>conftest.undefs <<\_ACEOF 24276# (The regexp can be short, since the line contains either #define or #undef.)
23315s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 24277echo 's/ $//
23316_ACEOF 24278s,^[ #]*u.*,/* & */,' >>conftest.defines
23317 24279
23318# Break up conftest.defines because some shells have a limit on the size 24280# Break up conftest.defines:
23319# of here documents, and old seds have small limits too (100 cmds). 24281ac_max_sed_lines=50
23320echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 24282
23321echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 24283# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23322echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 24284# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23323echo ' :' >>$CONFIG_STATUS 24285# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23324rm -f conftest.tail 24286# et cetera.
23325while grep . conftest.defines >/dev/null 24287ac_in='$ac_file_inputs'
24288ac_out='"$tmp/out1"'
24289ac_nxt='"$tmp/out2"'
24290
24291while :
23326do 24292do
23327 # Write a limited-size here document to $tmp/defines.sed. 24293 # Write a here document:
23328 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 24294 cat >>$CONFIG_STATUS <<_ACEOF
23329 # Speed up: don't consider the non `#define' lines. 24295 # First, check the format of the line:
23330 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 24296 cat >"\$tmp/defines.sed" <<\\CEOF
23331 # Work around the forget-to-reset-the-flag bug. 24297/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23332 echo 't clr' >>$CONFIG_STATUS 24298/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23333 echo ': clr' >>$CONFIG_STATUS 24299b
23334 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 24300:def
24301_ACEOF
24302 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23335 echo 'CEOF 24303 echo 'CEOF
23336 sed -f $tmp/defines.sed $tmp/in >$tmp/out 24304 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23337 rm -f $tmp/in 24305 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23338 mv $tmp/out $tmp/in 24306 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23339' >>$CONFIG_STATUS 24307 grep . conftest.tail >/dev/null || break
23340 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23341 rm -f conftest.defines 24308 rm -f conftest.defines
23342 mv conftest.tail conftest.defines 24309 mv conftest.tail conftest.defines
23343done 24310done
23344rm -f conftest.defines 24311rm -f conftest.defines conftest.tail
23345echo ' fi # grep' >>$CONFIG_STATUS
23346echo >>$CONFIG_STATUS
23347
23348# Break up conftest.undefs because some shells have a limit on the size
23349# of here documents, and old seds have small limits too (100 cmds).
23350echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23351rm -f conftest.tail
23352while grep . conftest.undefs >/dev/null
23353do
23354 # Write a limited-size here document to $tmp/undefs.sed.
23355 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23356 # Speed up: don't consider the non `#undef'
23357 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23358 # Work around the forget-to-reset-the-flag bug.
23359 echo 't clr' >>$CONFIG_STATUS
23360 echo ': clr' >>$CONFIG_STATUS
23361 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23362 echo 'CEOF
23363 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23364 rm -f $tmp/in
23365 mv $tmp/out $tmp/in
23366' >>$CONFIG_STATUS
23367 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23368 rm -f conftest.undefs
23369 mv conftest.tail conftest.undefs
23370done
23371rm -f conftest.undefs
23372 24312
24313echo "ac_result=$ac_in" >>$CONFIG_STATUS
23373cat >>$CONFIG_STATUS <<\_ACEOF 24314cat >>$CONFIG_STATUS <<\_ACEOF
23374 # Let's still pretend it is `configure' which instantiates (i.e., don't
23375 # use $as_me), people would be surprised to read:
23376 # /* config.h. Generated by config.status. */
23377 if test x"$ac_file" = x-; then
23378 echo "/* Generated by configure. */" >$tmp/config.h
23379 else
23380 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23381 fi
23382 cat $tmp/in >>$tmp/config.h
23383 rm -f $tmp/in
23384 if test x"$ac_file" != x-; then 24315 if test x"$ac_file" != x-; then
23385 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 24316 echo "/* $configure_input */" >"$tmp/config.h"
24317 cat "$ac_result" >>"$tmp/config.h"
24318 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23386 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 24319 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23387echo "$as_me: $ac_file is unchanged" >&6;} 24320echo "$as_me: $ac_file is unchanged" >&6;}
23388 else 24321 else
23389 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23390$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23391 X"$ac_file" : 'X\(//\)[^/]' \| \
23392 X"$ac_file" : 'X\(//\)$' \| \
23393 X"$ac_file" : 'X\(/\)' \| \
23394 . : '\(.\)' 2>/dev/null ||
23395echo X"$ac_file" |
23396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23397 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23398 /^X\(\/\/\)$/{ s//\1/; q; }
23399 /^X\(\/\).*/{ s//\1/; q; }
23400 s/.*/./; q'`
23401 { if $as_mkdir_p; then
23402 mkdir -p "$ac_dir"
23403 else
23404 as_dir="$ac_dir"
23405 as_dirs=
23406 while test ! -d "$as_dir"; do
23407 as_dirs="$as_dir $as_dirs"
23408 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23409$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23410 X"$as_dir" : 'X\(//\)[^/]' \| \
23411 X"$as_dir" : 'X\(//\)$' \| \
23412 X"$as_dir" : 'X\(/\)' \| \
23413 . : '\(.\)' 2>/dev/null ||
23414echo X"$as_dir" |
23415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23416 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23417 /^X\(\/\/\)$/{ s//\1/; q; }
23418 /^X\(\/\).*/{ s//\1/; q; }
23419 s/.*/./; q'`
23420 done
23421 test ! -n "$as_dirs" || mkdir $as_dirs
23422 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23423echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23424 { (exit 1); exit 1; }; }; }
23425
23426 rm -f $ac_file 24322 rm -f $ac_file
23427 mv $tmp/config.h $ac_file 24323 mv "$tmp/config.h" $ac_file
23428 fi 24324 fi
23429 else 24325 else
23430 cat $tmp/config.h 24326 echo "/* $configure_input */"
23431 rm -f $tmp/config.h 24327 cat "$ac_result"
23432 fi 24328 fi
24329 rm -f "$tmp/out12"
23433# Compute $ac_file's index in $config_headers. 24330# Compute $ac_file's index in $config_headers.
23434_am_stamp_count=1 24331_am_stamp_count=1
23435for _am_header in $config_headers :; do 24332for _am_header in $config_headers :; do
@@ -23440,135 +24337,39 @@ for _am_header in $config_headers :; do
23440 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24337 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23441 esac 24338 esac
23442done 24339done
23443echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 24340echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23444$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24341$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23445 X$ac_file : 'X\(//\)[^/]' \| \ 24342 X$ac_file : 'X\(//\)[^/]' \| \
23446 X$ac_file : 'X\(//\)$' \| \ 24343 X$ac_file : 'X\(//\)$' \| \
23447 X$ac_file : 'X\(/\)' \| \ 24344 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23448 . : '\(.\)' 2>/dev/null ||
23449echo X$ac_file | 24345echo X$ac_file |
23450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23451 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24347 s//\1/
23452 /^X\(\/\/\)$/{ s//\1/; q; } 24348 q
23453 /^X\(\/\).*/{ s//\1/; q; } 24349 }
23454 s/.*/./; q'`/stamp-h$_am_stamp_count 24350 /^X\(\/\/\)[^/].*/{
23455done 24351 s//\1/
23456_ACEOF 24352 q
23457cat >>$CONFIG_STATUS <<\_ACEOF 24353 }
23458 24354 /^X\(\/\/\)$/{
23459# 24355 s//\1/
23460# CONFIG_COMMANDS section. 24356 q
23461# 24357 }
23462for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 24358 /^X\(\/\).*/{
23463 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 24359 s//\1/
23464 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 24360 q
23465 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 24361 }
23466$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24362 s/.*/./; q'`/stamp-h$_am_stamp_count
23467 X"$ac_dest" : 'X\(//\)[^/]' \| \ 24363 ;;
23468 X"$ac_dest" : 'X\(//\)$' \| \
23469 X"$ac_dest" : 'X\(/\)' \| \
23470 . : '\(.\)' 2>/dev/null ||
23471echo X"$ac_dest" |
23472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23473 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23474 /^X\(\/\/\)$/{ s//\1/; q; }
23475 /^X\(\/\).*/{ s//\1/; q; }
23476 s/.*/./; q'`
23477 { if $as_mkdir_p; then
23478 mkdir -p "$ac_dir"
23479 else
23480 as_dir="$ac_dir"
23481 as_dirs=
23482 while test ! -d "$as_dir"; do
23483 as_dirs="$as_dir $as_dirs"
23484 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23485$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23486 X"$as_dir" : 'X\(//\)[^/]' \| \
23487 X"$as_dir" : 'X\(//\)$' \| \
23488 X"$as_dir" : 'X\(/\)' \| \
23489 . : '\(.\)' 2>/dev/null ||
23490echo X"$as_dir" |
23491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23492 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23493 /^X\(\/\/\)$/{ s//\1/; q; }
23494 /^X\(\/\).*/{ s//\1/; q; }
23495 s/.*/./; q'`
23496 done
23497 test ! -n "$as_dirs" || mkdir $as_dirs
23498 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23499echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23500 { (exit 1); exit 1; }; }; }
23501
23502 ac_builddir=.
23503
23504if test "$ac_dir" != .; then
23505 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23506 # A "../" for each directory in $ac_dir_suffix.
23507 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23508else
23509 ac_dir_suffix= ac_top_builddir=
23510fi
23511
23512case $srcdir in
23513 .) # No --srcdir option. We are building in place.
23514 ac_srcdir=.
23515 if test -z "$ac_top_builddir"; then
23516 ac_top_srcdir=.
23517 else
23518 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23519 fi ;;
23520 [\\/]* | ?:[\\/]* ) # Absolute path.
23521 ac_srcdir=$srcdir$ac_dir_suffix;
23522 ac_top_srcdir=$srcdir ;;
23523 *) # Relative path.
23524 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23525 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23526esac
23527 24364
23528# Do not use `cd foo && pwd` to compute absolute paths, because 24365 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23529# the directories may not exist. 24366echo "$as_me: executing $ac_file commands" >&6;}
23530case `pwd` in 24367 ;;
23531.) ac_abs_builddir="$ac_dir";; 24368 esac
23532*)
23533 case "$ac_dir" in
23534 .) ac_abs_builddir=`pwd`;;
23535 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23536 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23537 esac;;
23538esac
23539case $ac_abs_builddir in
23540.) ac_abs_top_builddir=${ac_top_builddir}.;;
23541*)
23542 case ${ac_top_builddir}. in
23543 .) ac_abs_top_builddir=$ac_abs_builddir;;
23544 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23545 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23546 esac;;
23547esac
23548case $ac_abs_builddir in
23549.) ac_abs_srcdir=$ac_srcdir;;
23550*)
23551 case $ac_srcdir in
23552 .) ac_abs_srcdir=$ac_abs_builddir;;
23553 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23554 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23555 esac;;
23556esac
23557case $ac_abs_builddir in
23558.) ac_abs_top_srcdir=$ac_top_srcdir;;
23559*)
23560 case $ac_top_srcdir in
23561 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23562 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23563 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23564 esac;;
23565esac
23566 24369
23567 24370
23568 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 24371 case $ac_file$ac_mode in
23569echo "$as_me: executing $ac_dest commands" >&6;} 24372 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23570 case $ac_dest in
23571 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23572 # Strip MF so we end up with the name of the file. 24373 # Strip MF so we end up with the name of the file.
23573 mf=`echo "$mf" | sed -e 's/:.*$//'` 24374 mf=`echo "$mf" | sed -e 's/:.*$//'`
23574 # Check whether this is an Automake generated Makefile or not. 24375 # Check whether this is an Automake generated Makefile or not.
@@ -23578,18 +24379,29 @@ echo "$as_me: executing $ac_dest commands" >&6;}
23578 # each Makefile.in and add a new line on top of each file to say so. 24379 # each Makefile.in and add a new line on top of each file to say so.
23579 # So let's grep whole file. 24380 # So let's grep whole file.
23580 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 24381 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23581 dirpart=`(dirname "$mf") 2>/dev/null || 24382 dirpart=`$as_dirname -- "$mf" ||
23582$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24383$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23583 X"$mf" : 'X\(//\)[^/]' \| \ 24384 X"$mf" : 'X\(//\)[^/]' \| \
23584 X"$mf" : 'X\(//\)$' \| \ 24385 X"$mf" : 'X\(//\)$' \| \
23585 X"$mf" : 'X\(/\)' \| \ 24386 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23586 . : '\(.\)' 2>/dev/null ||
23587echo X"$mf" | 24387echo X"$mf" |
23588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23589 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24389 s//\1/
23590 /^X\(\/\/\)$/{ s//\1/; q; } 24390 q
23591 /^X\(\/\).*/{ s//\1/; q; } 24391 }
23592 s/.*/./; q'` 24392 /^X\(\/\/\)[^/].*/{
24393 s//\1/
24394 q
24395 }
24396 /^X\(\/\/\)$/{
24397 s//\1/
24398 q
24399 }
24400 /^X\(\/\).*/{
24401 s//\1/
24402 q
24403 }
24404 s/.*/./; q'`
23593 else 24405 else
23594 continue 24406 continue
23595 fi 24407 fi
@@ -23617,53 +24429,79 @@ echo X"$mf" |
23617 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 24429 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23618 # Make sure the directory exists. 24430 # Make sure the directory exists.
23619 test -f "$dirpart/$file" && continue 24431 test -f "$dirpart/$file" && continue
23620 fdir=`(dirname "$file") 2>/dev/null || 24432 fdir=`$as_dirname -- "$file" ||
23621$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24433$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23622 X"$file" : 'X\(//\)[^/]' \| \ 24434 X"$file" : 'X\(//\)[^/]' \| \
23623 X"$file" : 'X\(//\)$' \| \ 24435 X"$file" : 'X\(//\)$' \| \
23624 X"$file" : 'X\(/\)' \| \ 24436 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23625 . : '\(.\)' 2>/dev/null ||
23626echo X"$file" | 24437echo X"$file" |
23627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23628 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24439 s//\1/
23629 /^X\(\/\/\)$/{ s//\1/; q; } 24440 q
23630 /^X\(\/\).*/{ s//\1/; q; } 24441 }
23631 s/.*/./; q'` 24442 /^X\(\/\/\)[^/].*/{
23632 { if $as_mkdir_p; then 24443 s//\1/
23633 mkdir -p $dirpart/$fdir 24444 q
23634 else 24445 }
23635 as_dir=$dirpart/$fdir 24446 /^X\(\/\/\)$/{
24447 s//\1/
24448 q
24449 }
24450 /^X\(\/\).*/{
24451 s//\1/
24452 q
24453 }
24454 s/.*/./; q'`
24455 { as_dir=$dirpart/$fdir
24456 case $as_dir in #(
24457 -*) as_dir=./$as_dir;;
24458 esac
24459 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23636 as_dirs= 24460 as_dirs=
23637 while test ! -d "$as_dir"; do 24461 while :; do
23638 as_dirs="$as_dir $as_dirs" 24462 case $as_dir in #(
23639 as_dir=`(dirname "$as_dir") 2>/dev/null || 24463 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24464 *) as_qdir=$as_dir;;
24465 esac
24466 as_dirs="'$as_qdir' $as_dirs"
24467 as_dir=`$as_dirname -- "$as_dir" ||
23640$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24468$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23641 X"$as_dir" : 'X\(//\)[^/]' \| \ 24469 X"$as_dir" : 'X\(//\)[^/]' \| \
23642 X"$as_dir" : 'X\(//\)$' \| \ 24470 X"$as_dir" : 'X\(//\)$' \| \
23643 X"$as_dir" : 'X\(/\)' \| \ 24471 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23644 . : '\(.\)' 2>/dev/null ||
23645echo X"$as_dir" | 24472echo X"$as_dir" |
23646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23647 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24474 s//\1/
23648 /^X\(\/\/\)$/{ s//\1/; q; } 24475 q
23649 /^X\(\/\).*/{ s//\1/; q; } 24476 }
23650 s/.*/./; q'` 24477 /^X\(\/\/\)[^/].*/{
24478 s//\1/
24479 q
24480 }
24481 /^X\(\/\/\)$/{
24482 s//\1/
24483 q
24484 }
24485 /^X\(\/\).*/{
24486 s//\1/
24487 q
24488 }
24489 s/.*/./; q'`
24490 test -d "$as_dir" && break
23651 done 24491 done
23652 test ! -n "$as_dirs" || mkdir $as_dirs 24492 test -z "$as_dirs" || eval "mkdir $as_dirs"
23653 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 24493 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23654echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 24494echo "$as_me: error: cannot create directory $as_dir" >&2;}
23655 { (exit 1); exit 1; }; }; } 24495 { (exit 1); exit 1; }; }; }
23656
23657 # echo "creating $dirpart/$file" 24496 # echo "creating $dirpart/$file"
23658 echo '# dummy' > "$dirpart/$file" 24497 echo '# dummy' > "$dirpart/$file"
23659 done 24498 done
23660done 24499done
23661 ;; 24500 ;;
24501
23662 esac 24502 esac
23663done 24503done # for ac_tag
23664_ACEOF
23665 24504
23666cat >>$CONFIG_STATUS <<\_ACEOF
23667 24505
23668{ (exit 0); exit 0; } 24506{ (exit 0); exit 0; }
23669_ACEOF 24507_ACEOF
diff --git a/libltdl/ltmain.sh b/libltdl/ltmain.sh
index 1a224ac2..c715b594 100644
--- a/libltdl/ltmain.sh
+++ b/libltdl/ltmain.sh
@@ -1,7 +1,7 @@
1# ltmain.sh - Provide generalized library-building support services. 1# ltmain.sh - Provide generalized library-building support services.
2# NOTE: Changing this file will not affect anything until you rerun configure. 2# NOTE: Changing this file will not affect anything until you rerun configure.
3# 3#
4# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004 4# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
5# Free Software Foundation, Inc. 5# Free Software Foundation, Inc.
6# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 6# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7# 7#
@@ -17,7 +17,7 @@
17# 17#
18# You should have received a copy of the GNU General Public License 18# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software 19# along with this program; if not, write to the Free Software
20# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 20# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21# 21#
22# As a special exception to the GNU General Public License, if you 22# As a special exception to the GNU General Public License, if you
23# distribute this file as part of a program that contains a 23# distribute this file as part of a program that contains a
@@ -43,9 +43,14 @@ EXIT_FAILURE=1
43 43
44PROGRAM=ltmain.sh 44PROGRAM=ltmain.sh
45PACKAGE=libtool 45PACKAGE=libtool
46VERSION=1.5.6 46VERSION="1.5.22 Debian 1.5.22-4"
47TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42) Debian$Rev: 224 $" 47TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
48 48
49# See if we are running on zsh, and set the options which allow our
50# commands through without removal of \ escapes.
51if test -n "${ZSH_VERSION+set}" ; then
52 setopt NO_GLOB_SUBST
53fi
49 54
50# Check that we have a working $echo. 55# Check that we have a working $echo.
51if test "X$1" = X--no-reexec; then 56if test "X$1" = X--no-reexec; then
@@ -83,14 +88,15 @@ rm="rm -f"
83Xsed="${SED}"' -e 1s/^X//' 88Xsed="${SED}"' -e 1s/^X//'
84sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g' 89sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
85# test EBCDIC or ASCII 90# test EBCDIC or ASCII
86case `echo A|tr A '\301'` in 91case `echo X|tr X '\101'` in
87 A) # EBCDIC based system 92 A) # ASCII based system
88 SP2NL="tr '\100' '\n'" 93 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
89 NL2SP="tr '\r\n' '\100\100'" 94 SP2NL='tr \040 \012'
95 NL2SP='tr \015\012 \040\040'
90 ;; 96 ;;
91 *) # Assume ASCII based system 97 *) # EBCDIC based system
92 SP2NL="tr '\040' '\012'" 98 SP2NL='tr \100 \n'
93 NL2SP="tr '\015\012' '\040\040'" 99 NL2SP='tr \r\n \100\100'
94 ;; 100 ;;
95esac 101esac
96 102
@@ -107,8 +113,9 @@ if test "${LANG+set}" = set; then
107fi 113fi
108 114
109# Make sure IFS has a sensible default 115# Make sure IFS has a sensible default
110: ${IFS=" 116lt_nl='
111"} 117'
118IFS=" $lt_nl"
112 119
113if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then 120if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
114 $echo "$modename: not configured to build any kind of library" 1>&2 121 $echo "$modename: not configured to build any kind of library" 1>&2
@@ -125,6 +132,8 @@ run=
125show="$echo" 132show="$echo"
126show_help= 133show_help=
127execute_dlfiles= 134execute_dlfiles=
135duplicate_deps=no
136preserve_args=
128lo2o="s/\\.lo\$/.${objext}/" 137lo2o="s/\\.lo\$/.${objext}/"
129o2lo="s/\\.${objext}\$/.lo/" 138o2lo="s/\\.${objext}\$/.lo/"
130 139
@@ -132,13 +141,51 @@ o2lo="s/\\.${objext}\$/.lo/"
132# Shell function definitions: 141# Shell function definitions:
133# This seems to be the best place for them 142# This seems to be the best place for them
134 143
144# func_mktempdir [string]
145# Make a temporary directory that won't clash with other running
146# libtool processes, and avoids race conditions if possible. If
147# given, STRING is the basename for that directory.
148func_mktempdir ()
149{
150 my_template="${TMPDIR-/tmp}/${1-$progname}"
151
152 if test "$run" = ":"; then
153 # Return a directory name, but don't create it in dry-run mode
154 my_tmpdir="${my_template}-$$"
155 else
156
157 # If mktemp works, use that first and foremost
158 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
159
160 if test ! -d "$my_tmpdir"; then
161 # Failing that, at least try and use $RANDOM to avoid a race
162 my_tmpdir="${my_template}-${RANDOM-0}$$"
163
164 save_mktempdir_umask=`umask`
165 umask 0077
166 $mkdir "$my_tmpdir"
167 umask $save_mktempdir_umask
168 fi
169
170 # If we're not in dry-run mode, bomb out on failure
171 test -d "$my_tmpdir" || {
172 $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
173 exit $EXIT_FAILURE
174 }
175 fi
176
177 $echo "X$my_tmpdir" | $Xsed
178}
179
180
135# func_win32_libid arg 181# func_win32_libid arg
136# return the library type of file 'arg' 182# return the library type of file 'arg'
137# 183#
138# Need a lot of goo to handle *both* DLLs and import libs 184# Need a lot of goo to handle *both* DLLs and import libs
139# Has to be a shell function in order to 'eat' the argument 185# Has to be a shell function in order to 'eat' the argument
140# that is supplied when $file_magic_command is called. 186# that is supplied when $file_magic_command is called.
141func_win32_libid () { 187func_win32_libid ()
188{
142 win32_libid_type="unknown" 189 win32_libid_type="unknown"
143 win32_fileres=`file -L $1 2>/dev/null` 190 win32_fileres=`file -L $1 2>/dev/null`
144 case $win32_fileres in 191 case $win32_fileres in
@@ -149,12 +196,11 @@ func_win32_libid () {
149 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ 196 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
150 $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then 197 $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
151 win32_nmres=`eval $NM -f posix -A $1 | \ 198 win32_nmres=`eval $NM -f posix -A $1 | \
152 sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'` 199 $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
153 if test "X$win32_nmres" = "Ximport" ; then 200 case $win32_nmres in
154 win32_libid_type="x86 archive import" 201 import*) win32_libid_type="x86 archive import";;
155 else 202 *) win32_libid_type="x86 archive static";;
156 win32_libid_type="x86 archive static" 203 esac
157 fi
158 fi 204 fi
159 ;; 205 ;;
160 *DLL*) 206 *DLL*)
@@ -178,7 +224,8 @@ func_win32_libid () {
178# Only attempt this if the compiler in the base compile 224# Only attempt this if the compiler in the base compile
179# command doesn't match the default compiler. 225# command doesn't match the default compiler.
180# arg is usually of the form 'gcc ...' 226# arg is usually of the form 'gcc ...'
181func_infer_tag () { 227func_infer_tag ()
228{
182 if test -n "$available_tags" && test -z "$tagname"; then 229 if test -n "$available_tags" && test -z "$tagname"; then
183 CC_quoted= 230 CC_quoted=
184 for arg in $CC; do 231 for arg in $CC; do
@@ -235,12 +282,116 @@ func_infer_tag () {
235 esac 282 esac
236 fi 283 fi
237} 284}
285
286
287# func_extract_an_archive dir oldlib
288func_extract_an_archive ()
289{
290 f_ex_an_ar_dir="$1"; shift
291 f_ex_an_ar_oldlib="$1"
292
293 $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
294 $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
295 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
296 :
297 else
298 $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
299 exit $EXIT_FAILURE
300 fi
301}
302
303# func_extract_archives gentop oldlib ...
304func_extract_archives ()
305{
306 my_gentop="$1"; shift
307 my_oldlibs=${1+"$@"}
308 my_oldobjs=""
309 my_xlib=""
310 my_xabs=""
311 my_xdir=""
312 my_status=""
313
314 $show "${rm}r $my_gentop"
315 $run ${rm}r "$my_gentop"
316 $show "$mkdir $my_gentop"
317 $run $mkdir "$my_gentop"
318 my_status=$?
319 if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
320 exit $my_status
321 fi
322
323 for my_xlib in $my_oldlibs; do
324 # Extract the objects.
325 case $my_xlib in
326 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
327 *) my_xabs=`pwd`"/$my_xlib" ;;
328 esac
329 my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
330 my_xdir="$my_gentop/$my_xlib"
331
332 $show "${rm}r $my_xdir"
333 $run ${rm}r "$my_xdir"
334 $show "$mkdir $my_xdir"
335 $run $mkdir "$my_xdir"
336 exit_status=$?
337 if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
338 exit $exit_status
339 fi
340 case $host in
341 *-darwin*)
342 $show "Extracting $my_xabs"
343 # Do not bother doing anything if just a dry run
344 if test -z "$run"; then
345 darwin_orig_dir=`pwd`
346 cd $my_xdir || exit $?
347 darwin_archive=$my_xabs
348 darwin_curdir=`pwd`
349 darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
350 darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
351 if test -n "$darwin_arches"; then
352 darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
353 darwin_arch=
354 $show "$darwin_base_archive has multiple architectures $darwin_arches"
355 for darwin_arch in $darwin_arches ; do
356 mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
357 lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
358 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
359 func_extract_an_archive "`pwd`" "${darwin_base_archive}"
360 cd "$darwin_curdir"
361 $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
362 done # $darwin_arches
363 ## Okay now we have a bunch of thin objects, gotta fatten them up :)
364 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
365 darwin_file=
366 darwin_files=
367 for darwin_file in $darwin_filelist; do
368 darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
369 lipo -create -output "$darwin_file" $darwin_files
370 done # $darwin_filelist
371 ${rm}r unfat-$$
372 cd "$darwin_orig_dir"
373 else
374 cd "$darwin_orig_dir"
375 func_extract_an_archive "$my_xdir" "$my_xabs"
376 fi # $darwin_arches
377 fi # $run
378 ;;
379 *)
380 func_extract_an_archive "$my_xdir" "$my_xabs"
381 ;;
382 esac
383 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
384 done
385 func_extract_archives_result="$my_oldobjs"
386}
238# End of Shell function definitions 387# End of Shell function definitions
239##################################### 388#####################################
240 389
241# Darwin sucks 390# Darwin sucks
242eval std_shrext=\"$shrext_cmds\" 391eval std_shrext=\"$shrext_cmds\"
243 392
393disable_libs=no
394
244# Parse our command line options once, thoroughly. 395# Parse our command line options once, thoroughly.
245while test "$#" -gt 0 396while test "$#" -gt 0
246do 397do
@@ -305,10 +456,10 @@ do
305 --version) 456 --version)
306 $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP" 457 $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
307 $echo 458 $echo
308 $echo "Copyright (C) 2003 Free Software Foundation, Inc." 459 $echo "Copyright (C) 2005 Free Software Foundation, Inc."
309 $echo "This is free software; see the source for copying conditions. There is NO" 460 $echo "This is free software; see the source for copying conditions. There is NO"
310 $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 461 $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
311 exit $EXIT_SUCCESS 462 exit $?
312 ;; 463 ;;
313 464
314 --config) 465 --config)
@@ -317,7 +468,7 @@ do
317 for tagname in $taglist; do 468 for tagname in $taglist; do
318 ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath" 469 ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
319 done 470 done
320 exit $EXIT_SUCCESS 471 exit $?
321 ;; 472 ;;
322 473
323 --debug) 474 --debug)
@@ -342,7 +493,7 @@ do
342 else 493 else
343 $echo "disable static libraries" 494 $echo "disable static libraries"
344 fi 495 fi
345 exit $EXIT_SUCCESS 496 exit $?
346 ;; 497 ;;
347 498
348 --finish) mode="finish" ;; 499 --finish) mode="finish" ;;
@@ -357,7 +508,11 @@ do
357 preserve_args="$preserve_args $arg" 508 preserve_args="$preserve_args $arg"
358 ;; 509 ;;
359 510
360 --tag) prevopt="--tag" prev=tag ;; 511 --tag)
512 prevopt="--tag"
513 prev=tag
514 preserve_args="$preserve_args --tag"
515 ;;
361 --tag=*) 516 --tag=*)
362 set tag "$optarg" ${1+"$@"} 517 set tag "$optarg" ${1+"$@"}
363 shift 518 shift
@@ -389,6 +544,18 @@ if test -n "$prevopt"; then
389 exit $EXIT_FAILURE 544 exit $EXIT_FAILURE
390fi 545fi
391 546
547case $disable_libs in
548no)
549 ;;
550shared)
551 build_libtool_libs=no
552 build_old_libs=yes
553 ;;
554static)
555 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
556 ;;
557esac
558
392# If this variable is set in any of the actions, the command in it 559# If this variable is set in any of the actions, the command in it
393# will be execed at the end. This prevents here-documents from being 560# will be execed at the end. This prevents here-documents from being
394# left over by shells. 561# left over by shells.
@@ -399,7 +566,7 @@ if test -z "$show_help"; then
399 # Infer the operation mode. 566 # Infer the operation mode.
400 if test -z "$mode"; then 567 if test -z "$mode"; then
401 $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2 568 $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
402 $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2 569 $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
403 case $nonopt in 570 case $nonopt in
404 *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*) 571 *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
405 mode=link 572 mode=link
@@ -465,7 +632,7 @@ if test -z "$show_help"; then
465 632
466 for arg 633 for arg
467 do 634 do
468 case "$arg_mode" in 635 case $arg_mode in
469 arg ) 636 arg )
470 # do not "continue". Instead, add this to base_compile 637 # do not "continue". Instead, add this to base_compile
471 lastarg="$arg" 638 lastarg="$arg"
@@ -547,7 +714,10 @@ if test -z "$show_help"; then
547 case $lastarg in 714 case $lastarg in
548 # Double-quote args containing other shell metacharacters. 715 # Double-quote args containing other shell metacharacters.
549 # Many Bourne shells cannot handle close brackets correctly 716 # Many Bourne shells cannot handle close brackets correctly
550 # in scan sets, so we specify it separately. 717 # in scan sets, and some SunOS ksh mistreat backslash-escaping
718 # in scan sets (worked around with variable expansion),
719 # and furthermore cannot handle '|' '&' '(' ')' in scan sets
720 # at all, so we specify them separately.
551 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") 721 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
552 lastarg="\"$lastarg\"" 722 lastarg="\"$lastarg\""
553 ;; 723 ;;
@@ -621,6 +791,14 @@ if test -z "$show_help"; then
621 esac 791 esac
622 done 792 done
623 793
794 qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
795 case $qlibobj in
796 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
797 qlibobj="\"$qlibobj\"" ;;
798 esac
799 test "X$libobj" != "X$qlibobj" \
800 && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
801 && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
624 objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` 802 objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
625 xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` 803 xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
626 if test "X$xdir" = "X$obj"; then 804 if test "X$xdir" = "X$obj"; then
@@ -693,12 +871,17 @@ compiler."
693 $run $rm $removelist 871 $run $rm $removelist
694 exit $EXIT_FAILURE 872 exit $EXIT_FAILURE
695 fi 873 fi
696 $echo $srcfile > "$lockfile" 874 $echo "$srcfile" > "$lockfile"
697 fi 875 fi
698 876
699 if test -n "$fix_srcfile_path"; then 877 if test -n "$fix_srcfile_path"; then
700 eval srcfile=\"$fix_srcfile_path\" 878 eval srcfile=\"$fix_srcfile_path\"
701 fi 879 fi
880 qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
881 case $qsrcfile in
882 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
883 qsrcfile="\"$qsrcfile\"" ;;
884 esac
702 885
703 $run $rm "$libobj" "${libobj}T" 886 $run $rm "$libobj" "${libobj}T"
704 887
@@ -720,18 +903,18 @@ EOF
720 fbsd_hideous_sh_bug=$base_compile 903 fbsd_hideous_sh_bug=$base_compile
721 904
722 if test "$pic_mode" != no; then 905 if test "$pic_mode" != no; then
723 command="$base_compile $srcfile $pic_flag" 906 command="$base_compile $qsrcfile $pic_flag"
724 else 907 else
725 # Don't build PIC code 908 # Don't build PIC code
726 command="$base_compile $srcfile" 909 command="$base_compile $qsrcfile"
727 fi 910 fi
728 911
729 if test ! -d "${xdir}$objdir"; then 912 if test ! -d "${xdir}$objdir"; then
730 $show "$mkdir ${xdir}$objdir" 913 $show "$mkdir ${xdir}$objdir"
731 $run $mkdir ${xdir}$objdir 914 $run $mkdir ${xdir}$objdir
732 status=$? 915 exit_status=$?
733 if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then 916 if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
734 exit $status 917 exit $exit_status
735 fi 918 fi
736 fi 919 fi
737 920
@@ -803,9 +986,9 @@ EOF
803 if test "$build_old_libs" = yes; then 986 if test "$build_old_libs" = yes; then
804 if test "$pic_mode" != yes; then 987 if test "$pic_mode" != yes; then
805 # Don't build PIC code 988 # Don't build PIC code
806 command="$base_compile $srcfile" 989 command="$base_compile $qsrcfile"
807 else 990 else
808 command="$base_compile $srcfile $pic_flag" 991 command="$base_compile $qsrcfile $pic_flag"
809 fi 992 fi
810 if test "$compiler_c_o" = yes; then 993 if test "$compiler_c_o" = yes; then
811 command="$command -o $obj" 994 command="$command -o $obj"
@@ -934,6 +1117,7 @@ EOF
934 no_install=no 1117 no_install=no
935 objs= 1118 objs=
936 non_pic_objects= 1119 non_pic_objects=
1120 notinst_path= # paths that contain not-installed libtool libraries
937 precious_files_regex= 1121 precious_files_regex=
938 prefer_static_libs=no 1122 prefer_static_libs=no
939 preload=no 1123 preload=no
@@ -962,14 +1146,15 @@ EOF
962 if test -n "$link_static_flag"; then 1146 if test -n "$link_static_flag"; then
963 dlopen_self=$dlopen_self_static 1147 dlopen_self=$dlopen_self_static
964 fi 1148 fi
1149 prefer_static_libs=yes
965 else 1150 else
966 if test -z "$pic_flag" && test -n "$link_static_flag"; then 1151 if test -z "$pic_flag" && test -n "$link_static_flag"; then
967 dlopen_self=$dlopen_self_static 1152 dlopen_self=$dlopen_self_static
968 fi 1153 fi
1154 prefer_static_libs=built
969 fi 1155 fi
970 build_libtool_libs=no 1156 build_libtool_libs=no
971 build_old_libs=yes 1157 build_old_libs=yes
972 prefer_static_libs=yes
973 break 1158 break
974 ;; 1159 ;;
975 esac 1160 esac
@@ -1144,6 +1329,11 @@ EOF
1144 if test -z "$pic_object" || test "$pic_object" = none ; then 1329 if test -z "$pic_object" || test "$pic_object" = none ; then
1145 arg="$non_pic_object" 1330 arg="$non_pic_object"
1146 fi 1331 fi
1332 else
1333 # If the PIC object exists, use it instead.
1334 # $xdir was prepended to $pic_object above.
1335 non_pic_object="$pic_object"
1336 non_pic_objects="$non_pic_objects $non_pic_object"
1147 fi 1337 fi
1148 else 1338 else
1149 # Only an error if not doing a dry-run. 1339 # Only an error if not doing a dry-run.
@@ -1227,6 +1417,13 @@ EOF
1227 prev= 1417 prev=
1228 continue 1418 continue
1229 ;; 1419 ;;
1420 darwin_framework|darwin_framework_skip)
1421 test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
1422 compile_command="$compile_command $arg"
1423 finalize_command="$finalize_command $arg"
1424 prev=
1425 continue
1426 ;;
1230 *) 1427 *)
1231 eval "$prev=\"\$arg\"" 1428 eval "$prev=\"\$arg\""
1232 prev= 1429 prev=
@@ -1285,6 +1482,18 @@ EOF
1285 continue 1482 continue
1286 ;; 1483 ;;
1287 1484
1485 -framework|-arch|-isysroot)
1486 case " $CC " in
1487 *" ${arg} ${1} "* | *" ${arg} ${1} "*)
1488 prev=darwin_framework_skip ;;
1489 *) compiler_flags="$compiler_flags $arg"
1490 prev=darwin_framework ;;
1491 esac
1492 compile_command="$compile_command $arg"
1493 finalize_command="$finalize_command $arg"
1494 continue
1495 ;;
1496
1288 -inst-prefix-dir) 1497 -inst-prefix-dir)
1289 prev=inst_prefix 1498 prev=inst_prefix
1290 continue 1499 continue
@@ -1311,7 +1520,8 @@ EOF
1311 absdir=`cd "$dir" && pwd` 1520 absdir=`cd "$dir" && pwd`
1312 if test -z "$absdir"; then 1521 if test -z "$absdir"; then
1313 $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 1522 $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
1314 exit $EXIT_FAILURE 1523 absdir="$dir"
1524 notinst_path="$notinst_path $dir"
1315 fi 1525 fi
1316 dir="$absdir" 1526 dir="$absdir"
1317 ;; 1527 ;;
@@ -1325,10 +1535,15 @@ EOF
1325 esac 1535 esac
1326 case $host in 1536 case $host in
1327 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) 1537 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1538 testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
1328 case :$dllsearchpath: in 1539 case :$dllsearchpath: in
1329 *":$dir:"*) ;; 1540 *":$dir:"*) ;;
1330 *) dllsearchpath="$dllsearchpath:$dir";; 1541 *) dllsearchpath="$dllsearchpath:$dir";;
1331 esac 1542 esac
1543 case :$dllsearchpath: in
1544 *":$testbindir:"*) ;;
1545 *) dllsearchpath="$dllsearchpath:$testbindir";;
1546 esac
1332 ;; 1547 ;;
1333 esac 1548 esac
1334 continue 1549 continue
@@ -1337,15 +1552,15 @@ EOF
1337 -l*) 1552 -l*)
1338 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then 1553 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
1339 case $host in 1554 case $host in
1340 *-*-cygwin* | *-*-pw32* | *-*-beos*) 1555 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
1341 # These systems don't actually have a C or math library (as such) 1556 # These systems don't actually have a C or math library (as such)
1342 continue 1557 continue
1343 ;; 1558 ;;
1344 *-*-mingw* | *-*-os2*) 1559 *-*-os2*)
1345 # These systems don't actually have a C library (as such) 1560 # These systems don't actually have a C library (as such)
1346 test "X$arg" = "X-lc" && continue 1561 test "X$arg" = "X-lc" && continue
1347 ;; 1562 ;;
1348 *-*-openbsd* | *-*-freebsd*) 1563 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
1349 # Do not include libc due to us having libc/libc_r. 1564 # Do not include libc due to us having libc/libc_r.
1350 test "X$arg" = "X-lc" && continue 1565 test "X$arg" = "X-lc" && continue
1351 ;; 1566 ;;
@@ -1353,10 +1568,19 @@ EOF
1353 # Rhapsody C and math libraries are in the System framework 1568 # Rhapsody C and math libraries are in the System framework
1354 deplibs="$deplibs -framework System" 1569 deplibs="$deplibs -framework System"
1355 continue 1570 continue
1571 ;;
1572 *-*-sco3.2v5* | *-*-sco5v6*)
1573 # Causes problems with __ctype
1574 test "X$arg" = "X-lc" && continue
1575 ;;
1576 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
1577 # Compiler inserts libc in the correct place for threads to work
1578 test "X$arg" = "X-lc" && continue
1579 ;;
1356 esac 1580 esac
1357 elif test "X$arg" = "X-lc_r"; then 1581 elif test "X$arg" = "X-lc_r"; then
1358 case $host in 1582 case $host in
1359 *-*-openbsd* | *-*-freebsd*) 1583 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
1360 # Do not include libc_r directly, use -pthread flag. 1584 # Do not include libc_r directly, use -pthread flag.
1361 continue 1585 continue
1362 ;; 1586 ;;
@@ -1366,8 +1590,20 @@ EOF
1366 continue 1590 continue
1367 ;; 1591 ;;
1368 1592
1593 # Tru64 UNIX uses -model [arg] to determine the layout of C++
1594 # classes, name mangling, and exception handling.
1595 -model)
1596 compile_command="$compile_command $arg"
1597 compiler_flags="$compiler_flags $arg"
1598 finalize_command="$finalize_command $arg"
1599 prev=xcompiler
1600 continue
1601 ;;
1602
1369 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) 1603 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
1370 deplibs="$deplibs $arg" 1604 compiler_flags="$compiler_flags $arg"
1605 compile_command="$compile_command $arg"
1606 finalize_command="$finalize_command $arg"
1371 continue 1607 continue
1372 ;; 1608 ;;
1373 1609
@@ -1376,13 +1612,19 @@ EOF
1376 continue 1612 continue
1377 ;; 1613 ;;
1378 1614
1379 # gcc -m* arguments should be passed to the linker via $compiler_flags 1615 # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
1380 # in order to pass architecture information to the linker 1616 # -r[0-9][0-9]* specifies the processor on the SGI compiler
1381 # (e.g. 32 vs 64-bit). This may also be accomplished via -Wl,-mfoo 1617 # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
1382 # but this is not reliable with gcc because gcc may use -mfoo to 1618 # +DA*, +DD* enable 64-bit mode on the HP compiler
1383 # select a different linker, different libraries, etc, while 1619 # -q* pass through compiler args for the IBM compiler
1384 # -Wl,-mfoo simply passes -mfoo to the linker. 1620 # -m* pass through architecture-specific compiler args for GCC
1385 -m*) 1621 # -m*, -t[45]*, -txscale* pass through architecture-specific
1622 # compiler args for GCC
1623 # -pg pass through profiling flag for GCC
1624 # @file GCC response files
1625 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
1626 -t[45]*|-txscale*|@*)
1627
1386 # Unknown arguments in both finalize_command and compile_command need 1628 # Unknown arguments in both finalize_command and compile_command need
1387 # to be aesthetically quoted because they are evaled later. 1629 # to be aesthetically quoted because they are evaled later.
1388 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` 1630 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
@@ -1393,9 +1635,7 @@ EOF
1393 esac 1635 esac
1394 compile_command="$compile_command $arg" 1636 compile_command="$compile_command $arg"
1395 finalize_command="$finalize_command $arg" 1637 finalize_command="$finalize_command $arg"
1396 if test "$with_gcc" = "yes" ; then 1638 compiler_flags="$compiler_flags $arg"
1397 compiler_flags="$compiler_flags $arg"
1398 fi
1399 continue 1639 continue
1400 ;; 1640 ;;
1401 1641
@@ -1633,6 +1873,11 @@ EOF
1633 if test -z "$pic_object" || test "$pic_object" = none ; then 1873 if test -z "$pic_object" || test "$pic_object" = none ; then
1634 arg="$non_pic_object" 1874 arg="$non_pic_object"
1635 fi 1875 fi
1876 else
1877 # If the PIC object exists, use it instead.
1878 # $xdir was prepended to $pic_object above.
1879 non_pic_object="$pic_object"
1880 non_pic_objects="$non_pic_objects $non_pic_object"
1636 fi 1881 fi
1637 else 1882 else
1638 # Only an error if not doing a dry-run. 1883 # Only an error if not doing a dry-run.
@@ -1738,9 +1983,9 @@ EOF
1738 if test ! -d "$output_objdir"; then 1983 if test ! -d "$output_objdir"; then
1739 $show "$mkdir $output_objdir" 1984 $show "$mkdir $output_objdir"
1740 $run $mkdir $output_objdir 1985 $run $mkdir $output_objdir
1741 status=$? 1986 exit_status=$?
1742 if test "$status" -ne 0 && test ! -d "$output_objdir"; then 1987 if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
1743 exit $status 1988 exit $exit_status
1744 fi 1989 fi
1745 fi 1990 fi
1746 1991
@@ -1803,7 +2048,6 @@ EOF
1803 newlib_search_path= 2048 newlib_search_path=
1804 need_relink=no # whether we're linking any uninstalled libtool libraries 2049 need_relink=no # whether we're linking any uninstalled libtool libraries
1805 notinst_deplibs= # not-installed libtool libraries 2050 notinst_deplibs= # not-installed libtool libraries
1806 notinst_path= # paths that contain not-installed libtool libraries
1807 case $linkmode in 2051 case $linkmode in
1808 lib) 2052 lib)
1809 passes="conv link" 2053 passes="conv link"
@@ -1858,7 +2102,7 @@ EOF
1858 compile_deplibs="$deplib $compile_deplibs" 2102 compile_deplibs="$deplib $compile_deplibs"
1859 finalize_deplibs="$deplib $finalize_deplibs" 2103 finalize_deplibs="$deplib $finalize_deplibs"
1860 else 2104 else
1861 deplibs="$deplib $deplibs" 2105 compiler_flags="$compiler_flags $deplib"
1862 fi 2106 fi
1863 continue 2107 continue
1864 ;; 2108 ;;
@@ -1977,7 +2221,22 @@ EOF
1977 fi 2221 fi
1978 case $linkmode in 2222 case $linkmode in
1979 lib) 2223 lib)
1980 if test "$deplibs_check_method" != pass_all; then 2224 valid_a_lib=no
2225 case $deplibs_check_method in
2226 match_pattern*)
2227 set dummy $deplibs_check_method
2228 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
2229 if eval $echo \"$deplib\" 2>/dev/null \
2230 | $SED 10q \
2231 | $EGREP "$match_pattern_regex" > /dev/null; then
2232 valid_a_lib=yes
2233 fi
2234 ;;
2235 pass_all)
2236 valid_a_lib=yes
2237 ;;
2238 esac
2239 if test "$valid_a_lib" != yes; then
1981 $echo 2240 $echo
1982 $echo "*** Warning: Trying to link with static lib archive $deplib." 2241 $echo "*** Warning: Trying to link with static lib archive $deplib."
1983 $echo "*** I have the capability to make that library automatically link in when" 2242 $echo "*** I have the capability to make that library automatically link in when"
@@ -2027,7 +2286,7 @@ EOF
2027 esac # case $deplib 2286 esac # case $deplib
2028 if test "$found" = yes || test -f "$lib"; then : 2287 if test "$found" = yes || test -f "$lib"; then :
2029 else 2288 else
2030 $echo "$modename: cannot find the library \`$lib'" 1>&2 2289 $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
2031 exit $EXIT_FAILURE 2290 exit $EXIT_FAILURE
2032 fi 2291 fi
2033 2292
@@ -2051,6 +2310,8 @@ EOF
2051 # it will not redefine variables installed, or shouldnotlink 2310 # it will not redefine variables installed, or shouldnotlink
2052 installed=yes 2311 installed=yes
2053 shouldnotlink=no 2312 shouldnotlink=no
2313 avoidtemprpath=
2314
2054 2315
2055 # Read the .la file 2316 # Read the .la file
2056 case $lib in 2317 case $lib in
@@ -2149,11 +2410,19 @@ EOF
2149 dir="$libdir" 2410 dir="$libdir"
2150 absdir="$libdir" 2411 absdir="$libdir"
2151 fi 2412 fi
2413 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
2152 else 2414 else
2153 dir="$ladir/$objdir" 2415 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
2154 absdir="$abs_ladir/$objdir" 2416 dir="$ladir"
2155 # Remove this search path later 2417 absdir="$abs_ladir"
2156 notinst_path="$notinst_path $abs_ladir" 2418 # Remove this search path later
2419 notinst_path="$notinst_path $abs_ladir"
2420 else
2421 dir="$ladir/$objdir"
2422 absdir="$abs_ladir/$objdir"
2423 # Remove this search path later
2424 notinst_path="$notinst_path $abs_ladir"
2425 fi
2157 fi # $installed = yes 2426 fi # $installed = yes
2158 name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` 2427 name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
2159 2428
@@ -2226,12 +2495,12 @@ EOF
2226 if test -n "$library_names" && 2495 if test -n "$library_names" &&
2227 { test "$prefer_static_libs" = no || test -z "$old_library"; }; then 2496 { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
2228 # We need to hardcode the library path 2497 # We need to hardcode the library path
2229 if test -n "$shlibpath_var"; then 2498 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
2230 # Make sure the rpath contains only unique directories. 2499 # Make sure the rpath contains only unique directories.
2231 case "$temp_rpath " in 2500 case "$temp_rpath " in
2232 *" $dir "*) ;; 2501 *" $dir "*) ;;
2233 *" $absdir "*) ;; 2502 *" $absdir "*) ;;
2234 *) temp_rpath="$temp_rpath $dir" ;; 2503 *) temp_rpath="$temp_rpath $absdir" ;;
2235 esac 2504 esac
2236 fi 2505 fi
2237 2506
@@ -2268,8 +2537,12 @@ EOF
2268 fi 2537 fi
2269 2538
2270 link_static=no # Whether the deplib will be linked statically 2539 link_static=no # Whether the deplib will be linked statically
2540 use_static_libs=$prefer_static_libs
2541 if test "$use_static_libs" = built && test "$installed" = yes ; then
2542 use_static_libs=no
2543 fi
2271 if test -n "$library_names" && 2544 if test -n "$library_names" &&
2272 { test "$prefer_static_libs" = no || test -z "$old_library"; }; then 2545 { test "$use_static_libs" = no || test -z "$old_library"; }; then
2273 if test "$installed" = no; then 2546 if test "$installed" = no; then
2274 notinst_deplibs="$notinst_deplibs $lib" 2547 notinst_deplibs="$notinst_deplibs $lib"
2275 need_relink=yes 2548 need_relink=yes
@@ -2382,11 +2655,15 @@ EOF
2382 if test "$hardcode_direct" = no; then 2655 if test "$hardcode_direct" = no; then
2383 add="$dir/$linklib" 2656 add="$dir/$linklib"
2384 case $host in 2657 case $host in
2385 *-*-sco3.2v5* ) add_dir="-L$dir" ;; 2658 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
2659 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
2660 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
2661 *-*-unixware7*) add_dir="-L$dir" ;;
2386 *-*-darwin* ) 2662 *-*-darwin* )
2387 # if the lib is a module then we can not link against 2663 # if the lib is a module then we can not link against
2388 # it, someone is ignoring the new warnings I added 2664 # it, someone is ignoring the new warnings I added
2389 if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then 2665 if /usr/bin/file -L $add 2> /dev/null |
2666 $EGREP ": [^:]* bundle" >/dev/null ; then
2390 $echo "** Warning, lib $linklib is a module, not a shared library" 2667 $echo "** Warning, lib $linklib is a module, not a shared library"
2391 if test -z "$old_library" ; then 2668 if test -z "$old_library" ; then
2392 $echo 2669 $echo
@@ -2417,7 +2694,7 @@ EOF
2417 add_dir="-L$dir" 2694 add_dir="-L$dir"
2418 # Try looking first in the location we're being installed to. 2695 # Try looking first in the location we're being installed to.
2419 if test -n "$inst_prefix_dir"; then 2696 if test -n "$inst_prefix_dir"; then
2420 case "$libdir" in 2697 case $libdir in
2421 [\\/]*) 2698 [\\/]*)
2422 add_dir="$add_dir -L$inst_prefix_dir$libdir" 2699 add_dir="$add_dir -L$inst_prefix_dir$libdir"
2423 ;; 2700 ;;
@@ -2490,7 +2767,7 @@ EOF
2490 add_dir="-L$libdir" 2767 add_dir="-L$libdir"
2491 # Try looking first in the location we're being installed to. 2768 # Try looking first in the location we're being installed to.
2492 if test -n "$inst_prefix_dir"; then 2769 if test -n "$inst_prefix_dir"; then
2493 case "$libdir" in 2770 case $libdir in
2494 [\\/]*) 2771 [\\/]*)
2495 add_dir="$add_dir -L$inst_prefix_dir$libdir" 2772 add_dir="$add_dir -L$inst_prefix_dir$libdir"
2496 ;; 2773 ;;
@@ -2551,8 +2828,6 @@ EOF
2551 fi 2828 fi
2552 fi 2829 fi
2553 else 2830 else
2554 convenience="$convenience $dir/$old_library"
2555 old_convenience="$old_convenience $dir/$old_library"
2556 deplibs="$dir/$old_library $deplibs" 2831 deplibs="$dir/$old_library $deplibs"
2557 link_static=yes 2832 link_static=yes
2558 fi 2833 fi
@@ -2670,12 +2945,12 @@ EOF
2670 *) continue ;; 2945 *) continue ;;
2671 esac 2946 esac
2672 case " $deplibs " in 2947 case " $deplibs " in
2673 *" $depdepl "*) ;; 2948 *" $path "*) ;;
2674 *) deplibs="$depdepl $deplibs" ;; 2949 *) deplibs="$path $deplibs" ;;
2675 esac 2950 esac
2676 case " $deplibs " in 2951 case " $deplibs " in
2677 *" $path "*) ;; 2952 *" $depdepl "*) ;;
2678 *) deplibs="$deplibs $path" ;; 2953 *) deplibs="$depdepl $deplibs" ;;
2679 esac 2954 esac
2680 done 2955 done
2681 fi # link_all_deplibs != no 2956 fi # link_all_deplibs != no
@@ -2947,7 +3222,7 @@ EOF
2947 case $current in 3222 case $current in
2948 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; 3223 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
2949 *) 3224 *)
2950 $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2 3225 $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
2951 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 3226 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
2952 exit $EXIT_FAILURE 3227 exit $EXIT_FAILURE
2953 ;; 3228 ;;
@@ -2956,7 +3231,7 @@ EOF
2956 case $revision in 3231 case $revision in
2957 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; 3232 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
2958 *) 3233 *)
2959 $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2 3234 $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
2960 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 3235 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
2961 exit $EXIT_FAILURE 3236 exit $EXIT_FAILURE
2962 ;; 3237 ;;
@@ -2965,7 +3240,7 @@ EOF
2965 case $age in 3240 case $age in
2966 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; 3241 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
2967 *) 3242 *)
2968 $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2 3243 $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
2969 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 3244 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
2970 exit $EXIT_FAILURE 3245 exit $EXIT_FAILURE
2971 ;; 3246 ;;
@@ -2991,7 +3266,7 @@ EOF
2991 versuffix="$major.$age.$revision" 3266 versuffix="$major.$age.$revision"
2992 # Darwin ld doesn't like 0 for these options... 3267 # Darwin ld doesn't like 0 for these options...
2993 minor_current=`expr $current + 1` 3268 minor_current=`expr $current + 1`
2994 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" 3269 verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
2995 ;; 3270 ;;
2996 3271
2997 freebsd-aout) 3272 freebsd-aout)
@@ -3144,9 +3419,9 @@ EOF
3144 3419
3145 # Eliminate all temporary directories. 3420 # Eliminate all temporary directories.
3146 for path in $notinst_path; do 3421 for path in $notinst_path; do
3147 lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'` 3422 lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
3148 deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'` 3423 deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
3149 dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'` 3424 dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
3150 done 3425 done
3151 3426
3152 if test -n "$xrpath"; then 3427 if test -n "$xrpath"; then
@@ -3197,9 +3472,14 @@ EOF
3197 *-*-netbsd*) 3472 *-*-netbsd*)
3198 # Don't link with libc until the a.out ld.so is fixed. 3473 # Don't link with libc until the a.out ld.so is fixed.
3199 ;; 3474 ;;
3200 *-*-openbsd* | *-*-freebsd*) 3475 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
3201 # Do not include libc due to us having libc/libc_r. 3476 # Do not include libc due to us having libc/libc_r.
3202 test "X$arg" = "X-lc" && continue 3477 ;;
3478 *-*-sco3.2v5* | *-*-sco5v6*)
3479 # Causes problems with __ctype
3480 ;;
3481 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
3482 # Compiler inserts libc in the correct place for threads to work
3203 ;; 3483 ;;
3204 *) 3484 *)
3205 # Add libc to deplibs on all other systems if necessary. 3485 # Add libc to deplibs on all other systems if necessary.
@@ -3243,11 +3523,11 @@ EOF
3243 int main() { return 0; } 3523 int main() { return 0; }
3244EOF 3524EOF
3245 $rm conftest 3525 $rm conftest
3246 $LTCC -o conftest conftest.c $deplibs 3526 $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
3247 if test "$?" -eq 0 ; then 3527 if test "$?" -eq 0 ; then
3248 ldd_output=`ldd conftest` 3528 ldd_output=`ldd conftest`
3249 for i in $deplibs; do 3529 for i in $deplibs; do
3250 name="`expr $i : '-l\(.*\)'`" 3530 name=`expr $i : '-l\(.*\)'`
3251 # If $name is empty we are operating on a -L argument. 3531 # If $name is empty we are operating on a -L argument.
3252 if test "$name" != "" && test "$name" -ne "0"; then 3532 if test "$name" != "" && test "$name" -ne "0"; then
3253 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then 3533 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
@@ -3284,11 +3564,11 @@ EOF
3284 # Error occurred in the first compile. Let's try to salvage 3564 # Error occurred in the first compile. Let's try to salvage
3285 # the situation: Compile a separate program for each library. 3565 # the situation: Compile a separate program for each library.
3286 for i in $deplibs; do 3566 for i in $deplibs; do
3287 name="`expr $i : '-l\(.*\)'`" 3567 name=`expr $i : '-l\(.*\)'`
3288 # If $name is empty we are operating on a -L argument. 3568 # If $name is empty we are operating on a -L argument.
3289 if test "$name" != "" && test "$name" != "0"; then 3569 if test "$name" != "" && test "$name" != "0"; then
3290 $rm conftest 3570 $rm conftest
3291 $LTCC -o conftest conftest.c $i 3571 $LTCC $LTCFLAGS -o conftest conftest.c $i
3292 # Did it work? 3572 # Did it work?
3293 if test "$?" -eq 0 ; then 3573 if test "$?" -eq 0 ; then
3294 ldd_output=`ldd conftest` 3574 ldd_output=`ldd conftest`
@@ -3336,7 +3616,7 @@ EOF
3336 set dummy $deplibs_check_method 3616 set dummy $deplibs_check_method
3337 file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` 3617 file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
3338 for a_deplib in $deplibs; do 3618 for a_deplib in $deplibs; do
3339 name="`expr $a_deplib : '-l\(.*\)'`" 3619 name=`expr $a_deplib : '-l\(.*\)'`
3340 # If $name is empty we are operating on a -L argument. 3620 # If $name is empty we are operating on a -L argument.
3341 if test "$name" != "" && test "$name" != "0"; then 3621 if test "$name" != "" && test "$name" != "0"; then
3342 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then 3622 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
@@ -3405,7 +3685,7 @@ EOF
3405 set dummy $deplibs_check_method 3685 set dummy $deplibs_check_method
3406 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` 3686 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
3407 for a_deplib in $deplibs; do 3687 for a_deplib in $deplibs; do
3408 name="`expr $a_deplib : '-l\(.*\)'`" 3688 name=`expr $a_deplib : '-l\(.*\)'`
3409 # If $name is empty we are operating on a -L argument. 3689 # If $name is empty we are operating on a -L argument.
3410 if test -n "$name" && test "$name" != "0"; then 3690 if test -n "$name" && test "$name" != "0"; then
3411 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then 3691 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
@@ -3535,6 +3815,35 @@ EOF
3535 deplibs=$newdeplibs 3815 deplibs=$newdeplibs
3536 fi 3816 fi
3537 3817
3818
3819 # move library search paths that coincide with paths to not yet
3820 # installed libraries to the beginning of the library search list
3821 new_libs=
3822 for path in $notinst_path; do
3823 case " $new_libs " in
3824 *" -L$path/$objdir "*) ;;
3825 *)
3826 case " $deplibs " in
3827 *" -L$path/$objdir "*)
3828 new_libs="$new_libs -L$path/$objdir" ;;
3829 esac
3830 ;;
3831 esac
3832 done
3833 for deplib in $deplibs; do
3834 case $deplib in
3835 -L*)
3836 case " $new_libs " in
3837 *" $deplib "*) ;;
3838 *) new_libs="$new_libs $deplib" ;;
3839 esac
3840 ;;
3841 *) new_libs="$new_libs $deplib" ;;
3842 esac
3843 done
3844 deplibs="$new_libs"
3845
3846
3538 # All the library-specific variables (install_libdir is set above). 3847 # All the library-specific variables (install_libdir is set above).
3539 library_names= 3848 library_names=
3540 old_library= 3849 old_library=
@@ -3618,6 +3927,7 @@ EOF
3618 fi 3927 fi
3619 3928
3620 lib="$output_objdir/$realname" 3929 lib="$output_objdir/$realname"
3930 linknames=
3621 for link 3931 for link
3622 do 3932 do
3623 linknames="$linknames $link" 3933 linknames="$linknames $link"
@@ -3646,6 +3956,9 @@ EOF
3646 # The command line is too long to execute in one step. 3956 # The command line is too long to execute in one step.
3647 $show "using reloadable object file for export list..." 3957 $show "using reloadable object file for export list..."
3648 skipped_export=: 3958 skipped_export=:
3959 # Break out early, otherwise skipped_export may be
3960 # set to false by a later but shorter cmd.
3961 break
3649 fi 3962 fi
3650 done 3963 done
3651 IFS="$save_ifs" 3964 IFS="$save_ifs"
@@ -3679,67 +3992,13 @@ EOF
3679 eval libobjs=\"\$libobjs $whole_archive_flag_spec\" 3992 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
3680 else 3993 else
3681 gentop="$output_objdir/${outputname}x" 3994 gentop="$output_objdir/${outputname}x"
3682 $show "${rm}r $gentop"
3683 $run ${rm}r "$gentop"
3684 $show "$mkdir $gentop"
3685 $run $mkdir "$gentop"
3686 status=$?
3687 if test "$status" -ne 0 && test ! -d "$gentop"; then
3688 exit $status
3689 fi
3690 generated="$generated $gentop" 3995 generated="$generated $gentop"
3691 3996
3692 for xlib in $convenience; do 3997 func_extract_archives $gentop $convenience
3693 # Extract the objects. 3998 libobjs="$libobjs $func_extract_archives_result"
3694 case $xlib in
3695 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
3696 *) xabs=`pwd`"/$xlib" ;;
3697 esac
3698 xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
3699 xdir="$gentop/$xlib"
3700
3701 $show "${rm}r $xdir"
3702 $run ${rm}r "$xdir"
3703 $show "$mkdir $xdir"
3704 $run $mkdir "$xdir"
3705 status=$?
3706 if test "$status" -ne 0 && test ! -d "$xdir"; then
3707 exit $status
3708 fi
3709 # We will extract separately just the conflicting names and we will no
3710 # longer touch any unique names. It is faster to leave these extract
3711 # automatically by $AR in one run.
3712 $show "(cd $xdir && $AR x $xabs)"
3713 $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
3714 if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
3715 :
3716 else
3717 $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
3718 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
3719 $AR t "$xabs" | sort | uniq -cd | while read -r count name
3720 do
3721 i=1
3722 while test "$i" -le "$count"
3723 do
3724 # Put our $i before any first dot (extension)
3725 # Never overwrite any file
3726 name_to="$name"
3727 while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
3728 do
3729 name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
3730 done
3731 $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
3732 $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
3733 i=`expr $i + 1`
3734 done
3735 done
3736 fi
3737
3738 libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
3739 done
3740 fi 3999 fi
3741 fi 4000 fi
3742 4001
3743 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then 4002 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
3744 eval flag=\"$thread_safe_flag_spec\" 4003 eval flag=\"$thread_safe_flag_spec\"
3745 linker_flags="$linker_flags $flag" 4004 linker_flags="$linker_flags $flag"
@@ -3769,7 +4028,8 @@ EOF
3769 fi 4028 fi
3770 fi 4029 fi
3771 4030
3772 if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` && 4031 if test "X$skipped_export" != "X:" &&
4032 len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
3773 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then 4033 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
3774 : 4034 :
3775 else 4035 else
@@ -3788,6 +4048,7 @@ EOF
3788 save_libobjs=$libobjs 4048 save_libobjs=$libobjs
3789 fi 4049 fi
3790 save_output=$output 4050 save_output=$output
4051 output_la=`$echo "X$output" | $Xsed -e "$basename"`
3791 4052
3792 # Clear the reloadable object creation command queue and 4053 # Clear the reloadable object creation command queue and
3793 # initialize k to one. 4054 # initialize k to one.
@@ -3797,13 +4058,13 @@ EOF
3797 delfiles= 4058 delfiles=
3798 last_robj= 4059 last_robj=
3799 k=1 4060 k=1
3800 output=$output_objdir/$save_output-${k}.$objext 4061 output=$output_objdir/$output_la-${k}.$objext
3801 # Loop over the list of objects to be linked. 4062 # Loop over the list of objects to be linked.
3802 for obj in $save_libobjs 4063 for obj in $save_libobjs
3803 do 4064 do
3804 eval test_cmds=\"$reload_cmds $objlist $last_robj\" 4065 eval test_cmds=\"$reload_cmds $objlist $last_robj\"
3805 if test "X$objlist" = X || 4066 if test "X$objlist" = X ||
3806 { len=`expr "X$test_cmds" : ".*"` && 4067 { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
3807 test "$len" -le "$max_cmd_len"; }; then 4068 test "$len" -le "$max_cmd_len"; }; then
3808 objlist="$objlist $obj" 4069 objlist="$objlist $obj"
3809 else 4070 else
@@ -3817,9 +4078,9 @@ EOF
3817 # the last one created. 4078 # the last one created.
3818 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\" 4079 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
3819 fi 4080 fi
3820 last_robj=$output_objdir/$save_output-${k}.$objext 4081 last_robj=$output_objdir/$output_la-${k}.$objext
3821 k=`expr $k + 1` 4082 k=`expr $k + 1`
3822 output=$output_objdir/$save_output-${k}.$objext 4083 output=$output_objdir/$output_la-${k}.$objext
3823 objlist=$obj 4084 objlist=$obj
3824 len=1 4085 len=1
3825 fi 4086 fi
@@ -3839,13 +4100,13 @@ EOF
3839 eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\" 4100 eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
3840 fi 4101 fi
3841 4102
3842 # Set up a command to remove the reloadale object files 4103 # Set up a command to remove the reloadable object files
3843 # after they are used. 4104 # after they are used.
3844 i=0 4105 i=0
3845 while test "$i" -lt "$k" 4106 while test "$i" -lt "$k"
3846 do 4107 do
3847 i=`expr $i + 1` 4108 i=`expr $i + 1`
3848 delfiles="$delfiles $output_objdir/$save_output-${i}.$objext" 4109 delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
3849 done 4110 done
3850 4111
3851 $echo "creating a temporary reloadable object file: $output" 4112 $echo "creating a temporary reloadable object file: $output"
@@ -3893,13 +4154,30 @@ EOF
3893 IFS="$save_ifs" 4154 IFS="$save_ifs"
3894 eval cmd=\"$cmd\" 4155 eval cmd=\"$cmd\"
3895 $show "$cmd" 4156 $show "$cmd"
3896 $run eval "$cmd" || exit $? 4157 $run eval "$cmd" || {
4158 lt_exit=$?
4159
4160 # Restore the uninstalled library and exit
4161 if test "$mode" = relink; then
4162 $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
4163 fi
4164
4165 exit $lt_exit
4166 }
3897 done 4167 done
3898 IFS="$save_ifs" 4168 IFS="$save_ifs"
3899 4169
3900 # Restore the uninstalled library and exit 4170 # Restore the uninstalled library and exit
3901 if test "$mode" = relink; then 4171 if test "$mode" = relink; then
3902 $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $? 4172 $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
4173
4174 if test -n "$convenience"; then
4175 if test -z "$whole_archive_flag_spec"; then
4176 $show "${rm}r $gentop"
4177 $run ${rm}r "$gentop"
4178 fi
4179 fi
4180
3903 exit $EXIT_SUCCESS 4181 exit $EXIT_SUCCESS
3904 fi 4182 fi
3905 4183
@@ -3977,64 +4255,10 @@ EOF
3977 eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\" 4255 eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
3978 else 4256 else
3979 gentop="$output_objdir/${obj}x" 4257 gentop="$output_objdir/${obj}x"
3980 $show "${rm}r $gentop"
3981 $run ${rm}r "$gentop"
3982 $show "$mkdir $gentop"
3983 $run $mkdir "$gentop"
3984 status=$?
3985 if test "$status" -ne 0 && test ! -d "$gentop"; then
3986 exit $status
3987 fi
3988 generated="$generated $gentop" 4258 generated="$generated $gentop"
3989 4259
3990 for xlib in $convenience; do 4260 func_extract_archives $gentop $convenience
3991 # Extract the objects. 4261 reload_conv_objs="$reload_objs $func_extract_archives_result"
3992 case $xlib in
3993 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
3994 *) xabs=`pwd`"/$xlib" ;;
3995 esac
3996 xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
3997 xdir="$gentop/$xlib"
3998
3999 $show "${rm}r $xdir"
4000 $run ${rm}r "$xdir"
4001 $show "$mkdir $xdir"
4002 $run $mkdir "$xdir"
4003 status=$?
4004 if test "$status" -ne 0 && test ! -d "$xdir"; then
4005 exit $status
4006 fi
4007 # We will extract separately just the conflicting names and we will no
4008 # longer touch any unique names. It is faster to leave these extract
4009 # automatically by $AR in one run.
4010 $show "(cd $xdir && $AR x $xabs)"
4011 $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
4012 if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
4013 :
4014 else
4015 $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
4016 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
4017 $AR t "$xabs" | sort | uniq -cd | while read -r count name
4018 do
4019 i=1
4020 while test "$i" -le "$count"
4021 do
4022 # Put our $i before any first dot (extension)
4023 # Never overwrite any file
4024 name_to="$name"
4025 while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
4026 do
4027 name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
4028 done
4029 $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
4030 $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
4031 i=`expr $i + 1`
4032 done
4033 done
4034 fi
4035
4036 reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
4037 done
4038 fi 4262 fi
4039 fi 4263 fi
4040 4264
@@ -4135,6 +4359,35 @@ EOF
4135 ;; 4359 ;;
4136 esac 4360 esac
4137 4361
4362
4363 # move library search paths that coincide with paths to not yet
4364 # installed libraries to the beginning of the library search list
4365 new_libs=
4366 for path in $notinst_path; do
4367 case " $new_libs " in
4368 *" -L$path/$objdir "*) ;;
4369 *)
4370 case " $compile_deplibs " in
4371 *" -L$path/$objdir "*)
4372 new_libs="$new_libs -L$path/$objdir" ;;
4373 esac
4374 ;;
4375 esac
4376 done
4377 for deplib in $compile_deplibs; do
4378 case $deplib in
4379 -L*)
4380 case " $new_libs " in
4381 *" $deplib "*) ;;
4382 *) new_libs="$new_libs $deplib" ;;
4383 esac
4384 ;;
4385 *) new_libs="$new_libs $deplib" ;;
4386 esac
4387 done
4388 compile_deplibs="$new_libs"
4389
4390
4138 compile_command="$compile_command $compile_deplibs" 4391 compile_command="$compile_command $compile_deplibs"
4139 finalize_command="$finalize_command $finalize_deplibs" 4392 finalize_command="$finalize_command $finalize_deplibs"
4140 4393
@@ -4179,10 +4432,15 @@ EOF
4179 fi 4432 fi
4180 case $host in 4433 case $host in
4181 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) 4434 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
4435 testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
4182 case :$dllsearchpath: in 4436 case :$dllsearchpath: in
4183 *":$libdir:"*) ;; 4437 *":$libdir:"*) ;;
4184 *) dllsearchpath="$dllsearchpath:$libdir";; 4438 *) dllsearchpath="$dllsearchpath:$libdir";;
4185 esac 4439 esac
4440 case :$dllsearchpath: in
4441 *":$testbindir:"*) ;;
4442 *) dllsearchpath="$dllsearchpath:$testbindir";;
4443 esac
4186 ;; 4444 ;;
4187 esac 4445 esac
4188 done 4446 done
@@ -4296,13 +4554,25 @@ extern \"C\" {
4296 4554
4297 # Prepare the list of exported symbols 4555 # Prepare the list of exported symbols
4298 if test -z "$export_symbols"; then 4556 if test -z "$export_symbols"; then
4299 export_symbols="$output_objdir/$output.exp" 4557 export_symbols="$output_objdir/$outputname.exp"
4300 $run $rm $export_symbols 4558 $run $rm $export_symbols
4301 $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' 4559 $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4560 case $host in
4561 *cygwin* | *mingw* )
4562 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4563 $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
4564 ;;
4565 esac
4302 else 4566 else
4303 $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"' 4567 $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4304 $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T' 4568 $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4305 $run eval 'mv "$nlist"T "$nlist"' 4569 $run eval 'mv "$nlist"T "$nlist"'
4570 case $host in
4571 *cygwin* | *mingw* )
4572 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4573 $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
4574 ;;
4575 esac
4306 fi 4576 fi
4307 fi 4577 fi
4308 4578
@@ -4353,7 +4623,26 @@ extern \"C\" {
4353#endif 4623#endif
4354 4624
4355/* The mapping between symbol names and symbols. */ 4625/* The mapping between symbol names and symbols. */
4626"
4627
4628 case $host in
4629 *cygwin* | *mingw* )
4630 $echo >> "$output_objdir/$dlsyms" "\
4631/* DATA imports from DLLs on WIN32 can't be const, because
4632 runtime relocations are performed -- see ld's documentation
4633 on pseudo-relocs */
4634struct {
4635"
4636 ;;
4637 * )
4638 $echo >> "$output_objdir/$dlsyms" "\
4356const struct { 4639const struct {
4640"
4641 ;;
4642 esac
4643
4644
4645 $echo >> "$output_objdir/$dlsyms" "\
4357 const char *name; 4646 const char *name;
4358 lt_ptr address; 4647 lt_ptr address;
4359} 4648}
@@ -4400,16 +4689,29 @@ static const void *lt_preloaded_setup() {
4400 esac 4689 esac
4401 4690
4402 # Now compile the dynamic symbol file. 4691 # Now compile the dynamic symbol file.
4403 $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" 4692 $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
4404 $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $? 4693 $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
4405 4694
4406 # Clean up the generated files. 4695 # Clean up the generated files.
4407 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T" 4696 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
4408 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T" 4697 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
4409 4698
4410 # Transform the symbol file into the correct name. 4699 # Transform the symbol file into the correct name.
4411 compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` 4700 case $host in
4412 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` 4701 *cygwin* | *mingw* )
4702 if test -f "$output_objdir/${outputname}.def" ; then
4703 compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
4704 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
4705 else
4706 compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4707 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4708 fi
4709 ;;
4710 * )
4711 compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4712 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4713 ;;
4714 esac
4413 ;; 4715 ;;
4414 *) 4716 *)
4415 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 4717 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
@@ -4434,7 +4736,7 @@ static const void *lt_preloaded_setup() {
4434 # We have no uninstalled library dependencies, so finalize right now. 4736 # We have no uninstalled library dependencies, so finalize right now.
4435 $show "$link_command" 4737 $show "$link_command"
4436 $run eval "$link_command" 4738 $run eval "$link_command"
4437 status=$? 4739 exit_status=$?
4438 4740
4439 # Delete the generated files. 4741 # Delete the generated files.
4440 if test -n "$dlsyms"; then 4742 if test -n "$dlsyms"; then
@@ -4442,7 +4744,7 @@ static const void *lt_preloaded_setup() {
4442 $run $rm "$output_objdir/${outputname}S.${objext}" 4744 $run $rm "$output_objdir/${outputname}S.${objext}"
4443 fi 4745 fi
4444 4746
4445 exit $status 4747 exit $exit_status
4446 fi 4748 fi
4447 4749
4448 if test -n "$shlibpath_var"; then 4750 if test -n "$shlibpath_var"; then
@@ -4582,10 +4884,12 @@ static const void *lt_preloaded_setup() {
4582 esac 4884 esac
4583 case $host in 4885 case $host in
4584 *cygwin* | *mingw* ) 4886 *cygwin* | *mingw* )
4585 cwrappersource=`$echo ${objdir}/lt-${output}.c` 4887 output_name=`basename $output`
4586 cwrapper=`$echo ${output}.exe` 4888 output_path=`dirname $output`
4587 $rm $cwrappersource $cwrapper 4889 cwrappersource="$output_path/$objdir/lt-$output_name.c"
4588 trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 4890 cwrapper="$output_path/$output_name.exe"
4891 $rm $cwrappersource $cwrapper
4892 trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
4589 4893
4590 cat > $cwrappersource <<EOF 4894 cat > $cwrappersource <<EOF
4591 4895
@@ -4610,6 +4914,9 @@ EOF
4610#include <malloc.h> 4914#include <malloc.h>
4611#include <stdarg.h> 4915#include <stdarg.h>
4612#include <assert.h> 4916#include <assert.h>
4917#include <string.h>
4918#include <ctype.h>
4919#include <sys/stat.h>
4613 4920
4614#if defined(PATH_MAX) 4921#if defined(PATH_MAX)
4615# define LT_PATHMAX PATH_MAX 4922# define LT_PATHMAX PATH_MAX
@@ -4620,15 +4927,19 @@ EOF
4620#endif 4927#endif
4621 4928
4622#ifndef DIR_SEPARATOR 4929#ifndef DIR_SEPARATOR
4623#define DIR_SEPARATOR '/' 4930# define DIR_SEPARATOR '/'
4931# define PATH_SEPARATOR ':'
4624#endif 4932#endif
4625 4933
4626#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ 4934#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4627 defined (__OS2__) 4935 defined (__OS2__)
4628#define HAVE_DOS_BASED_FILE_SYSTEM 4936# define HAVE_DOS_BASED_FILE_SYSTEM
4629#ifndef DIR_SEPARATOR_2 4937# ifndef DIR_SEPARATOR_2
4630#define DIR_SEPARATOR_2 '\\' 4938# define DIR_SEPARATOR_2 '\\'
4631#endif 4939# endif
4940# ifndef PATH_SEPARATOR_2
4941# define PATH_SEPARATOR_2 ';'
4942# endif
4632#endif 4943#endif
4633 4944
4634#ifndef DIR_SEPARATOR_2 4945#ifndef DIR_SEPARATOR_2
@@ -4638,17 +4949,32 @@ EOF
4638 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) 4949 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
4639#endif /* DIR_SEPARATOR_2 */ 4950#endif /* DIR_SEPARATOR_2 */
4640 4951
4952#ifndef PATH_SEPARATOR_2
4953# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
4954#else /* PATH_SEPARATOR_2 */
4955# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
4956#endif /* PATH_SEPARATOR_2 */
4957
4641#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) 4958#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
4642#define XFREE(stale) do { \ 4959#define XFREE(stale) do { \
4643 if (stale) { free ((void *) stale); stale = 0; } \ 4960 if (stale) { free ((void *) stale); stale = 0; } \
4644} while (0) 4961} while (0)
4645 4962
4963/* -DDEBUG is fairly common in CFLAGS. */
4964#undef DEBUG
4965#if defined DEBUGWRAPPER
4966# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
4967#else
4968# define DEBUG(format, ...)
4969#endif
4970
4646const char *program_name = NULL; 4971const char *program_name = NULL;
4647 4972
4648void * xmalloc (size_t num); 4973void * xmalloc (size_t num);
4649char * xstrdup (const char *string); 4974char * xstrdup (const char *string);
4650char * basename (const char *name); 4975const char * base_name (const char *name);
4651char * fnqualify(const char *path); 4976char * find_executable(const char *wrapper);
4977int check_executable(const char *path);
4652char * strendzap(char *str, const char *pat); 4978char * strendzap(char *str, const char *pat);
4653void lt_fatal (const char *message, ...); 4979void lt_fatal (const char *message, ...);
4654 4980
@@ -4658,29 +4984,51 @@ main (int argc, char *argv[])
4658 char **newargz; 4984 char **newargz;
4659 int i; 4985 int i;
4660 4986
4661 program_name = (char *) xstrdup ((char *) basename (argv[0])); 4987 program_name = (char *) xstrdup (base_name (argv[0]));
4988 DEBUG("(main) argv[0] : %s\n",argv[0]);
4989 DEBUG("(main) program_name : %s\n",program_name);
4662 newargz = XMALLOC(char *, argc+2); 4990 newargz = XMALLOC(char *, argc+2);
4663EOF 4991EOF
4664 4992
4665 cat >> $cwrappersource <<EOF 4993 cat >> $cwrappersource <<EOF
4666 newargz[0] = "$SHELL"; 4994 newargz[0] = (char *) xstrdup("$SHELL");
4667EOF 4995EOF
4668 4996
4669 cat >> $cwrappersource <<"EOF" 4997 cat >> $cwrappersource <<"EOF"
4670 newargz[1] = fnqualify(argv[0]); 4998 newargz[1] = find_executable(argv[0]);
4999 if (newargz[1] == NULL)
5000 lt_fatal("Couldn't find %s", argv[0]);
5001 DEBUG("(main) found exe at : %s\n",newargz[1]);
4671 /* we know the script has the same name, without the .exe */ 5002 /* we know the script has the same name, without the .exe */
4672 /* so make sure newargz[1] doesn't end in .exe */ 5003 /* so make sure newargz[1] doesn't end in .exe */
4673 strendzap(newargz[1],".exe"); 5004 strendzap(newargz[1],".exe");
4674 for (i = 1; i < argc; i++) 5005 for (i = 1; i < argc; i++)
4675 newargz[i+1] = xstrdup(argv[i]); 5006 newargz[i+1] = xstrdup(argv[i]);
4676 newargz[argc+1] = NULL; 5007 newargz[argc+1] = NULL;
5008
5009 for (i=0; i<argc+1; i++)
5010 {
5011 DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
5012 ;
5013 }
5014
4677EOF 5015EOF
4678 5016
4679 cat >> $cwrappersource <<EOF 5017 case $host_os in
5018 mingw*)
5019 cat >> $cwrappersource <<EOF
5020 execv("$SHELL",(char const **)newargz);
5021EOF
5022 ;;
5023 *)
5024 cat >> $cwrappersource <<EOF
4680 execv("$SHELL",newargz); 5025 execv("$SHELL",newargz);
4681EOF 5026EOF
5027 ;;
5028 esac
4682 5029
4683 cat >> $cwrappersource <<"EOF" 5030 cat >> $cwrappersource <<"EOF"
5031 return 127;
4684} 5032}
4685 5033
4686void * 5034void *
@@ -4700,48 +5048,148 @@ xstrdup (const char *string)
4700; 5048;
4701} 5049}
4702 5050
4703char * 5051const char *
4704basename (const char *name) 5052base_name (const char *name)
4705{ 5053{
4706 const char *base; 5054 const char *base;
4707 5055
4708#if defined (HAVE_DOS_BASED_FILE_SYSTEM) 5056#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4709 /* Skip over the disk name in MSDOS pathnames. */ 5057 /* Skip over the disk name in MSDOS pathnames. */
4710 if (isalpha (name[0]) && name[1] == ':') 5058 if (isalpha ((unsigned char)name[0]) && name[1] == ':')
4711 name += 2; 5059 name += 2;
4712#endif 5060#endif
4713 5061
4714 for (base = name; *name; name++) 5062 for (base = name; *name; name++)
4715 if (IS_DIR_SEPARATOR (*name)) 5063 if (IS_DIR_SEPARATOR (*name))
4716 base = name + 1; 5064 base = name + 1;
4717 return (char *) base; 5065 return base;
4718} 5066}
4719 5067
5068int
5069check_executable(const char * path)
5070{
5071 struct stat st;
5072
5073 DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
5074 if ((!path) || (!*path))
5075 return 0;
5076
5077 if ((stat (path, &st) >= 0) &&
5078 (
5079 /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
5080#if defined (S_IXOTH)
5081 ((st.st_mode & S_IXOTH) == S_IXOTH) ||
5082#endif
5083#if defined (S_IXGRP)
5084 ((st.st_mode & S_IXGRP) == S_IXGRP) ||
5085#endif
5086 ((st.st_mode & S_IXUSR) == S_IXUSR))
5087 )
5088 return 1;
5089 else
5090 return 0;
5091}
5092
5093/* Searches for the full path of the wrapper. Returns
5094 newly allocated full path name if found, NULL otherwise */
4720char * 5095char *
4721fnqualify(const char *path) 5096find_executable (const char* wrapper)
4722{ 5097{
4723 size_t size; 5098 int has_slash = 0;
4724 char *p; 5099 const char* p;
5100 const char* p_next;
5101 /* static buffer for getcwd */
4725 char tmp[LT_PATHMAX + 1]; 5102 char tmp[LT_PATHMAX + 1];
5103 int tmp_len;
5104 char* concat_name;
4726 5105
4727 assert(path != NULL); 5106 DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
4728 5107
4729 /* Is it qualified already? */ 5108 if ((wrapper == NULL) || (*wrapper == '\0'))
5109 return NULL;
5110
5111 /* Absolute path? */
4730#if defined (HAVE_DOS_BASED_FILE_SYSTEM) 5112#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4731 if (isalpha (path[0]) && path[1] == ':') 5113 if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
4732 return xstrdup (path); 5114 {
5115 concat_name = xstrdup (wrapper);
5116 if (check_executable(concat_name))
5117 return concat_name;
5118 XFREE(concat_name);
5119 }
5120 else
5121 {
5122#endif
5123 if (IS_DIR_SEPARATOR (wrapper[0]))
5124 {
5125 concat_name = xstrdup (wrapper);
5126 if (check_executable(concat_name))
5127 return concat_name;
5128 XFREE(concat_name);
5129 }
5130#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5131 }
4733#endif 5132#endif
4734 if (IS_DIR_SEPARATOR (path[0]))
4735 return xstrdup (path);
4736 5133
4737 /* prepend the current directory */ 5134 for (p = wrapper; *p; p++)
4738 /* doesn't handle '~' */ 5135 if (*p == '/')
5136 {
5137 has_slash = 1;
5138 break;
5139 }
5140 if (!has_slash)
5141 {
5142 /* no slashes; search PATH */
5143 const char* path = getenv ("PATH");
5144 if (path != NULL)
5145 {
5146 for (p = path; *p; p = p_next)
5147 {
5148 const char* q;
5149 size_t p_len;
5150 for (q = p; *q; q++)
5151 if (IS_PATH_SEPARATOR(*q))
5152 break;
5153 p_len = q - p;
5154 p_next = (*q == '\0' ? q : q + 1);
5155 if (p_len == 0)
5156 {
5157 /* empty path: current directory */
5158 if (getcwd (tmp, LT_PATHMAX) == NULL)
5159 lt_fatal ("getcwd failed");
5160 tmp_len = strlen(tmp);
5161 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5162 memcpy (concat_name, tmp, tmp_len);
5163 concat_name[tmp_len] = '/';
5164 strcpy (concat_name + tmp_len + 1, wrapper);
5165 }
5166 else
5167 {
5168 concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
5169 memcpy (concat_name, p, p_len);
5170 concat_name[p_len] = '/';
5171 strcpy (concat_name + p_len + 1, wrapper);
5172 }
5173 if (check_executable(concat_name))
5174 return concat_name;
5175 XFREE(concat_name);
5176 }
5177 }
5178 /* not found in PATH; assume curdir */
5179 }
5180 /* Relative path | not found in path: prepend cwd */
4739 if (getcwd (tmp, LT_PATHMAX) == NULL) 5181 if (getcwd (tmp, LT_PATHMAX) == NULL)
4740 lt_fatal ("getcwd failed"); 5182 lt_fatal ("getcwd failed");
4741 size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */ 5183 tmp_len = strlen(tmp);
4742 p = XMALLOC(char, size); 5184 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
4743 sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path); 5185 memcpy (concat_name, tmp, tmp_len);
4744 return p; 5186 concat_name[tmp_len] = '/';
5187 strcpy (concat_name + tmp_len + 1, wrapper);
5188
5189 if (check_executable(concat_name))
5190 return concat_name;
5191 XFREE(concat_name);
5192 return NULL;
4745} 5193}
4746 5194
4747char * 5195char *
@@ -4785,16 +5233,16 @@ lt_fatal (const char *message, ...)
4785 va_end (ap); 5233 va_end (ap);
4786} 5234}
4787EOF 5235EOF
4788 # we should really use a build-platform specific compiler 5236 # we should really use a build-platform specific compiler
4789 # here, but OTOH, the wrappers (shell script and this C one) 5237 # here, but OTOH, the wrappers (shell script and this C one)
4790 # are only useful if you want to execute the "real" binary. 5238 # are only useful if you want to execute the "real" binary.
4791 # Since the "real" binary is built for $host, then this 5239 # Since the "real" binary is built for $host, then this
4792 # wrapper might as well be built for $host, too. 5240 # wrapper might as well be built for $host, too.
4793 $run $LTCC -s -o $cwrapper $cwrappersource 5241 $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
4794 ;; 5242 ;;
4795 esac 5243 esac
4796 $rm $output 5244 $rm $output
4797 trap "$rm $output; exit $EXIT_FAILURE" 1 2 15 5245 trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
4798 5246
4799 $echo > $output "\ 5247 $echo > $output "\
4800#! $SHELL 5248#! $SHELL
@@ -4815,7 +5263,7 @@ sed_quote_subst='$sed_quote_subst'
4815 5263
4816# The HP-UX ksh and POSIX shell print the target directory to stdout 5264# The HP-UX ksh and POSIX shell print the target directory to stdout
4817# if CDPATH is set. 5265# if CDPATH is set.
4818if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi 5266(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4819 5267
4820relink_command=\"$relink_command\" 5268relink_command=\"$relink_command\"
4821 5269
@@ -4944,13 +5392,13 @@ else
4944 # Backslashes separate directories on plain windows 5392 # Backslashes separate directories on plain windows
4945 *-*-mingw | *-*-os2*) 5393 *-*-mingw | *-*-os2*)
4946 $echo >> $output "\ 5394 $echo >> $output "\
4947 exec \$progdir\\\\\$program \${1+\"\$@\"} 5395 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
4948" 5396"
4949 ;; 5397 ;;
4950 5398
4951 *) 5399 *)
4952 $echo >> $output "\ 5400 $echo >> $output "\
4953 exec \$progdir/\$program \${1+\"\$@\"} 5401 exec \"\$progdir/\$program\" \${1+\"\$@\"}
4954" 5402"
4955 ;; 5403 ;;
4956 esac 5404 esac
@@ -4960,7 +5408,7 @@ else
4960 fi 5408 fi
4961 else 5409 else
4962 # The program doesn't exist. 5410 # The program doesn't exist.
4963 \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2 5411 \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
4964 \$echo \"This script is just a wrapper for \$program.\" 1>&2 5412 \$echo \"This script is just a wrapper for \$program.\" 1>&2
4965 $echo \"See the $PACKAGE documentation for more information.\" 1>&2 5413 $echo \"See the $PACKAGE documentation for more information.\" 1>&2
4966 exit $EXIT_FAILURE 5414 exit $EXIT_FAILURE
@@ -4992,71 +5440,73 @@ fi\
4992 5440
4993 if test -n "$addlibs"; then 5441 if test -n "$addlibs"; then
4994 gentop="$output_objdir/${outputname}x" 5442 gentop="$output_objdir/${outputname}x"
4995 $show "${rm}r $gentop"
4996 $run ${rm}r "$gentop"
4997 $show "$mkdir $gentop"
4998 $run $mkdir "$gentop"
4999 status=$?
5000 if test "$status" -ne 0 && test ! -d "$gentop"; then
5001 exit $status
5002 fi
5003 generated="$generated $gentop" 5443 generated="$generated $gentop"
5004 5444
5005 # Add in members from convenience archives. 5445 func_extract_archives $gentop $addlibs
5006 for xlib in $addlibs; do 5446 oldobjs="$oldobjs $func_extract_archives_result"
5007 # Extract the objects.
5008 case $xlib in
5009 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
5010 *) xabs=`pwd`"/$xlib" ;;
5011 esac
5012 xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
5013 xdir="$gentop/$xlib"
5014
5015 $show "${rm}r $xdir"
5016 $run ${rm}r "$xdir"
5017 $show "$mkdir $xdir"
5018 $run $mkdir "$xdir"
5019 status=$?
5020 if test "$status" -ne 0 && test ! -d "$xdir"; then
5021 exit $status
5022 fi
5023 # We will extract separately just the conflicting names and we will no
5024 # longer touch any unique names. It is faster to leave these extract
5025 # automatically by $AR in one run.
5026 $show "(cd $xdir && $AR x $xabs)"
5027 $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
5028 if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
5029 :
5030 else
5031 $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
5032 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
5033 $AR t "$xabs" | sort | uniq -cd | while read -r count name
5034 do
5035 i=1
5036 while test "$i" -le "$count"
5037 do
5038 # Put our $i before any first dot (extension)
5039 # Never overwrite any file
5040 name_to="$name"
5041 while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
5042 do
5043 name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
5044 done
5045 $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
5046 $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
5047 i=`expr $i + 1`
5048 done
5049 done
5050 fi
5051
5052 oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
5053 done
5054 fi 5447 fi
5055 5448
5056 # Do each command in the archive commands. 5449 # Do each command in the archive commands.
5057 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then 5450 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
5058 cmds=$old_archive_from_new_cmds 5451 cmds=$old_archive_from_new_cmds
5059 else 5452 else
5453 # POSIX demands no paths to be encoded in archives. We have
5454 # to avoid creating archives with duplicate basenames if we
5455 # might have to extract them afterwards, e.g., when creating a
5456 # static archive out of a convenience library, or when linking
5457 # the entirety of a libtool archive into another (currently
5458 # not supported by libtool).
5459 if (for obj in $oldobjs
5460 do
5461 $echo "X$obj" | $Xsed -e 's%^.*/%%'
5462 done | sort | sort -uc >/dev/null 2>&1); then
5463 :
5464 else
5465 $echo "copying selected object files to avoid basename conflicts..."
5466
5467 if test -z "$gentop"; then
5468 gentop="$output_objdir/${outputname}x"
5469 generated="$generated $gentop"
5470
5471 $show "${rm}r $gentop"
5472 $run ${rm}r "$gentop"
5473 $show "$mkdir $gentop"
5474 $run $mkdir "$gentop"
5475 exit_status=$?
5476 if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
5477 exit $exit_status
5478 fi
5479 fi
5480
5481 save_oldobjs=$oldobjs
5482 oldobjs=
5483 counter=1
5484 for obj in $save_oldobjs
5485 do
5486 objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
5487 case " $oldobjs " in
5488 " ") oldobjs=$obj ;;
5489 *[\ /]"$objbase "*)
5490 while :; do
5491 # Make sure we don't pick an alternate name that also
5492 # overlaps.
5493 newobj=lt$counter-$objbase
5494 counter=`expr $counter + 1`
5495 case " $oldobjs " in
5496 *[\ /]"$newobj "*) ;;
5497 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
5498 esac
5499 done
5500 $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
5501 $run ln "$obj" "$gentop/$newobj" ||
5502 $run cp "$obj" "$gentop/$newobj"
5503 oldobjs="$oldobjs $gentop/$newobj"
5504 ;;
5505 *) oldobjs="$oldobjs $obj" ;;
5506 esac
5507 done
5508 fi
5509
5060 eval cmds=\"$old_archive_cmds\" 5510 eval cmds=\"$old_archive_cmds\"
5061 5511
5062 if len=`expr "X$cmds" : ".*"` && 5512 if len=`expr "X$cmds" : ".*"` &&
@@ -5070,20 +5520,7 @@ fi\
5070 objlist= 5520 objlist=
5071 concat_cmds= 5521 concat_cmds=
5072 save_oldobjs=$oldobjs 5522 save_oldobjs=$oldobjs
5073 # GNU ar 2.10+ was changed to match POSIX; thus no paths are 5523
5074 # encoded into archives. This makes 'ar r' malfunction in
5075 # this piecewise linking case whenever conflicting object
5076 # names appear in distinct ar calls; check, warn and compensate.
5077 if (for obj in $save_oldobjs
5078 do
5079 $echo "X$obj" | $Xsed -e 's%^.*/%%'
5080 done | sort | sort -uc >/dev/null 2>&1); then
5081 :
5082 else
5083 $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2
5084 $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2
5085 AR_FLAGS=cq
5086 fi
5087 # Is there a better way of finding the last object in the list? 5524 # Is there a better way of finding the last object in the list?
5088 for obj in $save_oldobjs 5525 for obj in $save_oldobjs
5089 do 5526 do
@@ -5094,7 +5531,7 @@ fi\
5094 oldobjs="$objlist $obj" 5531 oldobjs="$objlist $obj"
5095 objlist="$objlist $obj" 5532 objlist="$objlist $obj"
5096 eval test_cmds=\"$old_archive_cmds\" 5533 eval test_cmds=\"$old_archive_cmds\"
5097 if len=`expr "X$test_cmds" : ".*"` && 5534 if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
5098 test "$len" -le "$max_cmd_len"; then 5535 test "$len" -le "$max_cmd_len"; then
5099 : 5536 :
5100 else 5537 else
@@ -5291,11 +5728,11 @@ relink_command=\"$relink_command\""
5291 # install_prog (especially on Windows NT). 5728 # install_prog (especially on Windows NT).
5292 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || 5729 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
5293 # Allow the use of GNU shtool's install command. 5730 # Allow the use of GNU shtool's install command.
5294 $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then 5731 $echo "X$nonopt" | grep shtool > /dev/null; then
5295 # Aesthetically quote it. 5732 # Aesthetically quote it.
5296 arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` 5733 arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
5297 case $arg in 5734 case $arg in
5298 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) 5735 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5299 arg="\"$arg\"" 5736 arg="\"$arg\""
5300 ;; 5737 ;;
5301 esac 5738 esac
@@ -5304,14 +5741,14 @@ relink_command=\"$relink_command\""
5304 shift 5741 shift
5305 else 5742 else
5306 install_prog= 5743 install_prog=
5307 arg="$nonopt" 5744 arg=$nonopt
5308 fi 5745 fi
5309 5746
5310 # The real first argument should be the name of the installation program. 5747 # The real first argument should be the name of the installation program.
5311 # Aesthetically quote it. 5748 # Aesthetically quote it.
5312 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` 5749 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5313 case $arg in 5750 case $arg in
5314 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) 5751 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5315 arg="\"$arg\"" 5752 arg="\"$arg\""
5316 ;; 5753 ;;
5317 esac 5754 esac
@@ -5329,28 +5766,31 @@ relink_command=\"$relink_command\""
5329 do 5766 do
5330 if test -n "$dest"; then 5767 if test -n "$dest"; then
5331 files="$files $dest" 5768 files="$files $dest"
5332 dest="$arg" 5769 dest=$arg
5333 continue 5770 continue
5334 fi 5771 fi
5335 5772
5336 case $arg in 5773 case $arg in
5337 -d) isdir=yes ;; 5774 -d) isdir=yes ;;
5338 -f) prev="-f" ;; 5775 -f)
5339 -g) prev="-g" ;; 5776 case " $install_prog " in
5340 -m) prev="-m" ;; 5777 *[\\\ /]cp\ *) ;;
5341 -o) prev="-o" ;; 5778 *) prev=$arg ;;
5779 esac
5780 ;;
5781 -g | -m | -o) prev=$arg ;;
5342 -s) 5782 -s)
5343 stripme=" -s" 5783 stripme=" -s"
5344 continue 5784 continue
5345 ;; 5785 ;;
5346 -*) ;; 5786 -*)
5347 5787 ;;
5348 *) 5788 *)
5349 # If the previous option needed an argument, then skip it. 5789 # If the previous option needed an argument, then skip it.
5350 if test -n "$prev"; then 5790 if test -n "$prev"; then
5351 prev= 5791 prev=
5352 else 5792 else
5353 dest="$arg" 5793 dest=$arg
5354 continue 5794 continue
5355 fi 5795 fi
5356 ;; 5796 ;;
@@ -5359,7 +5799,7 @@ relink_command=\"$relink_command\""
5359 # Aesthetically quote the argument. 5799 # Aesthetically quote the argument.
5360 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` 5800 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5361 case $arg in 5801 case $arg in
5362 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) 5802 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5363 arg="\"$arg\"" 5803 arg="\"$arg\""
5364 ;; 5804 ;;
5365 esac 5805 esac
@@ -5528,11 +5968,14 @@ relink_command=\"$relink_command\""
5528 5968
5529 if test "$#" -gt 0; then 5969 if test "$#" -gt 0; then
5530 # Delete the old symlinks, and create new ones. 5970 # Delete the old symlinks, and create new ones.
5971 # Try `ln -sf' first, because the `ln' binary might depend on
5972 # the symlink we replace! Solaris /bin/ln does not understand -f,
5973 # so we also need to try rm && ln -s.
5531 for linkname 5974 for linkname
5532 do 5975 do
5533 if test "$linkname" != "$realname"; then 5976 if test "$linkname" != "$realname"; then
5534 $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)" 5977 $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
5535 $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)" 5978 $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
5536 fi 5979 fi
5537 done 5980 done
5538 fi 5981 fi
@@ -5545,7 +5988,16 @@ relink_command=\"$relink_command\""
5545 IFS="$save_ifs" 5988 IFS="$save_ifs"
5546 eval cmd=\"$cmd\" 5989 eval cmd=\"$cmd\"
5547 $show "$cmd" 5990 $show "$cmd"
5548 $run eval "$cmd" || exit $? 5991 $run eval "$cmd" || {
5992 lt_exit=$?
5993
5994 # Restore the uninstalled library and exit
5995 if test "$mode" = relink; then
5996 $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
5997 fi
5998
5999 exit $lt_exit
6000 }
5549 done 6001 done
5550 IFS="$save_ifs" 6002 IFS="$save_ifs"
5551 fi 6003 fi
@@ -5639,17 +6091,15 @@ relink_command=\"$relink_command\""
5639 notinst_deplibs= 6091 notinst_deplibs=
5640 relink_command= 6092 relink_command=
5641 6093
5642 # To insure that "foo" is sourced, and not "foo.exe", 6094 # Note that it is not necessary on cygwin/mingw to append a dot to
5643 # finese the cygwin/MSYS system by explicitly sourcing "foo." 6095 # foo even if both foo and FILE.exe exist: automatic-append-.exe
5644 # which disallows the automatic-append-.exe behavior. 6096 # behavior happens only for exec(3), not for open(2)! Also, sourcing
5645 case $build in 6097 # `FILE.' does not work on cygwin managed mounts.
5646 *cygwin* | *mingw*) wrapperdot=${wrapper}. ;; 6098 #
5647 *) wrapperdot=${wrapper} ;;
5648 esac
5649 # If there is no directory component, then add one. 6099 # If there is no directory component, then add one.
5650 case $file in 6100 case $wrapper in
5651 */* | *\\*) . ${wrapperdot} ;; 6101 */* | *\\*) . ${wrapper} ;;
5652 *) . ./${wrapperdot} ;; 6102 *) . ./${wrapper} ;;
5653 esac 6103 esac
5654 6104
5655 # Check the variables that should have been set. 6105 # Check the variables that should have been set.
@@ -5677,34 +6127,21 @@ relink_command=\"$relink_command\""
5677 done 6127 done
5678 6128
5679 relink_command= 6129 relink_command=
5680 # To insure that "foo" is sourced, and not "foo.exe", 6130 # Note that it is not necessary on cygwin/mingw to append a dot to
5681 # finese the cygwin/MSYS system by explicitly sourcing "foo." 6131 # foo even if both foo and FILE.exe exist: automatic-append-.exe
5682 # which disallows the automatic-append-.exe behavior. 6132 # behavior happens only for exec(3), not for open(2)! Also, sourcing
5683 case $build in 6133 # `FILE.' does not work on cygwin managed mounts.
5684 *cygwin* | *mingw*) wrapperdot=${wrapper}. ;; 6134 #
5685 *) wrapperdot=${wrapper} ;;
5686 esac
5687 # If there is no directory component, then add one. 6135 # If there is no directory component, then add one.
5688 case $file in 6136 case $wrapper in
5689 */* | *\\*) . ${wrapperdot} ;; 6137 */* | *\\*) . ${wrapper} ;;
5690 *) . ./${wrapperdot} ;; 6138 *) . ./${wrapper} ;;
5691 esac 6139 esac
5692 6140
5693 outputname= 6141 outputname=
5694 if test "$fast_install" = no && test -n "$relink_command"; then 6142 if test "$fast_install" = no && test -n "$relink_command"; then
5695 if test "$finalize" = yes && test -z "$run"; then 6143 if test "$finalize" = yes && test -z "$run"; then
5696 tmpdir="/tmp" 6144 tmpdir=`func_mktempdir`
5697 test -n "$TMPDIR" && tmpdir="$TMPDIR"
5698 tmpdir="$tmpdir/libtool-$$"
5699 save_umask=`umask`
5700 umask 0077
5701 if $mkdir "$tmpdir"; then
5702 umask $save_umask
5703 else
5704 umask $save_umask
5705 $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
5706 continue
5707 fi
5708 file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'` 6145 file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
5709 outputname="$tmpdir/$file" 6146 outputname="$tmpdir/$file"
5710 # Replace the output file specification. 6147 # Replace the output file specification.
@@ -5728,7 +6165,7 @@ relink_command=\"$relink_command\""
5728 fi 6165 fi
5729 6166
5730 # remove .exe since cygwin /usr/bin/install will append another 6167 # remove .exe since cygwin /usr/bin/install will append another
5731 # one anyways 6168 # one anyway
5732 case $install_prog,$host in 6169 case $install_prog,$host in
5733 */usr/bin/install*,*cygwin*) 6170 */usr/bin/install*,*cygwin*)
5734 case $file:$destfile in 6171 case $file:$destfile in
@@ -5828,7 +6265,7 @@ relink_command=\"$relink_command\""
5828 # Exit here if they wanted silent mode. 6265 # Exit here if they wanted silent mode.
5829 test "$show" = : && exit $EXIT_SUCCESS 6266 test "$show" = : && exit $EXIT_SUCCESS
5830 6267
5831 $echo "----------------------------------------------------------------------" 6268 $echo "X----------------------------------------------------------------------" | $Xsed
5832 $echo "Libraries have been installed in:" 6269 $echo "Libraries have been installed in:"
5833 for libdir in $libdirs; do 6270 for libdir in $libdirs; do
5834 $echo " $libdir" 6271 $echo " $libdir"
@@ -5861,7 +6298,7 @@ relink_command=\"$relink_command\""
5861 $echo 6298 $echo
5862 $echo "See any operating system documentation about shared libraries for" 6299 $echo "See any operating system documentation about shared libraries for"
5863 $echo "more information, such as the ld(1) and ld.so(8) manual pages." 6300 $echo "more information, such as the ld(1) and ld.so(8) manual pages."
5864 $echo "----------------------------------------------------------------------" 6301 $echo "X----------------------------------------------------------------------" | $Xsed
5865 exit $EXIT_SUCCESS 6302 exit $EXIT_SUCCESS
5866 ;; 6303 ;;
5867 6304
@@ -6078,9 +6515,17 @@ relink_command=\"$relink_command\""
6078 rmfiles="$rmfiles $objdir/$n" 6515 rmfiles="$rmfiles $objdir/$n"
6079 done 6516 done
6080 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" 6517 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
6081 test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
6082 6518
6083 if test "$mode" = uninstall; then 6519 case "$mode" in
6520 clean)
6521 case " $library_names " in
6522 # " " in the beginning catches empty $dlname
6523 *" $dlname "*) ;;
6524 *) rmfiles="$rmfiles $objdir/$dlname" ;;
6525 esac
6526 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
6527 ;;
6528 uninstall)
6084 if test -n "$library_names"; then 6529 if test -n "$library_names"; then
6085 # Do each command in the postuninstall commands. 6530 # Do each command in the postuninstall commands.
6086 cmds=$postuninstall_cmds 6531 cmds=$postuninstall_cmds
@@ -6113,7 +6558,8 @@ relink_command=\"$relink_command\""
6113 IFS="$save_ifs" 6558 IFS="$save_ifs"
6114 fi 6559 fi
6115 # FIXME: should reinstall the best remaining shared library. 6560 # FIXME: should reinstall the best remaining shared library.
6116 fi 6561 ;;
6562 esac
6117 fi 6563 fi
6118 ;; 6564 ;;
6119 6565
@@ -6398,7 +6844,7 @@ esac
6398$echo 6844$echo
6399$echo "Try \`$modename --help' for more information about other modes." 6845$echo "Try \`$modename --help' for more information about other modes."
6400 6846
6401exit $EXIT_SUCCESS 6847exit $?
6402 6848
6403# The TAGs below are defined such that we never get into a situation 6849# The TAGs below are defined such that we never get into a situation
6404# in which we disable both kinds of libraries. Given conflicting 6850# in which we disable both kinds of libraries. Given conflicting
@@ -6412,12 +6858,11 @@ exit $EXIT_SUCCESS
6412# configuration. But we'll never go from static-only to shared-only. 6858# configuration. But we'll never go from static-only to shared-only.
6413 6859
6414# ### BEGIN LIBTOOL TAG CONFIG: disable-shared 6860# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
6415build_libtool_libs=no 6861disable_libs=shared
6416build_old_libs=yes
6417# ### END LIBTOOL TAG CONFIG: disable-shared 6862# ### END LIBTOOL TAG CONFIG: disable-shared
6418 6863
6419# ### BEGIN LIBTOOL TAG CONFIG: disable-static 6864# ### BEGIN LIBTOOL TAG CONFIG: disable-static
6420build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac` 6865disable_libs=static
6421# ### END LIBTOOL TAG CONFIG: disable-static 6866# ### END LIBTOOL TAG CONFIG: disable-static
6422 6867
6423# Local Variables: 6868# Local Variables:
diff --git a/ltmain.sh b/ltmain.sh
index 1a224ac2..c715b594 100644
--- a/ltmain.sh
+++ b/ltmain.sh
@@ -1,7 +1,7 @@
1# ltmain.sh - Provide generalized library-building support services. 1# ltmain.sh - Provide generalized library-building support services.
2# NOTE: Changing this file will not affect anything until you rerun configure. 2# NOTE: Changing this file will not affect anything until you rerun configure.
3# 3#
4# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004 4# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
5# Free Software Foundation, Inc. 5# Free Software Foundation, Inc.
6# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 6# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7# 7#
@@ -17,7 +17,7 @@
17# 17#
18# You should have received a copy of the GNU General Public License 18# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software 19# along with this program; if not, write to the Free Software
20# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 20# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21# 21#
22# As a special exception to the GNU General Public License, if you 22# As a special exception to the GNU General Public License, if you
23# distribute this file as part of a program that contains a 23# distribute this file as part of a program that contains a
@@ -43,9 +43,14 @@ EXIT_FAILURE=1
43 43
44PROGRAM=ltmain.sh 44PROGRAM=ltmain.sh
45PACKAGE=libtool 45PACKAGE=libtool
46VERSION=1.5.6 46VERSION="1.5.22 Debian 1.5.22-4"
47TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42) Debian$Rev: 224 $" 47TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
48 48
49# See if we are running on zsh, and set the options which allow our
50# commands through without removal of \ escapes.
51if test -n "${ZSH_VERSION+set}" ; then
52 setopt NO_GLOB_SUBST
53fi
49 54
50# Check that we have a working $echo. 55# Check that we have a working $echo.
51if test "X$1" = X--no-reexec; then 56if test "X$1" = X--no-reexec; then
@@ -83,14 +88,15 @@ rm="rm -f"
83Xsed="${SED}"' -e 1s/^X//' 88Xsed="${SED}"' -e 1s/^X//'
84sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g' 89sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
85# test EBCDIC or ASCII 90# test EBCDIC or ASCII
86case `echo A|tr A '\301'` in 91case `echo X|tr X '\101'` in
87 A) # EBCDIC based system 92 A) # ASCII based system
88 SP2NL="tr '\100' '\n'" 93 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
89 NL2SP="tr '\r\n' '\100\100'" 94 SP2NL='tr \040 \012'
95 NL2SP='tr \015\012 \040\040'
90 ;; 96 ;;
91 *) # Assume ASCII based system 97 *) # EBCDIC based system
92 SP2NL="tr '\040' '\012'" 98 SP2NL='tr \100 \n'
93 NL2SP="tr '\015\012' '\040\040'" 99 NL2SP='tr \r\n \100\100'
94 ;; 100 ;;
95esac 101esac
96 102
@@ -107,8 +113,9 @@ if test "${LANG+set}" = set; then
107fi 113fi
108 114
109# Make sure IFS has a sensible default 115# Make sure IFS has a sensible default
110: ${IFS=" 116lt_nl='
111"} 117'
118IFS=" $lt_nl"
112 119
113if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then 120if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
114 $echo "$modename: not configured to build any kind of library" 1>&2 121 $echo "$modename: not configured to build any kind of library" 1>&2
@@ -125,6 +132,8 @@ run=
125show="$echo" 132show="$echo"
126show_help= 133show_help=
127execute_dlfiles= 134execute_dlfiles=
135duplicate_deps=no
136preserve_args=
128lo2o="s/\\.lo\$/.${objext}/" 137lo2o="s/\\.lo\$/.${objext}/"
129o2lo="s/\\.${objext}\$/.lo/" 138o2lo="s/\\.${objext}\$/.lo/"
130 139
@@ -132,13 +141,51 @@ o2lo="s/\\.${objext}\$/.lo/"
132# Shell function definitions: 141# Shell function definitions:
133# This seems to be the best place for them 142# This seems to be the best place for them
134 143
144# func_mktempdir [string]
145# Make a temporary directory that won't clash with other running
146# libtool processes, and avoids race conditions if possible. If
147# given, STRING is the basename for that directory.
148func_mktempdir ()
149{
150 my_template="${TMPDIR-/tmp}/${1-$progname}"
151
152 if test "$run" = ":"; then
153 # Return a directory name, but don't create it in dry-run mode
154 my_tmpdir="${my_template}-$$"
155 else
156
157 # If mktemp works, use that first and foremost
158 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
159
160 if test ! -d "$my_tmpdir"; then
161 # Failing that, at least try and use $RANDOM to avoid a race
162 my_tmpdir="${my_template}-${RANDOM-0}$$"
163
164 save_mktempdir_umask=`umask`
165 umask 0077
166 $mkdir "$my_tmpdir"
167 umask $save_mktempdir_umask
168 fi
169
170 # If we're not in dry-run mode, bomb out on failure
171 test -d "$my_tmpdir" || {
172 $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
173 exit $EXIT_FAILURE
174 }
175 fi
176
177 $echo "X$my_tmpdir" | $Xsed
178}
179
180
135# func_win32_libid arg 181# func_win32_libid arg
136# return the library type of file 'arg' 182# return the library type of file 'arg'
137# 183#
138# Need a lot of goo to handle *both* DLLs and import libs 184# Need a lot of goo to handle *both* DLLs and import libs
139# Has to be a shell function in order to 'eat' the argument 185# Has to be a shell function in order to 'eat' the argument
140# that is supplied when $file_magic_command is called. 186# that is supplied when $file_magic_command is called.
141func_win32_libid () { 187func_win32_libid ()
188{
142 win32_libid_type="unknown" 189 win32_libid_type="unknown"
143 win32_fileres=`file -L $1 2>/dev/null` 190 win32_fileres=`file -L $1 2>/dev/null`
144 case $win32_fileres in 191 case $win32_fileres in
@@ -149,12 +196,11 @@ func_win32_libid () {
149 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ 196 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
150 $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then 197 $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
151 win32_nmres=`eval $NM -f posix -A $1 | \ 198 win32_nmres=`eval $NM -f posix -A $1 | \
152 sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'` 199 $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
153 if test "X$win32_nmres" = "Ximport" ; then 200 case $win32_nmres in
154 win32_libid_type="x86 archive import" 201 import*) win32_libid_type="x86 archive import";;
155 else 202 *) win32_libid_type="x86 archive static";;
156 win32_libid_type="x86 archive static" 203 esac
157 fi
158 fi 204 fi
159 ;; 205 ;;
160 *DLL*) 206 *DLL*)
@@ -178,7 +224,8 @@ func_win32_libid () {
178# Only attempt this if the compiler in the base compile 224# Only attempt this if the compiler in the base compile
179# command doesn't match the default compiler. 225# command doesn't match the default compiler.
180# arg is usually of the form 'gcc ...' 226# arg is usually of the form 'gcc ...'
181func_infer_tag () { 227func_infer_tag ()
228{
182 if test -n "$available_tags" && test -z "$tagname"; then 229 if test -n "$available_tags" && test -z "$tagname"; then
183 CC_quoted= 230 CC_quoted=
184 for arg in $CC; do 231 for arg in $CC; do
@@ -235,12 +282,116 @@ func_infer_tag () {
235 esac 282 esac
236 fi 283 fi
237} 284}
285
286
287# func_extract_an_archive dir oldlib
288func_extract_an_archive ()
289{
290 f_ex_an_ar_dir="$1"; shift
291 f_ex_an_ar_oldlib="$1"
292
293 $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
294 $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
295 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
296 :
297 else
298 $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
299 exit $EXIT_FAILURE
300 fi
301}
302
303# func_extract_archives gentop oldlib ...
304func_extract_archives ()
305{
306 my_gentop="$1"; shift
307 my_oldlibs=${1+"$@"}
308 my_oldobjs=""
309 my_xlib=""
310 my_xabs=""
311 my_xdir=""
312 my_status=""
313
314 $show "${rm}r $my_gentop"
315 $run ${rm}r "$my_gentop"
316 $show "$mkdir $my_gentop"
317 $run $mkdir "$my_gentop"
318 my_status=$?
319 if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
320 exit $my_status
321 fi
322
323 for my_xlib in $my_oldlibs; do
324 # Extract the objects.
325 case $my_xlib in
326 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
327 *) my_xabs=`pwd`"/$my_xlib" ;;
328 esac
329 my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
330 my_xdir="$my_gentop/$my_xlib"
331
332 $show "${rm}r $my_xdir"
333 $run ${rm}r "$my_xdir"
334 $show "$mkdir $my_xdir"
335 $run $mkdir "$my_xdir"
336 exit_status=$?
337 if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
338 exit $exit_status
339 fi
340 case $host in
341 *-darwin*)
342 $show "Extracting $my_xabs"
343 # Do not bother doing anything if just a dry run
344 if test -z "$run"; then
345 darwin_orig_dir=`pwd`
346 cd $my_xdir || exit $?
347 darwin_archive=$my_xabs
348 darwin_curdir=`pwd`
349 darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
350 darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
351 if test -n "$darwin_arches"; then
352 darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
353 darwin_arch=
354 $show "$darwin_base_archive has multiple architectures $darwin_arches"
355 for darwin_arch in $darwin_arches ; do
356 mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
357 lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
358 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
359 func_extract_an_archive "`pwd`" "${darwin_base_archive}"
360 cd "$darwin_curdir"
361 $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
362 done # $darwin_arches
363 ## Okay now we have a bunch of thin objects, gotta fatten them up :)
364 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
365 darwin_file=
366 darwin_files=
367 for darwin_file in $darwin_filelist; do
368 darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
369 lipo -create -output "$darwin_file" $darwin_files
370 done # $darwin_filelist
371 ${rm}r unfat-$$
372 cd "$darwin_orig_dir"
373 else
374 cd "$darwin_orig_dir"
375 func_extract_an_archive "$my_xdir" "$my_xabs"
376 fi # $darwin_arches
377 fi # $run
378 ;;
379 *)
380 func_extract_an_archive "$my_xdir" "$my_xabs"
381 ;;
382 esac
383 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
384 done
385 func_extract_archives_result="$my_oldobjs"
386}
238# End of Shell function definitions 387# End of Shell function definitions
239##################################### 388#####################################
240 389
241# Darwin sucks 390# Darwin sucks
242eval std_shrext=\"$shrext_cmds\" 391eval std_shrext=\"$shrext_cmds\"
243 392
393disable_libs=no
394
244# Parse our command line options once, thoroughly. 395# Parse our command line options once, thoroughly.
245while test "$#" -gt 0 396while test "$#" -gt 0
246do 397do
@@ -305,10 +456,10 @@ do
305 --version) 456 --version)
306 $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP" 457 $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
307 $echo 458 $echo
308 $echo "Copyright (C) 2003 Free Software Foundation, Inc." 459 $echo "Copyright (C) 2005 Free Software Foundation, Inc."
309 $echo "This is free software; see the source for copying conditions. There is NO" 460 $echo "This is free software; see the source for copying conditions. There is NO"
310 $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 461 $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
311 exit $EXIT_SUCCESS 462 exit $?
312 ;; 463 ;;
313 464
314 --config) 465 --config)
@@ -317,7 +468,7 @@ do
317 for tagname in $taglist; do 468 for tagname in $taglist; do
318 ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath" 469 ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
319 done 470 done
320 exit $EXIT_SUCCESS 471 exit $?
321 ;; 472 ;;
322 473
323 --debug) 474 --debug)
@@ -342,7 +493,7 @@ do
342 else 493 else
343 $echo "disable static libraries" 494 $echo "disable static libraries"
344 fi 495 fi
345 exit $EXIT_SUCCESS 496 exit $?
346 ;; 497 ;;
347 498
348 --finish) mode="finish" ;; 499 --finish) mode="finish" ;;
@@ -357,7 +508,11 @@ do
357 preserve_args="$preserve_args $arg" 508 preserve_args="$preserve_args $arg"
358 ;; 509 ;;
359 510
360 --tag) prevopt="--tag" prev=tag ;; 511 --tag)
512 prevopt="--tag"
513 prev=tag
514 preserve_args="$preserve_args --tag"
515 ;;
361 --tag=*) 516 --tag=*)
362 set tag "$optarg" ${1+"$@"} 517 set tag "$optarg" ${1+"$@"}
363 shift 518 shift
@@ -389,6 +544,18 @@ if test -n "$prevopt"; then
389 exit $EXIT_FAILURE 544 exit $EXIT_FAILURE
390fi 545fi
391 546
547case $disable_libs in
548no)
549 ;;
550shared)
551 build_libtool_libs=no
552 build_old_libs=yes
553 ;;
554static)
555 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
556 ;;
557esac
558
392# If this variable is set in any of the actions, the command in it 559# If this variable is set in any of the actions, the command in it
393# will be execed at the end. This prevents here-documents from being 560# will be execed at the end. This prevents here-documents from being
394# left over by shells. 561# left over by shells.
@@ -399,7 +566,7 @@ if test -z "$show_help"; then
399 # Infer the operation mode. 566 # Infer the operation mode.
400 if test -z "$mode"; then 567 if test -z "$mode"; then
401 $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2 568 $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
402 $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2 569 $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
403 case $nonopt in 570 case $nonopt in
404 *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*) 571 *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
405 mode=link 572 mode=link
@@ -465,7 +632,7 @@ if test -z "$show_help"; then
465 632
466 for arg 633 for arg
467 do 634 do
468 case "$arg_mode" in 635 case $arg_mode in
469 arg ) 636 arg )
470 # do not "continue". Instead, add this to base_compile 637 # do not "continue". Instead, add this to base_compile
471 lastarg="$arg" 638 lastarg="$arg"
@@ -547,7 +714,10 @@ if test -z "$show_help"; then
547 case $lastarg in 714 case $lastarg in
548 # Double-quote args containing other shell metacharacters. 715 # Double-quote args containing other shell metacharacters.
549 # Many Bourne shells cannot handle close brackets correctly 716 # Many Bourne shells cannot handle close brackets correctly
550 # in scan sets, so we specify it separately. 717 # in scan sets, and some SunOS ksh mistreat backslash-escaping
718 # in scan sets (worked around with variable expansion),
719 # and furthermore cannot handle '|' '&' '(' ')' in scan sets
720 # at all, so we specify them separately.
551 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") 721 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
552 lastarg="\"$lastarg\"" 722 lastarg="\"$lastarg\""
553 ;; 723 ;;
@@ -621,6 +791,14 @@ if test -z "$show_help"; then
621 esac 791 esac
622 done 792 done
623 793
794 qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
795 case $qlibobj in
796 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
797 qlibobj="\"$qlibobj\"" ;;
798 esac
799 test "X$libobj" != "X$qlibobj" \
800 && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
801 && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
624 objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` 802 objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
625 xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` 803 xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
626 if test "X$xdir" = "X$obj"; then 804 if test "X$xdir" = "X$obj"; then
@@ -693,12 +871,17 @@ compiler."
693 $run $rm $removelist 871 $run $rm $removelist
694 exit $EXIT_FAILURE 872 exit $EXIT_FAILURE
695 fi 873 fi
696 $echo $srcfile > "$lockfile" 874 $echo "$srcfile" > "$lockfile"
697 fi 875 fi
698 876
699 if test -n "$fix_srcfile_path"; then 877 if test -n "$fix_srcfile_path"; then
700 eval srcfile=\"$fix_srcfile_path\" 878 eval srcfile=\"$fix_srcfile_path\"
701 fi 879 fi
880 qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
881 case $qsrcfile in
882 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
883 qsrcfile="\"$qsrcfile\"" ;;
884 esac
702 885
703 $run $rm "$libobj" "${libobj}T" 886 $run $rm "$libobj" "${libobj}T"
704 887
@@ -720,18 +903,18 @@ EOF
720 fbsd_hideous_sh_bug=$base_compile 903 fbsd_hideous_sh_bug=$base_compile
721 904
722 if test "$pic_mode" != no; then 905 if test "$pic_mode" != no; then
723 command="$base_compile $srcfile $pic_flag" 906 command="$base_compile $qsrcfile $pic_flag"
724 else 907 else
725 # Don't build PIC code 908 # Don't build PIC code
726 command="$base_compile $srcfile" 909 command="$base_compile $qsrcfile"
727 fi 910 fi
728 911
729 if test ! -d "${xdir}$objdir"; then 912 if test ! -d "${xdir}$objdir"; then
730 $show "$mkdir ${xdir}$objdir" 913 $show "$mkdir ${xdir}$objdir"
731 $run $mkdir ${xdir}$objdir 914 $run $mkdir ${xdir}$objdir
732 status=$? 915 exit_status=$?
733 if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then 916 if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
734 exit $status 917 exit $exit_status
735 fi 918 fi
736 fi 919 fi
737 920
@@ -803,9 +986,9 @@ EOF
803 if test "$build_old_libs" = yes; then 986 if test "$build_old_libs" = yes; then
804 if test "$pic_mode" != yes; then 987 if test "$pic_mode" != yes; then
805 # Don't build PIC code 988 # Don't build PIC code
806 command="$base_compile $srcfile" 989 command="$base_compile $qsrcfile"
807 else 990 else
808 command="$base_compile $srcfile $pic_flag" 991 command="$base_compile $qsrcfile $pic_flag"
809 fi 992 fi
810 if test "$compiler_c_o" = yes; then 993 if test "$compiler_c_o" = yes; then
811 command="$command -o $obj" 994 command="$command -o $obj"
@@ -934,6 +1117,7 @@ EOF
934 no_install=no 1117 no_install=no
935 objs= 1118 objs=
936 non_pic_objects= 1119 non_pic_objects=
1120 notinst_path= # paths that contain not-installed libtool libraries
937 precious_files_regex= 1121 precious_files_regex=
938 prefer_static_libs=no 1122 prefer_static_libs=no
939 preload=no 1123 preload=no
@@ -962,14 +1146,15 @@ EOF
962 if test -n "$link_static_flag"; then 1146 if test -n "$link_static_flag"; then
963 dlopen_self=$dlopen_self_static 1147 dlopen_self=$dlopen_self_static
964 fi 1148 fi
1149 prefer_static_libs=yes
965 else 1150 else
966 if test -z "$pic_flag" && test -n "$link_static_flag"; then 1151 if test -z "$pic_flag" && test -n "$link_static_flag"; then
967 dlopen_self=$dlopen_self_static 1152 dlopen_self=$dlopen_self_static
968 fi 1153 fi
1154 prefer_static_libs=built
969 fi 1155 fi
970 build_libtool_libs=no 1156 build_libtool_libs=no
971 build_old_libs=yes 1157 build_old_libs=yes
972 prefer_static_libs=yes
973 break 1158 break
974 ;; 1159 ;;
975 esac 1160 esac
@@ -1144,6 +1329,11 @@ EOF
1144 if test -z "$pic_object" || test "$pic_object" = none ; then 1329 if test -z "$pic_object" || test "$pic_object" = none ; then
1145 arg="$non_pic_object" 1330 arg="$non_pic_object"
1146 fi 1331 fi
1332 else
1333 # If the PIC object exists, use it instead.
1334 # $xdir was prepended to $pic_object above.
1335 non_pic_object="$pic_object"
1336 non_pic_objects="$non_pic_objects $non_pic_object"
1147 fi 1337 fi
1148 else 1338 else
1149 # Only an error if not doing a dry-run. 1339 # Only an error if not doing a dry-run.
@@ -1227,6 +1417,13 @@ EOF
1227 prev= 1417 prev=
1228 continue 1418 continue
1229 ;; 1419 ;;
1420 darwin_framework|darwin_framework_skip)
1421 test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
1422 compile_command="$compile_command $arg"
1423 finalize_command="$finalize_command $arg"
1424 prev=
1425 continue
1426 ;;
1230 *) 1427 *)
1231 eval "$prev=\"\$arg\"" 1428 eval "$prev=\"\$arg\""
1232 prev= 1429 prev=
@@ -1285,6 +1482,18 @@ EOF
1285 continue 1482 continue
1286 ;; 1483 ;;
1287 1484
1485 -framework|-arch|-isysroot)
1486 case " $CC " in
1487 *" ${arg} ${1} "* | *" ${arg} ${1} "*)
1488 prev=darwin_framework_skip ;;
1489 *) compiler_flags="$compiler_flags $arg"
1490 prev=darwin_framework ;;
1491 esac
1492 compile_command="$compile_command $arg"
1493 finalize_command="$finalize_command $arg"
1494 continue
1495 ;;
1496
1288 -inst-prefix-dir) 1497 -inst-prefix-dir)
1289 prev=inst_prefix 1498 prev=inst_prefix
1290 continue 1499 continue
@@ -1311,7 +1520,8 @@ EOF
1311 absdir=`cd "$dir" && pwd` 1520 absdir=`cd "$dir" && pwd`
1312 if test -z "$absdir"; then 1521 if test -z "$absdir"; then
1313 $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 1522 $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
1314 exit $EXIT_FAILURE 1523 absdir="$dir"
1524 notinst_path="$notinst_path $dir"
1315 fi 1525 fi
1316 dir="$absdir" 1526 dir="$absdir"
1317 ;; 1527 ;;
@@ -1325,10 +1535,15 @@ EOF
1325 esac 1535 esac
1326 case $host in 1536 case $host in
1327 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) 1537 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1538 testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
1328 case :$dllsearchpath: in 1539 case :$dllsearchpath: in
1329 *":$dir:"*) ;; 1540 *":$dir:"*) ;;
1330 *) dllsearchpath="$dllsearchpath:$dir";; 1541 *) dllsearchpath="$dllsearchpath:$dir";;
1331 esac 1542 esac
1543 case :$dllsearchpath: in
1544 *":$testbindir:"*) ;;
1545 *) dllsearchpath="$dllsearchpath:$testbindir";;
1546 esac
1332 ;; 1547 ;;
1333 esac 1548 esac
1334 continue 1549 continue
@@ -1337,15 +1552,15 @@ EOF
1337 -l*) 1552 -l*)
1338 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then 1553 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
1339 case $host in 1554 case $host in
1340 *-*-cygwin* | *-*-pw32* | *-*-beos*) 1555 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
1341 # These systems don't actually have a C or math library (as such) 1556 # These systems don't actually have a C or math library (as such)
1342 continue 1557 continue
1343 ;; 1558 ;;
1344 *-*-mingw* | *-*-os2*) 1559 *-*-os2*)
1345 # These systems don't actually have a C library (as such) 1560 # These systems don't actually have a C library (as such)
1346 test "X$arg" = "X-lc" && continue 1561 test "X$arg" = "X-lc" && continue
1347 ;; 1562 ;;
1348 *-*-openbsd* | *-*-freebsd*) 1563 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
1349 # Do not include libc due to us having libc/libc_r. 1564 # Do not include libc due to us having libc/libc_r.
1350 test "X$arg" = "X-lc" && continue 1565 test "X$arg" = "X-lc" && continue
1351 ;; 1566 ;;
@@ -1353,10 +1568,19 @@ EOF
1353 # Rhapsody C and math libraries are in the System framework 1568 # Rhapsody C and math libraries are in the System framework
1354 deplibs="$deplibs -framework System" 1569 deplibs="$deplibs -framework System"
1355 continue 1570 continue
1571 ;;
1572 *-*-sco3.2v5* | *-*-sco5v6*)
1573 # Causes problems with __ctype
1574 test "X$arg" = "X-lc" && continue
1575 ;;
1576 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
1577 # Compiler inserts libc in the correct place for threads to work
1578 test "X$arg" = "X-lc" && continue
1579 ;;
1356 esac 1580 esac
1357 elif test "X$arg" = "X-lc_r"; then 1581 elif test "X$arg" = "X-lc_r"; then
1358 case $host in 1582 case $host in
1359 *-*-openbsd* | *-*-freebsd*) 1583 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
1360 # Do not include libc_r directly, use -pthread flag. 1584 # Do not include libc_r directly, use -pthread flag.
1361 continue 1585 continue
1362 ;; 1586 ;;
@@ -1366,8 +1590,20 @@ EOF
1366 continue 1590 continue
1367 ;; 1591 ;;
1368 1592
1593 # Tru64 UNIX uses -model [arg] to determine the layout of C++
1594 # classes, name mangling, and exception handling.
1595 -model)
1596 compile_command="$compile_command $arg"
1597 compiler_flags="$compiler_flags $arg"
1598 finalize_command="$finalize_command $arg"
1599 prev=xcompiler
1600 continue
1601 ;;
1602
1369 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) 1603 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
1370 deplibs="$deplibs $arg" 1604 compiler_flags="$compiler_flags $arg"
1605 compile_command="$compile_command $arg"
1606 finalize_command="$finalize_command $arg"
1371 continue 1607 continue
1372 ;; 1608 ;;
1373 1609
@@ -1376,13 +1612,19 @@ EOF
1376 continue 1612 continue
1377 ;; 1613 ;;
1378 1614
1379 # gcc -m* arguments should be passed to the linker via $compiler_flags 1615 # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
1380 # in order to pass architecture information to the linker 1616 # -r[0-9][0-9]* specifies the processor on the SGI compiler
1381 # (e.g. 32 vs 64-bit). This may also be accomplished via -Wl,-mfoo 1617 # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
1382 # but this is not reliable with gcc because gcc may use -mfoo to 1618 # +DA*, +DD* enable 64-bit mode on the HP compiler
1383 # select a different linker, different libraries, etc, while 1619 # -q* pass through compiler args for the IBM compiler
1384 # -Wl,-mfoo simply passes -mfoo to the linker. 1620 # -m* pass through architecture-specific compiler args for GCC
1385 -m*) 1621 # -m*, -t[45]*, -txscale* pass through architecture-specific
1622 # compiler args for GCC
1623 # -pg pass through profiling flag for GCC
1624 # @file GCC response files
1625 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
1626 -t[45]*|-txscale*|@*)
1627
1386 # Unknown arguments in both finalize_command and compile_command need 1628 # Unknown arguments in both finalize_command and compile_command need
1387 # to be aesthetically quoted because they are evaled later. 1629 # to be aesthetically quoted because they are evaled later.
1388 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` 1630 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
@@ -1393,9 +1635,7 @@ EOF
1393 esac 1635 esac
1394 compile_command="$compile_command $arg" 1636 compile_command="$compile_command $arg"
1395 finalize_command="$finalize_command $arg" 1637 finalize_command="$finalize_command $arg"
1396 if test "$with_gcc" = "yes" ; then 1638 compiler_flags="$compiler_flags $arg"
1397 compiler_flags="$compiler_flags $arg"
1398 fi
1399 continue 1639 continue
1400 ;; 1640 ;;
1401 1641
@@ -1633,6 +1873,11 @@ EOF
1633 if test -z "$pic_object" || test "$pic_object" = none ; then 1873 if test -z "$pic_object" || test "$pic_object" = none ; then
1634 arg="$non_pic_object" 1874 arg="$non_pic_object"
1635 fi 1875 fi
1876 else
1877 # If the PIC object exists, use it instead.
1878 # $xdir was prepended to $pic_object above.
1879 non_pic_object="$pic_object"
1880 non_pic_objects="$non_pic_objects $non_pic_object"
1636 fi 1881 fi
1637 else 1882 else
1638 # Only an error if not doing a dry-run. 1883 # Only an error if not doing a dry-run.
@@ -1738,9 +1983,9 @@ EOF
1738 if test ! -d "$output_objdir"; then 1983 if test ! -d "$output_objdir"; then
1739 $show "$mkdir $output_objdir" 1984 $show "$mkdir $output_objdir"
1740 $run $mkdir $output_objdir 1985 $run $mkdir $output_objdir
1741 status=$? 1986 exit_status=$?
1742 if test "$status" -ne 0 && test ! -d "$output_objdir"; then 1987 if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
1743 exit $status 1988 exit $exit_status
1744 fi 1989 fi
1745 fi 1990 fi
1746 1991
@@ -1803,7 +2048,6 @@ EOF
1803 newlib_search_path= 2048 newlib_search_path=
1804 need_relink=no # whether we're linking any uninstalled libtool libraries 2049 need_relink=no # whether we're linking any uninstalled libtool libraries
1805 notinst_deplibs= # not-installed libtool libraries 2050 notinst_deplibs= # not-installed libtool libraries
1806 notinst_path= # paths that contain not-installed libtool libraries
1807 case $linkmode in 2051 case $linkmode in
1808 lib) 2052 lib)
1809 passes="conv link" 2053 passes="conv link"
@@ -1858,7 +2102,7 @@ EOF
1858 compile_deplibs="$deplib $compile_deplibs" 2102 compile_deplibs="$deplib $compile_deplibs"
1859 finalize_deplibs="$deplib $finalize_deplibs" 2103 finalize_deplibs="$deplib $finalize_deplibs"
1860 else 2104 else
1861 deplibs="$deplib $deplibs" 2105 compiler_flags="$compiler_flags $deplib"
1862 fi 2106 fi
1863 continue 2107 continue
1864 ;; 2108 ;;
@@ -1977,7 +2221,22 @@ EOF
1977 fi 2221 fi
1978 case $linkmode in 2222 case $linkmode in
1979 lib) 2223 lib)
1980 if test "$deplibs_check_method" != pass_all; then 2224 valid_a_lib=no
2225 case $deplibs_check_method in
2226 match_pattern*)
2227 set dummy $deplibs_check_method
2228 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
2229 if eval $echo \"$deplib\" 2>/dev/null \
2230 | $SED 10q \
2231 | $EGREP "$match_pattern_regex" > /dev/null; then
2232 valid_a_lib=yes
2233 fi
2234 ;;
2235 pass_all)
2236 valid_a_lib=yes
2237 ;;
2238 esac
2239 if test "$valid_a_lib" != yes; then
1981 $echo 2240 $echo
1982 $echo "*** Warning: Trying to link with static lib archive $deplib." 2241 $echo "*** Warning: Trying to link with static lib archive $deplib."
1983 $echo "*** I have the capability to make that library automatically link in when" 2242 $echo "*** I have the capability to make that library automatically link in when"
@@ -2027,7 +2286,7 @@ EOF
2027 esac # case $deplib 2286 esac # case $deplib
2028 if test "$found" = yes || test -f "$lib"; then : 2287 if test "$found" = yes || test -f "$lib"; then :
2029 else 2288 else
2030 $echo "$modename: cannot find the library \`$lib'" 1>&2 2289 $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
2031 exit $EXIT_FAILURE 2290 exit $EXIT_FAILURE
2032 fi 2291 fi
2033 2292
@@ -2051,6 +2310,8 @@ EOF
2051 # it will not redefine variables installed, or shouldnotlink 2310 # it will not redefine variables installed, or shouldnotlink
2052 installed=yes 2311 installed=yes
2053 shouldnotlink=no 2312 shouldnotlink=no
2313 avoidtemprpath=
2314
2054 2315
2055 # Read the .la file 2316 # Read the .la file
2056 case $lib in 2317 case $lib in
@@ -2149,11 +2410,19 @@ EOF
2149 dir="$libdir" 2410 dir="$libdir"
2150 absdir="$libdir" 2411 absdir="$libdir"
2151 fi 2412 fi
2413 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
2152 else 2414 else
2153 dir="$ladir/$objdir" 2415 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
2154 absdir="$abs_ladir/$objdir" 2416 dir="$ladir"
2155 # Remove this search path later 2417 absdir="$abs_ladir"
2156 notinst_path="$notinst_path $abs_ladir" 2418 # Remove this search path later
2419 notinst_path="$notinst_path $abs_ladir"
2420 else
2421 dir="$ladir/$objdir"
2422 absdir="$abs_ladir/$objdir"
2423 # Remove this search path later
2424 notinst_path="$notinst_path $abs_ladir"
2425 fi
2157 fi # $installed = yes 2426 fi # $installed = yes
2158 name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` 2427 name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
2159 2428
@@ -2226,12 +2495,12 @@ EOF
2226 if test -n "$library_names" && 2495 if test -n "$library_names" &&
2227 { test "$prefer_static_libs" = no || test -z "$old_library"; }; then 2496 { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
2228 # We need to hardcode the library path 2497 # We need to hardcode the library path
2229 if test -n "$shlibpath_var"; then 2498 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
2230 # Make sure the rpath contains only unique directories. 2499 # Make sure the rpath contains only unique directories.
2231 case "$temp_rpath " in 2500 case "$temp_rpath " in
2232 *" $dir "*) ;; 2501 *" $dir "*) ;;
2233 *" $absdir "*) ;; 2502 *" $absdir "*) ;;
2234 *) temp_rpath="$temp_rpath $dir" ;; 2503 *) temp_rpath="$temp_rpath $absdir" ;;
2235 esac 2504 esac
2236 fi 2505 fi
2237 2506
@@ -2268,8 +2537,12 @@ EOF
2268 fi 2537 fi
2269 2538
2270 link_static=no # Whether the deplib will be linked statically 2539 link_static=no # Whether the deplib will be linked statically
2540 use_static_libs=$prefer_static_libs
2541 if test "$use_static_libs" = built && test "$installed" = yes ; then
2542 use_static_libs=no
2543 fi
2271 if test -n "$library_names" && 2544 if test -n "$library_names" &&
2272 { test "$prefer_static_libs" = no || test -z "$old_library"; }; then 2545 { test "$use_static_libs" = no || test -z "$old_library"; }; then
2273 if test "$installed" = no; then 2546 if test "$installed" = no; then
2274 notinst_deplibs="$notinst_deplibs $lib" 2547 notinst_deplibs="$notinst_deplibs $lib"
2275 need_relink=yes 2548 need_relink=yes
@@ -2382,11 +2655,15 @@ EOF
2382 if test "$hardcode_direct" = no; then 2655 if test "$hardcode_direct" = no; then
2383 add="$dir/$linklib" 2656 add="$dir/$linklib"
2384 case $host in 2657 case $host in
2385 *-*-sco3.2v5* ) add_dir="-L$dir" ;; 2658 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
2659 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
2660 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
2661 *-*-unixware7*) add_dir="-L$dir" ;;
2386 *-*-darwin* ) 2662 *-*-darwin* )
2387 # if the lib is a module then we can not link against 2663 # if the lib is a module then we can not link against
2388 # it, someone is ignoring the new warnings I added 2664 # it, someone is ignoring the new warnings I added
2389 if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then 2665 if /usr/bin/file -L $add 2> /dev/null |
2666 $EGREP ": [^:]* bundle" >/dev/null ; then
2390 $echo "** Warning, lib $linklib is a module, not a shared library" 2667 $echo "** Warning, lib $linklib is a module, not a shared library"
2391 if test -z "$old_library" ; then 2668 if test -z "$old_library" ; then
2392 $echo 2669 $echo
@@ -2417,7 +2694,7 @@ EOF
2417 add_dir="-L$dir" 2694 add_dir="-L$dir"
2418 # Try looking first in the location we're being installed to. 2695 # Try looking first in the location we're being installed to.
2419 if test -n "$inst_prefix_dir"; then 2696 if test -n "$inst_prefix_dir"; then
2420 case "$libdir" in 2697 case $libdir in
2421 [\\/]*) 2698 [\\/]*)
2422 add_dir="$add_dir -L$inst_prefix_dir$libdir" 2699 add_dir="$add_dir -L$inst_prefix_dir$libdir"
2423 ;; 2700 ;;
@@ -2490,7 +2767,7 @@ EOF
2490 add_dir="-L$libdir" 2767 add_dir="-L$libdir"
2491 # Try looking first in the location we're being installed to. 2768 # Try looking first in the location we're being installed to.
2492 if test -n "$inst_prefix_dir"; then 2769 if test -n "$inst_prefix_dir"; then
2493 case "$libdir" in 2770 case $libdir in
2494 [\\/]*) 2771 [\\/]*)
2495 add_dir="$add_dir -L$inst_prefix_dir$libdir" 2772 add_dir="$add_dir -L$inst_prefix_dir$libdir"
2496 ;; 2773 ;;
@@ -2551,8 +2828,6 @@ EOF
2551 fi 2828 fi
2552 fi 2829 fi
2553 else 2830 else
2554 convenience="$convenience $dir/$old_library"
2555 old_convenience="$old_convenience $dir/$old_library"
2556 deplibs="$dir/$old_library $deplibs" 2831 deplibs="$dir/$old_library $deplibs"
2557 link_static=yes 2832 link_static=yes
2558 fi 2833 fi
@@ -2670,12 +2945,12 @@ EOF
2670 *) continue ;; 2945 *) continue ;;
2671 esac 2946 esac
2672 case " $deplibs " in 2947 case " $deplibs " in
2673 *" $depdepl "*) ;; 2948 *" $path "*) ;;
2674 *) deplibs="$depdepl $deplibs" ;; 2949 *) deplibs="$path $deplibs" ;;
2675 esac 2950 esac
2676 case " $deplibs " in 2951 case " $deplibs " in
2677 *" $path "*) ;; 2952 *" $depdepl "*) ;;
2678 *) deplibs="$deplibs $path" ;; 2953 *) deplibs="$depdepl $deplibs" ;;
2679 esac 2954 esac
2680 done 2955 done
2681 fi # link_all_deplibs != no 2956 fi # link_all_deplibs != no
@@ -2947,7 +3222,7 @@ EOF
2947 case $current in 3222 case $current in
2948 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; 3223 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
2949 *) 3224 *)
2950 $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2 3225 $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
2951 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 3226 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
2952 exit $EXIT_FAILURE 3227 exit $EXIT_FAILURE
2953 ;; 3228 ;;
@@ -2956,7 +3231,7 @@ EOF
2956 case $revision in 3231 case $revision in
2957 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; 3232 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
2958 *) 3233 *)
2959 $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2 3234 $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
2960 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 3235 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
2961 exit $EXIT_FAILURE 3236 exit $EXIT_FAILURE
2962 ;; 3237 ;;
@@ -2965,7 +3240,7 @@ EOF
2965 case $age in 3240 case $age in
2966 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; 3241 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
2967 *) 3242 *)
2968 $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2 3243 $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
2969 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 3244 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
2970 exit $EXIT_FAILURE 3245 exit $EXIT_FAILURE
2971 ;; 3246 ;;
@@ -2991,7 +3266,7 @@ EOF
2991 versuffix="$major.$age.$revision" 3266 versuffix="$major.$age.$revision"
2992 # Darwin ld doesn't like 0 for these options... 3267 # Darwin ld doesn't like 0 for these options...
2993 minor_current=`expr $current + 1` 3268 minor_current=`expr $current + 1`
2994 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" 3269 verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
2995 ;; 3270 ;;
2996 3271
2997 freebsd-aout) 3272 freebsd-aout)
@@ -3144,9 +3419,9 @@ EOF
3144 3419
3145 # Eliminate all temporary directories. 3420 # Eliminate all temporary directories.
3146 for path in $notinst_path; do 3421 for path in $notinst_path; do
3147 lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'` 3422 lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
3148 deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'` 3423 deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
3149 dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'` 3424 dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
3150 done 3425 done
3151 3426
3152 if test -n "$xrpath"; then 3427 if test -n "$xrpath"; then
@@ -3197,9 +3472,14 @@ EOF
3197 *-*-netbsd*) 3472 *-*-netbsd*)
3198 # Don't link with libc until the a.out ld.so is fixed. 3473 # Don't link with libc until the a.out ld.so is fixed.
3199 ;; 3474 ;;
3200 *-*-openbsd* | *-*-freebsd*) 3475 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
3201 # Do not include libc due to us having libc/libc_r. 3476 # Do not include libc due to us having libc/libc_r.
3202 test "X$arg" = "X-lc" && continue 3477 ;;
3478 *-*-sco3.2v5* | *-*-sco5v6*)
3479 # Causes problems with __ctype
3480 ;;
3481 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
3482 # Compiler inserts libc in the correct place for threads to work
3203 ;; 3483 ;;
3204 *) 3484 *)
3205 # Add libc to deplibs on all other systems if necessary. 3485 # Add libc to deplibs on all other systems if necessary.
@@ -3243,11 +3523,11 @@ EOF
3243 int main() { return 0; } 3523 int main() { return 0; }
3244EOF 3524EOF
3245 $rm conftest 3525 $rm conftest
3246 $LTCC -o conftest conftest.c $deplibs 3526 $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
3247 if test "$?" -eq 0 ; then 3527 if test "$?" -eq 0 ; then
3248 ldd_output=`ldd conftest` 3528 ldd_output=`ldd conftest`
3249 for i in $deplibs; do 3529 for i in $deplibs; do
3250 name="`expr $i : '-l\(.*\)'`" 3530 name=`expr $i : '-l\(.*\)'`
3251 # If $name is empty we are operating on a -L argument. 3531 # If $name is empty we are operating on a -L argument.
3252 if test "$name" != "" && test "$name" -ne "0"; then 3532 if test "$name" != "" && test "$name" -ne "0"; then
3253 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then 3533 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
@@ -3284,11 +3564,11 @@ EOF
3284 # Error occurred in the first compile. Let's try to salvage 3564 # Error occurred in the first compile. Let's try to salvage
3285 # the situation: Compile a separate program for each library. 3565 # the situation: Compile a separate program for each library.
3286 for i in $deplibs; do 3566 for i in $deplibs; do
3287 name="`expr $i : '-l\(.*\)'`" 3567 name=`expr $i : '-l\(.*\)'`
3288 # If $name is empty we are operating on a -L argument. 3568 # If $name is empty we are operating on a -L argument.
3289 if test "$name" != "" && test "$name" != "0"; then 3569 if test "$name" != "" && test "$name" != "0"; then
3290 $rm conftest 3570 $rm conftest
3291 $LTCC -o conftest conftest.c $i 3571 $LTCC $LTCFLAGS -o conftest conftest.c $i
3292 # Did it work? 3572 # Did it work?
3293 if test "$?" -eq 0 ; then 3573 if test "$?" -eq 0 ; then
3294 ldd_output=`ldd conftest` 3574 ldd_output=`ldd conftest`
@@ -3336,7 +3616,7 @@ EOF
3336 set dummy $deplibs_check_method 3616 set dummy $deplibs_check_method
3337 file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` 3617 file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
3338 for a_deplib in $deplibs; do 3618 for a_deplib in $deplibs; do
3339 name="`expr $a_deplib : '-l\(.*\)'`" 3619 name=`expr $a_deplib : '-l\(.*\)'`
3340 # If $name is empty we are operating on a -L argument. 3620 # If $name is empty we are operating on a -L argument.
3341 if test "$name" != "" && test "$name" != "0"; then 3621 if test "$name" != "" && test "$name" != "0"; then
3342 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then 3622 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
@@ -3405,7 +3685,7 @@ EOF
3405 set dummy $deplibs_check_method 3685 set dummy $deplibs_check_method
3406 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` 3686 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
3407 for a_deplib in $deplibs; do 3687 for a_deplib in $deplibs; do
3408 name="`expr $a_deplib : '-l\(.*\)'`" 3688 name=`expr $a_deplib : '-l\(.*\)'`
3409 # If $name is empty we are operating on a -L argument. 3689 # If $name is empty we are operating on a -L argument.
3410 if test -n "$name" && test "$name" != "0"; then 3690 if test -n "$name" && test "$name" != "0"; then
3411 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then 3691 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
@@ -3535,6 +3815,35 @@ EOF
3535 deplibs=$newdeplibs 3815 deplibs=$newdeplibs
3536 fi 3816 fi
3537 3817
3818
3819 # move library search paths that coincide with paths to not yet
3820 # installed libraries to the beginning of the library search list
3821 new_libs=
3822 for path in $notinst_path; do
3823 case " $new_libs " in
3824 *" -L$path/$objdir "*) ;;
3825 *)
3826 case " $deplibs " in
3827 *" -L$path/$objdir "*)
3828 new_libs="$new_libs -L$path/$objdir" ;;
3829 esac
3830 ;;
3831 esac
3832 done
3833 for deplib in $deplibs; do
3834 case $deplib in
3835 -L*)
3836 case " $new_libs " in
3837 *" $deplib "*) ;;
3838 *) new_libs="$new_libs $deplib" ;;
3839 esac
3840 ;;
3841 *) new_libs="$new_libs $deplib" ;;
3842 esac
3843 done
3844 deplibs="$new_libs"
3845
3846
3538 # All the library-specific variables (install_libdir is set above). 3847 # All the library-specific variables (install_libdir is set above).
3539 library_names= 3848 library_names=
3540 old_library= 3849 old_library=
@@ -3618,6 +3927,7 @@ EOF
3618 fi 3927 fi
3619 3928
3620 lib="$output_objdir/$realname" 3929 lib="$output_objdir/$realname"
3930 linknames=
3621 for link 3931 for link
3622 do 3932 do
3623 linknames="$linknames $link" 3933 linknames="$linknames $link"
@@ -3646,6 +3956,9 @@ EOF
3646 # The command line is too long to execute in one step. 3956 # The command line is too long to execute in one step.
3647 $show "using reloadable object file for export list..." 3957 $show "using reloadable object file for export list..."
3648 skipped_export=: 3958 skipped_export=:
3959 # Break out early, otherwise skipped_export may be
3960 # set to false by a later but shorter cmd.
3961 break
3649 fi 3962 fi
3650 done 3963 done
3651 IFS="$save_ifs" 3964 IFS="$save_ifs"
@@ -3679,67 +3992,13 @@ EOF
3679 eval libobjs=\"\$libobjs $whole_archive_flag_spec\" 3992 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
3680 else 3993 else
3681 gentop="$output_objdir/${outputname}x" 3994 gentop="$output_objdir/${outputname}x"
3682 $show "${rm}r $gentop"
3683 $run ${rm}r "$gentop"
3684 $show "$mkdir $gentop"
3685 $run $mkdir "$gentop"
3686 status=$?
3687 if test "$status" -ne 0 && test ! -d "$gentop"; then
3688 exit $status
3689 fi
3690 generated="$generated $gentop" 3995 generated="$generated $gentop"
3691 3996
3692 for xlib in $convenience; do 3997 func_extract_archives $gentop $convenience
3693 # Extract the objects. 3998 libobjs="$libobjs $func_extract_archives_result"
3694 case $xlib in
3695 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
3696 *) xabs=`pwd`"/$xlib" ;;
3697 esac
3698 xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
3699 xdir="$gentop/$xlib"
3700
3701 $show "${rm}r $xdir"
3702 $run ${rm}r "$xdir"
3703 $show "$mkdir $xdir"
3704 $run $mkdir "$xdir"
3705 status=$?
3706 if test "$status" -ne 0 && test ! -d "$xdir"; then
3707 exit $status
3708 fi
3709 # We will extract separately just the conflicting names and we will no
3710 # longer touch any unique names. It is faster to leave these extract
3711 # automatically by $AR in one run.
3712 $show "(cd $xdir && $AR x $xabs)"
3713 $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
3714 if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
3715 :
3716 else
3717 $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
3718 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
3719 $AR t "$xabs" | sort | uniq -cd | while read -r count name
3720 do
3721 i=1
3722 while test "$i" -le "$count"
3723 do
3724 # Put our $i before any first dot (extension)
3725 # Never overwrite any file
3726 name_to="$name"
3727 while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
3728 do
3729 name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
3730 done
3731 $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
3732 $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
3733 i=`expr $i + 1`
3734 done
3735 done
3736 fi
3737
3738 libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
3739 done
3740 fi 3999 fi
3741 fi 4000 fi
3742 4001
3743 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then 4002 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
3744 eval flag=\"$thread_safe_flag_spec\" 4003 eval flag=\"$thread_safe_flag_spec\"
3745 linker_flags="$linker_flags $flag" 4004 linker_flags="$linker_flags $flag"
@@ -3769,7 +4028,8 @@ EOF
3769 fi 4028 fi
3770 fi 4029 fi
3771 4030
3772 if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` && 4031 if test "X$skipped_export" != "X:" &&
4032 len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
3773 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then 4033 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
3774 : 4034 :
3775 else 4035 else
@@ -3788,6 +4048,7 @@ EOF
3788 save_libobjs=$libobjs 4048 save_libobjs=$libobjs
3789 fi 4049 fi
3790 save_output=$output 4050 save_output=$output
4051 output_la=`$echo "X$output" | $Xsed -e "$basename"`
3791 4052
3792 # Clear the reloadable object creation command queue and 4053 # Clear the reloadable object creation command queue and
3793 # initialize k to one. 4054 # initialize k to one.
@@ -3797,13 +4058,13 @@ EOF
3797 delfiles= 4058 delfiles=
3798 last_robj= 4059 last_robj=
3799 k=1 4060 k=1
3800 output=$output_objdir/$save_output-${k}.$objext 4061 output=$output_objdir/$output_la-${k}.$objext
3801 # Loop over the list of objects to be linked. 4062 # Loop over the list of objects to be linked.
3802 for obj in $save_libobjs 4063 for obj in $save_libobjs
3803 do 4064 do
3804 eval test_cmds=\"$reload_cmds $objlist $last_robj\" 4065 eval test_cmds=\"$reload_cmds $objlist $last_robj\"
3805 if test "X$objlist" = X || 4066 if test "X$objlist" = X ||
3806 { len=`expr "X$test_cmds" : ".*"` && 4067 { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
3807 test "$len" -le "$max_cmd_len"; }; then 4068 test "$len" -le "$max_cmd_len"; }; then
3808 objlist="$objlist $obj" 4069 objlist="$objlist $obj"
3809 else 4070 else
@@ -3817,9 +4078,9 @@ EOF
3817 # the last one created. 4078 # the last one created.
3818 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\" 4079 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
3819 fi 4080 fi
3820 last_robj=$output_objdir/$save_output-${k}.$objext 4081 last_robj=$output_objdir/$output_la-${k}.$objext
3821 k=`expr $k + 1` 4082 k=`expr $k + 1`
3822 output=$output_objdir/$save_output-${k}.$objext 4083 output=$output_objdir/$output_la-${k}.$objext
3823 objlist=$obj 4084 objlist=$obj
3824 len=1 4085 len=1
3825 fi 4086 fi
@@ -3839,13 +4100,13 @@ EOF
3839 eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\" 4100 eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
3840 fi 4101 fi
3841 4102
3842 # Set up a command to remove the reloadale object files 4103 # Set up a command to remove the reloadable object files
3843 # after they are used. 4104 # after they are used.
3844 i=0 4105 i=0
3845 while test "$i" -lt "$k" 4106 while test "$i" -lt "$k"
3846 do 4107 do
3847 i=`expr $i + 1` 4108 i=`expr $i + 1`
3848 delfiles="$delfiles $output_objdir/$save_output-${i}.$objext" 4109 delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
3849 done 4110 done
3850 4111
3851 $echo "creating a temporary reloadable object file: $output" 4112 $echo "creating a temporary reloadable object file: $output"
@@ -3893,13 +4154,30 @@ EOF
3893 IFS="$save_ifs" 4154 IFS="$save_ifs"
3894 eval cmd=\"$cmd\" 4155 eval cmd=\"$cmd\"
3895 $show "$cmd" 4156 $show "$cmd"
3896 $run eval "$cmd" || exit $? 4157 $run eval "$cmd" || {
4158 lt_exit=$?
4159
4160 # Restore the uninstalled library and exit
4161 if test "$mode" = relink; then
4162 $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
4163 fi
4164
4165 exit $lt_exit
4166 }
3897 done 4167 done
3898 IFS="$save_ifs" 4168 IFS="$save_ifs"
3899 4169
3900 # Restore the uninstalled library and exit 4170 # Restore the uninstalled library and exit
3901 if test "$mode" = relink; then 4171 if test "$mode" = relink; then
3902 $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $? 4172 $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
4173
4174 if test -n "$convenience"; then
4175 if test -z "$whole_archive_flag_spec"; then
4176 $show "${rm}r $gentop"
4177 $run ${rm}r "$gentop"
4178 fi
4179 fi
4180
3903 exit $EXIT_SUCCESS 4181 exit $EXIT_SUCCESS
3904 fi 4182 fi
3905 4183
@@ -3977,64 +4255,10 @@ EOF
3977 eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\" 4255 eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
3978 else 4256 else
3979 gentop="$output_objdir/${obj}x" 4257 gentop="$output_objdir/${obj}x"
3980 $show "${rm}r $gentop"
3981 $run ${rm}r "$gentop"
3982 $show "$mkdir $gentop"
3983 $run $mkdir "$gentop"
3984 status=$?
3985 if test "$status" -ne 0 && test ! -d "$gentop"; then
3986 exit $status
3987 fi
3988 generated="$generated $gentop" 4258 generated="$generated $gentop"
3989 4259
3990 for xlib in $convenience; do 4260 func_extract_archives $gentop $convenience
3991 # Extract the objects. 4261 reload_conv_objs="$reload_objs $func_extract_archives_result"
3992 case $xlib in
3993 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
3994 *) xabs=`pwd`"/$xlib" ;;
3995 esac
3996 xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
3997 xdir="$gentop/$xlib"
3998
3999 $show "${rm}r $xdir"
4000 $run ${rm}r "$xdir"
4001 $show "$mkdir $xdir"
4002 $run $mkdir "$xdir"
4003 status=$?
4004 if test "$status" -ne 0 && test ! -d "$xdir"; then
4005 exit $status
4006 fi
4007 # We will extract separately just the conflicting names and we will no
4008 # longer touch any unique names. It is faster to leave these extract
4009 # automatically by $AR in one run.
4010 $show "(cd $xdir && $AR x $xabs)"
4011 $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
4012 if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
4013 :
4014 else
4015 $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
4016 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
4017 $AR t "$xabs" | sort | uniq -cd | while read -r count name
4018 do
4019 i=1
4020 while test "$i" -le "$count"
4021 do
4022 # Put our $i before any first dot (extension)
4023 # Never overwrite any file
4024 name_to="$name"
4025 while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
4026 do
4027 name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
4028 done
4029 $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
4030 $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
4031 i=`expr $i + 1`
4032 done
4033 done
4034 fi
4035
4036 reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
4037 done
4038 fi 4262 fi
4039 fi 4263 fi
4040 4264
@@ -4135,6 +4359,35 @@ EOF
4135 ;; 4359 ;;
4136 esac 4360 esac
4137 4361
4362
4363 # move library search paths that coincide with paths to not yet
4364 # installed libraries to the beginning of the library search list
4365 new_libs=
4366 for path in $notinst_path; do
4367 case " $new_libs " in
4368 *" -L$path/$objdir "*) ;;
4369 *)
4370 case " $compile_deplibs " in
4371 *" -L$path/$objdir "*)
4372 new_libs="$new_libs -L$path/$objdir" ;;
4373 esac
4374 ;;
4375 esac
4376 done
4377 for deplib in $compile_deplibs; do
4378 case $deplib in
4379 -L*)
4380 case " $new_libs " in
4381 *" $deplib "*) ;;
4382 *) new_libs="$new_libs $deplib" ;;
4383 esac
4384 ;;
4385 *) new_libs="$new_libs $deplib" ;;
4386 esac
4387 done
4388 compile_deplibs="$new_libs"
4389
4390
4138 compile_command="$compile_command $compile_deplibs" 4391 compile_command="$compile_command $compile_deplibs"
4139 finalize_command="$finalize_command $finalize_deplibs" 4392 finalize_command="$finalize_command $finalize_deplibs"
4140 4393
@@ -4179,10 +4432,15 @@ EOF
4179 fi 4432 fi
4180 case $host in 4433 case $host in
4181 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) 4434 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
4435 testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
4182 case :$dllsearchpath: in 4436 case :$dllsearchpath: in
4183 *":$libdir:"*) ;; 4437 *":$libdir:"*) ;;
4184 *) dllsearchpath="$dllsearchpath:$libdir";; 4438 *) dllsearchpath="$dllsearchpath:$libdir";;
4185 esac 4439 esac
4440 case :$dllsearchpath: in
4441 *":$testbindir:"*) ;;
4442 *) dllsearchpath="$dllsearchpath:$testbindir";;
4443 esac
4186 ;; 4444 ;;
4187 esac 4445 esac
4188 done 4446 done
@@ -4296,13 +4554,25 @@ extern \"C\" {
4296 4554
4297 # Prepare the list of exported symbols 4555 # Prepare the list of exported symbols
4298 if test -z "$export_symbols"; then 4556 if test -z "$export_symbols"; then
4299 export_symbols="$output_objdir/$output.exp" 4557 export_symbols="$output_objdir/$outputname.exp"
4300 $run $rm $export_symbols 4558 $run $rm $export_symbols
4301 $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' 4559 $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4560 case $host in
4561 *cygwin* | *mingw* )
4562 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4563 $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
4564 ;;
4565 esac
4302 else 4566 else
4303 $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"' 4567 $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4304 $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T' 4568 $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4305 $run eval 'mv "$nlist"T "$nlist"' 4569 $run eval 'mv "$nlist"T "$nlist"'
4570 case $host in
4571 *cygwin* | *mingw* )
4572 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4573 $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
4574 ;;
4575 esac
4306 fi 4576 fi
4307 fi 4577 fi
4308 4578
@@ -4353,7 +4623,26 @@ extern \"C\" {
4353#endif 4623#endif
4354 4624
4355/* The mapping between symbol names and symbols. */ 4625/* The mapping between symbol names and symbols. */
4626"
4627
4628 case $host in
4629 *cygwin* | *mingw* )
4630 $echo >> "$output_objdir/$dlsyms" "\
4631/* DATA imports from DLLs on WIN32 can't be const, because
4632 runtime relocations are performed -- see ld's documentation
4633 on pseudo-relocs */
4634struct {
4635"
4636 ;;
4637 * )
4638 $echo >> "$output_objdir/$dlsyms" "\
4356const struct { 4639const struct {
4640"
4641 ;;
4642 esac
4643
4644
4645 $echo >> "$output_objdir/$dlsyms" "\
4357 const char *name; 4646 const char *name;
4358 lt_ptr address; 4647 lt_ptr address;
4359} 4648}
@@ -4400,16 +4689,29 @@ static const void *lt_preloaded_setup() {
4400 esac 4689 esac
4401 4690
4402 # Now compile the dynamic symbol file. 4691 # Now compile the dynamic symbol file.
4403 $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" 4692 $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
4404 $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $? 4693 $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
4405 4694
4406 # Clean up the generated files. 4695 # Clean up the generated files.
4407 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T" 4696 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
4408 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T" 4697 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
4409 4698
4410 # Transform the symbol file into the correct name. 4699 # Transform the symbol file into the correct name.
4411 compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` 4700 case $host in
4412 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` 4701 *cygwin* | *mingw* )
4702 if test -f "$output_objdir/${outputname}.def" ; then
4703 compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
4704 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
4705 else
4706 compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4707 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4708 fi
4709 ;;
4710 * )
4711 compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4712 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4713 ;;
4714 esac
4413 ;; 4715 ;;
4414 *) 4716 *)
4415 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 4717 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
@@ -4434,7 +4736,7 @@ static const void *lt_preloaded_setup() {
4434 # We have no uninstalled library dependencies, so finalize right now. 4736 # We have no uninstalled library dependencies, so finalize right now.
4435 $show "$link_command" 4737 $show "$link_command"
4436 $run eval "$link_command" 4738 $run eval "$link_command"
4437 status=$? 4739 exit_status=$?
4438 4740
4439 # Delete the generated files. 4741 # Delete the generated files.
4440 if test -n "$dlsyms"; then 4742 if test -n "$dlsyms"; then
@@ -4442,7 +4744,7 @@ static const void *lt_preloaded_setup() {
4442 $run $rm "$output_objdir/${outputname}S.${objext}" 4744 $run $rm "$output_objdir/${outputname}S.${objext}"
4443 fi 4745 fi
4444 4746
4445 exit $status 4747 exit $exit_status
4446 fi 4748 fi
4447 4749
4448 if test -n "$shlibpath_var"; then 4750 if test -n "$shlibpath_var"; then
@@ -4582,10 +4884,12 @@ static const void *lt_preloaded_setup() {
4582 esac 4884 esac
4583 case $host in 4885 case $host in
4584 *cygwin* | *mingw* ) 4886 *cygwin* | *mingw* )
4585 cwrappersource=`$echo ${objdir}/lt-${output}.c` 4887 output_name=`basename $output`
4586 cwrapper=`$echo ${output}.exe` 4888 output_path=`dirname $output`
4587 $rm $cwrappersource $cwrapper 4889 cwrappersource="$output_path/$objdir/lt-$output_name.c"
4588 trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 4890 cwrapper="$output_path/$output_name.exe"
4891 $rm $cwrappersource $cwrapper
4892 trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
4589 4893
4590 cat > $cwrappersource <<EOF 4894 cat > $cwrappersource <<EOF
4591 4895
@@ -4610,6 +4914,9 @@ EOF
4610#include <malloc.h> 4914#include <malloc.h>
4611#include <stdarg.h> 4915#include <stdarg.h>
4612#include <assert.h> 4916#include <assert.h>
4917#include <string.h>
4918#include <ctype.h>
4919#include <sys/stat.h>
4613 4920
4614#if defined(PATH_MAX) 4921#if defined(PATH_MAX)
4615# define LT_PATHMAX PATH_MAX 4922# define LT_PATHMAX PATH_MAX
@@ -4620,15 +4927,19 @@ EOF
4620#endif 4927#endif
4621 4928
4622#ifndef DIR_SEPARATOR 4929#ifndef DIR_SEPARATOR
4623#define DIR_SEPARATOR '/' 4930# define DIR_SEPARATOR '/'
4931# define PATH_SEPARATOR ':'
4624#endif 4932#endif
4625 4933
4626#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ 4934#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4627 defined (__OS2__) 4935 defined (__OS2__)
4628#define HAVE_DOS_BASED_FILE_SYSTEM 4936# define HAVE_DOS_BASED_FILE_SYSTEM
4629#ifndef DIR_SEPARATOR_2 4937# ifndef DIR_SEPARATOR_2
4630#define DIR_SEPARATOR_2 '\\' 4938# define DIR_SEPARATOR_2 '\\'
4631#endif 4939# endif
4940# ifndef PATH_SEPARATOR_2
4941# define PATH_SEPARATOR_2 ';'
4942# endif
4632#endif 4943#endif
4633 4944
4634#ifndef DIR_SEPARATOR_2 4945#ifndef DIR_SEPARATOR_2
@@ -4638,17 +4949,32 @@ EOF
4638 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) 4949 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
4639#endif /* DIR_SEPARATOR_2 */ 4950#endif /* DIR_SEPARATOR_2 */
4640 4951
4952#ifndef PATH_SEPARATOR_2
4953# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
4954#else /* PATH_SEPARATOR_2 */
4955# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
4956#endif /* PATH_SEPARATOR_2 */
4957
4641#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) 4958#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
4642#define XFREE(stale) do { \ 4959#define XFREE(stale) do { \
4643 if (stale) { free ((void *) stale); stale = 0; } \ 4960 if (stale) { free ((void *) stale); stale = 0; } \
4644} while (0) 4961} while (0)
4645 4962
4963/* -DDEBUG is fairly common in CFLAGS. */
4964#undef DEBUG
4965#if defined DEBUGWRAPPER
4966# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
4967#else
4968# define DEBUG(format, ...)
4969#endif
4970
4646const char *program_name = NULL; 4971const char *program_name = NULL;
4647 4972
4648void * xmalloc (size_t num); 4973void * xmalloc (size_t num);
4649char * xstrdup (const char *string); 4974char * xstrdup (const char *string);
4650char * basename (const char *name); 4975const char * base_name (const char *name);
4651char * fnqualify(const char *path); 4976char * find_executable(const char *wrapper);
4977int check_executable(const char *path);
4652char * strendzap(char *str, const char *pat); 4978char * strendzap(char *str, const char *pat);
4653void lt_fatal (const char *message, ...); 4979void lt_fatal (const char *message, ...);
4654 4980
@@ -4658,29 +4984,51 @@ main (int argc, char *argv[])
4658 char **newargz; 4984 char **newargz;
4659 int i; 4985 int i;
4660 4986
4661 program_name = (char *) xstrdup ((char *) basename (argv[0])); 4987 program_name = (char *) xstrdup (base_name (argv[0]));
4988 DEBUG("(main) argv[0] : %s\n",argv[0]);
4989 DEBUG("(main) program_name : %s\n",program_name);
4662 newargz = XMALLOC(char *, argc+2); 4990 newargz = XMALLOC(char *, argc+2);
4663EOF 4991EOF
4664 4992
4665 cat >> $cwrappersource <<EOF 4993 cat >> $cwrappersource <<EOF
4666 newargz[0] = "$SHELL"; 4994 newargz[0] = (char *) xstrdup("$SHELL");
4667EOF 4995EOF
4668 4996
4669 cat >> $cwrappersource <<"EOF" 4997 cat >> $cwrappersource <<"EOF"
4670 newargz[1] = fnqualify(argv[0]); 4998 newargz[1] = find_executable(argv[0]);
4999 if (newargz[1] == NULL)
5000 lt_fatal("Couldn't find %s", argv[0]);
5001 DEBUG("(main) found exe at : %s\n",newargz[1]);
4671 /* we know the script has the same name, without the .exe */ 5002 /* we know the script has the same name, without the .exe */
4672 /* so make sure newargz[1] doesn't end in .exe */ 5003 /* so make sure newargz[1] doesn't end in .exe */
4673 strendzap(newargz[1],".exe"); 5004 strendzap(newargz[1],".exe");
4674 for (i = 1; i < argc; i++) 5005 for (i = 1; i < argc; i++)
4675 newargz[i+1] = xstrdup(argv[i]); 5006 newargz[i+1] = xstrdup(argv[i]);
4676 newargz[argc+1] = NULL; 5007 newargz[argc+1] = NULL;
5008
5009 for (i=0; i<argc+1; i++)
5010 {
5011 DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
5012 ;
5013 }
5014
4677EOF 5015EOF
4678 5016
4679 cat >> $cwrappersource <<EOF 5017 case $host_os in
5018 mingw*)
5019 cat >> $cwrappersource <<EOF
5020 execv("$SHELL",(char const **)newargz);
5021EOF
5022 ;;
5023 *)
5024 cat >> $cwrappersource <<EOF
4680 execv("$SHELL",newargz); 5025 execv("$SHELL",newargz);
4681EOF 5026EOF
5027 ;;
5028 esac
4682 5029
4683 cat >> $cwrappersource <<"EOF" 5030 cat >> $cwrappersource <<"EOF"
5031 return 127;
4684} 5032}
4685 5033
4686void * 5034void *
@@ -4700,48 +5048,148 @@ xstrdup (const char *string)
4700; 5048;
4701} 5049}
4702 5050
4703char * 5051const char *
4704basename (const char *name) 5052base_name (const char *name)
4705{ 5053{
4706 const char *base; 5054 const char *base;
4707 5055
4708#if defined (HAVE_DOS_BASED_FILE_SYSTEM) 5056#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4709 /* Skip over the disk name in MSDOS pathnames. */ 5057 /* Skip over the disk name in MSDOS pathnames. */
4710 if (isalpha (name[0]) && name[1] == ':') 5058 if (isalpha ((unsigned char)name[0]) && name[1] == ':')
4711 name += 2; 5059 name += 2;
4712#endif 5060#endif
4713 5061
4714 for (base = name; *name; name++) 5062 for (base = name; *name; name++)
4715 if (IS_DIR_SEPARATOR (*name)) 5063 if (IS_DIR_SEPARATOR (*name))
4716 base = name + 1; 5064 base = name + 1;
4717 return (char *) base; 5065 return base;
4718} 5066}
4719 5067
5068int
5069check_executable(const char * path)
5070{
5071 struct stat st;
5072
5073 DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
5074 if ((!path) || (!*path))
5075 return 0;
5076
5077 if ((stat (path, &st) >= 0) &&
5078 (
5079 /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
5080#if defined (S_IXOTH)
5081 ((st.st_mode & S_IXOTH) == S_IXOTH) ||
5082#endif
5083#if defined (S_IXGRP)
5084 ((st.st_mode & S_IXGRP) == S_IXGRP) ||
5085#endif
5086 ((st.st_mode & S_IXUSR) == S_IXUSR))
5087 )
5088 return 1;
5089 else
5090 return 0;
5091}
5092
5093/* Searches for the full path of the wrapper. Returns
5094 newly allocated full path name if found, NULL otherwise */
4720char * 5095char *
4721fnqualify(const char *path) 5096find_executable (const char* wrapper)
4722{ 5097{
4723 size_t size; 5098 int has_slash = 0;
4724 char *p; 5099 const char* p;
5100 const char* p_next;
5101 /* static buffer for getcwd */
4725 char tmp[LT_PATHMAX + 1]; 5102 char tmp[LT_PATHMAX + 1];
5103 int tmp_len;
5104 char* concat_name;
4726 5105
4727 assert(path != NULL); 5106 DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
4728 5107
4729 /* Is it qualified already? */ 5108 if ((wrapper == NULL) || (*wrapper == '\0'))
5109 return NULL;
5110
5111 /* Absolute path? */
4730#if defined (HAVE_DOS_BASED_FILE_SYSTEM) 5112#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4731 if (isalpha (path[0]) && path[1] == ':') 5113 if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
4732 return xstrdup (path); 5114 {
5115 concat_name = xstrdup (wrapper);
5116 if (check_executable(concat_name))
5117 return concat_name;
5118 XFREE(concat_name);
5119 }
5120 else
5121 {
5122#endif
5123 if (IS_DIR_SEPARATOR (wrapper[0]))
5124 {
5125 concat_name = xstrdup (wrapper);
5126 if (check_executable(concat_name))
5127 return concat_name;
5128 XFREE(concat_name);
5129 }
5130#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5131 }
4733#endif 5132#endif
4734 if (IS_DIR_SEPARATOR (path[0]))
4735 return xstrdup (path);
4736 5133
4737 /* prepend the current directory */ 5134 for (p = wrapper; *p; p++)
4738 /* doesn't handle '~' */ 5135 if (*p == '/')
5136 {
5137 has_slash = 1;
5138 break;
5139 }
5140 if (!has_slash)
5141 {
5142 /* no slashes; search PATH */
5143 const char* path = getenv ("PATH");
5144 if (path != NULL)
5145 {
5146 for (p = path; *p; p = p_next)
5147 {
5148 const char* q;
5149 size_t p_len;
5150 for (q = p; *q; q++)
5151 if (IS_PATH_SEPARATOR(*q))
5152 break;
5153 p_len = q - p;
5154 p_next = (*q == '\0' ? q : q + 1);
5155 if (p_len == 0)
5156 {
5157 /* empty path: current directory */
5158 if (getcwd (tmp, LT_PATHMAX) == NULL)
5159 lt_fatal ("getcwd failed");
5160 tmp_len = strlen(tmp);
5161 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5162 memcpy (concat_name, tmp, tmp_len);
5163 concat_name[tmp_len] = '/';
5164 strcpy (concat_name + tmp_len + 1, wrapper);
5165 }
5166 else
5167 {
5168 concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
5169 memcpy (concat_name, p, p_len);
5170 concat_name[p_len] = '/';
5171 strcpy (concat_name + p_len + 1, wrapper);
5172 }
5173 if (check_executable(concat_name))
5174 return concat_name;
5175 XFREE(concat_name);
5176 }
5177 }
5178 /* not found in PATH; assume curdir */
5179 }
5180 /* Relative path | not found in path: prepend cwd */
4739 if (getcwd (tmp, LT_PATHMAX) == NULL) 5181 if (getcwd (tmp, LT_PATHMAX) == NULL)
4740 lt_fatal ("getcwd failed"); 5182 lt_fatal ("getcwd failed");
4741 size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */ 5183 tmp_len = strlen(tmp);
4742 p = XMALLOC(char, size); 5184 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
4743 sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path); 5185 memcpy (concat_name, tmp, tmp_len);
4744 return p; 5186 concat_name[tmp_len] = '/';
5187 strcpy (concat_name + tmp_len + 1, wrapper);
5188
5189 if (check_executable(concat_name))
5190 return concat_name;
5191 XFREE(concat_name);
5192 return NULL;
4745} 5193}
4746 5194
4747char * 5195char *
@@ -4785,16 +5233,16 @@ lt_fatal (const char *message, ...)
4785 va_end (ap); 5233 va_end (ap);
4786} 5234}
4787EOF 5235EOF
4788 # we should really use a build-platform specific compiler 5236 # we should really use a build-platform specific compiler
4789 # here, but OTOH, the wrappers (shell script and this C one) 5237 # here, but OTOH, the wrappers (shell script and this C one)
4790 # are only useful if you want to execute the "real" binary. 5238 # are only useful if you want to execute the "real" binary.
4791 # Since the "real" binary is built for $host, then this 5239 # Since the "real" binary is built for $host, then this
4792 # wrapper might as well be built for $host, too. 5240 # wrapper might as well be built for $host, too.
4793 $run $LTCC -s -o $cwrapper $cwrappersource 5241 $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
4794 ;; 5242 ;;
4795 esac 5243 esac
4796 $rm $output 5244 $rm $output
4797 trap "$rm $output; exit $EXIT_FAILURE" 1 2 15 5245 trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
4798 5246
4799 $echo > $output "\ 5247 $echo > $output "\
4800#! $SHELL 5248#! $SHELL
@@ -4815,7 +5263,7 @@ sed_quote_subst='$sed_quote_subst'
4815 5263
4816# The HP-UX ksh and POSIX shell print the target directory to stdout 5264# The HP-UX ksh and POSIX shell print the target directory to stdout
4817# if CDPATH is set. 5265# if CDPATH is set.
4818if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi 5266(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4819 5267
4820relink_command=\"$relink_command\" 5268relink_command=\"$relink_command\"
4821 5269
@@ -4944,13 +5392,13 @@ else
4944 # Backslashes separate directories on plain windows 5392 # Backslashes separate directories on plain windows
4945 *-*-mingw | *-*-os2*) 5393 *-*-mingw | *-*-os2*)
4946 $echo >> $output "\ 5394 $echo >> $output "\
4947 exec \$progdir\\\\\$program \${1+\"\$@\"} 5395 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
4948" 5396"
4949 ;; 5397 ;;
4950 5398
4951 *) 5399 *)
4952 $echo >> $output "\ 5400 $echo >> $output "\
4953 exec \$progdir/\$program \${1+\"\$@\"} 5401 exec \"\$progdir/\$program\" \${1+\"\$@\"}
4954" 5402"
4955 ;; 5403 ;;
4956 esac 5404 esac
@@ -4960,7 +5408,7 @@ else
4960 fi 5408 fi
4961 else 5409 else
4962 # The program doesn't exist. 5410 # The program doesn't exist.
4963 \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2 5411 \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
4964 \$echo \"This script is just a wrapper for \$program.\" 1>&2 5412 \$echo \"This script is just a wrapper for \$program.\" 1>&2
4965 $echo \"See the $PACKAGE documentation for more information.\" 1>&2 5413 $echo \"See the $PACKAGE documentation for more information.\" 1>&2
4966 exit $EXIT_FAILURE 5414 exit $EXIT_FAILURE
@@ -4992,71 +5440,73 @@ fi\
4992 5440
4993 if test -n "$addlibs"; then 5441 if test -n "$addlibs"; then
4994 gentop="$output_objdir/${outputname}x" 5442 gentop="$output_objdir/${outputname}x"
4995 $show "${rm}r $gentop"
4996 $run ${rm}r "$gentop"
4997 $show "$mkdir $gentop"
4998 $run $mkdir "$gentop"
4999 status=$?
5000 if test "$status" -ne 0 && test ! -d "$gentop"; then
5001 exit $status
5002 fi
5003 generated="$generated $gentop" 5443 generated="$generated $gentop"
5004 5444
5005 # Add in members from convenience archives. 5445 func_extract_archives $gentop $addlibs
5006 for xlib in $addlibs; do 5446 oldobjs="$oldobjs $func_extract_archives_result"
5007 # Extract the objects.
5008 case $xlib in
5009 [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
5010 *) xabs=`pwd`"/$xlib" ;;
5011 esac
5012 xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
5013 xdir="$gentop/$xlib"
5014
5015 $show "${rm}r $xdir"
5016 $run ${rm}r "$xdir"
5017 $show "$mkdir $xdir"
5018 $run $mkdir "$xdir"
5019 status=$?
5020 if test "$status" -ne 0 && test ! -d "$xdir"; then
5021 exit $status
5022 fi
5023 # We will extract separately just the conflicting names and we will no
5024 # longer touch any unique names. It is faster to leave these extract
5025 # automatically by $AR in one run.
5026 $show "(cd $xdir && $AR x $xabs)"
5027 $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
5028 if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
5029 :
5030 else
5031 $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
5032 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
5033 $AR t "$xabs" | sort | uniq -cd | while read -r count name
5034 do
5035 i=1
5036 while test "$i" -le "$count"
5037 do
5038 # Put our $i before any first dot (extension)
5039 # Never overwrite any file
5040 name_to="$name"
5041 while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
5042 do
5043 name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
5044 done
5045 $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
5046 $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
5047 i=`expr $i + 1`
5048 done
5049 done
5050 fi
5051
5052 oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
5053 done
5054 fi 5447 fi
5055 5448
5056 # Do each command in the archive commands. 5449 # Do each command in the archive commands.
5057 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then 5450 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
5058 cmds=$old_archive_from_new_cmds 5451 cmds=$old_archive_from_new_cmds
5059 else 5452 else
5453 # POSIX demands no paths to be encoded in archives. We have
5454 # to avoid creating archives with duplicate basenames if we
5455 # might have to extract them afterwards, e.g., when creating a
5456 # static archive out of a convenience library, or when linking
5457 # the entirety of a libtool archive into another (currently
5458 # not supported by libtool).
5459 if (for obj in $oldobjs
5460 do
5461 $echo "X$obj" | $Xsed -e 's%^.*/%%'
5462 done | sort | sort -uc >/dev/null 2>&1); then
5463 :
5464 else
5465 $echo "copying selected object files to avoid basename conflicts..."
5466
5467 if test -z "$gentop"; then
5468 gentop="$output_objdir/${outputname}x"
5469 generated="$generated $gentop"
5470
5471 $show "${rm}r $gentop"
5472 $run ${rm}r "$gentop"
5473 $show "$mkdir $gentop"
5474 $run $mkdir "$gentop"
5475 exit_status=$?
5476 if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
5477 exit $exit_status
5478 fi
5479 fi
5480
5481 save_oldobjs=$oldobjs
5482 oldobjs=
5483 counter=1
5484 for obj in $save_oldobjs
5485 do
5486 objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
5487 case " $oldobjs " in
5488 " ") oldobjs=$obj ;;
5489 *[\ /]"$objbase "*)
5490 while :; do
5491 # Make sure we don't pick an alternate name that also
5492 # overlaps.
5493 newobj=lt$counter-$objbase
5494 counter=`expr $counter + 1`
5495 case " $oldobjs " in
5496 *[\ /]"$newobj "*) ;;
5497 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
5498 esac
5499 done
5500 $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
5501 $run ln "$obj" "$gentop/$newobj" ||
5502 $run cp "$obj" "$gentop/$newobj"
5503 oldobjs="$oldobjs $gentop/$newobj"
5504 ;;
5505 *) oldobjs="$oldobjs $obj" ;;
5506 esac
5507 done
5508 fi
5509
5060 eval cmds=\"$old_archive_cmds\" 5510 eval cmds=\"$old_archive_cmds\"
5061 5511
5062 if len=`expr "X$cmds" : ".*"` && 5512 if len=`expr "X$cmds" : ".*"` &&
@@ -5070,20 +5520,7 @@ fi\
5070 objlist= 5520 objlist=
5071 concat_cmds= 5521 concat_cmds=
5072 save_oldobjs=$oldobjs 5522 save_oldobjs=$oldobjs
5073 # GNU ar 2.10+ was changed to match POSIX; thus no paths are 5523
5074 # encoded into archives. This makes 'ar r' malfunction in
5075 # this piecewise linking case whenever conflicting object
5076 # names appear in distinct ar calls; check, warn and compensate.
5077 if (for obj in $save_oldobjs
5078 do
5079 $echo "X$obj" | $Xsed -e 's%^.*/%%'
5080 done | sort | sort -uc >/dev/null 2>&1); then
5081 :
5082 else
5083 $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2
5084 $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2
5085 AR_FLAGS=cq
5086 fi
5087 # Is there a better way of finding the last object in the list? 5524 # Is there a better way of finding the last object in the list?
5088 for obj in $save_oldobjs 5525 for obj in $save_oldobjs
5089 do 5526 do
@@ -5094,7 +5531,7 @@ fi\
5094 oldobjs="$objlist $obj" 5531 oldobjs="$objlist $obj"
5095 objlist="$objlist $obj" 5532 objlist="$objlist $obj"
5096 eval test_cmds=\"$old_archive_cmds\" 5533 eval test_cmds=\"$old_archive_cmds\"
5097 if len=`expr "X$test_cmds" : ".*"` && 5534 if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
5098 test "$len" -le "$max_cmd_len"; then 5535 test "$len" -le "$max_cmd_len"; then
5099 : 5536 :
5100 else 5537 else
@@ -5291,11 +5728,11 @@ relink_command=\"$relink_command\""
5291 # install_prog (especially on Windows NT). 5728 # install_prog (especially on Windows NT).
5292 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || 5729 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
5293 # Allow the use of GNU shtool's install command. 5730 # Allow the use of GNU shtool's install command.
5294 $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then 5731 $echo "X$nonopt" | grep shtool > /dev/null; then
5295 # Aesthetically quote it. 5732 # Aesthetically quote it.
5296 arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` 5733 arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
5297 case $arg in 5734 case $arg in
5298 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) 5735 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5299 arg="\"$arg\"" 5736 arg="\"$arg\""
5300 ;; 5737 ;;
5301 esac 5738 esac
@@ -5304,14 +5741,14 @@ relink_command=\"$relink_command\""
5304 shift 5741 shift
5305 else 5742 else
5306 install_prog= 5743 install_prog=
5307 arg="$nonopt" 5744 arg=$nonopt
5308 fi 5745 fi
5309 5746
5310 # The real first argument should be the name of the installation program. 5747 # The real first argument should be the name of the installation program.
5311 # Aesthetically quote it. 5748 # Aesthetically quote it.
5312 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` 5749 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5313 case $arg in 5750 case $arg in
5314 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) 5751 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5315 arg="\"$arg\"" 5752 arg="\"$arg\""
5316 ;; 5753 ;;
5317 esac 5754 esac
@@ -5329,28 +5766,31 @@ relink_command=\"$relink_command\""
5329 do 5766 do
5330 if test -n "$dest"; then 5767 if test -n "$dest"; then
5331 files="$files $dest" 5768 files="$files $dest"
5332 dest="$arg" 5769 dest=$arg
5333 continue 5770 continue
5334 fi 5771 fi
5335 5772
5336 case $arg in 5773 case $arg in
5337 -d) isdir=yes ;; 5774 -d) isdir=yes ;;
5338 -f) prev="-f" ;; 5775 -f)
5339 -g) prev="-g" ;; 5776 case " $install_prog " in
5340 -m) prev="-m" ;; 5777 *[\\\ /]cp\ *) ;;
5341 -o) prev="-o" ;; 5778 *) prev=$arg ;;
5779 esac
5780 ;;
5781 -g | -m | -o) prev=$arg ;;
5342 -s) 5782 -s)
5343 stripme=" -s" 5783 stripme=" -s"
5344 continue 5784 continue
5345 ;; 5785 ;;
5346 -*) ;; 5786 -*)
5347 5787 ;;
5348 *) 5788 *)
5349 # If the previous option needed an argument, then skip it. 5789 # If the previous option needed an argument, then skip it.
5350 if test -n "$prev"; then 5790 if test -n "$prev"; then
5351 prev= 5791 prev=
5352 else 5792 else
5353 dest="$arg" 5793 dest=$arg
5354 continue 5794 continue
5355 fi 5795 fi
5356 ;; 5796 ;;
@@ -5359,7 +5799,7 @@ relink_command=\"$relink_command\""
5359 # Aesthetically quote the argument. 5799 # Aesthetically quote the argument.
5360 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` 5800 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5361 case $arg in 5801 case $arg in
5362 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) 5802 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5363 arg="\"$arg\"" 5803 arg="\"$arg\""
5364 ;; 5804 ;;
5365 esac 5805 esac
@@ -5528,11 +5968,14 @@ relink_command=\"$relink_command\""
5528 5968
5529 if test "$#" -gt 0; then 5969 if test "$#" -gt 0; then
5530 # Delete the old symlinks, and create new ones. 5970 # Delete the old symlinks, and create new ones.
5971 # Try `ln -sf' first, because the `ln' binary might depend on
5972 # the symlink we replace! Solaris /bin/ln does not understand -f,
5973 # so we also need to try rm && ln -s.
5531 for linkname 5974 for linkname
5532 do 5975 do
5533 if test "$linkname" != "$realname"; then 5976 if test "$linkname" != "$realname"; then
5534 $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)" 5977 $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
5535 $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)" 5978 $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
5536 fi 5979 fi
5537 done 5980 done
5538 fi 5981 fi
@@ -5545,7 +5988,16 @@ relink_command=\"$relink_command\""
5545 IFS="$save_ifs" 5988 IFS="$save_ifs"
5546 eval cmd=\"$cmd\" 5989 eval cmd=\"$cmd\"
5547 $show "$cmd" 5990 $show "$cmd"
5548 $run eval "$cmd" || exit $? 5991 $run eval "$cmd" || {
5992 lt_exit=$?
5993
5994 # Restore the uninstalled library and exit
5995 if test "$mode" = relink; then
5996 $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
5997 fi
5998
5999 exit $lt_exit
6000 }
5549 done 6001 done
5550 IFS="$save_ifs" 6002 IFS="$save_ifs"
5551 fi 6003 fi
@@ -5639,17 +6091,15 @@ relink_command=\"$relink_command\""
5639 notinst_deplibs= 6091 notinst_deplibs=
5640 relink_command= 6092 relink_command=
5641 6093
5642 # To insure that "foo" is sourced, and not "foo.exe", 6094 # Note that it is not necessary on cygwin/mingw to append a dot to
5643 # finese the cygwin/MSYS system by explicitly sourcing "foo." 6095 # foo even if both foo and FILE.exe exist: automatic-append-.exe
5644 # which disallows the automatic-append-.exe behavior. 6096 # behavior happens only for exec(3), not for open(2)! Also, sourcing
5645 case $build in 6097 # `FILE.' does not work on cygwin managed mounts.
5646 *cygwin* | *mingw*) wrapperdot=${wrapper}. ;; 6098 #
5647 *) wrapperdot=${wrapper} ;;
5648 esac
5649 # If there is no directory component, then add one. 6099 # If there is no directory component, then add one.
5650 case $file in 6100 case $wrapper in
5651 */* | *\\*) . ${wrapperdot} ;; 6101 */* | *\\*) . ${wrapper} ;;
5652 *) . ./${wrapperdot} ;; 6102 *) . ./${wrapper} ;;
5653 esac 6103 esac
5654 6104
5655 # Check the variables that should have been set. 6105 # Check the variables that should have been set.
@@ -5677,34 +6127,21 @@ relink_command=\"$relink_command\""
5677 done 6127 done
5678 6128
5679 relink_command= 6129 relink_command=
5680 # To insure that "foo" is sourced, and not "foo.exe", 6130 # Note that it is not necessary on cygwin/mingw to append a dot to
5681 # finese the cygwin/MSYS system by explicitly sourcing "foo." 6131 # foo even if both foo and FILE.exe exist: automatic-append-.exe
5682 # which disallows the automatic-append-.exe behavior. 6132 # behavior happens only for exec(3), not for open(2)! Also, sourcing
5683 case $build in 6133 # `FILE.' does not work on cygwin managed mounts.
5684 *cygwin* | *mingw*) wrapperdot=${wrapper}. ;; 6134 #
5685 *) wrapperdot=${wrapper} ;;
5686 esac
5687 # If there is no directory component, then add one. 6135 # If there is no directory component, then add one.
5688 case $file in 6136 case $wrapper in
5689 */* | *\\*) . ${wrapperdot} ;; 6137 */* | *\\*) . ${wrapper} ;;
5690 *) . ./${wrapperdot} ;; 6138 *) . ./${wrapper} ;;
5691 esac 6139 esac
5692 6140
5693 outputname= 6141 outputname=
5694 if test "$fast_install" = no && test -n "$relink_command"; then 6142 if test "$fast_install" = no && test -n "$relink_command"; then
5695 if test "$finalize" = yes && test -z "$run"; then 6143 if test "$finalize" = yes && test -z "$run"; then
5696 tmpdir="/tmp" 6144 tmpdir=`func_mktempdir`
5697 test -n "$TMPDIR" && tmpdir="$TMPDIR"
5698 tmpdir="$tmpdir/libtool-$$"
5699 save_umask=`umask`
5700 umask 0077
5701 if $mkdir "$tmpdir"; then
5702 umask $save_umask
5703 else
5704 umask $save_umask
5705 $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
5706 continue
5707 fi
5708 file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'` 6145 file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
5709 outputname="$tmpdir/$file" 6146 outputname="$tmpdir/$file"
5710 # Replace the output file specification. 6147 # Replace the output file specification.
@@ -5728,7 +6165,7 @@ relink_command=\"$relink_command\""
5728 fi 6165 fi
5729 6166
5730 # remove .exe since cygwin /usr/bin/install will append another 6167 # remove .exe since cygwin /usr/bin/install will append another
5731 # one anyways 6168 # one anyway
5732 case $install_prog,$host in 6169 case $install_prog,$host in
5733 */usr/bin/install*,*cygwin*) 6170 */usr/bin/install*,*cygwin*)
5734 case $file:$destfile in 6171 case $file:$destfile in
@@ -5828,7 +6265,7 @@ relink_command=\"$relink_command\""
5828 # Exit here if they wanted silent mode. 6265 # Exit here if they wanted silent mode.
5829 test "$show" = : && exit $EXIT_SUCCESS 6266 test "$show" = : && exit $EXIT_SUCCESS
5830 6267
5831 $echo "----------------------------------------------------------------------" 6268 $echo "X----------------------------------------------------------------------" | $Xsed
5832 $echo "Libraries have been installed in:" 6269 $echo "Libraries have been installed in:"
5833 for libdir in $libdirs; do 6270 for libdir in $libdirs; do
5834 $echo " $libdir" 6271 $echo " $libdir"
@@ -5861,7 +6298,7 @@ relink_command=\"$relink_command\""
5861 $echo 6298 $echo
5862 $echo "See any operating system documentation about shared libraries for" 6299 $echo "See any operating system documentation about shared libraries for"
5863 $echo "more information, such as the ld(1) and ld.so(8) manual pages." 6300 $echo "more information, such as the ld(1) and ld.so(8) manual pages."
5864 $echo "----------------------------------------------------------------------" 6301 $echo "X----------------------------------------------------------------------" | $Xsed
5865 exit $EXIT_SUCCESS 6302 exit $EXIT_SUCCESS
5866 ;; 6303 ;;
5867 6304
@@ -6078,9 +6515,17 @@ relink_command=\"$relink_command\""
6078 rmfiles="$rmfiles $objdir/$n" 6515 rmfiles="$rmfiles $objdir/$n"
6079 done 6516 done
6080 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" 6517 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
6081 test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
6082 6518
6083 if test "$mode" = uninstall; then 6519 case "$mode" in
6520 clean)
6521 case " $library_names " in
6522 # " " in the beginning catches empty $dlname
6523 *" $dlname "*) ;;
6524 *) rmfiles="$rmfiles $objdir/$dlname" ;;
6525 esac
6526 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
6527 ;;
6528 uninstall)
6084 if test -n "$library_names"; then 6529 if test -n "$library_names"; then
6085 # Do each command in the postuninstall commands. 6530 # Do each command in the postuninstall commands.
6086 cmds=$postuninstall_cmds 6531 cmds=$postuninstall_cmds
@@ -6113,7 +6558,8 @@ relink_command=\"$relink_command\""
6113 IFS="$save_ifs" 6558 IFS="$save_ifs"
6114 fi 6559 fi
6115 # FIXME: should reinstall the best remaining shared library. 6560 # FIXME: should reinstall the best remaining shared library.
6116 fi 6561 ;;
6562 esac
6117 fi 6563 fi
6118 ;; 6564 ;;
6119 6565
@@ -6398,7 +6844,7 @@ esac
6398$echo 6844$echo
6399$echo "Try \`$modename --help' for more information about other modes." 6845$echo "Try \`$modename --help' for more information about other modes."
6400 6846
6401exit $EXIT_SUCCESS 6847exit $?
6402 6848
6403# The TAGs below are defined such that we never get into a situation 6849# The TAGs below are defined such that we never get into a situation
6404# in which we disable both kinds of libraries. Given conflicting 6850# in which we disable both kinds of libraries. Given conflicting
@@ -6412,12 +6858,11 @@ exit $EXIT_SUCCESS
6412# configuration. But we'll never go from static-only to shared-only. 6858# configuration. But we'll never go from static-only to shared-only.
6413 6859
6414# ### BEGIN LIBTOOL TAG CONFIG: disable-shared 6860# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
6415build_libtool_libs=no 6861disable_libs=shared
6416build_old_libs=yes
6417# ### END LIBTOOL TAG CONFIG: disable-shared 6862# ### END LIBTOOL TAG CONFIG: disable-shared
6418 6863
6419# ### BEGIN LIBTOOL TAG CONFIG: disable-static 6864# ### BEGIN LIBTOOL TAG CONFIG: disable-static
6420build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac` 6865disable_libs=static
6421# ### END LIBTOOL TAG CONFIG: disable-static 6866# ### END LIBTOOL TAG CONFIG: disable-static
6422 6867
6423# Local Variables: 6868# Local Variables:
diff --git a/mkinstalldirs b/mkinstalldirs
index 6fbe5e11..d2d5f21b 100644
--- a/mkinstalldirs
+++ b/mkinstalldirs
@@ -1,32 +1,20 @@
1#! /bin/sh 1#! /bin/sh
2# mkinstalldirs --- make directory hierarchy 2# mkinstalldirs --- make directory hierarchy
3 3# Author: Noah Friedman <friedman@prep.ai.mit.edu>
4scriptversion=2004-02-15.20
5
6# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
7# Created: 1993-05-16 4# Created: 1993-05-16
8# Public domain. 5# Public domain
9#
10# This file is maintained in Automake, please report
11# bugs to <bug-automake@gnu.org> or send patches to
12# <automake-patches@gnu.org>.
13 6
14errstatus=0 7errstatus=0
15dirmode="" 8dirmode=""
16 9
17usage="\ 10usage="\
18Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ... 11Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
19
20Create each directory DIR (with mode MODE, if specified), including all
21leading file name components.
22
23Report bugs to <bug-automake@gnu.org>."
24 12
25# process command line arguments 13# process command line arguments
26while test $# -gt 0 ; do 14while test $# -gt 0 ; do
27 case $1 in 15 case $1 in
28 -h | --help | --h*) # -h for help 16 -h | --help | --h*) # -h for help
29 echo "$usage" 17 echo "$usage" 1>&2
30 exit 0 18 exit 0
31 ;; 19 ;;
32 -m) # -m PERM arg 20 -m) # -m PERM arg
@@ -35,10 +23,6 @@ while test $# -gt 0 ; do
35 dirmode=$1 23 dirmode=$1
36 shift 24 shift
37 ;; 25 ;;
38 --version)
39 echo "$0 $scriptversion"
40 exit 0
41 ;;
42 --) # stop option processing 26 --) # stop option processing
43 shift 27 shift
44 break 28 break
@@ -66,37 +50,17 @@ case $# in
66 0) exit 0 ;; 50 0) exit 0 ;;
67esac 51esac
68 52
69# Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and
70# mkdir -p a/c at the same time, both will detect that a is missing,
71# one will create a, then the other will try to create a and die with
72# a "File exists" error. This is a problem when calling mkinstalldirs
73# from a parallel make. We use --version in the probe to restrict
74# ourselves to GNU mkdir, which is thread-safe.
75case $dirmode in 53case $dirmode in
76 '') 54 '')
77 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 55 if mkdir -p -- . 2>/dev/null; then
78 echo "mkdir -p -- $*" 56 echo "mkdir -p -- $*"
79 exec mkdir -p -- "$@" 57 exec mkdir -p -- "$@"
80 else
81 # On NextStep and OpenStep, the `mkdir' command does not
82 # recognize any option. It will interpret all options as
83 # directories to create, and then abort because `.' already
84 # exists.
85 test -d ./-p && rmdir ./-p
86 test -d ./--version && rmdir ./--version
87 fi 58 fi
88 ;; 59 ;;
89 *) 60 *)
90 if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 && 61 if mkdir -m "$dirmode" -p -- . 2>/dev/null; then
91 test ! -d ./--version; then
92 echo "mkdir -m $dirmode -p -- $*" 62 echo "mkdir -m $dirmode -p -- $*"
93 exec mkdir -m "$dirmode" -p -- "$@" 63 exec mkdir -m "$dirmode" -p -- "$@"
94 else
95 # Clean up after NextStep and OpenStep mkdir.
96 for d in ./-m ./-p ./--version "./$dirmode";
97 do
98 test -d $d && rmdir $d
99 done
100 fi 64 fi
101 ;; 65 ;;
102esac 66esac
@@ -120,17 +84,17 @@ do
120 mkdir "$pathcomp" || lasterr=$? 84 mkdir "$pathcomp" || lasterr=$?
121 85
122 if test ! -d "$pathcomp"; then 86 if test ! -d "$pathcomp"; then
123 errstatus=$lasterr 87 errstatus=$lasterr
124 else 88 else
125 if test ! -z "$dirmode"; then 89 if test ! -z "$dirmode"; then
126 echo "chmod $dirmode $pathcomp" 90 echo "chmod $dirmode $pathcomp"
127 lasterr="" 91 lasterr=""
128 chmod "$dirmode" "$pathcomp" || lasterr=$? 92 chmod "$dirmode" "$pathcomp" || lasterr=$?
129 93
130 if test ! -z "$lasterr"; then 94 if test ! -z "$lasterr"; then
131 errstatus=$lasterr 95 errstatus=$lasterr
132 fi 96 fi
133 fi 97 fi
134 fi 98 fi
135 fi 99 fi
136 100
@@ -143,8 +107,5 @@ exit $errstatus
143# Local Variables: 107# Local Variables:
144# mode: shell-script 108# mode: shell-script
145# sh-indentation: 2 109# sh-indentation: 2
146# eval: (add-hook 'write-file-hooks 'time-stamp)
147# time-stamp-start: "scriptversion="
148# time-stamp-format: "%:y-%02m-%02d.%02H"
149# time-stamp-end: "$"
150# End: 110# End:
111# mkinstalldirs ends here
diff --git a/src/core/main.c b/src/core/main.c
index 55470006..01cb1b81 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -36,7 +36,7 @@ static int debug_mode = NO;
36 36
37 37
38/** 38/**
39 * All gnunet-setup command line options 39 * All gnunet-gtk command line options
40 */ 40 */
41static struct CommandLineOption gnunetgtkOptions[] = { 41static struct CommandLineOption gnunetgtkOptions[] = {
42 COMMAND_LINE_OPTION_CFG_FILE(&cfgFilename), /* -c */ 42 COMMAND_LINE_OPTION_CFG_FILE(&cfgFilename), /* -c */
diff --git a/src/plugins/fs/search.c b/src/plugins/fs/search.c
index f7c5fd38..e8f08881 100644
--- a/src/plugins/fs/search.c
+++ b/src/plugins/fs/search.c
@@ -645,10 +645,6 @@ static GtkWidget * makeResultFrame(GtkWidget ** treeview,
645 gtk_tree_view_column_set_reorderable(column, TRUE); 645 gtk_tree_view_column_set_reorderable(column, TRUE);
646 gtk_tree_view_column_set_sort_column_id(column, SEARCH_NAME); 646 gtk_tree_view_column_set_sort_column_id(column, SEARCH_NAME);
647 /*gtk_tree_view_column_set_sort_indicator(column, TRUE);*/ 647 /*gtk_tree_view_column_set_sort_indicator(column, TRUE);*/
648
649 gtk_tree_view_column_set_resizable(gtk_tree_view_get_column(GTK_TREE_VIEW(resultList),
650 col - 1),
651 TRUE);
652 renderer = gtk_cell_renderer_text_new(); 648 renderer = gtk_cell_renderer_text_new();
653 g_object_set (renderer, "xalign", 1.00, NULL); 649 g_object_set (renderer, "xalign", 1.00, NULL);
654 col = gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(resultList), 650 col = gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(resultList),
@@ -665,9 +661,6 @@ static GtkWidget * makeResultFrame(GtkWidget ** treeview,
665 gtk_tree_view_column_set_sort_column_id(column, SEARCH_SIZE); 661 gtk_tree_view_column_set_sort_column_id(column, SEARCH_SIZE);
666 /*gtk_tree_view_column_set_sort_indicator(column, TRUE);*/ 662 /*gtk_tree_view_column_set_sort_indicator(column, TRUE);*/
667 663
668 gtk_tree_view_column_set_resizable(gtk_tree_view_get_column(GTK_TREE_VIEW(resultList),
669 col - 1),
670 TRUE);
671 renderer = gtk_cell_renderer_text_new(); 664 renderer = gtk_cell_renderer_text_new();
672 col = gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(resultList), 665 col = gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(resultList),
673 -1, 666 -1,
@@ -683,9 +676,6 @@ static GtkWidget * makeResultFrame(GtkWidget ** treeview,
683 gtk_tree_view_column_set_sort_column_id(column, SEARCH_MIME); 676 gtk_tree_view_column_set_sort_column_id(column, SEARCH_MIME);
684 /*gtk_tree_view_column_set_sort_indicator(column, TRUE);*/ 677 /*gtk_tree_view_column_set_sort_indicator(column, TRUE);*/
685 678
686 gtk_tree_view_column_set_resizable(gtk_tree_view_get_column(GTK_TREE_VIEW(resultList),
687 col - 1),
688 TRUE);
689 renderer = gtk_cell_renderer_text_new(); 679 renderer = gtk_cell_renderer_text_new();
690 col = gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(resultList), 680 col = gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(resultList),
691 -1, 681 -1,
@@ -700,9 +690,6 @@ static GtkWidget * makeResultFrame(GtkWidget ** treeview,
700 gtk_tree_view_column_set_reorderable(column, TRUE); 690 gtk_tree_view_column_set_reorderable(column, TRUE);
701 gtk_tree_view_column_set_sort_column_id(column, SEARCH_DESC); 691 gtk_tree_view_column_set_sort_column_id(column, SEARCH_DESC);
702 /*gtk_tree_view_column_set_sort_indicator(column, TRUE);*/ 692 /*gtk_tree_view_column_set_sort_indicator(column, TRUE);*/
703 gtk_tree_view_column_set_resizable(gtk_tree_view_get_column(GTK_TREE_VIEW(resultList),
704 col - 1),
705 TRUE);
706 if (! testConfigurationString("GNUNET-GTK", 693 if (! testConfigurationString("GNUNET-GTK",
707 "DISABLE-PREVIEWS", 694 "DISABLE-PREVIEWS",
708 "YES")) { 695 "YES")) {