- Timestamp:
- 02/03/12 12:45:51 (13 years ago)
- Location:
- trunk/FACT++
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/.aux_dir/config.guess
r10183 r12832 2 2 # Attempt to guess a canonical system name. 3 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 5 # Free Software Foundation, Inc.6 7 timestamp='20 09-12-30'4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 5 # 2011 Free Software Foundation, Inc. 6 7 timestamp='2011-05-11' 8 8 9 9 # This file is free software; you can redistribute it and/or modify it … … 58 58 Originally written by Per Bothner. 59 59 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 60 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free60 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free 61 61 Software Foundation, Inc. 62 62 … … 182 182 ;; 183 183 *) 184 184 os=netbsd 185 185 ;; 186 186 esac … … 225 225 ;; 226 226 *5.*) 227 227 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 228 228 ;; 229 229 esac … … 271 271 # 1.2 uses "1.2" for uname -r. 272 272 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 273 exit ;; 273 # Reset EXIT trap before exiting to avoid spurious non-zero exit code. 274 exitcode=$? 275 trap '' 0 276 exit $exitcode ;; 274 277 Alpha\ *:Windows_NT*:*) 275 278 # How do we know it's Interix rather than the generic POSIX subsystem? … … 297 300 exit ;; 298 301 *:OS400:*:*) 299 302 echo powerpc-ibm-os400 300 303 exit ;; 301 304 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) … … 396 399 # be no problem. 397 400 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 398 401 echo m68k-atari-mint${UNAME_RELEASE} 399 402 exit ;; 400 403 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 401 404 echo m68k-atari-mint${UNAME_RELEASE} 402 405 exit ;; 403 406 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 404 407 echo m68k-atari-mint${UNAME_RELEASE} 405 408 exit ;; 406 409 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 407 408 410 echo m68k-milan-mint${UNAME_RELEASE} 411 exit ;; 409 412 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 410 411 413 echo m68k-hades-mint${UNAME_RELEASE} 414 exit ;; 412 415 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 413 414 416 echo m68k-unknown-mint${UNAME_RELEASE} 417 exit ;; 415 418 m68k:machten:*:*) 416 419 echo m68k-apple-machten${UNAME_RELEASE} … … 482 485 exit ;; 483 486 AViiON:dgux:*:*) 484 485 487 # DG/UX returns AViiON for all architectures 488 UNAME_PROCESSOR=`/usr/bin/uname -p` 486 489 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] 487 490 then … … 496 499 echo i586-dg-dgux${UNAME_RELEASE} 497 500 fi 498 501 exit ;; 499 502 M88*:DolphinOS:*:*) # DolphinOS (SVR3) 500 503 echo m88k-dolphin-sysv3 … … 553 556 fi 554 557 exit ;; 555 *:AIX:*:[456 ])558 *:AIX:*:[4567]) 556 559 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 557 560 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then … … 596 599 if [ -x /usr/bin/getconf ]; then 597 600 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 598 599 600 601 602 603 604 605 601 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 602 case "${sc_cpu_version}" in 603 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 604 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 605 532) # CPU_PA_RISC2_0 606 case "${sc_kernel_bits}" in 607 32) HP_ARCH="hppa2.0n" ;; 608 64) HP_ARCH="hppa2.0w" ;; 606 609 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 607 608 610 esac ;; 611 esac 609 612 fi 610 613 if [ "${HP_ARCH}" = "" ]; then 611 614 eval $set_cc_for_build 612 sed 's/^ 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 615 sed 's/^ //' << EOF >$dummy.c 616 617 #define _HPUX_SOURCE 618 #include <stdlib.h> 619 #include <unistd.h> 620 621 int main () 622 { 623 #if defined(_SC_KERNEL_BITS) 624 long bits = sysconf(_SC_KERNEL_BITS); 625 #endif 626 long cpu = sysconf (_SC_CPU_VERSION); 627 628 switch (cpu) 629 { 630 case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 631 case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 632 case CPU_PA_RISC2_0: 633 #if defined(_SC_KERNEL_BITS) 634 switch (bits) 635 { 636 case 64: puts ("hppa2.0w"); break; 637 case 32: puts ("hppa2.0n"); break; 638 default: puts ("hppa2.0"); break; 639 } break; 640 #else /* !defined(_SC_KERNEL_BITS) */ 641 puts ("hppa2.0"); break; 642 #endif 643 default: puts ("hppa1.0"); break; 644 } 645 exit (0); 646 } 644 647 EOF 645 648 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` … … 732 735 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 733 736 echo c1-convex-bsd 734 737 exit ;; 735 738 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 736 739 if getsysinfo -f scalar_acc … … 738 741 else echo c2-convex-bsd 739 742 fi 740 743 exit ;; 741 744 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 742 745 echo c34-convex-bsd 743 746 exit ;; 744 747 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 745 748 echo c38-convex-bsd 746 749 exit ;; 747 750 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 748 751 echo c4-convex-bsd 749 752 exit ;; 750 753 CRAY*Y-MP:*:*:*) 751 754 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' … … 771 774 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 772 775 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 773 774 775 776 776 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 777 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 778 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 779 exit ;; 777 780 5000:UNIX_System_V:4.*:*) 778 779 780 781 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 782 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 783 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 781 784 exit ;; 782 785 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) … … 806 809 exit ;; 807 810 i*:windows32*:*) 808 809 811 # uname -m includes "-pc" on this system. 812 echo ${UNAME_MACHINE}-mingw32 810 813 exit ;; 811 814 i*:PW*:*) … … 813 816 exit ;; 814 817 *:Interix*:*) 815 818 case ${UNAME_MACHINE} in 816 819 x86) 817 820 echo i586-pc-interix${UNAME_RELEASE} … … 868 871 EV67) UNAME_MACHINE=alphaev67 ;; 869 872 EV68*) UNAME_MACHINE=alphaev68 ;; 870 873 esac 871 874 objdump --private-headers /bin/sh | grep -q ld.so.1 872 875 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi … … 880 883 echo ${UNAME_MACHINE}-unknown-linux-gnu 881 884 else 882 echo ${UNAME_MACHINE}-unknown-linux-gnueabi 885 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ 886 | grep -q __ARM_PCS_VFP 887 then 888 echo ${UNAME_MACHINE}-unknown-linux-gnueabi 889 else 890 echo ${UNAME_MACHINE}-unknown-linux-gnueabihf 891 fi 883 892 fi 884 893 exit ;; … … 893 902 exit ;; 894 903 frv:Linux:*:*) 895 904 echo frv-unknown-linux-gnu 896 905 exit ;; 897 906 i*86:Linux:*:*) … … 961 970 exit ;; 962 971 sh64*:Linux:*:*) 963 972 echo ${UNAME_MACHINE}-unknown-linux-gnu 964 973 exit ;; 965 974 sh*:Linux:*:*) … … 969 978 echo ${UNAME_MACHINE}-unknown-linux-gnu 970 979 exit ;; 980 tile*:Linux:*:*) 981 echo ${UNAME_MACHINE}-tilera-linux-gnu 982 exit ;; 971 983 vax:Linux:*:*) 972 984 echo ${UNAME_MACHINE}-dec-linux-gnu … … 976 988 exit ;; 977 989 xtensa*:Linux:*:*) 978 990 echo ${UNAME_MACHINE}-unknown-linux-gnu 979 991 exit ;; 980 992 i*86:DYNIX/ptx:4*:*) … … 985 997 exit ;; 986 998 i*86:UNIX_SV:4.2MP:2.*) 987 988 989 999 # Unixware is an offshoot of SVR4, but it has its own version 1000 # number series starting with 2... 1001 # I am not positive that other SVR4 systems won't match this, 990 1002 # I just have to hope. -- rms. 991 1003 # Use sysv4.2uw... so that sysv4* matches it. 992 1004 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 993 1005 exit ;; … … 1021 1033 exit ;; 1022 1034 i*86:*:5:[678]*) 1023 1035 # UnixWare 7.x, OpenUNIX and OpenServer 6. 1024 1036 case `/bin/uname -X | grep "^Machine"` in 1025 1037 *486*) UNAME_MACHINE=i486 ;; … … 1049 1061 pc:*:*:*) 1050 1062 # Left here for compatibility: 1051 1052 1063 # uname -m prints for DJGPP always 'pc', but it prints nothing about 1064 # the processor, so we play safe by assuming i586. 1053 1065 # Note: whatever this is, it MUST be the same as what config.sub 1054 1066 # prints for the "djgpp" host, or else GDB configury will decide that 1055 1067 # this is a cross-build. 1056 1068 echo i586-pc-msdosdjgpp 1057 1069 exit ;; 1058 1070 Intel:Mach:3*:*) 1059 1071 echo i386-pc-mach3 … … 1090 1102 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1091 1103 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 1092 1093 1104 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1105 && { echo i486-ncr-sysv4; exit; } ;; 1094 1106 NCR*:*:4.2:* | MPRAS*:*:4.2:*) 1095 1107 OS_REL='.3' … … 1134 1146 fi 1135 1147 exit ;; 1136 PENTIUM:*:4.0*:*) 1137 1138 1139 1148 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 1149 # says <Richard.M.Bartel@ccMail.Census.GOV> 1150 echo i586-unisys-sysv4 1151 exit ;; 1140 1152 *:UNIX_System_V:4*:FTX*) 1141 1153 # From Gerald Hewes <hewes@openmarket.com>. … … 1163 1175 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 1164 1176 if [ -d /usr/nec ]; then 1165 1177 echo mips-nec-sysv${UNAME_RELEASE} 1166 1178 else 1167 1168 fi 1169 1179 echo mips-unknown-sysv${UNAME_RELEASE} 1180 fi 1181 exit ;; 1170 1182 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 1171 1183 echo powerpc-be-beos … … 1232 1244 echo i386-pc-qnx 1233 1245 exit ;; 1246 NEO-?:NONSTOP_KERNEL:*:*) 1247 echo neo-tandem-nsk${UNAME_RELEASE} 1248 exit ;; 1234 1249 NSE-?:NONSTOP_KERNEL:*:*) 1235 1250 echo nse-tandem-nsk${UNAME_RELEASE} … … 1277 1292 exit ;; 1278 1293 SEI:*:*:SEIUX) 1279 1294 echo mips-sei-seiux${UNAME_RELEASE} 1280 1295 exit ;; 1281 1296 *:DragonFly:*:*) … … 1283 1298 exit ;; 1284 1299 *:*VMS:*:*) 1285 1300 UNAME_MACHINE=`(uname -p) 2>/dev/null` 1286 1301 case "${UNAME_MACHINE}" in 1287 1302 A*) echo alpha-dec-vms ; exit ;; … … 1323 1338 printf ("m68k-sony-newsos%s\n", 1324 1339 #ifdef NEWSOS4 1325 1340 "4" 1326 1341 #else 1327 1328 #endif 1329 1342 "" 1343 #endif 1344 ); exit (0); 1330 1345 #endif 1331 1346 #endif -
trunk/FACT++/.aux_dir/config.sub
r10183 r12832 2 2 # Configuration validation subroutine script. 3 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 5 # Free Software Foundation, Inc.6 7 timestamp='201 0-01-22'4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 5 # 2011 Free Software Foundation, Inc. 6 7 timestamp='2011-03-23' 8 8 9 9 # This file is (in principle) common to ALL GNU software. … … 77 77 78 78 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 79 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free79 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free 80 80 Software Foundation, Inc. 81 81 … … 125 125 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 126 126 case $maybe_os in 127 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ 128 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ 127 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ 128 linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ 129 knetbsd*-gnu* | netbsd*-gnu* | \ 129 130 kopensolaris*-gnu* | \ 130 131 storm-chaos* | os2-emx* | rtmk-nova*) … … 158 159 basic_machine=$1 159 160 ;; 160 161 161 -bluegene*) 162 os=-cnk 162 163 ;; 163 164 -sim | -cisco | -oki | -wec | -winbond) … … 175 176 basic_machine=$1 176 177 ;; 177 178 178 -chorusrdb) 179 os=-chorusrdb 179 180 basic_machine=$1 180 181 ;; 181 182 -hiux*) 182 183 os=-hiuxwe2 … … 283 284 | mt \ 284 285 | msp430 \ 286 | nds32 | nds32le | nds32be \ 285 287 | nios | nios2 \ 286 288 | ns16k | ns32k \ 289 | open8 \ 287 290 | or32 \ 288 291 | pdp10 | pdp11 | pj | pjl \ 289 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe\292 | powerpc | powerpc64 | powerpc64le | powerpcle \ 290 293 | pyramid \ 291 294 | rx \ … … 295 298 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ 296 299 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ 297 | spu | strongarm\298 | tahoe | t humb | tic4x | tic80 | tron \300 | spu \ 301 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ 299 302 | ubicom32 \ 300 303 | v850 | v850e \ 301 304 | we32k \ 302 | x86 | xc16x | xs cale | xscalee[bl] | xstormy16 | xtensa \305 | x86 | xc16x | xstormy16 | xtensa \ 303 306 | z8k | z80) 304 307 basic_machine=$basic_machine-unknown 308 ;; 309 c54x) 310 basic_machine=tic54x-unknown 311 ;; 312 c55x) 313 basic_machine=tic55x-unknown 314 ;; 315 c6x) 316 basic_machine=tic6x-unknown 305 317 ;; 306 318 m6811 | m68hc11 | m6812 | m68hc12 | picochip) … … 313 325 ms1) 314 326 basic_machine=mt-unknown 327 ;; 328 329 strongarm | thumb | xscale) 330 basic_machine=arm-unknown 331 ;; 332 333 xscaleeb) 334 basic_machine=armeb-unknown 335 ;; 336 337 xscaleel) 338 basic_machine=armel-unknown 315 339 ;; 316 340 … … 335 359 | avr-* | avr32-* \ 336 360 | bfin-* | bs2000-* \ 337 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-*\361 | c[123]* | c30-* | [cjt]90-* | c4x-* \ 338 362 | clipper-* | craynv-* | cydra-* \ 339 363 | d10v-* | d30v-* | dlx-* \ … … 369 393 | mt-* \ 370 394 | msp430-* \ 395 | nds32-* | nds32le-* | nds32be-* \ 371 396 | nios-* | nios2-* \ 372 397 | none-* | np1-* | ns16k-* | ns32k-* \ 398 | open8-* \ 373 399 | orion-* \ 374 400 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 375 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-*\401 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ 376 402 | pyramid-* \ 377 403 | romp-* | rs6000-* | rx-* \ … … 380 406 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ 381 407 | sparclite-* \ 382 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | s trongarm-* | sv1-* | sx?-* \383 | tahoe-* | thumb-*\408 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ 409 | tahoe-* \ 384 410 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 385 411 | tile-* | tilegx-* \ … … 388 414 | v850-* | v850e-* | vax-* \ 389 415 | we32k-* \ 390 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-*\416 | x86-* | x86_64-* | xc16x-* | xps100-* \ 391 417 | xstormy16-* | xtensa*-* \ 392 418 | ymp-* \ … … 413 439 os=-udi 414 440 ;; 415 441 abacus) 416 442 basic_machine=abacus-unknown 417 443 ;; … … 483 509 os=-cnk 484 510 ;; 511 c54x-*) 512 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` 513 ;; 514 c55x-*) 515 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` 516 ;; 517 c6x-*) 518 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` 519 ;; 485 520 c90) 486 521 basic_machine=c90-cray 487 522 os=-unicos 488 523 ;; 489 524 cegcc) 490 525 basic_machine=arm-unknown 491 526 os=-cegcc … … 519 554 os=-unicosmp 520 555 ;; 521 cr16 )556 cr16 | cr16-*) 522 557 basic_machine=cr16-unknown 523 558 os=-elf … … 735 770 os=-sysv 736 771 ;; 737 772 microblaze) 738 773 basic_machine=microblaze-xilinx 739 774 ;; … … 842 877 basic_machine=np1-gould 843 878 ;; 879 neo-tandem) 880 basic_machine=neo-tandem 881 ;; 882 nse-tandem) 883 basic_machine=nse-tandem 884 ;; 844 885 nsr-tandem) 845 886 basic_machine=nsr-tandem … … 924 965 power) basic_machine=power-ibm 925 966 ;; 926 ppc) basic_machine=powerpc-unknown 927 ;; 928 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 967 ppc | ppcbe) basic_machine=powerpc-unknown 968 ;; 969 ppc-* | ppcbe-*) 970 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 929 971 ;; 930 972 ppcle | powerpclittle | ppc-le | powerpc-little) … … 1020 1062 os=-sysv4 1021 1063 ;; 1064 strongarm-* | thumb-*) 1065 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` 1066 ;; 1022 1067 sun2) 1023 1068 basic_machine=m68000-sun … … 1076 1121 os=-unicos 1077 1122 ;; 1078 tic54x | c54x*) 1079 basic_machine=tic54x-unknown 1080 os=-coff 1081 ;; 1082 tic55x | c55x*) 1083 basic_machine=tic55x-unknown 1084 os=-coff 1085 ;; 1086 tic6x | c6x*) 1087 basic_machine=tic6x-unknown 1088 os=-coff 1089 ;; 1090 # This must be matched before tile*. 1091 tilegx*) 1123 # This must be matched before tile*. 1124 tilegx*) 1092 1125 basic_machine=tilegx-unknown 1093 1126 os=-linux-gnu … … 1163 1196 xps | xps100) 1164 1197 basic_machine=xps100-honeywell 1198 ;; 1199 xscale-* | xscalee[bl]-*) 1200 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` 1165 1201 ;; 1166 1202 ymp) … … 1261 1297 then 1262 1298 case $os in 1263 1264 1299 # First match some system type aliases 1300 # that might get confused with valid system types. 1265 1301 # -solaris* is a basic system type, with this one exception. 1266 1267 1302 -auroraux) 1303 os=-auroraux 1268 1304 ;; 1269 1305 -solaris1 | -solaris1.*) … … 1302 1338 | -chorusos* | -chorusrdb* | -cegcc* \ 1303 1339 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1304 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ 1340 | -mingw32* | -linux-gnu* | -linux-android* \ 1341 | -linux-newlib* | -linux-uclibc* \ 1305 1342 | -uxpv* | -beos* | -mpeix* | -udk* \ 1306 1343 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ … … 1349 1386 os=-openedition 1350 1387 ;; 1351 1388 -os400*) 1352 1389 os=-os400 1353 1390 ;; … … 1398 1435 os=-sysv4 1399 1436 ;; 1400 1437 -tpf*) 1401 1438 os=-tpf 1402 1439 ;; … … 1443 1480 os=-dicos 1444 1481 ;; 1445 1446 1482 -nacl*) 1483 ;; 1447 1484 -none) 1448 1485 ;; … … 1467 1504 1468 1505 case $basic_machine in 1469 1506 score-*) 1470 1507 os=-elf 1471 1508 ;; 1472 1509 spu-*) 1473 1510 os=-elf 1474 1511 ;; … … 1482 1519 os=-aout 1483 1520 ;; 1484 c4x-* | tic4x-*) 1485 os=-coff 1521 c4x-* | tic4x-*) 1522 os=-coff 1523 ;; 1524 tic54x-*) 1525 os=-coff 1526 ;; 1527 tic55x-*) 1528 os=-coff 1529 ;; 1530 tic6x-*) 1531 os=-coff 1486 1532 ;; 1487 1533 # This must come before the *-dec entry. … … 1510 1556 os=-aout 1511 1557 ;; 1512 1558 mep-*) 1513 1559 os=-elf 1514 1560 ;; … … 1537 1583 os=-aix 1538 1584 ;; 1539 1585 *-knuth) 1540 1586 os=-mmixware 1541 1587 ;; -
trunk/FACT++/.aux_dir/ltmain.sh
r10591 r12832 1 # Generated from ltmain.m4sh. 2 3 # ltmain.sh (GNU libtool) 2.2.6b 1 2 # libtool (GNU libtool) 2.4 4 3 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 5 4 6 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc. 5 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 6 # 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 7 7 # This is free software; see the source for copying conditions. There is NO 8 8 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. … … 33 33 # Provide generalized library-building support services. 34 34 # 35 # --config show all configuration variables 36 # --debug enable verbose shell tracing 37 # -n, --dry-run display commands without modifying any files 38 # --features display basic configuration information and exit 39 # --mode=MODE use operation mode MODE 40 # --preserve-dup-deps don't remove duplicate dependency libraries 41 # --quiet, --silent don't print informational messages 42 # --tag=TAG use configuration variables from tag TAG 43 # -v, --verbose print informational messages (default) 44 # --version print version information 45 # -h, --help print short or long help message 35 # --config show all configuration variables 36 # --debug enable verbose shell tracing 37 # -n, --dry-run display commands without modifying any files 38 # --features display basic configuration information and exit 39 # --mode=MODE use operation mode MODE 40 # --preserve-dup-deps don't remove duplicate dependency libraries 41 # --quiet, --silent don't print informational messages 42 # --no-quiet, --no-silent 43 # print informational messages (default) 44 # --tag=TAG use configuration variables from tag TAG 45 # -v, --verbose print more informational messages than default 46 # --no-verbose don't print the extra informational messages 47 # --version print version information 48 # -h, --help, --help-all print short, long, or detailed help message 46 49 # 47 50 # MODE must be one of the following: 48 51 # 49 # clean remove files from the build directory50 # compile compile a source file into a libtool object51 # execute automatically set library path, then run a program52 # finish complete the installation of libtool libraries53 # install install libraries or executables54 # link create a library or an executable55 # uninstall remove libraries from an installed directory52 # clean remove files from the build directory 53 # compile compile a source file into a libtool object 54 # execute automatically set library path, then run a program 55 # finish complete the installation of libtool libraries 56 # install install libraries or executables 57 # link create a library or an executable 58 # uninstall remove libraries from an installed directory 56 59 # 57 # MODE-ARGS vary depending on the MODE. 60 # MODE-ARGS vary depending on the MODE. When passed as first option, 61 # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that. 58 62 # Try `$progname --help --mode=MODE' for a more detailed description of MODE. 59 63 # … … 61 65 # include the following information: 62 66 # 63 # host-triplet: $host64 # shell: $SHELL65 # compiler: $LTCC66 # compiler flags: $LTCFLAGS67 # linker: $LD (gnu? $with_gnu_ld)68 # $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu169 # automake:$automake_version70 # autoconf:$autoconf_version67 # host-triplet: $host 68 # shell: $SHELL 69 # compiler: $LTCC 70 # compiler flags: $LTCFLAGS 71 # linker: $LD (gnu? $with_gnu_ld) 72 # $progname: (GNU libtool) 2.4 Debian-2.4-2ubuntu1 73 # automake: $automake_version 74 # autoconf: $autoconf_version 71 75 # 72 76 # Report bugs to <bug-libtool@gnu.org>. 73 74 PROGRAM=ltmain.sh 77 # GNU libtool home page: <http://www.gnu.org/software/libtool/>. 78 # General help using GNU software: <http://www.gnu.org/gethelp/>. 79 80 PROGRAM=libtool 75 81 PACKAGE=libtool 76 VERSION="2. 2.6b Debian-2.2.6b-2ubuntu1"82 VERSION="2.4 Debian-2.4-2ubuntu1" 77 83 TIMESTAMP="" 78 package_revision=1.3 01784 package_revision=1.3293 79 85 80 86 # Be Bourne compatible … … 92 98 DUALCASE=1; export DUALCASE # for MKS sh 93 99 100 # A function that is used when there is no print builtin or printf. 101 func_fallback_echo () 102 { 103 eval 'cat <<_LTECHO_EOF 104 $1 105 _LTECHO_EOF' 106 } 107 94 108 # NLS nuisances: We save the old values to restore during execute mode. 95 # Only set LANG and LC_ALL to C if already set.96 # These must not be set unconditionally because not all systems understand97 # e.g. LANG=C (notably SCO).98 109 lt_user_locale= 99 110 lt_safe_locale= … … 108 119 fi" 109 120 done 121 LC_ALL=C 122 LANGUAGE=C 123 export LANGUAGE LC_ALL 110 124 111 125 $lt_unset CDPATH 112 126 113 127 128 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh 129 # is ksh but when the shell is invoked as "sh" and the current value of 130 # the _XPG environment variable is not equal to 1 (one), the special 131 # positional parameter $0, within a function call, is the name of the 132 # function. 133 progpath="$0" 114 134 115 135 116 136 117 137 : ${CP="cp -f"} 118 : ${ECHO="echo"}138 test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'} 119 139 : ${EGREP="/bin/grep -E"} 120 140 : ${FGREP="/bin/grep -F"} … … 144 164 dirname="s,/[^/]*$,," 145 165 basename="s,^.*/,," 166 167 # func_dirname file append nondir_replacement 168 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 169 # otherwise set result to NONDIR_REPLACEMENT. 170 func_dirname () 171 { 172 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 173 if test "X$func_dirname_result" = "X${1}"; then 174 func_dirname_result="${3}" 175 else 176 func_dirname_result="$func_dirname_result${2}" 177 fi 178 } # func_dirname may be replaced by extended shell implementation 179 180 181 # func_basename file 182 func_basename () 183 { 184 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 185 } # func_basename may be replaced by extended shell implementation 186 146 187 147 188 # func_dirname_and_basename file append nondir_replacement … … 159 200 func_dirname_and_basename () 160 201 { 161 # Extract subdirectory from the argument. 162 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 163 if test "X$func_dirname_result" = "X${1}"; then 164 func_dirname_result="${3}" 165 else 166 func_dirname_result="$func_dirname_result${2}" 202 # Extract subdirectory from the argument. 203 func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"` 204 if test "X$func_dirname_result" = "X${1}"; then 205 func_dirname_result="${3}" 206 else 207 func_dirname_result="$func_dirname_result${2}" 208 fi 209 func_basename_result=`$ECHO "${1}" | $SED -e "$basename"` 210 } # func_dirname_and_basename may be replaced by extended shell implementation 211 212 213 # func_stripname prefix suffix name 214 # strip PREFIX and SUFFIX off of NAME. 215 # PREFIX and SUFFIX must not contain globbing or regex special 216 # characters, hashes, percent signs, but SUFFIX may contain a leading 217 # dot (in which case that matches only a dot). 218 # func_strip_suffix prefix name 219 func_stripname () 220 { 221 case ${2} in 222 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 223 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 224 esac 225 } # func_stripname may be replaced by extended shell implementation 226 227 228 # These SED scripts presuppose an absolute path with a trailing slash. 229 pathcar='s,^/\([^/]*\).*$,\1,' 230 pathcdr='s,^/[^/]*,,' 231 removedotparts=':dotsl 232 s@/\./@/@g 233 t dotsl 234 s,/\.$,/,' 235 collapseslashes='s@/\{1,\}@/@g' 236 finalslash='s,/*$,/,' 237 238 # func_normal_abspath PATH 239 # Remove doubled-up and trailing slashes, "." path components, 240 # and cancel out any ".." path components in PATH after making 241 # it an absolute path. 242 # value returned in "$func_normal_abspath_result" 243 func_normal_abspath () 244 { 245 # Start from root dir and reassemble the path. 246 func_normal_abspath_result= 247 func_normal_abspath_tpath=$1 248 func_normal_abspath_altnamespace= 249 case $func_normal_abspath_tpath in 250 "") 251 # Empty path, that just means $cwd. 252 func_stripname '' '/' "`pwd`" 253 func_normal_abspath_result=$func_stripname_result 254 return 255 ;; 256 # The next three entries are used to spot a run of precisely 257 # two leading slashes without using negated character classes; 258 # we take advantage of case's first-match behaviour. 259 ///*) 260 # Unusual form of absolute path, do nothing. 261 ;; 262 //*) 263 # Not necessarily an ordinary path; POSIX reserves leading '//' 264 # and for example Cygwin uses it to access remote file shares 265 # over CIFS/SMB, so we conserve a leading double slash if found. 266 func_normal_abspath_altnamespace=/ 267 ;; 268 /*) 269 # Absolute path, do nothing. 270 ;; 271 *) 272 # Relative path, prepend $cwd. 273 func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath 274 ;; 275 esac 276 # Cancel out all the simple stuff to save iterations. We also want 277 # the path to end with a slash for ease of parsing, so make sure 278 # there is one (and only one) here. 279 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ 280 -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"` 281 while :; do 282 # Processed it all yet? 283 if test "$func_normal_abspath_tpath" = / ; then 284 # If we ascended to the root using ".." the result may be empty now. 285 if test -z "$func_normal_abspath_result" ; then 286 func_normal_abspath_result=/ 287 fi 288 break 289 fi 290 func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ 291 -e "$pathcar"` 292 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ 293 -e "$pathcdr"` 294 # Figure out what to do with it 295 case $func_normal_abspath_tcomponent in 296 "") 297 # Trailing empty path component, ignore it. 298 ;; 299 ..) 300 # Parent dir; strip last assembled component from result. 301 func_dirname "$func_normal_abspath_result" 302 func_normal_abspath_result=$func_dirname_result 303 ;; 304 *) 305 # Actual path component, append it. 306 func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent 307 ;; 308 esac 309 done 310 # Restore leading double-slash if one was found on entry. 311 func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result 312 } 313 314 # func_relative_path SRCDIR DSTDIR 315 # generates a relative path from SRCDIR to DSTDIR, with a trailing 316 # slash if non-empty, suitable for immediately appending a filename 317 # without needing to append a separator. 318 # value returned in "$func_relative_path_result" 319 func_relative_path () 320 { 321 func_relative_path_result= 322 func_normal_abspath "$1" 323 func_relative_path_tlibdir=$func_normal_abspath_result 324 func_normal_abspath "$2" 325 func_relative_path_tbindir=$func_normal_abspath_result 326 327 # Ascend the tree starting from libdir 328 while :; do 329 # check if we have found a prefix of bindir 330 case $func_relative_path_tbindir in 331 $func_relative_path_tlibdir) 332 # found an exact match 333 func_relative_path_tcancelled= 334 break 335 ;; 336 $func_relative_path_tlibdir*) 337 # found a matching prefix 338 func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" 339 func_relative_path_tcancelled=$func_stripname_result 340 if test -z "$func_relative_path_result"; then 341 func_relative_path_result=. 342 fi 343 break 344 ;; 345 *) 346 func_dirname $func_relative_path_tlibdir 347 func_relative_path_tlibdir=${func_dirname_result} 348 if test "x$func_relative_path_tlibdir" = x ; then 349 # Have to descend all the way to the root! 350 func_relative_path_result=../$func_relative_path_result 351 func_relative_path_tcancelled=$func_relative_path_tbindir 352 break 353 fi 354 func_relative_path_result=../$func_relative_path_result 355 ;; 356 esac 357 done 358 359 # Now calculate path; take care to avoid doubling-up slashes. 360 func_stripname '' '/' "$func_relative_path_result" 361 func_relative_path_result=$func_stripname_result 362 func_stripname '/' '/' "$func_relative_path_tcancelled" 363 if test "x$func_stripname_result" != x ; then 364 func_relative_path_result=${func_relative_path_result}/${func_stripname_result} 167 365 fi 168 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 169 } 170 171 # Generated shell functions inserted here. 172 173 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh 174 # is ksh but when the shell is invoked as "sh" and the current value of 175 # the _XPG environment variable is not equal to 1 (one), the special 176 # positional parameter $0, within a function call, is the name of the 177 # function. 178 progpath="$0" 366 367 # Normalisation. If bindir is libdir, return empty string, 368 # else relative path ending with a slash; either way, target 369 # file name can be directly appended. 370 if test ! -z "$func_relative_path_result"; then 371 func_stripname './' '' "$func_relative_path_result/" 372 func_relative_path_result=$func_stripname_result 373 fi 374 } 179 375 180 376 # The name of this program: 181 # In the unlikely event $progname began with a '-', it would play havoc with182 # func_echo (imagine progname=-n), so we prepend ./ in that case:183 377 func_dirname_and_basename "$progpath" 184 378 progname=$func_basename_result 185 case $progname in186 -*) progname=./$progname ;;187 esac188 379 189 380 # Make sure we have an absolute path for reexecution: … … 216 407 double_quote_subst='s/\(["`\\]\)/\\\1/g' 217 408 409 # Sed substitution that turns a string into a regex matching for the 410 # string literally. 411 sed_make_literal_regex='s,[].[^$\\*\/],\\&,g' 412 413 # Sed substitution that converts a w32 file name or path 414 # which contains forward slashes, into one that contains 415 # (escaped) backslashes. A very naive implementation. 416 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' 417 218 418 # Re-`\' parameter expansions in output of double_quote_subst that were 219 419 # `\'-ed in input to the same. If an odd number of `\' preceded a '$' … … 244 444 func_echo () 245 445 { 246 $ECHO "$progname ${mode+: }$mode:$*"446 $ECHO "$progname: ${opt_mode+$opt_mode: }$*" 247 447 } 248 448 … … 259 459 } 260 460 461 # func_echo_all arg... 462 # Invoke $ECHO with all args, space-separated. 463 func_echo_all () 464 { 465 $ECHO "$*" 466 } 467 261 468 # func_error arg... 262 469 # Echo program name prefixed message to standard error. 263 470 func_error () 264 471 { 265 $ECHO "$progname ${mode+: }$mode:"${1+"$@"} 1>&2472 $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2 266 473 } 267 474 … … 270 477 func_warning () 271 478 { 272 $opt_warning && $ECHO "$progname ${mode+: }$mode:warning: "${1+"$@"} 1>&2479 $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2 273 480 274 481 # bash bug again: … … 327 534 328 535 # ...otherwise throw away the child directory and loop 329 my_directory_path=`$ECHO " X$my_directory_path" | $Xsed-e "$dirname"`536 my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"` 330 537 done 331 my_dir_list=`$ECHO " X$my_dir_list" | $Xsed -e's,:*$,,'`538 my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'` 332 539 333 540 save_mkdir_p_IFS="$IFS"; IFS=':' … … 379 586 fi 380 587 381 $ECHO " X$my_tmpdir" | $Xsed588 $ECHO "$my_tmpdir" 382 589 } 383 590 … … 393 600 case $1 in 394 601 *[\\\`\"\$]*) 395 func_quote_for_eval_unquoted_result=`$ECHO " X$1" | $Xsed -e"$sed_quote_subst"` ;;602 func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;; 396 603 *) 397 604 func_quote_for_eval_unquoted_result="$1" ;; … … 420 627 case $1 in 421 628 *[\\\`\"]*) 422 my_arg=`$ECHO " X$1" | $Xsed\629 my_arg=`$ECHO "$1" | $SED \ 423 630 -e "$double_quote_subst" -e "$sed_double_backslash"` ;; 424 631 *) … … 489 696 } 490 697 491 492 698 # func_tr_sh 699 # Turn $1 into a string suitable for a shell variable name. 700 # Result is stored in $func_tr_sh_result. All characters 701 # not in the set a-zA-Z0-9_ are replaced with '_'. Further, 702 # if $1 begins with a digit, a '_' is prepended as well. 703 func_tr_sh () 704 { 705 case $1 in 706 [0-9]* | *[!a-zA-Z0-9_]*) 707 func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'` 708 ;; 709 * ) 710 func_tr_sh_result=$1 711 ;; 712 esac 713 } 493 714 494 715 … … 497 718 func_version () 498 719 { 499 $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / { 720 $opt_debug 721 722 $SED -n '/(C)/!b go 723 :more 724 /\./!{ 725 N 726 s/\n# / / 727 b more 728 } 729 :go 730 /^# '$PROGRAM' (GNU /,/# warranty; / { 500 731 s/^# // 501 732 s/^# *$// … … 510 741 func_usage () 511 742 { 512 $SED -n '/^# Usage:/,/# -h/ { 743 $opt_debug 744 745 $SED -n '/^# Usage:/,/^# *.*--help/ { 513 746 s/^# // 514 747 s/^# *$// … … 516 749 p 517 750 }' < "$progpath" 518 $ECHO751 echo 519 752 $ECHO "run \`$progname --help | more' for full usage" 520 753 exit $? 521 754 } 522 755 523 # func_help 524 # Echo long help message to standard output and exit. 756 # func_help [NOEXIT] 757 # Echo long help message to standard output and exit, 758 # unless 'noexit' is passed as argument. 525 759 func_help () 526 760 { 761 $opt_debug 762 527 763 $SED -n '/^# Usage:/,/# Report bugs to/ { 764 :print 528 765 s/^# // 529 766 s/^# *$// … … 538 775 s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ 539 776 p 540 }' < "$progpath" 541 exit $? 777 d 778 } 779 /^# .* home page:/b print 780 /^# General help using/b print 781 ' < "$progpath" 782 ret=$? 783 if test -z "$1"; then 784 exit $ret 785 fi 542 786 } 543 787 … … 547 791 func_missing_arg () 548 792 { 549 func_error "missing argument for $1" 793 $opt_debug 794 795 func_error "missing argument for $1." 550 796 exit_cmd=exit 551 797 } 552 798 799 800 # func_split_short_opt shortopt 801 # Set func_split_short_opt_name and func_split_short_opt_arg shell 802 # variables after splitting SHORTOPT after the 2nd character. 803 func_split_short_opt () 804 { 805 my_sed_short_opt='1s/^\(..\).*$/\1/;q' 806 my_sed_short_rest='1s/^..\(.*\)$/\1/;q' 807 808 func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"` 809 func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"` 810 } # func_split_short_opt may be replaced by extended shell implementation 811 812 813 # func_split_long_opt longopt 814 # Set func_split_long_opt_name and func_split_long_opt_arg shell 815 # variables after splitting LONGOPT at the `=' sign. 816 func_split_long_opt () 817 { 818 my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q' 819 my_sed_long_arg='1s/^--[^=]*=//' 820 821 func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"` 822 func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"` 823 } # func_split_long_opt may be replaced by extended shell implementation 824 553 825 exit_cmd=: 554 826 … … 556 828 557 829 558 559 # Check that we have a working $ECHO.560 if test "X$1" = X--no-reexec; then561 # Discard the --no-reexec flag, and continue.562 shift563 elif test "X$1" = X--fallback-echo; then564 # Avoid inline document here, it may be left over565 :566 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then567 # Yippee, $ECHO works!568 :569 else570 # Restart under the correct shell, and then maybe $ECHO will work.571 exec $SHELL "$progpath" --no-reexec ${1+"$@"}572 fi573 574 if test "X$1" = X--fallback-echo; then575 # used as fallback echo576 shift577 cat <<EOF578 $*579 EOF580 exit $EXIT_SUCCESS581 fi582 830 583 831 magic="%%%MAGIC variable%%%" … … 585 833 586 834 # Global variables. 587 # $mode is unset588 835 nonopt= 589 execute_dlfiles=590 836 preserve_args= 591 837 lo2o="s/\\.lo\$/.${objext}/" … … 594 840 extracted_serial=0 595 841 596 opt_dry_run=false597 opt_duplicate_deps=false598 opt_silent=false599 opt_debug=:600 601 842 # If this variable is set in any of the actions, the command in it 602 843 # will be execed at the end. This prevents here-documents from being … … 604 845 exec_cmd= 605 846 847 # func_append var value 848 # Append VALUE to the end of shell variable VAR. 849 func_append () 850 { 851 eval "${1}=\$${1}\${2}" 852 } # func_append may be replaced by extended shell implementation 853 854 # func_append_quoted var value 855 # Quote VALUE and append to the end of shell variable VAR, separated 856 # by a space. 857 func_append_quoted () 858 { 859 func_quote_for_eval "${2}" 860 eval "${1}=\$${1}\\ \$func_quote_for_eval_result" 861 } # func_append_quoted may be replaced by extended shell implementation 862 863 864 # func_arith arithmetic-term... 865 func_arith () 866 { 867 func_arith_result=`expr "${@}"` 868 } # func_arith may be replaced by extended shell implementation 869 870 871 # func_len string 872 # STRING may not start with a hyphen. 873 func_len () 874 { 875 func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len` 876 } # func_len may be replaced by extended shell implementation 877 878 879 # func_lo2o object 880 func_lo2o () 881 { 882 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 883 } # func_lo2o may be replaced by extended shell implementation 884 885 886 # func_xform libobj-or-source 887 func_xform () 888 { 889 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 890 } # func_xform may be replaced by extended shell implementation 891 892 606 893 # func_fatal_configuration arg... 607 894 # Echo program name prefixed message to standard error, followed by … … 637 924 func_features () 638 925 { 639 $ECHO"host: $host"926 echo "host: $host" 640 927 if test "$build_libtool_libs" = yes; then 641 $ECHO"enable shared libraries"928 echo "enable shared libraries" 642 929 else 643 $ECHO"disable shared libraries"930 echo "disable shared libraries" 644 931 fi 645 932 if test "$build_old_libs" = yes; then 646 $ECHO"enable static libraries"933 echo "enable static libraries" 647 934 else 648 $ECHO"disable static libraries"935 echo "disable static libraries" 649 936 fi 650 937 … … 691 978 ;; 692 979 esac 693 }694 695 # Parse options once, thoroughly. This comes as soon as possible in696 # the script to make things like `libtool --version' happen quickly.697 {698 699 # Shorthand for --mode=foo, only valid as the first argument700 case $1 in701 clean|clea|cle|cl)702 shift; set dummy --mode clean ${1+"$@"}; shift703 ;;704 compile|compil|compi|comp|com|co|c)705 shift; set dummy --mode compile ${1+"$@"}; shift706 ;;707 execute|execut|execu|exec|exe|ex|e)708 shift; set dummy --mode execute ${1+"$@"}; shift709 ;;710 finish|finis|fini|fin|fi|f)711 shift; set dummy --mode finish ${1+"$@"}; shift712 ;;713 install|instal|insta|inst|ins|in|i)714 shift; set dummy --mode install ${1+"$@"}; shift715 ;;716 link|lin|li|l)717 shift; set dummy --mode link ${1+"$@"}; shift718 ;;719 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)720 shift; set dummy --mode uninstall ${1+"$@"}; shift721 ;;722 esac723 724 # Parse non-mode specific arguments:725 while test "$#" -gt 0; do726 opt="$1"727 shift728 729 case $opt in730 --config) func_config ;;731 732 --debug) preserve_args="$preserve_args $opt"733 func_echo "enabling shell trace mode"734 opt_debug='set -x'735 $opt_debug736 ;;737 738 -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break739 execute_dlfiles="$execute_dlfiles $1"740 shift741 ;;742 743 --dry-run | -n) opt_dry_run=: ;;744 --features) func_features ;;745 --finish) mode="finish" ;;746 747 --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break748 case $1 in749 # Valid mode arguments:750 clean) ;;751 compile) ;;752 execute) ;;753 finish) ;;754 install) ;;755 link) ;;756 relink) ;;757 uninstall) ;;758 759 # Catch anything else as an error760 *) func_error "invalid argument for $opt"761 exit_cmd=exit762 break763 ;;764 esac765 766 mode="$1"767 shift768 ;;769 770 --preserve-dup-deps)771 opt_duplicate_deps=: ;;772 773 --quiet|--silent) preserve_args="$preserve_args $opt"774 opt_silent=:775 ;;776 777 --verbose| -v) preserve_args="$preserve_args $opt"778 opt_silent=false779 ;;780 781 --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break782 preserve_args="$preserve_args $opt $1"783 func_enable_tag "$1" # tagname is set here784 shift785 ;;786 787 # Separate optargs to long options:788 -dlopen=*|--mode=*|--tag=*)789 func_opt_split "$opt"790 set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}791 shift792 ;;793 794 -\?|-h) func_usage ;;795 --help) opt_help=: ;;796 --version) func_version ;;797 798 -*) func_fatal_help "unrecognized option \`$opt'" ;;799 800 *) nonopt="$opt"801 break802 ;;803 esac804 done805 806 807 case $host in808 *cygwin* | *mingw* | *pw32* | *cegcc*)809 # don't eliminate duplications in $postdeps and $predeps810 opt_duplicate_compiler_generated_deps=:811 ;;812 *)813 opt_duplicate_compiler_generated_deps=$opt_duplicate_deps814 ;;815 esac816 817 # Having warned about all mis-specified options, bail out if818 # anything was wrong.819 $exit_cmd $EXIT_FAILURE820 980 } 821 981 … … 856 1016 857 1017 1018 # Shorthand for --mode=foo, only valid as the first argument 1019 case $1 in 1020 clean|clea|cle|cl) 1021 shift; set dummy --mode clean ${1+"$@"}; shift 1022 ;; 1023 compile|compil|compi|comp|com|co|c) 1024 shift; set dummy --mode compile ${1+"$@"}; shift 1025 ;; 1026 execute|execut|execu|exec|exe|ex|e) 1027 shift; set dummy --mode execute ${1+"$@"}; shift 1028 ;; 1029 finish|finis|fini|fin|fi|f) 1030 shift; set dummy --mode finish ${1+"$@"}; shift 1031 ;; 1032 install|instal|insta|inst|ins|in|i) 1033 shift; set dummy --mode install ${1+"$@"}; shift 1034 ;; 1035 link|lin|li|l) 1036 shift; set dummy --mode link ${1+"$@"}; shift 1037 ;; 1038 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) 1039 shift; set dummy --mode uninstall ${1+"$@"}; shift 1040 ;; 1041 esac 1042 1043 1044 1045 # Option defaults: 1046 opt_debug=: 1047 opt_dry_run=false 1048 opt_config=false 1049 opt_preserve_dup_deps=false 1050 opt_features=false 1051 opt_finish=false 1052 opt_help=false 1053 opt_help_all=false 1054 opt_silent=: 1055 opt_verbose=: 1056 opt_silent=false 1057 opt_verbose=false 1058 1059 1060 # Parse options once, thoroughly. This comes as soon as possible in the 1061 # script to make things like `--version' happen as quickly as we can. 1062 { 1063 # this just eases exit handling 1064 while test $# -gt 0; do 1065 opt="$1" 1066 shift 1067 case $opt in 1068 --debug|-x) opt_debug='set -x' 1069 func_echo "enabling shell trace mode" 1070 $opt_debug 1071 ;; 1072 --dry-run|--dryrun|-n) 1073 opt_dry_run=: 1074 ;; 1075 --config) 1076 opt_config=: 1077 func_config 1078 ;; 1079 --dlopen|-dlopen) 1080 optarg="$1" 1081 opt_dlopen="${opt_dlopen+$opt_dlopen 1082 }$optarg" 1083 shift 1084 ;; 1085 --preserve-dup-deps) 1086 opt_preserve_dup_deps=: 1087 ;; 1088 --features) 1089 opt_features=: 1090 func_features 1091 ;; 1092 --finish) 1093 opt_finish=: 1094 set dummy --mode finish ${1+"$@"}; shift 1095 ;; 1096 --help) 1097 opt_help=: 1098 ;; 1099 --help-all) 1100 opt_help_all=: 1101 opt_help=': help-all' 1102 ;; 1103 --mode) 1104 test $# = 0 && func_missing_arg $opt && break 1105 optarg="$1" 1106 opt_mode="$optarg" 1107 case $optarg in 1108 # Valid mode arguments: 1109 clean|compile|execute|finish|install|link|relink|uninstall) ;; 1110 1111 # Catch anything else as an error 1112 *) func_error "invalid argument for $opt" 1113 exit_cmd=exit 1114 break 1115 ;; 1116 esac 1117 shift 1118 ;; 1119 --no-silent|--no-quiet) 1120 opt_silent=false 1121 func_append preserve_args " $opt" 1122 ;; 1123 --no-verbose) 1124 opt_verbose=false 1125 func_append preserve_args " $opt" 1126 ;; 1127 --silent|--quiet) 1128 opt_silent=: 1129 func_append preserve_args " $opt" 1130 opt_verbose=false 1131 ;; 1132 --verbose|-v) 1133 opt_verbose=: 1134 func_append preserve_args " $opt" 1135 opt_silent=false 1136 ;; 1137 --tag) 1138 test $# = 0 && func_missing_arg $opt && break 1139 optarg="$1" 1140 opt_tag="$optarg" 1141 func_append preserve_args " $opt $optarg" 1142 func_enable_tag "$optarg" 1143 shift 1144 ;; 1145 1146 -\?|-h) func_usage ;; 1147 --help) func_help ;; 1148 --version) func_version ;; 1149 1150 # Separate optargs to long options: 1151 --*=*) 1152 func_split_long_opt "$opt" 1153 set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"} 1154 shift 1155 ;; 1156 1157 # Separate non-argument short options: 1158 -\?*|-h*|-n*|-v*) 1159 func_split_short_opt "$opt" 1160 set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"} 1161 shift 1162 ;; 1163 1164 --) break ;; 1165 -*) func_fatal_help "unrecognized option \`$opt'" ;; 1166 *) set dummy "$opt" ${1+"$@"}; shift; break ;; 1167 esac 1168 done 1169 1170 # Validate options: 1171 1172 # save first non-option argument 1173 if test "$#" -gt 0; then 1174 nonopt="$opt" 1175 shift 1176 fi 1177 1178 # preserve --debug 1179 test "$opt_debug" = : || func_append preserve_args " --debug" 1180 1181 case $host in 1182 *cygwin* | *mingw* | *pw32* | *cegcc*) 1183 # don't eliminate duplications in $postdeps and $predeps 1184 opt_duplicate_compiler_generated_deps=: 1185 ;; 1186 *) 1187 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps 1188 ;; 1189 esac 1190 1191 $opt_help || { 1192 # Sanity checks first: 1193 func_check_version_match 1194 1195 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then 1196 func_fatal_configuration "not configured to build any kind of library" 1197 fi 1198 1199 # Darwin sucks 1200 eval std_shrext=\"$shrext_cmds\" 1201 1202 # Only execute mode is allowed to have -dlopen flags. 1203 if test -n "$opt_dlopen" && test "$opt_mode" != execute; then 1204 func_error "unrecognized option \`-dlopen'" 1205 $ECHO "$help" 1>&2 1206 exit $EXIT_FAILURE 1207 fi 1208 1209 # Change the help message to a mode-specific one. 1210 generic_help="$help" 1211 help="Try \`$progname --help --mode=$opt_mode' for more information." 1212 } 1213 1214 1215 # Bail if the options were screwed 1216 $exit_cmd $EXIT_FAILURE 1217 } 1218 1219 1220 1221 858 1222 ## ----------- ## 859 1223 ## Main. ## 860 1224 ## ----------- ## 861 862 $opt_help || {863 # Sanity checks first:864 func_check_version_match865 866 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then867 func_fatal_configuration "not configured to build any kind of library"868 fi869 870 test -z "$mode" && func_fatal_error "error: you must specify a MODE."871 872 873 # Darwin sucks874 eval std_shrext=\"$shrext_cmds\"875 876 877 # Only execute mode is allowed to have -dlopen flags.878 if test -n "$execute_dlfiles" && test "$mode" != execute; then879 func_error "unrecognized option \`-dlopen'"880 $ECHO "$help" 1>&2881 exit $EXIT_FAILURE882 fi883 884 # Change the help message to a mode-specific one.885 generic_help="$help"886 help="Try \`$progname --help --mode=$mode' for more information."887 }888 889 1225 890 1226 # func_lalib_p file … … 951 1287 func_ltwrapper_scriptname () 952 1288 { 953 func_ltwrapper_scriptname_result="" 954 if func_ltwrapper_executable_p "$1"; then 955 func_dirname_and_basename "$1" "" "." 956 func_stripname '' '.exe' "$func_basename_result" 957 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" 958 fi 1289 func_dirname_and_basename "$1" "" "." 1290 func_stripname '' '.exe' "$func_basename_result" 1291 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" 959 1292 } 960 1293 … … 1002 1335 1003 1336 1337 # func_resolve_sysroot PATH 1338 # Replace a leading = in PATH with a sysroot. Store the result into 1339 # func_resolve_sysroot_result 1340 func_resolve_sysroot () 1341 { 1342 func_resolve_sysroot_result=$1 1343 case $func_resolve_sysroot_result in 1344 =*) 1345 func_stripname '=' '' "$func_resolve_sysroot_result" 1346 func_resolve_sysroot_result=$lt_sysroot$func_stripname_result 1347 ;; 1348 esac 1349 } 1350 1351 # func_replace_sysroot PATH 1352 # If PATH begins with the sysroot, replace it with = and 1353 # store the result into func_replace_sysroot_result. 1354 func_replace_sysroot () 1355 { 1356 case "$lt_sysroot:$1" in 1357 ?*:"$lt_sysroot"*) 1358 func_stripname "$lt_sysroot" '' "$1" 1359 func_replace_sysroot_result="=$func_stripname_result" 1360 ;; 1361 *) 1362 # Including no sysroot. 1363 func_replace_sysroot_result=$1 1364 ;; 1365 esac 1366 } 1367 1004 1368 # func_infer_tag arg 1005 1369 # Infer tagged configuration to use if any are available and … … 1014 1378 CC_quoted= 1015 1379 for arg in $CC; do 1016 func_quote_for_eval "$arg" 1017 CC_quoted="$CC_quoted $func_quote_for_eval_result" 1380 func_append_quoted CC_quoted "$arg" 1018 1381 done 1382 CC_expanded=`func_echo_all $CC` 1383 CC_quoted_expanded=`func_echo_all $CC_quoted` 1019 1384 case $@ in 1020 1385 # Blanks in the command may have been stripped by the calling shell, 1021 1386 # but not from the CC environment variable when configure was run. 1022 " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;; 1387 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ 1388 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; 1023 1389 # Blanks at the start of $base_compile will cause this to fail 1024 1390 # if we don't check for them as well. … … 1031 1397 for arg in $CC; do 1032 1398 # Double-quote args containing other shell metacharacters. 1033 func_quote_for_eval "$arg" 1034 CC_quoted="$CC_quoted $func_quote_for_eval_result" 1399 func_append_quoted CC_quoted "$arg" 1035 1400 done 1401 CC_expanded=`func_echo_all $CC` 1402 CC_quoted_expanded=`func_echo_all $CC_quoted` 1036 1403 case "$@ " in 1037 " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) 1404 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ 1405 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) 1038 1406 # The compiler in the base compile command matches 1039 1407 # the one in the tagged configuration. … … 1098 1466 } 1099 1467 1468 1469 ################################################## 1470 # FILE NAME AND PATH CONVERSION HELPER FUNCTIONS # 1471 ################################################## 1472 1473 # func_convert_core_file_wine_to_w32 ARG 1474 # Helper function used by file name conversion functions when $build is *nix, 1475 # and $host is mingw, cygwin, or some other w32 environment. Relies on a 1476 # correctly configured wine environment available, with the winepath program 1477 # in $build's $PATH. 1478 # 1479 # ARG is the $build file name to be converted to w32 format. 1480 # Result is available in $func_convert_core_file_wine_to_w32_result, and will 1481 # be empty on error (or when ARG is empty) 1482 func_convert_core_file_wine_to_w32 () 1483 { 1484 $opt_debug 1485 func_convert_core_file_wine_to_w32_result="$1" 1486 if test -n "$1"; then 1487 # Unfortunately, winepath does not exit with a non-zero error code, so we 1488 # are forced to check the contents of stdout. On the other hand, if the 1489 # command is not found, the shell will set an exit code of 127 and print 1490 # *an error message* to stdout. So we must check for both error code of 1491 # zero AND non-empty stdout, which explains the odd construction: 1492 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null` 1493 if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then 1494 func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | 1495 $SED -e "$lt_sed_naive_backslashify"` 1496 else 1497 func_convert_core_file_wine_to_w32_result= 1498 fi 1499 fi 1500 } 1501 # end: func_convert_core_file_wine_to_w32 1502 1503 1504 # func_convert_core_path_wine_to_w32 ARG 1505 # Helper function used by path conversion functions when $build is *nix, and 1506 # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly 1507 # configured wine environment available, with the winepath program in $build's 1508 # $PATH. Assumes ARG has no leading or trailing path separator characters. 1509 # 1510 # ARG is path to be converted from $build format to win32. 1511 # Result is available in $func_convert_core_path_wine_to_w32_result. 1512 # Unconvertible file (directory) names in ARG are skipped; if no directory names 1513 # are convertible, then the result may be empty. 1514 func_convert_core_path_wine_to_w32 () 1515 { 1516 $opt_debug 1517 # unfortunately, winepath doesn't convert paths, only file names 1518 func_convert_core_path_wine_to_w32_result="" 1519 if test -n "$1"; then 1520 oldIFS=$IFS 1521 IFS=: 1522 for func_convert_core_path_wine_to_w32_f in $1; do 1523 IFS=$oldIFS 1524 func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" 1525 if test -n "$func_convert_core_file_wine_to_w32_result" ; then 1526 if test -z "$func_convert_core_path_wine_to_w32_result"; then 1527 func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result" 1528 else 1529 func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" 1530 fi 1531 fi 1532 done 1533 IFS=$oldIFS 1534 fi 1535 } 1536 # end: func_convert_core_path_wine_to_w32 1537 1538 1539 # func_cygpath ARGS... 1540 # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when 1541 # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) 1542 # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or 1543 # (2), returns the Cygwin file name or path in func_cygpath_result (input 1544 # file name or path is assumed to be in w32 format, as previously converted 1545 # from $build's *nix or MSYS format). In case (3), returns the w32 file name 1546 # or path in func_cygpath_result (input file name or path is assumed to be in 1547 # Cygwin format). Returns an empty string on error. 1548 # 1549 # ARGS are passed to cygpath, with the last one being the file name or path to 1550 # be converted. 1551 # 1552 # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH 1553 # environment variable; do not put it in $PATH. 1554 func_cygpath () 1555 { 1556 $opt_debug 1557 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then 1558 func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` 1559 if test "$?" -ne 0; then 1560 # on failure, ensure result is empty 1561 func_cygpath_result= 1562 fi 1563 else 1564 func_cygpath_result= 1565 func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'" 1566 fi 1567 } 1568 #end: func_cygpath 1569 1570 1571 # func_convert_core_msys_to_w32 ARG 1572 # Convert file name or path ARG from MSYS format to w32 format. Return 1573 # result in func_convert_core_msys_to_w32_result. 1574 func_convert_core_msys_to_w32 () 1575 { 1576 $opt_debug 1577 # awkward: cmd appends spaces to result 1578 func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | 1579 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` 1580 } 1581 #end: func_convert_core_msys_to_w32 1582 1583 1584 # func_convert_file_check ARG1 ARG2 1585 # Verify that ARG1 (a file name in $build format) was converted to $host 1586 # format in ARG2. Otherwise, emit an error message, but continue (resetting 1587 # func_to_host_file_result to ARG1). 1588 func_convert_file_check () 1589 { 1590 $opt_debug 1591 if test -z "$2" && test -n "$1" ; then 1592 func_error "Could not determine host file name corresponding to" 1593 func_error " \`$1'" 1594 func_error "Continuing, but uninstalled executables may not work." 1595 # Fallback: 1596 func_to_host_file_result="$1" 1597 fi 1598 } 1599 # end func_convert_file_check 1600 1601 1602 # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH 1603 # Verify that FROM_PATH (a path in $build format) was converted to $host 1604 # format in TO_PATH. Otherwise, emit an error message, but continue, resetting 1605 # func_to_host_file_result to a simplistic fallback value (see below). 1606 func_convert_path_check () 1607 { 1608 $opt_debug 1609 if test -z "$4" && test -n "$3"; then 1610 func_error "Could not determine the host path corresponding to" 1611 func_error " \`$3'" 1612 func_error "Continuing, but uninstalled executables may not work." 1613 # Fallback. This is a deliberately simplistic "conversion" and 1614 # should not be "improved". See libtool.info. 1615 if test "x$1" != "x$2"; then 1616 lt_replace_pathsep_chars="s|$1|$2|g" 1617 func_to_host_path_result=`echo "$3" | 1618 $SED -e "$lt_replace_pathsep_chars"` 1619 else 1620 func_to_host_path_result="$3" 1621 fi 1622 fi 1623 } 1624 # end func_convert_path_check 1625 1626 1627 # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG 1628 # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT 1629 # and appending REPL if ORIG matches BACKPAT. 1630 func_convert_path_front_back_pathsep () 1631 { 1632 $opt_debug 1633 case $4 in 1634 $1 ) func_to_host_path_result="$3$func_to_host_path_result" 1635 ;; 1636 esac 1637 case $4 in 1638 $2 ) func_append func_to_host_path_result "$3" 1639 ;; 1640 esac 1641 } 1642 # end func_convert_path_front_back_pathsep 1643 1644 1645 ################################################## 1646 # $build to $host FILE NAME CONVERSION FUNCTIONS # 1647 ################################################## 1648 # invoked via `$to_host_file_cmd ARG' 1649 # 1650 # In each case, ARG is the path to be converted from $build to $host format. 1651 # Result will be available in $func_to_host_file_result. 1652 1653 1654 # func_to_host_file ARG 1655 # Converts the file name ARG from $build format to $host format. Return result 1656 # in func_to_host_file_result. 1657 func_to_host_file () 1658 { 1659 $opt_debug 1660 $to_host_file_cmd "$1" 1661 } 1662 # end func_to_host_file 1663 1664 1665 # func_to_tool_file ARG LAZY 1666 # converts the file name ARG from $build format to toolchain format. Return 1667 # result in func_to_tool_file_result. If the conversion in use is listed 1668 # in (the comma separated) LAZY, no conversion takes place. 1669 func_to_tool_file () 1670 { 1671 $opt_debug 1672 case ,$2, in 1673 *,"$to_tool_file_cmd",*) 1674 func_to_tool_file_result=$1 1675 ;; 1676 *) 1677 $to_tool_file_cmd "$1" 1678 func_to_tool_file_result=$func_to_host_file_result 1679 ;; 1680 esac 1681 } 1682 # end func_to_tool_file 1683 1684 1685 # func_convert_file_noop ARG 1686 # Copy ARG to func_to_host_file_result. 1687 func_convert_file_noop () 1688 { 1689 func_to_host_file_result="$1" 1690 } 1691 # end func_convert_file_noop 1692 1693 1694 # func_convert_file_msys_to_w32 ARG 1695 # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic 1696 # conversion to w32 is not available inside the cwrapper. Returns result in 1697 # func_to_host_file_result. 1698 func_convert_file_msys_to_w32 () 1699 { 1700 $opt_debug 1701 func_to_host_file_result="$1" 1702 if test -n "$1"; then 1703 func_convert_core_msys_to_w32 "$1" 1704 func_to_host_file_result="$func_convert_core_msys_to_w32_result" 1705 fi 1706 func_convert_file_check "$1" "$func_to_host_file_result" 1707 } 1708 # end func_convert_file_msys_to_w32 1709 1710 1711 # func_convert_file_cygwin_to_w32 ARG 1712 # Convert file name ARG from Cygwin to w32 format. Returns result in 1713 # func_to_host_file_result. 1714 func_convert_file_cygwin_to_w32 () 1715 { 1716 $opt_debug 1717 func_to_host_file_result="$1" 1718 if test -n "$1"; then 1719 # because $build is cygwin, we call "the" cygpath in $PATH; no need to use 1720 # LT_CYGPATH in this case. 1721 func_to_host_file_result=`cygpath -m "$1"` 1722 fi 1723 func_convert_file_check "$1" "$func_to_host_file_result" 1724 } 1725 # end func_convert_file_cygwin_to_w32 1726 1727 1728 # func_convert_file_nix_to_w32 ARG 1729 # Convert file name ARG from *nix to w32 format. Requires a wine environment 1730 # and a working winepath. Returns result in func_to_host_file_result. 1731 func_convert_file_nix_to_w32 () 1732 { 1733 $opt_debug 1734 func_to_host_file_result="$1" 1735 if test -n "$1"; then 1736 func_convert_core_file_wine_to_w32 "$1" 1737 func_to_host_file_result="$func_convert_core_file_wine_to_w32_result" 1738 fi 1739 func_convert_file_check "$1" "$func_to_host_file_result" 1740 } 1741 # end func_convert_file_nix_to_w32 1742 1743 1744 # func_convert_file_msys_to_cygwin ARG 1745 # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. 1746 # Returns result in func_to_host_file_result. 1747 func_convert_file_msys_to_cygwin () 1748 { 1749 $opt_debug 1750 func_to_host_file_result="$1" 1751 if test -n "$1"; then 1752 func_convert_core_msys_to_w32 "$1" 1753 func_cygpath -u "$func_convert_core_msys_to_w32_result" 1754 func_to_host_file_result="$func_cygpath_result" 1755 fi 1756 func_convert_file_check "$1" "$func_to_host_file_result" 1757 } 1758 # end func_convert_file_msys_to_cygwin 1759 1760 1761 # func_convert_file_nix_to_cygwin ARG 1762 # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed 1763 # in a wine environment, working winepath, and LT_CYGPATH set. Returns result 1764 # in func_to_host_file_result. 1765 func_convert_file_nix_to_cygwin () 1766 { 1767 $opt_debug 1768 func_to_host_file_result="$1" 1769 if test -n "$1"; then 1770 # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. 1771 func_convert_core_file_wine_to_w32 "$1" 1772 func_cygpath -u "$func_convert_core_file_wine_to_w32_result" 1773 func_to_host_file_result="$func_cygpath_result" 1774 fi 1775 func_convert_file_check "$1" "$func_to_host_file_result" 1776 } 1777 # end func_convert_file_nix_to_cygwin 1778 1779 1780 ############################################# 1781 # $build to $host PATH CONVERSION FUNCTIONS # 1782 ############################################# 1783 # invoked via `$to_host_path_cmd ARG' 1784 # 1785 # In each case, ARG is the path to be converted from $build to $host format. 1786 # The result will be available in $func_to_host_path_result. 1787 # 1788 # Path separators are also converted from $build format to $host format. If 1789 # ARG begins or ends with a path separator character, it is preserved (but 1790 # converted to $host format) on output. 1791 # 1792 # All path conversion functions are named using the following convention: 1793 # file name conversion function : func_convert_file_X_to_Y () 1794 # path conversion function : func_convert_path_X_to_Y () 1795 # where, for any given $build/$host combination the 'X_to_Y' value is the 1796 # same. If conversion functions are added for new $build/$host combinations, 1797 # the two new functions must follow this pattern, or func_init_to_host_path_cmd 1798 # will break. 1799 1800 1801 # func_init_to_host_path_cmd 1802 # Ensures that function "pointer" variable $to_host_path_cmd is set to the 1803 # appropriate value, based on the value of $to_host_file_cmd. 1804 to_host_path_cmd= 1805 func_init_to_host_path_cmd () 1806 { 1807 $opt_debug 1808 if test -z "$to_host_path_cmd"; then 1809 func_stripname 'func_convert_file_' '' "$to_host_file_cmd" 1810 to_host_path_cmd="func_convert_path_${func_stripname_result}" 1811 fi 1812 } 1813 1814 1815 # func_to_host_path ARG 1816 # Converts the path ARG from $build format to $host format. Return result 1817 # in func_to_host_path_result. 1818 func_to_host_path () 1819 { 1820 $opt_debug 1821 func_init_to_host_path_cmd 1822 $to_host_path_cmd "$1" 1823 } 1824 # end func_to_host_path 1825 1826 1827 # func_convert_path_noop ARG 1828 # Copy ARG to func_to_host_path_result. 1829 func_convert_path_noop () 1830 { 1831 func_to_host_path_result="$1" 1832 } 1833 # end func_convert_path_noop 1834 1835 1836 # func_convert_path_msys_to_w32 ARG 1837 # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic 1838 # conversion to w32 is not available inside the cwrapper. Returns result in 1839 # func_to_host_path_result. 1840 func_convert_path_msys_to_w32 () 1841 { 1842 $opt_debug 1843 func_to_host_path_result="$1" 1844 if test -n "$1"; then 1845 # Remove leading and trailing path separator characters from ARG. MSYS 1846 # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; 1847 # and winepath ignores them completely. 1848 func_stripname : : "$1" 1849 func_to_host_path_tmp1=$func_stripname_result 1850 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" 1851 func_to_host_path_result="$func_convert_core_msys_to_w32_result" 1852 func_convert_path_check : ";" \ 1853 "$func_to_host_path_tmp1" "$func_to_host_path_result" 1854 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" 1855 fi 1856 } 1857 # end func_convert_path_msys_to_w32 1858 1859 1860 # func_convert_path_cygwin_to_w32 ARG 1861 # Convert path ARG from Cygwin to w32 format. Returns result in 1862 # func_to_host_file_result. 1863 func_convert_path_cygwin_to_w32 () 1864 { 1865 $opt_debug 1866 func_to_host_path_result="$1" 1867 if test -n "$1"; then 1868 # See func_convert_path_msys_to_w32: 1869 func_stripname : : "$1" 1870 func_to_host_path_tmp1=$func_stripname_result 1871 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` 1872 func_convert_path_check : ";" \ 1873 "$func_to_host_path_tmp1" "$func_to_host_path_result" 1874 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" 1875 fi 1876 } 1877 # end func_convert_path_cygwin_to_w32 1878 1879 1880 # func_convert_path_nix_to_w32 ARG 1881 # Convert path ARG from *nix to w32 format. Requires a wine environment and 1882 # a working winepath. Returns result in func_to_host_file_result. 1883 func_convert_path_nix_to_w32 () 1884 { 1885 $opt_debug 1886 func_to_host_path_result="$1" 1887 if test -n "$1"; then 1888 # See func_convert_path_msys_to_w32: 1889 func_stripname : : "$1" 1890 func_to_host_path_tmp1=$func_stripname_result 1891 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" 1892 func_to_host_path_result="$func_convert_core_path_wine_to_w32_result" 1893 func_convert_path_check : ";" \ 1894 "$func_to_host_path_tmp1" "$func_to_host_path_result" 1895 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" 1896 fi 1897 } 1898 # end func_convert_path_nix_to_w32 1899 1900 1901 # func_convert_path_msys_to_cygwin ARG 1902 # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. 1903 # Returns result in func_to_host_file_result. 1904 func_convert_path_msys_to_cygwin () 1905 { 1906 $opt_debug 1907 func_to_host_path_result="$1" 1908 if test -n "$1"; then 1909 # See func_convert_path_msys_to_w32: 1910 func_stripname : : "$1" 1911 func_to_host_path_tmp1=$func_stripname_result 1912 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" 1913 func_cygpath -u -p "$func_convert_core_msys_to_w32_result" 1914 func_to_host_path_result="$func_cygpath_result" 1915 func_convert_path_check : : \ 1916 "$func_to_host_path_tmp1" "$func_to_host_path_result" 1917 func_convert_path_front_back_pathsep ":*" "*:" : "$1" 1918 fi 1919 } 1920 # end func_convert_path_msys_to_cygwin 1921 1922 1923 # func_convert_path_nix_to_cygwin ARG 1924 # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a 1925 # a wine environment, working winepath, and LT_CYGPATH set. Returns result in 1926 # func_to_host_file_result. 1927 func_convert_path_nix_to_cygwin () 1928 { 1929 $opt_debug 1930 func_to_host_path_result="$1" 1931 if test -n "$1"; then 1932 # Remove leading and trailing path separator characters from 1933 # ARG. msys behavior is inconsistent here, cygpath turns them 1934 # into '.;' and ';.', and winepath ignores them completely. 1935 func_stripname : : "$1" 1936 func_to_host_path_tmp1=$func_stripname_result 1937 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" 1938 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" 1939 func_to_host_path_result="$func_cygpath_result" 1940 func_convert_path_check : : \ 1941 "$func_to_host_path_tmp1" "$func_to_host_path_result" 1942 func_convert_path_front_back_pathsep ":*" "*:" : "$1" 1943 fi 1944 } 1945 # end func_convert_path_nix_to_cygwin 1946 1947 1100 1948 # func_mode_compile arg... 1101 1949 func_mode_compile () … … 1138 1986 1139 1987 -pie | -fpie | -fPIE) 1140 pie_flag="$pie_flag$arg"1988 func_append pie_flag " $arg" 1141 1989 continue 1142 1990 ;; 1143 1991 1144 1992 -shared | -static | -prefer-pic | -prefer-non-pic) 1145 later="$later$arg"1993 func_append later " $arg" 1146 1994 continue 1147 1995 ;; … … 1164 2012 for arg in $args; do 1165 2013 IFS="$save_ifs" 1166 func_quote_for_eval "$arg" 1167 lastarg="$lastarg $func_quote_for_eval_result" 2014 func_append_quoted lastarg "$arg" 1168 2015 done 1169 2016 IFS="$save_ifs" … … 1172 2019 1173 2020 # Add the arguments to base_compile. 1174 base_compile="$base_compile$lastarg"2021 func_append base_compile " $lastarg" 1175 2022 continue 1176 2023 ;; … … 1188 2035 1189 2036 # Aesthetically quote the previous argument. 1190 func_quote_for_eval "$lastarg" 1191 base_compile="$base_compile $func_quote_for_eval_result" 2037 func_append_quoted base_compile "$lastarg" 1192 2038 done # for arg 1193 2039 … … 1214 2060 *.ada | *.adb | *.ads | *.asm | \ 1215 2061 *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ 1216 *.[fF][09]? | *.for | *.java | *.obj | *.sx )2062 *.[fF][09]? | *.for | *.java | *.obj | *.sx | *.cu | *.cup) 1217 2063 func_xform "$libobj" 1218 2064 libobj=$func_xform_result … … 1289 2135 # not support -o with -c 1290 2136 if test "$compiler_c_o" = no; then 1291 output_obj=`$ECHO " X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}2137 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext} 1292 2138 lockfile="$output_obj.lock" 1293 2139 else … … 1320 2166 exit $EXIT_FAILURE 1321 2167 fi 1322 removelist="$removelist$output_obj"2168 func_append removelist " $output_obj" 1323 2169 $ECHO "$srcfile" > "$lockfile" 1324 2170 fi 1325 2171 1326 2172 $opt_dry_run || $RM $removelist 1327 removelist="$removelist$lockfile"2173 func_append removelist " $lockfile" 1328 2174 trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 1329 2175 1330 if test -n "$fix_srcfile_path"; then 1331 eval srcfile=\"$fix_srcfile_path\" 1332 fi 2176 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 2177 srcfile=$func_to_tool_file_result 1333 2178 func_quote_for_eval "$srcfile" 1334 2179 qsrcfile=$func_quote_for_eval_result … … 1350 2195 if test -z "$output_obj"; then 1351 2196 # Place PIC objects in $objdir 1352 command="$command-o $lobj"2197 func_append command " -o $lobj" 1353 2198 fi 1354 2199 … … 1397 2242 fi 1398 2243 if test "$compiler_c_o" = yes; then 1399 command="$command-o $obj"2244 func_append command " -o $obj" 1400 2245 fi 1401 2246 1402 2247 # Suppress compiler output if we already did a PIC compilation. 1403 command="$command$suppress_output"2248 func_append command "$suppress_output" 1404 2249 func_show_eval_locale "$command" \ 1405 2250 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' … … 1446 2291 1447 2292 $opt_help || { 1448 test "$mode" = compile && func_mode_compile ${1+"$@"}2293 test "$opt_mode" = compile && func_mode_compile ${1+"$@"} 1449 2294 } 1450 2295 … … 1452 2297 { 1453 2298 # We need to display help for each of the modes. 1454 case $ mode in2299 case $opt_mode in 1455 2300 "") 1456 2301 # Generic help is extracted from the usage comments … … 1483 2328 -o OUTPUT-FILE set the output file name to OUTPUT-FILE 1484 2329 -no-suppress do not suppress compiler output for multiple passes 1485 -prefer-pic try to build ingPIC objects only1486 -prefer-non-pic try to build ingnon-PIC objects only2330 -prefer-pic try to build PIC objects only 2331 -prefer-non-pic try to build non-PIC objects only 1487 2332 -shared do not build a \`.o' file suitable for static linking 1488 2333 -static only build a \`.o' file suitable for static linking 2334 -Wc,FLAG pass FLAG directly to the compiler 1489 2335 1490 2336 COMPILE-COMMAND is a command to be used in creating a \`standard' object file … … 1539 2385 The following components of INSTALL-COMMAND are treated specially: 1540 2386 1541 -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation2387 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation 1542 2388 1543 2389 The rest of the components are interpreted as arguments to that command (only … … 1559 2405 -all-static do not do any dynamic linking at all 1560 2406 -avoid-version do not add a version suffix if possible 2407 -bindir BINDIR specify path to binaries directory (for systems where 2408 libraries must be found in the PATH setting at runtime) 1561 2409 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime 1562 2410 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols … … 1587 2435 specify library version info [each variable defaults to 0] 1588 2436 -weak LIBNAME declare that the target provides the LIBNAME interface 2437 -Wc,FLAG 2438 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler 2439 -Wl,FLAG 2440 -Xlinker FLAG pass linker-specific FLAG directly to the linker 2441 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) 1589 2442 1590 2443 All other options (arguments beginning with \`-') are ignored. … … 1620 2473 1621 2474 *) 1622 func_fatal_help "invalid operation mode \`$ mode'"2475 func_fatal_help "invalid operation mode \`$opt_mode'" 1623 2476 ;; 1624 2477 esac 1625 2478 1626 $ECHO2479 echo 1627 2480 $ECHO "Try \`$progname --help' for more information about other modes." 1628 1629 exit $? 1630 } 1631 1632 # Now that we've collected a possible --mode arg, show help if necessary 1633 $opt_help && func_mode_help 2481 } 2482 2483 # Now that we've collected a possible --mode arg, show help if necessary 2484 if $opt_help; then 2485 if test "$opt_help" = :; then 2486 func_mode_help 2487 else 2488 { 2489 func_help noexit 2490 for opt_mode in compile link execute install finish uninstall clean; do 2491 func_mode_help 2492 done 2493 } | sed -n '1p; 2,$s/^Usage:/ or: /p' 2494 { 2495 func_help noexit 2496 for opt_mode in compile link execute install finish uninstall clean; do 2497 echo 2498 func_mode_help 2499 done 2500 } | 2501 sed '1d 2502 /^When reporting/,/^Report/{ 2503 H 2504 d 2505 } 2506 $x 2507 /information about other modes/d 2508 /more detailed .*MODE/d 2509 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' 2510 fi 2511 exit $? 2512 fi 1634 2513 1635 2514 … … 1644 2523 1645 2524 # Handle -dlopen flags immediately. 1646 for file in $ execute_dlfiles; do2525 for file in $opt_dlopen; do 1647 2526 test -f "$file" \ 1648 2527 || func_fatal_help "\`$file' is not a file" … … 1651 2530 case $file in 1652 2531 *.la) 2532 func_resolve_sysroot "$file" 2533 file=$func_resolve_sysroot_result 2534 1653 2535 # Check to see that this really is a libtool archive. 1654 2536 func_lalib_unsafe_p "$file" \ … … 1672 2554 1673 2555 if test -f "$dir/$objdir/$dlname"; then 1674 dir="$dir/$objdir"2556 func_append dir "/$objdir" 1675 2557 else 1676 2558 if test ! -f "$dir/$dlname"; then … … 1713 2595 do 1714 2596 case $file in 1715 -* ) ;;2597 -* | *.la | *.lo ) ;; 1716 2598 *) 1717 2599 # Do a test to see if this is really a libtool program. … … 1729 2611 esac 1730 2612 # Quote arguments (to preserve shell metacharacters). 1731 func_quote_for_eval "$file" 1732 args="$args $func_quote_for_eval_result" 2613 func_append_quoted args "$file" 1733 2614 done 1734 2615 … … 1755 2636 if test -n "$shlibpath_var"; then 1756 2637 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" 1757 $ECHO"export $shlibpath_var"2638 echo "export $shlibpath_var" 1758 2639 fi 1759 2640 $ECHO "$cmd$args" … … 1762 2643 } 1763 2644 1764 test "$ mode" = execute && func_mode_execute ${1+"$@"}2645 test "$opt_mode" = execute && func_mode_execute ${1+"$@"} 1765 2646 1766 2647 … … 1769 2650 { 1770 2651 $opt_debug 1771 libdirs="$nonopt" 2652 libs= 2653 libdirs= 1772 2654 admincmds= 1773 2655 2656 for opt in "$nonopt" ${1+"$@"} 2657 do 2658 if test -d "$opt"; then 2659 func_append libdirs " $opt" 2660 2661 elif test -f "$opt"; then 2662 if func_lalib_unsafe_p "$opt"; then 2663 func_append libs " $opt" 2664 else 2665 func_warning "\`$opt' is not a valid libtool archive" 2666 fi 2667 2668 else 2669 func_fatal_error "invalid argument \`$opt'" 2670 fi 2671 done 2672 2673 if test -n "$libs"; then 2674 if test -n "$lt_sysroot"; then 2675 sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` 2676 sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" 2677 else 2678 sysroot_cmd= 2679 fi 2680 2681 # Remove sysroot references 2682 if $opt_dry_run; then 2683 for lib in $libs; do 2684 echo "removing references to $lt_sysroot and \`=' prefixes from $lib" 2685 done 2686 else 2687 tmpdir=`func_mktempdir` 2688 for lib in $libs; do 2689 sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ 2690 > $tmpdir/tmp-la 2691 mv -f $tmpdir/tmp-la $lib 2692 done 2693 ${RM}r "$tmpdir" 2694 fi 2695 fi 2696 1774 2697 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then 1775 for dir1776 do1777 libdirs="$libdirs $dir"1778 done1779 1780 2698 for libdir in $libdirs; do 1781 2699 if test -n "$finish_cmds"; then … … 1787 2705 # Do the single finish_eval. 1788 2706 eval cmds=\"$finish_eval\" 1789 $opt_dry_run || eval "$cmds" || admincmds="$admincmds2707 $opt_dry_run || eval "$cmds" || func_append admincmds " 1790 2708 $cmds" 1791 2709 fi … … 1796 2714 $opt_silent && exit $EXIT_SUCCESS 1797 2715 1798 $ECHO "X----------------------------------------------------------------------" | $Xsed 1799 $ECHO "Libraries have been installed in:" 1800 for libdir in $libdirs; do 1801 $ECHO " $libdir" 1802 done 1803 $ECHO 1804 $ECHO "If you ever happen to want to link against installed libraries" 1805 $ECHO "in a given directory, LIBDIR, you must either use libtool, and" 1806 $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'" 1807 $ECHO "flag during linking and do at least one of the following:" 1808 if test -n "$shlibpath_var"; then 1809 $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable" 1810 $ECHO " during execution" 2716 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then 2717 echo "----------------------------------------------------------------------" 2718 echo "Libraries have been installed in:" 2719 for libdir in $libdirs; do 2720 $ECHO " $libdir" 2721 done 2722 echo 2723 echo "If you ever happen to want to link against installed libraries" 2724 echo "in a given directory, LIBDIR, you must either use libtool, and" 2725 echo "specify the full pathname of the library, or use the \`-LLIBDIR'" 2726 echo "flag during linking and do at least one of the following:" 2727 if test -n "$shlibpath_var"; then 2728 echo " - add LIBDIR to the \`$shlibpath_var' environment variable" 2729 echo " during execution" 2730 fi 2731 if test -n "$runpath_var"; then 2732 echo " - add LIBDIR to the \`$runpath_var' environment variable" 2733 echo " during linking" 2734 fi 2735 if test -n "$hardcode_libdir_flag_spec"; then 2736 libdir=LIBDIR 2737 eval flag=\"$hardcode_libdir_flag_spec\" 2738 2739 $ECHO " - use the \`$flag' linker flag" 2740 fi 2741 if test -n "$admincmds"; then 2742 $ECHO " - have your system administrator run these commands:$admincmds" 2743 fi 2744 if test -f /etc/ld.so.conf; then 2745 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" 2746 fi 2747 echo 2748 2749 echo "See any operating system documentation about shared libraries for" 2750 case $host in 2751 solaris2.[6789]|solaris2.1[0-9]) 2752 echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" 2753 echo "pages." 2754 ;; 2755 *) 2756 echo "more information, such as the ld(1) and ld.so(8) manual pages." 2757 ;; 2758 esac 2759 echo "----------------------------------------------------------------------" 1811 2760 fi 1812 if test -n "$runpath_var"; then1813 $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"1814 $ECHO " during linking"1815 fi1816 if test -n "$hardcode_libdir_flag_spec"; then1817 libdir=LIBDIR1818 eval flag=\"$hardcode_libdir_flag_spec\"1819 1820 $ECHO " - use the \`$flag' linker flag"1821 fi1822 if test -n "$admincmds"; then1823 $ECHO " - have your system administrator run these commands:$admincmds"1824 fi1825 if test -f /etc/ld.so.conf; then1826 $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"1827 fi1828 $ECHO1829 1830 $ECHO "See any operating system documentation about shared libraries for"1831 case $host in1832 solaris2.[6789]|solaris2.1[0-9])1833 $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"1834 $ECHO "pages."1835 ;;1836 *)1837 $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."1838 ;;1839 esac1840 $ECHO "X----------------------------------------------------------------------" | $Xsed1841 2761 exit $EXIT_SUCCESS 1842 2762 } 1843 2763 1844 test "$ mode" = finish && func_mode_finish ${1+"$@"}2764 test "$opt_mode" = finish && func_mode_finish ${1+"$@"} 1845 2765 1846 2766 … … 1853 2773 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || 1854 2774 # Allow the use of GNU shtool's install command. 1855 $ECHO "X$nonopt" | $GREP shtool >/dev/null; then2775 case $nonopt in *shtool*) :;; *) false;; esac; then 1856 2776 # Aesthetically quote it. 1857 2777 func_quote_for_eval "$nonopt" … … 1867 2787 # Aesthetically quote it. 1868 2788 func_quote_for_eval "$arg" 1869 install_prog="$install_prog$func_quote_for_eval_result" 2789 func_append install_prog "$func_quote_for_eval_result" 2790 install_shared_prog=$install_prog 2791 case " $install_prog " in 2792 *[\\\ /]cp\ *) install_cp=: ;; 2793 *) install_cp=false ;; 2794 esac 1870 2795 1871 2796 # We need to accept at least all the BSD install flags. … … 1877 2802 isdir=no 1878 2803 stripme= 2804 no_mode=: 1879 2805 for arg 1880 2806 do 2807 arg2= 1881 2808 if test -n "$dest"; then 1882 f iles="$files$dest"2809 func_append files " $dest" 1883 2810 dest=$arg 1884 2811 continue … … 1888 2815 -d) isdir=yes ;; 1889 2816 -f) 1890 case " $install_prog " in 1891 *[\\\ /]cp\ *) ;; 1892 *) prev=$arg ;; 1893 esac 2817 if $install_cp; then :; else 2818 prev=$arg 2819 fi 1894 2820 ;; 1895 2821 -g | -m | -o) … … 1905 2831 # If the previous option needed an argument, then skip it. 1906 2832 if test -n "$prev"; then 2833 if test "x$prev" = x-m && test -n "$install_override_mode"; then 2834 arg2=$install_override_mode 2835 no_mode=false 2836 fi 1907 2837 prev= 1908 2838 else … … 1915 2845 # Aesthetically quote the argument. 1916 2846 func_quote_for_eval "$arg" 1917 install_prog="$install_prog $func_quote_for_eval_result" 2847 func_append install_prog " $func_quote_for_eval_result" 2848 if test -n "$arg2"; then 2849 func_quote_for_eval "$arg2" 2850 fi 2851 func_append install_shared_prog " $func_quote_for_eval_result" 1918 2852 done 1919 2853 … … 1923 2857 test -n "$prev" && \ 1924 2858 func_fatal_help "the \`$prev' option requires an argument" 2859 2860 if test -n "$install_override_mode" && $no_mode; then 2861 if $install_cp; then :; else 2862 func_quote_for_eval "$install_override_mode" 2863 func_append install_shared_prog " -m $func_quote_for_eval_result" 2864 fi 2865 fi 1925 2866 1926 2867 if test -z "$files"; then … … 1978 2919 *.$libext) 1979 2920 # Do the static libraries later. 1980 staticlibs="$staticlibs$file"2921 func_append staticlibs " $file" 1981 2922 ;; 1982 2923 1983 2924 *.la) 2925 func_resolve_sysroot "$file" 2926 file=$func_resolve_sysroot_result 2927 1984 2928 # Check to see that this really is a libtool archive. 1985 2929 func_lalib_unsafe_p "$file" \ … … 1995 2939 case "$current_libdirs " in 1996 2940 *" $libdir "*) ;; 1997 *) current_libdirs="$current_libdirs$libdir" ;;2941 *) func_append current_libdirs " $libdir" ;; 1998 2942 esac 1999 2943 else … … 2001 2945 case "$future_libdirs " in 2002 2946 *" $libdir "*) ;; 2003 *) fu ture_libdirs="$future_libdirs$libdir" ;;2947 *) func_append future_libdirs " $libdir" ;; 2004 2948 esac 2005 2949 fi … … 2007 2951 func_dirname "$file" "/" "" 2008 2952 dir="$func_dirname_result" 2009 dir="$dir$objdir"2953 func_append dir "$objdir" 2010 2954 2011 2955 if test -n "$relink_command"; then 2012 2956 # Determine the prefix the user has applied to our future dir. 2013 inst_prefix_dir=`$ECHO " X$destdir" | $Xsed-e "s%$libdir\$%%"`2957 inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` 2014 2958 2015 2959 # Don't allow the user to place us outside of our expected … … 2024 2968 if test -n "$inst_prefix_dir"; then 2025 2969 # Stick the inst_prefix_dir data into the link command. 2026 relink_command=`$ECHO " X$relink_command" | $Xsed -e"s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`2970 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` 2027 2971 else 2028 relink_command=`$ECHO " X$relink_command" | $Xsed -e"s%@inst_prefix_dir@%%"`2972 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` 2029 2973 fi 2030 2974 … … 2044 2988 2045 2989 # Install the shared library and build the symlinks. 2046 func_show_eval "$install_ prog $dir/$srcname $destdir/$realname" \2990 func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ 2047 2991 'exit $?' 2048 2992 tstripme="$stripme" … … 2084 3028 2085 3029 # Maybe install the static library, too. 2086 test -n "$old_library" && staticlibs="$staticlibs$dir/$old_library"3030 test -n "$old_library" && func_append staticlibs " $dir/$old_library" 2087 3031 ;; 2088 3032 … … 2184 3128 func_source "$lib" 2185 3129 fi 2186 libfile="$libdir/"`$ECHO " X$lib" | $Xsed -e's%^.*/%%g'` ### testsuite: skip nested quoting test3130 libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test 2187 3131 if test -n "$libdir" && test ! -f "$libfile"; then 2188 3132 func_warning "\`$lib' has not been installed in \`$libdir'" … … 2203 3147 outputname="$tmpdir/$file" 2204 3148 # Replace the output file specification. 2205 relink_command=`$ECHO " X$relink_command" | $Xsed -e's%@OUTPUT@%'"$outputname"'%g'`3149 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` 2206 3150 2207 3151 $opt_silent || { … … 2222 3166 else 2223 3167 # Install the binary that we compiled earlier. 2224 file=`$ECHO " X$file$stripped_ext" | $Xsed -e"s%\([^/]*\)$%$objdir/\1%"`3168 file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` 2225 3169 fi 2226 3170 fi … … 2281 3225 } 2282 3226 2283 test "$ mode" = install && func_mode_install ${1+"$@"}3227 test "$opt_mode" = install && func_mode_install ${1+"$@"} 2284 3228 2285 3229 … … 2324 3268 #endif 2325 3269 3270 #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) 3271 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\" 3272 #endif 3273 3274 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 3275 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 3276 /* DATA imports from DLLs on WIN32 con't be const, because runtime 3277 relocations are performed -- see ld's documentation on pseudo-relocs. */ 3278 # define LT_DLSYM_CONST 3279 #elif defined(__osf__) 3280 /* This system does not cope well with relocations in const data. */ 3281 # define LT_DLSYM_CONST 3282 #else 3283 # define LT_DLSYM_CONST const 3284 #endif 3285 2326 3286 /* External symbol declarations for the compiler. */\ 2327 3287 " … … 2333 3293 2334 3294 # Add our own program objects to the symbol list. 2335 progfiles=`$ECHO " X$objs$old_deplibs" | $SP2NL | $Xsed -e"$lo2o" | $NL2SP`3295 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` 2336 3296 for progfile in $progfiles; do 2337 func_verbose "extracting global C symbols from \`$progfile'" 2338 $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'" 3297 func_to_tool_file "$progfile" func_convert_file_msys_to_w32 3298 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'" 3299 $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" 2339 3300 done 2340 3301 … … 2372 3333 eval '$MV "$nlist"T "$nlist"' 2373 3334 case $host in 2374 *cygwin | *mingw* | *cegcc* )3335 *cygwin* | *mingw* | *cegcc* ) 2375 3336 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' 2376 3337 eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' … … 2385 3346 func_basename "$dlprefile" 2386 3347 name="$func_basename_result" 2387 $opt_dry_run || { 2388 eval '$ECHO ": $name " >> "$nlist"' 2389 eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'" 2390 } 3348 case $host in 3349 *cygwin* | *mingw* | *cegcc* ) 3350 # if an import library, we need to obtain dlname 3351 if func_win32_import_lib_p "$dlprefile"; then 3352 func_tr_sh "$dlprefile" 3353 eval "curr_lafile=\$libfile_$func_tr_sh_result" 3354 dlprefile_dlbasename="" 3355 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then 3356 # Use subshell, to avoid clobbering current variable values 3357 dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` 3358 if test -n "$dlprefile_dlname" ; then 3359 func_basename "$dlprefile_dlname" 3360 dlprefile_dlbasename="$func_basename_result" 3361 else 3362 # no lafile. user explicitly requested -dlpreopen <import library>. 3363 $sharedlib_from_linklib_cmd "$dlprefile" 3364 dlprefile_dlbasename=$sharedlib_from_linklib_result 3365 fi 3366 fi 3367 $opt_dry_run || { 3368 if test -n "$dlprefile_dlbasename" ; then 3369 eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' 3370 else 3371 func_warning "Could not compute DLL name from $name" 3372 eval '$ECHO ": $name " >> "$nlist"' 3373 fi 3374 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 3375 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | 3376 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" 3377 } 3378 else # not an import lib 3379 $opt_dry_run || { 3380 eval '$ECHO ": $name " >> "$nlist"' 3381 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 3382 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" 3383 } 3384 fi 3385 ;; 3386 *) 3387 $opt_dry_run || { 3388 eval '$ECHO ": $name " >> "$nlist"' 3389 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 3390 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" 3391 } 3392 ;; 3393 esac 2391 3394 done 2392 3395 … … 2416 3419 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' 2417 3420 else 2418 $ECHO'/* NONE */' >> "$output_objdir/$my_dlsyms"3421 echo '/* NONE */' >> "$output_objdir/$my_dlsyms" 2419 3422 fi 2420 3423 2421 $ECHO>> "$output_objdir/$my_dlsyms" "\3424 echo >> "$output_objdir/$my_dlsyms" "\ 2422 3425 2423 3426 /* The mapping between symbol names and symbols. */ … … 2426 3429 void *address; 2427 3430 } lt_dlsymlist; 2428 " 2429 case $host in 2430 *cygwin* | *mingw* | *cegcc* ) 2431 $ECHO >> "$output_objdir/$my_dlsyms" "\ 2432 /* DATA imports from DLLs on WIN32 con't be const, because 2433 runtime relocations are performed -- see ld's documentation 2434 on pseudo-relocs. */" 2435 lt_dlsym_const= ;; 2436 *osf5*) 2437 echo >> "$output_objdir/$my_dlsyms" "\ 2438 /* This system does not cope well with relocations in const data */" 2439 lt_dlsym_const= ;; 2440 *) 2441 lt_dlsym_const=const ;; 2442 esac 2443 2444 $ECHO >> "$output_objdir/$my_dlsyms" "\ 2445 extern $lt_dlsym_const lt_dlsymlist 3431 extern LT_DLSYM_CONST lt_dlsymlist 2446 3432 lt_${my_prefix}_LTX_preloaded_symbols[]; 2447 $lt_dlsym_constlt_dlsymlist3433 LT_DLSYM_CONST lt_dlsymlist 2448 3434 lt_${my_prefix}_LTX_preloaded_symbols[] = 2449 3435 {\ … … 2458 3444 ;; 2459 3445 esac 2460 $ECHO>> "$output_objdir/$my_dlsyms" "\3446 echo >> "$output_objdir/$my_dlsyms" "\ 2461 3447 {0, (void *) 0} 2462 3448 }; … … 2501 3487 case $arg in 2502 3488 -pie | -fpie | -fPIE) ;; 2503 *) symtab_cflags="$symtab_cflags$arg" ;;3489 *) func_append symtab_cflags " $arg" ;; 2504 3490 esac 2505 3491 done … … 2516 3502 *cygwin* | *mingw* | *cegcc* ) 2517 3503 if test -f "$output_objdir/$my_outputname.def"; then 2518 compile_command=`$ECHO " X$compile_command" | $Xsed -e"s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`2519 finalize_command=`$ECHO " X$finalize_command" | $Xsed -e"s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`3504 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` 3505 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` 2520 3506 else 2521 compile_command=`$ECHO " X$compile_command" | $Xsed -e"s%@SYMFILE@%$symfileobj%"`2522 finalize_command=`$ECHO " X$finalize_command" | $Xsed -e"s%@SYMFILE@%$symfileobj%"`3507 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` 3508 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` 2523 3509 fi 2524 3510 ;; 2525 3511 *) 2526 compile_command=`$ECHO " X$compile_command" | $Xsed -e"s%@SYMFILE@%$symfileobj%"`2527 finalize_command=`$ECHO " X$finalize_command" | $Xsed -e"s%@SYMFILE@%$symfileobj%"`3512 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` 3513 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` 2528 3514 ;; 2529 3515 esac … … 2539 3525 2540 3526 # Nullify the symbol file. 2541 compile_command=`$ECHO " X$compile_command" | $Xsed -e"s% @SYMFILE@%%"`2542 finalize_command=`$ECHO " X$finalize_command" | $Xsed -e"s% @SYMFILE@%%"`3527 compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` 3528 finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` 2543 3529 fi 2544 3530 } … … 2550 3536 # Has to be a shell function in order to 'eat' the argument 2551 3537 # that is supplied when $file_magic_command is called. 3538 # Despite the name, also deal with 64 bit binaries. 2552 3539 func_win32_libid () 2553 3540 { … … 2560 3547 ;; 2561 3548 *ar\ archive*) # could be an import, or static 3549 # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. 2562 3550 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | 2563 $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then 2564 win32_nmres=`eval $NM -f posix -A $1 | 3551 $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then 3552 func_to_tool_file "$1" func_convert_file_msys_to_w32 3553 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | 2565 3554 $SED -n -e ' 2566 3555 1,100{ … … 2591 3580 } 2592 3581 3582 # func_cygming_dll_for_implib ARG 3583 # 3584 # Platform-specific function to extract the 3585 # name of the DLL associated with the specified 3586 # import library ARG. 3587 # Invoked by eval'ing the libtool variable 3588 # $sharedlib_from_linklib_cmd 3589 # Result is available in the variable 3590 # $sharedlib_from_linklib_result 3591 func_cygming_dll_for_implib () 3592 { 3593 $opt_debug 3594 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` 3595 } 3596 3597 # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs 3598 # 3599 # The is the core of a fallback implementation of a 3600 # platform-specific function to extract the name of the 3601 # DLL associated with the specified import library LIBNAME. 3602 # 3603 # SECTION_NAME is either .idata$6 or .idata$7, depending 3604 # on the platform and compiler that created the implib. 3605 # 3606 # Echos the name of the DLL associated with the 3607 # specified import library. 3608 func_cygming_dll_for_implib_fallback_core () 3609 { 3610 $opt_debug 3611 match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` 3612 $OBJDUMP -s --section "$1" "$2" 2>/dev/null | 3613 $SED '/^Contents of section '"$match_literal"':/{ 3614 # Place marker at beginning of archive member dllname section 3615 s/.*/====MARK====/ 3616 p 3617 d 3618 } 3619 # These lines can sometimes be longer than 43 characters, but 3620 # are always uninteresting 3621 /:[ ]*file format pe[i]\{,1\}-/d 3622 /^In archive [^:]*:/d 3623 # Ensure marker is printed 3624 /^====MARK====/p 3625 # Remove all lines with less than 43 characters 3626 /^.\{43\}/!d 3627 # From remaining lines, remove first 43 characters 3628 s/^.\{43\}//' | 3629 $SED -n ' 3630 # Join marker and all lines until next marker into a single line 3631 /^====MARK====/ b para 3632 H 3633 $ b para 3634 b 3635 :para 3636 x 3637 s/\n//g 3638 # Remove the marker 3639 s/^====MARK====// 3640 # Remove trailing dots and whitespace 3641 s/[\. \t]*$// 3642 # Print 3643 /./p' | 3644 # we now have a list, one entry per line, of the stringified 3645 # contents of the appropriate section of all members of the 3646 # archive which possess that section. Heuristic: eliminate 3647 # all those which have a first or second character that is 3648 # a '.' (that is, objdump's representation of an unprintable 3649 # character.) This should work for all archives with less than 3650 # 0x302f exports -- but will fail for DLLs whose name actually 3651 # begins with a literal '.' or a single character followed by 3652 # a '.'. 3653 # 3654 # Of those that remain, print the first one. 3655 $SED -e '/^\./d;/^.\./d;q' 3656 } 3657 3658 # func_cygming_gnu_implib_p ARG 3659 # This predicate returns with zero status (TRUE) if 3660 # ARG is a GNU/binutils-style import library. Returns 3661 # with nonzero status (FALSE) otherwise. 3662 func_cygming_gnu_implib_p () 3663 { 3664 $opt_debug 3665 func_to_tool_file "$1" func_convert_file_msys_to_w32 3666 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` 3667 test -n "$func_cygming_gnu_implib_tmp" 3668 } 3669 3670 # func_cygming_ms_implib_p ARG 3671 # This predicate returns with zero status (TRUE) if 3672 # ARG is an MS-style import library. Returns 3673 # with nonzero status (FALSE) otherwise. 3674 func_cygming_ms_implib_p () 3675 { 3676 $opt_debug 3677 func_to_tool_file "$1" func_convert_file_msys_to_w32 3678 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` 3679 test -n "$func_cygming_ms_implib_tmp" 3680 } 3681 3682 # func_cygming_dll_for_implib_fallback ARG 3683 # Platform-specific function to extract the 3684 # name of the DLL associated with the specified 3685 # import library ARG. 3686 # 3687 # This fallback implementation is for use when $DLLTOOL 3688 # does not support the --identify-strict option. 3689 # Invoked by eval'ing the libtool variable 3690 # $sharedlib_from_linklib_cmd 3691 # Result is available in the variable 3692 # $sharedlib_from_linklib_result 3693 func_cygming_dll_for_implib_fallback () 3694 { 3695 $opt_debug 3696 if func_cygming_gnu_implib_p "$1" ; then 3697 # binutils import library 3698 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` 3699 elif func_cygming_ms_implib_p "$1" ; then 3700 # ms-generated import library 3701 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` 3702 else 3703 # unknown 3704 sharedlib_from_linklib_result="" 3705 fi 3706 } 2593 3707 2594 3708 … … 2599 3713 f_ex_an_ar_dir="$1"; shift 2600 3714 f_ex_an_ar_oldlib="$1" 2601 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?' 3715 if test "$lock_old_archive_extraction" = yes; then 3716 lockfile=$f_ex_an_ar_oldlib.lock 3717 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do 3718 func_echo "Waiting for $lockfile to be removed" 3719 sleep 2 3720 done 3721 fi 3722 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ 3723 'stat=$?; rm -f "$lockfile"; exit $stat' 3724 if test "$lock_old_archive_extraction" = yes; then 3725 $opt_dry_run || rm -f "$lockfile" 3726 fi 2602 3727 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then 2603 3728 : … … 2670 3795 darwin_files= 2671 3796 for darwin_file in $darwin_filelist; do 2672 darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`3797 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` 2673 3798 $LIPO -create -output "$darwin_file" $darwin_files 2674 3799 done # $darwin_filelist … … 2685 3810 ;; 2686 3811 esac 2687 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`3812 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` 2688 3813 done 2689 3814 2690 3815 func_extract_archives_result="$my_oldobjs" 2691 3816 } 2692 2693 2694 2695 # func_emit_wrapper_part1 [arg=no]2696 #2697 # Emit the first part of a libtool wrapper script on stdout.2698 # For more information, see the description associated with2699 # func_emit_wrapper(), below.2700 func_emit_wrapper_part1 ()2701 {2702 func_emit_wrapper_part1_arg1=no2703 if test -n "$1" ; then2704 func_emit_wrapper_part1_arg1=$12705 fi2706 2707 $ECHO "\2708 #! $SHELL2709 2710 # $output - temporary wrapper script for $objdir/$outputname2711 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION2712 #2713 # The $output program cannot be directly executed until all the libtool2714 # libraries that it depends on are installed.2715 #2716 # This wrapper script should never be moved out of the build directory.2717 # If it is, it will not operate correctly.2718 2719 # Sed substitution that helps us do robust quoting. It backslashifies2720 # metacharacters that are still active within double-quoted strings.2721 Xsed='${SED} -e 1s/^X//'2722 sed_quote_subst='$sed_quote_subst'2723 2724 # Be Bourne compatible2725 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then2726 emulate sh2727 NULLCMD=:2728 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which2729 # is contrary to our usage. Disable this feature.2730 alias -g '\${1+\"\$@\"}'='\"\$@\"'2731 setopt NO_GLOB_SUBST2732 else2733 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac2734 fi2735 BIN_SH=xpg4; export BIN_SH # for Tru642736 DUALCASE=1; export DUALCASE # for MKS sh2737 2738 # The HP-UX ksh and POSIX shell print the target directory to stdout2739 # if CDPATH is set.2740 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH2741 2742 relink_command=\"$relink_command\"2743 2744 # This environment variable determines our operation mode.2745 if test \"\$libtool_install_magic\" = \"$magic\"; then2746 # install mode needs the following variables:2747 generated_by_libtool_version='$macro_version'2748 notinst_deplibs='$notinst_deplibs'2749 else2750 # When we are sourced in execute mode, \$file and \$ECHO are already set.2751 if test \"\$libtool_execute_magic\" != \"$magic\"; then2752 ECHO=\"$qecho\"2753 file=\"\$0\"2754 # Make sure echo works.2755 if test \"X\$1\" = X--no-reexec; then2756 # Discard the --no-reexec flag, and continue.2757 shift2758 elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then2759 # Yippee, \$ECHO works!2760 :2761 else2762 # Restart under the correct shell, and then maybe \$ECHO will work.2763 exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}2764 fi2765 fi\2766 "2767 $ECHO "\2768 2769 # Find the directory that this script lives in.2770 thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`2771 test \"x\$thisdir\" = \"x\$file\" && thisdir=.2772 2773 # Follow symbolic links until we get to the real thisdir.2774 file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`2775 while test -n \"\$file\"; do2776 destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`2777 2778 # If there was a directory component, then change thisdir.2779 if test \"x\$destdir\" != \"x\$file\"; then2780 case \"\$destdir\" in2781 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;2782 *) thisdir=\"\$thisdir/\$destdir\" ;;2783 esac2784 fi2785 2786 file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`2787 file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`2788 done2789 "2790 }2791 # end: func_emit_wrapper_part12792 2793 # func_emit_wrapper_part2 [arg=no]2794 #2795 # Emit the second part of a libtool wrapper script on stdout.2796 # For more information, see the description associated with2797 # func_emit_wrapper(), below.2798 func_emit_wrapper_part2 ()2799 {2800 func_emit_wrapper_part2_arg1=no2801 if test -n "$1" ; then2802 func_emit_wrapper_part2_arg1=$12803 fi2804 2805 $ECHO "\2806 2807 # Usually 'no', except on cygwin/mingw when embedded into2808 # the cwrapper.2809 WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg12810 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then2811 # special case for '.'2812 if test \"\$thisdir\" = \".\"; then2813 thisdir=\`pwd\`2814 fi2815 # remove .libs from thisdir2816 case \"\$thisdir\" in2817 *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;2818 $objdir ) thisdir=. ;;2819 esac2820 fi2821 2822 # Try to get the absolute directory name.2823 absdir=\`cd \"\$thisdir\" && pwd\`2824 test -n \"\$absdir\" && thisdir=\"\$absdir\"2825 "2826 2827 if test "$fast_install" = yes; then2828 $ECHO "\2829 program=lt-'$outputname'$exeext2830 progdir=\"\$thisdir/$objdir\"2831 2832 if test ! -f \"\$progdir/\$program\" ||2833 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\2834 test \"X\$file\" != \"X\$progdir/\$program\"; }; then2835 2836 file=\"\$\$-\$program\"2837 2838 if test ! -d \"\$progdir\"; then2839 $MKDIR \"\$progdir\"2840 else2841 $RM \"\$progdir/\$file\"2842 fi"2843 2844 $ECHO "\2845 2846 # relink executable if necessary2847 if test -n \"\$relink_command\"; then2848 if relink_command_output=\`eval \$relink_command 2>&1\`; then :2849 else2850 $ECHO \"\$relink_command_output\" >&22851 $RM \"\$progdir/\$file\"2852 exit 12853 fi2854 fi2855 2856 $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||2857 { $RM \"\$progdir/\$program\";2858 $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }2859 $RM \"\$progdir/\$file\"2860 fi"2861 else2862 $ECHO "\2863 program='$outputname'2864 progdir=\"\$thisdir/$objdir\"2865 "2866 fi2867 2868 $ECHO "\2869 2870 if test -f \"\$progdir/\$program\"; then"2871 2872 # Export our shlibpath_var if we have one.2873 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then2874 $ECHO "\2875 # Add our own library path to $shlibpath_var2876 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"2877 2878 # Some systems cannot cope with colon-terminated $shlibpath_var2879 # The second colon is a workaround for a bug in BeOS R4 sed2880 $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`2881 2882 export $shlibpath_var2883 "2884 fi2885 2886 # fixup the dll searchpath if we need to.2887 if test -n "$dllsearchpath"; then2888 $ECHO "\2889 # Add the dll search path components to the executable PATH2890 PATH=$dllsearchpath:\$PATH2891 "2892 fi2893 2894 $ECHO "\2895 if test \"\$libtool_execute_magic\" != \"$magic\"; then2896 # Run the actual program with our arguments.2897 "2898 case $host in2899 # Backslashes separate directories on plain windows2900 *-*-mingw | *-*-os2* | *-cegcc*)2901 $ECHO "\2902 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}2903 "2904 ;;2905 2906 *)2907 $ECHO "\2908 exec \"\$progdir/\$program\" \${1+\"\$@\"}2909 "2910 ;;2911 esac2912 $ECHO "\2913 \$ECHO \"\$0: cannot exec \$program \$*\" 1>&22914 exit 12915 fi2916 else2917 # The program doesn't exist.2918 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&22919 \$ECHO \"This script is just a wrapper for \$program.\" 1>&22920 $ECHO \"See the $PACKAGE documentation for more information.\" 1>&22921 exit 12922 fi2923 fi\2924 "2925 }2926 # end: func_emit_wrapper_part22927 3817 2928 3818 … … 2943 3833 func_emit_wrapper () 2944 3834 { 2945 func_emit_wrapper_arg1=no 2946 if test -n "$1" ; then 2947 func_emit_wrapper_arg1=$1 2948 fi 2949 2950 # split this up so that func_emit_cwrapperexe_src 2951 # can call each part independently. 2952 func_emit_wrapper_part1 "${func_emit_wrapper_arg1}" 2953 func_emit_wrapper_part2 "${func_emit_wrapper_arg1}" 2954 } 2955 2956 2957 # func_to_host_path arg 3835 func_emit_wrapper_arg1=${1-no} 3836 3837 $ECHO "\ 3838 #! $SHELL 3839 3840 # $output - temporary wrapper script for $objdir/$outputname 3841 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION 2958 3842 # 2959 # Convert paths to host format when used with build tools. 2960 # Intended for use with "native" mingw (where libtool itself 2961 # is running under the msys shell), or in the following cross- 2962 # build environments: 2963 # $build $host 2964 # mingw (msys) mingw [e.g. native] 2965 # cygwin mingw 2966 # *nix + wine mingw 2967 # where wine is equipped with the `winepath' executable. 2968 # In the native mingw case, the (msys) shell automatically 2969 # converts paths for any non-msys applications it launches, 2970 # but that facility isn't available from inside the cwrapper. 2971 # Similar accommodations are necessary for $host mingw and 2972 # $build cygwin. Calling this function does no harm for other 2973 # $host/$build combinations not listed above. 3843 # The $output program cannot be directly executed until all the libtool 3844 # libraries that it depends on are installed. 2974 3845 # 2975 # ARG is the path (on $build) that should be converted to 2976 # the proper representation for $host. The result is stored 2977 # in $func_to_host_path_result. 2978 func_to_host_path () 2979 { 2980 func_to_host_path_result="$1" 2981 if test -n "$1" ; then 2982 case $host in 2983 *mingw* ) 2984 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' 2985 case $build in 2986 *mingw* ) # actually, msys 2987 # awkward: cmd appends spaces to result 2988 lt_sed_strip_trailing_spaces="s/[ ]*\$//" 2989 func_to_host_path_tmp1=`( cmd //c echo "$1" |\ 2990 $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` 2991 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ 2992 $SED -e "$lt_sed_naive_backslashify"` 2993 ;; 2994 *cygwin* ) 2995 func_to_host_path_tmp1=`cygpath -w "$1"` 2996 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ 2997 $SED -e "$lt_sed_naive_backslashify"` 2998 ;; 2999 * ) 3000 # Unfortunately, winepath does not exit with a non-zero 3001 # error code, so we are forced to check the contents of 3002 # stdout. On the other hand, if the command is not 3003 # found, the shell will set an exit code of 127 and print 3004 # *an error message* to stdout. So we must check for both 3005 # error code of zero AND non-empty stdout, which explains 3006 # the odd construction: 3007 func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null` 3008 if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then 3009 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ 3010 $SED -e "$lt_sed_naive_backslashify"` 3011 else 3012 # Allow warning below. 3013 func_to_host_path_result="" 3014 fi 3015 ;; 3016 esac 3017 if test -z "$func_to_host_path_result" ; then 3018 func_error "Could not determine host path corresponding to" 3019 func_error " '$1'" 3020 func_error "Continuing, but uninstalled executables may not work." 3021 # Fallback: 3022 func_to_host_path_result="$1" 3023 fi 3024 ;; 3846 # This wrapper script should never be moved out of the build directory. 3847 # If it is, it will not operate correctly. 3848 3849 # Sed substitution that helps us do robust quoting. It backslashifies 3850 # metacharacters that are still active within double-quoted strings. 3851 sed_quote_subst='$sed_quote_subst' 3852 3853 # Be Bourne compatible 3854 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then 3855 emulate sh 3856 NULLCMD=: 3857 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which 3858 # is contrary to our usage. Disable this feature. 3859 alias -g '\${1+\"\$@\"}'='\"\$@\"' 3860 setopt NO_GLOB_SUBST 3861 else 3862 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac 3863 fi 3864 BIN_SH=xpg4; export BIN_SH # for Tru64 3865 DUALCASE=1; export DUALCASE # for MKS sh 3866 3867 # The HP-UX ksh and POSIX shell print the target directory to stdout 3868 # if CDPATH is set. 3869 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 3870 3871 relink_command=\"$relink_command\" 3872 3873 # This environment variable determines our operation mode. 3874 if test \"\$libtool_install_magic\" = \"$magic\"; then 3875 # install mode needs the following variables: 3876 generated_by_libtool_version='$macro_version' 3877 notinst_deplibs='$notinst_deplibs' 3878 else 3879 # When we are sourced in execute mode, \$file and \$ECHO are already set. 3880 if test \"\$libtool_execute_magic\" != \"$magic\"; then 3881 file=\"\$0\"" 3882 3883 qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` 3884 $ECHO "\ 3885 3886 # A function that is used when there is no print builtin or printf. 3887 func_fallback_echo () 3888 { 3889 eval 'cat <<_LTECHO_EOF 3890 \$1 3891 _LTECHO_EOF' 3892 } 3893 ECHO=\"$qECHO\" 3894 fi 3895 3896 # Very basic option parsing. These options are (a) specific to 3897 # the libtool wrapper, (b) are identical between the wrapper 3898 # /script/ and the wrapper /executable/ which is used only on 3899 # windows platforms, and (c) all begin with the string "--lt-" 3900 # (application programs are unlikely to have options which match 3901 # this pattern). 3902 # 3903 # There are only two supported options: --lt-debug and 3904 # --lt-dump-script. There is, deliberately, no --lt-help. 3905 # 3906 # The first argument to this parsing function should be the 3907 # script's $0 value, followed by "$@". 3908 lt_option_debug= 3909 func_parse_lt_options () 3910 { 3911 lt_script_arg0=\$0 3912 shift 3913 for lt_opt 3914 do 3915 case \"\$lt_opt\" in 3916 --lt-debug) lt_option_debug=1 ;; 3917 --lt-dump-script) 3918 lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` 3919 test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. 3920 lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` 3921 cat \"\$lt_dump_D/\$lt_dump_F\" 3922 exit 0 3923 ;; 3924 --lt-*) 3925 \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 3926 exit 1 3927 ;; 3928 esac 3929 done 3930 3931 # Print the debug banner immediately: 3932 if test -n \"\$lt_option_debug\"; then 3933 echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2 3934 fi 3935 } 3936 3937 # Used when --lt-debug. Prints its arguments to stdout 3938 # (redirection is the responsibility of the caller) 3939 func_lt_dump_args () 3940 { 3941 lt_dump_args_N=1; 3942 for lt_arg 3943 do 3944 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\" 3945 lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` 3946 done 3947 } 3948 3949 # Core function for launching the target application 3950 func_exec_program_core () 3951 { 3952 " 3953 case $host in 3954 # Backslashes separate directories on plain windows 3955 *-*-mingw | *-*-os2* | *-cegcc*) 3956 $ECHO "\ 3957 if test -n \"\$lt_option_debug\"; then 3958 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2 3959 func_lt_dump_args \${1+\"\$@\"} 1>&2 3960 fi 3961 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} 3962 " 3963 ;; 3964 3965 *) 3966 $ECHO "\ 3967 if test -n \"\$lt_option_debug\"; then 3968 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2 3969 func_lt_dump_args \${1+\"\$@\"} 1>&2 3970 fi 3971 exec \"\$progdir/\$program\" \${1+\"\$@\"} 3972 " 3973 ;; 3974 esac 3975 $ECHO "\ 3976 \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 3977 exit 1 3978 } 3979 3980 # A function to encapsulate launching the target application 3981 # Strips options in the --lt-* namespace from \$@ and 3982 # launches target application with the remaining arguments. 3983 func_exec_program () 3984 { 3985 for lt_wr_arg 3986 do 3987 case \$lt_wr_arg in 3988 --lt-*) ;; 3989 *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; 3990 esac 3991 shift 3992 done 3993 func_exec_program_core \${1+\"\$@\"} 3994 } 3995 3996 # Parse options 3997 func_parse_lt_options \"\$0\" \${1+\"\$@\"} 3998 3999 # Find the directory that this script lives in. 4000 thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` 4001 test \"x\$thisdir\" = \"x\$file\" && thisdir=. 4002 4003 # Follow symbolic links until we get to the real thisdir. 4004 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` 4005 while test -n \"\$file\"; do 4006 destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` 4007 4008 # If there was a directory component, then change thisdir. 4009 if test \"x\$destdir\" != \"x\$file\"; then 4010 case \"\$destdir\" in 4011 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; 4012 *) thisdir=\"\$thisdir/\$destdir\" ;; 4013 esac 4014 fi 4015 4016 file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` 4017 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` 4018 done 4019 4020 # Usually 'no', except on cygwin/mingw when embedded into 4021 # the cwrapper. 4022 WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 4023 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then 4024 # special case for '.' 4025 if test \"\$thisdir\" = \".\"; then 4026 thisdir=\`pwd\` 4027 fi 4028 # remove .libs from thisdir 4029 case \"\$thisdir\" in 4030 *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; 4031 $objdir ) thisdir=. ;; 3025 4032 esac 3026 4033 fi 3027 } 3028 # end: func_to_host_path 3029 3030 # func_to_host_pathlist arg 3031 # 3032 # Convert pathlists to host format when used with build tools. 3033 # See func_to_host_path(), above. This function supports the 3034 # following $build/$host combinations (but does no harm for 3035 # combinations not listed here): 3036 # $build $host 3037 # mingw (msys) mingw [e.g. native] 3038 # cygwin mingw 3039 # *nix + wine mingw 3040 # 3041 # Path separators are also converted from $build format to 3042 # $host format. If ARG begins or ends with a path separator 3043 # character, it is preserved (but converted to $host format) 3044 # on output. 3045 # 3046 # ARG is a pathlist (on $build) that should be converted to 3047 # the proper representation on $host. The result is stored 3048 # in $func_to_host_pathlist_result. 3049 func_to_host_pathlist () 3050 { 3051 func_to_host_pathlist_result="$1" 3052 if test -n "$1" ; then 3053 case $host in 3054 *mingw* ) 3055 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' 3056 # Remove leading and trailing path separator characters from 3057 # ARG. msys behavior is inconsistent here, cygpath turns them 3058 # into '.;' and ';.', and winepath ignores them completely. 3059 func_to_host_pathlist_tmp2="$1" 3060 # Once set for this call, this variable should not be 3061 # reassigned. It is used in tha fallback case. 3062 func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\ 3063 $SED -e 's|^:*||' -e 's|:*$||'` 3064 case $build in 3065 *mingw* ) # Actually, msys. 3066 # Awkward: cmd appends spaces to result. 3067 lt_sed_strip_trailing_spaces="s/[ ]*\$//" 3068 func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\ 3069 $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` 3070 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ 3071 $SED -e "$lt_sed_naive_backslashify"` 3072 ;; 3073 *cygwin* ) 3074 func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"` 3075 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ 3076 $SED -e "$lt_sed_naive_backslashify"` 3077 ;; 3078 * ) 3079 # unfortunately, winepath doesn't convert pathlists 3080 func_to_host_pathlist_result="" 3081 func_to_host_pathlist_oldIFS=$IFS 3082 IFS=: 3083 for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do 3084 IFS=$func_to_host_pathlist_oldIFS 3085 if test -n "$func_to_host_pathlist_f" ; then 3086 func_to_host_path "$func_to_host_pathlist_f" 3087 if test -n "$func_to_host_path_result" ; then 3088 if test -z "$func_to_host_pathlist_result" ; then 3089 func_to_host_pathlist_result="$func_to_host_path_result" 3090 else 3091 func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result" 3092 fi 3093 fi 3094 fi 3095 IFS=: 3096 done 3097 IFS=$func_to_host_pathlist_oldIFS 3098 ;; 3099 esac 3100 if test -z "$func_to_host_pathlist_result" ; then 3101 func_error "Could not determine the host path(s) corresponding to" 3102 func_error " '$1'" 3103 func_error "Continuing, but uninstalled executables may not work." 3104 # Fallback. This may break if $1 contains DOS-style drive 3105 # specifications. The fix is not to complicate the expression 3106 # below, but for the user to provide a working wine installation 3107 # with winepath so that path translation in the cross-to-mingw 3108 # case works properly. 3109 lt_replace_pathsep_nix_to_dos="s|:|;|g" 3110 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\ 3111 $SED -e "$lt_replace_pathsep_nix_to_dos"` 3112 fi 3113 # Now, add the leading and trailing path separators back 3114 case "$1" in 3115 :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result" 3116 ;; 3117 esac 3118 case "$1" in 3119 *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;" 3120 ;; 3121 esac 3122 ;; 3123 esac 4034 4035 # Try to get the absolute directory name. 4036 absdir=\`cd \"\$thisdir\" && pwd\` 4037 test -n \"\$absdir\" && thisdir=\"\$absdir\" 4038 " 4039 4040 if test "$fast_install" = yes; then 4041 $ECHO "\ 4042 program=lt-'$outputname'$exeext 4043 progdir=\"\$thisdir/$objdir\" 4044 4045 if test ! -f \"\$progdir/\$program\" || 4046 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ 4047 test \"X\$file\" != \"X\$progdir/\$program\"; }; then 4048 4049 file=\"\$\$-\$program\" 4050 4051 if test ! -d \"\$progdir\"; then 4052 $MKDIR \"\$progdir\" 4053 else 4054 $RM \"\$progdir/\$file\" 4055 fi" 4056 4057 $ECHO "\ 4058 4059 # relink executable if necessary 4060 if test -n \"\$relink_command\"; then 4061 if relink_command_output=\`eval \$relink_command 2>&1\`; then : 4062 else 4063 $ECHO \"\$relink_command_output\" >&2 4064 $RM \"\$progdir/\$file\" 4065 exit 1 4066 fi 4067 fi 4068 4069 $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || 4070 { $RM \"\$progdir/\$program\"; 4071 $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } 4072 $RM \"\$progdir/\$file\" 4073 fi" 4074 else 4075 $ECHO "\ 4076 program='$outputname' 4077 progdir=\"\$thisdir/$objdir\" 4078 " 4079 fi 4080 4081 $ECHO "\ 4082 4083 if test -f \"\$progdir/\$program\"; then" 4084 4085 # fixup the dll searchpath if we need to. 4086 # 4087 # Fix the DLL searchpath if we need to. Do this before prepending 4088 # to shlibpath, because on Windows, both are PATH and uninstalled 4089 # libraries must come first. 4090 if test -n "$dllsearchpath"; then 4091 $ECHO "\ 4092 # Add the dll search path components to the executable PATH 4093 PATH=$dllsearchpath:\$PATH 4094 " 4095 fi 4096 4097 # Export our shlibpath_var if we have one. 4098 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then 4099 $ECHO "\ 4100 # Add our own library path to $shlibpath_var 4101 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" 4102 4103 # Some systems cannot cope with colon-terminated $shlibpath_var 4104 # The second colon is a workaround for a bug in BeOS R4 sed 4105 $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` 4106 4107 export $shlibpath_var 4108 " 4109 fi 4110 4111 $ECHO "\ 4112 if test \"\$libtool_execute_magic\" != \"$magic\"; then 4113 # Run the actual program with our arguments. 4114 func_exec_program \${1+\"\$@\"} 4115 fi 4116 else 4117 # The program doesn't exist. 4118 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 4119 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 4120 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 4121 exit 1 3124 4122 fi 3125 } 3126 # end: func_to_host_pathlist 4123 fi\ 4124 " 4125 } 4126 3127 4127 3128 4128 # func_emit_cwrapperexe_src … … 3142 4142 This wrapper executable should never be moved out of the build directory. 3143 4143 If it is, it will not operate correctly. 3144 3145 Currently, it simply execs the wrapper *script* "$SHELL $output",3146 but could eventually absorb all of the scripts functionality and3147 exec $objdir/$outputname directly.3148 4144 */ 3149 4145 EOF 3150 4146 cat <<"EOF" 4147 #ifdef _MSC_VER 4148 # define _CRT_SECURE_NO_DEPRECATE 1 4149 #endif 3151 4150 #include <stdio.h> 3152 4151 #include <stdlib.h> … … 3155 4154 # include <process.h> 3156 4155 # include <io.h> 3157 # define setmode _setmode3158 4156 #else 3159 4157 # include <unistd.h> … … 3161 4159 # ifdef __CYGWIN__ 3162 4160 # include <io.h> 3163 # define HAVE_SETENV3164 # ifdef __STRICT_ANSI__3165 char *realpath (const char *, char *);3166 int putenv (char *);3167 int setenv (const char *, const char *, int);3168 # endif3169 4161 # endif 3170 4162 #endif … … 3178 4170 #include <sys/stat.h> 3179 4171 4172 /* declarations of non-ANSI functions */ 4173 #if defined(__MINGW32__) 4174 # ifdef __STRICT_ANSI__ 4175 int _putenv (const char *); 4176 # endif 4177 #elif defined(__CYGWIN__) 4178 # ifdef __STRICT_ANSI__ 4179 char *realpath (const char *, char *); 4180 int putenv (char *); 4181 int setenv (const char *, const char *, int); 4182 # endif 4183 /* #elif defined (other platforms) ... */ 4184 #endif 4185 4186 /* portability defines, excluding path handling macros */ 4187 #if defined(_MSC_VER) 4188 # define setmode _setmode 4189 # define stat _stat 4190 # define chmod _chmod 4191 # define getcwd _getcwd 4192 # define putenv _putenv 4193 # define S_IXUSR _S_IEXEC 4194 # ifndef _INTPTR_T_DEFINED 4195 # define _INTPTR_T_DEFINED 4196 # define intptr_t int 4197 # endif 4198 #elif defined(__MINGW32__) 4199 # define setmode _setmode 4200 # define stat _stat 4201 # define chmod _chmod 4202 # define getcwd _getcwd 4203 # define putenv _putenv 4204 #elif defined(__CYGWIN__) 4205 # define HAVE_SETENV 4206 # define FOPEN_WB "wb" 4207 /* #elif defined (other platforms) ... */ 4208 #endif 4209 3180 4210 #if defined(PATH_MAX) 3181 4211 # define LT_PATHMAX PATH_MAX … … 3193 4223 #endif 3194 4224 3195 #ifdef _MSC_VER 3196 # define S_IXUSR _S_IEXEC 3197 # define stat _stat 3198 # ifndef _INTPTR_T_DEFINED 3199 # define intptr_t int 3200 # endif 3201 #endif 3202 4225 /* path handling portability macros */ 3203 4226 #ifndef DIR_SEPARATOR 3204 4227 # define DIR_SEPARATOR '/' … … 3231 4254 #endif /* PATH_SEPARATOR_2 */ 3232 4255 3233 #ifdef __CYGWIN__3234 # define FOPEN_WB "wb"3235 #endif3236 3237 4256 #ifndef FOPEN_WB 3238 4257 # define FOPEN_WB "w" … … 3247 4266 } while (0) 3248 4267 3249 #undef LTWRAPPER_DEBUGPRINTF 3250 #if defined DEBUGWRAPPER 3251 # define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args 3252 static void 3253 ltwrapper_debugprintf (const char *fmt, ...) 3254 { 3255 va_list args; 3256 va_start (args, fmt); 3257 (void) vfprintf (stderr, fmt, args); 3258 va_end (args); 3259 } 4268 #if defined(LT_DEBUGWRAPPER) 4269 static int lt_debug = 1; 3260 4270 #else 3261 # define LTWRAPPER_DEBUGPRINTF(args) 4271 static int lt_debug = 0; 3262 4272 #endif 3263 4273 3264 const char *program_name = NULL;4274 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ 3265 4275 3266 4276 void *xmalloc (size_t num); … … 3272 4282 int check_executable (const char *path); 3273 4283 char *strendzap (char *str, const char *pat); 3274 void lt_fatal (const char *message, ...); 4284 void lt_debugprintf (const char *file, int line, const char *fmt, ...); 4285 void lt_fatal (const char *file, int line, const char *message, ...); 4286 static const char *nonnull (const char *s); 4287 static const char *nonempty (const char *s); 3275 4288 void lt_setenv (const char *name, const char *value); 3276 4289 char *lt_extend_str (const char *orig_value, const char *add, int to_end); 3277 void lt_opt_process_env_set (const char *arg);3278 void lt_opt_process_env_prepend (const char *arg);3279 void lt_opt_process_env_append (const char *arg);3280 int lt_split_name_value (const char *arg, char** name, char** value);3281 4290 void lt_update_exe_path (const char *name, const char *value); 3282 4291 void lt_update_lib_path (const char *name, const char *value); 3283 3284 static const char *script_text_part1 = 4292 char **prepare_spawn (char **argv); 4293 void lt_dump_script (FILE *f); 3285 4294 EOF 3286 4295 3287 func_emit_wrapper_part1 yes |3288 $SED -e 's/\([\\"]\)/\\\1/g' \3289 -e 's/^/ "/' -e 's/$/\\n"/'3290 echo ";"3291 4296 cat <<EOF 3292 3293 static const char *script_text_part2 = 3294 EOF 3295 func_emit_wrapper_part2 yes | 3296 $SED -e 's/\([\\"]\)/\\\1/g' \ 3297 -e 's/^/ "/' -e 's/$/\\n"/' 3298 echo ";" 3299 3300 cat <<EOF 3301 const char * MAGIC_EXE = "$magic_exe"; 4297 volatile const char * MAGIC_EXE = "$magic_exe"; 3302 4298 const char * LIB_PATH_VARNAME = "$shlibpath_var"; 3303 4299 EOF 3304 4300 3305 4301 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then 3306 func_to_host_path list"$temp_rpath"4302 func_to_host_path "$temp_rpath" 3307 4303 cat <<EOF 3308 const char * LIB_PATH_VALUE = "$func_to_host_path list_result";4304 const char * LIB_PATH_VALUE = "$func_to_host_path_result"; 3309 4305 EOF 3310 4306 else … … 3315 4311 3316 4312 if test -n "$dllsearchpath"; then 3317 func_to_host_path list"$dllsearchpath:"4313 func_to_host_path "$dllsearchpath:" 3318 4314 cat <<EOF 3319 4315 const char * EXE_PATH_VARNAME = "PATH"; 3320 const char * EXE_PATH_VALUE = "$func_to_host_path list_result";4316 const char * EXE_PATH_VALUE = "$func_to_host_path_result"; 3321 4317 EOF 3322 4318 else … … 3341 4337 3342 4338 #define LTWRAPPER_OPTION_PREFIX "--lt-" 3343 #define LTWRAPPER_OPTION_PREFIX_LENGTH 5 3344 3345 static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH; 4339 3346 4340 static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX; 3347 3348 4341 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script"; 3349 3350 static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7; 3351 static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set"; 3352 /* argument is putenv-style "foo=bar", value of foo is set to bar */ 3353 3354 static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11; 3355 static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend"; 3356 /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */ 3357 3358 static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10; 3359 static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append"; 3360 /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */ 4342 static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug"; 3361 4343 3362 4344 int … … 3375 4357 3376 4358 program_name = (char *) xstrdup (base_name (argv[0])); 3377 LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0])); 3378 LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name)); 3379 3380 /* very simple arg parsing; don't want to rely on getopt */ 4359 newargz = XMALLOC (char *, argc + 1); 4360 4361 /* very simple arg parsing; don't want to rely on getopt 4362 * also, copy all non cwrapper options to newargz, except 4363 * argz[0], which is handled differently 4364 */ 4365 newargc=0; 3381 4366 for (i = 1; i < argc; i++) 3382 4367 { … … 3392 4377 3393 4378 cat <<"EOF" 3394 printf ("%s", script_text_part1); 3395 printf ("%s", script_text_part2); 4379 lt_dump_script (stdout); 3396 4380 return 0; 3397 4381 } 4382 if (strcmp (argv[i], debug_opt) == 0) 4383 { 4384 lt_debug = 1; 4385 continue; 4386 } 4387 if (strcmp (argv[i], ltwrapper_option_prefix) == 0) 4388 { 4389 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX 4390 namespace, but it is not one of the ones we know about and 4391 have already dealt with, above (inluding dump-script), then 4392 report an error. Otherwise, targets might begin to believe 4393 they are allowed to use options in the LTWRAPPER_OPTION_PREFIX 4394 namespace. The first time any user complains about this, we'll 4395 need to make LTWRAPPER_OPTION_PREFIX a configure-time option 4396 or a configure.ac-settable value. 4397 */ 4398 lt_fatal (__FILE__, __LINE__, 4399 "unrecognized %s option: '%s'", 4400 ltwrapper_option_prefix, argv[i]); 4401 } 4402 /* otherwise ... */ 4403 newargz[++newargc] = xstrdup (argv[i]); 3398 4404 } 3399 3400 newargz = XMALLOC (char *, argc + 1); 4405 newargz[++newargc] = NULL; 4406 4407 EOF 4408 cat <<EOF 4409 /* The GNU banner must be the first non-error debug message */ 4410 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n"); 4411 EOF 4412 cat <<"EOF" 4413 lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]); 4414 lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name); 4415 3401 4416 tmp_pathspec = find_executable (argv[0]); 3402 4417 if (tmp_pathspec == NULL) 3403 lt_fatal ("Couldn't find %s", argv[0]); 3404 LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n", 3405 tmp_pathspec)); 4418 lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]); 4419 lt_debugprintf (__FILE__, __LINE__, 4420 "(main) found exe (before symlink chase) at: %s\n", 4421 tmp_pathspec); 3406 4422 3407 4423 actual_cwrapper_path = chase_symlinks (tmp_pathspec); 3408 LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n", 3409 actual_cwrapper_path)); 4424 lt_debugprintf (__FILE__, __LINE__, 4425 "(main) found exe (after symlink chase) at: %s\n", 4426 actual_cwrapper_path); 3410 4427 XFREE (tmp_pathspec); 3411 4428 3412 actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));4429 actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path)); 3413 4430 strendzap (actual_cwrapper_path, actual_cwrapper_name); 3414 4431 … … 3428 4445 tmp_pathspec = 0; 3429 4446 3430 LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n", 3431 target_name)); 4447 lt_debugprintf (__FILE__, __LINE__, 4448 "(main) libtool target name: %s\n", 4449 target_name); 3432 4450 EOF 3433 4451 … … 3479 4497 lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */ 3480 4498 lt_setenv ("DUALCASE", "1"); /* for MSK sh */ 4499 /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must 4500 be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath) 4501 because on Windows, both *_VARNAMEs are PATH but uninstalled 4502 libraries must come first. */ 4503 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE); 3481 4504 lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE); 3482 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE); 3483 3484 newargc=0; 3485 for (i = 1; i < argc; i++) 3486 { 3487 if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0) 3488 { 3489 if (argv[i][env_set_opt_len] == '=') 3490 { 3491 const char *p = argv[i] + env_set_opt_len + 1; 3492 lt_opt_process_env_set (p); 3493 } 3494 else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc) 3495 { 3496 lt_opt_process_env_set (argv[++i]); /* don't copy */ 3497 } 3498 else 3499 lt_fatal ("%s missing required argument", env_set_opt); 3500 continue; 3501 } 3502 if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0) 3503 { 3504 if (argv[i][env_prepend_opt_len] == '=') 3505 { 3506 const char *p = argv[i] + env_prepend_opt_len + 1; 3507 lt_opt_process_env_prepend (p); 3508 } 3509 else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc) 3510 { 3511 lt_opt_process_env_prepend (argv[++i]); /* don't copy */ 3512 } 3513 else 3514 lt_fatal ("%s missing required argument", env_prepend_opt); 3515 continue; 3516 } 3517 if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0) 3518 { 3519 if (argv[i][env_append_opt_len] == '=') 3520 { 3521 const char *p = argv[i] + env_append_opt_len + 1; 3522 lt_opt_process_env_append (p); 3523 } 3524 else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc) 3525 { 3526 lt_opt_process_env_append (argv[++i]); /* don't copy */ 3527 } 3528 else 3529 lt_fatal ("%s missing required argument", env_append_opt); 3530 continue; 3531 } 3532 if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0) 3533 { 3534 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX 3535 namespace, but it is not one of the ones we know about and 3536 have already dealt with, above (inluding dump-script), then 3537 report an error. Otherwise, targets might begin to believe 3538 they are allowed to use options in the LTWRAPPER_OPTION_PREFIX 3539 namespace. The first time any user complains about this, we'll 3540 need to make LTWRAPPER_OPTION_PREFIX a configure-time option 3541 or a configure.ac-settable value. 3542 */ 3543 lt_fatal ("Unrecognized option in %s namespace: '%s'", 3544 ltwrapper_option_prefix, argv[i]); 3545 } 3546 /* otherwise ... */ 3547 newargz[++newargc] = xstrdup (argv[i]); 3548 } 3549 newargz[++newargc] = NULL; 3550 3551 LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>"))); 4505 4506 lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n", 4507 nonnull (lt_argv_zero)); 3552 4508 for (i = 0; i < newargc; i++) 3553 4509 { 3554 LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>"))); 4510 lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n", 4511 i, nonnull (newargz[i])); 3555 4512 } 3556 4513 … … 3561 4518 cat <<"EOF" 3562 4519 /* execv doesn't actually work on mingw as expected on unix */ 4520 newargz = prepare_spawn (newargz); 3563 4521 rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz); 3564 4522 if (rval == -1) 3565 4523 { 3566 4524 /* failed to start process */ 3567 LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno)); 4525 lt_debugprintf (__FILE__, __LINE__, 4526 "(main) failed to launch target \"%s\": %s\n", 4527 lt_argv_zero, nonnull (strerror (errno))); 3568 4528 return 127; 3569 4529 } … … 3587 4547 void *p = (void *) malloc (num); 3588 4548 if (!p) 3589 lt_fatal ( "Memory exhausted");4549 lt_fatal (__FILE__, __LINE__, "memory exhausted"); 3590 4550 3591 4551 return p; … … 3621 4581 struct stat st; 3622 4582 3623 LTWRAPPER_DEBUGPRINTF (("(check_executable): %s\n",3624 path ? (*path ? path : "EMPTY!") : "NULL!"));4583 lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n", 4584 nonempty (path)); 3625 4585 if ((!path) || (!*path)) 3626 4586 return 0; … … 3639 4599 struct stat st; 3640 4600 3641 LTWRAPPER_DEBUGPRINTF (("(make_executable): %s\n",3642 path ? (*path ? path : "EMPTY!") : "NULL!"));4601 lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", 4602 nonempty (path)); 3643 4603 if ((!path) || (!*path)) 3644 4604 return 0; … … 3666 4626 char *concat_name; 3667 4627 3668 LTWRAPPER_DEBUGPRINTF (("(find_executable): %s\n",3669 wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));4628 lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", 4629 nonempty (wrapper)); 3670 4630 3671 4631 if ((wrapper == NULL) || (*wrapper == '\0')) … … 3720 4680 /* empty path: current directory */ 3721 4681 if (getcwd (tmp, LT_PATHMAX) == NULL) 3722 lt_fatal ("getcwd failed"); 4682 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", 4683 nonnull (strerror (errno))); 3723 4684 tmp_len = strlen (tmp); 3724 4685 concat_name = … … 3745 4706 /* Relative path | not found in path: prepend cwd */ 3746 4707 if (getcwd (tmp, LT_PATHMAX) == NULL) 3747 lt_fatal ("getcwd failed"); 4708 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", 4709 nonnull (strerror (errno))); 3748 4710 tmp_len = strlen (tmp); 3749 4711 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); … … 3771 4733 while (strlen (tmp_pathspec) && !has_symlinks) 3772 4734 { 3773 LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n", 3774 tmp_pathspec)); 4735 lt_debugprintf (__FILE__, __LINE__, 4736 "checking path component for symlinks: %s\n", 4737 tmp_pathspec); 3775 4738 if (lstat (tmp_pathspec, &s) == 0) 3776 4739 { … … 3794 4757 else 3795 4758 { 3796 char *errstr = strerror (errno); 3797 lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr); 4759 lt_fatal (__FILE__, __LINE__, 4760 "error accessing file \"%s\": %s", 4761 tmp_pathspec, nonnull (strerror (errno))); 3798 4762 } 3799 4763 } … … 3808 4772 if (tmp_pathspec == 0) 3809 4773 { 3810 lt_fatal ("Could not follow symlinks for %s", pathspec); 4774 lt_fatal (__FILE__, __LINE__, 4775 "could not follow symlinks for %s", pathspec); 3811 4776 } 3812 4777 return xstrdup (tmp_pathspec); … … 3834 4799 } 3835 4800 4801 void 4802 lt_debugprintf (const char *file, int line, const char *fmt, ...) 4803 { 4804 va_list args; 4805 if (lt_debug) 4806 { 4807 (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); 4808 va_start (args, fmt); 4809 (void) vfprintf (stderr, fmt, args); 4810 va_end (args); 4811 } 4812 } 4813 3836 4814 static void 3837 lt_error_core (int exit_status, const char *mode, 4815 lt_error_core (int exit_status, const char *file, 4816 int line, const char *mode, 3838 4817 const char *message, va_list ap) 3839 4818 { 3840 fprintf (stderr, "%s: %s: ", program_name, mode);4819 fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); 3841 4820 vfprintf (stderr, message, ap); 3842 4821 fprintf (stderr, ".\n"); … … 3847 4826 3848 4827 void 3849 lt_fatal (const char * message, ...)4828 lt_fatal (const char *file, int line, const char *message, ...) 3850 4829 { 3851 4830 va_list ap; 3852 4831 va_start (ap, message); 3853 lt_error_core (EXIT_FAILURE, "FATAL", message, ap);4832 lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); 3854 4833 va_end (ap); 4834 } 4835 4836 static const char * 4837 nonnull (const char *s) 4838 { 4839 return s ? s : "(null)"; 4840 } 4841 4842 static const char * 4843 nonempty (const char *s) 4844 { 4845 return (s && !*s) ? "(empty)" : nonnull (s); 3855 4846 } 3856 4847 … … 3858 4849 lt_setenv (const char *name, const char *value) 3859 4850 { 3860 LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",3861 (name ? name : "<NULL>"),3862 (value ? value : "<NULL>")));4851 lt_debugprintf (__FILE__, __LINE__, 4852 "(lt_setenv) setting '%s' to '%s'\n", 4853 nonnull (name), nonnull (value)); 3863 4854 { 3864 4855 #ifdef HAVE_SETENV … … 3905 4896 } 3906 4897 3907 int3908 lt_split_name_value (const char *arg, char** name, char** value)3909 {3910 const char *p;3911 int len;3912 if (!arg || !*arg)3913 return 1;3914 3915 p = strchr (arg, (int)'=');3916 3917 if (!p)3918 return 1;3919 3920 *value = xstrdup (++p);3921 3922 len = strlen (arg) - strlen (*value);3923 *name = XMALLOC (char, len);3924 strncpy (*name, arg, len-1);3925 (*name)[len - 1] = '\0';3926 3927 return 0;3928 }3929 3930 void3931 lt_opt_process_env_set (const char *arg)3932 {3933 char *name = NULL;3934 char *value = NULL;3935 3936 if (lt_split_name_value (arg, &name, &value) != 0)3937 {3938 XFREE (name);3939 XFREE (value);3940 lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);3941 }3942 3943 lt_setenv (name, value);3944 XFREE (name);3945 XFREE (value);3946 }3947 3948 void3949 lt_opt_process_env_prepend (const char *arg)3950 {3951 char *name = NULL;3952 char *value = NULL;3953 char *new_value = NULL;3954 3955 if (lt_split_name_value (arg, &name, &value) != 0)3956 {3957 XFREE (name);3958 XFREE (value);3959 lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);3960 }3961 3962 new_value = lt_extend_str (getenv (name), value, 0);3963 lt_setenv (name, new_value);3964 XFREE (new_value);3965 XFREE (name);3966 XFREE (value);3967 }3968 3969 void3970 lt_opt_process_env_append (const char *arg)3971 {3972 char *name = NULL;3973 char *value = NULL;3974 char *new_value = NULL;3975 3976 if (lt_split_name_value (arg, &name, &value) != 0)3977 {3978 XFREE (name);3979 XFREE (value);3980 lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);3981 }3982 3983 new_value = lt_extend_str (getenv (name), value, 1);3984 lt_setenv (name, new_value);3985 XFREE (new_value);3986 XFREE (name);3987 XFREE (value);3988 }3989 3990 4898 void 3991 4899 lt_update_exe_path (const char *name, const char *value) 3992 4900 { 3993 LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",3994 (name ? name : "<NULL>"),3995 (value ? value : "<NULL>")));4901 lt_debugprintf (__FILE__, __LINE__, 4902 "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", 4903 nonnull (name), nonnull (value)); 3996 4904 3997 4905 if (name && *name && value && *value) … … 4012 4920 lt_update_lib_path (const char *name, const char *value) 4013 4921 { 4014 LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",4015 (name ? name : "<NULL>"),4016 (value ? value : "<NULL>")));4922 lt_debugprintf (__FILE__, __LINE__, 4923 "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", 4924 nonnull (name), nonnull (value)); 4017 4925 4018 4926 if (name && *name && value && *value) … … 4024 4932 } 4025 4933 4026 4027 4934 EOF 4935 case $host_os in 4936 mingw*) 4937 cat <<"EOF" 4938 4939 /* Prepares an argument vector before calling spawn(). 4940 Note that spawn() does not by itself call the command interpreter 4941 (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : 4942 ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); 4943 GetVersionEx(&v); 4944 v.dwPlatformId == VER_PLATFORM_WIN32_NT; 4945 }) ? "cmd.exe" : "command.com"). 4946 Instead it simply concatenates the arguments, separated by ' ', and calls 4947 CreateProcess(). We must quote the arguments since Win32 CreateProcess() 4948 interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a 4949 special way: 4950 - Space and tab are interpreted as delimiters. They are not treated as 4951 delimiters if they are surrounded by double quotes: "...". 4952 - Unescaped double quotes are removed from the input. Their only effect is 4953 that within double quotes, space and tab are treated like normal 4954 characters. 4955 - Backslashes not followed by double quotes are not special. 4956 - But 2*n+1 backslashes followed by a double quote become 4957 n backslashes followed by a double quote (n >= 0): 4958 \" -> " 4959 \\\" -> \" 4960 \\\\\" -> \\" 4961 */ 4962 #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" 4963 #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" 4964 char ** 4965 prepare_spawn (char **argv) 4966 { 4967 size_t argc; 4968 char **new_argv; 4969 size_t i; 4970 4971 /* Count number of arguments. */ 4972 for (argc = 0; argv[argc] != NULL; argc++) 4973 ; 4974 4975 /* Allocate new argument vector. */ 4976 new_argv = XMALLOC (char *, argc + 1); 4977 4978 /* Put quoted arguments into the new argument vector. */ 4979 for (i = 0; i < argc; i++) 4980 { 4981 const char *string = argv[i]; 4982 4983 if (string[0] == '\0') 4984 new_argv[i] = xstrdup ("\"\""); 4985 else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) 4986 { 4987 int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); 4988 size_t length; 4989 unsigned int backslashes; 4990 const char *s; 4991 char *quoted_string; 4992 char *p; 4993 4994 length = 0; 4995 backslashes = 0; 4996 if (quote_around) 4997 length++; 4998 for (s = string; *s != '\0'; s++) 4999 { 5000 char c = *s; 5001 if (c == '"') 5002 length += backslashes + 1; 5003 length++; 5004 if (c == '\\') 5005 backslashes++; 5006 else 5007 backslashes = 0; 5008 } 5009 if (quote_around) 5010 length += backslashes + 1; 5011 5012 quoted_string = XMALLOC (char, length + 1); 5013 5014 p = quoted_string; 5015 backslashes = 0; 5016 if (quote_around) 5017 *p++ = '"'; 5018 for (s = string; *s != '\0'; s++) 5019 { 5020 char c = *s; 5021 if (c == '"') 5022 { 5023 unsigned int j; 5024 for (j = backslashes + 1; j > 0; j--) 5025 *p++ = '\\'; 5026 } 5027 *p++ = c; 5028 if (c == '\\') 5029 backslashes++; 5030 else 5031 backslashes = 0; 5032 } 5033 if (quote_around) 5034 { 5035 unsigned int j; 5036 for (j = backslashes; j > 0; j--) 5037 *p++ = '\\'; 5038 *p++ = '"'; 5039 } 5040 *p = '\0'; 5041 5042 new_argv[i] = quoted_string; 5043 } 5044 else 5045 new_argv[i] = (char *) string; 5046 } 5047 new_argv[argc] = NULL; 5048 5049 return new_argv; 5050 } 5051 EOF 5052 ;; 5053 esac 5054 5055 cat <<"EOF" 5056 void lt_dump_script (FILE* f) 5057 { 5058 EOF 5059 func_emit_wrapper yes | 5060 $SED -e 's/\([\\"]\)/\\\1/g' \ 5061 -e 's/^/ fputs ("/' -e 's/$/\\n", f);/' 5062 5063 cat <<"EOF" 5064 } 5065 EOF 4028 5066 } 4029 5067 # end: func_emit_cwrapperexe_src 5068 5069 # func_win32_import_lib_p ARG 5070 # True if ARG is an import lib, as indicated by $file_magic_cmd 5071 func_win32_import_lib_p () 5072 { 5073 $opt_debug 5074 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in 5075 *import*) : ;; 5076 *) false ;; 5077 esac 5078 } 4030 5079 4031 5080 # func_mode_link arg... … … 4073 5122 4074 5123 avoid_version=no 5124 bindir= 4075 5125 dlfiles= 4076 5126 dlprefiles= … … 4165 5215 4166 5216 case $prev in 5217 bindir) 5218 bindir="$arg" 5219 prev= 5220 continue 5221 ;; 4167 5222 dlfiles|dlprefiles) 4168 5223 if test "$preload" = no; then … … 4196 5251 *) 4197 5252 if test "$prev" = dlfiles; then 4198 dlfiles="$dlfiles$arg"5253 func_append dlfiles " $arg" 4199 5254 else 4200 dlprefiles="$dlprefiles$arg"5255 func_append dlprefiles " $arg" 4201 5256 fi 4202 5257 prev= … … 4222 5277 case "$deplibs " in 4223 5278 *" $qarg.ltframework "*) ;; 4224 *) deplibs="$deplibs$qarg.ltframework" # this is fixed later5279 *) func_append deplibs " $qarg.ltframework" # this is fixed later 4225 5280 ;; 4226 5281 esac … … 4241 5296 for fil in `cat "$save_arg"` 4242 5297 do 4243 # moreargs="$moreargs$fil"5298 # func_append moreargs " $fil" 4244 5299 arg=$fil 4245 5300 # A libtool-controlled object. … … 4270 5325 if test "$prev" = dlfiles; then 4271 5326 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then 4272 dlfiles="$dlfiles$pic_object"5327 func_append dlfiles " $pic_object" 4273 5328 prev= 4274 5329 continue … … 4282 5337 if test "$prev" = dlprefiles; then 4283 5338 # Preload the old-style object. 4284 dlprefiles="$dlprefiles$pic_object"5339 func_append dlprefiles " $pic_object" 4285 5340 prev= 4286 5341 fi … … 4352 5407 case "$rpath " in 4353 5408 *" $arg "*) ;; 4354 *) rpath="$rpath$arg" ;;5409 *) func_append rpath " $arg" ;; 4355 5410 esac 4356 5411 else 4357 5412 case "$xrpath " in 4358 5413 *" $arg "*) ;; 4359 *) xrpath="$xrpath$arg" ;;5414 *) func_append xrpath " $arg" ;; 4360 5415 esac 4361 5416 fi … … 4369 5424 ;; 4370 5425 weak) 4371 weak_libs="$weak_libs$arg"5426 func_append weak_libs " $arg" 4372 5427 prev= 4373 5428 continue 4374 5429 ;; 4375 5430 xcclinker) 4376 linker_flags="$linker_flags$qarg"4377 compiler_flags="$compiler_flags$qarg"5431 func_append linker_flags " $qarg" 5432 func_append compiler_flags " $qarg" 4378 5433 prev= 4379 5434 func_append compile_command " $qarg" … … 4382 5437 ;; 4383 5438 xcompiler) 4384 compiler_flags="$compiler_flags$qarg"5439 func_append compiler_flags " $qarg" 4385 5440 prev= 4386 5441 func_append compile_command " $qarg" … … 4389 5444 ;; 4390 5445 xlinker) 4391 linker_flags="$linker_flags$qarg"4392 compiler_flags="$compiler_flags$wl$qarg"5446 func_append linker_flags " $qarg" 5447 func_append compiler_flags " $wl$qarg" 4393 5448 prev= 4394 5449 func_append compile_command " $wl$qarg" … … 4426 5481 ;; 4427 5482 5483 -bindir) 5484 prev=bindir 5485 continue 5486 ;; 5487 4428 5488 -dlopen) 4429 5489 prev=dlfiles … … 4476 5536 4477 5537 -L*) 4478 func_stripname '-L' '' "$arg" 4479 dir=$func_stripname_result 4480 if test -z "$dir"; then 5538 func_stripname "-L" '' "$arg" 5539 if test -z "$func_stripname_result"; then 4481 5540 if test "$#" -gt 0; then 4482 5541 func_fatal_error "require no space between \`-L' and \`$1'" … … 4485 5544 fi 4486 5545 fi 5546 func_resolve_sysroot "$func_stripname_result" 5547 dir=$func_resolve_sysroot_result 4487 5548 # We need an absolute path. 4488 5549 case $dir in … … 4496 5557 esac 4497 5558 case "$deplibs " in 4498 *" -L$dir "*) ;; 5559 *" -L$dir "* | *" $arg "*) 5560 # Will only happen for absolute or sysroot arguments 5561 ;; 4499 5562 *) 4500 deplibs="$deplibs -L$dir" 4501 lib_search_path="$lib_search_path $dir" 5563 # Preserve sysroot, but never include relative directories 5564 case $dir in 5565 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; 5566 *) func_append deplibs " -L$dir" ;; 5567 esac 5568 func_append lib_search_path " $dir" 4502 5569 ;; 4503 5570 esac 4504 5571 case $host in 4505 5572 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) 4506 testbindir=`$ECHO " X$dir" | $Xsed -e's*/lib$*/bin*'`5573 testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` 4507 5574 case :$dllsearchpath: in 4508 5575 *":$dir:"*) ;; 4509 5576 ::) dllsearchpath=$dir;; 4510 *) dllsearchpath="$dllsearchpath:$dir";;5577 *) func_append dllsearchpath ":$dir";; 4511 5578 esac 4512 5579 case :$dllsearchpath: in 4513 5580 *":$testbindir:"*) ;; 4514 5581 ::) dllsearchpath=$testbindir;; 4515 *) dllsearchpath="$dllsearchpath:$testbindir";;5582 *) func_append dllsearchpath ":$testbindir";; 4516 5583 esac 4517 5584 ;; … … 4523 5590 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then 4524 5591 case $host in 4525 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* )5592 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) 4526 5593 # These systems don't actually have a C or math library (as such) 4527 5594 continue … … 4537 5604 *-*-rhapsody* | *-*-darwin1.[012]) 4538 5605 # Rhapsody C and math libraries are in the System framework 4539 deplibs="$deplibsSystem.ltframework"5606 func_append deplibs " System.ltframework" 4540 5607 continue 4541 5608 ;; … … 4557 5624 esac 4558 5625 fi 4559 deplibs="$deplibs$arg"5626 func_append deplibs " $arg" 4560 5627 continue 4561 5628 ;; … … 4569 5636 # classes, name mangling, and exception handling. 4570 5637 # Darwin uses the -arch flag to determine output architecture. 4571 -model|-arch|-isysroot )4572 compiler_flags="$compiler_flags$arg"5638 -model|-arch|-isysroot|--sysroot) 5639 func_append compiler_flags " $arg" 4573 5640 func_append compile_command " $arg" 4574 5641 func_append finalize_command " $arg" … … 4578 5645 4579 5646 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) 4580 compiler_flags="$compiler_flags$arg"5647 func_append compiler_flags " $arg" 4581 5648 func_append compile_command " $arg" 4582 5649 func_append finalize_command " $arg" 4583 5650 case "$new_inherited_linker_flags " in 4584 5651 *" $arg "*) ;; 4585 * ) new_inherited_linker_flags="$new_inherited_linker_flags$arg" ;;5652 * ) func_append new_inherited_linker_flags " $arg" ;; 4586 5653 esac 4587 5654 continue … … 4650 5717 case $dir in 4651 5718 [\\/]* | [A-Za-z]:[\\/]*) ;; 5719 =*) 5720 func_stripname '=' '' "$dir" 5721 dir=$lt_sysroot$func_stripname_result 5722 ;; 4652 5723 *) 4653 5724 func_fatal_error "only absolute run-paths are allowed" … … 4656 5727 case "$xrpath " in 4657 5728 *" $dir "*) ;; 4658 *) xrpath="$xrpath$dir" ;;5729 *) func_append xrpath " $dir" ;; 4659 5730 esac 4660 5731 continue … … 4709 5780 IFS="$save_ifs" 4710 5781 func_quote_for_eval "$flag" 4711 arg="$arg $wl$func_quote_for_eval_result"4712 compiler_flags="$compiler_flags$func_quote_for_eval_result"5782 func_append arg " $func_quote_for_eval_result" 5783 func_append compiler_flags " $func_quote_for_eval_result" 4713 5784 done 4714 5785 IFS="$save_ifs" … … 4725 5796 IFS="$save_ifs" 4726 5797 func_quote_for_eval "$flag" 4727 arg="$arg$wl$func_quote_for_eval_result"4728 compiler_flags="$compiler_flags$wl$func_quote_for_eval_result"4729 linker_flags="$linker_flags$func_quote_for_eval_result"5798 func_append arg " $wl$func_quote_for_eval_result" 5799 func_append compiler_flags " $wl$func_quote_for_eval_result" 5800 func_append linker_flags " $func_quote_for_eval_result" 4730 5801 done 4731 5802 IFS="$save_ifs" … … 4755 5826 ;; 4756 5827 4757 # -64, -mips[0-9] enable 64-bit mode on the SGI compiler 4758 # -r[0-9][0-9]* specifies the processor on the SGI compiler 4759 # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler 4760 # +DA*, +DD* enable 64-bit mode on the HP compiler 4761 # -q* pass through compiler args for the IBM compiler 4762 # -m*, -t[45]*, -txscale* pass through architecture-specific 4763 # compiler args for GCC 4764 # -F/path gives path to uninstalled frameworks, gcc on darwin 4765 # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC 4766 # @file GCC response files 5828 # Flags to be passed through unchanged, with rationale: 5829 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler 5830 # -r[0-9][0-9]* specify processor for the SGI compiler 5831 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler 5832 # +DA*, +DD* enable 64-bit mode for the HP compiler 5833 # -q* compiler args for the IBM compiler 5834 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC 5835 # -F/path path to uninstalled frameworks, gcc on darwin 5836 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC 5837 # @file GCC response files 5838 # -tp=* Portland pgcc target processor selection 5839 # --sysroot=* for sysroot support 5840 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization 4767 5841 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ 4768 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) 5842 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ 5843 -O*|-flto*|-fwhopr*|-fuse-linker-plugin) 4769 5844 func_quote_for_eval "$arg" 4770 5845 arg="$func_quote_for_eval_result" 4771 5846 func_append compile_command " $arg" 4772 5847 func_append finalize_command " $arg" 4773 compiler_flags="$compiler_flags$arg"5848 func_append compiler_flags " $arg" 4774 5849 continue 4775 5850 ;; … … 4783 5858 *.$objext) 4784 5859 # A standard object. 4785 objs="$objs$arg"5860 func_append objs " $arg" 4786 5861 ;; 4787 5862 … … 4814 5889 if test "$prev" = dlfiles; then 4815 5890 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then 4816 dlfiles="$dlfiles$pic_object"5891 func_append dlfiles " $pic_object" 4817 5892 prev= 4818 5893 continue … … 4826 5901 if test "$prev" = dlprefiles; then 4827 5902 # Preload the old-style object. 4828 dlprefiles="$dlprefiles$pic_object"5903 func_append dlprefiles " $pic_object" 4829 5904 prev= 4830 5905 fi … … 4871 5946 *.$libext) 4872 5947 # An archive. 4873 deplibs="$deplibs$arg"4874 old_deplibs="$old_deplibs$arg"5948 func_append deplibs " $arg" 5949 func_append old_deplibs " $arg" 4875 5950 continue 4876 5951 ;; … … 4879 5954 # A libtool-controlled library. 4880 5955 5956 func_resolve_sysroot "$arg" 4881 5957 if test "$prev" = dlfiles; then 4882 5958 # This library was specified with -dlopen. 4883 dlfiles="$dlfiles $arg"5959 func_append dlfiles " $func_resolve_sysroot_result" 4884 5960 prev= 4885 5961 elif test "$prev" = dlprefiles; then 4886 5962 # The library was specified with -dlpreopen. 4887 dlprefiles="$dlprefiles $arg"5963 func_append dlprefiles " $func_resolve_sysroot_result" 4888 5964 prev= 4889 5965 else 4890 deplibs="$deplibs $arg"5966 func_append deplibs " $func_resolve_sysroot_result" 4891 5967 fi 4892 5968 continue … … 4926 6002 if test -n "$shlibpath_var"; then 4927 6003 # get the directories listed in $shlibpath_var 4928 eval shlib_search_path=\`\$ECHO \" X\${$shlibpath_var}\" \| \$Xsed -e\'s/:/ /g\'\`6004 eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\` 4929 6005 else 4930 6006 shlib_search_path= … … 4935 6011 func_dirname "$output" "/" "" 4936 6012 output_objdir="$func_dirname_result$objdir" 6013 func_to_tool_file "$output_objdir/" 6014 tool_output_objdir=$func_to_tool_file_result 4937 6015 # Create the object directory. 4938 6016 func_mkdir_p "$output_objdir" … … 4955 6033 # that are linked more than once (e.g. -la -lb -la) 4956 6034 for deplib in $deplibs; do 4957 if $opt_ duplicate_deps ; then6035 if $opt_preserve_dup_deps ; then 4958 6036 case "$libs " in 4959 *" $deplib "*) specialdeplibs="$specialdeplibs$deplib" ;;6037 *" $deplib "*) func_append specialdeplibs " $deplib" ;; 4960 6038 esac 4961 6039 fi 4962 libs="$libs$deplib"6040 func_append libs " $deplib" 4963 6041 done 4964 6042 … … 4973 6051 for pre_post_dep in $predeps $postdeps; do 4974 6052 case "$pre_post_deps " in 4975 *" $pre_post_dep "*) specialdeplibs="$specialdeplibs$pre_post_deps" ;;6053 *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; 4976 6054 esac 4977 pre_post_deps="$pre_post_deps$pre_post_dep"6055 func_append pre_post_deps " $pre_post_dep" 4978 6056 done 4979 6057 fi … … 5045 6123 # Ignore non-libtool-libs 5046 6124 dependency_libs= 6125 func_resolve_sysroot "$lib" 5047 6126 case $lib in 5048 *.la) func_source "$ lib" ;;6127 *.la) func_source "$func_resolve_sysroot_result" ;; 5049 6128 esac 5050 6129 … … 5052 6131 # has declared as weak libs 5053 6132 for deplib in $dependency_libs; do 5054 deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"` 6133 func_basename "$deplib" 6134 deplib_base=$func_basename_result 5055 6135 case " $weak_libs " in 5056 6136 *" $deplib_base "*) ;; 5057 *) deplibs="$deplibs$deplib" ;;6137 *) func_append deplibs " $deplib" ;; 5058 6138 esac 5059 6139 done … … 5076 6156 finalize_deplibs="$deplib $finalize_deplibs" 5077 6157 else 5078 compiler_flags="$compiler_flags$deplib"6158 func_append compiler_flags " $deplib" 5079 6159 if test "$linkmode" = lib ; then 5080 6160 case "$new_inherited_linker_flags " in 5081 6161 *" $deplib "*) ;; 5082 * ) new_inherited_linker_flags="$new_inherited_linker_flags$deplib" ;;6162 * ) func_append new_inherited_linker_flags " $deplib" ;; 5083 6163 esac 5084 6164 fi … … 5165 6245 case "$new_inherited_linker_flags " in 5166 6246 *" $deplib "*) ;; 5167 * ) new_inherited_linker_flags="$new_inherited_linker_flags$deplib" ;;6247 * ) func_append new_inherited_linker_flags " $deplib" ;; 5168 6248 esac 5169 6249 fi … … 5178 6258 newdependency_libs="$deplib $newdependency_libs" 5179 6259 func_stripname '-L' '' "$deplib" 5180 newlib_search_path="$newlib_search_path $func_stripname_result" 6260 func_resolve_sysroot "$func_stripname_result" 6261 func_append newlib_search_path " $func_resolve_sysroot_result" 5181 6262 ;; 5182 6263 prog) … … 5192 6273 fi 5193 6274 func_stripname '-L' '' "$deplib" 5194 newlib_search_path="$newlib_search_path $func_stripname_result" 6275 func_resolve_sysroot "$func_stripname_result" 6276 func_append newlib_search_path " $func_resolve_sysroot_result" 5195 6277 ;; 5196 6278 *) … … 5203 6285 if test "$pass" = link; then 5204 6286 func_stripname '-R' '' "$deplib" 5205 dir=$func_stripname_result 6287 func_resolve_sysroot "$func_stripname_result" 6288 dir=$func_resolve_sysroot_result 5206 6289 # Make sure the xrpath contains only unique directories. 5207 6290 case "$xrpath " in 5208 6291 *" $dir "*) ;; 5209 *) xrpath="$xrpath$dir" ;;6292 *) func_append xrpath " $dir" ;; 5210 6293 esac 5211 6294 fi … … 5213 6296 continue 5214 6297 ;; 5215 *.la) lib="$deplib" ;; 6298 *.la) 6299 func_resolve_sysroot "$deplib" 6300 lib=$func_resolve_sysroot_result 6301 ;; 5216 6302 *.$libext) 5217 6303 if test "$pass" = conv; then … … 5231 6317 set dummy $deplibs_check_method; shift 5232 6318 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` 5233 if eval "\$ECHO \" X$deplib\"" 2>/dev/null | $Xsed -e10q \6319 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ 5234 6320 | $EGREP "$match_pattern_regex" > /dev/null; then 5235 6321 valid_a_lib=yes … … 5241 6327 esac 5242 6328 if test "$valid_a_lib" != yes; then 5243 $ECHO6329 echo 5244 6330 $ECHO "*** Warning: Trying to link with static lib archive $deplib." 5245 $ECHO"*** I have the capability to make that library automatically link in when"5246 $ECHO"*** you link to this library. But I can only do this if you have a"5247 $ECHO"*** shared version of the library, which you do not appear to have"5248 $ECHO"*** because the file extensions .$libext of this argument makes me believe"5249 $ECHO"*** that it is just a static archive that I should not use here."6331 echo "*** I have the capability to make that library automatically link in when" 6332 echo "*** you link to this library. But I can only do this if you have a" 6333 echo "*** shared version of the library, which you do not appear to have" 6334 echo "*** because the file extensions .$libext of this argument makes me believe" 6335 echo "*** that it is just a static archive that I should not use here." 5250 6336 else 5251 $ECHO6337 echo 5252 6338 $ECHO "*** Warning: Linking the shared library $output against the" 5253 6339 $ECHO "*** static library $deplib is not portable!" … … 5276 6362 # If there is no dlopen support or we're linking statically, 5277 6363 # we need to preload. 5278 newdlprefiles="$newdlprefiles$deplib"6364 func_append newdlprefiles " $deplib" 5279 6365 compile_deplibs="$deplib $compile_deplibs" 5280 6366 finalize_deplibs="$deplib $finalize_deplibs" 5281 6367 else 5282 newdlfiles="$newdlfiles$deplib"6368 func_append newdlfiles " $deplib" 5283 6369 fi 5284 6370 fi … … 5322 6408 # Convert "-framework foo" to "foo.ltframework" 5323 6409 if test -n "$inherited_linker_flags"; then 5324 tmp_inherited_linker_flags=`$ECHO " X$inherited_linker_flags" | $Xsed -e's/-framework \([^ $]*\)/\1.ltframework/g'`6410 tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` 5325 6411 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do 5326 6412 case " $new_inherited_linker_flags " in 5327 6413 *" $tmp_inherited_linker_flag "*) ;; 5328 *) new_inherited_linker_flags="$new_inherited_linker_flags$tmp_inherited_linker_flag";;6414 *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; 5329 6415 esac 5330 6416 done 5331 6417 fi 5332 dependency_libs=`$ECHO " X $dependency_libs" | $Xsed -e's% \([^ $]*\).ltframework% -framework \1%g'`6418 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` 5333 6419 if test "$linkmode,$pass" = "lib,link" || 5334 6420 test "$linkmode,$pass" = "prog,scan" || 5335 6421 { test "$linkmode" != prog && test "$linkmode" != lib; }; then 5336 test -n "$dlopen" && dlfiles="$dlfiles$dlopen"5337 test -n "$dlpreopen" && dlprefiles="$dlprefiles$dlpreopen"6422 test -n "$dlopen" && func_append dlfiles " $dlopen" 6423 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" 5338 6424 fi 5339 6425 … … 5346 6432 fi 5347 6433 # It is a libtool convenience library, so add in its objects. 5348 convenience="$convenience$ladir/$objdir/$old_library"5349 old_convenience="$old_convenience$ladir/$objdir/$old_library"6434 func_append convenience " $ladir/$objdir/$old_library" 6435 func_append old_convenience " $ladir/$objdir/$old_library" 5350 6436 tmp_libs= 5351 6437 for deplib in $dependency_libs; do 5352 6438 deplibs="$deplib $deplibs" 5353 if $opt_ duplicate_deps ; then6439 if $opt_preserve_dup_deps ; then 5354 6440 case "$tmp_libs " in 5355 *" $deplib "*) specialdeplibs="$specialdeplibs$deplib" ;;6441 *" $deplib "*) func_append specialdeplibs " $deplib" ;; 5356 6442 esac 5357 6443 fi 5358 tmp_libs="$tmp_libs$deplib"6444 func_append tmp_libs " $deplib" 5359 6445 done 5360 6446 elif test "$linkmode" != prog && test "$linkmode" != lib; then … … 5367 6453 # Get the name of the library we link against. 5368 6454 linklib= 5369 for l in $old_library $library_names; do 5370 linklib="$l" 5371 done 6455 if test -n "$old_library" && 6456 { test "$prefer_static_libs" = yes || 6457 test "$prefer_static_libs,$installed" = "built,no"; }; then 6458 linklib=$old_library 6459 else 6460 for l in $old_library $library_names; do 6461 linklib="$l" 6462 done 6463 fi 5372 6464 if test -z "$linklib"; then 5373 6465 func_fatal_error "cannot find name of link library for \`$lib'" … … 5386 6478 # dependent libraries so libltdl's deplib preloader doesn't 5387 6479 # bomb out in the load deplibs phase. 5388 dlprefiles="$dlprefiles$lib $dependency_libs"6480 func_append dlprefiles " $lib $dependency_libs" 5389 6481 else 5390 newdlfiles="$newdlfiles$lib"6482 func_append newdlfiles " $lib" 5391 6483 fi 5392 6484 continue … … 5410 6502 # Find the relevant object directory and library name. 5411 6503 if test "X$installed" = Xyes; then 5412 if test ! -f "$l ibdir/$linklib" && test -f "$abs_ladir/$linklib"; then6504 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then 5413 6505 func_warning "library \`$lib' was moved." 5414 6506 dir="$ladir" … … 5416 6508 libdir="$abs_ladir" 5417 6509 else 5418 dir="$l ibdir"5419 absdir="$l ibdir"6510 dir="$lt_sysroot$libdir" 6511 absdir="$lt_sysroot$libdir" 5420 6512 fi 5421 6513 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes … … 5425 6517 absdir="$abs_ladir" 5426 6518 # Remove this search path later 5427 notinst_path="$notinst_path$abs_ladir"6519 func_append notinst_path " $abs_ladir" 5428 6520 else 5429 6521 dir="$ladir/$objdir" 5430 6522 absdir="$abs_ladir/$objdir" 5431 6523 # Remove this search path later 5432 notinst_path="$notinst_path$abs_ladir"6524 func_append notinst_path " $abs_ladir" 5433 6525 fi 5434 6526 fi # $installed = yes … … 5441 6533 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" 5442 6534 fi 5443 # Prefer using a static library (so that no silly _DYNAMIC symbols 5444 # are required to link). 5445 if test -n "$old_library"; then 5446 newdlprefiles="$newdlprefiles $dir/$old_library" 5447 # Keep a list of preopened convenience libraries to check 5448 # that they are being used correctly in the link pass. 5449 test -z "$libdir" && \ 5450 dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library" 5451 # Otherwise, use the dlname, so that lt_dlopen finds it. 5452 elif test -n "$dlname"; then 5453 newdlprefiles="$newdlprefiles $dir/$dlname" 5454 else 5455 newdlprefiles="$newdlprefiles $dir/$linklib" 5456 fi 6535 case "$host" in 6536 # special handling for platforms with PE-DLLs. 6537 *cygwin* | *mingw* | *cegcc* ) 6538 # Linker will automatically link against shared library if both 6539 # static and shared are present. Therefore, ensure we extract 6540 # symbols from the import library if a shared library is present 6541 # (otherwise, the dlopen module name will be incorrect). We do 6542 # this by putting the import library name into $newdlprefiles. 6543 # We recover the dlopen module name by 'saving' the la file 6544 # name in a special purpose variable, and (later) extracting the 6545 # dlname from the la file. 6546 if test -n "$dlname"; then 6547 func_tr_sh "$dir/$linklib" 6548 eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" 6549 func_append newdlprefiles " $dir/$linklib" 6550 else 6551 func_append newdlprefiles " $dir/$old_library" 6552 # Keep a list of preopened convenience libraries to check 6553 # that they are being used correctly in the link pass. 6554 test -z "$libdir" && \ 6555 func_append dlpreconveniencelibs " $dir/$old_library" 6556 fi 6557 ;; 6558 * ) 6559 # Prefer using a static library (so that no silly _DYNAMIC symbols 6560 # are required to link). 6561 if test -n "$old_library"; then 6562 func_append newdlprefiles " $dir/$old_library" 6563 # Keep a list of preopened convenience libraries to check 6564 # that they are being used correctly in the link pass. 6565 test -z "$libdir" && \ 6566 func_append dlpreconveniencelibs " $dir/$old_library" 6567 # Otherwise, use the dlname, so that lt_dlopen finds it. 6568 elif test -n "$dlname"; then 6569 func_append newdlprefiles " $dir/$dlname" 6570 else 6571 func_append newdlprefiles " $dir/$linklib" 6572 fi 6573 ;; 6574 esac 5457 6575 fi # $pass = dlpreopen 5458 6576 … … 5472 6590 5473 6591 if test "$linkmode" = prog && test "$pass" != link; then 5474 newlib_search_path="$newlib_search_path$ladir"6592 func_append newlib_search_path " $ladir" 5475 6593 deplibs="$lib $deplibs" 5476 6594 … … 5485 6603 case $deplib in 5486 6604 -L*) func_stripname '-L' '' "$deplib" 5487 newlib_search_path="$newlib_search_path $func_stripname_result" 6605 func_resolve_sysroot "$func_stripname_result" 6606 func_append newlib_search_path " $func_resolve_sysroot_result" 5488 6607 ;; 5489 6608 esac … … 5496 6615 newdependency_libs="$deplib $newdependency_libs" 5497 6616 fi 5498 if $opt_ duplicate_deps ; then6617 if $opt_preserve_dup_deps ; then 5499 6618 case "$tmp_libs " in 5500 *" $deplib "*) specialdeplibs="$specialdeplibs$deplib" ;;6619 *" $deplib "*) func_append specialdeplibs " $deplib" ;; 5501 6620 esac 5502 6621 fi 5503 tmp_libs="$tmp_libs$deplib"6622 func_append tmp_libs " $deplib" 5504 6623 done # for deplib 5505 6624 continue … … 5516 6635 case "$temp_rpath:" in 5517 6636 *"$absdir:"*) ;; 5518 *) temp_rpath="$temp_rpath$absdir:" ;;6637 *) func_append temp_rpath "$absdir:" ;; 5519 6638 esac 5520 6639 fi … … 5528 6647 case "$compile_rpath " in 5529 6648 *" $absdir "*) ;; 5530 *) compile_rpath="$compile_rpath $absdir"6649 *) func_append compile_rpath " $absdir" ;; 5531 6650 esac 5532 6651 ;; … … 5537 6656 case "$finalize_rpath " in 5538 6657 *" $libdir "*) ;; 5539 *) f inalize_rpath="$finalize_rpath $libdir"6658 *) func_append finalize_rpath " $libdir" ;; 5540 6659 esac 5541 6660 ;; … … 5562 6681 *cygwin* | *mingw* | *cegcc*) 5563 6682 # No point in relinking DLLs because paths are not encoded 5564 notinst_deplibs="$notinst_deplibs$lib"6683 func_append notinst_deplibs " $lib" 5565 6684 need_relink=no 5566 6685 ;; 5567 6686 *) 5568 6687 if test "$installed" = no; then 5569 notinst_deplibs="$notinst_deplibs$lib"6688 func_append notinst_deplibs " $lib" 5570 6689 need_relink=yes 5571 6690 fi … … 5583 6702 fi 5584 6703 done 5585 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then5586 if test "$linkmode" != prog; then5587 $ECHO "*** Warning: Linking the shared library $output against the loadable module"5588 $ECHO "*** $linklib is not portable!"5589 fi5590 fi5591 6704 if test "$linkmode" = lib && 5592 6705 test "$hardcode_into_libs" = yes; then … … 5599 6712 case "$compile_rpath " in 5600 6713 *" $absdir "*) ;; 5601 *) compile_rpath="$compile_rpath $absdir"6714 *) func_append compile_rpath " $absdir" ;; 5602 6715 esac 5603 6716 ;; … … 5608 6721 case "$finalize_rpath " in 5609 6722 *" $libdir "*) ;; 5610 *) f inalize_rpath="$finalize_rpath $libdir"6723 *) func_append finalize_rpath " $libdir" ;; 5611 6724 esac 5612 6725 ;; … … 5662 6775 fi # test -n "$old_archive_from_expsyms_cmds" 5663 6776 5664 if test "$linkmode" = prog || test "$ mode" != relink; then6777 if test "$linkmode" = prog || test "$opt_mode" != relink; then 5665 6778 add_shlibpath= 5666 6779 add_dir= … … 5684 6797 $ECHO "*** Warning: lib $linklib is a module, not a shared library" 5685 6798 if test -z "$old_library" ; then 5686 $ECHO5687 $ECHO"*** And there doesn't seem to be a static archive available"5688 $ECHO"*** The link will probably fail, sorry"6799 echo 6800 echo "*** And there doesn't seem to be a static archive available" 6801 echo "*** The link will probably fail, sorry" 5689 6802 else 5690 6803 add="$dir/$old_library" … … 5718 6831 case $libdir in 5719 6832 [\\/]*) 5720 add_dir="$add_dir-L$inst_prefix_dir$libdir"6833 func_append add_dir " -L$inst_prefix_dir$libdir" 5721 6834 ;; 5722 6835 esac … … 5740 6853 case :$compile_shlibpath: in 5741 6854 *":$add_shlibpath:"*) ;; 5742 *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;6855 *) func_append compile_shlibpath "$add_shlibpath:" ;; 5743 6856 esac 5744 6857 fi … … 5754 6867 case :$finalize_shlibpath: in 5755 6868 *":$libdir:"*) ;; 5756 *) f inalize_shlibpath="$finalize_shlibpath$libdir:" ;;6869 *) func_append finalize_shlibpath "$libdir:" ;; 5757 6870 esac 5758 6871 fi … … 5760 6873 fi 5761 6874 5762 if test "$linkmode" = prog || test "$ mode" = relink; then6875 if test "$linkmode" = prog || test "$opt_mode" = relink; then 5763 6876 add_shlibpath= 5764 6877 add_dir= … … 5774 6887 case :$finalize_shlibpath: in 5775 6888 *":$libdir:"*) ;; 5776 *) f inalize_shlibpath="$finalize_shlibpath$libdir:" ;;6889 *) func_append finalize_shlibpath "$libdir:" ;; 5777 6890 esac 5778 6891 add="-l$name" … … 5791 6904 case $libdir in 5792 6905 [\\/]*) 5793 add_dir="$add_dir-L$inst_prefix_dir$libdir"6906 func_append add_dir " -L$inst_prefix_dir$libdir" 5794 6907 ;; 5795 6908 esac … … 5826 6939 # Just print a warning and add the library to dependency_libs so 5827 6940 # that the program can be linked against the static library. 5828 $ECHO6941 echo 5829 6942 $ECHO "*** Warning: This system can not link to static lib archive $lib." 5830 $ECHO"*** I have the capability to make that library automatically link in when"5831 $ECHO"*** you link to this library. But I can only do this if you have a"5832 $ECHO"*** shared version of the library, which you do not appear to have."6943 echo "*** I have the capability to make that library automatically link in when" 6944 echo "*** you link to this library. But I can only do this if you have a" 6945 echo "*** shared version of the library, which you do not appear to have." 5833 6946 if test "$module" = yes; then 5834 $ECHO"*** But as you try to build a module library, libtool will still create "5835 $ECHO"*** a static module, that should work as long as the dlopening application"5836 $ECHO"*** is linked with the -dlopen flag to resolve symbols at runtime."6947 echo "*** But as you try to build a module library, libtool will still create " 6948 echo "*** a static module, that should work as long as the dlopening application" 6949 echo "*** is linked with the -dlopen flag to resolve symbols at runtime." 5837 6950 if test -z "$global_symbol_pipe"; then 5838 $ECHO5839 $ECHO"*** However, this would only work if libtool was able to extract symbol"5840 $ECHO"*** lists from a program, using \`nm' or equivalent, but libtool could"5841 $ECHO"*** not find such a program. So, this module is probably useless."5842 $ECHO"*** \`nm' from GNU binutils and a full rebuild may help."6951 echo 6952 echo "*** However, this would only work if libtool was able to extract symbol" 6953 echo "*** lists from a program, using \`nm' or equivalent, but libtool could" 6954 echo "*** not find such a program. So, this module is probably useless." 6955 echo "*** \`nm' from GNU binutils and a full rebuild may help." 5843 6956 fi 5844 6957 if test "$build_old_libs" = no; then … … 5868 6981 case " $xrpath " in 5869 6982 *" $temp_xrpath "*) ;; 5870 *) xrpath="$xrpath$temp_xrpath";;6983 *) func_append xrpath " $temp_xrpath";; 5871 6984 esac;; 5872 *) temp_deplibs="$temp_deplibs$libdir";;6985 *) func_append temp_deplibs " $libdir";; 5873 6986 esac 5874 6987 done … … 5876 6989 fi 5877 6990 5878 newlib_search_path="$newlib_search_path$absdir"6991 func_append newlib_search_path " $absdir" 5879 6992 # Link against this library 5880 6993 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" … … 5883 6996 for deplib in $dependency_libs; do 5884 6997 newdependency_libs="$deplib $newdependency_libs" 5885 if $opt_duplicate_deps ; then 6998 case $deplib in 6999 -L*) func_stripname '-L' '' "$deplib" 7000 func_resolve_sysroot "$func_stripname_result";; 7001 *) func_resolve_sysroot "$deplib" ;; 7002 esac 7003 if $opt_preserve_dup_deps ; then 5886 7004 case "$tmp_libs " in 5887 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; 7005 *" $func_resolve_sysroot_result "*) 7006 func_append specialdeplibs " $func_resolve_sysroot_result" ;; 5888 7007 esac 5889 7008 fi 5890 tmp_libs="$tmp_libs $deplib"7009 func_append tmp_libs " $func_resolve_sysroot_result" 5891 7010 done 5892 7011 … … 5898 7017 -L*) path="$deplib" ;; 5899 7018 *.la) 7019 func_resolve_sysroot "$deplib" 7020 deplib=$func_resolve_sysroot_result 5900 7021 func_dirname "$deplib" "" "." 5901 dir= "$func_dirname_result"7022 dir=$func_dirname_result 5902 7023 # We need an absolute path. 5903 7024 case $dir in … … 5926 7047 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` 5927 7048 fi 5928 compiler_flags="$compiler_flags${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"5929 linker_flags="$linker_flags-dylib_file ${darwin_install_name}:${depdepl}"7049 func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" 7050 func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}" 5930 7051 path= 5931 7052 fi … … 5960 7081 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" 5961 7082 else 5962 compiler_flags="$compiler_flags "`$ECHO " X $new_inherited_linker_flags" | $Xsed -e's% \([^ $]*\).ltframework% -framework \1%g'`7083 compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` 5963 7084 fi 5964 7085 fi … … 5977 7098 case "$lib_search_path " in 5978 7099 *" $dir "*) ;; 5979 *) lib_search_path="$lib_search_path$dir" ;;7100 *) func_append lib_search_path " $dir" ;; 5980 7101 esac 5981 7102 done … … 6035 7156 case " $tmp_libs " in 6036 7157 *" $deplib "*) ;; 6037 *) tmp_libs="$tmp_libs$deplib" ;;7158 *) func_append tmp_libs " $deplib" ;; 6038 7159 esac 6039 7160 ;; 6040 *) tmp_libs="$tmp_libs$deplib" ;;7161 *) func_append tmp_libs " $deplib" ;; 6041 7162 esac 6042 7163 done … … 6054 7175 esac 6055 7176 if test -n "$i" ; then 6056 tmp_libs="$tmp_libs$i"7177 func_append tmp_libs " $i" 6057 7178 fi 6058 7179 done … … 6095 7216 build_libtool_libs=no 6096 7217 oldlibs="$output" 6097 objs="$objs$old_deplibs"7218 func_append objs "$old_deplibs" 6098 7219 ;; 6099 7220 … … 6128 7249 func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 6129 7250 else 6130 $ECHO7251 echo 6131 7252 $ECHO "*** Warning: Linking the shared library $output against the non-libtool" 6132 7253 $ECHO "*** objects $objs is not portable!" 6133 libobjs="$libobjs$objs"7254 func_append libobjs " $objs" 6134 7255 fi 6135 7256 fi … … 6196 7317 revision="$number_revision" 6197 7318 ;; 6198 freebsd-aout|freebsd-elf| sunos)7319 freebsd-aout|freebsd-elf|qnx|sunos) 6199 7320 current="$number_major" 6200 7321 revision="$number_minor" … … 6332 7453 6333 7454 # Make executables depend on our current version. 6334 verstring="$verstring:${current}.0"7455 func_append verstring ":${current}.0" 6335 7456 ;; 6336 7457 … … 6400 7521 6401 7522 func_generate_dlsyms "$libname" "$libname" "yes" 6402 libobjs="$libobjs$symfileobj"7523 func_append libobjs " $symfileobj" 6403 7524 test "X$libobjs" = "X " && libobjs= 6404 7525 6405 if test "$ mode" != relink; then7526 if test "$opt_mode" != relink; then 6406 7527 # Remove our outputs, but don't remove object files since they 6407 7528 # may have been created when compiling PIC objects. … … 6419 7540 fi 6420 7541 fi 6421 removelist="$removelist$p"7542 func_append removelist " $p" 6422 7543 ;; 6423 7544 *) ;; … … 6430 7551 # Now set the variables for building old libraries. 6431 7552 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then 6432 oldlibs="$oldlibs$output_objdir/$libname.$libext"7553 func_append oldlibs " $output_objdir/$libname.$libext" 6433 7554 6434 7555 # Transform .lo files to .o files. 6435 oldobjs="$objs "`$ECHO " X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`7556 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP` 6436 7557 fi 6437 7558 6438 7559 # Eliminate all temporary directories. 6439 7560 #for path in $notinst_path; do 6440 # lib_search_path=`$ECHO " X$lib_search_path " | $Xsed -e"s% $path % %g"`6441 # deplibs=`$ECHO " X$deplibs " | $Xsed -e"s% -L$path % %g"`6442 # dependency_libs=`$ECHO " X$dependency_libs " | $Xsed -e"s% -L$path % %g"`7561 # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` 7562 # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` 7563 # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"` 6443 7564 #done 6444 7565 … … 6447 7568 temp_xrpath= 6448 7569 for libdir in $xrpath; do 6449 temp_xrpath="$temp_xrpath -R$libdir" 7570 func_replace_sysroot "$libdir" 7571 func_append temp_xrpath " -R$func_replace_sysroot_result" 6450 7572 case "$finalize_rpath " in 6451 7573 *" $libdir "*) ;; 6452 *) f inalize_rpath="$finalize_rpath$libdir" ;;7574 *) func_append finalize_rpath " $libdir" ;; 6453 7575 esac 6454 7576 done … … 6464 7586 case " $dlprefiles $dlfiles " in 6465 7587 *" $lib "*) ;; 6466 *) dlfiles="$dlfiles$lib" ;;7588 *) func_append dlfiles " $lib" ;; 6467 7589 esac 6468 7590 done … … 6474 7596 case "$dlprefiles " in 6475 7597 *" $lib "*) ;; 6476 *) dlprefiles="$dlprefiles$lib" ;;7598 *) func_append dlprefiles " $lib" ;; 6477 7599 esac 6478 7600 done … … 6481 7603 if test -n "$rpath"; then 6482 7604 case $host in 6483 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* )7605 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) 6484 7606 # these systems don't actually have a c library (as such)! 6485 7607 ;; 6486 7608 *-*-rhapsody* | *-*-darwin1.[012]) 6487 7609 # Rhapsody C library is in the System framework 6488 deplibs="$deplibsSystem.ltframework"7610 func_append deplibs " System.ltframework" 6489 7611 ;; 6490 7612 *-*-netbsd*) … … 6503 7625 # Add libc to deplibs on all other systems if necessary. 6504 7626 if test "$build_libtool_need_lc" = "yes"; then 6505 deplibs="$deplibs-lc"7627 func_append deplibs " -lc" 6506 7628 fi 6507 7629 ;; … … 6552 7674 case " $predeps $postdeps " in 6553 7675 *" $i "*) 6554 newdeplibs="$newdeplibs$i"7676 func_append newdeplibs " $i" 6555 7677 i="" 6556 7678 ;; … … 6563 7685 deplib_match=$1 6564 7686 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then 6565 newdeplibs="$newdeplibs$i"7687 func_append newdeplibs " $i" 6566 7688 else 6567 7689 droppeddeps=yes 6568 $ECHO7690 echo 6569 7691 $ECHO "*** Warning: dynamic linker does not accept needed library $i." 6570 $ECHO"*** I have the capability to make that library automatically link in when"6571 $ECHO"*** you link to this library. But I can only do this if you have a"6572 $ECHO"*** shared version of the library, which I believe you do not have"6573 $ECHO"*** because a test_compile did reveal that the linker did not use it for"6574 $ECHO"*** its dynamic dependency list that programs get resolved with at runtime."7692 echo "*** I have the capability to make that library automatically link in when" 7693 echo "*** you link to this library. But I can only do this if you have a" 7694 echo "*** shared version of the library, which I believe you do not have" 7695 echo "*** because a test_compile did reveal that the linker did not use it for" 7696 echo "*** its dynamic dependency list that programs get resolved with at runtime." 6575 7697 fi 6576 7698 fi 6577 7699 ;; 6578 7700 *) 6579 newdeplibs="$newdeplibs$i"7701 func_append newdeplibs " $i" 6580 7702 ;; 6581 7703 esac … … 6595 7717 case " $predeps $postdeps " in 6596 7718 *" $i "*) 6597 newdeplibs="$newdeplibs$i"7719 func_append newdeplibs " $i" 6598 7720 i="" 6599 7721 ;; … … 6606 7728 deplib_match=$1 6607 7729 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then 6608 newdeplibs="$newdeplibs$i"7730 func_append newdeplibs " $i" 6609 7731 else 6610 7732 droppeddeps=yes 6611 $ECHO7733 echo 6612 7734 $ECHO "*** Warning: dynamic linker does not accept needed library $i." 6613 $ECHO"*** I have the capability to make that library automatically link in when"6614 $ECHO"*** you link to this library. But I can only do this if you have a"6615 $ECHO"*** shared version of the library, which you do not appear to have"6616 $ECHO"*** because a test_compile did reveal that the linker did not use this one"6617 $ECHO"*** as a dynamic dependency that programs can get resolved with at runtime."7735 echo "*** I have the capability to make that library automatically link in when" 7736 echo "*** you link to this library. But I can only do this if you have a" 7737 echo "*** shared version of the library, which you do not appear to have" 7738 echo "*** because a test_compile did reveal that the linker did not use this one" 7739 echo "*** as a dynamic dependency that programs can get resolved with at runtime." 6618 7740 fi 6619 7741 fi 6620 7742 else 6621 7743 droppeddeps=yes 6622 $ECHO7744 echo 6623 7745 $ECHO "*** Warning! Library $i is needed by this library but I was not able to" 6624 $ECHO"*** make it link in! You will probably need to install it or some"6625 $ECHO"*** library that it depends on before this library will be fully"6626 $ECHO"*** functional. Installing it before continuing would be even better."7746 echo "*** make it link in! You will probably need to install it or some" 7747 echo "*** library that it depends on before this library will be fully" 7748 echo "*** functional. Installing it before continuing would be even better." 6627 7749 fi 6628 7750 ;; 6629 7751 *) 6630 newdeplibs="$newdeplibs$i"7752 func_append newdeplibs " $i" 6631 7753 ;; 6632 7754 esac … … 6645 7767 case " $predeps $postdeps " in 6646 7768 *" $a_deplib "*) 6647 newdeplibs="$newdeplibs$a_deplib"7769 func_append newdeplibs " $a_deplib" 6648 7770 a_deplib="" 6649 7771 ;; … … 6652 7774 if test -n "$a_deplib" ; then 6653 7775 libname=`eval "\\$ECHO \"$libname_spec\""` 7776 if test -n "$file_magic_glob"; then 7777 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob` 7778 else 7779 libnameglob=$libname 7780 fi 7781 test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob` 6654 7782 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do 6655 potential_libs=`ls $i/$libname[.-]* 2>/dev/null` 7783 if test "$want_nocaseglob" = yes; then 7784 shopt -s nocaseglob 7785 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` 7786 $nocaseglob 7787 else 7788 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` 7789 fi 6656 7790 for potent_lib in $potential_libs; do 6657 7791 # Follow soft links. … … 6670 7804 case $potliblink in 6671 7805 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; 6672 *) potlib=`$ECHO " X$potlib" | $Xsed -e's,[^/]*$,,'`"$potliblink";;7806 *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";; 6673 7807 esac 6674 7808 done … … 6676 7810 $SED -e 10q | 6677 7811 $EGREP "$file_magic_regex" > /dev/null; then 6678 newdeplibs="$newdeplibs$a_deplib"7812 func_append newdeplibs " $a_deplib" 6679 7813 a_deplib="" 6680 7814 break 2 … … 6685 7819 if test -n "$a_deplib" ; then 6686 7820 droppeddeps=yes 6687 $ECHO7821 echo 6688 7822 $ECHO "*** Warning: linker path does not have real file for library $a_deplib." 6689 $ECHO"*** I have the capability to make that library automatically link in when"6690 $ECHO"*** you link to this library. But I can only do this if you have a"6691 $ECHO"*** shared version of the library, which you do not appear to have"6692 $ECHO"*** because I did check the linker path looking for a file starting"7823 echo "*** I have the capability to make that library automatically link in when" 7824 echo "*** you link to this library. But I can only do this if you have a" 7825 echo "*** shared version of the library, which you do not appear to have" 7826 echo "*** because I did check the linker path looking for a file starting" 6693 7827 if test -z "$potlib" ; then 6694 7828 $ECHO "*** with $libname but no candidates were found. (...for file magic test)" … … 6701 7835 *) 6702 7836 # Add a -L argument. 6703 newdeplibs="$newdeplibs$a_deplib"7837 func_append newdeplibs " $a_deplib" 6704 7838 ;; 6705 7839 esac … … 6717 7851 case " $predeps $postdeps " in 6718 7852 *" $a_deplib "*) 6719 newdeplibs="$newdeplibs$a_deplib"7853 func_append newdeplibs " $a_deplib" 6720 7854 a_deplib="" 6721 7855 ;; … … 6728 7862 for potent_lib in $potential_libs; do 6729 7863 potlib="$potent_lib" # see symlink-check above in file_magic test 6730 if eval "\$ECHO \" X$potent_lib\"" 2>/dev/null | $Xsed -e10q | \7864 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ 6731 7865 $EGREP "$match_pattern_regex" > /dev/null; then 6732 newdeplibs="$newdeplibs$a_deplib"7866 func_append newdeplibs " $a_deplib" 6733 7867 a_deplib="" 6734 7868 break 2 … … 6739 7873 if test -n "$a_deplib" ; then 6740 7874 droppeddeps=yes 6741 $ECHO7875 echo 6742 7876 $ECHO "*** Warning: linker path does not have real file for library $a_deplib." 6743 $ECHO"*** I have the capability to make that library automatically link in when"6744 $ECHO"*** you link to this library. But I can only do this if you have a"6745 $ECHO"*** shared version of the library, which you do not appear to have"6746 $ECHO"*** because I did check the linker path looking for a file starting"7877 echo "*** I have the capability to make that library automatically link in when" 7878 echo "*** you link to this library. But I can only do this if you have a" 7879 echo "*** shared version of the library, which you do not appear to have" 7880 echo "*** because I did check the linker path looking for a file starting" 6747 7881 if test -z "$potlib" ; then 6748 7882 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" … … 6755 7889 *) 6756 7890 # Add a -L argument. 6757 newdeplibs="$newdeplibs$a_deplib"7891 func_append newdeplibs " $a_deplib" 6758 7892 ;; 6759 7893 esac … … 6762 7896 none | unknown | *) 6763 7897 newdeplibs="" 6764 tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \ 6765 -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'` 7898 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` 6766 7899 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then 6767 7900 for i in $predeps $postdeps ; do 6768 7901 # can't use Xsed below, because $i might contain '/' 6769 tmp_deplibs=`$ECHO " X $tmp_deplibs" | $Xsed -e"s,$i,,"`7902 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"` 6770 7903 done 6771 7904 fi 6772 if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |6773 $GREP . >/dev/null; then6774 $ECHO7905 case $tmp_deplibs in 7906 *[!\ \ ]*) 7907 echo 6775 7908 if test "X$deplibs_check_method" = "Xnone"; then 6776 $ECHO"*** Warning: inter-library dependencies are not supported in this platform."7909 echo "*** Warning: inter-library dependencies are not supported in this platform." 6777 7910 else 6778 $ECHO"*** Warning: inter-library dependencies are not known to be supported."7911 echo "*** Warning: inter-library dependencies are not known to be supported." 6779 7912 fi 6780 $ECHO"*** All declared inter-library dependencies are being dropped."7913 echo "*** All declared inter-library dependencies are being dropped." 6781 7914 droppeddeps=yes 6782 fi 7915 ;; 7916 esac 6783 7917 ;; 6784 7918 esac … … 6792 7926 *-*-rhapsody* | *-*-darwin1.[012]) 6793 7927 # On Rhapsody replace the C library with the System framework 6794 newdeplibs=`$ECHO " X $newdeplibs" | $Xsed -e's/ -lc / System.ltframework /'`7928 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` 6795 7929 ;; 6796 7930 esac … … 6798 7932 if test "$droppeddeps" = yes; then 6799 7933 if test "$module" = yes; then 6800 $ECHO6801 $ECHO"*** Warning: libtool could not satisfy all declared inter-library"7934 echo 7935 echo "*** Warning: libtool could not satisfy all declared inter-library" 6802 7936 $ECHO "*** dependencies of module $libname. Therefore, libtool will create" 6803 $ECHO"*** a static module, that should work as long as the dlopening"6804 $ECHO"*** application is linked with the -dlopen flag."7937 echo "*** a static module, that should work as long as the dlopening" 7938 echo "*** application is linked with the -dlopen flag." 6805 7939 if test -z "$global_symbol_pipe"; then 6806 $ECHO6807 $ECHO"*** However, this would only work if libtool was able to extract symbol"6808 $ECHO"*** lists from a program, using \`nm' or equivalent, but libtool could"6809 $ECHO"*** not find such a program. So, this module is probably useless."6810 $ECHO"*** \`nm' from GNU binutils and a full rebuild may help."7940 echo 7941 echo "*** However, this would only work if libtool was able to extract symbol" 7942 echo "*** lists from a program, using \`nm' or equivalent, but libtool could" 7943 echo "*** not find such a program. So, this module is probably useless." 7944 echo "*** \`nm' from GNU binutils and a full rebuild may help." 6811 7945 fi 6812 7946 if test "$build_old_libs" = no; then … … 6818 7952 fi 6819 7953 else 6820 $ECHO"*** The inter-library dependencies that have been dropped here will be"6821 $ECHO"*** automatically added whenever a program is linked with this library"6822 $ECHO"*** or is declared to -dlopen it."7954 echo "*** The inter-library dependencies that have been dropped here will be" 7955 echo "*** automatically added whenever a program is linked with this library" 7956 echo "*** or is declared to -dlopen it." 6823 7957 6824 7958 if test "$allow_undefined" = no; then 6825 $ECHO6826 $ECHO"*** Since this library must not contain undefined symbols,"6827 $ECHO"*** because either the platform does not support them or"6828 $ECHO"*** it was explicitly requested with -no-undefined,"6829 $ECHO"*** libtool will only create a static version of it."7959 echo 7960 echo "*** Since this library must not contain undefined symbols," 7961 echo "*** because either the platform does not support them or" 7962 echo "*** it was explicitly requested with -no-undefined," 7963 echo "*** libtool will only create a static version of it." 6830 7964 if test "$build_old_libs" = no; then 6831 7965 oldlibs="$output_objdir/$libname.$libext" … … 6844 7978 case $host in 6845 7979 *-*-darwin*) 6846 newdeplibs=`$ECHO " X $newdeplibs" | $Xsed -e's% \([^ $]*\).ltframework% -framework \1%g'`6847 new_inherited_linker_flags=`$ECHO " X $new_inherited_linker_flags" | $Xsed -e's% \([^ $]*\).ltframework% -framework \1%g'`6848 deplibs=`$ECHO " X $deplibs" | $Xsed -e's% \([^ $]*\).ltframework% -framework \1%g'`7980 newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` 7981 new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` 7982 deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` 6849 7983 ;; 6850 7984 esac … … 6859 7993 case " $deplibs " in 6860 7994 *" -L$path/$objdir "*) 6861 new_libs="$new_libs-L$path/$objdir" ;;7995 func_append new_libs " -L$path/$objdir" ;; 6862 7996 esac 6863 7997 ;; … … 6869 8003 case " $new_libs " in 6870 8004 *" $deplib "*) ;; 6871 *) new_libs="$new_libs$deplib" ;;8005 *) func_append new_libs " $deplib" ;; 6872 8006 esac 6873 8007 ;; 6874 *) new_libs="$new_libs$deplib" ;;8008 *) func_append new_libs " $deplib" ;; 6875 8009 esac 6876 8010 done … … 6889 8023 dep_rpath= 6890 8024 rpath="$finalize_rpath" 6891 test "$ mode" != relink && rpath="$compile_rpath$rpath"8025 test "$opt_mode" != relink && rpath="$compile_rpath$rpath" 6892 8026 for libdir in $rpath; do 6893 8027 if test -n "$hardcode_libdir_flag_spec"; then 6894 8028 if test -n "$hardcode_libdir_separator"; then 8029 func_replace_sysroot "$libdir" 8030 libdir=$func_replace_sysroot_result 6895 8031 if test -z "$hardcode_libdirs"; then 6896 8032 hardcode_libdirs="$libdir" … … 6901 8037 ;; 6902 8038 *) 6903 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"8039 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" 6904 8040 ;; 6905 8041 esac … … 6907 8043 else 6908 8044 eval flag=\"$hardcode_libdir_flag_spec\" 6909 dep_rpath="$dep_rpath$flag"8045 func_append dep_rpath " $flag" 6910 8046 fi 6911 8047 elif test -n "$runpath_var"; then 6912 8048 case "$perm_rpath " in 6913 8049 *" $libdir "*) ;; 6914 *) perm_rpath="$perm_rpath$libdir" ;;8050 *) func_apped perm_rpath " $libdir" ;; 6915 8051 esac 6916 8052 fi … … 6930 8066 rpath= 6931 8067 for dir in $perm_rpath; do 6932 rpath="$rpath$dir:"8068 func_append rpath "$dir:" 6933 8069 done 6934 8070 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" … … 6938 8074 6939 8075 shlibpath="$finalize_shlibpath" 6940 test "$ mode" != relink && shlibpath="$compile_shlibpath$shlibpath"8076 test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath" 6941 8077 if test -n "$shlibpath"; then 6942 8078 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" … … 6964 8100 for link 6965 8101 do 6966 linknames="$linknames$link"8102 func_append linknames " $link" 6967 8103 done 6968 8104 6969 8105 # Use standard objects if they are pic 6970 test -z "$pic_flag" && libobjs=`$ECHO " X$libobjs" | $SP2NL | $Xsed -e"$lo2o" | $NL2SP`8106 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` 6971 8107 test "X$libobjs" = "X " && libobjs= 6972 8108 … … 6975 8111 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" 6976 8112 export_symbols="$output_objdir/$libname.uexp" 6977 delfiles="$delfiles$export_symbols"8113 func_append delfiles " $export_symbols" 6978 8114 fi 6979 8115 … … 7006 8142 cmds=$export_symbols_cmds 7007 8143 save_ifs="$IFS"; IFS='~' 7008 for cmd in $cmds; do8144 for cmd1 in $cmds; do 7009 8145 IFS="$save_ifs" 7010 eval cmd=\"$cmd\" 7011 func_len " $cmd" 7012 len=$func_len_result 7013 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then 8146 # Take the normal branch if the nm_file_list_spec branch 8147 # doesn't work or if tool conversion is not needed. 8148 case $nm_file_list_spec~$to_tool_file_cmd in 8149 *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) 8150 try_normal_branch=yes 8151 eval cmd=\"$cmd1\" 8152 func_len " $cmd" 8153 len=$func_len_result 8154 ;; 8155 *) 8156 try_normal_branch=no 8157 ;; 8158 esac 8159 if test "$try_normal_branch" = yes \ 8160 && { test "$len" -lt "$max_cmd_len" \ 8161 || test "$max_cmd_len" -le -1; } 8162 then 7014 8163 func_show_eval "$cmd" 'exit $?' 8164 skipped_export=false 8165 elif test -n "$nm_file_list_spec"; then 8166 func_basename "$output" 8167 output_la=$func_basename_result 8168 save_libobjs=$libobjs 8169 save_output=$output 8170 output=${output_objdir}/${output_la}.nm 8171 func_to_tool_file "$output" 8172 libobjs=$nm_file_list_spec$func_to_tool_file_result 8173 func_append delfiles " $output" 8174 func_verbose "creating $NM input file list: $output" 8175 for obj in $save_libobjs; do 8176 func_to_tool_file "$obj" 8177 $ECHO "$func_to_tool_file_result" 8178 done > "$output" 8179 eval cmd=\"$cmd1\" 8180 func_show_eval "$cmd" 'exit $?' 8181 output=$save_output 8182 libobjs=$save_libobjs 7015 8183 skipped_export=false 7016 8184 else … … 7034 8202 tmp_export_symbols="$export_symbols" 7035 8203 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" 7036 $opt_dry_run || eval '$ECHO " X$include_expsyms" | $Xsed| $SP2NL >> "$tmp_export_symbols"'8204 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' 7037 8205 fi 7038 8206 … … 7046 8214 # isn't a blessed tool. 7047 8215 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter 7048 delfiles="$delfiles$export_symbols $output_objdir/$libname.filter"8216 func_append delfiles " $export_symbols $output_objdir/$libname.filter" 7049 8217 export_symbols=$output_objdir/$libname.def 7050 8218 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols … … 7056 8224 *" $test_deplib "*) ;; 7057 8225 *) 7058 tmp_deplibs="$tmp_deplibs$test_deplib"8226 func_append tmp_deplibs " $test_deplib" 7059 8227 ;; 7060 8228 esac … … 7076 8244 else 7077 8245 gentop="$output_objdir/${outputname}x" 7078 generated="$generated$gentop"8246 func_append generated " $gentop" 7079 8247 7080 8248 func_extract_archives $gentop $convenience 7081 libobjs="$libobjs$func_extract_archives_result"8249 func_append libobjs " $func_extract_archives_result" 7082 8250 test "X$libobjs" = "X " && libobjs= 7083 8251 fi … … 7086 8254 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then 7087 8255 eval flag=\"$thread_safe_flag_spec\" 7088 linker_flags="$linker_flags$flag"8256 func_append linker_flags " $flag" 7089 8257 fi 7090 8258 7091 8259 # Make a backup of the uninstalled library when relinking 7092 if test "$ mode" = relink; then8260 if test "$opt_mode" = relink; then 7093 8261 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? 7094 8262 fi … … 7135 8303 fi 7136 8304 save_output=$output 7137 output_la=`$ECHO "X$output" | $Xsed -e "$basename"` 8305 func_basename "$output" 8306 output_la=$func_basename_result 7138 8307 7139 8308 # Clear the reloadable object creation command queue and … … 7148 8317 output=${output_objdir}/${output_la}.lnkscript 7149 8318 func_verbose "creating GNU ld script: $output" 7150 $ECHO'INPUT (' > $output8319 echo 'INPUT (' > $output 7151 8320 for obj in $save_libobjs 7152 8321 do 7153 $ECHO "$obj" >> $output 8322 func_to_tool_file "$obj" 8323 $ECHO "$func_to_tool_file_result" >> $output 7154 8324 done 7155 $ECHO ')' >> $output 7156 delfiles="$delfiles $output" 8325 echo ')' >> $output 8326 func_append delfiles " $output" 8327 func_to_tool_file "$output" 8328 output=$func_to_tool_file_result 7157 8329 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then 7158 8330 output=${output_objdir}/${output_la}.lnk … … 7168 8340 for obj 7169 8341 do 7170 $ECHO "$obj" >> $output 8342 func_to_tool_file "$obj" 8343 $ECHO "$func_to_tool_file_result" >> $output 7171 8344 done 7172 delfiles="$delfiles $output" 7173 output=$firstobj\"$file_list_spec$output\" 8345 func_append delfiles " $output" 8346 func_to_tool_file "$output" 8347 output=$firstobj\"$file_list_spec$func_to_tool_file_result\" 7174 8348 else 7175 8349 if test -n "$save_libobjs"; then … … 7195 8369 if test "$k" -eq 1 ; then 7196 8370 # The first file doesn't have a previous command to add. 7197 eval concat_cmds=\"$reload_cmds $objlist $last_robj\" 8371 reload_objs=$objlist 8372 eval concat_cmds=\"$reload_cmds\" 7198 8373 else 7199 8374 # All subsequent reloadable object files will link in 7200 8375 # the last one created. 7201 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\" 8376 reload_objs="$objlist $last_robj" 8377 eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" 7202 8378 fi 7203 8379 last_robj=$output_objdir/$output_la-${k}.$objext … … 7205 8381 k=$func_arith_result 7206 8382 output=$output_objdir/$output_la-${k}.$objext 7207 objlist= $obj8383 objlist=" $obj" 7208 8384 func_len " $last_robj" 7209 8385 func_arith $len0 + $func_len_result … … 7215 8391 # files will link in the last one created. 7216 8392 test -z "$concat_cmds" || concat_cmds=$concat_cmds~ 7217 eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" 8393 reload_objs="$objlist $last_robj" 8394 eval concat_cmds=\"\${concat_cmds}$reload_cmds\" 7218 8395 if test -n "$last_robj"; then 7219 8396 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" 7220 8397 fi 7221 delfiles="$delfiles$output"8398 func_append delfiles " $output" 7222 8399 7223 8400 else … … 7253 8430 7254 8431 # Restore the uninstalled library and exit 7255 if test "$ mode" = relink; then8432 if test "$opt_mode" = relink; then 7256 8433 ( cd "$output_objdir" && \ 7257 8434 $RM "${realname}T" && \ … … 7274 8451 tmp_export_symbols="$export_symbols" 7275 8452 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" 7276 $opt_dry_run || eval '$ECHO " X$include_expsyms" | $Xsed| $SP2NL >> "$tmp_export_symbols"'8453 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' 7277 8454 fi 7278 8455 … … 7286 8463 # isn't a blessed tool. 7287 8464 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter 7288 delfiles="$delfiles$export_symbols $output_objdir/$libname.filter"8465 func_append delfiles " $export_symbols $output_objdir/$libname.filter" 7289 8466 export_symbols=$output_objdir/$libname.def 7290 8467 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols … … 7327 8504 if test -n "$dlprefiles"; then 7328 8505 gentop="$output_objdir/${outputname}x" 7329 generated="$generated$gentop"8506 func_append generated " $gentop" 7330 8507 7331 8508 func_extract_archives $gentop $dlprefiles 7332 libobjs="$libobjs$func_extract_archives_result"8509 func_append libobjs " $func_extract_archives_result" 7333 8510 test "X$libobjs" = "X " && libobjs= 7334 8511 fi … … 7346 8523 7347 8524 # Restore the uninstalled library and exit 7348 if test "$ mode" = relink; then8525 if test "$opt_mode" = relink; then 7349 8526 ( cd "$output_objdir" && \ 7350 8527 $RM "${realname}T" && \ … … 7358 8535 7359 8536 # Restore the uninstalled library and exit 7360 if test "$ mode" = relink; then8537 if test "$opt_mode" = relink; then 7361 8538 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? 7362 8539 … … 7439 8616 if test -n "$whole_archive_flag_spec"; then 7440 8617 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" 7441 reload_conv_objs=$reload_objs\ `$ECHO " X$tmp_whole_archive_flags" | $Xsed -e's|,| |g'`8618 reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` 7442 8619 else 7443 8620 gentop="$output_objdir/${obj}x" 7444 generated="$generated$gentop"8621 func_append generated " $gentop" 7445 8622 7446 8623 func_extract_archives $gentop $convenience … … 7449 8626 fi 7450 8627 8628 # If we're not building shared, we need to use non_pic_objs 8629 test "$build_libtool_libs" != yes && libobjs="$non_pic_objects" 8630 7451 8631 # Create the old-style object. 7452 reload_objs="$objs$old_deplibs "`$ECHO " X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test8632 reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test 7453 8633 7454 8634 output="$obj" … … 7510 8690 *-*-rhapsody* | *-*-darwin1.[012]) 7511 8691 # On Rhapsody replace the C library is the System framework 7512 compile_deplibs=`$ECHO " X $compile_deplibs" | $Xsed -e's/ -lc / System.ltframework /'`7513 finalize_deplibs=`$ECHO " X $finalize_deplibs" | $Xsed -e's/ -lc / System.ltframework /'`8692 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` 8693 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` 7514 8694 ;; 7515 8695 esac … … 7522 8702 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 7523 8703 10.[0123]) 7524 compile_command="$compile_command${wl}-bind_at_load"7525 f inalize_command="$finalize_command${wl}-bind_at_load"8704 func_append compile_command " ${wl}-bind_at_load" 8705 func_append finalize_command " ${wl}-bind_at_load" 7526 8706 ;; 7527 8707 esac 7528 8708 fi 7529 8709 # Time to change all our "foo.ltframework" stuff back to "-framework foo" 7530 compile_deplibs=`$ECHO " X $compile_deplibs" | $Xsed -e's% \([^ $]*\).ltframework% -framework \1%g'`7531 finalize_deplibs=`$ECHO " X $finalize_deplibs" | $Xsed -e's% \([^ $]*\).ltframework% -framework \1%g'`8710 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` 8711 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` 7532 8712 ;; 7533 8713 esac … … 7543 8723 case " $compile_deplibs " in 7544 8724 *" -L$path/$objdir "*) 7545 new_libs="$new_libs-L$path/$objdir" ;;8725 func_append new_libs " -L$path/$objdir" ;; 7546 8726 esac 7547 8727 ;; … … 7553 8733 case " $new_libs " in 7554 8734 *" $deplib "*) ;; 7555 *) new_libs="$new_libs$deplib" ;;8735 *) func_append new_libs " $deplib" ;; 7556 8736 esac 7557 8737 ;; 7558 *) new_libs="$new_libs$deplib" ;;8738 *) func_append new_libs " $deplib" ;; 7559 8739 esac 7560 8740 done … … 7562 8742 7563 8743 7564 compile_command="$compile_command$compile_deplibs"7565 f inalize_command="$finalize_command$finalize_deplibs"8744 func_append compile_command " $compile_deplibs" 8745 func_append finalize_command " $finalize_deplibs" 7566 8746 7567 8747 if test -n "$rpath$xrpath"; then … … 7571 8751 case "$finalize_rpath " in 7572 8752 *" $libdir "*) ;; 7573 *) f inalize_rpath="$finalize_rpath$libdir" ;;8753 *) func_append finalize_rpath " $libdir" ;; 7574 8754 esac 7575 8755 done … … 7590 8770 ;; 7591 8771 *) 7592 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"8772 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" 7593 8773 ;; 7594 8774 esac … … 7596 8776 else 7597 8777 eval flag=\"$hardcode_libdir_flag_spec\" 7598 rpath="$rpath$flag"8778 func_append rpath " $flag" 7599 8779 fi 7600 8780 elif test -n "$runpath_var"; then 7601 8781 case "$perm_rpath " in 7602 8782 *" $libdir "*) ;; 7603 *) perm_rpath="$perm_rpath$libdir" ;;8783 *) func_append perm_rpath " $libdir" ;; 7604 8784 esac 7605 8785 fi … … 7610 8790 *":$libdir:"*) ;; 7611 8791 ::) dllsearchpath=$libdir;; 7612 *) dllsearchpath="$dllsearchpath:$libdir";;8792 *) func_append dllsearchpath ":$libdir";; 7613 8793 esac 7614 8794 case :$dllsearchpath: in 7615 8795 *":$testbindir:"*) ;; 7616 8796 ::) dllsearchpath=$testbindir;; 7617 *) dllsearchpath="$dllsearchpath:$testbindir";;8797 *) func_append dllsearchpath ":$testbindir";; 7618 8798 esac 7619 8799 ;; … … 7641 8821 ;; 7642 8822 *) 7643 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"8823 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" 7644 8824 ;; 7645 8825 esac … … 7647 8827 else 7648 8828 eval flag=\"$hardcode_libdir_flag_spec\" 7649 rpath="$rpath$flag"8829 func_append rpath " $flag" 7650 8830 fi 7651 8831 elif test -n "$runpath_var"; then 7652 8832 case "$finalize_perm_rpath " in 7653 8833 *" $libdir "*) ;; 7654 *) f inalize_perm_rpath="$finalize_perm_rpath$libdir" ;;8834 *) func_append finalize_perm_rpath " $libdir" ;; 7655 8835 esac 7656 8836 fi … … 7666 8846 if test -n "$libobjs" && test "$build_old_libs" = yes; then 7667 8847 # Transform all the library objects into standard objects. 7668 compile_command=`$ECHO " X$compile_command" | $SP2NL | $Xsed -e"$lo2o" | $NL2SP`7669 finalize_command=`$ECHO " X$finalize_command" | $SP2NL | $Xsed -e"$lo2o" | $NL2SP`8848 compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` 8849 finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` 7670 8850 fi 7671 8851 … … 7679 8859 wrappers_required=yes 7680 8860 case $host in 8861 *cegcc* | *mingw32ce*) 8862 # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. 8863 wrappers_required=no 8864 ;; 7681 8865 *cygwin* | *mingw* ) 7682 8866 if test "$build_libtool_libs" != yes; then 7683 8867 wrappers_required=no 7684 8868 fi 7685 ;;7686 *cegcc)7687 # Disable wrappers for cegcc, we are cross compiling anyway.7688 wrappers_required=no7689 8869 ;; 7690 8870 *) … … 7696 8876 if test "$wrappers_required" = no; then 7697 8877 # Replace the output file specification. 7698 compile_command=`$ECHO " X$compile_command" | $Xsed -e's%@OUTPUT@%'"$output"'%g'`8878 compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` 7699 8879 link_command="$compile_command$compile_rpath" 7700 8880 … … 7702 8882 exit_status=0 7703 8883 func_show_eval "$link_command" 'exit_status=$?' 8884 8885 if test -n "$postlink_cmds"; then 8886 func_to_tool_file "$output" 8887 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` 8888 func_execute_cmds "$postlink_cmds" 'exit $?' 8889 fi 7704 8890 7705 8891 # Delete the generated files. … … 7725 8911 rpath= 7726 8912 for dir in $perm_rpath; do 7727 rpath="$rpath$dir:"8913 func_append rpath "$dir:" 7728 8914 done 7729 8915 compile_var="$runpath_var=\"$rpath\$$runpath_var\" " … … 7733 8919 rpath= 7734 8920 for dir in $finalize_perm_rpath; do 7735 rpath="$rpath$dir:"8921 func_append rpath "$dir:" 7736 8922 done 7737 8923 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " … … 7743 8929 link_command="$compile_var$compile_command$compile_rpath" 7744 8930 # Replace the output file specification. 7745 link_command=`$ECHO " X$link_command" | $Xsed -e's%@OUTPUT@%'"$output"'%g'`8931 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` 7746 8932 # Delete the old output file. 7747 8933 $opt_dry_run || $RM $output 7748 8934 # Link the executable and exit 7749 8935 func_show_eval "$link_command" 'exit $?' 8936 8937 if test -n "$postlink_cmds"; then 8938 func_to_tool_file "$output" 8939 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` 8940 func_execute_cmds "$postlink_cmds" 'exit $?' 8941 fi 8942 7750 8943 exit $EXIT_SUCCESS 7751 8944 fi … … 7762 8955 link_command="$finalize_var$compile_command$finalize_rpath" 7763 8956 if test "$fast_install" = yes; then 7764 relink_command=`$ECHO " X$compile_var$compile_command$compile_rpath" | $Xsed -e's%@OUTPUT@%\$progdir/\$file%g'`8957 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` 7765 8958 else 7766 8959 # fast_install is set to needless … … 7774 8967 7775 8968 # Replace the output file specification. 7776 link_command=`$ECHO " X$link_command" | $Xsed -e's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`8969 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` 7777 8970 7778 8971 # Delete the old output files. … … 7780 8973 7781 8974 func_show_eval "$link_command" 'exit $?' 8975 8976 if test -n "$postlink_cmds"; then 8977 func_to_tool_file "$output_objdir/$outputname" 8978 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` 8979 func_execute_cmds "$postlink_cmds" 'exit $?' 8980 fi 7782 8981 7783 8982 # Now create the wrapper script. … … 7798 8997 done 7799 8998 relink_command="(cd `pwd`; $relink_command)" 7800 relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` 7801 fi 7802 7803 # Quote $ECHO for shipping. 7804 if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then 7805 case $progpath in 7806 [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; 7807 *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; 7808 esac 7809 qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"` 7810 else 7811 qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"` 8999 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` 7812 9000 fi 7813 9001 … … 7889 9077 oldobjs="$old_deplibs $non_pic_objects" 7890 9078 if test "$preload" = yes && test -f "$symfileobj"; then 7891 oldobjs="$oldobjs$symfileobj"9079 func_append oldobjs " $symfileobj" 7892 9080 fi 7893 9081 fi … … 7897 9085 if test -n "$addlibs"; then 7898 9086 gentop="$output_objdir/${outputname}x" 7899 generated="$generated$gentop"9087 func_append generated " $gentop" 7900 9088 7901 9089 func_extract_archives $gentop $addlibs 7902 oldobjs="$oldobjs$func_extract_archives_result"9090 func_append oldobjs " $func_extract_archives_result" 7903 9091 fi 7904 9092 … … 7911 9099 if test -n "$dlprefiles"; then 7912 9100 gentop="$output_objdir/${outputname}x" 7913 generated="$generated$gentop"9101 func_append generated " $gentop" 7914 9102 7915 9103 func_extract_archives $gentop $dlprefiles 7916 oldobjs="$oldobjs$func_extract_archives_result"9104 func_append oldobjs " $func_extract_archives_result" 7917 9105 fi 7918 9106 … … 7930 9118 : 7931 9119 else 7932 $ECHO"copying selected object files to avoid basename conflicts..."9120 echo "copying selected object files to avoid basename conflicts..." 7933 9121 gentop="$output_objdir/${outputname}x" 7934 generated="$generated$gentop"9122 func_append generated " $gentop" 7935 9123 func_mkdir_p "$gentop" 7936 9124 save_oldobjs=$oldobjs … … 7956 9144 done 7957 9145 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" 7958 oldobjs="$oldobjs$gentop/$newobj"9146 func_append oldobjs " $gentop/$newobj" 7959 9147 ;; 7960 *) oldobjs="$oldobjs$obj" ;;9148 *) func_append oldobjs " $obj" ;; 7961 9149 esac 7962 9150 done … … 7967 9155 len=$func_len_result 7968 9156 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then 9157 cmds=$old_archive_cmds 9158 elif test -n "$archiver_list_spec"; then 9159 func_verbose "using command file archive linking..." 9160 for obj in $oldobjs 9161 do 9162 func_to_tool_file "$obj" 9163 $ECHO "$func_to_tool_file_result" 9164 done > $output_objdir/$libname.libcmd 9165 func_to_tool_file "$output_objdir/$libname.libcmd" 9166 oldobjs=" $archiver_list_spec$func_to_tool_file_result" 7969 9167 cmds=$old_archive_cmds 7970 9168 else … … 8041 9239 # Quote the link command for shipping. 8042 9240 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" 8043 relink_command=`$ECHO " X$relink_command" | $Xsed -e"$sed_quote_subst"`9241 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` 8044 9242 if test "$hardcode_automatic" = yes ; then 8045 9243 relink_command= … … 8064 9262 test -z "$libdir" && \ 8065 9263 func_fatal_error "\`$deplib' is not a valid libtool archive" 8066 newdependency_libs="$newdependency_libs$libdir/$name"9264 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" 8067 9265 ;; 8068 *) newdependency_libs="$newdependency_libs $deplib" ;; 9266 -L*) 9267 func_stripname -L '' "$deplib" 9268 func_replace_sysroot "$func_stripname_result" 9269 func_append newdependency_libs " -L$func_replace_sysroot_result" 9270 ;; 9271 -R*) 9272 func_stripname -R '' "$deplib" 9273 func_replace_sysroot "$func_stripname_result" 9274 func_append newdependency_libs " -R$func_replace_sysroot_result" 9275 ;; 9276 *) func_append newdependency_libs " $deplib" ;; 8069 9277 esac 8070 9278 done … … 8080 9288 test -z "$libdir" && \ 8081 9289 func_fatal_error "\`$lib' is not a valid libtool archive" 8082 newdlfiles="$newdlfiles$libdir/$name"9290 func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" 8083 9291 ;; 8084 *) newdlfiles="$newdlfiles$lib" ;;9292 *) func_append newdlfiles " $lib" ;; 8085 9293 esac 8086 9294 done … … 8099 9307 test -z "$libdir" && \ 8100 9308 func_fatal_error "\`$lib' is not a valid libtool archive" 8101 newdlprefiles="$newdlprefiles$libdir/$name"9309 func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" 8102 9310 ;; 8103 9311 esac … … 8111 9319 *) abs=`pwd`"/$lib" ;; 8112 9320 esac 8113 newdlfiles="$newdlfiles$abs"9321 func_append newdlfiles " $abs" 8114 9322 done 8115 9323 dlfiles="$newdlfiles" … … 8120 9328 *) abs=`pwd`"/$lib" ;; 8121 9329 esac 8122 newdlprefiles="$newdlprefiles$abs"9330 func_append newdlprefiles " $abs" 8123 9331 done 8124 9332 dlprefiles="$newdlprefiles" … … 8126 9334 $RM $output 8127 9335 # place dlname in correct position for cygwin 9336 # In fact, it would be nice if we could use this code for all target 9337 # systems that can't hard-code library paths into their executables 9338 # and that have no shared library path variable independent of PATH, 9339 # but it turns out we can't easily determine that from inspecting 9340 # libtool variables, so we have to hard-code the OSs to which it 9341 # applies here; at the moment, that means platforms that use the PE 9342 # object format with DLL files. See the long comment at the top of 9343 # tests/bindir.at for full details. 8128 9344 tdlname=$dlname 8129 9345 case $host,$output,$installed,$module,$dlname in 8130 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; 9346 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) 9347 # If a -bindir argument was supplied, place the dll there. 9348 if test "x$bindir" != x ; 9349 then 9350 func_relative_path "$install_libdir" "$bindir" 9351 tdlname=$func_relative_path_result$dlname 9352 else 9353 # Otherwise fall back on heuristic. 9354 tdlname=../bin/$dlname 9355 fi 9356 ;; 8131 9357 esac 8132 9358 $ECHO > $output "\ … … 8187 9413 } 8188 9414 8189 { test "$ mode" = link || test "$mode" = relink; } &&9415 { test "$opt_mode" = link || test "$opt_mode" = relink; } && 8190 9416 func_mode_link ${1+"$@"} 8191 9417 … … 8207 9433 do 8208 9434 case $arg in 8209 -f) RM="$RM$arg"; rmforce=yes ;;8210 -*) RM="$RM$arg" ;;8211 *) f iles="$files$arg" ;;9435 -f) func_append RM " $arg"; rmforce=yes ;; 9436 -*) func_append RM " $arg" ;; 9437 *) func_append files " $arg" ;; 8212 9438 esac 8213 9439 done … … 8218 9444 rmdirs= 8219 9445 8220 origobjdir="$objdir"8221 9446 for file in $files; do 8222 9447 func_dirname "$file" "" "." 8223 9448 dir="$func_dirname_result" 8224 9449 if test "X$dir" = X.; then 8225 o bjdir="$origobjdir"9450 odir="$objdir" 8226 9451 else 8227 o bjdir="$dir/$origobjdir"9452 odir="$dir/$objdir" 8228 9453 fi 8229 9454 func_basename "$file" 8230 9455 name="$func_basename_result" 8231 test "$ mode" = uninstall && objdir="$dir"8232 8233 # Remember o bjdir for removal later, being careful to avoid duplicates8234 if test "$ mode" = clean; then9456 test "$opt_mode" = uninstall && odir="$dir" 9457 9458 # Remember odir for removal later, being careful to avoid duplicates 9459 if test "$opt_mode" = clean; then 8235 9460 case " $rmdirs " in 8236 *" $o bjdir "*) ;;8237 *) rmdirs="$rmdirs $objdir" ;;9461 *" $odir "*) ;; 9462 *) func_append rmdirs " $odir" ;; 8238 9463 esac 8239 9464 fi … … 8261 9486 # Delete the libtool libraries and symlinks. 8262 9487 for n in $library_names; do 8263 rmfiles="$rmfiles $objdir/$n"9488 func_append rmfiles " $odir/$n" 8264 9489 done 8265 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"8266 8267 case "$ mode" in9490 test -n "$old_library" && func_append rmfiles " $odir/$old_library" 9491 9492 case "$opt_mode" in 8268 9493 clean) 8269 case " $library_names " in 8270 # " " in the beginning catches empty $dlname 9494 case " $library_names " in 8271 9495 *" $dlname "*) ;; 8272 *) rmfiles="$rmfiles $objdir/$dlname" ;;9496 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; 8273 9497 esac 8274 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"9498 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" 8275 9499 ;; 8276 9500 uninstall) … … 8300 9524 if test -n "$pic_object" && 8301 9525 test "$pic_object" != none; then 8302 rmfiles="$rmfiles$dir/$pic_object"9526 func_append rmfiles " $dir/$pic_object" 8303 9527 fi 8304 9528 … … 8306 9530 if test -n "$non_pic_object" && 8307 9531 test "$non_pic_object" != none; then 8308 rmfiles="$rmfiles$dir/$non_pic_object"9532 func_append rmfiles " $dir/$non_pic_object" 8309 9533 fi 8310 9534 fi … … 8312 9536 8313 9537 *) 8314 if test "$ mode" = clean ; then9538 if test "$opt_mode" = clean ; then 8315 9539 noexename=$name 8316 9540 case $file in … … 8322 9546 # $file with .exe has already been added to rmfiles, 8323 9547 # add $file without .exe 8324 rmfiles="$rmfiles$file"9548 func_append rmfiles " $file" 8325 9549 ;; 8326 9550 esac … … 8331 9555 relink_command= 8332 9556 func_source $func_ltwrapper_scriptname_result 8333 rmfiles="$rmfiles$func_ltwrapper_scriptname_result"9557 func_append rmfiles " $func_ltwrapper_scriptname_result" 8334 9558 else 8335 9559 relink_command= … … 8339 9563 # note $name still contains .exe if it was in $file originally 8340 9564 # as does the version of $file that was added into $rmfiles 8341 rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"9565 func_append rmfiles " $odir/$name $odir/${name}S.${objext}" 8342 9566 if test "$fast_install" = yes && test -n "$relink_command"; then 8343 rmfiles="$rmfiles $objdir/lt-$name"9567 func_append rmfiles " $odir/lt-$name" 8344 9568 fi 8345 9569 if test "X$noexename" != "X$name" ; then 8346 rmfiles="$rmfiles $objdir/lt-${noexename}.c"9570 func_append rmfiles " $odir/lt-${noexename}.c" 8347 9571 fi 8348 9572 fi … … 8352 9576 func_show_eval "$RM $rmfiles" 'exit_status=1' 8353 9577 done 8354 objdir="$origobjdir"8355 9578 8356 9579 # Try to remove the ${objdir}s in the directories where we deleted files … … 8364 9587 } 8365 9588 8366 { test "$ mode" = uninstall || test "$mode" = clean; } &&9589 { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } && 8367 9590 func_mode_uninstall ${1+"$@"} 8368 9591 8369 test -z "$ mode" && {9592 test -z "$opt_mode" && { 8370 9593 help="$generic_help" 8371 9594 func_fatal_help "you must specify a MODE" … … 8373 9596 8374 9597 test -z "$exec_cmd" && \ 8375 func_fatal_help "invalid operation mode \`$ mode'"9598 func_fatal_help "invalid operation mode \`$opt_mode'" 8376 9599 8377 9600 if test -n "$exec_cmd"; then -
trunk/FACT++/.macro_dir/libtool.m4
r10183 r12832 2 2 # 3 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 4 # 2006, 2007, 2008 Free Software Foundation, Inc. 4 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 5 # Inc. 5 6 # Written by Gordon Matzigkeit, 1996 6 7 # … … 11 12 m4_define([_LT_COPYING], [dnl 12 13 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13 # 2006, 2007, 2008 Free Software Foundation, Inc. 14 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 15 # Inc. 14 16 # Written by Gordon Matzigkeit, 1996 15 17 # … … 38 40 ]) 39 41 40 # serial 5 6LT_INIT42 # serial 57 LT_INIT 41 43 42 44 … … 67 69 AC_DEFUN([LT_INIT], 68 70 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT 71 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 69 72 AC_BEFORE([$0], [LT_LANG])dnl 70 73 AC_BEFORE([$0], [LT_OUTPUT])dnl … … 82 85 AC_REQUIRE([LTOBSOLETE_VERSION])dnl 83 86 m4_require([_LT_PROG_LTMAIN])dnl 87 88 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) 84 89 85 90 dnl Parse OPTIONS … … 119 124 esac 120 125 done 121 cc_basename=`$ECHO " X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`126 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 122 127 ]) 123 128 … … 139 144 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 140 145 AC_REQUIRE([AC_CANONICAL_BUILD])dnl 146 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl 147 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 148 141 149 _LT_DECL([], [host_alias], [0], [The host system])dnl 142 150 _LT_DECL([], [host], [0])dnl … … 161 169 m4_require([_LT_FILEUTILS_DEFAULTS])dnl 162 170 m4_require([_LT_CHECK_SHELL_FEATURES])dnl 171 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl 163 172 m4_require([_LT_CMD_RELOAD])dnl 164 173 m4_require([_LT_CHECK_MAGIC_METHOD])dnl 174 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl 165 175 m4_require([_LT_CMD_OLD_ARCHIVE])dnl 166 176 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 177 m4_require([_LT_WITH_SYSROOT])dnl 167 178 168 179 _LT_CONFIG_LIBTOOL_INIT([ … … 180 191 181 192 m4_require([_LT_TAG_COMPILER])dnl 182 _LT_PROG_ECHO_BACKSLASH183 193 184 194 case $host_os in … … 194 204 esac 195 205 196 # Sed substitution that helps us do robust quoting. It backslashifies197 # metacharacters that are still active within double-quoted strings.198 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'199 200 # Same as above, but do not quote variable references.201 double_quote_subst='s/\([["`\\]]\)/\\\1/g'202 203 # Sed substitution to delay expansion of an escaped shell variable in a204 # double_quote_subst'ed string.205 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'206 207 # Sed substitution to delay expansion of an escaped single quote.208 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'209 210 # Sed substitution to avoid accidental globbing in evaled expressions211 no_glob_subst='s/\*/\\\*/g'212 213 206 # Global variables: 214 207 ofile=libtool … … 250 243 ])# _LT_SETUP 251 244 245 246 # _LT_PREPARE_SED_QUOTE_VARS 247 # -------------------------- 248 # Define a few sed substitution that help us do robust quoting. 249 m4_defun([_LT_PREPARE_SED_QUOTE_VARS], 250 [# Backslashify metacharacters that are still active within 251 # double-quoted strings. 252 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 253 254 # Same as above, but do not quote variable references. 255 double_quote_subst='s/\([["`\\]]\)/\\\1/g' 256 257 # Sed substitution to delay expansion of an escaped shell variable in a 258 # double_quote_subst'ed string. 259 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 260 261 # Sed substitution to delay expansion of an escaped single quote. 262 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 263 264 # Sed substitution to avoid accidental globbing in evaled expressions 265 no_glob_subst='s/\*/\\\*/g' 266 ]) 252 267 253 268 # _LT_PROG_LTMAIN … … 409 424 # must have a single quote delimited value for this to work. 410 425 m4_define([_LT_CONFIG_STATUS_DECLARE], 411 [$1='`$ECHO " X$][$1" | $Xsed -e"$delay_single_quote_subst"`'])426 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) 412 427 413 428 … … 419 434 # each variable declared with _LT_DECL (and _LT_TAGDECL) into: 420 435 # 421 # <var>='`$ECHO " X$<var>" | $Xsed -e"$delay_single_quote_subst"`'436 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' 422 437 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 423 438 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), … … 518 533 compiler='$compiler_DEFAULT' 519 534 535 # A function that is used when there is no print builtin or printf. 536 func_fallback_echo () 537 { 538 eval 'cat <<_LTECHO_EOF 539 \$[]1 540 _LTECHO_EOF' 541 } 542 520 543 # Quote evaled strings. 521 544 for var in lt_decl_all_varnames([[ \ 522 545 ]], lt_decl_quote_varnames); do 523 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in546 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 524 547 *[[\\\\\\\`\\"\\\$]]*) 525 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\" X\\\$\$var\\" | \\\$Xsed -e\\"\\\$sed_quote_subst\\"\\\`\\\\\\""548 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 526 549 ;; 527 550 *) … … 534 557 for var in lt_decl_all_varnames([[ \ 535 558 ]], lt_decl_dquote_varnames); do 536 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in559 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 537 560 *[[\\\\\\\`\\"\\\$]]*) 538 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\" X\\\$\$var\\" | \\\$Xsed-e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""561 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 539 562 ;; 540 563 *) … … 544 567 done 545 568 546 # Fix-up fallback echo if it was mangled by the above quoting rules.547 case \$lt_ECHO in548 *'\\\[$]0 --fallback-echo"')dnl "549 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`550 ;;551 esac552 553 569 _LT_OUTPUT_LIBTOOL_INIT 554 570 ]) 555 571 572 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) 573 # ------------------------------------ 574 # Generate a child script FILE with all initialization necessary to 575 # reuse the environment learned by the parent script, and make the 576 # file executable. If COMMENT is supplied, it is inserted after the 577 # `#!' sequence but before initialization text begins. After this 578 # macro, additional text can be appended to FILE to form the body of 579 # the child script. The macro ends with non-zero status if the 580 # file could not be fully written (such as if the disk is full). 581 m4_ifdef([AS_INIT_GENERATED], 582 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], 583 [m4_defun([_LT_GENERATED_FILE_INIT], 584 [m4_require([AS_PREPARE])]dnl 585 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl 586 [lt_write_fail=0 587 cat >$1 <<_ASEOF || lt_write_fail=1 588 #! $SHELL 589 # Generated by $as_me. 590 $2 591 SHELL=\${CONFIG_SHELL-$SHELL} 592 export SHELL 593 _ASEOF 594 cat >>$1 <<\_ASEOF || lt_write_fail=1 595 AS_SHELL_SANITIZE 596 _AS_PREPARE 597 exec AS_MESSAGE_FD>&1 598 _ASEOF 599 test $lt_write_fail = 0 && chmod +x $1[]dnl 600 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT 556 601 557 602 # LT_OUTPUT … … 563 608 [: ${CONFIG_LT=./config.lt} 564 609 AC_MSG_NOTICE([creating $CONFIG_LT]) 565 cat >"$CONFIG_LT" <<_LTEOF 566 #! $SHELL 567 # Generated by $as_me. 568 # Run this file to recreate a libtool stub with the current configuration. 569 610 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], 611 [# Run this file to recreate a libtool stub with the current configuration.]) 612 613 cat >>"$CONFIG_LT" <<\_LTEOF 570 614 lt_cl_silent=false 571 SHELL=\${CONFIG_SHELL-$SHELL}572 _LTEOF573 574 cat >>"$CONFIG_LT" <<\_LTEOF575 AS_SHELL_SANITIZE576 _AS_PREPARE577 578 exec AS_MESSAGE_FD>&1579 615 exec AS_MESSAGE_LOG_FD>>config.log 580 616 { … … 602 638 configured by $[0], generated by m4_PACKAGE_STRING. 603 639 604 Copyright (C) 20 08Free Software Foundation, Inc.640 Copyright (C) 2010 Free Software Foundation, Inc. 605 641 This config.lt script is free software; the Free Software Foundation 606 642 gives unlimited permision to copy, distribute and modify it." … … 647 683 # open by configure. Here we exec the FD to /dev/null, effectively closing 648 684 # config.log, so it can be properly (re)opened and appended to by config.lt. 649 if test "$no_create" != yes; then 650 lt_cl_success=: 651 test "$silent" = yes && 652 lt_config_lt_args="$lt_config_lt_args --quiet" 653 exec AS_MESSAGE_LOG_FD>/dev/null 654 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 655 exec AS_MESSAGE_LOG_FD>>config.log 656 $lt_cl_success || AS_EXIT(1) 657 fi 685 lt_cl_success=: 686 test "$silent" = yes && 687 lt_config_lt_args="$lt_config_lt_args --quiet" 688 exec AS_MESSAGE_LOG_FD>/dev/null 689 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 690 exec AS_MESSAGE_LOG_FD>>config.log 691 $lt_cl_success || AS_EXIT(1) 658 692 ])# LT_OUTPUT 659 693 … … 718 752 # text mode, it properly converts lines to CR/LF. This bash problem 719 753 # is reportedly fixed, but why not run on old versions too? 720 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 721 || (rm -f "$cfgfile"; exit 1) 722 723 _LT_PROG_XSI_SHELLFNS 724 725 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 726 || (rm -f "$cfgfile"; exit 1) 727 728 mv -f "$cfgfile" "$ofile" || 754 sed '$q' "$ltmain" >> "$cfgfile" \ 755 || (rm -f "$cfgfile"; exit 1) 756 757 _LT_PROG_REPLACE_SHELLFNS 758 759 mv -f "$cfgfile" "$ofile" || 729 760 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 730 761 chmod +x "$ofile" … … 832 863 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 833 864 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 865 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) 834 866 dnl aclocal-1.4 backwards compatibility: 835 867 dnl AC_DEFUN([AC_LIBTOOL_CXX], []) … … 837 869 dnl AC_DEFUN([AC_LIBTOOL_FC], []) 838 870 dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 871 dnl AC_DEFUN([AC_LIBTOOL_RC], []) 839 872 840 873 … … 941 974 LDFLAGS="$save_LDFLAGS" 942 975 ]) 976 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], 977 [lt_cv_ld_force_load=no 978 cat > conftest.c << _LT_EOF 979 int forced_loaded() { return 2;} 980 _LT_EOF 981 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD 982 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD 983 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD 984 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD 985 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD 986 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD 987 cat > conftest.c << _LT_EOF 988 int main() { return 0;} 989 _LT_EOF 990 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD 991 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 992 _lt_result=$? 993 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 994 lt_cv_ld_force_load=yes 995 else 996 cat conftest.err >&AS_MESSAGE_LOG_FD 997 fi 998 rm -f conftest.err libconftest.a conftest conftest.c 999 rm -rf conftest.dSYM 1000 ]) 943 1001 case $host_os in 944 1002 rhapsody* | darwin1.[[012]]) … … 968 1026 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 969 1027 fi 970 if test "$DSYMUTIL" != ":" ; then1028 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 971 1029 _lt_dsymutil='~$DSYMUTIL $lib || :' 972 1030 else … … 988 1046 _LT_TAGVAR(hardcode_automatic, $1)=yes 989 1047 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 990 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 1048 if test "$lt_cv_ld_force_load" = "yes"; then 1049 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 1050 else 1051 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 1052 fi 991 1053 _LT_TAGVAR(link_all_deplibs, $1)=yes 992 1054 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" … … 996 1058 esac 997 1059 if test "$_lt_dar_can_shared" = "yes"; then 998 output_verbose_link_cmd= echo1060 output_verbose_link_cmd=func_echo_all 999 1061 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 1000 1062 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" … … 1012 1074 ]) 1013 1075 1014 # _LT_SYS_MODULE_PATH_AIX 1015 # ----------------------- 1076 # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) 1077 # ---------------------------------- 1016 1078 # Links a minimal program and checks the executable 1017 1079 # for the system default hardcoded library path. In most cases, … … 1020 1082 # If we don't find anything, use the default library path according 1021 1083 # to the aix ld manual. 1084 # Store the results from the different compilers for each TAGNAME. 1085 # Allow to override them for all tags through lt_cv_aix_libpath. 1022 1086 m4_defun([_LT_SYS_MODULE_PATH_AIX], 1023 1087 [m4_require([_LT_DECL_SED])dnl 1024 AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 1025 lt_aix_libpath_sed=' 1026 /Import File Strings/,/^$/ { 1027 /^0/ { 1028 s/^0 *\(.*\)$/\1/ 1029 p 1030 } 1031 }' 1032 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1033 # Check for a 64-bit object if we didn't find anything. 1034 if test -z "$aix_libpath"; then 1035 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1036 fi],[]) 1037 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 1088 if test "${lt_cv_aix_libpath+set}" = set; then 1089 aix_libpath=$lt_cv_aix_libpath 1090 else 1091 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], 1092 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ 1093 lt_aix_libpath_sed='[ 1094 /Import File Strings/,/^$/ { 1095 /^0/ { 1096 s/^0 *\([^ ]*\) *$/\1/ 1097 p 1098 } 1099 }]' 1100 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1101 # Check for a 64-bit object if we didn't find anything. 1102 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 1103 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1104 fi],[]) 1105 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 1106 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" 1107 fi 1108 ]) 1109 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) 1110 fi 1038 1111 ])# _LT_SYS_MODULE_PATH_AIX 1039 1112 … … 1042 1115 # ------------------- 1043 1116 m4_define([_LT_SHELL_INIT], 1044 [ifdef([AC_DIVERSION_NOTICE], 1045 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 1046 [AC_DIVERT_PUSH(NOTICE)]) 1047 $1 1048 AC_DIVERT_POP 1049 ])# _LT_SHELL_INIT 1117 [m4_divert_text([M4SH-INIT], [$1 1118 ])])# _LT_SHELL_INIT 1119 1050 1120 1051 1121 1052 1122 # _LT_PROG_ECHO_BACKSLASH 1053 1123 # ----------------------- 1054 # Add some code to the start of the generated configure script which 1055 # will find an echo command which doesn't interpret backslashes. 1124 # Find how we can fake an echo command that does not interpret backslash. 1125 # In particular, with Autoconf 2.60 or later we add some code to the start 1126 # of the generated configure script which will find a shell with a builtin 1127 # printf (which we can use as an echo command). 1056 1128 m4_defun([_LT_PROG_ECHO_BACKSLASH], 1057 [_LT_SHELL_INIT([ 1058 # Check that we are running under the correct shell. 1059 SHELL=${CONFIG_SHELL-/bin/sh} 1060 1061 case X$lt_ECHO in 1062 X*--fallback-echo) 1063 # Remove one level of quotation (which was required for Make). 1064 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 1065 ;; 1129 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 1130 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 1131 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 1132 1133 AC_MSG_CHECKING([how to print strings]) 1134 # Test print first, because it will be a builtin if present. 1135 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 1136 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 1137 ECHO='print -r --' 1138 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 1139 ECHO='printf %s\n' 1140 else 1141 # Use this function as a fallback that always works. 1142 func_fallback_echo () 1143 { 1144 eval 'cat <<_LTECHO_EOF 1145 $[]1 1146 _LTECHO_EOF' 1147 } 1148 ECHO='func_fallback_echo' 1149 fi 1150 1151 # func_echo_all arg... 1152 # Invoke $ECHO with all args, space-separated. 1153 func_echo_all () 1154 { 1155 $ECHO "$*" 1156 } 1157 1158 case "$ECHO" in 1159 printf*) AC_MSG_RESULT([printf]) ;; 1160 print*) AC_MSG_RESULT([print -r]) ;; 1161 *) AC_MSG_RESULT([cat]) ;; 1066 1162 esac 1067 1163 1068 ECHO=${lt_ECHO-echo} 1069 if test "X[$]1" = X--no-reexec; then 1070 # Discard the --no-reexec flag, and continue. 1071 shift 1072 elif test "X[$]1" = X--fallback-echo; then 1073 # Avoid inline document here, it may be left over 1074 : 1075 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 1076 # Yippee, $ECHO works! 1077 : 1078 else 1079 # Restart under the correct shell. 1080 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 1081 fi 1082 1083 if test "X[$]1" = X--fallback-echo; then 1084 # used as fallback echo 1085 shift 1086 cat <<_LT_EOF 1087 [$]* 1088 _LT_EOF 1089 exit 0 1090 fi 1091 1092 # The HP-UX ksh and POSIX shell print the target directory to stdout 1093 # if CDPATH is set. 1094 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1095 1096 if test -z "$lt_ECHO"; then 1097 if test "X${echo_test_string+set}" != Xset; then 1098 # find a string as large as possible, as long as the shell can cope with it 1099 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 1100 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 1101 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 1102 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 1103 then 1104 break 1105 fi 1106 done 1107 fi 1108 1109 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 1110 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 1111 test "X$echo_testing_string" = "X$echo_test_string"; then 1112 : 1113 else 1114 # The Solaris, AIX, and Digital Unix default echo programs unquote 1115 # backslashes. This makes it impossible to quote backslashes using 1116 # echo "$something" | sed 's/\\/\\\\/g' 1117 # 1118 # So, first we look for a working echo in the user's PATH. 1119 1120 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 1121 for dir in $PATH /usr/ucb; do 1122 IFS="$lt_save_ifs" 1123 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 1124 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 1125 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 1126 test "X$echo_testing_string" = "X$echo_test_string"; then 1127 ECHO="$dir/echo" 1128 break 1129 fi 1130 done 1131 IFS="$lt_save_ifs" 1132 1133 if test "X$ECHO" = Xecho; then 1134 # We didn't find a better echo, so look for alternatives. 1135 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 1136 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 1137 test "X$echo_testing_string" = "X$echo_test_string"; then 1138 # This shell has a builtin print -r that does the trick. 1139 ECHO='print -r' 1140 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 1141 test "X$CONFIG_SHELL" != X/bin/ksh; then 1142 # If we have ksh, try running configure again with it. 1143 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 1144 export ORIGINAL_CONFIG_SHELL 1145 CONFIG_SHELL=/bin/ksh 1146 export CONFIG_SHELL 1147 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 1148 else 1149 # Try using printf. 1150 ECHO='printf %s\n' 1151 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 1152 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 1153 test "X$echo_testing_string" = "X$echo_test_string"; then 1154 # Cool, printf works 1155 : 1156 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 1157 test "X$echo_testing_string" = 'X\t' && 1158 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 1159 test "X$echo_testing_string" = "X$echo_test_string"; then 1160 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 1161 export CONFIG_SHELL 1162 SHELL="$CONFIG_SHELL" 1163 export SHELL 1164 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 1165 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 1166 test "X$echo_testing_string" = 'X\t' && 1167 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 1168 test "X$echo_testing_string" = "X$echo_test_string"; then 1169 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 1170 else 1171 # maybe with a smaller string... 1172 prev=: 1173 1174 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 1175 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 1176 then 1177 break 1178 fi 1179 prev="$cmd" 1180 done 1181 1182 if test "$prev" != 'sed 50q "[$]0"'; then 1183 echo_test_string=`eval $prev` 1184 export echo_test_string 1185 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 1186 else 1187 # Oops. We lost completely, so just stick with echo. 1188 ECHO=echo 1189 fi 1190 fi 1191 fi 1192 fi 1193 fi 1194 fi 1195 1196 # Copy echo and quote the copy suitably for passing to libtool from 1197 # the Makefile, instead of quoting the original, which is used later. 1198 lt_ECHO=$ECHO 1199 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 1200 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 1201 fi 1202 1203 AC_SUBST(lt_ECHO) 1204 ]) 1164 m4_ifdef([_AS_DETECT_SUGGESTED], 1165 [_AS_DETECT_SUGGESTED([ 1166 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( 1167 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 1168 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 1169 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 1170 PATH=/empty FPATH=/empty; export PATH FPATH 1171 test "X`printf %s $ECHO`" = "X$ECHO" \ 1172 || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) 1173 1205 1174 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 1206 _LT_DECL([], [ECHO], [1], 1207 [An echo program that does not interpret backslashes]) 1175 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) 1208 1176 ])# _LT_PROG_ECHO_BACKSLASH 1209 1177 1178 1179 # _LT_WITH_SYSROOT 1180 # ---------------- 1181 AC_DEFUN([_LT_WITH_SYSROOT], 1182 [AC_MSG_CHECKING([for sysroot]) 1183 AC_ARG_WITH([sysroot], 1184 [ --with-sysroot[=DIR] Search for dependent libraries within DIR 1185 (or the compiler's sysroot if not specified).], 1186 [], [with_sysroot=no]) 1187 1188 dnl lt_sysroot will always be passed unquoted. We quote it here 1189 dnl in case the user passed a directory name. 1190 lt_sysroot= 1191 case ${with_sysroot} in #( 1192 yes) 1193 if test "$GCC" = yes; then 1194 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 1195 fi 1196 ;; #( 1197 /*) 1198 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 1199 ;; #( 1200 no|'') 1201 ;; #( 1202 *) 1203 AC_MSG_RESULT([${with_sysroot}]) 1204 AC_MSG_ERROR([The sysroot must be an absolute path.]) 1205 ;; 1206 esac 1207 1208 AC_MSG_RESULT([${lt_sysroot:-no}]) 1209 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl 1210 [dependent libraries, and in which our libraries should be installed.])]) 1210 1211 1211 1212 # _LT_ENABLE_LOCK … … 1237 1238 *-*-irix6*) 1238 1239 # Find out which ABI we are using. 1239 echo '[#]line __oline__"configure"' > conftest.$ac_ext1240 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 1240 1241 if AC_TRY_EVAL(ac_compile); then 1241 1242 if test "$lt_cv_prog_gnu_ld" = yes; then … … 1355 1356 1356 1357 1358 # _LT_PROG_AR 1359 # ----------- 1360 m4_defun([_LT_PROG_AR], 1361 [AC_CHECK_TOOLS(AR, [ar], false) 1362 : ${AR=ar} 1363 : ${AR_FLAGS=cru} 1364 _LT_DECL([], [AR], [1], [The archiver]) 1365 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) 1366 1367 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], 1368 [lt_cv_ar_at_file=no 1369 AC_COMPILE_IFELSE([AC_LANG_PROGRAM], 1370 [echo conftest.$ac_objext > conftest.lst 1371 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' 1372 AC_TRY_EVAL([lt_ar_try]) 1373 if test "$ac_status" -eq 0; then 1374 # Ensure the archiver fails upon bogus file names. 1375 rm -f conftest.$ac_objext libconftest.a 1376 AC_TRY_EVAL([lt_ar_try]) 1377 if test "$ac_status" -ne 0; then 1378 lt_cv_ar_at_file=@ 1379 fi 1380 fi 1381 rm -f conftest.* libconftest.a 1382 ]) 1383 ]) 1384 1385 if test "x$lt_cv_ar_at_file" = xno; then 1386 archiver_list_spec= 1387 else 1388 archiver_list_spec=$lt_cv_ar_at_file 1389 fi 1390 _LT_DECL([], [archiver_list_spec], [1], 1391 [How to feed a file listing to the archiver]) 1392 ])# _LT_PROG_AR 1393 1394 1357 1395 # _LT_CMD_OLD_ARCHIVE 1358 1396 # ------------------- 1359 1397 m4_defun([_LT_CMD_OLD_ARCHIVE], 1360 [AC_CHECK_TOOL(AR, ar, false) 1361 test -z "$AR" && AR=ar 1362 test -z "$AR_FLAGS" && AR_FLAGS=cru 1363 _LT_DECL([], [AR], [1], [The archiver]) 1364 _LT_DECL([], [AR_FLAGS], [1]) 1398 [_LT_PROG_AR 1365 1399 1366 1400 AC_CHECK_TOOL(STRIP, strip, :) … … 1389 1423 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 1390 1424 fi 1425 1426 case $host_os in 1427 darwin*) 1428 lock_old_archive_extraction=yes ;; 1429 *) 1430 lock_old_archive_extraction=no ;; 1431 esac 1391 1432 _LT_DECL([], [old_postinstall_cmds], [2]) 1392 1433 _LT_DECL([], [old_postuninstall_cmds], [2]) 1393 1434 _LT_TAGDECL([], [old_archive_cmds], [2], 1394 1435 [Commands used to build an old-style archive]) 1436 _LT_DECL([], [lock_old_archive_extraction], [0], 1437 [Whether to use a lock for old archive extraction]) 1395 1438 ])# _LT_CMD_OLD_ARCHIVE 1396 1439 … … 1417 1460 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 1418 1461 -e 's:$: $lt_compiler_flag:'` 1419 (eval echo "\"\$as_me: __oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)1462 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 1420 1463 (eval "$lt_compile" 2>conftest.err) 1421 1464 ac_status=$? 1422 1465 cat conftest.err >&AS_MESSAGE_LOG_FD 1423 echo "$as_me: __oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD1466 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1424 1467 if (exit $ac_status) && test -s "$ac_outfile"; then 1425 1468 # The compiler can only warn and ignore the option if not recognized 1426 1469 # So say no if there are warnings other than the usual output. 1427 $ECHO " X$_lt_compiler_boilerplate" | $Xsed -e'/^$/d' >conftest.exp1470 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 1428 1471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 1429 1472 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then … … 1465 1508 # Append any errors to the config.log. 1466 1509 cat conftest.err 1>&AS_MESSAGE_LOG_FD 1467 $ECHO " X$_lt_linker_boilerplate" | $Xsed -e'/^$/d' > conftest.exp1510 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 1468 1511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 1469 1512 if diff conftest.exp conftest.er2 >/dev/null; then … … 1525 1568 # Instead, let's just punt: use the minimum linelength reported by 1526 1569 # all of the supported platforms: 8192 (on NT/2K/XP). 1570 lt_cv_sys_max_cmd_len=8192; 1571 ;; 1572 1573 mint*) 1574 # On MiNT this can take a long time and run out of memory. 1527 1575 lt_cv_sys_max_cmd_len=8192; 1528 1576 ;; … … 1592 1640 # maximum length that is only half of the actual maximum length, but 1593 1641 # we can't tell. 1594 while { test "X"` $SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \1595 = "X X$teststring$teststring"; } >/dev/null 2>&1 &&1642 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 1643 = "X$teststring$teststring"; } >/dev/null 2>&1 && 1596 1644 test $i != 17 # 1/2 MB should be enough 1597 1645 do … … 1644 1692 lt_status=$lt_dlunknown 1645 1693 cat > conftest.$ac_ext <<_LT_EOF 1646 [#line __oline__"configure"1694 [#line $LINENO "configure" 1647 1695 #include "confdefs.h" 1648 1696 … … 1685 1733 #endif 1686 1734 1687 void fnord() { int i=42;} 1735 /* When -fvisbility=hidden is used, assume the code has been annotated 1736 correspondingly for the symbols needed. */ 1737 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 1738 int fnord () __attribute__((visibility("default"))); 1739 #endif 1740 1741 int fnord () { return 42; } 1688 1742 int main () 1689 1743 { … … 1694 1748 { 1695 1749 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 1696 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 1750 else 1751 { 1752 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 1753 else puts (dlerror ()); 1754 } 1697 1755 /* dlclose (self); */ 1698 1756 } … … 1870 1928 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 1871 1929 -e 's:$: $lt_compiler_flag:'` 1872 (eval echo "\"\$as_me: __oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)1930 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 1873 1931 (eval "$lt_compile" 2>out/conftest.err) 1874 1932 ac_status=$? 1875 1933 cat out/conftest.err >&AS_MESSAGE_LOG_FD 1876 echo "$as_me: __oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD1934 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1877 1935 if (exit $ac_status) && test -s out/conftest2.$ac_objext 1878 1936 then 1879 1937 # The compiler can only warn and ignore the option if not recognized 1880 1938 # So say no if there are warnings 1881 $ECHO " X$_lt_compiler_boilerplate" | $Xsed -e'/^$/d' > out/conftest.exp1939 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 1882 1940 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 1883 1941 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then … … 2038 2096 m4_require([_LT_DECL_OBJDUMP])dnl 2039 2097 m4_require([_LT_DECL_SED])dnl 2098 m4_require([_LT_CHECK_SHELL_FEATURES])dnl 2040 2099 AC_MSG_CHECKING([dynamic linker characteristics]) 2041 2100 m4_if([$1], … … 2046 2105 *) lt_awk_arg="/^libraries:/" ;; 2047 2106 esac 2048 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 2049 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 2107 case $host_os in 2108 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; 2109 *) lt_sed_strip_eq="s,=/,/,g" ;; 2110 esac 2111 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 2112 case $lt_search_path_spec in 2113 *\;*) 2050 2114 # if the path contains ";" then we assume it to be the separator 2051 2115 # otherwise default to the standard path separator (i.e. ":") - it is 2052 2116 # assumed that no part of a normal pathname contains ";" but that should 2053 2117 # okay in the real world where ";" in dirpaths is itself problematic. 2054 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 2055 else 2056 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2057 fi 2118 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 2119 ;; 2120 *) 2121 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 2122 ;; 2123 esac 2058 2124 # Ok, now we have the path, separated by spaces, we can step through it 2059 2125 # and add multilib dir if necessary. … … 2068 2134 fi 2069 2135 done 2070 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec| awk '2136 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 2071 2137 BEGIN {RS=" "; FS="/|\n";} { 2072 2138 lt_foo=""; … … 2088 2154 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 2089 2155 }'` 2090 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 2156 # AWK program above erroneously prepends '/' to C:/dos/paths 2157 # for these hosts. 2158 case $host_os in 2159 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 2160 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; 2161 esac 2162 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 2091 2163 else 2092 2164 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" … … 2176 2248 library_names_spec='$libname.ixlibrary $libname.a' 2177 2249 # Create ${libname}_ixlibrary.a entries in /sys/libs. 2178 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=` $ECHO "X$lib" | $Xsed -e'\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'2250 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 2179 2251 ;; 2180 2252 esac … … 2207 2279 need_lib_prefix=no 2208 2280 2209 case $GCC,$host_os in 2210 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 2281 case $GCC,$cc_basename in 2282 yes,*) 2283 # gcc 2211 2284 library_names_spec='$libname.dll.a' 2212 2285 # DLL is installed to $(libdir)/../bin by postinstall_cmds … … 2229 2302 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 2230 2303 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2231 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 2304 m4_if([$1], [],[ 2305 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) 2232 2306 ;; 2233 2307 mingw* | cegcc*) 2234 2308 # MinGW DLLs use traditional 'lib' prefix 2235 2309 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2236 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`2237 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then2238 # It is most probably a Windows format PATH printed by2239 # mingw gcc, but we are running on Cygwin. Gcc prints its search2240 # path with ; separators, and with drive letters. We can handle the2241 # drive letters (cygwin fileutils understands them), so leave them,2242 # especially as we might pass files found there to a mingw objdump,2243 # which wouldn't understand a cygwinified path. Ahh.2244 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`2245 else2246 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`2247 fi2248 2310 ;; 2249 2311 pw32*) … … 2252 2314 ;; 2253 2315 esac 2316 dynamic_linker='Win32 ld.exe' 2254 2317 ;; 2255 2318 2319 *,cl*) 2320 # Native MSVC 2321 libname_spec='$name' 2322 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2323 library_names_spec='${libname}.dll.lib' 2324 2325 case $build_os in 2326 mingw*) 2327 sys_lib_search_path_spec= 2328 lt_save_ifs=$IFS 2329 IFS=';' 2330 for lt_path in $LIB 2331 do 2332 IFS=$lt_save_ifs 2333 # Let DOS variable expansion print the short 8.3 style file name. 2334 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 2335 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 2336 done 2337 IFS=$lt_save_ifs 2338 # Convert to MSYS style. 2339 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` 2340 ;; 2341 cygwin*) 2342 # Convert to unix form, then to dos form, then back to unix form 2343 # but this time dos style (no spaces!) so that the unix form looks 2344 # like /cygdrive/c/PROGRA~1:/cygdr... 2345 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 2346 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 2347 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2348 ;; 2349 *) 2350 sys_lib_search_path_spec="$LIB" 2351 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 2352 # It is most probably a Windows format PATH. 2353 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 2354 else 2355 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2356 fi 2357 # FIXME: find the short name or the path components, as spaces are 2358 # common. (e.g. "Program Files" -> "PROGRA~1") 2359 ;; 2360 esac 2361 2362 # DLL is installed to $(libdir)/../bin by postinstall_cmds 2363 postinstall_cmds='base_file=`basename \${file}`~ 2364 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 2365 dldir=$destdir/`dirname \$dlpath`~ 2366 test -d \$dldir || mkdir -p \$dldir~ 2367 $install_prog $dir/$dlname \$dldir/$dlname' 2368 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 2369 dlpath=$dir/\$dldll~ 2370 $RM \$dlpath' 2371 shlibpath_overrides_runpath=yes 2372 dynamic_linker='Win32 link.exe' 2373 ;; 2374 2256 2375 *) 2376 # Assume MSVC wrapper 2257 2377 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 2378 dynamic_linker='Win32 ld.exe' 2258 2379 ;; 2259 2380 esac 2260 dynamic_linker='Win32 ld.exe'2261 2381 # FIXME: first we should search . and the directory the executable is in 2262 2382 shlibpath_var=PATH … … 2342 2462 soname_spec='${libname}${release}${shared_ext}$major' 2343 2463 shlibpath_var=LD_LIBRARY_PATH 2464 shlibpath_overrides_runpath=no 2465 hardcode_into_libs=yes 2466 ;; 2467 2468 haiku*) 2469 version_type=linux 2470 need_lib_prefix=no 2471 need_version=no 2472 dynamic_linker="$host_os runtime_loader" 2473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 2474 soname_spec='${libname}${release}${shared_ext}$major' 2475 shlibpath_var=LIBRARY_PATH 2476 shlibpath_overrides_runpath=yes 2477 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 2344 2478 hardcode_into_libs=yes 2345 2479 ;; … … 2387 2521 ;; 2388 2522 esac 2389 # HP-UX runs *really* slowly unless shared libraries are mode 555 .2523 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 2390 2524 postinstall_cmds='chmod 555 $lib' 2525 # or fails outright, so override atomically: 2526 install_override_mode=555 2391 2527 ;; 2392 2528 … … 2455 2591 shlibpath_var=LD_LIBRARY_PATH 2456 2592 shlibpath_overrides_runpath=no 2593 2457 2594 # Some binutils ld are patched to set DT_RUNPATH 2458 save_LDFLAGS=$LDFLAGS 2459 save_libdir=$libdir 2460 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 2461 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 2462 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 2463 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 2464 [shlibpath_overrides_runpath=yes])]) 2465 LDFLAGS=$save_LDFLAGS 2466 libdir=$save_libdir 2595 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], 2596 [lt_cv_shlibpath_overrides_runpath=no 2597 save_LDFLAGS=$LDFLAGS 2598 save_libdir=$libdir 2599 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 2600 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 2601 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 2602 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 2603 [lt_cv_shlibpath_overrides_runpath=yes])]) 2604 LDFLAGS=$save_LDFLAGS 2605 libdir=$save_libdir 2606 ]) 2607 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 2467 2608 2468 2609 # This implies no fast_install, which is unacceptable. … … 2473 2614 # Append ld.so.conf contents to the search path 2474 2615 if test -f /etc/ld.so.conf; then 2475 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g; /^$/d' | tr '\n' ' '`2616 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 2476 2617 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 2477 2618 fi … … 2718 2859 _LT_DECL([], [soname_spec], [1], 2719 2860 [[The coded name of the library, if different from the real name]]) 2861 _LT_DECL([], [install_override_mode], [1], 2862 [Permission mode override for installation of shared libraries]) 2720 2863 _LT_DECL([], [postinstall_cmds], [2], 2721 2864 [Command to use after installation of a shared archive]) … … 2830 2973 m4_require([_LT_DECL_SED])dnl 2831 2974 m4_require([_LT_DECL_EGREP])dnl 2975 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl 2832 2976 2833 2977 AC_ARG_WITH([gnu-ld], … … 2951 3095 reload_cmds='$LD$reload_flag -o $output$reload_objs' 2952 3096 case $host_os in 3097 cygwin* | mingw* | pw32* | cegcc*) 3098 if test "$GCC" != yes; then 3099 reload_cmds=false 3100 fi 3101 ;; 2953 3102 darwin*) 2954 3103 if test "$GCC" = yes; then … … 2959 3108 ;; 2960 3109 esac 2961 _LT_ DECL([], [reload_flag], [1], [How to create reloadable object files])dnl2962 _LT_ DECL([], [reload_cmds], [2])dnl3110 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl 3111 _LT_TAGDECL([], [reload_cmds], [2])dnl 2963 3112 ])# _LT_CMD_RELOAD 2964 3113 … … 3012 3161 # func_win32_libid shell function, so use a weaker test based on 'objdump', 3013 3162 # unless we find 'file', for example because we are cross-compiling. 3014 if ( file / ) >/dev/null 2>&1; then 3163 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 3164 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 3015 3165 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3016 3166 lt_cv_file_magic_cmd='func_win32_libid' 3017 3167 else 3018 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3168 # Keep this pattern in sync with the one in func_win32_libid. 3169 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 3019 3170 lt_cv_file_magic_cmd='$OBJDUMP -f' 3020 3171 fi 3021 3172 ;; 3022 3173 3023 cegcc )3174 cegcc*) 3024 3175 # use the weaker test based on 'objdump'. See mingw*. 3025 3176 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' … … 3051 3202 ;; 3052 3203 3204 haiku*) 3205 lt_cv_deplibs_check_method=pass_all 3206 ;; 3207 3053 3208 hpux10.20* | hpux11*) 3054 3209 lt_cv_file_magic_cmd=/usr/bin/file … … 3059 3214 ;; 3060 3215 hppa*64*) 3061 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF -[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']3216 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] 3062 3217 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3063 3218 ;; 3064 3219 *) 3065 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]] .[[0-9]]) shared library'3220 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' 3066 3221 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3067 3222 ;; … … 3163 3318 esac 3164 3319 ]) 3320 3321 file_magic_glob= 3322 want_nocaseglob=no 3323 if test "$build" = "$host"; then 3324 case $host_os in 3325 mingw* | pw32*) 3326 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 3327 want_nocaseglob=yes 3328 else 3329 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` 3330 fi 3331 ;; 3332 esac 3333 fi 3334 3165 3335 file_magic_cmd=$lt_cv_file_magic_cmd 3166 3336 deplibs_check_method=$lt_cv_deplibs_check_method … … 3170 3340 [Method to check whether dependent libraries are shared objects]) 3171 3341 _LT_DECL([], [file_magic_cmd], [1], 3172 [Command to use when deplibs_check_method == "file_magic"]) 3342 [Command to use when deplibs_check_method = "file_magic"]) 3343 _LT_DECL([], [file_magic_glob], [1], 3344 [How to find potential files when deplibs_check_method = "file_magic"]) 3345 _LT_DECL([], [want_nocaseglob], [1], 3346 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) 3173 3347 ])# _LT_CHECK_MAGIC_METHOD 3174 3348 … … 3227 3401 else 3228 3402 # Didn't find any BSD compatible name lister, look for dumpbin. 3229 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) 3403 if test -n "$DUMPBIN"; then : 3404 # Let the user override the test. 3405 else 3406 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) 3407 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 3408 *COFF*) 3409 DUMPBIN="$DUMPBIN -symbols" 3410 ;; 3411 *) 3412 DUMPBIN=: 3413 ;; 3414 esac 3415 fi 3230 3416 AC_SUBST([DUMPBIN]) 3231 3417 if test "$DUMPBIN" != ":"; then … … 3240 3426 [lt_cv_nm_interface="BSD nm" 3241 3427 echo "int some_variable = 0;" > conftest.$ac_ext 3242 (eval echo "\"\$as_me: __oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)3428 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 3243 3429 (eval "$ac_compile" 2>conftest.err) 3244 3430 cat conftest.err >&AS_MESSAGE_LOG_FD 3245 (eval echo "\"\$as_me: __oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)3431 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 3246 3432 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 3247 3433 cat conftest.err >&AS_MESSAGE_LOG_FD 3248 (eval echo "\"\$as_me: __oline__: output\"" >&AS_MESSAGE_LOG_FD)3434 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) 3249 3435 cat conftest.out >&AS_MESSAGE_LOG_FD 3250 3436 if $GREP 'External.*some_variable' conftest.out > /dev/null; then … … 3260 3446 dnl AC_DEFUN([AM_PROG_NM], []) 3261 3447 dnl AC_DEFUN([AC_PROG_NM], []) 3448 3449 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB 3450 # -------------------------------- 3451 # how to determine the name of the shared library 3452 # associated with a specific link library. 3453 # -- PORTME fill in with the dynamic library characteristics 3454 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], 3455 [m4_require([_LT_DECL_EGREP]) 3456 m4_require([_LT_DECL_OBJDUMP]) 3457 m4_require([_LT_DECL_DLLTOOL]) 3458 AC_CACHE_CHECK([how to associate runtime and link libraries], 3459 lt_cv_sharedlib_from_linklib_cmd, 3460 [lt_cv_sharedlib_from_linklib_cmd='unknown' 3461 3462 case $host_os in 3463 cygwin* | mingw* | pw32* | cegcc*) 3464 # two different shell functions defined in ltmain.sh 3465 # decide which to use based on capabilities of $DLLTOOL 3466 case `$DLLTOOL --help 2>&1` in 3467 *--identify-strict*) 3468 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 3469 ;; 3470 *) 3471 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 3472 ;; 3473 esac 3474 ;; 3475 *) 3476 # fallback: assume linklib IS sharedlib 3477 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 3478 ;; 3479 esac 3480 ]) 3481 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 3482 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 3483 3484 _LT_DECL([], [sharedlib_from_linklib_cmd], [1], 3485 [Command to associate shared and link libraries]) 3486 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 3487 3488 3489 # _LT_PATH_MANIFEST_TOOL 3490 # ---------------------- 3491 # locate the manifest tool 3492 m4_defun([_LT_PATH_MANIFEST_TOOL], 3493 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) 3494 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 3495 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], 3496 [lt_cv_path_mainfest_tool=no 3497 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD 3498 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 3499 cat conftest.err >&AS_MESSAGE_LOG_FD 3500 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 3501 lt_cv_path_mainfest_tool=yes 3502 fi 3503 rm -f conftest*]) 3504 if test "x$lt_cv_path_mainfest_tool" != xyes; then 3505 MANIFEST_TOOL=: 3506 fi 3507 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl 3508 ])# _LT_PATH_MANIFEST_TOOL 3262 3509 3263 3510 … … 3269 3516 LIBM= 3270 3517 case $host in 3271 *-*-beos* | *-*-c ygwin* | *-*-pw32* | *-*-darwin*)3518 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 3272 3519 # These system don't have libm, or don't need it 3273 3520 ;; … … 3297 3544 3298 3545 if test "$GCC" = yes; then 3299 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 3546 case $cc_basename in 3547 nvcc*) 3548 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; 3549 *) 3550 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; 3551 esac 3300 3552 3301 3553 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], … … 3314 3566 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 3315 3567 AC_REQUIRE([AC_PROG_CC])dnl 3568 AC_REQUIRE([AC_PROG_AWK])dnl 3316 3569 AC_REQUIRE([LT_PATH_NM])dnl 3317 3570 AC_REQUIRE([LT_PATH_LD])dnl … … 3381 3634 3382 3635 # Transform an extracted symbol line into symbol name and symbol address 3383 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) 3384 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) 3636 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" 3637 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 3385 3638 3386 3639 # Handle CRLF in mingw tool chain … … 3418 3671 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 3419 3672 fi 3673 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 3420 3674 3421 3675 # Check to see that the pipe works correctly. … … 3439 3693 # Now try to grab the symbols. 3440 3694 nlist=conftest.nm 3441 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe\> $nlist) && test -s "$nlist"; then3695 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then 3442 3696 # Try sorting and uniquifying the output. 3443 3697 if sort "$nlist" | uniq > "$nlist"T; then … … 3451 3705 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 3452 3706 cat <<_LT_EOF > conftest.$ac_ext 3707 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 3708 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 3709 /* DATA imports from DLLs on WIN32 con't be const, because runtime 3710 relocations are performed -- see ld's documentation on pseudo-relocs. */ 3711 # define LT@&t@_DLSYM_CONST 3712 #elif defined(__osf__) 3713 /* This system does not cope well with relocations in const data. */ 3714 # define LT@&t@_DLSYM_CONST 3715 #else 3716 # define LT@&t@_DLSYM_CONST const 3717 #endif 3718 3453 3719 #ifdef __cplusplus 3454 3720 extern "C" { … … 3462 3728 3463 3729 /* The mapping between symbol names and symbols. */ 3464 conststruct {3730 LT@&t@_DLSYM_CONST struct { 3465 3731 const char *name; 3466 3732 void *address; … … 3488 3754 # Now try linking the two files. 3489 3755 mv conftest.$ac_objext conftstm.$ac_objext 3490 lt_ save_LIBS="$LIBS"3491 lt_ save_CFLAGS="$CFLAGS"3756 lt_globsym_save_LIBS=$LIBS 3757 lt_globsym_save_CFLAGS=$CFLAGS 3492 3758 LIBS="conftstm.$ac_objext" 3493 3759 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" … … 3495 3761 pipe_works=yes 3496 3762 fi 3497 LIBS= "$lt_save_LIBS"3498 CFLAGS= "$lt_save_CFLAGS"3763 LIBS=$lt_globsym_save_LIBS 3764 CFLAGS=$lt_globsym_save_CFLAGS 3499 3765 else 3500 3766 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD … … 3529 3795 fi 3530 3796 3797 # Response file support. 3798 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 3799 nm_file_list_spec='@' 3800 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then 3801 nm_file_list_spec='@' 3802 fi 3803 3531 3804 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 3532 3805 [Take the output of nm and produce a listing of raw symbols and C names]) … … 3539 3812 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 3540 3813 [Transform the output of nm in a C name address pair when lib prefix is needed]) 3814 _LT_DECL([], [nm_file_list_spec], [1], 3815 [Specify filename containing input files for $NM]) 3541 3816 ]) # _LT_CMD_GLOBAL_SYMBOLS 3542 3817 … … 3550 3825 _LT_TAGVAR(lt_prog_compiler_static, $1)= 3551 3826 3552 AC_MSG_CHECKING([for $compiler option to produce PIC])3553 3827 m4_if([$1], [CXX], [ 3554 3828 # C++ specific cases for pic, static, wl, etc. … … 3600 3874 # DJGPP does not support shared libraries at all 3601 3875 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 3876 ;; 3877 haiku*) 3878 # PIC is the default for Haiku. 3879 # The "-static" flag exists, but is broken. 3880 _LT_TAGVAR(lt_prog_compiler_static, $1)= 3602 3881 ;; 3603 3882 interix[[3-9]]*) … … 3649 3928 ;; 3650 3929 esac 3930 ;; 3931 mingw* | cygwin* | os2* | pw32* | cegcc*) 3932 # This hack is so that the source file can tell whether it is being 3933 # built for inclusion in a dll (and should export symbols for example). 3934 m4_if([$1], [GCJ], [], 3935 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 3651 3936 ;; 3652 3937 dgux*) … … 3739 4024 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 3740 4025 ;; 3741 xlc* | xlC* )3742 # IBM XL 8.0 on PPC4026 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) 4027 # IBM XL 8.0, 9.0 on PPC and BlueGene 3743 4028 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3744 4029 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' … … 3802 4087 solaris*) 3803 4088 case $cc_basename in 3804 CC* )4089 CC* | sunCC*) 3805 4090 # Sun C++ 4.2, 5.x and Centerline C++ 3806 4091 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' … … 3906 4191 ;; 3907 4192 4193 haiku*) 4194 # PIC is the default for Haiku. 4195 # The "-static" flag exists, but is broken. 4196 _LT_TAGVAR(lt_prog_compiler_static, $1)= 4197 ;; 4198 3908 4199 hpux*) 3909 4200 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit … … 3946 4237 *) 3947 4238 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4239 ;; 4240 esac 4241 4242 case $cc_basename in 4243 nvcc*) # Cuda Compiler Driver 2.2 4244 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' 4245 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC' 3948 4246 ;; 3949 4247 esac … … 4011 4309 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 4012 4310 ;; 4013 pgcc* | pgf77* | pgf90* | pgf95*) 4311 nagfor*) 4312 # NAG Fortran compiler 4313 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 4314 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4315 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4316 ;; 4317 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 4014 4318 # Portland Group compilers (*not* the Pentium gcc compiler, 4015 4319 # which looks to be a dead project) … … 4023 4327 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4024 4328 ;; 4025 xl* )4026 # IBM XL C 8.0/Fortran 10.1 on PPC4329 xl* | bgxl* | bgf* | mpixl*) 4330 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 4027 4331 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4028 4332 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' … … 4031 4335 *) 4032 4336 case `$CC -V 2>&1 | sed 5q` in 4337 *Sun\ F* | *Sun*Fortran*) 4338 # Sun Fortran 8.3 passes all unrecognized flags to the linker 4339 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4340 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4341 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 4342 ;; 4033 4343 *Sun\ C*) 4034 4344 # Sun C 5.9 … … 4037 4347 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4038 4348 ;; 4039 *Sun\ F*)4040 # Sun Fortran 8.3 passes all unrecognized flags to the linker4041 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'4042 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'4043 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''4044 ;;4045 4349 esac 4046 4350 ;; … … 4073 4377 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4074 4378 case $cc_basename in 4075 f77* | f90* | f95* )4379 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 4076 4380 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 4077 4381 *) … … 4130 4434 ;; 4131 4435 esac 4132 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 4133 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 4134 [How to pass a linker flag through the compiler]) 4436 4437 AC_CACHE_CHECK([for $compiler option to produce PIC], 4438 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], 4439 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 4440 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) 4135 4441 4136 4442 # … … 4151 4457 [Additional compiler flags for building library objects]) 4152 4458 4459 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 4460 [How to pass a linker flag through the compiler]) 4153 4461 # 4154 4462 # Check to make sure the static flag actually works. … … 4171 4479 [AC_REQUIRE([LT_PATH_LD])dnl 4172 4480 AC_REQUIRE([LT_PATH_NM])dnl 4481 m4_require([_LT_PATH_MANIFEST_TOOL])dnl 4173 4482 m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4174 4483 m4_require([_LT_DECL_EGREP])dnl … … 4179 4488 m4_if([$1], [CXX], [ 4180 4489 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 4490 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 4181 4491 case $host_os in 4182 4492 aix[[4-9]]*) 4183 4493 # If we're using GNU nm, then we don't want the "-C" option. 4184 4494 # -C means demangle to AIX nm, but means don't demangle with GNU nm 4495 # Also, AIX nm treats weak defined symbols like other global defined 4496 # symbols, whereas GNU nm marks them as "W". 4185 4497 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 4186 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") ) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'4498 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 4187 4499 else 4188 4500 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' … … 4191 4503 pw32*) 4192 4504 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 4193 ;;4505 ;; 4194 4506 cygwin* | mingw* | cegcc*) 4195 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' 4196 ;; 4197 linux* | k*bsd*-gnu) 4507 case $cc_basename in 4508 cl*) ;; 4509 *) 4510 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' 4511 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 4512 ;; 4513 esac 4514 ;; 4515 linux* | k*bsd*-gnu | gnu*) 4198 4516 _LT_TAGVAR(link_all_deplibs, $1)=no 4199 ;;4517 ;; 4200 4518 *) 4201 4519 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 4202 ;;4520 ;; 4203 4521 esac 4204 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']4205 4522 ], [ 4206 4523 runpath_var= … … 4262 4579 with_gnu_ld=no 4263 4580 ;; 4264 linux* | k*bsd*-gnu )4581 linux* | k*bsd*-gnu | gnu*) 4265 4582 _LT_TAGVAR(link_all_deplibs, $1)=no 4266 4583 ;; … … 4268 4585 4269 4586 _LT_TAGVAR(ld_shlibs, $1)=yes 4587 4588 # On some targets, GNU ld is compatible enough with the native linker 4589 # that we're better off using the native interface for both. 4590 lt_use_gnu_ld_interface=no 4270 4591 if test "$with_gnu_ld" = yes; then 4592 case $host_os in 4593 aix*) 4594 # The AIX port of GNU ld has always aspired to compatibility 4595 # with the native linker. However, as the warning in the GNU ld 4596 # block says, versions before 2.19.5* couldn't really create working 4597 # shared libraries, regardless of the interface used. 4598 case `$LD -v 2>&1` in 4599 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 4600 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; 4601 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; 4602 *) 4603 lt_use_gnu_ld_interface=yes 4604 ;; 4605 esac 4606 ;; 4607 *) 4608 lt_use_gnu_ld_interface=yes 4609 ;; 4610 esac 4611 fi 4612 4613 if test "$lt_use_gnu_ld_interface" = yes; then 4271 4614 # If archive_cmds runs LD, not CC, wlarc should be empty 4272 4615 wlarc='${wl}' … … 4302 4645 cat <<_LT_EOF 1>&2 4303 4646 4304 *** Warning: the GNU linker, at least up to release 2. 9.1, is reported4647 *** Warning: the GNU linker, at least up to release 2.19, is reported 4305 4648 *** to be unable to reliably create shared libraries on AIX. 4306 4649 *** Therefore, libtool is disabling shared libraries support. If you 4307 *** really care for shared libraries, you may want to modify your PATH 4308 *** so that a non-GNU linker is found, and then restart. 4650 *** really care for shared libraries, you may want to install binutils 4651 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 4652 *** You will then need to restart the configuration process. 4309 4653 4310 4654 _LT_EOF … … 4342 4686 # as there is no search path for DLLs. 4343 4687 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4688 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' 4344 4689 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 4345 4690 _LT_TAGVAR(always_export_symbols, $1)=no 4346 4691 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 4347 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' 4692 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' 4693 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 4348 4694 4349 4695 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then … … 4363 4709 ;; 4364 4710 4711 haiku*) 4712 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4713 _LT_TAGVAR(link_all_deplibs, $1)=yes 4714 ;; 4715 4365 4716 interix[[3-9]]*) 4366 4717 _LT_TAGVAR(hardcode_direct, $1)=no … … 4388 4739 && test "$tmp_diet" = no 4389 4740 then 4390 tmp_addflag= 4741 tmp_addflag=' $pic_flag' 4391 4742 tmp_sharedflag='-shared' 4392 4743 case $cc_basename,$host_cpu in 4393 4744 pgcc*) # Portland Group C compiler 4394 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO\"$new_convenience\"` ${wl}--no-whole-archive'4745 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 4395 4746 tmp_addflag=' $pic_flag' 4396 4747 ;; 4397 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 4398 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 4748 pgf77* | pgf90* | pgf95* | pgfortran*) 4749 # Portland Group f77 and f90 compilers 4750 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 4399 4751 tmp_addflag=' $pic_flag -Mnomain' ;; 4400 4752 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 … … 4407 4759 _LT_TAGVAR(whole_archive_flag_spec, $1)= 4408 4760 tmp_sharedflag='--shared' ;; 4409 xl[[cC]]* )# IBM XL C 8.0 on PPC (deal with xlf below)4761 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 4410 4762 tmp_sharedflag='-qmkshrobj' 4411 4763 tmp_addflag= ;; 4764 nvcc*) # Cuda Compiler Driver 2.2 4765 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 4766 _LT_TAGVAR(compiler_needs_object, $1)=yes 4767 ;; 4412 4768 esac 4413 4769 case `$CC -V 2>&1 | sed 5q` in 4414 4770 *Sun\ C*) # Sun C 5.9 4415 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO\"$new_convenience\"` ${wl}--no-whole-archive'4771 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 4416 4772 _LT_TAGVAR(compiler_needs_object, $1)=yes 4417 4773 tmp_sharedflag='-G' ;; … … 4429 4785 4430 4786 case $cc_basename in 4431 xlf* )4787 xlf* | bgf* | bgxlf* | mpixlf*) 4432 4788 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 4433 4789 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 4434 4790 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 4435 4791 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 4436 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $ compiler_flags -soname $soname -o $lib'4792 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 4437 4793 if test "x$supports_anon_versioning" = xyes; then 4438 4794 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 4439 4795 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 4440 4796 echo "local: *; };" >> $output_objdir/$libname.ver~ 4441 $LD -shared $libobjs $deplibs $ compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'4797 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 4442 4798 fi 4443 4799 ;; … … 4453 4809 wlarc= 4454 4810 else 4455 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $ libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'4456 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $ libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'4811 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4812 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 4457 4813 fi 4458 4814 ;; … … 4472 4828 _LT_EOF 4473 4829 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 4474 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $ libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'4475 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $ libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'4830 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4831 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 4476 4832 else 4477 4833 _LT_TAGVAR(ld_shlibs, $1)=no … … 4519 4875 *) 4520 4876 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 4521 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $ libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'4522 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $ libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'4877 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4878 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 4523 4879 else 4524 4880 _LT_TAGVAR(ld_shlibs, $1)=no … … 4560 4916 # If we're using GNU nm, then we don't want the "-C" option. 4561 4917 # -C means demangle to AIX nm, but means don't demangle with GNU nm 4918 # Also, AIX nm treats weak defined symbols like other global 4919 # defined symbols, whereas GNU nm marks them as "W". 4562 4920 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 4563 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") ) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'4921 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 4564 4922 else 4565 4923 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' … … 4649 5007 # Determine the default libpath from the value encoded in an 4650 5008 # empty executable. 4651 _LT_SYS_MODULE_PATH_AIX 5009 _LT_SYS_MODULE_PATH_AIX([$1]) 4652 5010 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 4653 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"5011 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 4654 5012 else 4655 5013 if test "$host_cpu" = ia64; then … … 4660 5018 # Determine the default libpath from the value encoded in an 4661 5019 # empty executable. 4662 _LT_SYS_MODULE_PATH_AIX 5020 _LT_SYS_MODULE_PATH_AIX([$1]) 4663 5021 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 4664 5022 # Warning - without using the other run time loading flags, … … 4666 5024 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 4667 5025 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 4668 # Exported symbols can be pulled into shared objects from archives 4669 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 5026 if test "$with_gnu_ld" = yes; then 5027 # We only use this code for GNU lds that support --whole-archive. 5028 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 5029 else 5030 # Exported symbols can be pulled into shared objects from archives 5031 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 5032 fi 4670 5033 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 4671 5034 # This is similar to how AIX traditionally builds its shared libraries. … … 4699 5062 # hardcode_libdir_flag_spec is actually meaningless, as there is 4700 5063 # no search path for DLLs. 4701 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 4702 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 4703 # Tell ltmain to make .lib files, not .a files. 4704 libext=lib 4705 # Tell ltmain to make .dll files, not .so files. 4706 shrext_cmds=".dll" 4707 # FIXME: Setting linknames here is a bad hack. 4708 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 4709 # The linker will automatically build a .lib file if we build a DLL. 4710 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 4711 # FIXME: Should let the user specify the lib program. 4712 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 4713 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 4714 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5064 case $cc_basename in 5065 cl*) 5066 # Native MSVC 5067 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 5068 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5069 _LT_TAGVAR(always_export_symbols, $1)=yes 5070 _LT_TAGVAR(file_list_spec, $1)='@' 5071 # Tell ltmain to make .lib files, not .a files. 5072 libext=lib 5073 # Tell ltmain to make .dll files, not .so files. 5074 shrext_cmds=".dll" 5075 # FIXME: Setting linknames here is a bad hack. 5076 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 5077 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 5078 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 5079 else 5080 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 5081 fi~ 5082 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 5083 linknames=' 5084 # The linker will not automatically build a static lib if we build a DLL. 5085 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 5086 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5087 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' 5088 # Don't use ranlib 5089 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 5090 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 5091 lt_tool_outputfile="@TOOL_OUTPUT@"~ 5092 case $lt_outputfile in 5093 *.exe|*.EXE) ;; 5094 *) 5095 lt_outputfile="$lt_outputfile.exe" 5096 lt_tool_outputfile="$lt_tool_outputfile.exe" 5097 ;; 5098 esac~ 5099 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 5100 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 5101 $RM "$lt_outputfile.manifest"; 5102 fi' 5103 ;; 5104 *) 5105 # Assume MSVC wrapper 5106 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 5107 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5108 # Tell ltmain to make .lib files, not .a files. 5109 libext=lib 5110 # Tell ltmain to make .dll files, not .so files. 5111 shrext_cmds=".dll" 5112 # FIXME: Setting linknames here is a bad hack. 5113 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 5114 # The linker will automatically build a .lib file if we build a DLL. 5115 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 5116 # FIXME: Should let the user specify the lib program. 5117 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 5118 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5119 ;; 5120 esac 4715 5121 ;; 4716 5122 … … 4750 5156 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 4751 5157 freebsd* | dragonfly*) 4752 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'5158 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 4753 5159 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 4754 5160 _LT_TAGVAR(hardcode_direct, $1)=yes … … 4758 5164 hpux9*) 4759 5165 if test "$GCC" = yes; then 4760 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'5166 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 4761 5167 else 4762 5168 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' … … 4773 5179 4774 5180 hpux10*) 4775 if test "$GCC" = yes -a"$with_gnu_ld" = no; then4776 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'5181 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 5182 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 4777 5183 else 4778 5184 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' … … 4792 5198 4793 5199 hpux11*) 4794 if test "$GCC" = yes -a"$with_gnu_ld" = no; then5200 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 4795 5201 case $host_cpu in 4796 5202 hppa*64*) … … 4798 5204 ;; 4799 5205 ia64*) 4800 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'5206 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 4801 5207 ;; 4802 5208 *) 4803 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'5209 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 4804 5210 ;; 4805 5211 esac … … 4813 5219 ;; 4814 5220 *) 4815 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5221 m4_if($1, [], [ 5222 # Older versions of the 11.00 compiler do not understand -b yet 5223 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 5224 _LT_LINKER_OPTION([if $CC understands -b], 5225 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], 5226 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], 5227 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], 5228 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) 4816 5229 ;; 4817 5230 esac … … 4841 5254 irix5* | irix6* | nonstopux*) 4842 5255 if test "$GCC" = yes; then 4843 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $ libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'5256 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 4844 5257 # Try to use the -exported_symbol ld option, if it does not 4845 5258 # work, assume that -exports_file does not work either and 4846 5259 # implicitly export all symbols. 4847 save_LDFLAGS="$LDFLAGS" 4848 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 4849 AC_LINK_IFELSE(int foo(void) {}, 4850 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 4851 ) 4852 LDFLAGS="$save_LDFLAGS" 5260 # This should be the same for all languages, so no per-tag cache variable. 5261 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], 5262 [lt_cv_irix_exported_symbol], 5263 [save_LDFLAGS="$LDFLAGS" 5264 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 5265 AC_LINK_IFELSE( 5266 [AC_LANG_SOURCE( 5267 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], 5268 [C++], [[int foo (void) { return 0; }]], 5269 [Fortran 77], [[ 5270 subroutine foo 5271 end]], 5272 [Fortran], [[ 5273 subroutine foo 5274 end]])])], 5275 [lt_cv_irix_exported_symbol=yes], 5276 [lt_cv_irix_exported_symbol=no]) 5277 LDFLAGS="$save_LDFLAGS"]) 5278 if test "$lt_cv_irix_exported_symbol" = yes; then 5279 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 5280 fi 4853 5281 else 4854 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'4855 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'5282 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 5283 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 4856 5284 fi 4857 5285 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' … … 4915 5343 _LT_TAGVAR(hardcode_minus_L, $1)=yes 4916 5344 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 4917 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHOEXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'5345 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 4918 5346 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 4919 5347 ;; … … 4922 5350 if test "$GCC" = yes; then 4923 5351 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 4924 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'5352 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 4925 5353 else 4926 5354 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 4927 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'5355 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 4928 5356 fi 4929 5357 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' … … 4935 5363 if test "$GCC" = yes; then 4936 5364 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 4937 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $ libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'5365 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 4938 5366 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4939 5367 else 4940 5368 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 4941 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'5369 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 4942 5370 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 4943 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO " X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'5371 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 4944 5372 4945 5373 # Both c and cxx compiler support -rpath directly … … 4954 5382 if test "$GCC" = yes; then 4955 5383 wlarc='${wl}' 4956 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $ {wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'5384 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 4957 5385 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 4958 $CC -shared $ {wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'5386 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 4959 5387 else 4960 5388 case `$CC -V 2>&1` in … … 5132 5560 # systems, -lgcc has to come before -lc. If gcc already passes -lc 5133 5561 # to ld, don't add -lc before -lgcc. 5134 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 5135 $RM conftest* 5136 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 5137 5138 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 5139 soname=conftest 5140 lib=conftest 5141 libobjs=conftest.$ac_objext 5142 deplibs= 5143 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 5144 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 5145 compiler_flags=-v 5146 linker_flags=-v 5147 verstring= 5148 output_objdir=. 5149 libname=conftest 5150 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 5151 _LT_TAGVAR(allow_undefined_flag, $1)= 5152 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 5153 then 5154 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5155 else 5156 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5157 fi 5158 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 5159 else 5160 cat conftest.err 1>&5 5161 fi 5162 $RM conftest* 5163 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) 5562 AC_CACHE_CHECK([whether -lc should be explicitly linked in], 5563 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), 5564 [$RM conftest* 5565 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 5566 5567 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 5568 soname=conftest 5569 lib=conftest 5570 libobjs=conftest.$ac_objext 5571 deplibs= 5572 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 5573 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 5574 compiler_flags=-v 5575 linker_flags=-v 5576 verstring= 5577 output_objdir=. 5578 libname=conftest 5579 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 5580 _LT_TAGVAR(allow_undefined_flag, $1)= 5581 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 5582 then 5583 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no 5584 else 5585 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5586 fi 5587 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 5588 else 5589 cat conftest.err 1>&5 5590 fi 5591 $RM conftest* 5592 ]) 5593 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) 5164 5594 ;; 5165 5595 esac … … 5226 5656 _LT_TAGDECL([], [link_all_deplibs], [0], 5227 5657 [Whether libtool must link a program against all its dependency libraries]) 5228 _LT_TAGDECL([], [fix_srcfile_path], [1],5229 [Fix the shell variable $srcfile for the compiler])5230 5658 _LT_TAGDECL([], [always_export_symbols], [0], 5231 5659 [Set to "yes" if exported symbols are required]) … … 5238 5666 _LT_TAGDECL([], [prelink_cmds], [2], 5239 5667 [Commands necessary for linking programs (against libraries) with templates]) 5668 _LT_TAGDECL([], [postlink_cmds], [2], 5669 [Commands necessary for finishing linking programs]) 5240 5670 _LT_TAGDECL([], [file_list_spec], [1], 5241 5671 [Specify filename containing input files]) … … 5331 5761 5332 5762 5333 # _LT_PROG_CXX 5334 # ------------ 5335 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ 5336 # compiler, we have our own version here. 5337 m4_defun([_LT_PROG_CXX], 5338 [ 5339 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) 5340 AC_PROG_CXX 5763 # _LT_LANG_CXX_CONFIG([TAG]) 5764 # -------------------------- 5765 # Ensure that the configuration variables for a C++ compiler are suitably 5766 # defined. These variables are subsequently used by _LT_CONFIG to write 5767 # the compiler configuration to `libtool'. 5768 m4_defun([_LT_LANG_CXX_CONFIG], 5769 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl 5770 m4_require([_LT_DECL_EGREP])dnl 5771 m4_require([_LT_PATH_MANIFEST_TOOL])dnl 5341 5772 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5342 5773 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || … … 5346 5777 _lt_caught_CXX_error=yes 5347 5778 fi 5348 popdef([AC_MSG_ERROR])5349 ])# _LT_PROG_CXX5350 5351 dnl aclocal-1.4 backwards compatibility:5352 dnl AC_DEFUN([_LT_PROG_CXX], [])5353 5354 5355 # _LT_LANG_CXX_CONFIG([TAG])5356 # --------------------------5357 # Ensure that the configuration variables for a C++ compiler are suitably5358 # defined. These variables are subsequently used by _LT_CONFIG to write5359 # the compiler configuration to `libtool'.5360 m4_defun([_LT_LANG_CXX_CONFIG],5361 [AC_REQUIRE([_LT_PROG_CXX])dnl5362 m4_require([_LT_FILEUTILS_DEFAULTS])dnl5363 m4_require([_LT_DECL_EGREP])dnl5364 5779 5365 5780 AC_LANG_PUSH(C++) … … 5383 5798 _LT_TAGVAR(link_all_deplibs, $1)=unknown 5384 5799 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 5800 _LT_TAGVAR(reload_flag, $1)=$reload_flag 5801 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds 5385 5802 _LT_TAGVAR(no_undefined_flag, $1)= 5386 5803 _LT_TAGVAR(whole_archive_flag_spec, $1)= … … 5414 5831 # Allow CC to be a program name with arguments. 5415 5832 lt_save_CC=$CC 5833 lt_save_CFLAGS=$CFLAGS 5416 5834 lt_save_LD=$LD 5417 5835 lt_save_GCC=$GCC … … 5431 5849 test -z "${LDCXX+set}" || LD=$LDCXX 5432 5850 CC=${CXX-"c++"} 5851 CFLAGS=$CXXFLAGS 5433 5852 compiler=$CC 5434 5853 _LT_TAGVAR(compiler, $1)=$CC … … 5452 5871 # archiving commands below assume that GNU ld is being used. 5453 5872 if test "$with_gnu_ld" = yes; then 5454 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'5455 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'5873 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 5874 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5456 5875 5457 5876 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' … … 5485 5904 # what "hidden" libraries, object files and flags are used when 5486 5905 # linking a shared library. 5487 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'5906 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 5488 5907 5489 5908 else … … 5594 6013 # Determine the default libpath from the value encoded in an empty 5595 6014 # executable. 5596 _LT_SYS_MODULE_PATH_AIX 6015 _LT_SYS_MODULE_PATH_AIX([$1]) 5597 6016 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5598 6017 5599 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"6018 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 5600 6019 else 5601 6020 if test "$host_cpu" = ia64; then … … 5606 6025 # Determine the default libpath from the value encoded in an 5607 6026 # empty executable. 5608 _LT_SYS_MODULE_PATH_AIX 6027 _LT_SYS_MODULE_PATH_AIX([$1]) 5609 6028 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5610 6029 # Warning - without using the other run time loading flags, … … 5612 6031 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 5613 6032 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 5614 # Exported symbols can be pulled into shared objects from archives 5615 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 6033 if test "$with_gnu_ld" = yes; then 6034 # We only use this code for GNU lds that support --whole-archive. 6035 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 6036 else 6037 # Exported symbols can be pulled into shared objects from archives 6038 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 6039 fi 5616 6040 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5617 6041 # This is similar to how AIX traditionally builds its shared … … 5643 6067 5644 6068 cygwin* | mingw* | pw32* | cegcc*) 5645 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 5646 # as there is no search path for DLLs. 5647 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5648 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5649 _LT_TAGVAR(always_export_symbols, $1)=no 5650 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5651 5652 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 5653 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 5654 # If the export-symbols file already is a .def file (1st line 5655 # is EXPORTS), use it as is; otherwise, prepend... 5656 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 5657 cp $export_symbols $output_objdir/$soname.def; 5658 else 5659 echo EXPORTS > $output_objdir/$soname.def; 5660 cat $export_symbols >> $output_objdir/$soname.def; 5661 fi~ 5662 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 5663 else 5664 _LT_TAGVAR(ld_shlibs, $1)=no 5665 fi 5666 ;; 6069 case $GXX,$cc_basename in 6070 ,cl* | no,cl*) 6071 # Native MSVC 6072 # hardcode_libdir_flag_spec is actually meaningless, as there is 6073 # no search path for DLLs. 6074 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 6075 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6076 _LT_TAGVAR(always_export_symbols, $1)=yes 6077 _LT_TAGVAR(file_list_spec, $1)='@' 6078 # Tell ltmain to make .lib files, not .a files. 6079 libext=lib 6080 # Tell ltmain to make .dll files, not .so files. 6081 shrext_cmds=".dll" 6082 # FIXME: Setting linknames here is a bad hack. 6083 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 6084 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6085 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 6086 else 6087 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 6088 fi~ 6089 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 6090 linknames=' 6091 # The linker will not automatically build a static lib if we build a DLL. 6092 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 6093 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6094 # Don't use ranlib 6095 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 6096 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 6097 lt_tool_outputfile="@TOOL_OUTPUT@"~ 6098 case $lt_outputfile in 6099 *.exe|*.EXE) ;; 6100 *) 6101 lt_outputfile="$lt_outputfile.exe" 6102 lt_tool_outputfile="$lt_tool_outputfile.exe" 6103 ;; 6104 esac~ 6105 func_to_tool_file "$lt_outputfile"~ 6106 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 6107 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 6108 $RM "$lt_outputfile.manifest"; 6109 fi' 6110 ;; 6111 *) 6112 # g++ 6113 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 6114 # as there is no search path for DLLs. 6115 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6116 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' 6117 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6118 _LT_TAGVAR(always_export_symbols, $1)=no 6119 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6120 6121 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 6122 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6123 # If the export-symbols file already is a .def file (1st line 6124 # is EXPORTS), use it as is; otherwise, prepend... 6125 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6126 cp $export_symbols $output_objdir/$soname.def; 6127 else 6128 echo EXPORTS > $output_objdir/$soname.def; 6129 cat $export_symbols >> $output_objdir/$soname.def; 6130 fi~ 6131 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6132 else 6133 _LT_TAGVAR(ld_shlibs, $1)=no 6134 fi 6135 ;; 6136 esac 6137 ;; 5667 6138 darwin* | rhapsody*) 5668 6139 _LT_DARWIN_LINKER_FEATURES($1) … … 5706 6177 ;; 5707 6178 6179 haiku*) 6180 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6181 _LT_TAGVAR(link_all_deplibs, $1)=yes 6182 ;; 6183 5708 6184 hpux9*) 5709 6185 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' … … 5730 6206 # from the output so that they don't get included in the library 5731 6207 # dependencies. 5732 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'6208 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 5733 6209 ;; 5734 6210 *) 5735 6211 if test "$GXX" = yes; then 5736 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'6212 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 5737 6213 else 5738 6214 # FIXME: insert proper C++ library support … … 5795 6271 # from the output so that they don't get included in the library 5796 6272 # dependencies. 5797 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'6273 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 5798 6274 ;; 5799 6275 *) … … 5805 6281 ;; 5806 6282 ia64*) 5807 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'6283 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 5808 6284 ;; 5809 6285 *) 5810 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'6286 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 5811 6287 ;; 5812 6288 esac … … 5838 6314 CC*) 5839 6315 # SGI C++ 5840 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'6316 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 5841 6317 5842 6318 # Archives containing C++ object files must be created using … … 5849 6325 if test "$GXX" = yes; then 5850 6326 if test "$with_gnu_ld" = no; then 5851 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'6327 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 5852 6328 else 5853 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'6329 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 5854 6330 fi 5855 6331 fi … … 5880 6356 # from the output so that they don't get included in the library 5881 6357 # dependencies. 5882 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'6358 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 5883 6359 5884 6360 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' … … 5917 6393 # Portland Group C++ compiler 5918 6394 case `$CC -V` in 5919 *pgCC\ [[1-5]] * | *pgcpp\ [[1-5]]*)6395 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) 5920 6396 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 5921 6397 rm -rf $tpldir~ 5922 6398 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 5923 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'6399 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 5924 6400 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 5925 6401 rm -rf $tpldir~ 5926 6402 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 5927 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~6403 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 5928 6404 $RANLIB $oldlib' 5929 6405 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 5930 6406 rm -rf $tpldir~ 5931 6407 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 5932 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'6408 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 5933 6409 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 5934 6410 rm -rf $tpldir~ 5935 6411 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 5936 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'6412 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 5937 6413 ;; 5938 *) # Version 6 willuse weak symbols6414 *) # Version 6 and above use weak symbols 5939 6415 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 5940 6416 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' … … 5944 6420 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 5945 6421 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5946 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO\"$new_convenience\"` ${wl}--no-whole-archive'6422 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 5947 6423 ;; 5948 6424 cxx*) … … 5963 6439 # from the output so that they don't get included in the library 5964 6440 # dependencies. 5965 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=` $ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO"X$list" | $Xsed'6441 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 5966 6442 ;; 5967 xl* )6443 xl* | mpixl* | bgxl*) 5968 6444 # IBM XL 8.0 on PPC, with GNU ld 5969 6445 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' … … 5985 6461 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 5986 6462 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5987 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO\"$new_convenience\"` ${wl}--no-whole-archive'6463 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 5988 6464 _LT_TAGVAR(compiler_needs_object, $1)=yes 5989 6465 … … 5991 6467 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 5992 6468 # would be better. 5993 output_verbose_link_cmd=' echo'6469 output_verbose_link_cmd='func_echo_all' 5994 6470 5995 6471 # Archives containing C++ object files must be created using … … 6060 6536 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6061 6537 fi 6062 output_verbose_link_cmd= echo6538 output_verbose_link_cmd=func_echo_all 6063 6539 else 6064 6540 _LT_TAGVAR(ld_shlibs, $1)=no … … 6095 6571 osf3*) 6096 6572 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 6097 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'6573 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 6098 6574 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6099 6575 ;; 6100 6576 *) 6101 6577 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6102 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'6578 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 6103 6579 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 6104 6580 echo "-hidden">> $lib.exp~ 6105 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO " X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~6581 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ 6106 6582 $RM $lib.exp' 6107 6583 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' … … 6119 6595 # from the output so that they don't get included in the library 6120 6596 # dependencies. 6121 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=` $ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'6597 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 6122 6598 ;; 6123 6599 *) … … 6126 6602 case $host in 6127 6603 osf3*) 6128 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'6604 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6129 6605 ;; 6130 6606 *) 6131 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'6607 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6132 6608 ;; 6133 6609 esac … … 6139 6615 # what "hidden" libraries, object files and flags are used when 6140 6616 # linking a shared library. 6141 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'6617 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 6142 6618 6143 6619 else … … 6175 6651 solaris*) 6176 6652 case $cc_basename in 6177 CC* )6653 CC* | sunCC*) 6178 6654 # Sun C++ 4.2, 5.x and Centerline C++ 6179 6655 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes … … 6196 6672 _LT_TAGVAR(link_all_deplibs, $1)=yes 6197 6673 6198 output_verbose_link_cmd=' echo'6674 output_verbose_link_cmd='func_echo_all' 6199 6675 6200 6676 # Archives containing C++ object files must be created using … … 6216 6692 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 6217 6693 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 6218 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'6694 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 6219 6695 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6220 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'6696 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 6221 6697 6222 6698 # Commands to make compiler produce verbose output that lists 6223 6699 # what "hidden" libraries, object files and flags are used when 6224 6700 # linking a shared library. 6225 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'6701 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 6226 6702 else 6227 6703 # g++ 2.7 appears to require `-G' NOT `-shared' on this … … 6234 6710 # what "hidden" libraries, object files and flags are used when 6235 6711 # linking a shared library. 6236 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'6712 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 6237 6713 fi 6238 6714 … … 6288 6764 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6289 6765 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6766 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ 6767 '"$_LT_TAGVAR(old_archive_cmds, $1)" 6768 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ 6769 '"$_LT_TAGVAR(reload_cmds, $1)" 6290 6770 ;; 6291 6771 *) … … 6343 6823 6344 6824 CC=$lt_save_CC 6825 CFLAGS=$lt_save_CFLAGS 6345 6826 LDCXX=$LD 6346 6827 LD=$lt_save_LD … … 6357 6838 6358 6839 6840 # _LT_FUNC_STRIPNAME_CNF 6841 # ---------------------- 6842 # func_stripname_cnf prefix suffix name 6843 # strip PREFIX and SUFFIX off of NAME. 6844 # PREFIX and SUFFIX must not contain globbing or regex special 6845 # characters, hashes, percent signs, but SUFFIX may contain a leading 6846 # dot (in which case that matches only a dot). 6847 # 6848 # This function is identical to the (non-XSI) version of func_stripname, 6849 # except this one can be used by m4 code that may be executed by configure, 6850 # rather than the libtool script. 6851 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl 6852 AC_REQUIRE([_LT_DECL_SED]) 6853 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) 6854 func_stripname_cnf () 6855 { 6856 case ${2} in 6857 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 6858 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 6859 esac 6860 } # func_stripname_cnf 6861 ])# _LT_FUNC_STRIPNAME_CNF 6862 6359 6863 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 6360 6864 # --------------------------------- … … 6365 6869 m4_defun([_LT_SYS_HIDDEN_LIBDEPS], 6366 6870 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl 6871 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl 6367 6872 # Dependencies to place before and after the object being linked: 6368 6873 _LT_TAGVAR(predep_objects, $1)= … … 6415 6920 _LT_EOF 6416 6921 ]) 6922 6923 _lt_libdeps_save_CFLAGS=$CFLAGS 6924 case "$CC $CFLAGS " in #( 6925 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 6926 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 6927 esac 6928 6417 6929 dnl Parse the compiler output and extract the necessary 6418 6930 dnl objects, libraries and library flags. … … 6426 6938 6427 6939 for p in `eval "$output_verbose_link_cmd"`; do 6428 case $ pin6940 case ${prev}${p} in 6429 6941 6430 6942 -L* | -R* | -l*) … … 6435 6947 prev=$p 6436 6948 continue 6437 else6438 prev=6439 6949 fi 6440 6950 6951 # Expand the sysroot to ease extracting the directories later. 6952 if test -z "$prev"; then 6953 case $p in 6954 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 6955 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 6956 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 6957 esac 6958 fi 6959 case $p in 6960 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 6961 esac 6441 6962 if test "$pre_test_object_deps_done" = no; then 6442 case $ pin6443 -L * | -R*)6963 case ${prev} in 6964 -L | -R) 6444 6965 # Internal compiler library paths should come after those 6445 6966 # provided the user. The postdeps already come after the … … 6461 6982 fi 6462 6983 fi 6984 prev= 6463 6985 ;; 6464 6986 6987 *.lto.$objext) ;; # Ignore GCC LTO objects 6465 6988 *.$objext) 6466 6989 # This assumes that the test object file only shows up … … 6498 7021 6499 7022 $RM -f confest.$objext 7023 CFLAGS=$_lt_libdeps_save_CFLAGS 6500 7024 6501 7025 # PORTME: override above test on systems where it is broken … … 6534 7058 solaris*) 6535 7059 case $cc_basename in 6536 CC* )7060 CC* | sunCC*) 6537 7061 # The more standards-conforming stlport4 library is 6538 7062 # incompatible with the Cstd library. Avoid specifying … … 6578 7102 6579 7103 6580 # _LT_PROG_F776581 # ------------6582 # Since AC_PROG_F77 is broken, in that it returns the empty string6583 # if there is no fortran compiler, we have our own version here.6584 m4_defun([_LT_PROG_F77],6585 [6586 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])6587 AC_PROG_F776588 if test -z "$F77" || test "X$F77" = "Xno"; then6589 _lt_disable_F77=yes6590 fi6591 popdef([AC_MSG_ERROR])6592 ])# _LT_PROG_F776593 6594 dnl aclocal-1.4 backwards compatibility:6595 dnl AC_DEFUN([_LT_PROG_F77], [])6596 6597 6598 7104 # _LT_LANG_F77_CONFIG([TAG]) 6599 7105 # -------------------------- … … 6602 7108 # to write the compiler configuration to `libtool'. 6603 7109 m4_defun([_LT_LANG_F77_CONFIG], 6604 [AC_REQUIRE([_LT_PROG_F77])dnl 6605 AC_LANG_PUSH(Fortran 77) 7110 [AC_LANG_PUSH(Fortran 77) 7111 if test -z "$F77" || test "X$F77" = "Xno"; then 7112 _lt_disable_F77=yes 7113 fi 6606 7114 6607 7115 _LT_TAGVAR(archive_cmds_need_lc, $1)=no … … 6622 7130 _LT_TAGVAR(link_all_deplibs, $1)=unknown 6623 7131 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7132 _LT_TAGVAR(reload_flag, $1)=$reload_flag 7133 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds 6624 7134 _LT_TAGVAR(no_undefined_flag, $1)= 6625 7135 _LT_TAGVAR(whole_archive_flag_spec, $1)= … … 6661 7171 lt_save_CC="$CC" 6662 7172 lt_save_GCC=$GCC 7173 lt_save_CFLAGS=$CFLAGS 6663 7174 CC=${F77-"f77"} 7175 CFLAGS=$FFLAGS 6664 7176 compiler=$CC 6665 7177 _LT_TAGVAR(compiler, $1)=$CC … … 6715 7227 GCC=$lt_save_GCC 6716 7228 CC="$lt_save_CC" 7229 CFLAGS="$lt_save_CFLAGS" 6717 7230 fi # test "$_lt_disable_F77" != yes 6718 7231 6719 7232 AC_LANG_POP 6720 7233 ])# _LT_LANG_F77_CONFIG 6721 6722 6723 # _LT_PROG_FC6724 # -----------6725 # Since AC_PROG_FC is broken, in that it returns the empty string6726 # if there is no fortran compiler, we have our own version here.6727 m4_defun([_LT_PROG_FC],6728 [6729 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])6730 AC_PROG_FC6731 if test -z "$FC" || test "X$FC" = "Xno"; then6732 _lt_disable_FC=yes6733 fi6734 popdef([AC_MSG_ERROR])6735 ])# _LT_PROG_FC6736 6737 dnl aclocal-1.4 backwards compatibility:6738 dnl AC_DEFUN([_LT_PROG_FC], [])6739 7234 6740 7235 … … 6745 7240 # to write the compiler configuration to `libtool'. 6746 7241 m4_defun([_LT_LANG_FC_CONFIG], 6747 [AC_REQUIRE([_LT_PROG_FC])dnl 6748 AC_LANG_PUSH(Fortran) 7242 [AC_LANG_PUSH(Fortran) 7243 7244 if test -z "$FC" || test "X$FC" = "Xno"; then 7245 _lt_disable_FC=yes 7246 fi 6749 7247 6750 7248 _LT_TAGVAR(archive_cmds_need_lc, $1)=no … … 6765 7263 _LT_TAGVAR(link_all_deplibs, $1)=unknown 6766 7264 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7265 _LT_TAGVAR(reload_flag, $1)=$reload_flag 7266 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds 6767 7267 _LT_TAGVAR(no_undefined_flag, $1)= 6768 7268 _LT_TAGVAR(whole_archive_flag_spec, $1)= … … 6804 7304 lt_save_CC="$CC" 6805 7305 lt_save_GCC=$GCC 7306 lt_save_CFLAGS=$CFLAGS 6806 7307 CC=${FC-"f95"} 7308 CFLAGS=$FCFLAGS 6807 7309 compiler=$CC 6808 7310 GCC=$ac_cv_fc_compiler_gnu … … 6860 7362 6861 7363 GCC=$lt_save_GCC 6862 CC="$lt_save_CC" 7364 CC=$lt_save_CC 7365 CFLAGS=$lt_save_CFLAGS 6863 7366 fi # test "$_lt_disable_FC" != yes 6864 7367 … … 6897 7400 6898 7401 # Allow CC to be a program name with arguments. 6899 lt_save_CC="$CC" 7402 lt_save_CC=$CC 7403 lt_save_CFLAGS=$CFLAGS 6900 7404 lt_save_GCC=$GCC 6901 7405 GCC=yes 6902 7406 CC=${GCJ-"gcj"} 7407 CFLAGS=$GCJFLAGS 6903 7408 compiler=$CC 6904 7409 _LT_TAGVAR(compiler, $1)=$CC … … 6910 7415 6911 7416 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7417 _LT_TAGVAR(reload_flag, $1)=$reload_flag 7418 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds 6912 7419 6913 7420 ## CAVEAT EMPTOR: … … 6929 7436 6930 7437 GCC=$lt_save_GCC 6931 CC="$lt_save_CC" 7438 CC=$lt_save_CC 7439 CFLAGS=$lt_save_CFLAGS 6932 7440 ])# _LT_LANG_GCJ_CONFIG 6933 7441 … … 6964 7472 # Allow CC to be a program name with arguments. 6965 7473 lt_save_CC="$CC" 7474 lt_save_CFLAGS=$CFLAGS 6966 7475 lt_save_GCC=$GCC 6967 7476 GCC= 6968 7477 CC=${RC-"windres"} 7478 CFLAGS= 6969 7479 compiler=$CC 6970 7480 _LT_TAGVAR(compiler, $1)=$CC … … 6979 7489 GCC=$lt_save_GCC 6980 7490 AC_LANG_RESTORE 6981 CC="$lt_save_CC" 7491 CC=$lt_save_CC 7492 CFLAGS=$lt_save_CFLAGS 6982 7493 ])# _LT_LANG_RC_CONFIG 6983 7494 … … 7038 7549 ]) 7039 7550 7551 # _LT_DECL_DLLTOOL 7552 # ---------------- 7553 # Ensure DLLTOOL variable is set. 7554 m4_defun([_LT_DECL_DLLTOOL], 7555 [AC_CHECK_TOOL(DLLTOOL, dlltool, false) 7556 test -z "$DLLTOOL" && DLLTOOL=dlltool 7557 _LT_DECL([], [DLLTOOL], [1], [DLL creation program]) 7558 AC_SUBST([DLLTOOL]) 7559 ]) 7040 7560 7041 7561 # _LT_DECL_SED … … 7131 7651 xsi_shell=no 7132 7652 ( _lt_dummy="a/b/c" 7133 test "${_lt_dummy##*/},${_lt_dummy%/*}, "${_lt_dummy%"$_lt_dummy"}, \7134 = c,a/b, , \7653 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 7654 = c,a/b,b/c, \ 7135 7655 && eval 'test $(( 1 + 1 )) -eq 2 \ 7136 7656 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ … … 7171 7691 7172 7692 7173 # _LT_PROG_XSI_SHELLFNS 7174 # --------------------- 7175 # Bourne and XSI compatible variants of some useful shell functions. 7176 m4_defun([_LT_PROG_XSI_SHELLFNS], 7177 [case $xsi_shell in 7178 yes) 7179 cat << \_LT_EOF >> "$cfgfile" 7180 7181 # func_dirname file append nondir_replacement 7182 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 7183 # otherwise set result to NONDIR_REPLACEMENT. 7184 func_dirname () 7185 { 7186 case ${1} in 7187 */*) func_dirname_result="${1%/*}${2}" ;; 7188 * ) func_dirname_result="${3}" ;; 7189 esac 7190 } 7191 7192 # func_basename file 7193 func_basename () 7194 { 7195 func_basename_result="${1##*/}" 7196 } 7197 7198 # func_dirname_and_basename file append nondir_replacement 7199 # perform func_basename and func_dirname in a single function 7200 # call: 7201 # dirname: Compute the dirname of FILE. If nonempty, 7202 # add APPEND to the result, otherwise set result 7203 # to NONDIR_REPLACEMENT. 7204 # value returned in "$func_dirname_result" 7205 # basename: Compute filename of FILE. 7206 # value retuned in "$func_basename_result" 7207 # Implementation must be kept synchronized with func_dirname 7208 # and func_basename. For efficiency, we do not delegate to 7209 # those functions but instead duplicate the functionality here. 7210 func_dirname_and_basename () 7211 { 7212 case ${1} in 7213 */*) func_dirname_result="${1%/*}${2}" ;; 7214 * ) func_dirname_result="${3}" ;; 7215 esac 7216 func_basename_result="${1##*/}" 7217 } 7218 7219 # func_stripname prefix suffix name 7220 # strip PREFIX and SUFFIX off of NAME. 7221 # PREFIX and SUFFIX must not contain globbing or regex special 7222 # characters, hashes, percent signs, but SUFFIX may contain a leading 7223 # dot (in which case that matches only a dot). 7224 func_stripname () 7225 { 7226 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 7227 # positional parameters, so assign one to ordinary parameter first. 7228 func_stripname_result=${3} 7229 func_stripname_result=${func_stripname_result#"${1}"} 7230 func_stripname_result=${func_stripname_result%"${2}"} 7231 } 7232 7233 # func_opt_split 7234 func_opt_split () 7235 { 7236 func_opt_split_opt=${1%%=*} 7237 func_opt_split_arg=${1#*=} 7238 } 7239 7240 # func_lo2o object 7241 func_lo2o () 7242 { 7243 case ${1} in 7244 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 7245 *) func_lo2o_result=${1} ;; 7246 esac 7247 } 7248 7249 # func_xform libobj-or-source 7250 func_xform () 7251 { 7252 func_xform_result=${1%.*}.lo 7253 } 7254 7255 # func_arith arithmetic-term... 7256 func_arith () 7257 { 7258 func_arith_result=$(( $[*] )) 7259 } 7260 7261 # func_len string 7262 # STRING may not start with a hyphen. 7263 func_len () 7264 { 7265 func_len_result=${#1} 7266 } 7267 7268 _LT_EOF 7693 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) 7694 # ------------------------------------------------------ 7695 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and 7696 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. 7697 m4_defun([_LT_PROG_FUNCTION_REPLACE], 7698 [dnl { 7699 sed -e '/^$1 ()$/,/^} # $1 /c\ 7700 $1 ()\ 7701 {\ 7702 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1]) 7703 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \ 7704 && mv -f "$cfgfile.tmp" "$cfgfile" \ 7705 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 7706 test 0 -eq $? || _lt_function_replace_fail=: 7707 ]) 7708 7709 7710 # _LT_PROG_REPLACE_SHELLFNS 7711 # ------------------------- 7712 # Replace existing portable implementations of several shell functions with 7713 # equivalent extended shell implementations where those features are available.. 7714 m4_defun([_LT_PROG_REPLACE_SHELLFNS], 7715 [if test x"$xsi_shell" = xyes; then 7716 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl 7717 case ${1} in 7718 */*) func_dirname_result="${1%/*}${2}" ;; 7719 * ) func_dirname_result="${3}" ;; 7720 esac]) 7721 7722 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl 7723 func_basename_result="${1##*/}"]) 7724 7725 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl 7726 case ${1} in 7727 */*) func_dirname_result="${1%/*}${2}" ;; 7728 * ) func_dirname_result="${3}" ;; 7729 esac 7730 func_basename_result="${1##*/}"]) 7731 7732 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl 7733 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 7734 # positional parameters, so assign one to ordinary parameter first. 7735 func_stripname_result=${3} 7736 func_stripname_result=${func_stripname_result#"${1}"} 7737 func_stripname_result=${func_stripname_result%"${2}"}]) 7738 7739 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl 7740 func_split_long_opt_name=${1%%=*} 7741 func_split_long_opt_arg=${1#*=}]) 7742 7743 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl 7744 func_split_short_opt_arg=${1#??} 7745 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) 7746 7747 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl 7748 case ${1} in 7749 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 7750 *) func_lo2o_result=${1} ;; 7751 esac]) 7752 7753 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) 7754 7755 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))]) 7756 7757 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}]) 7758 fi 7759 7760 if test x"$lt_shell_append" = xyes; then 7761 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"]) 7762 7763 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl 7764 func_quote_for_eval "${2}" 7765 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \ 7766 eval "${1}+=\\\\ \\$func_quote_for_eval_result"]) 7767 7768 # Save a `func_append' function call where possible by direct use of '+=' 7769 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 7770 && mv -f "$cfgfile.tmp" "$cfgfile" \ 7771 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 7772 test 0 -eq $? || _lt_function_replace_fail=: 7773 else 7774 # Save a `func_append' function call even when '+=' is not available 7775 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 7776 && mv -f "$cfgfile.tmp" "$cfgfile" \ 7777 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 7778 test 0 -eq $? || _lt_function_replace_fail=: 7779 fi 7780 7781 if test x"$_lt_function_replace_fail" = x":"; then 7782 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile]) 7783 fi 7784 ]) 7785 7786 # _LT_PATH_CONVERSION_FUNCTIONS 7787 # ----------------------------- 7788 # Determine which file name conversion functions should be used by 7789 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed 7790 # for certain cross-compile configurations and native mingw. 7791 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], 7792 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 7793 AC_REQUIRE([AC_CANONICAL_BUILD])dnl 7794 AC_MSG_CHECKING([how to convert $build file names to $host format]) 7795 AC_CACHE_VAL(lt_cv_to_host_file_cmd, 7796 [case $host in 7797 *-*-mingw* ) 7798 case $build in 7799 *-*-mingw* ) # actually msys 7800 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7801 ;; 7802 *-*-cygwin* ) 7803 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7804 ;; 7805 * ) # otherwise, assume *nix 7806 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7807 ;; 7808 esac 7269 7809 ;; 7270 *) # Bourne compatible functions. 7271 cat << \_LT_EOF >> "$cfgfile" 7272 7273 # func_dirname file append nondir_replacement 7274 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 7275 # otherwise set result to NONDIR_REPLACEMENT. 7276 func_dirname () 7277 { 7278 # Extract subdirectory from the argument. 7279 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 7280 if test "X$func_dirname_result" = "X${1}"; then 7281 func_dirname_result="${3}" 7282 else 7283 func_dirname_result="$func_dirname_result${2}" 7284 fi 7285 } 7286 7287 # func_basename file 7288 func_basename () 7289 { 7290 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 7291 } 7292 7293 dnl func_dirname_and_basename 7294 dnl A portable version of this function is already defined in general.m4sh 7295 dnl so there is no need for it here. 7296 7297 # func_stripname prefix suffix name 7298 # strip PREFIX and SUFFIX off of NAME. 7299 # PREFIX and SUFFIX must not contain globbing or regex special 7300 # characters, hashes, percent signs, but SUFFIX may contain a leading 7301 # dot (in which case that matches only a dot). 7302 # func_strip_suffix prefix name 7303 func_stripname () 7304 { 7305 case ${2} in 7306 .*) func_stripname_result=`$ECHO "X${3}" \ 7307 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 7308 *) func_stripname_result=`$ECHO "X${3}" \ 7309 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 7310 esac 7311 } 7312 7313 # sed scripts: 7314 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' 7315 my_sed_long_arg='1s/^-[[^=]]*=//' 7316 7317 # func_opt_split 7318 func_opt_split () 7319 { 7320 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 7321 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 7322 } 7323 7324 # func_lo2o object 7325 func_lo2o () 7326 { 7327 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 7328 } 7329 7330 # func_xform libobj-or-source 7331 func_xform () 7332 { 7333 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` 7334 } 7335 7336 # func_arith arithmetic-term... 7337 func_arith () 7338 { 7339 func_arith_result=`expr "$[@]"` 7340 } 7341 7342 # func_len string 7343 # STRING may not start with a hyphen. 7344 func_len () 7345 { 7346 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` 7347 } 7348 7349 _LT_EOF 7810 *-*-cygwin* ) 7811 case $build in 7812 *-*-mingw* ) # actually msys 7813 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7814 ;; 7815 *-*-cygwin* ) 7816 lt_cv_to_host_file_cmd=func_convert_file_noop 7817 ;; 7818 * ) # otherwise, assume *nix 7819 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7820 ;; 7821 esac 7822 ;; 7823 * ) # unhandled hosts (and "normal" native builds) 7824 lt_cv_to_host_file_cmd=func_convert_file_noop 7825 ;; 7350 7826 esac 7351 7352 case $lt_shell_append in 7353 yes) 7354 cat << \_LT_EOF >> "$cfgfile" 7355 7356 # func_append var value 7357 # Append VALUE to the end of shell variable VAR. 7358 func_append () 7359 { 7360 eval "$[1]+=\$[2]" 7361 } 7362 _LT_EOF 7827 ]) 7828 to_host_file_cmd=$lt_cv_to_host_file_cmd 7829 AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) 7830 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], 7831 [0], [convert $build file names to $host format])dnl 7832 7833 AC_MSG_CHECKING([how to convert $build file names to toolchain format]) 7834 AC_CACHE_VAL(lt_cv_to_tool_file_cmd, 7835 [#assume ordinary cross tools, or native build. 7836 lt_cv_to_tool_file_cmd=func_convert_file_noop 7837 case $host in 7838 *-*-mingw* ) 7839 case $build in 7840 *-*-mingw* ) # actually msys 7841 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7842 ;; 7843 esac 7363 7844 ;; 7364 *) 7365 cat << \_LT_EOF >> "$cfgfile" 7366 7367 # func_append var value 7368 # Append VALUE to the end of shell variable VAR. 7369 func_append () 7370 { 7371 eval "$[1]=\$$[1]\$[2]" 7372 } 7373 7374 _LT_EOF 7375 ;; 7376 esac 7845 esac 7377 7846 ]) 7847 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7848 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) 7849 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], 7850 [0], [convert $build files to toolchain format])dnl 7851 ])# _LT_PATH_CONVERSION_FUNCTIONS -
trunk/FACT++/.macro_dir/ltoptions.m4
r10183 r12832 1 1 # Helper functions for option handling. -*- Autoconf -*- 2 2 # 3 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 3 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, 4 # Inc. 4 5 # Written by Gary V. Vaughan, 2004 5 6 # … … 8 9 # modifications, as long as this notice is preserved. 9 10 10 # serial 6ltoptions.m411 # serial 7 ltoptions.m4 11 12 12 13 # This is to help aclocal find these macros, as it can't see m4_define. … … 126 127 127 128 case $host in 128 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *- cegcc*)129 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 129 130 AC_CHECK_TOOL(AS, as, false) 130 131 AC_CHECK_TOOL(DLLTOOL, dlltool, false) … … 134 135 135 136 test -z "$AS" && AS=as 136 _LT_DECL([], [AS], [ 0], [Assembler program])dnl137 _LT_DECL([], [AS], [1], [Assembler program])dnl 137 138 138 139 test -z "$DLLTOOL" && DLLTOOL=dlltool 139 _LT_DECL([], [DLLTOOL], [ 0], [DLL creation program])dnl140 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl 140 141 141 142 test -z "$OBJDUMP" && OBJDUMP=objdump 142 _LT_DECL([], [OBJDUMP], [ 0], [Object dumper program])dnl143 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl 143 144 ])# win32-dll 144 145 -
trunk/FACT++/.macro_dir/ltversion.m4
r10183 r12832 8 8 # modifications, as long as this notice is preserved. 9 9 10 # Generated from ltversion.in.10 # @configure_input@ 11 11 12 # serial 3 017ltversion.m412 # serial 3293 ltversion.m4 13 13 # This file is part of GNU Libtool 14 14 15 m4_define([LT_PACKAGE_VERSION], [2. 2.6b])16 m4_define([LT_PACKAGE_REVISION], [1.3 017])15 m4_define([LT_PACKAGE_VERSION], [2.4]) 16 m4_define([LT_PACKAGE_REVISION], [1.3293]) 17 17 18 18 AC_DEFUN([LTVERSION_VERSION], 19 [macro_version='2. 2.6b'20 macro_revision='1.3 017'19 [macro_version='2.4' 20 macro_revision='1.3293' 21 21 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 22 22 _LT_DECL(, macro_revision, 0) -
trunk/FACT++/.macro_dir/lt~obsolete.m4
r10183 r12832 1 1 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 2 2 # 3 # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.3 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. 4 4 # Written by Scott James Remnant, 2004. 5 5 # … … 8 8 # modifications, as long as this notice is preserved. 9 9 10 # serial 4lt~obsolete.m410 # serial 5 lt~obsolete.m4 11 11 12 12 # These exist entirely to fool aclocal when bootstrapping libtool. … … 78 78 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 79 79 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 80 m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])81 80 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 82 81 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) … … 91 90 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 92 91 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 92 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) 93 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) 94 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) 95 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) 96 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) 97 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) 98 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) -
trunk/FACT++/Makefile.in
r12768 r12832 104 104 configure.lineno config.status.lineno 105 105 mkinstalldirs = $(install_sh) -d 106 CONFIG_CLEAN_FILES = 106 CONFIG_CLEAN_FILES = g++ gcc 107 107 CONFIG_CLEAN_VPATH_FILES = 108 108 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; … … 186 186 am_biasctrl_OBJECTS = src/biasctrl.$(OBJEXT) src/PixelMap.$(OBJEXT) 187 187 biasctrl_OBJECTS = $(am_biasctrl_OBJECTS) 188 biasctrl_DEPENDENCIES = libDim .la libDim++.la libDimExtension.la \189 lib Time.la libTools.la libStateMachine.la libConfiguration.la188 biasctrl_DEPENDENCIES = libDim++.la libDim.la libDimExtension.la \ 189 libStateMachine.la libTools.la libTime.la libConfiguration.la 190 190 am_chatclient_OBJECTS = src/chatclient.$(OBJEXT) 191 191 chatclient_OBJECTS = $(am_chatclient_OBJECTS) 192 chatclient_DEPENDENCIES = lib Tools.la libStateMachine.la libTime.la \193 libDim .la libDim++.la libDimExtension.la libConfiguration.la192 chatclient_DEPENDENCIES = libStateMachine.la libTools.la libTime.la \ 193 libDim++.la libDim.la libDimExtension.la libConfiguration.la 194 194 am_chatserv_OBJECTS = src/chatserv.$(OBJEXT) 195 195 chatserv_OBJECTS = $(am_chatserv_OBJECTS) 196 chatserv_DEPENDENCIES = lib Tools.la libStateMachine.la \197 libConfiguration.la libTime.la libDim .la libDim++.la \196 chatserv_DEPENDENCIES = libStateMachine.la libTools.la \ 197 libConfiguration.la libTime.la libDim++.la libDim.la \ 198 198 libDimExtension.la 199 199 am__datalogger_SOURCES_DIST = src/datalogger.cc src/LocalControl.h \ … … 203 203 am_datalogger_OBJECTS = src/datalogger.$(OBJEXT) $(am__objects_1) 204 204 datalogger_OBJECTS = $(am_datalogger_OBJECTS) 205 datalogger_DEPENDENCIES = libDim .la libDim++.la libDimExtension.la \206 lib Time.la libTools.la libStateMachine.la libConfiguration.la205 datalogger_DEPENDENCIES = libDim++.la libDim.la libDimExtension.la \ 206 libStateMachine.la libTools.la libTime.la libConfiguration.la 207 207 am_dclient5_OBJECTS = src/dclient5.$(OBJEXT) 208 208 dclient5_OBJECTS = $(am_dclient5_OBJECTS) 209 dclient5_DEPENDENCIES = libDim .la libDim++.la libTime.la libTools.la \210 lib StateMachine.la libConfiguration.la209 dclient5_DEPENDENCIES = libDim++.la libDim.la libStateMachine.la \ 210 libTime.la libTools.la libConfiguration.la 211 211 am_did_OBJECTS = dim/src/did/did-did.$(OBJEXT) \ 212 212 dim/src/did/did-dui_util.$(OBJEXT) … … 215 215 am_dimctrl_OBJECTS = src/dimctrl.$(OBJEXT) src/RemoteControl.$(OBJEXT) 216 216 dimctrl_OBJECTS = $(am_dimctrl_OBJECTS) 217 dimctrl_DEPENDENCIES = lib Tools.la libStateMachine.la libTime.la \218 libDim .la libDim++.la libDimExtension.la libConfiguration.la217 dimctrl_DEPENDENCIES = libStateMachine.la libTools.la libTime.la \ 218 libDim++.la libDim.la libDimExtension.la libConfiguration.la 219 219 am_dns_OBJECTS = src/dns.$(OBJEXT) 220 220 dns_OBJECTS = $(am_dns_OBJECTS) … … 223 223 src/HeadersFTM.$(OBJEXT) 224 224 drivectrl_OBJECTS = $(am_drivectrl_OBJECTS) 225 drivectrl_DEPENDENCIES = libDim .la libDim++.la libDimExtension.la \226 lib Time.la libTools.la libStateMachine.la libConfiguration.la225 drivectrl_DEPENDENCIES = libDim++.la libDim.la libDimExtension.la \ 226 libStateMachine.la libTools.la libTime.la libConfiguration.la 227 227 am_dserver2_OBJECTS = src/dserver2.$(OBJEXT) 228 228 dserver2_OBJECTS = $(am_dserver2_OBJECTS) … … 254 254 am__DEPENDENCIES_1 = 255 255 fact_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ 256 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) libDim .la \257 libDim ++.la libDimExtension.la libTools.la libTime.la \258 libT ools.la libStateMachine.la libConfiguration.la256 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) libDim++.la \ 257 libDim.la libDimExtension.la libTools.la libStateMachine.la \ 258 libTime.la libTools.la libConfiguration.la 259 259 am_fad_OBJECTS = src/fad.$(OBJEXT) src/HeadersFAD.$(OBJEXT) 260 260 fad_OBJECTS = $(am_fad_OBJECTS) 261 fad_DEPENDENCIES = libTime.la libTools.la libTools.la libDim .la \262 libDim ++.la libConfiguration.la libDimExtension.la261 fad_DEPENDENCIES = libTime.la libTools.la libTools.la libDim++.la \ 262 libDim.la libConfiguration.la libDimExtension.la 263 263 am__fadctrl_SOURCES_DIST = src/fadctrl.cc src/LocalControl.h \ 264 264 src/HeadersFAD.cc src/EventBuilder.c src/EventBuilder.h \ … … 274 274 $(am__objects_7) 275 275 fadctrl_OBJECTS = $(am_fadctrl_OBJECTS) 276 fadctrl_DEPENDENCIES = libDim .la libDim++.la libDimExtension.la \277 lib Time.la libTools.la libStateMachine.la libConfiguration.la276 fadctrl_DEPENDENCIES = libDim++.la libDim.la libDimExtension.la \ 277 libStateMachine.la libTools.la libTime.la libConfiguration.la 278 278 am_feedback_OBJECTS = src/feedback.$(OBJEXT) src/PixelMap.$(OBJEXT) 279 279 feedback_OBJECTS = $(am_feedback_OBJECTS) 280 feedback_DEPENDENCIES = libDim .la libDim++.la libDimExtension.la \281 lib Time.la libTools.la libStateMachine.la libConfiguration.la280 feedback_DEPENDENCIES = libDim++.la libDim.la libDimExtension.la \ 281 libStateMachine.la libTools.la libTime.la libConfiguration.la 282 282 am_fitsdump_OBJECTS = src/fitsdump.$(OBJEXT) 283 283 fitsdump_OBJECTS = $(am_fitsdump_OBJECTS) … … 289 289 fitsloader_OBJECTS = $(am_fitsloader_OBJECTS) 290 290 fitsloader_DEPENDENCIES = libStateMachine.la libTools.la libTime.la \ 291 libDim .la libDim++.la libConfiguration.la291 libDim++.la libDim.la libConfiguration.la 292 292 am_fsc_OBJECTS = src/fsc.$(OBJEXT) 293 293 fsc_OBJECTS = $(am_fsc_OBJECTS) … … 295 295 am_fscctrl_OBJECTS = src/fscctrl.$(OBJEXT) 296 296 fscctrl_OBJECTS = $(am_fscctrl_OBJECTS) 297 fscctrl_DEPENDENCIES = libDim .la libDim++.la libDimExtension.la \298 lib Time.la libTools.la libStateMachine.la libConfiguration.la297 fscctrl_DEPENDENCIES = libDim++.la libDim.la libDimExtension.la \ 298 libStateMachine.la libTools.la libTime.la libConfiguration.la 299 299 am_ftm_OBJECTS = src/ftm.$(OBJEXT) src/HeadersFTM.$(OBJEXT) 300 300 ftm_OBJECTS = $(am_ftm_OBJECTS) 301 ftm_DEPENDENCIES = libTime.la libTools.la libDim .la libDim++.la \301 ftm_DEPENDENCIES = libTime.la libTools.la libDim++.la libDim.la \ 302 302 libConfiguration.la libDimExtension.la 303 303 am_ftmctrl_OBJECTS = src/ftmctrl.$(OBJEXT) src/HeadersFTM.$(OBJEXT) 304 304 ftmctrl_OBJECTS = $(am_ftmctrl_OBJECTS) 305 ftmctrl_DEPENDENCIES = libDim .la libDim++.la libDimExtension.la \306 lib Time.la libTools.la libStateMachine.la libConfiguration.la305 ftmctrl_DEPENDENCIES = libDim++.la libDim.la libDimExtension.la \ 306 libStateMachine.la libTime.la libTools.la libConfiguration.la 307 307 am_log_OBJECTS = src/log.$(OBJEXT) 308 308 log_OBJECTS = $(am_log_OBJECTS) 309 log_DEPENDENCIES = lib Time.la libDim.la libDim++.la libTools.la \310 lib StateMachine.la309 log_DEPENDENCIES = libDim++.la libDim.la libStateMachine.la libTime.la \ 310 libTools.la 311 311 am_logtime_OBJECTS = src/logtime.$(OBJEXT) 312 312 logtime_OBJECTS = $(am_logtime_OBJECTS) 313 logtime_DEPENDENCIES = lib Tools.la libStateMachine.la libTime.la \314 libDim .la libDim++.la313 logtime_DEPENDENCIES = libStateMachine.la libTools.la libTime.la \ 314 libDim++.la libDim.la 315 315 am_magicweather_OBJECTS = src/magicweather.$(OBJEXT) 316 316 magicweather_OBJECTS = $(am_magicweather_OBJECTS) 317 magicweather_DEPENDENCIES = libDim .la libDim++.la libDimExtension.la \318 lib Time.la libTools.la libStateMachine.la libConfiguration.la317 magicweather_DEPENDENCIES = libDim++.la libDim.la libDimExtension.la \ 318 libStateMachine.la libTools.la libTime.la libConfiguration.la 319 319 am_mcp_OBJECTS = src/mcp.$(OBJEXT) 320 320 mcp_OBJECTS = $(am_mcp_OBJECTS) 321 mcp_DEPENDENCIES = libDim .la libDim++.la libDimExtension.la libTime.la \322 lib Tools.la libStateMachine.la libConfiguration.la321 mcp_DEPENDENCIES = libDim++.la libDim.la libDimExtension.la \ 322 libStateMachine.la libTools.la libTime.la libConfiguration.la 323 323 am_ratecontrol_OBJECTS = src/ratecontrol.$(OBJEXT) \ 324 324 src/PixelMap.$(OBJEXT) 325 325 ratecontrol_OBJECTS = $(am_ratecontrol_OBJECTS) 326 ratecontrol_DEPENDENCIES = libDim .la libDim++.la libDimExtension.la \327 lib Time.la libTools.la libStateMachine.la libConfiguration.la326 ratecontrol_DEPENDENCIES = libDim++.la libDim.la libDimExtension.la \ 327 libStateMachine.la libTools.la libTime.la libConfiguration.la 328 328 am_ratescan_OBJECTS = src/ratescan.$(OBJEXT) src/PixelMap.$(OBJEXT) 329 329 ratescan_OBJECTS = $(am_ratescan_OBJECTS) 330 ratescan_DEPENDENCIES = libDim .la libDim++.la libDimExtension.la \331 lib Time.la libTools.la libStateMachine.la libConfiguration.la330 ratescan_DEPENDENCIES = libDim++.la libDim.la libDimExtension.la \ 331 libStateMachine.la libTools.la libTime.la libConfiguration.la 332 332 am_readfits_OBJECTS = src/readfits.$(OBJEXT) 333 333 readfits_OBJECTS = $(am_readfits_OBJECTS) 334 334 readfits_DEPENDENCIES = libStateMachine.la libTools.la libTime.la \ 335 libDim .la libDim++.la libConfiguration.la335 libDim++.la libDim.la libConfiguration.la 336 336 sched_SOURCES = sched.c 337 337 sched_OBJECTS = sched.$(OBJEXT) … … 340 340 scheduler_OBJECTS = $(am_scheduler_OBJECTS) 341 341 scheduler_DEPENDENCIES = libStateMachine.la libTools.la libTime.la \ 342 libDim .la libDim++.la libDimExtension.la libConfiguration.la342 libDim++.la libDim.la libDimExtension.la libConfiguration.la 343 343 am_test_OBJECTS = src/test.$(OBJEXT) 344 344 test_OBJECTS = $(am_test_OBJECTS) 345 test_DEPENDENCIES = lib Tools.la libStateMachine.la libTime.la \346 libDim .la libDim++.la libConfiguration.la345 test_DEPENDENCIES = libStateMachine.la libTools.la libTime.la \ 346 libDim++.la libDim.la libConfiguration.la 347 347 am_time_OBJECTS = src/time.$(OBJEXT) 348 348 time_OBJECTS = $(am_time_OBJECTS) … … 350 350 am_triggerschedule_OBJECTS = src/triggerschedule.$(OBJEXT) 351 351 triggerschedule_OBJECTS = $(am_triggerschedule_OBJECTS) 352 triggerschedule_DEPENDENCIES = libDim .la libDim++.la \352 triggerschedule_DEPENDENCIES = libDim++.la libDim.la \ 353 353 libDimExtension.la libConfiguration.la 354 354 am__viewer_SOURCES_DIST = gui/RawEventsViewer/viewer.h \ … … 372 372 viewer_OBJECTS = $(am_viewer_OBJECTS) 373 373 viewer_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ 374 libDim .la libDim++.la libDimExtension.la libConfiguration.la \375 libTools.la lib StateMachine.la libTime.la374 libDimExtension.la libConfiguration.la libStateMachine.la \ 375 libTools.la libTime.la libDim++.la libDim.la 376 376 viewer_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ 377 377 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(viewer_CXXFLAGS) \ … … 500 500 DEFS = @DEFS@ 501 501 DEPDIR = @DEPDIR@ 502 DLLTOOL = @DLLTOOL@ 502 503 DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ 503 504 DSYMUTIL = @DSYMUTIL@ … … 550 551 LT_HAVE_XP = @LT_HAVE_XP@ 551 552 MAKEINFO = @MAKEINFO@ 553 MANIFEST_TOOL = @MANIFEST_TOOL@ 552 554 MKDIR_P = @MKDIR_P@ 553 555 MOC4 = @MOC4@ … … 626 628 abs_top_builddir = @abs_top_builddir@ 627 629 abs_top_srcdir = @abs_top_srcdir@ 630 ac_ct_AR = @ac_ct_AR@ 628 631 ac_ct_CC = @ac_ct_CC@ 629 632 ac_ct_CXX = @ac_ct_CXX@ 630 633 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ 631 acx_pthread_config = @acx_pthread_config@632 634 am__include = @am__include@ 633 635 am__leading_dot = @am__leading_dot@ … … 635 637 am__tar = @am__tar@ 636 638 am__untar = @am__untar@ 639 ax_pthread_config = @ax_pthread_config@ 637 640 bindir = @bindir@ 638 641 build = @build@ … … 660 663 localedir = @localedir@ 661 664 localstatedir = @localstatedir@ 662 lt_ECHO = @lt_ECHO@663 665 mandir = @mandir@ 664 666 mkdir_p = @mkdir_p@ … … 691 693 AM_LDFLAGS = -module -avoid-version 692 694 lib_LTLIBRARIES = \ 693 libDim .la libDim++.la libDimExtension.la libTime.la libTools.la \694 libConfiguration.la libStateMachine.la 695 libDim++.la libDim.la libDimExtension.la \ 696 libConfiguration.la libStateMachine.la libTime.la libTools.la 695 697 696 698 # libAstro.la … … 824 826 dserver2_LDADD = libTime.la libTools.la 825 827 ftm_SOURCES = src/ftm.cc src/HeadersFTM.cc 826 ftm_LDADD = libTime.la libTools.la libDim .la libDim++.la libConfiguration.la libDimExtension.la828 ftm_LDADD = libTime.la libTools.la libDim++.la libDim.la libConfiguration.la libDimExtension.la 827 829 fad_SOURCES = src/fad.cc src/HeadersFAD.cc 828 fad_LDADD = libTime.la libTools.la libTools.la libDim .la libDim++.la libConfiguration.la libDimExtension.la830 fad_LDADD = libTime.la libTools.la libTools.la libDim++.la libDim.la libConfiguration.la libDimExtension.la 829 831 fsc_SOURCES = src/fsc.cc 830 832 fsc_LDADD = libTime.la libTools.la 831 833 log_SOURCES = src/log.cc 832 log_LDADD = lib Time.la libDim.la libDim++.la libTools.la libStateMachine.la834 log_LDADD = libDim++.la libDim.la libStateMachine.la libTime.la libTools.la 833 835 logtime_SOURCES = src/logtime.cc 834 logtime_LDADD = lib Tools.la libStateMachine.la libTime.la libDim.la libDim++.la836 logtime_LDADD = libStateMachine.la libTools.la libTime.la libDim++.la libDim.la 835 837 chatserv_SOURCES = src/chatserv.cc src/LocalControl.h 836 chatserv_LDADD = lib Tools.la libStateMachine.la libConfiguration.la libTime.la \837 libDim .la libDim++.la libDimExtension.la838 chatserv_LDADD = libStateMachine.la libTools.la libConfiguration.la libTime.la \ 839 libDim++.la libDim.la libDimExtension.la 838 840 839 841 dclient5_SOURCES = src/dclient5.cc src/LocalControl.h 840 dclient5_LDADD = libDim .la libDim++.la libTime.la libTools.la libStateMachine.la \842 dclient5_LDADD = libDim++.la libDim.la libStateMachine.la libTime.la libTools.la \ 841 843 libConfiguration.la 842 844 843 845 ftmctrl_SOURCES = src/ftmctrl.cc src/LocalControl.h src/HeadersFTM.cc 844 ftmctrl_LDADD = libDim .la libDim++.lalibDimExtension.la \845 lib Time.la libTools.la libStateMachine.la \846 ftmctrl_LDADD = libDim++.la libDim.la libDimExtension.la \ 847 libStateMachine.la libTime.la libTools.la \ 846 848 libConfiguration.la 847 849 848 850 drivectrl_SOURCES = src/drivectrl.cc src/LocalControl.h src/HeadersFTM.cc 849 drivectrl_LDADD = libDim .la libDim++.la libDimExtension.la \850 lib Time.la libTools.la libStateMachine.la \851 drivectrl_LDADD = libDim++.la libDim.la libDimExtension.la \ 852 libStateMachine.la libTools.la libTime.la \ 851 853 libConfiguration.la 852 854 853 855 magicweather_SOURCES = src/magicweather.cc src/LocalControl.h 854 magicweather_LDADD = libDim .la libDim++.la libDimExtension.la \855 lib Time.la libTools.la libStateMachine.la \856 magicweather_LDADD = libDim++.la libDim.la libDimExtension.la \ 857 libStateMachine.la libTools.la libTime.la \ 856 858 libConfiguration.la 857 859 … … 861 863 src/DataWriteRaw.cc src/DataWriteRaw.h src/DrsCalib.h \ 862 864 $(am__append_5) 863 fadctrl_LDADD = libDim .la libDim++.la libDimExtension.la \864 lib Time.la libTools.la libStateMachine.la \865 fadctrl_LDADD = libDim++.la libDim.la libDimExtension.la \ 866 libStateMachine.la libTools.la libTime.la \ 865 867 libConfiguration.la 866 868 867 869 fscctrl_SOURCES = src/fscctrl.cc src/LocalControl.h 868 fscctrl_LDADD = libDim .la libDim++.la libDimExtension.la \869 lib Time.la libTools.la libStateMachine.la \870 fscctrl_LDADD = libDim++.la libDim.la libDimExtension.la \ 871 libStateMachine.la libTools.la libTime.la \ 870 872 libConfiguration.la 871 873 872 874 biasctrl_SOURCES = src/biasctrl.cc src/LocalControl.h src/PixelMap.cc 873 biasctrl_LDADD = libDim .la libDim++.la libDimExtension.la \874 lib Time.la libTools.la libStateMachine.la \875 biasctrl_LDADD = libDim++.la libDim.la libDimExtension.la \ 876 libStateMachine.la libTools.la libTime.la \ 875 877 libConfiguration.la 876 878 877 879 mcp_SOURCES = src/mcp.cc src/LocalControl.h 878 mcp_LDADD = libDim .la libDim++.la libDimExtension.la \879 lib Time.la libTools.la libStateMachine.la \880 mcp_LDADD = libDim++.la libDim.la libDimExtension.la \ 881 libStateMachine.la libTools.la libTime.la \ 880 882 libConfiguration.la 881 883 882 884 feedback_SOURCES = src/feedback.cc src/LocalControl.h src/PixelMap.cc 883 feedback_LDADD = libDim .la libDim++.la libDimExtension.la \884 lib Time.la libTools.la libStateMachine.la \885 feedback_LDADD = libDim++.la libDim.la libDimExtension.la \ 886 libStateMachine.la libTools.la libTime.la \ 885 887 libConfiguration.la 886 888 887 889 ratescan_SOURCES = src/ratescan.cc src/LocalControl.h src/PixelMap.cc 888 ratescan_LDADD = libDim .la libDim++.la libDimExtension.la \889 lib Time.la libTools.la libStateMachine.la \890 ratescan_LDADD = libDim++.la libDim.la libDimExtension.la \ 891 libStateMachine.la libTools.la libTime.la \ 890 892 libConfiguration.la 891 893 892 894 ratecontrol_SOURCES = src/ratecontrol.cc src/LocalControl.h src/PixelMap.cc 893 ratecontrol_LDADD = libDim .la libDim++.la libDimExtension.la \894 lib Time.la libTools.la libStateMachine.la \895 ratecontrol_LDADD = libDim++.la libDim.la libDimExtension.la \ 896 libStateMachine.la libTools.la libTime.la \ 895 897 libConfiguration.la 896 898 … … 898 900 argv_LDADD = libConfiguration.la 899 901 dimctrl_SOURCES = src/dimctrl.cc src/RemoteControl.cc src/RemoteControl.h 900 dimctrl_LDADD = lib Tools.la libStateMachine.la libTime.la \901 libDim .la libDim++.la libDimExtension.la libConfiguration.la902 dimctrl_LDADD = libStateMachine.la libTools.la libTime.la \ 903 libDim++.la libDim.la libDimExtension.la libConfiguration.la 902 904 903 905 chatclient_SOURCES = src/chatclient.cc src/ChatClient.h 904 chatclient_LDADD = lib Tools.la libStateMachine.la libTime.la \905 libDim .la libDim++.la libDimExtension.la libConfiguration.la906 chatclient_LDADD = libStateMachine.la libTools.la libTime.la \ 907 libDim++.la libDim.la libDimExtension.la libConfiguration.la 906 908 907 909 time_SOURCES = src/time.cc … … 911 913 #astro_LDADD = libAstro.la libTime.la 912 914 test_SOURCES = src/test.cc 913 test_LDADD = lib Tools.la libStateMachine.la libTime.la libDim.la libDim++.la libConfiguration.la915 test_LDADD = libStateMachine.la libTools.la libTime.la libDim++.la libDim.la libConfiguration.la 914 916 datalogger_SOURCES = src/datalogger.cc src/LocalControl.h \ 915 917 $(am__append_6) 916 datalogger_LDADD = libDim .la libDim++.la libDimExtension.la \917 lib Time.la libTools.la libStateMachine.la \918 datalogger_LDADD = libDim++.la libDim.la libDimExtension.la \ 919 libStateMachine.la libTools.la libTime.la \ 918 920 libConfiguration.la 919 921 920 922 scheduler_SOURCES = src/scheduler.cc src/LocalControl.h 921 923 scheduler_LDADD = libStateMachine.la libTools.la libTime.la \ 922 libDim .la libDim++.la libDimExtension.la libConfiguration.la924 libDim++.la libDim.la libDimExtension.la libConfiguration.la 923 925 924 926 fitsloader_SOURCES = src/fitsloader.cc src/LocalControl.h 925 fitsloader_LDADD = libStateMachine.la libTools.la libTime.la libDim .la libDim++.la libConfiguration.la927 fitsloader_LDADD = libStateMachine.la libTools.la libTime.la libDim++.la libDim.la libConfiguration.la 926 928 fitsdump_SOURCES = src/fitsdump.cc 927 929 fitsdump_LDADD = libConfiguration.la libTime.la 928 930 readfits_SOURCES = src/readfits.cc src/ReadFits.h 929 readfits_LDADD = libStateMachine.la libTools.la libTime.la libDim .la libDim++.la libConfiguration.la931 readfits_LDADD = libStateMachine.la libTools.la libTime.la libDim++.la libDim.la libConfiguration.la 930 932 triggerschedule_SOURCES = src/triggerschedule.cc 931 triggerschedule_LDADD = libDim .la libDim++.la libDimExtension.la libConfiguration.la933 triggerschedule_LDADD = libDim++.la libDim.la libDimExtension.la libConfiguration.la 932 934 933 935 #fitsgrep_SOURCES = src/fitsgrep.cc … … 961 963 BUILT_SOURCES = $(fact_SRCADD) $(viewer_SRCADD) 962 964 fact_LDADD = $(ROOTLDFLAGS) $(ROOTGLIBS) $(QT4_LIB) $(QT4_LDFLAGS) -L. \ 963 libDim .la libDim++.la libDimExtension.la \964 libTools.la lib Time.la libTools.la libStateMachine.la \965 libDim++.la libDim.la libDimExtension.la \ 966 libTools.la libStateMachine.la libTime.la libTools.la \ 965 967 libConfiguration.la 966 968 … … 974 976 viewer_CXXFLAGS = $(AM_CXXFLAGS) -Wno-shadow 975 977 viewer_LDADD = $(QT4_LIB) $(QT4_LDFLAGS) -L. -lQtOpenGL -lGLU \ 976 libDim .la libDim++.la libDimExtension.la \977 libConfiguration.la lib Tools.la libStateMachine.la \978 libTime.la 978 libDimExtension.la \ 979 libConfiguration.la libStateMachine.la libTools.la \ 980 libTime.la libDim++.la libDim.la 979 981 980 982 viewer_SOURCES = $(viewer_SRCADD) $(viewer_QT_SOURCES) \ -
trunk/FACT++/aclocal.m4
r12768 r12832 14 14 m4_ifndef([AC_AUTOCONF_VERSION], 15 15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.6 7],,17 [m4_warning([this file was generated for autoconf 2.6 7.16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],, 17 [m4_warning([this file was generated for autoconf 2.68. 18 18 You have another version of autoconf. It may work, but is not guaranteed to. 19 19 If you have problems, you may need to regenerate the build system entirely. … … 21 21 22 22 # =========================================================================== 23 # http://autoconf-archive.cryp.to/acx_pthread.html 24 # =========================================================================== 25 # 26 # SYNOPSIS 27 # 28 # ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 29 # 30 # DESCRIPTION 31 # 32 # This macro figures out how to build C programs using POSIX threads. It 33 # sets the PTHREAD_LIBS output variable to the threads library and linker 34 # flags, and the PTHREAD_CFLAGS output variable to any special C compiler 35 # flags that are needed. (The user can also force certain compiler 36 # flags/libs to be tested by setting these environment variables.) 37 # 38 # Also sets PTHREAD_CC to any special C compiler that is needed for 39 # multi-threaded programs (defaults to the value of CC otherwise). (This 40 # is necessary on AIX to use the special cc_r compiler alias.) 41 # 42 # NOTE: You are assumed to not only compile your program with these flags, 43 # but also link it with them as well. e.g. you should link with 44 # $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS 45 # 46 # If you are only building threads programs, you may wish to use these 47 # variables in your default LIBS, CFLAGS, and CC: 48 # 49 # LIBS="$PTHREAD_LIBS $LIBS" 50 # CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 51 # CC="$PTHREAD_CC" 52 # 53 # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant 54 # has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name 55 # (e.g. PTHREAD_CREATE_UNDETACHED on AIX). 56 # 57 # ACTION-IF-FOUND is a list of shell commands to run if a threads library 58 # is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it 59 # is not found. If ACTION-IF-FOUND is not specified, the default action 60 # will define HAVE_PTHREAD. 61 # 62 # Please let the authors know if this macro fails on any platform, or if 63 # you have any other suggestions or comments. This macro was based on work 64 # by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help 65 # from M. Frigo), as well as ac_pthread and hb_pthread macros posted by 66 # Alejandro Forero Cuervo to the autoconf macro repository. We are also 67 # grateful for the helpful feedback of numerous users. 68 # 69 # LICENSE 70 # 71 # Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu> 72 # 73 # This program is free software: you can redistribute it and/or modify it 74 # under the terms of the GNU General Public License as published by the 75 # Free Software Foundation, either version 3 of the License, or (at your 76 # option) any later version. 77 # 78 # This program is distributed in the hope that it will be useful, but 79 # WITHOUT ANY WARRANTY; without even the implied warranty of 80 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 81 # Public License for more details. 82 # 83 # You should have received a copy of the GNU General Public License along 84 # with this program. If not, see <http://www.gnu.org/licenses/>. 85 # 86 # As a special exception, the respective Autoconf Macro's copyright owner 87 # gives unlimited permission to copy, distribute and modify the configure 88 # scripts that are the output of Autoconf when processing the Macro. You 89 # need not follow the terms of the GNU General Public License when using 90 # or distributing such scripts, even though portions of the text of the 91 # Macro appear in them. The GNU General Public License (GPL) does govern 92 # all other use of the material that constitutes the Autoconf Macro. 93 # 94 # This special exception to the GPL applies to versions of the Autoconf 95 # Macro released by the Autoconf Archive. When you make and distribute a 96 # modified version of the Autoconf Macro, you may extend this special 97 # exception to the GPL to apply to your modified version as well. 98 99 AC_DEFUN([ACX_PTHREAD], [ 100 AC_REQUIRE([AC_CANONICAL_HOST]) 101 AC_LANG_SAVE 102 AC_LANG_C 103 acx_pthread_ok=no 104 105 # We used to check for pthread.h first, but this fails if pthread.h 106 # requires special compiler flags (e.g. on True64 or Sequent). 107 # It gets checked for in the link test anyway. 108 109 # First of all, check if the user has set any of the PTHREAD_LIBS, 110 # etcetera environment variables, and if threads linking works using 111 # them: 112 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 113 save_CFLAGS="$CFLAGS" 114 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 115 save_LIBS="$LIBS" 116 LIBS="$PTHREAD_LIBS $LIBS" 117 AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS]) 118 AC_TRY_LINK_FUNC(pthread_join, acx_pthread_ok=yes) 119 AC_MSG_RESULT($acx_pthread_ok) 120 if test x"$acx_pthread_ok" = xno; then 121 PTHREAD_LIBS="" 122 PTHREAD_CFLAGS="" 123 fi 124 LIBS="$save_LIBS" 125 CFLAGS="$save_CFLAGS" 126 fi 127 128 # We must check for the threads library under a number of different 129 # names; the ordering is very important because some systems 130 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the 131 # libraries is broken (non-POSIX). 132 133 # Create a list of thread flags to try. Items starting with a "-" are 134 # C compiler flags, and other items are library names, except for "none" 135 # which indicates that we try without any flags at all, and "pthread-config" 136 # which is a program returning the flags for the Pth emulation library. 137 138 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 139 140 # The ordering *is* (sometimes) important. Some notes on the 141 # individual items follow: 142 143 # pthreads: AIX (must check this before -lpthread) 144 # none: in case threads are in libc; should be tried before -Kthread and 145 # other compiler flags to prevent continual compiler warnings 146 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 147 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 148 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 149 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 150 # -pthreads: Solaris/gcc 151 # -mthreads: Mingw32/gcc, Lynx/gcc 152 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 153 # doesn't hurt to check since this sometimes defines pthreads too; 154 # also defines -D_REENTRANT) 155 # ... -mt is also the pthreads flag for HP/aCC 156 # pthread: Linux, etcetera 157 # --thread-safe: KAI C++ 158 # pthread-config: use pthread-config program (for GNU Pth library) 159 160 case "${host_cpu}-${host_os}" in 161 *solaris*) 162 163 # On Solaris (at least, for some versions), libc contains stubbed 164 # (non-functional) versions of the pthreads routines, so link-based 165 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 166 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 167 # a function called by this macro, so we could check for that, but 168 # who knows whether they'll stub that too in a future libc.) So, 169 # we'll just look for -pthreads and -lpthread first: 170 171 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 172 ;; 173 esac 174 175 if test x"$acx_pthread_ok" = xno; then 176 for flag in $acx_pthread_flags; do 177 178 case $flag in 179 none) 180 AC_MSG_CHECKING([whether pthreads work without any flags]) 181 ;; 182 183 -*) 184 AC_MSG_CHECKING([whether pthreads work with $flag]) 185 PTHREAD_CFLAGS="$flag" 186 ;; 187 188 pthread-config) 189 AC_CHECK_PROG(acx_pthread_config, pthread-config, yes, no) 190 if test x"$acx_pthread_config" = xno; then continue; fi 191 PTHREAD_CFLAGS="`pthread-config --cflags`" 192 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 193 ;; 194 195 *) 196 AC_MSG_CHECKING([for the pthreads library -l$flag]) 197 PTHREAD_LIBS="-l$flag" 198 ;; 199 esac 200 201 save_LIBS="$LIBS" 202 save_CFLAGS="$CFLAGS" 203 LIBS="$PTHREAD_LIBS $LIBS" 204 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 205 206 # Check for various functions. We must include pthread.h, 207 # since some functions may be macros. (On the Sequent, we 208 # need a special flag -Kthread to make this header compile.) 209 # We check for pthread_join because it is in -lpthread on IRIX 210 # while pthread_create is in libc. We check for pthread_attr_init 211 # due to DEC craziness with -lpthreads. We check for 212 # pthread_cleanup_push because it is one of the few pthread 213 # functions on Solaris that doesn't have a non-functional libc stub. 214 # We try pthread_create on general principles. 215 AC_TRY_LINK([#include <pthread.h>], 216 [pthread_t th; pthread_join(th, 0); 217 pthread_attr_init(0); pthread_cleanup_push(0, 0); 218 pthread_create(0,0,0,0); pthread_cleanup_pop(0); ], 219 [acx_pthread_ok=yes]) 220 221 LIBS="$save_LIBS" 222 CFLAGS="$save_CFLAGS" 223 224 AC_MSG_RESULT($acx_pthread_ok) 225 if test "x$acx_pthread_ok" = xyes; then 226 break; 227 fi 228 229 PTHREAD_LIBS="" 230 PTHREAD_CFLAGS="" 231 done 232 fi 233 234 # Various other checks: 235 if test "x$acx_pthread_ok" = xyes; then 236 save_LIBS="$LIBS" 237 LIBS="$PTHREAD_LIBS $LIBS" 238 save_CFLAGS="$CFLAGS" 239 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 240 241 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 242 AC_MSG_CHECKING([for joinable pthread attribute]) 243 attr_name=unknown 244 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 245 AC_TRY_LINK([#include <pthread.h>], [int attr=$attr; return attr;], 246 [attr_name=$attr; break]) 247 done 248 AC_MSG_RESULT($attr_name) 249 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 250 AC_DEFINE_UNQUOTED(PTHREAD_CREATE_JOINABLE, $attr_name, 251 [Define to necessary symbol if this constant 252 uses a non-standard name on your system.]) 253 fi 254 255 AC_MSG_CHECKING([if more special flags are required for pthreads]) 256 flag=no 257 case "${host_cpu}-${host_os}" in 258 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 259 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 260 esac 261 AC_MSG_RESULT(${flag}) 262 if test "x$flag" != xno; then 263 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 264 fi 265 266 LIBS="$save_LIBS" 267 CFLAGS="$save_CFLAGS" 268 269 # More AIX lossage: must compile with xlc_r or cc_r 270 if test x"$GCC" != xyes; then 271 AC_CHECK_PROGS(PTHREAD_CC, xlc_r cc_r, ${CC}) 272 else 273 PTHREAD_CC=$CC 274 fi 275 else 276 PTHREAD_CC="$CC" 277 fi 278 279 AC_SUBST(PTHREAD_LIBS) 280 AC_SUBST(PTHREAD_CFLAGS) 281 AC_SUBST(PTHREAD_CC) 282 283 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 284 if test x"$acx_pthread_ok" = xyes; then 285 ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1]) 286 : 287 else 288 acx_pthread_ok=no 289 $2 290 fi 291 AC_LANG_RESTORE 292 ])dnl ACX_PTHREAD 293 294 # =========================================================================== 295 # http://autoconf-archive.cryp.to/ax_boost_asio.html 23 # http://www.gnu.org/software/autoconf-archive/ax_boost_asio.html 296 24 # =========================================================================== 297 25 # … … 321 49 # Copying and distribution of this file, with or without modification, are 322 50 # permitted in any medium without royalty provided the copyright notice 323 # and this notice are preserved. 51 # and this notice are preserved. This file is offered as-is, without any 52 # warranty. 53 54 #serial 13 324 55 325 56 AC_DEFUN([AX_BOOST_ASIO], … … 337 68 else 338 69 want_boost="yes" 339 70 ax_boost_user_asio_lib="$withval" 340 71 fi 341 72 ], … … 356 87 ax_cv_boost_asio, 357 88 [AC_LANG_PUSH([C++]) 358 AC_COMPILE_IFELSE( AC_LANG_PROGRAM([[ @%:@include <boost/asio.hpp>89 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ @%:@include <boost/asio.hpp> 359 90 ]], 360 91 [[ … … 366 97 io.run_one(); 367 98 return 0; 368 ]]) ,99 ]])], 369 100 ax_cv_boost_asio=yes, ax_cv_boost_asio=no) 370 101 AC_LANG_POP([C++]) … … 379 110 AC_CHECK_LIB($ax_lib, main, [BOOST_ASIO_LIB="-l$ax_lib" AC_SUBST(BOOST_ASIO_LIB) link_thread="yes" break], 380 111 [link_thread="no"]) 381 112 done 382 113 else 383 114 for ax_lib in $ax_boost_user_asio_lib $BN-$ax_boost_user_asio_lib; do … … 388 119 389 120 fi 121 if test "x$ax_lib" = "x"; then 122 AC_MSG_ERROR(Could not find a version of the library!) 123 fi 390 124 if test "x$link_asio" = "xno"; then 391 125 AC_MSG_ERROR(Could not link against $ax_lib !) … … 394 128 395 129 CPPFLAGS="$CPPFLAGS_SAVED" 396 130 LDFLAGS="$LDFLAGS_SAVED" 397 131 fi 398 132 ]) 399 133 400 134 # =========================================================================== 401 # http://autoconf-archive.cryp.to/ax_boost_base.html135 # http://www.gnu.org/software/autoconf-archive/ax_boost_base.html 402 136 # =========================================================================== 403 137 # 404 138 # SYNOPSIS 405 139 # 406 # AX_BOOST_BASE([MINIMUM-VERSION] )140 # AX_BOOST_BASE([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 407 141 # 408 142 # DESCRIPTION … … 426 160 # 427 161 # Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de> 162 # Copyright (c) 2009 Peter Adolphs 428 163 # 429 164 # Copying and distribution of this file, with or without modification, are 430 165 # permitted in any medium without royalty provided the copyright notice 431 # and this notice are preserved. 166 # and this notice are preserved. This file is offered as-is, without any 167 # warranty. 168 169 #serial 20 432 170 433 171 AC_DEFUN([AX_BOOST_BASE], 434 172 [ 435 173 AC_ARG_WITH([boost], 436 AS_HELP_STRING([--with-boost@<:@=DIR@:>@], [use boost (default is yes) - it is possible to specify the root directory for boost (optional)]), 437 [ 174 [AS_HELP_STRING([--with-boost@<:@=ARG@:>@], 175 [use Boost library from a standard location (ARG=yes), 176 from the specified location (ARG=<path>), 177 or disable it (ARG=no) 178 @<:@ARG=yes@:>@ ])], 179 [ 438 180 if test "$withval" = "no"; then 439 181 want_boost="no" 440 182 elif test "$withval" = "yes"; then 441 183 want_boost="yes" 442 184 ac_boost_path="" 443 185 else 444 186 want_boost="yes" 445 187 ac_boost_path="$withval" 446 188 fi 447 189 ], 448 190 [want_boost="yes"]) … … 451 193 AC_ARG_WITH([boost-libdir], 452 194 AS_HELP_STRING([--with-boost-libdir=LIB_DIR], 453 [Force given directory for boost libraries. Note that this will over write library path detection, so use this parameter only if default library detection fails and you know exactly where your boost libraries are located.]),195 [Force given directory for boost libraries. Note that this will override library path detection, so use this parameter only if default library detection fails and you know exactly where your boost libraries are located.]), 454 196 [ 455 if test -d $withval197 if test -d "$withval" 456 198 then 457 199 ac_boost_lib_path="$withval" … … 464 206 465 207 if test "x$want_boost" = "xyes"; then 466 boost_lib_version_req=ifelse([$1], ,1.20.0,$1) 467 boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([[0-9]]*\.[[0-9]]*\)'` 468 boost_lib_version_req_major=`expr $boost_lib_version_req : '\([[0-9]]*\)'` 469 boost_lib_version_req_minor=`expr $boost_lib_version_req : '[[0-9]]*\.\([[0-9]]*\)'` 470 boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\)'` 471 if test "x$boost_lib_version_req_sub_minor" = "x" ; then 472 boost_lib_version_req_sub_minor="0" 473 fi 474 WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor` 475 AC_MSG_CHECKING(for boostlib >= $boost_lib_version_req) 476 succeeded=no 477 478 dnl first we check the system location for boost libraries 479 dnl this location ist chosen if boost libraries are installed with the --layout=system option 480 dnl or if you install boost with RPM 481 if test "$ac_boost_path" != ""; then 482 BOOST_LDFLAGS="-L$ac_boost_path/lib" 483 BOOST_CPPFLAGS="-I$ac_boost_path/include" 484 else 485 for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do 486 if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then 487 BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib" 488 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include" 489 break; 490 fi 491 done 492 fi 208 boost_lib_version_req=ifelse([$1], ,1.20.0,$1) 209 boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([[0-9]]*\.[[0-9]]*\)'` 210 boost_lib_version_req_major=`expr $boost_lib_version_req : '\([[0-9]]*\)'` 211 boost_lib_version_req_minor=`expr $boost_lib_version_req : '[[0-9]]*\.\([[0-9]]*\)'` 212 boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\)'` 213 if test "x$boost_lib_version_req_sub_minor" = "x" ; then 214 boost_lib_version_req_sub_minor="0" 215 fi 216 WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor` 217 AC_MSG_CHECKING(for boostlib >= $boost_lib_version_req) 218 succeeded=no 219 220 dnl On 64-bit systems check for system libraries in both lib64 and lib. 221 dnl The former is specified by FHS, but e.g. Debian does not adhere to 222 dnl this (as it rises problems for generic multi-arch support). 223 dnl The last entry in the list is chosen by default when no libraries 224 dnl are found, e.g. when only header-only libraries are installed! 225 libsubdirs="lib" 226 ax_arch=`uname -m` 227 if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then 228 libsubdirs="lib64 lib lib64" 229 fi 230 231 dnl first we check the system location for boost libraries 232 dnl this location ist chosen if boost libraries are installed with the --layout=system option 233 dnl or if you install boost with RPM 234 if test "$ac_boost_path" != ""; then 235 BOOST_CPPFLAGS="-I$ac_boost_path/include" 236 for ac_boost_path_tmp in $libsubdirs; do 237 if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then 238 BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp" 239 break 240 fi 241 done 242 elif test "$cross_compiling" != yes; then 243 for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do 244 if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then 245 for libsubdir in $libsubdirs ; do 246 if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi 247 done 248 BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir" 249 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include" 250 break; 251 fi 252 done 253 fi 493 254 494 255 dnl overwrite ld flags if we have required special directory with … … 498 259 fi 499 260 500 CPPFLAGS_SAVED="$CPPFLAGS" 501 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 502 export CPPFLAGS 503 504 LDFLAGS_SAVED="$LDFLAGS" 505 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" 506 export LDFLAGS 507 508 AC_LANG_PUSH(C++) 509 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 510 @%:@include <boost/version.hpp> 511 ]], [[ 512 #if BOOST_VERSION >= $WANT_BOOST_VERSION 513 // Everything is okay 514 #else 515 # error Boost version is too old 516 #endif 517 ]])],[ 261 CPPFLAGS_SAVED="$CPPFLAGS" 262 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 263 export CPPFLAGS 264 265 LDFLAGS_SAVED="$LDFLAGS" 266 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" 267 export LDFLAGS 268 269 AC_REQUIRE([AC_PROG_CXX]) 270 AC_LANG_PUSH(C++) 271 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 272 @%:@include <boost/version.hpp> 273 ]], [[ 274 #if BOOST_VERSION >= $WANT_BOOST_VERSION 275 // Everything is okay 276 #else 277 # error Boost version is too old 278 #endif 279 ]])],[ 518 280 AC_MSG_RESULT(yes) 519 succeeded=yes 520 found_system=yes 521 ],[ 522 ]) 523 AC_LANG_POP([C++]) 524 525 526 527 dnl if we found no boost with system layout we search for boost libraries 528 dnl built and installed without the --layout=system option or for a staged(not installed) version 529 if test "x$succeeded" != "xyes"; then 530 _version=0 531 if test "$ac_boost_path" != ""; then 532 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then 533 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do 534 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` 535 V_CHECK=`expr $_version_tmp \> $_version` 536 if test "$V_CHECK" = "1" ; then 537 _version=$_version_tmp 538 fi 539 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'` 540 BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE" 541 done 542 fi 543 else 544 for ac_boost_path in /usr /usr/local /opt /opt/local ; do 545 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then 546 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do 547 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` 548 V_CHECK=`expr $_version_tmp \> $_version` 549 if test "$V_CHECK" = "1" ; then 550 _version=$_version_tmp 551 best_path=$ac_boost_path 552 fi 553 done 554 fi 555 done 556 557 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'` 558 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE" 559 if test "$ac_boost_lib_path" = "" 560 then 561 BOOST_LDFLAGS="-L$best_path/lib" 281 succeeded=yes 282 found_system=yes 283 ],[ 284 ]) 285 AC_LANG_POP([C++]) 286 287 288 289 dnl if we found no boost with system layout we search for boost libraries 290 dnl built and installed without the --layout=system option or for a staged(not installed) version 291 if test "x$succeeded" != "xyes"; then 292 _version=0 293 if test "$ac_boost_path" != ""; then 294 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then 295 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do 296 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` 297 V_CHECK=`expr $_version_tmp \> $_version` 298 if test "$V_CHECK" = "1" ; then 299 _version=$_version_tmp 300 fi 301 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'` 302 BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE" 303 done 562 304 fi 563 564 if test "x$BOOST_ROOT" != "x"; then 565 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then 566 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'` 567 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'` 568 stage_version_shorten=`expr $stage_version : '\([[0-9]]*\.[[0-9]]*\)'` 569 V_CHECK=`expr $stage_version_shorten \>\= $_version` 305 else 306 if test "$cross_compiling" != yes; then 307 for ac_boost_path in /usr /usr/local /opt /opt/local ; do 308 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then 309 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do 310 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` 311 V_CHECK=`expr $_version_tmp \> $_version` 312 if test "$V_CHECK" = "1" ; then 313 _version=$_version_tmp 314 best_path=$ac_boost_path 315 fi 316 done 317 fi 318 done 319 320 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'` 321 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE" 322 if test "$ac_boost_lib_path" = ""; then 323 for libsubdir in $libsubdirs ; do 324 if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi 325 done 326 BOOST_LDFLAGS="-L$best_path/$libsubdir" 327 fi 328 fi 329 330 if test "x$BOOST_ROOT" != "x"; then 331 for libsubdir in $libsubdirs ; do 332 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi 333 done 334 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then 335 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'` 336 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'` 337 stage_version_shorten=`expr $stage_version : '\([[0-9]]*\.[[0-9]]*\)'` 338 V_CHECK=`expr $stage_version_shorten \>\= $_version` 570 339 if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then 571 AC_MSG_NOTICE(We will use a staged boost library from $BOOST_ROOT) 572 BOOST_CPPFLAGS="-I$BOOST_ROOT" 573 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib" 574 fi 575 fi 576 fi 577 fi 578 579 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 580 export CPPFLAGS 581 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" 582 export LDFLAGS 583 584 AC_LANG_PUSH(C++) 585 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 586 @%:@include <boost/version.hpp> 587 ]], [[ 588 #if BOOST_VERSION >= $WANT_BOOST_VERSION 589 // Everything is okay 590 #else 591 # error Boost version is too old 592 #endif 593 ]])],[ 594 AC_MSG_RESULT(yes) 595 succeeded=yes 596 found_system=yes 597 ],[ 598 ]) 599 AC_LANG_POP([C++]) 600 fi 601 602 if test "$succeeded" != "yes" ; then 603 if test "$_version" = "0" ; then 604 AC_MSG_ERROR([[We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.]]) 605 else 606 AC_MSG_NOTICE([Your boost libraries seems to old (version $_version).]) 607 fi 608 else 609 AC_SUBST(BOOST_CPPFLAGS) 610 AC_SUBST(BOOST_LDFLAGS) 611 AC_DEFINE(HAVE_BOOST,,[define if the Boost library is available]) 612 fi 613 614 CPPFLAGS="$CPPFLAGS_SAVED" 615 LDFLAGS="$LDFLAGS_SAVED" 340 AC_MSG_NOTICE(We will use a staged boost library from $BOOST_ROOT) 341 BOOST_CPPFLAGS="-I$BOOST_ROOT" 342 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir" 343 fi 344 fi 345 fi 346 fi 347 348 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 349 export CPPFLAGS 350 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" 351 export LDFLAGS 352 353 AC_LANG_PUSH(C++) 354 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 355 @%:@include <boost/version.hpp> 356 ]], [[ 357 #if BOOST_VERSION >= $WANT_BOOST_VERSION 358 // Everything is okay 359 #else 360 # error Boost version is too old 361 #endif 362 ]])],[ 363 AC_MSG_RESULT(yes) 364 succeeded=yes 365 found_system=yes 366 ],[ 367 ]) 368 AC_LANG_POP([C++]) 369 fi 370 371 if test "$succeeded" != "yes" ; then 372 if test "$_version" = "0" ; then 373 AC_MSG_NOTICE([[We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.]]) 374 else 375 AC_MSG_NOTICE([Your boost libraries seems to old (version $_version).]) 376 fi 377 # execute ACTION-IF-NOT-FOUND (if present): 378 ifelse([$3], , :, [$3]) 379 else 380 AC_SUBST(BOOST_CPPFLAGS) 381 AC_SUBST(BOOST_LDFLAGS) 382 AC_DEFINE(HAVE_BOOST,,[define if the Boost library is available]) 383 # execute ACTION-IF-FOUND (if present): 384 ifelse([$2], , :, [$2]) 385 fi 386 387 CPPFLAGS="$CPPFLAGS_SAVED" 388 LDFLAGS="$LDFLAGS_SAVED" 616 389 fi 617 390 … … 619 392 620 393 # =========================================================================== 621 # http://autoconf-archive.cryp.to/ax_boost_date_time.html394 # http://www.gnu.org/software/autoconf-archive/ax_boost_date_time.html 622 395 # =========================================================================== 623 396 # … … 647 420 # Copying and distribution of this file, with or without modification, are 648 421 # permitted in any medium without royalty provided the copyright notice 649 # and this notice are preserved. 422 # and this notice are preserved. This file is offered as-is, without any 423 # warranty. 424 425 #serial 19 650 426 651 427 AC_DEFUN([AX_BOOST_DATE_TIME], … … 663 439 else 664 440 want_boost="yes" 665 441 ax_boost_user_date_time_lib="$withval" 666 442 fi 667 443 ], … … 682 458 ax_cv_boost_date_time, 683 459 [AC_LANG_PUSH([C++]) 684 AC_COMPILE_IFELSE( AC_LANG_PROGRAM([[@%:@include <boost/date_time/gregorian/gregorian_types.hpp>]],460 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/date_time/gregorian/gregorian_types.hpp>]], 685 461 [[using namespace boost::gregorian; date d(2002,Jan,10); 686 462 return 0; 687 ]]) ,463 ]])], 688 464 ax_cv_boost_date_time=yes, ax_cv_boost_date_time=no) 689 465 AC_LANG_POP([C++]) … … 693 469 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'` 694 470 if test "x$ax_boost_user_date_time_lib" = "x"; then 695 for libextension in `ls $BOOSTLIBDIR/libboost_date_time*. {so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_date_time.*\)\.so.*$;\1;' -e 's;^lib\(boost_date_time.*\)\.a*$;\1;'` ; do471 for libextension in `ls $BOOSTLIBDIR/libboost_date_time*.so* $BOOSTLIBDIR/libboost_date_time*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_date_time.*\)\.so.*$;\1;' -e 's;^lib\(boost_date_time.*\)\.a*$;\1;'` ; do 696 472 ax_lib=${libextension} 697 473 AC_CHECK_LIB($ax_lib, exit, 698 474 [BOOST_DATE_TIME_LIB="-l$ax_lib"; AC_SUBST(BOOST_DATE_TIME_LIB) link_date_time="yes"; break], 699 475 [link_date_time="no"]) 700 476 done 701 477 if test "x$link_date_time" != "xyes"; then 702 478 for libextension in `ls $BOOSTLIBDIR/boost_date_time*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_date_time.*\)\.dll.*$;\1;' -e 's;^\(boost_date_time.*\)\.a*$;\1;'` ; do … … 705 481 [BOOST_DATE_TIME_LIB="-l$ax_lib"; AC_SUBST(BOOST_DATE_TIME_LIB) link_date_time="yes"; break], 706 482 [link_date_time="no"]) 707 483 done 708 484 fi 709 485 … … 716 492 717 493 fi 494 if test "x$ax_lib" = "x"; then 495 AC_MSG_ERROR(Could not find a version of the library!) 496 fi 718 497 if test "x$link_date_time" != "xyes"; then 719 498 AC_MSG_ERROR(Could not link against $ax_lib !) … … 722 501 723 502 CPPFLAGS="$CPPFLAGS_SAVED" 724 503 LDFLAGS="$LDFLAGS_SAVED" 725 504 fi 726 505 ]) 727 506 728 507 # =========================================================================== 729 # http://autoconf-archive.cryp.to/ax_boost_filesystem.html508 # http://www.gnu.org/software/autoconf-archive/ax_boost_filesystem.html 730 509 # =========================================================================== 731 510 # … … 756 535 # Copying and distribution of this file, with or without modification, are 757 536 # permitted in any medium without royalty provided the copyright notice 758 # and this notice are preserved. 537 # and this notice are preserved. This file is offered as-is, without any 538 # warranty. 539 540 #serial 22 759 541 760 542 AC_DEFUN([AX_BOOST_FILESYSTEM], … … 772 554 else 773 555 want_boost="yes" 774 556 ax_boost_user_filesystem_lib="$withval" 775 557 fi 776 558 ], … … 795 577 ax_cv_boost_filesystem, 796 578 [AC_LANG_PUSH([C++]) 797 AC_COMPILE_IFELSE( AC_LANG_PROGRAM([[@%:@include <boost/filesystem/path.hpp>]],579 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/filesystem/path.hpp>]], 798 580 [[using namespace boost::filesystem; 799 581 path my_path( "foo/bar/data.txt" ); 800 return 0;]]) ,801 582 return 0;]])], 583 ax_cv_boost_filesystem=yes, ax_cv_boost_filesystem=no) 802 584 AC_LANG_POP([C++]) 803 585 ]) … … 806 588 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'` 807 589 if test "x$ax_boost_user_filesystem_lib" = "x"; then 808 for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*. {so,dylib,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.so.*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.a*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.dylib$;\1;'` ; do590 for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*.so* $BOOSTLIBDIR/libboost_filesystem*.dylib* $BOOSTLIBDIR/libboost_filesystem*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.so.*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.a*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.dylib$;\1;'` ; do 809 591 ax_lib=${libextension} 810 592 AC_CHECK_LIB($ax_lib, exit, 811 593 [BOOST_FILESYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_FILESYSTEM_LIB) link_filesystem="yes"; break], 812 594 [link_filesystem="no"]) 813 814 if test "x$link_ program_options" != "xyes"; then595 done 596 if test "x$link_filesystem" != "xyes"; then 815 597 for libextension in `ls $BOOSTLIBDIR/boost_filesystem*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_filesystem.*\)\.dll.*$;\1;' -e 's;^\(boost_filesystem.*\)\.a*$;\1;'` ; do 816 598 ax_lib=${libextension} … … 818 600 [BOOST_FILESYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_FILESYSTEM_LIB) link_filesystem="yes"; break], 819 601 [link_filesystem="no"]) 820 821 602 done 603 fi 822 604 else 823 605 for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do … … 828 610 829 611 fi 612 if test "x$ax_lib" = "x"; then 613 AC_MSG_ERROR(Could not find a version of the library!) 614 fi 830 615 if test "x$link_filesystem" != "xyes"; then 831 616 AC_MSG_ERROR(Could not link against $ax_lib !) … … 834 619 835 620 CPPFLAGS="$CPPFLAGS_SAVED" 836 621 LDFLAGS="$LDFLAGS_SAVED" 837 622 LIBS="$LIBS_SAVED" 838 623 fi 839 624 ]) 840 625 841 # =========================================================================== 842 # http://autoconf-archive.cryp.to/ax_boost_program_options.html843 # =========================================================================== 626 # ============================================================================ 627 # http://www.gnu.org/software/autoconf-archive/ax_boost_program_options.html 628 # ============================================================================ 844 629 # 845 630 # SYNOPSIS … … 867 652 # Copying and distribution of this file, with or without modification, are 868 653 # permitted in any medium without royalty provided the copyright notice 869 # and this notice are preserved. 654 # and this notice are preserved. This file is offered as-is, without any 655 # warranty. 656 657 #serial 20 870 658 871 659 AC_DEFUN([AX_BOOST_PROGRAM_OPTIONS], … … 883 671 else 884 672 want_boost="yes" 885 673 ax_boost_user_program_options_lib="$withval" 886 674 fi 887 675 ], … … 901 689 ax_cv_boost_program_options, 902 690 [AC_LANG_PUSH(C++) 903 AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[@%:@include <boost/program_options.hpp>691 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/program_options.hpp> 904 692 ]], 905 693 [[boost::program_options::options_description generic("Generic options"); 906 return 0;]]) ,694 return 0;]])], 907 695 ax_cv_boost_program_options=yes, ax_cv_boost_program_options=no) 908 696 AC_LANG_POP([C++]) 909 697 ]) 910 698 if test "$ax_cv_boost_program_options" = yes; then … … 917 705 [BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; AC_SUBST(BOOST_PROGRAM_OPTIONS_LIB) link_program_options="yes"; break], 918 706 [link_program_options="no"]) 919 707 done 920 708 if test "x$link_program_options" != "xyes"; then 921 709 for libextension in `ls $BOOSTLIBDIR/boost_program_options*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.a*$;\1;'` ; do … … 924 712 [BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; AC_SUBST(BOOST_PROGRAM_OPTIONS_LIB) link_program_options="yes"; break], 925 713 [link_program_options="no"]) 926 714 done 927 715 fi 928 716 else … … 933 721 done 934 722 fi 723 if test "x$ax_lib" = "x"; then 724 AC_MSG_ERROR(Could not find a version of the library!) 725 fi 935 726 if test "x$link_program_options" != "xyes"; then 936 727 AC_MSG_ERROR([Could not link against [$ax_lib] !]) … … 938 729 fi 939 730 CPPFLAGS="$CPPFLAGS_SAVED" 940 731 LDFLAGS="$LDFLAGS_SAVED" 941 732 fi 942 733 ]) 943 734 944 735 # =========================================================================== 945 # http://autoconf-archive.cryp.to/ax_boost_regex.html736 # http://www.gnu.org/software/autoconf-archive/ax_boost_regex.html 946 737 # =========================================================================== 947 738 # … … 971 762 # Copying and distribution of this file, with or without modification, are 972 763 # permitted in any medium without royalty provided the copyright notice 973 # and this notice are preserved. 764 # and this notice are preserved. This file is offered as-is, without any 765 # warranty. 766 767 #serial 20 974 768 975 769 AC_DEFUN([AX_BOOST_REGEX], … … 987 781 else 988 782 want_boost="yes" 989 783 ax_boost_user_regex_lib="$withval" 990 784 fi 991 785 ], … … 1006 800 ax_cv_boost_regex, 1007 801 [AC_LANG_PUSH([C++]) 1008 AC_COMPILE_IFELSE( AC_LANG_PROGRAM([[@%:@include <boost/regex.hpp>802 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/regex.hpp> 1009 803 ]], 1010 [[boost::regex r(); return 0;]]) ,804 [[boost::regex r(); return 0;]])], 1011 805 ax_cv_boost_regex=yes, ax_cv_boost_regex=no) 1012 806 AC_LANG_POP([C++]) … … 1016 810 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'` 1017 811 if test "x$ax_boost_user_regex_lib" = "x"; then 1018 for libextension in `ls $BOOSTLIBDIR/libboost_regex*. {so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_regex.*\)\.so.*$;\1;' -e 's;^lib\(boost_regex.*\)\.a*$;\1;'` ; do812 for libextension in `ls $BOOSTLIBDIR/libboost_regex*.so* $BOOSTLIBDIR/libboost_regex*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_regex.*\)\.so.*$;\1;' -e 's;^lib\(boost_regex.*\)\.a*$;\1;'` ; do 1019 813 ax_lib=${libextension} 1020 814 AC_CHECK_LIB($ax_lib, exit, 1021 815 [BOOST_REGEX_LIB="-l$ax_lib"; AC_SUBST(BOOST_REGEX_LIB) link_regex="yes"; break], 1022 816 [link_regex="no"]) 1023 817 done 1024 818 if test "x$link_regex" != "xyes"; then 1025 819 for libextension in `ls $BOOSTLIBDIR/boost_regex*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_regex.*\)\.dll.*$;\1;' -e 's;^\(boost_regex.*\)\.a*$;\1;'` ; do … … 1028 822 [BOOST_REGEX_LIB="-l$ax_lib"; AC_SUBST(BOOST_REGEX_LIB) link_regex="yes"; break], 1029 823 [link_regex="no"]) 1030 824 done 1031 825 fi 1032 826 … … 1038 832 done 1039 833 fi 834 if test "x$ax_lib" = "x"; then 835 AC_MSG_ERROR(Could not find a version of the Boost::Regex library!) 836 fi 1040 837 if test "x$link_regex" != "xyes"; then 1041 838 AC_MSG_ERROR(Could not link against $ax_lib !) … … 1044 841 1045 842 CPPFLAGS="$CPPFLAGS_SAVED" 1046 843 LDFLAGS="$LDFLAGS_SAVED" 1047 844 fi 1048 845 ]) 1049 846 1050 847 # =========================================================================== 1051 # http://autoconf-archive.cryp.to/ax_boost_system.html848 # http://www.gnu.org/software/autoconf-archive/ax_boost_system.html 1052 849 # =========================================================================== 1053 850 # … … 1078 875 # Copying and distribution of this file, with or without modification, are 1079 876 # permitted in any medium without royalty provided the copyright notice 1080 # and this notice are preserved. 877 # and this notice are preserved. This file is offered as-is, without any 878 # warranty. 879 880 #serial 14 1081 881 1082 882 AC_DEFUN([AX_BOOST_SYSTEM], … … 1094 894 else 1095 895 want_boost="yes" 1096 896 ax_boost_user_system_lib="$withval" 1097 897 fi 1098 898 ], … … 1116 916 CXXFLAGS_SAVE=$CXXFLAGS 1117 917 1118 AC_COMPILE_IFELSE( AC_LANG_PROGRAM([[@%:@include <boost/system/error_code.hpp>]],1119 [[boost::system::system_category]]) ,918 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/system/error_code.hpp>]], 919 [[boost::system::system_category]])], 1120 920 ax_cv_boost_system=yes, ax_cv_boost_system=no) 1121 921 CXXFLAGS=$CXXFLAGS_SAVE … … 1130 930 LDFLAGS_SAVE=$LDFLAGS 1131 931 if test "x$ax_boost_user_system_lib" = "x"; then 1132 for libextension in `ls $BOOSTLIBDIR/libboost_system*. {so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.a*$;\1;'` ; do932 for libextension in `ls $BOOSTLIBDIR/libboost_system*.so* $BOOSTLIBDIR/libboost_system*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.a*$;\1;'` ; do 1133 933 ax_lib=${libextension} 1134 934 AC_CHECK_LIB($ax_lib, exit, 1135 935 [BOOST_SYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_SYSTEM_LIB) link_system="yes"; break], 1136 936 [link_system="no"]) 1137 937 done 1138 938 if test "x$link_system" != "xyes"; then 1139 939 for libextension in `ls $BOOSTLIBDIR/boost_system*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_system.*\)\.dll.*$;\1;' -e 's;^\(boost_system.*\)\.a*$;\1;'` ; do … … 1142 942 [BOOST_SYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_SYSTEM_LIB) link_system="yes"; break], 1143 943 [link_system="no"]) 1144 944 done 1145 945 fi 1146 946 … … 1153 953 1154 954 fi 955 if test "x$ax_lib" = "x"; then 956 AC_MSG_ERROR(Could not find a version of the library!) 957 fi 1155 958 if test "x$link_system" = "xno"; then 1156 959 AC_MSG_ERROR(Could not link against $ax_lib !) … … 1159 962 1160 963 CPPFLAGS="$CPPFLAGS_SAVED" 1161 964 LDFLAGS="$LDFLAGS_SAVED" 1162 965 fi 1163 966 ]) 1164 967 1165 968 # =========================================================================== 1166 # http://autoconf-archive.cryp.to/ax_boost_thread.html969 # http://www.gnu.org/software/autoconf-archive/ax_boost_thread.html 1167 970 # =========================================================================== 1168 971 # … … 1192 995 # Copying and distribution of this file, with or without modification, are 1193 996 # permitted in any medium without royalty provided the copyright notice 1194 # and this notice are preserved. 997 # and this notice are preserved. This file is offered as-is, without any 998 # warranty. 999 1000 #serial 23 1195 1001 1196 1002 AC_DEFUN([AX_BOOST_THREAD], … … 1208 1014 else 1209 1015 want_boost="yes" 1210 1016 ax_boost_user_thread_lib="$withval" 1211 1017 fi 1212 1018 ], … … 1230 1036 CXXFLAGS_SAVE=$CXXFLAGS 1231 1037 1232 if test "x$ build_os" = "xsolaris" ; then1233 1234 elif test "x$ build_os" = "xming32" ; then1038 if test "x$host_os" = "xsolaris" ; then 1039 CXXFLAGS="-pthreads $CXXFLAGS" 1040 elif test "x$host_os" = "xmingw32" ; then 1235 1041 CXXFLAGS="-mthreads $CXXFLAGS" 1236 1042 else 1237 1043 CXXFLAGS="-pthread $CXXFLAGS" 1238 1044 fi 1239 AC_COMPILE_IFELSE( AC_LANG_PROGRAM([[@%:@include <boost/thread/thread.hpp>]],1045 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/thread/thread.hpp>]], 1240 1046 [[boost::thread_group thrds; 1241 return 0;]]) ,1047 return 0;]])], 1242 1048 ax_cv_boost_thread=yes, ax_cv_boost_thread=no) 1243 1049 CXXFLAGS=$CXXFLAGS_SAVE … … 1245 1051 ]) 1246 1052 if test "x$ax_cv_boost_thread" = "xyes"; then 1247 if test "x$ build_os" = "xsolaris" ; then1053 if test "x$host_os" = "xsolaris" ; then 1248 1054 BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS" 1249 elif test "x$ build_os" = "xming32" ; then1055 elif test "x$host_os" = "xmingw32" ; then 1250 1056 BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS" 1251 1057 else … … 1259 1065 1260 1066 LDFLAGS_SAVE=$LDFLAGS 1261 case "x$ build_os" in1067 case "x$host_os" in 1262 1068 *bsd* ) 1263 1069 LDFLAGS="-pthread $LDFLAGS" … … 1271 1077 [BOOST_THREAD_LIB="-l$ax_lib"; AC_SUBST(BOOST_THREAD_LIB) link_thread="yes"; break], 1272 1078 [link_thread="no"]) 1273 1079 done 1274 1080 if test "x$link_thread" != "xyes"; then 1275 1081 for libextension in `ls $BOOSTLIBDIR/boost_thread*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_thread*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.a*$;\1;'` ; do … … 1278 1084 [BOOST_THREAD_LIB="-l$ax_lib"; AC_SUBST(BOOST_THREAD_LIB) link_thread="yes"; break], 1279 1085 [link_thread="no"]) 1280 1086 done 1281 1087 fi 1282 1088 … … 1289 1095 1290 1096 fi 1097 if test "x$ax_lib" = "x"; then 1098 AC_MSG_ERROR(Could not find a version of the library!) 1099 fi 1291 1100 if test "x$link_thread" = "xno"; then 1292 1101 AC_MSG_ERROR(Could not link against $ax_lib !) 1293 1102 else 1294 case "x$ build_os" in1103 case "x$host_os" in 1295 1104 *bsd* ) 1296 1105 BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS" 1297 1106 break; 1298 1107 ;; … … 1303 1112 1304 1113 CPPFLAGS="$CPPFLAGS_SAVED" 1305 1114 LDFLAGS="$LDFLAGS_SAVED" 1306 1115 fi 1307 1116 ]) 1308 1117 1309 1118 # =========================================================================== 1310 # http://autoconf-archive.cryp.to/ax_prog_doxygen.html1119 # http://www.gnu.org/software/autoconf-archive/ax_prog_doxygen.html 1311 1120 # =========================================================================== 1312 1121 # … … 1470 1279 # 1471 1280 # @DX_DOCDIR@/@PACKAGE@.ps: @DX_DOCDIR@/@PACKAGE@.tag 1472 # 1473 # 1474 # 1475 # 1476 # 1477 # 1478 # 1479 # 1480 # 1481 # 1482 # 1483 # 1484 # 1281 # cd @DX_DOCDIR@/latex; \ 1282 # rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \ 1283 # $(DX_LATEX) refman.tex; \ 1284 # $(MAKEINDEX_PATH) refman.idx; \ 1285 # $(DX_LATEX) refman.tex; \ 1286 # countdown=5; \ 1287 # while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \ 1288 # refman.log > /dev/null 2>&1 \ 1289 # && test $$countdown -gt 0; do \ 1290 # $(DX_LATEX) refman.tex; \ 1291 # countdown=`expr $$countdown - 1`; \ 1292 # done; \ 1293 # $(DX_DVIPS) -o ../@PACKAGE@.ps refman.dvi 1485 1294 # 1486 1295 # endif DX_COND_ps … … 1499 1308 # 1500 1309 # @DX_DOCDIR@/@PACKAGE@.pdf: @DX_DOCDIR@/@PACKAGE@.tag 1501 # 1502 # 1503 # 1504 # 1505 # 1506 # 1507 # 1508 # 1509 # 1510 # 1511 # 1512 # 1513 # 1310 # cd @DX_DOCDIR@/latex; \ 1311 # rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \ 1312 # $(DX_PDFLATEX) refman.tex; \ 1313 # $(DX_MAKEINDEX) refman.idx; \ 1314 # $(DX_PDFLATEX) refman.tex; \ 1315 # countdown=5; \ 1316 # while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \ 1317 # refman.log > /dev/null 2>&1 \ 1318 # && test $$countdown -gt 0; do \ 1319 # $(DX_PDFLATEX) refman.tex; \ 1320 # countdown=`expr $$countdown - 1`; \ 1321 # done; \ 1322 # mv refman.pdf ../@PACKAGE@.pdf 1514 1323 # 1515 1324 # endif DX_COND_pdf … … 1534 1343 # 1535 1344 # @DX_DOCDIR@/@PACKAGE@.tag: $(DX_CONFIG) $(pkginclude_HEADERS) 1536 # 1537 # 1345 # rm -rf @DX_DOCDIR@ 1346 # $(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG) 1538 1347 # 1539 1348 # DX_CLEANFILES = \ … … 1560 1369 # Copying and distribution of this file, with or without modification, are 1561 1370 # permitted in any medium without royalty provided the copyright notice 1562 # and this notice are preserved. 1371 # and this notice are preserved. This file is offered as-is, without any 1372 # warranty. 1373 1374 #serial 11 1563 1375 1564 1376 1565 1377 DX_ENV="" 1566 1378 AC_DEFUN([DX_FEATURE_doc], ON) 1567 AC_DEFUN([DX_FEATURE_dot], O N)1379 AC_DEFUN([DX_FEATURE_dot], OFF) 1568 1380 AC_DEFUN([DX_FEATURE_man], OFF) 1569 1381 AC_DEFUN([DX_FEATURE_html], ON) … … 1679 1491 # ----------------------------- 1680 1492 AC_DEFUN([DX_DOXYGEN_FEATURE], [AC_DEFUN([DX_FEATURE_doc], [$1])]) 1493 AC_DEFUN([DX_DOT_FEATURE], [AC_DEFUN([DX_FEATURE_dot], [$1])]) 1681 1494 AC_DEFUN([DX_MAN_FEATURE], [AC_DEFUN([DX_FEATURE_man], [$1])]) 1682 1495 AC_DEFUN([DX_HTML_FEATURE], [AC_DEFUN([DX_FEATURE_html], [$1])]) … … 1829 1642 ]) 1830 1643 1644 # =========================================================================== 1645 # http://www.gnu.org/software/autoconf-archive/ax_pthread.html 1646 # =========================================================================== 1647 # 1648 # SYNOPSIS 1649 # 1650 # AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 1651 # 1652 # DESCRIPTION 1653 # 1654 # This macro figures out how to build C programs using POSIX threads. It 1655 # sets the PTHREAD_LIBS output variable to the threads library and linker 1656 # flags, and the PTHREAD_CFLAGS output variable to any special C compiler 1657 # flags that are needed. (The user can also force certain compiler 1658 # flags/libs to be tested by setting these environment variables.) 1659 # 1660 # Also sets PTHREAD_CC to any special C compiler that is needed for 1661 # multi-threaded programs (defaults to the value of CC otherwise). (This 1662 # is necessary on AIX to use the special cc_r compiler alias.) 1663 # 1664 # NOTE: You are assumed to not only compile your program with these flags, 1665 # but also link it with them as well. e.g. you should link with 1666 # $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS 1667 # 1668 # If you are only building threads programs, you may wish to use these 1669 # variables in your default LIBS, CFLAGS, and CC: 1670 # 1671 # LIBS="$PTHREAD_LIBS $LIBS" 1672 # CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 1673 # CC="$PTHREAD_CC" 1674 # 1675 # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant 1676 # has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name 1677 # (e.g. PTHREAD_CREATE_UNDETACHED on AIX). 1678 # 1679 # Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the 1680 # PTHREAD_PRIO_INHERIT symbol is defined when compiling with 1681 # PTHREAD_CFLAGS. 1682 # 1683 # ACTION-IF-FOUND is a list of shell commands to run if a threads library 1684 # is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it 1685 # is not found. If ACTION-IF-FOUND is not specified, the default action 1686 # will define HAVE_PTHREAD. 1687 # 1688 # Please let the authors know if this macro fails on any platform, or if 1689 # you have any other suggestions or comments. This macro was based on work 1690 # by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help 1691 # from M. Frigo), as well as ac_pthread and hb_pthread macros posted by 1692 # Alejandro Forero Cuervo to the autoconf macro repository. We are also 1693 # grateful for the helpful feedback of numerous users. 1694 # 1695 # Updated for Autoconf 2.68 by Daniel Richard G. 1696 # 1697 # LICENSE 1698 # 1699 # Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu> 1700 # Copyright (c) 2011 Daniel Richard G. <skunk@iSKUNK.ORG> 1701 # 1702 # This program is free software: you can redistribute it and/or modify it 1703 # under the terms of the GNU General Public License as published by the 1704 # Free Software Foundation, either version 3 of the License, or (at your 1705 # option) any later version. 1706 # 1707 # This program is distributed in the hope that it will be useful, but 1708 # WITHOUT ANY WARRANTY; without even the implied warranty of 1709 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 1710 # Public License for more details. 1711 # 1712 # You should have received a copy of the GNU General Public License along 1713 # with this program. If not, see <http://www.gnu.org/licenses/>. 1714 # 1715 # As a special exception, the respective Autoconf Macro's copyright owner 1716 # gives unlimited permission to copy, distribute and modify the configure 1717 # scripts that are the output of Autoconf when processing the Macro. You 1718 # need not follow the terms of the GNU General Public License when using 1719 # or distributing such scripts, even though portions of the text of the 1720 # Macro appear in them. The GNU General Public License (GPL) does govern 1721 # all other use of the material that constitutes the Autoconf Macro. 1722 # 1723 # This special exception to the GPL applies to versions of the Autoconf 1724 # Macro released by the Autoconf Archive. When you make and distribute a 1725 # modified version of the Autoconf Macro, you may extend this special 1726 # exception to the GPL to apply to your modified version as well. 1727 1728 #serial 14 1729 1730 AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD]) 1731 AC_DEFUN([AX_PTHREAD], [ 1732 AC_REQUIRE([AC_CANONICAL_HOST]) 1733 AC_LANG_PUSH([C]) 1734 ax_pthread_ok=no 1735 1736 # We used to check for pthread.h first, but this fails if pthread.h 1737 # requires special compiler flags (e.g. on True64 or Sequent). 1738 # It gets checked for in the link test anyway. 1739 1740 # First of all, check if the user has set any of the PTHREAD_LIBS, 1741 # etcetera environment variables, and if threads linking works using 1742 # them: 1743 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 1744 save_CFLAGS="$CFLAGS" 1745 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 1746 save_LIBS="$LIBS" 1747 LIBS="$PTHREAD_LIBS $LIBS" 1748 AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS]) 1749 AC_TRY_LINK_FUNC(pthread_join, ax_pthread_ok=yes) 1750 AC_MSG_RESULT($ax_pthread_ok) 1751 if test x"$ax_pthread_ok" = xno; then 1752 PTHREAD_LIBS="" 1753 PTHREAD_CFLAGS="" 1754 fi 1755 LIBS="$save_LIBS" 1756 CFLAGS="$save_CFLAGS" 1757 fi 1758 1759 # We must check for the threads library under a number of different 1760 # names; the ordering is very important because some systems 1761 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the 1762 # libraries is broken (non-POSIX). 1763 1764 # Create a list of thread flags to try. Items starting with a "-" are 1765 # C compiler flags, and other items are library names, except for "none" 1766 # which indicates that we try without any flags at all, and "pthread-config" 1767 # which is a program returning the flags for the Pth emulation library. 1768 1769 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 1770 1771 # The ordering *is* (sometimes) important. Some notes on the 1772 # individual items follow: 1773 1774 # pthreads: AIX (must check this before -lpthread) 1775 # none: in case threads are in libc; should be tried before -Kthread and 1776 # other compiler flags to prevent continual compiler warnings 1777 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 1778 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 1779 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 1780 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 1781 # -pthreads: Solaris/gcc 1782 # -mthreads: Mingw32/gcc, Lynx/gcc 1783 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 1784 # doesn't hurt to check since this sometimes defines pthreads too; 1785 # also defines -D_REENTRANT) 1786 # ... -mt is also the pthreads flag for HP/aCC 1787 # pthread: Linux, etcetera 1788 # --thread-safe: KAI C++ 1789 # pthread-config: use pthread-config program (for GNU Pth library) 1790 1791 case "${host_cpu}-${host_os}" in 1792 *solaris*) 1793 1794 # On Solaris (at least, for some versions), libc contains stubbed 1795 # (non-functional) versions of the pthreads routines, so link-based 1796 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 1797 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 1798 # a function called by this macro, so we could check for that, but 1799 # who knows whether they'll stub that too in a future libc.) So, 1800 # we'll just look for -pthreads and -lpthread first: 1801 1802 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 1803 ;; 1804 1805 *-darwin*) 1806 ax_pthread_flags="-pthread $ax_pthread_flags" 1807 ;; 1808 esac 1809 1810 if test x"$ax_pthread_ok" = xno; then 1811 for flag in $ax_pthread_flags; do 1812 1813 case $flag in 1814 none) 1815 AC_MSG_CHECKING([whether pthreads work without any flags]) 1816 ;; 1817 1818 -*) 1819 AC_MSG_CHECKING([whether pthreads work with $flag]) 1820 PTHREAD_CFLAGS="$flag" 1821 ;; 1822 1823 pthread-config) 1824 AC_CHECK_PROG(ax_pthread_config, pthread-config, yes, no) 1825 if test x"$ax_pthread_config" = xno; then continue; fi 1826 PTHREAD_CFLAGS="`pthread-config --cflags`" 1827 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 1828 ;; 1829 1830 *) 1831 AC_MSG_CHECKING([for the pthreads library -l$flag]) 1832 PTHREAD_LIBS="-l$flag" 1833 ;; 1834 esac 1835 1836 save_LIBS="$LIBS" 1837 save_CFLAGS="$CFLAGS" 1838 LIBS="$PTHREAD_LIBS $LIBS" 1839 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 1840 1841 # Check for various functions. We must include pthread.h, 1842 # since some functions may be macros. (On the Sequent, we 1843 # need a special flag -Kthread to make this header compile.) 1844 # We check for pthread_join because it is in -lpthread on IRIX 1845 # while pthread_create is in libc. We check for pthread_attr_init 1846 # due to DEC craziness with -lpthreads. We check for 1847 # pthread_cleanup_push because it is one of the few pthread 1848 # functions on Solaris that doesn't have a non-functional libc stub. 1849 # We try pthread_create on general principles. 1850 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h> 1851 static void routine(void *a) { a = 0; } 1852 static void *start_routine(void *a) { return a; }], 1853 [pthread_t th; pthread_attr_t attr; 1854 pthread_create(&th, 0, start_routine, 0); 1855 pthread_join(th, 0); 1856 pthread_attr_init(&attr); 1857 pthread_cleanup_push(routine, 0); 1858 pthread_cleanup_pop(0) /* ; */])], 1859 [ax_pthread_ok=yes], 1860 []) 1861 1862 LIBS="$save_LIBS" 1863 CFLAGS="$save_CFLAGS" 1864 1865 AC_MSG_RESULT($ax_pthread_ok) 1866 if test "x$ax_pthread_ok" = xyes; then 1867 break; 1868 fi 1869 1870 PTHREAD_LIBS="" 1871 PTHREAD_CFLAGS="" 1872 done 1873 fi 1874 1875 # Various other checks: 1876 if test "x$ax_pthread_ok" = xyes; then 1877 save_LIBS="$LIBS" 1878 LIBS="$PTHREAD_LIBS $LIBS" 1879 save_CFLAGS="$CFLAGS" 1880 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 1881 1882 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 1883 AC_MSG_CHECKING([for joinable pthread attribute]) 1884 attr_name=unknown 1885 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 1886 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>], 1887 [int attr = $attr; return attr /* ; */])], 1888 [attr_name=$attr; break], 1889 []) 1890 done 1891 AC_MSG_RESULT($attr_name) 1892 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 1893 AC_DEFINE_UNQUOTED(PTHREAD_CREATE_JOINABLE, $attr_name, 1894 [Define to necessary symbol if this constant 1895 uses a non-standard name on your system.]) 1896 fi 1897 1898 AC_MSG_CHECKING([if more special flags are required for pthreads]) 1899 flag=no 1900 case "${host_cpu}-${host_os}" in 1901 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 1902 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 1903 esac 1904 AC_MSG_RESULT(${flag}) 1905 if test "x$flag" != xno; then 1906 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 1907 fi 1908 1909 AC_CACHE_CHECK([for PTHREAD_PRIO_INHERIT], 1910 ax_cv_PTHREAD_PRIO_INHERIT, [ 1911 AC_LINK_IFELSE( 1912 AC_LANG_PROGRAM([[#include <pthread.h>]], [[int i = PTHREAD_PRIO_INHERIT;]]), 1913 [ax_cv_PTHREAD_PRIO_INHERIT=yes], 1914 [ax_cv_PTHREAD_PRIO_INHERIT=no]) 1915 ]) 1916 AS_IF([test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"], 1917 AC_DEFINE([HAVE_PTHREAD_PRIO_INHERIT], 1, [Have PTHREAD_PRIO_INHERIT.])) 1918 1919 LIBS="$save_LIBS" 1920 CFLAGS="$save_CFLAGS" 1921 1922 # More AIX lossage: must compile with xlc_r or cc_r 1923 if test x"$GCC" != xyes; then 1924 AC_CHECK_PROGS(PTHREAD_CC, xlc_r cc_r, ${CC}) 1925 else 1926 PTHREAD_CC=$CC 1927 fi 1928 else 1929 PTHREAD_CC="$CC" 1930 fi 1931 1932 AC_SUBST(PTHREAD_LIBS) 1933 AC_SUBST(PTHREAD_CFLAGS) 1934 AC_SUBST(PTHREAD_CC) 1935 1936 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 1937 if test x"$ax_pthread_ok" = xyes; then 1938 ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1]) 1939 : 1940 else 1941 ax_pthread_ok=no 1942 $2 1943 fi 1944 AC_LANG_POP 1945 ])dnl AX_PTHREAD 1946 1831 1947 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 1832 1948 # serial 1 (pkg-config-0.24) … … 1857 1973 AC_DEFUN([PKG_PROG_PKG_CONFIG], 1858 1974 [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 1859 m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) 1975 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) 1976 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) 1860 1977 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) 1861 1978 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) … … 1903 2020 elif test -n "$PKG_CONFIG"; then 1904 2021 PKG_CHECK_EXISTS([$3], 1905 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], 2022 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` 2023 test "x$?" != "x0" && pkg_failed=yes ], 1906 2024 [pkg_failed=yes]) 1907 2025 else … … 1951 2069 _PKG_SHORT_ERRORS_SUPPORTED 1952 2070 if test $_pkg_short_errors_supported = yes; then 1953 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`2071 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` 1954 2072 else 1955 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`2073 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` 1956 2074 fi 1957 2075 # Put the nasty error message in config.log where it belongs … … 1966 2084 installed software in a non-standard prefix. 1967 2085 1968 _PKG_TEXT]) dnl2086 _PKG_TEXT])[]dnl 1969 2087 ]) 1970 2088 elif test $pkg_failed = untried; then … … 1977 2095 _PKG_TEXT 1978 2096 1979 To get pkg-config, see <http://pkg-config.freedesktop.org/>.]) dnl2097 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl 1980 2098 ]) 1981 2099 else -
trunk/FACT++/configure
r12769 r12832 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.6 7for FACT++ 1.0.3 # Generated by GNU Autoconf 2.68 for FACT++ 1.0. 4 4 # 5 5 # Report bugs to <thomas.bretz@epfl.ch>. … … 92 92 93 93 # Find who we are. Look in the path if we contain no directory separator. 94 as_myself= 94 95 case $0 in #(( 95 96 *[\\/]* ) as_myself=$0 ;; … … 174 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176 test \$(( 1 + 1 )) = 2 || exit 1" 177 test \$(( 1 + 1 )) = 2 || exit 1 178 179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 183 PATH=/empty FPATH=/empty; export PATH FPATH 184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 177 186 if (eval "$as_required") 2>/dev/null; then : 178 187 as_have_required=yes … … 217 226 # neutralization value for shells without unset; and this also 218 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 219 229 BASH_ENV=/dev/null 220 230 ENV=/dev/null 221 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222 232 export CONFIG_SHELL 223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 224 240 fi 225 241 … … 529 545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 530 546 531 532 533 # Check that we are running under the correct shell.534 547 SHELL=${CONFIG_SHELL-/bin/sh} 535 536 case X$lt_ECHO in537 X*--fallback-echo)538 # Remove one level of quotation (which was required for Make).539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`540 ;;541 esac542 543 ECHO=${lt_ECHO-echo}544 if test "X$1" = X--no-reexec; then545 # Discard the --no-reexec flag, and continue.546 shift547 elif test "X$1" = X--fallback-echo; then548 # Avoid inline document here, it may be left over549 :550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then551 # Yippee, $ECHO works!552 :553 else554 # Restart under the correct shell.555 exec $SHELL "$0" --no-reexec ${1+"$@"}556 fi557 558 if test "X$1" = X--fallback-echo; then559 # used as fallback echo560 shift561 cat <<_LT_EOF562 $*563 _LT_EOF564 exit 0565 fi566 567 # The HP-UX ksh and POSIX shell print the target directory to stdout568 # if CDPATH is set.569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH570 571 if test -z "$lt_ECHO"; then572 if test "X${echo_test_string+set}" != Xset; then573 # find a string as large as possible, as long as the shell can cope with it574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null578 then579 break580 fi581 done582 fi583 584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&586 test "X$echo_testing_string" = "X$echo_test_string"; then587 :588 else589 # The Solaris, AIX, and Digital Unix default echo programs unquote590 # backslashes. This makes it impossible to quote backslashes using591 # echo "$something" | sed 's/\\/\\\\/g'592 #593 # So, first we look for a working echo in the user's PATH.594 595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR596 for dir in $PATH /usr/ucb; do597 IFS="$lt_save_ifs"598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&601 test "X$echo_testing_string" = "X$echo_test_string"; then602 ECHO="$dir/echo"603 break604 fi605 done606 IFS="$lt_save_ifs"607 608 if test "X$ECHO" = Xecho; then609 # We didn't find a better echo, so look for alternatives.610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&612 test "X$echo_testing_string" = "X$echo_test_string"; then613 # This shell has a builtin print -r that does the trick.614 ECHO='print -r'615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&616 test "X$CONFIG_SHELL" != X/bin/ksh; then617 # If we have ksh, try running configure again with it.618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}619 export ORIGINAL_CONFIG_SHELL620 CONFIG_SHELL=/bin/ksh621 export CONFIG_SHELL622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}623 else624 # Try using printf.625 ECHO='printf %s\n'626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&628 test "X$echo_testing_string" = "X$echo_test_string"; then629 # Cool, printf works630 :631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&632 test "X$echo_testing_string" = 'X\t' &&633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&634 test "X$echo_testing_string" = "X$echo_test_string"; then635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL636 export CONFIG_SHELL637 SHELL="$CONFIG_SHELL"638 export SHELL639 ECHO="$CONFIG_SHELL $0 --fallback-echo"640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&641 test "X$echo_testing_string" = 'X\t' &&642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&643 test "X$echo_testing_string" = "X$echo_test_string"; then644 ECHO="$CONFIG_SHELL $0 --fallback-echo"645 else646 # maybe with a smaller string...647 prev=:648 649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null651 then652 break653 fi654 prev="$cmd"655 done656 657 if test "$prev" != 'sed 50q "$0"'; then658 echo_test_string=`eval $prev`659 export echo_test_string660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}661 else662 # Oops. We lost completely, so just stick with echo.663 ECHO=echo664 fi665 fi666 fi667 fi668 fi669 fi670 671 # Copy echo and quote the copy suitably for passing to libtool from672 # the Makefile, instead of quoting the original, which is used later.673 lt_ECHO=$ECHO674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"676 fi677 678 679 548 680 549 … … 857 726 PTHREAD_LIBS 858 727 PTHREAD_CC 859 a cx_pthread_config728 ax_pthread_config 860 729 DOXYGEN_PAPER_SIZE 861 730 DX_COND_latex_FALSE … … 923 792 am__leading_dot 924 793 SET_MAKE 925 AWK926 794 mkdir_p 927 795 MKDIR_P … … 946 814 NMEDIT 947 815 DSYMUTIL 948 lt_ECHO 816 MANIFEST_TOOL 817 AWK 949 818 RANLIB 950 819 STRIP 820 ac_ct_AR 951 821 AR 822 DLLTOOL 952 823 OBJDUMP 953 824 LN_S … … 1028 899 enable_fast_install 1029 900 with_gnu_ld 901 with_sysroot 1030 902 enable_libtool_lock 1031 903 enable_dependency_tracking … … 1513 1385 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1514 1386 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1515 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}1387 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1516 1388 ;; 1517 1389 … … 1747 1619 --disable-silent-rules verbose build output (undo: `make V=0') 1748 1620 --disable-doxygen-doc don't generate any doxygen documentation 1749 -- disable-doxygen-dot don'tgenerate graphics for doxygen documentation1621 --enable-doxygen-dot generate graphics for doxygen documentation 1750 1622 --enable-doxygen-man generate doxygen manual pages 1751 1623 --enable-doxygen-rtf generate doxygen RTF documentation … … 1764 1636 both] 1765 1637 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1638 --with-sysroot=DIR Search for dependent libraries within DIR 1639 (or the compiler's sysroot if not specified). 1766 1640 --with-readline[=dir] Compile with readline/locate base dir 1767 1641 --with-x use the X Window System … … 1792 1666 --with-mysqlpp-lib=<path> directory path of MySQL++ library 1793 1667 --with-mysqlpp-include=<path> directory path of MySQL++ headers 1794 --with-boost[=DIR] use boost (default is yes) - it is possible to 1795 specify the root directory for boost (optional) 1668 --with-boost[=ARG] use Boost library from a standard location 1669 (ARG=yes), from the specified location (ARG=<path>), 1670 or disable it (ARG=no) [ARG=yes] 1796 1671 --with-boost-libdir=LIB_DIR 1797 1672 Force given directory for boost libraries. Note that 1798 this will over write library path detection, so use1673 this will override library path detection, so use 1799 1674 this parameter only if default library detection 1800 1675 fails and you know exactly where your boost … … 1944 1819 cat <<\_ACEOF 1945 1820 FACT++ configure 1.0 1946 generated by GNU Autoconf 2.6 71821 generated by GNU Autoconf 2.68 1947 1822 1948 1823 Copyright (C) 2010 Free Software Foundation, Inc. … … 1990 1865 ac_retval=1 1991 1866 fi 1992 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1993 1868 as_fn_set_status $ac_retval 1994 1869 … … 2028 1903 ac_retval=1 2029 1904 fi 2030 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2031 1906 as_fn_set_status $ac_retval 2032 1907 … … 2065 1940 ac_retval=1 2066 1941 fi 2067 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2068 1943 as_fn_set_status $ac_retval 2069 1944 … … 2078 1953 { 2079 1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2080 if eval "test \"\${$3+set}\"" = set; then :1955 if eval \${$3+:} false; then : 2081 1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2082 1957 $as_echo_n "checking for $2... " >&6; } 2083 if eval "test \"\${$3+set}\"" = set; then :1958 if eval \${$3+:} false; then : 2084 1959 $as_echo_n "(cached) " >&6 2085 1960 fi … … 2148 2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2149 2024 $as_echo_n "checking for $2... " >&6; } 2150 if eval "test \"\${$3+set}\"" = set; then :2025 if eval \${$3+:} false; then : 2151 2026 $as_echo_n "(cached) " >&6 2152 2027 else … … 2157 2032 $as_echo "$ac_res" >&6; } 2158 2033 fi 2159 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2160 2035 2161 2036 } # ac_fn_c_check_header_mongrel … … 2198 2073 fi 2199 2074 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2200 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2201 2076 as_fn_set_status $ac_retval 2202 2077 … … 2212 2087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2213 2088 $as_echo_n "checking for $2... " >&6; } 2214 if eval "test \"\${$3+set}\"" = set; then :2089 if eval \${$3+:} false; then : 2215 2090 $as_echo_n "(cached) " >&6 2216 2091 else … … 2230 2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2231 2106 $as_echo "$ac_res" >&6; } 2232 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2233 2108 2234 2109 } # ac_fn_c_check_header_compile … … 2275 2150 # left behind by Apple's compiler. We do this before executing the actions. 2276 2151 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2277 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}2152 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2278 2153 as_fn_set_status $ac_retval 2279 2154 … … 2288 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2289 2164 $as_echo_n "checking for $2... " >&6; } 2290 if eval "test \"\${$3+set}\"" = set; then :2165 if eval \${$3+:} false; then : 2291 2166 $as_echo_n "(cached) " >&6 2292 2167 else … … 2343 2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2344 2219 $as_echo "$ac_res" >&6; } 2345 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}2220 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2346 2221 2347 2222 } # ac_fn_c_check_func … … 2379 2254 ac_retval=1 2380 2255 fi 2381 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}2256 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2382 2257 as_fn_set_status $ac_retval 2383 2258 … … 2425 2300 # left behind by Apple's compiler. We do this before executing the actions. 2426 2301 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2427 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}2302 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2428 2303 as_fn_set_status $ac_retval 2429 2304 … … 2438 2313 { 2439 2314 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2440 if eval "test \"\${$3+set}\"" = set; then :2315 if eval \${$3+:} false; then : 2441 2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2442 2317 $as_echo_n "checking for $2... " >&6; } 2443 if eval "test \"\${$3+set}\"" = set; then :2318 if eval \${$3+:} false; then : 2444 2319 $as_echo_n "(cached) " >&6 2445 2320 fi … … 2508 2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2509 2384 $as_echo_n "checking for $2... " >&6; } 2510 if eval "test \"\${$3+set}\"" = set; then :2385 if eval \${$3+:} false; then : 2511 2386 $as_echo_n "(cached) " >&6 2512 2387 else … … 2517 2392 $as_echo "$ac_res" >&6; } 2518 2393 fi 2519 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}2394 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2520 2395 2521 2396 } # ac_fn_cxx_check_header_mongrel … … 2529 2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2530 2405 $as_echo_n "checking for $2... " >&6; } 2531 if eval "test \"\${$3+set}\"" = set; then :2406 if eval \${$3+:} false; then : 2532 2407 $as_echo_n "(cached) " >&6 2533 2408 else … … 2584 2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2585 2460 $as_echo "$ac_res" >&6; } 2586 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}2461 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2587 2462 2588 2463 } # ac_fn_cxx_check_func … … 2592 2467 2593 2468 It was created by FACT++ $as_me 1.0, which was 2594 generated by GNU Autoconf 2.6 7. Invocation command line was2469 generated by GNU Autoconf 2.68. Invocation command line was 2595 2470 2596 2471 $ $0 $@ … … 2850 2725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2851 2726 as_fn_error $? "failed to load site script $ac_site_file 2852 See \`config.log' for more details" "$LINENO" 5 2727 See \`config.log' for more details" "$LINENO" 5; } 2853 2728 fi 2854 2729 done … … 3004 2879 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3005 2880 if test -n "$ac_tool_prefix"; then 3006 for ac_prog in colorgccgcc2881 for ac_prog in gcc 3007 2882 do 3008 2883 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. … … 3010 2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3011 2886 $as_echo_n "checking for $ac_word... " >&6; } 3012 if test "${ac_cv_prog_CC+set}" = set; then :2887 if ${ac_cv_prog_CC+:} false; then : 3013 2888 $as_echo_n "(cached) " >&6 3014 2889 else … … 3048 2923 if test -z "$CC"; then 3049 2924 ac_ct_CC=$CC 3050 for ac_prog in colorgccgcc2925 for ac_prog in gcc 3051 2926 do 3052 2927 # Extract the first word of "$ac_prog", so it can be a program name with args. … … 3054 2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3055 2930 $as_echo_n "checking for $ac_word... " >&6; } 3056 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :2931 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3057 2932 $as_echo_n "(cached) " >&6 3058 2933 else … … 3107 2982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3108 2983 as_fn_error $? "no acceptable C compiler found in \$PATH 3109 See \`config.log' for more details" "$LINENO" 5 2984 See \`config.log' for more details" "$LINENO" 5; } 3110 2985 3111 2986 # Provide some information about the compiler. … … 3222 3097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3223 3098 as_fn_error 77 "C compiler cannot create executables 3224 See \`config.log' for more details" "$LINENO" 5 3099 See \`config.log' for more details" "$LINENO" 5; } 3225 3100 else 3226 3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 … … 3265 3140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3266 3141 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3267 See \`config.log' for more details" "$LINENO" 5 3142 See \`config.log' for more details" "$LINENO" 5; } 3268 3143 fi 3269 3144 rm -f conftest conftest$ac_cv_exeext … … 3324 3199 as_fn_error $? "cannot run C compiled programs. 3325 3200 If you meant to cross compile, use \`--host'. 3326 See \`config.log' for more details" "$LINENO" 5 3201 See \`config.log' for more details" "$LINENO" 5; } 3327 3202 fi 3328 3203 fi … … 3335 3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3336 3211 $as_echo_n "checking for suffix of object files... " >&6; } 3337 if test "${ac_cv_objext+set}" = set; then :3212 if ${ac_cv_objext+:} false; then : 3338 3213 $as_echo_n "(cached) " >&6 3339 3214 else … … 3376 3251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3377 3252 as_fn_error $? "cannot compute suffix of object files: cannot compile 3378 See \`config.log' for more details" "$LINENO" 5 3253 See \`config.log' for more details" "$LINENO" 5; } 3379 3254 fi 3380 3255 rm -f conftest.$ac_cv_objext conftest.$ac_ext … … 3386 3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3387 3262 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3388 if test "${ac_cv_c_compiler_gnu+set}" = set; then :3263 if ${ac_cv_c_compiler_gnu+:} false; then : 3389 3264 $as_echo_n "(cached) " >&6 3390 3265 else … … 3423 3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3424 3299 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3425 if test "${ac_cv_prog_cc_g+set}" = set; then :3300 if ${ac_cv_prog_cc_g+:} false; then : 3426 3301 $as_echo_n "(cached) " >&6 3427 3302 else … … 3501 3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3502 3377 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3503 if test "${ac_cv_prog_cc_c89+set}" = set; then :3378 if ${ac_cv_prog_cc_c89+:} false; then : 3504 3379 $as_echo_n "(cached) " >&6 3505 3380 else … … 3606 3481 else 3607 3482 if test -n "$ac_tool_prefix"; then 3608 for ac_prog in colorgccg++3483 for ac_prog in g++ 3609 3484 do 3610 3485 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. … … 3612 3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3613 3488 $as_echo_n "checking for $ac_word... " >&6; } 3614 if test "${ac_cv_prog_CXX+set}" = set; then :3489 if ${ac_cv_prog_CXX+:} false; then : 3615 3490 $as_echo_n "(cached) " >&6 3616 3491 else … … 3650 3525 if test -z "$CXX"; then 3651 3526 ac_ct_CXX=$CXX 3652 for ac_prog in colorgccg++3527 for ac_prog in g++ 3653 3528 do 3654 3529 # Extract the first word of "$ac_prog", so it can be a program name with args. … … 3656 3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3657 3532 $as_echo_n "checking for $ac_word... " >&6; } 3658 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :3533 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3659 3534 $as_echo_n "(cached) " >&6 3660 3535 else … … 3734 3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3735 3610 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3736 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :3611 if ${ac_cv_cxx_compiler_gnu+:} false; then : 3737 3612 $as_echo_n "(cached) " >&6 3738 3613 else … … 3771 3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3772 3647 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 3773 if test "${ac_cv_prog_cxx_g+set}" = set; then :3648 if ${ac_cv_prog_cxx_g+:} false; then : 3774 3649 $as_echo_n "(cached) " >&6 3775 3650 else … … 3854 3729 3855 3730 3731 COLORGCC=`which colorgcc` 3732 if test -n "$COLORGCC"; then : 3733 3734 ac_config_links="$ac_config_links g++:$COLORGCC gcc:$COLORGCC" 3735 3736 PATH=./:$PATH 3737 3738 fi 3739 3856 3740 #AC_PROG_CC_C99 3857 3741 case $ac_cv_prog_cc_stdc in #( … … 3861 3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3862 3746 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3863 if test "${ac_cv_prog_cc_c99+set}" = set; then :3747 if ${ac_cv_prog_cc_c99+:} false; then : 3864 3748 $as_echo_n "(cached) " >&6 3865 3749 else … … 4036 3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4037 3921 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4038 if test "${ac_cv_prog_cc_c89+set}" = set; then :3922 if ${ac_cv_prog_cc_c89+:} false; then : 4039 3923 $as_echo_n "(cached) " >&6 4040 3924 else … … 4132 4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 4133 4017 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 4134 if test "${ac_cv_prog_cc_stdc+set}" = set; then :4018 if ${ac_cv_prog_cc_stdc+:} false; then : 4135 4019 $as_echo_n "(cached) " >&6 4136 4020 fi … … 4166 4050 fi 4167 4051 if test -z "$CPP"; then 4168 if test "${ac_cv_prog_CPP+set}" = set; then :4052 if ${ac_cv_prog_CPP+:} false; then : 4169 4053 $as_echo_n "(cached) " >&6 4170 4054 else … … 4282 4166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4283 4167 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4284 See \`config.log' for more details" "$LINENO" 5 4168 See \`config.log' for more details" "$LINENO" 5; } 4285 4169 fi 4286 4170 … … 4294 4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4295 4179 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4296 if test "${ac_cv_path_GREP+set}" = set; then :4180 if ${ac_cv_path_GREP+:} false; then : 4297 4181 $as_echo_n "(cached) " >&6 4298 4182 else … … 4357 4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4358 4242 $as_echo_n "checking for egrep... " >&6; } 4359 if test "${ac_cv_path_EGREP+set}" = set; then :4243 if ${ac_cv_path_EGREP+:} false; then : 4360 4244 $as_echo_n "(cached) " >&6 4361 4245 else … … 4424 4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4425 4309 $as_echo_n "checking for ANSI C header files... " >&6; } 4426 if test "${ac_cv_header_stdc+set}" = set; then :4310 if ${ac_cv_header_stdc+:} false; then : 4427 4311 $as_echo_n "(cached) " >&6 4428 4312 else … … 4553 4437 4554 4438 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4555 if test "x$ac_cv_header_minix_config_h" = x ""yes; then :4439 if test "x$ac_cv_header_minix_config_h" = xyes; then : 4556 4440 MINIX=yes 4557 4441 else … … 4575 4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4576 4460 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4577 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :4461 if ${ac_cv_safe_to_define___extensions__+:} false; then : 4578 4462 $as_echo_n "(cached) " >&6 4579 4463 else … … 4622 4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports C++0x features without additional flags" >&5 4623 4507 $as_echo_n "checking if g++ supports C++0x features without additional flags... " >&6; } 4624 if test "${ax_cv_cxx_compile_cxx0x_native+set}" = set; then :4508 if ${ax_cv_cxx_compile_cxx0x_native+:} false; then : 4625 4509 $as_echo_n "(cached) " >&6 4626 4510 else … … 4676 4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports C++0x features with -std=c++0x" >&5 4677 4561 $as_echo_n "checking if g++ supports C++0x features with -std=c++0x... " >&6; } 4678 if test "${ax_cv_cxx_compile_cxx0x_cxx+set}" = set; then :4562 if ${ax_cv_cxx_compile_cxx0x_cxx+:} false; then : 4679 4563 $as_echo_n "(cached) " >&6 4680 4564 else … … 4733 4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports C++0x features with -std=gnu++0x" >&5 4734 4618 $as_echo_n "checking if g++ supports C++0x features with -std=gnu++0x... " >&6; } 4735 if test "${ax_cv_cxx_compile_cxx0x_gxx+set}" = set; then :4619 if ${ax_cv_cxx_compile_cxx0x_gxx+:} false; then : 4736 4620 $as_echo_n "(cached) " >&6 4737 4621 else … … 4815 4699 4816 4700 4817 macro_version='2. 2.6b'4818 macro_revision='1.3 017'4701 macro_version='2.4' 4702 macro_revision='1.3293' 4819 4703 4820 4704 … … 4838 4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4839 4723 $as_echo_n "checking build system type... " >&6; } 4840 if test "${ac_cv_build+set}" = set; then :4724 if ${ac_cv_build+:} false; then : 4841 4725 $as_echo_n "(cached) " >&6 4842 4726 else … … 4854 4738 case $ac_cv_build in 4855 4739 *-*-*) ;; 4856 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 4740 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4857 4741 esac 4858 4742 build=$ac_cv_build … … 4872 4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4873 4757 $as_echo_n "checking host system type... " >&6; } 4874 if test "${ac_cv_host+set}" = set; then :4758 if ${ac_cv_host+:} false; then : 4875 4759 $as_echo_n "(cached) " >&6 4876 4760 else … … 4887 4771 case $ac_cv_host in 4888 4772 *-*-*) ;; 4889 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 4773 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4890 4774 esac 4891 4775 host=$ac_cv_host … … 4903 4787 4904 4788 4789 # Backslashify metacharacters that are still active within 4790 # double-quoted strings. 4791 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4792 4793 # Same as above, but do not quote variable references. 4794 double_quote_subst='s/\(["`\\]\)/\\\1/g' 4795 4796 # Sed substitution to delay expansion of an escaped shell variable in a 4797 # double_quote_subst'ed string. 4798 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4799 4800 # Sed substitution to delay expansion of an escaped single quote. 4801 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4802 4803 # Sed substitution to avoid accidental globbing in evaled expressions 4804 no_glob_subst='s/\*/\\\*/g' 4805 4806 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4807 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4808 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4809 4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4811 $as_echo_n "checking how to print strings... " >&6; } 4812 # Test print first, because it will be a builtin if present. 4813 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4814 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4815 ECHO='print -r --' 4816 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4817 ECHO='printf %s\n' 4818 else 4819 # Use this function as a fallback that always works. 4820 func_fallback_echo () 4821 { 4822 eval 'cat <<_LTECHO_EOF 4823 $1 4824 _LTECHO_EOF' 4825 } 4826 ECHO='func_fallback_echo' 4827 fi 4828 4829 # func_echo_all arg... 4830 # Invoke $ECHO with all args, space-separated. 4831 func_echo_all () 4832 { 4833 $ECHO "" 4834 } 4835 4836 case "$ECHO" in 4837 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4838 $as_echo "printf" >&6; } ;; 4839 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4840 $as_echo "print -r" >&6; } ;; 4841 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4842 $as_echo "cat" >&6; } ;; 4843 esac 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4905 4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4906 4859 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4907 if test "${ac_cv_path_SED+set}" = set; then :4860 if ${ac_cv_path_SED+:} false; then : 4908 4861 $as_echo_n "(cached) " >&6 4909 4862 else … … 4987 4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4988 4941 $as_echo_n "checking for fgrep... " >&6; } 4989 if test "${ac_cv_path_FGREP+set}" = set; then :4942 if ${ac_cv_path_FGREP+:} false; then : 4990 4943 $as_echo_n "(cached) " >&6 4991 4944 else … … 5118 5071 $as_echo_n "checking for non-GNU ld... " >&6; } 5119 5072 fi 5120 if test "${lt_cv_path_LD+set}" = set; then :5073 if ${lt_cv_path_LD+:} false; then : 5121 5074 $as_echo_n "(cached) " >&6 5122 5075 else … … 5158 5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5159 5112 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5160 if test "${lt_cv_prog_gnu_ld+set}" = set; then :5113 if ${lt_cv_prog_gnu_ld+:} false; then : 5161 5114 $as_echo_n "(cached) " >&6 5162 5115 else … … 5185 5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5186 5139 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5187 if test "${lt_cv_path_NM+set}" = set; then :5140 if ${lt_cv_path_NM+:} false; then : 5188 5141 $as_echo_n "(cached) " >&6 5189 5142 else … … 5238 5191 else 5239 5192 # Didn't find any BSD compatible name lister, look for dumpbin. 5240 if test -n "$ac_tool_prefix"; then 5241 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5193 if test -n "$DUMPBIN"; then : 5194 # Let the user override the test. 5195 else 5196 if test -n "$ac_tool_prefix"; then 5197 for ac_prog in dumpbin "link -dump" 5242 5198 do 5243 5199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. … … 5245 5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5246 5202 $as_echo_n "checking for $ac_word... " >&6; } 5247 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :5203 if ${ac_cv_prog_DUMPBIN+:} false; then : 5248 5204 $as_echo_n "(cached) " >&6 5249 5205 else … … 5283 5239 if test -z "$DUMPBIN"; then 5284 5240 ac_ct_DUMPBIN=$DUMPBIN 5285 for ac_prog in "dumpbin -symbols" "link -dump -symbols"5241 for ac_prog in dumpbin "link -dump" 5286 5242 do 5287 5243 # Extract the first word of "$ac_prog", so it can be a program name with args. … … 5289 5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5290 5246 $as_echo_n "checking for $ac_word... " >&6; } 5291 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :5247 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5292 5248 $as_echo_n "(cached) " >&6 5293 5249 else … … 5338 5294 fi 5339 5295 5296 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5297 *COFF*) 5298 DUMPBIN="$DUMPBIN -symbols" 5299 ;; 5300 *) 5301 DUMPBIN=: 5302 ;; 5303 esac 5304 fi 5340 5305 5341 5306 if test "$DUMPBIN" != ":"; then … … 5352 5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5353 5318 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 5354 if test "${lt_cv_nm_interface+set}" = set; then :5319 if ${lt_cv_nm_interface+:} false; then : 5355 5320 $as_echo_n "(cached) " >&6 5356 5321 else 5357 5322 lt_cv_nm_interface="BSD nm" 5358 5323 echo "int some_variable = 0;" > conftest.$ac_ext 5359 (eval echo "\"\$as_me: 5359: $ac_compile\"" >&5)5324 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5360 5325 (eval "$ac_compile" 2>conftest.err) 5361 5326 cat conftest.err >&5 5362 (eval echo "\"\$as_me: 5362: $NM \\\"conftest.$ac_objext\\\"\"" >&5)5327 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5363 5328 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5364 5329 cat conftest.err >&5 5365 (eval echo "\"\$as_me: 5365: output\"" >&5)5330 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5366 5331 cat conftest.out >&5 5367 5332 if $GREP 'External.*some_variable' conftest.out > /dev/null; then … … 5387 5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5388 5353 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 5389 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :5354 if ${lt_cv_sys_max_cmd_len+:} false; then : 5390 5355 $as_echo_n "(cached) " >&6 5391 5356 else … … 5417 5382 # Instead, let's just punt: use the minimum linelength reported by 5418 5383 # all of the supported platforms: 8192 (on NT/2K/XP). 5384 lt_cv_sys_max_cmd_len=8192; 5385 ;; 5386 5387 mint*) 5388 # On MiNT this can take a long time and run out of memory. 5419 5389 lt_cv_sys_max_cmd_len=8192; 5420 5390 ;; … … 5484 5454 # maximum length that is only half of the actual maximum length, but 5485 5455 # we can't tell. 5486 while { test "X"` $SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \5487 = "X X$teststring$teststring"; } >/dev/null 2>&1 &&5456 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5457 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5488 5458 test $i != 17 # 1/2 MB should be enough 5489 5459 do … … 5527 5497 xsi_shell=no 5528 5498 ( _lt_dummy="a/b/c" 5529 test "${_lt_dummy##*/},${_lt_dummy%/*}, "${_lt_dummy%"$_lt_dummy"}, \5530 = c,a/b, , \5499 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5500 = c,a/b,b/c, \ 5531 5501 && eval 'test $(( 1 + 1 )) -eq 2 \ 5532 5502 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ … … 5577 5547 5578 5548 5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5550 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5551 if ${lt_cv_to_host_file_cmd+:} false; then : 5552 $as_echo_n "(cached) " >&6 5553 else 5554 case $host in 5555 *-*-mingw* ) 5556 case $build in 5557 *-*-mingw* ) # actually msys 5558 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5559 ;; 5560 *-*-cygwin* ) 5561 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5562 ;; 5563 * ) # otherwise, assume *nix 5564 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5565 ;; 5566 esac 5567 ;; 5568 *-*-cygwin* ) 5569 case $build in 5570 *-*-mingw* ) # actually msys 5571 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5572 ;; 5573 *-*-cygwin* ) 5574 lt_cv_to_host_file_cmd=func_convert_file_noop 5575 ;; 5576 * ) # otherwise, assume *nix 5577 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5578 ;; 5579 esac 5580 ;; 5581 * ) # unhandled hosts (and "normal" native builds) 5582 lt_cv_to_host_file_cmd=func_convert_file_noop 5583 ;; 5584 esac 5585 5586 fi 5587 5588 to_host_file_cmd=$lt_cv_to_host_file_cmd 5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5590 $as_echo "$lt_cv_to_host_file_cmd" >&6; } 5591 5592 5593 5594 5595 5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5597 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5598 if ${lt_cv_to_tool_file_cmd+:} false; then : 5599 $as_echo_n "(cached) " >&6 5600 else 5601 #assume ordinary cross tools, or native build. 5602 lt_cv_to_tool_file_cmd=func_convert_file_noop 5603 case $host in 5604 *-*-mingw* ) 5605 case $build in 5606 *-*-mingw* ) # actually msys 5607 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5608 ;; 5609 esac 5610 ;; 5611 esac 5612 5613 fi 5614 5615 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5617 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5618 5619 5620 5621 5622 5579 5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5580 5624 $as_echo_n "checking for $LD option to reload object files... " >&6; } 5581 if test "${lt_cv_ld_reload_flag+set}" = set; then :5625 if ${lt_cv_ld_reload_flag+:} false; then : 5582 5626 $as_echo_n "(cached) " >&6 5583 5627 else … … 5593 5637 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5594 5638 case $host_os in 5639 cygwin* | mingw* | pw32* | cegcc*) 5640 if test "$GCC" != yes; then 5641 reload_cmds=false 5642 fi 5643 ;; 5595 5644 darwin*) 5596 5645 if test "$GCC" = yes; then … … 5615 5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5616 5665 $as_echo_n "checking for $ac_word... " >&6; } 5617 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :5666 if ${ac_cv_prog_OBJDUMP+:} false; then : 5618 5667 $as_echo_n "(cached) " >&6 5619 5668 else … … 5655 5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5656 5705 $as_echo_n "checking for $ac_word... " >&6; } 5657 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :5706 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5658 5707 $as_echo_n "(cached) " >&6 5659 5708 else … … 5714 5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5715 5764 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 5716 if test "${lt_cv_deplibs_check_method+set}" = set; then :5765 if ${lt_cv_deplibs_check_method+:} false; then : 5717 5766 $as_echo_n "(cached) " >&6 5718 5767 else … … 5756 5805 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5757 5806 # unless we find 'file', for example because we are cross-compiling. 5758 if ( file / ) >/dev/null 2>&1; then 5807 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5808 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5759 5809 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5760 5810 lt_cv_file_magic_cmd='func_win32_libid' 5761 5811 else 5762 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5812 # Keep this pattern in sync with the one in func_win32_libid. 5813 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5763 5814 lt_cv_file_magic_cmd='$OBJDUMP -f' 5764 5815 fi 5765 5816 ;; 5766 5817 5767 cegcc )5818 cegcc*) 5768 5819 # use the weaker test based on 'objdump'. See mingw*. 5769 5820 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' … … 5795 5846 ;; 5796 5847 5848 haiku*) 5849 lt_cv_deplibs_check_method=pass_all 5850 ;; 5851 5797 5852 hpux10.20* | hpux11*) 5798 5853 lt_cv_file_magic_cmd=/usr/bin/file … … 5803 5858 ;; 5804 5859 hppa*64*) 5805 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF -[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'5860 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 5806 5861 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5807 5862 ;; 5808 5863 *) 5809 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9] .[0-9]) shared library'5864 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5810 5865 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5811 5866 ;; … … 5910 5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5911 5966 $as_echo "$lt_cv_deplibs_check_method" >&6; } 5967 5968 file_magic_glob= 5969 want_nocaseglob=no 5970 if test "$build" = "$host"; then 5971 case $host_os in 5972 mingw* | pw32*) 5973 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5974 want_nocaseglob=yes 5975 else 5976 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5977 fi 5978 ;; 5979 esac 5980 fi 5981 5912 5982 file_magic_cmd=$lt_cv_file_magic_cmd 5913 5983 deplibs_check_method=$lt_cv_deplibs_check_method … … 5925 5995 5926 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 5927 6007 if test -n "$ac_tool_prefix"; then 5928 # Extract the first word of "${ac_tool_prefix} ar", so it can be a program name with args.5929 set dummy ${ac_tool_prefix} ar; ac_word=$26008 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6009 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5930 6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5931 6011 $as_echo_n "checking for $ac_word... " >&6; } 5932 if test "${ac_cv_prog_AR+set}" = set; then :6012 if ${ac_cv_prog_DLLTOOL+:} false; then : 5933 6013 $as_echo_n "(cached) " >&6 5934 6014 else 5935 if test -n "$ AR"; then5936 ac_cv_prog_ AR="$AR" # Let the user override the test.6015 if test -n "$DLLTOOL"; then 6016 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5937 6017 else 5938 6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 5943 6023 for ac_exec_ext in '' $ac_executable_extensions; do 5944 6024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5945 ac_cv_prog_ AR="${ac_tool_prefix}ar"6025 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5946 6026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5947 6027 break 2 … … 5953 6033 fi 5954 6034 fi 5955 AR=$ac_cv_prog_AR 5956 if test -n "$ AR"; then5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ AR" >&55958 $as_echo "$ AR" >&6; }6035 DLLTOOL=$ac_cv_prog_DLLTOOL 6036 if test -n "$DLLTOOL"; then 6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6038 $as_echo "$DLLTOOL" >&6; } 5959 6039 else 5960 6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 … … 5964 6044 5965 6045 fi 5966 if test -z "$ac_cv_prog_ AR"; then5967 ac_ct_ AR=$AR5968 # Extract the first word of " ar", so it can be a program name with args.5969 set dummy ar; ac_word=$26046 if test -z "$ac_cv_prog_DLLTOOL"; then 6047 ac_ct_DLLTOOL=$DLLTOOL 6048 # Extract the first word of "dlltool", so it can be a program name with args. 6049 set dummy dlltool; ac_word=$2 5970 6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5971 6051 $as_echo_n "checking for $ac_word... " >&6; } 5972 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :6052 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5973 6053 $as_echo_n "(cached) " >&6 5974 6054 else 5975 if test -n "$ac_ct_ AR"; then5976 ac_cv_prog_ac_ct_ AR="$ac_ct_AR" # Let the user override the test.6055 if test -n "$ac_ct_DLLTOOL"; then 6056 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5977 6057 else 5978 6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 5983 6063 for ac_exec_ext in '' $ac_executable_extensions; do 5984 6064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5985 ac_cv_prog_ac_ct_ AR="ar"6065 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5986 6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5987 6067 break 2 … … 5993 6073 fi 5994 6074 fi 6075 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6076 if test -n "$ac_ct_DLLTOOL"; then 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6078 $as_echo "$ac_ct_DLLTOOL" >&6; } 6079 else 6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6081 $as_echo "no" >&6; } 6082 fi 6083 6084 if test "x$ac_ct_DLLTOOL" = x; then 6085 DLLTOOL="false" 6086 else 6087 case $cross_compiling:$ac_tool_warned in 6088 yes:) 6089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6091 ac_tool_warned=yes ;; 6092 esac 6093 DLLTOOL=$ac_ct_DLLTOOL 6094 fi 6095 else 6096 DLLTOOL="$ac_cv_prog_DLLTOOL" 6097 fi 6098 6099 test -z "$DLLTOOL" && DLLTOOL=dlltool 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6111 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6112 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6113 $as_echo_n "(cached) " >&6 6114 else 6115 lt_cv_sharedlib_from_linklib_cmd='unknown' 6116 6117 case $host_os in 6118 cygwin* | mingw* | pw32* | cegcc*) 6119 # two different shell functions defined in ltmain.sh 6120 # decide which to use based on capabilities of $DLLTOOL 6121 case `$DLLTOOL --help 2>&1` in 6122 *--identify-strict*) 6123 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6124 ;; 6125 *) 6126 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6127 ;; 6128 esac 6129 ;; 6130 *) 6131 # fallback: assume linklib IS sharedlib 6132 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6133 ;; 6134 esac 6135 6136 fi 6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6138 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6139 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6140 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6141 6142 6143 6144 6145 6146 6147 6148 if test -n "$ac_tool_prefix"; then 6149 for ac_prog in ar 6150 do 6151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6154 $as_echo_n "checking for $ac_word... " >&6; } 6155 if ${ac_cv_prog_AR+:} false; then : 6156 $as_echo_n "(cached) " >&6 6157 else 6158 if test -n "$AR"; then 6159 ac_cv_prog_AR="$AR" # Let the user override the test. 6160 else 6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6162 for as_dir in $PATH 6163 do 6164 IFS=$as_save_IFS 6165 test -z "$as_dir" && as_dir=. 6166 for ac_exec_ext in '' $ac_executable_extensions; do 6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6168 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6170 break 2 6171 fi 6172 done 6173 done 6174 IFS=$as_save_IFS 6175 6176 fi 6177 fi 6178 AR=$ac_cv_prog_AR 6179 if test -n "$AR"; then 6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6181 $as_echo "$AR" >&6; } 6182 else 6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6184 $as_echo "no" >&6; } 6185 fi 6186 6187 6188 test -n "$AR" && break 6189 done 6190 fi 6191 if test -z "$AR"; then 6192 ac_ct_AR=$AR 6193 for ac_prog in ar 6194 do 6195 # Extract the first word of "$ac_prog", so it can be a program name with args. 6196 set dummy $ac_prog; ac_word=$2 6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6198 $as_echo_n "checking for $ac_word... " >&6; } 6199 if ${ac_cv_prog_ac_ct_AR+:} false; then : 6200 $as_echo_n "(cached) " >&6 6201 else 6202 if test -n "$ac_ct_AR"; then 6203 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6204 else 6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6206 for as_dir in $PATH 6207 do 6208 IFS=$as_save_IFS 6209 test -z "$as_dir" && as_dir=. 6210 for ac_exec_ext in '' $ac_executable_extensions; do 6211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6212 ac_cv_prog_ac_ct_AR="$ac_prog" 6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6214 break 2 6215 fi 6216 done 6217 done 6218 IFS=$as_save_IFS 6219 6220 fi 6221 fi 5995 6222 ac_ct_AR=$ac_cv_prog_ac_ct_AR 5996 6223 if test -n "$ac_ct_AR"; then … … 6001 6228 $as_echo "no" >&6; } 6002 6229 fi 6230 6231 6232 test -n "$ac_ct_AR" && break 6233 done 6003 6234 6004 6235 if test "x$ac_ct_AR" = x; then … … 6013 6244 AR=$ac_ct_AR 6014 6245 fi 6015 else 6016 AR="$ac_cv_prog_AR" 6017 fi 6018 6019 test -z "$AR" && AR=ar 6020 test -z "$AR_FLAGS" && AR_FLAGS=cru 6021 6022 6023 6024 6246 fi 6247 6248 : ${AR=ar} 6249 : ${AR_FLAGS=cru} 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6262 $as_echo_n "checking for archiver @FILE support... " >&6; } 6263 if ${lt_cv_ar_at_file+:} false; then : 6264 $as_echo_n "(cached) " >&6 6265 else 6266 lt_cv_ar_at_file=no 6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6268 /* end confdefs.h. */ 6269 6270 int 6271 main () 6272 { 6273 6274 ; 6275 return 0; 6276 } 6277 _ACEOF 6278 if ac_fn_c_try_compile "$LINENO"; then : 6279 echo conftest.$ac_objext > conftest.lst 6280 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6282 (eval $lt_ar_try) 2>&5 6283 ac_status=$? 6284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6285 test $ac_status = 0; } 6286 if test "$ac_status" -eq 0; then 6287 # Ensure the archiver fails upon bogus file names. 6288 rm -f conftest.$ac_objext libconftest.a 6289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6290 (eval $lt_ar_try) 2>&5 6291 ac_status=$? 6292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6293 test $ac_status = 0; } 6294 if test "$ac_status" -ne 0; then 6295 lt_cv_ar_at_file=@ 6296 fi 6297 fi 6298 rm -f conftest.* libconftest.a 6299 6300 fi 6301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6302 6303 fi 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6305 $as_echo "$lt_cv_ar_at_file" >&6; } 6306 6307 if test "x$lt_cv_ar_at_file" = xno; then 6308 archiver_list_spec= 6309 else 6310 archiver_list_spec=$lt_cv_ar_at_file 6311 fi 6025 6312 6026 6313 … … 6035 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6036 6323 $as_echo_n "checking for $ac_word... " >&6; } 6037 if test "${ac_cv_prog_STRIP+set}" = set; then :6324 if ${ac_cv_prog_STRIP+:} false; then : 6038 6325 $as_echo_n "(cached) " >&6 6039 6326 else … … 6075 6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6076 6363 $as_echo_n "checking for $ac_word... " >&6; } 6077 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :6364 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6078 6365 $as_echo_n "(cached) " >&6 6079 6366 else … … 6134 6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6135 6422 $as_echo_n "checking for $ac_word... " >&6; } 6136 if test "${ac_cv_prog_RANLIB+set}" = set; then :6423 if ${ac_cv_prog_RANLIB+:} false; then : 6137 6424 $as_echo_n "(cached) " >&6 6138 6425 else … … 6174 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6175 6462 $as_echo_n "checking for $ac_word... " >&6; } 6176 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :6463 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6177 6464 $as_echo_n "(cached) " >&6 6178 6465 else … … 6245 6532 fi 6246 6533 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6534 case $host_os in 6535 darwin*) 6536 lock_old_archive_extraction=yes ;; 6537 *) 6538 lock_old_archive_extraction=no ;; 6539 esac 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 for ac_prog in gawk mawk nawk awk 6562 do 6563 # Extract the first word of "$ac_prog", so it can be a program name with args. 6564 set dummy $ac_prog; ac_word=$2 6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6566 $as_echo_n "checking for $ac_word... " >&6; } 6567 if ${ac_cv_prog_AWK+:} false; then : 6568 $as_echo_n "(cached) " >&6 6569 else 6570 if test -n "$AWK"; then 6571 ac_cv_prog_AWK="$AWK" # Let the user override the test. 6572 else 6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6574 for as_dir in $PATH 6575 do 6576 IFS=$as_save_IFS 6577 test -z "$as_dir" && as_dir=. 6578 for ac_exec_ext in '' $ac_executable_extensions; do 6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6580 ac_cv_prog_AWK="$ac_prog" 6581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6582 break 2 6583 fi 6584 done 6585 done 6586 IFS=$as_save_IFS 6587 6588 fi 6589 fi 6590 AWK=$ac_cv_prog_AWK 6591 if test -n "$AWK"; then 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 6593 $as_echo "$AWK" >&6; } 6594 else 6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6596 $as_echo "no" >&6; } 6597 fi 6598 6599 6600 test -n "$AWK" && break 6601 done 6261 6602 6262 6603 … … 6291 6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6292 6633 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6293 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :6634 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6294 6635 $as_echo_n "(cached) " >&6 6295 6636 else … … 6352 6693 6353 6694 # Transform an extracted symbol line into symbol name and symbol address 6354 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) 6355 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) 6695 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6696 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6356 6697 6357 6698 # Handle CRLF in mingw tool chain … … 6389 6730 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6390 6731 fi 6732 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6391 6733 6392 6734 # Check to see that the pipe works correctly. … … 6414 6756 # Now try to grab the symbols. 6415 6757 nlist=conftest.nm 6416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe\> $nlist\""; } >&56417 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe\> $nlist) 2>&56758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6759 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6418 6760 ac_status=$? 6419 6761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 … … 6430 6772 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6431 6773 cat <<_LT_EOF > conftest.$ac_ext 6774 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6775 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6776 /* DATA imports from DLLs on WIN32 con't be const, because runtime 6777 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6778 # define LT_DLSYM_CONST 6779 #elif defined(__osf__) 6780 /* This system does not cope well with relocations in const data. */ 6781 # define LT_DLSYM_CONST 6782 #else 6783 # define LT_DLSYM_CONST const 6784 #endif 6785 6432 6786 #ifdef __cplusplus 6433 6787 extern "C" { … … 6441 6795 6442 6796 /* The mapping between symbol names and symbols. */ 6443 conststruct {6797 LT_DLSYM_CONST struct { 6444 6798 const char *name; 6445 6799 void *address; … … 6467 6821 # Now try linking the two files. 6468 6822 mv conftest.$ac_objext conftstm.$ac_objext 6469 lt_ save_LIBS="$LIBS"6470 lt_ save_CFLAGS="$CFLAGS"6823 lt_globsym_save_LIBS=$LIBS 6824 lt_globsym_save_CFLAGS=$CFLAGS 6471 6825 LIBS="conftstm.$ac_objext" 6472 6826 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" … … 6478 6832 pipe_works=yes 6479 6833 fi 6480 LIBS= "$lt_save_LIBS"6481 CFLAGS= "$lt_save_CFLAGS"6834 LIBS=$lt_globsym_save_LIBS 6835 CFLAGS=$lt_globsym_save_CFLAGS 6482 6836 else 6483 6837 echo "cannot find nm_test_func in $nlist" >&5 … … 6516 6870 fi 6517 6871 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6872 # Response file support. 6873 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6874 nm_file_list_spec='@' 6875 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6876 nm_file_list_spec='@' 6877 fi 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6906 $as_echo_n "checking for sysroot... " >&6; } 6907 6908 # Check whether --with-sysroot was given. 6909 if test "${with_sysroot+set}" = set; then : 6910 withval=$with_sysroot; 6911 else 6912 with_sysroot=no 6913 fi 6914 6915 6916 lt_sysroot= 6917 case ${with_sysroot} in #( 6918 yes) 6919 if test "$GCC" = yes; then 6920 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6921 fi 6922 ;; #( 6923 /*) 6924 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6925 ;; #( 6926 no|'') 6927 ;; #( 6928 *) 6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6930 $as_echo "${with_sysroot}" >&6; } 6931 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6932 ;; 6933 esac 6934 6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6936 $as_echo "${lt_sysroot:-no}" >&6; } 6534 6937 6535 6938 … … 6568 6971 *-*-irix6*) 6569 6972 # Find out which ABI we are using. 6570 echo '#line 6570"configure"' > conftest.$ac_ext6973 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6571 6974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6572 6975 (eval $ac_compile) 2>&5 … … 6662 7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6663 7066 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6664 if test "${lt_cv_cc_needs_belf+set}" = set; then :7067 if ${lt_cv_cc_needs_belf+:} false; then : 6665 7068 $as_echo_n "(cached) " >&6 6666 7069 else … … 6730 7133 need_locks="$enable_libtool_lock" 6731 7134 7135 if test -n "$ac_tool_prefix"; then 7136 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7137 set dummy ${ac_tool_prefix}mt; ac_word=$2 7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7139 $as_echo_n "checking for $ac_word... " >&6; } 7140 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7141 $as_echo_n "(cached) " >&6 7142 else 7143 if test -n "$MANIFEST_TOOL"; then 7144 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7145 else 7146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7147 for as_dir in $PATH 7148 do 7149 IFS=$as_save_IFS 7150 test -z "$as_dir" && as_dir=. 7151 for ac_exec_ext in '' $ac_executable_extensions; do 7152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7153 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7155 break 2 7156 fi 7157 done 7158 done 7159 IFS=$as_save_IFS 7160 7161 fi 7162 fi 7163 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7164 if test -n "$MANIFEST_TOOL"; then 7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7166 $as_echo "$MANIFEST_TOOL" >&6; } 7167 else 7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7169 $as_echo "no" >&6; } 7170 fi 7171 7172 7173 fi 7174 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7175 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7176 # Extract the first word of "mt", so it can be a program name with args. 7177 set dummy mt; ac_word=$2 7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7179 $as_echo_n "checking for $ac_word... " >&6; } 7180 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7181 $as_echo_n "(cached) " >&6 7182 else 7183 if test -n "$ac_ct_MANIFEST_TOOL"; then 7184 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7185 else 7186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7187 for as_dir in $PATH 7188 do 7189 IFS=$as_save_IFS 7190 test -z "$as_dir" && as_dir=. 7191 for ac_exec_ext in '' $ac_executable_extensions; do 7192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7193 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7195 break 2 7196 fi 7197 done 7198 done 7199 IFS=$as_save_IFS 7200 7201 fi 7202 fi 7203 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7204 if test -n "$ac_ct_MANIFEST_TOOL"; then 7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7206 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7207 else 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7209 $as_echo "no" >&6; } 7210 fi 7211 7212 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7213 MANIFEST_TOOL=":" 7214 else 7215 case $cross_compiling:$ac_tool_warned in 7216 yes:) 7217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7219 ac_tool_warned=yes ;; 7220 esac 7221 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7222 fi 7223 else 7224 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7225 fi 7226 7227 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7229 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7230 if ${lt_cv_path_mainfest_tool+:} false; then : 7231 $as_echo_n "(cached) " >&6 7232 else 7233 lt_cv_path_mainfest_tool=no 7234 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7235 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7236 cat conftest.err >&5 7237 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7238 lt_cv_path_mainfest_tool=yes 7239 fi 7240 rm -f conftest* 7241 fi 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7243 $as_echo "$lt_cv_path_mainfest_tool" >&6; } 7244 if test "x$lt_cv_path_mainfest_tool" != xyes; then 7245 MANIFEST_TOOL=: 7246 fi 7247 7248 7249 7250 7251 6732 7252 6733 7253 case $host_os in … … 6738 7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6739 7259 $as_echo_n "checking for $ac_word... " >&6; } 6740 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :7260 if ${ac_cv_prog_DSYMUTIL+:} false; then : 6741 7261 $as_echo_n "(cached) " >&6 6742 7262 else … … 6778 7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6779 7299 $as_echo_n "checking for $ac_word... " >&6; } 6780 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :7300 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6781 7301 $as_echo_n "(cached) " >&6 6782 7302 else … … 6830 7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6831 7351 $as_echo_n "checking for $ac_word... " >&6; } 6832 if test "${ac_cv_prog_NMEDIT+set}" = set; then :7352 if ${ac_cv_prog_NMEDIT+:} false; then : 6833 7353 $as_echo_n "(cached) " >&6 6834 7354 else … … 6870 7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6871 7391 $as_echo_n "checking for $ac_word... " >&6; } 6872 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :7392 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6873 7393 $as_echo_n "(cached) " >&6 6874 7394 else … … 6922 7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6923 7443 $as_echo_n "checking for $ac_word... " >&6; } 6924 if test "${ac_cv_prog_LIPO+set}" = set; then :7444 if ${ac_cv_prog_LIPO+:} false; then : 6925 7445 $as_echo_n "(cached) " >&6 6926 7446 else … … 6962 7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6963 7483 $as_echo_n "checking for $ac_word... " >&6; } 6964 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :7484 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6965 7485 $as_echo_n "(cached) " >&6 6966 7486 else … … 7014 7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7015 7535 $as_echo_n "checking for $ac_word... " >&6; } 7016 if test "${ac_cv_prog_OTOOL+set}" = set; then :7536 if ${ac_cv_prog_OTOOL+:} false; then : 7017 7537 $as_echo_n "(cached) " >&6 7018 7538 else … … 7054 7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7055 7575 $as_echo_n "checking for $ac_word... " >&6; } 7056 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :7576 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7057 7577 $as_echo_n "(cached) " >&6 7058 7578 else … … 7106 7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7107 7627 $as_echo_n "checking for $ac_word... " >&6; } 7108 if test "${ac_cv_prog_OTOOL64+set}" = set; then :7628 if ${ac_cv_prog_OTOOL64+:} false; then : 7109 7629 $as_echo_n "(cached) " >&6 7110 7630 else … … 7146 7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7147 7667 $as_echo_n "checking for $ac_word... " >&6; } 7148 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :7668 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7149 7669 $as_echo_n "(cached) " >&6 7150 7670 else … … 7221 7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7222 7742 $as_echo_n "checking for -single_module linker flag... " >&6; } 7223 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :7743 if ${lt_cv_apple_cc_single_mod+:} false; then : 7224 7744 $as_echo_n "(cached) " >&6 7225 7745 else … … 7250 7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7251 7771 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7252 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :7772 if ${lt_cv_ld_exported_symbols_list+:} false; then : 7253 7773 $as_echo_n "(cached) " >&6 7254 7774 else … … 7280 7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7281 7801 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7803 $as_echo_n "checking for -force_load linker flag... " >&6; } 7804 if ${lt_cv_ld_force_load+:} false; then : 7805 $as_echo_n "(cached) " >&6 7806 else 7807 lt_cv_ld_force_load=no 7808 cat > conftest.c << _LT_EOF 7809 int forced_loaded() { return 2;} 7810 _LT_EOF 7811 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7812 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7813 echo "$AR cru libconftest.a conftest.o" >&5 7814 $AR cru libconftest.a conftest.o 2>&5 7815 echo "$RANLIB libconftest.a" >&5 7816 $RANLIB libconftest.a 2>&5 7817 cat > conftest.c << _LT_EOF 7818 int main() { return 0;} 7819 _LT_EOF 7820 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7821 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7822 _lt_result=$? 7823 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7824 lt_cv_ld_force_load=yes 7825 else 7826 cat conftest.err >&5 7827 fi 7828 rm -f conftest.err libconftest.a conftest conftest.c 7829 rm -rf conftest.dSYM 7830 7831 fi 7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7833 $as_echo "$lt_cv_ld_force_load" >&6; } 7282 7834 case $host_os in 7283 7835 rhapsody* | darwin1.[012]) … … 7307 7859 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7308 7860 fi 7309 if test "$DSYMUTIL" != ":" ; then7861 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7310 7862 _lt_dsymutil='~$DSYMUTIL $lib || :' 7311 7863 else … … 7319 7871 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7320 7872 " 7321 if test "x$ac_cv_header_dlfcn_h" = x ""yes; then :7873 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7322 7874 cat >>confdefs.h <<_ACEOF 7323 7875 #define HAVE_DLFCN_H 1 … … 7330 7882 7331 7883 7332 ac_ext=cpp 7333 ac_cpp='$CXXCPP $CPPFLAGS' 7334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7337 if test -z "$CXX"; then 7338 if test -n "$CCC"; then 7339 CXX=$CCC 7340 else 7341 if test -n "$ac_tool_prefix"; then 7342 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7343 do 7344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7347 $as_echo_n "checking for $ac_word... " >&6; } 7348 if test "${ac_cv_prog_CXX+set}" = set; then : 7349 $as_echo_n "(cached) " >&6 7350 else 7351 if test -n "$CXX"; then 7352 ac_cv_prog_CXX="$CXX" # Let the user override the test. 7353 else 7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7355 for as_dir in $PATH 7356 do 7357 IFS=$as_save_IFS 7358 test -z "$as_dir" && as_dir=. 7359 for ac_exec_ext in '' $ac_executable_extensions; do 7360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7361 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 7362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7363 break 2 7364 fi 7365 done 7366 done 7367 IFS=$as_save_IFS 7368 7369 fi 7370 fi 7371 CXX=$ac_cv_prog_CXX 7372 if test -n "$CXX"; then 7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 7374 $as_echo "$CXX" >&6; } 7375 else 7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7377 $as_echo "no" >&6; } 7378 fi 7379 7380 7381 test -n "$CXX" && break 7382 done 7383 fi 7384 if test -z "$CXX"; then 7385 ac_ct_CXX=$CXX 7386 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7387 do 7388 # Extract the first word of "$ac_prog", so it can be a program name with args. 7389 set dummy $ac_prog; ac_word=$2 7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7391 $as_echo_n "checking for $ac_word... " >&6; } 7392 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 7393 $as_echo_n "(cached) " >&6 7394 else 7395 if test -n "$ac_ct_CXX"; then 7396 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 7397 else 7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7399 for as_dir in $PATH 7400 do 7401 IFS=$as_save_IFS 7402 test -z "$as_dir" && as_dir=. 7403 for ac_exec_ext in '' $ac_executable_extensions; do 7404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7405 ac_cv_prog_ac_ct_CXX="$ac_prog" 7406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7407 break 2 7408 fi 7409 done 7410 done 7411 IFS=$as_save_IFS 7412 7413 fi 7414 fi 7415 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 7416 if test -n "$ac_ct_CXX"; then 7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 7418 $as_echo "$ac_ct_CXX" >&6; } 7419 else 7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7421 $as_echo "no" >&6; } 7422 fi 7423 7424 7425 test -n "$ac_ct_CXX" && break 7426 done 7427 7428 if test "x$ac_ct_CXX" = x; then 7429 CXX="g++" 7430 else 7431 case $cross_compiling:$ac_tool_warned in 7432 yes:) 7433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7435 ac_tool_warned=yes ;; 7436 esac 7437 CXX=$ac_ct_CXX 7438 fi 7439 fi 7440 7441 fi 7442 fi 7443 # Provide some information about the compiler. 7444 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 7445 set X $ac_compile 7446 ac_compiler=$2 7447 for ac_option in --version -v -V -qversion; do 7448 { { ac_try="$ac_compiler $ac_option >&5" 7449 case "(($ac_try" in 7450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7451 *) ac_try_echo=$ac_try;; 7452 esac 7453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7454 $as_echo "$ac_try_echo"; } >&5 7455 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 7456 ac_status=$? 7457 if test -s conftest.err; then 7458 sed '10a\ 7459 ... rest of stderr output deleted ... 7460 10q' conftest.err >conftest.er1 7461 cat conftest.er1 >&5 7462 fi 7463 rm -f conftest.er1 conftest.err 7464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7465 test $ac_status = 0; } 7466 done 7467 7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 7469 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 7470 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 7471 $as_echo_n "(cached) " >&6 7472 else 7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7474 /* end confdefs.h. */ 7475 7476 int 7477 main () 7884 func_stripname_cnf () 7478 7885 { 7479 #ifndef __GNUC__ 7480 choke me 7481 #endif 7482 7483 ; 7484 return 0; 7485 } 7486 _ACEOF 7487 if ac_fn_cxx_try_compile "$LINENO"; then : 7488 ac_compiler_gnu=yes 7489 else 7490 ac_compiler_gnu=no 7491 fi 7492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7493 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 7494 7495 fi 7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 7497 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 7498 if test $ac_compiler_gnu = yes; then 7499 GXX=yes 7500 else 7501 GXX= 7502 fi 7503 ac_test_CXXFLAGS=${CXXFLAGS+set} 7504 ac_save_CXXFLAGS=$CXXFLAGS 7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 7506 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 7507 if test "${ac_cv_prog_cxx_g+set}" = set; then : 7508 $as_echo_n "(cached) " >&6 7509 else 7510 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 7511 ac_cxx_werror_flag=yes 7512 ac_cv_prog_cxx_g=no 7513 CXXFLAGS="-g" 7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7515 /* end confdefs.h. */ 7516 7517 int 7518 main () 7519 { 7520 7521 ; 7522 return 0; 7523 } 7524 _ACEOF 7525 if ac_fn_cxx_try_compile "$LINENO"; then : 7526 ac_cv_prog_cxx_g=yes 7527 else 7528 CXXFLAGS="" 7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7530 /* end confdefs.h. */ 7531 7532 int 7533 main () 7534 { 7535 7536 ; 7537 return 0; 7538 } 7539 _ACEOF 7540 if ac_fn_cxx_try_compile "$LINENO"; then : 7541 7542 else 7543 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7544 CXXFLAGS="-g" 7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7546 /* end confdefs.h. */ 7547 7548 int 7549 main () 7550 { 7551 7552 ; 7553 return 0; 7554 } 7555 _ACEOF 7556 if ac_fn_cxx_try_compile "$LINENO"; then : 7557 ac_cv_prog_cxx_g=yes 7558 fi 7559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7560 fi 7561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7562 fi 7563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7564 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7565 fi 7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 7567 $as_echo "$ac_cv_prog_cxx_g" >&6; } 7568 if test "$ac_test_CXXFLAGS" = set; then 7569 CXXFLAGS=$ac_save_CXXFLAGS 7570 elif test $ac_cv_prog_cxx_g = yes; then 7571 if test "$GXX" = yes; then 7572 CXXFLAGS="-g -O2" 7573 else 7574 CXXFLAGS="-g" 7575 fi 7576 else 7577 if test "$GXX" = yes; then 7578 CXXFLAGS="-O2" 7579 else 7580 CXXFLAGS= 7581 fi 7582 fi 7583 ac_ext=c 7584 ac_cpp='$CPP $CPPFLAGS' 7585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7587 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7588 7589 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 7590 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 7591 (test "X$CXX" != "Xg++"))) ; then 7592 ac_ext=cpp 7593 ac_cpp='$CXXCPP $CPPFLAGS' 7594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 7598 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 7599 if test -z "$CXXCPP"; then 7600 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 7601 $as_echo_n "(cached) " >&6 7602 else 7603 # Double quotes because CXXCPP needs to be expanded 7604 for CXXCPP in "$CXX -E" "/lib/cpp" 7605 do 7606 ac_preproc_ok=false 7607 for ac_cxx_preproc_warn_flag in '' yes 7608 do 7609 # Use a header file that comes with gcc, so configuring glibc 7610 # with a fresh cross-compiler works. 7611 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7612 # <limits.h> exists even on freestanding compilers. 7613 # On the NeXT, cc -E runs the code through the compiler's parser, 7614 # not just through cpp. "Syntax error" is here to catch this case. 7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7616 /* end confdefs.h. */ 7617 #ifdef __STDC__ 7618 # include <limits.h> 7619 #else 7620 # include <assert.h> 7621 #endif 7622 Syntax error 7623 _ACEOF 7624 if ac_fn_cxx_try_cpp "$LINENO"; then : 7625 7626 else 7627 # Broken: fails on valid input. 7628 continue 7629 fi 7630 rm -f conftest.err conftest.i conftest.$ac_ext 7631 7632 # OK, works on sane cases. Now check whether nonexistent headers 7633 # can be detected and how. 7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7635 /* end confdefs.h. */ 7636 #include <ac_nonexistent.h> 7637 _ACEOF 7638 if ac_fn_cxx_try_cpp "$LINENO"; then : 7639 # Broken: success on invalid input. 7640 continue 7641 else 7642 # Passes both tests. 7643 ac_preproc_ok=: 7644 break 7645 fi 7646 rm -f conftest.err conftest.i conftest.$ac_ext 7647 7648 done 7649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7650 rm -f conftest.i conftest.err conftest.$ac_ext 7651 if $ac_preproc_ok; then : 7652 break 7653 fi 7654 7655 done 7656 ac_cv_prog_CXXCPP=$CXXCPP 7657 7658 fi 7659 CXXCPP=$ac_cv_prog_CXXCPP 7660 else 7661 ac_cv_prog_CXXCPP=$CXXCPP 7662 fi 7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 7664 $as_echo "$CXXCPP" >&6; } 7665 ac_preproc_ok=false 7666 for ac_cxx_preproc_warn_flag in '' yes 7667 do 7668 # Use a header file that comes with gcc, so configuring glibc 7669 # with a fresh cross-compiler works. 7670 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7671 # <limits.h> exists even on freestanding compilers. 7672 # On the NeXT, cc -E runs the code through the compiler's parser, 7673 # not just through cpp. "Syntax error" is here to catch this case. 7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7675 /* end confdefs.h. */ 7676 #ifdef __STDC__ 7677 # include <limits.h> 7678 #else 7679 # include <assert.h> 7680 #endif 7681 Syntax error 7682 _ACEOF 7683 if ac_fn_cxx_try_cpp "$LINENO"; then : 7684 7685 else 7686 # Broken: fails on valid input. 7687 continue 7688 fi 7689 rm -f conftest.err conftest.i conftest.$ac_ext 7690 7691 # OK, works on sane cases. Now check whether nonexistent headers 7692 # can be detected and how. 7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7694 /* end confdefs.h. */ 7695 #include <ac_nonexistent.h> 7696 _ACEOF 7697 if ac_fn_cxx_try_cpp "$LINENO"; then : 7698 # Broken: success on invalid input. 7699 continue 7700 else 7701 # Passes both tests. 7702 ac_preproc_ok=: 7703 break 7704 fi 7705 rm -f conftest.err conftest.i conftest.$ac_ext 7706 7707 done 7708 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7709 rm -f conftest.i conftest.err conftest.$ac_ext 7710 if $ac_preproc_ok; then : 7711 7712 else 7713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7715 _lt_caught_CXX_error=yes; } 7716 fi 7717 7718 ac_ext=c 7719 ac_cpp='$CPP $CPPFLAGS' 7720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7722 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7723 7724 else 7725 _lt_caught_CXX_error=yes 7726 fi 7886 case ${2} in 7887 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 7888 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 7889 esac 7890 } # func_stripname_cnf 7891 7727 7892 7728 7893 … … 7880 8045 7881 8046 8047 7882 8048 test -z "$LN_S" && LN_S="ln -s" 7883 8049 … … 7901 8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7902 8068 $as_echo_n "checking for objdir... " >&6; } 7903 if test "${lt_cv_objdir+set}" = set; then :8069 if ${lt_cv_objdir+:} false; then : 7904 8070 $as_echo_n "(cached) " >&6 7905 8071 else … … 7925 8091 #define LT_OBJDIR "$lt_cv_objdir/" 7926 8092 _ACEOF 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 8093 7941 8094 … … 7954 8107 esac 7955 8108 7956 # Sed substitution that helps us do robust quoting. It backslashifies7957 # metacharacters that are still active within double-quoted strings.7958 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'7959 7960 # Same as above, but do not quote variable references.7961 double_quote_subst='s/\(["`\\]\)/\\\1/g'7962 7963 # Sed substitution to delay expansion of an escaped shell variable in a7964 # double_quote_subst'ed string.7965 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'7966 7967 # Sed substitution to delay expansion of an escaped single quote.7968 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'7969 7970 # Sed substitution to avoid accidental globbing in evaled expressions7971 no_glob_subst='s/\*/\\\*/g'7972 7973 8109 # Global variables: 7974 8110 ofile=libtool … … 7999 8135 esac 8000 8136 done 8001 cc_basename=`$ECHO " X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`8137 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8002 8138 8003 8139 … … 8009 8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8010 8146 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8011 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :8147 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8012 8148 $as_echo_n "(cached) " >&6 8013 8149 else … … 8075 8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8076 8212 $as_echo_n "checking for file... " >&6; } 8077 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :8213 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8078 8214 $as_echo_n "(cached) " >&6 8079 8215 else … … 8208 8344 8209 8345 if test "$GCC" = yes; then 8210 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8346 case $cc_basename in 8347 nvcc*) 8348 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8349 *) 8350 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8351 esac 8211 8352 8212 8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8213 8354 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8214 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :8355 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8215 8356 $as_echo_n "(cached) " >&6 8216 8357 else … … 8228 8369 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8229 8370 -e 's:$: $lt_compiler_flag:'` 8230 (eval echo "\"\$as_me: 8230: $lt_compile\"" >&5)8371 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8231 8372 (eval "$lt_compile" 2>conftest.err) 8232 8373 ac_status=$? 8233 8374 cat conftest.err >&5 8234 echo "$as_me: 8234: \$? = $ac_status" >&58375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8235 8376 if (exit $ac_status) && test -s "$ac_outfile"; then 8236 8377 # The compiler can only warn and ignore the option if not recognized 8237 8378 # So say no if there are warnings other than the usual output. 8238 $ECHO " X$_lt_compiler_boilerplate" | $Xsed -e'/^$/d' >conftest.exp8379 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8239 8380 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8240 8381 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then … … 8265 8406 lt_prog_compiler_static= 8266 8407 8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&58268 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }8269 8408 8270 8409 if test "$GCC" = yes; then … … 8314 8453 ;; 8315 8454 8455 haiku*) 8456 # PIC is the default for Haiku. 8457 # The "-static" flag exists, but is broken. 8458 lt_prog_compiler_static= 8459 ;; 8460 8316 8461 hpux*) 8317 8462 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit … … 8354 8499 *) 8355 8500 lt_prog_compiler_pic='-fPIC' 8501 ;; 8502 esac 8503 8504 case $cc_basename in 8505 nvcc*) # Cuda Compiler Driver 2.2 8506 lt_prog_compiler_wl='-Xlinker ' 8507 lt_prog_compiler_pic='-Xcompiler -fPIC' 8356 8508 ;; 8357 8509 esac … … 8418 8570 lt_prog_compiler_static='--static' 8419 8571 ;; 8420 pgcc* | pgf77* | pgf90* | pgf95*) 8572 nagfor*) 8573 # NAG Fortran compiler 8574 lt_prog_compiler_wl='-Wl,-Wl,,' 8575 lt_prog_compiler_pic='-PIC' 8576 lt_prog_compiler_static='-Bstatic' 8577 ;; 8578 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8421 8579 # Portland Group compilers (*not* the Pentium gcc compiler, 8422 8580 # which looks to be a dead project) … … 8430 8588 lt_prog_compiler_static='-non_shared' 8431 8589 ;; 8432 xl* )8433 # IBM XL C 8.0/Fortran 10.1 on PPC8590 xl* | bgxl* | bgf* | mpixl*) 8591 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8434 8592 lt_prog_compiler_wl='-Wl,' 8435 8593 lt_prog_compiler_pic='-qpic' … … 8438 8596 *) 8439 8597 case `$CC -V 2>&1 | sed 5q` in 8598 *Sun\ F* | *Sun*Fortran*) 8599 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8600 lt_prog_compiler_pic='-KPIC' 8601 lt_prog_compiler_static='-Bstatic' 8602 lt_prog_compiler_wl='' 8603 ;; 8440 8604 *Sun\ C*) 8441 8605 # Sun C 5.9 … … 8444 8608 lt_prog_compiler_wl='-Wl,' 8445 8609 ;; 8446 *Sun\ F*)8447 # Sun Fortran 8.3 passes all unrecognized flags to the linker8448 lt_prog_compiler_pic='-KPIC'8449 lt_prog_compiler_static='-Bstatic'8450 lt_prog_compiler_wl=''8451 ;;8452 8610 esac 8453 8611 ;; … … 8480 8638 lt_prog_compiler_static='-Bstatic' 8481 8639 case $cc_basename in 8482 f77* | f90* | f95* )8640 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8483 8641 lt_prog_compiler_wl='-Qoption ld ';; 8484 8642 *) … … 8537 8695 ;; 8538 8696 esac 8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8540 $as_echo "$lt_prog_compiler_pic" >&6; } 8541 8542 8543 8544 8545 8697 8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8699 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8700 if ${lt_cv_prog_compiler_pic+:} false; then : 8701 $as_echo_n "(cached) " >&6 8702 else 8703 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8704 fi 8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8706 $as_echo "$lt_cv_prog_compiler_pic" >&6; } 8707 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8546 8708 8547 8709 # … … 8551 8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8552 8714 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8553 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :8715 if ${lt_cv_prog_compiler_pic_works+:} false; then : 8554 8716 $as_echo_n "(cached) " >&6 8555 8717 else … … 8567 8729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8568 8730 -e 's:$: $lt_compiler_flag:'` 8569 (eval echo "\"\$as_me: 8569: $lt_compile\"" >&5)8731 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8570 8732 (eval "$lt_compile" 2>conftest.err) 8571 8733 ac_status=$? 8572 8734 cat conftest.err >&5 8573 echo "$as_me: 8573: \$? = $ac_status" >&58735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8574 8736 if (exit $ac_status) && test -s "$ac_outfile"; then 8575 8737 # The compiler can only warn and ignore the option if not recognized 8576 8738 # So say no if there are warnings other than the usual output. 8577 $ECHO " X$_lt_compiler_boilerplate" | $Xsed -e'/^$/d' >conftest.exp8739 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8578 8740 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8579 8741 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then … … 8604 8766 8605 8767 8768 8769 8770 8771 8772 8606 8773 # 8607 8774 # Check to make sure the static flag actually works. … … 8610 8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8611 8778 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8612 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :8779 if ${lt_cv_prog_compiler_static_works+:} false; then : 8613 8780 $as_echo_n "(cached) " >&6 8614 8781 else … … 8623 8790 # Append any errors to the config.log. 8624 8791 cat conftest.err 1>&5 8625 $ECHO " X$_lt_linker_boilerplate" | $Xsed -e'/^$/d' > conftest.exp8792 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8626 8793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8627 8794 if diff conftest.exp conftest.er2 >/dev/null; then … … 8653 8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8654 8821 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8655 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :8822 if ${lt_cv_prog_compiler_c_o+:} false; then : 8656 8823 $as_echo_n "(cached) " >&6 8657 8824 else … … 8672 8839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8673 8840 -e 's:$: $lt_compiler_flag:'` 8674 (eval echo "\"\$as_me: 8674: $lt_compile\"" >&5)8841 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8675 8842 (eval "$lt_compile" 2>out/conftest.err) 8676 8843 ac_status=$? 8677 8844 cat out/conftest.err >&5 8678 echo "$as_me: 8678: \$? = $ac_status" >&58845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8679 8846 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8680 8847 then 8681 8848 # The compiler can only warn and ignore the option if not recognized 8682 8849 # So say no if there are warnings 8683 $ECHO " X$_lt_compiler_boilerplate" | $Xsed -e'/^$/d' > out/conftest.exp8850 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8684 8851 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8685 8852 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then … … 8708 8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8709 8876 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8710 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :8877 if ${lt_cv_prog_compiler_c_o+:} false; then : 8711 8878 $as_echo_n "(cached) " >&6 8712 8879 else … … 8727 8894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8728 8895 -e 's:$: $lt_compiler_flag:'` 8729 (eval echo "\"\$as_me: 8729: $lt_compile\"" >&5)8896 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8730 8897 (eval "$lt_compile" 2>out/conftest.err) 8731 8898 ac_status=$? 8732 8899 cat out/conftest.err >&5 8733 echo "$as_me: 8733: \$? = $ac_status" >&58900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8734 8901 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8735 8902 then 8736 8903 # The compiler can only warn and ignore the option if not recognized 8737 8904 # So say no if there are warnings 8738 $ECHO " X$_lt_compiler_boilerplate" | $Xsed -e'/^$/d' > out/conftest.exp8905 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8739 8906 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8740 8907 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then … … 8846 9013 with_gnu_ld=no 8847 9014 ;; 8848 linux* | k*bsd*-gnu )9015 linux* | k*bsd*-gnu | gnu*) 8849 9016 link_all_deplibs=no 8850 9017 ;; … … 8852 9019 8853 9020 ld_shlibs=yes 9021 9022 # On some targets, GNU ld is compatible enough with the native linker 9023 # that we're better off using the native interface for both. 9024 lt_use_gnu_ld_interface=no 8854 9025 if test "$with_gnu_ld" = yes; then 9026 case $host_os in 9027 aix*) 9028 # The AIX port of GNU ld has always aspired to compatibility 9029 # with the native linker. However, as the warning in the GNU ld 9030 # block says, versions before 2.19.5* couldn't really create working 9031 # shared libraries, regardless of the interface used. 9032 case `$LD -v 2>&1` in 9033 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9034 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9035 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9036 *) 9037 lt_use_gnu_ld_interface=yes 9038 ;; 9039 esac 9040 ;; 9041 *) 9042 lt_use_gnu_ld_interface=yes 9043 ;; 9044 esac 9045 fi 9046 9047 if test "$lt_use_gnu_ld_interface" = yes; then 8855 9048 # If archive_cmds runs LD, not CC, wlarc should be empty 8856 9049 wlarc='${wl}' … … 8886 9079 cat <<_LT_EOF 1>&2 8887 9080 8888 *** Warning: the GNU linker, at least up to release 2. 9.1, is reported9081 *** Warning: the GNU linker, at least up to release 2.19, is reported 8889 9082 *** to be unable to reliably create shared libraries on AIX. 8890 9083 *** Therefore, libtool is disabling shared libraries support. If you 8891 *** really care for shared libraries, you may want to modify your PATH 8892 *** so that a non-GNU linker is found, and then restart. 9084 *** really care for shared libraries, you may want to install binutils 9085 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9086 *** You will then need to restart the configuration process. 8893 9087 8894 9088 _LT_EOF … … 8926 9120 # as there is no search path for DLLs. 8927 9121 hardcode_libdir_flag_spec='-L$libdir' 9122 export_dynamic_flag_spec='${wl}--export-all-symbols' 8928 9123 allow_undefined_flag=unsupported 8929 9124 always_export_symbols=no 8930 9125 enable_shared_with_static_runtimes=yes 8931 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9126 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 9127 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8932 9128 8933 9129 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then … … 8947 9143 ;; 8948 9144 9145 haiku*) 9146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9147 link_all_deplibs=yes 9148 ;; 9149 8949 9150 interix[3-9]*) 8950 9151 hardcode_direct=no … … 8972 9173 && test "$tmp_diet" = no 8973 9174 then 8974 tmp_addflag= 9175 tmp_addflag=' $pic_flag' 8975 9176 tmp_sharedflag='-shared' 8976 9177 case $cc_basename,$host_cpu in 8977 9178 pgcc*) # Portland Group C compiler 8978 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO\"$new_convenience\"` ${wl}--no-whole-archive'9179 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8979 9180 tmp_addflag=' $pic_flag' 8980 9181 ;; 8981 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8982 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 9182 pgf77* | pgf90* | pgf95* | pgfortran*) 9183 # Portland Group f77 and f90 compilers 9184 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8983 9185 tmp_addflag=' $pic_flag -Mnomain' ;; 8984 9186 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 … … 8991 9193 whole_archive_flag_spec= 8992 9194 tmp_sharedflag='--shared' ;; 8993 xl[cC]* )# IBM XL C 8.0 on PPC (deal with xlf below)9195 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8994 9196 tmp_sharedflag='-qmkshrobj' 8995 9197 tmp_addflag= ;; 9198 nvcc*) # Cuda Compiler Driver 2.2 9199 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9200 compiler_needs_object=yes 9201 ;; 8996 9202 esac 8997 9203 case `$CC -V 2>&1 | sed 5q` in 8998 9204 *Sun\ C*) # Sun C 5.9 8999 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO\"$new_convenience\"` ${wl}--no-whole-archive'9205 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9000 9206 compiler_needs_object=yes 9001 9207 tmp_sharedflag='-G' ;; … … 9013 9219 9014 9220 case $cc_basename in 9015 xlf* )9221 xlf* | bgf* | bgxlf* | mpixlf*) 9016 9222 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9017 9223 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9018 9224 hardcode_libdir_flag_spec= 9019 9225 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9020 archive_cmds='$LD -shared $libobjs $deplibs $ compiler_flags -soname $soname -o $lib'9226 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9021 9227 if test "x$supports_anon_versioning" = xyes; then 9022 9228 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9023 9229 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9024 9230 echo "local: *; };" >> $output_objdir/$libname.ver~ 9025 $LD -shared $libobjs $deplibs $ compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'9231 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9026 9232 fi 9027 9233 ;; … … 9037 9243 wlarc= 9038 9244 else 9039 archive_cmds='$CC -shared $ libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'9040 archive_expsym_cmds='$CC -shared $ libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'9245 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9246 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9041 9247 fi 9042 9248 ;; … … 9056 9262 _LT_EOF 9057 9263 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9058 archive_cmds='$CC -shared $ libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'9059 archive_expsym_cmds='$CC -shared $ libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'9264 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9265 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9060 9266 else 9061 9267 ld_shlibs=no … … 9103 9309 *) 9104 9310 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9105 archive_cmds='$CC -shared $ libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'9106 archive_expsym_cmds='$CC -shared $ libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'9311 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9312 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9107 9313 else 9108 9314 ld_shlibs=no … … 9144 9350 # If we're using GNU nm, then we don't want the "-C" option. 9145 9351 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9352 # Also, AIX nm treats weak defined symbols like other global 9353 # defined symbols, whereas GNU nm marks them as "W". 9146 9354 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9147 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") ) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'9355 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9148 9356 else 9149 9357 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' … … 9233 9441 # Determine the default libpath from the value encoded in an 9234 9442 # empty executable. 9235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9443 if test "${lt_cv_aix_libpath+set}" = set; then 9444 aix_libpath=$lt_cv_aix_libpath 9445 else 9446 if ${lt_cv_aix_libpath_+:} false; then : 9447 $as_echo_n "(cached) " >&6 9448 else 9449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9236 9450 /* end confdefs.h. */ 9237 9451 … … 9246 9460 if ac_fn_c_try_link "$LINENO"; then : 9247 9461 9248 lt_aix_libpath_sed='9249 /Import File Strings/,/^$/ {9250 /^0/ {9251 s/^0 *\(.*\)$/\1/9252 p9253 }9254 }'9255 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`9256 # Check for a 64-bit object if we didn't find anything.9257 if test -z "$aix_libpath"; then9258 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`9259 fi9462 lt_aix_libpath_sed=' 9463 /Import File Strings/,/^$/ { 9464 /^0/ { 9465 s/^0 *\([^ ]*\) *$/\1/ 9466 p 9467 } 9468 }' 9469 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9470 # Check for a 64-bit object if we didn't find anything. 9471 if test -z "$lt_cv_aix_libpath_"; then 9472 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9473 fi 9260 9474 fi 9261 9475 rm -f core conftest.err conftest.$ac_objext \ 9262 9476 conftest$ac_exeext conftest.$ac_ext 9263 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9477 if test -z "$lt_cv_aix_libpath_"; then 9478 lt_cv_aix_libpath_="/usr/lib:/lib" 9479 fi 9480 9481 fi 9482 9483 aix_libpath=$lt_cv_aix_libpath_ 9484 fi 9264 9485 9265 9486 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9266 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"9487 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9267 9488 else 9268 9489 if test "$host_cpu" = ia64; then … … 9273 9494 # Determine the default libpath from the value encoded in an 9274 9495 # empty executable. 9275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9496 if test "${lt_cv_aix_libpath+set}" = set; then 9497 aix_libpath=$lt_cv_aix_libpath 9498 else 9499 if ${lt_cv_aix_libpath_+:} false; then : 9500 $as_echo_n "(cached) " >&6 9501 else 9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9276 9503 /* end confdefs.h. */ 9277 9504 … … 9286 9513 if ac_fn_c_try_link "$LINENO"; then : 9287 9514 9288 lt_aix_libpath_sed='9289 /Import File Strings/,/^$/ {9290 /^0/ {9291 s/^0 *\(.*\)$/\1/9292 p9293 }9294 }'9295 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`9296 # Check for a 64-bit object if we didn't find anything.9297 if test -z "$aix_libpath"; then9298 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`9299 fi9515 lt_aix_libpath_sed=' 9516 /Import File Strings/,/^$/ { 9517 /^0/ { 9518 s/^0 *\([^ ]*\) *$/\1/ 9519 p 9520 } 9521 }' 9522 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9523 # Check for a 64-bit object if we didn't find anything. 9524 if test -z "$lt_cv_aix_libpath_"; then 9525 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9526 fi 9300 9527 fi 9301 9528 rm -f core conftest.err conftest.$ac_objext \ 9302 9529 conftest$ac_exeext conftest.$ac_ext 9303 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9530 if test -z "$lt_cv_aix_libpath_"; then 9531 lt_cv_aix_libpath_="/usr/lib:/lib" 9532 fi 9533 9534 fi 9535 9536 aix_libpath=$lt_cv_aix_libpath_ 9537 fi 9304 9538 9305 9539 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" … … 9308 9542 no_undefined_flag=' ${wl}-bernotok' 9309 9543 allow_undefined_flag=' ${wl}-berok' 9310 # Exported symbols can be pulled into shared objects from archives 9311 whole_archive_flag_spec='$convenience' 9544 if test "$with_gnu_ld" = yes; then 9545 # We only use this code for GNU lds that support --whole-archive. 9546 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9547 else 9548 # Exported symbols can be pulled into shared objects from archives 9549 whole_archive_flag_spec='$convenience' 9550 fi 9312 9551 archive_cmds_need_lc=yes 9313 9552 # This is similar to how AIX traditionally builds its shared libraries. … … 9341 9580 # hardcode_libdir_flag_spec is actually meaningless, as there is 9342 9581 # no search path for DLLs. 9343 hardcode_libdir_flag_spec=' ' 9344 allow_undefined_flag=unsupported 9345 # Tell ltmain to make .lib files, not .a files. 9346 libext=lib 9347 # Tell ltmain to make .dll files, not .so files. 9348 shrext_cmds=".dll" 9349 # FIXME: Setting linknames here is a bad hack. 9350 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9351 # The linker will automatically build a .lib file if we build a DLL. 9352 old_archive_from_new_cmds='true' 9353 # FIXME: Should let the user specify the lib program. 9354 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9355 fix_srcfile_path='`cygpath -w "$srcfile"`' 9356 enable_shared_with_static_runtimes=yes 9582 case $cc_basename in 9583 cl*) 9584 # Native MSVC 9585 hardcode_libdir_flag_spec=' ' 9586 allow_undefined_flag=unsupported 9587 always_export_symbols=yes 9588 file_list_spec='@' 9589 # Tell ltmain to make .lib files, not .a files. 9590 libext=lib 9591 # Tell ltmain to make .dll files, not .so files. 9592 shrext_cmds=".dll" 9593 # FIXME: Setting linknames here is a bad hack. 9594 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9595 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9596 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9597 else 9598 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9599 fi~ 9600 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9601 linknames=' 9602 # The linker will not automatically build a static lib if we build a DLL. 9603 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9604 enable_shared_with_static_runtimes=yes 9605 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9606 # Don't use ranlib 9607 old_postinstall_cmds='chmod 644 $oldlib' 9608 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9609 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9610 case $lt_outputfile in 9611 *.exe|*.EXE) ;; 9612 *) 9613 lt_outputfile="$lt_outputfile.exe" 9614 lt_tool_outputfile="$lt_tool_outputfile.exe" 9615 ;; 9616 esac~ 9617 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9618 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9619 $RM "$lt_outputfile.manifest"; 9620 fi' 9621 ;; 9622 *) 9623 # Assume MSVC wrapper 9624 hardcode_libdir_flag_spec=' ' 9625 allow_undefined_flag=unsupported 9626 # Tell ltmain to make .lib files, not .a files. 9627 libext=lib 9628 # Tell ltmain to make .dll files, not .so files. 9629 shrext_cmds=".dll" 9630 # FIXME: Setting linknames here is a bad hack. 9631 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9632 # The linker will automatically build a .lib file if we build a DLL. 9633 old_archive_from_new_cmds='true' 9634 # FIXME: Should let the user specify the lib program. 9635 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9636 enable_shared_with_static_runtimes=yes 9637 ;; 9638 esac 9357 9639 ;; 9358 9640 … … 9364 9646 hardcode_automatic=yes 9365 9647 hardcode_shlibpath_var=unsupported 9366 whole_archive_flag_spec='' 9648 if test "$lt_cv_ld_force_load" = "yes"; then 9649 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 9650 else 9651 whole_archive_flag_spec='' 9652 fi 9367 9653 link_all_deplibs=yes 9368 9654 allow_undefined_flag="$_lt_dar_allow_undefined" … … 9372 9658 esac 9373 9659 if test "$_lt_dar_can_shared" = "yes"; then 9374 output_verbose_link_cmd= echo9660 output_verbose_link_cmd=func_echo_all 9375 9661 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9376 9662 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" … … 9415 9701 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9416 9702 freebsd* | dragonfly*) 9417 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'9703 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9418 9704 hardcode_libdir_flag_spec='-R$libdir' 9419 9705 hardcode_direct=yes … … 9423 9709 hpux9*) 9424 9710 if test "$GCC" = yes; then 9425 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'9711 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9426 9712 else 9427 9713 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' … … 9438 9724 9439 9725 hpux10*) 9440 if test "$GCC" = yes -a"$with_gnu_ld" = no; then9441 archive_cmds='$CC -shared -fPIC${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'9726 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9727 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9442 9728 else 9443 9729 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' … … 9457 9743 9458 9744 hpux11*) 9459 if test "$GCC" = yes -a"$with_gnu_ld" = no; then9745 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9460 9746 case $host_cpu in 9461 9747 hppa*64*) … … 9463 9749 ;; 9464 9750 ia64*) 9465 archive_cmds='$CC -shared -fPIC${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'9751 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9466 9752 ;; 9467 9753 *) 9468 archive_cmds='$CC -shared -fPIC${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'9754 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9469 9755 ;; 9470 9756 esac … … 9478 9764 ;; 9479 9765 *) 9480 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9766 9767 # Older versions of the 11.00 compiler do not understand -b yet 9768 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9770 $as_echo_n "checking if $CC understands -b... " >&6; } 9771 if ${lt_cv_prog_compiler__b+:} false; then : 9772 $as_echo_n "(cached) " >&6 9773 else 9774 lt_cv_prog_compiler__b=no 9775 save_LDFLAGS="$LDFLAGS" 9776 LDFLAGS="$LDFLAGS -b" 9777 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9778 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9779 # The linker can only warn and ignore the option if not recognized 9780 # So say no if there are warnings 9781 if test -s conftest.err; then 9782 # Append any errors to the config.log. 9783 cat conftest.err 1>&5 9784 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9785 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9786 if diff conftest.exp conftest.er2 >/dev/null; then 9787 lt_cv_prog_compiler__b=yes 9788 fi 9789 else 9790 lt_cv_prog_compiler__b=yes 9791 fi 9792 fi 9793 $RM -r conftest* 9794 LDFLAGS="$save_LDFLAGS" 9795 9796 fi 9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9798 $as_echo "$lt_cv_prog_compiler__b" >&6; } 9799 9800 if test x"$lt_cv_prog_compiler__b" = xyes; then 9801 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9802 else 9803 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9804 fi 9805 9481 9806 ;; 9482 9807 esac … … 9506 9831 irix5* | irix6* | nonstopux*) 9507 9832 if test "$GCC" = yes; then 9508 archive_cmds='$CC -shared $ libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'9833 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9509 9834 # Try to use the -exported_symbol ld option, if it does not 9510 9835 # work, assume that -exports_file does not work either and 9511 9836 # implicitly export all symbols. 9512 save_LDFLAGS="$LDFLAGS" 9513 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9837 # This should be the same for all languages, so no per-tag cache variable. 9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9839 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9840 if ${lt_cv_irix_exported_symbol+:} false; then : 9841 $as_echo_n "(cached) " >&6 9842 else 9843 save_LDFLAGS="$LDFLAGS" 9844 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9515 9846 /* end confdefs.h. */ 9516 int foo (void) {}9847 int foo (void) { return 0; } 9517 9848 _ACEOF 9518 9849 if ac_fn_c_try_link "$LINENO"; then : 9519 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9520 9850 lt_cv_irix_exported_symbol=yes 9851 else 9852 lt_cv_irix_exported_symbol=no 9521 9853 fi 9522 9854 rm -f core conftest.err conftest.$ac_objext \ 9523 9855 conftest$ac_exeext conftest.$ac_ext 9524 LDFLAGS="$save_LDFLAGS" 9856 LDFLAGS="$save_LDFLAGS" 9857 fi 9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9859 $as_echo "$lt_cv_irix_exported_symbol" >&6; } 9860 if test "$lt_cv_irix_exported_symbol" = yes; then 9861 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9862 fi 9525 9863 else 9526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'9527 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'9864 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9865 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 9528 9866 fi 9529 9867 archive_cmds_need_lc='no' … … 9587 9925 hardcode_minus_L=yes 9588 9926 allow_undefined_flag=unsupported 9589 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHOEXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'9927 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9590 9928 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9591 9929 ;; … … 9594 9932 if test "$GCC" = yes; then 9595 9933 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9596 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'9934 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9597 9935 else 9598 9936 allow_undefined_flag=' -expect_unresolved \*' 9599 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'9937 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9600 9938 fi 9601 9939 archive_cmds_need_lc='no' … … 9607 9945 if test "$GCC" = yes; then 9608 9946 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9609 archive_cmds='$CC -shared${allow_undefined_flag} $ libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'9947 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9610 9948 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9611 9949 else 9612 9950 allow_undefined_flag=' -expect_unresolved \*' 9613 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'9951 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9614 9952 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 9615 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO " X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'9953 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 9616 9954 9617 9955 # Both c and cxx compiler support -rpath directly … … 9626 9964 if test "$GCC" = yes; then 9627 9965 wlarc='${wl}' 9628 archive_cmds='$CC -shared $ {wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'9966 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9629 9967 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9630 $CC -shared $ {wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'9968 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9631 9969 else 9632 9970 case `$CC -V 2>&1` in … … 9816 10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9817 10155 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9818 $RM conftest* 9819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9820 9821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10156 if ${lt_cv_archive_cmds_need_lc+:} false; then : 10157 $as_echo_n "(cached) " >&6 10158 else 10159 $RM conftest* 10160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10161 10162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9822 10163 (eval $ac_compile) 2>&5 9823 10164 ac_status=$? 9824 10165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9825 10166 test $ac_status = 0; } 2>conftest.err; then 9826 9827 9828 9829 9830 9831 pic_flag=$lt_prog_compiler_pic9832 9833 9834 9835 9836 9837 9838 9839 10167 soname=conftest 10168 lib=conftest 10169 libobjs=conftest.$ac_objext 10170 deplibs= 10171 wl=$lt_prog_compiler_wl 10172 pic_flag=$lt_prog_compiler_pic 10173 compiler_flags=-v 10174 linker_flags=-v 10175 verstring= 10176 output_objdir=. 10177 libname=conftest 10178 lt_save_allow_undefined_flag=$allow_undefined_flag 10179 allow_undefined_flag= 10180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9840 10181 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9841 10182 ac_status=$? 9842 10183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9843 10184 test $ac_status = 0; } 9844 then 9845 archive_cmds_need_lc=no 9846 else 9847 archive_cmds_need_lc=yes 9848 fi 9849 allow_undefined_flag=$lt_save_allow_undefined_flag 9850 else 9851 cat conftest.err 1>&5 9852 fi 9853 $RM conftest* 9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 9855 $as_echo "$archive_cmds_need_lc" >&6; } 10185 then 10186 lt_cv_archive_cmds_need_lc=no 10187 else 10188 lt_cv_archive_cmds_need_lc=yes 10189 fi 10190 allow_undefined_flag=$lt_save_allow_undefined_flag 10191 else 10192 cat conftest.err 1>&5 10193 fi 10194 $RM conftest* 10195 10196 fi 10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10198 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10199 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9856 10200 ;; 9857 10201 esac … … 10024 10368 *) lt_awk_arg="/^libraries:/" ;; 10025 10369 esac 10026 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10027 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 10370 case $host_os in 10371 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10372 *) lt_sed_strip_eq="s,=/,/,g" ;; 10373 esac 10374 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10375 case $lt_search_path_spec in 10376 *\;*) 10028 10377 # if the path contains ";" then we assume it to be the separator 10029 10378 # otherwise default to the standard path separator (i.e. ":") - it is 10030 10379 # assumed that no part of a normal pathname contains ";" but that should 10031 10380 # okay in the real world where ";" in dirpaths is itself problematic. 10032 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10033 else 10034 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10035 fi 10381 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10382 ;; 10383 *) 10384 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10385 ;; 10386 esac 10036 10387 # Ok, now we have the path, separated by spaces, we can step through it 10037 10388 # and add multilib dir if necessary. … … 10046 10397 fi 10047 10398 done 10048 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec| awk '10399 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10049 10400 BEGIN {RS=" "; FS="/|\n";} { 10050 10401 lt_foo=""; … … 10066 10417 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10067 10418 }'` 10068 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 10419 # AWK program above erroneously prepends '/' to C:/dos/paths 10420 # for these hosts. 10421 case $host_os in 10422 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10423 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10424 esac 10425 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10069 10426 else 10070 10427 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" … … 10154 10511 library_names_spec='$libname.ixlibrary $libname.a' 10155 10512 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10156 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=` $ECHO "X$lib" | $Xsed -e'\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'10513 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10157 10514 ;; 10158 10515 esac … … 10185 10542 need_lib_prefix=no 10186 10543 10187 case $GCC,$host_os in 10188 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10544 case $GCC,$cc_basename in 10545 yes,*) 10546 # gcc 10189 10547 library_names_spec='$libname.dll.a' 10190 10548 # DLL is installed to $(libdir)/../bin by postinstall_cmds … … 10207 10565 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10208 10566 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10209 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10567 10568 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10210 10569 ;; 10211 10570 mingw* | cegcc*) 10212 10571 # MinGW DLLs use traditional 'lib' prefix 10213 10572 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10214 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`10215 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then10216 # It is most probably a Windows format PATH printed by10217 # mingw gcc, but we are running on Cygwin. Gcc prints its search10218 # path with ; separators, and with drive letters. We can handle the10219 # drive letters (cygwin fileutils understands them), so leave them,10220 # especially as we might pass files found there to a mingw objdump,10221 # which wouldn't understand a cygwinified path. Ahh.10222 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`10223 else10224 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`10225 fi10226 10573 ;; 10227 10574 pw32*) … … 10230 10577 ;; 10231 10578 esac 10579 dynamic_linker='Win32 ld.exe' 10232 10580 ;; 10233 10581 10582 *,cl*) 10583 # Native MSVC 10584 libname_spec='$name' 10585 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10586 library_names_spec='${libname}.dll.lib' 10587 10588 case $build_os in 10589 mingw*) 10590 sys_lib_search_path_spec= 10591 lt_save_ifs=$IFS 10592 IFS=';' 10593 for lt_path in $LIB 10594 do 10595 IFS=$lt_save_ifs 10596 # Let DOS variable expansion print the short 8.3 style file name. 10597 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10598 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10599 done 10600 IFS=$lt_save_ifs 10601 # Convert to MSYS style. 10602 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10603 ;; 10604 cygwin*) 10605 # Convert to unix form, then to dos form, then back to unix form 10606 # but this time dos style (no spaces!) so that the unix form looks 10607 # like /cygdrive/c/PROGRA~1:/cygdr... 10608 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10609 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10610 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10611 ;; 10612 *) 10613 sys_lib_search_path_spec="$LIB" 10614 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10615 # It is most probably a Windows format PATH. 10616 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10617 else 10618 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10619 fi 10620 # FIXME: find the short name or the path components, as spaces are 10621 # common. (e.g. "Program Files" -> "PROGRA~1") 10622 ;; 10623 esac 10624 10625 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10626 postinstall_cmds='base_file=`basename \${file}`~ 10627 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10628 dldir=$destdir/`dirname \$dlpath`~ 10629 test -d \$dldir || mkdir -p \$dldir~ 10630 $install_prog $dir/$dlname \$dldir/$dlname' 10631 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10632 dlpath=$dir/\$dldll~ 10633 $RM \$dlpath' 10634 shlibpath_overrides_runpath=yes 10635 dynamic_linker='Win32 link.exe' 10636 ;; 10637 10234 10638 *) 10639 # Assume MSVC wrapper 10235 10640 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10641 dynamic_linker='Win32 ld.exe' 10236 10642 ;; 10237 10643 esac 10238 dynamic_linker='Win32 ld.exe'10239 10644 # FIXME: first we should search . and the directory the executable is in 10240 10645 shlibpath_var=PATH … … 10320 10725 soname_spec='${libname}${release}${shared_ext}$major' 10321 10726 shlibpath_var=LD_LIBRARY_PATH 10727 shlibpath_overrides_runpath=no 10728 hardcode_into_libs=yes 10729 ;; 10730 10731 haiku*) 10732 version_type=linux 10733 need_lib_prefix=no 10734 need_version=no 10735 dynamic_linker="$host_os runtime_loader" 10736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10737 soname_spec='${libname}${release}${shared_ext}$major' 10738 shlibpath_var=LIBRARY_PATH 10739 shlibpath_overrides_runpath=yes 10740 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10322 10741 hardcode_into_libs=yes 10323 10742 ;; … … 10365 10784 ;; 10366 10785 esac 10367 # HP-UX runs *really* slowly unless shared libraries are mode 555 .10786 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10368 10787 postinstall_cmds='chmod 555 $lib' 10788 # or fails outright, so override atomically: 10789 install_override_mode=555 10369 10790 ;; 10370 10791 … … 10433 10854 shlibpath_var=LD_LIBRARY_PATH 10434 10855 shlibpath_overrides_runpath=no 10856 10435 10857 # Some binutils ld are patched to set DT_RUNPATH 10436 save_LDFLAGS=$LDFLAGS 10437 save_libdir=$libdir 10438 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10439 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10858 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10859 $as_echo_n "(cached) " >&6 10860 else 10861 lt_cv_shlibpath_overrides_runpath=no 10862 save_LDFLAGS=$LDFLAGS 10863 save_libdir=$libdir 10864 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10865 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10441 10867 /* end confdefs.h. */ 10442 10868 … … 10451 10877 if ac_fn_c_try_link "$LINENO"; then : 10452 10878 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10453 shlibpath_overrides_runpath=yes10879 lt_cv_shlibpath_overrides_runpath=yes 10454 10880 fi 10455 10881 fi 10456 10882 rm -f core conftest.err conftest.$ac_objext \ 10457 10883 conftest$ac_exeext conftest.$ac_ext 10458 LDFLAGS=$save_LDFLAGS 10459 libdir=$save_libdir 10884 LDFLAGS=$save_LDFLAGS 10885 libdir=$save_libdir 10886 10887 fi 10888 10889 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10460 10890 10461 10891 # This implies no fast_install, which is unacceptable. … … 10466 10896 # Append ld.so.conf contents to the search path 10467 10897 if test -f /etc/ld.so.conf; then 10468 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g; /^$/d' | tr '\n' ' '`10898 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 10469 10899 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10470 10900 fi … … 10781 11211 10782 11212 11213 11214 11215 11216 11217 10783 11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10784 11219 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } … … 10853 11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10854 11289 $as_echo_n "checking for dlopen in -ldl... " >&6; } 10855 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :11290 if ${ac_cv_lib_dl_dlopen+:} false; then : 10856 11291 $as_echo_n "(cached) " >&6 10857 11292 else … … 10887 11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10888 11323 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10889 if test "x$ac_cv_lib_dl_dlopen" = x ""yes; then :11324 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10890 11325 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10891 11326 else … … 10901 11336 *) 10902 11337 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10903 if test "x$ac_cv_func_shl_load" = x ""yes; then :11338 if test "x$ac_cv_func_shl_load" = xyes; then : 10904 11339 lt_cv_dlopen="shl_load" 10905 11340 else 10906 11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10907 11342 $as_echo_n "checking for shl_load in -ldld... " >&6; } 10908 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :11343 if ${ac_cv_lib_dld_shl_load+:} false; then : 10909 11344 $as_echo_n "(cached) " >&6 10910 11345 else … … 10940 11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10941 11376 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10942 if test "x$ac_cv_lib_dld_shl_load" = x ""yes; then :11377 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10943 11378 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10944 11379 else 10945 11380 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10946 if test "x$ac_cv_func_dlopen" = x ""yes; then :11381 if test "x$ac_cv_func_dlopen" = xyes; then : 10947 11382 lt_cv_dlopen="dlopen" 10948 11383 else 10949 11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10950 11385 $as_echo_n "checking for dlopen in -ldl... " >&6; } 10951 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :11386 if ${ac_cv_lib_dl_dlopen+:} false; then : 10952 11387 $as_echo_n "(cached) " >&6 10953 11388 else … … 10983 11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10984 11419 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10985 if test "x$ac_cv_lib_dl_dlopen" = x ""yes; then :11420 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10986 11421 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10987 11422 else 10988 11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10989 11424 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 10990 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :11425 if ${ac_cv_lib_svld_dlopen+:} false; then : 10991 11426 $as_echo_n "(cached) " >&6 10992 11427 else … … 11022 11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11023 11458 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11024 if test "x$ac_cv_lib_svld_dlopen" = x ""yes; then :11459 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11025 11460 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11026 11461 else 11027 11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11028 11463 $as_echo_n "checking for dld_link in -ldld... " >&6; } 11029 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :11464 if ${ac_cv_lib_dld_dld_link+:} false; then : 11030 11465 $as_echo_n "(cached) " >&6 11031 11466 else … … 11061 11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11062 11497 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11063 if test "x$ac_cv_lib_dld_dld_link" = x ""yes; then :11498 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11064 11499 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11065 11500 fi … … 11102 11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11103 11538 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 11104 if test "${lt_cv_dlopen_self+set}" = set; then :11539 if ${lt_cv_dlopen_self+:} false; then : 11105 11540 $as_echo_n "(cached) " >&6 11106 11541 else … … 11111 11546 lt_status=$lt_dlunknown 11112 11547 cat > conftest.$ac_ext <<_LT_EOF 11113 #line 11113"configure"11548 #line $LINENO "configure" 11114 11549 #include "confdefs.h" 11115 11550 … … 11152 11587 #endif 11153 11588 11154 void fnord() { int i=42;} 11589 /* When -fvisbility=hidden is used, assume the code has been annotated 11590 correspondingly for the symbols needed. */ 11591 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11592 int fnord () __attribute__((visibility("default"))); 11593 #endif 11594 11595 int fnord () { return 42; } 11155 11596 int main () 11156 11597 { … … 11161 11602 { 11162 11603 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11163 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11604 else 11605 { 11606 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11607 else puts (dlerror ()); 11608 } 11164 11609 /* dlclose (self); */ 11165 11610 } … … 11198 11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11199 11644 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11200 if test "${lt_cv_dlopen_self_static+set}" = set; then :11645 if ${lt_cv_dlopen_self_static+:} false; then : 11201 11646 $as_echo_n "(cached) " >&6 11202 11647 else … … 11207 11652 lt_status=$lt_dlunknown 11208 11653 cat > conftest.$ac_ext <<_LT_EOF 11209 #line 11209"configure"11654 #line $LINENO "configure" 11210 11655 #include "confdefs.h" 11211 11656 … … 11248 11693 #endif 11249 11694 11250 void fnord() { int i=42;} 11695 /* When -fvisbility=hidden is used, assume the code has been annotated 11696 correspondingly for the symbols needed. */ 11697 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11698 int fnord () __attribute__((visibility("default"))); 11699 #endif 11700 11701 int fnord () { return 42; } 11251 11702 int main () 11252 11703 { … … 11257 11708 { 11258 11709 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11259 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11710 else 11711 { 11712 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11713 else puts (dlerror ()); 11714 } 11260 11715 /* dlclose (self); */ 11261 11716 } … … 11414 11869 CC="$lt_save_CC" 11415 11870 11871 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11872 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11873 (test "X$CXX" != "Xg++"))) ; then 11874 ac_ext=cpp 11875 ac_cpp='$CXXCPP $CPPFLAGS' 11876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 11880 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 11881 if test -z "$CXXCPP"; then 11882 if ${ac_cv_prog_CXXCPP+:} false; then : 11883 $as_echo_n "(cached) " >&6 11884 else 11885 # Double quotes because CXXCPP needs to be expanded 11886 for CXXCPP in "$CXX -E" "/lib/cpp" 11887 do 11888 ac_preproc_ok=false 11889 for ac_cxx_preproc_warn_flag in '' yes 11890 do 11891 # Use a header file that comes with gcc, so configuring glibc 11892 # with a fresh cross-compiler works. 11893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11894 # <limits.h> exists even on freestanding compilers. 11895 # On the NeXT, cc -E runs the code through the compiler's parser, 11896 # not just through cpp. "Syntax error" is here to catch this case. 11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11898 /* end confdefs.h. */ 11899 #ifdef __STDC__ 11900 # include <limits.h> 11901 #else 11902 # include <assert.h> 11903 #endif 11904 Syntax error 11905 _ACEOF 11906 if ac_fn_cxx_try_cpp "$LINENO"; then : 11907 11908 else 11909 # Broken: fails on valid input. 11910 continue 11911 fi 11912 rm -f conftest.err conftest.i conftest.$ac_ext 11913 11914 # OK, works on sane cases. Now check whether nonexistent headers 11915 # can be detected and how. 11916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11917 /* end confdefs.h. */ 11918 #include <ac_nonexistent.h> 11919 _ACEOF 11920 if ac_fn_cxx_try_cpp "$LINENO"; then : 11921 # Broken: success on invalid input. 11922 continue 11923 else 11924 # Passes both tests. 11925 ac_preproc_ok=: 11926 break 11927 fi 11928 rm -f conftest.err conftest.i conftest.$ac_ext 11929 11930 done 11931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11932 rm -f conftest.i conftest.err conftest.$ac_ext 11933 if $ac_preproc_ok; then : 11934 break 11935 fi 11936 11937 done 11938 ac_cv_prog_CXXCPP=$CXXCPP 11939 11940 fi 11941 CXXCPP=$ac_cv_prog_CXXCPP 11942 else 11943 ac_cv_prog_CXXCPP=$CXXCPP 11944 fi 11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 11946 $as_echo "$CXXCPP" >&6; } 11947 ac_preproc_ok=false 11948 for ac_cxx_preproc_warn_flag in '' yes 11949 do 11950 # Use a header file that comes with gcc, so configuring glibc 11951 # with a fresh cross-compiler works. 11952 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11953 # <limits.h> exists even on freestanding compilers. 11954 # On the NeXT, cc -E runs the code through the compiler's parser, 11955 # not just through cpp. "Syntax error" is here to catch this case. 11956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11957 /* end confdefs.h. */ 11958 #ifdef __STDC__ 11959 # include <limits.h> 11960 #else 11961 # include <assert.h> 11962 #endif 11963 Syntax error 11964 _ACEOF 11965 if ac_fn_cxx_try_cpp "$LINENO"; then : 11966 11967 else 11968 # Broken: fails on valid input. 11969 continue 11970 fi 11971 rm -f conftest.err conftest.i conftest.$ac_ext 11972 11973 # OK, works on sane cases. Now check whether nonexistent headers 11974 # can be detected and how. 11975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11976 /* end confdefs.h. */ 11977 #include <ac_nonexistent.h> 11978 _ACEOF 11979 if ac_fn_cxx_try_cpp "$LINENO"; then : 11980 # Broken: success on invalid input. 11981 continue 11982 else 11983 # Passes both tests. 11984 ac_preproc_ok=: 11985 break 11986 fi 11987 rm -f conftest.err conftest.i conftest.$ac_ext 11988 11989 done 11990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11991 rm -f conftest.i conftest.err conftest.$ac_ext 11992 if $ac_preproc_ok; then : 11993 11994 else 11995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11997 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 11998 See \`config.log' for more details" "$LINENO" 5; } 11999 fi 12000 12001 ac_ext=c 12002 ac_cpp='$CPP $CPPFLAGS' 12003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12005 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12006 12007 else 12008 _lt_caught_CXX_error=yes 12009 fi 11416 12010 11417 12011 ac_ext=cpp … … 11440 12034 link_all_deplibs_CXX=unknown 11441 12035 old_archive_cmds_CXX=$old_archive_cmds 12036 reload_flag_CXX=$reload_flag 12037 reload_cmds_CXX=$reload_cmds 11442 12038 no_undefined_flag_CXX= 11443 12039 whole_archive_flag_spec_CXX= … … 11495 12091 # Allow CC to be a program name with arguments. 11496 12092 lt_save_CC=$CC 12093 lt_save_CFLAGS=$CFLAGS 11497 12094 lt_save_LD=$LD 11498 12095 lt_save_GCC=$GCC … … 11512 12109 test -z "${LDCXX+set}" || LD=$LDCXX 11513 12110 CC=${CXX-"c++"} 12111 CFLAGS=$CXXFLAGS 11514 12112 compiler=$CC 11515 12113 compiler_CXX=$CC … … 11522 12120 esac 11523 12121 done 11524 cc_basename=`$ECHO " X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`12122 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 11525 12123 11526 12124 … … 11585 12183 $as_echo_n "checking for non-GNU ld... " >&6; } 11586 12184 fi 11587 if test "${lt_cv_path_LD+set}" = set; then :12185 if ${lt_cv_path_LD+:} false; then : 11588 12186 $as_echo_n "(cached) " >&6 11589 12187 else … … 11625 12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11626 12224 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11627 if test "${lt_cv_prog_gnu_ld+set}" = set; then :12225 if ${lt_cv_prog_gnu_ld+:} false; then : 11628 12226 $as_echo_n "(cached) " >&6 11629 12227 else … … 11651 12249 # archiving commands below assume that GNU ld is being used. 11652 12250 if test "$with_gnu_ld" = yes; then 11653 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'11654 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'12251 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12252 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11655 12253 11656 12254 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' … … 11684 12282 # what "hidden" libraries, object files and flags are used when 11685 12283 # linking a shared library. 11686 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'12284 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 11687 12285 11688 12286 else … … 11794 12392 # Determine the default libpath from the value encoded in an empty 11795 12393 # executable. 11796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12394 if test "${lt_cv_aix_libpath+set}" = set; then 12395 aix_libpath=$lt_cv_aix_libpath 12396 else 12397 if ${lt_cv_aix_libpath__CXX+:} false; then : 12398 $as_echo_n "(cached) " >&6 12399 else 12400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11797 12401 /* end confdefs.h. */ 11798 12402 … … 11807 12411 if ac_fn_cxx_try_link "$LINENO"; then : 11808 12412 11809 lt_aix_libpath_sed='11810 /Import File Strings/,/^$/ {11811 /^0/ {11812 s/^0 *\(.*\)$/\1/11813 p11814 }11815 }'11816 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`11817 # Check for a 64-bit object if we didn't find anything.11818 if test -z "$aix_libpath"; then11819 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`11820 fi12413 lt_aix_libpath_sed=' 12414 /Import File Strings/,/^$/ { 12415 /^0/ { 12416 s/^0 *\([^ ]*\) *$/\1/ 12417 p 12418 } 12419 }' 12420 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12421 # Check for a 64-bit object if we didn't find anything. 12422 if test -z "$lt_cv_aix_libpath__CXX"; then 12423 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12424 fi 11821 12425 fi 11822 12426 rm -f core conftest.err conftest.$ac_objext \ 11823 12427 conftest$ac_exeext conftest.$ac_ext 11824 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12428 if test -z "$lt_cv_aix_libpath__CXX"; then 12429 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12430 fi 12431 12432 fi 12433 12434 aix_libpath=$lt_cv_aix_libpath__CXX 12435 fi 11825 12436 11826 12437 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11827 12438 11828 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"12439 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11829 12440 else 11830 12441 if test "$host_cpu" = ia64; then … … 11835 12446 # Determine the default libpath from the value encoded in an 11836 12447 # empty executable. 11837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12448 if test "${lt_cv_aix_libpath+set}" = set; then 12449 aix_libpath=$lt_cv_aix_libpath 12450 else 12451 if ${lt_cv_aix_libpath__CXX+:} false; then : 12452 $as_echo_n "(cached) " >&6 12453 else 12454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11838 12455 /* end confdefs.h. */ 11839 12456 … … 11848 12465 if ac_fn_cxx_try_link "$LINENO"; then : 11849 12466 11850 lt_aix_libpath_sed='11851 /Import File Strings/,/^$/ {11852 /^0/ {11853 s/^0 *\(.*\)$/\1/11854 p11855 }11856 }'11857 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`11858 # Check for a 64-bit object if we didn't find anything.11859 if test -z "$aix_libpath"; then11860 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`11861 fi12467 lt_aix_libpath_sed=' 12468 /Import File Strings/,/^$/ { 12469 /^0/ { 12470 s/^0 *\([^ ]*\) *$/\1/ 12471 p 12472 } 12473 }' 12474 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12475 # Check for a 64-bit object if we didn't find anything. 12476 if test -z "$lt_cv_aix_libpath__CXX"; then 12477 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12478 fi 11862 12479 fi 11863 12480 rm -f core conftest.err conftest.$ac_objext \ 11864 12481 conftest$ac_exeext conftest.$ac_ext 11865 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12482 if test -z "$lt_cv_aix_libpath__CXX"; then 12483 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12484 fi 12485 12486 fi 12487 12488 aix_libpath=$lt_cv_aix_libpath__CXX 12489 fi 11866 12490 11867 12491 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" … … 11870 12494 no_undefined_flag_CXX=' ${wl}-bernotok' 11871 12495 allow_undefined_flag_CXX=' ${wl}-berok' 11872 # Exported symbols can be pulled into shared objects from archives 11873 whole_archive_flag_spec_CXX='$convenience' 12496 if test "$with_gnu_ld" = yes; then 12497 # We only use this code for GNU lds that support --whole-archive. 12498 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12499 else 12500 # Exported symbols can be pulled into shared objects from archives 12501 whole_archive_flag_spec_CXX='$convenience' 12502 fi 11874 12503 archive_cmds_need_lc_CXX=yes 11875 12504 # This is similar to how AIX traditionally builds its shared … … 11901 12530 11902 12531 cygwin* | mingw* | pw32* | cegcc*) 11903 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11904 # as there is no search path for DLLs. 11905 hardcode_libdir_flag_spec_CXX='-L$libdir' 11906 allow_undefined_flag_CXX=unsupported 11907 always_export_symbols_CXX=no 11908 enable_shared_with_static_runtimes_CXX=yes 11909 11910 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11911 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11912 # If the export-symbols file already is a .def file (1st line 11913 # is EXPORTS), use it as is; otherwise, prepend... 11914 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11915 cp $export_symbols $output_objdir/$soname.def; 11916 else 11917 echo EXPORTS > $output_objdir/$soname.def; 11918 cat $export_symbols >> $output_objdir/$soname.def; 11919 fi~ 11920 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11921 else 11922 ld_shlibs_CXX=no 11923 fi 11924 ;; 12532 case $GXX,$cc_basename in 12533 ,cl* | no,cl*) 12534 # Native MSVC 12535 # hardcode_libdir_flag_spec is actually meaningless, as there is 12536 # no search path for DLLs. 12537 hardcode_libdir_flag_spec_CXX=' ' 12538 allow_undefined_flag_CXX=unsupported 12539 always_export_symbols_CXX=yes 12540 file_list_spec_CXX='@' 12541 # Tell ltmain to make .lib files, not .a files. 12542 libext=lib 12543 # Tell ltmain to make .dll files, not .so files. 12544 shrext_cmds=".dll" 12545 # FIXME: Setting linknames here is a bad hack. 12546 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 12547 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12548 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 12549 else 12550 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 12551 fi~ 12552 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12553 linknames=' 12554 # The linker will not automatically build a static lib if we build a DLL. 12555 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 12556 enable_shared_with_static_runtimes_CXX=yes 12557 # Don't use ranlib 12558 old_postinstall_cmds_CXX='chmod 644 $oldlib' 12559 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 12560 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12561 case $lt_outputfile in 12562 *.exe|*.EXE) ;; 12563 *) 12564 lt_outputfile="$lt_outputfile.exe" 12565 lt_tool_outputfile="$lt_tool_outputfile.exe" 12566 ;; 12567 esac~ 12568 func_to_tool_file "$lt_outputfile"~ 12569 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 12570 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12571 $RM "$lt_outputfile.manifest"; 12572 fi' 12573 ;; 12574 *) 12575 # g++ 12576 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12577 # as there is no search path for DLLs. 12578 hardcode_libdir_flag_spec_CXX='-L$libdir' 12579 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 12580 allow_undefined_flag_CXX=unsupported 12581 always_export_symbols_CXX=no 12582 enable_shared_with_static_runtimes_CXX=yes 12583 12584 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12585 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12586 # If the export-symbols file already is a .def file (1st line 12587 # is EXPORTS), use it as is; otherwise, prepend... 12588 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12589 cp $export_symbols $output_objdir/$soname.def; 12590 else 12591 echo EXPORTS > $output_objdir/$soname.def; 12592 cat $export_symbols >> $output_objdir/$soname.def; 12593 fi~ 12594 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12595 else 12596 ld_shlibs_CXX=no 12597 fi 12598 ;; 12599 esac 12600 ;; 11925 12601 darwin* | rhapsody*) 11926 12602 … … 11930 12606 hardcode_automatic_CXX=yes 11931 12607 hardcode_shlibpath_var_CXX=unsupported 11932 whole_archive_flag_spec_CXX='' 12608 if test "$lt_cv_ld_force_load" = "yes"; then 12609 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 12610 else 12611 whole_archive_flag_spec_CXX='' 12612 fi 11933 12613 link_all_deplibs_CXX=yes 11934 12614 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" … … 11938 12618 esac 11939 12619 if test "$_lt_dar_can_shared" = "yes"; then 11940 output_verbose_link_cmd= echo12620 output_verbose_link_cmd=func_echo_all 11941 12621 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 11942 12622 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" … … 11991 12671 ;; 11992 12672 12673 haiku*) 12674 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12675 link_all_deplibs_CXX=yes 12676 ;; 12677 11993 12678 hpux9*) 11994 12679 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' … … 12015 12700 # from the output so that they don't get included in the library 12016 12701 # dependencies. 12017 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'12702 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 12018 12703 ;; 12019 12704 *) 12020 12705 if test "$GXX" = yes; then 12021 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'12706 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12022 12707 else 12023 12708 # FIXME: insert proper C++ library support … … 12080 12765 # from the output so that they don't get included in the library 12081 12766 # dependencies. 12082 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'12767 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 12083 12768 ;; 12084 12769 *) … … 12090 12775 ;; 12091 12776 ia64*) 12092 archive_cmds_CXX='$CC -shared -nostdlib -fPIC${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'12777 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12093 12778 ;; 12094 12779 *) 12095 archive_cmds_CXX='$CC -shared -nostdlib -fPIC${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'12780 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12096 12781 ;; 12097 12782 esac … … 12123 12808 CC*) 12124 12809 # SGI C++ 12125 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'12810 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 12126 12811 12127 12812 # Archives containing C++ object files must be created using … … 12134 12819 if test "$GXX" = yes; then 12135 12820 if test "$with_gnu_ld" = no; then 12136 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'12821 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12137 12822 else 12138 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'12823 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 12139 12824 fi 12140 12825 fi … … 12165 12850 # from the output so that they don't get included in the library 12166 12851 # dependencies. 12167 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'12852 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 12168 12853 12169 12854 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' … … 12202 12887 # Portland Group C++ compiler 12203 12888 case `$CC -V` in 12204 *pgCC\ [1-5] * | *pgcpp\ [1-5]*)12889 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 12205 12890 prelink_cmds_CXX='tpldir=Template.dir~ 12206 12891 rm -rf $tpldir~ 12207 12892 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 12208 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'12893 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 12209 12894 old_archive_cmds_CXX='tpldir=Template.dir~ 12210 12895 rm -rf $tpldir~ 12211 12896 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 12212 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~12897 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 12213 12898 $RANLIB $oldlib' 12214 12899 archive_cmds_CXX='tpldir=Template.dir~ 12215 12900 rm -rf $tpldir~ 12216 12901 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12217 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'12902 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12218 12903 archive_expsym_cmds_CXX='tpldir=Template.dir~ 12219 12904 rm -rf $tpldir~ 12220 12905 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12221 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'12906 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 12222 12907 ;; 12223 *) # Version 6 willuse weak symbols12908 *) # Version 6 and above use weak symbols 12224 12909 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12225 12910 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' … … 12229 12914 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12230 12915 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12231 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO\"$new_convenience\"` ${wl}--no-whole-archive'12916 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 12232 12917 ;; 12233 12918 cxx*) … … 12248 12933 # from the output so that they don't get included in the library 12249 12934 # dependencies. 12250 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=` $ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO"X$list" | $Xsed'12935 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 12251 12936 ;; 12252 xl* )12937 xl* | mpixl* | bgxl*) 12253 12938 # IBM XL 8.0 on PPC, with GNU ld 12254 12939 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' … … 12270 12955 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 12271 12956 hardcode_libdir_flag_spec_CXX='-R$libdir' 12272 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO\"$new_convenience\"` ${wl}--no-whole-archive'12957 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 12273 12958 compiler_needs_object_CXX=yes 12274 12959 … … 12276 12961 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12277 12962 # would be better. 12278 output_verbose_link_cmd=' echo'12963 output_verbose_link_cmd='func_echo_all' 12279 12964 12280 12965 # Archives containing C++ object files must be created using … … 12345 13030 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12346 13031 fi 12347 output_verbose_link_cmd= echo13032 output_verbose_link_cmd=func_echo_all 12348 13033 else 12349 13034 ld_shlibs_CXX=no … … 12380 13065 osf3*) 12381 13066 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12382 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'13067 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 12383 13068 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12384 13069 ;; 12385 13070 *) 12386 13071 allow_undefined_flag_CXX=' -expect_unresolved \*' 12387 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'13072 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 12388 13073 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12389 13074 echo "-hidden">> $lib.exp~ 12390 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO " X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~13075 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ 12391 13076 $RM $lib.exp' 12392 13077 hardcode_libdir_flag_spec_CXX='-rpath $libdir' … … 12404 13089 # from the output so that they don't get included in the library 12405 13090 # dependencies. 12406 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=` $ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'13091 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 12407 13092 ;; 12408 13093 *) … … 12411 13096 case $host in 12412 13097 osf3*) 12413 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'13098 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12414 13099 ;; 12415 13100 *) 12416 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'13101 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12417 13102 ;; 12418 13103 esac … … 12424 13109 # what "hidden" libraries, object files and flags are used when 12425 13110 # linking a shared library. 12426 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'13111 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12427 13112 12428 13113 else … … 12460 13145 solaris*) 12461 13146 case $cc_basename in 12462 CC* )13147 CC* | sunCC*) 12463 13148 # Sun C++ 4.2, 5.x and Centerline C++ 12464 13149 archive_cmds_need_lc_CXX=yes … … 12481 13166 link_all_deplibs_CXX=yes 12482 13167 12483 output_verbose_link_cmd=' echo'13168 output_verbose_link_cmd='func_echo_all' 12484 13169 12485 13170 # Archives containing C++ object files must be created using … … 12501 13186 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12502 13187 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 12503 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'13188 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12504 13189 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12505 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'13190 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12506 13191 12507 13192 # Commands to make compiler produce verbose output that lists 12508 13193 # what "hidden" libraries, object files and flags are used when 12509 13194 # linking a shared library. 12510 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'13195 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12511 13196 else 12512 13197 # g++ 2.7 appears to require `-G' NOT `-shared' on this … … 12519 13204 # what "hidden" libraries, object files and flags are used when 12520 13205 # linking a shared library. 12521 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'13206 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12522 13207 fi 12523 13208 … … 12573 13258 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12574 13259 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13260 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13261 '"$old_archive_cmds_CXX" 13262 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13263 '"$reload_cmds_CXX" 12575 13264 ;; 12576 13265 *) … … 12634 13323 _LT_EOF 12635 13324 13325 13326 _lt_libdeps_save_CFLAGS=$CFLAGS 13327 case "$CC $CFLAGS " in #( 13328 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 13329 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 13330 esac 13331 12636 13332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12637 13333 (eval $ac_compile) 2>&5 … … 12647 13343 12648 13344 for p in `eval "$output_verbose_link_cmd"`; do 12649 case $ pin13345 case ${prev}${p} in 12650 13346 12651 13347 -L* | -R* | -l*) … … 12656 13352 prev=$p 12657 13353 continue 12658 else12659 prev=12660 13354 fi 12661 13355 13356 # Expand the sysroot to ease extracting the directories later. 13357 if test -z "$prev"; then 13358 case $p in 13359 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 13360 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 13361 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 13362 esac 13363 fi 13364 case $p in 13365 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 13366 esac 12662 13367 if test "$pre_test_object_deps_done" = no; then 12663 case $ pin12664 -L * | -R*)13368 case ${prev} in 13369 -L | -R) 12665 13370 # Internal compiler library paths should come after those 12666 13371 # provided the user. The postdeps already come after the … … 12682 13387 fi 12683 13388 fi 13389 prev= 12684 13390 ;; 12685 13391 13392 *.lto.$objext) ;; # Ignore GCC LTO objects 12686 13393 *.$objext) 12687 13394 # This assumes that the test object file only shows up … … 12719 13426 12720 13427 $RM -f confest.$objext 13428 CFLAGS=$_lt_libdeps_save_CFLAGS 12721 13429 12722 13430 # PORTME: override above test on systems where it is broken … … 12754 13462 solaris*) 12755 13463 case $cc_basename in 12756 CC* )13464 CC* | sunCC*) 12757 13465 # The more standards-conforming stlport4 library is 12758 13466 # incompatible with the Cstd library. Avoid specifying … … 12819 13527 lt_prog_compiler_static_CXX= 12820 13528 12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&512822 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }12823 13529 12824 13530 # C++ specific cases for pic, static, wl, etc. … … 12869 13575 # DJGPP does not support shared libraries at all 12870 13576 lt_prog_compiler_pic_CXX= 13577 ;; 13578 haiku*) 13579 # PIC is the default for Haiku. 13580 # The "-static" flag exists, but is broken. 13581 lt_prog_compiler_static_CXX= 12871 13582 ;; 12872 13583 interix[3-9]*) … … 12918 13629 ;; 12919 13630 esac 13631 ;; 13632 mingw* | cygwin* | os2* | pw32* | cegcc*) 13633 # This hack is so that the source file can tell whether it is being 13634 # built for inclusion in a dll (and should export symbols for example). 13635 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12920 13636 ;; 12921 13637 dgux*) … … 13008 13724 lt_prog_compiler_static_CXX='-non_shared' 13009 13725 ;; 13010 xlc* | xlC* )13011 # IBM XL 8.0 on PPC13726 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 13727 # IBM XL 8.0, 9.0 on PPC and BlueGene 13012 13728 lt_prog_compiler_wl_CXX='-Wl,' 13013 13729 lt_prog_compiler_pic_CXX='-qpic' … … 13071 13787 solaris*) 13072 13788 case $cc_basename in 13073 CC* )13789 CC* | sunCC*) 13074 13790 # Sun C++ 4.2, 5.x and Centerline C++ 13075 13791 lt_prog_compiler_pic_CXX='-KPIC' … … 13136 13852 ;; 13137 13853 esac 13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 13139 $as_echo "$lt_prog_compiler_pic_CXX" >&6; } 13140 13141 13854 13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13856 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13857 if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 13858 $as_echo_n "(cached) " >&6 13859 else 13860 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 13861 fi 13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 13863 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 13864 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 13142 13865 13143 13866 # … … 13147 13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13148 13871 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 13149 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :13872 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 13150 13873 $as_echo_n "(cached) " >&6 13151 13874 else … … 13163 13886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13164 13887 -e 's:$: $lt_compiler_flag:'` 13165 (eval echo "\"\$as_me: 13165: $lt_compile\"" >&5)13888 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13166 13889 (eval "$lt_compile" 2>conftest.err) 13167 13890 ac_status=$? 13168 13891 cat conftest.err >&5 13169 echo "$as_me: 13169: \$? = $ac_status" >&513892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13170 13893 if (exit $ac_status) && test -s "$ac_outfile"; then 13171 13894 # The compiler can only warn and ignore the option if not recognized 13172 13895 # So say no if there are warnings other than the usual output. 13173 $ECHO " X$_lt_compiler_boilerplate" | $Xsed -e'/^$/d' >conftest.exp13896 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13174 13897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13175 13898 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then … … 13197 13920 13198 13921 13922 13923 13199 13924 # 13200 13925 # Check to make sure the static flag actually works. … … 13203 13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13204 13929 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13205 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :13930 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 13206 13931 $as_echo_n "(cached) " >&6 13207 13932 else … … 13216 13941 # Append any errors to the config.log. 13217 13942 cat conftest.err 1>&5 13218 $ECHO " X$_lt_linker_boilerplate" | $Xsed -e'/^$/d' > conftest.exp13943 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13219 13944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13220 13945 if diff conftest.exp conftest.er2 >/dev/null; then … … 13243 13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13244 13969 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13245 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :13970 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 13246 13971 $as_echo_n "(cached) " >&6 13247 13972 else … … 13262 13987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13263 13988 -e 's:$: $lt_compiler_flag:'` 13264 (eval echo "\"\$as_me: 13264: $lt_compile\"" >&5)13989 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13265 13990 (eval "$lt_compile" 2>out/conftest.err) 13266 13991 ac_status=$? 13267 13992 cat out/conftest.err >&5 13268 echo "$as_me: 13268: \$? = $ac_status" >&513993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13269 13994 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13270 13995 then 13271 13996 # The compiler can only warn and ignore the option if not recognized 13272 13997 # So say no if there are warnings 13273 $ECHO " X$_lt_compiler_boilerplate" | $Xsed -e'/^$/d' > out/conftest.exp13998 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13274 13999 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13275 14000 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then … … 13295 14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13296 14021 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13297 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :14022 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 13298 14023 $as_echo_n "(cached) " >&6 13299 14024 else … … 13314 14039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13315 14040 -e 's:$: $lt_compiler_flag:'` 13316 (eval echo "\"\$as_me: 13316: $lt_compile\"" >&5)14041 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13317 14042 (eval "$lt_compile" 2>out/conftest.err) 13318 14043 ac_status=$? 13319 14044 cat out/conftest.err >&5 13320 echo "$as_me: 13320: \$? = $ac_status" >&514045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13321 14046 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13322 14047 then 13323 14048 # The compiler can only warn and ignore the option if not recognized 13324 14049 # So say no if there are warnings 13325 $ECHO " X$_lt_compiler_boilerplate" | $Xsed -e'/^$/d' > out/conftest.exp14050 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13326 14051 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13327 14052 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then … … 13374 14099 13375 14100 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14101 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13376 14102 case $host_os in 13377 14103 aix[4-9]*) 13378 14104 # If we're using GNU nm, then we don't want the "-C" option. 13379 14105 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14106 # Also, AIX nm treats weak defined symbols like other global defined 14107 # symbols, whereas GNU nm marks them as "W". 13380 14108 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13381 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") ) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'14109 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 13382 14110 else 13383 14111 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' … … 13386 14114 pw32*) 13387 14115 export_symbols_cmds_CXX="$ltdll_cmds" 13388 ;;14116 ;; 13389 14117 cygwin* | mingw* | cegcc*) 13390 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 13391 ;; 13392 linux* | k*bsd*-gnu) 14118 case $cc_basename in 14119 cl*) ;; 14120 *) 14121 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 14122 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14123 ;; 14124 esac 14125 ;; 14126 linux* | k*bsd*-gnu | gnu*) 13393 14127 link_all_deplibs_CXX=no 13394 ;;14128 ;; 13395 14129 *) 13396 14130 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13397 ;;14131 ;; 13398 14132 esac 13399 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'13400 14133 13401 14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 … … 13429 14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13430 14163 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13431 $RM conftest* 13432 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13433 13434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14164 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14165 $as_echo_n "(cached) " >&6 14166 else 14167 $RM conftest* 14168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14169 14170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13435 14171 (eval $ac_compile) 2>&5 13436 14172 ac_status=$? 13437 14173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13438 14174 test $ac_status = 0; } 2>conftest.err; then 13439 13440 13441 13442 13443 13444 pic_flag=$lt_prog_compiler_pic_CXX13445 13446 13447 13448 13449 13450 13451 13452 14175 soname=conftest 14176 lib=conftest 14177 libobjs=conftest.$ac_objext 14178 deplibs= 14179 wl=$lt_prog_compiler_wl_CXX 14180 pic_flag=$lt_prog_compiler_pic_CXX 14181 compiler_flags=-v 14182 linker_flags=-v 14183 verstring= 14184 output_objdir=. 14185 libname=conftest 14186 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14187 allow_undefined_flag_CXX= 14188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13453 14189 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13454 14190 ac_status=$? 13455 14191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13456 14192 test $ac_status = 0; } 13457 then 13458 archive_cmds_need_lc_CXX=no 13459 else 13460 archive_cmds_need_lc_CXX=yes 13461 fi 13462 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13463 else 13464 cat conftest.err 1>&5 13465 fi 13466 $RM conftest* 13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 13468 $as_echo "$archive_cmds_need_lc_CXX" >&6; } 14193 then 14194 lt_cv_archive_cmds_need_lc_CXX=no 14195 else 14196 lt_cv_archive_cmds_need_lc_CXX=yes 14197 fi 14198 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14199 else 14200 cat conftest.err 1>&5 14201 fi 14202 $RM conftest* 14203 14204 fi 14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14206 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14207 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 13469 14208 ;; 13470 14209 esac … … 13623 14362 library_names_spec='$libname.ixlibrary $libname.a' 13624 14363 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13625 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=` $ECHO "X$lib" | $Xsed -e'\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'14364 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 13626 14365 ;; 13627 14366 esac … … 13654 14393 need_lib_prefix=no 13655 14394 13656 case $GCC,$host_os in 13657 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 14395 case $GCC,$cc_basename in 14396 yes,*) 14397 # gcc 13658 14398 library_names_spec='$libname.dll.a' 13659 14399 # DLL is installed to $(libdir)/../bin by postinstall_cmds … … 13676 14416 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13677 14417 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13678 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14418 13679 14419 ;; 13680 14420 mingw* | cegcc*) 13681 14421 # MinGW DLLs use traditional 'lib' prefix 13682 14422 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13683 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`13684 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then13685 # It is most probably a Windows format PATH printed by13686 # mingw gcc, but we are running on Cygwin. Gcc prints its search13687 # path with ; separators, and with drive letters. We can handle the13688 # drive letters (cygwin fileutils understands them), so leave them,13689 # especially as we might pass files found there to a mingw objdump,13690 # which wouldn't understand a cygwinified path. Ahh.13691 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`13692 else13693 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`13694 fi13695 14423 ;; 13696 14424 pw32*) … … 13699 14427 ;; 13700 14428 esac 14429 dynamic_linker='Win32 ld.exe' 13701 14430 ;; 13702 14431 14432 *,cl*) 14433 # Native MSVC 14434 libname_spec='$name' 14435 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14436 library_names_spec='${libname}.dll.lib' 14437 14438 case $build_os in 14439 mingw*) 14440 sys_lib_search_path_spec= 14441 lt_save_ifs=$IFS 14442 IFS=';' 14443 for lt_path in $LIB 14444 do 14445 IFS=$lt_save_ifs 14446 # Let DOS variable expansion print the short 8.3 style file name. 14447 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14448 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14449 done 14450 IFS=$lt_save_ifs 14451 # Convert to MSYS style. 14452 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14453 ;; 14454 cygwin*) 14455 # Convert to unix form, then to dos form, then back to unix form 14456 # but this time dos style (no spaces!) so that the unix form looks 14457 # like /cygdrive/c/PROGRA~1:/cygdr... 14458 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14459 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14460 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14461 ;; 14462 *) 14463 sys_lib_search_path_spec="$LIB" 14464 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14465 # It is most probably a Windows format PATH. 14466 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14467 else 14468 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14469 fi 14470 # FIXME: find the short name or the path components, as spaces are 14471 # common. (e.g. "Program Files" -> "PROGRA~1") 14472 ;; 14473 esac 14474 14475 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14476 postinstall_cmds='base_file=`basename \${file}`~ 14477 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14478 dldir=$destdir/`dirname \$dlpath`~ 14479 test -d \$dldir || mkdir -p \$dldir~ 14480 $install_prog $dir/$dlname \$dldir/$dlname' 14481 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14482 dlpath=$dir/\$dldll~ 14483 $RM \$dlpath' 14484 shlibpath_overrides_runpath=yes 14485 dynamic_linker='Win32 link.exe' 14486 ;; 14487 13703 14488 *) 14489 # Assume MSVC wrapper 13704 14490 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14491 dynamic_linker='Win32 ld.exe' 13705 14492 ;; 13706 14493 esac 13707 dynamic_linker='Win32 ld.exe'13708 14494 # FIXME: first we should search . and the directory the executable is in 13709 14495 shlibpath_var=PATH … … 13788 14574 soname_spec='${libname}${release}${shared_ext}$major' 13789 14575 shlibpath_var=LD_LIBRARY_PATH 14576 shlibpath_overrides_runpath=no 14577 hardcode_into_libs=yes 14578 ;; 14579 14580 haiku*) 14581 version_type=linux 14582 need_lib_prefix=no 14583 need_version=no 14584 dynamic_linker="$host_os runtime_loader" 14585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14586 soname_spec='${libname}${release}${shared_ext}$major' 14587 shlibpath_var=LIBRARY_PATH 14588 shlibpath_overrides_runpath=yes 14589 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13790 14590 hardcode_into_libs=yes 13791 14591 ;; … … 13833 14633 ;; 13834 14634 esac 13835 # HP-UX runs *really* slowly unless shared libraries are mode 555 .14635 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13836 14636 postinstall_cmds='chmod 555 $lib' 14637 # or fails outright, so override atomically: 14638 install_override_mode=555 13837 14639 ;; 13838 14640 … … 13901 14703 shlibpath_var=LD_LIBRARY_PATH 13902 14704 shlibpath_overrides_runpath=no 14705 13903 14706 # Some binutils ld are patched to set DT_RUNPATH 13904 save_LDFLAGS=$LDFLAGS 13905 save_libdir=$libdir 13906 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 13907 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 13908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14707 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14708 $as_echo_n "(cached) " >&6 14709 else 14710 lt_cv_shlibpath_overrides_runpath=no 14711 save_LDFLAGS=$LDFLAGS 14712 save_libdir=$libdir 14713 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 14714 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 14715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13909 14716 /* end confdefs.h. */ 13910 14717 … … 13919 14726 if ac_fn_cxx_try_link "$LINENO"; then : 13920 14727 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 13921 shlibpath_overrides_runpath=yes14728 lt_cv_shlibpath_overrides_runpath=yes 13922 14729 fi 13923 14730 fi 13924 14731 rm -f core conftest.err conftest.$ac_objext \ 13925 14732 conftest$ac_exeext conftest.$ac_ext 13926 LDFLAGS=$save_LDFLAGS 13927 libdir=$save_libdir 14733 LDFLAGS=$save_LDFLAGS 14734 libdir=$save_libdir 14735 14736 fi 14737 14738 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13928 14739 13929 14740 # This implies no fast_install, which is unacceptable. … … 13934 14745 # Append ld.so.conf contents to the search path 13935 14746 if test -f /etc/ld.so.conf; then 13936 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g; /^$/d' | tr '\n' ' '`14747 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 13937 14748 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13938 14749 fi … … 14198 15009 14199 15010 15011 15012 14200 15013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14201 15014 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } … … 14245 15058 14246 15059 CC=$lt_save_CC 15060 CFLAGS=$lt_save_CFLAGS 14247 15061 LDCXX=$LD 14248 15062 LD=$lt_save_LD … … 14311 15125 $as_echo_n "checking for a BSD-compatible install... " >&6; } 14312 15126 if test -z "$INSTALL"; then 14313 if test "${ac_cv_path_install+set}" = set; then :15127 if ${ac_cv_path_install+:} false; then : 14314 15128 $as_echo_n "(cached) " >&6 14315 15129 else … … 14398 15212 case `pwd` in 14399 15213 *[\\\"\#\$\&\'\`$am_lf]*) 14400 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 15214 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 14401 15215 esac 14402 15216 case $srcdir in 14403 15217 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 14404 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 15218 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 14405 15219 esac 14406 15220 … … 14488 15302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14489 15303 $as_echo_n "checking for $ac_word... " >&6; } 14490 if test "${ac_cv_prog_STRIP+set}" = set; then :15304 if ${ac_cv_prog_STRIP+:} false; then : 14491 15305 $as_echo_n "(cached) " >&6 14492 15306 else … … 14528 15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14529 15343 $as_echo_n "checking for $ac_word... " >&6; } 14530 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :15344 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 14531 15345 $as_echo_n "(cached) " >&6 14532 15346 else … … 14581 15395 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 14582 15396 if test -z "$MKDIR_P"; then 14583 if test "${ac_cv_path_mkdir+set}" = set; then :15397 if ${ac_cv_path_mkdir+:} false; then : 14584 15398 $as_echo_n "(cached) " >&6 14585 15399 else … … 14626 15440 esac 14627 15441 14628 for ac_prog in gawk mawk nawk awk14629 do14630 # Extract the first word of "$ac_prog", so it can be a program name with args.14631 set dummy $ac_prog; ac_word=$214632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&514633 $as_echo_n "checking for $ac_word... " >&6; }14634 if test "${ac_cv_prog_AWK+set}" = set; then :14635 $as_echo_n "(cached) " >&614636 else14637 if test -n "$AWK"; then14638 ac_cv_prog_AWK="$AWK" # Let the user override the test.14639 else14640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR14641 for as_dir in $PATH14642 do14643 IFS=$as_save_IFS14644 test -z "$as_dir" && as_dir=.14645 for ac_exec_ext in '' $ac_executable_extensions; do14646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then14647 ac_cv_prog_AWK="$ac_prog"14648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&514649 break 214650 fi14651 done14652 done14653 IFS=$as_save_IFS14654 14655 fi14656 fi14657 AWK=$ac_cv_prog_AWK14658 if test -n "$AWK"; then14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&514660 $as_echo "$AWK" >&6; }14661 else14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&514663 $as_echo "no" >&6; }14664 fi14665 14666 14667 test -n "$AWK" && break14668 done14669 14670 15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 14671 15443 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 14672 15444 set x ${MAKE-make} 14673 15445 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 14674 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :15446 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 14675 15447 $as_echo_n "(cached) " >&6 14676 15448 else … … 14838 15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 14839 15611 $as_echo_n "checking dependency style of $depcc... " >&6; } 14840 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :15612 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 14841 15613 $as_echo_n "(cached) " >&6 14842 15614 else … … 14965 15737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 14966 15738 $as_echo_n "checking dependency style of $depcc... " >&6; } 14967 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :15739 if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 14968 15740 $as_echo_n "(cached) " >&6 14969 15741 else … … 15111 15883 set dummy $CC; ac_cc=`$as_echo "$2" | 15112 15884 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 15113 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :15885 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 15114 15886 $as_echo_n "(cached) " >&6 15115 15887 else … … 15309 16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15310 16082 $as_echo_n "checking for $ac_word... " >&6; } 15311 if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then :16083 if ${ac_cv_path_DX_DOXYGEN+:} false; then : 15312 16084 $as_echo_n "(cached) " >&6 15313 16085 else … … 15352 16124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15353 16125 $as_echo_n "checking for $ac_word... " >&6; } 15354 if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then :16126 if ${ac_cv_path_ac_pt_DX_DOXYGEN+:} false; then : 15355 16127 $as_echo_n "(cached) " >&6 15356 16128 else … … 15415 16187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15416 16188 $as_echo_n "checking for $ac_word... " >&6; } 15417 if test "${ac_cv_path_DX_PERL+set}" = set; then :16189 if ${ac_cv_path_DX_PERL+:} false; then : 15418 16190 $as_echo_n "(cached) " >&6 15419 16191 else … … 15458 16230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15459 16231 $as_echo_n "checking for $ac_word... " >&6; } 15460 if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then :16232 if ${ac_cv_path_ac_pt_DX_PERL+:} false; then : 15461 16233 $as_echo_n "(cached) " >&6 15462 16234 else … … 15571 16343 else 15572 16344 15573 DX_FLAG_dot= 116345 DX_FLAG_dot=0 15574 16346 15575 16347 … … 15587 16359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15588 16360 $as_echo_n "checking for $ac_word... " >&6; } 15589 if test "${ac_cv_path_DX_DOT+set}" = set; then :16361 if ${ac_cv_path_DX_DOT+:} false; then : 15590 16362 $as_echo_n "(cached) " >&6 15591 16363 else … … 15630 16402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15631 16403 $as_echo_n "checking for $ac_word... " >&6; } 15632 if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then :16404 if ${ac_cv_path_ac_pt_DX_DOT+:} false; then : 15633 16405 $as_echo_n "(cached) " >&6 15634 16406 else … … 15966 16738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15967 16739 $as_echo_n "checking for $ac_word... " >&6; } 15968 if test "${ac_cv_path_DX_HHC+set}" = set; then :16740 if ${ac_cv_path_DX_HHC+:} false; then : 15969 16741 $as_echo_n "(cached) " >&6 15970 16742 else … … 16009 16781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16010 16782 $as_echo_n "checking for $ac_word... " >&6; } 16011 if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then :16783 if ${ac_cv_path_ac_pt_DX_HHC+:} false; then : 16012 16784 $as_echo_n "(cached) " >&6 16013 16785 else … … 16285 17057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16286 17058 $as_echo_n "checking for $ac_word... " >&6; } 16287 if test "${ac_cv_path_DX_LATEX+set}" = set; then :17059 if ${ac_cv_path_DX_LATEX+:} false; then : 16288 17060 $as_echo_n "(cached) " >&6 16289 17061 else … … 16328 17100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16329 17101 $as_echo_n "checking for $ac_word... " >&6; } 16330 if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then :17102 if ${ac_cv_path_ac_pt_DX_LATEX+:} false; then : 16331 17103 $as_echo_n "(cached) " >&6 16332 17104 else … … 16391 17163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16392 17164 $as_echo_n "checking for $ac_word... " >&6; } 16393 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :17165 if ${ac_cv_path_DX_MAKEINDEX+:} false; then : 16394 17166 $as_echo_n "(cached) " >&6 16395 17167 else … … 16434 17206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16435 17207 $as_echo_n "checking for $ac_word... " >&6; } 16436 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :17208 if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then : 16437 17209 $as_echo_n "(cached) " >&6 16438 17210 else … … 16497 17269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16498 17270 $as_echo_n "checking for $ac_word... " >&6; } 16499 if test "${ac_cv_path_DX_DVIPS+set}" = set; then :17271 if ${ac_cv_path_DX_DVIPS+:} false; then : 16500 17272 $as_echo_n "(cached) " >&6 16501 17273 else … … 16540 17312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16541 17313 $as_echo_n "checking for $ac_word... " >&6; } 16542 if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then :17314 if ${ac_cv_path_ac_pt_DX_DVIPS+:} false; then : 16543 17315 $as_echo_n "(cached) " >&6 16544 17316 else … … 16603 17375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16604 17376 $as_echo_n "checking for $ac_word... " >&6; } 16605 if test "${ac_cv_path_DX_EGREP+set}" = set; then :17377 if ${ac_cv_path_DX_EGREP+:} false; then : 16606 17378 $as_echo_n "(cached) " >&6 16607 17379 else … … 16646 17418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16647 17419 $as_echo_n "checking for $ac_word... " >&6; } 16648 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :17420 if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then : 16649 17421 $as_echo_n "(cached) " >&6 16650 17422 else … … 16774 17546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16775 17547 $as_echo_n "checking for $ac_word... " >&6; } 16776 if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then :17548 if ${ac_cv_path_DX_PDFLATEX+:} false; then : 16777 17549 $as_echo_n "(cached) " >&6 16778 17550 else … … 16817 17589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16818 17590 $as_echo_n "checking for $ac_word... " >&6; } 16819 if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then :17591 if ${ac_cv_path_ac_pt_DX_PDFLATEX+:} false; then : 16820 17592 $as_echo_n "(cached) " >&6 16821 17593 else … … 16880 17652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16881 17653 $as_echo_n "checking for $ac_word... " >&6; } 16882 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :17654 if ${ac_cv_path_DX_MAKEINDEX+:} false; then : 16883 17655 $as_echo_n "(cached) " >&6 16884 17656 else … … 16923 17695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16924 17696 $as_echo_n "checking for $ac_word... " >&6; } 16925 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :17697 if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then : 16926 17698 $as_echo_n "(cached) " >&6 16927 17699 else … … 16986 17758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16987 17759 $as_echo_n "checking for $ac_word... " >&6; } 16988 if test "${ac_cv_path_DX_EGREP+set}" = set; then :17760 if ${ac_cv_path_DX_EGREP+:} false; then : 16989 17761 $as_echo_n "(cached) " >&6 16990 17762 else … … 17029 17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17030 17802 $as_echo_n "checking for $ac_word... " >&6; } 17031 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :17803 if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then : 17032 17804 $as_echo_n "(cached) " >&6 17033 17805 else … … 17185 17957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 17186 17958 $as_echo_n "checking for cos in -lm... " >&6; } 17187 if test "${ac_cv_lib_m_cos+set}" = set; then :17959 if ${ac_cv_lib_m_cos+:} false; then : 17188 17960 $as_echo_n "(cached) " >&6 17189 17961 else … … 17219 17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 17220 17992 $as_echo "$ac_cv_lib_m_cos" >&6; } 17221 if test "x$ac_cv_lib_m_cos" = x ""yes; then :17993 if test "x$ac_cv_lib_m_cos" = xyes; then : 17222 17994 cat >>confdefs.h <<_ACEOF 17223 17995 #define HAVE_LIBM 1 … … 17230 18002 17231 18003 # Needed to compile dim 17232 17233 18004 17234 18005 … … 17239 18010 ac_compiler_gnu=$ac_cv_c_compiler_gnu 17240 18011 17241 a cx_pthread_ok=no18012 ax_pthread_ok=no 17242 18013 17243 18014 # We used to check for pthread.h first, but this fails if pthread.h … … 17274 18045 _ACEOF 17275 18046 if ac_fn_c_try_link "$LINENO"; then : 17276 a cx_pthread_ok=yes18047 ax_pthread_ok=yes 17277 18048 fi 17278 18049 rm -f core conftest.err conftest.$ac_objext \ 17279 18050 conftest$ac_exeext conftest.$ac_ext 17280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $a cx_pthread_ok" >&517281 $as_echo "$a cx_pthread_ok" >&6; }17282 if test x"$a cx_pthread_ok" = xno; then18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 18052 $as_echo "$ax_pthread_ok" >&6; } 18053 if test x"$ax_pthread_ok" = xno; then 17283 18054 PTHREAD_LIBS="" 17284 18055 PTHREAD_CFLAGS="" … … 17298 18069 # which is a program returning the flags for the Pth emulation library. 17299 18070 17300 a cx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"18071 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 17301 18072 17302 18073 # The ordering *is* (sometimes) important. Some notes on the … … 17331 18102 # we'll just look for -pthreads and -lpthread first: 17332 18103 17333 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 18104 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 18105 ;; 18106 18107 *-darwin*) 18108 ax_pthread_flags="-pthread $ax_pthread_flags" 17334 18109 ;; 17335 18110 esac 17336 18111 17337 if test x"$a cx_pthread_ok" = xno; then17338 for flag in $a cx_pthread_flags; do18112 if test x"$ax_pthread_ok" = xno; then 18113 for flag in $ax_pthread_flags; do 17339 18114 17340 18115 case $flag in … … 17350 18125 ;; 17351 18126 17352 17353 18127 pthread-config) 18128 # Extract the first word of "pthread-config", so it can be a program name with args. 17354 18129 set dummy pthread-config; ac_word=$2 17355 18130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17356 18131 $as_echo_n "checking for $ac_word... " >&6; } 17357 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :18132 if ${ac_cv_prog_ax_pthread_config+:} false; then : 17358 18133 $as_echo_n "(cached) " >&6 17359 18134 else 17360 if test -n "$a cx_pthread_config"; then17361 ac_cv_prog_a cx_pthread_config="$acx_pthread_config" # Let the user override the test.18135 if test -n "$ax_pthread_config"; then 18136 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 17362 18137 else 17363 18138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 17368 18143 for ac_exec_ext in '' $ac_executable_extensions; do 17369 18144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17370 ac_cv_prog_a cx_pthread_config="yes"18145 ac_cv_prog_ax_pthread_config="yes" 17371 18146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17372 18147 break 2 … … 17376 18151 IFS=$as_save_IFS 17377 18152 17378 test -z "$ac_cv_prog_a cx_pthread_config" && ac_cv_prog_acx_pthread_config="no"17379 fi 17380 fi 17381 a cx_pthread_config=$ac_cv_prog_acx_pthread_config17382 if test -n "$a cx_pthread_config"; then17383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $a cx_pthread_config" >&517384 $as_echo "$a cx_pthread_config" >&6; }18153 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 18154 fi 18155 fi 18156 ax_pthread_config=$ac_cv_prog_ax_pthread_config 18157 if test -n "$ax_pthread_config"; then 18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 18159 $as_echo "$ax_pthread_config" >&6; } 17385 18160 else 17386 18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 … … 17389 18164 17390 18165 17391 if test x"$acx_pthread_config" = xno; then continue; fi17392 17393 17394 18166 if test x"$ax_pthread_config" = xno; then continue; fi 18167 PTHREAD_CFLAGS="`pthread-config --cflags`" 18168 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 18169 ;; 17395 18170 17396 18171 *) … … 17418 18193 /* end confdefs.h. */ 17419 18194 #include <pthread.h> 18195 static void routine(void *a) { a = 0; } 18196 static void *start_routine(void *a) { return a; } 17420 18197 int 17421 18198 main () 17422 18199 { 17423 pthread_t th; pthread_join(th, 0); 17424 pthread_attr_init(0); pthread_cleanup_push(0, 0); 17425 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 18200 pthread_t th; pthread_attr_t attr; 18201 pthread_create(&th, 0, start_routine, 0); 18202 pthread_join(th, 0); 18203 pthread_attr_init(&attr); 18204 pthread_cleanup_push(routine, 0); 18205 pthread_cleanup_pop(0) /* ; */ 17426 18206 ; 17427 18207 return 0; … … 17429 18209 _ACEOF 17430 18210 if ac_fn_c_try_link "$LINENO"; then : 17431 a cx_pthread_ok=yes18211 ax_pthread_ok=yes 17432 18212 fi 17433 18213 rm -f core conftest.err conftest.$ac_objext \ … … 17437 18217 CFLAGS="$save_CFLAGS" 17438 18218 17439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $a cx_pthread_ok" >&517440 $as_echo "$a cx_pthread_ok" >&6; }17441 if test "x$a cx_pthread_ok" = xyes; then18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 18220 $as_echo "$ax_pthread_ok" >&6; } 18221 if test "x$ax_pthread_ok" = xyes; then 17442 18222 break; 17443 18223 fi … … 17449 18229 17450 18230 # Various other checks: 17451 if test "x$a cx_pthread_ok" = xyes; then18231 if test "x$ax_pthread_ok" = xyes; then 17452 18232 save_LIBS="$LIBS" 17453 18233 LIBS="$PTHREAD_LIBS $LIBS" … … 17456 18236 17457 18237 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 17458 18238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 17459 18239 $as_echo_n "checking for joinable pthread attribute... " >&6; } 17460 17461 17462 18240 attr_name=unknown 18241 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 18242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17463 18243 /* end confdefs.h. */ 17464 18244 #include <pthread.h> … … 17466 18246 main () 17467 18247 { 17468 int attr =$attr; return attr;18248 int attr = $attr; return attr /* ; */ 17469 18249 ; 17470 18250 return 0; … … 17476 18256 rm -f core conftest.err conftest.$ac_objext \ 17477 18257 conftest$ac_exeext conftest.$ac_ext 17478 18258 done 17479 18259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 17480 18260 $as_echo "$attr_name" >&6; } … … 17500 18280 fi 17501 18281 18282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 18283 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 18284 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 18285 $as_echo_n "(cached) " >&6 18286 else 18287 18288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18289 /* end confdefs.h. */ 18290 #include <pthread.h> 18291 int 18292 main () 18293 { 18294 int i = PTHREAD_PRIO_INHERIT; 18295 ; 18296 return 0; 18297 } 18298 _ACEOF 18299 if ac_fn_c_try_link "$LINENO"; then : 18300 ax_cv_PTHREAD_PRIO_INHERIT=yes 18301 else 18302 ax_cv_PTHREAD_PRIO_INHERIT=no 18303 fi 18304 rm -f core conftest.err conftest.$ac_objext \ 18305 conftest$ac_exeext conftest.$ac_ext 18306 18307 fi 18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 18309 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 18310 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 18311 18312 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 18313 18314 fi 18315 17502 18316 LIBS="$save_LIBS" 17503 18317 CFLAGS="$save_CFLAGS" 17504 18318 17505 18319 # More AIX lossage: must compile with xlc_r or cc_r 17506 18320 if test x"$GCC" != xyes; then 17507 18321 for ac_prog in xlc_r cc_r 17508 18322 do … … 17511 18325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17512 18326 $as_echo_n "checking for $ac_word... " >&6; } 17513 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :18327 if ${ac_cv_prog_PTHREAD_CC+:} false; then : 17514 18328 $as_echo_n "(cached) " >&6 17515 18329 else … … 17550 18364 else 17551 18365 PTHREAD_CC=$CC 17552 18366 fi 17553 18367 else 17554 18368 PTHREAD_CC="$CC" … … 17560 18374 17561 18375 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 17562 if test x"$a cx_pthread_ok" = xyes; then18376 if test x"$ax_pthread_ok" = xyes; then 17563 18377 17564 18378 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h … … 17566 18380 : 17567 18381 else 17568 a cx_pthread_ok=no18382 ax_pthread_ok=no 17569 18383 17570 18384 fi … … 17658 18472 do : 17659 18473 ac_fn_c_check_header_mongrel "$LINENO" "panel.h" "ac_cv_header_panel_h" "$ac_includes_default" 17660 if test "x$ac_cv_header_panel_h" = x ""yes; then :18474 if test "x$ac_cv_header_panel_h" = xyes; then : 17661 18475 cat >>confdefs.h <<_ACEOF 17662 18476 #define HAVE_PANEL_H 1 … … 17673 18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for update_panels in -lpanel" >&5 17674 18488 $as_echo_n "checking for update_panels in -lpanel... " >&6; } 17675 if test "${ac_cv_lib_panel_update_panels+set}" = set; then :18489 if ${ac_cv_lib_panel_update_panels+:} false; then : 17676 18490 $as_echo_n "(cached) " >&6 17677 18491 else … … 17707 18521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_panel_update_panels" >&5 17708 18522 $as_echo "$ac_cv_lib_panel_update_panels" >&6; } 17709 if test "x$ac_cv_lib_panel_update_panels" = x ""yes; then :18523 if test "x$ac_cv_lib_panel_update_panels" = xyes; then : 17710 18524 cat >>confdefs.h <<_ACEOF 17711 18525 #define HAVE_LIBPANEL 1 … … 17735 18549 else 17736 18550 case $x_includes,$x_libraries in #( 17737 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 17738 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :18551 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 18552 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 17739 18553 $as_echo_n "(cached) " >&6 17740 18554 else … … 18013 18827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 18014 18828 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 18015 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :18829 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 18016 18830 $as_echo_n "(cached) " >&6 18017 18831 else … … 18047 18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 18048 18862 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 18049 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x ""yes; then :18863 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 18050 18864 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 18051 18865 fi … … 18054 18868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 18055 18869 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 18056 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :18870 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 18057 18871 $as_echo_n "(cached) " >&6 18058 18872 else … … 18088 18902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 18089 18903 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 18090 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x ""yes; then :18904 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 18091 18905 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 18092 18906 fi … … 18107 18921 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 18108 18922 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 18109 if test "x$ac_cv_func_gethostbyname" = x ""yes; then :18923 if test "x$ac_cv_func_gethostbyname" = xyes; then : 18110 18924 18111 18925 fi … … 18114 18928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 18115 18929 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 18116 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :18930 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 18117 18931 $as_echo_n "(cached) " >&6 18118 18932 else … … 18148 18962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 18149 18963 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 18150 if test "x$ac_cv_lib_nsl_gethostbyname" = x ""yes; then :18964 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 18151 18965 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 18152 18966 fi … … 18155 18969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 18156 18970 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 18157 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :18971 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 18158 18972 $as_echo_n "(cached) " >&6 18159 18973 else … … 18189 19003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 18190 19004 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 18191 if test "x$ac_cv_lib_bsd_gethostbyname" = x ""yes; then :19005 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 18192 19006 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 18193 19007 fi … … 18204 19018 # if connect needs -lnsl, so does gethostbyname. 18205 19019 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 18206 if test "x$ac_cv_func_connect" = x ""yes; then :19020 if test "x$ac_cv_func_connect" = xyes; then : 18207 19021 18208 19022 fi … … 18211 19025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 18212 19026 $as_echo_n "checking for connect in -lsocket... " >&6; } 18213 if test "${ac_cv_lib_socket_connect+set}" = set; then :19027 if ${ac_cv_lib_socket_connect+:} false; then : 18214 19028 $as_echo_n "(cached) " >&6 18215 19029 else … … 18245 19059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 18246 19060 $as_echo "$ac_cv_lib_socket_connect" >&6; } 18247 if test "x$ac_cv_lib_socket_connect" = x ""yes; then :19061 if test "x$ac_cv_lib_socket_connect" = xyes; then : 18248 19062 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 18249 19063 fi … … 18253 19067 # Guillermo Gomez says -lposix is necessary on A/UX. 18254 19068 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 18255 if test "x$ac_cv_func_remove" = x ""yes; then :19069 if test "x$ac_cv_func_remove" = xyes; then : 18256 19070 18257 19071 fi … … 18260 19074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 18261 19075 $as_echo_n "checking for remove in -lposix... " >&6; } 18262 if test "${ac_cv_lib_posix_remove+set}" = set; then :19076 if ${ac_cv_lib_posix_remove+:} false; then : 18263 19077 $as_echo_n "(cached) " >&6 18264 19078 else … … 18294 19108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 18295 19109 $as_echo "$ac_cv_lib_posix_remove" >&6; } 18296 if test "x$ac_cv_lib_posix_remove" = x ""yes; then :19110 if test "x$ac_cv_lib_posix_remove" = xyes; then : 18297 19111 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 18298 19112 fi … … 18302 19116 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 18303 19117 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 18304 if test "x$ac_cv_func_shmat" = x ""yes; then :19118 if test "x$ac_cv_func_shmat" = xyes; then : 18305 19119 18306 19120 fi … … 18309 19123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 18310 19124 $as_echo_n "checking for shmat in -lipc... " >&6; } 18311 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :19125 if ${ac_cv_lib_ipc_shmat+:} false; then : 18312 19126 $as_echo_n "(cached) " >&6 18313 19127 else … … 18343 19157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 18344 19158 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 18345 if test "x$ac_cv_lib_ipc_shmat" = x ""yes; then :19159 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 18346 19160 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 18347 19161 fi … … 18361 19175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 18362 19176 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 18363 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :19177 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 18364 19178 $as_echo_n "(cached) " >&6 18365 19179 else … … 18395 19209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 18396 19210 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 18397 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x ""yes; then :19211 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 18398 19212 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 18399 19213 fi … … 18406 19220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libXp is available" >&5 18407 19221 $as_echo_n "checking whether libXp is available... " >&6; } 18408 if test "${lt_cv_libxp+set}" = set; then :19222 if ${lt_cv_libxp+:} false; then : 18409 19223 $as_echo_n "(cached) " >&6 18410 19224 else … … 18499 19313 # 18500 19314 if test "$motif_includes" = ""; then 18501 if test "${ac_cv_motif_includes+set}" = set; then :19315 if ${ac_cv_motif_includes+:} false; then : 18502 19316 $as_echo_n "(cached) " >&6 18503 19317 else … … 18573 19387 # 18574 19388 if test "$motif_libraries" = ""; then 18575 if test "${ac_cv_motif_libraries+set}" = set; then :19389 if ${ac_cv_motif_libraries+:} false; then : 18576 19390 $as_echo_n "(cached) " >&6 18577 19391 else … … 18658 19472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libXp is available" >&5 18659 19473 $as_echo_n "checking whether libXp is available... " >&6; } 18660 if test "${lt_cv_libxp+set}" = set; then :19474 if ${lt_cv_libxp+:} false; then : 18661 19475 $as_echo_n "(cached) " >&6 18662 19476 else … … 18818 19632 18819 19633 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 18820 if test "x$ac_cv_header_zlib_h" = x ""yes; then :19634 if test "x$ac_cv_header_zlib_h" = xyes; then : 18821 19635 18822 19636 else … … 18827 19641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 18828 19642 $as_echo_n "checking for inflateEnd in -lz... " >&6; } 18829 if test "${ac_cv_lib_z_inflateEnd+set}" = set; then :19643 if ${ac_cv_lib_z_inflateEnd+:} false; then : 18830 19644 $as_echo_n "(cached) " >&6 18831 19645 else … … 18861 19675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 18862 19676 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; } 18863 if test "x$ac_cv_lib_z_inflateEnd" = x ""yes; then :19677 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then : 18864 19678 cat >>confdefs.h <<_ACEOF 18865 19679 #define HAVE_LIBZ 1 … … 18934 19748 18935 19749 ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default" 18936 if test "x$ac_cv_header_GL_gl_h" = x ""yes; then :19750 if test "x$ac_cv_header_GL_gl_h" = xyes; then : 18937 19751 18938 19752 else … … 18943 19757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glLoadIdentity in -lGL" >&5 18944 19758 $as_echo_n "checking for glLoadIdentity in -lGL... " >&6; } 18945 if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then :19759 if ${ac_cv_lib_GL_glLoadIdentity+:} false; then : 18946 19760 $as_echo_n "(cached) " >&6 18947 19761 else … … 18977 19791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glLoadIdentity" >&5 18978 19792 $as_echo "$ac_cv_lib_GL_glLoadIdentity" >&6; } 18979 if test "x$ac_cv_lib_GL_glLoadIdentity" = x ""yes; then :19793 if test "x$ac_cv_lib_GL_glLoadIdentity" = xyes; then : 18980 19794 cat >>confdefs.h <<_ACEOF 18981 19795 #define HAVE_LIBGL 1 … … 19048 19862 19049 19863 ac_fn_c_check_header_mongrel "$LINENO" "GL/glu.h" "ac_cv_header_GL_glu_h" "$ac_includes_default" 19050 if test "x$ac_cv_header_GL_glu_h" = x ""yes; then :19864 if test "x$ac_cv_header_GL_glu_h" = xyes; then : 19051 19865 19052 19866 else … … 19057 19871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluNewTess in -lGLU" >&5 19058 19872 $as_echo_n "checking for gluNewTess in -lGLU... " >&6; } 19059 if test "${ac_cv_lib_GLU_gluNewTess+set}" = set; then :19873 if ${ac_cv_lib_GLU_gluNewTess+:} false; then : 19060 19874 $as_echo_n "(cached) " >&6 19061 19875 else … … 19091 19905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluNewTess" >&5 19092 19906 $as_echo "$ac_cv_lib_GLU_gluNewTess" >&6; } 19093 if test "x$ac_cv_lib_GLU_gluNewTess" = x ""yes; then :19907 if test "x$ac_cv_lib_GLU_gluNewTess" = xyes; then : 19094 19908 cat >>confdefs.h <<_ACEOF 19095 19909 #define HAVE_LIBGLU 1 … … 19175 19989 19176 19990 ac_fn_c_check_header_mongrel "$LINENO" "fitsio.h" "ac_cv_header_fitsio_h" "$ac_includes_default" 19177 if test "x$ac_cv_header_fitsio_h" = x ""yes; then :19991 if test "x$ac_cv_header_fitsio_h" = xyes; then : 19178 19992 19179 19993 else … … 19184 19998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffpss in -lcfitsio" >&5 19185 19999 $as_echo_n "checking for ffpss in -lcfitsio... " >&6; } 19186 if test "${ac_cv_lib_cfitsio_ffpss+set}" = set; then :20000 if ${ac_cv_lib_cfitsio_ffpss+:} false; then : 19187 20001 $as_echo_n "(cached) " >&6 19188 20002 else … … 19218 20032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfitsio_ffpss" >&5 19219 20033 $as_echo "$ac_cv_lib_cfitsio_ffpss" >&6; } 19220 if test "x$ac_cv_lib_cfitsio_ffpss" = x ""yes; then :20034 if test "x$ac_cv_lib_cfitsio_ffpss" = xyes; then : 19221 20035 cat >>confdefs.h <<_ACEOF 19222 20036 #define HAVE_LIBCFITSIO 1 … … 19302 20116 19303 20117 ac_fn_cxx_check_header_mongrel "$LINENO" "CCfits/CCfits" "ac_cv_header_CCfits_CCfits" "$ac_includes_default" 19304 if test "x$ac_cv_header_CCfits_CCfits" = x ""yes; then :20118 if test "x$ac_cv_header_CCfits_CCfits" = xyes; then : 19305 20119 19306 20120 else … … 19311 20125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lCCfits" >&5 19312 20126 $as_echo_n "checking for main in -lCCfits... " >&6; } 19313 if test "${ac_cv_lib_CCfits_main+set}" = set; then :20127 if ${ac_cv_lib_CCfits_main+:} false; then : 19314 20128 $as_echo_n "(cached) " >&6 19315 20129 else … … 19339 20153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_CCfits_main" >&5 19340 20154 $as_echo "$ac_cv_lib_CCfits_main" >&6; } 19341 if test "x$ac_cv_lib_CCfits_main" = x ""yes; then :20155 if test "x$ac_cv_lib_CCfits_main" = xyes; then : 19342 20156 cat >>confdefs.h <<_ACEOF 19343 20157 #define HAVE_LIBCCFITS 1 … … 19409 20223 case "$MYSQL_C_INC_DIR" in 19410 20224 /* ) ;; 19411 * ) as_fn_error $? "The MySQL include directory ($MYSQL_C_INC_DIR) must be an absolute path." "$LINENO" 5 20225 * ) as_fn_error $? "The MySQL include directory ($MYSQL_C_INC_DIR) must be an absolute path." "$LINENO" 5 ;; 19412 20226 esac 19413 20227 … … 19445 20259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL++ library location" >&5 19446 20260 $as_echo_n "checking for MySQL++ library location... " >&6; } 19447 if test "${ac_cv_mysqlpp_lib+set}" = set; then :20261 if ${ac_cv_mysqlpp_lib+:} false; then : 19448 20262 $as_echo_n "(cached) " >&6 19449 20263 else … … 19467 20281 case "$ac_cv_mysqlpp_lib" in 19468 20282 /* ) ;; 19469 * ) as_fn_error $? "The MySQL++ library directory ($ac_cv_mysqlpp_lib) must be an absolute path." "$LINENO" 5 20283 * ) as_fn_error $? "The MySQL++ library directory ($ac_cv_mysqlpp_lib) must be an absolute path." "$LINENO" 5 ;; 19470 20284 esac 19471 20285 … … 19478 20292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL++ include path" >&5 19479 20293 $as_echo_n "checking for MySQL++ include path... " >&6; } 19480 if test "${ac_cv_mysqlpp_inc+set}" = set; then :20294 if ${ac_cv_mysqlpp_inc+:} false; then : 19481 20295 $as_echo_n "(cached) " >&6 19482 20296 else … … 19498 20312 case "$ac_cv_mysqlpp_inc" in 19499 20313 /* ) ;; 19500 * ) as_fn_error $? "The MySQL++ header directory ($ac_cv_mysqlpp_inc) must be an absolute path." "$LINENO" 5 20314 * ) as_fn_error $? "The MySQL++ header directory ($ac_cv_mysqlpp_inc) must be an absolute path." "$LINENO" 5 ;; 19501 20315 esac 19502 20316 … … 19547 20361 withval=$with_boost; 19548 20362 if test "$withval" = "no"; then 19549 20363 want_boost="no" 19550 20364 elif test "$withval" = "yes"; then 19551 20365 want_boost="yes" 19552 20366 ac_boost_path="" 19553 20367 else 19554 20368 want_boost="yes" 19555 20369 ac_boost_path="$withval" 19556 20370 fi 19557 20371 19558 20372 else … … 19566 20380 if test "${with_boost_libdir+set}" = set; then : 19567 20381 withval=$with_boost_libdir; 19568 if test -d $withval20382 if test -d "$withval" 19569 20383 then 19570 20384 ac_boost_lib_path="$withval" … … 19580 20394 19581 20395 if test "x$want_boost" = "xyes"; then 19582 19583 19584 19585 19586 19587 19588 19589 19590 19591 20396 boost_lib_version_req=1.40 20397 boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'` 20398 boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'` 20399 boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'` 20400 boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 20401 if test "x$boost_lib_version_req_sub_minor" = "x" ; then 20402 boost_lib_version_req_sub_minor="0" 20403 fi 20404 WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor` 20405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5 19592 20406 $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; } 19593 succeeded=no 19594 19595 if test "$ac_boost_path" != ""; then 19596 BOOST_LDFLAGS="-L$ac_boost_path/lib" 19597 BOOST_CPPFLAGS="-I$ac_boost_path/include" 19598 else 19599 for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do 19600 if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then 19601 BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib" 19602 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include" 19603 break; 19604 fi 19605 done 19606 fi 20407 succeeded=no 20408 20409 libsubdirs="lib" 20410 ax_arch=`uname -m` 20411 if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then 20412 libsubdirs="lib64 lib lib64" 20413 fi 20414 20415 if test "$ac_boost_path" != ""; then 20416 BOOST_CPPFLAGS="-I$ac_boost_path/include" 20417 for ac_boost_path_tmp in $libsubdirs; do 20418 if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then 20419 BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp" 20420 break 20421 fi 20422 done 20423 elif test "$cross_compiling" != yes; then 20424 for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do 20425 if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then 20426 for libsubdir in $libsubdirs ; do 20427 if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi 20428 done 20429 BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir" 20430 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include" 20431 break; 20432 fi 20433 done 20434 fi 19607 20435 19608 20436 if test "$ac_boost_lib_path" != ""; then … … 19610 20438 fi 19611 20439 19612 CPPFLAGS_SAVED="$CPPFLAGS" 19613 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 19614 export CPPFLAGS 19615 19616 LDFLAGS_SAVED="$LDFLAGS" 19617 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" 19618 export LDFLAGS 19619 19620 ac_ext=cpp 20440 CPPFLAGS_SAVED="$CPPFLAGS" 20441 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 20442 export CPPFLAGS 20443 20444 LDFLAGS_SAVED="$LDFLAGS" 20445 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" 20446 export LDFLAGS 20447 20448 20449 ac_ext=cpp 19621 20450 ac_cpp='$CXXCPP $CPPFLAGS' 19622 20451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' … … 19624 20453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19625 20454 19626 20455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19627 20456 /* end confdefs.h. */ 19628 20457 19629 20458 #include <boost/version.hpp> 19630 20459 19631 20460 int … … 19633 20462 { 19634 20463 19635 19636 19637 19638 19639 20464 #if BOOST_VERSION >= $WANT_BOOST_VERSION 20465 // Everything is okay 20466 #else 20467 # error Boost version is too old 20468 #endif 19640 20469 19641 20470 ; … … 19647 20476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19648 20477 $as_echo "yes" >&6; } 19649 19650 20478 succeeded=yes 20479 found_system=yes 19651 20480 19652 20481 fi 19653 20482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19654 20483 ac_ext=cpp 19655 20484 ac_cpp='$CXXCPP $CPPFLAGS' 19656 20485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' … … 19661 20490 19662 20491 19663 if test "x$succeeded" != "xyes"; then 19664 _version=0 19665 if test "$ac_boost_path" != ""; then 19666 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then 19667 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do 19668 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` 19669 V_CHECK=`expr $_version_tmp \> $_version` 19670 if test "$V_CHECK" = "1" ; then 19671 _version=$_version_tmp 19672 fi 19673 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'` 19674 BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE" 19675 done 19676 fi 19677 else 19678 for ac_boost_path in /usr /usr/local /opt /opt/local ; do 19679 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then 19680 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do 19681 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` 19682 V_CHECK=`expr $_version_tmp \> $_version` 19683 if test "$V_CHECK" = "1" ; then 19684 _version=$_version_tmp 19685 best_path=$ac_boost_path 19686 fi 19687 done 19688 fi 19689 done 19690 19691 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'` 19692 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE" 19693 if test "$ac_boost_lib_path" = "" 19694 then 19695 BOOST_LDFLAGS="-L$best_path/lib" 20492 if test "x$succeeded" != "xyes"; then 20493 _version=0 20494 if test "$ac_boost_path" != ""; then 20495 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then 20496 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do 20497 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` 20498 V_CHECK=`expr $_version_tmp \> $_version` 20499 if test "$V_CHECK" = "1" ; then 20500 _version=$_version_tmp 20501 fi 20502 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'` 20503 BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE" 20504 done 19696 20505 fi 19697 19698 if test "x$BOOST_ROOT" != "x"; then 19699 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then 19700 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'` 19701 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'` 19702 stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'` 19703 V_CHECK=`expr $stage_version_shorten \>\= $_version` 20506 else 20507 if test "$cross_compiling" != yes; then 20508 for ac_boost_path in /usr /usr/local /opt /opt/local ; do 20509 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then 20510 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do 20511 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` 20512 V_CHECK=`expr $_version_tmp \> $_version` 20513 if test "$V_CHECK" = "1" ; then 20514 _version=$_version_tmp 20515 best_path=$ac_boost_path 20516 fi 20517 done 20518 fi 20519 done 20520 20521 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'` 20522 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE" 20523 if test "$ac_boost_lib_path" = ""; then 20524 for libsubdir in $libsubdirs ; do 20525 if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi 20526 done 20527 BOOST_LDFLAGS="-L$best_path/$libsubdir" 20528 fi 20529 fi 20530 20531 if test "x$BOOST_ROOT" != "x"; then 20532 for libsubdir in $libsubdirs ; do 20533 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi 20534 done 20535 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then 20536 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'` 20537 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'` 20538 stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'` 20539 V_CHECK=`expr $stage_version_shorten \>\= $_version` 19704 20540 if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then 19705 20541 { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5 19706 20542 $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;} 19707 19708 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"19709 19710 19711 19712 19713 19714 19715 19716 19717 19718 19719 20543 BOOST_CPPFLAGS="-I$BOOST_ROOT" 20544 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir" 20545 fi 20546 fi 20547 fi 20548 fi 20549 20550 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 20551 export CPPFLAGS 20552 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" 20553 export LDFLAGS 20554 20555 ac_ext=cpp 19720 20556 ac_cpp='$CXXCPP $CPPFLAGS' 19721 20557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' … … 19723 20559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19724 20560 19725 20561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19726 20562 /* end confdefs.h. */ 19727 20563 19728 20564 #include <boost/version.hpp> 19729 20565 19730 20566 int … … 19732 20568 { 19733 20569 19734 19735 19736 19737 19738 20570 #if BOOST_VERSION >= $WANT_BOOST_VERSION 20571 // Everything is okay 20572 #else 20573 # error Boost version is too old 20574 #endif 19739 20575 19740 20576 ; … … 19744 20580 if ac_fn_cxx_try_compile "$LINENO"; then : 19745 20581 19746 20582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19747 20583 $as_echo "yes" >&6; } 19748 19749 20584 succeeded=yes 20585 found_system=yes 19750 20586 19751 20587 fi 19752 20588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19753 20589 ac_ext=cpp 19754 20590 ac_cpp='$CXXCPP $CPPFLAGS' 19755 20591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' … … 19757 20593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19758 20594 19759 fi 19760 19761 if test "$succeeded" != "yes" ; then 19762 if test "$_version" = "0" ; then 19763 as_fn_error $? "We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." "$LINENO" 5 19764 else 19765 { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5 20595 fi 20596 20597 if test "$succeeded" != "yes" ; then 20598 if test "$_version" = "0" ; then 20599 { $as_echo "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5 20600 $as_echo "$as_me: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;} 20601 else 20602 { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5 19766 20603 $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;} 19767 fi 19768 else 20604 fi 20605 # execute ACTION-IF-NOT-FOUND (if present): 20606 as_fn_error $? "The boost C++ libraries (>=1.40) are not properly installed." "$LINENO" 5 20607 20608 else 19769 20609 19770 20610 … … 19772 20612 $as_echo "#define HAVE_BOOST /**/" >>confdefs.h 19773 20613 19774 fi 19775 19776 CPPFLAGS="$CPPFLAGS_SAVED" 19777 LDFLAGS="$LDFLAGS_SAVED" 20614 # execute ACTION-IF-FOUND (if present): 20615 : 20616 fi 20617 20618 CPPFLAGS="$CPPFLAGS_SAVED" 20619 LDFLAGS="$LDFLAGS_SAVED" 19778 20620 fi 19779 20621 … … 19803 20645 else 19804 20646 want_boost="yes" 19805 20647 ax_boost_user_system_lib="$withval" 19806 20648 fi 19807 20649 … … 19825 20667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5 19826 20668 $as_echo_n "checking whether the Boost::System library is available... " >&6; } 19827 if test "${ax_cv_boost_system+set}" = set; then :20669 if ${ax_cv_boost_system+:} false; then : 19828 20670 $as_echo_n "(cached) " >&6 19829 20671 else … … 19874 20716 LDFLAGS_SAVE=$LDFLAGS 19875 20717 if test "x$ax_boost_user_system_lib" = "x"; then 19876 for libextension in `ls $BOOSTLIBDIR/libboost_system*. {so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.a*$;\1;'` ; do20718 for libextension in `ls $BOOSTLIBDIR/libboost_system*.so* $BOOSTLIBDIR/libboost_system*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.a*$;\1;'` ; do 19877 20719 ax_lib=${libextension} 19878 20720 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` 19879 20721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5 19880 20722 $as_echo_n "checking for exit in -l$ax_lib... " >&6; } 19881 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :20723 if eval \${$as_ac_Lib+:} false; then : 19882 20724 $as_echo_n "(cached) " >&6 19883 20725 else … … 19920 20762 fi 19921 20763 19922 20764 done 19923 20765 if test "x$link_system" != "xyes"; then 19924 20766 for libextension in `ls $BOOSTLIBDIR/boost_system*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_system.*\)\.dll.*$;\1;' -e 's;^\(boost_system.*\)\.a*$;\1;'` ; do … … 19927 20769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5 19928 20770 $as_echo_n "checking for exit in -l$ax_lib... " >&6; } 19929 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :20771 if eval \${$as_ac_Lib+:} false; then : 19930 20772 $as_echo_n "(cached) " >&6 19931 20773 else … … 19968 20810 fi 19969 20811 19970 20812 done 19971 20813 fi 19972 20814 … … 19976 20818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5 19977 20819 $as_echo_n "checking for exit in -l$ax_lib... " >&6; } 19978 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :20820 if eval \${$as_ac_Lib+:} false; then : 19979 20821 $as_echo_n "(cached) " >&6 19980 20822 else … … 20020 20862 20021 20863 fi 20864 if test "x$ax_lib" = "x"; then 20865 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5 20866 fi 20022 20867 if test "x$link_system" = "xno"; then 20023 20868 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5 … … 20026 20871 20027 20872 CPPFLAGS="$CPPFLAGS_SAVED" 20028 20873 LDFLAGS="$LDFLAGS_SAVED" 20029 20874 fi 20030 20875 … … 20045 20890 else 20046 20891 want_boost="yes" 20047 20892 ax_boost_user_asio_lib="$withval" 20048 20893 fi 20049 20894 … … 20066 20911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::ASIO library is available" >&5 20067 20912 $as_echo_n "checking whether the Boost::ASIO library is available... " >&6; } 20068 if test "${ax_cv_boost_asio+set}" = set; then :20913 if ${ax_cv_boost_asio+:} false; then : 20069 20914 $as_echo_n "(cached) " >&6 20070 20915 else … … 20123 20968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5 20124 20969 $as_echo_n "checking for main in -l$ax_lib... " >&6; } 20125 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :20970 if eval \${$as_ac_Lib+:} false; then : 20126 20971 $as_echo_n "(cached) " >&6 20127 20972 else … … 20158 21003 fi 20159 21004 20160 21005 done 20161 21006 else 20162 21007 for ax_lib in $ax_boost_user_asio_lib $BN-$ax_boost_user_asio_lib; do … … 20164 21009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5 20165 21010 $as_echo_n "checking for main in -l$ax_lib... " >&6; } 20166 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :21011 if eval \${$as_ac_Lib+:} false; then : 20167 21012 $as_echo_n "(cached) " >&6 20168 21013 else … … 20202 21047 20203 21048 fi 21049 if test "x$ax_lib" = "x"; then 21050 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5 21051 fi 20204 21052 if test "x$link_asio" = "xno"; then 20205 21053 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5 … … 20208 21056 20209 21057 CPPFLAGS="$CPPFLAGS_SAVED" 20210 21058 LDFLAGS="$LDFLAGS_SAVED" 20211 21059 fi 20212 21060 … … 20227 21075 else 20228 21076 want_boost="yes" 20229 21077 ax_boost_user_date_time_lib="$withval" 20230 21078 fi 20231 21079 … … 20248 21096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Date_Time library is available" >&5 20249 21097 $as_echo_n "checking whether the Boost::Date_Time library is available... " >&6; } 20250 if test "${ax_cv_boost_date_time+set}" = set; then :21098 if ${ax_cv_boost_date_time+:} false; then : 20251 21099 $as_echo_n "(cached) " >&6 20252 21100 else … … 20292 21140 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'` 20293 21141 if test "x$ax_boost_user_date_time_lib" = "x"; then 20294 for libextension in `ls $BOOSTLIBDIR/libboost_date_time*. {so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_date_time.*\)\.so.*$;\1;' -e 's;^lib\(boost_date_time.*\)\.a*$;\1;'` ; do21142 for libextension in `ls $BOOSTLIBDIR/libboost_date_time*.so* $BOOSTLIBDIR/libboost_date_time*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_date_time.*\)\.so.*$;\1;' -e 's;^lib\(boost_date_time.*\)\.a*$;\1;'` ; do 20295 21143 ax_lib=${libextension} 20296 21144 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` 20297 21145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5 20298 21146 $as_echo_n "checking for exit in -l$ax_lib... " >&6; } 20299 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :21147 if eval \${$as_ac_Lib+:} false; then : 20300 21148 $as_echo_n "(cached) " >&6 20301 21149 else … … 20338 21186 fi 20339 21187 20340 21188 done 20341 21189 if test "x$link_date_time" != "xyes"; then 20342 21190 for libextension in `ls $BOOSTLIBDIR/boost_date_time*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_date_time.*\)\.dll.*$;\1;' -e 's;^\(boost_date_time.*\)\.a*$;\1;'` ; do … … 20345 21193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5 20346 21194 $as_echo_n "checking for exit in -l$ax_lib... " >&6; } 20347 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :21195 if eval \${$as_ac_Lib+:} false; then : 20348 21196 $as_echo_n "(cached) " >&6 20349 21197 else … … 20386 21234 fi 20387 21235 20388 21236 done 20389 21237 fi 20390 21238 … … 20394 21242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5 20395 21243 $as_echo_n "checking for main in -l$ax_lib... " >&6; } 20396 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :21244 if eval \${$as_ac_Lib+:} false; then : 20397 21245 $as_echo_n "(cached) " >&6 20398 21246 else … … 20432 21280 20433 21281 fi 21282 if test "x$ax_lib" = "x"; then 21283 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5 21284 fi 20434 21285 if test "x$link_date_time" != "xyes"; then 20435 21286 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5 … … 20438 21289 20439 21290 CPPFLAGS="$CPPFLAGS_SAVED" 20440 21291 LDFLAGS="$LDFLAGS_SAVED" 20441 21292 fi 20442 21293 … … 20457 21308 else 20458 21309 want_boost="yes" 20459 21310 ax_boost_user_filesystem_lib="$withval" 20460 21311 fi 20461 21312 … … 20482 21333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Filesystem library is available" >&5 20483 21334 $as_echo_n "checking whether the Boost::Filesystem library is available... " >&6; } 20484 if test "${ax_cv_boost_filesystem+set}" = set; then :21335 if ${ax_cv_boost_filesystem+:} false; then : 20485 21336 $as_echo_n "(cached) " >&6 20486 21337 else … … 20526 21377 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'` 20527 21378 if test "x$ax_boost_user_filesystem_lib" = "x"; then 20528 for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*. {so,dylib,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.so.*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.a*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.dylib$;\1;'` ; do21379 for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*.so* $BOOSTLIBDIR/libboost_filesystem*.dylib* $BOOSTLIBDIR/libboost_filesystem*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.so.*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.a*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.dylib$;\1;'` ; do 20529 21380 ax_lib=${libextension} 20530 21381 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` 20531 21382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5 20532 21383 $as_echo_n "checking for exit in -l$ax_lib... " >&6; } 20533 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :21384 if eval \${$as_ac_Lib+:} false; then : 20534 21385 $as_echo_n "(cached) " >&6 20535 21386 else … … 20572 21423 fi 20573 21424 20574 20575 if test "x$link_ program_options" != "xyes"; then21425 done 21426 if test "x$link_filesystem" != "xyes"; then 20576 21427 for libextension in `ls $BOOSTLIBDIR/boost_filesystem*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_filesystem.*\)\.dll.*$;\1;' -e 's;^\(boost_filesystem.*\)\.a*$;\1;'` ; do 20577 21428 ax_lib=${libextension} … … 20579 21430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5 20580 21431 $as_echo_n "checking for exit in -l$ax_lib... " >&6; } 20581 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :21432 if eval \${$as_ac_Lib+:} false; then : 20582 21433 $as_echo_n "(cached) " >&6 20583 21434 else … … 20620 21471 fi 20621 21472 20622 20623 21473 done 21474 fi 20624 21475 else 20625 21476 for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do … … 20627 21478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5 20628 21479 $as_echo_n "checking for exit in -l$ax_lib... " >&6; } 20629 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :21480 if eval \${$as_ac_Lib+:} false; then : 20630 21481 $as_echo_n "(cached) " >&6 20631 21482 else … … 20671 21522 20672 21523 fi 21524 if test "x$ax_lib" = "x"; then 21525 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5 21526 fi 20673 21527 if test "x$link_filesystem" != "xyes"; then 20674 21528 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5 … … 20677 21531 20678 21532 CPPFLAGS="$CPPFLAGS_SAVED" 20679 21533 LDFLAGS="$LDFLAGS_SAVED" 20680 21534 LIBS="$LIBS_SAVED" 20681 21535 fi … … 20697 21551 else 20698 21552 want_boost="yes" 20699 21553 ax_boost_user_program_options_lib="$withval" 20700 21554 fi 20701 21555 … … 20717 21571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Program_Options library is available" >&5 20718 21572 $as_echo_n "checking whether the Boost::Program_Options library is available... " >&6; } 20719 if test "${ax_cv_boost_program_options+set}" = set; then :21573 if ${ax_cv_boost_program_options+:} false; then : 20720 21574 $as_echo_n "(cached) " >&6 20721 21575 else … … 20726 21580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20727 21581 20728 21582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20729 21583 /* end confdefs.h. */ 20730 21584 #include <boost/program_options.hpp> … … 20745 21599 fi 20746 21600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20747 21601 ac_ext=cpp 20748 21602 ac_cpp='$CXXCPP $CPPFLAGS' 20749 21603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' … … 20766 21620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5 20767 21621 $as_echo_n "checking for exit in -l$ax_lib... " >&6; } 20768 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :21622 if eval \${$as_ac_Lib+:} false; then : 20769 21623 $as_echo_n "(cached) " >&6 20770 21624 else … … 20807 21661 fi 20808 21662 20809 21663 done 20810 21664 if test "x$link_program_options" != "xyes"; then 20811 21665 for libextension in `ls $BOOSTLIBDIR/boost_program_options*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.a*$;\1;'` ; do … … 20814 21668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5 20815 21669 $as_echo_n "checking for exit in -l$ax_lib... " >&6; } 20816 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :21670 if eval \${$as_ac_Lib+:} false; then : 20817 21671 $as_echo_n "(cached) " >&6 20818 21672 else … … 20855 21709 fi 20856 21710 20857 21711 done 20858 21712 fi 20859 21713 else … … 20862 21716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5 20863 21717 $as_echo_n "checking for main in -l$ax_lib... " >&6; } 20864 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :21718 if eval \${$as_ac_Lib+:} false; then : 20865 21719 $as_echo_n "(cached) " >&6 20866 21720 else … … 20899 21753 done 20900 21754 fi 21755 if test "x$ax_lib" = "x"; then 21756 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5 21757 fi 20901 21758 if test "x$link_program_options" != "xyes"; then 20902 21759 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5 … … 20904 21761 fi 20905 21762 CPPFLAGS="$CPPFLAGS_SAVED" 20906 21763 LDFLAGS="$LDFLAGS_SAVED" 20907 21764 fi 20908 21765 … … 20923 21780 else 20924 21781 want_boost="yes" 20925 21782 ax_boost_user_regex_lib="$withval" 20926 21783 fi 20927 21784 … … 20944 21801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Regex library is available" >&5 20945 21802 $as_echo_n "checking whether the Boost::Regex library is available... " >&6; } 20946 if test "${ax_cv_boost_regex+set}" = set; then :21803 if ${ax_cv_boost_regex+:} false; then : 20947 21804 $as_echo_n "(cached) " >&6 20948 21805 else … … 20987 21844 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'` 20988 21845 if test "x$ax_boost_user_regex_lib" = "x"; then 20989 for libextension in `ls $BOOSTLIBDIR/libboost_regex*. {so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_regex.*\)\.so.*$;\1;' -e 's;^lib\(boost_regex.*\)\.a*$;\1;'` ; do21846 for libextension in `ls $BOOSTLIBDIR/libboost_regex*.so* $BOOSTLIBDIR/libboost_regex*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_regex.*\)\.so.*$;\1;' -e 's;^lib\(boost_regex.*\)\.a*$;\1;'` ; do 20990 21847 ax_lib=${libextension} 20991 21848 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` 20992 21849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5 20993 21850 $as_echo_n "checking for exit in -l$ax_lib... " >&6; } 20994 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :21851 if eval \${$as_ac_Lib+:} false; then : 20995 21852 $as_echo_n "(cached) " >&6 20996 21853 else … … 21033 21890 fi 21034 21891 21035 21892 done 21036 21893 if test "x$link_regex" != "xyes"; then 21037 21894 for libextension in `ls $BOOSTLIBDIR/boost_regex*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_regex.*\)\.dll.*$;\1;' -e 's;^\(boost_regex.*\)\.a*$;\1;'` ; do … … 21040 21897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5 21041 21898 $as_echo_n "checking for exit in -l$ax_lib... " >&6; } 21042 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :21899 if eval \${$as_ac_Lib+:} false; then : 21043 21900 $as_echo_n "(cached) " >&6 21044 21901 else … … 21081 21938 fi 21082 21939 21083 21940 done 21084 21941 fi 21085 21942 … … 21089 21946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5 21090 21947 $as_echo_n "checking for main in -l$ax_lib... " >&6; } 21091 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :21948 if eval \${$as_ac_Lib+:} false; then : 21092 21949 $as_echo_n "(cached) " >&6 21093 21950 else … … 21126 21983 done 21127 21984 fi 21985 if test "x$ax_lib" = "x"; then 21986 as_fn_error $? "Could not find a version of the Boost::Regex library!" "$LINENO" 5 21987 fi 21128 21988 if test "x$link_regex" != "xyes"; then 21129 21989 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5 … … 21132 21992 21133 21993 CPPFLAGS="$CPPFLAGS_SAVED" 21134 21994 LDFLAGS="$LDFLAGS_SAVED" 21135 21995 fi 21136 21996 … … 21151 22011 else 21152 22012 want_boost="yes" 21153 22013 ax_boost_user_thread_lib="$withval" 21154 22014 fi 21155 22015 … … 21173 22033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Thread library is available" >&5 21174 22034 $as_echo_n "checking whether the Boost::Thread library is available... " >&6; } 21175 if test "${ax_cv_boost_thread+set}" = set; then :22035 if ${ax_cv_boost_thread+:} false; then : 21176 22036 $as_echo_n "(cached) " >&6 21177 22037 else … … 21184 22044 CXXFLAGS_SAVE=$CXXFLAGS 21185 22045 21186 if test "x$ build_os" = "xsolaris" ; then21187 21188 elif test "x$ build_os" = "xming32" ; then22046 if test "x$host_os" = "xsolaris" ; then 22047 CXXFLAGS="-pthreads $CXXFLAGS" 22048 elif test "x$host_os" = "xmingw32" ; then 21189 22049 CXXFLAGS="-mthreads $CXXFLAGS" 21190 22050 else … … 21221 22081 $as_echo "$ax_cv_boost_thread" >&6; } 21222 22082 if test "x$ax_cv_boost_thread" = "xyes"; then 21223 if test "x$ build_os" = "xsolaris" ; then22083 if test "x$host_os" = "xsolaris" ; then 21224 22084 BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS" 21225 elif test "x$ build_os" = "xming32" ; then22085 elif test "x$host_os" = "xmingw32" ; then 21226 22086 BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS" 21227 22087 else … … 21237 22097 21238 22098 LDFLAGS_SAVE=$LDFLAGS 21239 case "x$ build_os" in22099 case "x$host_os" in 21240 22100 *bsd* ) 21241 22101 LDFLAGS="-pthread $LDFLAGS" … … 21249 22109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5 21250 22110 $as_echo_n "checking for exit in -l$ax_lib... " >&6; } 21251 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :22111 if eval \${$as_ac_Lib+:} false; then : 21252 22112 $as_echo_n "(cached) " >&6 21253 22113 else … … 21290 22150 fi 21291 22151 21292 22152 done 21293 22153 if test "x$link_thread" != "xyes"; then 21294 22154 for libextension in `ls $BOOSTLIBDIR/boost_thread*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_thread*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.a*$;\1;'` ; do … … 21297 22157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5 21298 22158 $as_echo_n "checking for exit in -l$ax_lib... " >&6; } 21299 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :22159 if eval \${$as_ac_Lib+:} false; then : 21300 22160 $as_echo_n "(cached) " >&6 21301 22161 else … … 21338 22198 fi 21339 22199 21340 22200 done 21341 22201 fi 21342 22202 … … 21346 22206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5 21347 22207 $as_echo_n "checking for exit in -l$ax_lib... " >&6; } 21348 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :22208 if eval \${$as_ac_Lib+:} false; then : 21349 22209 $as_echo_n "(cached) " >&6 21350 22210 else … … 21390 22250 21391 22251 fi 22252 if test "x$ax_lib" = "x"; then 22253 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5 22254 fi 21392 22255 if test "x$link_thread" = "xno"; then 21393 22256 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5 21394 22257 else 21395 case "x$ build_os" in22258 case "x$host_os" in 21396 22259 *bsd* ) 21397 22260 BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS" 21398 22261 break; 21399 22262 ;; … … 21404 22267 21405 22268 CPPFLAGS="$CPPFLAGS_SAVED" 21406 22269 LDFLAGS="$LDFLAGS_SAVED" 21407 22270 fi 21408 22271 … … 21512 22375 21513 22376 22377 21514 22378 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 21515 22379 if test -n "$ac_tool_prefix"; then … … 21518 22382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21519 22383 $as_echo_n "checking for $ac_word... " >&6; } 21520 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :22384 if ${ac_cv_path_PKG_CONFIG+:} false; then : 21521 22385 $as_echo_n "(cached) " >&6 21522 22386 else … … 21561 22425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21562 22426 $as_echo_n "checking for $ac_word... " >&6; } 21563 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :22427 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 21564 22428 $as_echo_n "(cached) " >&6 21565 22429 else … … 21647 22511 test $ac_status = 0; }; then 21648 22512 pkg_cv_QT4_CORE_CFLAGS=`$PKG_CONFIG --cflags "QtCore" 2>/dev/null` 22513 test "x$?" != "x0" && pkg_failed=yes 21649 22514 else 21650 22515 pkg_failed=yes … … 21663 22528 test $ac_status = 0; }; then 21664 22529 pkg_cv_QT4_CORE_LIBS=`$PKG_CONFIG --libs "QtCore" 2>/dev/null` 22530 test "x$?" != "x0" && pkg_failed=yes 21665 22531 else 21666 22532 pkg_failed=yes … … 21682 22548 fi 21683 22549 if test $_pkg_short_errors_supported = yes; then 21684 QT4_CORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "QtCore" 2>&1`22550 QT4_CORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "QtCore" 2>&1` 21685 22551 else 21686 QT4_CORE_PKG_ERRORS=`$PKG_CONFIG --print-errors "QtCore" 2>&1`22552 QT4_CORE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "QtCore" 2>&1` 21687 22553 fi 21688 22554 # Put the nasty error message in config.log where it belongs … … 21718 22584 elif test -n "$PKG_CONFIG"; then 21719 22585 if test -n "$PKG_CONFIG" && \ 21720 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore QtGui \""; } >&521721 ($PKG_CONFIG --exists --print-errors "QtCore QtGui ") 2>&522586 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore QtGui QtSql\""; } >&5 22587 ($PKG_CONFIG --exists --print-errors "QtCore QtGui QtSql") 2>&5 21722 22588 ac_status=$? 21723 22589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21724 22590 test $ac_status = 0; }; then 21725 pkg_cv_QT4_FRONTEND_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui" 2>/dev/null` 22591 pkg_cv_QT4_FRONTEND_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui QtSql" 2>/dev/null` 22592 test "x$?" != "x0" && pkg_failed=yes 21726 22593 else 21727 22594 pkg_failed=yes … … 21734 22601 elif test -n "$PKG_CONFIG"; then 21735 22602 if test -n "$PKG_CONFIG" && \ 21736 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore QtGui \""; } >&521737 ($PKG_CONFIG --exists --print-errors "QtCore QtGui ") 2>&522603 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore QtGui QtSql\""; } >&5 22604 ($PKG_CONFIG --exists --print-errors "QtCore QtGui QtSql") 2>&5 21738 22605 ac_status=$? 21739 22606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21740 22607 test $ac_status = 0; }; then 21741 pkg_cv_QT4_FRONTEND_LIBS=`$PKG_CONFIG --libs "QtCore QtGui" 2>/dev/null` 22608 pkg_cv_QT4_FRONTEND_LIBS=`$PKG_CONFIG --libs "QtCore QtGui QtSql" 2>/dev/null` 22609 test "x$?" != "x0" && pkg_failed=yes 21742 22610 else 21743 22611 pkg_failed=yes … … 21759 22627 fi 21760 22628 if test $_pkg_short_errors_supported = yes; then 21761 QT4_FRONTEND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "QtCore QtGui" 2>&1`22629 QT4_FRONTEND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "QtCore QtGui QtSql" 2>&1` 21762 22630 else 21763 QT4_FRONTEND_PKG_ERRORS=`$PKG_CONFIG --print-errors "QtCore QtGui" 2>&1`22631 QT4_FRONTEND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "QtCore QtGui QtSql" 2>&1` 21764 22632 fi 21765 22633 # Put the nasty error message in config.log where it belongs … … 21780 22648 if test "$pkg_failed" = "no" ; then 21781 22649 QT4_INCLUDES=$QT4_FRONTEND_CFLAGS 21782 QT4_LDFLAGS=`$PKG_CONFIG --libs-only-L QtCore QtGui `22650 QT4_LDFLAGS=`$PKG_CONFIG --libs-only-L QtCore QtGui QtSql` 21783 22651 21784 22652 21785 22653 QT4_VERSION=`$PKG_CONFIG --modversion QtCore` 21786 22654 21787 QT4_LIB=`$PKG_CONFIG --libs-only-l QtCore QtGui `21788 21789 LIBS="$LIBS `$PKG_CONFIG --libs-only-other QtCore QtGui `"22655 QT4_LIB=`$PKG_CONFIG --libs-only-l QtCore QtGui QtSql` 22656 22657 LIBS="$LIBS `$PKG_CONFIG --libs-only-other QtCore QtGui QtSql`" 21790 22658 fi 21791 PKG_CONFIG_PATH=$save_PKG_CONFIG_PATH21792 22659 21793 22660 fi … … 21809 22676 else 21810 22677 case $x_includes,$x_libraries in #( 21811 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 21812 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :22678 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 22679 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 21813 22680 $as_echo_n "(cached) " >&6 21814 22681 else … … 22087 22954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 22088 22955 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 22089 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :22956 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 22090 22957 $as_echo_n "(cached) " >&6 22091 22958 else … … 22121 22988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 22122 22989 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 22123 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x ""yes; then :22990 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 22124 22991 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 22125 22992 fi … … 22128 22995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 22129 22996 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 22130 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :22997 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 22131 22998 $as_echo_n "(cached) " >&6 22132 22999 else … … 22162 23029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 22163 23030 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 22164 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x ""yes; then :23031 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 22165 23032 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 22166 23033 fi … … 22181 23048 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 22182 23049 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 22183 if test "x$ac_cv_func_gethostbyname" = x ""yes; then :23050 if test "x$ac_cv_func_gethostbyname" = xyes; then : 22184 23051 22185 23052 fi … … 22188 23055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 22189 23056 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 22190 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :23057 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 22191 23058 $as_echo_n "(cached) " >&6 22192 23059 else … … 22222 23089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 22223 23090 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 22224 if test "x$ac_cv_lib_nsl_gethostbyname" = x ""yes; then :23091 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 22225 23092 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 22226 23093 fi … … 22229 23096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 22230 23097 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 22231 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :23098 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 22232 23099 $as_echo_n "(cached) " >&6 22233 23100 else … … 22263 23130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 22264 23131 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 22265 if test "x$ac_cv_lib_bsd_gethostbyname" = x ""yes; then :23132 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 22266 23133 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 22267 23134 fi … … 22278 23145 # if connect needs -lnsl, so does gethostbyname. 22279 23146 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 22280 if test "x$ac_cv_func_connect" = x ""yes; then :23147 if test "x$ac_cv_func_connect" = xyes; then : 22281 23148 22282 23149 fi … … 22285 23152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 22286 23153 $as_echo_n "checking for connect in -lsocket... " >&6; } 22287 if test "${ac_cv_lib_socket_connect+set}" = set; then :23154 if ${ac_cv_lib_socket_connect+:} false; then : 22288 23155 $as_echo_n "(cached) " >&6 22289 23156 else … … 22319 23186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 22320 23187 $as_echo "$ac_cv_lib_socket_connect" >&6; } 22321 if test "x$ac_cv_lib_socket_connect" = x ""yes; then :23188 if test "x$ac_cv_lib_socket_connect" = xyes; then : 22322 23189 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 22323 23190 fi … … 22327 23194 # Guillermo Gomez says -lposix is necessary on A/UX. 22328 23195 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 22329 if test "x$ac_cv_func_remove" = x ""yes; then :23196 if test "x$ac_cv_func_remove" = xyes; then : 22330 23197 22331 23198 fi … … 22334 23201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 22335 23202 $as_echo_n "checking for remove in -lposix... " >&6; } 22336 if test "${ac_cv_lib_posix_remove+set}" = set; then :23203 if ${ac_cv_lib_posix_remove+:} false; then : 22337 23204 $as_echo_n "(cached) " >&6 22338 23205 else … … 22368 23235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 22369 23236 $as_echo "$ac_cv_lib_posix_remove" >&6; } 22370 if test "x$ac_cv_lib_posix_remove" = x ""yes; then :23237 if test "x$ac_cv_lib_posix_remove" = xyes; then : 22371 23238 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 22372 23239 fi … … 22376 23243 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 22377 23244 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 22378 if test "x$ac_cv_func_shmat" = x ""yes; then :23245 if test "x$ac_cv_func_shmat" = xyes; then : 22379 23246 22380 23247 fi … … 22383 23250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 22384 23251 $as_echo_n "checking for shmat in -lipc... " >&6; } 22385 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :23252 if ${ac_cv_lib_ipc_shmat+:} false; then : 22386 23253 $as_echo_n "(cached) " >&6 22387 23254 else … … 22417 23284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 22418 23285 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 22419 if test "x$ac_cv_lib_ipc_shmat" = x ""yes; then :23286 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 22420 23287 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 22421 23288 fi … … 22435 23302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 22436 23303 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 22437 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :23304 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 22438 23305 $as_echo_n "(cached) " >&6 22439 23306 else … … 22469 23336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 22470 23337 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 22471 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x ""yes; then :23338 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 22472 23339 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 22473 23340 fi … … 22480 23347 yes) LIBS="$X_PRE_LIBS $LIBS $X_LIBS -lX11 $X_EXTRA_LIBS" 22481 23348 CPPFLAGS="$CPPFLAGS $X_CFLAGS";; 22482 no) as_fn_error $? "Cannot find X window libraries and/or headers." "$LINENO" 5 23349 no) as_fn_error $? "Cannot find X window libraries and/or headers." "$LINENO" 5;; 22483 23350 disable) ;; 22484 23351 esac … … 22490 23357 if test -n "$qt4_cv_includes"; then 22491 23358 QT4_INCLUDES="-I$qt4_cv_includes" 22492 for i in Qt QtCore QtGui ; do23359 for i in Qt QtCore QtGui QtSql; do 22493 23360 QT4_INCLUDES="$QT4_INCLUDES -I$qt4_cv_includes/$i" 22494 23361 done … … 22508 23375 $as_echo_n "checking for Qt 4 library name... " >&6; } 22509 23376 22510 if test "${qt4_cv_libname+set}" = set; then :23377 if ${qt4_cv_libname+:} false; then : 22511 23378 $as_echo_n "(cached) " >&6 22512 23379 else … … 22557 23424 done 22558 23425 qt4_cv_libname= 22559 for libname in '-lQtCore -lQtGui ' \22560 '-lQtCore4 -lQtGui4 ' \22561 '-framework QtCore -framework QtGui '23426 for libname in '-lQtCore -lQtGui -lQtSql' \ 23427 '-lQtCore4 -lQtGui4 -lQtSql4' \ 23428 '-framework QtCore -framework QtGui -framework QtSql' 22562 23429 do 22563 23430 … … 22619 23486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Qt 4 version" >&5 22620 23487 $as_echo_n "checking Qt 4 version... " >&6; } 22621 if test "${lyx_cv_qt4version+set}" = set; then :23488 if ${lyx_cv_qt4version+:} false; then : 22622 23489 $as_echo_n "(cached) " >&6 22623 23490 else … … 22633 23500 22634 23501 cat > conftest.$ac_ext <<EOF 22635 #line 2 2635"configure"23502 #line 23502 "configure" 22636 23503 #include "confdefs.h" 22637 23504 #include <qglobal.h> … … 22660 23527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22661 23528 $as_echo_n "checking for $ac_word... " >&6; } 22662 if test "${ac_cv_path_MOC4+set}" = set; then :23529 if ${ac_cv_path_MOC4+:} false; then : 22663 23530 $as_echo_n "(cached) " >&6 22664 23531 else … … 22706 23573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22707 23574 $as_echo_n "checking for $ac_word... " >&6; } 22708 if test "${ac_cv_path_UIC4+set}" = set; then :23575 if ${ac_cv_path_UIC4+:} false; then : 22709 23576 $as_echo_n "(cached) " >&6 22710 23577 else … … 22752 23619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22753 23620 $as_echo_n "checking for $ac_word... " >&6; } 22754 if test "${ac_cv_path_RCC4+set}" = set; then :23621 if ${ac_cv_path_RCC4+:} false; then : 22755 23622 $as_echo_n "(cached) " >&6 22756 23623 else … … 22841 23708 22842 23709 ac_fn_cxx_check_header_mongrel "$LINENO" "QtOpenGL/QGLWidget" "ac_cv_header_QtOpenGL_QGLWidget" "$ac_includes_default" 22843 if test "x$ac_cv_header_QtOpenGL_QGLWidget" = x ""yes; then :23710 if test "x$ac_cv_header_QtOpenGL_QGLWidget" = xyes; then : 22844 23711 22845 23712 else … … 22863 23730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QGLWidget qgl in -lQtOpenGL" >&5 22864 23731 $as_echo_n "checking for QGLWidget qgl in -lQtOpenGL... " >&6; } 22865 if test "${ac_cv_lib_QtOpenGL_QGLWidget_qgl+set}" = set; then :23732 if ${ac_cv_lib_QtOpenGL_QGLWidget_qgl+:} false; then : 22866 23733 $as_echo_n "(cached) " >&6 22867 23734 else … … 22974 23841 22975 23842 ac_fn_cxx_check_header_mongrel "$LINENO" "qwt_plot.h" "ac_cv_header_qwt_plot_h" "$ac_includes_default" 22976 if test "x$ac_cv_header_qwt_plot_h" = x ""yes; then :23843 if test "x$ac_cv_header_qwt_plot_h" = xyes; then : 22977 23844 22978 23845 else … … 22996 23863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QwtPlot qwt in -lqwt-qt4" >&5 22997 23864 $as_echo_n "checking for QwtPlot qwt in -lqwt-qt4... " >&6; } 22998 if test "${ac_cv_lib_qwt_qt4_QwtPlot_qwt+set}" = set; then :23865 if ${ac_cv_lib_qwt_qt4_QwtPlot_qwt+:} false; then : 22999 23866 $as_echo_n "(cached) " >&6 23000 23867 else … … 23100 23967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23101 23968 $as_echo_n "checking for $ac_word... " >&6; } 23102 if test "${ac_cv_path_ROOTCONF+set}" = set; then :23969 if ${ac_cv_path_ROOTCONF+:} false; then : 23103 23970 $as_echo_n "(cached) " >&6 23104 23971 else … … 23141 24008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23142 24009 $as_echo_n "checking for $ac_word... " >&6; } 23143 if test "${ac_cv_path_ROOTEXEC+set}" = set; then :24010 if ${ac_cv_path_ROOTEXEC+:} false; then : 23144 24011 $as_echo_n "(cached) " >&6 23145 24012 else … … 23182 24049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23183 24050 $as_echo_n "checking for $ac_word... " >&6; } 23184 if test "${ac_cv_path_ROOTCINT+set}" = set; then :24051 if ${ac_cv_path_ROOTCINT+:} false; then : 23185 24052 $as_echo_n "(cached) " >&6 23186 24053 else … … 23277 24144 23278 24145 23279 if test "$ROOTEXEC" != no ;24146 if test "$ROOTEXEC" != no -a -n "$ROOTVERSION" ; 23280 24147 then 23281 24148 … … 23317 24184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23318 24185 $as_echo_n "checking for $ac_word... " >&6; } 23319 if test "${ac_cv_prog_COLORDIFF+set}" = set; then :24186 if ${ac_cv_prog_COLORDIFF+:} false; then : 23320 24187 $as_echo_n "(cached) " >&6 23321 24188 else … … 23355 24222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23356 24223 $as_echo_n "checking for $ac_word... " >&6; } 23357 if test "${ac_cv_prog_GROFF+set}" = set; then :24224 if ${ac_cv_prog_GROFF+:} false; then : 23358 24225 $as_echo_n "(cached) " >&6 23359 24226 else … … 23393 24260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23394 24261 $as_echo_n "checking for $ac_word... " >&6; } 23395 if test "${ac_cv_prog_PS2PDF+set}" = set; then :24262 if ${ac_cv_prog_PS2PDF+:} false; then : 23396 24263 $as_echo_n "(cached) " >&6 23397 24264 else … … 23431 24298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23432 24299 $as_echo_n "checking for $ac_word... " >&6; } 23433 if test "${ac_cv_prog_HELP2MAN+set}" = set; then :24300 if ${ac_cv_prog_HELP2MAN+:} false; then : 23434 24301 $as_echo_n "(cached) " >&6 23435 24302 else … … 23759 24626 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 23760 24627 if test -w "$cache_file"; then 23761 test "x$cache_file" != "x/dev/null" &&24628 if test "x$cache_file" != "x/dev/null"; then 23762 24629 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 23763 24630 $as_echo "$as_me: updating cache $cache_file" >&6;} 23764 cat confcache >$cache_file 24631 if test ! -f "$cache_file" || test -h "$cache_file"; then 24632 cat confcache >"$cache_file" 24633 else 24634 case $cache_file in #( 24635 */* | ?:*) 24636 mv -f confcache "$cache_file"$$ && 24637 mv -f "$cache_file"$$ "$cache_file" ;; #( 24638 *) 24639 mv -f confcache "$cache_file" ;; 24640 esac 24641 fi 24642 fi 23765 24643 else 23766 24644 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 … … 24034 24912 fi 24035 24913 24036 : ${CONFIG_STATUS=./config.status}24914 : "${CONFIG_STATUS=./config.status}" 24037 24915 ac_write_fail=0 24038 24916 ac_clean_files_save=$ac_clean_files … … 24135 25013 24136 25014 # Find who we are. Look in the path if we contain no directory separator. 25015 as_myself= 24137 25016 case $0 in #(( 24138 25017 *[\\/]* ) as_myself=$0 ;; … … 24442 25321 ac_log=" 24443 25322 This file was extended by FACT++ $as_me 1.0, which was 24444 generated by GNU Autoconf 2.6 7. Invocation command line was25323 generated by GNU Autoconf 2.68. Invocation command line was 24445 25324 24446 25325 CONFIG_FILES = $CONFIG_FILES … … 24464 25343 # Files that config.status was made for. 24465 25344 config_files="$ac_config_files" 25345 config_links="$ac_config_links" 24466 25346 config_commands="$ac_config_commands" 24467 25347 … … 24489 25369 $config_files 24490 25370 25371 Configuration links: 25372 $config_links 25373 24491 25374 Configuration commands: 24492 25375 $config_commands … … 24500 25383 ac_cs_version="\\ 24501 25384 FACT++ config.status 1.0 24502 configured by $0, generated by GNU Autoconf 2.6 7,25385 configured by $0, generated by GNU Autoconf 2.68, 24503 25386 with options \\"\$ac_cs_config\\" 24504 25387 … … 24616 25499 double_quote_subst='$double_quote_subst' 24617 25500 delay_variable_subst='$delay_variable_subst' 24618 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 24619 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 24620 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 24621 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 24622 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 24623 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 24624 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 24625 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 24626 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 24627 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 24628 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 24629 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 24630 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 24631 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 24632 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 24633 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 24634 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 24635 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 24636 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 24637 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 24638 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 24639 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 24640 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 24641 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 24642 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 24643 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 24644 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 24645 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 24646 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 24647 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 24648 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 24649 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 24650 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 24651 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 24652 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 24653 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 24654 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 24655 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 24656 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 24657 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 24658 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 24659 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 24660 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 24661 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 24662 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' 24663 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 24664 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 24665 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 24666 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 24667 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 24668 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 24669 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 24670 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 24671 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 24672 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 24673 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 24674 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 24675 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 24676 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 24677 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 24678 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 24679 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 24680 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 24681 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 24682 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 24683 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 24684 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 24685 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 24686 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 24687 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 24688 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 24689 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 24690 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 24691 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 24692 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 24693 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 24694 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 24695 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 24696 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 24697 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 24698 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 24699 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 24700 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 24701 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 24702 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 24703 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 24704 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 24705 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 24706 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 24707 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 24708 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 24709 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 24710 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 24711 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 24712 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 24713 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 24714 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 24715 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 24716 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 24717 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 24718 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 24719 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 24720 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 24721 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 24722 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 24723 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 24724 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 24725 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 24726 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 24727 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 24728 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 24729 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 24730 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 24731 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 24732 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 24733 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 24734 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 24735 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 24736 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' 24737 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' 24738 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' 24739 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' 24740 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' 24741 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' 24742 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24743 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24744 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24745 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24746 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24747 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24748 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24749 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24750 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24751 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24752 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24753 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24754 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24755 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24756 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24757 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24758 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24759 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24760 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24761 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24762 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24763 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24764 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24765 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24766 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24767 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24768 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24769 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24770 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24771 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24772 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24773 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24774 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24775 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24776 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24777 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24778 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24779 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24780 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24781 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24782 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24783 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24784 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24785 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24786 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24787 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 24788 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 25501 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 25502 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 25503 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 25504 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 25505 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 25506 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 25507 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 25508 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 25509 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 25510 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 25511 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 25512 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 25513 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 25514 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 25515 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 25516 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 25517 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 25518 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 25519 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 25520 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 25521 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 25522 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 25523 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 25524 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 25525 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 25526 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 25527 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 25528 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 25529 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 25530 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 25531 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 25532 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 25533 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 25534 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 25535 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 25536 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 25537 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 25538 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 25539 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 25540 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 25541 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 25542 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 25543 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 25544 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 25545 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 25546 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 25547 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 25548 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 25549 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 25550 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 25551 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 25552 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 25553 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 25554 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 25555 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 25556 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 25557 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 25558 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 25559 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 25560 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 25561 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 25562 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 25563 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 25564 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 25565 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 25566 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 25567 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 25568 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 25569 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 25570 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 25571 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 25572 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 25573 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 25574 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 25575 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 25576 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 25577 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 25578 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 25579 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 25580 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 25581 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 25582 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 25583 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 25584 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 25585 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 25586 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 25587 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 25588 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 25589 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 25590 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 25591 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 25592 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 25593 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 25594 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 25595 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 25596 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 25597 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 25598 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 25599 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 25600 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 25601 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 25602 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 25603 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 25604 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 25605 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 25606 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 25607 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 25608 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 25609 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 25610 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 25611 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 25612 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 25613 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 25614 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 25615 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 25616 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 25617 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 25618 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 25619 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 25620 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 25621 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 25622 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 25623 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 25624 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 25625 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 25626 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 25627 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 25628 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 25629 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 25630 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 25631 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 25632 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 25633 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 25634 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 25635 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 25636 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 25637 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 25638 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 25639 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25640 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25641 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 25642 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 25643 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 25644 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 25645 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 25646 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 25647 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 25648 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 25649 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 25650 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 25651 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 25652 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 25653 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25654 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25655 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25656 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25657 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25658 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25659 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 25660 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 25661 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 25662 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 25663 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 25664 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 25665 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 25666 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 25667 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 25668 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 25669 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 25670 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 25671 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 25672 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 25673 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25674 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 25675 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 25676 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25677 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25678 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 25679 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 25680 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 25681 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 25682 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 25683 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 25684 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 25685 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 24789 25686 24790 25687 LTCC='$LTCC' … … 24792 25689 compiler='$compiler_DEFAULT' 24793 25690 25691 # A function that is used when there is no print builtin or printf. 25692 func_fallback_echo () 25693 { 25694 eval 'cat <<_LTECHO_EOF 25695 \$1 25696 _LTECHO_EOF' 25697 } 25698 24794 25699 # Quote evaled strings. 24795 for var in SED \ 25700 for var in SHELL \ 25701 ECHO \ 25702 SED \ 24796 25703 GREP \ 24797 25704 EGREP \ … … 24806 25713 deplibs_check_method \ 24807 25714 file_magic_cmd \ 25715 file_magic_glob \ 25716 want_nocaseglob \ 25717 DLLTOOL \ 25718 sharedlib_from_linklib_cmd \ 24808 25719 AR \ 24809 25720 AR_FLAGS \ 25721 archiver_list_spec \ 24810 25722 STRIP \ 24811 25723 RANLIB \ … … 24817 25729 lt_cv_sys_global_symbol_to_c_name_address \ 24818 25730 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 24819 SHELL \ 24820 ECHO \ 25731 nm_file_list_spec \ 24821 25732 lt_prog_compiler_no_builtin_flag \ 25733 lt_prog_compiler_pic \ 24822 25734 lt_prog_compiler_wl \ 24823 lt_prog_compiler_pic \24824 25735 lt_prog_compiler_static \ 24825 25736 lt_cv_prog_compiler_c_o \ 24826 25737 need_locks \ 25738 MANIFEST_TOOL \ 24827 25739 DSYMUTIL \ 24828 25740 NMEDIT \ … … 24840 25752 hardcode_libdir_flag_spec_ld \ 24841 25753 hardcode_libdir_separator \ 24842 fix_srcfile_path \24843 25754 exclude_expsyms \ 24844 25755 include_expsyms \ … … 24848 25759 library_names_spec \ 24849 25760 soname_spec \ 25761 install_override_mode \ 24850 25762 finish_eval \ 24851 25763 old_striplib \ … … 24858 25770 compiler_lib_search_path \ 24859 25771 LD_CXX \ 25772 reload_flag_CXX \ 24860 25773 compiler_CXX \ 24861 25774 lt_prog_compiler_no_builtin_flag_CXX \ 25775 lt_prog_compiler_pic_CXX \ 24862 25776 lt_prog_compiler_wl_CXX \ 24863 lt_prog_compiler_pic_CXX \24864 25777 lt_prog_compiler_static_CXX \ 24865 25778 lt_cv_prog_compiler_c_o_CXX \ … … 24873 25786 hardcode_libdir_flag_spec_ld_CXX \ 24874 25787 hardcode_libdir_separator_CXX \ 24875 fix_srcfile_path_CXX \24876 25788 exclude_expsyms_CXX \ 24877 25789 include_expsyms_CXX \ … … 24883 25795 postdeps_CXX \ 24884 25796 compiler_lib_search_path_CXX; do 24885 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in25797 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 24886 25798 *[\\\\\\\`\\"\\\$]*) 24887 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\" X\\\$\$var\\" | \\\$Xsed -e\\"\\\$sed_quote_subst\\"\\\`\\\\\\""25799 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 24888 25800 ;; 24889 25801 *) … … 24907 25819 export_symbols_cmds \ 24908 25820 prelink_cmds \ 25821 postlink_cmds \ 24909 25822 postinstall_cmds \ 24910 25823 postuninstall_cmds \ … … 24912 25825 sys_lib_search_path_spec \ 24913 25826 sys_lib_dlsearch_path_spec \ 25827 reload_cmds_CXX \ 24914 25828 old_archive_cmds_CXX \ 24915 25829 old_archive_from_new_cmds_CXX \ … … 24920 25834 module_expsym_cmds_CXX \ 24921 25835 export_symbols_cmds_CXX \ 24922 prelink_cmds_CXX; do 24923 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 25836 prelink_cmds_CXX \ 25837 postlink_cmds_CXX; do 25838 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 24924 25839 *[\\\\\\\`\\"\\\$]*) 24925 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\" X\\\$\$var\\" | \\\$Xsed-e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""25840 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 24926 25841 ;; 24927 25842 *) … … 24931 25846 done 24932 25847 24933 # Fix-up fallback echo if it was mangled by the above quoting rules.24934 case \$lt_ECHO in24935 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`24936 ;;24937 esac24938 24939 25848 ac_aux_dir='$ac_aux_dir' 24940 25849 xsi_shell='$xsi_shell' … … 24969 25878 case $ac_config_target in 24970 25879 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 25880 "g++") CONFIG_LINKS="$CONFIG_LINKS g++:$COLORGCC" ;; 25881 "gcc") CONFIG_LINKS="$CONFIG_LINKS gcc:$COLORGCC" ;; 24971 25882 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 24972 25883 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 24973 25884 24974 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 25885 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 24975 25886 esac 24976 25887 done … … 24983 25894 if $ac_need_defaults; then 24984 25895 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 25896 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 24985 25897 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 24986 25898 fi … … 24994 25906 $debug || 24995 25907 { 24996 tmp= 25908 tmp= ac_tmp= 24997 25909 trap 'exit_status=$? 24998 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 25910 : "${ac_tmp:=$tmp}" 25911 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 24999 25912 ' 0 25000 25913 trap 'as_fn_exit 1' 1 2 13 15 … … 25004 25917 { 25005 25918 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 25006 test - n "$tmp" && test -d "$tmp"25919 test -d "$tmp" 25007 25920 } || 25008 25921 { … … 25010 25923 (umask 077 && mkdir "$tmp") 25011 25924 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 25925 ac_tmp=$tmp 25012 25926 25013 25927 # Set up the scripts for CONFIG_FILES section. … … 25031 25945 fi 25032 25946 25033 echo 'BEGIN {' >"$ tmp/subs1.awk" &&25947 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 25034 25948 _ACEOF 25035 25949 … … 25059 25973 25060 25974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25061 cat >>"\$ tmp/subs1.awk" <<\\_ACAWK &&25975 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 25062 25976 _ACEOF 25063 25977 sed -n ' … … 25107 26021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25108 26022 _ACAWK 25109 cat >>"\$ tmp/subs1.awk" <<_ACAWK &&26023 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 25110 26024 for (key in S) S_is_set[key] = 1 25111 26025 FS = "" … … 25139 26053 else 25140 26054 cat 25141 fi < "$ tmp/subs1.awk" > "$tmp/subs.awk" \26055 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 25142 26056 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 25143 26057 _ACEOF … … 25170 26084 25171 26085 25172 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"26086 eval set X " :F $CONFIG_FILES :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 25173 26087 shift 25174 26088 for ac_tag … … 25179 26093 case $ac_mode$ac_tag in 25180 26094 :[FHL]*:*);; 25181 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 26095 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 25182 26096 :[FH]-) ac_tag=-:-;; 25183 26097 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; … … 25198 26112 do 25199 26113 case $ac_f in 25200 -) ac_f="$ tmp/stdin";;26114 -) ac_f="$ac_tmp/stdin";; 25201 26115 *) # Look for the file first in the build tree, then in the source tree 25202 26116 # (if the path is not absolute). The absolute path cannot be DOS-style, … … 25207 26121 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 25208 26122 esac || 25209 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 26123 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 25210 26124 esac 25211 26125 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac … … 25233 26147 25234 26148 case $ac_tag in 25235 *:-:* | *:-) cat >"$ tmp/stdin" \25236 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26149 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 26150 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 25237 26151 esac 25238 26152 ;; … … 25370 26284 $ac_datarootdir_hack 25371 26285 " 25372 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ tmp/subs.awk" >$tmp/out\25373 || as_fn_error $? "could not create $ac_file" "$LINENO" 526286 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 26287 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25374 26288 25375 26289 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 25376 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 25377 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 26290 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 26291 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 26292 "$ac_tmp/out"`; test -z "$ac_out"; } && 25378 26293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 25379 26294 which seems to be undefined. Please make sure it is defined" >&5 … … 25381 26296 which seems to be undefined. Please make sure it is defined" >&2;} 25382 26297 25383 rm -f "$ tmp/stdin"26298 rm -f "$ac_tmp/stdin" 25384 26299 case $ac_file in 25385 -) cat "$ tmp/out" && rm -f "$tmp/out";;25386 *) rm -f "$ac_file" && mv "$ tmp/out" "$ac_file";;26300 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 26301 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 25387 26302 esac \ 25388 26303 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25389 26304 ;; 25390 26305 25391 26306 :L) 26307 # 26308 # CONFIG_LINK 26309 # 26310 26311 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 26312 : 26313 else 26314 # Prefer the file from the source tree if names are identical. 26315 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 26316 ac_source=$srcdir/$ac_source 26317 fi 26318 26319 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 26320 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;} 26321 26322 if test ! -r "$ac_source"; then 26323 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 26324 fi 26325 rm -f "$ac_file" 26326 26327 # Try a relative symlink, then a hard link, then a copy. 26328 case $ac_source in 26329 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 26330 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 26331 esac 26332 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 26333 ln "$ac_source" "$ac_file" 2>/dev/null || 26334 cp -p "$ac_source" "$ac_file" || 26335 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 26336 fi 26337 ;; 25392 26338 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 25393 26339 $as_echo "$as_me: executing $ac_file commands" >&6;} … … 25418 26364 # 25419 26365 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 25420 # 2006, 2007, 2008 Free Software Foundation, Inc. 26366 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 26367 # Inc. 25421 26368 # Written by Gordon Matzigkeit, 1996 25422 26369 # … … 25466 26413 fast_install=$enable_fast_install 25467 26414 26415 # Shell to use when invoking shell scripts. 26416 SHELL=$lt_SHELL 26417 26418 # An echo program that protects backslashes. 26419 ECHO=$lt_ECHO 26420 25468 26421 # The host system. 25469 26422 host_alias=$host_alias … … 25515 26468 NL2SP=$lt_lt_NL2SP 25516 26469 25517 # How to create reloadable object files. 25518 reload_flag=$lt_reload_flag 25519 reload_cmds=$lt_reload_cmds 26470 # convert \$build file names to \$host format. 26471 to_host_file_cmd=$lt_cv_to_host_file_cmd 26472 26473 # convert \$build files to toolchain format. 26474 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 25520 26475 25521 26476 # An object symbol dumper. … … 25525 26480 deplibs_check_method=$lt_deplibs_check_method 25526 26481 25527 # Command to use when deplibs_check_method = ="file_magic".26482 # Command to use when deplibs_check_method = "file_magic". 25528 26483 file_magic_cmd=$lt_file_magic_cmd 26484 26485 # How to find potential files when deplibs_check_method = "file_magic". 26486 file_magic_glob=$lt_file_magic_glob 26487 26488 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 26489 want_nocaseglob=$lt_want_nocaseglob 26490 26491 # DLL creation program. 26492 DLLTOOL=$lt_DLLTOOL 26493 26494 # Command to associate shared and link libraries. 26495 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 25529 26496 25530 26497 # The archiver. 25531 26498 AR=$lt_AR 26499 26500 # Flags to create an archive. 25532 26501 AR_FLAGS=$lt_AR_FLAGS 26502 26503 # How to feed a file listing to the archiver. 26504 archiver_list_spec=$lt_archiver_list_spec 25533 26505 25534 26506 # A symbol stripping program. … … 25540 26512 old_postuninstall_cmds=$lt_old_postuninstall_cmds 25541 26513 26514 # Whether to use a lock for old archive extraction. 26515 lock_old_archive_extraction=$lock_old_archive_extraction 26516 25542 26517 # A C compiler. 25543 26518 LTCC=$lt_CC … … 25558 26533 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 25559 26534 26535 # Specify filename containing input files for \$NM. 26536 nm_file_list_spec=$lt_nm_file_list_spec 26537 26538 # The root where to search for dependent libraries,and in which our libraries should be installed. 26539 lt_sysroot=$lt_sysroot 26540 25560 26541 # The name of the directory that contains temporary libtool files. 25561 26542 objdir=$objdir 25562 26543 25563 # Shell to use when invoking shell scripts.25564 SHELL=$lt_SHELL25565 25566 # An echo program that does not interpret backslashes.25567 ECHO=$lt_ECHO25568 25569 26544 # Used to examine libraries when file_magic_cmd begins with "file". 25570 26545 MAGIC_CMD=$MAGIC_CMD … … 25572 26547 # Must we lock files when doing compilation? 25573 26548 need_locks=$lt_need_locks 26549 26550 # Manifest tool. 26551 MANIFEST_TOOL=$lt_MANIFEST_TOOL 25574 26552 25575 26553 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. … … 25629 26607 soname_spec=$lt_soname_spec 25630 26608 26609 # Permission mode override for installation of shared libraries. 26610 install_override_mode=$lt_install_override_mode 26611 25631 26612 # Command to use after installation of a shared archive. 25632 26613 postinstall_cmds=$lt_postinstall_cmds … … 25668 26649 LD=$lt_LD 25669 26650 26651 # How to create reloadable object files. 26652 reload_flag=$lt_reload_flag 26653 reload_cmds=$lt_reload_cmds 26654 25670 26655 # Commands used to build an old-style archive. 25671 26656 old_archive_cmds=$lt_old_archive_cmds … … 25680 26665 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 25681 26666 26667 # Additional compiler flags for building library objects. 26668 pic_flag=$lt_lt_prog_compiler_pic 26669 25682 26670 # How to pass a linker flag through the compiler. 25683 26671 wl=$lt_lt_prog_compiler_wl 25684 25685 # Additional compiler flags for building library objects.25686 pic_flag=$lt_lt_prog_compiler_pic25687 26672 25688 26673 # Compiler flag to prevent dynamic linking. … … 25772 26757 link_all_deplibs=$link_all_deplibs 25773 26758 25774 # Fix the shell variable \$srcfile for the compiler.25775 fix_srcfile_path=$lt_fix_srcfile_path25776 25777 26759 # Set to "yes" if exported symbols are required. 25778 26760 always_export_symbols=$always_export_symbols … … 25789 26771 # Commands necessary for linking programs (against libraries) with templates. 25790 26772 prelink_cmds=$lt_prelink_cmds 26773 26774 # Commands necessary for finishing linking programs. 26775 postlink_cmds=$lt_postlink_cmds 25791 26776 25792 26777 # Specify filename containing input files. … … 25836 26821 # text mode, it properly converts lines to CR/LF. This bash problem 25837 26822 # is reportedly fixed, but why not run on old versions too? 25838 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 25839 || (rm -f "$cfgfile"; exit 1) 25840 25841 case $xsi_shell in 25842 yes) 25843 cat << \_LT_EOF >> "$cfgfile" 25844 25845 # func_dirname file append nondir_replacement 25846 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 25847 # otherwise set result to NONDIR_REPLACEMENT. 25848 func_dirname () 25849 { 25850 case ${1} in 25851 */*) func_dirname_result="${1%/*}${2}" ;; 25852 * ) func_dirname_result="${3}" ;; 25853 esac 25854 } 25855 25856 # func_basename file 25857 func_basename () 25858 { 25859 func_basename_result="${1##*/}" 25860 } 25861 25862 # func_dirname_and_basename file append nondir_replacement 25863 # perform func_basename and func_dirname in a single function 25864 # call: 25865 # dirname: Compute the dirname of FILE. If nonempty, 25866 # add APPEND to the result, otherwise set result 25867 # to NONDIR_REPLACEMENT. 25868 # value returned in "$func_dirname_result" 25869 # basename: Compute filename of FILE. 25870 # value retuned in "$func_basename_result" 25871 # Implementation must be kept synchronized with func_dirname 25872 # and func_basename. For efficiency, we do not delegate to 25873 # those functions but instead duplicate the functionality here. 25874 func_dirname_and_basename () 25875 { 25876 case ${1} in 25877 */*) func_dirname_result="${1%/*}${2}" ;; 25878 * ) func_dirname_result="${3}" ;; 25879 esac 25880 func_basename_result="${1##*/}" 25881 } 25882 25883 # func_stripname prefix suffix name 25884 # strip PREFIX and SUFFIX off of NAME. 25885 # PREFIX and SUFFIX must not contain globbing or regex special 25886 # characters, hashes, percent signs, but SUFFIX may contain a leading 25887 # dot (in which case that matches only a dot). 25888 func_stripname () 25889 { 25890 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 25891 # positional parameters, so assign one to ordinary parameter first. 25892 func_stripname_result=${3} 25893 func_stripname_result=${func_stripname_result#"${1}"} 25894 func_stripname_result=${func_stripname_result%"${2}"} 25895 } 25896 25897 # func_opt_split 25898 func_opt_split () 25899 { 25900 func_opt_split_opt=${1%%=*} 25901 func_opt_split_arg=${1#*=} 25902 } 25903 25904 # func_lo2o object 25905 func_lo2o () 25906 { 25907 case ${1} in 25908 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 25909 *) func_lo2o_result=${1} ;; 25910 esac 25911 } 25912 25913 # func_xform libobj-or-source 25914 func_xform () 25915 { 25916 func_xform_result=${1%.*}.lo 25917 } 25918 25919 # func_arith arithmetic-term... 25920 func_arith () 25921 { 25922 func_arith_result=$(( $* )) 25923 } 25924 25925 # func_len string 25926 # STRING may not start with a hyphen. 25927 func_len () 25928 { 25929 func_len_result=${#1} 25930 } 25931 25932 _LT_EOF 25933 ;; 25934 *) # Bourne compatible functions. 25935 cat << \_LT_EOF >> "$cfgfile" 25936 25937 # func_dirname file append nondir_replacement 25938 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 25939 # otherwise set result to NONDIR_REPLACEMENT. 25940 func_dirname () 25941 { 25942 # Extract subdirectory from the argument. 25943 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 25944 if test "X$func_dirname_result" = "X${1}"; then 25945 func_dirname_result="${3}" 25946 else 25947 func_dirname_result="$func_dirname_result${2}" 25948 fi 25949 } 25950 25951 # func_basename file 25952 func_basename () 25953 { 25954 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 25955 } 25956 25957 25958 # func_stripname prefix suffix name 25959 # strip PREFIX and SUFFIX off of NAME. 25960 # PREFIX and SUFFIX must not contain globbing or regex special 25961 # characters, hashes, percent signs, but SUFFIX may contain a leading 25962 # dot (in which case that matches only a dot). 25963 # func_strip_suffix prefix name 25964 func_stripname () 25965 { 25966 case ${2} in 25967 .*) func_stripname_result=`$ECHO "X${3}" \ 25968 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 25969 *) func_stripname_result=`$ECHO "X${3}" \ 25970 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 25971 esac 25972 } 25973 25974 # sed scripts: 25975 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 25976 my_sed_long_arg='1s/^-[^=]*=//' 25977 25978 # func_opt_split 25979 func_opt_split () 25980 { 25981 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 25982 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 25983 } 25984 25985 # func_lo2o object 25986 func_lo2o () 25987 { 25988 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 25989 } 25990 25991 # func_xform libobj-or-source 25992 func_xform () 25993 { 25994 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 25995 } 25996 25997 # func_arith arithmetic-term... 25998 func_arith () 25999 { 26000 func_arith_result=`expr "$@"` 26001 } 26002 26003 # func_len string 26004 # STRING may not start with a hyphen. 26005 func_len () 26006 { 26007 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 26008 } 26009 26010 _LT_EOF 26011 esac 26012 26013 case $lt_shell_append in 26014 yes) 26015 cat << \_LT_EOF >> "$cfgfile" 26016 26017 # func_append var value 26018 # Append VALUE to the end of shell variable VAR. 26019 func_append () 26020 { 26021 eval "$1+=\$2" 26022 } 26023 _LT_EOF 26024 ;; 26025 *) 26026 cat << \_LT_EOF >> "$cfgfile" 26027 26028 # func_append var value 26029 # Append VALUE to the end of shell variable VAR. 26030 func_append () 26031 { 26032 eval "$1=\$$1\$2" 26033 } 26034 26035 _LT_EOF 26036 ;; 26037 esac 26038 26039 26040 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 26041 || (rm -f "$cfgfile"; exit 1) 26042 26043 mv -f "$cfgfile" "$ofile" || 26823 sed '$q' "$ltmain" >> "$cfgfile" \ 26824 || (rm -f "$cfgfile"; exit 1) 26825 26826 if test x"$xsi_shell" = xyes; then 26827 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 26828 func_dirname ()\ 26829 {\ 26830 \ case ${1} in\ 26831 \ */*) func_dirname_result="${1%/*}${2}" ;;\ 26832 \ * ) func_dirname_result="${3}" ;;\ 26833 \ esac\ 26834 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 26835 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26836 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26837 test 0 -eq $? || _lt_function_replace_fail=: 26838 26839 26840 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 26841 func_basename ()\ 26842 {\ 26843 \ func_basename_result="${1##*/}"\ 26844 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 26845 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26846 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26847 test 0 -eq $? || _lt_function_replace_fail=: 26848 26849 26850 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 26851 func_dirname_and_basename ()\ 26852 {\ 26853 \ case ${1} in\ 26854 \ */*) func_dirname_result="${1%/*}${2}" ;;\ 26855 \ * ) func_dirname_result="${3}" ;;\ 26856 \ esac\ 26857 \ func_basename_result="${1##*/}"\ 26858 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 26859 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26860 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26861 test 0 -eq $? || _lt_function_replace_fail=: 26862 26863 26864 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 26865 func_stripname ()\ 26866 {\ 26867 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 26868 \ # positional parameters, so assign one to ordinary parameter first.\ 26869 \ func_stripname_result=${3}\ 26870 \ func_stripname_result=${func_stripname_result#"${1}"}\ 26871 \ func_stripname_result=${func_stripname_result%"${2}"}\ 26872 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 26873 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26874 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26875 test 0 -eq $? || _lt_function_replace_fail=: 26876 26877 26878 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 26879 func_split_long_opt ()\ 26880 {\ 26881 \ func_split_long_opt_name=${1%%=*}\ 26882 \ func_split_long_opt_arg=${1#*=}\ 26883 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 26884 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26885 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26886 test 0 -eq $? || _lt_function_replace_fail=: 26887 26888 26889 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 26890 func_split_short_opt ()\ 26891 {\ 26892 \ func_split_short_opt_arg=${1#??}\ 26893 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 26894 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 26895 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26896 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26897 test 0 -eq $? || _lt_function_replace_fail=: 26898 26899 26900 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 26901 func_lo2o ()\ 26902 {\ 26903 \ case ${1} in\ 26904 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 26905 \ *) func_lo2o_result=${1} ;;\ 26906 \ esac\ 26907 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 26908 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26909 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26910 test 0 -eq $? || _lt_function_replace_fail=: 26911 26912 26913 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 26914 func_xform ()\ 26915 {\ 26916 func_xform_result=${1%.*}.lo\ 26917 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 26918 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26919 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26920 test 0 -eq $? || _lt_function_replace_fail=: 26921 26922 26923 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 26924 func_arith ()\ 26925 {\ 26926 func_arith_result=$(( $* ))\ 26927 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 26928 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26929 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26930 test 0 -eq $? || _lt_function_replace_fail=: 26931 26932 26933 sed -e '/^func_len ()$/,/^} # func_len /c\ 26934 func_len ()\ 26935 {\ 26936 func_len_result=${#1}\ 26937 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 26938 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26939 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26940 test 0 -eq $? || _lt_function_replace_fail=: 26941 26942 fi 26943 26944 if test x"$lt_shell_append" = xyes; then 26945 sed -e '/^func_append ()$/,/^} # func_append /c\ 26946 func_append ()\ 26947 {\ 26948 eval "${1}+=\\${2}"\ 26949 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 26950 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26951 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26952 test 0 -eq $? || _lt_function_replace_fail=: 26953 26954 26955 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 26956 func_append_quoted ()\ 26957 {\ 26958 \ func_quote_for_eval "${2}"\ 26959 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 26960 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 26961 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26962 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26963 test 0 -eq $? || _lt_function_replace_fail=: 26964 26965 26966 # Save a `func_append' function call where possible by direct use of '+=' 26967 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 26968 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26969 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26970 test 0 -eq $? || _lt_function_replace_fail=: 26971 else 26972 # Save a `func_append' function call even when '+=' is not available 26973 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 26974 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26975 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26976 test 0 -eq $? || _lt_function_replace_fail=: 26977 fi 26978 26979 if test x"$_lt_function_replace_fail" = x":"; then 26980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 26981 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 26982 fi 26983 26984 26985 mv -f "$cfgfile" "$ofile" || 26044 26986 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 26045 26987 chmod +x "$ofile" … … 26053 26995 LD=$lt_LD_CXX 26054 26996 26997 # How to create reloadable object files. 26998 reload_flag=$lt_reload_flag_CXX 26999 reload_cmds=$lt_reload_cmds_CXX 27000 26055 27001 # Commands used to build an old-style archive. 26056 27002 old_archive_cmds=$lt_old_archive_cmds_CXX … … 26065 27011 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 26066 27012 27013 # Additional compiler flags for building library objects. 27014 pic_flag=$lt_lt_prog_compiler_pic_CXX 27015 26067 27016 # How to pass a linker flag through the compiler. 26068 27017 wl=$lt_lt_prog_compiler_wl_CXX 26069 26070 # Additional compiler flags for building library objects.26071 pic_flag=$lt_lt_prog_compiler_pic_CXX26072 27018 26073 27019 # Compiler flag to prevent dynamic linking. … … 26157 27103 link_all_deplibs=$link_all_deplibs_CXX 26158 27104 26159 # Fix the shell variable \$srcfile for the compiler.26160 fix_srcfile_path=$lt_fix_srcfile_path_CXX26161 26162 27105 # Set to "yes" if exported symbols are required. 26163 27106 always_export_symbols=$always_export_symbols_CXX … … 26174 27117 # Commands necessary for linking programs (against libraries) with templates. 26175 27118 prelink_cmds=$lt_prelink_cmds_CXX 27119 27120 # Commands necessary for finishing linking programs. 27121 postlink_cmds=$lt_postlink_cmds_CXX 26176 27122 26177 27123 # Specify filename containing input files.
Note:
See TracChangeset
for help on using the changeset viewer.