Changeset 5878

Show
Ignore:
Timestamp:
02/23/04 16:45:18 (5 years ago)
Author:
aamici
Message:

sync with libtool 1.5.2
move gdal code at the top of the file (and add warnings on keeping it there)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/aclocal.m4

    r5863 r5878  
    552552 
    553553 
     554dnl --------------------------------------------------------------------------- 
     555dnl Message output 
     556dnl --------------------------------------------------------------------------- 
     557AC_DEFUN(LOC_MSG,[ 
     558echo "$1" 
     559]) 
     560 
     561AC_DEFUN(LOC_YES_NO,[if test -n "${$1}" ; then echo yes ; else echo no ; fi]) 
     562 
     563AC_DEFUN(LOC_MSG_USE,[ 
     564[echo "  $1: ]`LOC_YES_NO($2)`"]) 
     565 
     566 
     567 
     568 
     569dnl -------------------------------------------------------------------------- 
     570dnl DO NOT ADD GDAL-SPECIFIC MACROS BELOW THIS LINE! 
     571dnl -------------------------------------------------------------------------- 
     572 
    554573 
    555574# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 
     
    578597 
    579598# serial 47 AC_PROG_LIBTOOL 
    580 # Debian $Rev: 47
     599# Debian $Rev: 192
    581600 
    582601 
     
    13951414    ]) 
    13961415   ;; 
    1397      
     1416 
    13981417  *) 
    13991418    AC_CHECK_FUNC([shl_load], 
     
    14831502   mkdir out 
    14841503   printf "$lt_simple_compile_test_code" > conftest.$ac_ext 
    1485  
    1486    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 
    1487    # that will create temporary files in the current directory regardless of 
    1488    # the output directory.  Thus, making CWD read-only will cause this test 
    1489    # to fail, enabling locking or at least warning the user not to do parallel 
    1490    # builds. 
    1491    chmod -w . 
    14921504 
    14931505   lt_compiler_flag="-o out/conftest2.$ac_objext" 
     
    16351647  AC_MSG_RESULT([no]) 
    16361648    ;; 
    1637   esac   
     1649  esac 
    16381650fi 
    16391651])# AC_LIBTOOL_SYS_LIB_STRIP 
     
    20042016  hardcode_into_libs=yes 
    20052017 
     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 
    20062024  # We used to test for /lib/ld.so.1 and disable shared libraries on 
    20072025  # powerpc, because MkLinux only supported shared libraries with the 
     
    20112029  # assume the GNU/Linux dynamic linker is in use. 
    20122030  dynamic_linker='GNU/Linux ld.so' 
     2031  ;; 
     2032 
     2033knetbsd*-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' 
    20132043  ;; 
    20142044 
     
    20222052    dynamic_linker='NetBSD (a.out) ld.so' 
    20232053  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}' 
    20252055    soname_spec='${libname}${release}${shared_ext}$major' 
    20262056    dynamic_linker='NetBSD ld.elf_so' 
     
    20512081  version_type=sunos 
    20522082  need_lib_prefix=no 
    2053   need_version=no 
     2083  need_version=yes 
    20542084  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 
    20552085  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 
     
    26612691  ;; 
    26622692 
    2663 cygwin* | mingw* | pw32*
     2693cygwin*
    26642694  # win32_libid is a shell function defined in ltmain.sh 
    26652695  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 
     
    26672697  ;; 
    26682698 
     2699mingw* | 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 
    26692706darwin* | rhapsody*) 
    2670   # this will be overwritten by pass_all, but leave it in just in case 
    2671   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" in 
    2674   rhapsody* | darwin1.[[012]]) 
    2675     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` 
    2676     ;; 
    2677   *) # Darwin 1.3 on 
    2678     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 
    2679     ;; 
    2680   esac 
    26812707  lt_cv_deplibs_check_method=pass_all 
    26822708  ;; 
     
    27212747 
    27222748irix5* | 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;; 
    27382754  esac 
    2739   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 
    27402755  lt_cv_deplibs_check_method=pass_all 
    27412756  ;; 
     
    27432758# This must be Linux ELF. 
    27442759linux*) 
    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 
     2763netbsd* | knetbsd*-gnu) 
    27562764  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 
    27572765    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 
     
    27822790 
    27832791osf3* | osf4* | osf5*) 
    2784   # this will be overridden with pass_all, but let us keep it just in case 
    2785   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 
    2786   lt_cv_file_magic_test_file=/shlib/libc.so 
    27872792  lt_cv_deplibs_check_method=pass_all 
    27882793  ;; 
     
    27942799solaris*) 
    27952800  lt_cv_deplibs_check_method=pass_all 
    2796   lt_cv_file_magic_test_file=/lib/libc.so 
    27972801  ;; 
    27982802 
     
    30603064if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then 
    30613065  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 : 
    30633067  else 
    30643068    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) 
     
    31323136          10.*) 
    31333137            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 
    3134             ;;             
     3138            ;; 
    31353139        esac 
    31363140      fi 
     
    31503154  else 
    31513155    _LT_AC_TAGVAR(ld_shlibs, $1)=no 
    3152   fi   
    3153     ;;   
     3156  fi 
     3157    ;; 
    31543158esac 
    31553159AC_MSG_RESULT([$enable_shared]) 
     
    34693473          10.*) 
    34703474            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 
    3471             ;;             
     3475            ;; 
    34723476        esac 
    34733477      fi 
     
    37553759    esac 
    37563760    ;; 
    3757   netbsd*
     3761  netbsd* | knetbsd*-gnu
    37583762    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 
    37593763      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 
     
    44074411  if test -n "${ZSH_VERSION+set}" ; then 
    44084412    setopt NO_GLOB_SUBST 
    4409   fi   
     4413  fi 
    44104414  # Now quote all the things that may contain metacharacters while being 
    44114415  # careful not to overquote the AC_SUBSTed values.  We take copies of the 
    44124416  # 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 \ 
    44144419    libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 
    44154420    old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 
     
    44614466    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ 
    44624467    _LT_AC_TAGVAR(module_cmds, $1) | \ 
    4463     _LT_AC_TAGVAR(module_expsym_cmds, $1) | \    
     4468    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ 
    44644469    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ 
    44654470    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ 
     
    45924597 
    45934598# A symbol stripping program 
    4594 STRIP="$STRIP" 
     4599STRIP=$lt_STRIP 
    45954600 
    45964601# Used to examine libraries when file_magic_cmd begins "file" 
     
    48674872  # `config.status --recheck' to rerun these tests and create the 
    48684873  # 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 
    48704878fi 
    48714879])# AC_LIBTOOL_CONFIG 
     
    52245232            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 
    52255233            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 
    5226             ;;  
     5234            ;; 
    52275235          cxx) 
    52285236            # Compaq C++ 
     
    52495257        esac 
    52505258        ;; 
    5251       netbsd*
     5259      netbsd* | knetbsd*-gnu
    52525260        ;; 
    52535261      osf3* | osf4* | osf5*) 
     
    55845592  _LT_AC_TAGVAR(hardcode_automatic, $1)=no 
    55855593  _LT_AC_TAGVAR(module_cmds, $1)= 
    5586   _LT_AC_TAGVAR(module_expsym_cmds, $1)=   
     5594  _LT_AC_TAGVAR(module_expsym_cmds, $1)= 
    55875595  _LT_AC_TAGVAR(always_export_symbols, $1)=no 
    55885596  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 
     
    56895697      ;; 
    56905698 
    5691     netbsd*
     5699    netbsd* | knetbsd*-gnu
    56925700      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 
    56935701        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 
     
    59565964          10.*) 
    59575965            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 
    5958             ;;             
     5966            ;; 
    59595967        esac 
    59605968      fi 
     
    59845992      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' 
    59855993      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 
    5986     else   
     5994    else 
    59875995      _LT_AC_TAGVAR(ld_shlibs, $1)=no 
    5988     fi   
     5996    fi 
    59895997      ;; 
    59905998 
     
    61066114      ;; 
    61076115 
    6108     netbsd*
     6116    netbsd* | knetbsd*-gnu
    61096117      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 
    61106118        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out 
     
    63366344      $rm conftest* 
    63376345      printf "$lt_simple_compile_test_code" > conftest.$ac_ext 
    6338    
     6346 
    63396347      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 
    63406348        soname=conftest 
     
    65006508]) 
    65016509 
    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)`"]) 
     6510dnl -------------------------------------------------------------------------- 
     6511dnl Please do not add gdal-specific macros here. 
     6512dnl Put them above the big libtool macros instead. 
     6513dnl --------------------------------------------------------------------------