/[public]/psiconv/trunk/ltconfig
ViewVC logotype

Diff of /psiconv/trunk/ltconfig

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2 Revision 96
51 exit 0 51 exit 0
52fi 52fi
53 53
54# Find the correct PATH separator. Usually this is `:', but 54# Find the correct PATH separator. Usually this is `:', but
55# DJGPP uses `;' like DOS. 55# DJGPP uses `;' like DOS.
56if test "X${PATH_SEPARATOR+set}" != "Xset"; then 56if test "X${PATH_SEPARATOR+set}" != Xset; then
57 UNAME=${UNAME-`uname 2>/dev/null`} 57 UNAME=${UNAME-`uname 2>/dev/null`}
58 case X$UNAME in 58 case X$UNAME in
59 *-DOS) PATH_SEPARATOR=';' ;; 59 *-DOS) PATH_SEPARATOR=';' ;;
60 *) PATH_SEPARATOR=':' ;; 60 *) PATH_SEPARATOR=':' ;;
61 esac 61 esac
62fi 62fi
63 63
64# The HP-UX ksh and POSIX shell print the target directory to stdout 64# The HP-UX ksh and POSIX shell print the target directory to stdout
65# if CDPATH is set. 65# if CDPATH is set.
66if test "${CDPATH+set}" = set; then CDPATH=; export CDPATH; fi 66if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
67 67
68if test "X${echo_test_string+set}" != "Xset"; then 68if test "X${echo_test_string+set}" != Xset; then
69 # find a string as large as possible, as long as the shell can cope with it 69 # find a string as large as possible, as long as the shell can cope with it
70 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 70 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
71 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 71 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
72 if (echo_test_string="`eval $cmd`") 2>/dev/null && 72 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
73 echo_test_string="`eval $cmd`" && 73 echo_test_string="`eval $cmd`" &&
167progname=`$echo "X$0" | $Xsed -e 's%^.*/%%'` 167progname=`$echo "X$0" | $Xsed -e 's%^.*/%%'`
168 168
169# Constants: 169# Constants:
170PROGRAM=ltconfig 170PROGRAM=ltconfig
171PACKAGE=libtool 171PACKAGE=libtool
172VERSION=1.3.3 172VERSION=1.3.5
173TIMESTAMP=" (1.385.2.181 1999/07/02 15:49:11)" 173TIMESTAMP=" (1.385.2.206 2000/05/27 11:12:27)"
174ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.c 1>&5' 174ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
175ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.c $LIBS 1>&5' 175ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
176rm="rm -f" 176rm="rm -f"
177 177
178help="Try \`$progname --help' for more information." 178help="Try \`$progname --help' for more information."
179 179
180# Global variables: 180# Global variables:
367 367
368# NLS nuisances. 368# NLS nuisances.
369# Only set LANG and LC_ALL to C if already set. 369# Only set LANG and LC_ALL to C if already set.
370# These must not be set unconditionally because not all systems understand 370# These must not be set unconditionally because not all systems understand
371# e.g. LANG=C (notably SCO). 371# e.g. LANG=C (notably SCO).
372if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 372if test "X${LC_ALL+set}" = Xset; then LC_ALL=C; export LC_ALL; fi
373if test "${LANG+set}" = set; then LANG=C; export LANG; fi 373if test "X${LANG+set}" = Xset; then LANG=C; export LANG; fi
374 374
375if test -n "$cache_file" && test -r "$cache_file"; then 375if test -n "$cache_file" && test -r "$cache_file"; then
376 echo "loading cache $cache_file within ltconfig" 376 echo "loading cache $cache_file within ltconfig"
377 . $cache_file 377 . $cache_file
378fi 378fi
460case "$host_os" in 460case "$host_os" in
461aix3*) 461aix3*)
462 # AIX sometimes has problems with the GCC collect2 program. For some 462 # AIX sometimes has problems with the GCC collect2 program. For some
463 # reason, if we set the COLLECT_NAMES environment variable, the problems 463 # reason, if we set the COLLECT_NAMES environment variable, the problems
464 # vanish in a puff of smoke. 464 # vanish in a puff of smoke.
465 if test "${COLLECT_NAMES+set}" != set; then 465 if test "X${COLLECT_NAMES+set}" != Xset; then
466 COLLECT_NAMES= 466 COLLECT_NAMES=
467 export COLLECT_NAMES 467 export COLLECT_NAMES
468 fi 468 fi
469 ;; 469 ;;
470esac 470esac
661if test "$with_gcc" = yes; then 661if test "$with_gcc" = yes; then
662 wl='-Wl,' 662 wl='-Wl,'
663 link_static_flag='-static' 663 link_static_flag='-static'
664 664
665 case "$host_os" in 665 case "$host_os" in
666 beos* | irix5* | irix6* | osf3* | osf4*) 666 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
667 # PIC is the default for these OSes. 667 # PIC is the default for these OSes.
668 ;; 668 ;;
669 aix*) 669 aix*)
670 # Below there is a dirty hack to force normal static linking with -ldl 670 # Below there is a dirty hack to force normal static linking with -ldl
671 # The problem is because libdl dynamically linked with both libc and 671 # The problem is because libdl dynamically linked with both libc and
716 716
717 cygwin* | mingw* | os2*) 717 cygwin* | mingw* | os2*)
718 # We can build DLLs from non-PIC. 718 # We can build DLLs from non-PIC.
719 ;; 719 ;;
720 720
721 osf3* | osf4*) 721 osf3* | osf4* | osf5*)
722 # All OSF/1 code is PIC. 722 # All OSF/1 code is PIC.
723 wl='-Wl,' 723 wl='-Wl,'
724 link_static_flag='-non_shared' 724 link_static_flag='-non_shared'
725 ;; 725 ;;
726 726
1162 always_export_symbols=yes 1162 always_export_symbols=yes
1163 1163
1164 # Extract the symbol export list from an `--export-all' def file, 1164 # Extract the symbol export list from an `--export-all' def file,
1165 # then regenerate the def file from the symbol export list, so that 1165 # then regenerate the def file from the symbol export list, so that
1166 # the compiled dll only exports the symbol export list. 1166 # the compiled dll only exports the symbol export list.
1167 # Be careful not to strip the DATA tag left by newer dlltools.
1167 export_symbols_cmds='test -f $objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~ 1168 export_symbols_cmds='test -f $objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~
1168 test -f $objdir/$soname-ltdll.$objext || (cd $objdir && $CC -c $soname-ltdll.c)~ 1169 test -f $objdir/$soname-ltdll.$objext || (cd $objdir && $CC -c $soname-ltdll.c)~
1169 $DLLTOOL --export-all --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --output-def $objdir/$soname-def $objdir/$soname-ltdll.$objext $libobjs $convenience~ 1170 $DLLTOOL --export-all --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --output-def $objdir/$soname-def $objdir/$soname-ltdll.$objext $libobjs $convenience~
1170 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]* ; *//" < $objdir/$soname-def > $export_symbols' 1171 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $objdir/$soname-def > $export_symbols'
1171 1172
1173 # If DATA tags from a recent dlltool are present, honour them!
1172 archive_expsym_cmds='echo EXPORTS > $objdir/$soname-def~ 1174 archive_expsym_cmds='echo EXPORTS > $objdir/$soname-def~
1173 _lt_hint=1; 1175 _lt_hint=1;
1174 for symbol in `cat $export_symbols`; do 1176 cat $export_symbols | while read symbol; do
1177 set dummy \$symbol;
1178 case \$# in
1175 echo " \$symbol @ \$_lt_hint ; " >> $objdir/$soname-def; 1179 2) echo " \$2 @ \$_lt_hint ; " >> $objdir/$soname-def;;
1180 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $objdir/$soname-def;;
1181 esac;
1176 _lt_hint=`expr 1 + \$_lt_hint`; 1182 _lt_hint=`expr 1 + \$_lt_hint`;
1177 done~ 1183 done~
1178 test -f $objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~ 1184 test -f $objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~
1179 test -f $objdir/$soname-ltdll.$objext || (cd $objdir && $CC -c $soname-ltdll.c)~ 1185 test -f $objdir/$soname-ltdll.$objext || (cd $objdir && $CC -c $soname-ltdll.c)~
1180 $CC -Wl,--base-file,$objdir/$soname-base -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~ 1186 $CC -Wl,--base-file,$objdir/$soname-base -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~
1185 1191
1186 old_archive_from_new_cmds='$DLLTOOL --as=$AS --dllname $soname --def $objdir/$soname-def --output-lib $objdir/$libname.a' 1192 old_archive_from_new_cmds='$DLLTOOL --as=$AS --dllname $soname --def $objdir/$soname-def --output-lib $objdir/$libname.a'
1187 ;; 1193 ;;
1188 1194
1189 netbsd*) 1195 netbsd*)
1190 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 1196 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1191 archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib' 1197 archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
1192 archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 1198 archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1193 else 1199 else
1194 archive_cmds='$LD -Bshareable $libobjs $deplibs $linkopts -o $lib' 1200 archive_cmds='$LD -Bshareable $libobjs $deplibs $linkopts -o $lib'
1195 # can we support soname and/or expsyms with a.out? -oliva 1201 # can we support soname and/or expsyms with a.out? -oliva
1196 fi 1202 fi
1197 ;; 1203 ;;
1198 1204
1199 solaris*) 1205 solaris* | sysv5*)
1200 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then 1206 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
1201 ld_shlibs=no 1207 ld_shlibs=no
1202 cat <<EOF 1>&2 1208 cat <<EOF 1>&2
1203 1209
1204*** Warning: The releases 2.8.* of the GNU linker cannot reliably 1210*** Warning: The releases 2.8.* of the GNU linker cannot reliably
1242 cygwin* | mingw*) 1248 cygwin* | mingw*)
1243 # dlltool doesn't understand --whole-archive et. al. 1249 # dlltool doesn't understand --whole-archive et. al.
1244 whole_archive_flag_spec= 1250 whole_archive_flag_spec=
1245 ;; 1251 ;;
1246 *) 1252 *)
1253 # ancient GNU ld didn't support --whole-archive et. al.
1254 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
1247 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 1255 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
1256 else
1257 whole_archive_flag_spec=
1258 fi
1248 ;; 1259 ;;
1249 esac 1260 esac
1250 fi 1261 fi
1251else 1262else
1252 # PORTME fill in a description of your system's linker (not GNU ld) 1263 # PORTME fill in a description of your system's linker (not GNU ld)
1403 allow_undefined_flag=unsupported 1414 allow_undefined_flag=unsupported
1404 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $objdir/$libname.def~$echo DATA >> $objdir/$libname.def~$echo " SINGLE NONSHARED" >> $objdir/$libname.def~$echo EXPORTS >> $objdir/$libname.def~emxexp $libobjs >> $objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $linkopts $objdir/$libname.def' 1415 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $objdir/$libname.def~$echo DATA >> $objdir/$libname.def~$echo " SINGLE NONSHARED" >> $objdir/$libname.def~$echo EXPORTS >> $objdir/$libname.def~emxexp $libobjs >> $objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $linkopts $objdir/$libname.def'
1405 old_archive_from_new_cmds='emximp -o $objdir/$libname.a $objdir/$libname.def' 1416 old_archive_from_new_cmds='emximp -o $objdir/$libname.a $objdir/$libname.def'
1406 ;; 1417 ;;
1407 1418
1408 osf3* | osf4*) 1419 osf3*)
1409 if test "$with_gcc" = yes; then 1420 if test "$with_gcc" = yes; then
1410 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 1421 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
1411 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 1422 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
1412 else 1423 else
1413 allow_undefined_flag=' -expect_unresolved \*' 1424 allow_undefined_flag=' -expect_unresolved \*'
1415 fi 1426 fi
1416 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 1427 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1417 hardcode_libdir_separator=: 1428 hardcode_libdir_separator=:
1418 ;; 1429 ;;
1419 1430
1431 osf4* | osf5*) # As osf3* with the addition of the -msym flag
1432 if test "$with_gcc" = yes; then
1433 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
1434 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
1435 else
1436 allow_undefined_flag=' -expect_unresolved \*'
1437 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
1438 fi
1439 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1440 hardcode_libdir_separator=:
1441 ;;
1442 rhapsody*)
1443 archive_cmds='$CC -bundle -undefined suppress -o $lib $libobjs $deplibs $linkopts'
1444 hardcode_libdir_flags_spec='-L$libdir'
1445 hardcode_direct=yes
1446 hardcode_shlibpath_var=no
1447 ;;
1448
1420 sco3.2v5*) 1449 sco3.2v5*)
1421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' 1450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
1422 hardcode_shlibpath_var=no 1451 hardcode_shlibpath_var=no
1423 runpath_var=LD_RUN_PATH 1452 runpath_var=LD_RUN_PATH
1424 hardcode_runpath_var=yes 1453 hardcode_runpath_var=yes
1447 hardcode_minus_L=yes 1476 hardcode_minus_L=yes
1448 hardcode_shlibpath_var=no 1477 hardcode_shlibpath_var=no
1449 ;; 1478 ;;
1450 1479
1451 sysv4) 1480 sysv4)
1481 if test "x$host_vendor" = xsequent; then
1482 # Use $CC to link under sequent, because it throws in some extra .o
1483 # files that make .init and .fini sections work.
1484 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $linkopts'
1485 else
1452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' 1486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
1487 fi
1453 runpath_var='LD_RUN_PATH' 1488 runpath_var='LD_RUN_PATH'
1454 hardcode_shlibpath_var=no 1489 hardcode_shlibpath_var=no
1455 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 1490 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
1456 ;; 1491 ;;
1457 1492
1459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' 1494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
1460 hardcode_shlibpath_var=no 1495 hardcode_shlibpath_var=no
1461 export_dynamic_flag_spec='-Bexport' 1496 export_dynamic_flag_spec='-Bexport'
1462 ;; 1497 ;;
1463 1498
1499 sysv5*)
1500 no_undefined_flag=' -z text'
1501 # $CC -shared without GNU ld will not create a library from C++
1502 # object files and a static libstdc++, better avoid it by now
1503 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linkopts'
1504 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1505 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp'
1506 hardcode_libdir_flag_spec=
1507 hardcode_shlibpath_var=no
1508 runpath_var='LD_RUN_PATH'
1509 ;;
1510
1464 uts4*) 1511 uts4*)
1465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' 1512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
1466 hardcode_libdir_flag_spec='-L$libdir' 1513 hardcode_libdir_flag_spec='-L$libdir'
1467 hardcode_shlibpath_var=no 1514 hardcode_shlibpath_var=no
1468 ;; 1515 ;;
1472 hardcode_libdir_flag_spec='-L$libdir' 1519 hardcode_libdir_flag_spec='-L$libdir'
1473 hardcode_shlibpath_var=no 1520 hardcode_shlibpath_var=no
1474 ;; 1521 ;;
1475 1522
1476 sysv4*MP*) 1523 sysv4*MP*)
1477 if test -d /usr/nec ;then 1524 if test -d /usr/nec; then
1478 # archive_cmds='$LD -G -z text -h $soname -o $lib$libobjs$deplibs'
1479 archive_cmds='$LD -G -h $soname -o $lib$libobjs$deplibs' 1525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
1526 hardcode_shlibpath_var=no
1527 runpath_var=LD_RUN_PATH
1528 hardcode_runpath_var=yes
1529 ld_shlibs=yes
1530 fi
1531 ;;
1532
1533 sysv4.2uw2*)
1534 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linkopts'
1535 hardcode_direct=yes
1536 hardcode_minus_L=no
1480 hardcode_shlibpath_var=no 1537 hardcode_shlibpath_var=no
1538 hardcode_runpath_var=yes
1481 runpath_var=LD_RUN_PATH 1539 runpath_var=LD_RUN_PATH
1540 ;;
1541
1542 unixware7*)
1543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
1544 runpath_var='LD_RUN_PATH'
1482 hardcode_runpath_var=yes 1545 hardcode_shlibpath_var=no
1483 ld_shlibs=yes
1484 fi
1485 ;; 1546 ;;
1486 1547
1487 *) 1548 *)
1488 ld_shlibs=no 1549 ld_shlibs=no
1489 ;; 1550 ;;
1587} 1648}
1588#endif 1649#endif
1589main(){nm_test_var='a';nm_test_func();return(0);} 1650main(){nm_test_var='a';nm_test_func();return(0);}
1590EOF 1651EOF
1591 1652
1592 echo "$progname:1592: checking if global_symbol_pipe works" >&5 1653 echo "$progname:1653: checking if global_symbol_pipe works" >&5
1593 if { (eval echo $progname:1593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.$objext; then 1654 if { (eval echo $progname:1654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.$objext; then
1594 # Now try to grab the symbols. 1655 # Now try to grab the symbols.
1595 nlist=conftest.nm 1656 nlist=conftest.nm
1596 if { echo "$progname:1596: eval \"$NM conftest.$objext | $global_symbol_pipe > $nlist\"" >&5; eval "$NM conftest.$objext | $global_symbol_pipe > $nlist 2>&5"; } && test -s "$nlist"; then 1657 if { echo "$progname:1657: eval \"$NM conftest.$objext | $global_symbol_pipe > $nlist\"" >&5; eval "$NM conftest.$objext | $global_symbol_pipe > $nlist 2>&5"; } && test -s "$nlist"; then
1597 1658
1598 # Try sorting and uniquifying the output. 1659 # Try sorting and uniquifying the output.
1599 if sort "$nlist" | uniq > "$nlist"T; then 1660 if sort "$nlist" | uniq > "$nlist"T; then
1600 mv -f "$nlist"T "$nlist" 1661 mv -f "$nlist"T "$nlist"
1601 else 1662 else
1643 mv conftest.$objext conftstm.$objext 1704 mv conftest.$objext conftstm.$objext
1644 save_LIBS="$LIBS" 1705 save_LIBS="$LIBS"
1645 save_CFLAGS="$CFLAGS" 1706 save_CFLAGS="$CFLAGS"
1646 LIBS="conftstm.$objext" 1707 LIBS="conftstm.$objext"
1647 CFLAGS="$CFLAGS$no_builtin_flag" 1708 CFLAGS="$CFLAGS$no_builtin_flag"
1648 if { (eval echo $progname:1648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1709 if { (eval echo $progname:1709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1649 pipe_works=yes 1710 pipe_works=yes
1650 else 1711 else
1651 echo "$progname: failed program was:" >&5 1712 echo "$progname: failed program was:" >&5
1652 cat conftest.c >&5 1713 cat conftest.c >&5
1653 fi 1714 fi
1785 lt_cv_dlopen_self=yes 1846 lt_cv_dlopen_self=yes
1786 ;; 1847 ;;
1787 1848
1788bsdi4*) 1849bsdi4*)
1789 version_type=linux 1850 version_type=linux
1790 library_names_spec='${libname}.so$major ${libname}.so' 1851 need_version=no
1852 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
1791 soname_spec='${libname}.so' 1853 soname_spec='${libname}${release}.so$major'
1792 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 1854 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1793 shlibpath_var=LD_LIBRARY_PATH 1855 shlibpath_var=LD_LIBRARY_PATH
1794 deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 1856 deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1795 file_magic_cmd=/usr/bin/file 1857 file_magic_cmd=/usr/bin/file
1796 file_magic_test_file=/shlib/libc.so 1858 file_magic_test_file=/shlib/libc.so
1797 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 1859 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1798 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 1860 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1861 export_dynamic_flag_spec=-rdynamic
1799 # the default ld.so.conf also contains /usr/contrib/lib and 1862 # the default ld.so.conf also contains /usr/contrib/lib and
1800 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 1863 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1801 # libtool to hard-code these into programs 1864 # libtool to hard-code these into programs
1802 ;; 1865 ;;
1803 1866
1839 deplibs_check_method=unknown 1902 deplibs_check_method=unknown
1840 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' 1903 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
1841 need_version=yes 1904 need_version=yes
1842 ;; 1905 ;;
1843 esac 1906 esac
1844 finish_cmds='PATH="\$PATH:/sbin" OBJFORMAT="'"$objformat"'" ldconfig -m $libdir'
1845 shlibpath_var=LD_LIBRARY_PATH 1907 shlibpath_var=LD_LIBRARY_PATH
1846 case "$host_os" in 1908 case "$host_os" in
1847 freebsd2* | freebsd3.[01]*) 1909 freebsd2* | freebsd3.[01]* | freebsdelf3.[01]*)
1848 shlibpath_overrides_runpath=yes 1910 shlibpath_overrides_runpath=yes
1849 ;; 1911 ;;
1850 *) # from 3.2 on 1912 *) # from 3.2 on
1851 shlibpath_overrides_runpath=no 1913 shlibpath_overrides_runpath=no
1852 ;; 1914 ;;
1873 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 1935 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1874 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' 1936 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
1875 soname_spec='${libname}${release}.sl$major' 1937 soname_spec='${libname}${release}.sl$major'
1876 # HP-UX runs *really* slowly unless shared libraries are mode 555. 1938 # HP-UX runs *really* slowly unless shared libraries are mode 555.
1877 postinstall_cmds='chmod 555 $lib' 1939 postinstall_cmds='chmod 555 $lib'
1940 case "$host_os" in
1941 hpux10.20*)
1942 # TODO: Does this work for hpux-11 too?
1943 deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1944 file_magic_cmd=/usr/bin/file
1945 file_magic_test_file=/usr/lib/libc.sl
1946 ;;
1947 esac
1878 ;; 1948 ;;
1879 1949
1880irix5* | irix6*) 1950irix5* | irix6*)
1881 version_type=irix 1951 version_type=irix
1882 need_lib_prefix=no 1952 need_lib_prefix=no
1894 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; 1964 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
1895 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; 1965 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
1896 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; 1966 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
1897 *) libsuff= shlibsuff= libmagic=never-match;; 1967 *) libsuff= shlibsuff= libmagic=never-match;;
1898 esac 1968 esac
1899 # this will be overridden with pass_all, but let us keep it just in case
1900 deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1901 ;; 1969 ;;
1902 esac 1970 esac
1903 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 1971 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1904 shlibpath_overrides_runpath=no 1972 shlibpath_overrides_runpath=no
1905 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 1973 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1922 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 1990 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
1923 soname_spec='${libname}${release}.so$major' 1991 soname_spec='${libname}${release}.so$major'
1924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 1992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1925 shlibpath_var=LD_LIBRARY_PATH 1993 shlibpath_var=LD_LIBRARY_PATH
1926 shlibpath_overrides_runpath=no 1994 shlibpath_overrides_runpath=no
1927 deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 1995 deplibs_check_method=pass_all
1928 file_magic_cmd=/usr/bin/file
1929 file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1930 1996
1931 if test -f /lib/ld.so.1; then 1997 if test -f /lib/ld.so.1; then
1932 dynamic_linker='GNU ld.so' 1998 dynamic_linker='GNU ld.so'
1933 else 1999 else
1934 # Only the GNU ld.so supports shared libraries on MkLinux. 2000 # Only the GNU ld.so supports shared libraries on MkLinux.
1970 library_names_spec='$libname.dll $libname.a' 2036 library_names_spec='$libname.dll $libname.a'
1971 dynamic_linker='OS/2 ld.exe' 2037 dynamic_linker='OS/2 ld.exe'
1972 shlibpath_var=LIBPATH 2038 shlibpath_var=LIBPATH
1973 ;; 2039 ;;
1974 2040
1975osf3* | osf4*) 2041osf3* | osf4* | osf5*)
1976 version_type=osf 2042 version_type=osf
1977 need_version=no 2043 need_version=no
1978 soname_spec='${libname}${release}.so' 2044 soname_spec='${libname}${release}.so'
1979 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 2045 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
1980 shlibpath_var=LD_LIBRARY_PATH 2046 shlibpath_var=LD_LIBRARY_PATH
1983 file_magic_cmd=/usr/bin/file 2049 file_magic_cmd=/usr/bin/file
1984 file_magic_test_file=/shlib/libc.so 2050 file_magic_test_file=/shlib/libc.so
1985 deplibs_check_method='pass_all' 2051 deplibs_check_method='pass_all'
1986 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 2052 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1987 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 2053 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2054 ;;
2055
2056rhapsody*)
2057 version_type=sunos
2058 library_names_spec='${libname}.so'
2059 soname_spec='${libname}.so'
2060 shlibpath_var=DYLD_LIBRARY_PATH
2061 deplibs_check_method=pass_all
1988 ;; 2062 ;;
1989 2063
1990sco3.2v5*) 2064sco3.2v5*)
1991 version_type=osf 2065 version_type=osf
1992 soname_spec='${libname}${release}.so$major' 2066 soname_spec='${libname}${release}.so$major'
2025 version_type=linux 2099 version_type=linux
2026 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 2100 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2027 soname_spec='${libname}${release}.so$major' 2101 soname_spec='${libname}${release}.so$major'
2028 shlibpath_var=LD_LIBRARY_PATH 2102 shlibpath_var=LD_LIBRARY_PATH
2029 case "$host_vendor" in 2103 case "$host_vendor" in
2104 sequent)
2105 file_magic_cmd='/bin/file'
2106 deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2107 ;;
2030 ncr) 2108 ncr)
2031 deplibs_check_method='pass_all' 2109 deplibs_check_method='pass_all'
2032 ;; 2110 ;;
2033 motorola) 2111 motorola)
2034 need_lib_prefix=no 2112 need_lib_prefix=no
2165 enable_dlopen_self_static=unknown 2243 enable_dlopen_self_static=unknown
2166else 2244else
2167if eval "test \"`echo '$''{'lt_cv_dlopen'+set}'`\" != set"; then 2245if eval "test \"`echo '$''{'lt_cv_dlopen'+set}'`\" != set"; then
2168 lt_cv_dlopen=no lt_cv_dlopen_libs= 2246 lt_cv_dlopen=no lt_cv_dlopen_libs=
2169echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 2247echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2170echo "$progname:2170: checking for dlopen in -ldl" >&5 2248echo "$progname:2248: checking for dlopen in -ldl" >&5
2171ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 2249ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2172if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2250if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2173 echo $ac_n "(cached) $ac_c" 1>&6 2251 echo $ac_n "(cached) $ac_c" 1>&6
2174else 2252else
2175 ac_save_LIBS="$LIBS" 2253 ac_save_LIBS="$LIBS"
2176LIBS="-ldl $LIBS" 2254LIBS="-ldl $LIBS"
2177cat > conftest.$ac_ext <<EOF 2255cat > conftest.$ac_ext <<EOF
2178#line 2178 "ltconfig" 2256#line 2256 "ltconfig"
2179/* Override any gcc2 internal prototype to avoid an error. */ 2257/* Override any gcc2 internal prototype to avoid an error. */
2180/* We use char because int might match the return type of a gcc2 2258/* We use char because int might match the return type of a gcc2
2181 builtin and then its argument prototype would still apply. */ 2259 builtin and then its argument prototype would still apply. */
2260#ifdef __cplusplus
2261extern "C"
2262#endif
2182char dlopen(); 2263char dlopen();
2183 2264
2184int main() { 2265int main() {
2185dlopen() 2266dlopen()
2186; return 0; } 2267; return 0; }
2187EOF 2268EOF
2188if { (eval echo $progname:2188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2269if { (eval echo $progname:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2189 rm -rf conftest* 2270 rm -rf conftest*
2190 eval "ac_cv_lib_$ac_lib_var=yes" 2271 eval "ac_cv_lib_$ac_lib_var=yes"
2191else 2272else
2192 echo "$progname: failed program was:" >&5 2273 echo "$progname: failed program was:" >&5
2193 cat conftest.$ac_ext >&5 2274 cat conftest.$ac_ext >&5
2202 echo "$ac_t""yes" 1>&6 2283 echo "$ac_t""yes" 1>&6
2203 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 2284 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
2204else 2285else
2205 echo "$ac_t""no" 1>&6 2286 echo "$ac_t""no" 1>&6
2206echo $ac_n "checking for dlopen""... $ac_c" 1>&6 2287echo $ac_n "checking for dlopen""... $ac_c" 1>&6
2207echo "$progname:2207: checking for dlopen" >&5 2288echo "$progname:2288: checking for dlopen" >&5
2208if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then 2289if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
2209 echo $ac_n "(cached) $ac_c" 1>&6 2290 echo $ac_n "(cached) $ac_c" 1>&6
2210else 2291else
2211 cat > conftest.$ac_ext <<EOF 2292 cat > conftest.$ac_ext <<EOF
2212#line 2212 "ltconfig" 2293#line 2293 "ltconfig"
2213/* System header to define __stub macros and hopefully few prototypes, 2294/* System header to define __stub macros and hopefully few prototypes,
2214 which can conflict with char dlopen(); below. */ 2295 which can conflict with char dlopen(); below. */
2215#include <assert.h> 2296#include <assert.h>
2216/* Override any gcc2 internal prototype to avoid an error. */ 2297/* Override any gcc2 internal prototype to avoid an error. */
2217/* We use char because int might match the return type of a gcc2 2298/* We use char because int might match the return type of a gcc2
2218 builtin and then its argument prototype would still apply. */ 2299 builtin and then its argument prototype would still apply. */
2300#ifdef __cplusplus
2301extern "C"
2302#endif
2219char dlopen(); 2303char dlopen();
2220 2304
2221int main() { 2305int main() {
2222 2306
2223/* The GNU C library defines this for functions which it implements 2307/* The GNU C library defines this for functions which it implements
2229dlopen(); 2313dlopen();
2230#endif 2314#endif
2231 2315
2232; return 0; } 2316; return 0; }
2233EOF 2317EOF
2234if { (eval echo $progname:2234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2318if { (eval echo $progname:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2235 rm -rf conftest* 2319 rm -rf conftest*
2236 eval "ac_cv_func_dlopen=yes" 2320 eval "ac_cv_func_dlopen=yes"
2237else 2321else
2238 echo "$progname: failed program was:" >&5 2322 echo "$progname: failed program was:" >&5
2239 cat conftest.$ac_ext >&5 2323 cat conftest.$ac_ext >&5
2246 echo "$ac_t""yes" 1>&6 2330 echo "$ac_t""yes" 1>&6
2247 lt_cv_dlopen="dlopen" 2331 lt_cv_dlopen="dlopen"
2248else 2332else
2249 echo "$ac_t""no" 1>&6 2333 echo "$ac_t""no" 1>&6
2250echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6 2334echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
2251echo "$progname:2251: checking for dld_link in -ldld" >&5 2335echo "$progname:2335: checking for dld_link in -ldld" >&5
2252ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'` 2336ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
2253if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2337if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6 2338 echo $ac_n "(cached) $ac_c" 1>&6
2255else 2339else
2256 ac_save_LIBS="$LIBS" 2340 ac_save_LIBS="$LIBS"
2257LIBS="-ldld $LIBS" 2341LIBS="-ldld $LIBS"
2258cat > conftest.$ac_ext <<EOF 2342cat > conftest.$ac_ext <<EOF
2259#line 2259 "ltconfig" 2343#line 2343 "ltconfig"
2260/* Override any gcc2 internal prototype to avoid an error. */ 2344/* Override any gcc2 internal prototype to avoid an error. */
2261/* We use char because int might match the return type of a gcc2 2345/* We use char because int might match the return type of a gcc2
2262 builtin and then its argument prototype would still apply. */ 2346 builtin and then its argument prototype would still apply. */
2347#ifdef __cplusplus
2348extern "C"
2349#endif
2263char dld_link(); 2350char dld_link();
2264 2351
2265int main() { 2352int main() {
2266dld_link() 2353dld_link()
2267; return 0; } 2354; return 0; }
2268EOF 2355EOF
2269if { (eval echo $progname:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2356if { (eval echo $progname:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2270 rm -rf conftest* 2357 rm -rf conftest*
2271 eval "ac_cv_lib_$ac_lib_var=yes" 2358 eval "ac_cv_lib_$ac_lib_var=yes"
2272else 2359else
2273 echo "$progname: failed program was:" >&5 2360 echo "$progname: failed program was:" >&5
2274 cat conftest.$ac_ext >&5 2361 cat conftest.$ac_ext >&5
2283 echo "$ac_t""yes" 1>&6 2370 echo "$ac_t""yes" 1>&6
2284 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 2371 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
2285else 2372else
2286 echo "$ac_t""no" 1>&6 2373 echo "$ac_t""no" 1>&6
2287echo $ac_n "checking for shl_load""... $ac_c" 1>&6 2374echo $ac_n "checking for shl_load""... $ac_c" 1>&6
2288echo "$progname:2288: checking for shl_load" >&5 2375echo "$progname:2375: checking for shl_load" >&5
2289if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then 2376if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
2290 echo $ac_n "(cached) $ac_c" 1>&6 2377 echo $ac_n "(cached) $ac_c" 1>&6
2291else 2378else
2292 cat > conftest.$ac_ext <<EOF 2379 cat > conftest.$ac_ext <<EOF
2293#line 2293 "ltconfig" 2380#line 2380 "ltconfig"
2294/* System header to define __stub macros and hopefully few prototypes, 2381/* System header to define __stub macros and hopefully few prototypes,
2295 which can conflict with char shl_load(); below. */ 2382 which can conflict with char shl_load(); below. */
2296#include <assert.h> 2383#include <assert.h>
2297/* Override any gcc2 internal prototype to avoid an error. */ 2384/* Override any gcc2 internal prototype to avoid an error. */
2298/* We use char because int might match the return type of a gcc2 2385/* We use char because int might match the return type of a gcc2
2299 builtin and then its argument prototype would still apply. */ 2386 builtin and then its argument prototype would still apply. */
2387#ifdef __cplusplus
2388extern "C"
2389#endif
2300char shl_load(); 2390char shl_load();
2301 2391
2302int main() { 2392int main() {
2303 2393
2304/* The GNU C library defines this for functions which it implements 2394/* The GNU C library defines this for functions which it implements
2310shl_load(); 2400shl_load();
2311#endif 2401#endif
2312 2402
2313; return 0; } 2403; return 0; }
2314EOF 2404EOF
2315if { (eval echo $progname:2315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2405if { (eval echo $progname:2405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2316 rm -rf conftest* 2406 rm -rf conftest*
2317 eval "ac_cv_func_shl_load=yes" 2407 eval "ac_cv_func_shl_load=yes"
2318else 2408else
2319 echo "$progname: failed program was:" >&5 2409 echo "$progname: failed program was:" >&5
2320 cat conftest.$ac_ext >&5 2410 cat conftest.$ac_ext >&5
2328 echo "$ac_t""yes" 1>&6 2418 echo "$ac_t""yes" 1>&6
2329 lt_cv_dlopen="shl_load" 2419 lt_cv_dlopen="shl_load"
2330else 2420else
2331 echo "$ac_t""no" 1>&6 2421 echo "$ac_t""no" 1>&6
2332echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 2422echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
2333echo "$progname:2333: checking for shl_load in -ldld" >&5 2423echo "$progname:2423: checking for shl_load in -ldld" >&5
2334ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 2424ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
2335if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2425if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6 2426 echo $ac_n "(cached) $ac_c" 1>&6
2337else 2427else
2338 ac_save_LIBS="$LIBS" 2428 ac_save_LIBS="$LIBS"
2339LIBS="-ldld $LIBS" 2429LIBS="-ldld $LIBS"
2340cat > conftest.$ac_ext <<EOF 2430cat > conftest.$ac_ext <<EOF
2341#line 2341 "ltconfig" 2431#line 2431 "ltconfig"
2342#include "confdefs.h" 2432#include "confdefs.h"
2343/* Override any gcc2 internal prototype to avoid an error. */ 2433/* Override any gcc2 internal prototype to avoid an error. */
2344/* We use char because int might match the return type of a gcc2 2434/* We use char because int might match the return type of a gcc2
2345 builtin and then its argument prototype would still apply. */ 2435 builtin and then its argument prototype would still apply. */
2436#ifdef __cplusplus
2437extern "C"
2438#endif
2346char shl_load(); 2439char shl_load();
2347 2440
2348int main() { 2441int main() {
2349shl_load() 2442shl_load()
2350; return 0; } 2443; return 0; }
2351EOF 2444EOF
2352if { (eval echo $progname:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2445if { (eval echo $progname:2445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2353 rm -rf conftest* 2446 rm -rf conftest*
2354 eval "ac_cv_lib_$ac_lib_var=yes" 2447 eval "ac_cv_lib_$ac_lib_var=yes"
2355else 2448else
2356 echo "$progname: failed program was:" >&5 2449 echo "$progname: failed program was:" >&5
2357 cat conftest.$ac_ext >&5 2450 cat conftest.$ac_ext >&5
2390 case "$lt_cv_dlopen" in 2483 case "$lt_cv_dlopen" in
2391 dlopen) 2484 dlopen)
2392for ac_hdr in dlfcn.h; do 2485for ac_hdr in dlfcn.h; do
2393ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2486ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2394echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2487echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2395echo "$progname:2395: checking for $ac_hdr" >&5 2488echo "$progname:2488: checking for $ac_hdr" >&5
2396if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2489if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 1>&6 2490 echo $ac_n "(cached) $ac_c" 1>&6
2398else 2491else
2399 cat > conftest.$ac_ext <<EOF 2492 cat > conftest.$ac_ext <<EOF
2400#line 2400 "ltconfig" 2493#line 2493 "ltconfig"
2401#include <$ac_hdr> 2494#include <$ac_hdr>
2402int fnord = 0; 2495int fnord = 0;
2403EOF 2496EOF
2404ac_try="$ac_compile conftest.$ac_ext >/dev/null 2>conftest.out" 2497ac_try="$ac_compile >/dev/null 2>conftest.out"
2405{ (eval echo $progname:2405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2498{ (eval echo $progname:2498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2406ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2499ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2407if test -z "$ac_err"; then 2500if test -z "$ac_err"; then
2408 rm -rf conftest* 2501 rm -rf conftest*
2409 eval "ac_cv_header_$ac_safe=yes" 2502 eval "ac_cv_header_$ac_safe=yes"
2410else 2503else
2428 fi 2521 fi
2429 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 2522 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2430 LIBS="$lt_cv_dlopen_libs $LIBS" 2523 LIBS="$lt_cv_dlopen_libs $LIBS"
2431 2524
2432 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6 2525 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
2433echo "$progname:2433: checking whether a program can dlopen itself" >&5 2526echo "$progname:2526: checking whether a program can dlopen itself" >&5
2434if test "${lt_cv_dlopen_self+set}" = set; then 2527if test "${lt_cv_dlopen_self+set}" = set; then
2435 echo $ac_n "(cached) $ac_c" 1>&6 2528 echo $ac_n "(cached) $ac_c" 1>&6
2436else 2529else
2437 if test "$cross_compiling" = yes; then 2530 if test "$cross_compiling" = yes; then
2438 lt_cv_dlopen_self=cross 2531 lt_cv_dlopen_self=cross
2439 else 2532 else
2440 cat > conftest.c <<EOF 2533 cat > conftest.c <<EOF
2441#line 2441 "ltconfig" 2534#line 2534 "ltconfig"
2442 2535
2443#if HAVE_DLFCN_H 2536#if HAVE_DLFCN_H
2444#include <dlfcn.h> 2537#include <dlfcn.h>
2445#endif 2538#endif
2446 2539
2482main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW); 2575main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
2483 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord"); 2576 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
2484 if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); } 2577 if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); }
2485 2578
2486EOF 2579EOF
2487if { (eval echo $progname:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 2580if { (eval echo $progname:2580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2488then 2581then
2489 lt_cv_dlopen_self=yes 2582 lt_cv_dlopen_self=yes
2490else 2583else
2491 echo "$progname: failed program was:" >&5 2584 echo "$progname: failed program was:" >&5
2492 cat conftest.$ac_ext >&5 2585 cat conftest.$ac_ext >&5
2501echo "$ac_t""$lt_cv_dlopen_self" 1>&6 2594echo "$ac_t""$lt_cv_dlopen_self" 1>&6
2502 2595
2503 if test "$lt_cv_dlopen_self" = yes; then 2596 if test "$lt_cv_dlopen_self" = yes; then
2504 LDFLAGS="$LDFLAGS $link_static_flag" 2597 LDFLAGS="$LDFLAGS $link_static_flag"
2505 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6 2598 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
2506echo "$progname:2506: checking whether a statically linked program can dlopen itself" >&5 2599echo "$progname:2599: checking whether a statically linked program can dlopen itself" >&5
2507if test "${lt_cv_dlopen_self_static+set}" = set; then 2600if test "${lt_cv_dlopen_self_static+set}" = set; then
2508 echo $ac_n "(cached) $ac_c" 1>&6 2601 echo $ac_n "(cached) $ac_c" 1>&6
2509else 2602else
2510 if test "$cross_compiling" = yes; then 2603 if test "$cross_compiling" = yes; then
2511 lt_cv_dlopen_self_static=cross 2604 lt_cv_dlopen_self_static=cross
2512 else 2605 else
2513 cat > conftest.c <<EOF 2606 cat > conftest.c <<EOF
2514#line 2514 "ltconfig" 2607#line 2607 "ltconfig"
2515 2608
2516#if HAVE_DLFCN_H 2609#if HAVE_DLFCN_H
2517#include <dlfcn.h> 2610#include <dlfcn.h>
2518#endif 2611#endif
2519 2612
2555main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW); 2648main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
2556 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord"); 2649 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
2557 if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); } 2650 if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); }
2558 2651
2559EOF 2652EOF
2560if { (eval echo $progname:2560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 2653if { (eval echo $progname:2653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2561then 2654then
2562 lt_cv_dlopen_self_static=yes 2655 lt_cv_dlopen_self_static=yes
2563else 2656else
2564 echo "$progname: failed program was:" >&5 2657 echo "$progname: failed program was:" >&5
2565 cat conftest.$ac_ext >&5 2658 cat conftest.$ac_ext >&5
2647# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 2740# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
2648# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 2741# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
2649# NOTE: Changes made to this file will be lost: look at ltconfig or ltmain.sh. 2742# NOTE: Changes made to this file will be lost: look at ltconfig or ltmain.sh.
2650# 2743#
2651# Copyright (C) 1996-1999 Free Software Foundation, Inc. 2744# Copyright (C) 1996-1999 Free Software Foundation, Inc.
2652# Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 2745# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
2653# 2746#
2654# This program is free software; you can redistribute it and/or modify 2747# This program is free software; you can redistribute it and/or modify
2655# it under the terms of the GNU General Public License as published by 2748# it under the terms of the GNU General Public License as published by
2656# the Free Software Foundation; either version 2 of the License, or 2749# the Free Software Foundation; either version 2 of the License, or
2657# (at your option) any later version. 2750# (at your option) any later version.
2673# Sed that helps us avoid accidentally triggering echo(1) options like -n. 2766# Sed that helps us avoid accidentally triggering echo(1) options like -n.
2674Xsed="sed -e s/^X//" 2767Xsed="sed -e s/^X//"
2675 2768
2676# The HP-UX ksh and POSIX shell print the target directory to stdout 2769# The HP-UX ksh and POSIX shell print the target directory to stdout
2677# if CDPATH is set. 2770# if CDPATH is set.
2678if test "\${CDPATH+set}" = set; then CDPATH=; export CDPATH; fi 2771if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
2679 2772
2680### BEGIN LIBTOOL CONFIG 2773### BEGIN LIBTOOL CONFIG
2681EOF 2774EOF
2682 cfgfile="$ofile" 2775 cfgfile="$ofile"
2683 ;; 2776 ;;
2936 cat <<\EOF >> "$ofile" 3029 cat <<\EOF >> "$ofile"
2937 3030
2938# AIX sometimes has problems with the GCC collect2 program. For some 3031# AIX sometimes has problems with the GCC collect2 program. For some
2939# reason, if we set the COLLECT_NAMES environment variable, the problems 3032# reason, if we set the COLLECT_NAMES environment variable, the problems
2940# vanish in a puff of smoke. 3033# vanish in a puff of smoke.
2941if test "${COLLECT_NAMES+set}" != set; then 3034if test "X${COLLECT_NAMES+set}" != Xset; then
2942 COLLECT_NAMES= 3035 COLLECT_NAMES=
2943 export COLLECT_NAMES 3036 export COLLECT_NAMES
2944fi 3037fi
2945EOF 3038EOF
2946 ;; 3039 ;;
2947 esac 3040 esac
2948 3041
2949 # Append the ltmain.sh script. 3042 # Append the ltmain.sh script.
2950 sed '$q' "$ltmain" >> "$ofile" || (rm -f "$ofile"; exit 1) 3043 sed '$q' "$ltmain" >> "$ofile" || (rm -f "$ofile"; exit 1)
3044 # We use sed instead of cat because bash on DJGPP gets confused if
3045 # if finds mixed CR/LF and LF-only lines. Since sed operates in
3046 # text mode, it properly converts lines to CR/LF. This bash problem
3047 # is reportedly fixed, but why not run on old versions too?
2951 3048
2952 chmod +x "$ofile" 3049 chmod +x "$ofile"
2953 ;; 3050 ;;
2954 3051
2955*) 3052*)

Legend:
Removed from v.2  
changed lines
  Added in v.96

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26