Changeset 962 for trunk/auto-reply

Show
Ignore:
Timestamp:
02/05/00 11:39:27 (9 years ago)
Author:
dwalker
Message:

use new libtool

Location:
trunk/auto-reply
Files:
1 removed
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/auto-reply/acinclude.m4

    r794 r962  
    5656 
    5757## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*- 
    58 ## Copyright (C) 1996-1999 Free Software Foundation, Inc. 
     58## Copyright (C) 1996-2000 Free Software Foundation, Inc. 
    5959## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 
    6060## 
     
    7878## the same distribution terms that you use for the rest of that program. 
    7979 
    80 # serial 41 AC_PROG_LIBTOOL 
     80# serial 42 AC_PROG_LIBTOOL 
    8181AC_DEFUN(AC_PROG_LIBTOOL, 
    8282[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl 
     
    8686 
    8787# Actually configure libtool.  ac_aux_dir is where install-sh is found. 
    88 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ 
    89 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 
    90 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ 
    91 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ 
     88AR="$AR" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ 
     89FILE="$FILE" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 
     90LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ 
     91AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ 
     92objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ 
     93deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ 
    9294${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ 
    93 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ 
     95$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $lt_target \ 
    9496|| AC_MSG_ERROR([libtool configure failed]) 
    9597 
     
    117119AC_REQUIRE([AC_CANONICAL_BUILD])dnl 
    118120AC_REQUIRE([AC_PROG_CC])dnl 
    119 with_gcc="$GCC"; AC_SUBST([with_gcc]) 
    120121AC_REQUIRE([AC_PROG_LD])dnl 
     122AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl 
    121123AC_REQUIRE([AC_PROG_NM])dnl 
    122124AC_REQUIRE([AC_PROG_LN_S])dnl 
     125AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl 
    123126AC_REQUIRE([AC_OBJEXT])dnl 
    124127AC_REQUIRE([AC_EXEEXT])dnl 
    125128dnl 
    126129 
     130# Only perform the check for file, if the check method requires it 
     131case "$deplibs_check_method" in 
     132file_magic*) 
     133  if test "$file_magic_cmd" = '$FILE'; then 
     134    AC_PATH_FILE 
     135  fi 
     136  ;; 
     137esac 
     138 
     139case "$target" in 
     140NONE) lt_target="$host" ;; 
     141*) lt_target="$target" ;; 
     142esac 
     143 
    127144AC_CHECK_TOOL(RANLIB, ranlib, :) 
    128145AC_CHECK_TOOL(STRIP, strip, :) 
    129 AC_PATH_TOOL_VERSION_GREP(FILE, file, file, :, "/usr/bin:$PATH") 
    130146 
    131147# Check for any special flags to pass to ltconfig. 
     
    153169# Some flags need to be propagated to the compiler or linker for good 
    154170# libtool support. 
    155 case "$host" in 
     171case "$lt_target" in 
    156172*-*-irix6*) 
    157173  # Find out which ABI we are using. 
     
    194210  # can override, but on older systems we have to supply one 
    195211  AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain, 
    196     [AC_TRY_LINK([DllMain (0, 0, 0);], 
    197       [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);], 
    198       [lt_cv_need_dllmain=yes],[lt_cv_need_dllmain=no])]) 
    199  
    200   case $host in 
    201   *-*-cygwin*) 
    202     # cygwin systems need to pass --dll to the linker, and not link 
    203     # crt.o which will require a WinMain@16 definition. 
    204     lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;; 
    205   *-*-mingw*) 
     212    [AC_TRY_LINK([], 
     213      [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*); 
     214      DllMain (0, 0, 0);], 
     215      [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])]) 
     216 
     217  case "$lt_target/$CC" in 
     218  *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*) 
    206219    # old mingw systems require "-dll" to link a DLL, while more recent ones 
    207220    # require "-mdll" 
     
    211224      [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])]) 
    212225    CFLAGS="$SAVE_CFLAGS" ;; 
     226  *-*-cygwin*) 
     227    # cygwin systems need to pass --dll to the linker, and not link 
     228    # crt.o which will require a WinMain@16 definition. 
     229    lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;; 
    213230  esac 
    214231  ;; 
     
    324341 
    325342 
    326 # AC_PATH_PROG_VERSION_GREP - look for a particular expression in the output 
    327 #                             generated by $PROG --version 
    328 dnl  AC_PATH_PROG_VERSION_GREP(VARIABLE, PROG-TO-CHECK-FOR, GREP-EXPRESSION[, VALUE-IF-NOT-FOUND[, PATH]]) 
    329 AC_DEFUN(AC_PATH_PROG_VERSION_GREP, 
    330 [# Extract the first word of "$2", so it can be a program name with args. 
    331 set dummy $2; ac_word=[$]2 
    332 AC_MSG_CHECKING([for $ac_word]) 
    333 AC_CACHE_VAL(ac_cv_path_$1, 
    334 [case "[$]$1" in 
     343# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library 
     344AC_DEFUN(AC_PATH_TOOL_PREFIX, 
     345[AC_MSG_CHECKING([for $1]) 
     346AC_CACHE_VAL(lt_cv_path_FILE, 
     347[case "$FILE" in 
    335348  /*) 
    336   ac_cv_path_$1="[$]$1" # Let the user override the test with a path. 
     349  lt_cv_path_FILE="$FILE" # Let the user override the test with a path. 
    337350  ;; 
    338351  ?:/*) 
    339   ac_cv_path_$1="[$]$1" # Let the user override the test with a dos path. 
     352  ac_cv_path_FILE="$FILE" # Let the user override the test with a dos path. 
    340353  ;; 
    341354  *) 
     355  ac_save_file="$FILE" 
    342356  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" 
    343357dnl $ac_dummy forces splitting on constant user-supplied paths. 
    344358dnl POSIX.2 word splitting is done only on the output of word expansions, 
    345359dnl not every word.  This closes a longstanding sh security hole. 
    346   ac_dummy="ifelse([$5], , $PATH, [$5])" 
     360  ac_dummy="ifelse([$2], , $PATH, [$2])" 
    347361  for ac_dir in $ac_dummy; do 
    348362    test -z "$ac_dir" && ac_dir=. 
    349     if $ac_dir/$2 --version 2>/dev/null | grep $3 >/dev/null 2>&1; then 
    350       ac_cv_path_$1="$ac_dir/$ac_word" 
     363    if test -f $ac_dir/$1; then 
     364      lt_cv_path_FILE="$ac_dir/$1" 
     365      if test -n "$file_magic_test_file"; then 
     366    case "$deplibs_check_method" in 
     367    "file_magic "*) 
     368      file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 
     369      FILE="$lt_cv_path_FILE" 
     370      if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 
     371        egrep "$file_magic_regex" > /dev/null; then 
     372        : 
     373      else 
     374        cat <<EOF 1>&2 
     375 
     376*** Warning: the command libtool uses to detect shared libraries, 
     377*** $file_magic_cmd, produces output that libtool cannot recognize. 
     378*** The result is that libtool may fail to recognize shared libraries 
     379*** as such.  This will affect the creation of libtool libraries that 
     380*** depend on shared libraries, but programs linked with such libtool 
     381*** libraries will work regardless of this problem.  Nevertheless, you 
     382*** may want to report the problem to your system manager and/or to 
     383*** bug-libtool@gnu.org 
     384 
     385EOF 
     386      fi ;; 
     387    esac 
     388      fi 
    351389      break 
    352390    fi 
    353391  done 
    354392  IFS="$ac_save_ifs" 
    355 dnl If no 4th arg is given, leave the cache variable unset 
    356 ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" 
    357 ])dnl 
    358   ;; 
    359 esac])dnl 
    360 $1="$ac_cv_path_$1" 
    361 if test -n "[$]$1"; then 
    362   AC_MSG_RESULT([$]$1) 
     393  FILE="$ac_save_file" 
     394  ;; 
     395esac]) 
     396FILE="$lt_cv_path_FILE" 
     397if test -n "$FILE"; then 
     398  AC_MSG_RESULT($FILE) 
    363399else 
    364400  AC_MSG_RESULT(no) 
    365401fi 
    366 AC_SUBST($1)dnl 
    367 ]) 
    368  
    369  
    370 # AC_PATH_TOOL_VERSION_GREP - Try AC_PATH_PROG_VERSION_GREP with target  
    371 #                             prefix when cross-compiling 
    372 dnl AC_PATH_TOOL_VERSION_GREP(VARIABLE, PROG-TO-CHECK-FOR, GREP-EXPRESSION[, VALUE-IF-NOT-FOUND [, PATH]]) 
    373 AC_DEFUN(AC_PATH_TOOL_VERSION_GREP, 
     402]) 
     403 
     404 
     405# AC_PATH_FILE - find a file program which can recognise a shared library 
     406AC_DEFUN(AC_PATH_FILE, 
    374407[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl 
    375 AC_PATH_PROG_VERSION_GREP($1, ${ac_tool_prefix}$2, $3,  
    376               ifelse([$4], , [$2], ), $5) 
    377 ifelse([$4], , , [ 
    378   if test -z "$ac_cv_prog_$1"; then 
    379     if test -n "$ac_tool_prefix"; then 
    380       AC_PATH_PROG_VERSION_GREP($1, $2, $3, $2, $5) 
    381     else 
    382       $1="$4" 
    383     fi 
     408AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH) 
     409if test -z "$lt_cv_path_FILE"; then 
     410  if test -n "$ac_tool_prefix"; then 
     411    AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH) 
     412  else 
     413    FILE=: 
    384414  fi 
    385 ]) 
     415fi 
    386416]) 
    387417 
     
    399429  # Check if gcc -print-prog-name=ld gives a path. 
    400430  AC_MSG_CHECKING([for ld used by GCC]) 
    401   case $host in 
     431  case $lt_target in 
    402432  *-*-mingw*) 
    403433    # gcc leaves a trailing carriage return which upsets mingw 
     
    461491fi 
    462492test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 
    463 AC_SUBST(LD) 
    464493AC_PROG_LD_GNU 
    465494]) 
     
    474503fi]) 
    475504with_gnu_ld=$ac_cv_prog_gnu_ld 
    476 AC_SUBST(with_gnu_ld) 
    477 ]) 
     505]) 
     506 
     507# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker 
     508#   -- PORTME Some linkers may need a different reload flag. 
     509AC_DEFUN(AC_PROG_LD_RELOAD_FLAG, 
     510[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag, 
     511[lt_cv_ld_reload_flag='-r']) 
     512reload_flag=$lt_cv_ld_reload_flag 
     513test -n "$reload_flag" && reload_flag=" $reload_flag" 
     514]) 
     515 
     516# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies 
     517#  -- PORTME fill in with the dynamic library characteristics 
     518AC_DEFUN(AC_DEPLIBS_CHECK_METHOD, 
     519[AC_CACHE_CHECK([how to recognise dependant libraries],  
     520lt_cv_deplibs_check_method, 
     521[lt_cv_file_magic_cmd='$FILE' 
     522lt_cv_file_magic_test_file= 
     523lt_cv_deplibs_check_method='unknown' 
     524# Need to set the preceding variable on all platforms that support 
     525# interlibrary dependencies. 
     526# 'none' -- dependencies not supported. 
     527# `unknown' -- same as none, but documents that we really don't know. 
     528# 'pass_all' -- all dependencies passed with no checks. 
     529# 'test_compile' -- check by making test program. 
     530# 'file_magic [regex]' -- check by looking for files in library path 
     531# which responds to the $file_magic_cmd with a given egrep regex. 
     532# If you have `file' or equivalent on your system and you're not sure 
     533# whether `pass_all' will *always* work, you probably want this one. 
     534 
     535case "$host_os" in 
     536aix4* | beos*) 
     537  lt_cv_deplibs_check_method=pass_all 
     538  ;; 
     539   
     540bsdi4*) 
     541  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 
     542  lt_cv_file_magic_test_file=/shlib/libc.so 
     543  ;;   
     544 
     545cygwin* | mingw*) 
     546  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 
     547  lt_cv_file_magic_cmd='${OBJDUMP} -f' 
     548  ;; 
     549 
     550freebsd*) 
     551  case "$version_type" in 
     552  freebsd-elf*) 
     553    lt_cv_deplibs_check_method=pass_all 
     554    ;; 
     555  esac 
     556  lt_cv_deplibs_check_method=pass_all 
     557  ;; 
     558   
     559gnu*) 
     560  lt_cv_deplibs_check_method=pass_all 
     561  ;; 
     562   
     563irix5* | irix6*) 
     564  case "$host_os" in 
     565  irix5*) 
     566    # this will be overridden with pass_all, but let us keep it just in case 
     567    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 
     568    ;; 
     569  *) 
     570    case "$LD" in 
     571    *-32|*"-32 ") libmagic=32-bit;; 
     572    *-n32|*"-n32 ") libmagic=N32;; 
     573    *-64|*"-64 ") libmagic=64-bit;; 
     574    *) libmagic=never-match;; 
     575    esac 
     576    # this will be overridden with pass_all, but let us keep it just in case 
     577    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 
     578    ;; 
     579  esac 
     580  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 
     581  lt_cv_deplibs_check_method=pass_all 
     582  ;; 
     583 
     584# This must be Linux ELF. 
     585linux-gnu*) 
     586  case "$host_cpu" in 
     587  alpha* | i*86 | sparc* ) 
     588    lt_cv_deplibs_check_method=pass_all ;; 
     589  *) 
     590    # glibc up to 2.1.1 does not perform some relocations on ARM 
     591    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 
     592  esac 
     593  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 
     594  ;; 
     595 
     596osf3* | osf4* | osf5*) 
     597  # this will be overridden with pass_all, but let us keep it just in case 
     598  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 
     599  lt_cv_file_magic_test_file=/shlib/libc.so 
     600  lt_cv_deplibs_check_method=pass_all 
     601  ;; 
     602 
     603sco3.2v5*) 
     604  lt_cv_deplibs_check_method=pass_all 
     605  ;; 
     606   
     607solaris*) 
     608  lt_cv_deplibs_check_method=pass_all 
     609  lt_cv_file_magic_test_file=/lib/libc.so 
     610  ;; 
     611 
     612sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 
     613  case "$host_vendor" in 
     614  ncr) 
     615    lt_cv_deplibs_check_method=pass_all 
     616    ;; 
     617  motorola) 
     618    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]' 
     619    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 
     620    ;; 
     621  esac 
     622  ;; 
     623esac 
     624]) 
     625file_magic_cmd=$lt_cv_file_magic_cmd 
     626deplibs_check_method=$lt_cv_deplibs_check_method 
     627]) 
     628 
    478629 
    479630# AC_PROG_NM - find the path to a BSD-compatible name lister 
     
    509660NM="$ac_cv_path_NM" 
    510661AC_MSG_RESULT([$NM]) 
    511 AC_SUBST(NM) 
    512662]) 
    513663 
     
    516666[AC_REQUIRE([AC_CANONICAL_HOST])dnl 
    517667LIBM= 
    518 case "$host" in 
     668case "$lt_target" in 
    519669*-*-beos* | *-*-cygwin*) 
    520670  # These system don't have libm 
     
    545695  esac 
    546696  LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la 
    547   INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl']) 
     697  INCLTDL=ifelse($#,1,-I$1,['-I${top_srcdir}/libltdl']) 
    548698]) 
    549699 
     
    569719    ac_configure_args="$ac_configure_args --enable-ltdl-install" 
    570720    LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la 
    571     INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl']) 
     721    INCLTDL=ifelse($#,1,-I$1,['-I${top_srcdir}/libltdl']) 
    572722  else 
    573723    ac_configure_args="$ac_configure_args --enable-ltdl-install=no" 
  • trunk/auto-reply/Makefile.am

    r794 r962  
    1 $(top_srcdir)/acinclude.m4: $(top_srcdir)/acinclude.m4.in $(top_srcdir)/libtool.m4.in 
    2     @cd $(top_srcdir) && cat acinclude.m4.in libtool.m4.in > acinclude.m4 
     1$(top_srcdir)/acinclude.m4: $(top_srcdir)/acinclude.m4.in $(top_srcdir)/../../libtool.m4.in 
     2    @cd $(top_srcdir) && cat acinclude.m4.in ../../libtool.m4.in > acinclude.m4 
    33 
    44# don't warn about missing AUTHORS, NEWS, ChangeLog .. files 
     
    3434          done; \ 
    3535        done 
     36