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

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

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