diff options
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | configure.ac | 8 | ||||
-rw-r--r-- | libltdl/Makefile.in | 14 | ||||
-rw-r--r-- | libltdl/aclocal.m4 | 1662 | ||||
-rwxr-xr-x | libltdl/config.guess | 581 | ||||
-rwxr-xr-x | libltdl/config.sub | 115 | ||||
-rwxr-xr-x | libltdl/configure | 13160 | ||||
-rw-r--r-- | libltdl/ltmain.sh | 1255 | ||||
-rw-r--r-- | ltmain.sh | 1255 | ||||
-rw-r--r-- | mkinstalldirs | 69 | ||||
-rw-r--r-- | src/core/main.c | 2 | ||||
-rw-r--r-- | src/plugins/fs/search.c | 13 |
12 files changed, 10174 insertions, 7962 deletions
@@ -1,4 +1,6 @@ | |||
1 | 0.7.1: | 1 | 0.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)) |
195 | fi | 195 | fi |
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@ | |||
126 | EXEEXT = @EXEEXT@ | 126 | EXEEXT = @EXEEXT@ |
127 | F77 = @F77@ | 127 | F77 = @F77@ |
128 | FFLAGS = @FFLAGS@ | 128 | FFLAGS = @FFLAGS@ |
129 | GREP = @GREP@ | ||
129 | INSTALL_DATA = @INSTALL_DATA@ | 130 | INSTALL_DATA = @INSTALL_DATA@ |
130 | INSTALL_LTDL_FALSE = @INSTALL_LTDL_FALSE@ | 131 | INSTALL_LTDL_FALSE = @INSTALL_LTDL_FALSE@ |
131 | INSTALL_LTDL_TRUE = @INSTALL_LTDL_TRUE@ | 132 | INSTALL_LTDL_TRUE = @INSTALL_LTDL_TRUE@ |
@@ -158,15 +159,9 @@ SET_MAKE = @SET_MAKE@ | |||
158 | SHELL = @SHELL@ | 159 | SHELL = @SHELL@ |
159 | STRIP = @STRIP@ | 160 | STRIP = @STRIP@ |
160 | VERSION = @VERSION@ | 161 | VERSION = @VERSION@ |
161 | ac_ct_AR = @ac_ct_AR@ | ||
162 | ac_ct_AS = @ac_ct_AS@ | ||
163 | ac_ct_CC = @ac_ct_CC@ | 162 | ac_ct_CC = @ac_ct_CC@ |
164 | ac_ct_CXX = @ac_ct_CXX@ | 163 | ac_ct_CXX = @ac_ct_CXX@ |
165 | ac_ct_DLLTOOL = @ac_ct_DLLTOOL@ | ||
166 | ac_ct_F77 = @ac_ct_F77@ | 164 | ac_ct_F77 = @ac_ct_F77@ |
167 | ac_ct_OBJDUMP = @ac_ct_OBJDUMP@ | ||
168 | ac_ct_RANLIB = @ac_ct_RANLIB@ | ||
169 | ac_ct_STRIP = @ac_ct_STRIP@ | ||
170 | am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ | 165 | am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ |
171 | am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ | 166 | am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ |
172 | am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ | 167 | am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ |
@@ -181,23 +176,30 @@ build_cpu = @build_cpu@ | |||
181 | build_os = @build_os@ | 176 | build_os = @build_os@ |
182 | build_vendor = @build_vendor@ | 177 | build_vendor = @build_vendor@ |
183 | datadir = @datadir@ | 178 | datadir = @datadir@ |
179 | datarootdir = @datarootdir@ | ||
180 | docdir = @docdir@ | ||
181 | dvidir = @dvidir@ | ||
184 | exec_prefix = @exec_prefix@ | 182 | exec_prefix = @exec_prefix@ |
185 | host = @host@ | 183 | host = @host@ |
186 | host_alias = @host_alias@ | 184 | host_alias = @host_alias@ |
187 | host_cpu = @host_cpu@ | 185 | host_cpu = @host_cpu@ |
188 | host_os = @host_os@ | 186 | host_os = @host_os@ |
189 | host_vendor = @host_vendor@ | 187 | host_vendor = @host_vendor@ |
188 | htmldir = @htmldir@ | ||
190 | includedir = @includedir@ | 189 | includedir = @includedir@ |
191 | infodir = @infodir@ | 190 | infodir = @infodir@ |
192 | install_sh = @install_sh@ | 191 | install_sh = @install_sh@ |
193 | libdir = @libdir@ | 192 | libdir = @libdir@ |
194 | libexecdir = @libexecdir@ | 193 | libexecdir = @libexecdir@ |
194 | localedir = @localedir@ | ||
195 | localstatedir = @localstatedir@ | 195 | localstatedir = @localstatedir@ |
196 | mandir = @mandir@ | 196 | mandir = @mandir@ |
197 | mkdir_p = @mkdir_p@ | 197 | mkdir_p = @mkdir_p@ |
198 | oldincludedir = @oldincludedir@ | 198 | oldincludedir = @oldincludedir@ |
199 | pdfdir = @pdfdir@ | ||
199 | prefix = @prefix@ | 200 | prefix = @prefix@ |
200 | program_transform_name = @program_transform_name@ | 201 | program_transform_name = @program_transform_name@ |
202 | psdir = @psdir@ | ||
201 | sbindir = @sbindir@ | 203 | sbindir = @sbindir@ |
202 | sharedstatedir = @sharedstatedir@ | 204 | sharedstatedir = @sharedstatedir@ |
203 | sysconfdir = @sysconfdir@ | 205 | sysconfdir = @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. |
127 | Xsed='sed -e s/^X//' | 126 | Xsed='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" | |||
144 | default_ofile=libtool | 143 | default_ofile=libtool |
145 | can_build_shared=yes | 144 | can_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'). |
149 | libext=a | 148 | libext=a |
150 | ltmain="$ac_aux_dir/ltmain.sh" | 149 | ltmain="$ac_aux_dir/ltmain.sh" |
@@ -164,6 +163,7 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru | |||
164 | test -z "$AS" && AS=as | 163 | test -z "$AS" && AS=as |
165 | test -z "$CC" && CC=cc | 164 | test -z "$CC" && CC=cc |
166 | test -z "$LTCC" && LTCC=$CC | 165 | test -z "$LTCC" && LTCC=$CC |
166 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | ||
167 | test -z "$DLLTOOL" && DLLTOOL=dlltool | 167 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
168 | test -z "$LD" && LD=ld | 168 | test -z "$LD" && LD=ld |
169 | test -z "$LN_S" && LN_S="ln -s" | 169 | test -z "$LN_S" && LN_S="ln -s" |
@@ -183,15 +183,17 @@ old_postuninstall_cmds= | |||
183 | if test -n "$RANLIB"; then | 183 | if 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" |
193 | fi | 193 | fi |
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 |
196 | case $deplibs_check_method in | 198 | case $deplibs_check_method in |
197 | file_magic*) | 199 | file_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. |
233 | LTCC=${LTCC-"$CC"} | 235 | LTCC=${LTCC-"$CC"} |
234 | 236 | ||
237 | # If no C compiler flags were specified, use CFLAGS. | ||
238 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
239 | |||
235 | # Allow CC to be a program name with arguments. | 240 | # Allow CC to be a program name with arguments. |
236 | compiler=$CC | 241 | compiler=$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. | ||
248 | AC_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 | ||
256 | done | ||
257 | cc_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. | ||
265 | AC_DEFUN([_LT_COMPILER_BOILERPLATE], | ||
266 | [ac_outfile=conftest.$ac_objext | ||
267 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
268 | eval "$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. | ||
278 | AC_DEFUN([_LT_LINKER_BOILERPLATE], | ||
279 | [ac_outfile=conftest.$ac_objext | ||
280 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | ||
281 | eval "$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. |
312 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | 359 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
313 | 360 | ||
314 | if test -z "$ECHO"; then | 361 | if test -z "$ECHO"; then |
315 | if test "X${echo_test_string+set}" != Xset; then | 362 | if 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 | ;; |
587 | sparc*-*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 | |||
540 | AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], | 603 | AC_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 | # ------------------ |
702 | AC_DEFUN([_LT_AC_CHECK_DLFCN], | 816 | AC_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 | # --------------------------------------------------------------------- |
710 | AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], | 824 | AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], |
711 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl | 825 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
712 | if test "$cross_compiling" = yes; then : | 826 | if 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 | }] |
778 | EOF | 894 | EOF |
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 | # ---------------------- |
798 | AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], | 914 | AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], |
799 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl | 915 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
800 | if test "x$enable_dlopen" != xyes; then | 916 | if 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)= |
1008 | if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ | 1126 | if 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 | ||
1177 | bsdi4*) | 1295 | bsdi[[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 | ||
1281 | kfreebsd*-gnu) | 1400 | freebsd* | 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 | |||
1293 | freebsd*) | ||
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 | ||
1500 | interix3*) | ||
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 | |||
1379 | irix5* | irix6* | nonstopux*) | 1512 | irix5* | 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. |
1422 | linux*) | 1555 | linux* | 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 | ||
1463 | knetbsd*-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 | |||
1475 | netbsd*) | 1596 | netbsd*) |
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 | ||
1510 | openbsd*) | 1631 | openbsd*) |
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 | ||
1551 | sco3.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 | |||
1558 | solaris*) | 1677 | solaris*) |
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 | ||
1583 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 1702 | sysv4 | 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 | ||
1735 | sysv5* | 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 | |||
1616 | uts4*) | 1758 | uts4*) |
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*) | |||
1626 | esac | 1768 | esac |
1627 | AC_MSG_RESULT([$dynamic_linker]) | 1769 | AC_MSG_RESULT([$dynamic_linker]) |
1628 | test "$dynamic_linker" = no && can_build_shared=no | 1770 | test "$dynamic_linker" = no && can_build_shared=no |
1771 | |||
1772 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
1773 | if test "$GCC" = yes; then | ||
1774 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
1775 | fi | ||
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 |
1742 | AC_DEFUN([AC_LIBTOOL_WIN32_DLL], | 1894 | AC_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 |
1780 | AC_DEFUN([AC_DISABLE_SHARED], | 1932 | AC_DEFUN([AC_DISABLE_SHARED], |
1781 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | 1933 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
1782 | AC_ENABLE_SHARED(no) | 1934 | AC_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 | |||
2054 | AC_DEFUN([AC_PROG_LD_GNU], | 2206 | AC_DEFUN([AC_PROG_LD_GNU], |
2055 | [AC_REQUIRE([AC_PROG_EGREP])dnl | 2207 | [AC_REQUIRE([AC_PROG_EGREP])dnl |
2056 | AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, | 2208 | AC_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. |
2058 | case `$LD -v 2>&1 </dev/null` in | 2210 | case `$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" ;; |
2082 | esac | 2234 | esac |
2083 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | 2235 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
2236 | case $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 | ;; | ||
2244 | esac | ||
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 | ||
2117 | bsdi4*) | 2278 | bsdi[[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 | ||
2140 | freebsd* | kfreebsd*-gnu) | 2301 | freebsd* | 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 | ||
2160 | hpux10.20* | hpux11*) | 2321 | hpux10.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 | ||
2339 | interix3*) | ||
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 | |||
2178 | irix5* | irix6* | nonstopux*) | 2344 | irix5* | 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. |
2189 | linux*) | 2355 | linux* | k*bsd*-gnu) |
2190 | lt_cv_deplibs_check_method=pass_all | 2356 | lt_cv_deplibs_check_method=pass_all |
2191 | ;; | 2357 | ;; |
2192 | 2358 | ||
2193 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | 2359 | netbsd* | 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 | ||
2211 | openbsd*) | 2377 | openbsd*) |
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 | ||
2225 | sco3.2v5*) | ||
2226 | lt_cv_deplibs_check_method=pass_all | ||
2227 | ;; | ||
2228 | |||
2229 | solaris*) | 2389 | solaris*) |
2230 | lt_cv_deplibs_check_method=pass_all | 2390 | lt_cv_deplibs_check_method=pass_all |
2231 | ;; | 2391 | ;; |
2232 | 2392 | ||
2233 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 2393 | sysv4 | 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 | ||
2257 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) | 2420 | sysv5* | 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 | ;; |
2260 | esac | 2423 | esac |
@@ -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" |
2276 | else | 2439 | else |
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 |
2308 | fi]) | 2478 | fi]) |
2309 | NM="$lt_cv_path_NM" | 2479 | NM="$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. |
2345 | AC_DEFUN([AC_LIBLTDL_CONVENIENCE], | 2515 | AC_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. |
2371 | AC_DEFUN([AC_LIBLTDL_INSTALLABLE], | 2541 | AC_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 | # --------------- |
2405 | AC_DEFUN([_LT_AC_LANG_CXX], | 2575 | AC_DEFUN([_LT_AC_LANG_CXX], |
2406 | [AC_REQUIRE([AC_PROG_CXX]) | 2576 | [AC_REQUIRE([AC_PROG_CXX]) |
2407 | AC_REQUIRE([AC_PROG_CXXCPP]) | 2577 | AC_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 | # ------------------ | ||
2583 | AC_DEFUN([_LT_AC_PROG_CXXCPP], | ||
2584 | [ | ||
2585 | AC_REQUIRE([AC_PROG_CXX]) | ||
2586 | if 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 | ||
2590 | fi | ||
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 |
2452 | AC_DEFUN([AC_LIBTOOL_RC], | 2633 | AC_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)= | ||
2487 | if 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 | ||
2493 | fi | ||
2494 | if 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 | ||
2501 | fi | ||
2502 | |||
2503 | |||
2504 | # | ||
2505 | # Check to make sure the static flag actually works. | ||
2506 | # | ||
2507 | AC_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 | ||
2514 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) | 2668 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
2515 | AC_LIBTOOL_PROG_COMPILER_PIC($1) | 2669 | AC_LIBTOOL_PROG_COMPILER_PIC($1) |
@@ -2519,9 +2673,9 @@ AC_LIBTOOL_PROG_LD_SHLIBS($1) | |||
2519 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | 2673 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
2520 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | 2674 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
2521 | AC_LIBTOOL_SYS_LIB_STRIP | 2675 | AC_LIBTOOL_SYS_LIB_STRIP |
2522 | AC_LIBTOOL_DLOPEN_SELF($1) | 2676 | AC_LIBTOOL_DLOPEN_SELF |
2523 | 2677 | ||
2524 | # Report which librarie types wil actually be built | 2678 | # Report which library types will actually be built |
2525 | AC_MSG_CHECKING([if libtool supports shared libraries]) | 2679 | AC_MSG_CHECKING([if libtool supports shared libraries]) |
2526 | AC_MSG_RESULT([$can_build_shared]) | 2680 | AC_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. |
2533 | case "$host_os" in | 2687 | case $host_os in |
2534 | aix3*) | 2688 | aix3*) |
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 | ;; |
2584 | esac | 2701 | esac |
2585 | AC_MSG_RESULT([$enable_shared]) | 2702 | AC_MSG_RESULT([$enable_shared]) |
@@ -2605,7 +2722,7 @@ AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) | |||
2605 | AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], | 2722 | AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], |
2606 | [AC_LANG_PUSH(C++) | 2723 | [AC_LANG_PUSH(C++) |
2607 | AC_REQUIRE([AC_PROG_CXX]) | 2724 | AC_REQUIRE([AC_PROG_CXX]) |
2608 | AC_REQUIRE([AC_PROG_CXXCPP]) | 2725 | AC_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. |
2637 | ac_ext=cc | 2755 | ac_ext=cpp |
2638 | 2756 | ||
2639 | # Object file extension for compiled C++ test sources. | 2757 | # Object file extension for compiled C++ test sources. |
2640 | objext=o | 2758 | objext=o |
@@ -2644,11 +2762,15 @@ _LT_AC_TAGVAR(objext, $1)=$objext | |||
2644 | lt_simple_compile_test_code="int some_variable = 0;\n" | 2762 | lt_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 |
2647 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' | 2765 | lt_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. |
2653 | lt_save_CC=$CC | 2775 | lt_save_CC=$CC |
2654 | lt_save_LD=$LD | 2776 | lt_save_LD=$LD |
@@ -2659,18 +2781,18 @@ lt_save_path_LD=$lt_cv_path_LD | |||
2659 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | 2781 | if 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 |
2661 | else | 2783 | else |
2662 | unset lt_cv_prog_gnu_ld | 2784 | $as_unset lt_cv_prog_gnu_ld |
2663 | fi | 2785 | fi |
2664 | if test -n "${lt_cv_path_LDCXX+set}"; then | 2786 | if 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 |
2666 | else | 2788 | else |
2667 | unset lt_cv_path_LD | 2789 | $as_unset lt_cv_path_LD |
2668 | fi | 2790 | fi |
2669 | test -z "${LDCXX+set}" || LD=$LDCXX | 2791 | test -z "${LDCXX+set}" || LD=$LDCXX |
2670 | CC=${CXX-"c++"} | 2792 | CC=${CXX-"c++"} |
2671 | compiler=$CC | 2793 | compiler=$CC |
2672 | _LT_AC_TAGVAR(compiler, $1)=$CC | 2794 | _LT_AC_TAGVAR(compiler, $1)=$CC |
2673 | cc_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) | |||
3468 | AC_LIBTOOL_PROG_LD_SHLIBS($1) | 3700 | AC_LIBTOOL_PROG_LD_SHLIBS($1) |
3469 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | 3701 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
3470 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | 3702 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
3471 | AC_LIBTOOL_SYS_LIB_STRIP | ||
3472 | AC_LIBTOOL_DLOPEN_SELF($1) | ||
3473 | 3703 | ||
3474 | AC_LIBTOOL_CONFIG($1) | 3704 | AC_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 | ||
3851 | ifelse([$1],[CXX], | ||
3852 | [case $host_os in | ||
3853 | interix3*) | ||
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 | |||
3861 | solaris*) | ||
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 | ;; | ||
3871 | esac | ||
3872 | ]) | ||
3873 | |||
3620 | case " $_LT_AC_TAGVAR(postdeps, $1) " in | 3874 | case " $_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 ;; |
3622 | esac | 3876 | esac |
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. |
3671 | lt_save_CC="$CC" | 3929 | lt_save_CC="$CC" |
3672 | CC=${F77-"f77"} | 3930 | CC=${F77-"f77"} |
3673 | compiler=$CC | 3931 | compiler=$CC |
3674 | _LT_AC_TAGVAR(compiler, $1)=$CC | 3932 | _LT_AC_TAGVAR(compiler, $1)=$CC |
3675 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 3933 | _LT_CC_BASENAME([$compiler]) |
3676 | 3934 | ||
3677 | AC_MSG_CHECKING([if libtool supports shared libraries]) | 3935 | AC_MSG_CHECKING([if libtool supports shared libraries]) |
3678 | AC_MSG_RESULT([$can_build_shared]) | 3936 | AC_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. |
3685 | case "$host_os" in | 3943 | case $host_os in |
3686 | aix3*) | 3944 | aix3*) |
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 | ;; |
3693 | aix4* | aix5*) | 3951 | aix4* | 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 | ;; |
3696 | esac | 3956 | esac |
3697 | AC_MSG_RESULT([$enable_shared]) | 3957 | AC_MSG_RESULT([$enable_shared]) |
@@ -3701,8 +3961,6 @@ AC_MSG_CHECKING([whether to build static libraries]) | |||
3701 | test "$enable_shared" = yes || enable_static=yes | 3961 | test "$enable_shared" = yes || enable_static=yes |
3702 | AC_MSG_RESULT([$enable_static]) | 3962 | AC_MSG_RESULT([$enable_static]) |
3703 | 3963 | ||
3704 | test "$_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) | |||
3712 | AC_LIBTOOL_PROG_LD_SHLIBS($1) | 3970 | AC_LIBTOOL_PROG_LD_SHLIBS($1) |
3713 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | 3971 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
3714 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | 3972 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
3715 | AC_LIBTOOL_SYS_LIB_STRIP | ||
3716 | |||
3717 | 3973 | ||
3718 | AC_LIBTOOL_CONFIG($1) | 3974 | AC_LIBTOOL_CONFIG($1) |
3719 | 3975 | ||
@@ -3742,20 +3998,27 @@ _LT_AC_TAGVAR(objext, $1)=$objext | |||
3742 | lt_simple_compile_test_code="class foo {}\n" | 3998 | lt_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 |
3745 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' | 4001 | lt_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. |
3751 | lt_save_CC="$CC" | 4011 | lt_save_CC="$CC" |
3752 | CC=${GCJ-"gcj"} | 4012 | CC=${GCJ-"gcj"} |
3753 | compiler=$CC | 4013 | compiler=$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 | |||
3759 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) | 4022 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
3760 | AC_LIBTOOL_PROG_COMPILER_PIC($1) | 4023 | AC_LIBTOOL_PROG_COMPILER_PIC($1) |
3761 | AC_LIBTOOL_PROG_CC_C_O($1) | 4024 | AC_LIBTOOL_PROG_CC_C_O($1) |
@@ -3763,8 +4026,6 @@ AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | |||
3763 | AC_LIBTOOL_PROG_LD_SHLIBS($1) | 4026 | AC_LIBTOOL_PROG_LD_SHLIBS($1) |
3764 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | 4027 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
3765 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | 4028 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
3766 | AC_LIBTOOL_SYS_LIB_STRIP | ||
3767 | AC_LIBTOOL_DLOPEN_SELF($1) | ||
3768 | 4029 | ||
3769 | AC_LIBTOOL_CONFIG($1) | 4030 | AC_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. |
3802 | lt_save_CC="$CC" | 4067 | lt_save_CC="$CC" |
3803 | CC=${RC-"windres"} | 4068 | CC=${RC-"windres"} |
3804 | compiler=$CC | 4069 | compiler=$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 | ||
3808 | AC_LIBTOOL_CONFIG($1) | 4074 | AC_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], [], | |||
3949 | SED=$lt_SED | 4215 | SED=$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. |
3952 | Xsed="$SED -e s/^X//" | 4218 | Xsed="$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. |
3956 | if 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. |
3959 | available_tags= | 4225 | available_tags= |
@@ -3984,6 +4250,12 @@ fast_install=$enable_fast_install | |||
3984 | # The host system. | 4250 | # The host system. |
3985 | host_alias=$host_alias | 4251 | host_alias=$host_alias |
3986 | host=$host | 4252 | host=$host |
4253 | host_os=$host_os | ||
4254 | |||
4255 | # The build system. | ||
4256 | build_alias=$build_alias | ||
4257 | build=$build | ||
4258 | build_os=$build_os | ||
3987 | 4259 | ||
3988 | # An echo program that does not interpret backslashes. | 4260 | # An echo program that does not interpret backslashes. |
3989 | echo=$lt_echo | 4261 | echo=$lt_echo |
@@ -3995,6 +4267,9 @@ AR_FLAGS=$lt_AR_FLAGS | |||
3995 | # A C compiler. | 4267 | # A C compiler. |
3996 | LTCC=$lt_LTCC | 4268 | LTCC=$lt_LTCC |
3997 | 4269 | ||
4270 | # LTCC compiler flags. | ||
4271 | LTCFLAGS=$lt_LTCFLAGS | ||
4272 | |||
3998 | # A language-specific compiler. | 4273 | # A language-specific compiler. |
3999 | CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) | 4274 | CC=$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? |
4061 | compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) | 4336 | compiler_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? |
4064 | need_locks=$lt_need_locks | 4339 | need_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. |
4335 | sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' | 4610 | sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' |
4336 | 4611 | ||
4337 | # Transform the above into a raw symbol and a C symbol. | ||
4338 | symxfrm='\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 |
4341 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | 4613 | lt_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 | ;; |
4633 | linux* | 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 | ;; | ||
4361 | irix* | nonstopux*) | 4640 | irix* | nonstopux*) |
4362 | symcode='[[BCDEGRST]]' | 4641 | symcode='[[BCDEGRST]]' |
4363 | ;; | 4642 | ;; |
4364 | osf*) | 4643 | osf*) |
4365 | symcode='[[BCDEGQRST]]' | 4644 | symcode='[[BCDEGQRST]]' |
4366 | ;; | 4645 | ;; |
4367 | solaris* | sysv5*) | 4646 | solaris*) |
4368 | symcode='[[BDRT]]' | 4647 | symcode='[[BDRT]]' |
4369 | ;; | 4648 | ;; |
4649 | sco3.2v5*) | ||
4650 | symcode='[[DT]]' | ||
4651 | ;; | ||
4652 | sysv4.2uw2*) | ||
4653 | symcode='[[DT]]' | ||
4654 | ;; | ||
4655 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | ||
4656 | symcode='[[ABDT]]' | ||
4657 | ;; | ||
4370 | sysv4) | 4658 | sysv4) |
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. |
4390 | for ac_symprfx in "" "_"; do | 4678 | for 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]) |
4952 | fi | 5298 | fi |
4953 | case "$host_os" in | 5299 | case $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 | ;; |
4961 | esac | 5307 | esac |
5308 | |||
5309 | # | ||
5310 | # Check to make sure the static flag actually works. | ||
5311 | # | ||
5312 | wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" | ||
5313 | AC_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~ | ||
5172 | cat $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~ | |||
5740 | AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) | 6197 | AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) |
5741 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | 6198 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
5742 | 6199 | ||
5743 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
5744 | if test "$GCC" = yes; then | ||
5745 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
5746 | fi | ||
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. |
5899 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | 6352 | for 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 |
5924 | done | 6377 | done |
5925 | SED=$lt_cv_path_SED | ||
5926 | ]) | 6378 | ]) |
6379 | SED=$lt_cv_path_SED | ||
5927 | AC_MSG_RESULT([$SED]) | 6380 | AC_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 | |||
5966 | if test "x$with_included_ltdl" = xno; then | 6418 | if 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 |
5972 | fi | 6424 | fi |
@@ -6023,7 +6475,7 @@ AC_DEFUN([AC_LTDL_ENABLE_INSTALL], | |||
6023 | 6475 | ||
6024 | AM_CONDITIONAL(INSTALL_LTDL, test x"${enable_ltdl_install-no}" != xno) | 6476 | AM_CONDITIONAL(INSTALL_LTDL, test x"${enable_ltdl_install-no}" != xno) |
6025 | AM_CONDITIONAL(CONVENIENCE_LTDL, test x"${enable_ltdl_convenience-no}" != xno) | 6477 | AM_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 | ]) |
6104 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then | 6562 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
@@ -6119,7 +6577,7 @@ module=yes | |||
6119 | eval libltdl_cv_shlibext=$shrext_cmds | 6577 | eval libltdl_cv_shlibext=$shrext_cmds |
6120 | ]) | 6578 | ]) |
6121 | if test -n "$libltdl_cv_shlibext"; then | 6579 | if 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".]) |
6124 | fi | 6582 | fi |
6125 | ])# AC_LTDL_SHLIBEXT | 6583 | ])# AC_LTDL_SHLIBEXT |
@@ -6132,7 +6590,7 @@ AC_DEFUN([AC_LTDL_SHLIBPATH], | |||
6132 | AC_CACHE_CHECK([which variable specifies run-time library path], | 6590 | AC_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"]) |
6134 | if test -n "$libltdl_cv_shlibpath_var"; then | 6592 | if 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.]) |
6137 | fi | 6595 | fi |
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.]) |
6159 | fi | 6617 | fi |
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 | ]) |
6183 | AC_DEFINE_UNQUOTED(LTDL_OBJDIR, "$libltdl_cv_objdir/", | 6641 | AC_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 | ]) |
6200 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then | 6658 | if 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.]) |
6203 | fi | 6661 | fi |
6204 | ])# AC_LTDL_DLPREOPEN | 6662 | ])# AC_LTDL_DLPREOPEN |
@@ -6317,7 +6775,7 @@ if test x"$ac_cv_sys_symbol_underscore" = xyes; then | |||
6317 | fi | 6775 | fi |
6318 | 6776 | ||
6319 | if test x"$libltdl_cv_need_uscore" = xyes; then | 6777 | if 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.]) |
6322 | fi | 6780 | fi |
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 | ||
6 | timestamp='2005-04-22' | 7 | timestamp='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." | |||
66 | while test $# -gt 0 ; do | 69 | while 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=' | |||
104 | trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; | 107 | trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; |
105 | trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; | 108 | trap "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 ;; |
126 | esac ;' | 129 | esac ; 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 | } |
460 | EOF | 434 | EOF |
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 | } |
546 | EOF | 521 | EOF |
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 | } |
692 | EOF | 681 | EOF |
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 |
863 | EOF | 870 | EOF |
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 |
882 | EOF | 893 | EOF |
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 |
983 | EOF | 1004 | EOF |
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 ;; | ||
1267 | esac | 1301 | esac |
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 | } |
1385 | EOF | 1419 | EOF |
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 | ||
1391 | test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } | 1426 | test -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 |
1417 | fi | 1452 | fi |
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 | ||
6 | timestamp='2005-04-22' | 7 | timestamp='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." | |||
83 | while test $# -gt 0 ; do | 85 | while 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. |
119 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | 121 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
120 | case $maybe_os in | 122 | case $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 | ||
1335 | case $basic_machine in | 1368 | case $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 | |||
1559 | esac | 1598 | esac |
1560 | 1599 | ||
1561 | echo $basic_machine$os | 1600 | echo $basic_machine$os |
1562 | exit 0 | 1601 | exit |
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+"$@"}'='"$@"' |
21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | 22 | setopt NO_GLOB_SUBST |
22 | set -o posix | 23 | else |
24 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | ||
23 | fi | 25 | fi |
26 | BIN_SH=xpg4; export BIN_SH # for Tru64 | ||
24 | DUALCASE=1; export DUALCASE # for MKS sh | 27 | DUALCASE=1; export DUALCASE # for MKS sh |
25 | 28 | ||
29 | |||
30 | # PATH needs CR | ||
31 | # Avoid depending upon Character Ranges. | ||
32 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
33 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
34 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
35 | as_cr_digits='0123456789' | ||
36 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
37 | |||
38 | # The user is always right. | ||
39 | if 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 | ||
49 | fi | ||
50 | |||
26 | # Support unset when possible. | 51 | # Support unset when possible. |
27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | 52 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
28 | as_unset=unset | 53 | as_unset=unset |
@@ -31,8 +56,43 @@ else | |||
31 | fi | 56 | fi |
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.) | ||
64 | as_nl=' | ||
65 | ' | ||
66 | IFS=" "" $as_nl" | ||
67 | |||
68 | # Find who we are. Look in the path if we contain no directory separator. | ||
69 | case $0 in | ||
70 | *[\\/]* ) as_myself=$0 ;; | ||
71 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
72 | for as_dir in $PATH | ||
73 | do | ||
74 | IFS=$as_save_IFS | ||
75 | test -z "$as_dir" && as_dir=. | ||
76 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
77 | done | ||
78 | IFS=$as_save_IFS | ||
79 | |||
80 | ;; | ||
81 | esac | ||
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. | ||
84 | if test "x$as_myself" = x; then | ||
85 | as_myself=$0 | ||
86 | fi | ||
87 | if 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; } | ||
90 | fi | ||
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 | 93 | for as_var in ENV MAIL MAILPATH |
94 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
95 | done | ||
36 | PS1='$ ' | 96 | PS1='$ ' |
37 | PS2='> ' | 97 | PS2='> ' |
38 | PS4='+ ' | 98 | PS4='+ ' |
@@ -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 |
51 | done | 111 | done |
52 | 112 | ||
53 | # Required to use basename. | 113 | # Required to use basename. |
54 | if expr a : '\(a\)' >/dev/null 2>&1; then | 114 | if expr a : '\(a\)' >/dev/null 2>&1 && |
115 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
55 | as_expr=expr | 116 | as_expr=expr |
56 | else | 117 | else |
57 | as_expr=false | 118 | as_expr=false |
58 | fi | 119 | fi |
59 | 120 | ||
60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | 121 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
61 | as_basename=basename | 122 | as_basename=basename |
62 | else | 123 | else |
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. |
68 | as_me=`$as_basename "$0" || | 129 | as_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 || | ||
73 | echo X/"$0" | | 133 | echo 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. | ||
82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
85 | as_cr_digits='0123456789' | ||
86 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
87 | 151 | ||
88 | # The user is always right. | 152 | if test "x$CONFIG_SHELL" = x; then |
89 | if 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 | 155 | else |
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 | ||
99 | fi | 157 | fi |
100 | 158 | ||
159 | if test $as_have_required = yes && (eval ": | ||
160 | (as_func_return () { | ||
161 | (exit \$1) | ||
162 | } | ||
163 | as_func_success () { | ||
164 | as_func_return 0 | ||
165 | } | ||
166 | as_func_failure () { | ||
167 | as_func_return 1 | ||
168 | } | ||
169 | as_func_ret_success () { | ||
170 | return 0 | ||
171 | } | ||
172 | as_func_ret_failure () { | ||
173 | return 1 | ||
174 | } | ||
101 | 175 | ||
102 | as_lineno_1=$LINENO | 176 | exitcode=0 |
103 | as_lineno_2=$LINENO | 177 | if 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" && | 179 | else |
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. | 182 | fi |
109 | case $0 in | ||
110 | *[\\/]* ) as_myself=$0 ;; | ||
111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
112 | for as_dir in $PATH | ||
113 | do | ||
114 | IFS=$as_save_IFS | ||
115 | test -z "$as_dir" && as_dir=. | ||
116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
117 | done | ||
118 | 183 | ||
119 | ;; | 184 | if 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. | 187 | fi |
123 | if test "x$as_myself" = x; then | 188 | |
124 | as_myself=$0 | 189 | if as_func_ret_success; then |
125 | fi | 190 | : |
126 | if test ! -f "$as_myself"; then | 191 | else |
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 | 194 | fi |
130 | case $CONFIG_SHELL in | 195 | |
131 | '') | 196 | if as_func_ret_failure; then |
197 | exitcode=1 | ||
198 | echo as_func_ret_failure succeeded. | ||
199 | fi | ||
200 | |||
201 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | ||
202 | : | ||
203 | else | ||
204 | exitcode=1 | ||
205 | echo positional parameters were not saved. | ||
206 | fi | ||
207 | |||
208 | test \$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 | : | ||
217 | else | ||
218 | as_candidate_shells= | ||
132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 220 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
134 | do | 221 | do |
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 | ||
230 | done | ||
231 | IFS=$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 | ||
239 | if 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 | ||
246 | else | ||
247 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | ||
248 | fi | ||
249 | BIN_SH=xpg4; export BIN_SH # for Tru64 | ||
250 | DUALCASE=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 | ||
259 | if 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 | ||
266 | else | ||
267 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | ||
268 | fi | ||
269 | BIN_SH=xpg4; export BIN_SH # for Tru64 | ||
270 | DUALCASE=1; export DUALCASE # for MKS sh | ||
271 | |||
272 | : | ||
273 | (as_func_return () { | ||
274 | (exit $1) | ||
275 | } | ||
276 | as_func_success () { | ||
277 | as_func_return 0 | ||
278 | } | ||
279 | as_func_failure () { | ||
280 | as_func_return 1 | ||
281 | } | ||
282 | as_func_ret_success () { | ||
283 | return 0 | ||
284 | } | ||
285 | as_func_ret_failure () { | ||
286 | return 1 | ||
287 | } | ||
288 | |||
289 | exitcode=0 | ||
290 | if as_func_success; then | ||
291 | : | ||
292 | else | ||
293 | exitcode=1 | ||
294 | echo as_func_success failed. | ||
295 | fi | ||
296 | |||
297 | if as_func_failure; then | ||
298 | exitcode=1 | ||
299 | echo as_func_failure succeeded. | ||
300 | fi | ||
301 | |||
302 | if as_func_ret_success; then | ||
303 | : | ||
304 | else | ||
305 | exitcode=1 | ||
306 | echo as_func_ret_success failed. | ||
307 | fi | ||
308 | |||
309 | if as_func_ret_failure; then | ||
310 | exitcode=1 | ||
311 | echo as_func_ret_failure succeeded. | ||
312 | fi | ||
313 | |||
314 | if ( set x; as_func_ret_success y && test x = "$1" ); then | ||
315 | : | ||
316 | else | ||
317 | exitcode=1 | ||
318 | echo positional parameters were not saved. | ||
319 | fi | ||
320 | |||
321 | test $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+"$@"} | 332 | fi |
151 | fi;; | 333 | |
152 | esac | 334 | fi |
153 | done | 335 | |
154 | done | 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+"$@"} | ||
344 | fi | ||
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; } | ||
353 | fi | ||
354 | |||
355 | |||
356 | fi | ||
357 | |||
358 | fi | ||
359 | |||
360 | |||
361 | |||
362 | (eval "as_func_return () { | ||
363 | (exit \$1) | ||
364 | } | ||
365 | as_func_success () { | ||
366 | as_func_return 0 | ||
367 | } | ||
368 | as_func_failure () { | ||
369 | as_func_return 1 | ||
370 | } | ||
371 | as_func_ret_success () { | ||
372 | return 0 | ||
373 | } | ||
374 | as_func_ret_failure () { | ||
375 | return 1 | ||
376 | } | ||
377 | |||
378 | exitcode=0 | ||
379 | if as_func_success; then | ||
380 | : | ||
381 | else | ||
382 | exitcode=1 | ||
383 | echo as_func_success failed. | ||
384 | fi | ||
385 | |||
386 | if as_func_failure; then | ||
387 | exitcode=1 | ||
388 | echo as_func_failure succeeded. | ||
389 | fi | ||
390 | |||
391 | if as_func_ret_success; then | ||
392 | : | ||
393 | else | ||
394 | exitcode=1 | ||
395 | echo as_func_ret_success failed. | ||
396 | fi | ||
397 | |||
398 | if as_func_ret_failure; then | ||
399 | exitcode=1 | ||
400 | echo as_func_ret_failure succeeded. | ||
401 | fi | ||
402 | |||
403 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | ||
404 | : | ||
405 | else | ||
406 | exitcode=1 | ||
407 | echo positional parameters were not saved. | ||
408 | fi | ||
409 | |||
410 | test \$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 | ||
189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | 462 | if (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=' ' ;; | 464 | else |
192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | 465 | as_dirname=false |
193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | 466 | fi |
467 | |||
468 | ECHO_C= ECHO_N= ECHO_T= | ||
469 | case `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';; | ||
194 | esac | 477 | esac |
195 | 478 | ||
196 | if expr a : '\(a\)' >/dev/null 2>&1; then | 479 | if expr a : '\(a\)' >/dev/null 2>&1 && |
480 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
197 | as_expr=expr | 481 | as_expr=expr |
198 | else | 482 | else |
199 | as_expr=false | 483 | as_expr=false |
200 | fi | 484 | fi |
201 | 485 | ||
202 | rm -f conf$$ conf$$.exe conf$$.file | 486 | rm -f conf$$ conf$$.exe conf$$.file |
487 | if test -d conf$$.dir; then | ||
488 | rm -f conf$$.dir/conf$$.file | ||
489 | else | ||
490 | rm -f conf$$.dir | ||
491 | mkdir conf$$.dir | ||
492 | fi | ||
203 | echo >conf$$.file | 493 | echo >conf$$.file |
204 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 494 | if 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 | ||
213 | elif ln conf$$.file conf$$ 2>/dev/null; then | 502 | elif ln conf$$.file conf$$ 2>/dev/null; then |
214 | as_ln_s=ln | 503 | as_ln_s=ln |
215 | else | 504 | else |
216 | as_ln_s='cp -p' | 505 | as_ln_s='cp -p' |
217 | fi | 506 | fi |
218 | rm -f conf$$ conf$$.exe conf$$.file | 507 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
508 | rmdir conf$$.dir 2>/dev/null | ||
219 | 509 | ||
220 | if mkdir -p . 2>/dev/null; then | 510 | if 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 |
225 | fi | 515 | fi |
226 | 516 | ||
227 | as_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. | ||
519 | cat >conf$$.file <<_ASEOF | ||
520 | #! /bin/sh | ||
521 | exit 0 | ||
522 | _ASEOF | ||
523 | chmod +x conf$$.file | ||
524 | if test -x conf$$.file >/dev/null 2>&1; then | ||
525 | as_executable_p="test -x" | ||
526 | else | ||
527 | as_executable_p=: | ||
528 | fi | ||
529 | rm -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. |
230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | 532 | as_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'" | |||
233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 535 | as_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. | ||
238 | as_nl=' | ||
239 | ' | ||
240 | IFS=" $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. |
283 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | 576 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
284 | 577 | ||
285 | if test -z "$ECHO"; then | 578 | if test -z "$ECHO"; then |
286 | if test "X${echo_test_string+set}" != Xset; then | 579 | if 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 | ||
398 | tagnames=${tagnames+${tagnames},}F77 | 691 | tagnames=${tagnames+${tagnames},}F77 |
399 | 692 | ||
693 | exec 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. |
403 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | 698 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
404 | 699 | ||
405 | exec 6>&1 | ||
406 | |||
407 | # | 700 | # |
408 | # Initializations. | 701 | # Initializations. |
409 | # | 702 | # |
410 | ac_default_prefix=/usr/local | 703 | ac_default_prefix=/usr/local |
704 | ac_clean_files= | ||
411 | ac_config_libobj_dir=. | 705 | ac_config_libobj_dir=. |
706 | LIBOBJS= | ||
412 | cross_compiling=no | 707 | cross_compiling=no |
413 | subdirs= | 708 | subdirs= |
414 | MFLAGS= | 709 | MFLAGS= |
415 | MAKEFLAGS= | 710 | MAKEFLAGS= |
416 | SHELL=${CONFIG_SHELL-/bin/sh} | 711 | SHELL=${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. |
424 | PACKAGE_NAME='libltdl' | 714 | PACKAGE_NAME='libltdl' |
425 | PACKAGE_TARNAME='libltdl' | 715 | PACKAGE_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. |
432 | ac_includes_default="\ | 722 | ac_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 | ||
468 | ac_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' | 757 | ac_subst_vars='SHELL |
758 | PATH_SEPARATOR | ||
759 | PACKAGE_NAME | ||
760 | PACKAGE_TARNAME | ||
761 | PACKAGE_VERSION | ||
762 | PACKAGE_STRING | ||
763 | PACKAGE_BUGREPORT | ||
764 | exec_prefix | ||
765 | prefix | ||
766 | program_transform_name | ||
767 | bindir | ||
768 | sbindir | ||
769 | libexecdir | ||
770 | datarootdir | ||
771 | datadir | ||
772 | sysconfdir | ||
773 | sharedstatedir | ||
774 | localstatedir | ||
775 | includedir | ||
776 | oldincludedir | ||
777 | docdir | ||
778 | infodir | ||
779 | htmldir | ||
780 | dvidir | ||
781 | pdfdir | ||
782 | psdir | ||
783 | libdir | ||
784 | localedir | ||
785 | mandir | ||
786 | DEFS | ||
787 | ECHO_C | ||
788 | ECHO_N | ||
789 | ECHO_T | ||
790 | LIBS | ||
791 | build_alias | ||
792 | host_alias | ||
793 | target_alias | ||
794 | INSTALL_PROGRAM | ||
795 | INSTALL_SCRIPT | ||
796 | INSTALL_DATA | ||
797 | CYGPATH_W | ||
798 | PACKAGE | ||
799 | VERSION | ||
800 | ACLOCAL | ||
801 | AUTOCONF | ||
802 | AUTOMAKE | ||
803 | AUTOHEADER | ||
804 | MAKEINFO | ||
805 | AMTAR | ||
806 | install_sh | ||
807 | STRIP | ||
808 | INSTALL_STRIP_PROGRAM | ||
809 | mkdir_p | ||
810 | AWK | ||
811 | SET_MAKE | ||
812 | am__leading_dot | ||
813 | MAINTAINER_MODE_TRUE | ||
814 | MAINTAINER_MODE_FALSE | ||
815 | MAINT | ||
816 | CC | ||
817 | CFLAGS | ||
818 | LDFLAGS | ||
819 | CPPFLAGS | ||
820 | ac_ct_CC | ||
821 | EXEEXT | ||
822 | OBJEXT | ||
823 | DEPDIR | ||
824 | am__include | ||
825 | am__quote | ||
826 | AMDEP_TRUE | ||
827 | AMDEP_FALSE | ||
828 | AMDEPBACKSLASH | ||
829 | CCDEPMODE | ||
830 | am__fastdepCC_TRUE | ||
831 | am__fastdepCC_FALSE | ||
832 | build | ||
833 | build_cpu | ||
834 | build_vendor | ||
835 | build_os | ||
836 | host | ||
837 | host_cpu | ||
838 | host_vendor | ||
839 | host_os | ||
840 | GREP | ||
841 | EGREP | ||
842 | LN_S | ||
843 | ECHO | ||
844 | AR | ||
845 | RANLIB | ||
846 | DLLTOOL | ||
847 | AS | ||
848 | OBJDUMP | ||
849 | CPP | ||
850 | CXX | ||
851 | CXXFLAGS | ||
852 | ac_ct_CXX | ||
853 | CXXDEPMODE | ||
854 | am__fastdepCXX_TRUE | ||
855 | am__fastdepCXX_FALSE | ||
856 | CXXCPP | ||
857 | F77 | ||
858 | FFLAGS | ||
859 | ac_ct_F77 | ||
860 | LIBTOOL | ||
861 | LIBTOOL_DEPS | ||
862 | INSTALL_LTDL_TRUE | ||
863 | INSTALL_LTDL_FALSE | ||
864 | CONVENIENCE_LTDL_TRUE | ||
865 | CONVENIENCE_LTDL_FALSE | ||
866 | LIBADD_DL | ||
867 | LIBOBJS | ||
868 | LTLIBOBJS' | ||
469 | ac_subst_files='' | 869 | ac_subst_files='' |
870 | ac_precious_vars='build_alias | ||
871 | host_alias | ||
872 | target_alias | ||
873 | CC | ||
874 | CFLAGS | ||
875 | LDFLAGS | ||
876 | CPPFLAGS | ||
877 | CPP | ||
878 | CXX | ||
879 | CXXFLAGS | ||
880 | CCC | ||
881 | CXXCPP | ||
882 | F77 | ||
883 | FFLAGS' | ||
884 | |||
470 | 885 | ||
471 | # Initialize some variables set by options. | 886 | # Initialize some variables set by options. |
472 | ac_init_help= | 887 | ac_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.) | ||
496 | bindir='${exec_prefix}/bin' | 912 | bindir='${exec_prefix}/bin' |
497 | sbindir='${exec_prefix}/sbin' | 913 | sbindir='${exec_prefix}/sbin' |
498 | libexecdir='${exec_prefix}/libexec' | 914 | libexecdir='${exec_prefix}/libexec' |
499 | datadir='${prefix}/share' | 915 | datarootdir='${prefix}/share' |
916 | datadir='${datarootdir}' | ||
500 | sysconfdir='${prefix}/etc' | 917 | sysconfdir='${prefix}/etc' |
501 | sharedstatedir='${prefix}/com' | 918 | sharedstatedir='${prefix}/com' |
502 | localstatedir='${prefix}/var' | 919 | localstatedir='${prefix}/var' |
503 | libdir='${exec_prefix}/lib' | ||
504 | includedir='${prefix}/include' | 920 | includedir='${prefix}/include' |
505 | oldincludedir='/usr/include' | 921 | oldincludedir='/usr/include' |
506 | infodir='${prefix}/info' | 922 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
507 | mandir='${prefix}/man' | 923 | infodir='${datarootdir}/info' |
924 | htmldir='${docdir}' | ||
925 | dvidir='${docdir}' | ||
926 | pdfdir='${docdir}' | ||
927 | psdir='${docdir}' | ||
928 | libdir='${exec_prefix}/lib' | ||
929 | localedir='${datarootdir}/locale' | ||
930 | mandir='${datarootdir}/man' | ||
508 | 931 | ||
509 | ac_prev= | 932 | ac_prev= |
933 | ac_dashdash= | ||
510 | for ac_option | 934 | for ac_option |
511 | do | 935 | do |
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; }; } |
812 | fi | 1267 | fi |
813 | 1268 | ||
814 | # Be sure to have absolute paths. | 1269 | # Be sure to have absolute directory names. |
815 | for ac_var in exec_prefix prefix | 1270 | for 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 | ||
816 | do | 1274 | do |
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 | ||
823 | done | ||
824 | |||
825 | # Be sure to have absolute paths. | ||
826 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | ||
827 | localstatedir libdir includedir oldincludedir infodir mandir | ||
828 | do | ||
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; }; } | ||
835 | done | 1282 | done |
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- | |||
858 | test "$silent" = yes && exec 6>/dev/null | 1305 | test "$silent" = yes && exec 6>/dev/null |
859 | 1306 | ||
860 | 1307 | ||
1308 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1309 | ac_ls_di=`ls -di .` && | ||
1310 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1311 | { echo "$as_me: error: Working directory cannot be determined" >&2 | ||
1312 | { (exit 1); exit 1; }; } | ||
1313 | test "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. |
862 | if test -z "$srcdir"; then | 1319 | if 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 || | ||
871 | echo X"$0" | | 1327 | echo 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 |
881 | else | 1349 | else |
882 | ac_srcdir_defaulted=no | 1350 | ac_srcdir_defaulted=no |
883 | fi | 1351 | fi |
884 | if test ! -r $srcdir/$ac_unique_file; then | 1352 | if 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 | ||
892 | fi | 1356 | fi |
893 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | 1357 | ac_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 | 1358 | ac_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; }; } |
896 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | 1361 | pwd)` |
897 | ac_env_build_alias_set=${build_alias+set} | 1362 | # When building in place, set srcdir=. |
898 | ac_env_build_alias_value=$build_alias | 1363 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
899 | ac_cv_env_build_alias_set=${build_alias+set} | 1364 | srcdir=. |
900 | ac_cv_env_build_alias_value=$build_alias | 1365 | fi |
901 | ac_env_host_alias_set=${host_alias+set} | 1366 | # Remove unnecessary trailing slashes from srcdir. |
902 | ac_env_host_alias_value=$host_alias | 1367 | # Double slashes in file names in object file debugging info |
903 | ac_cv_env_host_alias_set=${host_alias+set} | 1368 | # mess up M-x gdb in Emacs. |
904 | ac_cv_env_host_alias_value=$host_alias | 1369 | case $srcdir in |
905 | ac_env_target_alias_set=${target_alias+set} | 1370 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
906 | ac_env_target_alias_value=$target_alias | 1371 | esac |
907 | ac_cv_env_target_alias_set=${target_alias+set} | 1372 | for ac_var in $ac_precious_vars; do |
908 | ac_cv_env_target_alias_value=$target_alias | 1373 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
909 | ac_env_CC_set=${CC+set} | 1374 | eval ac_env_${ac_var}_value=\$${ac_var} |
910 | ac_env_CC_value=$CC | 1375 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
911 | ac_cv_env_CC_set=${CC+set} | 1376 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
912 | ac_cv_env_CC_value=$CC | 1377 | done |
913 | ac_env_CFLAGS_set=${CFLAGS+set} | ||
914 | ac_env_CFLAGS_value=$CFLAGS | ||
915 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | ||
916 | ac_cv_env_CFLAGS_value=$CFLAGS | ||
917 | ac_env_LDFLAGS_set=${LDFLAGS+set} | ||
918 | ac_env_LDFLAGS_value=$LDFLAGS | ||
919 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | ||
920 | ac_cv_env_LDFLAGS_value=$LDFLAGS | ||
921 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
922 | ac_env_CPPFLAGS_value=$CPPFLAGS | ||
923 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
924 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | ||
925 | ac_env_CPP_set=${CPP+set} | ||
926 | ac_env_CPP_value=$CPP | ||
927 | ac_cv_env_CPP_set=${CPP+set} | ||
928 | ac_cv_env_CPP_value=$CPP | ||
929 | ac_env_CXX_set=${CXX+set} | ||
930 | ac_env_CXX_value=$CXX | ||
931 | ac_cv_env_CXX_set=${CXX+set} | ||
932 | ac_cv_env_CXX_value=$CXX | ||
933 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | ||
934 | ac_env_CXXFLAGS_value=$CXXFLAGS | ||
935 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | ||
936 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | ||
937 | ac_env_CXXCPP_set=${CXXCPP+set} | ||
938 | ac_env_CXXCPP_value=$CXXCPP | ||
939 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | ||
940 | ac_cv_env_CXXCPP_value=$CXXCPP | ||
941 | ac_env_F77_set=${F77+set} | ||
942 | ac_env_F77_value=$F77 | ||
943 | ac_cv_env_F77_set=${F77+set} | ||
944 | ac_cv_env_F77_value=$F77 | ||
945 | ac_env_FFLAGS_set=${FFLAGS+set} | ||
946 | ac_env_FFLAGS_value=$FFLAGS | ||
947 | ac_cv_env_FFLAGS_set=${FFLAGS+set} | ||
948 | ac_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 | ||
980 | Installation directories: | 1406 | Installation 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 | ||
1052 | Some influential environment variables: | 1482 | Some 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 | ||
1069 | Report bugs to <bug-libtool@gnu.org>. | 1499 | Report bugs to <bug-libtool@gnu.org>. |
1070 | _ACEOF | 1500 | _ACEOF |
1501 | ac_status=$? | ||
1071 | fi | 1502 | fi |
1072 | 1503 | ||
1073 | if test "$ac_init_help" = "recursive"; then | 1504 | if 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 | ||
1080 | if test "$ac_dir" != .; then | 1510 | case "$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,/,,'` |
1084 | else | 1516 | case $ac_top_builddir_sub in |
1085 | ac_dir_suffix= ac_top_builddir= | 1517 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1086 | fi | 1518 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1519 | esac ;; | ||
1520 | esac | ||
1521 | ac_abs_top_builddir=$ac_pwd | ||
1522 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1523 | # for backward compatibility: | ||
1524 | ac_top_builddir=$ac_top_build_prefix | ||
1087 | 1525 | ||
1088 | case $srcdir in | 1526 | case $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 |
1102 | esac | 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. | ||
1106 | case `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;; | ||
1114 | esac | ||
1115 | case $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;; | ||
1123 | esac | 1539 | esac |
1124 | case $ac_abs_builddir in | 1540 | ac_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 |
1132 | esac | 1548 | echo && |
1133 | case $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;; | ||
1141 | esac | ||
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 |
1160 | fi | 1555 | fi |
1161 | 1556 | ||
1162 | test -n "$ac_init_help" && exit 0 | 1557 | test -n "$ac_init_help" && exit $ac_status |
1163 | if $ac_init_version; then | 1558 | if $ac_init_version; then |
1164 | cat <<\_ACEOF | 1559 | cat <<\_ACEOF |
1165 | libltdl configure 1.2 | 1560 | libltdl configure 1.2 |
1166 | generated by GNU Autoconf 2.59 | 1561 | generated by GNU Autoconf 2.60a |
1167 | 1562 | ||
1168 | Copyright (C) 2003 Free Software Foundation, Inc. | 1563 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1564 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | ||
1169 | This configure script is free software; the Free Software Foundation | 1565 | This configure script is free software; the Free Software Foundation |
1170 | gives unlimited permission to copy, distribute and modify it. | 1566 | gives unlimited permission to copy, distribute and modify it. |
1171 | _ACEOF | 1567 | _ACEOF |
1172 | exit 0 | 1568 | exit |
1173 | fi | 1569 | fi |
1174 | exec 5>config.log | 1570 | cat >config.log <<_ACEOF |
1175 | cat >&5 <<_ACEOF | ||
1176 | This file contains any messages produced by compilers while | 1571 | This file contains any messages produced by compilers while |
1177 | running configure, to aid debugging if configure makes a mistake. | 1572 | running configure, to aid debugging if configure makes a mistake. |
1178 | 1573 | ||
1179 | It was created by libltdl $as_me 1.2, which was | 1574 | It was created by libltdl $as_me 1.2, which was |
1180 | generated by GNU Autoconf 2.59. Invocation command line was | 1575 | generated by GNU Autoconf 2.60a. Invocation command line was |
1181 | 1576 | ||
1182 | $ $0 $@ | 1577 | $ $0 $@ |
1183 | 1578 | ||
1184 | _ACEOF | 1579 | _ACEOF |
1580 | exec 5>>config.log | ||
1185 | { | 1581 | { |
1186 | cat <<_ASUNAME | 1582 | cat <<_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` |
1203 | hostinfo = `(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" |
1216 | done | 1612 | done |
1613 | IFS=$as_save_IFS | ||
1217 | 1614 | ||
1218 | } >&5 | 1615 | } >&5 |
1219 | 1616 | ||
@@ -1235,7 +1632,6 @@ _ACEOF | |||
1235 | ac_configure_args= | 1632 | ac_configure_args= |
1236 | ac_configure_args0= | 1633 | ac_configure_args0= |
1237 | ac_configure_args1= | 1634 | ac_configure_args1= |
1238 | ac_sep= | ||
1239 | ac_must_keep_next=false | 1635 | ac_must_keep_next=false |
1240 | for ac_pass in 1 2 | 1636 | for ac_pass in 1 2 |
1241 | do | 1637 | do |
@@ -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. |
1286 | trap 'exit_status=$? | 1680 | trap '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 | ||
1699 | echo "$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 |
1360 | for ac_signal in 1 2 13 15; do | 1774 | for 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 |
1362 | done | 1776 | done |
1363 | ac_signal=0 | 1777 | ac_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. |
1366 | rm -rf conftest* confdefs.h | 1780 | rm -f -r conftest* confdefs.h |
1367 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | ||
1368 | echo >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. |
1399 | if test -z "$CONFIG_SITE"; then | 1811 | if 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" | 1813 | elif 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" | 1815 | else |
1404 | fi | 1816 | set x "$ac_default_prefix/share/config.site" \ |
1817 | "$ac_default_prefix/etc/config.site" | ||
1405 | fi | 1818 | fi |
1406 | for ac_site_file in $CONFIG_SITE; do | 1819 | shift |
1820 | for ac_site_file | ||
1821 | do | ||
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 |
1409 | echo "$as_me: loading site script $ac_site_file" >&6;} | 1824 | echo "$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 |
1420 | echo "$as_me: loading cache $cache_file" >&6;} | 1835 | echo "$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 |
1426 | else | 1841 | else |
@@ -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. |
1434 | ac_cache_corrupted=false | 1849 | ac_cache_corrupted=false |
1435 | for ac_var in `(set) 2>&1 | | 1850 | for 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; }; } |
1481 | fi | 1894 | fi |
1482 | 1895 | ||
1483 | ac_ext=c | ||
1484 | ac_cpp='$CPP $CPPFLAGS' | ||
1485 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1486 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1487 | ac_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 | ||
1920 | ac_ext=c | ||
1921 | ac_cpp='$CPP $CPPFLAGS' | ||
1922 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1923 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1924 | ac_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 | ||
1522 | ac_aux_dir= | 1934 | ac_aux_dir= |
1523 | for ac_dir in . $srcdir/.; do | 1935 | for 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 |
1537 | done | 1949 | done |
1538 | if test -z "$ac_aux_dir"; then | 1950 | if 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 |
1540 | echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;} | 1952 | echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} |
1541 | { (exit 1); exit 1; }; } | 1953 | { (exit 1); exit 1; }; } |
1542 | fi | 1954 | fi |
1543 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | 1955 | |
1544 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | 1956 | # These three variables are undocumented and unsupported, |
1545 | ac_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. | ||
1960 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
1961 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
1962 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
1963 | |||
1546 | 1964 | ||
1547 | 1965 | ||
1548 | if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then | 1966 | if 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. |
1582 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | 2000 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1583 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | 2001 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
1584 | if test -z "$INSTALL"; then | 2002 | if test -z "$INSTALL"; then |
1585 | if test "${ac_cv_path_install+set}" = set; then | 2003 | if 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 | ;; |
1622 | esac | 2040 | esac |
1623 | done | 2041 | done |
2042 | IFS=$as_save_IFS | ||
1624 | 2043 | ||
1625 | 2044 | ||
1626 | fi | 2045 | fi |
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 |
1636 | fi | 2055 | fi |
1637 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | 2056 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
1638 | echo "${ECHO_T}$INSTALL" >&6 | 2057 | echo "${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 | ||
1646 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 2065 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
1647 | 2066 | ||
1648 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | 2067 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
1649 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | 2068 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
1650 | # Just in case | 2069 | # Just in case |
1651 | sleep 1 | 2070 | sleep 1 |
1652 | echo timestamp > conftest.file | 2071 | echo timestamp > conftest.file |
@@ -1688,20 +2107,20 @@ echo "$as_me: error: newly created file is older than distributed files! | |||
1688 | Check your system clock" >&2;} | 2107 | Check your system clock" >&2;} |
1689 | { (exit 1); exit 1; }; } | 2108 | { (exit 1); exit 1; }; } |
1690 | fi | 2109 | fi |
1691 | echo "$as_me:$LINENO: result: yes" >&5 | 2110 | { echo "$as_me:$LINENO: result: yes" >&5 |
1692 | echo "${ECHO_T}yes" >&6 | 2111 | echo "${ECHO_T}yes" >&6; } |
1693 | test "$program_prefix" != NONE && | 2112 | test "$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. |
1696 | test "$program_suffix" != NONE && | 2115 | test "$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. |
1700 | cat <<\_ACEOF >conftest.sed | 2119 | cat <<\_ACEOF >conftest.sed |
1701 | s/[\\$]/&&/g;s/;s,x,x,$// | 2120 | s/[\\$]/&&/g;s/;s,x,x,$// |
1702 | _ACEOF | 2121 | _ACEOF |
1703 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | 2122 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
1704 | rm conftest.sed | 2123 | rm -f conftest.sed |
1705 | 2124 | ||
1706 | # expand $ac_aux_dir to an absolute path | 2125 | # expand $ac_aux_dir to an absolute path |
1707 | am_aux_dir=`cd $ac_aux_dir && pwd` | 2126 | am_aux_dir=`cd $ac_aux_dir && pwd` |
@@ -1745,8 +2164,8 @@ for ac_prog in gawk mawk nawk awk | |||
1745 | do | 2164 | do |
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. |
1747 | set dummy $ac_prog; ac_word=$2 | 2166 | set dummy $ac_prog; ac_word=$2 |
1748 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 2167 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1749 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 2168 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
1750 | if test "${ac_cv_prog_AWK+set}" = set; then | 2169 | if test "${ac_cv_prog_AWK+set}" = set; then |
1751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 2170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1752 | else | 2171 | else |
@@ -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 |
1767 | done | 2186 | done |
1768 | done | 2187 | done |
2188 | IFS=$as_save_IFS | ||
1769 | 2189 | ||
1770 | fi | 2190 | fi |
1771 | fi | 2191 | fi |
1772 | AWK=$ac_cv_prog_AWK | 2192 | AWK=$ac_cv_prog_AWK |
1773 | if test -n "$AWK"; then | 2193 | if test -n "$AWK"; then |
1774 | echo "$as_me:$LINENO: result: $AWK" >&5 | 2194 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
1775 | echo "${ECHO_T}$AWK" >&6 | 2195 | echo "${ECHO_T}$AWK" >&6; } |
1776 | else | 2196 | else |
1777 | echo "$as_me:$LINENO: result: no" >&5 | 2197 | { echo "$as_me:$LINENO: result: no" >&5 |
1778 | echo "${ECHO_T}no" >&6 | 2198 | echo "${ECHO_T}no" >&6; } |
1779 | fi | 2199 | fi |
1780 | 2200 | ||
2201 | |||
1781 | test -n "$AWK" && break | 2202 | test -n "$AWK" && break |
1782 | done | 2203 | done |
1783 | 2204 | ||
1784 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | 2205 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1785 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | 2206 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
1786 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | 2207 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
1787 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | 2208 | if { 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 |
1789 | else | 2210 | else |
1790 | cat >conftest.make <<\_ACEOF | 2211 | cat >conftest.make <<\_ACEOF |
2212 | SHELL = /bin/sh | ||
1791 | all: | 2213 | all: |
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. |
1795 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | 2217 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
1796 | if 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;; |
1798 | else | 2220 | *) |
1799 | eval ac_cv_prog_make_${ac_make}_set=no | 2221 | eval ac_cv_prog_make_${ac_make}_set=no;; |
1800 | fi | 2222 | esac |
1801 | rm -f conftest.make | 2223 | rm -f conftest.make |
1802 | fi | 2224 | fi |
1803 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | 2225 | if 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 |
1805 | echo "${ECHO_T}yes" >&6 | 2227 | echo "${ECHO_T}yes" >&6; } |
1806 | SET_MAKE= | 2228 | SET_MAKE= |
1807 | else | 2229 | else |
1808 | echo "$as_me:$LINENO: result: no" >&5 | 2230 | { echo "$as_me:$LINENO: result: no" >&5 |
1809 | echo "${ECHO_T}no" >&6 | 2231 | echo "${ECHO_T}no" >&6; } |
1810 | SET_MAKE="MAKE=${MAKE-make}" | 2232 | SET_MAKE="MAKE=${MAKE-make}" |
1811 | fi | 2233 | fi |
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. |
1873 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | 2295 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
1874 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 2296 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1875 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 2297 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
1876 | if test "${ac_cv_prog_STRIP+set}" = set; then | 2298 | if test "${ac_cv_prog_STRIP+set}" = set; then |
1877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 2299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1878 | else | 2300 | else |
@@ -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 |
1893 | done | 2315 | done |
1894 | done | 2316 | done |
2317 | IFS=$as_save_IFS | ||
1895 | 2318 | ||
1896 | fi | 2319 | fi |
1897 | fi | 2320 | fi |
1898 | STRIP=$ac_cv_prog_STRIP | 2321 | STRIP=$ac_cv_prog_STRIP |
1899 | if test -n "$STRIP"; then | 2322 | if test -n "$STRIP"; then |
1900 | echo "$as_me:$LINENO: result: $STRIP" >&5 | 2323 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
1901 | echo "${ECHO_T}$STRIP" >&6 | 2324 | echo "${ECHO_T}$STRIP" >&6; } |
1902 | else | 2325 | else |
1903 | echo "$as_me:$LINENO: result: no" >&5 | 2326 | { echo "$as_me:$LINENO: result: no" >&5 |
1904 | echo "${ECHO_T}no" >&6 | 2327 | echo "${ECHO_T}no" >&6; } |
1905 | fi | 2328 | fi |
1906 | 2329 | ||
2330 | |||
1907 | fi | 2331 | fi |
1908 | if test -z "$ac_cv_prog_STRIP"; then | 2332 | if 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. |
1911 | set dummy strip; ac_word=$2 | 2335 | set dummy strip; ac_word=$2 |
1912 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 2336 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1913 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 2337 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
1914 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | 2338 | if 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 |
1916 | else | 2340 | else |
@@ -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 |
1931 | done | 2355 | done |
1932 | done | 2356 | done |
2357 | IFS=$as_save_IFS | ||
1933 | 2358 | ||
1934 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | ||
1935 | fi | 2359 | fi |
1936 | fi | 2360 | fi |
1937 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | 2361 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
1938 | if test -n "$ac_ct_STRIP"; then | 2362 | if 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 |
1940 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | 2364 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
1941 | else | 2365 | else |
1942 | echo "$as_me:$LINENO: result: no" >&5 | 2366 | { echo "$as_me:$LINENO: result: no" >&5 |
1943 | echo "${ECHO_T}no" >&6 | 2367 | echo "${ECHO_T}no" >&6; } |
1944 | fi | 2368 | fi |
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 | ||
2374 | yes:) | ||
2375 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2376 | whose name does not start with the host triplet. If you think this | ||
2377 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2378 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2379 | whose name does not start with the host triplet. If you think this | ||
2380 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2381 | ac_tool_warned=yes ;; | ||
2382 | esac | ||
2383 | STRIP=$ac_ct_STRIP | ||
2384 | fi | ||
1947 | else | 2385 | else |
1948 | STRIP="$ac_cv_prog_STRIP" | 2386 | STRIP="$ac_cv_prog_STRIP" |
1949 | fi | 2387 | fi |
@@ -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" | 2397 | ac_config_headers="$ac_config_headers config.h:config-h.in" |
1960 | 2398 | ||
1961 | echo "$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 |
1962 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | 2400 | echo $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. |
1964 | if test "${enable_maintainer_mode+set}" = set; then | 2402 | if 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 | ||
1967 | else | 2404 | else |
1968 | USE_MAINTAINER_MODE=no | 2405 | USE_MAINTAINER_MODE=no |
1969 | fi; | 2406 | fi |
1970 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | 2407 | |
1971 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | 2408 | { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
2409 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } | ||
1972 | 2410 | ||
1973 | 2411 | ||
1974 | if test $USE_MAINTAINER_MODE = yes; then | 2412 | if test $USE_MAINTAINER_MODE = yes; then |
@@ -1995,8 +2433,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu | |||
1995 | if test -n "$ac_tool_prefix"; then | 2433 | if 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. |
1997 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 2435 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
1998 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 2436 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1999 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 2437 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2000 | if test "${ac_cv_prog_CC+set}" = set; then | 2438 | if test "${ac_cv_prog_CC+set}" = set; then |
2001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 2439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2002 | else | 2440 | else |
@@ -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 |
2017 | done | 2455 | done |
2018 | done | 2456 | done |
2457 | IFS=$as_save_IFS | ||
2019 | 2458 | ||
2020 | fi | 2459 | fi |
2021 | fi | 2460 | fi |
2022 | CC=$ac_cv_prog_CC | 2461 | CC=$ac_cv_prog_CC |
2023 | if test -n "$CC"; then | 2462 | if test -n "$CC"; then |
2024 | echo "$as_me:$LINENO: result: $CC" >&5 | 2463 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2025 | echo "${ECHO_T}$CC" >&6 | 2464 | echo "${ECHO_T}$CC" >&6; } |
2026 | else | 2465 | else |
2027 | echo "$as_me:$LINENO: result: no" >&5 | 2466 | { echo "$as_me:$LINENO: result: no" >&5 |
2028 | echo "${ECHO_T}no" >&6 | 2467 | echo "${ECHO_T}no" >&6; } |
2029 | fi | 2468 | fi |
2030 | 2469 | ||
2470 | |||
2031 | fi | 2471 | fi |
2032 | if test -z "$ac_cv_prog_CC"; then | 2472 | if 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. |
2035 | set dummy gcc; ac_word=$2 | 2475 | set dummy gcc; ac_word=$2 |
2036 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 2476 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2037 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 2477 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2038 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 2478 | if 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 |
2040 | else | 2480 | else |
@@ -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 |
2055 | done | 2495 | done |
2056 | done | 2496 | done |
2497 | IFS=$as_save_IFS | ||
2057 | 2498 | ||
2058 | fi | 2499 | fi |
2059 | fi | 2500 | fi |
2060 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 2501 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2061 | if test -n "$ac_ct_CC"; then | 2502 | if 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 |
2063 | echo "${ECHO_T}$ac_ct_CC" >&6 | 2504 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
2064 | else | 2505 | else |
2065 | echo "$as_me:$LINENO: result: no" >&5 | 2506 | { echo "$as_me:$LINENO: result: no" >&5 |
2066 | echo "${ECHO_T}no" >&6 | 2507 | echo "${ECHO_T}no" >&6; } |
2067 | fi | 2508 | fi |
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 | ||
2514 | yes:) | ||
2515 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2516 | whose name does not start with the host triplet. If you think this | ||
2517 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2518 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2519 | whose name does not start with the host triplet. If you think this | ||
2520 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2521 | ac_tool_warned=yes ;; | ||
2522 | esac | ||
2523 | CC=$ac_ct_CC | ||
2524 | fi | ||
2070 | else | 2525 | else |
2071 | CC="$ac_cv_prog_CC" | 2526 | CC="$ac_cv_prog_CC" |
2072 | fi | 2527 | fi |
2073 | 2528 | ||
2074 | if test -z "$CC"; then | 2529 | if 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. |
2077 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 2532 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2078 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 2533 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2079 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 2534 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2080 | if test "${ac_cv_prog_CC+set}" = set; then | 2535 | if test "${ac_cv_prog_CC+set}" = set; then |
2081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 2536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2082 | else | 2537 | else |
@@ -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 |
2097 | done | 2552 | done |
2098 | done | 2553 | done |
2554 | IFS=$as_save_IFS | ||
2099 | 2555 | ||
2100 | fi | 2556 | fi |
2101 | fi | 2557 | fi |
2102 | CC=$ac_cv_prog_CC | 2558 | CC=$ac_cv_prog_CC |
2103 | if test -n "$CC"; then | 2559 | if test -n "$CC"; then |
2104 | echo "$as_me:$LINENO: result: $CC" >&5 | 2560 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2105 | echo "${ECHO_T}$CC" >&6 | 2561 | echo "${ECHO_T}$CC" >&6; } |
2106 | else | 2562 | else |
2107 | echo "$as_me:$LINENO: result: no" >&5 | 2563 | { echo "$as_me:$LINENO: result: no" >&5 |
2108 | echo "${ECHO_T}no" >&6 | 2564 | echo "${ECHO_T}no" >&6; } |
2109 | fi | 2565 | fi |
2110 | 2566 | ||
2111 | fi | ||
2112 | if 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. | ||
2115 | set dummy cc; ac_word=$2 | ||
2116 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2117 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2118 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2120 | else | ||
2121 | if test -n "$ac_ct_CC"; then | ||
2122 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2123 | else | ||
2124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2125 | for as_dir in $PATH | ||
2126 | do | ||
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 | ||
2135 | done | ||
2136 | done | ||
2137 | |||
2138 | fi | ||
2139 | fi | ||
2140 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2141 | if test -n "$ac_ct_CC"; then | ||
2142 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2143 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
2144 | else | ||
2145 | echo "$as_me:$LINENO: result: no" >&5 | ||
2146 | echo "${ECHO_T}no" >&6 | ||
2147 | fi | ||
2148 | |||
2149 | CC=$ac_ct_CC | ||
2150 | else | ||
2151 | CC="$ac_cv_prog_CC" | ||
2152 | fi | ||
2153 | 2567 | ||
2568 | fi | ||
2154 | fi | 2569 | fi |
2155 | if test -z "$CC"; then | 2570 | if 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. |
2157 | set dummy cc; ac_word=$2 | 2572 | set dummy cc; ac_word=$2 |
2158 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 2573 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2159 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 2574 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2160 | if test "${ac_cv_prog_CC+set}" = set; then | 2575 | if test "${ac_cv_prog_CC+set}" = set; then |
2161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 2576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2162 | else | 2577 | else |
@@ -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 |
2182 | done | 2597 | done |
2183 | done | 2598 | done |
2599 | IFS=$as_save_IFS | ||
2184 | 2600 | ||
2185 | if test $ac_prog_rejected = yes; then | 2601 | if 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 | |||
2198 | fi | 2614 | fi |
2199 | CC=$ac_cv_prog_CC | 2615 | CC=$ac_cv_prog_CC |
2200 | if test -n "$CC"; then | 2616 | if test -n "$CC"; then |
2201 | echo "$as_me:$LINENO: result: $CC" >&5 | 2617 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2202 | echo "${ECHO_T}$CC" >&6 | 2618 | echo "${ECHO_T}$CC" >&6; } |
2203 | else | 2619 | else |
2204 | echo "$as_me:$LINENO: result: no" >&5 | 2620 | { echo "$as_me:$LINENO: result: no" >&5 |
2205 | echo "${ECHO_T}no" >&6 | 2621 | echo "${ECHO_T}no" >&6; } |
2206 | fi | 2622 | fi |
2207 | 2623 | ||
2624 | |||
2208 | fi | 2625 | fi |
2209 | if test -z "$CC"; then | 2626 | if 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. |
2214 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 2631 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2215 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 2632 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2216 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 2633 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2217 | if test "${ac_cv_prog_CC+set}" = set; then | 2634 | if test "${ac_cv_prog_CC+set}" = set; then |
2218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 2635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2219 | else | 2636 | else |
@@ -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 |
2234 | done | 2651 | done |
2235 | done | 2652 | done |
2653 | IFS=$as_save_IFS | ||
2236 | 2654 | ||
2237 | fi | 2655 | fi |
2238 | fi | 2656 | fi |
2239 | CC=$ac_cv_prog_CC | 2657 | CC=$ac_cv_prog_CC |
2240 | if test -n "$CC"; then | 2658 | if test -n "$CC"; then |
2241 | echo "$as_me:$LINENO: result: $CC" >&5 | 2659 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2242 | echo "${ECHO_T}$CC" >&6 | 2660 | echo "${ECHO_T}$CC" >&6; } |
2243 | else | 2661 | else |
2244 | echo "$as_me:$LINENO: result: no" >&5 | 2662 | { echo "$as_me:$LINENO: result: no" >&5 |
2245 | echo "${ECHO_T}no" >&6 | 2663 | echo "${ECHO_T}no" >&6; } |
2246 | fi | 2664 | fi |
2247 | 2665 | ||
2666 | |||
2248 | test -n "$CC" && break | 2667 | test -n "$CC" && break |
2249 | done | 2668 | done |
2250 | fi | 2669 | fi |
2251 | if test -z "$CC"; then | 2670 | if 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 |
2254 | do | 2673 | do |
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. |
2256 | set dummy $ac_prog; ac_word=$2 | 2675 | set dummy $ac_prog; ac_word=$2 |
2257 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 2676 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2258 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 2677 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2259 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 2678 | if 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 |
2261 | else | 2680 | else |
@@ -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 |
2276 | done | 2695 | done |
2277 | done | 2696 | done |
2697 | IFS=$as_save_IFS | ||
2278 | 2698 | ||
2279 | fi | 2699 | fi |
2280 | fi | 2700 | fi |
2281 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 2701 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2282 | if test -n "$ac_ct_CC"; then | 2702 | if 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 |
2284 | echo "${ECHO_T}$ac_ct_CC" >&6 | 2704 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
2285 | else | 2705 | else |
2286 | echo "$as_me:$LINENO: result: no" >&5 | 2706 | { echo "$as_me:$LINENO: result: no" >&5 |
2287 | echo "${ECHO_T}no" >&6 | 2707 | echo "${ECHO_T}no" >&6; } |
2288 | fi | 2708 | fi |
2289 | 2709 | ||
2710 | |||
2290 | test -n "$ac_ct_CC" && break | 2711 | test -n "$ac_ct_CC" && break |
2291 | done | 2712 | done |
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 | ||
2718 | yes:) | ||
2719 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2720 | whose name does not start with the host triplet. If you think this | ||
2721 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2722 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2723 | whose name does not start with the host triplet. If you think this | ||
2724 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2725 | ac_tool_warned=yes ;; | ||
2726 | esac | ||
2727 | CC=$ac_ct_CC | ||
2728 | fi | ||
2294 | fi | 2729 | fi |
2295 | 2730 | ||
2296 | fi | 2731 | fi |
@@ -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. |
2306 | echo "$as_me:$LINENO:" \ | 2741 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2307 | "checking for C compiler version" >&5 | ||
2308 | ac_compiler=`set X $ac_compile; echo $2` | 2742 | ac_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 | 2744 | case "(($ac_try" in |
2745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2746 | *) ac_try_echo=$ac_try;; | ||
2747 | esac | ||
2748 | eval "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 | 2754 | case "(($ac_try" in |
2755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2756 | *) ac_try_echo=$ac_try;; | ||
2757 | esac | ||
2758 | eval "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 | 2764 | case "(($ac_try" in |
2765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2766 | *) ac_try_echo=$ac_try;; | ||
2767 | esac | ||
2768 | eval "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. |
2345 | echo "$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 |
2346 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | 2795 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
2347 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 2796 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2348 | if { (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. | ||
2801 | ac_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. | ||
2806 | ac_rmfiles= | ||
2807 | for ac_file in $ac_files | ||
2808 | do | ||
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 | ||
2813 | done | ||
2814 | rm -f $ac_rmfiles | ||
2815 | |||
2816 | if { (ac_try="$ac_link_default" | ||
2817 | case "(($ac_try" in | ||
2818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2819 | *) ac_try_echo=$ac_try;; | ||
2820 | esac | ||
2821 | eval "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. | 2831 | for ac_file in $ac_files '' |
2359 | ac_cv_exeext= | ||
2360 | # b.out is created by i960 compilers. | ||
2361 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | ||
2362 | do | 2832 | do |
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 |
2384 | done | 2855 | done |
2856 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
2857 | |||
2385 | else | 2858 | else |
2859 | ac_file='' | ||
2860 | fi | ||
2861 | |||
2862 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
2863 | echo "${ECHO_T}$ac_file" >&6; } | ||
2864 | if test -z "$ac_file"; then | ||
2386 | echo "$as_me: failed program was:" >&5 | 2865 | echo "$as_me: failed program was:" >&5 |
2387 | sed 's/^/| /' conftest.$ac_ext >&5 | 2866 | sed 's/^/| /' conftest.$ac_ext >&5 |
2388 | 2867 | ||
@@ -2394,19 +2873,21 @@ See \`config.log' for more details." >&2;} | |||
2394 | fi | 2873 | fi |
2395 | 2874 | ||
2396 | ac_exeext=$ac_cv_exeext | 2875 | ac_exeext=$ac_cv_exeext |
2397 | echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
2398 | echo "${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. |
2402 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | 2879 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2403 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | 2880 | echo $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. |
2406 | if test "$cross_compiling" != yes; then | 2883 | if 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;; | ||
2888 | esac | ||
2889 | eval "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 |
2427 | fi | 2908 | fi |
2428 | echo "$as_me:$LINENO: result: yes" >&5 | 2909 | { echo "$as_me:$LINENO: result: yes" >&5 |
2429 | echo "${ECHO_T}yes" >&6 | 2910 | echo "${ECHO_T}yes" >&6; } |
2430 | 2911 | ||
2431 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | 2912 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2432 | ac_clean_files=$ac_clean_files_save | 2913 | ac_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. |
2435 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | 2916 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2436 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | 2917 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
2437 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | 2918 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2438 | echo "${ECHO_T}$cross_compiling" >&6 | 2919 | echo "${ECHO_T}$cross_compiling" >&6; } |
2439 | 2920 | ||
2440 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | 2921 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2441 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | 2922 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
2442 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 2923 | if { (ac_try="$ac_link" |
2443 | (eval $ac_link) 2>&5 | 2924 | case "(($ac_try" in |
2925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2926 | *) ac_try_echo=$ac_try;; | ||
2927 | esac | ||
2928 | eval "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 | |||
2451 | for ac_file in conftest.exe conftest conftest.*; do | 2937 | for 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;} | |||
2467 | fi | 2952 | fi |
2468 | 2953 | ||
2469 | rm -f conftest$ac_cv_exeext | 2954 | rm -f conftest$ac_cv_exeext |
2470 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | 2955 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2471 | echo "${ECHO_T}$ac_cv_exeext" >&6 | 2956 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
2472 | 2957 | ||
2473 | rm -f conftest.$ac_ext | 2958 | rm -f conftest.$ac_ext |
2474 | EXEEXT=$ac_cv_exeext | 2959 | EXEEXT=$ac_cv_exeext |
2475 | ac_exeext=$EXEEXT | 2960 | ac_exeext=$EXEEXT |
2476 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | 2961 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2477 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | 2962 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
2478 | if test "${ac_cv_objext+set}" = set; then | 2963 | if test "${ac_cv_objext+set}" = set; then |
2479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 2964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2480 | else | 2965 | else |
@@ -2494,14 +2979,20 @@ main () | |||
2494 | } | 2979 | } |
2495 | _ACEOF | 2980 | _ACEOF |
2496 | rm -f conftest.o conftest.obj | 2981 | rm -f conftest.o conftest.obj |
2497 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 2982 | if { (ac_try="$ac_compile" |
2498 | (eval $ac_compile) 2>&5 | 2983 | case "(($ac_try" in |
2984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2985 | *) ac_try_echo=$ac_try;; | ||
2986 | esac | ||
2987 | eval "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 | ||
2520 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 3011 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2521 | fi | 3012 | fi |
2522 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | 3013 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2523 | echo "${ECHO_T}$ac_cv_objext" >&6 | 3014 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
2524 | OBJEXT=$ac_cv_objext | 3015 | OBJEXT=$ac_cv_objext |
2525 | ac_objext=$OBJEXT | 3016 | ac_objext=$OBJEXT |
2526 | echo "$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 |
2527 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | 3018 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
2528 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | 3019 | if 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 |
2530 | else | 3021 | else |
@@ -2547,23 +3038,36 @@ main () | |||
2547 | } | 3038 | } |
2548 | _ACEOF | 3039 | _ACEOF |
2549 | rm -f conftest.$ac_objext | 3040 | rm -f conftest.$ac_objext |
2550 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 3041 | if { (ac_try="$ac_compile" |
2551 | (eval $ac_compile) 2>conftest.er1 | 3042 | case "(($ac_try" in |
3043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3044 | *) ac_try_echo=$ac_try;; | ||
3045 | esac | ||
3046 | eval "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;; | ||
3058 | esac | ||
3059 | eval "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;; | ||
3068 | esac | ||
3069 | eval "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 |
2573 | sed 's/^/| /' conftest.$ac_ext >&5 | 3077 | sed 's/^/| /' conftest.$ac_ext >&5 |
2574 | 3078 | ||
2575 | ac_compiler_gnu=no | 3079 | ac_compiler_gnu=no |
2576 | fi | 3080 | fi |
2577 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 3081 | |
3082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2578 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 3083 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2579 | 3084 | ||
2580 | fi | 3085 | fi |
2581 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | 3086 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2582 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | 3087 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
2583 | GCC=`test $ac_compiler_gnu = yes && echo yes` | 3088 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2584 | ac_test_CFLAGS=${CFLAGS+set} | 3089 | ac_test_CFLAGS=${CFLAGS+set} |
2585 | ac_save_CFLAGS=$CFLAGS | 3090 | ac_save_CFLAGS=$CFLAGS |
2586 | CFLAGS="-g" | 3091 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2587 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | 3092 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
2588 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | ||
2589 | if test "${ac_cv_prog_cc_g+set}" = set; then | 3093 | if 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 |
2591 | else | 3095 | else |
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 |
2595 | cat confdefs.h >>conftest.$ac_ext | 3103 | cat confdefs.h >>conftest.$ac_ext |
@@ -2605,23 +3113,147 @@ main () | |||
2605 | } | 3113 | } |
2606 | _ACEOF | 3114 | _ACEOF |
2607 | rm -f conftest.$ac_objext | 3115 | rm -f conftest.$ac_objext |
2608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 3116 | if { (ac_try="$ac_compile" |
2609 | (eval $ac_compile) 2>conftest.er1 | 3117 | case "(($ac_try" in |
3118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3119 | *) ac_try_echo=$ac_try;; | ||
3120 | esac | ||
3121 | eval "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;; | ||
3133 | esac | ||
3134 | eval "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;; | ||
3143 | esac | ||
3144 | eval "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 | ||
3150 | else | ||
3151 | echo "$as_me: failed program was:" >&5 | ||
3152 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3153 | |||
3154 | CFLAGS="" | ||
3155 | cat >conftest.$ac_ext <<_ACEOF | ||
3156 | /* confdefs.h. */ | ||
3157 | _ACEOF | ||
3158 | cat confdefs.h >>conftest.$ac_ext | ||
3159 | cat >>conftest.$ac_ext <<_ACEOF | ||
3160 | /* end confdefs.h. */ | ||
3161 | |||
3162 | int | ||
3163 | main () | ||
3164 | { | ||
3165 | |||
3166 | ; | ||
3167 | return 0; | ||
3168 | } | ||
3169 | _ACEOF | ||
3170 | rm -f conftest.$ac_objext | ||
3171 | if { (ac_try="$ac_compile" | ||
3172 | case "(($ac_try" in | ||
3173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3174 | *) ac_try_echo=$ac_try;; | ||
3175 | esac | ||
3176 | eval "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;; | ||
3188 | esac | ||
3189 | eval "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;; | ||
3198 | esac | ||
3199 | eval "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 | : | ||
3205 | else | ||
3206 | echo "$as_me: failed program was:" >&5 | ||
3207 | sed '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 | ||
3214 | cat confdefs.h >>conftest.$ac_ext | ||
3215 | cat >>conftest.$ac_ext <<_ACEOF | ||
3216 | /* end confdefs.h. */ | ||
3217 | |||
3218 | int | ||
3219 | main () | ||
3220 | { | ||
3221 | |||
3222 | ; | ||
3223 | return 0; | ||
3224 | } | ||
3225 | _ACEOF | ||
3226 | rm -f conftest.$ac_objext | ||
3227 | if { (ac_try="$ac_compile" | ||
3228 | case "(($ac_try" in | ||
3229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3230 | *) ac_try_echo=$ac_try;; | ||
3231 | esac | ||
3232 | eval "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;; | ||
3244 | esac | ||
3245 | eval "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;; | ||
3254 | esac | ||
3255 | eval "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 |
2631 | sed 's/^/| /' conftest.$ac_ext >&5 | 3263 | sed 's/^/| /' conftest.$ac_ext >&5 |
2632 | 3264 | ||
2633 | ac_cv_prog_cc_g=no | 3265 | |
2634 | fi | 3266 | fi |
2635 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 3267 | |
3268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2636 | fi | 3269 | fi |
2637 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | 3270 | |
2638 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | 3271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3272 | fi | ||
3273 | |||
3274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3275 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
3276 | fi | ||
3277 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
3278 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | ||
2639 | if test "$ac_test_CFLAGS" = set; then | 3279 | if test "$ac_test_CFLAGS" = set; then |
2640 | CFLAGS=$ac_save_CFLAGS | 3280 | CFLAGS=$ac_save_CFLAGS |
2641 | elif test $ac_cv_prog_cc_g = yes; then | 3281 | elif test $ac_cv_prog_cc_g = yes; then |
@@ -2651,12 +3291,12 @@ else | |||
2651 | CFLAGS= | 3291 | CFLAGS= |
2652 | fi | 3292 | fi |
2653 | fi | 3293 | fi |
2654 | echo "$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 |
2655 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | 3295 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
2656 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | 3296 | if 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 |
2658 | else | 3298 | else |
2659 | ac_cv_prog_cc_stdc=no | 3299 | ac_cv_prog_cc_c89=no |
2660 | ac_save_CC=$CC | 3300 | ac_save_CC=$CC |
2661 | cat >conftest.$ac_ext <<_ACEOF | 3301 | cat >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. */ |
2697 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 3337 | int 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' | ||
3342 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
3343 | |||
2699 | int test (int i, double x); | 3344 | int test (int i, double x); |
2700 | struct s1 {int (*f) (int a);}; | 3345 | struct s1 {int (*f) (int a);}; |
2701 | struct s2 {int (*f) (double a);}; | 3346 | struct 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 | 3358 | for 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__ | ||
2720 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
2721 | do | 3360 | do |
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 |
2724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 3363 | if { (ac_try="$ac_compile" |
2725 | (eval $ac_compile) 2>conftest.er1 | 3364 | case "(($ac_try" in |
3365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3366 | *) ac_try_echo=$ac_try;; | ||
3367 | esac | ||
3368 | eval "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;; | ||
3380 | esac | ||
3381 | eval "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;; | ||
3390 | esac | ||
3391 | eval "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 |
2745 | break | ||
2746 | else | 3397 | else |
2747 | echo "$as_me: failed program was:" >&5 | 3398 | echo "$as_me: failed program was:" >&5 |
2748 | sed 's/^/| /' conftest.$ac_ext >&5 | 3399 | sed 's/^/| /' conftest.$ac_ext >&5 |
2749 | 3400 | ||
3401 | |||
2750 | fi | 3402 | fi |
2751 | rm -f conftest.err conftest.$ac_objext | 3403 | |
3404 | rm -f core conftest.err conftest.$ac_objext | ||
3405 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
2752 | done | 3406 | done |
2753 | rm -f conftest.$ac_ext conftest.$ac_objext | 3407 | rm -f conftest.$ac_ext |
2754 | CC=$ac_save_CC | 3408 | CC=$ac_save_CC |
2755 | 3409 | ||
2756 | fi | 3410 | fi |
2757 | 3411 | # AC_CACHE_VAL | |
2758 | case "x$ac_cv_prog_cc_stdc" in | 3412 | case "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 |
2761 | echo "${ECHO_T}none needed" >&6 ;; | 3415 | echo "${ECHO_T}none needed" >&6; } ;; |
3416 | xno) | ||
3417 | { echo "$as_me:$LINENO: result: unsupported" >&5 | ||
3418 | echo "${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" |
2764 | echo "${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" ;; | 3422 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
2766 | esac | 3423 | esac |
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. | ||
2772 | cat >conftest.$ac_ext <<_ACEOF | ||
2773 | #ifndef __cplusplus | ||
2774 | choke me | ||
2775 | #endif | ||
2776 | _ACEOF | ||
2777 | rm -f conftest.$ac_objext | ||
2778 | if { (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);' | ||
2805 | do | ||
2806 | cat >conftest.$ac_ext <<_ACEOF | ||
2807 | /* confdefs.h. */ | ||
2808 | _ACEOF | ||
2809 | cat confdefs.h >>conftest.$ac_ext | ||
2810 | cat >>conftest.$ac_ext <<_ACEOF | ||
2811 | /* end confdefs.h. */ | ||
2812 | $ac_declaration | ||
2813 | #include <stdlib.h> | ||
2814 | int | ||
2815 | main () | ||
2816 | { | ||
2817 | exit (42); | ||
2818 | ; | ||
2819 | return 0; | ||
2820 | } | ||
2821 | _ACEOF | ||
2822 | rm -f conftest.$ac_objext | ||
2823 | if { (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 | : | ||
2844 | else | ||
2845 | echo "$as_me: failed program was:" >&5 | ||
2846 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2847 | |||
2848 | continue | ||
2849 | fi | ||
2850 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2851 | cat >conftest.$ac_ext <<_ACEOF | ||
2852 | /* confdefs.h. */ | ||
2853 | _ACEOF | ||
2854 | cat confdefs.h >>conftest.$ac_ext | ||
2855 | cat >>conftest.$ac_ext <<_ACEOF | ||
2856 | /* end confdefs.h. */ | ||
2857 | $ac_declaration | ||
2858 | int | ||
2859 | main () | ||
2860 | { | ||
2861 | exit (42); | ||
2862 | ; | ||
2863 | return 0; | ||
2864 | } | ||
2865 | _ACEOF | ||
2866 | rm -f conftest.$ac_objext | ||
2867 | if { (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 | ||
2888 | else | ||
2889 | echo "$as_me: failed program was:" >&5 | ||
2890 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2891 | |||
2892 | fi | ||
2893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2894 | done | ||
2895 | rm -f conftest* | ||
2896 | if test -n "$ac_declaration"; then | ||
2897 | echo '#ifdef __cplusplus' >>confdefs.h | ||
2898 | echo $ac_declaration >>confdefs.h | ||
2899 | echo '#endif' >>confdefs.h | ||
2900 | fi | ||
2901 | |||
2902 | else | ||
2903 | echo "$as_me: failed program was:" >&5 | ||
2904 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2905 | 3425 | ||
2906 | fi | ||
2907 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2908 | ac_ext=c | 3426 | ac_ext=c |
2909 | ac_cpp='$CPP $CPPFLAGS' | 3427 | ac_cpp='$CPP $CPPFLAGS' |
2910 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 3428 | ac_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 $ | |||
2912 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 3430 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2913 | DEPDIR="${am__leading_dot}deps" | 3431 | DEPDIR="${am__leading_dot}deps" |
2914 | 3432 | ||
2915 | ac_config_commands="$ac_config_commands depfiles" | 3433 | ac_config_commands="$ac_config_commands depfiles" |
2916 | 3434 | ||
2917 | 3435 | ||
2918 | am_make=${MAKE-make} | 3436 | am_make=${MAKE-make} |
@@ -2922,8 +3440,8 @@ am__doit: | |||
2922 | .PHONY: am__doit | 3440 | .PHONY: am__doit |
2923 | END | 3441 | END |
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. |
2925 | echo "$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 |
2926 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | 3444 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } |
2927 | am__include="#" | 3445 | am__include="#" |
2928 | am__quote= | 3446 | am__quote= |
2929 | _am_result=none | 3447 | _am_result=none |
@@ -2950,15 +3468,15 @@ if test "$am__include" = "#"; then | |||
2950 | fi | 3468 | fi |
2951 | 3469 | ||
2952 | 3470 | ||
2953 | echo "$as_me:$LINENO: result: $_am_result" >&5 | 3471 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
2954 | echo "${ECHO_T}$_am_result" >&6 | 3472 | echo "${ECHO_T}$_am_result" >&6; } |
2955 | rm -f confinc confmf | 3473 | rm -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. |
2958 | if test "${enable_dependency_tracking+set}" = set; then | 3476 | if test "${enable_dependency_tracking+set}" = set; then |
2959 | enableval="$enable_dependency_tracking" | 3477 | enableval=$enable_dependency_tracking; |
3478 | fi | ||
2960 | 3479 | ||
2961 | fi; | ||
2962 | if test "x$enable_dependency_tracking" != xno; then | 3480 | if 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 | ||
2979 | depcc="$CC" am_compiler_list= | 3497 | depcc="$CC" am_compiler_list= |
2980 | 3498 | ||
2981 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | 3499 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
2982 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | 3500 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
2983 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | 3501 | if 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 |
2985 | else | 3503 | else |
@@ -3068,8 +3586,8 @@ else | |||
3068 | fi | 3586 | fi |
3069 | 3587 | ||
3070 | fi | 3588 | fi |
3071 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | 3589 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3072 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | 3590 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
3073 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | 3591 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3074 | 3592 | ||
3075 | 3593 | ||
@@ -3086,8 +3604,8 @@ fi | |||
3086 | 3604 | ||
3087 | 3605 | ||
3088 | 3606 | ||
3089 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | 3607 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
3090 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | 3608 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
3091 | if test "${ac_cv_c_const+set}" = set; then | 3609 | if test "${ac_cv_c_const+set}" = set; then |
3092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 3610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3093 | else | 3611 | else |
@@ -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 |
3155 | rm -f conftest.$ac_objext | 3676 | rm -f conftest.$ac_objext |
3156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 3677 | if { (ac_try="$ac_compile" |
3157 | (eval $ac_compile) 2>conftest.er1 | 3678 | case "(($ac_try" in |
3679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3680 | *) ac_try_echo=$ac_try;; | ||
3681 | esac | ||
3682 | eval "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;; | ||
3694 | esac | ||
3695 | eval "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;; | ||
3704 | esac | ||
3705 | eval "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 |
3179 | sed 's/^/| /' conftest.$ac_ext >&5 | 3713 | sed 's/^/| /' conftest.$ac_ext >&5 |
3180 | 3714 | ||
3181 | ac_cv_c_const=no | 3715 | ac_cv_c_const=no |
3182 | fi | 3716 | fi |
3183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 3717 | |
3718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3184 | fi | 3719 | fi |
3185 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | 3720 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
3186 | echo "${ECHO_T}$ac_cv_c_const" >&6 | 3721 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
3187 | if test $ac_cv_c_const = no; then | 3722 | if test $ac_cv_c_const = no; then |
3188 | 3723 | ||
3189 | cat >>confdefs.h <<\_ACEOF | 3724 | cat >>confdefs.h <<\_ACEOF |
@@ -3192,8 +3727,8 @@ _ACEOF | |||
3192 | 3727 | ||
3193 | fi | 3728 | fi |
3194 | 3729 | ||
3195 | echo "$as_me:$LINENO: checking for inline" >&5 | 3730 | { echo "$as_me:$LINENO: checking for inline" >&5 |
3196 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | 3731 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
3197 | if test "${ac_cv_c_inline+set}" = set; then | 3732 | if test "${ac_cv_c_inline+set}" = set; then |
3198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 3733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3199 | else | 3734 | else |
@@ -3213,38 +3748,54 @@ $ac_kw foo_t foo () {return 0; } | |||
3213 | 3748 | ||
3214 | _ACEOF | 3749 | _ACEOF |
3215 | rm -f conftest.$ac_objext | 3750 | rm -f conftest.$ac_objext |
3216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 3751 | if { (ac_try="$ac_compile" |
3217 | (eval $ac_compile) 2>conftest.er1 | 3752 | case "(($ac_try" in |
3753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3754 | *) ac_try_echo=$ac_try;; | ||
3755 | esac | ||
3756 | eval "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;; | ||
3768 | esac | ||
3769 | eval "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;; | ||
3778 | esac | ||
3779 | eval "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 |
3237 | else | 3785 | else |
3238 | echo "$as_me: failed program was:" >&5 | 3786 | echo "$as_me: failed program was:" >&5 |
3239 | sed 's/^/| /' conftest.$ac_ext >&5 | 3787 | sed 's/^/| /' conftest.$ac_ext >&5 |
3240 | 3788 | ||
3789 | |||
3241 | fi | 3790 | fi |
3242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 3791 | |
3792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3793 | test "$ac_cv_c_inline" != no && break | ||
3243 | done | 3794 | done |
3244 | 3795 | ||
3245 | fi | 3796 | fi |
3246 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | 3797 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
3247 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | 3798 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
3248 | 3799 | ||
3249 | 3800 | ||
3250 | case $ac_cv_c_inline in | 3801 | case $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. |
3273 | if test "${enable_shared+set}" = set; then | 3824 | if 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 |
3292 | else | 3842 | else |
3293 | enable_shared=yes | 3843 | enable_shared=yes |
3294 | fi; | 3844 | fi |
3295 | 3845 | ||
3296 | # Check whether --enable-static or --disable-static was given. | 3846 | |
3847 | # Check whether --enable-static was given. | ||
3297 | if test "${enable_static+set}" = set; then | 3848 | if 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 |
3316 | else | 3866 | else |
3317 | enable_static=yes | 3867 | enable_static=yes |
3318 | fi; | 3868 | fi |
3319 | 3869 | ||
3320 | # Check whether --enable-fast-install or --disable-fast-install was given. | 3870 | |
3871 | # Check whether --enable-fast-install was given. | ||
3321 | if test "${enable_fast_install+set}" = set; then | 3872 | if 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 |
3340 | else | 3890 | else |
3341 | enable_fast_install=yes | 3891 | enable_fast_install=yes |
3342 | fi; | 3892 | fi |
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 |
3347 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | 3898 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
3348 | { (exit 1); exit 1; }; } | 3899 | { (exit 1); exit 1; }; } |
3349 | 3900 | ||
3350 | echo "$as_me:$LINENO: checking build system type" >&5 | 3901 | { echo "$as_me:$LINENO: checking build system type" >&5 |
3351 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | 3902 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
3352 | if test "${ac_cv_build+set}" = set; then | 3903 | if test "${ac_cv_build+set}" = set; then |
3353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 3904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3354 | else | 3905 | else |
3355 | ac_cv_build_alias=$build_alias | 3906 | ac_build_alias=$build_alias |
3356 | test -z "$ac_cv_build_alias" && | 3907 | test "x$ac_build_alias" = x && |
3357 | ac_cv_build_alias=`$ac_config_guess` | 3908 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
3358 | test -z "$ac_cv_build_alias" && | 3909 | test "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 |
3360 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | 3911 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
3361 | { (exit 1); exit 1; }; } | 3912 | { (exit 1); exit 1; }; } |
3362 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | 3913 | ac_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 |
3364 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | 3915 | echo "$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 | ||
3367 | fi | 3918 | fi |
3368 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | 3919 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
3369 | echo "${ECHO_T}$ac_cv_build" >&6 | 3920 | echo "${ECHO_T}$ac_cv_build" >&6; } |
3921 | case $ac_cv_build in | ||
3922 | *-*-*) ;; | ||
3923 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | ||
3924 | echo "$as_me: error: invalid value of canonical build" >&2;} | ||
3925 | { (exit 1); exit 1; }; };; | ||
3926 | esac | ||
3370 | build=$ac_cv_build | 3927 | build=$ac_cv_build |
3371 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 3928 | ac_save_IFS=$IFS; IFS='-' |
3372 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 3929 | set x $ac_cv_build |
3373 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 3930 | shift |
3374 | 3931 | build_cpu=$1 | |
3375 | 3932 | build_vendor=$2 | |
3376 | echo "$as_me:$LINENO: checking host system type" >&5 | 3933 | shift; shift |
3377 | echo $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: | ||
3936 | build_os=$* | ||
3937 | IFS=$ac_save_IFS | ||
3938 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
3939 | |||
3940 | |||
3941 | { echo "$as_me:$LINENO: checking host system type" >&5 | ||
3942 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | ||
3378 | if test "${ac_cv_host+set}" = set; then | 3943 | if test "${ac_cv_host+set}" = set; then |
3379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 3944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3380 | else | 3945 | else |
3381 | ac_cv_host_alias=$host_alias | 3946 | if test "x$host_alias" = x; then |
3382 | test -z "$ac_cv_host_alias" && | 3947 | ac_cv_host=$ac_cv_build |
3383 | ac_cv_host_alias=$ac_cv_build_alias | 3948 | else |
3384 | ac_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 |
3386 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | 3951 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
3387 | { (exit 1); exit 1; }; } | 3952 | { (exit 1); exit 1; }; } |
3953 | fi | ||
3388 | 3954 | ||
3389 | fi | 3955 | fi |
3390 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | 3956 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
3391 | echo "${ECHO_T}$ac_cv_host" >&6 | 3957 | echo "${ECHO_T}$ac_cv_host" >&6; } |
3958 | case $ac_cv_host in | ||
3959 | *-*-*) ;; | ||
3960 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | ||
3961 | echo "$as_me: error: invalid value of canonical host" >&2;} | ||
3962 | { (exit 1); exit 1; }; };; | ||
3963 | esac | ||
3392 | host=$ac_cv_host | 3964 | host=$ac_cv_host |
3393 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 3965 | ac_save_IFS=$IFS; IFS='-' |
3394 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 3966 | set x $ac_cv_host |
3395 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 3967 | shift |
3396 | 3968 | host_cpu=$1 | |
3397 | 3969 | host_vendor=$2 | |
3398 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | 3970 | shift; shift |
3399 | echo $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: | ||
3973 | host_os=$* | ||
3974 | IFS=$ac_save_IFS | ||
3975 | case $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 | ||
3979 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } | ||
3400 | if test "${lt_cv_path_SED+set}" = set; then | 3980 | if test "${lt_cv_path_SED+set}" = set; then |
3401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 3981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3402 | else | 3982 | else |
@@ -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. |
3422 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | 4002 | for 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 |
3447 | done | 4027 | done |
4028 | |||
4029 | fi | ||
4030 | |||
3448 | SED=$lt_cv_path_SED | 4031 | SED=$lt_cv_path_SED |
4032 | { echo "$as_me:$LINENO: result: $SED" >&5 | ||
4033 | echo "${ECHO_T}$SED" >&6; } | ||
4034 | |||
4035 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | ||
4036 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | ||
4037 | if test "${ac_cv_path_GREP+set}" = set; then | ||
4038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4039 | else | ||
4040 | # Extract the first word of "grep ggrep" to use in msg output | ||
4041 | if test -z "$GREP"; then | ||
4042 | set dummy grep ggrep; ac_prog_name=$2 | ||
4043 | if test "${ac_cv_path_GREP+set}" = set; then | ||
4044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4045 | else | ||
4046 | ac_path_GREP_found=false | ||
4047 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4049 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4050 | do | ||
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 | ||
4059 | case `"$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;; | ||
4083 | esac | ||
4084 | |||
4085 | |||
4086 | $ac_path_GREP_found && break 3 | ||
4087 | done | ||
4088 | done | ||
4089 | |||
4090 | done | ||
4091 | IFS=$as_save_IFS | ||
4092 | |||
3449 | 4093 | ||
3450 | fi | 4094 | fi |
3451 | 4095 | ||
3452 | echo "$as_me:$LINENO: result: $SED" >&5 | 4096 | GREP="$ac_cv_path_GREP" |
3453 | echo "${ECHO_T}$SED" >&6 | 4097 | if 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 | ||
4099 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
4100 | { (exit 1); exit 1; }; } | ||
4101 | fi | ||
4102 | |||
4103 | else | ||
4104 | ac_cv_path_GREP=$GREP | ||
4105 | fi | ||
4106 | |||
4107 | |||
4108 | fi | ||
4109 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | ||
4110 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | ||
4111 | GREP="$ac_cv_path_GREP" | ||
4112 | |||
3454 | 4113 | ||
3455 | echo "$as_me:$LINENO: checking for egrep" >&5 | 4114 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
3456 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | 4115 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
3457 | if test "${ac_cv_prog_egrep+set}" = set; then | 4116 | if test "${ac_cv_path_EGREP+set}" = set; then |
3458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 4117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3459 | else | 4118 | else |
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 | ||
4123 | if test -z "$EGREP"; then | ||
4124 | set dummy egrep; ac_prog_name=$2 | ||
4125 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
4126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4127 | else | ||
4128 | ac_path_EGREP_found=false | ||
4129 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4131 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4132 | do | ||
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 | ||
4141 | case `"$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;; | ||
4165 | esac | ||
4166 | |||
4167 | |||
4168 | $ac_path_EGREP_found && break 3 | ||
4169 | done | ||
4170 | done | ||
4171 | |||
4172 | done | ||
4173 | IFS=$as_save_IFS | ||
4174 | |||
4175 | |||
4176 | fi | ||
4177 | |||
4178 | EGREP="$ac_cv_path_EGREP" | ||
4179 | if 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 | ||
4181 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
4182 | { (exit 1); exit 1; }; } | ||
3464 | fi | 4183 | fi |
3465 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | ||
3466 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | ||
3467 | EGREP=$ac_cv_prog_egrep | ||
3468 | 4184 | ||
4185 | else | ||
4186 | ac_cv_path_EGREP=$EGREP | ||
4187 | fi | ||
3469 | 4188 | ||
3470 | 4189 | ||
3471 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | 4190 | fi |
4191 | fi | ||
4192 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||
4193 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | ||
4194 | EGREP="$ac_cv_path_EGREP" | ||
4195 | |||
4196 | |||
4197 | |||
4198 | # Check whether --with-gnu-ld was given. | ||
3472 | if test "${with_gnu_ld+set}" = set; then | 4199 | if 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 | ||
3475 | else | 4201 | else |
3476 | with_gnu_ld=no | 4202 | with_gnu_ld=no |
3477 | fi; | 4203 | fi |
4204 | |||
3478 | ac_prog=ld | 4205 | ac_prog=ld |
3479 | if test "$GCC" = yes; then | 4206 | if 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 |
3482 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | 4209 | echo $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 |
3510 | elif test "$with_gnu_ld" = yes; then | 4237 | elif 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 |
3512 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | 4239 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
3513 | else | 4240 | else |
3514 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | 4241 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
3515 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | 4242 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
3516 | fi | 4243 | fi |
3517 | if test "${lt_cv_path_LD+set}" = set; then | 4244 | if 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 | ||
3546 | LD="$lt_cv_path_LD" | 4273 | LD="$lt_cv_path_LD" |
3547 | if test -n "$LD"; then | 4274 | if test -n "$LD"; then |
3548 | echo "$as_me:$LINENO: result: $LD" >&5 | 4275 | { echo "$as_me:$LINENO: result: $LD" >&5 |
3549 | echo "${ECHO_T}$LD" >&6 | 4276 | echo "${ECHO_T}$LD" >&6; } |
3550 | else | 4277 | else |
3551 | echo "$as_me:$LINENO: result: no" >&5 | 4278 | { echo "$as_me:$LINENO: result: no" >&5 |
3552 | echo "${ECHO_T}no" >&6 | 4279 | echo "${ECHO_T}no" >&6; } |
3553 | fi | 4280 | fi |
3554 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | 4281 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
3555 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | 4282 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
3556 | { (exit 1); exit 1; }; } | 4283 | { (exit 1); exit 1; }; } |
3557 | echo "$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 |
3558 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | 4285 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
3559 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | 4286 | if 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 |
3561 | else | 4288 | else |
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. |
3563 | case `$LD -v 2>&1 </dev/null` in | 4290 | case `$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 | ;; |
3570 | esac | 4297 | esac |
3571 | fi | 4298 | fi |
3572 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | 4299 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
3573 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | 4300 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
3574 | with_gnu_ld=$lt_cv_prog_gnu_ld | 4301 | with_gnu_ld=$lt_cv_prog_gnu_ld |
3575 | 4302 | ||
3576 | 4303 | ||
3577 | echo "$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 |
3578 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | 4305 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
3579 | if test "${lt_cv_ld_reload_flag+set}" = set; then | 4306 | if 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 |
3581 | else | 4308 | else |
3582 | lt_cv_ld_reload_flag='-r' | 4309 | lt_cv_ld_reload_flag='-r' |
3583 | fi | 4310 | fi |
3584 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | 4311 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
3585 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | 4312 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
3586 | reload_flag=$lt_cv_ld_reload_flag | 4313 | reload_flag=$lt_cv_ld_reload_flag |
3587 | case $reload_flag in | 4314 | case $reload_flag in |
3588 | "" | " "*) ;; | 4315 | "" | " "*) ;; |
3589 | *) reload_flag=" $reload_flag" ;; | 4316 | *) reload_flag=" $reload_flag" ;; |
3590 | esac | 4317 | esac |
3591 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | 4318 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4319 | case $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 | ;; | ||
4327 | esac | ||
3592 | 4328 | ||
3593 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | 4329 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
3594 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | 4330 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
3595 | if test "${lt_cv_path_NM+set}" = set; then | 4331 | if test "${lt_cv_path_NM+set}" = set; then |
3596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 4332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3597 | else | 4333 | else |
@@ -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" |
3601 | else | 4337 | else |
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 |
3633 | fi | 4376 | fi |
3634 | fi | 4377 | fi |
3635 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | 4378 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
3636 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | 4379 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
3637 | NM="$lt_cv_path_NM" | 4380 | NM="$lt_cv_path_NM" |
3638 | 4381 | ||
3639 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | 4382 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3640 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | 4383 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
3641 | LN_S=$as_ln_s | 4384 | LN_S=$as_ln_s |
3642 | if test "$LN_S" = "ln -s"; then | 4385 | if test "$LN_S" = "ln -s"; then |
3643 | echo "$as_me:$LINENO: result: yes" >&5 | 4386 | { echo "$as_me:$LINENO: result: yes" >&5 |
3644 | echo "${ECHO_T}yes" >&6 | 4387 | echo "${ECHO_T}yes" >&6; } |
3645 | else | 4388 | else |
3646 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | 4389 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3647 | echo "${ECHO_T}no, using $LN_S" >&6 | 4390 | echo "${ECHO_T}no, using $LN_S" >&6; } |
3648 | fi | 4391 | fi |
3649 | 4392 | ||
3650 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 | 4393 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
3651 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 | 4394 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
3652 | if test "${lt_cv_deplibs_check_method+set}" = set; then | 4395 | if 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 |
3654 | else | 4397 | else |
@@ -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 | ||
3678 | bsdi4*) | 4421 | bsdi[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 | ||
3701 | freebsd* | kfreebsd*-gnu) | 4444 | freebsd* | 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 | ||
3721 | hpux10.20* | hpux11*) | 4464 | hpux10.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 | ||
4482 | interix3*) | ||
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 | |||
3739 | irix5* | irix6* | nonstopux*) | 4487 | irix5* | 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. |
3750 | linux*) | 4498 | linux* | k*bsd*-gnu) |
3751 | lt_cv_deplibs_check_method=pass_all | 4499 | lt_cv_deplibs_check_method=pass_all |
3752 | ;; | 4500 | ;; |
3753 | 4501 | ||
3754 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | 4502 | netbsd* | 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 | ||
3772 | openbsd*) | 4520 | openbsd*) |
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 | ||
3786 | sco3.2v5*) | ||
3787 | lt_cv_deplibs_check_method=pass_all | ||
3788 | ;; | ||
3789 | |||
3790 | solaris*) | 4532 | solaris*) |
3791 | lt_cv_deplibs_check_method=pass_all | 4533 | lt_cv_deplibs_check_method=pass_all |
3792 | ;; | 4534 | ;; |
3793 | 4535 | ||
3794 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 4536 | sysv4 | 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 | ||
3818 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) | 4563 | sysv5* | 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 | ;; |
3821 | esac | 4566 | esac |
3822 | 4567 | ||
3823 | fi | 4568 | fi |
3824 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | 4569 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
3825 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | 4570 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
3826 | file_magic_cmd=$lt_cv_file_magic_cmd | 4571 | file_magic_cmd=$lt_cv_file_magic_cmd |
3827 | deplibs_check_method=$lt_cv_deplibs_check_method | 4572 | deplibs_check_method=$lt_cv_deplibs_check_method |
3828 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | 4573 | test -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. |
3834 | LTCC=${LTCC-"$CC"} | 4579 | LTCC=${LTCC-"$CC"} |
3835 | 4580 | ||
4581 | # If no C compiler flags were specified, use CFLAGS. | ||
4582 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
4583 | |||
3836 | # Allow CC to be a program name with arguments. | 4584 | # Allow CC to be a program name with arguments. |
3837 | compiler=$CC | 4585 | compiler=$CC |
3838 | 4586 | ||
3839 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | 4587 | # Check whether --enable-libtool-lock was given. |
3840 | if test "${enable_libtool_lock+set}" = set; then | 4588 | if test "${enable_libtool_lock+set}" = set; then |
3841 | enableval="$enable_libtool_lock" | 4589 | enableval=$enable_libtool_lock; |
4590 | fi | ||
3842 | 4591 | ||
3843 | fi; | ||
3844 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 4592 | test "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 |
3956 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | 4704 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
3957 | if test "${lt_cv_cc_needs_belf+set}" = set; then | 4705 | if 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 |
3959 | else | 4707 | else |
@@ -3979,23 +4727,36 @@ main () | |||
3979 | } | 4727 | } |
3980 | _ACEOF | 4728 | _ACEOF |
3981 | rm -f conftest.$ac_objext conftest$ac_exeext | 4729 | rm -f conftest.$ac_objext conftest$ac_exeext |
3982 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 4730 | if { (ac_try="$ac_link" |
3983 | (eval $ac_link) 2>conftest.er1 | 4731 | case "(($ac_try" in |
4732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4733 | *) ac_try_echo=$ac_try;; | ||
4734 | esac | ||
4735 | eval "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;; | ||
4747 | esac | ||
4748 | eval "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;; | ||
4757 | esac | ||
4758 | eval "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 |
4005 | sed 's/^/| /' conftest.$ac_ext >&5 | 4766 | sed 's/^/| /' conftest.$ac_ext >&5 |
4006 | 4767 | ||
4007 | lt_cv_cc_needs_belf=no | 4768 | lt_cv_cc_needs_belf=no |
4008 | fi | 4769 | fi |
4009 | rm -f conftest.err conftest.$ac_objext \ | 4770 | |
4771 | rm -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 |
4012 | ac_cpp='$CPP $CPPFLAGS' | 4774 | ac_cpp='$CPP $CPPFLAGS' |
@@ -4015,19 +4777,39 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | |||
4015 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 4777 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4016 | 4778 | ||
4017 | fi | 4779 | fi |
4018 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | 4780 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4019 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | 4781 | echo "${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 | ;; |
4787 | sparc*-*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. |
4028 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | 4810 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
4029 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 4811 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4030 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 4812 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
4031 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | 4813 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
4032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 4814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4033 | else | 4815 | else |
@@ -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 |
4048 | done | 4830 | done |
4049 | done | 4831 | done |
4832 | IFS=$as_save_IFS | ||
4050 | 4833 | ||
4051 | fi | 4834 | fi |
4052 | fi | 4835 | fi |
4053 | DLLTOOL=$ac_cv_prog_DLLTOOL | 4836 | DLLTOOL=$ac_cv_prog_DLLTOOL |
4054 | if test -n "$DLLTOOL"; then | 4837 | if test -n "$DLLTOOL"; then |
4055 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | 4838 | { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
4056 | echo "${ECHO_T}$DLLTOOL" >&6 | 4839 | echo "${ECHO_T}$DLLTOOL" >&6; } |
4057 | else | 4840 | else |
4058 | echo "$as_me:$LINENO: result: no" >&5 | 4841 | { echo "$as_me:$LINENO: result: no" >&5 |
4059 | echo "${ECHO_T}no" >&6 | 4842 | echo "${ECHO_T}no" >&6; } |
4060 | fi | 4843 | fi |
4061 | 4844 | ||
4845 | |||
4062 | fi | 4846 | fi |
4063 | if test -z "$ac_cv_prog_DLLTOOL"; then | 4847 | if 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. |
4066 | set dummy dlltool; ac_word=$2 | 4850 | set dummy dlltool; ac_word=$2 |
4067 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 4851 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 4852 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
4069 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | 4853 | if 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 |
4071 | else | 4855 | else |
@@ -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 |
4086 | done | 4870 | done |
4087 | done | 4871 | done |
4872 | IFS=$as_save_IFS | ||
4088 | 4873 | ||
4089 | test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false" | ||
4090 | fi | 4874 | fi |
4091 | fi | 4875 | fi |
4092 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | 4876 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
4093 | if test -n "$ac_ct_DLLTOOL"; then | 4877 | if 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 |
4095 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | 4879 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } |
4096 | else | 4880 | else |
4097 | echo "$as_me:$LINENO: result: no" >&5 | 4881 | { echo "$as_me:$LINENO: result: no" >&5 |
4098 | echo "${ECHO_T}no" >&6 | 4882 | echo "${ECHO_T}no" >&6; } |
4099 | fi | 4883 | fi |
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 | ||
4889 | yes:) | ||
4890 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
4891 | whose name does not start with the host triplet. If you think this | ||
4892 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
4893 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
4894 | whose name does not start with the host triplet. If you think this | ||
4895 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
4896 | ac_tool_warned=yes ;; | ||
4897 | esac | ||
4898 | DLLTOOL=$ac_ct_DLLTOOL | ||
4899 | fi | ||
4102 | else | 4900 | else |
4103 | DLLTOOL="$ac_cv_prog_DLLTOOL" | 4901 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
4104 | fi | 4902 | fi |
@@ -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. |
4108 | set dummy ${ac_tool_prefix}as; ac_word=$2 | 4906 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
4109 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 4907 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4110 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 4908 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
4111 | if test "${ac_cv_prog_AS+set}" = set; then | 4909 | if test "${ac_cv_prog_AS+set}" = set; then |
4112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 4910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4113 | else | 4911 | else |
@@ -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 |
4128 | done | 4926 | done |
4129 | done | 4927 | done |
4928 | IFS=$as_save_IFS | ||
4130 | 4929 | ||
4131 | fi | 4930 | fi |
4132 | fi | 4931 | fi |
4133 | AS=$ac_cv_prog_AS | 4932 | AS=$ac_cv_prog_AS |
4134 | if test -n "$AS"; then | 4933 | if test -n "$AS"; then |
4135 | echo "$as_me:$LINENO: result: $AS" >&5 | 4934 | { echo "$as_me:$LINENO: result: $AS" >&5 |
4136 | echo "${ECHO_T}$AS" >&6 | 4935 | echo "${ECHO_T}$AS" >&6; } |
4137 | else | 4936 | else |
4138 | echo "$as_me:$LINENO: result: no" >&5 | 4937 | { echo "$as_me:$LINENO: result: no" >&5 |
4139 | echo "${ECHO_T}no" >&6 | 4938 | echo "${ECHO_T}no" >&6; } |
4140 | fi | 4939 | fi |
4141 | 4940 | ||
4941 | |||
4142 | fi | 4942 | fi |
4143 | if test -z "$ac_cv_prog_AS"; then | 4943 | if 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. |
4146 | set dummy as; ac_word=$2 | 4946 | set dummy as; ac_word=$2 |
4147 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 4947 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 4948 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
4149 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then | 4949 | if 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 |
4151 | else | 4951 | else |
@@ -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 |
4166 | done | 4966 | done |
4167 | done | 4967 | done |
4968 | IFS=$as_save_IFS | ||
4168 | 4969 | ||
4169 | test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false" | ||
4170 | fi | 4970 | fi |
4171 | fi | 4971 | fi |
4172 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | 4972 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
4173 | if test -n "$ac_ct_AS"; then | 4973 | if 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 |
4175 | echo "${ECHO_T}$ac_ct_AS" >&6 | 4975 | echo "${ECHO_T}$ac_ct_AS" >&6; } |
4176 | else | 4976 | else |
4177 | echo "$as_me:$LINENO: result: no" >&5 | 4977 | { echo "$as_me:$LINENO: result: no" >&5 |
4178 | echo "${ECHO_T}no" >&6 | 4978 | echo "${ECHO_T}no" >&6; } |
4179 | fi | 4979 | fi |
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 | ||
4985 | yes:) | ||
4986 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
4987 | whose name does not start with the host triplet. If you think this | ||
4988 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
4989 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
4990 | whose name does not start with the host triplet. If you think this | ||
4991 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
4992 | ac_tool_warned=yes ;; | ||
4993 | esac | ||
4994 | AS=$ac_ct_AS | ||
4995 | fi | ||
4182 | else | 4996 | else |
4183 | AS="$ac_cv_prog_AS" | 4997 | AS="$ac_cv_prog_AS" |
4184 | fi | 4998 | fi |
@@ -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. |
4188 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | 5002 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
4189 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 5003 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4190 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 5004 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
4191 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then | 5005 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then |
4192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 5006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4193 | else | 5007 | else |
@@ -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 |
4208 | done | 5022 | done |
4209 | done | 5023 | done |
5024 | IFS=$as_save_IFS | ||
4210 | 5025 | ||
4211 | fi | 5026 | fi |
4212 | fi | 5027 | fi |
4213 | OBJDUMP=$ac_cv_prog_OBJDUMP | 5028 | OBJDUMP=$ac_cv_prog_OBJDUMP |
4214 | if test -n "$OBJDUMP"; then | 5029 | if test -n "$OBJDUMP"; then |
4215 | echo "$as_me:$LINENO: result: $OBJDUMP" >&5 | 5030 | { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 |
4216 | echo "${ECHO_T}$OBJDUMP" >&6 | 5031 | echo "${ECHO_T}$OBJDUMP" >&6; } |
4217 | else | 5032 | else |
4218 | echo "$as_me:$LINENO: result: no" >&5 | 5033 | { echo "$as_me:$LINENO: result: no" >&5 |
4219 | echo "${ECHO_T}no" >&6 | 5034 | echo "${ECHO_T}no" >&6; } |
4220 | fi | 5035 | fi |
4221 | 5036 | ||
5037 | |||
4222 | fi | 5038 | fi |
4223 | if test -z "$ac_cv_prog_OBJDUMP"; then | 5039 | if 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. |
4226 | set dummy objdump; ac_word=$2 | 5042 | set dummy objdump; ac_word=$2 |
4227 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 5043 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4228 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 5044 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
4229 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then | 5045 | if 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 |
4231 | else | 5047 | else |
@@ -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 |
4246 | done | 5062 | done |
4247 | done | 5063 | done |
5064 | IFS=$as_save_IFS | ||
4248 | 5065 | ||
4249 | test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false" | ||
4250 | fi | 5066 | fi |
4251 | fi | 5067 | fi |
4252 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | 5068 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
4253 | if test -n "$ac_ct_OBJDUMP"; then | 5069 | if 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 |
4255 | echo "${ECHO_T}$ac_ct_OBJDUMP" >&6 | 5071 | echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } |
4256 | else | 5072 | else |
4257 | echo "$as_me:$LINENO: result: no" >&5 | 5073 | { echo "$as_me:$LINENO: result: no" >&5 |
4258 | echo "${ECHO_T}no" >&6 | 5074 | echo "${ECHO_T}no" >&6; } |
4259 | fi | 5075 | fi |
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 | ||
5081 | yes:) | ||
5082 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
5083 | whose name does not start with the host triplet. If you think this | ||
5084 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
5085 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
5086 | whose name does not start with the host triplet. If you think this | ||
5087 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
5088 | ac_tool_warned=yes ;; | ||
5089 | esac | ||
5090 | OBJDUMP=$ac_ct_OBJDUMP | ||
5091 | fi | ||
4262 | else | 5092 | else |
4263 | OBJDUMP="$ac_cv_prog_OBJDUMP" | 5093 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
4264 | fi | 5094 | fi |
@@ -4275,8 +5105,8 @@ ac_cpp='$CPP $CPPFLAGS' | |||
4275 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 5105 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4276 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 5106 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4277 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 5107 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4278 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | 5108 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4279 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | 5109 | echo $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. |
4281 | if test -n "$CPP" && test -d "$CPP"; then | 5111 | if 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 |
4313 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 5143 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4314 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 5144 | case "(($ac_try" in |
5145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5146 | *) ac_try_echo=$ac_try;; | ||
5147 | esac | ||
5148 | eval "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. |
4337 | continue | 5172 | continue |
4338 | fi | 5173 | fi |
5174 | |||
4339 | rm -f conftest.err conftest.$ac_ext | 5175 | rm -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 |
4351 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 5187 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4352 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 5188 | case "(($ac_try" in |
5189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5190 | *) ac_try_echo=$ac_try;; | ||
5191 | esac | ||
5192 | eval "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 | |||
4376 | ac_preproc_ok=: | 5217 | ac_preproc_ok=: |
4377 | break | 5218 | break |
4378 | fi | 5219 | fi |
5220 | |||
4379 | rm -f conftest.err conftest.$ac_ext | 5221 | rm -f conftest.err conftest.$ac_ext |
4380 | 5222 | ||
4381 | done | 5223 | done |
@@ -4393,8 +5235,8 @@ fi | |||
4393 | else | 5235 | else |
4394 | ac_cv_prog_CPP=$CPP | 5236 | ac_cv_prog_CPP=$CPP |
4395 | fi | 5237 | fi |
4396 | echo "$as_me:$LINENO: result: $CPP" >&5 | 5238 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
4397 | echo "${ECHO_T}$CPP" >&6 | 5239 | echo "${ECHO_T}$CPP" >&6; } |
4398 | ac_preproc_ok=false | 5240 | ac_preproc_ok=false |
4399 | for ac_c_preproc_warn_flag in '' yes | 5241 | for ac_c_preproc_warn_flag in '' yes |
4400 | do | 5242 | do |
@@ -4417,8 +5259,13 @@ cat >>conftest.$ac_ext <<_ACEOF | |||
4417 | #endif | 5259 | #endif |
4418 | Syntax error | 5260 | Syntax error |
4419 | _ACEOF | 5261 | _ACEOF |
4420 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 5262 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4421 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 5263 | case "(($ac_try" in |
5264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5265 | *) ac_try_echo=$ac_try;; | ||
5266 | esac | ||
5267 | eval "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. |
4444 | continue | 5291 | continue |
4445 | fi | 5292 | fi |
5293 | |||
4446 | rm -f conftest.err conftest.$ac_ext | 5294 | rm -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 |
4458 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 5306 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4459 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 5307 | case "(($ac_try" in |
5308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5309 | *) ac_try_echo=$ac_try;; | ||
5310 | esac | ||
5311 | eval "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 | |||
4483 | ac_preproc_ok=: | 5336 | ac_preproc_ok=: |
4484 | break | 5337 | break |
4485 | fi | 5338 | fi |
5339 | |||
4486 | rm -f conftest.err conftest.$ac_ext | 5340 | rm -f conftest.err conftest.$ac_ext |
4487 | 5341 | ||
4488 | done | 5342 | done |
@@ -4505,8 +5359,8 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | |||
4505 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 5359 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4506 | 5360 | ||
4507 | 5361 | ||
4508 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | 5362 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4509 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | 5363 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
4510 | if test "${ac_cv_header_stdc+set}" = set; then | 5364 | if test "${ac_cv_header_stdc+set}" = set; then |
4511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 5365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4512 | else | 5366 | else |
@@ -4530,23 +5384,36 @@ main () | |||
4530 | } | 5384 | } |
4531 | _ACEOF | 5385 | _ACEOF |
4532 | rm -f conftest.$ac_objext | 5386 | rm -f conftest.$ac_objext |
4533 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 5387 | if { (ac_try="$ac_compile" |
4534 | (eval $ac_compile) 2>conftest.er1 | 5388 | case "(($ac_try" in |
5389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5390 | *) ac_try_echo=$ac_try;; | ||
5391 | esac | ||
5392 | eval "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;; | ||
5404 | esac | ||
5405 | eval "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;; | ||
5414 | esac | ||
5415 | eval "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 |
4556 | sed 's/^/| /' conftest.$ac_ext >&5 | 5423 | sed 's/^/| /' conftest.$ac_ext >&5 |
4557 | 5424 | ||
4558 | ac_cv_header_stdc=no | 5425 | ac_cv_header_stdc=no |
4559 | fi | 5426 | fi |
4560 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 5427 | |
5428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4561 | 5429 | ||
4562 | if test $ac_cv_header_stdc = yes; then | 5430 | if 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 | |||
4613 | cat >>conftest.$ac_ext <<_ACEOF | 5481 | cat >>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 |
4639 | rm -f conftest$ac_exeext | 5508 | rm -f conftest$ac_exeext |
4640 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 5509 | if { (ac_try="$ac_link" |
4641 | (eval $ac_link) 2>&5 | 5510 | case "(($ac_try" in |
5511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5512 | *) ac_try_echo=$ac_try;; | ||
5513 | esac | ||
5514 | eval "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;; | ||
5522 | esac | ||
5523 | eval "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 ) |
4657 | ac_cv_header_stdc=no | 5535 | ac_cv_header_stdc=no |
4658 | fi | 5536 | fi |
4659 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 5537 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4660 | fi | 5538 | fi |
5539 | |||
5540 | |||
4661 | fi | 5541 | fi |
4662 | fi | 5542 | fi |
4663 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | 5543 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4664 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | 5544 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
4665 | if test $ac_cv_header_stdc = yes; then | 5545 | if test $ac_cv_header_stdc = yes; then |
4666 | 5546 | ||
4667 | cat >>confdefs.h <<\_ACEOF | 5547 | cat >>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 |
4685 | do | 5565 | do |
4686 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 5566 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4687 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 5567 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4688 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 5568 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
4689 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 5569 | if { 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 |
4691 | else | 5571 | else |
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 |
4702 | rm -f conftest.$ac_objext | 5582 | rm -f conftest.$ac_objext |
4703 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 5583 | if { (ac_try="$ac_compile" |
4704 | (eval $ac_compile) 2>conftest.er1 | 5584 | case "(($ac_try" in |
5585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5586 | *) ac_try_echo=$ac_try;; | ||
5587 | esac | ||
5588 | eval "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;; | ||
5600 | esac | ||
5601 | eval "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;; | ||
5610 | esac | ||
5611 | eval "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 |
4726 | sed 's/^/| /' conftest.$ac_ext >&5 | 5619 | sed 's/^/| /' conftest.$ac_ext >&5 |
4727 | 5620 | ||
4728 | eval "$as_ac_Header=no" | 5621 | eval "$as_ac_Header=no" |
4729 | fi | 5622 | fi |
4730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 5623 | |
5624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4731 | fi | 5625 | fi |
4732 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 5626 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4733 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 5627 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5628 | echo "${ECHO_T}$ac_res" >&6; } | ||
4734 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 5629 | if 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 | |||
4745 | for ac_header in dlfcn.h | 5640 | for ac_header in dlfcn.h |
4746 | do | 5641 | do |
4747 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 5642 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4748 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 5643 | if { 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 |
4750 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 5645 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
4751 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 5646 | if { 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 |
4753 | fi | 5648 | fi |
4754 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 5649 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4755 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 5650 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5651 | echo "${ECHO_T}$ac_res" >&6; } | ||
4756 | else | 5652 | else |
4757 | # Is the header compilable? | 5653 | # Is the header compilable? |
4758 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 5654 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4759 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 5655 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
4760 | cat >conftest.$ac_ext <<_ACEOF | 5656 | cat >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 |
4769 | rm -f conftest.$ac_objext | 5665 | rm -f conftest.$ac_objext |
4770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 5666 | if { (ac_try="$ac_compile" |
4771 | (eval $ac_compile) 2>conftest.er1 | 5667 | case "(($ac_try" in |
5668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5669 | *) ac_try_echo=$ac_try;; | ||
5670 | esac | ||
5671 | eval "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;; | ||
5683 | esac | ||
5684 | eval "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;; | ||
5693 | esac | ||
5694 | eval "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 |
4793 | sed 's/^/| /' conftest.$ac_ext >&5 | 5702 | sed 's/^/| /' conftest.$ac_ext >&5 |
4794 | 5703 | ||
4795 | ac_header_compiler=no | 5704 | ac_header_compiler=no |
4796 | fi | 5705 | fi |
4797 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 5706 | |
4798 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 5707 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4799 | echo "${ECHO_T}$ac_header_compiler" >&6 | 5708 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5709 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
4800 | 5710 | ||
4801 | # Is the header present? | 5711 | # Is the header present? |
4802 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 5712 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4803 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 5713 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
4804 | cat >conftest.$ac_ext <<_ACEOF | 5714 | cat >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 |
4812 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 5722 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4813 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 5723 | case "(($ac_try" in |
5724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5725 | *) ac_try_echo=$ac_try;; | ||
5726 | esac | ||
5727 | eval "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 |
4836 | fi | 5751 | fi |
5752 | |||
4837 | rm -f conftest.err conftest.$ac_ext | 5753 | rm -f conftest.err conftest.$ac_ext |
4838 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 5754 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4839 | echo "${ECHO_T}$ac_header_preproc" >&6 | 5755 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
4840 | 5756 | ||
4841 | # So? What about this header? | 5757 | # So? What about this header? |
4842 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 5758 | case $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\ | |||
4860 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 5776 | echo "$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 |
4862 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 5778 | echo "$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 | ;; |
4872 | esac | 5786 | esac |
4873 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 5787 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4874 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 5788 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
4875 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 5789 | if { 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 |
4877 | else | 5791 | else |
4878 | eval "$as_ac_Header=\$ac_header_preproc" | 5792 | eval "$as_ac_Header=\$ac_header_preproc" |
4879 | fi | 5793 | fi |
4880 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 5794 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4881 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 5795 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5796 | echo "${ECHO_T}$ac_res" >&6; } | ||
4882 | 5797 | ||
4883 | fi | 5798 | fi |
4884 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 5799 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
@@ -4890,18 +5805,22 @@ fi | |||
4890 | 5805 | ||
4891 | done | 5806 | done |
4892 | 5807 | ||
4893 | ac_ext=cc | 5808 | ac_ext=cpp |
4894 | ac_cpp='$CXXCPP $CPPFLAGS' | 5809 | ac_cpp='$CXXCPP $CPPFLAGS' |
4895 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 5810 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4896 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 5811 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4897 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 5812 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4898 | if test -n "$ac_tool_prefix"; then | 5813 | if 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. |
4902 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 5821 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
4903 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 5822 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4904 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 5823 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
4905 | if test "${ac_cv_prog_CXX+set}" = set; then | 5824 | if test "${ac_cv_prog_CXX+set}" = set; then |
4906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 5825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4907 | else | 5826 | else |
@@ -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 |
4922 | done | 5841 | done |
4923 | done | 5842 | done |
5843 | IFS=$as_save_IFS | ||
4924 | 5844 | ||
4925 | fi | 5845 | fi |
4926 | fi | 5846 | fi |
4927 | CXX=$ac_cv_prog_CXX | 5847 | CXX=$ac_cv_prog_CXX |
4928 | if test -n "$CXX"; then | 5848 | if test -n "$CXX"; then |
4929 | echo "$as_me:$LINENO: result: $CXX" >&5 | 5849 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
4930 | echo "${ECHO_T}$CXX" >&6 | 5850 | echo "${ECHO_T}$CXX" >&6; } |
4931 | else | 5851 | else |
4932 | echo "$as_me:$LINENO: result: no" >&5 | 5852 | { echo "$as_me:$LINENO: result: no" >&5 |
4933 | echo "${ECHO_T}no" >&6 | 5853 | echo "${ECHO_T}no" >&6; } |
4934 | fi | 5854 | fi |
4935 | 5855 | ||
5856 | |||
4936 | test -n "$CXX" && break | 5857 | test -n "$CXX" && break |
4937 | done | 5858 | done |
4938 | fi | 5859 | fi |
4939 | if test -z "$CXX"; then | 5860 | if 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 |
4942 | do | 5863 | do |
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. |
4944 | set dummy $ac_prog; ac_word=$2 | 5865 | set dummy $ac_prog; ac_word=$2 |
4945 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 5866 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4946 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 5867 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
4947 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | 5868 | if 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 |
4949 | else | 5870 | else |
@@ -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 |
4964 | done | 5885 | done |
4965 | done | 5886 | done |
5887 | IFS=$as_save_IFS | ||
4966 | 5888 | ||
4967 | fi | 5889 | fi |
4968 | fi | 5890 | fi |
4969 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 5891 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4970 | if test -n "$ac_ct_CXX"; then | 5892 | if 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 |
4972 | echo "${ECHO_T}$ac_ct_CXX" >&6 | 5894 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
4973 | else | 5895 | else |
4974 | echo "$as_me:$LINENO: result: no" >&5 | 5896 | { echo "$as_me:$LINENO: result: no" >&5 |
4975 | echo "${ECHO_T}no" >&6 | 5897 | echo "${ECHO_T}no" >&6; } |
4976 | fi | 5898 | fi |
4977 | 5899 | ||
5900 | |||
4978 | test -n "$ac_ct_CXX" && break | 5901 | test -n "$ac_ct_CXX" && break |
4979 | done | 5902 | done |
4980 | test -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 | ||
5908 | yes:) | ||
5909 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
5910 | whose name does not start with the host triplet. If you think this | ||
5911 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
5912 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
5913 | whose name does not start with the host triplet. If you think this | ||
5914 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
5915 | ac_tool_warned=yes ;; | ||
5916 | esac | ||
5917 | CXX=$ac_ct_CXX | ||
5918 | fi | ||
4983 | fi | 5919 | fi |
4984 | 5920 | ||
4985 | 5921 | fi | |
5922 | fi | ||
4986 | # Provide some information about the compiler. | 5923 | # Provide some information about the compiler. |
4987 | echo "$as_me:$LINENO:" \ | 5924 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
4988 | "checking for C++ compiler version" >&5 | ||
4989 | ac_compiler=`set X $ac_compile; echo $2` | 5925 | ac_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 | 5927 | case "(($ac_try" in |
5928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5929 | *) ac_try_echo=$ac_try;; | ||
5930 | esac | ||
5931 | eval "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 | 5937 | case "(($ac_try" in |
5938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5939 | *) ac_try_echo=$ac_try;; | ||
5940 | esac | ||
5941 | eval "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 | 5947 | case "(($ac_try" in |
5948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5949 | *) ac_try_echo=$ac_try;; | ||
5950 | esac | ||
5951 | eval "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 | ||
5006 | echo "$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 |
5007 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | 5958 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
5008 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | 5959 | if 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 |
5010 | else | 5961 | else |
@@ -5027,23 +5978,36 @@ main () | |||
5027 | } | 5978 | } |
5028 | _ACEOF | 5979 | _ACEOF |
5029 | rm -f conftest.$ac_objext | 5980 | rm -f conftest.$ac_objext |
5030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 5981 | if { (ac_try="$ac_compile" |
5031 | (eval $ac_compile) 2>conftest.er1 | 5982 | case "(($ac_try" in |
5983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5984 | *) ac_try_echo=$ac_try;; | ||
5985 | esac | ||
5986 | eval "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;; | ||
5998 | esac | ||
5999 | eval "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;; | ||
6008 | esac | ||
6009 | eval "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 |
5053 | sed 's/^/| /' conftest.$ac_ext >&5 | 6017 | sed 's/^/| /' conftest.$ac_ext >&5 |
5054 | 6018 | ||
5055 | ac_compiler_gnu=no | 6019 | ac_compiler_gnu=no |
5056 | fi | 6020 | fi |
5057 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 6021 | |
6022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5058 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | 6023 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5059 | 6024 | ||
5060 | fi | 6025 | fi |
5061 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | 6026 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
5062 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | 6027 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
5063 | GXX=`test $ac_compiler_gnu = yes && echo yes` | 6028 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
5064 | ac_test_CXXFLAGS=${CXXFLAGS+set} | 6029 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5065 | ac_save_CXXFLAGS=$CXXFLAGS | 6030 | ac_save_CXXFLAGS=$CXXFLAGS |
5066 | CXXFLAGS="-g" | 6031 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
5067 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | 6032 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
5068 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | ||
5069 | if test "${ac_cv_prog_cxx_g+set}" = set; then | 6033 | if 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 |
5071 | else | 6035 | else |
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 |
5075 | cat confdefs.h >>conftest.$ac_ext | 6043 | cat confdefs.h >>conftest.$ac_ext |
@@ -5085,23 +6053,36 @@ main () | |||
5085 | } | 6053 | } |
5086 | _ACEOF | 6054 | _ACEOF |
5087 | rm -f conftest.$ac_objext | 6055 | rm -f conftest.$ac_objext |
5088 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 6056 | if { (ac_try="$ac_compile" |
5089 | (eval $ac_compile) 2>conftest.er1 | 6057 | case "(($ac_try" in |
6058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6059 | *) ac_try_echo=$ac_try;; | ||
6060 | esac | ||
6061 | eval "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;; | ||
6073 | esac | ||
6074 | eval "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;; | ||
6083 | esac | ||
6084 | eval "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 |
5111 | sed 's/^/| /' conftest.$ac_ext >&5 | 6092 | sed 's/^/| /' conftest.$ac_ext >&5 |
5112 | 6093 | ||
5113 | ac_cv_prog_cxx_g=no | 6094 | CXXFLAGS="" |
5114 | fi | 6095 | cat >conftest.$ac_ext <<_ACEOF |
5115 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5116 | fi | ||
5117 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | ||
5118 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | ||
5119 | if test "$ac_test_CXXFLAGS" = set; then | ||
5120 | CXXFLAGS=$ac_save_CXXFLAGS | ||
5121 | elif 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 | ||
5127 | else | ||
5128 | if test "$GXX" = yes; then | ||
5129 | CXXFLAGS="-O2" | ||
5130 | else | ||
5131 | CXXFLAGS= | ||
5132 | fi | ||
5133 | fi | ||
5134 | for 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);' | ||
5141 | do | ||
5142 | cat >conftest.$ac_ext <<_ACEOF | ||
5143 | /* confdefs.h. */ | 6096 | /* confdefs.h. */ |
5144 | _ACEOF | 6097 | _ACEOF |
5145 | cat confdefs.h >>conftest.$ac_ext | 6098 | cat confdefs.h >>conftest.$ac_ext |
5146 | cat >>conftest.$ac_ext <<_ACEOF | 6099 | cat >>conftest.$ac_ext <<_ACEOF |
5147 | /* end confdefs.h. */ | 6100 | /* end confdefs.h. */ |
5148 | $ac_declaration | 6101 | |
5149 | #include <stdlib.h> | ||
5150 | int | 6102 | int |
5151 | main () | 6103 | main () |
5152 | { | 6104 | { |
5153 | exit (42); | 6105 | |
5154 | ; | 6106 | ; |
5155 | return 0; | 6107 | return 0; |
5156 | } | 6108 | } |
5157 | _ACEOF | 6109 | _ACEOF |
5158 | rm -f conftest.$ac_objext | 6110 | rm -f conftest.$ac_objext |
5159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 6111 | if { (ac_try="$ac_compile" |
5160 | (eval $ac_compile) 2>conftest.er1 | 6112 | case "(($ac_try" in |
6113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6114 | *) ac_try_echo=$ac_try;; | ||
6115 | esac | ||
6116 | eval "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;; | ||
6128 | esac | ||
6129 | eval "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;; | ||
6138 | esac | ||
6139 | eval "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 |
5182 | sed 's/^/| /' conftest.$ac_ext >&5 | 6147 | sed 's/^/| /' conftest.$ac_ext >&5 |
5183 | 6148 | ||
5184 | continue | 6149 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5185 | fi | 6150 | CXXFLAGS="-g" |
5186 | rm -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 |
5190 | cat confdefs.h >>conftest.$ac_ext | 6154 | cat confdefs.h >>conftest.$ac_ext |
5191 | cat >>conftest.$ac_ext <<_ACEOF | 6155 | cat >>conftest.$ac_ext <<_ACEOF |
5192 | /* end confdefs.h. */ | 6156 | /* end confdefs.h. */ |
5193 | $ac_declaration | 6157 | |
5194 | int | 6158 | int |
5195 | main () | 6159 | main () |
5196 | { | 6160 | { |
5197 | exit (42); | 6161 | |
5198 | ; | 6162 | ; |
5199 | return 0; | 6163 | return 0; |
5200 | } | 6164 | } |
5201 | _ACEOF | 6165 | _ACEOF |
5202 | rm -f conftest.$ac_objext | 6166 | rm -f conftest.$ac_objext |
5203 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 6167 | if { (ac_try="$ac_compile" |
5204 | (eval $ac_compile) 2>conftest.er1 | 6168 | case "(($ac_try" in |
6169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6170 | *) ac_try_echo=$ac_try;; | ||
6171 | esac | ||
6172 | eval "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;; | ||
6184 | esac | ||
6185 | eval "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;; | ||
6194 | esac | ||
6195 | eval "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 |
5224 | else | 6201 | else |
5225 | echo "$as_me: failed program was:" >&5 | 6202 | echo "$as_me: failed program was:" >&5 |
5226 | sed 's/^/| /' conftest.$ac_ext >&5 | 6203 | sed 's/^/| /' conftest.$ac_ext >&5 |
5227 | 6204 | ||
6205 | |||
5228 | fi | 6206 | fi |
5229 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 6207 | |
5230 | done | 6208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5231 | rm -f conftest* | 6209 | fi |
5232 | if test -n "$ac_declaration"; then | 6210 | |
5233 | echo '#ifdef __cplusplus' >>confdefs.h | 6211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5234 | echo $ac_declaration >>confdefs.h | ||
5235 | echo '#endif' >>confdefs.h | ||
5236 | fi | 6212 | fi |
5237 | 6213 | ||
5238 | ac_ext=cc | 6214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6215 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
6216 | fi | ||
6217 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | ||
6218 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } | ||
6219 | if test "$ac_test_CXXFLAGS" = set; then | ||
6220 | CXXFLAGS=$ac_save_CXXFLAGS | ||
6221 | elif 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 | ||
6227 | else | ||
6228 | if test "$GXX" = yes; then | ||
6229 | CXXFLAGS="-O2" | ||
6230 | else | ||
6231 | CXXFLAGS= | ||
6232 | fi | ||
6233 | fi | ||
6234 | ac_ext=cpp | ||
5239 | ac_cpp='$CXXCPP $CPPFLAGS' | 6235 | ac_cpp='$CXXCPP $CPPFLAGS' |
5240 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 6236 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5241 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 6237 | ac_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 | ||
5244 | depcc="$CXX" am_compiler_list= | 6240 | depcc="$CXX" am_compiler_list= |
5245 | 6241 | ||
5246 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | 6242 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
5247 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | 6243 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
5248 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | 6244 | if 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 |
5250 | else | 6246 | else |
@@ -5333,8 +6329,8 @@ else | |||
5333 | fi | 6329 | fi |
5334 | 6330 | ||
5335 | fi | 6331 | fi |
5336 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 | 6332 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5337 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 | 6333 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
5338 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | 6334 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
5339 | 6335 | ||
5340 | 6336 | ||
@@ -5350,13 +6346,18 @@ else | |||
5350 | fi | 6346 | fi |
5351 | 6347 | ||
5352 | 6348 | ||
5353 | ac_ext=cc | 6349 | |
6350 | |||
6351 | if 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 | ||
5354 | ac_cpp='$CXXCPP $CPPFLAGS' | 6355 | ac_cpp='$CXXCPP $CPPFLAGS' |
5355 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 6356 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5356 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 6357 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5357 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 6358 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5358 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | 6359 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5359 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | 6360 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
5360 | if test -z "$CXXCPP"; then | 6361 | if 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 |
5389 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 6390 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5390 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 6391 | case "(($ac_try" in |
6392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6393 | *) ac_try_echo=$ac_try;; | ||
6394 | esac | ||
6395 | eval "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. |
5413 | continue | 6419 | continue |
5414 | fi | 6420 | fi |
6421 | |||
5415 | rm -f conftest.err conftest.$ac_ext | 6422 | rm -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 |
5427 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 6434 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5428 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 6435 | case "(($ac_try" in |
6436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6437 | *) ac_try_echo=$ac_try;; | ||
6438 | esac | ||
6439 | eval "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 | |||
5452 | ac_preproc_ok=: | 6464 | ac_preproc_ok=: |
5453 | break | 6465 | break |
5454 | fi | 6466 | fi |
6467 | |||
5455 | rm -f conftest.err conftest.$ac_ext | 6468 | rm -f conftest.err conftest.$ac_ext |
5456 | 6469 | ||
5457 | done | 6470 | done |
@@ -5469,8 +6482,8 @@ fi | |||
5469 | else | 6482 | else |
5470 | ac_cv_prog_CXXCPP=$CXXCPP | 6483 | ac_cv_prog_CXXCPP=$CXXCPP |
5471 | fi | 6484 | fi |
5472 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | 6485 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
5473 | echo "${ECHO_T}$CXXCPP" >&6 | 6486 | echo "${ECHO_T}$CXXCPP" >&6; } |
5474 | ac_preproc_ok=false | 6487 | ac_preproc_ok=false |
5475 | for ac_cxx_preproc_warn_flag in '' yes | 6488 | for ac_cxx_preproc_warn_flag in '' yes |
5476 | do | 6489 | do |
@@ -5493,8 +6506,13 @@ cat >>conftest.$ac_ext <<_ACEOF | |||
5493 | #endif | 6506 | #endif |
5494 | Syntax error | 6507 | Syntax error |
5495 | _ACEOF | 6508 | _ACEOF |
5496 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 6509 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5497 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 6510 | case "(($ac_try" in |
6511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6512 | *) ac_try_echo=$ac_try;; | ||
6513 | esac | ||
6514 | eval "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. |
5520 | continue | 6538 | continue |
5521 | fi | 6539 | fi |
6540 | |||
5522 | rm -f conftest.err conftest.$ac_ext | 6541 | rm -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 |
5534 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 6553 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5535 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 6554 | case "(($ac_try" in |
6555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6556 | *) ac_try_echo=$ac_try;; | ||
6557 | esac | ||
6558 | eval "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 | |||
5559 | ac_preproc_ok=: | 6583 | ac_preproc_ok=: |
5560 | break | 6584 | break |
5561 | fi | 6585 | fi |
6586 | |||
5562 | rm -f conftest.err conftest.$ac_ext | 6587 | rm -f conftest.err conftest.$ac_ext |
5563 | 6588 | ||
5564 | done | 6589 | done |
@@ -5574,24 +6599,26 @@ See \`config.log' for more details." >&2;} | |||
5574 | { (exit 1); exit 1; }; } | 6599 | { (exit 1); exit 1; }; } |
5575 | fi | 6600 | fi |
5576 | 6601 | ||
5577 | ac_ext=cc | 6602 | ac_ext=cpp |
5578 | ac_cpp='$CXXCPP $CPPFLAGS' | 6603 | ac_cpp='$CXXCPP $CPPFLAGS' |
5579 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 6604 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5580 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 6605 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5581 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 6606 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5582 | 6607 | ||
6608 | fi | ||
6609 | |||
5583 | 6610 | ||
5584 | ac_ext=f | 6611 | ac_ext=f |
5585 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | 6612 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
5586 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 6613 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5587 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | 6614 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
5588 | if test -n "$ac_tool_prefix"; then | 6615 | if 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. |
5592 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 6619 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
5593 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 6620 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5594 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 6621 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
5595 | if test "${ac_cv_prog_F77+set}" = set; then | 6622 | if test "${ac_cv_prog_F77+set}" = set; then |
5596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 6623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5597 | else | 6624 | else |
@@ -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 |
5612 | done | 6639 | done |
5613 | done | 6640 | done |
6641 | IFS=$as_save_IFS | ||
5614 | 6642 | ||
5615 | fi | 6643 | fi |
5616 | fi | 6644 | fi |
5617 | F77=$ac_cv_prog_F77 | 6645 | F77=$ac_cv_prog_F77 |
5618 | if test -n "$F77"; then | 6646 | if test -n "$F77"; then |
5619 | echo "$as_me:$LINENO: result: $F77" >&5 | 6647 | { echo "$as_me:$LINENO: result: $F77" >&5 |
5620 | echo "${ECHO_T}$F77" >&6 | 6648 | echo "${ECHO_T}$F77" >&6; } |
5621 | else | 6649 | else |
5622 | echo "$as_me:$LINENO: result: no" >&5 | 6650 | { echo "$as_me:$LINENO: result: no" >&5 |
5623 | echo "${ECHO_T}no" >&6 | 6651 | echo "${ECHO_T}no" >&6; } |
5624 | fi | 6652 | fi |
5625 | 6653 | ||
6654 | |||
5626 | test -n "$F77" && break | 6655 | test -n "$F77" && break |
5627 | done | 6656 | done |
5628 | fi | 6657 | fi |
5629 | if test -z "$F77"; then | 6658 | if 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 |
5632 | do | 6661 | do |
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. |
5634 | set dummy $ac_prog; ac_word=$2 | 6663 | set dummy $ac_prog; ac_word=$2 |
5635 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 6664 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5636 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 6665 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
5637 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | 6666 | if 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 |
5639 | else | 6668 | else |
@@ -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 |
5654 | done | 6683 | done |
5655 | done | 6684 | done |
6685 | IFS=$as_save_IFS | ||
5656 | 6686 | ||
5657 | fi | 6687 | fi |
5658 | fi | 6688 | fi |
5659 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 | 6689 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
5660 | if test -n "$ac_ct_F77"; then | 6690 | if 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 |
5662 | echo "${ECHO_T}$ac_ct_F77" >&6 | 6692 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
5663 | else | 6693 | else |
5664 | echo "$as_me:$LINENO: result: no" >&5 | 6694 | { echo "$as_me:$LINENO: result: no" >&5 |
5665 | echo "${ECHO_T}no" >&6 | 6695 | echo "${ECHO_T}no" >&6; } |
5666 | fi | 6696 | fi |
5667 | 6697 | ||
6698 | |||
5668 | test -n "$ac_ct_F77" && break | 6699 | test -n "$ac_ct_F77" && break |
5669 | done | 6700 | done |
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 | ||
6706 | yes:) | ||
6707 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
6708 | whose name does not start with the host triplet. If you think this | ||
6709 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
6710 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
6711 | whose name does not start with the host triplet. If you think this | ||
6712 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
6713 | ac_tool_warned=yes ;; | ||
6714 | esac | ||
6715 | F77=$ac_ct_F77 | ||
6716 | fi | ||
5672 | fi | 6717 | fi |
5673 | 6718 | ||
5674 | 6719 | ||
5675 | # Provide some information about the compiler. | 6720 | # Provide some information about the compiler. |
5676 | echo "$as_me:5676:" \ | 6721 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
5677 | "checking for Fortran 77 compiler version" >&5 | ||
5678 | ac_compiler=`set X $ac_compile; echo $2` | 6722 | ac_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 | 6724 | case "(($ac_try" in |
6725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6726 | *) ac_try_echo=$ac_try;; | ||
6727 | esac | ||
6728 | eval "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 | 6734 | case "(($ac_try" in |
6735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6736 | *) ac_try_echo=$ac_try;; | ||
6737 | esac | ||
6738 | eval "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 | 6744 | case "(($ac_try" in |
6745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6746 | *) ac_try_echo=$ac_try;; | ||
6747 | esac | ||
6748 | eval "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.) |
5698 | ac_save_ext=$ac_ext | 6757 | ac_save_ext=$ac_ext |
5699 | ac_ext=F | 6758 | ac_ext=F |
5700 | echo "$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 |
5701 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 | 6760 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
5702 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then | 6761 | if 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 |
5704 | else | 6763 | else |
@@ -5711,23 +6770,36 @@ else | |||
5711 | end | 6770 | end |
5712 | _ACEOF | 6771 | _ACEOF |
5713 | rm -f conftest.$ac_objext | 6772 | rm -f conftest.$ac_objext |
5714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 6773 | if { (ac_try="$ac_compile" |
5715 | (eval $ac_compile) 2>conftest.er1 | 6774 | case "(($ac_try" in |
6775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6776 | *) ac_try_echo=$ac_try;; | ||
6777 | esac | ||
6778 | eval "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;; | ||
6790 | esac | ||
6791 | eval "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;; | ||
6800 | esac | ||
6801 | eval "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 |
5737 | sed 's/^/| /' conftest.$ac_ext >&5 | 6809 | sed 's/^/| /' conftest.$ac_ext >&5 |
5738 | 6810 | ||
5739 | ac_compiler_gnu=no | 6811 | ac_compiler_gnu=no |
5740 | fi | 6812 | fi |
5741 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 6813 | |
6814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5742 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu | 6815 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
5743 | 6816 | ||
5744 | fi | 6817 | fi |
5745 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 | 6818 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
5746 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 | 6819 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
5747 | ac_ext=$ac_save_ext | 6820 | ac_ext=$ac_save_ext |
5748 | ac_test_FFLAGS=${FFLAGS+set} | 6821 | ac_test_FFLAGS=${FFLAGS+set} |
5749 | ac_save_FFLAGS=$FFLAGS | 6822 | ac_save_FFLAGS=$FFLAGS |
5750 | FFLAGS= | 6823 | FFLAGS= |
5751 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | 6824 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
5752 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 | 6825 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
5753 | if test "${ac_cv_prog_f77_g+set}" = set; then | 6826 | if 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 |
5755 | else | 6828 | else |
@@ -5760,23 +6833,36 @@ cat >conftest.$ac_ext <<_ACEOF | |||
5760 | end | 6833 | end |
5761 | _ACEOF | 6834 | _ACEOF |
5762 | rm -f conftest.$ac_objext | 6835 | rm -f conftest.$ac_objext |
5763 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 6836 | if { (ac_try="$ac_compile" |
5764 | (eval $ac_compile) 2>conftest.er1 | 6837 | case "(($ac_try" in |
6838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6839 | *) ac_try_echo=$ac_try;; | ||
6840 | esac | ||
6841 | eval "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;; | ||
6853 | esac | ||
6854 | eval "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;; | ||
6863 | esac | ||
6864 | eval "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 |
5786 | sed 's/^/| /' conftest.$ac_ext >&5 | 6872 | sed 's/^/| /' conftest.$ac_ext >&5 |
5787 | 6873 | ||
5788 | ac_cv_prog_f77_g=no | 6874 | ac_cv_prog_f77_g=no |
5789 | fi | 6875 | fi |
5790 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 6876 | |
6877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5791 | 6878 | ||
5792 | fi | 6879 | fi |
5793 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 | 6880 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
5794 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 | 6881 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
5795 | if test "$ac_test_FFLAGS" = set; then | 6882 | if test "$ac_test_FFLAGS" = set; then |
5796 | FFLAGS=$ac_save_FFLAGS | 6883 | FFLAGS=$ac_save_FFLAGS |
5797 | elif test $ac_cv_prog_f77_g = yes; then | 6884 | elif 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 |
5823 | echo "$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 |
5824 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | 6911 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
5825 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | 6912 | if 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 |
5827 | else | 6914 | else |
@@ -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 | |||
5885 | fi | 7016 | fi |
5886 | 7017 | ||
5887 | if test -n $lt_cv_sys_max_cmd_len ; then | 7018 | if 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 |
5889 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | 7020 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
5890 | else | 7021 | else |
5891 | echo "$as_me:$LINENO: result: none" >&5 | 7022 | { echo "$as_me:$LINENO: result: none" >&5 |
5892 | echo "${ECHO_T}none" >&6 | 7023 | echo "${ECHO_T}none" >&6; } |
5893 | fi | 7024 | fi |
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. |
5899 | echo "$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 |
5900 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | 7031 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
5901 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | 7032 | if 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 |
5903 | else | 7034 | else |
@@ -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. |
5912 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | 7043 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
5913 | 7044 | ||
5914 | # Transform the above into a raw symbol and a C symbol. | ||
5915 | symxfrm='\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 |
5918 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | 7046 | lt_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 | ;; |
7066 | linux* | 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 | ;; | ||
5938 | irix* | nonstopux*) | 7073 | irix* | nonstopux*) |
5939 | symcode='[BCDEGRST]' | 7074 | symcode='[BCDEGRST]' |
5940 | ;; | 7075 | ;; |
5941 | osf*) | 7076 | osf*) |
5942 | symcode='[BCDEGQRST]' | 7077 | symcode='[BCDEGQRST]' |
5943 | ;; | 7078 | ;; |
5944 | solaris* | sysv5*) | 7079 | solaris*) |
5945 | symcode='[BDRT]' | 7080 | symcode='[BDRT]' |
5946 | ;; | 7081 | ;; |
7082 | sco3.2v5*) | ||
7083 | symcode='[DT]' | ||
7084 | ;; | ||
7085 | sysv4.2uw2*) | ||
7086 | symcode='[DT]' | ||
7087 | ;; | ||
7088 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | ||
7089 | symcode='[ABDT]' | ||
7090 | ;; | ||
5947 | sysv4) | 7091 | sysv4) |
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. |
5967 | for ac_symprfx in "" "_"; do | 7111 | for 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= |
6086 | fi | 7233 | fi |
6087 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | 7234 | if 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 |
6089 | echo "${ECHO_T}failed" >&6 | 7236 | echo "${ECHO_T}failed" >&6; } |
6090 | else | 7237 | else |
6091 | echo "$as_me:$LINENO: result: ok" >&5 | 7238 | { echo "$as_me:$LINENO: result: ok" >&5 |
6092 | echo "${ECHO_T}ok" >&6 | 7239 | echo "${ECHO_T}ok" >&6; } |
6093 | fi | 7240 | fi |
6094 | 7241 | ||
6095 | echo "$as_me:$LINENO: checking for objdir" >&5 | 7242 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
6096 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | 7243 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
6097 | if test "${lt_cv_objdir+set}" = set; then | 7244 | if test "${lt_cv_objdir+set}" = set; then |
6098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 7245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6099 | else | 7246 | else |
@@ -6107,8 +7254,8 @@ else | |||
6107 | fi | 7254 | fi |
6108 | rmdir .libs 2>/dev/null | 7255 | rmdir .libs 2>/dev/null |
6109 | fi | 7256 | fi |
6110 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | 7257 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
6111 | echo "${ECHO_T}$lt_cv_objdir" >&6 | 7258 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
6112 | objdir=$lt_cv_objdir | 7259 | objdir=$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. |
6132 | Xsed='sed -e s/^X//' | 7279 | Xsed='sed -e 1s/^X//' |
6133 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | 7280 | sed_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" | |||
6149 | default_ofile=libtool | 7296 | default_ofile=libtool |
6150 | can_build_shared=yes | 7297 | can_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'). |
6154 | libext=a | 7301 | libext=a |
6155 | ltmain="$ac_aux_dir/ltmain.sh" | 7302 | ltmain="$ac_aux_dir/ltmain.sh" |
@@ -6159,8 +7306,8 @@ with_gnu_ld="$lt_cv_prog_gnu_ld" | |||
6159 | if test -n "$ac_tool_prefix"; then | 7306 | if 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. |
6161 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | 7308 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
6162 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 7309 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6163 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 7310 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6164 | if test "${ac_cv_prog_AR+set}" = set; then | 7311 | if test "${ac_cv_prog_AR+set}" = set; then |
6165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 7312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6166 | else | 7313 | else |
@@ -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 |
6181 | done | 7328 | done |
6182 | done | 7329 | done |
7330 | IFS=$as_save_IFS | ||
6183 | 7331 | ||
6184 | fi | 7332 | fi |
6185 | fi | 7333 | fi |
6186 | AR=$ac_cv_prog_AR | 7334 | AR=$ac_cv_prog_AR |
6187 | if test -n "$AR"; then | 7335 | if test -n "$AR"; then |
6188 | echo "$as_me:$LINENO: result: $AR" >&5 | 7336 | { echo "$as_me:$LINENO: result: $AR" >&5 |
6189 | echo "${ECHO_T}$AR" >&6 | 7337 | echo "${ECHO_T}$AR" >&6; } |
6190 | else | 7338 | else |
6191 | echo "$as_me:$LINENO: result: no" >&5 | 7339 | { echo "$as_me:$LINENO: result: no" >&5 |
6192 | echo "${ECHO_T}no" >&6 | 7340 | echo "${ECHO_T}no" >&6; } |
6193 | fi | 7341 | fi |
6194 | 7342 | ||
7343 | |||
6195 | fi | 7344 | fi |
6196 | if test -z "$ac_cv_prog_AR"; then | 7345 | if 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. |
6199 | set dummy ar; ac_word=$2 | 7348 | set dummy ar; ac_word=$2 |
6200 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 7349 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6201 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 7350 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6202 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | 7351 | if 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 |
6204 | else | 7353 | else |
@@ -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 |
6219 | done | 7368 | done |
6220 | done | 7369 | done |
7370 | IFS=$as_save_IFS | ||
6221 | 7371 | ||
6222 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" | ||
6223 | fi | 7372 | fi |
6224 | fi | 7373 | fi |
6225 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 7374 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6226 | if test -n "$ac_ct_AR"; then | 7375 | if 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 |
6228 | echo "${ECHO_T}$ac_ct_AR" >&6 | 7377 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
6229 | else | 7378 | else |
6230 | echo "$as_me:$LINENO: result: no" >&5 | 7379 | { echo "$as_me:$LINENO: result: no" >&5 |
6231 | echo "${ECHO_T}no" >&6 | 7380 | echo "${ECHO_T}no" >&6; } |
6232 | fi | 7381 | fi |
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 | ||
7387 | yes:) | ||
7388 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
7389 | whose name does not start with the host triplet. If you think this | ||
7390 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
7391 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
7392 | whose name does not start with the host triplet. If you think this | ||
7393 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
7394 | ac_tool_warned=yes ;; | ||
7395 | esac | ||
7396 | AR=$ac_ct_AR | ||
7397 | fi | ||
6235 | else | 7398 | else |
6236 | AR="$ac_cv_prog_AR" | 7399 | AR="$ac_cv_prog_AR" |
6237 | fi | 7400 | fi |
@@ -6239,8 +7402,8 @@ fi | |||
6239 | if test -n "$ac_tool_prefix"; then | 7402 | if 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. |
6241 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 7404 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
6242 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 7405 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6243 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 7406 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6244 | if test "${ac_cv_prog_RANLIB+set}" = set; then | 7407 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
6245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 7408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6246 | else | 7409 | else |
@@ -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 |
6261 | done | 7424 | done |
6262 | done | 7425 | done |
7426 | IFS=$as_save_IFS | ||
6263 | 7427 | ||
6264 | fi | 7428 | fi |
6265 | fi | 7429 | fi |
6266 | RANLIB=$ac_cv_prog_RANLIB | 7430 | RANLIB=$ac_cv_prog_RANLIB |
6267 | if test -n "$RANLIB"; then | 7431 | if test -n "$RANLIB"; then |
6268 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | 7432 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6269 | echo "${ECHO_T}$RANLIB" >&6 | 7433 | echo "${ECHO_T}$RANLIB" >&6; } |
6270 | else | 7434 | else |
6271 | echo "$as_me:$LINENO: result: no" >&5 | 7435 | { echo "$as_me:$LINENO: result: no" >&5 |
6272 | echo "${ECHO_T}no" >&6 | 7436 | echo "${ECHO_T}no" >&6; } |
6273 | fi | 7437 | fi |
6274 | 7438 | ||
7439 | |||
6275 | fi | 7440 | fi |
6276 | if test -z "$ac_cv_prog_RANLIB"; then | 7441 | if 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. |
6279 | set dummy ranlib; ac_word=$2 | 7444 | set dummy ranlib; ac_word=$2 |
6280 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 7445 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6281 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 7446 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6282 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | 7447 | if 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 |
6284 | else | 7449 | else |
@@ -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 |
6299 | done | 7464 | done |
6300 | done | 7465 | done |
7466 | IFS=$as_save_IFS | ||
6301 | 7467 | ||
6302 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | ||
6303 | fi | 7468 | fi |
6304 | fi | 7469 | fi |
6305 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 7470 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6306 | if test -n "$ac_ct_RANLIB"; then | 7471 | if 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 |
6308 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | 7473 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
6309 | else | 7474 | else |
6310 | echo "$as_me:$LINENO: result: no" >&5 | 7475 | { echo "$as_me:$LINENO: result: no" >&5 |
6311 | echo "${ECHO_T}no" >&6 | 7476 | echo "${ECHO_T}no" >&6; } |
6312 | fi | 7477 | fi |
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 | ||
7483 | yes:) | ||
7484 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
7485 | whose name does not start with the host triplet. If you think this | ||
7486 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
7487 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
7488 | whose name does not start with the host triplet. If you think this | ||
7489 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
7490 | ac_tool_warned=yes ;; | ||
7491 | esac | ||
7492 | RANLIB=$ac_ct_RANLIB | ||
7493 | fi | ||
6315 | else | 7494 | else |
6316 | RANLIB="$ac_cv_prog_RANLIB" | 7495 | RANLIB="$ac_cv_prog_RANLIB" |
6317 | fi | 7496 | fi |
@@ -6319,8 +7498,8 @@ fi | |||
6319 | if test -n "$ac_tool_prefix"; then | 7498 | if 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. |
6321 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | 7500 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
6322 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 7501 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6323 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 7502 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6324 | if test "${ac_cv_prog_STRIP+set}" = set; then | 7503 | if test "${ac_cv_prog_STRIP+set}" = set; then |
6325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 7504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6326 | else | 7505 | else |
@@ -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 |
6341 | done | 7520 | done |
6342 | done | 7521 | done |
7522 | IFS=$as_save_IFS | ||
6343 | 7523 | ||
6344 | fi | 7524 | fi |
6345 | fi | 7525 | fi |
6346 | STRIP=$ac_cv_prog_STRIP | 7526 | STRIP=$ac_cv_prog_STRIP |
6347 | if test -n "$STRIP"; then | 7527 | if test -n "$STRIP"; then |
6348 | echo "$as_me:$LINENO: result: $STRIP" >&5 | 7528 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
6349 | echo "${ECHO_T}$STRIP" >&6 | 7529 | echo "${ECHO_T}$STRIP" >&6; } |
6350 | else | 7530 | else |
6351 | echo "$as_me:$LINENO: result: no" >&5 | 7531 | { echo "$as_me:$LINENO: result: no" >&5 |
6352 | echo "${ECHO_T}no" >&6 | 7532 | echo "${ECHO_T}no" >&6; } |
6353 | fi | 7533 | fi |
6354 | 7534 | ||
7535 | |||
6355 | fi | 7536 | fi |
6356 | if test -z "$ac_cv_prog_STRIP"; then | 7537 | if 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. |
6359 | set dummy strip; ac_word=$2 | 7540 | set dummy strip; ac_word=$2 |
6360 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 7541 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6361 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 7542 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6362 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | 7543 | if 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 |
6364 | else | 7545 | else |
@@ -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 |
6379 | done | 7560 | done |
6380 | done | 7561 | done |
7562 | IFS=$as_save_IFS | ||
6381 | 7563 | ||
6382 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | ||
6383 | fi | 7564 | fi |
6384 | fi | 7565 | fi |
6385 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | 7566 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6386 | if test -n "$ac_ct_STRIP"; then | 7567 | if 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 |
6388 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | 7569 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
6389 | else | 7570 | else |
6390 | echo "$as_me:$LINENO: result: no" >&5 | 7571 | { echo "$as_me:$LINENO: result: no" >&5 |
6391 | echo "${ECHO_T}no" >&6 | 7572 | echo "${ECHO_T}no" >&6; } |
6392 | fi | 7573 | fi |
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 | ||
7579 | yes:) | ||
7580 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
7581 | whose name does not start with the host triplet. If you think this | ||
7582 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
7583 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
7584 | whose name does not start with the host triplet. If you think this | ||
7585 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
7586 | ac_tool_warned=yes ;; | ||
7587 | esac | ||
7588 | STRIP=$ac_ct_STRIP | ||
7589 | fi | ||
6395 | else | 7590 | else |
6396 | STRIP="$ac_cv_prog_STRIP" | 7591 | STRIP="$ac_cv_prog_STRIP" |
6397 | fi | 7592 | fi |
@@ -6406,6 +7601,7 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru | |||
6406 | test -z "$AS" && AS=as | 7601 | test -z "$AS" && AS=as |
6407 | test -z "$CC" && CC=cc | 7602 | test -z "$CC" && CC=cc |
6408 | test -z "$LTCC" && LTCC=$CC | 7603 | test -z "$LTCC" && LTCC=$CC |
7604 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | ||
6409 | test -z "$DLLTOOL" && DLLTOOL=dlltool | 7605 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
6410 | test -z "$LD" && LD=ld | 7606 | test -z "$LD" && LD=ld |
6411 | test -z "$LN_S" && LN_S="ln -s" | 7607 | test -z "$LN_S" && LN_S="ln -s" |
@@ -6425,21 +7621,32 @@ old_postuninstall_cmds= | |||
6425 | if test -n "$RANLIB"; then | 7621 | if 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" |
6435 | fi | 7631 | fi |
6436 | 7632 | ||
7633 | for 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 | ||
7640 | done | ||
7641 | cc_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 |
6438 | case $deplibs_check_method in | 7645 | case $deplibs_check_method in |
6439 | file_magic*) | 7646 | file_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 |
6442 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | 7649 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
6443 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | 7650 | if 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 |
6445 | else | 7652 | else |
@@ -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 | ||
6492 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 7699 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6493 | if test -n "$MAGIC_CMD"; then | 7700 | if test -n "$MAGIC_CMD"; then |
6494 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | 7701 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6495 | echo "${ECHO_T}$MAGIC_CMD" >&6 | 7702 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
6496 | else | 7703 | else |
6497 | echo "$as_me:$LINENO: result: no" >&5 | 7704 | { echo "$as_me:$LINENO: result: no" >&5 |
6498 | echo "${ECHO_T}no" >&6 | 7705 | echo "${ECHO_T}no" >&6; } |
6499 | fi | 7706 | fi |
6500 | 7707 | ||
6501 | if test -z "$lt_cv_path_MAGIC_CMD"; then | 7708 | if 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 |
6504 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | 7711 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
6505 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | 7712 | if 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 |
6507 | else | 7714 | else |
@@ -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 | ||
6554 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 7761 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6555 | if test -n "$MAGIC_CMD"; then | 7762 | if test -n "$MAGIC_CMD"; then |
6556 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | 7763 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6557 | echo "${ECHO_T}$MAGIC_CMD" >&6 | 7764 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
6558 | else | 7765 | else |
6559 | echo "$as_me:$LINENO: result: no" >&5 | 7766 | { echo "$as_me:$LINENO: result: no" >&5 |
6560 | echo "${ECHO_T}no" >&6 | 7767 | echo "${ECHO_T}no" >&6; } |
6561 | fi | 7768 | fi |
6562 | 7769 | ||
6563 | else | 7770 | else |
@@ -6572,21 +7779,21 @@ esac | |||
6572 | enable_dlopen=no | 7779 | enable_dlopen=no |
6573 | enable_win32_dll=yes | 7780 | enable_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. |
6576 | if test "${enable_libtool_lock+set}" = set; then | 7783 | if test "${enable_libtool_lock+set}" = set; then |
6577 | enableval="$enable_libtool_lock" | 7784 | enableval=$enable_libtool_lock; |
7785 | fi | ||
6578 | 7786 | ||
6579 | fi; | ||
6580 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 7787 | test "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. |
6584 | if test "${with_pic+set}" = set; then | 7791 | if test "${with_pic+set}" = set; then |
6585 | withval="$with_pic" | 7792 | withval=$with_pic; pic_mode="$withval" |
6586 | pic_mode="$withval" | ||
6587 | else | 7793 | else |
6588 | pic_mode=default | 7794 | pic_mode=default |
6589 | fi; | 7795 | fi |
7796 | |||
6590 | test -z "$pic_mode" && pic_mode=default | 7797 | test -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. |
6617 | LTCC=${LTCC-"$CC"} | 7824 | LTCC=${LTCC-"$CC"} |
6618 | 7825 | ||
7826 | # If no C compiler flags were specified, use CFLAGS. | ||
7827 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
7828 | |||
6619 | # Allow CC to be a program name with arguments. | 7829 | # Allow CC to be a program name with arguments. |
6620 | compiler=$CC | 7830 | compiler=$CC |
6621 | 7831 | ||
6622 | 7832 | ||
6623 | # | 7833 | # save warnings/boilerplate of simple test code |
6624 | # Check for any special shared library compilation flags. | 7834 | ac_outfile=conftest.$ac_objext |
6625 | # | 7835 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
6626 | lt_prog_cc_shlib= | 7836 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
6627 | if 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 | ||
6633 | fi | ||
6634 | if test -n "$lt_prog_cc_shlib"; then | ||
6635 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 | ||
6636 | echo "$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 | ||
6640 | echo "$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 | ||
6643 | fi | ||
6644 | |||
6645 | |||
6646 | # | ||
6647 | # Check to make sure the static flag actually works. | ||
6648 | # | ||
6649 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 | ||
6650 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 | ||
6651 | if test "${lt_prog_compiler_static_works+set}" = set; then | ||
6652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6653 | else | ||
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 | |||
6671 | fi | ||
6672 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | ||
6673 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | ||
6674 | |||
6675 | if test x"$lt_prog_compiler_static_works" = xyes; then | ||
6676 | : | ||
6677 | else | ||
6678 | lt_prog_compiler_static= | ||
6679 | fi | ||
6680 | 7839 | ||
7840 | ac_outfile=conftest.$ac_objext | ||
7841 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | ||
7842 | eval "$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 | ||
6690 | echo "$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 |
6691 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | 7855 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
6692 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | 7856 | if 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 |
6694 | else | 7858 | else |
@@ -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 | ||
6722 | fi | 7888 | fi |
6723 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | 7889 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
6724 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | 7890 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
6725 | 7891 | ||
6726 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | 7892 | if 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= | |||
6735 | lt_prog_compiler_pic= | 7901 | lt_prog_compiler_pic= |
6736 | lt_prog_compiler_static= | 7902 | lt_prog_compiler_static= |
6737 | 7903 | ||
6738 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 7904 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
6739 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 7905 | echo $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 | ||
6915 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | 8114 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
6916 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | 8115 | echo "${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 | # |
6921 | if test -n "$lt_prog_compiler_pic"; then | 8120 | if test -n "$lt_prog_compiler_pic"; then |
6922 | 8121 | ||
6923 | echo "$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 |
6924 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | 8123 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
6925 | if test "${lt_prog_compiler_pic_works+set}" = set; then | 8124 | if 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 |
6927 | else | 8126 | else |
@@ -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 | ||
6955 | fi | 8156 | fi |
6956 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | 8157 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
6957 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | 8158 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
6958 | 8159 | ||
6959 | if test x"$lt_prog_compiler_pic_works" = xyes; then | 8160 | if 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 | |||
6967 | fi | 8168 | fi |
6968 | 8169 | ||
6969 | fi | 8170 | fi |
6970 | case "$host_os" in | 8171 | case $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 | ;; |
6978 | esac | 8179 | esac |
6979 | 8180 | ||
6980 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 8181 | # |
6981 | echo $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 | # | ||
8184 | wl=$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 | ||
8186 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | ||
8187 | if test "${lt_prog_compiler_static_works+set}" = set; then | ||
8188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8189 | else | ||
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 | |||
8212 | fi | ||
8213 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | ||
8214 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } | ||
8215 | |||
8216 | if test x"$lt_prog_compiler_static_works" = xyes; then | ||
8217 | : | ||
8218 | else | ||
8219 | lt_prog_compiler_static= | ||
8220 | fi | ||
8221 | |||
8222 | |||
8223 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
8224 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | ||
6982 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | 8225 | if 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 |
6984 | else | 8227 | else |
@@ -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 | ||
7024 | fi | 8269 | fi |
7025 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | 8270 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
7026 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | 8271 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
7027 | 8272 | ||
7028 | 8273 | ||
7029 | hard_links="nottested" | 8274 | hard_links="nottested" |
7030 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | 8275 | if 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 |
7033 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 8278 | echo $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 |
7041 | echo "${ECHO_T}$hard_links" >&6 | 8286 | echo "${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 |
7044 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 8289 | echo "$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 |
7049 | fi | 8294 | fi |
7050 | 8295 | ||
7051 | echo "$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 |
7052 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 8297 | echo $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 | ||
8343 | done | ||
8344 | cc_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~ | ||
7230 | cat $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 |
7384 | rm -f conftest.$ac_objext conftest$ac_exeext | 8712 | rm -f conftest.$ac_objext conftest$ac_exeext |
7385 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 8713 | if { (ac_try="$ac_link" |
7386 | (eval $ac_link) 2>conftest.er1 | 8714 | case "(($ac_try" in |
8715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8716 | *) ac_try_echo=$ac_try;; | ||
8717 | esac | ||
8718 | eval "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;; | ||
8730 | esac | ||
8731 | eval "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;; | ||
8740 | esac | ||
8741 | eval "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 |
7413 | sed 's/^/| /' conftest.$ac_ext >&5 | 8754 | sed 's/^/| /' conftest.$ac_ext >&5 |
7414 | 8755 | ||
8756 | |||
7415 | fi | 8757 | fi |
7416 | rm -f conftest.err conftest.$ac_objext \ | 8758 | |
8759 | rm -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 |
7418 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 8761 | if 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 |
7444 | rm -f conftest.$ac_objext conftest$ac_exeext | 8787 | rm -f conftest.$ac_objext conftest$ac_exeext |
7445 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 8788 | if { (ac_try="$ac_link" |
7446 | (eval $ac_link) 2>conftest.er1 | 8789 | case "(($ac_try" in |
8790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8791 | *) ac_try_echo=$ac_try;; | ||
8792 | esac | ||
8793 | eval "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;; | ||
8805 | esac | ||
8806 | eval "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;; | ||
8815 | esac | ||
8816 | eval "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 |
7473 | sed 's/^/| /' conftest.$ac_ext >&5 | 8829 | sed 's/^/| /' conftest.$ac_ext >&5 |
7474 | 8830 | ||
8831 | |||
7475 | fi | 8832 | fi |
7476 | rm -f conftest.err conftest.$ac_objext \ | 8833 | |
8834 | rm -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 |
7478 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 8836 | if 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 | ||
7898 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | 9283 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
7899 | echo "${ECHO_T}$ld_shlibs" >&6 | 9284 | echo "${ECHO_T}$ld_shlibs" >&6; } |
7900 | test "$ld_shlibs" = no && can_build_shared=no | 9285 | test "$ld_shlibs" = no && can_build_shared=no |
7901 | 9286 | ||
7902 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
7903 | if test "$GCC" = yes; then | ||
7904 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
7905 | fi | ||
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 |
7925 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 9305 | echo $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 |
7962 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 | 9343 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
7963 | ;; | 9344 | ;; |
7964 | esac | 9345 | esac |
7965 | fi | 9346 | fi |
7966 | ;; | 9347 | ;; |
7967 | esac | 9348 | esac |
7968 | 9349 | ||
7969 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 9350 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
7970 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 9351 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
7971 | library_names_spec= | 9352 | library_names_spec= |
7972 | libname_spec='lib$name' | 9353 | libname_spec='lib$name' |
7973 | soname_spec= | 9354 | soname_spec= |
@@ -8068,7 +9449,7 @@ beos*) | |||
8068 | shlibpath_var=LIBRARY_PATH | 9449 | shlibpath_var=LIBRARY_PATH |
8069 | ;; | 9450 | ;; |
8070 | 9451 | ||
8071 | bsdi4*) | 9452 | bsdi[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 | ||
8175 | kfreebsd*-gnu) | 9557 | freebsd* | 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 | |||
8187 | freebsd*) | ||
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 | ||
9657 | interix3*) | ||
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 | |||
8273 | irix5* | irix6* | nonstopux*) | 9669 | irix5* | 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. |
8316 | linux*) | 9712 | linux* | 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 | ||
8357 | knetbsd*-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 | |||
8369 | netbsd*) | 9753 | netbsd*) |
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 | ||
8404 | openbsd*) | 9788 | openbsd*) |
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 | ||
8445 | sco3.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 | |||
8452 | solaris*) | 9834 | solaris*) |
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 | ||
8477 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 9859 | sysv4 | 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 | ||
9892 | sysv5* | 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 | |||
8510 | uts4*) | 9915 | uts4*) |
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 | ;; |
8520 | esac | 9925 | esac |
8521 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 9926 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
8522 | echo "${ECHO_T}$dynamic_linker" >&6 | 9927 | echo "${ECHO_T}$dynamic_linker" >&6; } |
8523 | test "$dynamic_linker" = no && can_build_shared=no | 9928 | test "$dynamic_linker" = no && can_build_shared=no |
8524 | 9929 | ||
8525 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 9930 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
8526 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 9931 | if test "$GCC" = yes; then |
9932 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
9933 | fi | ||
9934 | |||
9935 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | ||
9936 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | ||
8527 | hardcode_action= | 9937 | hardcode_action= |
8528 | if test -n "$hardcode_libdir_flag_spec" || \ | 9938 | if 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 |
8549 | fi | 9959 | fi |
8550 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | 9960 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
8551 | echo "${ECHO_T}$hardcode_action" >&6 | 9961 | echo "${ECHO_T}$hardcode_action" >&6; } |
8552 | 9962 | ||
8553 | if test "$hardcode_action" = relink; then | 9963 | if test "$hardcode_action" = relink; then |
8554 | # Fast installation is not supported | 9964 | # Fast installation is not supported |
@@ -8561,29 +9971,29 @@ fi | |||
8561 | 9971 | ||
8562 | striplib= | 9972 | striplib= |
8563 | old_striplib= | 9973 | old_striplib= |
8564 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 9974 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
8565 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 9975 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
8566 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 9976 | if 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 |
8570 | echo "${ECHO_T}yes" >&6 | 9980 | echo "${ECHO_T}yes" >&6; } |
8571 | else | 9981 | else |
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 |
8578 | echo "${ECHO_T}yes" >&6 | 9988 | echo "${ECHO_T}yes" >&6; } |
8579 | else | 9989 | else |
8580 | echo "$as_me:$LINENO: result: no" >&5 | 9990 | { echo "$as_me:$LINENO: result: no" >&5 |
8581 | echo "${ECHO_T}no" >&6 | 9991 | echo "${ECHO_T}no" >&6; } |
8582 | fi | 9992 | fi |
8583 | ;; | 9993 | ;; |
8584 | *) | 9994 | *) |
8585 | echo "$as_me:$LINENO: result: no" >&5 | 9995 | { echo "$as_me:$LINENO: result: no" >&5 |
8586 | echo "${ECHO_T}no" >&6 | 9996 | echo "${ECHO_T}no" >&6; } |
8587 | ;; | 9997 | ;; |
8588 | esac | 9998 | esac |
8589 | fi | 9999 | fi |
@@ -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 |
8619 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 10029 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
8620 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 10030 | if 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 |
8622 | else | 10032 | else |
@@ -8629,39 +10039,52 @@ cat confdefs.h >>conftest.$ac_ext | |||
8629 | cat >>conftest.$ac_ext <<_ACEOF | 10039 | cat >>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 |
8634 | extern "C" | 10046 | extern "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. */ | ||
8638 | char dlopen (); | 10048 | char dlopen (); |
8639 | int | 10049 | int |
8640 | main () | 10050 | main () |
8641 | { | 10051 | { |
8642 | dlopen (); | 10052 | return dlopen (); |
8643 | ; | 10053 | ; |
8644 | return 0; | 10054 | return 0; |
8645 | } | 10055 | } |
8646 | _ACEOF | 10056 | _ACEOF |
8647 | rm -f conftest.$ac_objext conftest$ac_exeext | 10057 | rm -f conftest.$ac_objext conftest$ac_exeext |
8648 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 10058 | if { (ac_try="$ac_link" |
8649 | (eval $ac_link) 2>conftest.er1 | 10059 | case "(($ac_try" in |
10060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10061 | *) ac_try_echo=$ac_try;; | ||
10062 | esac | ||
10063 | eval "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;; | ||
10075 | esac | ||
10076 | eval "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;; | ||
10085 | esac | ||
10086 | eval "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 |
8671 | sed 's/^/| /' conftest.$ac_ext >&5 | 10094 | sed 's/^/| /' conftest.$ac_ext >&5 |
8672 | 10095 | ||
8673 | ac_cv_lib_dl_dlopen=no | 10096 | ac_cv_lib_dl_dlopen=no |
8674 | fi | 10097 | fi |
8675 | rm -f conftest.err conftest.$ac_objext \ | 10098 | |
10099 | rm -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 |
8677 | LIBS=$ac_check_lib_save_LIBS | 10101 | LIBS=$ac_check_lib_save_LIBS |
8678 | fi | 10102 | fi |
8679 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 10103 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
8680 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 10104 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
8681 | if test $ac_cv_lib_dl_dlopen = yes; then | 10105 | if 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" |
8683 | else | 10107 | else |
@@ -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 |
8695 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 10119 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
8696 | if test "${ac_cv_func_shl_load+set}" = set; then | 10120 | if 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 |
8698 | else | 10122 | else |
@@ -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 |
8724 | extern "C" | 10150 | extern "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. */ | ||
8729 | char shl_load (); | 10152 | char 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 |
8734 | choke me | 10157 | choke me |
8735 | #else | ||
8736 | char (*f) () = shl_load; | ||
8737 | #endif | ||
8738 | #ifdef __cplusplus | ||
8739 | } | ||
8740 | #endif | 10158 | #endif |
8741 | 10159 | ||
8742 | int | 10160 | int |
8743 | main () | 10161 | main () |
8744 | { | 10162 | { |
8745 | return f != shl_load; | 10163 | return shl_load (); |
8746 | ; | 10164 | ; |
8747 | return 0; | 10165 | return 0; |
8748 | } | 10166 | } |
8749 | _ACEOF | 10167 | _ACEOF |
8750 | rm -f conftest.$ac_objext conftest$ac_exeext | 10168 | rm -f conftest.$ac_objext conftest$ac_exeext |
8751 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 10169 | if { (ac_try="$ac_link" |
8752 | (eval $ac_link) 2>conftest.er1 | 10170 | case "(($ac_try" in |
10171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10172 | *) ac_try_echo=$ac_try;; | ||
10173 | esac | ||
10174 | eval "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;; | ||
10186 | esac | ||
10187 | eval "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;; | ||
10196 | esac | ||
10197 | eval "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 |
8774 | sed 's/^/| /' conftest.$ac_ext >&5 | 10205 | sed 's/^/| /' conftest.$ac_ext >&5 |
8775 | 10206 | ||
8776 | ac_cv_func_shl_load=no | 10207 | ac_cv_func_shl_load=no |
8777 | fi | 10208 | fi |
8778 | rm -f conftest.err conftest.$ac_objext \ | 10209 | |
10210 | rm -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 |
8780 | fi | 10212 | fi |
8781 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 10213 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
8782 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 10214 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
8783 | if test $ac_cv_func_shl_load = yes; then | 10215 | if test $ac_cv_func_shl_load = yes; then |
8784 | lt_cv_dlopen="shl_load" | 10216 | lt_cv_dlopen="shl_load" |
8785 | else | 10217 | else |
8786 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 10218 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
8787 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 10219 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
8788 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 10220 | if 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 |
8790 | else | 10222 | else |
@@ -8797,39 +10229,52 @@ cat confdefs.h >>conftest.$ac_ext | |||
8797 | cat >>conftest.$ac_ext <<_ACEOF | 10229 | cat >>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 |
8802 | extern "C" | 10236 | extern "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. */ | ||
8806 | char shl_load (); | 10238 | char shl_load (); |
8807 | int | 10239 | int |
8808 | main () | 10240 | main () |
8809 | { | 10241 | { |
8810 | shl_load (); | 10242 | return shl_load (); |
8811 | ; | 10243 | ; |
8812 | return 0; | 10244 | return 0; |
8813 | } | 10245 | } |
8814 | _ACEOF | 10246 | _ACEOF |
8815 | rm -f conftest.$ac_objext conftest$ac_exeext | 10247 | rm -f conftest.$ac_objext conftest$ac_exeext |
8816 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 10248 | if { (ac_try="$ac_link" |
8817 | (eval $ac_link) 2>conftest.er1 | 10249 | case "(($ac_try" in |
10250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10251 | *) ac_try_echo=$ac_try;; | ||
10252 | esac | ||
10253 | eval "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;; | ||
10265 | esac | ||
10266 | eval "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;; | ||
10275 | esac | ||
10276 | eval "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 |
8839 | sed 's/^/| /' conftest.$ac_ext >&5 | 10284 | sed 's/^/| /' conftest.$ac_ext >&5 |
8840 | 10285 | ||
8841 | ac_cv_lib_dld_shl_load=no | 10286 | ac_cv_lib_dld_shl_load=no |
8842 | fi | 10287 | fi |
8843 | rm -f conftest.err conftest.$ac_objext \ | 10288 | |
10289 | rm -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 |
8845 | LIBS=$ac_check_lib_save_LIBS | 10291 | LIBS=$ac_check_lib_save_LIBS |
8846 | fi | 10292 | fi |
8847 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 10293 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
8848 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 10294 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
8849 | if test $ac_cv_lib_dld_shl_load = yes; then | 10295 | if 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" |
8851 | else | 10297 | else |
8852 | echo "$as_me:$LINENO: checking for dlopen" >&5 | 10298 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
8853 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | 10299 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
8854 | if test "${ac_cv_func_dlopen+set}" = set; then | 10300 | if test "${ac_cv_func_dlopen+set}" = set; then |
8855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 10301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8856 | else | 10302 | else |
@@ -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 |
8882 | extern "C" | 10330 | extern "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. */ | ||
8887 | char dlopen (); | 10332 | char 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 |
8892 | choke me | 10337 | choke me |
8893 | #else | ||
8894 | char (*f) () = dlopen; | ||
8895 | #endif | ||
8896 | #ifdef __cplusplus | ||
8897 | } | ||
8898 | #endif | 10338 | #endif |
8899 | 10339 | ||
8900 | int | 10340 | int |
8901 | main () | 10341 | main () |
8902 | { | 10342 | { |
8903 | return f != dlopen; | 10343 | return dlopen (); |
8904 | ; | 10344 | ; |
8905 | return 0; | 10345 | return 0; |
8906 | } | 10346 | } |
8907 | _ACEOF | 10347 | _ACEOF |
8908 | rm -f conftest.$ac_objext conftest$ac_exeext | 10348 | rm -f conftest.$ac_objext conftest$ac_exeext |
8909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 10349 | if { (ac_try="$ac_link" |
8910 | (eval $ac_link) 2>conftest.er1 | 10350 | case "(($ac_try" in |
10351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10352 | *) ac_try_echo=$ac_try;; | ||
10353 | esac | ||
10354 | eval "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;; | ||
10366 | esac | ||
10367 | eval "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;; | ||
10376 | esac | ||
10377 | eval "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 |
8932 | sed 's/^/| /' conftest.$ac_ext >&5 | 10385 | sed 's/^/| /' conftest.$ac_ext >&5 |
8933 | 10386 | ||
8934 | ac_cv_func_dlopen=no | 10387 | ac_cv_func_dlopen=no |
8935 | fi | 10388 | fi |
8936 | rm -f conftest.err conftest.$ac_objext \ | 10389 | |
10390 | rm -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 |
8938 | fi | 10392 | fi |
8939 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | 10393 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
8940 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | 10394 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
8941 | if test $ac_cv_func_dlopen = yes; then | 10395 | if test $ac_cv_func_dlopen = yes; then |
8942 | lt_cv_dlopen="dlopen" | 10396 | lt_cv_dlopen="dlopen" |
8943 | else | 10397 | else |
8944 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 10398 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
8945 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 10399 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
8946 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 10400 | if 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 |
8948 | else | 10402 | else |
@@ -8955,39 +10409,52 @@ cat confdefs.h >>conftest.$ac_ext | |||
8955 | cat >>conftest.$ac_ext <<_ACEOF | 10409 | cat >>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 |
8960 | extern "C" | 10416 | extern "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. */ | ||
8964 | char dlopen (); | 10418 | char dlopen (); |
8965 | int | 10419 | int |
8966 | main () | 10420 | main () |
8967 | { | 10421 | { |
8968 | dlopen (); | 10422 | return dlopen (); |
8969 | ; | 10423 | ; |
8970 | return 0; | 10424 | return 0; |
8971 | } | 10425 | } |
8972 | _ACEOF | 10426 | _ACEOF |
8973 | rm -f conftest.$ac_objext conftest$ac_exeext | 10427 | rm -f conftest.$ac_objext conftest$ac_exeext |
8974 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 10428 | if { (ac_try="$ac_link" |
8975 | (eval $ac_link) 2>conftest.er1 | 10429 | case "(($ac_try" in |
10430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10431 | *) ac_try_echo=$ac_try;; | ||
10432 | esac | ||
10433 | eval "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;; | ||
10445 | esac | ||
10446 | eval "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;; | ||
10455 | esac | ||
10456 | eval "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 |
8997 | sed 's/^/| /' conftest.$ac_ext >&5 | 10464 | sed 's/^/| /' conftest.$ac_ext >&5 |
8998 | 10465 | ||
8999 | ac_cv_lib_dl_dlopen=no | 10466 | ac_cv_lib_dl_dlopen=no |
9000 | fi | 10467 | fi |
9001 | rm -f conftest.err conftest.$ac_objext \ | 10468 | |
10469 | rm -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 |
9003 | LIBS=$ac_check_lib_save_LIBS | 10471 | LIBS=$ac_check_lib_save_LIBS |
9004 | fi | 10472 | fi |
9005 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 10473 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9006 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 10474 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
9007 | if test $ac_cv_lib_dl_dlopen = yes; then | 10475 | if 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" |
9009 | else | 10477 | else |
9010 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 10478 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
9011 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 10479 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
9012 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 10480 | if 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 |
9014 | else | 10482 | else |
@@ -9021,39 +10489,52 @@ cat confdefs.h >>conftest.$ac_ext | |||
9021 | cat >>conftest.$ac_ext <<_ACEOF | 10489 | cat >>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 |
9026 | extern "C" | 10496 | extern "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. */ | ||
9030 | char dlopen (); | 10498 | char dlopen (); |
9031 | int | 10499 | int |
9032 | main () | 10500 | main () |
9033 | { | 10501 | { |
9034 | dlopen (); | 10502 | return dlopen (); |
9035 | ; | 10503 | ; |
9036 | return 0; | 10504 | return 0; |
9037 | } | 10505 | } |
9038 | _ACEOF | 10506 | _ACEOF |
9039 | rm -f conftest.$ac_objext conftest$ac_exeext | 10507 | rm -f conftest.$ac_objext conftest$ac_exeext |
9040 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 10508 | if { (ac_try="$ac_link" |
9041 | (eval $ac_link) 2>conftest.er1 | 10509 | case "(($ac_try" in |
10510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10511 | *) ac_try_echo=$ac_try;; | ||
10512 | esac | ||
10513 | eval "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;; | ||
10525 | esac | ||
10526 | eval "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;; | ||
10535 | esac | ||
10536 | eval "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 |
9063 | sed 's/^/| /' conftest.$ac_ext >&5 | 10544 | sed 's/^/| /' conftest.$ac_ext >&5 |
9064 | 10545 | ||
9065 | ac_cv_lib_svld_dlopen=no | 10546 | ac_cv_lib_svld_dlopen=no |
9066 | fi | 10547 | fi |
9067 | rm -f conftest.err conftest.$ac_objext \ | 10548 | |
10549 | rm -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 |
9069 | LIBS=$ac_check_lib_save_LIBS | 10551 | LIBS=$ac_check_lib_save_LIBS |
9070 | fi | 10552 | fi |
9071 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 10553 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
9072 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 10554 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
9073 | if test $ac_cv_lib_svld_dlopen = yes; then | 10555 | if 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" |
9075 | else | 10557 | else |
9076 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 10558 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
9077 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 10559 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
9078 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 10560 | if 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 |
9080 | else | 10562 | else |
@@ -9087,39 +10569,52 @@ cat confdefs.h >>conftest.$ac_ext | |||
9087 | cat >>conftest.$ac_ext <<_ACEOF | 10569 | cat >>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 |
9092 | extern "C" | 10576 | extern "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. */ | ||
9096 | char dld_link (); | 10578 | char dld_link (); |
9097 | int | 10579 | int |
9098 | main () | 10580 | main () |
9099 | { | 10581 | { |
9100 | dld_link (); | 10582 | return dld_link (); |
9101 | ; | 10583 | ; |
9102 | return 0; | 10584 | return 0; |
9103 | } | 10585 | } |
9104 | _ACEOF | 10586 | _ACEOF |
9105 | rm -f conftest.$ac_objext conftest$ac_exeext | 10587 | rm -f conftest.$ac_objext conftest$ac_exeext |
9106 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 10588 | if { (ac_try="$ac_link" |
9107 | (eval $ac_link) 2>conftest.er1 | 10589 | case "(($ac_try" in |
10590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10591 | *) ac_try_echo=$ac_try;; | ||
10592 | esac | ||
10593 | eval "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;; | ||
10605 | esac | ||
10606 | eval "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;; | ||
10615 | esac | ||
10616 | eval "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 |
9129 | sed 's/^/| /' conftest.$ac_ext >&5 | 10624 | sed 's/^/| /' conftest.$ac_ext >&5 |
9130 | 10625 | ||
9131 | ac_cv_lib_dld_dld_link=no | 10626 | ac_cv_lib_dld_dld_link=no |
9132 | fi | 10627 | fi |
9133 | rm -f conftest.err conftest.$ac_objext \ | 10628 | |
10629 | rm -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 |
9135 | LIBS=$ac_check_lib_save_LIBS | 10631 | LIBS=$ac_check_lib_save_LIBS |
9136 | fi | 10632 | fi |
9137 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 10633 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
9138 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 10634 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
9139 | if test $ac_cv_lib_dld_dld_link = yes; then | 10635 | if 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" |
9141 | fi | 10637 | fi |
@@ -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 |
9179 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | 10675 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
9180 | if test "${lt_cv_dlopen_self+set}" = set; then | 10676 | if test "${lt_cv_dlopen_self+set}" = set; then |
9181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 10677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9182 | else | 10678 | else |
@@ -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 | ||
9270 | fi | 10768 | fi |
9271 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | 10769 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
9272 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | 10770 | echo "${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 |
9277 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | 10775 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
9278 | if test "${lt_cv_dlopen_self_static+set}" = set; then | 10776 | if 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 |
9280 | else | 10778 | else |
@@ -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 | ||
9368 | fi | 10868 | fi |
9369 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | 10869 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
9370 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | 10870 | echo "${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 | |||
9388 | fi | 10888 | fi |
9389 | 10889 | ||
9390 | 10890 | ||
9391 | # Report which librarie types wil actually be built | 10891 | # Report which library types will actually be built |
9392 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | 10892 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
9393 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | 10893 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
9394 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | 10894 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
9395 | echo "${ECHO_T}$can_build_shared" >&6 | 10895 | echo "${ECHO_T}$can_build_shared" >&6; } |
9396 | 10896 | ||
9397 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | 10897 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
9398 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | 10898 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
9399 | test "$can_build_shared" = "no" && enable_shared=no | 10899 | test "$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. |
9403 | case "$host_os" in | 10903 | case $host_os in |
9404 | aix3*) | 10904 | aix3*) |
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 | ;; |
9454 | esac | 10917 | esac |
9455 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | 10918 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
9456 | echo "${ECHO_T}$enable_shared" >&6 | 10919 | echo "${ECHO_T}$enable_shared" >&6; } |
9457 | 10920 | ||
9458 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | 10921 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
9459 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | 10922 | echo $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. |
9461 | test "$enable_shared" = yes || enable_static=yes | 10924 | test "$enable_shared" = yes || enable_static=yes |
9462 | echo "$as_me:$LINENO: result: $enable_static" >&5 | 10925 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
9463 | echo "${ECHO_T}$enable_static" >&6 | 10926 | echo "${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;} | |||
9590 | SED=$lt_SED | 11053 | SED=$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. |
9593 | Xsed="$SED -e s/^X//" | 11056 | Xsed="$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. |
9597 | if 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. |
9600 | available_tags= | 11063 | available_tags= |
@@ -9624,6 +11087,12 @@ fast_install=$enable_fast_install | |||
9624 | # The host system. | 11087 | # The host system. |
9625 | host_alias=$host_alias | 11088 | host_alias=$host_alias |
9626 | host=$host | 11089 | host=$host |
11090 | host_os=$host_os | ||
11091 | |||
11092 | # The build system. | ||
11093 | build_alias=$build_alias | ||
11094 | build=$build | ||
11095 | build_os=$build_os | ||
9627 | 11096 | ||
9628 | # An echo program that does not interpret backslashes. | 11097 | # An echo program that does not interpret backslashes. |
9629 | echo=$lt_echo | 11098 | echo=$lt_echo |
@@ -9635,6 +11104,9 @@ AR_FLAGS=$lt_AR_FLAGS | |||
9635 | # A C compiler. | 11104 | # A C compiler. |
9636 | LTCC=$lt_LTCC | 11105 | LTCC=$lt_LTCC |
9637 | 11106 | ||
11107 | # LTCC compiler flags. | ||
11108 | LTCFLAGS=$lt_LTCFLAGS | ||
11109 | |||
9638 | # A language-specific compiler. | 11110 | # A language-specific compiler. |
9639 | CC=$lt_compiler | 11111 | CC=$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? |
9701 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | 11173 | compiler_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? |
9704 | need_locks=$lt_need_locks | 11176 | need_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 | |||
9943 | CC="$lt_save_CC" | 11415 | CC="$lt_save_CC" |
9944 | 11416 | ||
9945 | 11417 | ||
9946 | # Check whether --with-tags or --without-tags was given. | 11418 | # Check whether --with-tags was given. |
9947 | if test "${with_tags+set}" = set; then | 11419 | if test "${with_tags+set}" = set; then |
9948 | withval="$with_tags" | 11420 | withval=$with_tags; tagnames="$withval" |
9949 | tagnames="$withval" | 11421 | fi |
9950 | fi; | 11422 | |
9951 | 11423 | ||
9952 | if test -f "$ltmain" && test -n "$tagnames"; then | 11424 | if 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 | |||
9965 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | 11437 | echo "$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 | ||
10000 | ac_cpp='$CXXCPP $CPPFLAGS' | 11477 | ac_cpp='$CXXCPP $CPPFLAGS' |
10001 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 11478 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10002 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 11479 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
@@ -10015,6 +11492,7 @@ hardcode_libdir_flag_spec_CXX= | |||
10015 | hardcode_libdir_flag_spec_ld_CXX= | 11492 | hardcode_libdir_flag_spec_ld_CXX= |
10016 | hardcode_libdir_separator_CXX= | 11493 | hardcode_libdir_separator_CXX= |
10017 | hardcode_minus_L_CXX=no | 11494 | hardcode_minus_L_CXX=no |
11495 | hardcode_shlibpath_var_CXX=unsupported | ||
10018 | hardcode_automatic_CXX=no | 11496 | hardcode_automatic_CXX=no |
10019 | module_cmds_CXX= | 11497 | module_cmds_CXX= |
10020 | module_expsym_cmds_CXX= | 11498 | module_expsym_cmds_CXX= |
@@ -10032,7 +11510,7 @@ postdeps_CXX= | |||
10032 | compiler_lib_search_path_CXX= | 11510 | compiler_lib_search_path_CXX= |
10033 | 11511 | ||
10034 | # Source file extension for C++ test sources. | 11512 | # Source file extension for C++ test sources. |
10035 | ac_ext=cc | 11513 | ac_ext=cpp |
10036 | 11514 | ||
10037 | # Object file extension for compiled C++ test sources. | 11515 | # Object file extension for compiled C++ test sources. |
10038 | objext=o | 11516 | objext=o |
@@ -10042,17 +11520,34 @@ objext_CXX=$objext | |||
10042 | lt_simple_compile_test_code="int some_variable = 0;\n" | 11520 | lt_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 |
10045 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' | 11523 | lt_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. |
10050 | LTCC=${LTCC-"$CC"} | 11528 | LTCC=${LTCC-"$CC"} |
10051 | 11529 | ||
11530 | # If no C compiler flags were specified, use CFLAGS. | ||
11531 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
11532 | |||
10052 | # Allow CC to be a program name with arguments. | 11533 | # Allow CC to be a program name with arguments. |
10053 | compiler=$CC | 11534 | compiler=$CC |
10054 | 11535 | ||
10055 | 11536 | ||
11537 | # save warnings/boilerplate of simple test code | ||
11538 | ac_outfile=conftest.$ac_objext | ||
11539 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
11540 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
11541 | _lt_compiler_boilerplate=`cat conftest.err` | ||
11542 | $rm conftest* | ||
11543 | |||
11544 | ac_outfile=conftest.$ac_objext | ||
11545 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | ||
11546 | eval "$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. |
10057 | lt_save_CC=$CC | 11552 | lt_save_CC=$CC |
10058 | lt_save_LD=$LD | 11553 | lt_save_LD=$LD |
@@ -10063,18 +11558,27 @@ lt_save_path_LD=$lt_cv_path_LD | |||
10063 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | 11558 | if 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 |
10065 | else | 11560 | else |
10066 | unset lt_cv_prog_gnu_ld | 11561 | $as_unset lt_cv_prog_gnu_ld |
10067 | fi | 11562 | fi |
10068 | if test -n "${lt_cv_path_LDCXX+set}"; then | 11563 | if 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 |
10070 | else | 11565 | else |
10071 | unset lt_cv_path_LD | 11566 | $as_unset lt_cv_path_LD |
10072 | fi | 11567 | fi |
10073 | test -z "${LDCXX+set}" || LD=$LDCXX | 11568 | test -z "${LDCXX+set}" || LD=$LDCXX |
10074 | CC=${CXX-"c++"} | 11569 | CC=${CXX-"c++"} |
10075 | compiler=$CC | 11570 | compiler=$CC |
10076 | compiler_CXX=$CC | 11571 | compiler_CXX=$CC |
10077 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 11572 | for 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 | ||
11579 | done | ||
11580 | cc_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. |
10092 | if test "${with_gnu_ld+set}" = set; then | 11596 | if 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 | ||
10095 | else | 11598 | else |
10096 | with_gnu_ld=no | 11599 | with_gnu_ld=no |
10097 | fi; | 11600 | fi |
11601 | |||
10098 | ac_prog=ld | 11602 | ac_prog=ld |
10099 | if test "$GCC" = yes; then | 11603 | if 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 |
10102 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | 11606 | echo $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 |
10130 | elif test "$with_gnu_ld" = yes; then | 11634 | elif 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 |
10132 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | 11636 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
10133 | else | 11637 | else |
10134 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | 11638 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
10135 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | 11639 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
10136 | fi | 11640 | fi |
10137 | if test "${lt_cv_path_LD+set}" = set; then | 11641 | if 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 | ||
10166 | LD="$lt_cv_path_LD" | 11670 | LD="$lt_cv_path_LD" |
10167 | if test -n "$LD"; then | 11671 | if test -n "$LD"; then |
10168 | echo "$as_me:$LINENO: result: $LD" >&5 | 11672 | { echo "$as_me:$LINENO: result: $LD" >&5 |
10169 | echo "${ECHO_T}$LD" >&6 | 11673 | echo "${ECHO_T}$LD" >&6; } |
10170 | else | 11674 | else |
10171 | echo "$as_me:$LINENO: result: no" >&5 | 11675 | { echo "$as_me:$LINENO: result: no" >&5 |
10172 | echo "${ECHO_T}no" >&6 | 11676 | echo "${ECHO_T}no" >&6; } |
10173 | fi | 11677 | fi |
10174 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | 11678 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
10175 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | 11679 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
10176 | { (exit 1); exit 1; }; } | 11680 | { (exit 1); exit 1; }; } |
10177 | echo "$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 |
10178 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | 11682 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
10179 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | 11683 | if 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 |
10181 | else | 11685 | else |
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. |
10183 | case `$LD -v 2>&1 </dev/null` in | 11687 | case `$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 | ;; |
10190 | esac | 11694 | esac |
10191 | fi | 11695 | fi |
10192 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | 11696 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
10193 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | 11697 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
10194 | with_gnu_ld=$lt_cv_prog_gnu_ld | 11698 | with_gnu_ld=$lt_cv_prog_gnu_ld |
10195 | 11699 | ||
10196 | 11700 | ||
@@ -10240,8 +11744,8 @@ else | |||
10240 | fi | 11744 | fi |
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 |
10243 | echo "$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 |
10244 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 11748 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
10245 | ld_shlibs_CXX=yes | 11749 | ld_shlibs_CXX=yes |
10246 | case $host_os in | 11750 | case $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 |
10350 | rm -f conftest.$ac_objext conftest$ac_exeext | 11859 | rm -f conftest.$ac_objext conftest$ac_exeext |
10351 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 11860 | if { (ac_try="$ac_link" |
10352 | (eval $ac_link) 2>conftest.er1 | 11861 | case "(($ac_try" in |
11862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11863 | *) ac_try_echo=$ac_try;; | ||
11864 | esac | ||
11865 | eval "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;; | ||
11877 | esac | ||
11878 | eval "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;; | ||
11887 | esac | ||
11888 | eval "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 |
10379 | sed 's/^/| /' conftest.$ac_ext >&5 | 11901 | sed 's/^/| /' conftest.$ac_ext >&5 |
10380 | 11902 | ||
11903 | |||
10381 | fi | 11904 | fi |
10382 | rm -f conftest.err conftest.$ac_objext \ | 11905 | |
11906 | rm -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 |
10384 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 11908 | if 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 |
10411 | rm -f conftest.$ac_objext conftest$ac_exeext | 11935 | rm -f conftest.$ac_objext conftest$ac_exeext |
10412 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 11936 | if { (ac_try="$ac_link" |
10413 | (eval $ac_link) 2>conftest.er1 | 11937 | case "(($ac_try" in |
11938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11939 | *) ac_try_echo=$ac_try;; | ||
11940 | esac | ||
11941 | eval "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;; | ||
11953 | esac | ||
11954 | eval "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;; | ||
11963 | esac | ||
11964 | eval "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 |
10440 | sed 's/^/| /' conftest.$ac_ext >&5 | 11977 | sed 's/^/| /' conftest.$ac_ext >&5 |
10441 | 11978 | ||
11979 | |||
10442 | fi | 11980 | fi |
10443 | rm -f conftest.err conftest.$ac_objext \ | 11981 | |
11982 | rm -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 |
10445 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 11984 | if 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 | ;; |
11068 | esac | 12712 | esac |
11069 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | 12713 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11070 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | 12714 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
11071 | test "$ld_shlibs_CXX" = no && can_build_shared=no | 12715 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
11072 | 12716 | ||
11073 | GCC_CXX="$GXX" | 12717 | GCC_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 | ||
12823 | case $host_os in | ||
12824 | interix3*) | ||
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 | |||
12832 | solaris*) | ||
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 | ;; | ||
12842 | esac | ||
12843 | |||
12844 | |||
11178 | case " $postdeps_CXX " in | 12845 | case " $postdeps_CXX " in |
11179 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | 12846 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
11180 | esac | 12847 | esac |
@@ -11183,8 +12850,8 @@ lt_prog_compiler_wl_CXX= | |||
11183 | lt_prog_compiler_pic_CXX= | 12850 | lt_prog_compiler_pic_CXX= |
11184 | lt_prog_compiler_static_CXX= | 12851 | lt_prog_compiler_static_CXX= |
11185 | 12852 | ||
11186 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 12853 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
11187 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 12854 | echo $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 | ||
11438 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | 13127 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
11439 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 | 13128 | echo "${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 | # |
11444 | if test -n "$lt_prog_compiler_pic_CXX"; then | 13133 | if test -n "$lt_prog_compiler_pic_CXX"; then |
11445 | 13134 | ||
11446 | echo "$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 |
11447 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 | 13136 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
11448 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | 13137 | if 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 |
11450 | else | 13139 | else |
@@ -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 | ||
11478 | fi | 13169 | fi |
11479 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | 13170 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
11480 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 | 13171 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
11481 | 13172 | ||
11482 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | 13173 | if 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 | |||
11490 | fi | 13181 | fi |
11491 | 13182 | ||
11492 | fi | 13183 | fi |
11493 | case "$host_os" in | 13184 | case $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 | ;; |
11501 | esac | 13192 | esac |
11502 | 13193 | ||
11503 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 13194 | # |
11504 | echo $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 | # | ||
13197 | wl=$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 | ||
13199 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | ||
13200 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then | ||
13201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13202 | else | ||
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 | |||
13225 | fi | ||
13226 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 | ||
13227 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } | ||
13228 | |||
13229 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then | ||
13230 | : | ||
13231 | else | ||
13232 | lt_prog_compiler_static_CXX= | ||
13233 | fi | ||
13234 | |||
13235 | |||
13236 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
13237 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | ||
11505 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | 13238 | if 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 |
11507 | else | 13240 | else |
@@ -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 | ||
11547 | fi | 13282 | fi |
11548 | echo "$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 |
11549 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 | 13284 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
11550 | 13285 | ||
11551 | 13286 | ||
11552 | hard_links="nottested" | 13287 | hard_links="nottested" |
11553 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | 13288 | if 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 |
11556 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 13291 | echo $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 |
11564 | echo "${ECHO_T}$hard_links" >&6 | 13299 | echo "${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 |
11567 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 13302 | echo "$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 |
11572 | fi | 13307 | fi |
11573 | 13308 | ||
11574 | echo "$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 |
11575 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 13310 | echo $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 | ||
11602 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | 13337 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11603 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | 13338 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
11604 | test "$ld_shlibs_CXX" = no && can_build_shared=no | 13339 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
11605 | 13340 | ||
11606 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
11607 | if test "$GCC" = yes; then | ||
11608 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
11609 | fi | ||
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 |
11629 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 13359 | echo $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 |
11666 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 | 13397 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
11667 | ;; | 13398 | ;; |
11668 | esac | 13399 | esac |
11669 | fi | 13400 | fi |
11670 | ;; | 13401 | ;; |
11671 | esac | 13402 | esac |
11672 | 13403 | ||
11673 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 13404 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
11674 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 13405 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
11675 | library_names_spec= | 13406 | library_names_spec= |
11676 | libname_spec='lib$name' | 13407 | libname_spec='lib$name' |
11677 | soname_spec= | 13408 | soname_spec= |
@@ -11772,7 +13503,7 @@ beos*) | |||
11772 | shlibpath_var=LIBRARY_PATH | 13503 | shlibpath_var=LIBRARY_PATH |
11773 | ;; | 13504 | ;; |
11774 | 13505 | ||
11775 | bsdi4*) | 13506 | bsdi[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 | ||
11879 | kfreebsd*-gnu) | 13611 | freebsd* | 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 | |||
11891 | freebsd*) | ||
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 | ||
13711 | interix3*) | ||
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 | |||
11977 | irix5* | irix6* | nonstopux*) | 13723 | irix5* | 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. |
12020 | linux*) | 13766 | linux* | 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 | ||
12061 | knetbsd*-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 | |||
12073 | netbsd*) | 13807 | netbsd*) |
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 | ||
12108 | openbsd*) | 13842 | openbsd*) |
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 | ||
12149 | sco3.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 | |||
12156 | solaris*) | 13888 | solaris*) |
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 | ||
12181 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 13913 | sysv4 | 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 | ||
13946 | sysv5* | 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 | |||
12214 | uts4*) | 13969 | uts4*) |
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 | ;; |
12224 | esac | 13979 | esac |
12225 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 13980 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
12226 | echo "${ECHO_T}$dynamic_linker" >&6 | 13981 | echo "${ECHO_T}$dynamic_linker" >&6; } |
12227 | test "$dynamic_linker" = no && can_build_shared=no | 13982 | test "$dynamic_linker" = no && can_build_shared=no |
12228 | 13983 | ||
12229 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 13984 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
12230 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 13985 | if test "$GCC" = yes; then |
13986 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
13987 | fi | ||
13988 | |||
13989 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | ||
13990 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | ||
12231 | hardcode_action_CXX= | 13991 | hardcode_action_CXX= |
12232 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ | 13992 | if 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 |
12253 | fi | 14013 | fi |
12254 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | 14014 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
12255 | echo "${ECHO_T}$hardcode_action_CXX" >&6 | 14015 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
12256 | 14016 | ||
12257 | if test "$hardcode_action_CXX" = relink; then | 14017 | if 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 |
12264 | fi | 14024 | fi |
12265 | 14025 | ||
12266 | striplib= | ||
12267 | old_striplib= | ||
12268 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | ||
12269 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | ||
12270 | if 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 | ||
12274 | echo "${ECHO_T}yes" >&6 | ||
12275 | else | ||
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 | ||
12282 | echo "${ECHO_T}yes" >&6 | ||
12283 | else | ||
12284 | echo "$as_me:$LINENO: result: no" >&5 | ||
12285 | echo "${ECHO_T}no" >&6 | ||
12286 | fi | ||
12287 | ;; | ||
12288 | *) | ||
12289 | echo "$as_me:$LINENO: result: no" >&5 | ||
12290 | echo "${ECHO_T}no" >&6 | ||
12291 | ;; | ||
12292 | esac | ||
12293 | fi | ||
12294 | |||
12295 | if test "x$enable_dlopen" != xyes; then | ||
12296 | enable_dlopen=unknown | ||
12297 | enable_dlopen_self=unknown | ||
12298 | enable_dlopen_self_static=unknown | ||
12299 | else | ||
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 | ||
12323 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
12324 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
12325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12326 | else | ||
12327 | ac_check_lib_save_LIBS=$LIBS | ||
12328 | LIBS="-ldl $LIBS" | ||
12329 | cat >conftest.$ac_ext <<_ACEOF | ||
12330 | /* confdefs.h. */ | ||
12331 | _ACEOF | ||
12332 | cat confdefs.h >>conftest.$ac_ext | ||
12333 | cat >>conftest.$ac_ext <<_ACEOF | ||
12334 | /* end confdefs.h. */ | ||
12335 | |||
12336 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12337 | #ifdef __cplusplus | ||
12338 | extern "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. */ | ||
12342 | char dlopen (); | ||
12343 | int | ||
12344 | main () | ||
12345 | { | ||
12346 | dlopen (); | ||
12347 | ; | ||
12348 | return 0; | ||
12349 | } | ||
12350 | _ACEOF | ||
12351 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12352 | if { (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 | ||
12373 | else | ||
12374 | echo "$as_me: failed program was:" >&5 | ||
12375 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12376 | |||
12377 | ac_cv_lib_dl_dlopen=no | ||
12378 | fi | ||
12379 | rm -f conftest.err conftest.$ac_objext \ | ||
12380 | conftest$ac_exeext conftest.$ac_ext | ||
12381 | LIBS=$ac_check_lib_save_LIBS | ||
12382 | fi | ||
12383 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
12384 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
12385 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
12386 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
12387 | else | ||
12388 | |||
12389 | lt_cv_dlopen="dyld" | ||
12390 | lt_cv_dlopen_libs= | ||
12391 | lt_cv_dlopen_self=yes | ||
12392 | |||
12393 | fi | ||
12394 | |||
12395 | ;; | ||
12396 | |||
12397 | *) | ||
12398 | echo "$as_me:$LINENO: checking for shl_load" >&5 | ||
12399 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | ||
12400 | if test "${ac_cv_func_shl_load+set}" = set; then | ||
12401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12402 | else | ||
12403 | cat >conftest.$ac_ext <<_ACEOF | ||
12404 | /* confdefs.h. */ | ||
12405 | _ACEOF | ||
12406 | cat confdefs.h >>conftest.$ac_ext | ||
12407 | cat >>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 | ||
12428 | extern "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. */ | ||
12433 | char 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) | ||
12438 | choke me | ||
12439 | #else | ||
12440 | char (*f) () = shl_load; | ||
12441 | #endif | ||
12442 | #ifdef __cplusplus | ||
12443 | } | ||
12444 | #endif | ||
12445 | |||
12446 | int | ||
12447 | main () | ||
12448 | { | ||
12449 | return f != shl_load; | ||
12450 | ; | ||
12451 | return 0; | ||
12452 | } | ||
12453 | _ACEOF | ||
12454 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12455 | if { (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 | ||
12476 | else | ||
12477 | echo "$as_me: failed program was:" >&5 | ||
12478 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12479 | |||
12480 | ac_cv_func_shl_load=no | ||
12481 | fi | ||
12482 | rm -f conftest.err conftest.$ac_objext \ | ||
12483 | conftest$ac_exeext conftest.$ac_ext | ||
12484 | fi | ||
12485 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | ||
12486 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | ||
12487 | if test $ac_cv_func_shl_load = yes; then | ||
12488 | lt_cv_dlopen="shl_load" | ||
12489 | else | ||
12490 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | ||
12491 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | ||
12492 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | ||
12493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12494 | else | ||
12495 | ac_check_lib_save_LIBS=$LIBS | ||
12496 | LIBS="-ldld $LIBS" | ||
12497 | cat >conftest.$ac_ext <<_ACEOF | ||
12498 | /* confdefs.h. */ | ||
12499 | _ACEOF | ||
12500 | cat confdefs.h >>conftest.$ac_ext | ||
12501 | cat >>conftest.$ac_ext <<_ACEOF | ||
12502 | /* end confdefs.h. */ | ||
12503 | |||
12504 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12505 | #ifdef __cplusplus | ||
12506 | extern "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. */ | ||
12510 | char shl_load (); | ||
12511 | int | ||
12512 | main () | ||
12513 | { | ||
12514 | shl_load (); | ||
12515 | ; | ||
12516 | return 0; | ||
12517 | } | ||
12518 | _ACEOF | ||
12519 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12520 | if { (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 | ||
12541 | else | ||
12542 | echo "$as_me: failed program was:" >&5 | ||
12543 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12544 | |||
12545 | ac_cv_lib_dld_shl_load=no | ||
12546 | fi | ||
12547 | rm -f conftest.err conftest.$ac_objext \ | ||
12548 | conftest$ac_exeext conftest.$ac_ext | ||
12549 | LIBS=$ac_check_lib_save_LIBS | ||
12550 | fi | ||
12551 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | ||
12552 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | ||
12553 | if test $ac_cv_lib_dld_shl_load = yes; then | ||
12554 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | ||
12555 | else | ||
12556 | echo "$as_me:$LINENO: checking for dlopen" >&5 | ||
12557 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | ||
12558 | if test "${ac_cv_func_dlopen+set}" = set; then | ||
12559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12560 | else | ||
12561 | cat >conftest.$ac_ext <<_ACEOF | ||
12562 | /* confdefs.h. */ | ||
12563 | _ACEOF | ||
12564 | cat confdefs.h >>conftest.$ac_ext | ||
12565 | cat >>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 | ||
12586 | extern "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. */ | ||
12591 | char 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) | ||
12596 | choke me | ||
12597 | #else | ||
12598 | char (*f) () = dlopen; | ||
12599 | #endif | ||
12600 | #ifdef __cplusplus | ||
12601 | } | ||
12602 | #endif | ||
12603 | |||
12604 | int | ||
12605 | main () | ||
12606 | { | ||
12607 | return f != dlopen; | ||
12608 | ; | ||
12609 | return 0; | ||
12610 | } | ||
12611 | _ACEOF | ||
12612 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12613 | if { (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 | ||
12634 | else | ||
12635 | echo "$as_me: failed program was:" >&5 | ||
12636 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12637 | |||
12638 | ac_cv_func_dlopen=no | ||
12639 | fi | ||
12640 | rm -f conftest.err conftest.$ac_objext \ | ||
12641 | conftest$ac_exeext conftest.$ac_ext | ||
12642 | fi | ||
12643 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | ||
12644 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | ||
12645 | if test $ac_cv_func_dlopen = yes; then | ||
12646 | lt_cv_dlopen="dlopen" | ||
12647 | else | ||
12648 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
12649 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
12650 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
12651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12652 | else | ||
12653 | ac_check_lib_save_LIBS=$LIBS | ||
12654 | LIBS="-ldl $LIBS" | ||
12655 | cat >conftest.$ac_ext <<_ACEOF | ||
12656 | /* confdefs.h. */ | ||
12657 | _ACEOF | ||
12658 | cat confdefs.h >>conftest.$ac_ext | ||
12659 | cat >>conftest.$ac_ext <<_ACEOF | ||
12660 | /* end confdefs.h. */ | ||
12661 | |||
12662 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12663 | #ifdef __cplusplus | ||
12664 | extern "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. */ | ||
12668 | char dlopen (); | ||
12669 | int | ||
12670 | main () | ||
12671 | { | ||
12672 | dlopen (); | ||
12673 | ; | ||
12674 | return 0; | ||
12675 | } | ||
12676 | _ACEOF | ||
12677 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12678 | if { (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 | ||
12699 | else | ||
12700 | echo "$as_me: failed program was:" >&5 | ||
12701 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12702 | |||
12703 | ac_cv_lib_dl_dlopen=no | ||
12704 | fi | ||
12705 | rm -f conftest.err conftest.$ac_objext \ | ||
12706 | conftest$ac_exeext conftest.$ac_ext | ||
12707 | LIBS=$ac_check_lib_save_LIBS | ||
12708 | fi | ||
12709 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
12710 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
12711 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
12712 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
12713 | else | ||
12714 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | ||
12715 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | ||
12716 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | ||
12717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12718 | else | ||
12719 | ac_check_lib_save_LIBS=$LIBS | ||
12720 | LIBS="-lsvld $LIBS" | ||
12721 | cat >conftest.$ac_ext <<_ACEOF | ||
12722 | /* confdefs.h. */ | ||
12723 | _ACEOF | ||
12724 | cat confdefs.h >>conftest.$ac_ext | ||
12725 | cat >>conftest.$ac_ext <<_ACEOF | ||
12726 | /* end confdefs.h. */ | ||
12727 | |||
12728 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12729 | #ifdef __cplusplus | ||
12730 | extern "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. */ | ||
12734 | char dlopen (); | ||
12735 | int | ||
12736 | main () | ||
12737 | { | ||
12738 | dlopen (); | ||
12739 | ; | ||
12740 | return 0; | ||
12741 | } | ||
12742 | _ACEOF | ||
12743 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12744 | if { (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 | ||
12765 | else | ||
12766 | echo "$as_me: failed program was:" >&5 | ||
12767 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12768 | |||
12769 | ac_cv_lib_svld_dlopen=no | ||
12770 | fi | ||
12771 | rm -f conftest.err conftest.$ac_objext \ | ||
12772 | conftest$ac_exeext conftest.$ac_ext | ||
12773 | LIBS=$ac_check_lib_save_LIBS | ||
12774 | fi | ||
12775 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | ||
12776 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | ||
12777 | if test $ac_cv_lib_svld_dlopen = yes; then | ||
12778 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | ||
12779 | else | ||
12780 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | ||
12781 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | ||
12782 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | ||
12783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12784 | else | ||
12785 | ac_check_lib_save_LIBS=$LIBS | ||
12786 | LIBS="-ldld $LIBS" | ||
12787 | cat >conftest.$ac_ext <<_ACEOF | ||
12788 | /* confdefs.h. */ | ||
12789 | _ACEOF | ||
12790 | cat confdefs.h >>conftest.$ac_ext | ||
12791 | cat >>conftest.$ac_ext <<_ACEOF | ||
12792 | /* end confdefs.h. */ | ||
12793 | |||
12794 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12795 | #ifdef __cplusplus | ||
12796 | extern "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. */ | ||
12800 | char dld_link (); | ||
12801 | int | ||
12802 | main () | ||
12803 | { | ||
12804 | dld_link (); | ||
12805 | ; | ||
12806 | return 0; | ||
12807 | } | ||
12808 | _ACEOF | ||
12809 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12810 | if { (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 | ||
12831 | else | ||
12832 | echo "$as_me: failed program was:" >&5 | ||
12833 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12834 | |||
12835 | ac_cv_lib_dld_dld_link=no | ||
12836 | fi | ||
12837 | rm -f conftest.err conftest.$ac_objext \ | ||
12838 | conftest$ac_exeext conftest.$ac_ext | ||
12839 | LIBS=$ac_check_lib_save_LIBS | ||
12840 | fi | ||
12841 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | ||
12842 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | ||
12843 | if test $ac_cv_lib_dld_dld_link = yes; then | ||
12844 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | ||
12845 | fi | ||
12846 | |||
12847 | |||
12848 | fi | ||
12849 | |||
12850 | |||
12851 | fi | ||
12852 | |||
12853 | |||
12854 | fi | ||
12855 | |||
12856 | |||
12857 | fi | ||
12858 | |||
12859 | |||
12860 | fi | ||
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 | ||
12883 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | ||
12884 | if test "${lt_cv_dlopen_self+set}" = set; then | ||
12885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12886 | else | ||
12887 | if test "$cross_compiling" = yes; then : | ||
12888 | lt_cv_dlopen_self=cross | ||
12889 | else | ||
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 | ||
12935 | extern "C" void exit (int); | ||
12936 | #endif | ||
12937 | |||
12938 | void fnord() { int i=42;} | ||
12939 | int 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 | } | ||
12953 | EOF | ||
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 | ||
12970 | fi | ||
12971 | rm -fr conftest* | ||
12972 | |||
12973 | |||
12974 | fi | ||
12975 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | ||
12976 | echo "${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 | ||
12981 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | ||
12982 | if test "${lt_cv_dlopen_self_static+set}" = set; then | ||
12983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12984 | else | ||
12985 | if test "$cross_compiling" = yes; then : | ||
12986 | lt_cv_dlopen_self_static=cross | ||
12987 | else | ||
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 | ||
13033 | extern "C" void exit (int); | ||
13034 | #endif | ||
13035 | |||
13036 | void fnord() { int i=42;} | ||
13037 | int 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 | } | ||
13051 | EOF | ||
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 | ||
13068 | fi | ||
13069 | rm -fr conftest* | ||
13070 | |||
13071 | |||
13072 | fi | ||
13073 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | ||
13074 | echo "${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 | ||
13092 | fi | ||
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. |
13207 | host_alias=$host_alias | 14139 | host_alias=$host_alias |
13208 | host=$host | 14140 | host=$host |
14141 | host_os=$host_os | ||
14142 | |||
14143 | # The build system. | ||
14144 | build_alias=$build_alias | ||
14145 | build=$build | ||
14146 | build_os=$build_os | ||
13209 | 14147 | ||
13210 | # An echo program that does not interpret backslashes. | 14148 | # An echo program that does not interpret backslashes. |
13211 | echo=$lt_echo | 14149 | echo=$lt_echo |
@@ -13217,6 +14155,9 @@ AR_FLAGS=$lt_AR_FLAGS | |||
13217 | # A C compiler. | 14155 | # A C compiler. |
13218 | LTCC=$lt_LTCC | 14156 | LTCC=$lt_LTCC |
13219 | 14157 | ||
14158 | # LTCC compiler flags. | ||
14159 | LTCFLAGS=$lt_LTCFLAGS | ||
14160 | |||
13220 | # A language-specific compiler. | 14161 | # A language-specific compiler. |
13221 | CC=$lt_compiler_CXX | 14162 | CC=$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? |
13283 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | 14224 | compiler_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? |
13286 | need_locks=$lt_need_locks | 14227 | need_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. |
13560 | LTCC=${LTCC-"$CC"} | 14501 | LTCC=${LTCC-"$CC"} |
13561 | 14502 | ||
14503 | # If no C compiler flags were specified, use CFLAGS. | ||
14504 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
14505 | |||
13562 | # Allow CC to be a program name with arguments. | 14506 | # Allow CC to be a program name with arguments. |
13563 | compiler=$CC | 14507 | compiler=$CC |
13564 | 14508 | ||
13565 | 14509 | ||
14510 | # save warnings/boilerplate of simple test code | ||
14511 | ac_outfile=conftest.$ac_objext | ||
14512 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
14513 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
14514 | _lt_compiler_boilerplate=`cat conftest.err` | ||
14515 | $rm conftest* | ||
14516 | |||
14517 | ac_outfile=conftest.$ac_objext | ||
14518 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | ||
14519 | eval "$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. |
13567 | lt_save_CC="$CC" | 14525 | lt_save_CC="$CC" |
13568 | CC=${F77-"f77"} | 14526 | CC=${F77-"f77"} |
13569 | compiler=$CC | 14527 | compiler=$CC |
13570 | compiler_F77=$CC | 14528 | compiler_F77=$CC |
13571 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 14529 | for 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 | ||
14536 | done | ||
14537 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
14538 | |||
13572 | 14539 | ||
13573 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | 14540 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
13574 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | 14541 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
13575 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | 14542 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
13576 | echo "${ECHO_T}$can_build_shared" >&6 | 14543 | echo "${ECHO_T}$can_build_shared" >&6; } |
13577 | 14544 | ||
13578 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | 14545 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
13579 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | 14546 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
13580 | test "$can_build_shared" = "no" && enable_shared=no | 14547 | test "$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. |
13584 | case "$host_os" in | 14551 | case $host_os in |
13585 | aix3*) | 14552 | aix3*) |
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 | ;; |
13592 | aix4* | aix5*) | 14559 | aix4* | 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 | ;; |
13595 | esac | 14564 | esac |
13596 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | 14565 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
13597 | echo "${ECHO_T}$enable_shared" >&6 | 14566 | echo "${ECHO_T}$enable_shared" >&6; } |
13598 | 14567 | ||
13599 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | 14568 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
13600 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | 14569 | echo $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. |
13602 | test "$enable_shared" = yes || enable_static=yes | 14571 | test "$enable_shared" = yes || enable_static=yes |
13603 | echo "$as_me:$LINENO: result: $enable_static" >&5 | 14572 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
13604 | echo "${ECHO_T}$enable_static" >&6 | 14573 | echo "${ECHO_T}$enable_static" >&6; } |
13605 | |||
13606 | test "$ld_shlibs_F77" = no && can_build_shared=no | ||
13607 | 14574 | ||
13608 | GCC_F77="$G77" | 14575 | GCC_F77="$G77" |
13609 | LD_F77="$LD" | 14576 | LD_F77="$LD" |
@@ -13612,8 +14579,8 @@ lt_prog_compiler_wl_F77= | |||
13612 | lt_prog_compiler_pic_F77= | 14579 | lt_prog_compiler_pic_F77= |
13613 | lt_prog_compiler_static_F77= | 14580 | lt_prog_compiler_static_F77= |
13614 | 14581 | ||
13615 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 14582 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
13616 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 14583 | echo $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 | ||
13792 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 | 14792 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
13793 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 | 14793 | echo "${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 | # |
13798 | if test -n "$lt_prog_compiler_pic_F77"; then | 14798 | if test -n "$lt_prog_compiler_pic_F77"; then |
13799 | 14799 | ||
13800 | echo "$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 |
13801 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 | 14801 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
13802 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then | 14802 | if 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 |
13804 | else | 14804 | else |
@@ -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 | ||
13832 | fi | 14834 | fi |
13833 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 | 14835 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
13834 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 | 14836 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
13835 | 14837 | ||
13836 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then | 14838 | if 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 | |||
13844 | fi | 14846 | fi |
13845 | 14847 | ||
13846 | fi | 14848 | fi |
13847 | case "$host_os" in | 14849 | case $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 | ;; |
13855 | esac | 14857 | esac |
13856 | 14858 | ||
13857 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 14859 | # |
13858 | echo $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 | # | ||
14862 | wl=$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 | ||
14864 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | ||
14865 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then | ||
14866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14867 | else | ||
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 | |||
14890 | fi | ||
14891 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 | ||
14892 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } | ||
14893 | |||
14894 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then | ||
14895 | : | ||
14896 | else | ||
14897 | lt_prog_compiler_static_F77= | ||
14898 | fi | ||
14899 | |||
14900 | |||
14901 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
14902 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | ||
13859 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then | 14903 | if 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 |
13861 | else | 14905 | else |
@@ -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 | ||
13901 | fi | 14947 | fi |
13902 | echo "$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 |
13903 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 | 14949 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
13904 | 14950 | ||
13905 | 14951 | ||
13906 | hard_links="nottested" | 14952 | hard_links="nottested" |
13907 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | 14953 | if 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 |
13910 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 14956 | echo $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 |
13918 | echo "${ECHO_T}$hard_links" >&6 | 14964 | echo "${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 |
13921 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 14967 | echo "$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 |
13926 | fi | 14972 | fi |
13927 | 14973 | ||
13928 | echo "$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 |
13929 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 14975 | echo $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 | ||
15021 | done | ||
15022 | cc_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~ | ||
14107 | cat $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 |
14251 | rm -f conftest.$ac_objext conftest$ac_exeext | 15380 | rm -f conftest.$ac_objext conftest$ac_exeext |
14252 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 15381 | if { (ac_try="$ac_link" |
14253 | (eval $ac_link) 2>conftest.er1 | 15382 | case "(($ac_try" in |
15383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15384 | *) ac_try_echo=$ac_try;; | ||
15385 | esac | ||
15386 | eval "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;; | ||
15398 | esac | ||
15399 | eval "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;; | ||
15408 | esac | ||
15409 | eval "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 |
14280 | sed 's/^/| /' conftest.$ac_ext >&5 | 15422 | sed 's/^/| /' conftest.$ac_ext >&5 |
14281 | 15423 | ||
15424 | |||
14282 | fi | 15425 | fi |
14283 | rm -f conftest.err conftest.$ac_objext \ | 15426 | |
15427 | rm -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 |
14285 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 15429 | if 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 |
14301 | rm -f conftest.$ac_objext conftest$ac_exeext | 15445 | rm -f conftest.$ac_objext conftest$ac_exeext |
14302 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 15446 | if { (ac_try="$ac_link" |
14303 | (eval $ac_link) 2>conftest.er1 | 15447 | case "(($ac_try" in |
15448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15449 | *) ac_try_echo=$ac_try;; | ||
15450 | esac | ||
15451 | eval "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;; | ||
15463 | esac | ||
15464 | eval "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;; | ||
15473 | esac | ||
15474 | eval "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 |
14330 | sed 's/^/| /' conftest.$ac_ext >&5 | 15487 | sed 's/^/| /' conftest.$ac_ext >&5 |
14331 | 15488 | ||
15489 | |||
14332 | fi | 15490 | fi |
14333 | rm -f conftest.err conftest.$ac_objext \ | 15491 | |
15492 | rm -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 |
14335 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 15494 | if 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 | ||
14755 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 | 15941 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
14756 | echo "${ECHO_T}$ld_shlibs_F77" >&6 | 15942 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
14757 | test "$ld_shlibs_F77" = no && can_build_shared=no | 15943 | test "$ld_shlibs_F77" = no && can_build_shared=no |
14758 | 15944 | ||
14759 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
14760 | if test "$GCC" = yes; then | ||
14761 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
14762 | fi | ||
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 |
14782 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 15963 | echo $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 |
14819 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 | 16001 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
14820 | ;; | 16002 | ;; |
14821 | esac | 16003 | esac |
14822 | fi | 16004 | fi |
14823 | ;; | 16005 | ;; |
14824 | esac | 16006 | esac |
14825 | 16007 | ||
14826 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 16008 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
14827 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 16009 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
14828 | library_names_spec= | 16010 | library_names_spec= |
14829 | libname_spec='lib$name' | 16011 | libname_spec='lib$name' |
14830 | soname_spec= | 16012 | soname_spec= |
@@ -14925,7 +16107,7 @@ beos*) | |||
14925 | shlibpath_var=LIBRARY_PATH | 16107 | shlibpath_var=LIBRARY_PATH |
14926 | ;; | 16108 | ;; |
14927 | 16109 | ||
14928 | bsdi4*) | 16110 | bsdi[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 | ||
15032 | kfreebsd*-gnu) | 16215 | freebsd* | 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 | |||
15044 | freebsd*) | ||
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 | ||
16315 | interix3*) | ||
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 | |||
15130 | irix5* | irix6* | nonstopux*) | 16327 | irix5* | 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. |
15173 | linux*) | 16370 | linux* | 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 | ||
15214 | knetbsd*-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 | |||
15226 | netbsd*) | 16411 | netbsd*) |
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 | ||
15261 | openbsd*) | 16446 | openbsd*) |
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 | ||
15302 | sco3.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 | |||
15309 | solaris*) | 16492 | solaris*) |
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 | ||
15334 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 16517 | sysv4 | 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 | ||
16550 | sysv5* | 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 | |||
15367 | uts4*) | 16573 | uts4*) |
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 | ;; |
15377 | esac | 16583 | esac |
15378 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 16584 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
15379 | echo "${ECHO_T}$dynamic_linker" >&6 | 16585 | echo "${ECHO_T}$dynamic_linker" >&6; } |
15380 | test "$dynamic_linker" = no && can_build_shared=no | 16586 | test "$dynamic_linker" = no && can_build_shared=no |
15381 | 16587 | ||
15382 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 16588 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
15383 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 16589 | if test "$GCC" = yes; then |
16590 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
16591 | fi | ||
16592 | |||
16593 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | ||
16594 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | ||
15384 | hardcode_action_F77= | 16595 | hardcode_action_F77= |
15385 | if test -n "$hardcode_libdir_flag_spec_F77" || \ | 16596 | if 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 |
15406 | fi | 16617 | fi |
15407 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 | 16618 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
15408 | echo "${ECHO_T}$hardcode_action_F77" >&6 | 16619 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
15409 | 16620 | ||
15410 | if test "$hardcode_action_F77" = relink; then | 16621 | if 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 |
15417 | fi | 16628 | fi |
15418 | 16629 | ||
15419 | striplib= | ||
15420 | old_striplib= | ||
15421 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | ||
15422 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | ||
15423 | if 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 | ||
15427 | echo "${ECHO_T}yes" >&6 | ||
15428 | else | ||
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 | ||
15435 | echo "${ECHO_T}yes" >&6 | ||
15436 | else | ||
15437 | echo "$as_me:$LINENO: result: no" >&5 | ||
15438 | echo "${ECHO_T}no" >&6 | ||
15439 | fi | ||
15440 | ;; | ||
15441 | *) | ||
15442 | echo "$as_me:$LINENO: result: no" >&5 | ||
15443 | echo "${ECHO_T}no" >&6 | ||
15444 | ;; | ||
15445 | esac | ||
15446 | fi | ||
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. |
15562 | host_alias=$host_alias | 16743 | host_alias=$host_alias |
15563 | host=$host | 16744 | host=$host |
16745 | host_os=$host_os | ||
16746 | |||
16747 | # The build system. | ||
16748 | build_alias=$build_alias | ||
16749 | build=$build | ||
16750 | build_os=$build_os | ||
15564 | 16751 | ||
15565 | # An echo program that does not interpret backslashes. | 16752 | # An echo program that does not interpret backslashes. |
15566 | echo=$lt_echo | 16753 | echo=$lt_echo |
@@ -15572,6 +16759,9 @@ AR_FLAGS=$lt_AR_FLAGS | |||
15572 | # A C compiler. | 16759 | # A C compiler. |
15573 | LTCC=$lt_LTCC | 16760 | LTCC=$lt_LTCC |
15574 | 16761 | ||
16762 | # LTCC compiler flags. | ||
16763 | LTCFLAGS=$lt_LTCFLAGS | ||
16764 | |||
15575 | # A language-specific compiler. | 16765 | # A language-specific compiler. |
15576 | CC=$lt_compiler_F77 | 16766 | CC=$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? |
15638 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | 16828 | compiler_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? |
15641 | need_locks=$lt_need_locks | 16831 | need_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. |
15868 | ac_ext=java | 17057 | ac_ext=java |
15869 | 17058 | ||
@@ -15875,26 +17064,55 @@ objext_GCJ=$objext | |||
15875 | lt_simple_compile_test_code="class foo {}\n" | 17064 | lt_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 |
15878 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' | 17067 | lt_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. |
15883 | LTCC=${LTCC-"$CC"} | 17072 | LTCC=${LTCC-"$CC"} |
15884 | 17073 | ||
17074 | # If no C compiler flags were specified, use CFLAGS. | ||
17075 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
17076 | |||
15885 | # Allow CC to be a program name with arguments. | 17077 | # Allow CC to be a program name with arguments. |
15886 | compiler=$CC | 17078 | compiler=$CC |
15887 | 17079 | ||
15888 | 17080 | ||
17081 | # save warnings/boilerplate of simple test code | ||
17082 | ac_outfile=conftest.$ac_objext | ||
17083 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
17084 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
17085 | _lt_compiler_boilerplate=`cat conftest.err` | ||
17086 | $rm conftest* | ||
17087 | |||
17088 | ac_outfile=conftest.$ac_objext | ||
17089 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | ||
17090 | eval "$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. |
15890 | lt_save_CC="$CC" | 17096 | lt_save_CC="$CC" |
15891 | CC=${GCJ-"gcj"} | 17097 | CC=${GCJ-"gcj"} |
15892 | compiler=$CC | 17098 | compiler=$CC |
15893 | compiler_GCJ=$CC | 17099 | compiler_GCJ=$CC |
17100 | for 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 | ||
17107 | done | ||
17108 | cc_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. |
15896 | archive_cmds_need_lc_GCJ=no | 17112 | archive_cmds_need_lc_GCJ=no |
15897 | 17113 | ||
17114 | old_archive_cmds_GCJ=$old_archive_cmds | ||
17115 | |||
15898 | 17116 | ||
15899 | lt_prog_compiler_no_builtin_flag_GCJ= | 17117 | lt_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 | ||
15905 | echo "$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 |
15906 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | 17124 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
15907 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | 17125 | if 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 |
15909 | else | 17127 | else |
@@ -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 | ||
15937 | fi | 17157 | fi |
15938 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | 17158 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
15939 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | 17159 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
15940 | 17160 | ||
15941 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | 17161 | if 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= | |||
15950 | lt_prog_compiler_pic_GCJ= | 17170 | lt_prog_compiler_pic_GCJ= |
15951 | lt_prog_compiler_static_GCJ= | 17171 | lt_prog_compiler_static_GCJ= |
15952 | 17172 | ||
15953 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 17173 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
15954 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 17174 | echo $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 | ||
16130 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | 17383 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
16131 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 | 17384 | echo "${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 | # |
16136 | if test -n "$lt_prog_compiler_pic_GCJ"; then | 17389 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
16137 | 17390 | ||
16138 | echo "$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 |
16139 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 | 17392 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
16140 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | 17393 | if 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 |
16142 | else | 17395 | else |
@@ -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 | ||
16170 | fi | 17425 | fi |
16171 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | 17426 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
16172 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 | 17427 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
16173 | 17428 | ||
16174 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | 17429 | if 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 | |||
16182 | fi | 17437 | fi |
16183 | 17438 | ||
16184 | fi | 17439 | fi |
16185 | case "$host_os" in | 17440 | case $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 | ;; |
16193 | esac | 17448 | esac |
16194 | 17449 | ||
16195 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 17450 | # |
16196 | echo $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 | # | ||
17453 | wl=$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 | ||
17455 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | ||
17456 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then | ||
17457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17458 | else | ||
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 | |||
17481 | fi | ||
17482 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 | ||
17483 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } | ||
17484 | |||
17485 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then | ||
17486 | : | ||
17487 | else | ||
17488 | lt_prog_compiler_static_GCJ= | ||
17489 | fi | ||
17490 | |||
17491 | |||
17492 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
17493 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | ||
16197 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | 17494 | if 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 |
16199 | else | 17496 | else |
@@ -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 | ||
16239 | fi | 17538 | fi |
16240 | echo "$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 |
16241 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 | 17540 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
16242 | 17541 | ||
16243 | 17542 | ||
16244 | hard_links="nottested" | 17543 | hard_links="nottested" |
16245 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | 17544 | if 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 |
16248 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 17547 | echo $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 |
16256 | echo "${ECHO_T}$hard_links" >&6 | 17555 | echo "${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 |
16259 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 17558 | echo "$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 |
16264 | fi | 17563 | fi |
16265 | 17564 | ||
16266 | echo "$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 |
16267 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 17566 | echo $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 | ||
17612 | done | ||
17613 | cc_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~ | ||
16445 | cat $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 |
16599 | rm -f conftest.$ac_objext conftest$ac_exeext | 17981 | rm -f conftest.$ac_objext conftest$ac_exeext |
16600 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 17982 | if { (ac_try="$ac_link" |
16601 | (eval $ac_link) 2>conftest.er1 | 17983 | case "(($ac_try" in |
17984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17985 | *) ac_try_echo=$ac_try;; | ||
17986 | esac | ||
17987 | eval "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;; | ||
17999 | esac | ||
18000 | eval "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;; | ||
18009 | esac | ||
18010 | eval "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 |
16628 | sed 's/^/| /' conftest.$ac_ext >&5 | 18023 | sed 's/^/| /' conftest.$ac_ext >&5 |
16629 | 18024 | ||
18025 | |||
16630 | fi | 18026 | fi |
16631 | rm -f conftest.err conftest.$ac_objext \ | 18027 | |
18028 | rm -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 |
16633 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 18030 | if 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 |
16659 | rm -f conftest.$ac_objext conftest$ac_exeext | 18056 | rm -f conftest.$ac_objext conftest$ac_exeext |
16660 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 18057 | if { (ac_try="$ac_link" |
16661 | (eval $ac_link) 2>conftest.er1 | 18058 | case "(($ac_try" in |
18059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18060 | *) ac_try_echo=$ac_try;; | ||
18061 | esac | ||
18062 | eval "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;; | ||
18074 | esac | ||
18075 | eval "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;; | ||
18084 | esac | ||
18085 | eval "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 |
16688 | sed 's/^/| /' conftest.$ac_ext >&5 | 18098 | sed 's/^/| /' conftest.$ac_ext >&5 |
16689 | 18099 | ||
18100 | |||
16690 | fi | 18101 | fi |
16691 | rm -f conftest.err conftest.$ac_objext \ | 18102 | |
18103 | rm -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 |
16693 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 18105 | if 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 | ||
17113 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | 18552 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
17114 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 | 18553 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
17115 | test "$ld_shlibs_GCJ" = no && can_build_shared=no | 18554 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
17116 | 18555 | ||
17117 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
17118 | if test "$GCC" = yes; then | ||
17119 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
17120 | fi | ||
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 |
17140 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 18574 | echo $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 |
17177 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 | 18612 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
17178 | ;; | 18613 | ;; |
17179 | esac | 18614 | esac |
17180 | fi | 18615 | fi |
17181 | ;; | 18616 | ;; |
17182 | esac | 18617 | esac |
17183 | 18618 | ||
17184 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 18619 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
17185 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 18620 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
17186 | library_names_spec= | 18621 | library_names_spec= |
17187 | libname_spec='lib$name' | 18622 | libname_spec='lib$name' |
17188 | soname_spec= | 18623 | soname_spec= |
@@ -17283,7 +18718,7 @@ beos*) | |||
17283 | shlibpath_var=LIBRARY_PATH | 18718 | shlibpath_var=LIBRARY_PATH |
17284 | ;; | 18719 | ;; |
17285 | 18720 | ||
17286 | bsdi4*) | 18721 | bsdi[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 | ||
17390 | kfreebsd*-gnu) | 18826 | freebsd* | 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 | |||
17402 | freebsd*) | ||
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 | ||
18926 | interix3*) | ||
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 | |||
17488 | irix5* | irix6* | nonstopux*) | 18938 | irix5* | 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. |
17531 | linux*) | 18981 | linux* | 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 | ||
17572 | knetbsd*-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 | |||
17584 | netbsd*) | 19022 | netbsd*) |
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 | ||
17619 | openbsd*) | 19057 | openbsd*) |
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 | ||
17660 | sco3.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 | |||
17667 | solaris*) | 19103 | solaris*) |
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 | ||
17692 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 19128 | sysv4 | 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 | ||
19161 | sysv5* | 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 | |||
17725 | uts4*) | 19184 | uts4*) |
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 | ;; |
17735 | esac | 19194 | esac |
17736 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 19195 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
17737 | echo "${ECHO_T}$dynamic_linker" >&6 | 19196 | echo "${ECHO_T}$dynamic_linker" >&6; } |
17738 | test "$dynamic_linker" = no && can_build_shared=no | 19197 | test "$dynamic_linker" = no && can_build_shared=no |
17739 | 19198 | ||
17740 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 19199 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
17741 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 19200 | if test "$GCC" = yes; then |
19201 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
19202 | fi | ||
19203 | |||
19204 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | ||
19205 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | ||
17742 | hardcode_action_GCJ= | 19206 | hardcode_action_GCJ= |
17743 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | 19207 | if 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 |
17764 | fi | 19228 | fi |
17765 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | 19229 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
17766 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 | 19230 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
17767 | 19231 | ||
17768 | if test "$hardcode_action_GCJ" = relink; then | 19232 | if 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 |
17775 | fi | 19239 | fi |
17776 | 19240 | ||
17777 | striplib= | ||
17778 | old_striplib= | ||
17779 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | ||
17780 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | ||
17781 | if 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 | ||
17785 | echo "${ECHO_T}yes" >&6 | ||
17786 | else | ||
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 | ||
17793 | echo "${ECHO_T}yes" >&6 | ||
17794 | else | ||
17795 | echo "$as_me:$LINENO: result: no" >&5 | ||
17796 | echo "${ECHO_T}no" >&6 | ||
17797 | fi | ||
17798 | ;; | ||
17799 | *) | ||
17800 | echo "$as_me:$LINENO: result: no" >&5 | ||
17801 | echo "${ECHO_T}no" >&6 | ||
17802 | ;; | ||
17803 | esac | ||
17804 | fi | ||
17805 | |||
17806 | if test "x$enable_dlopen" != xyes; then | ||
17807 | enable_dlopen=unknown | ||
17808 | enable_dlopen_self=unknown | ||
17809 | enable_dlopen_self_static=unknown | ||
17810 | else | ||
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 | ||
17834 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
17835 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
17836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17837 | else | ||
17838 | ac_check_lib_save_LIBS=$LIBS | ||
17839 | LIBS="-ldl $LIBS" | ||
17840 | cat >conftest.$ac_ext <<_ACEOF | ||
17841 | /* confdefs.h. */ | ||
17842 | _ACEOF | ||
17843 | cat confdefs.h >>conftest.$ac_ext | ||
17844 | cat >>conftest.$ac_ext <<_ACEOF | ||
17845 | /* end confdefs.h. */ | ||
17846 | |||
17847 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
17848 | #ifdef __cplusplus | ||
17849 | extern "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. */ | ||
17853 | char dlopen (); | ||
17854 | int | ||
17855 | main () | ||
17856 | { | ||
17857 | dlopen (); | ||
17858 | ; | ||
17859 | return 0; | ||
17860 | } | ||
17861 | _ACEOF | ||
17862 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17863 | if { (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 | ||
17884 | else | ||
17885 | echo "$as_me: failed program was:" >&5 | ||
17886 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17887 | |||
17888 | ac_cv_lib_dl_dlopen=no | ||
17889 | fi | ||
17890 | rm -f conftest.err conftest.$ac_objext \ | ||
17891 | conftest$ac_exeext conftest.$ac_ext | ||
17892 | LIBS=$ac_check_lib_save_LIBS | ||
17893 | fi | ||
17894 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
17895 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
17896 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
17897 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
17898 | else | ||
17899 | |||
17900 | lt_cv_dlopen="dyld" | ||
17901 | lt_cv_dlopen_libs= | ||
17902 | lt_cv_dlopen_self=yes | ||
17903 | |||
17904 | fi | ||
17905 | |||
17906 | ;; | ||
17907 | |||
17908 | *) | ||
17909 | echo "$as_me:$LINENO: checking for shl_load" >&5 | ||
17910 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | ||
17911 | if test "${ac_cv_func_shl_load+set}" = set; then | ||
17912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17913 | else | ||
17914 | cat >conftest.$ac_ext <<_ACEOF | ||
17915 | /* confdefs.h. */ | ||
17916 | _ACEOF | ||
17917 | cat confdefs.h >>conftest.$ac_ext | ||
17918 | cat >>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 | ||
17939 | extern "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. */ | ||
17944 | char 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) | ||
17949 | choke me | ||
17950 | #else | ||
17951 | char (*f) () = shl_load; | ||
17952 | #endif | ||
17953 | #ifdef __cplusplus | ||
17954 | } | ||
17955 | #endif | ||
17956 | |||
17957 | int | ||
17958 | main () | ||
17959 | { | ||
17960 | return f != shl_load; | ||
17961 | ; | ||
17962 | return 0; | ||
17963 | } | ||
17964 | _ACEOF | ||
17965 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17966 | if { (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 | ||
17987 | else | ||
17988 | echo "$as_me: failed program was:" >&5 | ||
17989 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17990 | |||
17991 | ac_cv_func_shl_load=no | ||
17992 | fi | ||
17993 | rm -f conftest.err conftest.$ac_objext \ | ||
17994 | conftest$ac_exeext conftest.$ac_ext | ||
17995 | fi | ||
17996 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | ||
17997 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | ||
17998 | if test $ac_cv_func_shl_load = yes; then | ||
17999 | lt_cv_dlopen="shl_load" | ||
18000 | else | ||
18001 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | ||
18002 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | ||
18003 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | ||
18004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18005 | else | ||
18006 | ac_check_lib_save_LIBS=$LIBS | ||
18007 | LIBS="-ldld $LIBS" | ||
18008 | cat >conftest.$ac_ext <<_ACEOF | ||
18009 | /* confdefs.h. */ | ||
18010 | _ACEOF | ||
18011 | cat confdefs.h >>conftest.$ac_ext | ||
18012 | cat >>conftest.$ac_ext <<_ACEOF | ||
18013 | /* end confdefs.h. */ | ||
18014 | |||
18015 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
18016 | #ifdef __cplusplus | ||
18017 | extern "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. */ | ||
18021 | char shl_load (); | ||
18022 | int | ||
18023 | main () | ||
18024 | { | ||
18025 | shl_load (); | ||
18026 | ; | ||
18027 | return 0; | ||
18028 | } | ||
18029 | _ACEOF | ||
18030 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18031 | if { (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 | ||
18052 | else | ||
18053 | echo "$as_me: failed program was:" >&5 | ||
18054 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18055 | |||
18056 | ac_cv_lib_dld_shl_load=no | ||
18057 | fi | ||
18058 | rm -f conftest.err conftest.$ac_objext \ | ||
18059 | conftest$ac_exeext conftest.$ac_ext | ||
18060 | LIBS=$ac_check_lib_save_LIBS | ||
18061 | fi | ||
18062 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | ||
18063 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | ||
18064 | if test $ac_cv_lib_dld_shl_load = yes; then | ||
18065 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | ||
18066 | else | ||
18067 | echo "$as_me:$LINENO: checking for dlopen" >&5 | ||
18068 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | ||
18069 | if test "${ac_cv_func_dlopen+set}" = set; then | ||
18070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18071 | else | ||
18072 | cat >conftest.$ac_ext <<_ACEOF | ||
18073 | /* confdefs.h. */ | ||
18074 | _ACEOF | ||
18075 | cat confdefs.h >>conftest.$ac_ext | ||
18076 | cat >>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 | ||
18097 | extern "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. */ | ||
18102 | char 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) | ||
18107 | choke me | ||
18108 | #else | ||
18109 | char (*f) () = dlopen; | ||
18110 | #endif | ||
18111 | #ifdef __cplusplus | ||
18112 | } | ||
18113 | #endif | ||
18114 | |||
18115 | int | ||
18116 | main () | ||
18117 | { | ||
18118 | return f != dlopen; | ||
18119 | ; | ||
18120 | return 0; | ||
18121 | } | ||
18122 | _ACEOF | ||
18123 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18124 | if { (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 | ||
18145 | else | ||
18146 | echo "$as_me: failed program was:" >&5 | ||
18147 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18148 | |||
18149 | ac_cv_func_dlopen=no | ||
18150 | fi | ||
18151 | rm -f conftest.err conftest.$ac_objext \ | ||
18152 | conftest$ac_exeext conftest.$ac_ext | ||
18153 | fi | ||
18154 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | ||
18155 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | ||
18156 | if test $ac_cv_func_dlopen = yes; then | ||
18157 | lt_cv_dlopen="dlopen" | ||
18158 | else | ||
18159 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
18160 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
18161 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
18162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18163 | else | ||
18164 | ac_check_lib_save_LIBS=$LIBS | ||
18165 | LIBS="-ldl $LIBS" | ||
18166 | cat >conftest.$ac_ext <<_ACEOF | ||
18167 | /* confdefs.h. */ | ||
18168 | _ACEOF | ||
18169 | cat confdefs.h >>conftest.$ac_ext | ||
18170 | cat >>conftest.$ac_ext <<_ACEOF | ||
18171 | /* end confdefs.h. */ | ||
18172 | |||
18173 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
18174 | #ifdef __cplusplus | ||
18175 | extern "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. */ | ||
18179 | char dlopen (); | ||
18180 | int | ||
18181 | main () | ||
18182 | { | ||
18183 | dlopen (); | ||
18184 | ; | ||
18185 | return 0; | ||
18186 | } | ||
18187 | _ACEOF | ||
18188 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18189 | if { (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 | ||
18210 | else | ||
18211 | echo "$as_me: failed program was:" >&5 | ||
18212 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18213 | |||
18214 | ac_cv_lib_dl_dlopen=no | ||
18215 | fi | ||
18216 | rm -f conftest.err conftest.$ac_objext \ | ||
18217 | conftest$ac_exeext conftest.$ac_ext | ||
18218 | LIBS=$ac_check_lib_save_LIBS | ||
18219 | fi | ||
18220 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
18221 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
18222 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
18223 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
18224 | else | ||
18225 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | ||
18226 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | ||
18227 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | ||
18228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18229 | else | ||
18230 | ac_check_lib_save_LIBS=$LIBS | ||
18231 | LIBS="-lsvld $LIBS" | ||
18232 | cat >conftest.$ac_ext <<_ACEOF | ||
18233 | /* confdefs.h. */ | ||
18234 | _ACEOF | ||
18235 | cat confdefs.h >>conftest.$ac_ext | ||
18236 | cat >>conftest.$ac_ext <<_ACEOF | ||
18237 | /* end confdefs.h. */ | ||
18238 | |||
18239 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
18240 | #ifdef __cplusplus | ||
18241 | extern "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. */ | ||
18245 | char dlopen (); | ||
18246 | int | ||
18247 | main () | ||
18248 | { | ||
18249 | dlopen (); | ||
18250 | ; | ||
18251 | return 0; | ||
18252 | } | ||
18253 | _ACEOF | ||
18254 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18255 | if { (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 | ||
18276 | else | ||
18277 | echo "$as_me: failed program was:" >&5 | ||
18278 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18279 | |||
18280 | ac_cv_lib_svld_dlopen=no | ||
18281 | fi | ||
18282 | rm -f conftest.err conftest.$ac_objext \ | ||
18283 | conftest$ac_exeext conftest.$ac_ext | ||
18284 | LIBS=$ac_check_lib_save_LIBS | ||
18285 | fi | ||
18286 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | ||
18287 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | ||
18288 | if test $ac_cv_lib_svld_dlopen = yes; then | ||
18289 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | ||
18290 | else | ||
18291 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | ||
18292 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | ||
18293 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | ||
18294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18295 | else | ||
18296 | ac_check_lib_save_LIBS=$LIBS | ||
18297 | LIBS="-ldld $LIBS" | ||
18298 | cat >conftest.$ac_ext <<_ACEOF | ||
18299 | /* confdefs.h. */ | ||
18300 | _ACEOF | ||
18301 | cat confdefs.h >>conftest.$ac_ext | ||
18302 | cat >>conftest.$ac_ext <<_ACEOF | ||
18303 | /* end confdefs.h. */ | ||
18304 | |||
18305 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
18306 | #ifdef __cplusplus | ||
18307 | extern "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. */ | ||
18311 | char dld_link (); | ||
18312 | int | ||
18313 | main () | ||
18314 | { | ||
18315 | dld_link (); | ||
18316 | ; | ||
18317 | return 0; | ||
18318 | } | ||
18319 | _ACEOF | ||
18320 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18321 | if { (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 | ||
18342 | else | ||
18343 | echo "$as_me: failed program was:" >&5 | ||
18344 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18345 | |||
18346 | ac_cv_lib_dld_dld_link=no | ||
18347 | fi | ||
18348 | rm -f conftest.err conftest.$ac_objext \ | ||
18349 | conftest$ac_exeext conftest.$ac_ext | ||
18350 | LIBS=$ac_check_lib_save_LIBS | ||
18351 | fi | ||
18352 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | ||
18353 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | ||
18354 | if test $ac_cv_lib_dld_dld_link = yes; then | ||
18355 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | ||
18356 | fi | ||
18357 | |||
18358 | |||
18359 | fi | ||
18360 | |||
18361 | |||
18362 | fi | ||
18363 | |||
18364 | |||
18365 | fi | ||
18366 | |||
18367 | |||
18368 | fi | ||
18369 | |||
18370 | |||
18371 | fi | ||
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 | ||
18394 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | ||
18395 | if test "${lt_cv_dlopen_self+set}" = set; then | ||
18396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18397 | else | ||
18398 | if test "$cross_compiling" = yes; then : | ||
18399 | lt_cv_dlopen_self=cross | ||
18400 | else | ||
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 | ||
18446 | extern "C" void exit (int); | ||
18447 | #endif | ||
18448 | |||
18449 | void fnord() { int i=42;} | ||
18450 | int 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 | } | ||
18464 | EOF | ||
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 | ||
18481 | fi | ||
18482 | rm -fr conftest* | ||
18483 | |||
18484 | |||
18485 | fi | ||
18486 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | ||
18487 | echo "${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 | ||
18492 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | ||
18493 | if test "${lt_cv_dlopen_self_static+set}" = set; then | ||
18494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18495 | else | ||
18496 | if test "$cross_compiling" = yes; then : | ||
18497 | lt_cv_dlopen_self_static=cross | ||
18498 | else | ||
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 | ||
18544 | extern "C" void exit (int); | ||
18545 | #endif | ||
18546 | |||
18547 | void fnord() { int i=42;} | ||
18548 | int 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 | } | ||
18562 | EOF | ||
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 | ||
18579 | fi | ||
18580 | rm -fr conftest* | ||
18581 | |||
18582 | |||
18583 | fi | ||
18584 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | ||
18585 | echo "${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 | ||
18603 | fi | ||
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. |
18718 | host_alias=$host_alias | 19354 | host_alias=$host_alias |
18719 | host=$host | 19355 | host=$host |
19356 | host_os=$host_os | ||
19357 | |||
19358 | # The build system. | ||
19359 | build_alias=$build_alias | ||
19360 | build=$build | ||
19361 | build_os=$build_os | ||
18720 | 19362 | ||
18721 | # An echo program that does not interpret backslashes. | 19363 | # An echo program that does not interpret backslashes. |
18722 | echo=$lt_echo | 19364 | echo=$lt_echo |
@@ -18728,6 +19370,9 @@ AR_FLAGS=$lt_AR_FLAGS | |||
18728 | # A C compiler. | 19370 | # A C compiler. |
18729 | LTCC=$lt_LTCC | 19371 | LTCC=$lt_LTCC |
18730 | 19372 | ||
19373 | # LTCC compiler flags. | ||
19374 | LTCFLAGS=$lt_LTCFLAGS | ||
19375 | |||
18731 | # A language-specific compiler. | 19376 | # A language-specific compiler. |
18732 | CC=$lt_compiler_GCJ | 19377 | CC=$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? |
18794 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | 19439 | compiler_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? |
18797 | need_locks=$lt_need_locks | 19442 | need_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. |
19023 | ac_ext=rc | 19667 | ac_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. |
19038 | LTCC=${LTCC-"$CC"} | 19682 | LTCC=${LTCC-"$CC"} |
19039 | 19683 | ||
19684 | # If no C compiler flags were specified, use CFLAGS. | ||
19685 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
19686 | |||
19040 | # Allow CC to be a program name with arguments. | 19687 | # Allow CC to be a program name with arguments. |
19041 | compiler=$CC | 19688 | compiler=$CC |
19042 | 19689 | ||
19043 | 19690 | ||
19691 | # save warnings/boilerplate of simple test code | ||
19692 | ac_outfile=conftest.$ac_objext | ||
19693 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
19694 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
19695 | _lt_compiler_boilerplate=`cat conftest.err` | ||
19696 | $rm conftest* | ||
19697 | |||
19698 | ac_outfile=conftest.$ac_objext | ||
19699 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | ||
19700 | eval "$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. |
19045 | lt_save_CC="$CC" | 19706 | lt_save_CC="$CC" |
19046 | CC=${RC-"windres"} | 19707 | CC=${RC-"windres"} |
19047 | compiler=$CC | 19708 | compiler=$CC |
19048 | compiler_RC=$CC | 19709 | compiler_RC=$CC |
19710 | for 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 | ||
19717 | done | ||
19718 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
19719 | |||
19049 | lt_cv_prog_compiler_c_o_RC=yes | 19720 | lt_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. |
19163 | host_alias=$host_alias | 19834 | host_alias=$host_alias |
19164 | host=$host | 19835 | host=$host |
19836 | host_os=$host_os | ||
19837 | |||
19838 | # The build system. | ||
19839 | build_alias=$build_alias | ||
19840 | build=$build | ||
19841 | build_os=$build_os | ||
19165 | 19842 | ||
19166 | # An echo program that does not interpret backslashes. | 19843 | # An echo program that does not interpret backslashes. |
19167 | echo=$lt_echo | 19844 | echo=$lt_echo |
@@ -19173,6 +19850,9 @@ AR_FLAGS=$lt_AR_FLAGS | |||
19173 | # A C compiler. | 19850 | # A C compiler. |
19174 | LTCC=$lt_LTCC | 19851 | LTCC=$lt_LTCC |
19175 | 19852 | ||
19853 | # LTCC compiler flags. | ||
19854 | LTCFLAGS=$lt_LTCFLAGS | ||
19855 | |||
19176 | # A language-specific compiler. | 19856 | # A language-specific compiler. |
19177 | CC=$lt_compiler_RC | 19857 | CC=$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? |
19239 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | 19919 | compiler_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? |
19242 | need_locks=$lt_need_locks | 19922 | need_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' | |||
19523 | ac_header_dirent=no | 20203 | ac_header_dirent=no |
19524 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | 20204 | for 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` |
19526 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | 20206 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
19527 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | 20207 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
19528 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 20208 | if { 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 |
19530 | else | 20210 | else |
19531 | cat >conftest.$ac_ext <<_ACEOF | 20211 | cat >conftest.$ac_ext <<_ACEOF |
@@ -19547,23 +20227,36 @@ return 0; | |||
19547 | } | 20227 | } |
19548 | _ACEOF | 20228 | _ACEOF |
19549 | rm -f conftest.$ac_objext | 20229 | rm -f conftest.$ac_objext |
19550 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 20230 | if { (ac_try="$ac_compile" |
19551 | (eval $ac_compile) 2>conftest.er1 | 20231 | case "(($ac_try" in |
20232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20233 | *) ac_try_echo=$ac_try;; | ||
20234 | esac | ||
20235 | eval "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;; | ||
20247 | esac | ||
20248 | eval "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;; | ||
20257 | esac | ||
20258 | eval "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 |
19573 | sed 's/^/| /' conftest.$ac_ext >&5 | 20266 | sed 's/^/| /' conftest.$ac_ext >&5 |
19574 | 20267 | ||
19575 | eval "$as_ac_Header=no" | 20268 | eval "$as_ac_Header=no" |
19576 | fi | 20269 | fi |
19577 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 20270 | |
20271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19578 | fi | 20272 | fi |
19579 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 20273 | ac_res=`eval echo '${'$as_ac_Header'}'` |
19580 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 20274 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
20275 | echo "${ECHO_T}$ac_res" >&6; } | ||
19581 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 20276 | if 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 | |||
19589 | done | 20284 | done |
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. |
19591 | if test $ac_header_dirent = dirent.h; then | 20286 | if 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 |
19593 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | 20288 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
19594 | if test "${ac_cv_search_opendir+set}" = set; then | 20289 | if test "${ac_cv_search_opendir+set}" = set; then |
19595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 20290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19596 | else | 20291 | else |
19597 | ac_func_search_save_LIBS=$LIBS | 20292 | ac_func_search_save_LIBS=$LIBS |
19598 | ac_cv_search_opendir=no | ||
19599 | cat >conftest.$ac_ext <<_ACEOF | 20293 | cat >conftest.$ac_ext <<_ACEOF |
19600 | /* confdefs.h. */ | 20294 | /* confdefs.h. */ |
19601 | _ACEOF | 20295 | _ACEOF |
@@ -19603,124 +20297,99 @@ cat confdefs.h >>conftest.$ac_ext | |||
19603 | cat >>conftest.$ac_ext <<_ACEOF | 20297 | cat >>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 |
19608 | extern "C" | 20304 | extern "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. */ | ||
19612 | char opendir (); | 20306 | char opendir (); |
19613 | int | 20307 | int |
19614 | main () | 20308 | main () |
19615 | { | 20309 | { |
19616 | opendir (); | 20310 | return opendir (); |
19617 | ; | 20311 | ; |
19618 | return 0; | 20312 | return 0; |
19619 | } | 20313 | } |
19620 | _ACEOF | 20314 | _ACEOF |
19621 | rm -f conftest.$ac_objext conftest$ac_exeext | 20315 | for ac_lib in '' dir; do |
19622 | if { (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 | ||
20323 | if { (ac_try="$ac_link" | ||
20324 | case "(($ac_try" in | ||
20325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20326 | *) ac_try_echo=$ac_try;; | ||
20327 | esac | ||
20328 | eval "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;; | ||
20340 | esac | ||
20341 | eval "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;; | ||
20350 | esac | ||
20351 | eval "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 |
19643 | else | 20357 | else |
19644 | echo "$as_me: failed program was:" >&5 | 20358 | echo "$as_me: failed program was:" >&5 |
19645 | sed 's/^/| /' conftest.$ac_ext >&5 | 20359 | sed 's/^/| /' conftest.$ac_ext >&5 |
19646 | 20360 | ||
19647 | fi | ||
19648 | rm -f conftest.err conftest.$ac_objext \ | ||
19649 | conftest$ac_exeext conftest.$ac_ext | ||
19650 | if 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 | ||
19656 | cat confdefs.h >>conftest.$ac_ext | ||
19657 | cat >>conftest.$ac_ext <<_ACEOF | ||
19658 | /* end confdefs.h. */ | ||
19659 | 20361 | ||
19660 | /* Override any gcc2 internal prototype to avoid an error. */ | 20362 | fi |
19661 | #ifdef __cplusplus | ||
19662 | extern "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. */ | ||
19666 | char opendir (); | ||
19667 | int | ||
19668 | main () | ||
19669 | { | ||
19670 | opendir (); | ||
19671 | ; | ||
19672 | return 0; | ||
19673 | } | ||
19674 | _ACEOF | ||
19675 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19676 | if { (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" | ||
19697 | break | ||
19698 | else | ||
19699 | echo "$as_me: failed program was:" >&5 | ||
19700 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19701 | 20363 | ||
20364 | rm -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 | ||
19702 | fi | 20368 | fi |
19703 | rm -f conftest.err conftest.$ac_objext \ | 20369 | done |
19704 | conftest$ac_exeext conftest.$ac_ext | 20370 | if test "${ac_cv_search_opendir+set}" = set; then |
19705 | done | 20371 | : |
20372 | else | ||
20373 | ac_cv_search_opendir=no | ||
19706 | fi | 20374 | fi |
20375 | rm conftest.$ac_ext | ||
19707 | LIBS=$ac_func_search_save_LIBS | 20376 | LIBS=$ac_func_search_save_LIBS |
19708 | fi | 20377 | fi |
19709 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 20378 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
19710 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | 20379 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
19711 | if test "$ac_cv_search_opendir" != no; then | 20380 | ac_res=$ac_cv_search_opendir |
19712 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | 20381 | if test "$ac_res" != no; then |
20382 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
19713 | 20383 | ||
19714 | fi | 20384 | fi |
19715 | 20385 | ||
19716 | else | 20386 | else |
19717 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 | 20387 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
19718 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | 20388 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
19719 | if test "${ac_cv_search_opendir+set}" = set; then | 20389 | if test "${ac_cv_search_opendir+set}" = set; then |
19720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 20390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19721 | else | 20391 | else |
19722 | ac_func_search_save_LIBS=$LIBS | 20392 | ac_func_search_save_LIBS=$LIBS |
19723 | ac_cv_search_opendir=no | ||
19724 | cat >conftest.$ac_ext <<_ACEOF | 20393 | cat >conftest.$ac_ext <<_ACEOF |
19725 | /* confdefs.h. */ | 20394 | /* confdefs.h. */ |
19726 | _ACEOF | 20395 | _ACEOF |
@@ -19728,123 +20397,99 @@ cat confdefs.h >>conftest.$ac_ext | |||
19728 | cat >>conftest.$ac_ext <<_ACEOF | 20397 | cat >>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 |
19733 | extern "C" | 20404 | extern "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. */ | ||
19737 | char opendir (); | 20406 | char opendir (); |
19738 | int | 20407 | int |
19739 | main () | 20408 | main () |
19740 | { | 20409 | { |
19741 | opendir (); | 20410 | return opendir (); |
19742 | ; | 20411 | ; |
19743 | return 0; | 20412 | return 0; |
19744 | } | 20413 | } |
19745 | _ACEOF | 20414 | _ACEOF |
19746 | rm -f conftest.$ac_objext conftest$ac_exeext | 20415 | for ac_lib in '' x; do |
19747 | if { (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 | ||
20423 | if { (ac_try="$ac_link" | ||
20424 | case "(($ac_try" in | ||
20425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20426 | *) ac_try_echo=$ac_try;; | ||
20427 | esac | ||
20428 | eval "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;; | ||
20440 | esac | ||
20441 | eval "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;; | ||
20450 | esac | ||
20451 | eval "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 |
19768 | else | 20457 | else |
19769 | echo "$as_me: failed program was:" >&5 | 20458 | echo "$as_me: failed program was:" >&5 |
19770 | sed 's/^/| /' conftest.$ac_ext >&5 | 20459 | sed 's/^/| /' conftest.$ac_ext >&5 |
19771 | 20460 | ||
19772 | fi | ||
19773 | rm -f conftest.err conftest.$ac_objext \ | ||
19774 | conftest$ac_exeext conftest.$ac_ext | ||
19775 | if 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 | ||
19781 | cat confdefs.h >>conftest.$ac_ext | ||
19782 | cat >>conftest.$ac_ext <<_ACEOF | ||
19783 | /* end confdefs.h. */ | ||
19784 | 20461 | ||
19785 | /* Override any gcc2 internal prototype to avoid an error. */ | 20462 | fi |
19786 | #ifdef __cplusplus | ||
19787 | extern "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. */ | ||
19791 | char opendir (); | ||
19792 | int | ||
19793 | main () | ||
19794 | { | ||
19795 | opendir (); | ||
19796 | ; | ||
19797 | return 0; | ||
19798 | } | ||
19799 | _ACEOF | ||
19800 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19801 | if { (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" | ||
19822 | break | ||
19823 | else | ||
19824 | echo "$as_me: failed program was:" >&5 | ||
19825 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19826 | 20463 | ||
20464 | rm -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 | ||
19827 | fi | 20468 | fi |
19828 | rm -f conftest.err conftest.$ac_objext \ | 20469 | done |
19829 | conftest$ac_exeext conftest.$ac_ext | 20470 | if test "${ac_cv_search_opendir+set}" = set; then |
19830 | done | 20471 | : |
20472 | else | ||
20473 | ac_cv_search_opendir=no | ||
19831 | fi | 20474 | fi |
20475 | rm conftest.$ac_ext | ||
19832 | LIBS=$ac_func_search_save_LIBS | 20476 | LIBS=$ac_func_search_save_LIBS |
19833 | fi | 20477 | fi |
19834 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 20478 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
19835 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | 20479 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
19836 | if test "$ac_cv_search_opendir" != no; then | 20480 | ac_res=$ac_cv_search_opendir |
19837 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | 20481 | if test "$ac_res" != no; then |
20482 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
19838 | 20483 | ||
19839 | fi | 20484 | fi |
19840 | 20485 | ||
19841 | fi | 20486 | fi |
19842 | 20487 | ||
19843 | # Check whether --enable-ltdl-install or --disable-ltdl-install was given. | 20488 | # Check whether --enable-ltdl-install was given. |
19844 | if test "${enable_ltdl_install+set}" = set; then | 20489 | if test "${enable_ltdl_install+set}" = set; then |
19845 | enableval="$enable_ltdl_install" | 20490 | enableval=$enable_ltdl_install; |
20491 | fi | ||
19846 | 20492 | ||
19847 | fi; | ||
19848 | 20493 | ||
19849 | 20494 | ||
19850 | 20495 | ||
@@ -19868,8 +20513,8 @@ fi | |||
19868 | 20513 | ||
19869 | 20514 | ||
19870 | 20515 | ||
19871 | echo "$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 |
19872 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6 | 20517 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } |
19873 | if test "${libltdl_cv_shlibext+set}" = set; then | 20518 | if test "${libltdl_cv_shlibext+set}" = set; then |
19874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 20519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19875 | else | 20520 | else |
@@ -19878,8 +20523,8 @@ module=yes | |||
19878 | eval libltdl_cv_shlibext=$shrext_cmds | 20523 | eval libltdl_cv_shlibext=$shrext_cmds |
19879 | 20524 | ||
19880 | fi | 20525 | fi |
19881 | echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 | 20526 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
19882 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6 | 20527 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
19883 | if test -n "$libltdl_cv_shlibext"; then | 20528 | if test -n "$libltdl_cv_shlibext"; then |
19884 | 20529 | ||
19885 | cat >>confdefs.h <<_ACEOF | 20530 | cat >>confdefs.h <<_ACEOF |
@@ -19889,15 +20534,15 @@ _ACEOF | |||
19889 | fi | 20534 | fi |
19890 | 20535 | ||
19891 | 20536 | ||
19892 | echo "$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 |
19893 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6 | 20538 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } |
19894 | if test "${libltdl_cv_shlibpath_var+set}" = set; then | 20539 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
19895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 20540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19896 | else | 20541 | else |
19897 | libltdl_cv_shlibpath_var="$shlibpath_var" | 20542 | libltdl_cv_shlibpath_var="$shlibpath_var" |
19898 | fi | 20543 | fi |
19899 | echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 | 20544 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
19900 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6 | 20545 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
19901 | if test -n "$libltdl_cv_shlibpath_var"; then | 20546 | if test -n "$libltdl_cv_shlibpath_var"; then |
19902 | 20547 | ||
19903 | cat >>confdefs.h <<_ACEOF | 20548 | cat >>confdefs.h <<_ACEOF |
@@ -19907,15 +20552,15 @@ _ACEOF | |||
19907 | fi | 20552 | fi |
19908 | 20553 | ||
19909 | 20554 | ||
19910 | echo "$as_me:$LINENO: checking for the default library search path" >&5 | 20555 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
19911 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6 | 20556 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } |
19912 | if test "${libltdl_cv_sys_search_path+set}" = set; then | 20557 | if 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 |
19914 | else | 20559 | else |
19915 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" | 20560 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
19916 | fi | 20561 | fi |
19917 | echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 | 20562 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
19918 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6 | 20563 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
19919 | if test -n "$libltdl_cv_sys_search_path"; then | 20564 | if 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 | ||
19933 | fi | 20578 | fi |
19934 | 20579 | ||
19935 | echo "$as_me:$LINENO: checking for objdir" >&5 | 20580 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
19936 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | 20581 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
19937 | if test "${libltdl_cv_objdir+set}" = set; then | 20582 | if test "${libltdl_cv_objdir+set}" = set; then |
19938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 20583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19939 | else | 20584 | else |
@@ -19953,8 +20598,8 @@ else | |||
19953 | fi | 20598 | fi |
19954 | 20599 | ||
19955 | fi | 20600 | fi |
19956 | echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 | 20601 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
19957 | echo "${ECHO_T}$libltdl_cv_objdir" >&6 | 20602 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
19958 | 20603 | ||
19959 | cat >>confdefs.h <<_ACEOF | 20604 | cat >>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 | ||
19965 | echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 | 20610 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
19966 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6 | 20611 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
19967 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then | 20612 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
19968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 20613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19969 | else | 20614 | else |
@@ -19974,8 +20619,8 @@ else | |||
19974 | fi | 20619 | fi |
19975 | 20620 | ||
19976 | fi | 20621 | fi |
19977 | echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 | 20622 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
19978 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6 | 20623 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
19979 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then | 20624 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
19980 | 20625 | ||
19981 | cat >>confdefs.h <<\_ACEOF | 20626 | cat >>confdefs.h <<\_ACEOF |
@@ -19993,8 +20638,8 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | |||
19993 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 20638 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
19994 | 20639 | ||
19995 | 20640 | ||
19996 | echo "$as_me:$LINENO: checking for shl_load" >&5 | 20641 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
19997 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 20642 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
19998 | if test "${ac_cv_func_shl_load+set}" = set; then | 20643 | if 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 |
20000 | else | 20645 | else |
@@ -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 |
20026 | extern "C" | 20673 | extern "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. */ | ||
20031 | char shl_load (); | 20675 | char 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 |
20036 | choke me | 20680 | choke me |
20037 | #else | ||
20038 | char (*f) () = shl_load; | ||
20039 | #endif | ||
20040 | #ifdef __cplusplus | ||
20041 | } | ||
20042 | #endif | 20681 | #endif |
20043 | 20682 | ||
20044 | int | 20683 | int |
20045 | main () | 20684 | main () |
20046 | { | 20685 | { |
20047 | return f != shl_load; | 20686 | return shl_load (); |
20048 | ; | 20687 | ; |
20049 | return 0; | 20688 | return 0; |
20050 | } | 20689 | } |
20051 | _ACEOF | 20690 | _ACEOF |
20052 | rm -f conftest.$ac_objext conftest$ac_exeext | 20691 | rm -f conftest.$ac_objext conftest$ac_exeext |
20053 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 20692 | if { (ac_try="$ac_link" |
20054 | (eval $ac_link) 2>conftest.er1 | 20693 | case "(($ac_try" in |
20694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20695 | *) ac_try_echo=$ac_try;; | ||
20696 | esac | ||
20697 | eval "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;; | ||
20709 | esac | ||
20710 | eval "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;; | ||
20719 | esac | ||
20720 | eval "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 |
20076 | sed 's/^/| /' conftest.$ac_ext >&5 | 20728 | sed 's/^/| /' conftest.$ac_ext >&5 |
20077 | 20729 | ||
20078 | ac_cv_func_shl_load=no | 20730 | ac_cv_func_shl_load=no |
20079 | fi | 20731 | fi |
20080 | rm -f conftest.err conftest.$ac_objext \ | 20732 | |
20733 | rm -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 |
20082 | fi | 20735 | fi |
20083 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 20736 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
20084 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 20737 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
20085 | if test $ac_cv_func_shl_load = yes; then | 20738 | if test $ac_cv_func_shl_load = yes; then |
20086 | 20739 | ||
20087 | cat >>confdefs.h <<\_ACEOF | 20740 | cat >>confdefs.h <<\_ACEOF |
@@ -20089,8 +20742,8 @@ cat >>confdefs.h <<\_ACEOF | |||
20089 | _ACEOF | 20742 | _ACEOF |
20090 | 20743 | ||
20091 | else | 20744 | else |
20092 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 20745 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
20093 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 20746 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
20094 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 20747 | if 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 |
20096 | else | 20749 | else |
@@ -20103,39 +20756,52 @@ cat confdefs.h >>conftest.$ac_ext | |||
20103 | cat >>conftest.$ac_ext <<_ACEOF | 20756 | cat >>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 |
20108 | extern "C" | 20763 | extern "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. */ | ||
20112 | char shl_load (); | 20765 | char shl_load (); |
20113 | int | 20766 | int |
20114 | main () | 20767 | main () |
20115 | { | 20768 | { |
20116 | shl_load (); | 20769 | return shl_load (); |
20117 | ; | 20770 | ; |
20118 | return 0; | 20771 | return 0; |
20119 | } | 20772 | } |
20120 | _ACEOF | 20773 | _ACEOF |
20121 | rm -f conftest.$ac_objext conftest$ac_exeext | 20774 | rm -f conftest.$ac_objext conftest$ac_exeext |
20122 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 20775 | if { (ac_try="$ac_link" |
20123 | (eval $ac_link) 2>conftest.er1 | 20776 | case "(($ac_try" in |
20777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20778 | *) ac_try_echo=$ac_try;; | ||
20779 | esac | ||
20780 | eval "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;; | ||
20792 | esac | ||
20793 | eval "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;; | ||
20802 | esac | ||
20803 | eval "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 |
20145 | sed 's/^/| /' conftest.$ac_ext >&5 | 20811 | sed 's/^/| /' conftest.$ac_ext >&5 |
20146 | 20812 | ||
20147 | ac_cv_lib_dld_shl_load=no | 20813 | ac_cv_lib_dld_shl_load=no |
20148 | fi | 20814 | fi |
20149 | rm -f conftest.err conftest.$ac_objext \ | 20815 | |
20816 | rm -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 |
20151 | LIBS=$ac_check_lib_save_LIBS | 20818 | LIBS=$ac_check_lib_save_LIBS |
20152 | fi | 20819 | fi |
20153 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 20820 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
20154 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 20821 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
20155 | if test $ac_cv_lib_dld_shl_load = yes; then | 20822 | if test $ac_cv_lib_dld_shl_load = yes; then |
20156 | 20823 | ||
20157 | cat >>confdefs.h <<\_ACEOF | 20824 | cat >>confdefs.h <<\_ACEOF |
@@ -20160,8 +20827,8 @@ _ACEOF | |||
20160 | 20827 | ||
20161 | LIBADD_DL="$LIBADD_DL -ldld" | 20828 | LIBADD_DL="$LIBADD_DL -ldld" |
20162 | else | 20829 | else |
20163 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 20830 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
20164 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 20831 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
20165 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 20832 | if 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 |
20167 | else | 20834 | else |
@@ -20174,39 +20841,52 @@ cat confdefs.h >>conftest.$ac_ext | |||
20174 | cat >>conftest.$ac_ext <<_ACEOF | 20841 | cat >>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 |
20179 | extern "C" | 20848 | extern "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. */ | ||
20183 | char dlopen (); | 20850 | char dlopen (); |
20184 | int | 20851 | int |
20185 | main () | 20852 | main () |
20186 | { | 20853 | { |
20187 | dlopen (); | 20854 | return dlopen (); |
20188 | ; | 20855 | ; |
20189 | return 0; | 20856 | return 0; |
20190 | } | 20857 | } |
20191 | _ACEOF | 20858 | _ACEOF |
20192 | rm -f conftest.$ac_objext conftest$ac_exeext | 20859 | rm -f conftest.$ac_objext conftest$ac_exeext |
20193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 20860 | if { (ac_try="$ac_link" |
20194 | (eval $ac_link) 2>conftest.er1 | 20861 | case "(($ac_try" in |
20862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20863 | *) ac_try_echo=$ac_try;; | ||
20864 | esac | ||
20865 | eval "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;; | ||
20877 | esac | ||
20878 | eval "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;; | ||
20887 | esac | ||
20888 | eval "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 |
20216 | sed 's/^/| /' conftest.$ac_ext >&5 | 20896 | sed 's/^/| /' conftest.$ac_ext >&5 |
20217 | 20897 | ||
20218 | ac_cv_lib_dl_dlopen=no | 20898 | ac_cv_lib_dl_dlopen=no |
20219 | fi | 20899 | fi |
20220 | rm -f conftest.err conftest.$ac_objext \ | 20900 | |
20901 | rm -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 |
20222 | LIBS=$ac_check_lib_save_LIBS | 20903 | LIBS=$ac_check_lib_save_LIBS |
20223 | fi | 20904 | fi |
20224 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 20905 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
20225 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 20906 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
20226 | if test $ac_cv_lib_dl_dlopen = yes; then | 20907 | if test $ac_cv_lib_dl_dlopen = yes; then |
20227 | 20908 | ||
20228 | cat >>confdefs.h <<\_ACEOF | 20909 | cat >>confdefs.h <<\_ACEOF |
@@ -20250,23 +20931,36 @@ dlopen(0, 0); | |||
20250 | } | 20931 | } |
20251 | _ACEOF | 20932 | _ACEOF |
20252 | rm -f conftest.$ac_objext conftest$ac_exeext | 20933 | rm -f conftest.$ac_objext conftest$ac_exeext |
20253 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 20934 | if { (ac_try="$ac_link" |
20254 | (eval $ac_link) 2>conftest.er1 | 20935 | case "(($ac_try" in |
20936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20937 | *) ac_try_echo=$ac_try;; | ||
20938 | esac | ||
20939 | eval "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;; | ||
20951 | esac | ||
20952 | eval "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;; | ||
20961 | esac | ||
20962 | eval "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 |
20280 | sed 's/^/| /' conftest.$ac_ext >&5 | 20974 | sed 's/^/| /' conftest.$ac_ext >&5 |
20281 | 20975 | ||
20282 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 20976 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
20283 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 20977 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
20284 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 20978 | if 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 |
20286 | else | 20980 | else |
@@ -20293,39 +20987,52 @@ cat confdefs.h >>conftest.$ac_ext | |||
20293 | cat >>conftest.$ac_ext <<_ACEOF | 20987 | cat >>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 |
20298 | extern "C" | 20994 | extern "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. */ | ||
20302 | char dlopen (); | 20996 | char dlopen (); |
20303 | int | 20997 | int |
20304 | main () | 20998 | main () |
20305 | { | 20999 | { |
20306 | dlopen (); | 21000 | return dlopen (); |
20307 | ; | 21001 | ; |
20308 | return 0; | 21002 | return 0; |
20309 | } | 21003 | } |
20310 | _ACEOF | 21004 | _ACEOF |
20311 | rm -f conftest.$ac_objext conftest$ac_exeext | 21005 | rm -f conftest.$ac_objext conftest$ac_exeext |
20312 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 21006 | if { (ac_try="$ac_link" |
20313 | (eval $ac_link) 2>conftest.er1 | 21007 | case "(($ac_try" in |
21008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21009 | *) ac_try_echo=$ac_try;; | ||
21010 | esac | ||
21011 | eval "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;; | ||
21023 | esac | ||
21024 | eval "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;; | ||
21033 | esac | ||
21034 | eval "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 |
20335 | sed 's/^/| /' conftest.$ac_ext >&5 | 21042 | sed 's/^/| /' conftest.$ac_ext >&5 |
20336 | 21043 | ||
20337 | ac_cv_lib_svld_dlopen=no | 21044 | ac_cv_lib_svld_dlopen=no |
20338 | fi | 21045 | fi |
20339 | rm -f conftest.err conftest.$ac_objext \ | 21046 | |
21047 | rm -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 |
20341 | LIBS=$ac_check_lib_save_LIBS | 21049 | LIBS=$ac_check_lib_save_LIBS |
20342 | fi | 21050 | fi |
20343 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 21051 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
20344 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 21052 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
20345 | if test $ac_cv_lib_svld_dlopen = yes; then | 21053 | if test $ac_cv_lib_svld_dlopen = yes; then |
20346 | 21054 | ||
20347 | cat >>confdefs.h <<\_ACEOF | 21055 | cat >>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" |
20352 | else | 21060 | else |
20353 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 21061 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
20354 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 21062 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
20355 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 21063 | if 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 |
20357 | else | 21065 | else |
@@ -20364,39 +21072,52 @@ cat confdefs.h >>conftest.$ac_ext | |||
20364 | cat >>conftest.$ac_ext <<_ACEOF | 21072 | cat >>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 |
20369 | extern "C" | 21079 | extern "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. */ | ||
20373 | char dld_link (); | 21081 | char dld_link (); |
20374 | int | 21082 | int |
20375 | main () | 21083 | main () |
20376 | { | 21084 | { |
20377 | dld_link (); | 21085 | return dld_link (); |
20378 | ; | 21086 | ; |
20379 | return 0; | 21087 | return 0; |
20380 | } | 21088 | } |
20381 | _ACEOF | 21089 | _ACEOF |
20382 | rm -f conftest.$ac_objext conftest$ac_exeext | 21090 | rm -f conftest.$ac_objext conftest$ac_exeext |
20383 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 21091 | if { (ac_try="$ac_link" |
20384 | (eval $ac_link) 2>conftest.er1 | 21092 | case "(($ac_try" in |
21093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21094 | *) ac_try_echo=$ac_try;; | ||
21095 | esac | ||
21096 | eval "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;; | ||
21108 | esac | ||
21109 | eval "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;; | ||
21118 | esac | ||
21119 | eval "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 |
20406 | sed 's/^/| /' conftest.$ac_ext >&5 | 21127 | sed 's/^/| /' conftest.$ac_ext >&5 |
20407 | 21128 | ||
20408 | ac_cv_lib_dld_dld_link=no | 21129 | ac_cv_lib_dld_dld_link=no |
20409 | fi | 21130 | fi |
20410 | rm -f conftest.err conftest.$ac_objext \ | 21131 | |
21132 | rm -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 |
20412 | LIBS=$ac_check_lib_save_LIBS | 21134 | LIBS=$ac_check_lib_save_LIBS |
20413 | fi | 21135 | fi |
20414 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 21136 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
20415 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 21137 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
20416 | if test $ac_cv_lib_dld_dld_link = yes; then | 21138 | if test $ac_cv_lib_dld_dld_link = yes; then |
20417 | 21139 | ||
20418 | cat >>confdefs.h <<\_ACEOF | 21140 | cat >>confdefs.h <<\_ACEOF |
@@ -20421,8 +21143,8 @@ _ACEOF | |||
20421 | 21143 | ||
20422 | LIBADD_DL="$LIBADD_DL -ldld" | 21144 | LIBADD_DL="$LIBADD_DL -ldld" |
20423 | else | 21145 | else |
20424 | echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 | 21146 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
20425 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6 | 21147 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
20426 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then | 21148 | if 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 |
20428 | else | 21150 | else |
@@ -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 |
20454 | extern "C" | 21178 | extern "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. */ | ||
20459 | char _dyld_func_lookup (); | 21180 | char _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 |
20464 | choke me | 21185 | choke me |
20465 | #else | ||
20466 | char (*f) () = _dyld_func_lookup; | ||
20467 | #endif | ||
20468 | #ifdef __cplusplus | ||
20469 | } | ||
20470 | #endif | 21186 | #endif |
20471 | 21187 | ||
20472 | int | 21188 | int |
20473 | main () | 21189 | main () |
20474 | { | 21190 | { |
20475 | return f != _dyld_func_lookup; | 21191 | return _dyld_func_lookup (); |
20476 | ; | 21192 | ; |
20477 | return 0; | 21193 | return 0; |
20478 | } | 21194 | } |
20479 | _ACEOF | 21195 | _ACEOF |
20480 | rm -f conftest.$ac_objext conftest$ac_exeext | 21196 | rm -f conftest.$ac_objext conftest$ac_exeext |
20481 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 21197 | if { (ac_try="$ac_link" |
20482 | (eval $ac_link) 2>conftest.er1 | 21198 | case "(($ac_try" in |
21199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21200 | *) ac_try_echo=$ac_try;; | ||
21201 | esac | ||
21202 | eval "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;; | ||
21214 | esac | ||
21215 | eval "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;; | ||
21224 | esac | ||
21225 | eval "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 |
20504 | sed 's/^/| /' conftest.$ac_ext >&5 | 21233 | sed 's/^/| /' conftest.$ac_ext >&5 |
20505 | 21234 | ||
20506 | ac_cv_func__dyld_func_lookup=no | 21235 | ac_cv_func__dyld_func_lookup=no |
20507 | fi | 21236 | fi |
20508 | rm -f conftest.err conftest.$ac_objext \ | 21237 | |
21238 | rm -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 |
20510 | fi | 21240 | fi |
20511 | echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 | 21241 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
20512 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6 | 21242 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
20513 | if test $ac_cv_func__dyld_func_lookup = yes; then | 21243 | if test $ac_cv_func__dyld_func_lookup = yes; then |
20514 | 21244 | ||
20515 | cat >>confdefs.h <<\_ACEOF | 21245 | cat >>confdefs.h <<\_ACEOF |
@@ -20526,7 +21256,8 @@ fi | |||
20526 | 21256 | ||
20527 | 21257 | ||
20528 | fi | 21258 | fi |
20529 | rm -f conftest.err conftest.$ac_objext \ | 21259 | |
21260 | rm -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 | ||
20532 | fi | 21263 | fi |
@@ -20546,9 +21277,9 @@ then | |||
20546 | for ac_func in dlerror | 21277 | for ac_func in dlerror |
20547 | do | 21278 | do |
20548 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 21279 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
20549 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 21280 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
20550 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 21281 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
20551 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 21282 | if { 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 |
20553 | else | 21284 | else |
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 |
20579 | extern "C" | 21312 | extern "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. */ | ||
20584 | char $ac_func (); | 21314 | char $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 |
20589 | choke me | 21319 | choke me |
20590 | #else | ||
20591 | char (*f) () = $ac_func; | ||
20592 | #endif | ||
20593 | #ifdef __cplusplus | ||
20594 | } | ||
20595 | #endif | 21320 | #endif |
20596 | 21321 | ||
20597 | int | 21322 | int |
20598 | main () | 21323 | main () |
20599 | { | 21324 | { |
20600 | return f != $ac_func; | 21325 | return $ac_func (); |
20601 | ; | 21326 | ; |
20602 | return 0; | 21327 | return 0; |
20603 | } | 21328 | } |
20604 | _ACEOF | 21329 | _ACEOF |
20605 | rm -f conftest.$ac_objext conftest$ac_exeext | 21330 | rm -f conftest.$ac_objext conftest$ac_exeext |
20606 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 21331 | if { (ac_try="$ac_link" |
20607 | (eval $ac_link) 2>conftest.er1 | 21332 | case "(($ac_try" in |
21333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21334 | *) ac_try_echo=$ac_try;; | ||
21335 | esac | ||
21336 | eval "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;; | ||
21348 | esac | ||
21349 | eval "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;; | ||
21358 | esac | ||
21359 | eval "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 |
20629 | sed 's/^/| /' conftest.$ac_ext >&5 | 21367 | sed 's/^/| /' conftest.$ac_ext >&5 |
20630 | 21368 | ||
20631 | eval "$as_ac_var=no" | 21369 | eval "$as_ac_var=no" |
20632 | fi | 21370 | fi |
20633 | rm -f conftest.err conftest.$ac_objext \ | 21371 | |
21372 | rm -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 |
20635 | fi | 21374 | fi |
20636 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 21375 | ac_res=`eval echo '${'$as_ac_var'}'` |
20637 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 21376 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
21377 | echo "${ECHO_T}$ac_res" >&6; } | ||
20638 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 21378 | if 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 | ||
20656 | echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 | 21396 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
20657 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6 | 21397 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
20658 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then | 21398 | if 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 |
20660 | else | 21400 | else |
@@ -20695,15 +21435,15 @@ EOF | |||
20695 | rm -rf conftest* | 21435 | rm -rf conftest* |
20696 | 21436 | ||
20697 | fi | 21437 | fi |
20698 | echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 | 21438 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
20699 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6 | 21439 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
20700 | 21440 | ||
20701 | 21441 | ||
20702 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then | 21442 | if 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 |
20706 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6 | 21446 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } |
20707 | if test "${libltdl_cv_need_uscore+set}" = set; then | 21447 | if test "${libltdl_cv_need_uscore+set}" = set; then |
20708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 21448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20709 | else | 21449 | else |
@@ -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 | ||
20801 | fi | 21543 | fi |
20802 | echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 | 21544 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
20803 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6 | 21545 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
20804 | fi | 21546 | fi |
20805 | fi | 21547 | fi |
20806 | 21548 | ||
@@ -20813,8 +21555,8 @@ _ACEOF | |||
20813 | fi | 21555 | fi |
20814 | 21556 | ||
20815 | 21557 | ||
20816 | echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 | 21558 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
20817 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6 | 21559 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } |
20818 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then | 21560 | if 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 |
20820 | else | 21562 | else |
@@ -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 | ||
20890 | fi | 21638 | fi |
20891 | echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 | 21639 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
20892 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6 | 21640 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
20893 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then | 21641 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
20894 | 21642 | ||
20895 | cat >>confdefs.h <<\_ACEOF | 21643 | cat >>confdefs.h <<\_ACEOF |
@@ -20902,18 +21650,19 @@ fi | |||
20902 | for ac_header in argz.h | 21650 | for ac_header in argz.h |
20903 | do | 21651 | do |
20904 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 21652 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
20905 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 21653 | if { 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 |
20907 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 21655 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
20908 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 21656 | if { 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 |
20910 | fi | 21658 | fi |
20911 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 21659 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20912 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 21660 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
21661 | echo "${ECHO_T}$ac_res" >&6; } | ||
20913 | else | 21662 | else |
20914 | # Is the header compilable? | 21663 | # Is the header compilable? |
20915 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 21664 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
20916 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 21665 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
20917 | cat >conftest.$ac_ext <<_ACEOF | 21666 | cat >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 |
20926 | rm -f conftest.$ac_objext | 21675 | rm -f conftest.$ac_objext |
20927 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 21676 | if { (ac_try="$ac_compile" |
20928 | (eval $ac_compile) 2>conftest.er1 | 21677 | case "(($ac_try" in |
21678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21679 | *) ac_try_echo=$ac_try;; | ||
21680 | esac | ||
21681 | eval "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;; | ||
21693 | esac | ||
21694 | eval "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;; | ||
21703 | esac | ||
21704 | eval "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 |
20950 | sed 's/^/| /' conftest.$ac_ext >&5 | 21712 | sed 's/^/| /' conftest.$ac_ext >&5 |
20951 | 21713 | ||
20952 | ac_header_compiler=no | 21714 | ac_header_compiler=no |
20953 | fi | 21715 | fi |
20954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 21716 | |
20955 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 21717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
20956 | echo "${ECHO_T}$ac_header_compiler" >&6 | 21718 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21719 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
20957 | 21720 | ||
20958 | # Is the header present? | 21721 | # Is the header present? |
20959 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 21722 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
20960 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 21723 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
20961 | cat >conftest.$ac_ext <<_ACEOF | 21724 | cat >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 |
20969 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 21732 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
20970 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 21733 | case "(($ac_try" in |
21734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21735 | *) ac_try_echo=$ac_try;; | ||
21736 | esac | ||
21737 | eval "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 |
20993 | fi | 21761 | fi |
21762 | |||
20994 | rm -f conftest.err conftest.$ac_ext | 21763 | rm -f conftest.err conftest.$ac_ext |
20995 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 21764 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
20996 | echo "${ECHO_T}$ac_header_preproc" >&6 | 21765 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
20997 | 21766 | ||
20998 | # So? What about this header? | 21767 | # So? What about this header? |
20999 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 21768 | case $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\ | |||
21017 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 21786 | echo "$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 |
21019 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 21788 | echo "$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 | ;; |
21029 | esac | 21796 | esac |
21030 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 21797 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21031 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 21798 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
21032 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 21799 | if { 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 |
21034 | else | 21801 | else |
21035 | eval "$as_ac_Header=\$ac_header_preproc" | 21802 | eval "$as_ac_Header=\$ac_header_preproc" |
21036 | fi | 21803 | fi |
21037 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 21804 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21038 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 21805 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
21806 | echo "${ECHO_T}$ac_res" >&6; } | ||
21039 | 21807 | ||
21040 | fi | 21808 | fi |
21041 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 21809 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
@@ -21048,8 +21816,8 @@ fi | |||
21048 | done | 21816 | done |
21049 | 21817 | ||
21050 | 21818 | ||
21051 | echo "$as_me:$LINENO: checking for error_t" >&5 | 21819 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
21052 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6 | 21820 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
21053 | if test "${ac_cv_type_error_t+set}" = set; then | 21821 | if 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 |
21055 | else | 21823 | else |
@@ -21063,35 +21831,49 @@ cat >>conftest.$ac_ext <<_ACEOF | |||
21063 | # include <argz.h> | 21831 | # include <argz.h> |
21064 | #endif | 21832 | #endif |
21065 | 21833 | ||
21834 | typedef error_t ac__type_new_; | ||
21066 | int | 21835 | int |
21067 | main () | 21836 | main () |
21068 | { | 21837 | { |
21069 | if ((error_t *) 0) | 21838 | if ((ac__type_new_ *) 0) |
21070 | return 0; | 21839 | return 0; |
21071 | if (sizeof (error_t)) | 21840 | if (sizeof (ac__type_new_)) |
21072 | return 0; | 21841 | return 0; |
21073 | ; | 21842 | ; |
21074 | return 0; | 21843 | return 0; |
21075 | } | 21844 | } |
21076 | _ACEOF | 21845 | _ACEOF |
21077 | rm -f conftest.$ac_objext | 21846 | rm -f conftest.$ac_objext |
21078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 21847 | if { (ac_try="$ac_compile" |
21079 | (eval $ac_compile) 2>conftest.er1 | 21848 | case "(($ac_try" in |
21849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21850 | *) ac_try_echo=$ac_try;; | ||
21851 | esac | ||
21852 | eval "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;; | ||
21864 | esac | ||
21865 | eval "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;; | ||
21874 | esac | ||
21875 | eval "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 |
21101 | sed 's/^/| /' conftest.$ac_ext >&5 | 21883 | sed 's/^/| /' conftest.$ac_ext >&5 |
21102 | 21884 | ||
21103 | ac_cv_type_error_t=no | 21885 | ac_cv_type_error_t=no |
21104 | fi | 21886 | fi |
21105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 21887 | |
21888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21106 | fi | 21889 | fi |
21107 | echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 | 21890 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
21108 | echo "${ECHO_T}$ac_cv_type_error_t" >&6 | 21891 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
21109 | if test $ac_cv_type_error_t = yes; then | 21892 | if test $ac_cv_type_error_t = yes; then |
21110 | 21893 | ||
21111 | cat >>confdefs.h <<_ACEOF | 21894 | cat >>confdefs.h <<_ACEOF |
@@ -21130,9 +21913,9 @@ fi | |||
21130 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify | 21913 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify |
21131 | do | 21914 | do |
21132 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 21915 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
21133 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 21916 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
21134 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 21917 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
21135 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 21918 | if { 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 |
21137 | else | 21920 | else |
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 |
21163 | extern "C" | 21948 | extern "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. */ | ||
21168 | char $ac_func (); | 21950 | char $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 |
21173 | choke me | 21955 | choke me |
21174 | #else | ||
21175 | char (*f) () = $ac_func; | ||
21176 | #endif | ||
21177 | #ifdef __cplusplus | ||
21178 | } | ||
21179 | #endif | 21956 | #endif |
21180 | 21957 | ||
21181 | int | 21958 | int |
21182 | main () | 21959 | main () |
21183 | { | 21960 | { |
21184 | return f != $ac_func; | 21961 | return $ac_func (); |
21185 | ; | 21962 | ; |
21186 | return 0; | 21963 | return 0; |
21187 | } | 21964 | } |
21188 | _ACEOF | 21965 | _ACEOF |
21189 | rm -f conftest.$ac_objext conftest$ac_exeext | 21966 | rm -f conftest.$ac_objext conftest$ac_exeext |
21190 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 21967 | if { (ac_try="$ac_link" |
21191 | (eval $ac_link) 2>conftest.er1 | 21968 | case "(($ac_try" in |
21969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21970 | *) ac_try_echo=$ac_try;; | ||
21971 | esac | ||
21972 | eval "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;; | ||
21984 | esac | ||
21985 | eval "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;; | ||
21994 | esac | ||
21995 | eval "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 |
21213 | sed 's/^/| /' conftest.$ac_ext >&5 | 22003 | sed 's/^/| /' conftest.$ac_ext >&5 |
21214 | 22004 | ||
21215 | eval "$as_ac_var=no" | 22005 | eval "$as_ac_var=no" |
21216 | fi | 22006 | fi |
21217 | rm -f conftest.err conftest.$ac_objext \ | 22007 | |
22008 | rm -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 |
21219 | fi | 22010 | fi |
21220 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 22011 | ac_res=`eval echo '${'$as_ac_var'}'` |
21221 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 22012 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
22013 | echo "${ECHO_T}$ac_res" >&6; } | ||
21222 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 22014 | if 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 |
21259 | do | 22051 | do |
21260 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 22052 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
21261 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 22053 | if { 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 |
21263 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 22055 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
21264 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 22056 | if { 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 |
21266 | fi | 22058 | fi |
21267 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 22059 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21268 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 22060 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
22061 | echo "${ECHO_T}$ac_res" >&6; } | ||
21269 | else | 22062 | else |
21270 | # Is the header compilable? | 22063 | # Is the header compilable? |
21271 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 22064 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21272 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 22065 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
21273 | cat >conftest.$ac_ext <<_ACEOF | 22066 | cat >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 |
21282 | rm -f conftest.$ac_objext | 22075 | rm -f conftest.$ac_objext |
21283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 22076 | if { (ac_try="$ac_compile" |
21284 | (eval $ac_compile) 2>conftest.er1 | 22077 | case "(($ac_try" in |
22078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22079 | *) ac_try_echo=$ac_try;; | ||
22080 | esac | ||
22081 | eval "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;; | ||
22093 | esac | ||
22094 | eval "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;; | ||
22103 | esac | ||
22104 | eval "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 |
21306 | sed 's/^/| /' conftest.$ac_ext >&5 | 22112 | sed 's/^/| /' conftest.$ac_ext >&5 |
21307 | 22113 | ||
21308 | ac_header_compiler=no | 22114 | ac_header_compiler=no |
21309 | fi | 22115 | fi |
21310 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 22116 | |
21311 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 22117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21312 | echo "${ECHO_T}$ac_header_compiler" >&6 | 22118 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22119 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
21313 | 22120 | ||
21314 | # Is the header present? | 22121 | # Is the header present? |
21315 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 22122 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21316 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 22123 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
21317 | cat >conftest.$ac_ext <<_ACEOF | 22124 | cat >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 |
21325 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 22132 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21326 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 22133 | case "(($ac_try" in |
22134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22135 | *) ac_try_echo=$ac_try;; | ||
22136 | esac | ||
22137 | eval "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 |
21349 | fi | 22161 | fi |
22162 | |||
21350 | rm -f conftest.err conftest.$ac_ext | 22163 | rm -f conftest.err conftest.$ac_ext |
21351 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 22164 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21352 | echo "${ECHO_T}$ac_header_preproc" >&6 | 22165 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
21353 | 22166 | ||
21354 | # So? What about this header? | 22167 | # So? What about this header? |
21355 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 22168 | case $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\ | |||
21373 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 22186 | echo "$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 |
21375 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 22188 | echo "$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 | ;; |
21385 | esac | 22196 | esac |
21386 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 22197 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21387 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 22198 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
21388 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 22199 | if { 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 |
21390 | else | 22201 | else |
21391 | eval "$as_ac_Header=\$ac_header_preproc" | 22202 | eval "$as_ac_Header=\$ac_header_preproc" |
21392 | fi | 22203 | fi |
21393 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 22204 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21394 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 22205 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
22206 | echo "${ECHO_T}$ac_res" >&6; } | ||
21395 | 22207 | ||
21396 | fi | 22208 | fi |
21397 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 22209 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
@@ -21410,18 +22222,19 @@ done | |||
21410 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h | 22222 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h |
21411 | do | 22223 | do |
21412 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 22224 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
21413 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 22225 | if { 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 |
21415 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 22227 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
21416 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 22228 | if { 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 |
21418 | fi | 22230 | fi |
21419 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 22231 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21420 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 22232 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
22233 | echo "${ECHO_T}$ac_res" >&6; } | ||
21421 | else | 22234 | else |
21422 | # Is the header compilable? | 22235 | # Is the header compilable? |
21423 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 22236 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21424 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 22237 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
21425 | cat >conftest.$ac_ext <<_ACEOF | 22238 | cat >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 |
21434 | rm -f conftest.$ac_objext | 22247 | rm -f conftest.$ac_objext |
21435 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 22248 | if { (ac_try="$ac_compile" |
21436 | (eval $ac_compile) 2>conftest.er1 | 22249 | case "(($ac_try" in |
22250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22251 | *) ac_try_echo=$ac_try;; | ||
22252 | esac | ||
22253 | eval "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;; | ||
22265 | esac | ||
22266 | eval "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;; | ||
22275 | esac | ||
22276 | eval "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 |
21458 | sed 's/^/| /' conftest.$ac_ext >&5 | 22284 | sed 's/^/| /' conftest.$ac_ext >&5 |
21459 | 22285 | ||
21460 | ac_header_compiler=no | 22286 | ac_header_compiler=no |
21461 | fi | 22287 | fi |
21462 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 22288 | |
21463 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 22289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21464 | echo "${ECHO_T}$ac_header_compiler" >&6 | 22290 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22291 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
21465 | 22292 | ||
21466 | # Is the header present? | 22293 | # Is the header present? |
21467 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 22294 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21468 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 22295 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
21469 | cat >conftest.$ac_ext <<_ACEOF | 22296 | cat >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 |
21477 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 22304 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21478 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 22305 | case "(($ac_try" in |
22306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22307 | *) ac_try_echo=$ac_try;; | ||
22308 | esac | ||
22309 | eval "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 |
21501 | fi | 22333 | fi |
22334 | |||
21502 | rm -f conftest.err conftest.$ac_ext | 22335 | rm -f conftest.err conftest.$ac_ext |
21503 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 22336 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21504 | echo "${ECHO_T}$ac_header_preproc" >&6 | 22337 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
21505 | 22338 | ||
21506 | # So? What about this header? | 22339 | # So? What about this header? |
21507 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 22340 | case $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\ | |||
21525 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 22358 | echo "$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 |
21527 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 22360 | echo "$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 | ;; |
21537 | esac | 22368 | esac |
21538 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 22369 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21539 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 22370 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
21540 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 22371 | if { 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 |
21542 | else | 22373 | else |
21543 | eval "$as_ac_Header=\$ac_header_preproc" | 22374 | eval "$as_ac_Header=\$ac_header_preproc" |
21544 | fi | 22375 | fi |
21545 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 22376 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21546 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 22377 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
22378 | echo "${ECHO_T}$ac_res" >&6; } | ||
21547 | 22379 | ||
21548 | fi | 22380 | fi |
21549 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 22381 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
@@ -21560,18 +22392,19 @@ done | |||
21560 | for ac_header in string.h strings.h | 22392 | for ac_header in string.h strings.h |
21561 | do | 22393 | do |
21562 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 22394 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
21563 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 22395 | if { 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 |
21565 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 22397 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
21566 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 22398 | if { 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 |
21568 | fi | 22400 | fi |
21569 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 22401 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21570 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 22402 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
22403 | echo "${ECHO_T}$ac_res" >&6; } | ||
21571 | else | 22404 | else |
21572 | # Is the header compilable? | 22405 | # Is the header compilable? |
21573 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 22406 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21574 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 22407 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
21575 | cat >conftest.$ac_ext <<_ACEOF | 22408 | cat >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 |
21584 | rm -f conftest.$ac_objext | 22417 | rm -f conftest.$ac_objext |
21585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 22418 | if { (ac_try="$ac_compile" |
21586 | (eval $ac_compile) 2>conftest.er1 | 22419 | case "(($ac_try" in |
22420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22421 | *) ac_try_echo=$ac_try;; | ||
22422 | esac | ||
22423 | eval "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;; | ||
22435 | esac | ||
22436 | eval "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;; | ||
22445 | esac | ||
22446 | eval "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 |
21608 | sed 's/^/| /' conftest.$ac_ext >&5 | 22454 | sed 's/^/| /' conftest.$ac_ext >&5 |
21609 | 22455 | ||
21610 | ac_header_compiler=no | 22456 | ac_header_compiler=no |
21611 | fi | 22457 | fi |
21612 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 22458 | |
21613 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 22459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21614 | echo "${ECHO_T}$ac_header_compiler" >&6 | 22460 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22461 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
21615 | 22462 | ||
21616 | # Is the header present? | 22463 | # Is the header present? |
21617 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 22464 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21618 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 22465 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
21619 | cat >conftest.$ac_ext <<_ACEOF | 22466 | cat >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 |
21627 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 22474 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21628 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 22475 | case "(($ac_try" in |
22476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22477 | *) ac_try_echo=$ac_try;; | ||
22478 | esac | ||
22479 | eval "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 |
21651 | fi | 22503 | fi |
22504 | |||
21652 | rm -f conftest.err conftest.$ac_ext | 22505 | rm -f conftest.err conftest.$ac_ext |
21653 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 22506 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21654 | echo "${ECHO_T}$ac_header_preproc" >&6 | 22507 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
21655 | 22508 | ||
21656 | # So? What about this header? | 22509 | # So? What about this header? |
21657 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 22510 | case $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\ | |||
21675 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 22528 | echo "$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 |
21677 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 22530 | echo "$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 | ;; |
21687 | esac | 22538 | esac |
21688 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 22539 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21689 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 22540 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
21690 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 22541 | if { 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 |
21692 | else | 22543 | else |
21693 | eval "$as_ac_Header=\$ac_header_preproc" | 22544 | eval "$as_ac_Header=\$ac_header_preproc" |
21694 | fi | 22545 | fi |
21695 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 22546 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21696 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 22547 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
22548 | echo "${ECHO_T}$ac_res" >&6; } | ||
21697 | 22549 | ||
21698 | fi | 22550 | fi |
21699 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 22551 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
@@ -21711,9 +22563,9 @@ done | |||
21711 | for ac_func in strchr index | 22563 | for ac_func in strchr index |
21712 | do | 22564 | do |
21713 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 22565 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
21714 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 22566 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
21715 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 22567 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
21716 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 22568 | if { 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 |
21718 | else | 22570 | else |
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 |
21744 | extern "C" | 22598 | extern "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. */ | ||
21749 | char $ac_func (); | 22600 | char $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 |
21754 | choke me | 22605 | choke me |
21755 | #else | ||
21756 | char (*f) () = $ac_func; | ||
21757 | #endif | ||
21758 | #ifdef __cplusplus | ||
21759 | } | ||
21760 | #endif | 22606 | #endif |
21761 | 22607 | ||
21762 | int | 22608 | int |
21763 | main () | 22609 | main () |
21764 | { | 22610 | { |
21765 | return f != $ac_func; | 22611 | return $ac_func (); |
21766 | ; | 22612 | ; |
21767 | return 0; | 22613 | return 0; |
21768 | } | 22614 | } |
21769 | _ACEOF | 22615 | _ACEOF |
21770 | rm -f conftest.$ac_objext conftest$ac_exeext | 22616 | rm -f conftest.$ac_objext conftest$ac_exeext |
21771 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 22617 | if { (ac_try="$ac_link" |
21772 | (eval $ac_link) 2>conftest.er1 | 22618 | case "(($ac_try" in |
22619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22620 | *) ac_try_echo=$ac_try;; | ||
22621 | esac | ||
22622 | eval "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;; | ||
22634 | esac | ||
22635 | eval "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;; | ||
22644 | esac | ||
22645 | eval "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 |
21794 | sed 's/^/| /' conftest.$ac_ext >&5 | 22653 | sed 's/^/| /' conftest.$ac_ext >&5 |
21795 | 22654 | ||
21796 | eval "$as_ac_var=no" | 22655 | eval "$as_ac_var=no" |
21797 | fi | 22656 | fi |
21798 | rm -f conftest.err conftest.$ac_objext \ | 22657 | |
22658 | rm -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 |
21800 | fi | 22660 | fi |
21801 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 22661 | ac_res=`eval echo '${'$as_ac_var'}'` |
21802 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 22662 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
22663 | echo "${ECHO_T}$ac_res" >&6; } | ||
21803 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 22664 | if 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 | |||
21813 | for ac_func in strrchr rindex | 22674 | for ac_func in strrchr rindex |
21814 | do | 22675 | do |
21815 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 22676 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
21816 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 22677 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
21817 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 22678 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
21818 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 22679 | if { 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 |
21820 | else | 22681 | else |
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 |
21846 | extern "C" | 22709 | extern "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. */ | ||
21851 | char $ac_func (); | 22711 | char $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 |
21856 | choke me | 22716 | choke me |
21857 | #else | ||
21858 | char (*f) () = $ac_func; | ||
21859 | #endif | ||
21860 | #ifdef __cplusplus | ||
21861 | } | ||
21862 | #endif | 22717 | #endif |
21863 | 22718 | ||
21864 | int | 22719 | int |
21865 | main () | 22720 | main () |
21866 | { | 22721 | { |
21867 | return f != $ac_func; | 22722 | return $ac_func (); |
21868 | ; | 22723 | ; |
21869 | return 0; | 22724 | return 0; |
21870 | } | 22725 | } |
21871 | _ACEOF | 22726 | _ACEOF |
21872 | rm -f conftest.$ac_objext conftest$ac_exeext | 22727 | rm -f conftest.$ac_objext conftest$ac_exeext |
21873 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 22728 | if { (ac_try="$ac_link" |
21874 | (eval $ac_link) 2>conftest.er1 | 22729 | case "(($ac_try" in |
22730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22731 | *) ac_try_echo=$ac_try;; | ||
22732 | esac | ||
22733 | eval "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;; | ||
22745 | esac | ||
22746 | eval "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;; | ||
22755 | esac | ||
22756 | eval "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 |
21896 | sed 's/^/| /' conftest.$ac_ext >&5 | 22764 | sed 's/^/| /' conftest.$ac_ext >&5 |
21897 | 22765 | ||
21898 | eval "$as_ac_var=no" | 22766 | eval "$as_ac_var=no" |
21899 | fi | 22767 | fi |
21900 | rm -f conftest.err conftest.$ac_objext \ | 22768 | |
22769 | rm -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 |
21902 | fi | 22771 | fi |
21903 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 22772 | ac_res=`eval echo '${'$as_ac_var'}'` |
21904 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 22773 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
22774 | echo "${ECHO_T}$ac_res" >&6; } | ||
21905 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 22775 | if 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 | |||
21915 | for ac_func in memcpy bcopy | 22785 | for ac_func in memcpy bcopy |
21916 | do | 22786 | do |
21917 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 22787 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
21918 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 22788 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
21919 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 22789 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
21920 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 22790 | if { 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 |
21922 | else | 22792 | else |
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 |
21948 | extern "C" | 22820 | extern "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. */ | ||
21953 | char $ac_func (); | 22822 | char $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 |
21958 | choke me | 22827 | choke me |
21959 | #else | ||
21960 | char (*f) () = $ac_func; | ||
21961 | #endif | ||
21962 | #ifdef __cplusplus | ||
21963 | } | ||
21964 | #endif | 22828 | #endif |
21965 | 22829 | ||
21966 | int | 22830 | int |
21967 | main () | 22831 | main () |
21968 | { | 22832 | { |
21969 | return f != $ac_func; | 22833 | return $ac_func (); |
21970 | ; | 22834 | ; |
21971 | return 0; | 22835 | return 0; |
21972 | } | 22836 | } |
21973 | _ACEOF | 22837 | _ACEOF |
21974 | rm -f conftest.$ac_objext conftest$ac_exeext | 22838 | rm -f conftest.$ac_objext conftest$ac_exeext |
21975 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 22839 | if { (ac_try="$ac_link" |
21976 | (eval $ac_link) 2>conftest.er1 | 22840 | case "(($ac_try" in |
22841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22842 | *) ac_try_echo=$ac_try;; | ||
22843 | esac | ||
22844 | eval "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;; | ||
22856 | esac | ||
22857 | eval "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;; | ||
22866 | esac | ||
22867 | eval "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 |
21998 | sed 's/^/| /' conftest.$ac_ext >&5 | 22875 | sed 's/^/| /' conftest.$ac_ext >&5 |
21999 | 22876 | ||
22000 | eval "$as_ac_var=no" | 22877 | eval "$as_ac_var=no" |
22001 | fi | 22878 | fi |
22002 | rm -f conftest.err conftest.$ac_objext \ | 22879 | |
22880 | rm -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 |
22004 | fi | 22882 | fi |
22005 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 22883 | ac_res=`eval echo '${'$as_ac_var'}'` |
22006 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 22884 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
22885 | echo "${ECHO_T}$ac_res" >&6; } | ||
22007 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 22886 | if 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 | |||
22017 | for ac_func in memmove strcmp | 22896 | for ac_func in memmove strcmp |
22018 | do | 22897 | do |
22019 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 22898 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
22020 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 22899 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
22021 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 22900 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
22022 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 22901 | if { 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 |
22024 | else | 22903 | else |
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 |
22050 | extern "C" | 22931 | extern "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. */ | ||
22055 | char $ac_func (); | 22933 | char $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 |
22060 | choke me | 22938 | choke me |
22061 | #else | ||
22062 | char (*f) () = $ac_func; | ||
22063 | #endif | ||
22064 | #ifdef __cplusplus | ||
22065 | } | ||
22066 | #endif | 22939 | #endif |
22067 | 22940 | ||
22068 | int | 22941 | int |
22069 | main () | 22942 | main () |
22070 | { | 22943 | { |
22071 | return f != $ac_func; | 22944 | return $ac_func (); |
22072 | ; | 22945 | ; |
22073 | return 0; | 22946 | return 0; |
22074 | } | 22947 | } |
22075 | _ACEOF | 22948 | _ACEOF |
22076 | rm -f conftest.$ac_objext conftest$ac_exeext | 22949 | rm -f conftest.$ac_objext conftest$ac_exeext |
22077 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 22950 | if { (ac_try="$ac_link" |
22078 | (eval $ac_link) 2>conftest.er1 | 22951 | case "(($ac_try" in |
22952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22953 | *) ac_try_echo=$ac_try;; | ||
22954 | esac | ||
22955 | eval "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;; | ||
22967 | esac | ||
22968 | eval "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;; | ||
22977 | esac | ||
22978 | eval "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 |
22100 | sed 's/^/| /' conftest.$ac_ext >&5 | 22986 | sed 's/^/| /' conftest.$ac_ext >&5 |
22101 | 22987 | ||
22102 | eval "$as_ac_var=no" | 22988 | eval "$as_ac_var=no" |
22103 | fi | 22989 | fi |
22104 | rm -f conftest.err conftest.$ac_objext \ | 22990 | |
22991 | rm -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 |
22106 | fi | 22993 | fi |
22107 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 22994 | ac_res=`eval echo '${'$as_ac_var'}'` |
22108 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 22995 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
22996 | echo "${ECHO_T}$ac_res" >&6; } | ||
22109 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 22997 | if 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 | |||
22120 | for ac_func in closedir opendir readdir | 23008 | for ac_func in closedir opendir readdir |
22121 | do | 23009 | do |
22122 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 23010 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
22123 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 23011 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
22124 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 23012 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
22125 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 23013 | if { 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 |
22127 | else | 23015 | else |
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 |
22153 | extern "C" | 23043 | extern "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. */ | ||
22158 | char $ac_func (); | 23045 | char $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 |
22163 | choke me | 23050 | choke me |
22164 | #else | ||
22165 | char (*f) () = $ac_func; | ||
22166 | #endif | ||
22167 | #ifdef __cplusplus | ||
22168 | } | ||
22169 | #endif | 23051 | #endif |
22170 | 23052 | ||
22171 | int | 23053 | int |
22172 | main () | 23054 | main () |
22173 | { | 23055 | { |
22174 | return f != $ac_func; | 23056 | return $ac_func (); |
22175 | ; | 23057 | ; |
22176 | return 0; | 23058 | return 0; |
22177 | } | 23059 | } |
22178 | _ACEOF | 23060 | _ACEOF |
22179 | rm -f conftest.$ac_objext conftest$ac_exeext | 23061 | rm -f conftest.$ac_objext conftest$ac_exeext |
22180 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 23062 | if { (ac_try="$ac_link" |
22181 | (eval $ac_link) 2>conftest.er1 | 23063 | case "(($ac_try" in |
23064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23065 | *) ac_try_echo=$ac_try;; | ||
23066 | esac | ||
23067 | eval "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;; | ||
23079 | esac | ||
23080 | eval "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;; | ||
23089 | esac | ||
23090 | eval "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 |
22203 | sed 's/^/| /' conftest.$ac_ext >&5 | 23098 | sed 's/^/| /' conftest.$ac_ext >&5 |
22204 | 23099 | ||
22205 | eval "$as_ac_var=no" | 23100 | eval "$as_ac_var=no" |
22206 | fi | 23101 | fi |
22207 | rm -f conftest.err conftest.$ac_objext \ | 23102 | |
23103 | rm -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 |
22209 | fi | 23105 | fi |
22210 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 23106 | ac_res=`eval echo '${'$as_ac_var'}'` |
22211 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 23107 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
23108 | echo "${ECHO_T}$ac_res" >&6; } | ||
22212 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 23109 | if 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" | 23123 | ac_config_files="$ac_config_files Makefile" |
22227 | 23124 | ||
22228 | cat >confcache <<\_ACEOF | 23125 | cat >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 | ||
23153 | echo "$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 |
22273 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | 23186 | if 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 | ||
23190 | echo "$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 |
23194 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
22279 | fi | 23195 | fi |
22280 | fi | 23196 | fi |
22281 | rm -f confcache | 23197 | rm -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. |
22285 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 23201 | test "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). | ||
22291 | if test "x$srcdir" = x.; then | ||
22292 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
22293 | s/:*\$(srcdir):*/:/; | ||
22294 | s/:*\${srcdir}:*/:/; | ||
22295 | s/:*@srcdir@:*/:/; | ||
22296 | s/^\([^=]*=[ ]*\):*/\1/; | ||
22297 | s/:*$//; | ||
22298 | s/^[^=]*=[ ]*$//; | ||
22299 | }' | ||
22300 | fi | ||
22301 | |||
22302 | DEFS=-DHAVE_CONFIG_H | 23203 | DEFS=-DHAVE_CONFIG_H |
22303 | 23204 | ||
22304 | ac_libobjs= | 23205 | ac_libobjs= |
22305 | ac_ltlibobjs= | 23206 | ac_ltlibobjs= |
22306 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 23207 | for 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' | ||
22313 | done | 23215 | done |
22314 | LIBOBJS=$ac_libobjs | 23216 | LIBOBJS=$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+"$@"}'='"$@"' |
22392 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | 23294 | setopt NO_GLOB_SUBST |
22393 | set -o posix | 23295 | else |
23296 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | ||
22394 | fi | 23297 | fi |
23298 | BIN_SH=xpg4; export BIN_SH # for Tru64 | ||
22395 | DUALCASE=1; export DUALCASE # for MKS sh | 23299 | DUALCASE=1; export DUALCASE # for MKS sh |
22396 | 23300 | ||
23301 | |||
23302 | # PATH needs CR | ||
23303 | # Avoid depending upon Character Ranges. | ||
23304 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
23305 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
23306 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
23307 | as_cr_digits='0123456789' | ||
23308 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
23309 | |||
23310 | # The user is always right. | ||
23311 | if 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 | ||
23321 | fi | ||
23322 | |||
22397 | # Support unset when possible. | 23323 | # Support unset when possible. |
22398 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | 23324 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
22399 | as_unset=unset | 23325 | as_unset=unset |
@@ -22402,8 +23328,43 @@ else | |||
22402 | fi | 23328 | fi |
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.) | ||
23336 | as_nl=' | ||
23337 | ' | ||
23338 | IFS=" "" $as_nl" | ||
23339 | |||
23340 | # Find who we are. Look in the path if we contain no directory separator. | ||
23341 | case $0 in | ||
23342 | *[\\/]* ) as_myself=$0 ;; | ||
23343 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
23344 | for as_dir in $PATH | ||
23345 | do | ||
23346 | IFS=$as_save_IFS | ||
23347 | test -z "$as_dir" && as_dir=. | ||
23348 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
23349 | done | ||
23350 | IFS=$as_save_IFS | ||
23351 | |||
23352 | ;; | ||
23353 | esac | ||
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. | ||
23356 | if test "x$as_myself" = x; then | ||
23357 | as_myself=$0 | ||
23358 | fi | ||
23359 | if 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; } | ||
23362 | fi | ||
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 | 23365 | for as_var in ENV MAIL MAILPATH |
23366 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
23367 | done | ||
22407 | PS1='$ ' | 23368 | PS1='$ ' |
22408 | PS2='> ' | 23369 | PS2='> ' |
22409 | PS4='+ ' | 23370 | PS4='+ ' |
@@ -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 |
22422 | done | 23383 | done |
22423 | 23384 | ||
22424 | # Required to use basename. | 23385 | # Required to use basename. |
22425 | if expr a : '\(a\)' >/dev/null 2>&1; then | 23386 | if expr a : '\(a\)' >/dev/null 2>&1 && |
23387 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
22426 | as_expr=expr | 23388 | as_expr=expr |
22427 | else | 23389 | else |
22428 | as_expr=false | 23390 | as_expr=false |
22429 | fi | 23391 | fi |
22430 | 23392 | ||
22431 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | 23393 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
22432 | as_basename=basename | 23394 | as_basename=basename |
22433 | else | 23395 | else |
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. |
22439 | as_me=`$as_basename "$0" || | 23401 | as_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 || | ||
22444 | echo X/"$0" | | 23405 | echo 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. | ||
22453 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
22454 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
22455 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
22456 | as_cr_digits='0123456789' | ||
22457 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
22458 | |||
22459 | # The user is always right. | ||
22460 | if 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 | ||
22470 | fi | ||
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 | ||
22483 | for as_dir in $PATH | ||
22484 | do | ||
22485 | IFS=$as_save_IFS | ||
22486 | test -z "$as_dir" && as_dir=. | ||
22487 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
22488 | done | ||
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 | ||
22499 | echo "$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 | ||
22505 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
22506 | do | ||
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 | ||
22526 | done | ||
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 |
22550 | echo "$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 | ||
22562 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | 23468 | if (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=' ' ;; | 23470 | else |
22565 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | 23471 | as_dirname=false |
22566 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | 23472 | fi |
23473 | |||
23474 | ECHO_C= ECHO_N= ECHO_T= | ||
23475 | case `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';; | ||
22567 | esac | 23483 | esac |
22568 | 23484 | ||
22569 | if expr a : '\(a\)' >/dev/null 2>&1; then | 23485 | if expr a : '\(a\)' >/dev/null 2>&1 && |
23486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
22570 | as_expr=expr | 23487 | as_expr=expr |
22571 | else | 23488 | else |
22572 | as_expr=false | 23489 | as_expr=false |
22573 | fi | 23490 | fi |
22574 | 23491 | ||
22575 | rm -f conf$$ conf$$.exe conf$$.file | 23492 | rm -f conf$$ conf$$.exe conf$$.file |
23493 | if test -d conf$$.dir; then | ||
23494 | rm -f conf$$.dir/conf$$.file | ||
23495 | else | ||
23496 | rm -f conf$$.dir | ||
23497 | mkdir conf$$.dir | ||
23498 | fi | ||
22576 | echo >conf$$.file | 23499 | echo >conf$$.file |
22577 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 23500 | if 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 | ||
22586 | elif ln conf$$.file conf$$ 2>/dev/null; then | 23508 | elif ln conf$$.file conf$$ 2>/dev/null; then |
22587 | as_ln_s=ln | 23509 | as_ln_s=ln |
22588 | else | 23510 | else |
22589 | as_ln_s='cp -p' | 23511 | as_ln_s='cp -p' |
22590 | fi | 23512 | fi |
22591 | rm -f conf$$ conf$$.exe conf$$.file | 23513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
23514 | rmdir conf$$.dir 2>/dev/null | ||
22592 | 23515 | ||
22593 | if mkdir -p . 2>/dev/null; then | 23516 | if 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 |
22598 | fi | 23521 | fi |
22599 | 23522 | ||
22600 | as_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. | ||
23525 | cat >conf$$.file <<_ASEOF | ||
23526 | #! /bin/sh | ||
23527 | exit 0 | ||
23528 | _ASEOF | ||
23529 | chmod +x conf$$.file | ||
23530 | if test -x conf$$.file >/dev/null 2>&1; then | ||
23531 | as_executable_p="test -x" | ||
23532 | else | ||
23533 | as_executable_p=: | ||
23534 | fi | ||
23535 | rm -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. |
22603 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | 23538 | as_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'" | |||
22606 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 23541 | as_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. | ||
22611 | as_nl=' | ||
22612 | ' | ||
22613 | IFS=" $as_nl" | ||
22614 | |||
22615 | # CDPATH. | ||
22616 | $as_unset CDPATH | ||
22617 | |||
22618 | exec 6>&1 | 23544 | exec 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. |
22623 | exec 5>>config.log | 23549 | ac_log=" |
22624 | { | ||
22625 | echo | ||
22626 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
22627 | ## Running $as_me. ## | ||
22628 | _ASBOX | ||
22629 | } >&5 | ||
22630 | cat >&5 <<_CSEOF | ||
22631 | |||
22632 | This file was extended by libltdl $as_me 1.2, which was | 23550 | This file was extended by libltdl $as_me 1.2, which was |
22633 | generated by GNU Autoconf 2.59. Invocation command line was | 23551 | generated 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 | 23559 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
22642 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | 23560 | " |
22643 | echo >&5 | 23561 | |
22644 | _ACEOF | 23562 | _ACEOF |
22645 | 23563 | ||
23564 | cat >>$CONFIG_STATUS <<_ACEOF | ||
22646 | # Files that config.status was made for. | 23565 | # Files that config.status was made for. |
22647 | if test -n "$ac_config_files"; then | 23566 | config_files="$ac_config_files" |
22648 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | 23567 | config_headers="$ac_config_headers" |
22649 | fi | 23568 | config_commands="$ac_config_commands" |
22650 | |||
22651 | if test -n "$ac_config_headers"; then | ||
22652 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | ||
22653 | fi | ||
22654 | 23569 | ||
22655 | if test -n "$ac_config_links"; then | 23570 | _ACEOF |
22656 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | ||
22657 | fi | ||
22658 | |||
22659 | if test -n "$ac_config_commands"; then | ||
22660 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | ||
22661 | fi | ||
22662 | 23571 | ||
22663 | cat >>$CONFIG_STATUS <<\_ACEOF | 23572 | cat >>$CONFIG_STATUS <<\_ACEOF |
22664 | |||
22665 | ac_cs_usage="\ | 23573 | ac_cs_usage="\ |
22666 | \`$as_me' instantiates files from templates according to the | 23574 | \`$as_me' instantiates files from templates according to the |
22667 | current configuration. | 23575 | current configuration. |
@@ -22669,7 +23577,7 @@ current configuration. | |||
22669 | Usage: $0 [OPTIONS] [FILE]... | 23577 | Usage: $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 | ||
22690 | Report bugs to <bug-autoconf@gnu.org>." | 23598 | Report bugs to <bug-autoconf@gnu.org>." |
22691 | _ACEOF | ||
22692 | 23599 | ||
23600 | _ACEOF | ||
22693 | cat >>$CONFIG_STATUS <<_ACEOF | 23601 | cat >>$CONFIG_STATUS <<_ACEOF |
22694 | ac_cs_version="\\ | 23602 | ac_cs_version="\\ |
22695 | libltdl config.status 1.2 | 23603 | libltdl config.status 1.2 |
22696 | configured by $0, generated by GNU Autoconf 2.59, | 23604 | configured 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 | ||
22699 | Copyright (C) 2003 Free Software Foundation, Inc. | 23607 | Copyright (C) 2006 Free Software Foundation, Inc. |
22700 | This config.status script is free software; the Free Software Foundation | 23608 | This config.status script is free software; the Free Software Foundation |
22701 | gives unlimited permission to copy, distribute and modify it." | 23609 | gives unlimited permission to copy, distribute and modify it." |
22702 | srcdir=$srcdir | 23610 | |
22703 | INSTALL="$INSTALL" | 23611 | ac_pwd='$ac_pwd' |
23612 | srcdir='$srcdir' | ||
23613 | INSTALL='$INSTALL' | ||
22704 | _ACEOF | 23614 | _ACEOF |
22705 | 23615 | ||
22706 | cat >>$CONFIG_STATUS <<\_ACEOF | 23616 | cat >>$CONFIG_STATUS <<\_ACEOF |
@@ -22711,39 +23621,24 @@ while test $# != 0 | |||
22711 | do | 23621 | do |
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 | ||
22732 | cat >>$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 | ||
22740 | Try \`$0 --help' for more information." >&5 | ||
22741 | echo "$as_me: error: ambiguous option: $1 | ||
22742 | Try \`$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 | ||
23654 | Try \`$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 |
22762 | Try \`$0 --help' for more information." >&5 | 23664 | Try \`$0 --help' for more information." >&2 |
22763 | echo "$as_me: error: unrecognized option: $1 | ||
22764 | Try \`$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 |
22781 | cat >>$CONFIG_STATUS <<_ACEOF | 23682 | cat >>$CONFIG_STATUS <<_ACEOF |
22782 | if \$ac_cs_recheck; then | 23683 | if \$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 | ||
22785 | fi | 23688 | fi |
22786 | 23689 | ||
22787 | _ACEOF | 23690 | _ACEOF |
23691 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
23692 | exec 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 | ||
22789 | cat >>$CONFIG_STATUS <<_ACEOF | 23702 | cat >>$CONFIG_STATUS <<_ACEOF |
22790 | # | 23703 | # |
22791 | # INIT-COMMANDS section. | 23704 | # INIT-COMMANDS |
22792 | # | 23705 | # |
22793 | |||
22794 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | 23706 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
22795 | 23707 | ||
22796 | _ACEOF | 23708 | _ACEOF |
22797 | 23709 | ||
22798 | |||
22799 | |||
22800 | cat >>$CONFIG_STATUS <<\_ACEOF | 23710 | cat >>$CONFIG_STATUS <<\_ACEOF |
23711 | |||
23712 | # Handling of arguments. | ||
22801 | for ac_config_target in $ac_config_targets | 23713 | for ac_config_target in $ac_config_targets |
22802 | do | 23714 | do |
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 |
22809 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | 23721 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
22810 | { (exit 1); exit 1; }; };; | 23722 | { (exit 1); exit 1; }; };; |
22811 | esac | 23723 | esac |
22812 | done | 23724 | done |
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 | |||
22822 | fi | 23735 | fi |
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 | |||
22851 | cat >>$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 |
22859 | if test -n "\$CONFIG_FILES"; then | 23772 | if 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 | ||
22863 | s,@SHELL@,$SHELL,;t t | ||
22864 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | ||
22865 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | ||
22866 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | ||
22867 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | ||
22868 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | ||
22869 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | ||
22870 | s,@exec_prefix@,$exec_prefix,;t t | ||
22871 | s,@prefix@,$prefix,;t t | ||
22872 | s,@program_transform_name@,$program_transform_name,;t t | ||
22873 | s,@bindir@,$bindir,;t t | ||
22874 | s,@sbindir@,$sbindir,;t t | ||
22875 | s,@libexecdir@,$libexecdir,;t t | ||
22876 | s,@datadir@,$datadir,;t t | ||
22877 | s,@sysconfdir@,$sysconfdir,;t t | ||
22878 | s,@sharedstatedir@,$sharedstatedir,;t t | ||
22879 | s,@localstatedir@,$localstatedir,;t t | ||
22880 | s,@libdir@,$libdir,;t t | ||
22881 | s,@includedir@,$includedir,;t t | ||
22882 | s,@oldincludedir@,$oldincludedir,;t t | ||
22883 | s,@infodir@,$infodir,;t t | ||
22884 | s,@mandir@,$mandir,;t t | ||
22885 | s,@build_alias@,$build_alias,;t t | ||
22886 | s,@host_alias@,$host_alias,;t t | ||
22887 | s,@target_alias@,$target_alias,;t t | ||
22888 | s,@DEFS@,$DEFS,;t t | ||
22889 | s,@ECHO_C@,$ECHO_C,;t t | ||
22890 | s,@ECHO_N@,$ECHO_N,;t t | ||
22891 | s,@ECHO_T@,$ECHO_T,;t t | ||
22892 | s,@LIBS@,$LIBS,;t t | ||
22893 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | ||
22894 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | ||
22895 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | ||
22896 | s,@CYGPATH_W@,$CYGPATH_W,;t t | ||
22897 | s,@PACKAGE@,$PACKAGE,;t t | ||
22898 | s,@VERSION@,$VERSION,;t t | ||
22899 | s,@ACLOCAL@,$ACLOCAL,;t t | ||
22900 | s,@AUTOCONF@,$AUTOCONF,;t t | ||
22901 | s,@AUTOMAKE@,$AUTOMAKE,;t t | ||
22902 | s,@AUTOHEADER@,$AUTOHEADER,;t t | ||
22903 | s,@MAKEINFO@,$MAKEINFO,;t t | ||
22904 | s,@AMTAR@,$AMTAR,;t t | ||
22905 | s,@install_sh@,$install_sh,;t t | ||
22906 | s,@STRIP@,$STRIP,;t t | ||
22907 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | ||
22908 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | ||
22909 | s,@mkdir_p@,$mkdir_p,;t t | ||
22910 | s,@AWK@,$AWK,;t t | ||
22911 | s,@SET_MAKE@,$SET_MAKE,;t t | ||
22912 | s,@am__leading_dot@,$am__leading_dot,;t t | ||
22913 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | ||
22914 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | ||
22915 | s,@MAINT@,$MAINT,;t t | ||
22916 | s,@CC@,$CC,;t t | ||
22917 | s,@CFLAGS@,$CFLAGS,;t t | ||
22918 | s,@LDFLAGS@,$LDFLAGS,;t t | ||
22919 | s,@CPPFLAGS@,$CPPFLAGS,;t t | ||
22920 | s,@ac_ct_CC@,$ac_ct_CC,;t t | ||
22921 | s,@EXEEXT@,$EXEEXT,;t t | ||
22922 | s,@OBJEXT@,$OBJEXT,;t t | ||
22923 | s,@DEPDIR@,$DEPDIR,;t t | ||
22924 | s,@am__include@,$am__include,;t t | ||
22925 | s,@am__quote@,$am__quote,;t t | ||
22926 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | ||
22927 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | ||
22928 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | ||
22929 | s,@CCDEPMODE@,$CCDEPMODE,;t t | ||
22930 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | ||
22931 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | ||
22932 | s,@build@,$build,;t t | ||
22933 | s,@build_cpu@,$build_cpu,;t t | ||
22934 | s,@build_vendor@,$build_vendor,;t t | ||
22935 | s,@build_os@,$build_os,;t t | ||
22936 | s,@host@,$host,;t t | ||
22937 | s,@host_cpu@,$host_cpu,;t t | ||
22938 | s,@host_vendor@,$host_vendor,;t t | ||
22939 | s,@host_os@,$host_os,;t t | ||
22940 | s,@EGREP@,$EGREP,;t t | ||
22941 | s,@LN_S@,$LN_S,;t t | ||
22942 | s,@ECHO@,$ECHO,;t t | ||
22943 | s,@AR@,$AR,;t t | ||
22944 | s,@ac_ct_AR@,$ac_ct_AR,;t t | ||
22945 | s,@RANLIB@,$RANLIB,;t t | ||
22946 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | ||
22947 | s,@DLLTOOL@,$DLLTOOL,;t t | ||
22948 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | ||
22949 | s,@AS@,$AS,;t t | ||
22950 | s,@ac_ct_AS@,$ac_ct_AS,;t t | ||
22951 | s,@OBJDUMP@,$OBJDUMP,;t t | ||
22952 | s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t | ||
22953 | s,@CPP@,$CPP,;t t | ||
22954 | s,@CXX@,$CXX,;t t | ||
22955 | s,@CXXFLAGS@,$CXXFLAGS,;t t | ||
22956 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | ||
22957 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t | ||
22958 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t | ||
22959 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t | ||
22960 | s,@CXXCPP@,$CXXCPP,;t t | ||
22961 | s,@F77@,$F77,;t t | ||
22962 | s,@FFLAGS@,$FFLAGS,;t t | ||
22963 | s,@ac_ct_F77@,$ac_ct_F77,;t t | ||
22964 | s,@LIBTOOL@,$LIBTOOL,;t t | ||
22965 | s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t | ||
22966 | s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t | ||
22967 | s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t | ||
22968 | s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t | ||
22969 | s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t | ||
22970 | s,@LIBADD_DL@,$LIBADD_DL,;t t | ||
22971 | s,@LIBOBJS@,$LIBOBJS,;t t | ||
22972 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | ||
22973 | CEOF | ||
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. | 23778 | ac_delim='%!_!# ' |
22980 | ac_max_sed_lines=48 | 23779 | for 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. | 23781 | SHELL!$SHELL$ac_delim |
22983 | ac_end=$ac_max_sed_lines # Line after last line for current file. | 23782 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
22984 | ac_more_lines=: | 23783 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
22985 | ac_sed_cmds= | 23784 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
22986 | while $ac_more_lines; do | 23785 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
22987 | if test $ac_beg -gt 1; then | 23786 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
22988 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | 23787 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
22989 | else | 23788 | exec_prefix!$exec_prefix$ac_delim |
22990 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | 23789 | prefix!$prefix$ac_delim |
22991 | fi | 23790 | program_transform_name!$program_transform_name$ac_delim |
22992 | if test ! -s $tmp/subs.frag; then | 23791 | bindir!$bindir$ac_delim |
22993 | ac_more_lines=false | 23792 | sbindir!$sbindir$ac_delim |
22994 | else | 23793 | libexecdir!$libexecdir$ac_delim |
22995 | # The purpose of the label and of the branching condition is to | 23794 | datarootdir!$datarootdir$ac_delim |
22996 | # speed up the sed processing (if there are no `@' at all, there | 23795 | datadir!$datadir$ac_delim |
22997 | # is no need to browse any of the substitutions). | 23796 | sysconfdir!$sysconfdir$ac_delim |
22998 | # These are the two extra sed commands mentioned above. | 23797 | sharedstatedir!$sharedstatedir$ac_delim |
22999 | (echo ':t | 23798 | localstatedir!$localstatedir$ac_delim |
23000 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | 23799 | includedir!$includedir$ac_delim |
23001 | if test -z "$ac_sed_cmds"; then | 23800 | oldincludedir!$oldincludedir$ac_delim |
23002 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | 23801 | docdir!$docdir$ac_delim |
23003 | else | 23802 | infodir!$infodir$ac_delim |
23004 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | 23803 | htmldir!$htmldir$ac_delim |
23005 | fi | 23804 | dvidir!$dvidir$ac_delim |
23006 | ac_sed_frag=`expr $ac_sed_frag + 1` | 23805 | pdfdir!$pdfdir$ac_delim |
23007 | ac_beg=$ac_end | 23806 | psdir!$psdir$ac_delim |
23008 | ac_end=`expr $ac_end + $ac_max_sed_lines` | 23807 | libdir!$libdir$ac_delim |
23009 | fi | 23808 | localedir!$localedir$ac_delim |
23010 | done | 23809 | mandir!$mandir$ac_delim |
23011 | if test -z "$ac_sed_cmds"; then | 23810 | DEFS!$DEFS$ac_delim |
23012 | ac_sed_cmds=cat | 23811 | ECHO_C!$ECHO_C$ac_delim |
23812 | ECHO_N!$ECHO_N$ac_delim | ||
23813 | ECHO_T!$ECHO_T$ac_delim | ||
23814 | LIBS!$LIBS$ac_delim | ||
23815 | build_alias!$build_alias$ac_delim | ||
23816 | host_alias!$host_alias$ac_delim | ||
23817 | target_alias!$target_alias$ac_delim | ||
23818 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | ||
23819 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | ||
23820 | INSTALL_DATA!$INSTALL_DATA$ac_delim | ||
23821 | CYGPATH_W!$CYGPATH_W$ac_delim | ||
23822 | PACKAGE!$PACKAGE$ac_delim | ||
23823 | VERSION!$VERSION$ac_delim | ||
23824 | ACLOCAL!$ACLOCAL$ac_delim | ||
23825 | AUTOCONF!$AUTOCONF$ac_delim | ||
23826 | AUTOMAKE!$AUTOMAKE$ac_delim | ||
23827 | AUTOHEADER!$AUTOHEADER$ac_delim | ||
23828 | MAKEINFO!$MAKEINFO$ac_delim | ||
23829 | AMTAR!$AMTAR$ac_delim | ||
23830 | install_sh!$install_sh$ac_delim | ||
23831 | STRIP!$STRIP$ac_delim | ||
23832 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim | ||
23833 | mkdir_p!$mkdir_p$ac_delim | ||
23834 | AWK!$AWK$ac_delim | ||
23835 | SET_MAKE!$SET_MAKE$ac_delim | ||
23836 | am__leading_dot!$am__leading_dot$ac_delim | ||
23837 | MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim | ||
23838 | MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim | ||
23839 | MAINT!$MAINT$ac_delim | ||
23840 | CC!$CC$ac_delim | ||
23841 | CFLAGS!$CFLAGS$ac_delim | ||
23842 | LDFLAGS!$LDFLAGS$ac_delim | ||
23843 | CPPFLAGS!$CPPFLAGS$ac_delim | ||
23844 | ac_ct_CC!$ac_ct_CC$ac_delim | ||
23845 | EXEEXT!$EXEEXT$ac_delim | ||
23846 | OBJEXT!$OBJEXT$ac_delim | ||
23847 | DEPDIR!$DEPDIR$ac_delim | ||
23848 | am__include!$am__include$ac_delim | ||
23849 | am__quote!$am__quote$ac_delim | ||
23850 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim | ||
23851 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim | ||
23852 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim | ||
23853 | CCDEPMODE!$CCDEPMODE$ac_delim | ||
23854 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim | ||
23855 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim | ||
23856 | build!$build$ac_delim | ||
23857 | build_cpu!$build_cpu$ac_delim | ||
23858 | build_vendor!$build_vendor$ac_delim | ||
23859 | build_os!$build_os$ac_delim | ||
23860 | host!$host$ac_delim | ||
23861 | host_cpu!$host_cpu$ac_delim | ||
23862 | host_vendor!$host_vendor$ac_delim | ||
23863 | host_os!$host_os$ac_delim | ||
23864 | GREP!$GREP$ac_delim | ||
23865 | EGREP!$EGREP$ac_delim | ||
23866 | LN_S!$LN_S$ac_delim | ||
23867 | ECHO!$ECHO$ac_delim | ||
23868 | AR!$AR$ac_delim | ||
23869 | RANLIB!$RANLIB$ac_delim | ||
23870 | DLLTOOL!$DLLTOOL$ac_delim | ||
23871 | AS!$AS$ac_delim | ||
23872 | OBJDUMP!$OBJDUMP$ac_delim | ||
23873 | CPP!$CPP$ac_delim | ||
23874 | CXX!$CXX$ac_delim | ||
23875 | CXXFLAGS!$CXXFLAGS$ac_delim | ||
23876 | ac_ct_CXX!$ac_ct_CXX$ac_delim | ||
23877 | CXXDEPMODE!$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 | ||
23884 | echo "$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 |
23014 | fi # test -n "$CONFIG_FILES" | 23889 | done |
23890 | |||
23891 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
23892 | if test -n "$ac_eof"; then | ||
23893 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
23894 | ac_eof=`expr $ac_eof + 1` | ||
23895 | fi | ||
23015 | 23896 | ||
23897 | cat >>$CONFIG_STATUS <<_ACEOF | ||
23898 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | ||
23899 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
23900 | _ACEOF | ||
23901 | sed ' | ||
23902 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
23903 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
23904 | :n | ||
23905 | t n | ||
23906 | s/'"$ac_delim"'$/,g/; t | ||
23907 | s/$/\\/; p | ||
23908 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
23909 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
23910 | rm -f conf$$subs.sed | ||
23911 | cat >>$CONFIG_STATUS <<_ACEOF | ||
23912 | CEOF$ac_eof | ||
23016 | _ACEOF | 23913 | _ACEOF |
23914 | |||
23915 | |||
23916 | ac_delim='%!_!# ' | ||
23917 | for ac_last_try in false false false false false :; do | ||
23918 | cat >conf$$subs.sed <<_ACEOF | ||
23919 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim | ||
23920 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim | ||
23921 | CXXCPP!$CXXCPP$ac_delim | ||
23922 | F77!$F77$ac_delim | ||
23923 | FFLAGS!$FFLAGS$ac_delim | ||
23924 | ac_ct_F77!$ac_ct_F77$ac_delim | ||
23925 | LIBTOOL!$LIBTOOL$ac_delim | ||
23926 | LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim | ||
23927 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim | ||
23928 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim | ||
23929 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim | ||
23930 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim | ||
23931 | LIBADD_DL!$LIBADD_DL$ac_delim | ||
23932 | LIBOBJS!$LIBOBJS$ac_delim | ||
23933 | LTLIBOBJS!$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 | ||
23940 | echo "$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 | ||
23945 | done | ||
23946 | |||
23947 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
23948 | if test -n "$ac_eof"; then | ||
23949 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
23950 | ac_eof=`expr $ac_eof + 1` | ||
23951 | fi | ||
23952 | |||
23953 | cat >>$CONFIG_STATUS <<_ACEOF | ||
23954 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | ||
23955 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | ||
23956 | _ACEOF | ||
23957 | sed ' | ||
23958 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
23959 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
23960 | :n | ||
23961 | t n | ||
23962 | s/'"$ac_delim"'$/,g/; t | ||
23963 | s/$/\\/; p | ||
23964 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
23965 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
23966 | rm -f conf$$subs.sed | ||
23967 | cat >>$CONFIG_STATUS <<_ACEOF | ||
23968 | :end | ||
23969 | s/|#_!!_#|//g | ||
23970 | CEOF$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). | ||
23978 | if test "x$srcdir" = x.; then | ||
23979 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
23980 | s/:*\$(srcdir):*/:/ | ||
23981 | s/:*\${srcdir}:*/:/ | ||
23982 | s/:*@srcdir@:*/:/ | ||
23983 | s/^\([^=]*=[ ]*\):*/\1/ | ||
23984 | s/:*$// | ||
23985 | s/^[^=]*=[ ]*$// | ||
23986 | }' | ||
23987 | fi | ||
23988 | |||
23017 | cat >>$CONFIG_STATUS <<\_ACEOF | 23989 | cat >>$CONFIG_STATUS <<\_ACEOF |
23018 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | 23990 | fi # test -n "$CONFIG_FILES" |
23019 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 23991 | |
23020 | case $ac_file in | 23992 | |
23021 | - | *:- | *:-:* ) # input from stdin | 23993 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
23022 | cat >$tmp/stdin | 23994 | do |
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 | ||
24001 | echo "$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 | ||
24031 | echo "$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 | ||
24045 | echo "$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 || | ||
23037 | echo X"$ac_file" | | 24059 | echo 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 || | ||
23056 | echo X"$as_dir" | | 24094 | echo 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 |
23065 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 24116 | echo "$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 | ||
23070 | if test "$ac_dir" != .; then | 24120 | case "$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,/,,'` |
23074 | else | 24126 | case $ac_top_builddir_sub in |
23075 | ac_dir_suffix= ac_top_builddir= | 24127 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
23076 | fi | 24128 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
24129 | esac ;; | ||
24130 | esac | ||
24131 | ac_abs_top_builddir=$ac_pwd | ||
24132 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
24133 | # for backward compatibility: | ||
24134 | ac_top_builddir=$ac_top_build_prefix | ||
23077 | 24135 | ||
23078 | case $srcdir in | 24136 | case $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 ;; | ||
23092 | esac | 24149 | esac |
24150 | ac_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. | ||
23096 | case `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;; | ||
23104 | esac | ||
23105 | case $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;; | ||
23113 | esac | ||
23114 | case $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;; | ||
23122 | esac | ||
23123 | case $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;; | ||
23131 | esac | ||
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 | 24165 | cat >>$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 | 24168 | ac_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 | ||
23159 | echo "$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 | ||
23172 | echo "$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 | 24170 | case `sed -n '/datarootdir/ { |
23179 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | 24171 | p |
23180 | echo "$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 | ||
24183 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
24184 | _ACEOF | ||
24185 | cat >>$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' ;; | ||
24193 | esac | ||
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? | ||
23184 | cat >>$CONFIG_STATUS <<_ACEOF | 24199 | cat >>$CONFIG_STATUS <<_ACEOF |
23185 | sed "$ac_vpsub | 24200 | sed "$ac_vpsub |
23186 | $extrasub | 24201 | $extrasub |
@@ -23188,248 +24203,130 @@ _ACEOF | |||
23188 | cat >>$CONFIG_STATUS <<\_ACEOF | 24203 | cat >>$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 |
23191 | s,@configure_input@,$configure_input,;t t | 24206 | s&@configure_input@&$configure_input&;t t |
23192 | s,@srcdir@,$ac_srcdir,;t t | 24207 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
23193 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | 24208 | s&@srcdir@&$ac_srcdir&;t t |
23194 | s,@top_srcdir@,$ac_top_srcdir,;t t | 24209 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
23195 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | 24210 | s&@top_srcdir@&$ac_top_srcdir&;t t |
23196 | s,@builddir@,$ac_builddir,;t t | 24211 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
23197 | s,@abs_builddir@,$ac_abs_builddir,;t t | 24212 | s&@builddir@&$ac_builddir&;t t |
23198 | s,@top_builddir@,$ac_top_builddir,;t t | 24213 | s&@abs_builddir@&$ac_abs_builddir&;t t |
23199 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | 24214 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
23200 | s,@INSTALL@,$ac_INSTALL,;t t | 24215 | s&@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 | 24219 | test -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 | 24223 | which seems to be undefined. Please make sure it is defined." >&5 |
23209 | 24224 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
23210 | done | 24225 | which seems to be undefined. Please make sure it is defined." >&2;} |
23211 | _ACEOF | 24226 | |
23212 | cat >>$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. | ||
23222 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | ||
23223 | ac_dB='[ ].*$,\1#\2' | ||
23224 | ac_dC=' ' | ||
23225 | ac_dD=',;t' | ||
23226 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | ||
23227 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | ||
23228 | ac_uB='$,\1#\2define\3' | ||
23229 | ac_uC=' ' | ||
23230 | ac_uD=',;t' | ||
23231 | |||
23232 | for 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) |
23245 | echo "$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 | ||
23256 | echo "$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 | ||
23270 | echo "$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' | 24241 | rm -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 | 24243 | echo '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 |
23287 | rm -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 | # | 24249 | ac_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 |
23294 | cat >confdef2sed.sed <<\_ACEOF | 24253 | # just an empty string. |
23295 | s/[\\&,]/\\&/g | 24254 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
23296 | s,[\\$`],\\&,g | 24255 | ac_dB='\\)[ (].*,\\1define\\2' |
23297 | t clear | 24256 | ac_dC=' ' |
23298 | : clear | 24257 | ac_dD=' ,' |
23299 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | 24258 | |
23300 | t end | 24259 | uniq confdefs.h | |
23301 | s,^[ ]*#[ ]*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 |
23307 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | 24266 | :ok |
23308 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | 24267 | s/[\\&,]/\\&/g |
23309 | rm -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. |
23314 | cat >>conftest.undefs <<\_ACEOF | 24276 | # (The regexp can be short, since the line contains either #define or #undef.) |
23315 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | 24277 | echo 's/ $// |
23316 | _ACEOF | 24278 | s,^[ #]*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). | 24281 | ac_max_sed_lines=50 |
23320 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | 24282 | |
23321 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | 24283 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
23322 | echo ' # 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" |
23323 | echo ' :' >>$CONFIG_STATUS | 24285 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
23324 | rm -f conftest.tail | 24286 | # et cetera. |
23325 | while grep . conftest.defines >/dev/null | 24287 | ac_in='$ac_file_inputs' |
24288 | ac_out='"$tmp/out1"' | ||
24289 | ac_nxt='"$tmp/out2"' | ||
24290 | |||
24291 | while : | ||
23326 | do | 24292 | do |
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 | 24299 | b |
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 |
23343 | done | 24310 | done |
23344 | rm -f conftest.defines | 24311 | rm -f conftest.defines conftest.tail |
23345 | echo ' fi # grep' >>$CONFIG_STATUS | ||
23346 | echo >>$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). | ||
23350 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | ||
23351 | rm -f conftest.tail | ||
23352 | while grep . conftest.undefs >/dev/null | ||
23353 | do | ||
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 | ||
23370 | done | ||
23371 | rm -f conftest.undefs | ||
23372 | 24312 | ||
24313 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | ||
23373 | cat >>$CONFIG_STATUS <<\_ACEOF | 24314 | cat >>$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 |
23387 | echo "$as_me: $ac_file is unchanged" >&6;} | 24320 | echo "$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 || | ||
23395 | echo 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 || | ||
23414 | echo 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 | ||
23423 | echo "$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 |
23435 | for _am_header in $config_headers :; do | 24332 | for _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 |
23442 | done | 24339 | done |
23443 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | 24340 | echo "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 || | ||
23449 | echo X$ac_file | | 24345 | echo 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\(\/\/\)[^/].*/{ |
23455 | done | 24351 | s//\1/ |
23456 | _ACEOF | 24352 | q |
23457 | cat >>$CONFIG_STATUS <<\_ACEOF | 24353 | } |
23458 | 24354 | /^X\(\/\/\)$/{ | |
23459 | # | 24355 | s//\1/ |
23460 | # CONFIG_COMMANDS section. | 24356 | q |
23461 | # | 24357 | } |
23462 | for 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 || | ||
23471 | echo 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 || | ||
23490 | echo 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 | ||
23499 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | ||
23500 | { (exit 1); exit 1; }; }; } | ||
23501 | |||
23502 | ac_builddir=. | ||
23503 | |||
23504 | if 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'` | ||
23508 | else | ||
23509 | ac_dir_suffix= ac_top_builddir= | ||
23510 | fi | ||
23511 | |||
23512 | case $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 ;; | ||
23526 | esac | ||
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. | 24366 | echo "$as_me: executing $ac_file commands" >&6;} |
23530 | case `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;; | ||
23538 | esac | ||
23539 | case $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;; | ||
23547 | esac | ||
23548 | case $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;; | ||
23556 | esac | ||
23557 | case $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;; | ||
23565 | esac | ||
23566 | 24369 | ||
23567 | 24370 | ||
23568 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | 24371 | case $ac_file$ac_mode in |
23569 | echo "$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 || | ||
23587 | echo X"$mf" | | 24387 | echo 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 || | ||
23626 | echo X"$file" | | 24437 | echo 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 || | ||
23645 | echo X"$as_dir" | | 24472 | echo 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 |
23654 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | 24494 | echo "$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 |
23660 | done | 24499 | done |
23661 | ;; | 24500 | ;; |
24501 | |||
23662 | esac | 24502 | esac |
23663 | done | 24503 | done # for ac_tag |
23664 | _ACEOF | ||
23665 | 24504 | ||
23666 | cat >>$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 | ||
44 | PROGRAM=ltmain.sh | 44 | PROGRAM=ltmain.sh |
45 | PACKAGE=libtool | 45 | PACKAGE=libtool |
46 | VERSION=1.5.6 | 46 | VERSION="1.5.22 Debian 1.5.22-4" |
47 | TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42) Debian$Rev: 224 $" | 47 | TIMESTAMP=" (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. | ||
51 | if test -n "${ZSH_VERSION+set}" ; then | ||
52 | setopt NO_GLOB_SUBST | ||
53 | fi | ||
49 | 54 | ||
50 | # Check that we have a working $echo. | 55 | # Check that we have a working $echo. |
51 | if test "X$1" = X--no-reexec; then | 56 | if test "X$1" = X--no-reexec; then |
@@ -83,14 +88,15 @@ rm="rm -f" | |||
83 | Xsed="${SED}"' -e 1s/^X//' | 88 | Xsed="${SED}"' -e 1s/^X//' |
84 | sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g' | 89 | sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g' |
85 | # test EBCDIC or ASCII | 90 | # test EBCDIC or ASCII |
86 | case `echo A|tr A '\301'` in | 91 | case `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 | ;; |
95 | esac | 101 | esac |
96 | 102 | ||
@@ -107,8 +113,9 @@ if test "${LANG+set}" = set; then | |||
107 | fi | 113 | fi |
108 | 114 | ||
109 | # Make sure IFS has a sensible default | 115 | # Make sure IFS has a sensible default |
110 | : ${IFS=" | 116 | lt_nl=' |
111 | "} | 117 | ' |
118 | IFS=" $lt_nl" | ||
112 | 119 | ||
113 | if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then | 120 | if 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= | |||
125 | show="$echo" | 132 | show="$echo" |
126 | show_help= | 133 | show_help= |
127 | execute_dlfiles= | 134 | execute_dlfiles= |
135 | duplicate_deps=no | ||
136 | preserve_args= | ||
128 | lo2o="s/\\.lo\$/.${objext}/" | 137 | lo2o="s/\\.lo\$/.${objext}/" |
129 | o2lo="s/\\.${objext}\$/.lo/" | 138 | o2lo="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. | ||
148 | func_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. |
141 | func_win32_libid () { | 187 | func_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 ...' |
181 | func_infer_tag () { | 227 | func_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 | ||
288 | func_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 ... | ||
304 | func_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 |
242 | eval std_shrext=\"$shrext_cmds\" | 391 | eval std_shrext=\"$shrext_cmds\" |
243 | 392 | ||
393 | disable_libs=no | ||
394 | |||
244 | # Parse our command line options once, thoroughly. | 395 | # Parse our command line options once, thoroughly. |
245 | while test "$#" -gt 0 | 396 | while test "$#" -gt 0 |
246 | do | 397 | do |
@@ -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 |
390 | fi | 545 | fi |
391 | 546 | ||
547 | case $disable_libs in | ||
548 | no) | ||
549 | ;; | ||
550 | shared) | ||
551 | build_libtool_libs=no | ||
552 | build_old_libs=yes | ||
553 | ;; | ||
554 | static) | ||
555 | build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` | ||
556 | ;; | ||
557 | esac | ||
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; } |
3244 | EOF | 3524 | EOF |
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 */ | ||
4634 | struct { | ||
4635 | " | ||
4636 | ;; | ||
4637 | * ) | ||
4638 | $echo >> "$output_objdir/$dlsyms" "\ | ||
4356 | const struct { | 4639 | const 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 | |||
4646 | const char *program_name = NULL; | 4971 | const char *program_name = NULL; |
4647 | 4972 | ||
4648 | void * xmalloc (size_t num); | 4973 | void * xmalloc (size_t num); |
4649 | char * xstrdup (const char *string); | 4974 | char * xstrdup (const char *string); |
4650 | char * basename (const char *name); | 4975 | const char * base_name (const char *name); |
4651 | char * fnqualify(const char *path); | 4976 | char * find_executable(const char *wrapper); |
4977 | int check_executable(const char *path); | ||
4652 | char * strendzap(char *str, const char *pat); | 4978 | char * strendzap(char *str, const char *pat); |
4653 | void lt_fatal (const char *message, ...); | 4979 | void 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); |
4663 | EOF | 4991 | EOF |
4664 | 4992 | ||
4665 | cat >> $cwrappersource <<EOF | 4993 | cat >> $cwrappersource <<EOF |
4666 | newargz[0] = "$SHELL"; | 4994 | newargz[0] = (char *) xstrdup("$SHELL"); |
4667 | EOF | 4995 | EOF |
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 | |||
4677 | EOF | 5015 | EOF |
4678 | 5016 | ||
4679 | cat >> $cwrappersource <<EOF | 5017 | case $host_os in |
5018 | mingw*) | ||
5019 | cat >> $cwrappersource <<EOF | ||
5020 | execv("$SHELL",(char const **)newargz); | ||
5021 | EOF | ||
5022 | ;; | ||
5023 | *) | ||
5024 | cat >> $cwrappersource <<EOF | ||
4680 | execv("$SHELL",newargz); | 5025 | execv("$SHELL",newargz); |
4681 | EOF | 5026 | EOF |
5027 | ;; | ||
5028 | esac | ||
4682 | 5029 | ||
4683 | cat >> $cwrappersource <<"EOF" | 5030 | cat >> $cwrappersource <<"EOF" |
5031 | return 127; | ||
4684 | } | 5032 | } |
4685 | 5033 | ||
4686 | void * | 5034 | void * |
@@ -4700,48 +5048,148 @@ xstrdup (const char *string) | |||
4700 | ; | 5048 | ; |
4701 | } | 5049 | } |
4702 | 5050 | ||
4703 | char * | 5051 | const char * |
4704 | basename (const char *name) | 5052 | base_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 | ||
5068 | int | ||
5069 | check_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 */ | ||
4720 | char * | 5095 | char * |
4721 | fnqualify(const char *path) | 5096 | find_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 | ||
4747 | char * | 5195 | char * |
@@ -4785,16 +5233,16 @@ lt_fatal (const char *message, ...) | |||
4785 | va_end (ap); | 5233 | va_end (ap); |
4786 | } | 5234 | } |
4787 | EOF | 5235 | EOF |
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. |
4818 | if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi | 5266 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
4819 | 5267 | ||
4820 | relink_command=\"$relink_command\" | 5268 | relink_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 | ||
6401 | exit $EXIT_SUCCESS | 6847 | exit $? |
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 |
6415 | build_libtool_libs=no | 6861 | disable_libs=shared |
6416 | build_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 |
6420 | build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac` | 6865 | disable_libs=static |
6421 | # ### END LIBTOOL TAG CONFIG: disable-static | 6866 | # ### END LIBTOOL TAG CONFIG: disable-static |
6422 | 6867 | ||
6423 | # Local Variables: | 6868 | # Local Variables: |
@@ -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 | ||
44 | PROGRAM=ltmain.sh | 44 | PROGRAM=ltmain.sh |
45 | PACKAGE=libtool | 45 | PACKAGE=libtool |
46 | VERSION=1.5.6 | 46 | VERSION="1.5.22 Debian 1.5.22-4" |
47 | TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42) Debian$Rev: 224 $" | 47 | TIMESTAMP=" (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. | ||
51 | if test -n "${ZSH_VERSION+set}" ; then | ||
52 | setopt NO_GLOB_SUBST | ||
53 | fi | ||
49 | 54 | ||
50 | # Check that we have a working $echo. | 55 | # Check that we have a working $echo. |
51 | if test "X$1" = X--no-reexec; then | 56 | if test "X$1" = X--no-reexec; then |
@@ -83,14 +88,15 @@ rm="rm -f" | |||
83 | Xsed="${SED}"' -e 1s/^X//' | 88 | Xsed="${SED}"' -e 1s/^X//' |
84 | sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g' | 89 | sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g' |
85 | # test EBCDIC or ASCII | 90 | # test EBCDIC or ASCII |
86 | case `echo A|tr A '\301'` in | 91 | case `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 | ;; |
95 | esac | 101 | esac |
96 | 102 | ||
@@ -107,8 +113,9 @@ if test "${LANG+set}" = set; then | |||
107 | fi | 113 | fi |
108 | 114 | ||
109 | # Make sure IFS has a sensible default | 115 | # Make sure IFS has a sensible default |
110 | : ${IFS=" | 116 | lt_nl=' |
111 | "} | 117 | ' |
118 | IFS=" $lt_nl" | ||
112 | 119 | ||
113 | if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then | 120 | if 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= | |||
125 | show="$echo" | 132 | show="$echo" |
126 | show_help= | 133 | show_help= |
127 | execute_dlfiles= | 134 | execute_dlfiles= |
135 | duplicate_deps=no | ||
136 | preserve_args= | ||
128 | lo2o="s/\\.lo\$/.${objext}/" | 137 | lo2o="s/\\.lo\$/.${objext}/" |
129 | o2lo="s/\\.${objext}\$/.lo/" | 138 | o2lo="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. | ||
148 | func_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. |
141 | func_win32_libid () { | 187 | func_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 ...' |
181 | func_infer_tag () { | 227 | func_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 | ||
288 | func_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 ... | ||
304 | func_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 |
242 | eval std_shrext=\"$shrext_cmds\" | 391 | eval std_shrext=\"$shrext_cmds\" |
243 | 392 | ||
393 | disable_libs=no | ||
394 | |||
244 | # Parse our command line options once, thoroughly. | 395 | # Parse our command line options once, thoroughly. |
245 | while test "$#" -gt 0 | 396 | while test "$#" -gt 0 |
246 | do | 397 | do |
@@ -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 |
390 | fi | 545 | fi |
391 | 546 | ||
547 | case $disable_libs in | ||
548 | no) | ||
549 | ;; | ||
550 | shared) | ||
551 | build_libtool_libs=no | ||
552 | build_old_libs=yes | ||
553 | ;; | ||
554 | static) | ||
555 | build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` | ||
556 | ;; | ||
557 | esac | ||
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; } |
3244 | EOF | 3524 | EOF |
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 */ | ||
4634 | struct { | ||
4635 | " | ||
4636 | ;; | ||
4637 | * ) | ||
4638 | $echo >> "$output_objdir/$dlsyms" "\ | ||
4356 | const struct { | 4639 | const 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 | |||
4646 | const char *program_name = NULL; | 4971 | const char *program_name = NULL; |
4647 | 4972 | ||
4648 | void * xmalloc (size_t num); | 4973 | void * xmalloc (size_t num); |
4649 | char * xstrdup (const char *string); | 4974 | char * xstrdup (const char *string); |
4650 | char * basename (const char *name); | 4975 | const char * base_name (const char *name); |
4651 | char * fnqualify(const char *path); | 4976 | char * find_executable(const char *wrapper); |
4977 | int check_executable(const char *path); | ||
4652 | char * strendzap(char *str, const char *pat); | 4978 | char * strendzap(char *str, const char *pat); |
4653 | void lt_fatal (const char *message, ...); | 4979 | void 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); |
4663 | EOF | 4991 | EOF |
4664 | 4992 | ||
4665 | cat >> $cwrappersource <<EOF | 4993 | cat >> $cwrappersource <<EOF |
4666 | newargz[0] = "$SHELL"; | 4994 | newargz[0] = (char *) xstrdup("$SHELL"); |
4667 | EOF | 4995 | EOF |
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 | |||
4677 | EOF | 5015 | EOF |
4678 | 5016 | ||
4679 | cat >> $cwrappersource <<EOF | 5017 | case $host_os in |
5018 | mingw*) | ||
5019 | cat >> $cwrappersource <<EOF | ||
5020 | execv("$SHELL",(char const **)newargz); | ||
5021 | EOF | ||
5022 | ;; | ||
5023 | *) | ||
5024 | cat >> $cwrappersource <<EOF | ||
4680 | execv("$SHELL",newargz); | 5025 | execv("$SHELL",newargz); |
4681 | EOF | 5026 | EOF |
5027 | ;; | ||
5028 | esac | ||
4682 | 5029 | ||
4683 | cat >> $cwrappersource <<"EOF" | 5030 | cat >> $cwrappersource <<"EOF" |
5031 | return 127; | ||
4684 | } | 5032 | } |
4685 | 5033 | ||
4686 | void * | 5034 | void * |
@@ -4700,48 +5048,148 @@ xstrdup (const char *string) | |||
4700 | ; | 5048 | ; |
4701 | } | 5049 | } |
4702 | 5050 | ||
4703 | char * | 5051 | const char * |
4704 | basename (const char *name) | 5052 | base_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 | ||
5068 | int | ||
5069 | check_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 */ | ||
4720 | char * | 5095 | char * |
4721 | fnqualify(const char *path) | 5096 | find_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 | ||
4747 | char * | 5195 | char * |
@@ -4785,16 +5233,16 @@ lt_fatal (const char *message, ...) | |||
4785 | va_end (ap); | 5233 | va_end (ap); |
4786 | } | 5234 | } |
4787 | EOF | 5235 | EOF |
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. |
4818 | if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi | 5266 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
4819 | 5267 | ||
4820 | relink_command=\"$relink_command\" | 5268 | relink_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 | ||
6401 | exit $EXIT_SUCCESS | 6847 | exit $? |
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 |
6415 | build_libtool_libs=no | 6861 | disable_libs=shared |
6416 | build_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 |
6420 | build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac` | 6865 | disable_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> | |
4 | scriptversion=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 | ||
14 | errstatus=0 | 7 | errstatus=0 |
15 | dirmode="" | 8 | dirmode="" |
16 | 9 | ||
17 | usage="\ | 10 | usage="\ |
18 | Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ... | 11 | Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." |
19 | |||
20 | Create each directory DIR (with mode MODE, if specified), including all | ||
21 | leading file name components. | ||
22 | |||
23 | Report bugs to <bug-automake@gnu.org>." | ||
24 | 12 | ||
25 | # process command line arguments | 13 | # process command line arguments |
26 | while test $# -gt 0 ; do | 14 | while 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 ;; |
67 | esac | 51 | esac |
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. | ||
75 | case $dirmode in | 53 | case $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 | ;; |
102 | esac | 66 | esac |
@@ -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 | */ |
41 | static struct CommandLineOption gnunetgtkOptions[] = { | 41 | static 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")) { |