Changeset 5878
- Timestamp:
- 02/23/04 16:45:18 (5 years ago)
- Files:
-
- trunk/aclocal.m4 (modified) (33 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/aclocal.m4
r5863 r5878 552 552 553 553 554 dnl --------------------------------------------------------------------------- 555 dnl Message output 556 dnl --------------------------------------------------------------------------- 557 AC_DEFUN(LOC_MSG,[ 558 echo "$1" 559 ]) 560 561 AC_DEFUN(LOC_YES_NO,[if test -n "${$1}" ; then echo yes ; else echo no ; fi]) 562 563 AC_DEFUN(LOC_MSG_USE,[ 564 [echo " $1: ]`LOC_YES_NO($2)`"]) 565 566 567 568 569 dnl -------------------------------------------------------------------------- 570 dnl DO NOT ADD GDAL-SPECIFIC MACROS BELOW THIS LINE! 571 dnl -------------------------------------------------------------------------- 572 554 573 555 574 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- … … 578 597 579 598 # serial 47 AC_PROG_LIBTOOL 580 # Debian $Rev: 47$599 # Debian $Rev: 192 $ 581 600 582 601 … … 1395 1414 ]) 1396 1415 ;; 1397 1416 1398 1417 *) 1399 1418 AC_CHECK_FUNC([shl_load], … … 1483 1502 mkdir out 1484 1503 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 1485 1486 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers1487 # that will create temporary files in the current directory regardless of1488 # the output directory. Thus, making CWD read-only will cause this test1489 # to fail, enabling locking or at least warning the user not to do parallel1490 # builds.1491 chmod -w .1492 1504 1493 1505 lt_compiler_flag="-o out/conftest2.$ac_objext" … … 1635 1647 AC_MSG_RESULT([no]) 1636 1648 ;; 1637 esac 1649 esac 1638 1650 fi 1639 1651 ])# AC_LIBTOOL_SYS_LIB_STRIP … … 2004 2016 hardcode_into_libs=yes 2005 2017 2018 # Append ld.so.conf contents to the search path 2019 if test -f /etc/ld.so.conf; then 2020 ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf` 2021 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" 2022 fi 2023 2006 2024 # We used to test for /lib/ld.so.1 and disable shared libraries on 2007 2025 # powerpc, because MkLinux only supported shared libraries with the … … 2011 2029 # assume the GNU/Linux dynamic linker is in use. 2012 2030 dynamic_linker='GNU/Linux ld.so' 2031 ;; 2032 2033 knetbsd*-gnu) 2034 version_type=linux 2035 need_lib_prefix=no 2036 need_version=no 2037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 2038 soname_spec='${libname}${release}${shared_ext}$major' 2039 shlibpath_var=LD_LIBRARY_PATH 2040 shlibpath_overrides_runpath=no 2041 hardcode_into_libs=yes 2042 dynamic_linker='GNU ld.so' 2013 2043 ;; 2014 2044 … … 2022 2052 dynamic_linker='NetBSD (a.out) ld.so' 2023 2053 else 2024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${ release}${shared_ext} ${libname}${shared_ext}'2054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 2025 2055 soname_spec='${libname}${release}${shared_ext}$major' 2026 2056 dynamic_linker='NetBSD ld.elf_so' … … 2051 2081 version_type=sunos 2052 2082 need_lib_prefix=no 2053 need_version= no2083 need_version=yes 2054 2084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 2055 2085 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' … … 2661 2691 ;; 2662 2692 2663 cygwin* | mingw* | pw32*)2693 cygwin*) 2664 2694 # win32_libid is a shell function defined in ltmain.sh 2665 2695 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' … … 2667 2697 ;; 2668 2698 2699 mingw* | pw32*) 2700 # Base MSYS/MinGW do not provide the 'file' command needed by 2701 # win32_libid shell function, so use a weaker test based on 'objdump'. 2702 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 2703 lt_cv_file_magic_cmd='$OBJDUMP -f' 2704 ;; 2705 2669 2706 darwin* | rhapsody*) 2670 # this will be overwritten by pass_all, but leave it in just in case2671 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'2672 lt_cv_file_magic_cmd='/usr/bin/file -L'2673 case "$host_os" in2674 rhapsody* | darwin1.[[012]])2675 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`2676 ;;2677 *) # Darwin 1.3 on2678 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'2679 ;;2680 esac2681 2707 lt_cv_deplibs_check_method=pass_all 2682 2708 ;; … … 2721 2747 2722 2748 irix5* | irix6* | nonstopux*) 2723 case $host_os in 2724 irix5* | nonstopux*) 2725 # this will be overridden with pass_all, but let us keep it just in case 2726 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 2727 ;; 2728 *) 2729 case $LD in 2730 *-32|*"-32 ") libmagic=32-bit;; 2731 *-n32|*"-n32 ") libmagic=N32;; 2732 *-64|*"-64 ") libmagic=64-bit;; 2733 *) libmagic=never-match;; 2734 esac 2735 # this will be overridden with pass_all, but let us keep it just in case 2736 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1" 2737 ;; 2749 case $LD in 2750 *-32|*"-32 ") libmagic=32-bit;; 2751 *-n32|*"-n32 ") libmagic=N32;; 2752 *-64|*"-64 ") libmagic=64-bit;; 2753 *) libmagic=never-match;; 2738 2754 esac 2739 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`2740 2755 lt_cv_deplibs_check_method=pass_all 2741 2756 ;; … … 2743 2758 # This must be Linux ELF. 2744 2759 linux*) 2745 case $host_cpu in 2746 alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*) 2747 lt_cv_deplibs_check_method=pass_all ;; 2748 *) 2749 # glibc up to 2.1.1 does not perform some relocations on ARM 2750 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; 2751 esac 2752 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 2753 ;; 2754 2755 netbsd*) 2760 lt_cv_deplibs_check_method=pass_all 2761 ;; 2762 2763 netbsd* | knetbsd*-gnu) 2756 2764 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2757 2765 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' … … 2782 2790 2783 2791 osf3* | osf4* | osf5*) 2784 # this will be overridden with pass_all, but let us keep it just in case2785 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'2786 lt_cv_file_magic_test_file=/shlib/libc.so2787 2792 lt_cv_deplibs_check_method=pass_all 2788 2793 ;; … … 2794 2799 solaris*) 2795 2800 lt_cv_deplibs_check_method=pass_all 2796 lt_cv_file_magic_test_file=/lib/libc.so2797 2801 ;; 2798 2802 … … 3060 3064 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then 3061 3065 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) 3062 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$ ]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[ ]]" >/dev/null; then :3066 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then : 3063 3067 else 3064 3068 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) … … 3132 3136 10.*) 3133 3137 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 3134 ;; 3138 ;; 3135 3139 esac 3136 3140 fi … … 3150 3154 else 3151 3155 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3152 fi 3153 ;; 3156 fi 3157 ;; 3154 3158 esac 3155 3159 AC_MSG_RESULT([$enable_shared]) … … 3469 3473 10.*) 3470 3474 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 3471 ;; 3475 ;; 3472 3476 esac 3473 3477 fi … … 3755 3759 esac 3756 3760 ;; 3757 netbsd* )3761 netbsd* | knetbsd*-gnu) 3758 3762 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 3759 3763 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' … … 4407 4411 if test -n "${ZSH_VERSION+set}" ; then 4408 4412 setopt NO_GLOB_SUBST 4409 fi 4413 fi 4410 4414 # Now quote all the things that may contain metacharacters while being 4411 4415 # careful not to overquote the AC_SUBSTed values. We take copies of the 4412 4416 # variables and quote the copies for generation of the libtool script. 4413 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 4417 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 4418 SED SHELL STRIP \ 4414 4419 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 4415 4420 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ … … 4461 4466 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ 4462 4467 _LT_AC_TAGVAR(module_cmds, $1) | \ 4463 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ 4468 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ 4464 4469 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ 4465 4470 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ … … 4592 4597 4593 4598 # A symbol stripping program 4594 STRIP= "$STRIP"4599 STRIP=$lt_STRIP 4595 4600 4596 4601 # Used to examine libraries when file_magic_cmd begins "file" … … 4867 4872 # `config.status --recheck' to rerun these tests and create the 4868 4873 # libtool script then. 4869 test -f Makefile && make "$ltmain" 4874 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 4875 if test -f "$ltmain_in"; then 4876 test -f Makefile && make "$ltmain" 4877 fi 4870 4878 fi 4871 4879 ])# AC_LIBTOOL_CONFIG … … 5224 5232 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5225 5233 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5226 ;; 5234 ;; 5227 5235 cxx) 5228 5236 # Compaq C++ … … 5249 5257 esac 5250 5258 ;; 5251 netbsd* )5259 netbsd* | knetbsd*-gnu) 5252 5260 ;; 5253 5261 osf3* | osf4* | osf5*) … … 5584 5592 _LT_AC_TAGVAR(hardcode_automatic, $1)=no 5585 5593 _LT_AC_TAGVAR(module_cmds, $1)= 5586 _LT_AC_TAGVAR(module_expsym_cmds, $1)= 5594 _LT_AC_TAGVAR(module_expsym_cmds, $1)= 5587 5595 _LT_AC_TAGVAR(always_export_symbols, $1)=no 5588 5596 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' … … 5689 5697 ;; 5690 5698 5691 netbsd* )5699 netbsd* | knetbsd*-gnu) 5692 5700 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5693 5701 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' … … 5956 5964 10.*) 5957 5965 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 5958 ;; 5966 ;; 5959 5967 esac 5960 5968 fi … … 5984 5992 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' 5985 5993 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 5986 else 5994 else 5987 5995 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5988 fi 5996 fi 5989 5997 ;; 5990 5998 … … 6106 6114 ;; 6107 6115 6108 netbsd* )6116 netbsd* | knetbsd*-gnu) 6109 6117 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6110 6118 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out … … 6336 6344 $rm conftest* 6337 6345 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6338 6346 6339 6347 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 6340 6348 soname=conftest … … 6500 6508 ]) 6501 6509 6502 6503 dnl --------------------------------------------------------------------------- 6504 dnl Message output 6505 dnl --------------------------------------------------------------------------- 6506 AC_DEFUN(LOC_MSG,[ 6507 echo "$1" 6508 ]) 6509 6510 AC_DEFUN(LOC_YES_NO,[if test -n "${$1}" ; then echo yes ; else echo no ; fi]) 6511 6512 AC_DEFUN(LOC_MSG_USE,[ 6513 [echo " $1: ]`LOC_YES_NO($2)`"]) 6510 dnl -------------------------------------------------------------------------- 6511 dnl Please do not add gdal-specific macros here. 6512 dnl Put them above the big libtool macros instead. 6513 dnl --------------------------------------------------------------------------
