Changeset 605 for branches/GNU/src/binutils/libtool.m4
- Timestamp:
- Aug 16, 2003, 6:41:03 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/libtool.m4
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r604 r605 23 23 ## the same distribution terms that you use for the rest of that program. 24 24 25 # serial 45 AC_PROG_LIBTOOL 26 AC_DEFUN(AC_PROG_LIBTOOL,[AC_REQUIRE([_AC_PROG_LIBTOOL]) 25 # serial 46 AC_PROG_LIBTOOL 26 AC_DEFUN([AC_PROG_LIBTOOL], 27 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl 27 28 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX 28 29 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. … … 51 52 ])])])])])]) 52 53 53 AC_DEFUN( _AC_PROG_LIBTOOL,54 AC_DEFUN([_AC_PROG_LIBTOOL], 54 55 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl 55 56 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl … … 85 86 ]) 86 87 87 AC_DEFUN( AC_LIBTOOL_SETUP,88 AC_DEFUN([AC_LIBTOOL_SETUP], 88 89 [AC_PREREQ(2.13)dnl 89 90 AC_REQUIRE([AC_ENABLE_SHARED])dnl … … 104 105 105 106 # Only perform the check for file, if the check method requires it 106 case "$deplibs_check_method"in107 case $deplibs_check_method in 107 108 file_magic*) 108 109 if test "$file_magic_cmd" = '$MAGIC_CMD'; then … … 120 121 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" 121 122 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" 122 test "$ ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"123 test "$ ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"123 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" 124 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" 124 125 ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], 125 126 [libtool_flags="$libtool_flags --enable-dlopen"]) … … 139 140 # Some flags need to be propagated to the compiler or linker for good 140 141 # libtool support. 141 case "$host"in142 case $host in 142 143 *-*-irix6*) 143 144 # Find out which ABI we are using. 144 145 echo '[#]line __oline__ "configure"' > conftest.$ac_ext 145 146 if AC_TRY_EVAL(ac_compile); then 146 case "`/usr/bin/file conftest.o`" in 147 if test "$lt_cv_prog_gnu_ld" = yes; then 148 case `/usr/bin/file conftest.$ac_objext` in 149 *32-bit*) 150 LD="${LD-ld} -melf32bsmip" 151 ;; 152 *N32*) 153 LD="${LD-ld} -melf32bmipn32" 154 ;; 155 *64-bit*) 156 LD="${LD-ld} -melf64bmip" 157 ;; 158 esac 159 else 160 case `/usr/bin/file conftest.$ac_objext` in 147 161 *32-bit*) 148 162 LD="${LD-ld} -32" … … 153 167 *64-bit*) 154 168 LD="${LD-ld} -64" 169 ;; 170 esac 171 fi 172 fi 173 rm -rf conftest* 174 ;; 175 176 ia64-*-hpux*) 177 # Find out which ABI we are using. 178 echo 'int i;' > conftest.$ac_ext 179 if AC_TRY_EVAL(ac_compile); then 180 case "`/usr/bin/file conftest.o`" in 181 *ELF-32*) 182 HPUX_IA64_MODE="32" 183 ;; 184 *ELF-64*) 185 HPUX_IA64_MODE="64" 155 186 ;; 156 187 esac … … 188 219 [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])]) 189 220 190 case "$host/$CC"in221 case $host/$CC in 191 222 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*) 192 223 # old mingw systems require "-dll" to link a DLL, while more recent ones … … 208 239 209 240 # AC_LIBTOOL_DLOPEN - enable checks for dlopen support 210 AC_DEFUN( AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])241 AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])]) 211 242 212 243 # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's 213 AC_DEFUN( AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])244 AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])]) 214 245 215 246 # AC_ENABLE_SHARED - implement the --enable-shared flag … … 217 248 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to 218 249 # `yes'. 219 AC_DEFUN( AC_ENABLE_SHARED, [dnl220 define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl250 AC_DEFUN([AC_ENABLE_SHARED], 251 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl 221 252 AC_ARG_ENABLE(shared, 222 253 changequote(<<, >>)dnl … … 224 255 changequote([, ])dnl 225 256 [p=${PACKAGE-default} 226 case "$enableval"in257 case $enableval in 227 258 yes) enable_shared=yes ;; 228 259 no) enable_shared=no ;; … … 243 274 244 275 # AC_DISABLE_SHARED - set the default shared flag to --disable-shared 245 AC_DEFUN( AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl276 AC_DEFUN([AC_DISABLE_SHARED], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 246 277 AC_ENABLE_SHARED(no)]) 247 278 … … 250 281 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to 251 282 # `yes'. 252 AC_DEFUN( AC_ENABLE_STATIC, [dnl253 define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl283 AC_DEFUN([AC_ENABLE_STATIC], 284 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl 254 285 AC_ARG_ENABLE(static, 255 286 changequote(<<, >>)dnl … … 257 288 changequote([, ])dnl 258 289 [p=${PACKAGE-default} 259 case "$enableval"in290 case $enableval in 260 291 yes) enable_static=yes ;; 261 292 no) enable_static=no ;; … … 276 307 277 308 # AC_DISABLE_STATIC - set the default static flag to --disable-static 278 AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 309 AC_DEFUN([AC_DISABLE_STATIC], 310 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 279 311 AC_ENABLE_STATIC(no)]) 280 312 … … 284 316 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to 285 317 # `yes'. 286 AC_DEFUN( AC_ENABLE_FAST_INSTALL, [dnl287 define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl318 AC_DEFUN([AC_ENABLE_FAST_INSTALL], 319 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl 288 320 AC_ARG_ENABLE(fast-install, 289 321 changequote(<<, >>)dnl … … 291 323 changequote([, ])dnl 292 324 [p=${PACKAGE-default} 293 case "$enableval"in325 case $enableval in 294 326 yes) enable_fast_install=yes ;; 295 327 no) enable_fast_install=no ;; … … 310 342 311 343 # AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install 312 AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 344 AC_DEFUN([AC_DISABLE_FAST_INSTALL], 345 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 313 346 AC_ENABLE_FAST_INSTALL(no)]) 314 347 … … 317 350 # Where MODE is either `yes' or `no'. If omitted, it defaults to 318 351 # `both'. 319 AC_DEFUN(AC_LIBTOOL_PICMODE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 352 AC_DEFUN([AC_LIBTOOL_PICMODE], 353 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 320 354 pic_mode=ifelse($#,1,$1,default)]) 321 355 322 356 323 357 # AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library 324 AC_DEFUN( AC_PATH_TOOL_PREFIX,358 AC_DEFUN([AC_PATH_TOOL_PREFIX], 325 359 [AC_MSG_CHECKING([for $1]) 326 360 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 327 [case "$MAGIC_CMD"in361 [case $MAGIC_CMD in 328 362 /*) 329 363 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. … … 344 378 lt_cv_path_MAGIC_CMD="$ac_dir/$1" 345 379 if test -n "$file_magic_test_file"; then 346 case "$deplibs_check_method"in380 case $deplibs_check_method in 347 381 "file_magic "*) 348 382 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" … … 384 418 385 419 # AC_PATH_MAGIC - find a file program which can recognise a shared library 386 AC_DEFUN( AC_PATH_MAGIC,420 AC_DEFUN([AC_PATH_MAGIC], 387 421 [AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl 388 422 AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH) … … 398 432 399 433 # AC_PROG_LD - find the path to the GNU or non-GNU linker 400 AC_DEFUN( AC_PROG_LD,434 AC_DEFUN([AC_PROG_LD], 401 435 [AC_ARG_WITH(gnu-ld, 402 436 [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], … … 406 440 AC_REQUIRE([AC_CANONICAL_BUILD])dnl 407 441 ac_prog=ld 408 if test "$ ac_cv_prog_gcc" = yes; then442 if test "$GCC" = yes; then 409 443 # Check if gcc -print-prog-name=ld gives a path. 410 444 AC_MSG_CHECKING([for ld used by GCC]) … … 416 450 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 417 451 esac 418 case "$ac_prog"in452 case $ac_prog in 419 453 # Accept absolute paths. 420 changequote(,)dnl 421 [\\/]* | [A-Za-z]:[\\/]*) 422 re_direlt='/[^/][^/]*/\.\./' 423 changequote([,])dnl 454 [[\\/]* | [A-Za-z]:[\\/]*)] 455 re_direlt=['/[^/][^/]*/\.\./'] 424 456 # Canonicalize the path of ld 425 457 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` … … 443 475 AC_MSG_CHECKING([for non-GNU ld]) 444 476 fi 445 AC_CACHE_VAL( ac_cv_path_LD,477 AC_CACHE_VAL(lt_cv_path_LD, 446 478 [if test -z "$LD"; then 447 479 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" … … 449 481 test -z "$ac_dir" && ac_dir=. 450 482 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 451 ac_cv_path_LD="$ac_dir/$ac_prog"483 lt_cv_path_LD="$ac_dir/$ac_prog" 452 484 # Check to see if the program is GNU ld. I'd rather use --version, 453 485 # but apparently some GNU ld's only accept -v. 454 486 # Break only if it was the GNU/non-GNU ld that we prefer. 455 if "$ ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then487 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 456 488 test "$with_gnu_ld" != no && break 457 489 else … … 462 494 IFS="$ac_save_ifs" 463 495 else 464 ac_cv_path_LD="$LD" # Let the user override the test with a path.496 lt_cv_path_LD="$LD" # Let the user override the test with a path. 465 497 fi]) 466 LD="$ ac_cv_path_LD"498 LD="$lt_cv_path_LD" 467 499 if test -n "$LD"; then 468 500 AC_MSG_RESULT($LD) … … 474 506 ]) 475 507 476 AC_DEFUN( AC_PROG_LD_GNU,477 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,508 AC_DEFUN([AC_PROG_LD_GNU], 509 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 478 510 [# I'd rather use --version here, but apparently some GNU ld's only accept -v. 479 511 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 480 ac_cv_prog_gnu_ld=yes512 lt_cv_prog_gnu_ld=yes 481 513 else 482 ac_cv_prog_gnu_ld=no514 lt_cv_prog_gnu_ld=no 483 515 fi]) 484 with_gnu_ld=$ ac_cv_prog_gnu_ld516 with_gnu_ld=$lt_cv_prog_gnu_ld 485 517 ]) 486 518 487 519 # AC_PROG_LD_RELOAD_FLAG - find reload flag for linker 488 520 # -- PORTME Some linkers may need a different reload flag. 489 AC_DEFUN( AC_PROG_LD_RELOAD_FLAG,521 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], 490 522 [AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag, 491 523 [lt_cv_ld_reload_flag='-r']) … … 496 528 # AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies 497 529 # -- PORTME fill in with the dynamic library characteristics 498 AC_DEFUN( AC_DEPLIBS_CHECK_METHOD,530 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], 499 531 [AC_CACHE_CHECK([how to recognise dependant libraries], 500 532 lt_cv_deplibs_check_method, … … 513 545 # whether `pass_all' will *always* work, you probably want this one. 514 546 515 case "$host_os"in516 aix 4*)547 case $host_os in 548 aix*) 517 549 lt_cv_deplibs_check_method=pass_all 518 550 ;; … … 523 555 524 556 bsdi4*) 525 changequote(,)dnl 526 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 527 changequote([, ])dnl 557 lt_cv_deplibs_check_method=['file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'] 528 558 lt_cv_file_magic_cmd='/usr/bin/file -L' 529 559 lt_cv_file_magic_test_file=/shlib/libc.so … … 535 565 ;; 536 566 567 darwin* | rhapsody*) 568 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 569 lt_cv_file_magic_cmd='/usr/bin/file -L' 570 case "$host_os" in 571 rhapsody* | darwin1.[012]) 572 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' 573 ;; 574 *) # Darwin 1.3 on 575 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 576 ;; 577 esac 578 ;; 579 537 580 freebsd* ) 538 581 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 539 case "$host_cpu"in582 case $host_cpu in 540 583 i*86 ) 541 584 # Not sure whether the presence of OpenBSD here was a mistake. 542 585 # Let's accept both of them until this is cleared up. 543 changequote(,)dnl 544 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 545 changequote([, ])dnl 586 lt_cv_deplibs_check_method=['file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'] 546 587 lt_cv_file_magic_cmd=/usr/bin/file 547 588 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` … … 557 598 ;; 558 599 559 hpux10.20*) 560 # TODO: Does this work for hpux-11 too? 561 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 562 lt_cv_file_magic_cmd=/usr/bin/file 563 lt_cv_file_magic_test_file=/usr/lib/libc.sl 600 hpux10.20*|hpux11*) 601 case $host_cpu in 602 hppa*) 603 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'] 604 lt_cv_file_magic_cmd=/usr/bin/file 605 lt_cv_file_magic_test_file=/usr/lib/libc.sl 606 ;; 607 ia64*) 608 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'] 609 lt_cv_file_magic_cmd=/usr/bin/file 610 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 611 ;; 612 esac 564 613 ;; 565 614 566 615 irix5* | irix6*) 567 case "$host_os"in616 case $host_os in 568 617 irix5*) 569 618 # this will be overridden with pass_all, but let us keep it just in case … … 571 620 ;; 572 621 *) 573 case "$LD"in622 case $LD in 574 623 *-32|*"-32 ") libmagic=32-bit;; 575 624 *-n32|*"-n32 ") libmagic=N32;; … … 578 627 esac 579 628 # this will be overridden with pass_all, but let us keep it just in case 580 changequote(,)dnl 581 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 582 changequote([, ])dnl 629 lt_cv_deplibs_check_method=["file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"] 583 630 ;; 584 631 esac … … 589 636 # This must be Linux ELF. 590 637 linux-gnu*) 591 case "$host_cpu"in592 alpha* | i*86 | powerpc* | sparc* | ia64* )638 case $host_cpu in 639 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* ) 593 640 lt_cv_deplibs_check_method=pass_all ;; 594 641 *) 595 642 # glibc up to 2.1.1 does not perform some relocations on ARM 596 changequote(,)dnl 597 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 598 changequote([, ])dnl 643 lt_cv_deplibs_check_method=['file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'] ;; 599 644 esac 600 645 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` … … 602 647 603 648 netbsd*) 604 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then : 649 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 650 [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'] 605 651 else 606 changequote(,)dnl 607 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 608 changequote([, ])dnl 609 lt_cv_file_magic_cmd='/usr/bin/file -L' 610 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 652 [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'] 611 653 fi 654 ;; 655 656 newsos6) 657 [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'] 658 lt_cv_file_magic_cmd=/usr/bin/file 659 lt_cv_file_magic_test_file=/usr/lib/libnls.so 612 660 ;; 613 661 … … 628 676 ;; 629 677 678 [sysv5uw[78]* | sysv4*uw2*)] 679 lt_cv_deplibs_check_method=pass_all 680 ;; 681 630 682 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 631 case "$host_vendor"in683 case $host_vendor in 632 684 ncr) 633 685 lt_cv_deplibs_check_method=pass_all 634 686 ;; 635 687 motorola) 636 changequote(,)dnl 637 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 638 changequote([, ])dnl 688 lt_cv_deplibs_check_method=['file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'] 639 689 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 640 690 ;; … … 649 699 650 700 # AC_PROG_NM - find the path to a BSD-compatible name lister 651 AC_DEFUN( AC_PROG_NM,701 AC_DEFUN([AC_PROG_NM], 652 702 [AC_MSG_CHECKING([for BSD-compatible nm]) 653 AC_CACHE_VAL( ac_cv_path_NM,703 AC_CACHE_VAL(lt_cv_path_NM, 654 704 [if test -n "$NM"; then 655 705 # Let the user override the test. 656 ac_cv_path_NM="$NM"706 lt_cv_path_NM="$NM" 657 707 else 658 708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" … … 666 716 # Tru64's nm complains that /dev/null is an invalid object file 667 717 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then 668 ac_cv_path_NM="$tmp_nm -B"718 lt_cv_path_NM="$tmp_nm -B" 669 719 break 670 720 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 671 ac_cv_path_NM="$tmp_nm -p"721 lt_cv_path_NM="$tmp_nm -p" 672 722 break 673 723 else 674 ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but724 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 675 725 continue # so that we can try to find one that supports BSD flags 676 726 fi … … 678 728 done 679 729 IFS="$ac_save_ifs" 680 test -z "$ ac_cv_path_NM" && ac_cv_path_NM=nm730 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 681 731 fi]) 682 NM="$ ac_cv_path_NM"732 NM="$lt_cv_path_NM" 683 733 AC_MSG_RESULT([$NM]) 684 734 ]) 685 735 686 736 # AC_CHECK_LIBM - check for math library 687 AC_DEFUN( AC_CHECK_LIBM,737 AC_DEFUN([AC_CHECK_LIBM], 688 738 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 689 739 LIBM= 690 case "$host"in740 case $host in 691 741 *-*-beos* | *-*-cygwin* | *-*-pw32*) 692 742 # These system don't have libm … … 712 762 # flat and you're not using automake, define top_builddir and 713 763 # top_srcdir appropriately in the Makefiles. 714 AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 715 case "$enable_ltdl_convenience" in 764 AC_DEFUN([AC_LIBLTDL_CONVENIENCE], 765 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 766 case $enable_ltdl_convenience in 716 767 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; 717 768 "") enable_ltdl_convenience=yes … … 733 784 # top_srcdir appropriately in the Makefiles. 734 785 # In the future, this macro may have to be called after AC_PROG_LIBTOOL. 735 AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 786 AC_DEFUN([AC_LIBLTDL_INSTALLABLE], 787 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 736 788 AC_CHECK_LIB(ltdl, main, 737 789 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], … … 761 813 762 814 # AC_LIBTOOL_CXX - enable support for C++ libraries 763 AC_DEFUN( AC_LIBTOOL_CXX,[AC_REQUIRE([_AC_LIBTOOL_CXX])])764 AC_DEFUN(_AC_LIBTOOL_CXX, 765 [AC_REQUIRE([AC_PROG_LIBTOOL]) 766 AC_REQUIRE([AC_PROG_CXX])815 AC_DEFUN([AC_LIBTOOL_CXX], [AC_REQUIRE([_AC_LIBTOOL_CXX])]) 816 817 AC_DEFUN([_AC_LIBTOOL_CXX], 818 [AC_REQUIRE([AC_PROG_CXX]) 767 819 AC_REQUIRE([AC_PROG_CXXCPP]) 768 820 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh" … … 772 824 dnl is set to the C++ compiler. 773 825 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \ 774 MAGIC_CMD="$MAGIC_CMD" LD FLAGS="$LDFLAGS" LIBS="$LIBS" \826 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 775 827 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ 776 828 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ … … 790 842 791 843 # AC_LIBTOOL_GCJ - enable support for GCJ libraries 792 AC_DEFUN(AC_LIBTOOL_GCJ,[AC_REQUIRE([_AC_LIBTOOL_GCJ])]) 793 AC_DEFUN(_AC_LIBTOOL_GCJ, 844 AC_DEFUN([AC_LIBTOOL_GCJ],[AC_REQUIRE([_AC_LIBTOOL_GCJ])]) 845 846 AC_DEFUN([_AC_LIBTOOL_GCJ], 794 847 [AC_REQUIRE([AC_PROG_LIBTOOL]) 795 848 AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], … … 805 858 dnl is set to the C++ compiler. 806 859 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \ 807 MAGIC_CMD="$MAGIC_CMD" LD FLAGS="$LDFLAGS" LIBS="$LIBS" \860 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 808 861 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ 809 862 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ … … 823 876 824 877 dnl old names 825 AC_DEFUN( AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl826 AC_DEFUN( AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl827 AC_DEFUN( AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl828 AC_DEFUN( AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl829 AC_DEFUN( AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl830 AC_DEFUN( AM_PROG_LD, [indir([AC_PROG_LD])])dnl831 AC_DEFUN( AM_PROG_NM, [indir([AC_PROG_NM])])dnl878 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) 879 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 880 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 881 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 882 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 883 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) 884 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) 832 885 833 886 dnl This is just to silence aclocal about the macro not being used 834 887 ifelse([AC_DISABLE_FAST_INSTALL])dnl 835 888 836 AC_DEFUN([LT_AC_PROG_GCJ], [837 889 AC_DEFUN([LT_AC_PROG_GCJ], 890 [AC_CHECK_TOOL(GCJ, gcj, no) 838 891 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 839 892 AC_SUBST(GCJFLAGS) -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.