/[libtool]/libtool/libtool.m4
ViewVC logotype

Diff of /libtool/libtool.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.167 by gary, Sun May 27 23:20:45 2001 UTC revision 1.168 by gary, Mon May 28 23:45:17 2001 UTC
# Line 23  Line 23 
23  ## the same distribution terms that you use for the rest of that program.  ## the same distribution terms that you use for the rest of that program.
24    
25  # serial 47 AC_PROG_LIBTOOL  # serial 47 AC_PROG_LIBTOOL
26    # -------------------------
27  AC_DEFUN([AC_PROG_LIBTOOL],  AC_DEFUN([AC_PROG_LIBTOOL],
28  [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl  [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
29  dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX  dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
# Line 50  dnl AC_LIBTOOL_GCJ immediately, otherwis Line 51  dnl AC_LIBTOOL_GCJ immediately, otherwis
51                  defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])                  defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
52  ])])# AC_PROG_LIBTOOL  ])])# AC_PROG_LIBTOOL
53    
54    
55    # _AC_PROG_LIBTOOL
56    # ----------------
57  AC_DEFUN([_AC_PROG_LIBTOOL],  AC_DEFUN([_AC_PROG_LIBTOOL],
58  [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl  [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
59  AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl  AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
# Line 64  AC_SUBST(LIBTOOL)dnl Line 68  AC_SUBST(LIBTOOL)dnl
68    
69  # Prevent multiple expansion  # Prevent multiple expansion
70  define([AC_PROG_LIBTOOL], [])  define([AC_PROG_LIBTOOL], [])
71  ])  ])# _AC_PROG_LIBTOOL
72    
73    
74    # AC_LIBTOOL_SETUP
75    # ----------------
76  AC_DEFUN([AC_LIBTOOL_SETUP],  AC_DEFUN([AC_LIBTOOL_SETUP],
77  [AC_PREREQ(2.13)dnl  [AC_PREREQ(2.13)dnl
78  AC_REQUIRE([AC_ENABLE_SHARED])dnl  AC_REQUIRE([AC_ENABLE_SHARED])dnl
# Line 84  AC_REQUIRE([AC_OBJEXT])dnl Line 91  AC_REQUIRE([AC_OBJEXT])dnl
91  AC_REQUIRE([AC_EXEEXT])dnl  AC_REQUIRE([AC_EXEEXT])dnl
92  dnl  dnl
93    
94    AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
95  _LT_AC_PROG_ECHO_BACKSLASH  _LT_AC_PROG_ECHO_BACKSLASH
96    
97    # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
98    case $host_os in
99    linux-gnu*) ;;
100    linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
101    esac
102    
103    case $host_os in
104    aix3*)
105      # AIX sometimes has problems with the GCC collect2 program.  For some
106      # reason, if we set the COLLECT_NAMES environment variable, the problems
107      # vanish in a puff of smoke.
108      if test "X${COLLECT_NAMES+set}" != Xset; then
109        COLLECT_NAMES=
110        export COLLECT_NAMES
111      fi
112      ;;
113    esac
114    
115    # Sed substitution that helps us do robust quoting.  It backslashifies
116    # metacharacters that are still active within double-quoted strings.
117    Xsed='sed -e s/^X//'
118    [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
119    
120    # Same as above, but do not quote variable references.
121    [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
122    
123    # Sed substitution to delay expansion of an escaped shell variable in a
124    # double_quote_subst'ed string.
125    delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
126    
127    # Constants:
128    rm="rm -f"
129    
130    # Global variables:
131    default_ofile=libtool
132    can_build_shared=yes
133    
134    # All known linkers require a `.a' archive for static linking (except M$VC,
135    # which needs '.lib').
136    libext=a
137    ltmain="$ac_aux_dir/ltmain.sh"
138    ofile="$default_ofile"
139    with_gnu_ld="$lt_cv_prog_gnu_ld"
140    
141    AC_CHECK_TOOL(RANLIB, ranlib, :)
142    AC_CHECK_TOOL(STRIP, strip, :)
143    
144    old_CC="$CC"
145    old_CFLAGS="$CFLAGS"
146    
147    # Set sane defaults for various variables
148    test -z "$AR" && AR=ar
149    test -z "$AR_FLAGS" && AR_FLAGS=cru
150    test -z "$AS" && AS=as
151    test -z "$CC" && CC=cc
152    test -z "$LTCC" && LTCC=$CC
153    test -z "$DLLTOOL" && DLLTOOL=dlltool
154    test -z "$LD" && LD=ld
155    test -z "$LN_S" && LN_S="ln -s"
156    test -z "$MAGIC_CMD" && MAGIC_CMD=file
157    test -z "$NM" && NM=nm
158    test -z "$OBJDUMP" && OBJDUMP=objdump
159    test -z "$RANLIB" && RANLIB=:
160    test -z "$STRIP" && STRIP=:
161    test -z "$ac_objext" && ac_objext=o
162    
163    # Determine commands to create old-style static archives.
164    old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
165    old_postinstall_cmds='chmod 644 $oldlib'
166    old_postuninstall_cmds=
167    
168    if test -n "$RANLIB"; then
169      old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
170      old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
171    fi
172    
173  # Only perform the check for file, if the check method requires it  # Only perform the check for file, if the check method requires it
174  case $deplibs_check_method in  case $deplibs_check_method in
175  file_magic*)  file_magic*)
# Line 94  file_magic*) Line 179  file_magic*)
179    ;;    ;;
180  esac  esac
181    
 AC_CHECK_TOOL(RANLIB, ranlib, :)  
 AC_CHECK_TOOL(STRIP, strip, :)  
   
182  ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)  ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
183  ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],  ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
184  enable_win32_dll=yes, enable_win32_dll=no)  enable_win32_dll=yes, enable_win32_dll=no)
# Line 105  AC_ARG_ENABLE(libtool-lock, Line 187  AC_ARG_ENABLE(libtool-lock,
187    [  --disable-libtool-lock  avoid locking (might break parallel builds)])    [  --disable-libtool-lock  avoid locking (might break parallel builds)])
188  test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes  test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
189    
190    _LT_AC_LOCK
191    _LT_AC_LTCONFIG_HACK
192    _LT_AC_TAGCONFIG
193    ])# AC_LIBTOOL_SETUP
194    
195    
196    # _LT_AC_SYS_COMPILER
197    # -------------------
198    AC_DEFUN([_LT_AC_SYS_COMPILER],
199    [AC_REQUIRE([AC_PROG_CC])dnl
200    
201    # If no C compiler was specified, use CC.
202    LTCC=${LTCC-"$CC"}
203    
204    # Allow CC to be a program name with arguments.
205    set dummy $CC
206    compiler="[$]2"
207    ])# _LT_AC_SYS_COMPILER
208    
209    
210    # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
211    # ---------------------------------
212    AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
213    [# Find the correct PATH separator.  Usually this is `:', but
214    # DJGPP uses `;' like DOS.
215    if test "X${PATH_SEPARATOR+set}" != Xset; then
216      UNAME=${UNAME-`uname 2>/dev/null`}
217      case X$UNAME in
218        *-DOS) lt_cv_sys_path_separator=';' ;;
219        *)     lt_cv_sys_path_separator=':' ;;
220      esac
221    fi
222    ])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
223    
224    
225    # _LT_AC_PROG_ECHO_BACKSLASH
226    # --------------------------
227    # Add some code to the start of the generated configure script which
228    # will find an echo command which doesn't interpret backslashes.
229    AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
230    [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
231                                  [AC_DIVERT_PUSH(NOTICE)])
232    _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
233    
234    # Check that we are running under the correct shell.
235    SHELL=${CONFIG_SHELL-/bin/sh}
236    
237    case X$ECHO in
238    X*--fallback-echo)
239      # Remove one level of quotation (which was required for Make).
240      ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
241      ;;
242    esac
243    
244    echo=${ECHO-echo}
245    if test "X[$]1" = X--no-reexec; then
246      # Discard the --no-reexec flag, and continue.
247      shift
248    elif test "X[$]1" = X--fallback-echo; then
249      # Avoid inline document here, it may be left over
250      :
251    elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
252      # Yippee, $echo works!
253      :
254    else
255      # Restart under the correct shell.
256      exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
257    fi
258    
259    if test "X[$]1" = X--fallback-echo; then
260      # used as fallback echo
261      shift
262      cat <<EOF
263    [$]*
264    EOF
265      exit 0
266    fi
267    
268    # The HP-UX ksh and POSIX shell print the target directory to stdout
269    # if CDPATH is set.
270    if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
271    
272    if test -z "$ECHO"; then
273    if test "X${echo_test_string+set}" != Xset; then
274    # find a string as large as possible, as long as the shell can cope with it
275      for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
276        # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
277        if (echo_test_string="`eval $cmd`") 2>/dev/null &&
278           echo_test_string="`eval $cmd`" &&
279           (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
280        then
281          break
282        fi
283      done
284    fi
285    
286    if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
287       echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
288       test "X$echo_testing_string" = "X$echo_test_string"; then
289      :
290    else
291      # The Solaris, AIX, and Digital Unix default echo programs unquote
292      # backslashes.  This makes it impossible to quote backslashes using
293      #   echo "$something" | sed 's/\\/\\\\/g'
294      #
295      # So, first we look for a working echo in the user's PATH.
296    
297      IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
298      for dir in $PATH /usr/ucb; do
299        if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
300           test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
301           echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
302           test "X$echo_testing_string" = "X$echo_test_string"; then
303          echo="$dir/echo"
304          break
305        fi
306      done
307      IFS="$save_ifs"
308    
309      if test "X$echo" = Xecho; then
310        # We didn't find a better echo, so look for alternatives.
311        if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
312           echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
313           test "X$echo_testing_string" = "X$echo_test_string"; then
314          # This shell has a builtin print -r that does the trick.
315          echo='print -r'
316        elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
317             test "X$CONFIG_SHELL" != X/bin/ksh; then
318          # If we have ksh, try running configure again with it.
319          ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
320          export ORIGINAL_CONFIG_SHELL
321          CONFIG_SHELL=/bin/ksh
322          export CONFIG_SHELL
323          exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
324        else
325          # Try using printf.
326          echo='printf %s\n'
327          if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
328             echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
329             test "X$echo_testing_string" = "X$echo_test_string"; then
330            # Cool, printf works
331            :
332          elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
333               test "X$echo_testing_string" = 'X\t' &&
334               echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
335               test "X$echo_testing_string" = "X$echo_test_string"; then
336            CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
337            export CONFIG_SHELL
338            SHELL="$CONFIG_SHELL"
339            export SHELL
340            echo="$CONFIG_SHELL [$]0 --fallback-echo"
341          elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
342               test "X$echo_testing_string" = 'X\t' &&
343               echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
344               test "X$echo_testing_string" = "X$echo_test_string"; then
345            echo="$CONFIG_SHELL [$]0 --fallback-echo"
346          else
347            # maybe with a smaller string...
348            prev=:
349    
350            for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
351              if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
352              then
353                break
354              fi
355              prev="$cmd"
356            done
357    
358            if test "$prev" != 'sed 50q "[$]0"'; then
359              echo_test_string=`eval $prev`
360              export echo_test_string
361              exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
362            else
363              # Oops.  We lost completely, so just stick with echo.
364              echo=echo
365            fi
366          fi
367        fi
368      fi
369    fi
370    fi
371    
372    # Copy echo and quote the copy suitably for passing to libtool from
373    # the Makefile, instead of quoting the original, which is used later.
374    ECHO=$echo
375    if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
376       ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
377    fi
378    
379    AC_SUBST(ECHO)
380    AC_DIVERT_POP
381    ])# _LT_AC_PROG_ECHO_BACKSLASH
382    
383    
384    # _LT_AC_LOCK
385    # -----------
386    AC_DEFUN([_LT_AC_LOCK],
387    [AC_ARG_ENABLE(libtool-lock,
388      [  --disable-libtool-lock  avoid locking (might break parallel builds)])
389    test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
390    
391  # Some flags need to be propagated to the compiler or linker for good  # Some flags need to be propagated to the compiler or linker for good
392  # libtool support.  # libtool support.
393  case $host in  case $host in
# Line 141  case $host in Line 424  case $host in
424      CFLAGS="$SAVE_CFLAGS"      CFLAGS="$SAVE_CFLAGS"
425    fi    fi
426    ;;    ;;
   
427  ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],  ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
428  [*-*-cygwin* | *-*-mingw* | *-*-pw32*)  [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
429    AC_CHECK_TOOL(DLLTOOL, dlltool, false)    AC_CHECK_TOOL(DLLTOOL, dlltool, false)
# Line 174  ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], Line 456  ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
456    ])    ])
457  esac  esac
458    
459  _LT_AC_LTCONFIG_HACK  need_locks="$enable_libtool_lock"
460    
461    ])# _LT_AC_LOCK
462    
463    
464    # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
465    #                            [ACTION-SUCCESS], [ACTION-FAILURE])
466    # --------------------------------------------------------------
467    # Check whether the given compiler option works
468    AC_DEFUN(AC_LIBTOOL_COMPILER_OPTION,
469    [AC_CACHE_CHECK([$1], [$2],
470      [$2=no
471      save_CFLAGS="$CFLAGS"
472      CFLAGS="$CFLAGS $3"
473      AC_TRY_COMPILE([], [$lt_simple_compile_test_code],
474        [# The compiler can only warn and ignore the option if not recognized
475         # So say no if there are warnings
476         if test -s conftest.err; then
477           $2=no
478         else
479           $2=yes
480         fi],
481        [$2=no])
482      CFLAGS="$save_CFLAGS"
483  ])  ])
484    
485  # _LT_AC_CHECK_DLFCN  if test x"[$]$2" = xyes; then
486  # --------------------      ifelse([$4], , :, [$4])
487  AC_DEFUN(_LT_AC_CHECK_DLFCN,  else
488  [AC_CHECK_HEADERS(dlfcn.h)      ifelse([$5], , :, [$5])
489  ])# _LT_AC_CHECK_DLFCN  fi
490    ])# AC_LIBTOOL_COMPILER_OPTION
491    
492    
493    # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
494    #                          [ACTION-SUCCESS], [ACTION-FAILURE])
495    # ------------------------------------------------------------
496    # Check whether the given compiler option works
497    AC_DEFUN(AC_LIBTOOL_LINKER_OPTION,
498    [AC_CACHE_CHECK([$1], [$2],
499      [$2=no
500      save_LDFLAGS="$LDFLAGS"
501      LDFLAGS="$LDFLAGS $3"
502      AC_TRY_LINK([], [$lt_simple_link_test_code],
503        [# The compiler can only warn and ignore the option if not recognized
504         # So say no if there are warnings
505         if test -s conftest.err; then
506           $2=no
507         else
508           $2=yes
509         fi],
510        [$2=no])
511      LDFLAGS="$save_LDFLAGS"
512    ])
513    
514    if test x"[$]$2" = xyes; then
515        ifelse([$4], , :, [$4])
516    else
517        ifelse([$5], , :, [$5])
518    fi
519    ])# AC_LIBTOOL_LINKER_OPTION
520    
521    
522  # AC_LIBTOOL_SYS_MAX_CMD_LEN  # AC_LIBTOOL_SYS_MAX_CMD_LEN
523  # --------------------------  # --------------------------
# Line 221  fi Line 556  fi
556  AC_MSG_RESULT($max_cmd_len)  AC_MSG_RESULT($max_cmd_len)
557  ])# AC_LIBTOOL_SYS_MAX_CMD_LEN  ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
558    
559    
560  # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE  # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
561  # ---------------------------------  # ---------------------------------
562  AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],  AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
# Line 397  else Line 733  else
733  fi  fi
734  ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE  ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
735    
 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR  
 # ---------------------------------  
 AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],  
 [# Find the correct PATH separator.  Usually this is `:', but  
 # DJGPP uses `;' like DOS.  
 if test "X${PATH_SEPARATOR+set}" != Xset; then  
   UNAME=${UNAME-`uname 2>/dev/null`}  
   case X$UNAME in  
     *-DOS) lt_cv_sys_path_separator=';' ;;  
     *)     lt_cv_sys_path_separator=':' ;;  
   esac  
 fi  
 ])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR  
   
 # _LT_AC_PROG_ECHO_BACKSLASH  
 # --------------------------  
 # Add some code to the start of the generated configure script which  
 # will find an echo command which doesn't interpret backslashes.  
 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],  
 [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],  
                               [AC_DIVERT_PUSH(NOTICE)])  
 _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR  
   
 # Check that we are running under the correct shell.  
 SHELL=${CONFIG_SHELL-/bin/sh}  
   
 case X$ECHO in  
 X*--fallback-echo)  
   # Remove one level of quotation (which was required for Make).  
   ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`  
   ;;  
 esac  
   
 echo=${ECHO-echo}  
 if test "X[$]1" = X--no-reexec; then  
   # Discard the --no-reexec flag, and continue.  
   shift  
 elif test "X[$]1" = X--fallback-echo; then  
   # Avoid inline document here, it may be left over  
   :  
 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then  
   # Yippee, $echo works!  
   :  
 else  
   # Restart under the correct shell.  
   exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}  
 fi  
   
 if test "X[$]1" = X--fallback-echo; then  
   # used as fallback echo  
   shift  
   cat <<EOF  
 [$]*  
 EOF  
   exit 0  
 fi  
   
 # The HP-UX ksh and POSIX shell print the target directory to stdout  
 # if CDPATH is set.  
 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi  
   
 if test -z "$ECHO"; then  
 if test "X${echo_test_string+set}" != Xset; then  
 # find a string as large as possible, as long as the shell can cope with it  
   for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do  
     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...  
     if (echo_test_string="`eval $cmd`") 2>/dev/null &&  
        echo_test_string="`eval $cmd`" &&  
        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null  
     then  
       break  
     fi  
   done  
 fi  
   
 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&  
    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&  
    test "X$echo_testing_string" = "X$echo_test_string"; then  
   :  
 else  
   # The Solaris, AIX, and Digital Unix default echo programs unquote  
   # backslashes.  This makes it impossible to quote backslashes using  
   #   echo "$something" | sed 's/\\/\\\\/g'  
   #  
   # So, first we look for a working echo in the user's PATH.  
   
   IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"  
   for dir in $PATH /usr/ucb; do  
     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&  
        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&  
        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&  
        test "X$echo_testing_string" = "X$echo_test_string"; then  
       echo="$dir/echo"  
       break  
     fi  
   done  
   IFS="$save_ifs"  
   
   if test "X$echo" = Xecho; then  
     # We didn't find a better echo, so look for alternatives.  
     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&  
        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&  
        test "X$echo_testing_string" = "X$echo_test_string"; then  
       # This shell has a builtin print -r that does the trick.  
       echo='print -r'  
     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&  
          test "X$CONFIG_SHELL" != X/bin/ksh; then  
       # If we have ksh, try running configure again with it.  
       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}  
       export ORIGINAL_CONFIG_SHELL  
       CONFIG_SHELL=/bin/ksh  
       export CONFIG_SHELL  
       exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}  
     else  
       # Try using printf.  
       echo='printf %s\n'  
       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&  
          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&  
          test "X$echo_testing_string" = "X$echo_test_string"; then  
         # Cool, printf works  
         :  
       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&  
            test "X$echo_testing_string" = 'X\t' &&  
            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&  
            test "X$echo_testing_string" = "X$echo_test_string"; then  
         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL  
         export CONFIG_SHELL  
         SHELL="$CONFIG_SHELL"  
         export SHELL  
         echo="$CONFIG_SHELL [$]0 --fallback-echo"  
       elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&  
            test "X$echo_testing_string" = 'X\t' &&  
            echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&  
            test "X$echo_testing_string" = "X$echo_test_string"; then  
         echo="$CONFIG_SHELL [$]0 --fallback-echo"  
       else  
         # maybe with a smaller string...  
         prev=:  
   
         for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do  
           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null  
           then  
             break  
           fi  
           prev="$cmd"  
         done  
   
         if test "$prev" != 'sed 50q "[$]0"'; then  
           echo_test_string=`eval $prev`  
           export echo_test_string  
           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}  
         else  
           # Oops.  We lost completely, so just stick with echo.  
           echo=echo  
         fi  
       fi  
     fi  
   fi  
 fi  
 fi  
736    
737  # Copy echo and quote the copy suitably for passing to libtool from  # _LT_AC_CHECK_DLFCN
738  # the Makefile, instead of quoting the original, which is used later.  # --------------------
739  ECHO=$echo  AC_DEFUN(_LT_AC_CHECK_DLFCN,
740  if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then  [AC_CHECK_HEADERS(dlfcn.h)dnl
741     ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"  ])# _LT_AC_CHECK_DLFCN
 fi  
742    
 AC_SUBST(ECHO)  
 AC_DIVERT_POP  
 ])# _LT_AC_PROG_ECHO_BACKSLASH  
743    
744  # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,  # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
745  #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)  #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
746  # ------------------------------------------------------------------  # ------------------------------------------------------------------
747  AC_DEFUN(_LT_AC_TRY_DLOPEN_SELF,  AC_DEFUN(_LT_AC_TRY_DLOPEN_SELF,
748  [if test "$cross_compiling" = yes; then :  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
749    if test "$cross_compiling" = yes; then :
750    [$4]    [$4]
751  else  else
   AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl  
752    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
753    lt_status=$lt_dlunknown    lt_status=$lt_dlunknown
754    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
# Line 657  fi Line 829  fi
829  rm -fr conftest*  rm -fr conftest*
830  ])# _LT_AC_TRY_DLOPEN_SELF  ])# _LT_AC_TRY_DLOPEN_SELF
831    
832    
833  # AC_LIBTOOL_DLOPEN_SELF  # AC_LIBTOOL_DLOPEN_SELF
834  # -------------------  # -------------------
835  AC_DEFUN(AC_LIBTOOL_DLOPEN_SELF,  AC_DEFUN(AC_LIBTOOL_DLOPEN_SELF,
836  [if test "x$enable_dlopen" != xyes; then  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
837    if test "x$enable_dlopen" != xyes; then
838    enable_dlopen=unknown    enable_dlopen=unknown
839    enable_dlopen_self=unknown    enable_dlopen_self=unknown
840    enable_dlopen_self_static=unknown    enable_dlopen_self_static=unknown
# Line 704  else Line 878  else
878    case $lt_cv_dlopen in    case $lt_cv_dlopen in
879    dlopen)    dlopen)
880      save_CPPFLAGS="$CPPFLAGS"      save_CPPFLAGS="$CPPFLAGS"
     AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl  
881      test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"      test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
882    
883      save_LDFLAGS="$LDFLAGS"      save_LDFLAGS="$LDFLAGS"
# Line 748  else Line 921  else
921  fi  fi
922  ])# AC_LIBTOOL_DLOPEN_SELF  ])# AC_LIBTOOL_DLOPEN_SELF
923    
 AC_DEFUN([_LT_AC_TAGCONFIG],  
 [tagname=  
   
 ## Dependencies to place before and after the object being linked:  
 predep_objects=  
 postdep_objects=  
 predeps=  
 postdeps=  
 compiler_lib_search_path=  
 ])# _LT_AC_TAGCONFIG  
   
 AC_DEFUN([_LT_AC_LTCONFIG_HACK],  
 [AC_REQUIRE([AC_LIBTOOL_SYS_MAX_CMD_LEN])dnl  
 AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl  
   
 # Sed substitution that helps us do robust quoting.  It backslashifies  
 # metacharacters that are still active within double-quoted strings.  
 Xsed='sed -e s/^X//'  
 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']  
   
 # Same as above, but do not quote variable references.  
 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']  
   
 # Sed substitution to delay expansion of an escaped shell variable in a  
 # double_quote_subst'ed string.  
 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'  
   
 # Constants:  
 rm="rm -f"  
   
 # Global variables:  
 default_ofile=libtool  
 can_build_shared=yes  
   
 # All known linkers require a `.a' archive for static linking (except M$VC,  
 # which needs '.lib').  
 libext=a  
 ltmain="$ac_aux_dir/ltmain.sh"  
 ofile="$default_ofile"  
 with_gnu_ld="$lt_cv_prog_gnu_ld"  
 need_locks="$enable_libtool_lock"  
924    
925  old_CC="$CC"  # AC_LIBTOOL_PROG_CC_C_O
926  old_CFLAGS="$CFLAGS"  # ----------------------
927    AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
928    [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
929    
930  # Set sane defaults for various variables  # Check to see if options -c and -o are simultaneously supported by compiler
931  test -z "$AR" && AR=ar  AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])
932  test -z "$AR_FLAGS" && AR_FLAGS=cru  AC_CACHE_VAL([lt_cv_compiler_c_o], [
933  test -z "$AS" && AS=as  $rm -r conftest 2>/dev/null
934  test -z "$CC" && CC=cc  mkdir conftest
935  test -z "$LTCC" && LTCC=$CC  cd conftest
936  test -z "$DLLTOOL" && DLLTOOL=dlltool  echo "$lt_simple_compile_test_code" > conftest.$ac_ext
937  test -z "$LD" && LD=ld  mkdir out
938  test -z "$LN_S" && LN_S="ln -s"  # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
939  test -z "$MAGIC_CMD" && MAGIC_CMD=file  # that will create temporary files in the current directory regardless of
940  test -z "$NM" && NM=nm  # the output directory.  Thus, making CWD read-only will cause this test
941  test -z "$OBJDUMP" && OBJDUMP=objdump  # to fail, enabling locking or at least warning the user not to do parallel
942  test -z "$RANLIB" && RANLIB=:  # builds.
943  test -z "$STRIP" && STRIP=:  chmod -w .
944  test -z "$ac_objext" && ac_objext=o  save_CFLAGS="$CFLAGS"
945    CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
946  if test x"$host" != x"$build"; then  compiler_c_o=no
947    ac_tool_prefix=${host_alias}-  if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
948      # The compiler can only warn and ignore the option if not recognized
949      # So say no if there are warnings
950      if test -s out/conftest.err; then
951        lt_cv_compiler_c_o=no
952      else
953        lt_cv_compiler_c_o=yes
954      fi
955  else  else
956    ac_tool_prefix=    # Append any errors to the config.log.
957      cat out/conftest.err 1>&AC_FD_CC
958      lt_cv_compiler_c_o=no
959  fi  fi
960    CFLAGS="$save_CFLAGS"
961    chmod u+w .
962    $rm conftest* out/*
963    rmdir out
964    cd ..
965    rmdir conftest
966    $rm -r conftest 2>/dev/null
967    ])
968    compiler_c_o=$lt_cv_compiler_c_o
969    AC_MSG_RESULT([$compiler_c_o])
970    
971  # Transform linux* to *-*-linux-gnu*, to support old configure scripts.  if test x"$compiler_c_o" = x"yes"; then
972  case $host_os in    # Check to see if we can write to a .lo
973  linux-gnu*) ;;    AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -c -o file.lo],
974  linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`      lt_cv_prog_cc_c_o_lo, [-c -o conftest.lo])
975  esac    compiler_o_lo=$lt_cv_prog_cc_c_o_lo
976    else
977  case $host_os in    compiler_o_lo=no
 aix3*)  
   # AIX sometimes has problems with the GCC collect2 program.  For some  
   # reason, if we set the COLLECT_NAMES environment variable, the problems  
   # vanish in a puff of smoke.  
   if test "X${COLLECT_NAMES+set}" != Xset; then  
     COLLECT_NAMES=  
     export COLLECT_NAMES  
   fi  
   ;;  
 esac  
   
 # Determine commands to create old-style static archives.  
 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'  
 old_postinstall_cmds='chmod 644 $oldlib'  
 old_postuninstall_cmds=  
   
 if test -n "$RANLIB"; then  
   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"  
   old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"  
978  fi  fi
979    ])# AC_LIBTOOL_PROG_CC_C_O
980    
 # If no C compiler was specified, use CC.  
 LTCC=${LTCC-"$CC"}  
981    
982  # Allow CC to be a program name with arguments.  # AC_LIBTOOL_PROG_CC_NO_RTTI
983  set dummy $CC  # --------------------------
984  compiler="[$]2"  AC_DEFUN([AC_LIBTOOL_PROG_CC_NO_RTTI],
985    [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
986    
987  ## FIXME: this should be a separate macro  if test "$GCC" = yes; then
988  ##    AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
989  AC_MSG_CHECKING([for objdir])      lt_cv_prog_cc_rtti_exceptions,
990  rm -f .libs 2>/dev/null      [-fno-rtti -fno-exceptions -c conftest.$ac_ext],
991  mkdir .libs 2>/dev/null      [no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'],
992  if test -d .libs; then      [no_builtin_flag=' -fno-builtin'])
993    objdir=.libs    compiler_rtti_exceptions=$lt_cv_prog_cc_rtti_exceptions
994  else  fi
995    # MS-DOS does not allow filenames that begin with a dot.  ])# AC_LIBTOOL_PROG_CC_NO_RTTI
   objdir=_libs  
 fi  
 rmdir .libs 2>/dev/null  
 AC_MSG_RESULT($objdir)  
 ##  
 ## END FIXME  
996    
997    
998  ## FIXME: this should be a separate macro  # AC_LIBTOOL_PROG_CC_PIC
999  ##  # ----------------------
1000    AC_DEFUN([AC_LIBTOOL_PROG_CC_PIC],
1001    [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1002    
1003  AC_ARG_WITH(pic,  AC_ARG_WITH(pic,
1004  [  --with-pic              try to use only PIC/non-PIC objects [default=use both]],    [  --with-pic              try to use only PIC/non-PIC objects [default=use both]],
1005  pic_mode="$withval", pic_mode=default)  pic_mode="$withval", pic_mode=default)
1006  test -z "$pic_mode" && pic_mode=default  test -z "$pic_mode" && pic_mode=default
1007    
# Line 892  AC_CACHE_VAL(lt_cv_prog_cc_pic, Line 1023  AC_CACHE_VAL(lt_cv_prog_cc_pic,
1023    
1024      case $host_os in      case $host_os in
1025      aix*)      aix*)
1026        # Below there is a dirty hack to force normal static linking with -ldl        # All AIX code is PIC.
1027        # The problem is because libdl dynamically linked with both libc and        if test "$host_cpu" = ia64; then
1028        # libC (AIX C++ library), which obviously doesn't included in libraries          # AIX 5 now supports IA64 processor
1029        # list by gcc. This cause undefined symbols with -static flags.          lt_cv_prog_cc_static='-Bstatic'
1030        # This hack allows C programs to be linked with "-static -ldl", but        else
1031        # we not sure about C++ programs.          lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
1032        lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"        fi
1033        ;;        ;;
1034      amigaos*)      amigaos*)
1035        # FIXME: we need at least 68020 code to build shared libraries, but        # FIXME: we need at least 68020 code to build shared libraries, but
# Line 909  AC_CACHE_VAL(lt_cv_prog_cc_pic, Line 1040  AC_CACHE_VAL(lt_cv_prog_cc_pic,
1040      beos* | irix5* | irix6* | osf3* | osf4* | osf5*)      beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
1041        # PIC is the default for these OSes.        # PIC is the default for these OSes.
1042        ;;        ;;
1043        cygwin* | mingw* | pw32* | os2*)
1044          # This hack is so that the source file can tell whether it is being
1045          # built for inclusion in a dll (and should export symbols for example).
1046          lt_cv_prog_cc_pic='-DDLL_EXPORT'
1047          ;;
1048      darwin* | rhapsody*)      darwin* | rhapsody*)
1049        # PIC is the default on this platform        # PIC is the default on this platform
1050        # Common symbols not allowed in MH_DYLIB files        # Common symbols not allowed in MH_DYLIB files
1051        lt_cv_prog_cc_pic='-fno-common'        lt_cv_prog_cc_pic='-fno-common'
1052        ;;        ;;
1053      cygwin* | mingw* | pw32* | os2*)      *djgpp*)
1054        # This hack is so that the source file can tell whether it is being        # DJGPP does not support shared libraries at all
1055        # built for inclusion in a dll (and should export symbols for example).        ac_cv_prog_cc_pic=
       lt_cv_prog_cc_pic='-DDLL_EXPORT'  
1056        ;;        ;;
1057      sysv4*MP*)      sysv4*MP*)
1058        if test -d /usr/nec; then        if test -d /usr/nec; then
# Line 931  AC_CACHE_VAL(lt_cv_prog_cc_pic, Line 1066  AC_CACHE_VAL(lt_cv_prog_cc_pic,
1066    else    else
1067      # PORTME Check for PIC flags for the system compiler.      # PORTME Check for PIC flags for the system compiler.
1068      case $host_os in      case $host_os in
1069      aix3* | aix4* | aix5*)      aix*)
1070        # All AIX code is PIC.        # All AIX code is PIC.
1071        if test "$host_cpu" = ia64; then        if test "$host_cpu" = ia64; then
1072          # AIX 5 now supports IA64 processor          # AIX 5 now supports IA64 processor
# Line 942  AC_CACHE_VAL(lt_cv_prog_cc_pic, Line 1077  AC_CACHE_VAL(lt_cv_prog_cc_pic,
1077        fi        fi
1078        ;;        ;;
1079    
1080        cygwin* | mingw* | pw32* | os2*)
1081          # This hack is so that the source file can tell whether it is being
1082          # built for inclusion in a dll (and should export symbols for example).
1083          lt_cv_prog_cc_pic='-DDLL_EXPORT'
1084          ;;
1085    
1086      hpux9* | hpux10* | hpux11*)      hpux9* | hpux10* | hpux11*)
1087        # Is there a better lt_cv_prog_cc_static that works with the bundled CC?        # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
1088        lt_cv_prog_cc_wl='-Wl,'        lt_cv_prog_cc_wl='-Wl,'
# Line 955  AC_CACHE_VAL(lt_cv_prog_cc_pic, Line 1096  AC_CACHE_VAL(lt_cv_prog_cc_pic,
1096        # PIC (with -KPIC) is the default.        # PIC (with -KPIC) is the default.
1097        ;;        ;;
1098    
     cygwin* | mingw* | pw32* | os2*)  
       # This hack is so that the source file can tell whether it is being  
       # built for inclusion in a dll (and should export symbols for example).  
       lt_cv_prog_cc_pic='-DDLL_EXPORT'  
       ;;  
   
1099      newsos6)      newsos6)
1100        lt_cv_prog_cc_pic='-KPIC'        lt_cv_prog_cc_pic='-KPIC'
1101        lt_cv_prog_cc_static='-Bstatic'        lt_cv_prog_cc_static='-Bstatic'
# Line 1017  AC_CACHE_VAL(lt_cv_prog_cc_pic, Line 1152  AC_CACHE_VAL(lt_cv_prog_cc_pic,
1152        ;;        ;;
1153      esac      esac
1154    fi    fi
1155      case "$host_os" in
1156          # For platforms which do not support PIC, -DPIC is meaningless:
1157          *djgpp*)
1158            ac_cv_prog_cc_pic=
1159            ;;
1160          *)
1161            ac_cv_prog_cc_pic="$ac_cv_prog_cc_pic -DPIC"
1162            ;;
1163      esac
1164  ])  ])
1165  if test -z "$lt_cv_prog_cc_pic"; then  if test -z "$lt_cv_prog_cc_pic"; then
1166    AC_MSG_RESULT([none])    AC_MSG_RESULT([none])
1167  else  else
1168    AC_MSG_RESULT([$lt_cv_prog_cc_pic])    AC_MSG_RESULT([$lt_cv_prog_cc_pic])
1169    fi
1170    ])# AC_LIBTOOL_PROG_CC_PIC
1171    
1172    
1173    # AC_LIBTOOL_PROG_CC_PIC_WORKS
1174    # ----------------------------
1175    AC_DEFUN([AC_LIBTOOL_PROG_CC_PIC_WORKS],
1176    [AC_REQUIRE([AC_LIBTOOL_PROG_CC_PIC])
1177    
1178    if test -n "$lt_cv_prog_cc_pic"; then
1179    # Check to make sure the pic_flag actually works.    # Check to make sure the pic_flag actually works.
1180    AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works])    AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $lt_cv_prog_cc_pic works],
1181    AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl      lt_cv_prog_cc_pic_works, [$lt_cv_prog_cc_pic -DPIC],
1182      save_CFLAGS="$CFLAGS"      [lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"],
1183      CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"      [lt_cv_prog_cc_pic=
1184      AC_TRY_COMPILE([], [], [dnl      lt_cv_prog_cc_can_build_shared=no])
1185        case $host_os in  fi
1186        hpux9* | hpux10* | hpux11*)  ])# AC_LIBTOOL_PROG_CC_PIC_WORKS
1187          # On HP-UX, both CC and GCC only warn that PIC is supported... then  
1188          # they create non-PIC objects.  So, if there were any warnings, we  
1189          # assume that PIC is not supported.  # AC_LIBTOOL_PROG_CC_STATIC
1190          if test -s conftest.err; then  # -------------------------
1191            lt_cv_prog_cc_pic_works=no  AC_DEFUN([AC_LIBTOOL_PROG_CC_STATIC],
1192          else  [## FIXME: lt_cv_prog_cc_static is set from here at the moment:
1193            lt_cv_prog_cc_pic_works=yes  AC_REQUIRE([AC_LIBTOOL_PROG_CC_PIC])
1194          fi  
1195          ;;  compiler_static="$lt_cv_prog_cc_static"
1196        *)  AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $compiler_static works],
1197          lt_cv_prog_cc_pic_works=yes    lt_cv_prog_cc_static_works, $compiler_static,
1198          ;;    [],
1199        esac    lt_cv_prog_cc_static=)
1200      ], [dnl  link_static_flag="$lt_cv_prog_cc_static"
1201        lt_cv_prog_cc_pic_works=no  ])# AC_LIBTOOL_PROG_CC_STATIC
     ])  
     CFLAGS="$save_CFLAGS"  
   ])  
1202    
1203    if test "X$lt_cv_prog_cc_pic_works" = Xno; then  
1204      lt_cv_prog_cc_pic=  # _LT_AC_TAGCONFIG
1205      lt_cv_prog_cc_can_build_shared=no  # ----------------
1206    else  AC_DEFUN([_LT_AC_TAGCONFIG],
1207      lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"  [AC_ARG_WITH(tag,
1208      [  --with-tags=TAG[:TAG]   include an alternate configuration],
1209      tagnames="$withval", tagnames=)
1210    
1211    ## Dependencies to place before and after the object being linked:
1212    predep_objects=
1213    postdep_objects=
1214    predeps=
1215    postdeps=
1216    compiler_lib_search_path=
1217    
1218    if test -n "$tagnames"; then
1219      IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1220      for tagname in $tagnames; do
1221        # Check whether tagname contains only valid characters
1222        [case `$echo "X$tagname" | $Xsed -e 's/[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]//g'` in]
1223        "") ;;
1224        *)  AC_MSG_ERROR([invalid tag name: $tagname])
1225            ;;
1226        esac
1227    
1228        if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$ofile" > /dev/null; then
1229          AC_MSG_ERROR([tag name $tagname already exists])
1230        fi
1231      done
1232    
1233      if test ! -f "$ofile"; then
1234        AC_MSG_WARN([output file \`$ofile' does not exist])
1235    fi    fi
1236    
1237    AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])    if test -z "$LTCC"; then
1238        eval "`$SHELL $ofile --config | grep '^LTCC='`"
1239        if test -z "$LTCC"; then
1240          AC_MSG_WARN([output file \`$ofile' does not look like a libtool script])
1241        else
1242          AC_MSG_WARN([using \`LTCC=$LTCC', extracted from \`$ofile'])
1243        fi
1244      fi
1245  fi  fi
1246    ])# _LT_AC_TAGCONFIG
1247    
1248    
1249    # _LT_AC_SYS_C_CONFIG
1250    # -------------------
1251    AC_DEFUN([_LT_AC_SYS_C_CONFIG],
1252    [# Source file extension for C test sources.
1253    ac_ext=c
1254    
1255    # Object file extension for compiled C test sources.
1256    objext=o
1257    
1258    # Code to be used in simple compile tests
1259    lt_simple_compile_test_code="int some_variable = 0;"
1260    
1261    # Code to be used in simple link tests
1262    lt_simple_link_test_code='main(){return(0);}'
1263    ])# _LT_AC_SYS_C_CONFIG
1264    
1265    
1266    # _LT_AC_LTCONFIG_HACK
1267    # --------------------
1268    AC_DEFUN([_LT_AC_LTCONFIG_HACK],
1269    [AC_REQUIRE([AC_LIBTOOL_SYS_MAX_CMD_LEN])dnl
1270    AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
1271    AC_LIBTOOL_PROG_CC_PIC_WORKS
1272    AC_LIBTOOL_PROG_CC_NO_RTTI
1273    AC_LIBTOOL_PROG_CC_C_O
1274    AC_LIBTOOL_PROG_CC_STATIC
1275    
1276    ## FIXME: this should be a separate macro
1277    ##
1278    AC_MSG_CHECKING([for objdir])
1279    rm -f .libs 2>/dev/null
1280    mkdir .libs 2>/dev/null
1281    if test -d .libs; then
1282      objdir=.libs
1283    else
1284      # MS-DOS does not allow filenames that begin with a dot.
1285      objdir=_libs
1286    fi
1287    rmdir .libs 2>/dev/null
1288    AC_MSG_RESULT($objdir)
1289  ##  ##
1290  ## END FIXME  ## END FIXME
1291    
# Line 1072  if test -n "$lt_cv_prog_cc_shlib"; then Line 1299  if test -n "$lt_cv_prog_cc_shlib"; then
1299    fi    fi
1300  fi  fi
1301    
 ## FIXME: this should be a separate macro  
 ##  
 AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works])  
 AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl  
   lt_cv_prog_cc_static_works=no  
   save_LDFLAGS="$LDFLAGS"  
   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"  
   AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes])  
   LDFLAGS="$save_LDFLAGS"  
 ])  
   
 # Belt *and* braces to stop my trousers falling down:  
 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=  
 AC_MSG_RESULT([$lt_cv_prog_cc_static_works])  
   
1302  pic_flag="$lt_cv_prog_cc_pic"  pic_flag="$lt_cv_prog_cc_pic"
1303  special_shlib_compile_flags="$lt_cv_prog_cc_shlib"  special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
1304  wl="$lt_cv_prog_cc_wl"  wl="$lt_cv_prog_cc_wl"
 link_static_flag="$lt_cv_prog_cc_static"  
1305  no_builtin_flag="$lt_cv_prog_cc_no_builtin"  no_builtin_flag="$lt_cv_prog_cc_no_builtin"
1306  can_build_shared="$lt_cv_prog_cc_can_build_shared"  can_build_shared="$lt_cv_prog_cc_can_build_shared"
 ##  
 ## END FIXME  
   
   
 ## FIXME: this should be a separate macro  
 ##  
 # Check to see if options -o and -c are simultaneously supported by compiler  
 AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])  
 AC_CACHE_VAL([lt_cv_compiler_c_o], [  
 $rm -r conftest 2>/dev/null  
 mkdir conftest  
 cd conftest  
 echo "int some_variable = 0;" > conftest.$ac_ext  
 mkdir out  
 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers  
 # that will create temporary files in the current directory regardless of  
 # the output directory.  Thus, making CWD read-only will cause this test  
 # to fail, enabling locking or at least warning the user not to do parallel  
 # builds.  
 chmod -w .  
 save_CFLAGS="$CFLAGS"  
 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"  
 compiler_c_o=no  
 if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then  
   # The compiler can only warn and ignore the option if not recognized  
   # So say no if there are warnings  
   if test -s out/conftest.err; then  
     lt_cv_compiler_c_o=no  
   else  
     lt_cv_compiler_c_o=yes  
   fi  
 else  
   # Append any errors to the config.log.  
   cat out/conftest.err 1>&AC_FD_CC  
   lt_cv_compiler_c_o=no  
 fi  
 CFLAGS="$save_CFLAGS"  
 chmod u+w .  
 $rm conftest* out/*  
 rmdir out  
 cd ..  
 rmdir conftest  
 $rm -r conftest 2>/dev/null  
 ])  
 compiler_c_o=$lt_cv_compiler_c_o  
 AC_MSG_RESULT([$compiler_c_o])  
1307    
 if test x"$compiler_c_o" = x"yes"; then  
   # Check to see if we can write to a .lo  
   AC_MSG_CHECKING([if $compiler supports -c -o file.lo])  
   AC_CACHE_VAL([lt_cv_compiler_o_lo], [  
   lt_cv_compiler_o_lo=no  
   save_CFLAGS="$CFLAGS"  
   CFLAGS="$CFLAGS -c -o conftest.lo"  
   AC_TRY_COMPILE([], [int some_variable = 0;], [dnl  
     # The compiler can only warn and ignore the option if not recognized  
     # So say no if there are warnings  
     if test -s conftest.err; then  
       lt_cv_compiler_o_lo=no  
     else  
       lt_cv_compiler_o_lo=yes  
     fi  
   ])  
   CFLAGS="$save_CFLAGS"  
   ])  
   compiler_o_lo=$lt_cv_compiler_o_lo  
   AC_MSG_RESULT([$compiler_c_lo])  
 else  
   compiler_o_lo=no  
 fi  
 ##  
 ## END FIXME  
1308    
1309  ## FIXME: this should be a separate macro  ## FIXME: this should be a separate macro
1310  ##  ##
# Line 1190  fi Line 1330  fi
1330  ##  ##
1331  ## END FIXME  ## END FIXME
1332    
 ## FIXME: this should be a separate macro  
 ##  
 if test "$GCC" = yes; then  
   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler  
   AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])  
   echo "int some_variable = 0;" > conftest.$ac_ext  
   save_CFLAGS="$CFLAGS"  
   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"  
   compiler_rtti_exceptions=no  
   AC_TRY_COMPILE([], [int some_variable = 0;], [dnl  
     # The compiler can only warn and ignore the option if not recognized  
     # So say no if there are warnings  
     if test -s conftest.err; then  
       compiler_rtti_exceptions=no  
     else  
       compiler_rtti_exceptions=yes  
     fi  
   ])  
   CFLAGS="$save_CFLAGS"  
   AC_MSG_RESULT([$compiler_rtti_exceptions])  
   
   if test "$compiler_rtti_exceptions" = "yes"; then  
     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'  
   else  
     no_builtin_flag=' -fno-builtin'  
   fi  
 fi  
 ##  
 ## END FIXME  
1333    
1334  ## FIXME: this should be a separate macro  ## FIXME: this should be a separate macro
1335  ##  ##
# Line 2905  fi Line 3016  fi
3016    
3017  ])# _LT_AC_LTCONFIG_HACK  ])# _LT_AC_LTCONFIG_HACK
3018    
 # AC_LIBTOOL_DLOPEN - enable checks for dlopen support  
 AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])  
3019    
3020  # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's  # AC_LIBTOOL_DLOPEN
3021  AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])  # -----------------
3022    # enable checks for dlopen support
3023    AC_DEFUN([AC_LIBTOOL_DLOPEN],
3024     [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
3025    ])# AC_LIBTOOL_DLOPEN
3026    
3027    
3028  # AC_ENABLE_SHARED - implement the --enable-shared flag  # AC_LIBTOOL_WIN32_DLL
3029  # Usage: AC_ENABLE_SHARED[(DEFAULT)]  # --------------------
3030  #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to  # declare package support for building win32 dll's
3031  #   `yes'.  AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
3032    [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
3033    ])# AC_LIBTOOL_WIN32_DLL
3034    
3035    
3036    # AC_ENABLE_SHARED([DEFAULT])
3037    # ---------------------------
3038    # implement the --enable-shared flag
3039    # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3040  AC_DEFUN([AC_ENABLE_SHARED],  AC_DEFUN([AC_ENABLE_SHARED],
3041  [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl  [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3042  AC_ARG_ENABLE(shared,  AC_ARG_ENABLE(shared,
# Line 2938  no) enable_shared=no ;; Line 3060  no) enable_shared=no ;;
3060    ;;    ;;
3061  esac],  esac],
3062  enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl  enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
3063  ])  ])# AC_ENABLE_SHARED
3064    
3065  # AC_DISABLE_SHARED - set the default shared flag to --disable-shared  
3066    # AC_DISABLE_SHARED
3067    # -----------------
3068    #- set the default shared flag to --disable-shared
3069  AC_DEFUN([AC_DISABLE_SHARED],  AC_DEFUN([AC_DISABLE_SHARED],
3070  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3071  AC_ENABLE_SHARED(no)])  AC_ENABLE_SHARED(no)
3072    ])# AC_DISABLE_SHARED
3073    
3074    
3075  # AC_ENABLE_STATIC - implement the --enable-static flag  # AC_ENABLE_STATIC([DEFAULT])
3076  # Usage: AC_ENABLE_STATIC[(DEFAULT)]  # ---------------------------
3077  #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to  # implement the --enable-static flag
3078  #   `yes'.  # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3079  AC_DEFUN([AC_ENABLE_STATIC],  AC_DEFUN([AC_ENABLE_STATIC],
3080  [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl  [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3081  AC_ARG_ENABLE(static,  AC_ARG_ENABLE(static,
# Line 2972  no) enable_static=no ;; Line 3099  no) enable_static=no ;;
3099    ;;    ;;
3100  esac],  esac],
3101  enable_static=AC_ENABLE_STATIC_DEFAULT)dnl  enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
3102  ])  ])# AC_ENABLE_STATIC
3103    
3104  # AC_DISABLE_STATIC - set the default static flag to --disable-static  
3105    # AC_DISABLE_STATIC
3106    # -----------------
3107    # set the default static flag to --disable-static
3108  AC_DEFUN([AC_DISABLE_STATIC],  AC_DEFUN([AC_DISABLE_STATIC],
3109  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3110  AC_ENABLE_STATIC(no)])  AC_ENABLE_STATIC(no)
3111    ])# AC_DISABLE_STATIC
3112    
3113    
3114  # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag  # AC_ENABLE_FAST_INSTALL([DEFAULT])
3115  # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]  # ---------------------------------
3116  #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to  # implement the --enable-fast-install flag
3117  #   `yes'.  # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3118  AC_DEFUN([AC_ENABLE_FAST_INSTALL],  AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3119  [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl  [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3120  AC_ARG_ENABLE(fast-install,  AC_ARG_ENABLE(fast-install,
# Line 3007  no) enable_fast_install=no ;; Line 3138  no) enable_fast_install=no ;;
3138    ;;    ;;
3139  esac],  esac],
3140  enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl  enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
3141  ])  ])# AC_ENABLE_FAST_INSTALL
3142    
3143  # AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install  
3144    # AC_DISABLE_FAST_INSTALL
3145    # -----------------------
3146    # set the default to --disable-fast-install
3147  AC_DEFUN([AC_DISABLE_FAST_INSTALL],  AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3148  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3149  AC_ENABLE_FAST_INSTALL(no)])  AC_ENABLE_FAST_INSTALL(no)
3150    ])# AC_DISABLE_FAST_INSTALL
3151    
3152    
3153  # AC_LIBTOOL_PICMODE - implement the --with-pic flag  # AC_LIBTOOL_PICMODE([MODE])
3154  # Usage: AC_LIBTOOL_PICMODE[(MODE)]  # --------------------------
3155  #   Where MODE is either `yes' or `no'.  If omitted, it defaults to  # implement the --with-pic flag
3156  #   `both'.  # MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
3157  AC_DEFUN([AC_LIBTOOL_PICMODE],  AC_DEFUN([AC_LIBTOOL_PICMODE],
3158  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3159  pic_mode=ifelse($#,1,$1,default)])  pic_mode=ifelse($#,1,$1,default)
3160    ])# AC_LIBTOOL_PICMODE
3161    
3162    
3163  # AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library  # AC_PATH_TOOL_PREFIX
3164    # -------------------
3165    # find a file program which can recognise shared library
3166  AC_DEFUN([AC_PATH_TOOL_PREFIX],  AC_DEFUN([AC_PATH_TOOL_PREFIX],
3167  [AC_MSG_CHECKING([for $1])  [AC_MSG_CHECKING([for $1])
3168  AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,  AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
# Line 3082  if test -n "$MAGIC_CMD"; then Line 3221  if test -n "$MAGIC_CMD"; then
3221  else  else
3222    AC_MSG_RESULT(no)    AC_MSG_RESULT(no)
3223  fi  fi
3224  ])  ])# AC_PATH_TOOL_PREFIX
3225    
3226    
3227  # AC_PATH_MAGIC - find a file program which can recognise a shared library  # AC_PATH_MAGIC
3228    # -------------
3229    # find a file program which can recognise a shared library
3230  AC_DEFUN([AC_PATH_MAGIC],  AC_DEFUN([AC_PATH_MAGIC],
3231  [AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl  [AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
3232  AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)  AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)
# Line 3096  if test -z "$lt_cv_path_MAGIC_CMD"; then Line 3237  if test -z "$lt_cv_path_MAGIC_CMD"; then
3237      MAGIC_CMD=:      MAGIC_CMD=:
3238    fi    fi
3239  fi  fi
3240  ])  ])# AC_PATH_MAGIC
3241    
3242    
3243  # AC_PROG_LD - find the path to the GNU or non-GNU linker  # AC_PROG_LD
3244    # ----------
3245     find the path to the GNU or non-GNU linker
3246  AC_DEFUN([AC_PROG_LD],  AC_DEFUN([AC_PROG_LD],
3247  [AC_ARG_WITH(gnu-ld,  [AC_ARG_WITH(gnu-ld,
3248  [  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],    [  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
3249  test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)    test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
3250  AC_REQUIRE([AC_PROG_CC])dnl  AC_REQUIRE([AC_PROG_CC])dnl
3251  AC_REQUIRE([AC_CANONICAL_HOST])dnl  AC_REQUIRE([AC_CANONICAL_HOST])dnl
3252  AC_REQUIRE([AC_CANONICAL_BUILD])dnl  AC_REQUIRE([AC_CANONICAL_BUILD])dnl
# Line 3172  else Line 3315  else
3315  fi  fi
3316  test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])  test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3317  AC_PROG_LD_GNU  AC_PROG_LD_GNU
3318  ])  ])# AC_PROG_LD
3319    
3320  # AC_PROG_LD_GNU -  
3321    # AC_PROG_LD_GNU
3322    # --------------
3323  AC_DEFUN([AC_PROG_LD_GNU],  AC_DEFUN([AC_PROG_LD_GNU],
3324  [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,  [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3325  [# I'd rather use --version here, but apparently some GNU ld's only accept -v.  [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
# Line 3184  else Line 3329  else
3329    lt_cv_prog_gnu_ld=no    lt_cv_prog_gnu_ld=no
3330  fi])  fi])
3331  with_gnu_ld=$lt_cv_prog_gnu_ld  with_gnu_ld=$lt_cv_prog_gnu_ld
3332  ])  ])# AC_PROG_LD_GNU
3333    
3334    
3335  # AC_PROG_LD_RELOAD_FLAG - find reload flag for linker  # AC_PROG_LD_RELOAD_FLAG
3336    # ----------------------
3337    # find reload flag for linker
3338  #   -- PORTME Some linkers may need a different reload flag.  #   -- PORTME Some linkers may need a different reload flag.
3339  AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],  AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3340  [AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,  [AC_CACHE_CHECK([for $LD option to reload object files],
3341  [lt_cv_ld_reload_flag='-r'])    lt_cv_ld_reload_flag,
3342      [lt_cv_ld_reload_flag='-r'])
3343  reload_flag=$lt_cv_ld_reload_flag  reload_flag=$lt_cv_ld_reload_flag
3344  test -n "$reload_flag" && reload_flag=" $reload_flag"  test -n "$reload_flag" && reload_flag=" $reload_flag"
3345  ])  ])# AC_PROG_LD_RELOAD_FLAG
3346    
3347    
3348  # AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies  # AC_DEPLIBS_CHECK_METHOD
3349    # -----------------------
3350    # how to check for library dependencies
3351  #  -- PORTME fill in with the dynamic library characteristics  #  -- PORTME fill in with the dynamic library characteristics
3352  AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],  AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3353  [AC_CACHE_CHECK([how to recognise dependant libraries],  [AC_CACHE_CHECK([how to recognise dependant libraries],
# Line 3364  esac Line 3516  esac
3516  ])  ])
3517  file_magic_cmd=$lt_cv_file_magic_cmd  file_magic_cmd=$lt_cv_file_magic_cmd
3518  deplibs_check_method=$lt_cv_deplibs_check_method  deplibs_check_method=$lt_cv_deplibs_check_method
3519  ])  ])# AC_DEPLIBS_CHECK_METHOD
3520    
3521    
3522  # AC_PROG_NM - find the path to a BSD-compatible name lister  # AC_PROG_NM
3523    # ----------
3524    # find the path to a BSD-compatible name lister
3525  AC_DEFUN([AC_PROG_NM],  AC_DEFUN([AC_PROG_NM],
3526  [AC_MSG_CHECKING([for BSD-compatible nm])  [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
 AC_CACHE_VAL(lt_cv_path_NM,  
3527  [if test -n "$NM"; then  [if test -n "$NM"; then
3528    # Let the user override the test.    # Let the user override the test.
3529    lt_cv_path_NM="$NM"    lt_cv_path_NM="$NM"
# Line 3400  else Line 3553  else
3553    test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm    test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3554  fi])  fi])
3555  NM="$lt_cv_path_NM"  NM="$lt_cv_path_NM"
3556  AC_MSG_RESULT([$NM])  ])# AC_PROG_NM
3557  ])  
3558    
3559  # AC_CHECK_LIBM - check for math library  # AC_CHECK_LIBM
3560    # -------------
3561    # check for math library
3562  AC_DEFUN([AC_CHECK_LIBM],  AC_DEFUN([AC_CHECK_LIBM],
3563  [AC_REQUIRE([AC_CANONICAL_HOST])dnl  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3564  LIBM=  LIBM=
# Line 3419  case $host in Line 3574  case $host in
3574    AC_CHECK_LIB(m, main, LIBM="-lm")    AC_CHECK_LIB(m, main, LIBM="-lm")
3575    ;;    ;;
3576  esac  esac
3577  ])  ])# AC_CHECK_LIBM
3578    
3579  # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for  
3580  # the libltdl convenience library and INCLTDL to the include flags for  # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3581  # the libltdl header and adds --enable-ltdl-convenience to the  # -----------------------------------
3582  # configure arguments.  Note that LIBLTDL and INCLTDL are not  # sets LIBLTDL to the link flags for the libltdl convenience library and
3583  # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If DIR is not  # INCLTDL to the include flags for the libltdl header and adds
3584  # provided, it is assumed to be `libltdl'.  LIBLTDL will be prefixed  # --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
3585  # with '${top_builddir}/' and INCLTDL will be prefixed with  # and INCLTDL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
3586    # DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
3587    # be prefixed with '${top_builddir}/' and INCLTDL will be prefixed with
3588  # '${top_srcdir}/' (note the single quotes!).  If your package is not  # '${top_srcdir}/' (note the single quotes!).  If your package is not
3589  # flat and you're not using automake, define top_builddir and  # flat and you're not using automake, define top_builddir and
3590  # top_srcdir appropriately in the Makefiles.  # top_srcdir appropriately in the Makefiles.
# Line 3440  AC_DEFUN([AC_LIBLTDL_CONVENIENCE], Line 3597  AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3597    esac    esac
3598    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3599    INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])    INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3600  ])  ])# AC_LIBLTDL_CONVENIENCE
3601    
3602  # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for  
3603  # the libltdl installable library and INCLTDL to the include flags for  # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3604  # the libltdl header and adds --enable-ltdl-install to the configure  # -----------------------------------
3605  # arguments.  Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is  # sets LIBLTDL to the link flags for the libltdl installable library and
3606  # AC_CONFIG_SUBDIRS called.  If DIR is not provided and an installed  # INCLTDL to the include flags for the libltdl header and adds
3607  # libltdl is not found, it is assumed to be `libltdl'.  LIBLTDL will  # --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
3608  # be prefixed with '${top_builddir}/' and INCLTDL will be prefixed  # and INCLTDL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
3609  # with '${top_srcdir}/' (note the single quotes!).  If your package is  # DIRECTORY is not provided and an installed libltdl is not found, it is
3610  # not flat and you're not using automake, define top_builddir and  # assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
3611  # top_srcdir appropriately in the Makefiles.  # and INCLTDL will be prefixed with '${top_srcdir}/' (note the single
3612    # quotes!).  If your package is not flat and you're not using automake,
3613    # define top_builddir and top_srcdir appropriately in the Makefiles.
3614  # In the future, this macro may have to be called after AC_PROG_LIBTOOL.  # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3615  AC_DEFUN([AC_LIBLTDL_INSTALLABLE],  AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3616  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
# Line 3472  AC_DEFUN([AC_LIBLTDL_INSTALLABLE], Line 3631  AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3631      LIBLTDL="-lltdl"      LIBLTDL="-lltdl"
3632      INCLTDL=      INCLTDL=
3633    fi    fi
3634  ])  ])# AC_LIBLTDL_INSTALLABLE
3635    
3636    
3637  # If this macro is not defined by Autoconf, define it here.  # If this macro is not defined by Autoconf, define it here.
3638  ifdef([AC_PROVIDE_IFELSE],  ifdef([AC_PROVIDE_IFELSE],
# Line 3481  ifdef([AC_PROVIDE_IFELSE], Line 3641  ifdef([AC_PROVIDE_IFELSE],
3641                [ifdef([AC_PROVIDE_$1],                [ifdef([AC_PROVIDE_$1],
3642                       [$2], [$3])])])                       [$2], [$3])])])
3643    
 # AC_LIBTOOL_CXX - enable support for C++ libraries  
 AC_DEFUN([AC_LIBTOOL_CXX], [AC_REQUIRE([_AC_LIBTOOL_CXX])])  
3644    
3645  AC_DEFUN([_AC_LIBTOOL_CXX],  # AC_LIBTOOL_CXX
3646    # --------------
3647    # enable support for C++ libraries
3648    AC_DEFUN([AC_LIBTOOL_CXX],
3649    [AC_REQUIRE([_LT_AC_LANG_CXX])
3650    ])# AC_LIBTOOL_CXX
3651    
3652    
3653    # _LT_AC_LANG_CXX
3654    # ---------------
3655    AC_DEFUN([_LT_AC_LANG_CXX],
3656  [AC_REQUIRE([AC_PROG_CXX])  [AC_REQUIRE([AC_PROG_CXX])
3657  AC_REQUIRE([AC_PROG_CXXCPP])  AC_REQUIRE([AC_PROG_CXXCPP])
3658  LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"  LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
# Line 3508  CFLAGS="$lt_save_CFLAGS" Line 3676  CFLAGS="$lt_save_CFLAGS"
3676  # Redirect the config.log output again, so that the ltconfig log is not  # Redirect the config.log output again, so that the ltconfig log is not
3677  # clobbered by the next message.  # clobbered by the next message.
3678  exec 5>>./config.log  exec 5>>./config.log
3679  ])# _AC_LIBTOOL_CXX -  ])# _LT_AC_LANG_CXX
3680    
3681    
3682  # AC_LIBTOOL_GCJ - enable support for GCJ libraries  # AC_LIBTOOL_GCJ
3683  AC_DEFUN([AC_LIBTOOL_GCJ],[AC_REQUIRE([_AC_LIBTOOL_GCJ])])  # --------------
3684    # enable support for GCJ libraries
3685    AC_DEFUN([AC_LIBTOOL_GCJ],
3686    [AC_REQUIRE([_LT_AC_LANG_GCJ])
3687    ])# AC_LIBTOOL_GCJ
3688    
3689  AC_DEFUN([_AC_LIBTOOL_GCJ],  
3690    # _LT_AC_LANG_GCJ
3691    # ---------------
3692    AC_DEFUN([_LT_AC_LANG_GCJ],
3693  [AC_REQUIRE([AC_PROG_LIBTOOL])  [AC_REQUIRE([AC_PROG_LIBTOOL])
3694  AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],  AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3695    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
# Line 3542  CFLAGS="$lt_save_CFLAGS" Line 3718  CFLAGS="$lt_save_CFLAGS"
3718  # Redirect the config.log output again, so that the ltconfig log is not  # Redirect the config.log output again, so that the ltconfig log is not
3719  # clobbered by the next message.  # clobbered by the next message.
3720  exec 5>>./config.log  exec 5>>./config.log
3721  ])  ])# _LT_AC_LANG_GCJ
3722    
3723    
3724  # old names  # old names
3725  AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])  AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])

Legend:
Removed from v.1.167  
changed lines
  Added in v.1.168

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26