[svn r13] svn tree clean.
1.1 --- a/gst-plugins-mythtv/aclocal.m4 Tue Sep 26 15:23:49 2006 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,7407 +0,0 @@
1.4 -# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
1.5 -
1.6 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1.7 -# 2005 Free Software Foundation, Inc.
1.8 -# This file is free software; the Free Software Foundation
1.9 -# gives unlimited permission to copy and/or distribute it,
1.10 -# with or without modifications, as long as this notice is preserved.
1.11 -
1.12 -# This program is distributed in the hope that it will be useful,
1.13 -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
1.14 -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1.15 -# PARTICULAR PURPOSE.
1.16 -
1.17 -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1.18 -
1.19 -# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
1.20 -
1.21 -
1.22 -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1.23 -# -----------------------------------------------------------
1.24 -# If this macro is not defined by Autoconf, define it here.
1.25 -m4_ifdef([AC_PROVIDE_IFELSE],
1.26 - [],
1.27 - [m4_define([AC_PROVIDE_IFELSE],
1.28 - [m4_ifdef([AC_PROVIDE_$1],
1.29 - [$2], [$3])])])
1.30 -
1.31 -
1.32 -# AC_PROG_LIBTOOL
1.33 -# ---------------
1.34 -AC_DEFUN([AC_PROG_LIBTOOL],
1.35 -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
1.36 -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
1.37 -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
1.38 - AC_PROVIDE_IFELSE([AC_PROG_CXX],
1.39 - [AC_LIBTOOL_CXX],
1.40 - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
1.41 - ])])
1.42 -dnl And a similar setup for Fortran 77 support
1.43 - AC_PROVIDE_IFELSE([AC_PROG_F77],
1.44 - [AC_LIBTOOL_F77],
1.45 - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
1.46 -])])
1.47 -
1.48 -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
1.49 -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
1.50 -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
1.51 - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1.52 - [AC_LIBTOOL_GCJ],
1.53 - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1.54 - [AC_LIBTOOL_GCJ],
1.55 - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
1.56 - [AC_LIBTOOL_GCJ],
1.57 - [ifdef([AC_PROG_GCJ],
1.58 - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1.59 - ifdef([A][M_PROG_GCJ],
1.60 - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1.61 - ifdef([LT_AC_PROG_GCJ],
1.62 - [define([LT_AC_PROG_GCJ],
1.63 - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
1.64 -])])# AC_PROG_LIBTOOL
1.65 -
1.66 -
1.67 -# _AC_PROG_LIBTOOL
1.68 -# ----------------
1.69 -AC_DEFUN([_AC_PROG_LIBTOOL],
1.70 -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
1.71 -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
1.72 -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
1.73 -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
1.74 -
1.75 -# This can be used to rebuild libtool when needed
1.76 -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1.77 -
1.78 -# Always use our own libtool.
1.79 -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1.80 -AC_SUBST(LIBTOOL)dnl
1.81 -
1.82 -# Prevent multiple expansion
1.83 -define([AC_PROG_LIBTOOL], [])
1.84 -])# _AC_PROG_LIBTOOL
1.85 -
1.86 -
1.87 -# AC_LIBTOOL_SETUP
1.88 -# ----------------
1.89 -AC_DEFUN([AC_LIBTOOL_SETUP],
1.90 -[AC_PREREQ(2.50)dnl
1.91 -AC_REQUIRE([AC_ENABLE_SHARED])dnl
1.92 -AC_REQUIRE([AC_ENABLE_STATIC])dnl
1.93 -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
1.94 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
1.95 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1.96 -AC_REQUIRE([AC_PROG_CC])dnl
1.97 -AC_REQUIRE([AC_PROG_LD])dnl
1.98 -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
1.99 -AC_REQUIRE([AC_PROG_NM])dnl
1.100 -
1.101 -AC_REQUIRE([AC_PROG_LN_S])dnl
1.102 -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
1.103 -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1.104 -AC_REQUIRE([AC_OBJEXT])dnl
1.105 -AC_REQUIRE([AC_EXEEXT])dnl
1.106 -dnl
1.107 -
1.108 -AC_LIBTOOL_SYS_MAX_CMD_LEN
1.109 -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1.110 -AC_LIBTOOL_OBJDIR
1.111 -
1.112 -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1.113 -_LT_AC_PROG_ECHO_BACKSLASH
1.114 -
1.115 -case $host_os in
1.116 -aix3*)
1.117 - # AIX sometimes has problems with the GCC collect2 program. For some
1.118 - # reason, if we set the COLLECT_NAMES environment variable, the problems
1.119 - # vanish in a puff of smoke.
1.120 - if test "X${COLLECT_NAMES+set}" != Xset; then
1.121 - COLLECT_NAMES=
1.122 - export COLLECT_NAMES
1.123 - fi
1.124 - ;;
1.125 -esac
1.126 -
1.127 -# Sed substitution that helps us do robust quoting. It backslashifies
1.128 -# metacharacters that are still active within double-quoted strings.
1.129 -Xsed='sed -e 1s/^X//'
1.130 -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1.131 -
1.132 -# Same as above, but do not quote variable references.
1.133 -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
1.134 -
1.135 -# Sed substitution to delay expansion of an escaped shell variable in a
1.136 -# double_quote_subst'ed string.
1.137 -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.138 -
1.139 -# Sed substitution to avoid accidental globbing in evaled expressions
1.140 -no_glob_subst='s/\*/\\\*/g'
1.141 -
1.142 -# Constants:
1.143 -rm="rm -f"
1.144 -
1.145 -# Global variables:
1.146 -default_ofile=libtool
1.147 -can_build_shared=yes
1.148 -
1.149 -# All known linkers require a `.a' archive for static linking (except MSVC,
1.150 -# which needs '.lib').
1.151 -libext=a
1.152 -ltmain="$ac_aux_dir/ltmain.sh"
1.153 -ofile="$default_ofile"
1.154 -with_gnu_ld="$lt_cv_prog_gnu_ld"
1.155 -
1.156 -AC_CHECK_TOOL(AR, ar, false)
1.157 -AC_CHECK_TOOL(RANLIB, ranlib, :)
1.158 -AC_CHECK_TOOL(STRIP, strip, :)
1.159 -
1.160 -old_CC="$CC"
1.161 -old_CFLAGS="$CFLAGS"
1.162 -
1.163 -# Set sane defaults for various variables
1.164 -test -z "$AR" && AR=ar
1.165 -test -z "$AR_FLAGS" && AR_FLAGS=cru
1.166 -test -z "$AS" && AS=as
1.167 -test -z "$CC" && CC=cc
1.168 -test -z "$LTCC" && LTCC=$CC
1.169 -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1.170 -test -z "$DLLTOOL" && DLLTOOL=dlltool
1.171 -test -z "$LD" && LD=ld
1.172 -test -z "$LN_S" && LN_S="ln -s"
1.173 -test -z "$MAGIC_CMD" && MAGIC_CMD=file
1.174 -test -z "$NM" && NM=nm
1.175 -test -z "$SED" && SED=sed
1.176 -test -z "$OBJDUMP" && OBJDUMP=objdump
1.177 -test -z "$RANLIB" && RANLIB=:
1.178 -test -z "$STRIP" && STRIP=:
1.179 -test -z "$ac_objext" && ac_objext=o
1.180 -
1.181 -# Determine commands to create old-style static archives.
1.182 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1.183 -old_postinstall_cmds='chmod 644 $oldlib'
1.184 -old_postuninstall_cmds=
1.185 -
1.186 -if test -n "$RANLIB"; then
1.187 - case $host_os in
1.188 - openbsd*)
1.189 - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1.190 - ;;
1.191 - *)
1.192 - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1.193 - ;;
1.194 - esac
1.195 - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1.196 -fi
1.197 -
1.198 -_LT_CC_BASENAME([$compiler])
1.199 -
1.200 -# Only perform the check for file, if the check method requires it
1.201 -case $deplibs_check_method in
1.202 -file_magic*)
1.203 - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.204 - AC_PATH_MAGIC
1.205 - fi
1.206 - ;;
1.207 -esac
1.208 -
1.209 -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1.210 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1.211 -enable_win32_dll=yes, enable_win32_dll=no)
1.212 -
1.213 -AC_ARG_ENABLE([libtool-lock],
1.214 - [AC_HELP_STRING([--disable-libtool-lock],
1.215 - [avoid locking (might break parallel builds)])])
1.216 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.217 -
1.218 -AC_ARG_WITH([pic],
1.219 - [AC_HELP_STRING([--with-pic],
1.220 - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1.221 - [pic_mode="$withval"],
1.222 - [pic_mode=default])
1.223 -test -z "$pic_mode" && pic_mode=default
1.224 -
1.225 -# Use C for the default configuration in the libtool script
1.226 -tagname=
1.227 -AC_LIBTOOL_LANG_C_CONFIG
1.228 -_LT_AC_TAGCONFIG
1.229 -])# AC_LIBTOOL_SETUP
1.230 -
1.231 -
1.232 -# _LT_AC_SYS_COMPILER
1.233 -# -------------------
1.234 -AC_DEFUN([_LT_AC_SYS_COMPILER],
1.235 -[AC_REQUIRE([AC_PROG_CC])dnl
1.236 -
1.237 -# If no C compiler was specified, use CC.
1.238 -LTCC=${LTCC-"$CC"}
1.239 -
1.240 -# If no C compiler flags were specified, use CFLAGS.
1.241 -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.242 -
1.243 -# Allow CC to be a program name with arguments.
1.244 -compiler=$CC
1.245 -])# _LT_AC_SYS_COMPILER
1.246 -
1.247 -
1.248 -# _LT_CC_BASENAME(CC)
1.249 -# -------------------
1.250 -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1.251 -AC_DEFUN([_LT_CC_BASENAME],
1.252 -[for cc_temp in $1""; do
1.253 - case $cc_temp in
1.254 - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1.255 - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1.256 - \-*) ;;
1.257 - *) break;;
1.258 - esac
1.259 -done
1.260 -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.261 -])
1.262 -
1.263 -
1.264 -# _LT_COMPILER_BOILERPLATE
1.265 -# ------------------------
1.266 -# Check for compiler boilerplate output or warnings with
1.267 -# the simple compiler test code.
1.268 -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
1.269 -[ac_outfile=conftest.$ac_objext
1.270 -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
1.271 -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1.272 -_lt_compiler_boilerplate=`cat conftest.err`
1.273 -$rm conftest*
1.274 -])# _LT_COMPILER_BOILERPLATE
1.275 -
1.276 -
1.277 -# _LT_LINKER_BOILERPLATE
1.278 -# ----------------------
1.279 -# Check for linker boilerplate output or warnings with
1.280 -# the simple link test code.
1.281 -AC_DEFUN([_LT_LINKER_BOILERPLATE],
1.282 -[ac_outfile=conftest.$ac_objext
1.283 -printf "$lt_simple_link_test_code" >conftest.$ac_ext
1.284 -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1.285 -_lt_linker_boilerplate=`cat conftest.err`
1.286 -$rm conftest*
1.287 -])# _LT_LINKER_BOILERPLATE
1.288 -
1.289 -
1.290 -# _LT_AC_SYS_LIBPATH_AIX
1.291 -# ----------------------
1.292 -# Links a minimal program and checks the executable
1.293 -# for the system default hardcoded library path. In most cases,
1.294 -# this is /usr/lib:/lib, but when the MPI compilers are used
1.295 -# the location of the communication and MPI libs are included too.
1.296 -# If we don't find anything, use the default library path according
1.297 -# to the aix ld manual.
1.298 -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1.299 -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1.300 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1.301 -}'`
1.302 -# Check for a 64-bit object if we didn't find anything.
1.303 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1.304 -}'`; fi],[])
1.305 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1.306 -])# _LT_AC_SYS_LIBPATH_AIX
1.307 -
1.308 -
1.309 -# _LT_AC_SHELL_INIT(ARG)
1.310 -# ----------------------
1.311 -AC_DEFUN([_LT_AC_SHELL_INIT],
1.312 -[ifdef([AC_DIVERSION_NOTICE],
1.313 - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1.314 - [AC_DIVERT_PUSH(NOTICE)])
1.315 -$1
1.316 -AC_DIVERT_POP
1.317 -])# _LT_AC_SHELL_INIT
1.318 -
1.319 -
1.320 -# _LT_AC_PROG_ECHO_BACKSLASH
1.321 -# --------------------------
1.322 -# Add some code to the start of the generated configure script which
1.323 -# will find an echo command which doesn't interpret backslashes.
1.324 -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1.325 -[_LT_AC_SHELL_INIT([
1.326 -# Check that we are running under the correct shell.
1.327 -SHELL=${CONFIG_SHELL-/bin/sh}
1.328 -
1.329 -case X$ECHO in
1.330 -X*--fallback-echo)
1.331 - # Remove one level of quotation (which was required for Make).
1.332 - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1.333 - ;;
1.334 -esac
1.335 -
1.336 -echo=${ECHO-echo}
1.337 -if test "X[$]1" = X--no-reexec; then
1.338 - # Discard the --no-reexec flag, and continue.
1.339 - shift
1.340 -elif test "X[$]1" = X--fallback-echo; then
1.341 - # Avoid inline document here, it may be left over
1.342 - :
1.343 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1.344 - # Yippee, $echo works!
1.345 - :
1.346 -else
1.347 - # Restart under the correct shell.
1.348 - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1.349 -fi
1.350 -
1.351 -if test "X[$]1" = X--fallback-echo; then
1.352 - # used as fallback echo
1.353 - shift
1.354 - cat <<EOF
1.355 -[$]*
1.356 -EOF
1.357 - exit 0
1.358 -fi
1.359 -
1.360 -# The HP-UX ksh and POSIX shell print the target directory to stdout
1.361 -# if CDPATH is set.
1.362 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.363 -
1.364 -if test -z "$ECHO"; then
1.365 -if test "X${echo_test_string+set}" != Xset; then
1.366 -# find a string as large as possible, as long as the shell can cope with it
1.367 - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1.368 - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1.369 - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
1.370 - echo_test_string=`eval $cmd` &&
1.371 - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1.372 - then
1.373 - break
1.374 - fi
1.375 - done
1.376 -fi
1.377 -
1.378 -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1.379 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1.380 - test "X$echo_testing_string" = "X$echo_test_string"; then
1.381 - :
1.382 -else
1.383 - # The Solaris, AIX, and Digital Unix default echo programs unquote
1.384 - # backslashes. This makes it impossible to quote backslashes using
1.385 - # echo "$something" | sed 's/\\/\\\\/g'
1.386 - #
1.387 - # So, first we look for a working echo in the user's PATH.
1.388 -
1.389 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.390 - for dir in $PATH /usr/ucb; do
1.391 - IFS="$lt_save_ifs"
1.392 - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1.393 - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1.394 - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1.395 - test "X$echo_testing_string" = "X$echo_test_string"; then
1.396 - echo="$dir/echo"
1.397 - break
1.398 - fi
1.399 - done
1.400 - IFS="$lt_save_ifs"
1.401 -
1.402 - if test "X$echo" = Xecho; then
1.403 - # We didn't find a better echo, so look for alternatives.
1.404 - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1.405 - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1.406 - test "X$echo_testing_string" = "X$echo_test_string"; then
1.407 - # This shell has a builtin print -r that does the trick.
1.408 - echo='print -r'
1.409 - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1.410 - test "X$CONFIG_SHELL" != X/bin/ksh; then
1.411 - # If we have ksh, try running configure again with it.
1.412 - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1.413 - export ORIGINAL_CONFIG_SHELL
1.414 - CONFIG_SHELL=/bin/ksh
1.415 - export CONFIG_SHELL
1.416 - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1.417 - else
1.418 - # Try using printf.
1.419 - echo='printf %s\n'
1.420 - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1.421 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1.422 - test "X$echo_testing_string" = "X$echo_test_string"; then
1.423 - # Cool, printf works
1.424 - :
1.425 - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1.426 - test "X$echo_testing_string" = 'X\t' &&
1.427 - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1.428 - test "X$echo_testing_string" = "X$echo_test_string"; then
1.429 - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1.430 - export CONFIG_SHELL
1.431 - SHELL="$CONFIG_SHELL"
1.432 - export SHELL
1.433 - echo="$CONFIG_SHELL [$]0 --fallback-echo"
1.434 - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1.435 - test "X$echo_testing_string" = 'X\t' &&
1.436 - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1.437 - test "X$echo_testing_string" = "X$echo_test_string"; then
1.438 - echo="$CONFIG_SHELL [$]0 --fallback-echo"
1.439 - else
1.440 - # maybe with a smaller string...
1.441 - prev=:
1.442 -
1.443 - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1.444 - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1.445 - then
1.446 - break
1.447 - fi
1.448 - prev="$cmd"
1.449 - done
1.450 -
1.451 - if test "$prev" != 'sed 50q "[$]0"'; then
1.452 - echo_test_string=`eval $prev`
1.453 - export echo_test_string
1.454 - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1.455 - else
1.456 - # Oops. We lost completely, so just stick with echo.
1.457 - echo=echo
1.458 - fi
1.459 - fi
1.460 - fi
1.461 - fi
1.462 -fi
1.463 -fi
1.464 -
1.465 -# Copy echo and quote the copy suitably for passing to libtool from
1.466 -# the Makefile, instead of quoting the original, which is used later.
1.467 -ECHO=$echo
1.468 -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1.469 - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1.470 -fi
1.471 -
1.472 -AC_SUBST(ECHO)
1.473 -])])# _LT_AC_PROG_ECHO_BACKSLASH
1.474 -
1.475 -
1.476 -# _LT_AC_LOCK
1.477 -# -----------
1.478 -AC_DEFUN([_LT_AC_LOCK],
1.479 -[AC_ARG_ENABLE([libtool-lock],
1.480 - [AC_HELP_STRING([--disable-libtool-lock],
1.481 - [avoid locking (might break parallel builds)])])
1.482 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.483 -
1.484 -# Some flags need to be propagated to the compiler or linker for good
1.485 -# libtool support.
1.486 -case $host in
1.487 -ia64-*-hpux*)
1.488 - # Find out which ABI we are using.
1.489 - echo 'int i;' > conftest.$ac_ext
1.490 - if AC_TRY_EVAL(ac_compile); then
1.491 - case `/usr/bin/file conftest.$ac_objext` in
1.492 - *ELF-32*)
1.493 - HPUX_IA64_MODE="32"
1.494 - ;;
1.495 - *ELF-64*)
1.496 - HPUX_IA64_MODE="64"
1.497 - ;;
1.498 - esac
1.499 - fi
1.500 - rm -rf conftest*
1.501 - ;;
1.502 -*-*-irix6*)
1.503 - # Find out which ABI we are using.
1.504 - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1.505 - if AC_TRY_EVAL(ac_compile); then
1.506 - if test "$lt_cv_prog_gnu_ld" = yes; then
1.507 - case `/usr/bin/file conftest.$ac_objext` in
1.508 - *32-bit*)
1.509 - LD="${LD-ld} -melf32bsmip"
1.510 - ;;
1.511 - *N32*)
1.512 - LD="${LD-ld} -melf32bmipn32"
1.513 - ;;
1.514 - *64-bit*)
1.515 - LD="${LD-ld} -melf64bmip"
1.516 - ;;
1.517 - esac
1.518 - else
1.519 - case `/usr/bin/file conftest.$ac_objext` in
1.520 - *32-bit*)
1.521 - LD="${LD-ld} -32"
1.522 - ;;
1.523 - *N32*)
1.524 - LD="${LD-ld} -n32"
1.525 - ;;
1.526 - *64-bit*)
1.527 - LD="${LD-ld} -64"
1.528 - ;;
1.529 - esac
1.530 - fi
1.531 - fi
1.532 - rm -rf conftest*
1.533 - ;;
1.534 -
1.535 -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1.536 - # Find out which ABI we are using.
1.537 - echo 'int i;' > conftest.$ac_ext
1.538 - if AC_TRY_EVAL(ac_compile); then
1.539 - case `/usr/bin/file conftest.o` in
1.540 - *32-bit*)
1.541 - case $host in
1.542 - x86_64-*linux*)
1.543 - LD="${LD-ld} -m elf_i386"
1.544 - ;;
1.545 - ppc64-*linux*|powerpc64-*linux*)
1.546 - LD="${LD-ld} -m elf32ppclinux"
1.547 - ;;
1.548 - s390x-*linux*)
1.549 - LD="${LD-ld} -m elf_s390"
1.550 - ;;
1.551 - sparc64-*linux*)
1.552 - LD="${LD-ld} -m elf32_sparc"
1.553 - ;;
1.554 - esac
1.555 - ;;
1.556 - *64-bit*)
1.557 - case $host in
1.558 - x86_64-*linux*)
1.559 - LD="${LD-ld} -m elf_x86_64"
1.560 - ;;
1.561 - ppc*-*linux*|powerpc*-*linux*)
1.562 - LD="${LD-ld} -m elf64ppc"
1.563 - ;;
1.564 - s390*-*linux*)
1.565 - LD="${LD-ld} -m elf64_s390"
1.566 - ;;
1.567 - sparc*-*linux*)
1.568 - LD="${LD-ld} -m elf64_sparc"
1.569 - ;;
1.570 - esac
1.571 - ;;
1.572 - esac
1.573 - fi
1.574 - rm -rf conftest*
1.575 - ;;
1.576 -
1.577 -*-*-sco3.2v5*)
1.578 - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1.579 - SAVE_CFLAGS="$CFLAGS"
1.580 - CFLAGS="$CFLAGS -belf"
1.581 - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1.582 - [AC_LANG_PUSH(C)
1.583 - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1.584 - AC_LANG_POP])
1.585 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1.586 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1.587 - CFLAGS="$SAVE_CFLAGS"
1.588 - fi
1.589 - ;;
1.590 -sparc*-*solaris*)
1.591 - # Find out which ABI we are using.
1.592 - echo 'int i;' > conftest.$ac_ext
1.593 - if AC_TRY_EVAL(ac_compile); then
1.594 - case `/usr/bin/file conftest.o` in
1.595 - *64-bit*)
1.596 - case $lt_cv_prog_gnu_ld in
1.597 - yes*) LD="${LD-ld} -m elf64_sparc" ;;
1.598 - *) LD="${LD-ld} -64" ;;
1.599 - esac
1.600 - ;;
1.601 - esac
1.602 - fi
1.603 - rm -rf conftest*
1.604 - ;;
1.605 -
1.606 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1.607 -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1.608 - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1.609 - AC_CHECK_TOOL(AS, as, false)
1.610 - AC_CHECK_TOOL(OBJDUMP, objdump, false)
1.611 - ;;
1.612 - ])
1.613 -esac
1.614 -
1.615 -need_locks="$enable_libtool_lock"
1.616 -
1.617 -])# _LT_AC_LOCK
1.618 -
1.619 -
1.620 -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1.621 -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1.622 -# ----------------------------------------------------------------
1.623 -# Check whether the given compiler option works
1.624 -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1.625 -[AC_REQUIRE([LT_AC_PROG_SED])
1.626 -AC_CACHE_CHECK([$1], [$2],
1.627 - [$2=no
1.628 - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1.629 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1.630 - lt_compiler_flag="$3"
1.631 - # Insert the option either (1) after the last *FLAGS variable, or
1.632 - # (2) before a word containing "conftest.", or (3) at the end.
1.633 - # Note that $ac_compile itself does not contain backslashes and begins
1.634 - # with a dollar sign (not a hyphen), so the echo should work correctly.
1.635 - # The option is referenced via a variable to avoid confusing sed.
1.636 - lt_compile=`echo "$ac_compile" | $SED \
1.637 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.638 - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1.639 - -e 's:$: $lt_compiler_flag:'`
1.640 - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1.641 - (eval "$lt_compile" 2>conftest.err)
1.642 - ac_status=$?
1.643 - cat conftest.err >&AS_MESSAGE_LOG_FD
1.644 - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1.645 - if (exit $ac_status) && test -s "$ac_outfile"; then
1.646 - # The compiler can only warn and ignore the option if not recognized
1.647 - # So say no if there are warnings other than the usual output.
1.648 - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1.649 - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1.650 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1.651 - $2=yes
1.652 - fi
1.653 - fi
1.654 - $rm conftest*
1.655 -])
1.656 -
1.657 -if test x"[$]$2" = xyes; then
1.658 - ifelse([$5], , :, [$5])
1.659 -else
1.660 - ifelse([$6], , :, [$6])
1.661 -fi
1.662 -])# AC_LIBTOOL_COMPILER_OPTION
1.663 -
1.664 -
1.665 -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1.666 -# [ACTION-SUCCESS], [ACTION-FAILURE])
1.667 -# ------------------------------------------------------------
1.668 -# Check whether the given compiler option works
1.669 -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1.670 -[AC_CACHE_CHECK([$1], [$2],
1.671 - [$2=no
1.672 - save_LDFLAGS="$LDFLAGS"
1.673 - LDFLAGS="$LDFLAGS $3"
1.674 - printf "$lt_simple_link_test_code" > conftest.$ac_ext
1.675 - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1.676 - # The linker can only warn and ignore the option if not recognized
1.677 - # So say no if there are warnings
1.678 - if test -s conftest.err; then
1.679 - # Append any errors to the config.log.
1.680 - cat conftest.err 1>&AS_MESSAGE_LOG_FD
1.681 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1.682 - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1.683 - if diff conftest.exp conftest.er2 >/dev/null; then
1.684 - $2=yes
1.685 - fi
1.686 - else
1.687 - $2=yes
1.688 - fi
1.689 - fi
1.690 - $rm conftest*
1.691 - LDFLAGS="$save_LDFLAGS"
1.692 -])
1.693 -
1.694 -if test x"[$]$2" = xyes; then
1.695 - ifelse([$4], , :, [$4])
1.696 -else
1.697 - ifelse([$5], , :, [$5])
1.698 -fi
1.699 -])# AC_LIBTOOL_LINKER_OPTION
1.700 -
1.701 -
1.702 -# AC_LIBTOOL_SYS_MAX_CMD_LEN
1.703 -# --------------------------
1.704 -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1.705 -[# find the maximum length of command line arguments
1.706 -AC_MSG_CHECKING([the maximum length of command line arguments])
1.707 -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1.708 - i=0
1.709 - teststring="ABCD"
1.710 -
1.711 - case $build_os in
1.712 - msdosdjgpp*)
1.713 - # On DJGPP, this test can blow up pretty badly due to problems in libc
1.714 - # (any single argument exceeding 2000 bytes causes a buffer overrun
1.715 - # during glob expansion). Even if it were fixed, the result of this
1.716 - # check would be larger than it should be.
1.717 - lt_cv_sys_max_cmd_len=12288; # 12K is about right
1.718 - ;;
1.719 -
1.720 - gnu*)
1.721 - # Under GNU Hurd, this test is not required because there is
1.722 - # no limit to the length of command line arguments.
1.723 - # Libtool will interpret -1 as no limit whatsoever
1.724 - lt_cv_sys_max_cmd_len=-1;
1.725 - ;;
1.726 -
1.727 - cygwin* | mingw*)
1.728 - # On Win9x/ME, this test blows up -- it succeeds, but takes
1.729 - # about 5 minutes as the teststring grows exponentially.
1.730 - # Worse, since 9x/ME are not pre-emptively multitasking,
1.731 - # you end up with a "frozen" computer, even though with patience
1.732 - # the test eventually succeeds (with a max line length of 256k).
1.733 - # Instead, let's just punt: use the minimum linelength reported by
1.734 - # all of the supported platforms: 8192 (on NT/2K/XP).
1.735 - lt_cv_sys_max_cmd_len=8192;
1.736 - ;;
1.737 -
1.738 - amigaos*)
1.739 - # On AmigaOS with pdksh, this test takes hours, literally.
1.740 - # So we just punt and use a minimum line length of 8192.
1.741 - lt_cv_sys_max_cmd_len=8192;
1.742 - ;;
1.743 -
1.744 - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1.745 - # This has been around since 386BSD, at least. Likely further.
1.746 - if test -x /sbin/sysctl; then
1.747 - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1.748 - elif test -x /usr/sbin/sysctl; then
1.749 - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1.750 - else
1.751 - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1.752 - fi
1.753 - # And add a safety zone
1.754 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1.755 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1.756 - ;;
1.757 -
1.758 - interix*)
1.759 - # We know the value 262144 and hardcode it with a safety zone (like BSD)
1.760 - lt_cv_sys_max_cmd_len=196608
1.761 - ;;
1.762 -
1.763 - osf*)
1.764 - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1.765 - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1.766 - # nice to cause kernel panics so lets avoid the loop below.
1.767 - # First set a reasonable default.
1.768 - lt_cv_sys_max_cmd_len=16384
1.769 - #
1.770 - if test -x /sbin/sysconfig; then
1.771 - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1.772 - *1*) lt_cv_sys_max_cmd_len=-1 ;;
1.773 - esac
1.774 - fi
1.775 - ;;
1.776 - sco3.2v5*)
1.777 - lt_cv_sys_max_cmd_len=102400
1.778 - ;;
1.779 - sysv5* | sco5v6* | sysv4.2uw2*)
1.780 - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1.781 - if test -n "$kargmax"; then
1.782 - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1.783 - else
1.784 - lt_cv_sys_max_cmd_len=32768
1.785 - fi
1.786 - ;;
1.787 - *)
1.788 - # If test is not a shell built-in, we'll probably end up computing a
1.789 - # maximum length that is only half of the actual maximum length, but
1.790 - # we can't tell.
1.791 - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1.792 - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1.793 - = "XX$teststring") >/dev/null 2>&1 &&
1.794 - new_result=`expr "X$teststring" : ".*" 2>&1` &&
1.795 - lt_cv_sys_max_cmd_len=$new_result &&
1.796 - test $i != 17 # 1/2 MB should be enough
1.797 - do
1.798 - i=`expr $i + 1`
1.799 - teststring=$teststring$teststring
1.800 - done
1.801 - teststring=
1.802 - # Add a significant safety factor because C++ compilers can tack on massive
1.803 - # amounts of additional arguments before passing them to the linker.
1.804 - # It appears as though 1/2 is a usable value.
1.805 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1.806 - ;;
1.807 - esac
1.808 -])
1.809 -if test -n $lt_cv_sys_max_cmd_len ; then
1.810 - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1.811 -else
1.812 - AC_MSG_RESULT(none)
1.813 -fi
1.814 -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1.815 -
1.816 -
1.817 -# _LT_AC_CHECK_DLFCN
1.818 -# ------------------
1.819 -AC_DEFUN([_LT_AC_CHECK_DLFCN],
1.820 -[AC_CHECK_HEADERS(dlfcn.h)dnl
1.821 -])# _LT_AC_CHECK_DLFCN
1.822 -
1.823 -
1.824 -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1.825 -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1.826 -# ---------------------------------------------------------------------
1.827 -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1.828 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1.829 -if test "$cross_compiling" = yes; then :
1.830 - [$4]
1.831 -else
1.832 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1.833 - lt_status=$lt_dlunknown
1.834 - cat > conftest.$ac_ext <<EOF
1.835 -[#line __oline__ "configure"
1.836 -#include "confdefs.h"
1.837 -
1.838 -#if HAVE_DLFCN_H
1.839 -#include <dlfcn.h>
1.840 -#endif
1.841 -
1.842 -#include <stdio.h>
1.843 -
1.844 -#ifdef RTLD_GLOBAL
1.845 -# define LT_DLGLOBAL RTLD_GLOBAL
1.846 -#else
1.847 -# ifdef DL_GLOBAL
1.848 -# define LT_DLGLOBAL DL_GLOBAL
1.849 -# else
1.850 -# define LT_DLGLOBAL 0
1.851 -# endif
1.852 -#endif
1.853 -
1.854 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1.855 - find out it does not work in some platform. */
1.856 -#ifndef LT_DLLAZY_OR_NOW
1.857 -# ifdef RTLD_LAZY
1.858 -# define LT_DLLAZY_OR_NOW RTLD_LAZY
1.859 -# else
1.860 -# ifdef DL_LAZY
1.861 -# define LT_DLLAZY_OR_NOW DL_LAZY
1.862 -# else
1.863 -# ifdef RTLD_NOW
1.864 -# define LT_DLLAZY_OR_NOW RTLD_NOW
1.865 -# else
1.866 -# ifdef DL_NOW
1.867 -# define LT_DLLAZY_OR_NOW DL_NOW
1.868 -# else
1.869 -# define LT_DLLAZY_OR_NOW 0
1.870 -# endif
1.871 -# endif
1.872 -# endif
1.873 -# endif
1.874 -#endif
1.875 -
1.876 -#ifdef __cplusplus
1.877 -extern "C" void exit (int);
1.878 -#endif
1.879 -
1.880 -void fnord() { int i=42;}
1.881 -int main ()
1.882 -{
1.883 - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1.884 - int status = $lt_dlunknown;
1.885 -
1.886 - if (self)
1.887 - {
1.888 - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1.889 - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1.890 - /* dlclose (self); */
1.891 - }
1.892 - else
1.893 - puts (dlerror ());
1.894 -
1.895 - exit (status);
1.896 -}]
1.897 -EOF
1.898 - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1.899 - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1.900 - lt_status=$?
1.901 - case x$lt_status in
1.902 - x$lt_dlno_uscore) $1 ;;
1.903 - x$lt_dlneed_uscore) $2 ;;
1.904 - x$lt_dlunknown|x*) $3 ;;
1.905 - esac
1.906 - else :
1.907 - # compilation failed
1.908 - $3
1.909 - fi
1.910 -fi
1.911 -rm -fr conftest*
1.912 -])# _LT_AC_TRY_DLOPEN_SELF
1.913 -
1.914 -
1.915 -# AC_LIBTOOL_DLOPEN_SELF
1.916 -# ----------------------
1.917 -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1.918 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1.919 -if test "x$enable_dlopen" != xyes; then
1.920 - enable_dlopen=unknown
1.921 - enable_dlopen_self=unknown
1.922 - enable_dlopen_self_static=unknown
1.923 -else
1.924 - lt_cv_dlopen=no
1.925 - lt_cv_dlopen_libs=
1.926 -
1.927 - case $host_os in
1.928 - beos*)
1.929 - lt_cv_dlopen="load_add_on"
1.930 - lt_cv_dlopen_libs=
1.931 - lt_cv_dlopen_self=yes
1.932 - ;;
1.933 -
1.934 - mingw* | pw32*)
1.935 - lt_cv_dlopen="LoadLibrary"
1.936 - lt_cv_dlopen_libs=
1.937 - ;;
1.938 -
1.939 - cygwin*)
1.940 - lt_cv_dlopen="dlopen"
1.941 - lt_cv_dlopen_libs=
1.942 - ;;
1.943 -
1.944 - darwin*)
1.945 - # if libdl is installed we need to link against it
1.946 - AC_CHECK_LIB([dl], [dlopen],
1.947 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1.948 - lt_cv_dlopen="dyld"
1.949 - lt_cv_dlopen_libs=
1.950 - lt_cv_dlopen_self=yes
1.951 - ])
1.952 - ;;
1.953 -
1.954 - *)
1.955 - AC_CHECK_FUNC([shl_load],
1.956 - [lt_cv_dlopen="shl_load"],
1.957 - [AC_CHECK_LIB([dld], [shl_load],
1.958 - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1.959 - [AC_CHECK_FUNC([dlopen],
1.960 - [lt_cv_dlopen="dlopen"],
1.961 - [AC_CHECK_LIB([dl], [dlopen],
1.962 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1.963 - [AC_CHECK_LIB([svld], [dlopen],
1.964 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1.965 - [AC_CHECK_LIB([dld], [dld_link],
1.966 - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1.967 - ])
1.968 - ])
1.969 - ])
1.970 - ])
1.971 - ])
1.972 - ;;
1.973 - esac
1.974 -
1.975 - if test "x$lt_cv_dlopen" != xno; then
1.976 - enable_dlopen=yes
1.977 - else
1.978 - enable_dlopen=no
1.979 - fi
1.980 -
1.981 - case $lt_cv_dlopen in
1.982 - dlopen)
1.983 - save_CPPFLAGS="$CPPFLAGS"
1.984 - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1.985 -
1.986 - save_LDFLAGS="$LDFLAGS"
1.987 - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1.988 -
1.989 - save_LIBS="$LIBS"
1.990 - LIBS="$lt_cv_dlopen_libs $LIBS"
1.991 -
1.992 - AC_CACHE_CHECK([whether a program can dlopen itself],
1.993 - lt_cv_dlopen_self, [dnl
1.994 - _LT_AC_TRY_DLOPEN_SELF(
1.995 - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1.996 - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1.997 - ])
1.998 -
1.999 - if test "x$lt_cv_dlopen_self" = xyes; then
1.1000 - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.1001 - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1.1002 - lt_cv_dlopen_self_static, [dnl
1.1003 - _LT_AC_TRY_DLOPEN_SELF(
1.1004 - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1.1005 - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1.1006 - ])
1.1007 - fi
1.1008 -
1.1009 - CPPFLAGS="$save_CPPFLAGS"
1.1010 - LDFLAGS="$save_LDFLAGS"
1.1011 - LIBS="$save_LIBS"
1.1012 - ;;
1.1013 - esac
1.1014 -
1.1015 - case $lt_cv_dlopen_self in
1.1016 - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1.1017 - *) enable_dlopen_self=unknown ;;
1.1018 - esac
1.1019 -
1.1020 - case $lt_cv_dlopen_self_static in
1.1021 - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1.1022 - *) enable_dlopen_self_static=unknown ;;
1.1023 - esac
1.1024 -fi
1.1025 -])# AC_LIBTOOL_DLOPEN_SELF
1.1026 -
1.1027 -
1.1028 -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1.1029 -# ---------------------------------
1.1030 -# Check to see if options -c and -o are simultaneously supported by compiler
1.1031 -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1.1032 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1.1033 -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1.1034 - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1.1035 - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1.1036 - $rm -r conftest 2>/dev/null
1.1037 - mkdir conftest
1.1038 - cd conftest
1.1039 - mkdir out
1.1040 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1041 -
1.1042 - lt_compiler_flag="-o out/conftest2.$ac_objext"
1.1043 - # Insert the option either (1) after the last *FLAGS variable, or
1.1044 - # (2) before a word containing "conftest.", or (3) at the end.
1.1045 - # Note that $ac_compile itself does not contain backslashes and begins
1.1046 - # with a dollar sign (not a hyphen), so the echo should work correctly.
1.1047 - lt_compile=`echo "$ac_compile" | $SED \
1.1048 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.1049 - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1.1050 - -e 's:$: $lt_compiler_flag:'`
1.1051 - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1.1052 - (eval "$lt_compile" 2>out/conftest.err)
1.1053 - ac_status=$?
1.1054 - cat out/conftest.err >&AS_MESSAGE_LOG_FD
1.1055 - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1.1056 - if (exit $ac_status) && test -s out/conftest2.$ac_objext
1.1057 - then
1.1058 - # The compiler can only warn and ignore the option if not recognized
1.1059 - # So say no if there are warnings
1.1060 - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1.1061 - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1.1062 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1.1063 - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1.1064 - fi
1.1065 - fi
1.1066 - chmod u+w . 2>&AS_MESSAGE_LOG_FD
1.1067 - $rm conftest*
1.1068 - # SGI C++ compiler will create directory out/ii_files/ for
1.1069 - # template instantiation
1.1070 - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1.1071 - $rm out/* && rmdir out
1.1072 - cd ..
1.1073 - rmdir conftest
1.1074 - $rm conftest*
1.1075 -])
1.1076 -])# AC_LIBTOOL_PROG_CC_C_O
1.1077 -
1.1078 -
1.1079 -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1.1080 -# -----------------------------------------
1.1081 -# Check to see if we can do hard links to lock some files if needed
1.1082 -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1.1083 -[AC_REQUIRE([_LT_AC_LOCK])dnl
1.1084 -
1.1085 -hard_links="nottested"
1.1086 -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1.1087 - # do not overwrite the value of need_locks provided by the user
1.1088 - AC_MSG_CHECKING([if we can lock with hard links])
1.1089 - hard_links=yes
1.1090 - $rm conftest*
1.1091 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.1092 - touch conftest.a
1.1093 - ln conftest.a conftest.b 2>&5 || hard_links=no
1.1094 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.1095 - AC_MSG_RESULT([$hard_links])
1.1096 - if test "$hard_links" = no; then
1.1097 - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1.1098 - need_locks=warn
1.1099 - fi
1.1100 -else
1.1101 - need_locks=no
1.1102 -fi
1.1103 -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1.1104 -
1.1105 -
1.1106 -# AC_LIBTOOL_OBJDIR
1.1107 -# -----------------
1.1108 -AC_DEFUN([AC_LIBTOOL_OBJDIR],
1.1109 -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1.1110 -[rm -f .libs 2>/dev/null
1.1111 -mkdir .libs 2>/dev/null
1.1112 -if test -d .libs; then
1.1113 - lt_cv_objdir=.libs
1.1114 -else
1.1115 - # MS-DOS does not allow filenames that begin with a dot.
1.1116 - lt_cv_objdir=_libs
1.1117 -fi
1.1118 -rmdir .libs 2>/dev/null])
1.1119 -objdir=$lt_cv_objdir
1.1120 -])# AC_LIBTOOL_OBJDIR
1.1121 -
1.1122 -
1.1123 -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1.1124 -# ----------------------------------------------
1.1125 -# Check hardcoding attributes.
1.1126 -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1.1127 -[AC_MSG_CHECKING([how to hardcode library paths into programs])
1.1128 -_LT_AC_TAGVAR(hardcode_action, $1)=
1.1129 -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1.1130 - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1.1131 - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1.1132 -
1.1133 - # We can hardcode non-existant directories.
1.1134 - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1.1135 - # If the only mechanism to avoid hardcoding is shlibpath_var, we
1.1136 - # have to relink, otherwise we might link with an installed library
1.1137 - # when we should be linking with a yet-to-be-installed one
1.1138 - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1.1139 - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1.1140 - # Linking always hardcodes the temporary library directory.
1.1141 - _LT_AC_TAGVAR(hardcode_action, $1)=relink
1.1142 - else
1.1143 - # We can link without hardcoding, and we can hardcode nonexisting dirs.
1.1144 - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1.1145 - fi
1.1146 -else
1.1147 - # We cannot hardcode anything, or else we can only hardcode existing
1.1148 - # directories.
1.1149 - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1.1150 -fi
1.1151 -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1.1152 -
1.1153 -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1.1154 - # Fast installation is not supported
1.1155 - enable_fast_install=no
1.1156 -elif test "$shlibpath_overrides_runpath" = yes ||
1.1157 - test "$enable_shared" = no; then
1.1158 - # Fast installation is not necessary
1.1159 - enable_fast_install=needless
1.1160 -fi
1.1161 -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1.1162 -
1.1163 -
1.1164 -# AC_LIBTOOL_SYS_LIB_STRIP
1.1165 -# ------------------------
1.1166 -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1.1167 -[striplib=
1.1168 -old_striplib=
1.1169 -AC_MSG_CHECKING([whether stripping libraries is possible])
1.1170 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1.1171 - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1.1172 - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.1173 - AC_MSG_RESULT([yes])
1.1174 -else
1.1175 -# FIXME - insert some real tests, host_os isn't really good enough
1.1176 - case $host_os in
1.1177 - darwin*)
1.1178 - if test -n "$STRIP" ; then
1.1179 - striplib="$STRIP -x"
1.1180 - AC_MSG_RESULT([yes])
1.1181 - else
1.1182 - AC_MSG_RESULT([no])
1.1183 -fi
1.1184 - ;;
1.1185 - *)
1.1186 - AC_MSG_RESULT([no])
1.1187 - ;;
1.1188 - esac
1.1189 -fi
1.1190 -])# AC_LIBTOOL_SYS_LIB_STRIP
1.1191 -
1.1192 -
1.1193 -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1.1194 -# -----------------------------
1.1195 -# PORTME Fill in your ld.so characteristics
1.1196 -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1.1197 -[AC_MSG_CHECKING([dynamic linker characteristics])
1.1198 -library_names_spec=
1.1199 -libname_spec='lib$name'
1.1200 -soname_spec=
1.1201 -shrext_cmds=".so"
1.1202 -postinstall_cmds=
1.1203 -postuninstall_cmds=
1.1204 -finish_cmds=
1.1205 -finish_eval=
1.1206 -shlibpath_var=
1.1207 -shlibpath_overrides_runpath=unknown
1.1208 -version_type=none
1.1209 -dynamic_linker="$host_os ld.so"
1.1210 -sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.1211 -if test "$GCC" = yes; then
1.1212 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1.1213 - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1.1214 - # if the path contains ";" then we assume it to be the separator
1.1215 - # otherwise default to the standard path separator (i.e. ":") - it is
1.1216 - # assumed that no part of a normal pathname contains ";" but that should
1.1217 - # okay in the real world where ";" in dirpaths is itself problematic.
1.1218 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1.1219 - else
1.1220 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1.1221 - fi
1.1222 -else
1.1223 - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1.1224 -fi
1.1225 -need_lib_prefix=unknown
1.1226 -hardcode_into_libs=no
1.1227 -
1.1228 -# when you set need_version to no, make sure it does not cause -set_version
1.1229 -# flags to be left without arguments
1.1230 -need_version=unknown
1.1231 -
1.1232 -case $host_os in
1.1233 -aix3*)
1.1234 - version_type=linux
1.1235 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1.1236 - shlibpath_var=LIBPATH
1.1237 -
1.1238 - # AIX 3 has no versioning support, so we append a major version to the name.
1.1239 - soname_spec='${libname}${release}${shared_ext}$major'
1.1240 - ;;
1.1241 -
1.1242 -aix4* | aix5*)
1.1243 - version_type=linux
1.1244 - need_lib_prefix=no
1.1245 - need_version=no
1.1246 - hardcode_into_libs=yes
1.1247 - if test "$host_cpu" = ia64; then
1.1248 - # AIX 5 supports IA64
1.1249 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1.1250 - shlibpath_var=LD_LIBRARY_PATH
1.1251 - else
1.1252 - # With GCC up to 2.95.x, collect2 would create an import file
1.1253 - # for dependence libraries. The import file would start with
1.1254 - # the line `#! .'. This would cause the generated library to
1.1255 - # depend on `.', always an invalid library. This was fixed in
1.1256 - # development snapshots of GCC prior to 3.0.
1.1257 - case $host_os in
1.1258 - aix4 | aix4.[[01]] | aix4.[[01]].*)
1.1259 - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1.1260 - echo ' yes '
1.1261 - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1.1262 - :
1.1263 - else
1.1264 - can_build_shared=no
1.1265 - fi
1.1266 - ;;
1.1267 - esac
1.1268 - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1.1269 - # soname into executable. Probably we can add versioning support to
1.1270 - # collect2, so additional links can be useful in future.
1.1271 - if test "$aix_use_runtimelinking" = yes; then
1.1272 - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1.1273 - # instead of lib<name>.a to let people know that these are not
1.1274 - # typical AIX shared libraries.
1.1275 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.1276 - else
1.1277 - # We preserve .a as extension for shared libraries through AIX4.2
1.1278 - # and later when we are not doing run time linking.
1.1279 - library_names_spec='${libname}${release}.a $libname.a'
1.1280 - soname_spec='${libname}${release}${shared_ext}$major'
1.1281 - fi
1.1282 - shlibpath_var=LIBPATH
1.1283 - fi
1.1284 - ;;
1.1285 -
1.1286 -amigaos*)
1.1287 - library_names_spec='$libname.ixlibrary $libname.a'
1.1288 - # Create ${libname}_ixlibrary.a entries in /sys/libs.
1.1289 - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
1.1290 - ;;
1.1291 -
1.1292 -beos*)
1.1293 - library_names_spec='${libname}${shared_ext}'
1.1294 - dynamic_linker="$host_os ld.so"
1.1295 - shlibpath_var=LIBRARY_PATH
1.1296 - ;;
1.1297 -
1.1298 -bsdi[[45]]*)
1.1299 - version_type=linux
1.1300 - need_version=no
1.1301 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.1302 - soname_spec='${libname}${release}${shared_ext}$major'
1.1303 - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1.1304 - shlibpath_var=LD_LIBRARY_PATH
1.1305 - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1.1306 - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1.1307 - # the default ld.so.conf also contains /usr/contrib/lib and
1.1308 - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1.1309 - # libtool to hard-code these into programs
1.1310 - ;;
1.1311 -
1.1312 -cygwin* | mingw* | pw32*)
1.1313 - version_type=windows
1.1314 - shrext_cmds=".dll"
1.1315 - need_version=no
1.1316 - need_lib_prefix=no
1.1317 -
1.1318 - case $GCC,$host_os in
1.1319 - yes,cygwin* | yes,mingw* | yes,pw32*)
1.1320 - library_names_spec='$libname.dll.a'
1.1321 - # DLL is installed to $(libdir)/../bin by postinstall_cmds
1.1322 - postinstall_cmds='base_file=`basename \${file}`~
1.1323 - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1.1324 - dldir=$destdir/`dirname \$dlpath`~
1.1325 - test -d \$dldir || mkdir -p \$dldir~
1.1326 - $install_prog $dir/$dlname \$dldir/$dlname~
1.1327 - chmod a+x \$dldir/$dlname'
1.1328 - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1.1329 - dlpath=$dir/\$dldll~
1.1330 - $rm \$dlpath'
1.1331 - shlibpath_overrides_runpath=yes
1.1332 -
1.1333 - case $host_os in
1.1334 - cygwin*)
1.1335 - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1.1336 - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1.1337 - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1.1338 - ;;
1.1339 - mingw*)
1.1340 - # MinGW DLLs use traditional 'lib' prefix
1.1341 - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1.1342 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1.1343 - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1.1344 - # It is most probably a Windows format PATH printed by
1.1345 - # mingw gcc, but we are running on Cygwin. Gcc prints its search
1.1346 - # path with ; separators, and with drive letters. We can handle the
1.1347 - # drive letters (cygwin fileutils understands them), so leave them,
1.1348 - # especially as we might pass files found there to a mingw objdump,
1.1349 - # which wouldn't understand a cygwinified path. Ahh.
1.1350 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1.1351 - else
1.1352 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1.1353 - fi
1.1354 - ;;
1.1355 - pw32*)
1.1356 - # pw32 DLLs use 'pw' prefix rather than 'lib'
1.1357 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1.1358 - ;;
1.1359 - esac
1.1360 - ;;
1.1361 -
1.1362 - *)
1.1363 - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1.1364 - ;;
1.1365 - esac
1.1366 - dynamic_linker='Win32 ld.exe'
1.1367 - # FIXME: first we should search . and the directory the executable is in
1.1368 - shlibpath_var=PATH
1.1369 - ;;
1.1370 -
1.1371 -darwin* | rhapsody*)
1.1372 - dynamic_linker="$host_os dyld"
1.1373 - version_type=darwin
1.1374 - need_lib_prefix=no
1.1375 - need_version=no
1.1376 - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1.1377 - soname_spec='${libname}${release}${major}$shared_ext'
1.1378 - shlibpath_overrides_runpath=yes
1.1379 - shlibpath_var=DYLD_LIBRARY_PATH
1.1380 - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.1381 - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1.1382 - if test "$GCC" = yes; then
1.1383 - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1.1384 - else
1.1385 - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1.1386 - fi
1.1387 - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1.1388 - ;;
1.1389 -
1.1390 -dgux*)
1.1391 - version_type=linux
1.1392 - need_lib_prefix=no
1.1393 - need_version=no
1.1394 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1.1395 - soname_spec='${libname}${release}${shared_ext}$major'
1.1396 - shlibpath_var=LD_LIBRARY_PATH
1.1397 - ;;
1.1398 -
1.1399 -freebsd1*)
1.1400 - dynamic_linker=no
1.1401 - ;;
1.1402 -
1.1403 -freebsd* | dragonfly*)
1.1404 - # DragonFly does not have aout. When/if they implement a new
1.1405 - # versioning mechanism, adjust this.
1.1406 - if test -x /usr/bin/objformat; then
1.1407 - objformat=`/usr/bin/objformat`
1.1408 - else
1.1409 - case $host_os in
1.1410 - freebsd[[123]]*) objformat=aout ;;
1.1411 - *) objformat=elf ;;
1.1412 - esac
1.1413 - fi
1.1414 - version_type=freebsd-$objformat
1.1415 - case $version_type in
1.1416 - freebsd-elf*)
1.1417 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1.1418 - need_version=no
1.1419 - need_lib_prefix=no
1.1420 - ;;
1.1421 - freebsd-*)
1.1422 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1.1423 - need_version=yes
1.1424 - ;;
1.1425 - esac
1.1426 - shlibpath_var=LD_LIBRARY_PATH
1.1427 - case $host_os in
1.1428 - freebsd2*)
1.1429 - shlibpath_overrides_runpath=yes
1.1430 - ;;
1.1431 - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1.1432 - shlibpath_overrides_runpath=yes
1.1433 - hardcode_into_libs=yes
1.1434 - ;;
1.1435 - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1.1436 - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1.1437 - shlibpath_overrides_runpath=no
1.1438 - hardcode_into_libs=yes
1.1439 - ;;
1.1440 - freebsd*) # from 4.6 on
1.1441 - shlibpath_overrides_runpath=yes
1.1442 - hardcode_into_libs=yes
1.1443 - ;;
1.1444 - esac
1.1445 - ;;
1.1446 -
1.1447 -gnu*)
1.1448 - version_type=linux
1.1449 - need_lib_prefix=no
1.1450 - need_version=no
1.1451 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1.1452 - soname_spec='${libname}${release}${shared_ext}$major'
1.1453 - shlibpath_var=LD_LIBRARY_PATH
1.1454 - hardcode_into_libs=yes
1.1455 - ;;
1.1456 -
1.1457 -hpux9* | hpux10* | hpux11*)
1.1458 - # Give a soname corresponding to the major version so that dld.sl refuses to
1.1459 - # link against other versions.
1.1460 - version_type=sunos
1.1461 - need_lib_prefix=no
1.1462 - need_version=no
1.1463 - case $host_cpu in
1.1464 - ia64*)
1.1465 - shrext_cmds='.so'
1.1466 - hardcode_into_libs=yes
1.1467 - dynamic_linker="$host_os dld.so"
1.1468 - shlibpath_var=LD_LIBRARY_PATH
1.1469 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.1470 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.1471 - soname_spec='${libname}${release}${shared_ext}$major'
1.1472 - if test "X$HPUX_IA64_MODE" = X32; then
1.1473 - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1.1474 - else
1.1475 - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1.1476 - fi
1.1477 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1.1478 - ;;
1.1479 - hppa*64*)
1.1480 - shrext_cmds='.sl'
1.1481 - hardcode_into_libs=yes
1.1482 - dynamic_linker="$host_os dld.sl"
1.1483 - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1.1484 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.1485 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.1486 - soname_spec='${libname}${release}${shared_ext}$major'
1.1487 - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1.1488 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1.1489 - ;;
1.1490 - *)
1.1491 - shrext_cmds='.sl'
1.1492 - dynamic_linker="$host_os dld.sl"
1.1493 - shlibpath_var=SHLIB_PATH
1.1494 - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1.1495 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.1496 - soname_spec='${libname}${release}${shared_ext}$major'
1.1497 - ;;
1.1498 - esac
1.1499 - # HP-UX runs *really* slowly unless shared libraries are mode 555.
1.1500 - postinstall_cmds='chmod 555 $lib'
1.1501 - ;;
1.1502 -
1.1503 -interix3*)
1.1504 - version_type=linux
1.1505 - need_lib_prefix=no
1.1506 - need_version=no
1.1507 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.1508 - soname_spec='${libname}${release}${shared_ext}$major'
1.1509 - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1.1510 - shlibpath_var=LD_LIBRARY_PATH
1.1511 - shlibpath_overrides_runpath=no
1.1512 - hardcode_into_libs=yes
1.1513 - ;;
1.1514 -
1.1515 -irix5* | irix6* | nonstopux*)
1.1516 - case $host_os in
1.1517 - nonstopux*) version_type=nonstopux ;;
1.1518 - *)
1.1519 - if test "$lt_cv_prog_gnu_ld" = yes; then
1.1520 - version_type=linux
1.1521 - else
1.1522 - version_type=irix
1.1523 - fi ;;
1.1524 - esac
1.1525 - need_lib_prefix=no
1.1526 - need_version=no
1.1527 - soname_spec='${libname}${release}${shared_ext}$major'
1.1528 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1.1529 - case $host_os in
1.1530 - irix5* | nonstopux*)
1.1531 - libsuff= shlibsuff=
1.1532 - ;;
1.1533 - *)
1.1534 - case $LD in # libtool.m4 will add one of these switches to LD
1.1535 - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1.1536 - libsuff= shlibsuff= libmagic=32-bit;;
1.1537 - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1.1538 - libsuff=32 shlibsuff=N32 libmagic=N32;;
1.1539 - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1.1540 - libsuff=64 shlibsuff=64 libmagic=64-bit;;
1.1541 - *) libsuff= shlibsuff= libmagic=never-match;;
1.1542 - esac
1.1543 - ;;
1.1544 - esac
1.1545 - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1.1546 - shlibpath_overrides_runpath=no
1.1547 - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1.1548 - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1.1549 - hardcode_into_libs=yes
1.1550 - ;;
1.1551 -
1.1552 -# No shared lib support for Linux oldld, aout, or coff.
1.1553 -linux*oldld* | linux*aout* | linux*coff*)
1.1554 - dynamic_linker=no
1.1555 - ;;
1.1556 -
1.1557 -# This must be Linux ELF.
1.1558 -linux* | k*bsd*-gnu)
1.1559 - version_type=linux
1.1560 - need_lib_prefix=no
1.1561 - need_version=no
1.1562 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.1563 - soname_spec='${libname}${release}${shared_ext}$major'
1.1564 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1.1565 - shlibpath_var=LD_LIBRARY_PATH
1.1566 - shlibpath_overrides_runpath=no
1.1567 - # This implies no fast_install, which is unacceptable.
1.1568 - # Some rework will be needed to allow for fast_install
1.1569 - # before this can be enabled.
1.1570 - hardcode_into_libs=yes
1.1571 -
1.1572 - # Append ld.so.conf contents to the search path
1.1573 - if test -f /etc/ld.so.conf; then
1.1574 - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1.1575 - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1.1576 - fi
1.1577 -
1.1578 - # We used to test for /lib/ld.so.1 and disable shared libraries on
1.1579 - # powerpc, because MkLinux only supported shared libraries with the
1.1580 - # GNU dynamic linker. Since this was broken with cross compilers,
1.1581 - # most powerpc-linux boxes support dynamic linking these days and
1.1582 - # people can always --disable-shared, the test was removed, and we
1.1583 - # assume the GNU/Linux dynamic linker is in use.
1.1584 - dynamic_linker='GNU/Linux ld.so'
1.1585 - ;;
1.1586 -
1.1587 -netbsdelf*-gnu)
1.1588 - version_type=linux
1.1589 - need_lib_prefix=no
1.1590 - need_version=no
1.1591 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.1592 - soname_spec='${libname}${release}${shared_ext}$major'
1.1593 - shlibpath_var=LD_LIBRARY_PATH
1.1594 - shlibpath_overrides_runpath=no
1.1595 - hardcode_into_libs=yes
1.1596 - dynamic_linker='NetBSD ld.elf_so'
1.1597 - ;;
1.1598 -
1.1599 -netbsd*)
1.1600 - version_type=sunos
1.1601 - need_lib_prefix=no
1.1602 - need_version=no
1.1603 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1.1604 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1.1605 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1.1606 - dynamic_linker='NetBSD (a.out) ld.so'
1.1607 - else
1.1608 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.1609 - soname_spec='${libname}${release}${shared_ext}$major'
1.1610 - dynamic_linker='NetBSD ld.elf_so'
1.1611 - fi
1.1612 - shlibpath_var=LD_LIBRARY_PATH
1.1613 - shlibpath_overrides_runpath=yes
1.1614 - hardcode_into_libs=yes
1.1615 - ;;
1.1616 -
1.1617 -newsos6)
1.1618 - version_type=linux
1.1619 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.1620 - shlibpath_var=LD_LIBRARY_PATH
1.1621 - shlibpath_overrides_runpath=yes
1.1622 - ;;
1.1623 -
1.1624 -nto-qnx*)
1.1625 - version_type=linux
1.1626 - need_lib_prefix=no
1.1627 - need_version=no
1.1628 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.1629 - soname_spec='${libname}${release}${shared_ext}$major'
1.1630 - shlibpath_var=LD_LIBRARY_PATH
1.1631 - shlibpath_overrides_runpath=yes
1.1632 - ;;
1.1633 -
1.1634 -openbsd*)
1.1635 - version_type=sunos
1.1636 - sys_lib_dlsearch_path_spec="/usr/lib"
1.1637 - need_lib_prefix=no
1.1638 - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1.1639 - case $host_os in
1.1640 - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1.1641 - *) need_version=no ;;
1.1642 - esac
1.1643 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1.1644 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1.1645 - shlibpath_var=LD_LIBRARY_PATH
1.1646 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.1647 - case $host_os in
1.1648 - openbsd2.[[89]] | openbsd2.[[89]].*)
1.1649 - shlibpath_overrides_runpath=no
1.1650 - ;;
1.1651 - *)
1.1652 - shlibpath_overrides_runpath=yes
1.1653 - ;;
1.1654 - esac
1.1655 - else
1.1656 - shlibpath_overrides_runpath=yes
1.1657 - fi
1.1658 - ;;
1.1659 -
1.1660 -os2*)
1.1661 - libname_spec='$name'
1.1662 - shrext_cmds=".dll"
1.1663 - need_lib_prefix=no
1.1664 - library_names_spec='$libname${shared_ext} $libname.a'
1.1665 - dynamic_linker='OS/2 ld.exe'
1.1666 - shlibpath_var=LIBPATH
1.1667 - ;;
1.1668 -
1.1669 -osf3* | osf4* | osf5*)
1.1670 - version_type=osf
1.1671 - need_lib_prefix=no
1.1672 - need_version=no
1.1673 - soname_spec='${libname}${release}${shared_ext}$major'
1.1674 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.1675 - shlibpath_var=LD_LIBRARY_PATH
1.1676 - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1.1677 - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1.1678 - ;;
1.1679 -
1.1680 -solaris*)
1.1681 - version_type=linux
1.1682 - need_lib_prefix=no
1.1683 - need_version=no
1.1684 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.1685 - soname_spec='${libname}${release}${shared_ext}$major'
1.1686 - shlibpath_var=LD_LIBRARY_PATH
1.1687 - shlibpath_overrides_runpath=yes
1.1688 - hardcode_into_libs=yes
1.1689 - # ldd complains unless libraries are executable
1.1690 - postinstall_cmds='chmod +x $lib'
1.1691 - ;;
1.1692 -
1.1693 -sunos4*)
1.1694 - version_type=sunos
1.1695 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1.1696 - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1.1697 - shlibpath_var=LD_LIBRARY_PATH
1.1698 - shlibpath_overrides_runpath=yes
1.1699 - if test "$with_gnu_ld" = yes; then
1.1700 - need_lib_prefix=no
1.1701 - fi
1.1702 - need_version=yes
1.1703 - ;;
1.1704 -
1.1705 -sysv4 | sysv4.3*)
1.1706 - version_type=linux
1.1707 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.1708 - soname_spec='${libname}${release}${shared_ext}$major'
1.1709 - shlibpath_var=LD_LIBRARY_PATH
1.1710 - case $host_vendor in
1.1711 - sni)
1.1712 - shlibpath_overrides_runpath=no
1.1713 - need_lib_prefix=no
1.1714 - export_dynamic_flag_spec='${wl}-Blargedynsym'
1.1715 - runpath_var=LD_RUN_PATH
1.1716 - ;;
1.1717 - siemens)
1.1718 - need_lib_prefix=no
1.1719 - ;;
1.1720 - motorola)
1.1721 - need_lib_prefix=no
1.1722 - need_version=no
1.1723 - shlibpath_overrides_runpath=no
1.1724 - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1.1725 - ;;
1.1726 - esac
1.1727 - ;;
1.1728 -
1.1729 -sysv4*MP*)
1.1730 - if test -d /usr/nec ;then
1.1731 - version_type=linux
1.1732 - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1.1733 - soname_spec='$libname${shared_ext}.$major'
1.1734 - shlibpath_var=LD_LIBRARY_PATH
1.1735 - fi
1.1736 - ;;
1.1737 -
1.1738 -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.1739 - version_type=freebsd-elf
1.1740 - need_lib_prefix=no
1.1741 - need_version=no
1.1742 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1.1743 - soname_spec='${libname}${release}${shared_ext}$major'
1.1744 - shlibpath_var=LD_LIBRARY_PATH
1.1745 - hardcode_into_libs=yes
1.1746 - if test "$with_gnu_ld" = yes; then
1.1747 - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1.1748 - shlibpath_overrides_runpath=no
1.1749 - else
1.1750 - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1.1751 - shlibpath_overrides_runpath=yes
1.1752 - case $host_os in
1.1753 - sco3.2v5*)
1.1754 - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1.1755 - ;;
1.1756 - esac
1.1757 - fi
1.1758 - sys_lib_dlsearch_path_spec='/usr/lib'
1.1759 - ;;
1.1760 -
1.1761 -uts4*)
1.1762 - version_type=linux
1.1763 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.1764 - soname_spec='${libname}${release}${shared_ext}$major'
1.1765 - shlibpath_var=LD_LIBRARY_PATH
1.1766 - ;;
1.1767 -
1.1768 -*)
1.1769 - dynamic_linker=no
1.1770 - ;;
1.1771 -esac
1.1772 -AC_MSG_RESULT([$dynamic_linker])
1.1773 -test "$dynamic_linker" = no && can_build_shared=no
1.1774 -
1.1775 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1.1776 -if test "$GCC" = yes; then
1.1777 - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1.1778 -fi
1.1779 -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1.1780 -
1.1781 -
1.1782 -# _LT_AC_TAGCONFIG
1.1783 -# ----------------
1.1784 -AC_DEFUN([_LT_AC_TAGCONFIG],
1.1785 -[AC_ARG_WITH([tags],
1.1786 - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1.1787 - [include additional configurations @<:@automatic@:>@])],
1.1788 - [tagnames="$withval"])
1.1789 -
1.1790 -if test -f "$ltmain" && test -n "$tagnames"; then
1.1791 - if test ! -f "${ofile}"; then
1.1792 - AC_MSG_WARN([output file `$ofile' does not exist])
1.1793 - fi
1.1794 -
1.1795 - if test -z "$LTCC"; then
1.1796 - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1.1797 - if test -z "$LTCC"; then
1.1798 - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1.1799 - else
1.1800 - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1.1801 - fi
1.1802 - fi
1.1803 - if test -z "$LTCFLAGS"; then
1.1804 - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1.1805 - fi
1.1806 -
1.1807 - # Extract list of available tagged configurations in $ofile.
1.1808 - # Note that this assumes the entire list is on one line.
1.1809 - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1.1810 -
1.1811 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1.1812 - for tagname in $tagnames; do
1.1813 - IFS="$lt_save_ifs"
1.1814 - # Check whether tagname contains only valid characters
1.1815 - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1.1816 - "") ;;
1.1817 - *) AC_MSG_ERROR([invalid tag name: $tagname])
1.1818 - ;;
1.1819 - esac
1.1820 -
1.1821 - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1.1822 - then
1.1823 - AC_MSG_ERROR([tag name \"$tagname\" already exists])
1.1824 - fi
1.1825 -
1.1826 - # Update the list of available tags.
1.1827 - if test -n "$tagname"; then
1.1828 - echo appending configuration tag \"$tagname\" to $ofile
1.1829 -
1.1830 - case $tagname in
1.1831 - CXX)
1.1832 - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1.1833 - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1.1834 - (test "X$CXX" != "Xg++"))) ; then
1.1835 - AC_LIBTOOL_LANG_CXX_CONFIG
1.1836 - else
1.1837 - tagname=""
1.1838 - fi
1.1839 - ;;
1.1840 -
1.1841 - F77)
1.1842 - if test -n "$F77" && test "X$F77" != "Xno"; then
1.1843 - AC_LIBTOOL_LANG_F77_CONFIG
1.1844 - else
1.1845 - tagname=""
1.1846 - fi
1.1847 - ;;
1.1848 -
1.1849 - GCJ)
1.1850 - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1.1851 - AC_LIBTOOL_LANG_GCJ_CONFIG
1.1852 - else
1.1853 - tagname=""
1.1854 - fi
1.1855 - ;;
1.1856 -
1.1857 - RC)
1.1858 - AC_LIBTOOL_LANG_RC_CONFIG
1.1859 - ;;
1.1860 -
1.1861 - *)
1.1862 - AC_MSG_ERROR([Unsupported tag name: $tagname])
1.1863 - ;;
1.1864 - esac
1.1865 -
1.1866 - # Append the new tag name to the list of available tags.
1.1867 - if test -n "$tagname" ; then
1.1868 - available_tags="$available_tags $tagname"
1.1869 - fi
1.1870 - fi
1.1871 - done
1.1872 - IFS="$lt_save_ifs"
1.1873 -
1.1874 - # Now substitute the updated list of available tags.
1.1875 - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
1.1876 - mv "${ofile}T" "$ofile"
1.1877 - chmod +x "$ofile"
1.1878 - else
1.1879 - rm -f "${ofile}T"
1.1880 - AC_MSG_ERROR([unable to update list of available tagged configurations.])
1.1881 - fi
1.1882 -fi
1.1883 -])# _LT_AC_TAGCONFIG
1.1884 -
1.1885 -
1.1886 -# AC_LIBTOOL_DLOPEN
1.1887 -# -----------------
1.1888 -# enable checks for dlopen support
1.1889 -AC_DEFUN([AC_LIBTOOL_DLOPEN],
1.1890 - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
1.1891 -])# AC_LIBTOOL_DLOPEN
1.1892 -
1.1893 -
1.1894 -# AC_LIBTOOL_WIN32_DLL
1.1895 -# --------------------
1.1896 -# declare package support for building win32 DLLs
1.1897 -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1.1898 -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1.1899 -])# AC_LIBTOOL_WIN32_DLL
1.1900 -
1.1901 -
1.1902 -# AC_ENABLE_SHARED([DEFAULT])
1.1903 -# ---------------------------
1.1904 -# implement the --enable-shared flag
1.1905 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1.1906 -AC_DEFUN([AC_ENABLE_SHARED],
1.1907 -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
1.1908 -AC_ARG_ENABLE([shared],
1.1909 - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
1.1910 - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
1.1911 - [p=${PACKAGE-default}
1.1912 - case $enableval in
1.1913 - yes) enable_shared=yes ;;
1.1914 - no) enable_shared=no ;;
1.1915 - *)
1.1916 - enable_shared=no
1.1917 - # Look at the argument we got. We use all the common list separators.
1.1918 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1.1919 - for pkg in $enableval; do
1.1920 - IFS="$lt_save_ifs"
1.1921 - if test "X$pkg" = "X$p"; then
1.1922 - enable_shared=yes
1.1923 - fi
1.1924 - done
1.1925 - IFS="$lt_save_ifs"
1.1926 - ;;
1.1927 - esac],
1.1928 - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
1.1929 -])# AC_ENABLE_SHARED
1.1930 -
1.1931 -
1.1932 -# AC_DISABLE_SHARED
1.1933 -# -----------------
1.1934 -# set the default shared flag to --disable-shared
1.1935 -AC_DEFUN([AC_DISABLE_SHARED],
1.1936 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1.1937 -AC_ENABLE_SHARED(no)
1.1938 -])# AC_DISABLE_SHARED
1.1939 -
1.1940 -
1.1941 -# AC_ENABLE_STATIC([DEFAULT])
1.1942 -# ---------------------------
1.1943 -# implement the --enable-static flag
1.1944 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1.1945 -AC_DEFUN([AC_ENABLE_STATIC],
1.1946 -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
1.1947 -AC_ARG_ENABLE([static],
1.1948 - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
1.1949 - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
1.1950 - [p=${PACKAGE-default}
1.1951 - case $enableval in
1.1952 - yes) enable_static=yes ;;
1.1953 - no) enable_static=no ;;
1.1954 - *)
1.1955 - enable_static=no
1.1956 - # Look at the argument we got. We use all the common list separators.
1.1957 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1.1958 - for pkg in $enableval; do
1.1959 - IFS="$lt_save_ifs"
1.1960 - if test "X$pkg" = "X$p"; then
1.1961 - enable_static=yes
1.1962 - fi
1.1963 - done
1.1964 - IFS="$lt_save_ifs"
1.1965 - ;;
1.1966 - esac],
1.1967 - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
1.1968 -])# AC_ENABLE_STATIC
1.1969 -
1.1970 -
1.1971 -# AC_DISABLE_STATIC
1.1972 -# -----------------
1.1973 -# set the default static flag to --disable-static
1.1974 -AC_DEFUN([AC_DISABLE_STATIC],
1.1975 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1.1976 -AC_ENABLE_STATIC(no)
1.1977 -])# AC_DISABLE_STATIC
1.1978 -
1.1979 -
1.1980 -# AC_ENABLE_FAST_INSTALL([DEFAULT])
1.1981 -# ---------------------------------
1.1982 -# implement the --enable-fast-install flag
1.1983 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1.1984 -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
1.1985 -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
1.1986 -AC_ARG_ENABLE([fast-install],
1.1987 - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
1.1988 - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
1.1989 - [p=${PACKAGE-default}
1.1990 - case $enableval in
1.1991 - yes) enable_fast_install=yes ;;
1.1992 - no) enable_fast_install=no ;;
1.1993 - *)
1.1994 - enable_fast_install=no
1.1995 - # Look at the argument we got. We use all the common list separators.
1.1996 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1.1997 - for pkg in $enableval; do
1.1998 - IFS="$lt_save_ifs"
1.1999 - if test "X$pkg" = "X$p"; then
1.2000 - enable_fast_install=yes
1.2001 - fi
1.2002 - done
1.2003 - IFS="$lt_save_ifs"
1.2004 - ;;
1.2005 - esac],
1.2006 - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
1.2007 -])# AC_ENABLE_FAST_INSTALL
1.2008 -
1.2009 -
1.2010 -# AC_DISABLE_FAST_INSTALL
1.2011 -# -----------------------
1.2012 -# set the default to --disable-fast-install
1.2013 -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
1.2014 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1.2015 -AC_ENABLE_FAST_INSTALL(no)
1.2016 -])# AC_DISABLE_FAST_INSTALL
1.2017 -
1.2018 -
1.2019 -# AC_LIBTOOL_PICMODE([MODE])
1.2020 -# --------------------------
1.2021 -# implement the --with-pic flag
1.2022 -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
1.2023 -AC_DEFUN([AC_LIBTOOL_PICMODE],
1.2024 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1.2025 -pic_mode=ifelse($#,1,$1,default)
1.2026 -])# AC_LIBTOOL_PICMODE
1.2027 -
1.2028 -
1.2029 -# AC_PROG_EGREP
1.2030 -# -------------
1.2031 -# This is predefined starting with Autoconf 2.54, so this conditional
1.2032 -# definition can be removed once we require Autoconf 2.54 or later.
1.2033 -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
1.2034 -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
1.2035 - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1.2036 - then ac_cv_prog_egrep='grep -E'
1.2037 - else ac_cv_prog_egrep='egrep'
1.2038 - fi])
1.2039 - EGREP=$ac_cv_prog_egrep
1.2040 - AC_SUBST([EGREP])
1.2041 -])])
1.2042 -
1.2043 -
1.2044 -# AC_PATH_TOOL_PREFIX
1.2045 -# -------------------
1.2046 -# find a file program which can recognise shared library
1.2047 -AC_DEFUN([AC_PATH_TOOL_PREFIX],
1.2048 -[AC_REQUIRE([AC_PROG_EGREP])dnl
1.2049 -AC_MSG_CHECKING([for $1])
1.2050 -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
1.2051 -[case $MAGIC_CMD in
1.2052 -[[\\/*] | ?:[\\/]*])
1.2053 - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1.2054 - ;;
1.2055 -*)
1.2056 - lt_save_MAGIC_CMD="$MAGIC_CMD"
1.2057 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.2058 -dnl $ac_dummy forces splitting on constant user-supplied paths.
1.2059 -dnl POSIX.2 word splitting is done only on the output of word expansions,
1.2060 -dnl not every word. This closes a longstanding sh security hole.
1.2061 - ac_dummy="ifelse([$2], , $PATH, [$2])"
1.2062 - for ac_dir in $ac_dummy; do
1.2063 - IFS="$lt_save_ifs"
1.2064 - test -z "$ac_dir" && ac_dir=.
1.2065 - if test -f $ac_dir/$1; then
1.2066 - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
1.2067 - if test -n "$file_magic_test_file"; then
1.2068 - case $deplibs_check_method in
1.2069 - "file_magic "*)
1.2070 - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1.2071 - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1.2072 - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1.2073 - $EGREP "$file_magic_regex" > /dev/null; then
1.2074 - :
1.2075 - else
1.2076 - cat <<EOF 1>&2
1.2077 -
1.2078 -*** Warning: the command libtool uses to detect shared libraries,
1.2079 -*** $file_magic_cmd, produces output that libtool cannot recognize.
1.2080 -*** The result is that libtool may fail to recognize shared libraries
1.2081 -*** as such. This will affect the creation of libtool libraries that
1.2082 -*** depend on shared libraries, but programs linked with such libtool
1.2083 -*** libraries will work regardless of this problem. Nevertheless, you
1.2084 -*** may want to report the problem to your system manager and/or to
1.2085 -*** bug-libtool@gnu.org
1.2086 -
1.2087 -EOF
1.2088 - fi ;;
1.2089 - esac
1.2090 - fi
1.2091 - break
1.2092 - fi
1.2093 - done
1.2094 - IFS="$lt_save_ifs"
1.2095 - MAGIC_CMD="$lt_save_MAGIC_CMD"
1.2096 - ;;
1.2097 -esac])
1.2098 -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1.2099 -if test -n "$MAGIC_CMD"; then
1.2100 - AC_MSG_RESULT($MAGIC_CMD)
1.2101 -else
1.2102 - AC_MSG_RESULT(no)
1.2103 -fi
1.2104 -])# AC_PATH_TOOL_PREFIX
1.2105 -
1.2106 -
1.2107 -# AC_PATH_MAGIC
1.2108 -# -------------
1.2109 -# find a file program which can recognise a shared library
1.2110 -AC_DEFUN([AC_PATH_MAGIC],
1.2111 -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
1.2112 -if test -z "$lt_cv_path_MAGIC_CMD"; then
1.2113 - if test -n "$ac_tool_prefix"; then
1.2114 - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
1.2115 - else
1.2116 - MAGIC_CMD=:
1.2117 - fi
1.2118 -fi
1.2119 -])# AC_PATH_MAGIC
1.2120 -
1.2121 -
1.2122 -# AC_PROG_LD
1.2123 -# ----------
1.2124 -# find the pathname to the GNU or non-GNU linker
1.2125 -AC_DEFUN([AC_PROG_LD],
1.2126 -[AC_ARG_WITH([gnu-ld],
1.2127 - [AC_HELP_STRING([--with-gnu-ld],
1.2128 - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
1.2129 - [test "$withval" = no || with_gnu_ld=yes],
1.2130 - [with_gnu_ld=no])
1.2131 -AC_REQUIRE([LT_AC_PROG_SED])dnl
1.2132 -AC_REQUIRE([AC_PROG_CC])dnl
1.2133 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
1.2134 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1.2135 -ac_prog=ld
1.2136 -if test "$GCC" = yes; then
1.2137 - # Check if gcc -print-prog-name=ld gives a path.
1.2138 - AC_MSG_CHECKING([for ld used by $CC])
1.2139 - case $host in
1.2140 - *-*-mingw*)
1.2141 - # gcc leaves a trailing carriage return which upsets mingw
1.2142 - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1.2143 - *)
1.2144 - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1.2145 - esac
1.2146 - case $ac_prog in
1.2147 - # Accept absolute paths.
1.2148 - [[\\/]]* | ?:[[\\/]]*)
1.2149 - re_direlt='/[[^/]][[^/]]*/\.\./'
1.2150 - # Canonicalize the pathname of ld
1.2151 - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
1.2152 - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1.2153 - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
1.2154 - done
1.2155 - test -z "$LD" && LD="$ac_prog"
1.2156 - ;;
1.2157 - "")
1.2158 - # If it fails, then pretend we aren't using GCC.
1.2159 - ac_prog=ld
1.2160 - ;;
1.2161 - *)
1.2162 - # If it is relative, then search for the first ld in PATH.
1.2163 - with_gnu_ld=unknown
1.2164 - ;;
1.2165 - esac
1.2166 -elif test "$with_gnu_ld" = yes; then
1.2167 - AC_MSG_CHECKING([for GNU ld])
1.2168 -else
1.2169 - AC_MSG_CHECKING([for non-GNU ld])
1.2170 -fi
1.2171 -AC_CACHE_VAL(lt_cv_path_LD,
1.2172 -[if test -z "$LD"; then
1.2173 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.2174 - for ac_dir in $PATH; do
1.2175 - IFS="$lt_save_ifs"
1.2176 - test -z "$ac_dir" && ac_dir=.
1.2177 - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.2178 - lt_cv_path_LD="$ac_dir/$ac_prog"
1.2179 - # Check to see if the program is GNU ld. I'd rather use --version,
1.2180 - # but apparently some variants of GNU ld only accept -v.
1.2181 - # Break only if it was the GNU/non-GNU ld that we prefer.
1.2182 - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
1.2183 - *GNU* | *'with BFD'*)
1.2184 - test "$with_gnu_ld" != no && break
1.2185 - ;;
1.2186 - *)
1.2187 - test "$with_gnu_ld" != yes && break
1.2188 - ;;
1.2189 - esac
1.2190 - fi
1.2191 - done
1.2192 - IFS="$lt_save_ifs"
1.2193 -else
1.2194 - lt_cv_path_LD="$LD" # Let the user override the test with a path.
1.2195 -fi])
1.2196 -LD="$lt_cv_path_LD"
1.2197 -if test -n "$LD"; then
1.2198 - AC_MSG_RESULT($LD)
1.2199 -else
1.2200 - AC_MSG_RESULT(no)
1.2201 -fi
1.2202 -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
1.2203 -AC_PROG_LD_GNU
1.2204 -])# AC_PROG_LD
1.2205 -
1.2206 -
1.2207 -# AC_PROG_LD_GNU
1.2208 -# --------------
1.2209 -AC_DEFUN([AC_PROG_LD_GNU],
1.2210 -[AC_REQUIRE([AC_PROG_EGREP])dnl
1.2211 -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
1.2212 -[# I'd rather use --version here, but apparently some GNU lds only accept -v.
1.2213 -case `$LD -v 2>&1 </dev/null` in
1.2214 -*GNU* | *'with BFD'*)
1.2215 - lt_cv_prog_gnu_ld=yes
1.2216 - ;;
1.2217 -*)
1.2218 - lt_cv_prog_gnu_ld=no
1.2219 - ;;
1.2220 -esac])
1.2221 -with_gnu_ld=$lt_cv_prog_gnu_ld
1.2222 -])# AC_PROG_LD_GNU
1.2223 -
1.2224 -
1.2225 -# AC_PROG_LD_RELOAD_FLAG
1.2226 -# ----------------------
1.2227 -# find reload flag for linker
1.2228 -# -- PORTME Some linkers may need a different reload flag.
1.2229 -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
1.2230 -[AC_CACHE_CHECK([for $LD option to reload object files],
1.2231 - lt_cv_ld_reload_flag,
1.2232 - [lt_cv_ld_reload_flag='-r'])
1.2233 -reload_flag=$lt_cv_ld_reload_flag
1.2234 -case $reload_flag in
1.2235 -"" | " "*) ;;
1.2236 -*) reload_flag=" $reload_flag" ;;
1.2237 -esac
1.2238 -reload_cmds='$LD$reload_flag -o $output$reload_objs'
1.2239 -case $host_os in
1.2240 - darwin*)
1.2241 - if test "$GCC" = yes; then
1.2242 - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
1.2243 - else
1.2244 - reload_cmds='$LD$reload_flag -o $output$reload_objs'
1.2245 - fi
1.2246 - ;;
1.2247 -esac
1.2248 -])# AC_PROG_LD_RELOAD_FLAG
1.2249 -
1.2250 -
1.2251 -# AC_DEPLIBS_CHECK_METHOD
1.2252 -# -----------------------
1.2253 -# how to check for library dependencies
1.2254 -# -- PORTME fill in with the dynamic library characteristics
1.2255 -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
1.2256 -[AC_CACHE_CHECK([how to recognise dependent libraries],
1.2257 -lt_cv_deplibs_check_method,
1.2258 -[lt_cv_file_magic_cmd='$MAGIC_CMD'
1.2259 -lt_cv_file_magic_test_file=
1.2260 -lt_cv_deplibs_check_method='unknown'
1.2261 -# Need to set the preceding variable on all platforms that support
1.2262 -# interlibrary dependencies.
1.2263 -# 'none' -- dependencies not supported.
1.2264 -# `unknown' -- same as none, but documents that we really don't know.
1.2265 -# 'pass_all' -- all dependencies passed with no checks.
1.2266 -# 'test_compile' -- check by making test program.
1.2267 -# 'file_magic [[regex]]' -- check by looking for files in library path
1.2268 -# which responds to the $file_magic_cmd with a given extended regex.
1.2269 -# If you have `file' or equivalent on your system and you're not sure
1.2270 -# whether `pass_all' will *always* work, you probably want this one.
1.2271 -
1.2272 -case $host_os in
1.2273 -aix4* | aix5*)
1.2274 - lt_cv_deplibs_check_method=pass_all
1.2275 - ;;
1.2276 -
1.2277 -beos*)
1.2278 - lt_cv_deplibs_check_method=pass_all
1.2279 - ;;
1.2280 -
1.2281 -bsdi[[45]]*)
1.2282 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
1.2283 - lt_cv_file_magic_cmd='/usr/bin/file -L'
1.2284 - lt_cv_file_magic_test_file=/shlib/libc.so
1.2285 - ;;
1.2286 -
1.2287 -cygwin*)
1.2288 - # func_win32_libid is a shell function defined in ltmain.sh
1.2289 - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
1.2290 - lt_cv_file_magic_cmd='func_win32_libid'
1.2291 - ;;
1.2292 -
1.2293 -mingw* | pw32*)
1.2294 - # Base MSYS/MinGW do not provide the 'file' command needed by
1.2295 - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
1.2296 - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1.2297 - lt_cv_file_magic_cmd='$OBJDUMP -f'
1.2298 - ;;
1.2299 -
1.2300 -darwin* | rhapsody*)
1.2301 - lt_cv_deplibs_check_method=pass_all
1.2302 - ;;
1.2303 -
1.2304 -freebsd* | dragonfly*)
1.2305 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1.2306 - case $host_cpu in
1.2307 - i*86 )
1.2308 - # Not sure whether the presence of OpenBSD here was a mistake.
1.2309 - # Let's accept both of them until this is cleared up.
1.2310 - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
1.2311 - lt_cv_file_magic_cmd=/usr/bin/file
1.2312 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.2313 - ;;
1.2314 - esac
1.2315 - else
1.2316 - lt_cv_deplibs_check_method=pass_all
1.2317 - fi
1.2318 - ;;
1.2319 -
1.2320 -gnu*)
1.2321 - lt_cv_deplibs_check_method=pass_all
1.2322 - ;;
1.2323 -
1.2324 -hpux10.20* | hpux11*)
1.2325 - lt_cv_file_magic_cmd=/usr/bin/file
1.2326 - case $host_cpu in
1.2327 - ia64*)
1.2328 - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
1.2329 - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1.2330 - ;;
1.2331 - hppa*64*)
1.2332 - [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
1.2333 - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1.2334 - ;;
1.2335 - *)
1.2336 - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
1.2337 - lt_cv_file_magic_test_file=/usr/lib/libc.sl
1.2338 - ;;
1.2339 - esac
1.2340 - ;;
1.2341 -
1.2342 -interix3*)
1.2343 - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
1.2344 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
1.2345 - ;;
1.2346 -
1.2347 -irix5* | irix6* | nonstopux*)
1.2348 - case $LD in
1.2349 - *-32|*"-32 ") libmagic=32-bit;;
1.2350 - *-n32|*"-n32 ") libmagic=N32;;
1.2351 - *-64|*"-64 ") libmagic=64-bit;;
1.2352 - *) libmagic=never-match;;
1.2353 - esac
1.2354 - lt_cv_deplibs_check_method=pass_all
1.2355 - ;;
1.2356 -
1.2357 -# This must be Linux ELF.
1.2358 -linux* | k*bsd*-gnu)
1.2359 - lt_cv_deplibs_check_method=pass_all
1.2360 - ;;
1.2361 -
1.2362 -netbsd* | netbsdelf*-gnu)
1.2363 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1.2364 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
1.2365 - else
1.2366 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
1.2367 - fi
1.2368 - ;;
1.2369 -
1.2370 -newos6*)
1.2371 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
1.2372 - lt_cv_file_magic_cmd=/usr/bin/file
1.2373 - lt_cv_file_magic_test_file=/usr/lib/libnls.so
1.2374 - ;;
1.2375 -
1.2376 -nto-qnx*)
1.2377 - lt_cv_deplibs_check_method=unknown
1.2378 - ;;
1.2379 -
1.2380 -openbsd*)
1.2381 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.2382 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
1.2383 - else
1.2384 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
1.2385 - fi
1.2386 - ;;
1.2387 -
1.2388 -osf3* | osf4* | osf5*)
1.2389 - lt_cv_deplibs_check_method=pass_all
1.2390 - ;;
1.2391 -
1.2392 -solaris*)
1.2393 - lt_cv_deplibs_check_method=pass_all
1.2394 - ;;
1.2395 -
1.2396 -sysv4 | sysv4.3*)
1.2397 - case $host_vendor in
1.2398 - motorola)
1.2399 - 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]]'
1.2400 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1.2401 - ;;
1.2402 - ncr)
1.2403 - lt_cv_deplibs_check_method=pass_all
1.2404 - ;;
1.2405 - sequent)
1.2406 - lt_cv_file_magic_cmd='/bin/file'
1.2407 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
1.2408 - ;;
1.2409 - sni)
1.2410 - lt_cv_file_magic_cmd='/bin/file'
1.2411 - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
1.2412 - lt_cv_file_magic_test_file=/lib/libc.so
1.2413 - ;;
1.2414 - siemens)
1.2415 - lt_cv_deplibs_check_method=pass_all
1.2416 - ;;
1.2417 - pc)
1.2418 - lt_cv_deplibs_check_method=pass_all
1.2419 - ;;
1.2420 - esac
1.2421 - ;;
1.2422 -
1.2423 -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.2424 - lt_cv_deplibs_check_method=pass_all
1.2425 - ;;
1.2426 -esac
1.2427 -])
1.2428 -file_magic_cmd=$lt_cv_file_magic_cmd
1.2429 -deplibs_check_method=$lt_cv_deplibs_check_method
1.2430 -test -z "$deplibs_check_method" && deplibs_check_method=unknown
1.2431 -])# AC_DEPLIBS_CHECK_METHOD
1.2432 -
1.2433 -
1.2434 -# AC_PROG_NM
1.2435 -# ----------
1.2436 -# find the pathname to a BSD-compatible name lister
1.2437 -AC_DEFUN([AC_PROG_NM],
1.2438 -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
1.2439 -[if test -n "$NM"; then
1.2440 - # Let the user override the test.
1.2441 - lt_cv_path_NM="$NM"
1.2442 -else
1.2443 - lt_nm_to_check="${ac_tool_prefix}nm"
1.2444 - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
1.2445 - lt_nm_to_check="$lt_nm_to_check nm"
1.2446 - fi
1.2447 - for lt_tmp_nm in $lt_nm_to_check; do
1.2448 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.2449 - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
1.2450 - IFS="$lt_save_ifs"
1.2451 - test -z "$ac_dir" && ac_dir=.
1.2452 - tmp_nm="$ac_dir/$lt_tmp_nm"
1.2453 - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
1.2454 - # Check to see if the nm accepts a BSD-compat flag.
1.2455 - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1.2456 - # nm: unknown option "B" ignored
1.2457 - # Tru64's nm complains that /dev/null is an invalid object file
1.2458 - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
1.2459 - */dev/null* | *'Invalid file or object type'*)
1.2460 - lt_cv_path_NM="$tmp_nm -B"
1.2461 - break
1.2462 - ;;
1.2463 - *)
1.2464 - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
1.2465 - */dev/null*)
1.2466 - lt_cv_path_NM="$tmp_nm -p"
1.2467 - break
1.2468 - ;;
1.2469 - *)
1.2470 - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1.2471 - continue # so that we can try to find one that supports BSD flags
1.2472 - ;;
1.2473 - esac
1.2474 - ;;
1.2475 - esac
1.2476 - fi
1.2477 - done
1.2478 - IFS="$lt_save_ifs"
1.2479 - done
1.2480 - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1.2481 -fi])
1.2482 -NM="$lt_cv_path_NM"
1.2483 -])# AC_PROG_NM
1.2484 -
1.2485 -
1.2486 -# AC_CHECK_LIBM
1.2487 -# -------------
1.2488 -# check for math library
1.2489 -AC_DEFUN([AC_CHECK_LIBM],
1.2490 -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1.2491 -LIBM=
1.2492 -case $host in
1.2493 -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
1.2494 - # These system don't have libm, or don't need it
1.2495 - ;;
1.2496 -*-ncr-sysv4.3*)
1.2497 - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
1.2498 - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
1.2499 - ;;
1.2500 -*)
1.2501 - AC_CHECK_LIB(m, cos, LIBM="-lm")
1.2502 - ;;
1.2503 -esac
1.2504 -])# AC_CHECK_LIBM
1.2505 -
1.2506 -
1.2507 -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
1.2508 -# -----------------------------------
1.2509 -# sets LIBLTDL to the link flags for the libltdl convenience library and
1.2510 -# LTDLINCL to the include flags for the libltdl header and adds
1.2511 -# --enable-ltdl-convenience to the configure arguments. Note that
1.2512 -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
1.2513 -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
1.2514 -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
1.2515 -# (note the single quotes!). If your package is not flat and you're not
1.2516 -# using automake, define top_builddir and top_srcdir appropriately in
1.2517 -# the Makefiles.
1.2518 -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
1.2519 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1.2520 - case $enable_ltdl_convenience in
1.2521 - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
1.2522 - "") enable_ltdl_convenience=yes
1.2523 - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1.2524 - esac
1.2525 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
1.2526 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
1.2527 - # For backwards non-gettext consistent compatibility...
1.2528 - INCLTDL="$LTDLINCL"
1.2529 -])# AC_LIBLTDL_CONVENIENCE
1.2530 -
1.2531 -
1.2532 -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
1.2533 -# -----------------------------------
1.2534 -# sets LIBLTDL to the link flags for the libltdl installable library and
1.2535 -# LTDLINCL to the include flags for the libltdl header and adds
1.2536 -# --enable-ltdl-install to the configure arguments. Note that
1.2537 -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
1.2538 -# and an installed libltdl is not found, it is assumed to be `libltdl'.
1.2539 -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
1.2540 -# '${top_srcdir}/' (note the single quotes!). If your package is not
1.2541 -# flat and you're not using automake, define top_builddir and top_srcdir
1.2542 -# appropriately in the Makefiles.
1.2543 -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
1.2544 -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
1.2545 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1.2546 - AC_CHECK_LIB(ltdl, lt_dlinit,
1.2547 - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
1.2548 - [if test x"$enable_ltdl_install" = xno; then
1.2549 - AC_MSG_WARN([libltdl not installed, but installation disabled])
1.2550 - else
1.2551 - enable_ltdl_install=yes
1.2552 - fi
1.2553 - ])
1.2554 - if test x"$enable_ltdl_install" = x"yes"; then
1.2555 - ac_configure_args="$ac_configure_args --enable-ltdl-install"
1.2556 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
1.2557 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
1.2558 - else
1.2559 - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
1.2560 - LIBLTDL="-lltdl"
1.2561 - LTDLINCL=
1.2562 - fi
1.2563 - # For backwards non-gettext consistent compatibility...
1.2564 - INCLTDL="$LTDLINCL"
1.2565 -])# AC_LIBLTDL_INSTALLABLE
1.2566 -
1.2567 -
1.2568 -# AC_LIBTOOL_CXX
1.2569 -# --------------
1.2570 -# enable support for C++ libraries
1.2571 -AC_DEFUN([AC_LIBTOOL_CXX],
1.2572 -[AC_REQUIRE([_LT_AC_LANG_CXX])
1.2573 -])# AC_LIBTOOL_CXX
1.2574 -
1.2575 -
1.2576 -# _LT_AC_LANG_CXX
1.2577 -# ---------------
1.2578 -AC_DEFUN([_LT_AC_LANG_CXX],
1.2579 -[AC_REQUIRE([AC_PROG_CXX])
1.2580 -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
1.2581 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
1.2582 -])# _LT_AC_LANG_CXX
1.2583 -
1.2584 -# _LT_AC_PROG_CXXCPP
1.2585 -# ------------------
1.2586 -AC_DEFUN([_LT_AC_PROG_CXXCPP],
1.2587 -[
1.2588 -AC_REQUIRE([AC_PROG_CXX])
1.2589 -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1.2590 - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1.2591 - (test "X$CXX" != "Xg++"))) ; then
1.2592 - AC_PROG_CXXCPP
1.2593 -fi
1.2594 -])# _LT_AC_PROG_CXXCPP
1.2595 -
1.2596 -# AC_LIBTOOL_F77
1.2597 -# --------------
1.2598 -# enable support for Fortran 77 libraries
1.2599 -AC_DEFUN([AC_LIBTOOL_F77],
1.2600 -[AC_REQUIRE([_LT_AC_LANG_F77])
1.2601 -])# AC_LIBTOOL_F77
1.2602 -
1.2603 -
1.2604 -# _LT_AC_LANG_F77
1.2605 -# ---------------
1.2606 -AC_DEFUN([_LT_AC_LANG_F77],
1.2607 -[AC_REQUIRE([AC_PROG_F77])
1.2608 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
1.2609 -])# _LT_AC_LANG_F77
1.2610 -
1.2611 -
1.2612 -# AC_LIBTOOL_GCJ
1.2613 -# --------------
1.2614 -# enable support for GCJ libraries
1.2615 -AC_DEFUN([AC_LIBTOOL_GCJ],
1.2616 -[AC_REQUIRE([_LT_AC_LANG_GCJ])
1.2617 -])# AC_LIBTOOL_GCJ
1.2618 -
1.2619 -
1.2620 -# _LT_AC_LANG_GCJ
1.2621 -# ---------------
1.2622 -AC_DEFUN([_LT_AC_LANG_GCJ],
1.2623 -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
1.2624 - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
1.2625 - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
1.2626 - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
1.2627 - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
1.2628 - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
1.2629 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
1.2630 -])# _LT_AC_LANG_GCJ
1.2631 -
1.2632 -
1.2633 -# AC_LIBTOOL_RC
1.2634 -# -------------
1.2635 -# enable support for Windows resource files
1.2636 -AC_DEFUN([AC_LIBTOOL_RC],
1.2637 -[AC_REQUIRE([LT_AC_PROG_RC])
1.2638 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
1.2639 -])# AC_LIBTOOL_RC
1.2640 -
1.2641 -
1.2642 -# AC_LIBTOOL_LANG_C_CONFIG
1.2643 -# ------------------------
1.2644 -# Ensure that the configuration vars for the C compiler are
1.2645 -# suitably defined. Those variables are subsequently used by
1.2646 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1.2647 -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
1.2648 -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
1.2649 -[lt_save_CC="$CC"
1.2650 -AC_LANG_PUSH(C)
1.2651 -
1.2652 -# Source file extension for C test sources.
1.2653 -ac_ext=c
1.2654 -
1.2655 -# Object file extension for compiled C test sources.
1.2656 -objext=o
1.2657 -_LT_AC_TAGVAR(objext, $1)=$objext
1.2658 -
1.2659 -# Code to be used in simple compile tests
1.2660 -lt_simple_compile_test_code="int some_variable = 0;\n"
1.2661 -
1.2662 -# Code to be used in simple link tests
1.2663 -lt_simple_link_test_code='int main(){return(0);}\n'
1.2664 -
1.2665 -_LT_AC_SYS_COMPILER
1.2666 -
1.2667 -# save warnings/boilerplate of simple test code
1.2668 -_LT_COMPILER_BOILERPLATE
1.2669 -_LT_LINKER_BOILERPLATE
1.2670 -
1.2671 -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
1.2672 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
1.2673 -AC_LIBTOOL_PROG_CC_C_O($1)
1.2674 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
1.2675 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
1.2676 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
1.2677 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
1.2678 -AC_LIBTOOL_SYS_LIB_STRIP
1.2679 -AC_LIBTOOL_DLOPEN_SELF
1.2680 -
1.2681 -# Report which library types will actually be built
1.2682 -AC_MSG_CHECKING([if libtool supports shared libraries])
1.2683 -AC_MSG_RESULT([$can_build_shared])
1.2684 -
1.2685 -AC_MSG_CHECKING([whether to build shared libraries])
1.2686 -test "$can_build_shared" = "no" && enable_shared=no
1.2687 -
1.2688 -# On AIX, shared libraries and static libraries use the same namespace, and
1.2689 -# are all built from PIC.
1.2690 -case $host_os in
1.2691 -aix3*)
1.2692 - test "$enable_shared" = yes && enable_static=no
1.2693 - if test -n "$RANLIB"; then
1.2694 - archive_cmds="$archive_cmds~\$RANLIB \$lib"
1.2695 - postinstall_cmds='$RANLIB $lib'
1.2696 - fi
1.2697 - ;;
1.2698 -
1.2699 -aix4* | aix5*)
1.2700 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
1.2701 - test "$enable_shared" = yes && enable_static=no
1.2702 - fi
1.2703 - ;;
1.2704 -esac
1.2705 -AC_MSG_RESULT([$enable_shared])
1.2706 -
1.2707 -AC_MSG_CHECKING([whether to build static libraries])
1.2708 -# Make sure either enable_shared or enable_static is yes.
1.2709 -test "$enable_shared" = yes || enable_static=yes
1.2710 -AC_MSG_RESULT([$enable_static])
1.2711 -
1.2712 -AC_LIBTOOL_CONFIG($1)
1.2713 -
1.2714 -AC_LANG_POP
1.2715 -CC="$lt_save_CC"
1.2716 -])# AC_LIBTOOL_LANG_C_CONFIG
1.2717 -
1.2718 -
1.2719 -# AC_LIBTOOL_LANG_CXX_CONFIG
1.2720 -# --------------------------
1.2721 -# Ensure that the configuration vars for the C compiler are
1.2722 -# suitably defined. Those variables are subsequently used by
1.2723 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1.2724 -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
1.2725 -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
1.2726 -[AC_LANG_PUSH(C++)
1.2727 -AC_REQUIRE([AC_PROG_CXX])
1.2728 -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
1.2729 -
1.2730 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1.2731 -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
1.2732 -_LT_AC_TAGVAR(always_export_symbols, $1)=no
1.2733 -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
1.2734 -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
1.2735 -_LT_AC_TAGVAR(hardcode_direct, $1)=no
1.2736 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
1.2737 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
1.2738 -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
1.2739 -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
1.2740 -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1.2741 -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
1.2742 -_LT_AC_TAGVAR(module_cmds, $1)=
1.2743 -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
1.2744 -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
1.2745 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
1.2746 -_LT_AC_TAGVAR(no_undefined_flag, $1)=
1.2747 -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
1.2748 -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
1.2749 -
1.2750 -# Dependencies to place before and after the object being linked:
1.2751 -_LT_AC_TAGVAR(predep_objects, $1)=
1.2752 -_LT_AC_TAGVAR(postdep_objects, $1)=
1.2753 -_LT_AC_TAGVAR(predeps, $1)=
1.2754 -_LT_AC_TAGVAR(postdeps, $1)=
1.2755 -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
1.2756 -
1.2757 -# Source file extension for C++ test sources.
1.2758 -ac_ext=cpp
1.2759 -
1.2760 -# Object file extension for compiled C++ test sources.
1.2761 -objext=o
1.2762 -_LT_AC_TAGVAR(objext, $1)=$objext
1.2763 -
1.2764 -# Code to be used in simple compile tests
1.2765 -lt_simple_compile_test_code="int some_variable = 0;\n"
1.2766 -
1.2767 -# Code to be used in simple link tests
1.2768 -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
1.2769 -
1.2770 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
1.2771 -_LT_AC_SYS_COMPILER
1.2772 -
1.2773 -# save warnings/boilerplate of simple test code
1.2774 -_LT_COMPILER_BOILERPLATE
1.2775 -_LT_LINKER_BOILERPLATE
1.2776 -
1.2777 -# Allow CC to be a program name with arguments.
1.2778 -lt_save_CC=$CC
1.2779 -lt_save_LD=$LD
1.2780 -lt_save_GCC=$GCC
1.2781 -GCC=$GXX
1.2782 -lt_save_with_gnu_ld=$with_gnu_ld
1.2783 -lt_save_path_LD=$lt_cv_path_LD
1.2784 -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
1.2785 - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
1.2786 -else
1.2787 - $as_unset lt_cv_prog_gnu_ld
1.2788 -fi
1.2789 -if test -n "${lt_cv_path_LDCXX+set}"; then
1.2790 - lt_cv_path_LD=$lt_cv_path_LDCXX
1.2791 -else
1.2792 - $as_unset lt_cv_path_LD
1.2793 -fi
1.2794 -test -z "${LDCXX+set}" || LD=$LDCXX
1.2795 -CC=${CXX-"c++"}
1.2796 -compiler=$CC
1.2797 -_LT_AC_TAGVAR(compiler, $1)=$CC
1.2798 -_LT_CC_BASENAME([$compiler])
1.2799 -
1.2800 -# We don't want -fno-exception wen compiling C++ code, so set the
1.2801 -# no_builtin_flag separately
1.2802 -if test "$GXX" = yes; then
1.2803 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
1.2804 -else
1.2805 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
1.2806 -fi
1.2807 -
1.2808 -if test "$GXX" = yes; then
1.2809 - # Set up default GNU C++ configuration
1.2810 -
1.2811 - AC_PROG_LD
1.2812 -
1.2813 - # Check if GNU C++ uses GNU ld as the underlying linker, since the
1.2814 - # archiving commands below assume that GNU ld is being used.
1.2815 - if test "$with_gnu_ld" = yes; then
1.2816 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.2817 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1.2818 -
1.2819 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
1.2820 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
1.2821 -
1.2822 - # If archive_cmds runs LD, not CC, wlarc should be empty
1.2823 - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
1.2824 - # investigate it a little bit more. (MM)
1.2825 - wlarc='${wl}'
1.2826 -
1.2827 - # ancient GNU ld didn't support --whole-archive et. al.
1.2828 - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
1.2829 - grep 'no-whole-archive' > /dev/null; then
1.2830 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
1.2831 - else
1.2832 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
1.2833 - fi
1.2834 - else
1.2835 - with_gnu_ld=no
1.2836 - wlarc=
1.2837 -
1.2838 - # A generic and very simple default shared library creation
1.2839 - # command for GNU C++ for the case where it uses the native
1.2840 - # linker, instead of GNU ld. If possible, this setting should
1.2841 - # overridden to take advantage of the native linker features on
1.2842 - # the platform it is being used on.
1.2843 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
1.2844 - fi
1.2845 -
1.2846 - # Commands to make compiler produce verbose output that lists
1.2847 - # what "hidden" libraries, object files and flags are used when
1.2848 - # linking a shared library.
1.2849 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
1.2850 -
1.2851 -else
1.2852 - GXX=no
1.2853 - with_gnu_ld=no
1.2854 - wlarc=
1.2855 -fi
1.2856 -
1.2857 -# PORTME: fill in a description of your system's C++ link characteristics
1.2858 -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
1.2859 -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
1.2860 -case $host_os in
1.2861 - aix3*)
1.2862 - # FIXME: insert proper C++ library support
1.2863 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.2864 - ;;
1.2865 - aix4* | aix5*)
1.2866 - if test "$host_cpu" = ia64; then
1.2867 - # On IA64, the linker does run time linking by default, so we don't
1.2868 - # have to do anything special.
1.2869 - aix_use_runtimelinking=no
1.2870 - exp_sym_flag='-Bexport'
1.2871 - no_entry_flag=""
1.2872 - else
1.2873 - aix_use_runtimelinking=no
1.2874 -
1.2875 - # Test if we are trying to use run time linking or normal
1.2876 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1.2877 - # need to do runtime linking.
1.2878 - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
1.2879 - for ld_flag in $LDFLAGS; do
1.2880 - case $ld_flag in
1.2881 - *-brtl*)
1.2882 - aix_use_runtimelinking=yes
1.2883 - break
1.2884 - ;;
1.2885 - esac
1.2886 - done
1.2887 - ;;
1.2888 - esac
1.2889 -
1.2890 - exp_sym_flag='-bexport'
1.2891 - no_entry_flag='-bnoentry'
1.2892 - fi
1.2893 -
1.2894 - # When large executables or shared objects are built, AIX ld can
1.2895 - # have problems creating the table of contents. If linking a library
1.2896 - # or program results in "error TOC overflow" add -mminimal-toc to
1.2897 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
1.2898 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
1.2899 -
1.2900 - _LT_AC_TAGVAR(archive_cmds, $1)=''
1.2901 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1.2902 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
1.2903 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1.2904 -
1.2905 - if test "$GXX" = yes; then
1.2906 - case $host_os in aix4.[[012]]|aix4.[[012]].*)
1.2907 - # We only want to do this on AIX 4.2 and lower, the check
1.2908 - # below for broken collect2 doesn't work under 4.3+
1.2909 - collect2name=`${CC} -print-prog-name=collect2`
1.2910 - if test -f "$collect2name" && \
1.2911 - strings "$collect2name" | grep resolve_lib_name >/dev/null
1.2912 - then
1.2913 - # We have reworked collect2
1.2914 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1.2915 - else
1.2916 - # We have old collect2
1.2917 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
1.2918 - # It fails to find uninstalled libraries when the uninstalled
1.2919 - # path is not listed in the libpath. Setting hardcode_minus_L
1.2920 - # to unsupported forces relinking
1.2921 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
1.2922 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1.2923 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
1.2924 - fi
1.2925 - ;;
1.2926 - esac
1.2927 - shared_flag='-shared'
1.2928 - if test "$aix_use_runtimelinking" = yes; then
1.2929 - shared_flag="$shared_flag "'${wl}-G'
1.2930 - fi
1.2931 - else
1.2932 - # not using gcc
1.2933 - if test "$host_cpu" = ia64; then
1.2934 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
1.2935 - # chokes on -Wl,-G. The following line is correct:
1.2936 - shared_flag='-G'
1.2937 - else
1.2938 - if test "$aix_use_runtimelinking" = yes; then
1.2939 - shared_flag='${wl}-G'
1.2940 - else
1.2941 - shared_flag='${wl}-bM:SRE'
1.2942 - fi
1.2943 - fi
1.2944 - fi
1.2945 -
1.2946 - # It seems that -bexpall does not export symbols beginning with
1.2947 - # underscore (_), so it is better to generate a list of symbols to export.
1.2948 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
1.2949 - if test "$aix_use_runtimelinking" = yes; then
1.2950 - # Warning - without using the other runtime loading flags (-brtl),
1.2951 - # -berok will link without error, but may produce a broken library.
1.2952 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
1.2953 - # Determine the default libpath from the value encoded in an empty executable.
1.2954 - _LT_AC_SYS_LIBPATH_AIX
1.2955 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
1.2956 -
1.2957 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1.2958 - else
1.2959 - if test "$host_cpu" = ia64; then
1.2960 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
1.2961 - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
1.2962 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
1.2963 - else
1.2964 - # Determine the default libpath from the value encoded in an empty executable.
1.2965 - _LT_AC_SYS_LIBPATH_AIX
1.2966 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
1.2967 - # Warning - without using the other run time loading flags,
1.2968 - # -berok will link without error, but may produce a broken library.
1.2969 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
1.2970 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
1.2971 - # Exported symbols can be pulled into shared objects from archives
1.2972 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
1.2973 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
1.2974 - # This is similar to how AIX traditionally builds its shared libraries.
1.2975 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
1.2976 - fi
1.2977 - fi
1.2978 - ;;
1.2979 -
1.2980 - beos*)
1.2981 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1.2982 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
1.2983 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
1.2984 - # support --undefined. This deserves some investigation. FIXME
1.2985 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.2986 - else
1.2987 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.2988 - fi
1.2989 - ;;
1.2990 -
1.2991 - chorus*)
1.2992 - case $cc_basename in
1.2993 - *)
1.2994 - # FIXME: insert proper C++ library support
1.2995 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.2996 - ;;
1.2997 - esac
1.2998 - ;;
1.2999 -
1.3000 - cygwin* | mingw* | pw32*)
1.3001 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
1.3002 - # as there is no search path for DLLs.
1.3003 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1.3004 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
1.3005 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
1.3006 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
1.3007 -
1.3008 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1.3009 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.3010 - # If the export-symbols file already is a .def file (1st line
1.3011 - # is EXPORTS), use it as is; otherwise, prepend...
1.3012 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
1.3013 - cp $export_symbols $output_objdir/$soname.def;
1.3014 - else
1.3015 - echo EXPORTS > $output_objdir/$soname.def;
1.3016 - cat $export_symbols >> $output_objdir/$soname.def;
1.3017 - fi~
1.3018 - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.3019 - else
1.3020 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.3021 - fi
1.3022 - ;;
1.3023 - darwin* | rhapsody*)
1.3024 - case $host_os in
1.3025 - rhapsody* | darwin1.[[012]])
1.3026 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
1.3027 - ;;
1.3028 - *) # Darwin 1.3 on
1.3029 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
1.3030 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1.3031 - else
1.3032 - case ${MACOSX_DEPLOYMENT_TARGET} in
1.3033 - 10.[[012]])
1.3034 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1.3035 - ;;
1.3036 - 10.*)
1.3037 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
1.3038 - ;;
1.3039 - esac
1.3040 - fi
1.3041 - ;;
1.3042 - esac
1.3043 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1.3044 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
1.3045 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
1.3046 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1.3047 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
1.3048 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1.3049 -
1.3050 - if test "$GXX" = yes ; then
1.3051 - lt_int_apple_cc_single_mod=no
1.3052 - output_verbose_link_cmd='echo'
1.3053 - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
1.3054 - lt_int_apple_cc_single_mod=yes
1.3055 - fi
1.3056 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1.3057 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
1.3058 - else
1.3059 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
1.3060 - fi
1.3061 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1.3062 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1.3063 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1.3064 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.3065 - else
1.3066 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.3067 - fi
1.3068 - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.3069 - else
1.3070 - case $cc_basename in
1.3071 - xlc*)
1.3072 - output_verbose_link_cmd='echo'
1.3073 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
1.3074 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1.3075 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1.3076 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.3077 - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.3078 - ;;
1.3079 - *)
1.3080 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.3081 - ;;
1.3082 - esac
1.3083 - fi
1.3084 - ;;
1.3085 -
1.3086 - dgux*)
1.3087 - case $cc_basename in
1.3088 - ec++*)
1.3089 - # FIXME: insert proper C++ library support
1.3090 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.3091 - ;;
1.3092 - ghcx*)
1.3093 - # Green Hills C++ Compiler
1.3094 - # FIXME: insert proper C++ library support
1.3095 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.3096 - ;;
1.3097 - *)
1.3098 - # FIXME: insert proper C++ library support
1.3099 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.3100 - ;;
1.3101 - esac
1.3102 - ;;
1.3103 - freebsd[[12]]*)
1.3104 - # C++ shared libraries reported to be fairly broken before switch to ELF
1.3105 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.3106 - ;;
1.3107 - freebsd-elf*)
1.3108 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1.3109 - ;;
1.3110 - freebsd* | dragonfly*)
1.3111 - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
1.3112 - # conventions
1.3113 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
1.3114 - ;;
1.3115 - gnu*)
1.3116 - ;;
1.3117 - hpux9*)
1.3118 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1.3119 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.3120 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1.3121 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1.3122 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
1.3123 - # but as the default
1.3124 - # location of the library.
1.3125 -
1.3126 - case $cc_basename in
1.3127 - CC*)
1.3128 - # FIXME: insert proper C++ library support
1.3129 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.3130 - ;;
1.3131 - aCC*)
1.3132 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1.3133 - # Commands to make compiler produce verbose output that lists
1.3134 - # what "hidden" libraries, object files and flags are used when
1.3135 - # linking a shared library.
1.3136 - #
1.3137 - # There doesn't appear to be a way to prevent this compiler from
1.3138 - # explicitly linking system object files so we need to strip them
1.3139 - # from the output so that they don't get included in the library
1.3140 - # dependencies.
1.3141 - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
1.3142 - ;;
1.3143 - *)
1.3144 - if test "$GXX" = yes; then
1.3145 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1.3146 - else
1.3147 - # FIXME: insert proper C++ library support
1.3148 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.3149 - fi
1.3150 - ;;
1.3151 - esac
1.3152 - ;;
1.3153 - hpux10*|hpux11*)
1.3154 - if test $with_gnu_ld = no; then
1.3155 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1.3156 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.3157 -
1.3158 - case $host_cpu in
1.3159 - hppa*64*|ia64*)
1.3160 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
1.3161 - ;;
1.3162 - *)
1.3163 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1.3164 - ;;
1.3165 - esac
1.3166 - fi
1.3167 - case $host_cpu in
1.3168 - hppa*64*|ia64*)
1.3169 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
1.3170 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.3171 - ;;
1.3172 - *)
1.3173 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1.3174 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
1.3175 - # but as the default
1.3176 - # location of the library.
1.3177 - ;;
1.3178 - esac
1.3179 -
1.3180 - case $cc_basename in
1.3181 - CC*)
1.3182 - # FIXME: insert proper C++ library support
1.3183 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.3184 - ;;
1.3185 - aCC*)
1.3186 - case $host_cpu in
1.3187 - hppa*64*)
1.3188 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.3189 - ;;
1.3190 - ia64*)
1.3191 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.3192 - ;;
1.3193 - *)
1.3194 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.3195 - ;;
1.3196 - esac
1.3197 - # Commands to make compiler produce verbose output that lists
1.3198 - # what "hidden" libraries, object files and flags are used when
1.3199 - # linking a shared library.
1.3200 - #
1.3201 - # There doesn't appear to be a way to prevent this compiler from
1.3202 - # explicitly linking system object files so we need to strip them
1.3203 - # from the output so that they don't get included in the library
1.3204 - # dependencies.
1.3205 - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
1.3206 - ;;
1.3207 - *)
1.3208 - if test "$GXX" = yes; then
1.3209 - if test $with_gnu_ld = no; then
1.3210 - case $host_cpu in
1.3211 - hppa*64*)
1.3212 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.3213 - ;;
1.3214 - ia64*)
1.3215 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.3216 - ;;
1.3217 - *)
1.3218 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.3219 - ;;
1.3220 - esac
1.3221 - fi
1.3222 - else
1.3223 - # FIXME: insert proper C++ library support
1.3224 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.3225 - fi
1.3226 - ;;
1.3227 - esac
1.3228 - ;;
1.3229 - interix3*)
1.3230 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
1.3231 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.3232 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
1.3233 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1.3234 - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
1.3235 - # Instead, shared libraries are loaded at an image base (0x10000000 by
1.3236 - # default) and relocated if they conflict, which is a slow very memory
1.3237 - # consuming and fragmenting process. To avoid this, we pick a random,
1.3238 - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
1.3239 - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
1.3240 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
1.3241 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
1.3242 - ;;
1.3243 - irix5* | irix6*)
1.3244 - case $cc_basename in
1.3245 - CC*)
1.3246 - # SGI C++
1.3247 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1.3248 -
1.3249 - # Archives containing C++ object files must be created using
1.3250 - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
1.3251 - # necessary to make sure instantiated templates are included
1.3252 - # in the archive.
1.3253 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
1.3254 - ;;
1.3255 - *)
1.3256 - if test "$GXX" = yes; then
1.3257 - if test "$with_gnu_ld" = no; then
1.3258 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.3259 - else
1.3260 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
1.3261 - fi
1.3262 - fi
1.3263 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1.3264 - ;;
1.3265 - esac
1.3266 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
1.3267 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.3268 - ;;
1.3269 - linux* | k*bsd*-gnu)
1.3270 - case $cc_basename in
1.3271 - KCC*)
1.3272 - # Kuck and Associates, Inc. (KAI) C++ Compiler
1.3273 -
1.3274 - # KCC will only create a shared library if the output file
1.3275 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
1.3276 - # to its proper name (with version) after linking.
1.3277 - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
1.3278 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
1.3279 - # Commands to make compiler produce verbose output that lists
1.3280 - # what "hidden" libraries, object files and flags are used when
1.3281 - # linking a shared library.
1.3282 - #
1.3283 - # There doesn't appear to be a way to prevent this compiler from
1.3284 - # explicitly linking system object files so we need to strip them
1.3285 - # from the output so that they don't get included in the library
1.3286 - # dependencies.
1.3287 - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
1.3288 -
1.3289 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
1.3290 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
1.3291 -
1.3292 - # Archives containing C++ object files must be created using
1.3293 - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
1.3294 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
1.3295 - ;;
1.3296 - icpc*)
1.3297 - # Intel C++
1.3298 - with_gnu_ld=yes
1.3299 - # version 8.0 and above of icpc choke on multiply defined symbols
1.3300 - # if we add $predep_objects and $postdep_objects, however 7.1 and
1.3301 - # earlier do not add the objects themselves.
1.3302 - case `$CC -V 2>&1` in
1.3303 - *"Version 7."*)
1.3304 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.3305 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1.3306 - ;;
1.3307 - *) # Version 8.0 or newer
1.3308 - tmp_idyn=
1.3309 - case $host_cpu in
1.3310 - ia64*) tmp_idyn=' -i_dynamic';;
1.3311 - esac
1.3312 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.3313 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1.3314 - ;;
1.3315 - esac
1.3316 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1.3317 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
1.3318 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
1.3319 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
1.3320 - ;;
1.3321 - pgCC*)
1.3322 - # Portland Group C++ compiler
1.3323 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
1.3324 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
1.3325 -
1.3326 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
1.3327 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
1.3328 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
1.3329 - ;;
1.3330 - cxx*)
1.3331 - # Compaq C++
1.3332 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.3333 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
1.3334 -
1.3335 - runpath_var=LD_RUN_PATH
1.3336 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
1.3337 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.3338 -
1.3339 - # Commands to make compiler produce verbose output that lists
1.3340 - # what "hidden" libraries, object files and flags are used when
1.3341 - # linking a shared library.
1.3342 - #
1.3343 - # There doesn't appear to be a way to prevent this compiler from
1.3344 - # explicitly linking system object files so we need to strip them
1.3345 - # from the output so that they don't get included in the library
1.3346 - # dependencies.
1.3347 - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
1.3348 - ;;
1.3349 - esac
1.3350 - ;;
1.3351 - lynxos*)
1.3352 - # FIXME: insert proper C++ library support
1.3353 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.3354 - ;;
1.3355 - m88k*)
1.3356 - # FIXME: insert proper C++ library support
1.3357 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.3358 - ;;
1.3359 - mvs*)
1.3360 - case $cc_basename in
1.3361 - cxx*)
1.3362 - # FIXME: insert proper C++ library support
1.3363 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.3364 - ;;
1.3365 - *)
1.3366 - # FIXME: insert proper C++ library support
1.3367 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.3368 - ;;
1.3369 - esac
1.3370 - ;;
1.3371 - netbsd* | netbsdelf*-gnu)
1.3372 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1.3373 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
1.3374 - wlarc=
1.3375 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
1.3376 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1.3377 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.3378 - fi
1.3379 - # Workaround some broken pre-1.5 toolchains
1.3380 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
1.3381 - ;;
1.3382 - openbsd2*)
1.3383 - # C++ shared libraries are fairly broken
1.3384 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.3385 - ;;
1.3386 - openbsd*)
1.3387 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1.3388 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.3389 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
1.3390 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
1.3391 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.3392 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
1.3393 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1.3394 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
1.3395 - fi
1.3396 - output_verbose_link_cmd='echo'
1.3397 - ;;
1.3398 - osf3*)
1.3399 - case $cc_basename in
1.3400 - KCC*)
1.3401 - # Kuck and Associates, Inc. (KAI) C++ Compiler
1.3402 -
1.3403 - # KCC will only create a shared library if the output file
1.3404 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
1.3405 - # to its proper name (with version) after linking.
1.3406 - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
1.3407 -
1.3408 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
1.3409 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.3410 -
1.3411 - # Archives containing C++ object files must be created using
1.3412 - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
1.3413 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
1.3414 -
1.3415 - ;;
1.3416 - RCC*)
1.3417 - # Rational C++ 2.4.1
1.3418 - # FIXME: insert proper C++ library support
1.3419 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.3420 - ;;
1.3421 - cxx*)
1.3422 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
1.3423 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1.3424 -
1.3425 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
1.3426 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.3427 -
1.3428 - # Commands to make compiler produce verbose output that lists
1.3429 - # what "hidden" libraries, object files and flags are used when
1.3430 - # linking a shared library.
1.3431 - #
1.3432 - # There doesn't appear to be a way to prevent this compiler from
1.3433 - # explicitly linking system object files so we need to strip them
1.3434 - # from the output so that they don't get included in the library
1.3435 - # dependencies.
1.3436 - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
1.3437 - ;;
1.3438 - *)
1.3439 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
1.3440 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
1.3441 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.3442 -
1.3443 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
1.3444 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.3445 -
1.3446 - # Commands to make compiler produce verbose output that lists
1.3447 - # what "hidden" libraries, object files and flags are used when
1.3448 - # linking a shared library.
1.3449 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
1.3450 -
1.3451 - else
1.3452 - # FIXME: insert proper C++ library support
1.3453 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.3454 - fi
1.3455 - ;;
1.3456 - esac
1.3457 - ;;
1.3458 - osf4* | osf5*)
1.3459 - case $cc_basename in
1.3460 - KCC*)
1.3461 - # Kuck and Associates, Inc. (KAI) C++ Compiler
1.3462 -
1.3463 - # KCC will only create a shared library if the output file
1.3464 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
1.3465 - # to its proper name (with version) after linking.
1.3466 - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
1.3467 -
1.3468 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
1.3469 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.3470 -
1.3471 - # Archives containing C++ object files must be created using
1.3472 - # the KAI C++ compiler.
1.3473 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
1.3474 - ;;
1.3475 - RCC*)
1.3476 - # Rational C++ 2.4.1
1.3477 - # FIXME: insert proper C++ library support
1.3478 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.3479 - ;;
1.3480 - cxx*)
1.3481 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
1.3482 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1.3483 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
1.3484 - echo "-hidden">> $lib.exp~
1.3485 - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
1.3486 - $rm $lib.exp'
1.3487 -
1.3488 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
1.3489 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.3490 -
1.3491 - # Commands to make compiler produce verbose output that lists
1.3492 - # what "hidden" libraries, object files and flags are used when
1.3493 - # linking a shared library.
1.3494 - #
1.3495 - # There doesn't appear to be a way to prevent this compiler from
1.3496 - # explicitly linking system object files so we need to strip them
1.3497 - # from the output so that they don't get included in the library
1.3498 - # dependencies.
1.3499 - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
1.3500 - ;;
1.3501 - *)
1.3502 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
1.3503 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
1.3504 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.3505 -
1.3506 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
1.3507 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.3508 -
1.3509 - # Commands to make compiler produce verbose output that lists
1.3510 - # what "hidden" libraries, object files and flags are used when
1.3511 - # linking a shared library.
1.3512 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
1.3513 -
1.3514 - else
1.3515 - # FIXME: insert proper C++ library support
1.3516 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.3517 - fi
1.3518 - ;;
1.3519 - esac
1.3520 - ;;
1.3521 - psos*)
1.3522 - # FIXME: insert proper C++ library support
1.3523 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.3524 - ;;
1.3525 - sunos4*)
1.3526 - case $cc_basename in
1.3527 - CC*)
1.3528 - # Sun C++ 4.x
1.3529 - # FIXME: insert proper C++ library support
1.3530 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.3531 - ;;
1.3532 - lcc*)
1.3533 - # Lucid
1.3534 - # FIXME: insert proper C++ library support
1.3535 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.3536 - ;;
1.3537 - *)
1.3538 - # FIXME: insert proper C++ library support
1.3539 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.3540 - ;;
1.3541 - esac
1.3542 - ;;
1.3543 - solaris*)
1.3544 - case $cc_basename in
1.3545 - CC*)
1.3546 - # Sun C++ 4.2, 5.x and Centerline C++
1.3547 - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
1.3548 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
1.3549 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.3550 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1.3551 - $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
1.3552 -
1.3553 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
1.3554 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.3555 - case $host_os in
1.3556 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
1.3557 - *)
1.3558 - # The C++ compiler is used as linker so we must use $wl
1.3559 - # flag to pass the commands to the underlying system
1.3560 - # linker. We must also pass each convience library through
1.3561 - # to the system linker between allextract/defaultextract.
1.3562 - # The C++ compiler will combine linker options so we
1.3563 - # cannot just pass the convience library names through
1.3564 - # without $wl.
1.3565 - # Supported since Solaris 2.6 (maybe 2.5.1?)
1.3566 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
1.3567 - ;;
1.3568 - esac
1.3569 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1.3570 -
1.3571 - output_verbose_link_cmd='echo'
1.3572 -
1.3573 - # Archives containing C++ object files must be created using
1.3574 - # "CC -xar", where "CC" is the Sun C++ compiler. This is
1.3575 - # necessary to make sure instantiated templates are included
1.3576 - # in the archive.
1.3577 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
1.3578 - ;;
1.3579 - gcx*)
1.3580 - # Green Hills C++ Compiler
1.3581 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
1.3582 -
1.3583 - # The C++ compiler must be used to create the archive.
1.3584 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
1.3585 - ;;
1.3586 - *)
1.3587 - # GNU C++ compiler with Solaris linker
1.3588 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
1.3589 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
1.3590 - if $CC --version | grep -v '^2\.7' > /dev/null; then
1.3591 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
1.3592 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1.3593 - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
1.3594 -
1.3595 - # Commands to make compiler produce verbose output that lists
1.3596 - # what "hidden" libraries, object files and flags are used when
1.3597 - # linking a shared library.
1.3598 - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
1.3599 - else
1.3600 - # g++ 2.7 appears to require `-G' NOT `-shared' on this
1.3601 - # platform.
1.3602 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
1.3603 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1.3604 - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
1.3605 -
1.3606 - # Commands to make compiler produce verbose output that lists
1.3607 - # what "hidden" libraries, object files and flags are used when
1.3608 - # linking a shared library.
1.3609 - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
1.3610 - fi
1.3611 -
1.3612 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
1.3613 - fi
1.3614 - ;;
1.3615 - esac
1.3616 - ;;
1.3617 - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
1.3618 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
1.3619 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1.3620 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.3621 - runpath_var='LD_RUN_PATH'
1.3622 -
1.3623 - case $cc_basename in
1.3624 - CC*)
1.3625 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.3626 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.3627 - ;;
1.3628 - *)
1.3629 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.3630 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.3631 - ;;
1.3632 - esac
1.3633 - ;;
1.3634 - sysv5* | sco3.2v5* | sco5v6*)
1.3635 - # Note: We can NOT use -z defs as we might desire, because we do not
1.3636 - # link with -lc, and that would cause any symbols used from libc to
1.3637 - # always be unresolved, which means just about no library would
1.3638 - # ever link correctly. If we're not using GNU ld we use -z text
1.3639 - # though, which does catch some bad symbols but isn't as heavy-handed
1.3640 - # as -z defs.
1.3641 - # For security reasons, it is highly recommended that you always
1.3642 - # use absolute paths for naming shared libraries, and exclude the
1.3643 - # DT_RUNPATH tag from executables and libraries. But doing so
1.3644 - # requires that you compile everything twice, which is a pain.
1.3645 - # So that behaviour is only enabled if SCOABSPATH is set to a
1.3646 - # non-empty value in the environment. Most likely only useful for
1.3647 - # creating official distributions of packages.
1.3648 - # This is a hack until libtool officially supports absolute path
1.3649 - # names for shared libraries.
1.3650 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
1.3651 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
1.3652 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1.3653 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.3654 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
1.3655 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
1.3656 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1.3657 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
1.3658 - runpath_var='LD_RUN_PATH'
1.3659 -
1.3660 - case $cc_basename in
1.3661 - CC*)
1.3662 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.3663 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.3664 - ;;
1.3665 - *)
1.3666 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.3667 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.3668 - ;;
1.3669 - esac
1.3670 - ;;
1.3671 - tandem*)
1.3672 - case $cc_basename in
1.3673 - NCC*)
1.3674 - # NonStop-UX NCC 3.20
1.3675 - # FIXME: insert proper C++ library support
1.3676 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.3677 - ;;
1.3678 - *)
1.3679 - # FIXME: insert proper C++ library support
1.3680 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.3681 - ;;
1.3682 - esac
1.3683 - ;;
1.3684 - vxworks*)
1.3685 - # FIXME: insert proper C++ library support
1.3686 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.3687 - ;;
1.3688 - *)
1.3689 - # FIXME: insert proper C++ library support
1.3690 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.3691 - ;;
1.3692 -esac
1.3693 -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
1.3694 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
1.3695 -
1.3696 -_LT_AC_TAGVAR(GCC, $1)="$GXX"
1.3697 -_LT_AC_TAGVAR(LD, $1)="$LD"
1.3698 -
1.3699 -AC_LIBTOOL_POSTDEP_PREDEP($1)
1.3700 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
1.3701 -AC_LIBTOOL_PROG_CC_C_O($1)
1.3702 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
1.3703 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
1.3704 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
1.3705 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
1.3706 -
1.3707 -AC_LIBTOOL_CONFIG($1)
1.3708 -
1.3709 -AC_LANG_POP
1.3710 -CC=$lt_save_CC
1.3711 -LDCXX=$LD
1.3712 -LD=$lt_save_LD
1.3713 -GCC=$lt_save_GCC
1.3714 -with_gnu_ldcxx=$with_gnu_ld
1.3715 -with_gnu_ld=$lt_save_with_gnu_ld
1.3716 -lt_cv_path_LDCXX=$lt_cv_path_LD
1.3717 -lt_cv_path_LD=$lt_save_path_LD
1.3718 -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
1.3719 -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
1.3720 -])# AC_LIBTOOL_LANG_CXX_CONFIG
1.3721 -
1.3722 -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
1.3723 -# ------------------------------------
1.3724 -# Figure out "hidden" library dependencies from verbose
1.3725 -# compiler output when linking a shared library.
1.3726 -# Parse the compiler output and extract the necessary
1.3727 -# objects, libraries and library flags.
1.3728 -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
1.3729 -dnl we can't use the lt_simple_compile_test_code here,
1.3730 -dnl because it contains code intended for an executable,
1.3731 -dnl not a library. It's possible we should let each
1.3732 -dnl tag define a new lt_????_link_test_code variable,
1.3733 -dnl but it's only used here...
1.3734 -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
1.3735 -int a;
1.3736 -void foo (void) { a = 0; }
1.3737 -EOF
1.3738 -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
1.3739 -class Foo
1.3740 -{
1.3741 -public:
1.3742 - Foo (void) { a = 0; }
1.3743 -private:
1.3744 - int a;
1.3745 -};
1.3746 -EOF
1.3747 -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
1.3748 - subroutine foo
1.3749 - implicit none
1.3750 - integer*4 a
1.3751 - a=0
1.3752 - return
1.3753 - end
1.3754 -EOF
1.3755 -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
1.3756 -public class foo {
1.3757 - private int a;
1.3758 - public void bar (void) {
1.3759 - a = 0;
1.3760 - }
1.3761 -};
1.3762 -EOF
1.3763 -])
1.3764 -dnl Parse the compiler output and extract the necessary
1.3765 -dnl objects, libraries and library flags.
1.3766 -if AC_TRY_EVAL(ac_compile); then
1.3767 - # Parse the compiler output and extract the necessary
1.3768 - # objects, libraries and library flags.
1.3769 -
1.3770 - # Sentinel used to keep track of whether or not we are before
1.3771 - # the conftest object file.
1.3772 - pre_test_object_deps_done=no
1.3773 -
1.3774 - # The `*' in the case matches for architectures that use `case' in
1.3775 - # $output_verbose_cmd can trigger glob expansion during the loop
1.3776 - # eval without this substitution.
1.3777 - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
1.3778 -
1.3779 - for p in `eval $output_verbose_link_cmd`; do
1.3780 - case $p in
1.3781 -
1.3782 - -L* | -R* | -l*)
1.3783 - # Some compilers place space between "-{L,R}" and the path.
1.3784 - # Remove the space.
1.3785 - if test $p = "-L" \
1.3786 - || test $p = "-R"; then
1.3787 - prev=$p
1.3788 - continue
1.3789 - else
1.3790 - prev=
1.3791 - fi
1.3792 -
1.3793 - if test "$pre_test_object_deps_done" = no; then
1.3794 - case $p in
1.3795 - -L* | -R*)
1.3796 - # Internal compiler library paths should come after those
1.3797 - # provided the user. The postdeps already come after the
1.3798 - # user supplied libs so there is no need to process them.
1.3799 - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
1.3800 - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
1.3801 - else
1.3802 - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
1.3803 - fi
1.3804 - ;;
1.3805 - # The "-l" case would never come before the object being
1.3806 - # linked, so don't bother handling this case.
1.3807 - esac
1.3808 - else
1.3809 - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
1.3810 - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
1.3811 - else
1.3812 - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
1.3813 - fi
1.3814 - fi
1.3815 - ;;
1.3816 -
1.3817 - *.$objext)
1.3818 - # This assumes that the test object file only shows up
1.3819 - # once in the compiler output.
1.3820 - if test "$p" = "conftest.$objext"; then
1.3821 - pre_test_object_deps_done=yes
1.3822 - continue
1.3823 - fi
1.3824 -
1.3825 - if test "$pre_test_object_deps_done" = no; then
1.3826 - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
1.3827 - _LT_AC_TAGVAR(predep_objects, $1)="$p"
1.3828 - else
1.3829 - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
1.3830 - fi
1.3831 - else
1.3832 - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
1.3833 - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
1.3834 - else
1.3835 - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
1.3836 - fi
1.3837 - fi
1.3838 - ;;
1.3839 -
1.3840 - *) ;; # Ignore the rest.
1.3841 -
1.3842 - esac
1.3843 - done
1.3844 -
1.3845 - # Clean up.
1.3846 - rm -f a.out a.exe
1.3847 -else
1.3848 - echo "libtool.m4: error: problem compiling $1 test program"
1.3849 -fi
1.3850 -
1.3851 -$rm -f confest.$objext
1.3852 -
1.3853 -# PORTME: override above test on systems where it is broken
1.3854 -ifelse([$1],[CXX],
1.3855 -[case $host_os in
1.3856 -interix3*)
1.3857 - # Interix 3.5 installs completely hosed .la files for C++, so rather than
1.3858 - # hack all around it, let's just trust "g++" to DTRT.
1.3859 - _LT_AC_TAGVAR(predep_objects,$1)=
1.3860 - _LT_AC_TAGVAR(postdep_objects,$1)=
1.3861 - _LT_AC_TAGVAR(postdeps,$1)=
1.3862 - ;;
1.3863 -
1.3864 -solaris*)
1.3865 - case $cc_basename in
1.3866 - CC*)
1.3867 - # Adding this requires a known-good setup of shared libraries for
1.3868 - # Sun compiler versions before 5.6, else PIC objects from an old
1.3869 - # archive will be linked into the output, leading to subtle bugs.
1.3870 - _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
1.3871 - ;;
1.3872 - esac
1.3873 - ;;
1.3874 -esac
1.3875 -])
1.3876 -
1.3877 -case " $_LT_AC_TAGVAR(postdeps, $1) " in
1.3878 -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
1.3879 -esac
1.3880 -])# AC_LIBTOOL_POSTDEP_PREDEP
1.3881 -
1.3882 -# AC_LIBTOOL_LANG_F77_CONFIG
1.3883 -# --------------------------
1.3884 -# Ensure that the configuration vars for the C compiler are
1.3885 -# suitably defined. Those variables are subsequently used by
1.3886 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1.3887 -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
1.3888 -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
1.3889 -[AC_REQUIRE([AC_PROG_F77])
1.3890 -AC_LANG_PUSH(Fortran 77)
1.3891 -
1.3892 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1.3893 -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
1.3894 -_LT_AC_TAGVAR(always_export_symbols, $1)=no
1.3895 -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
1.3896 -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
1.3897 -_LT_AC_TAGVAR(hardcode_direct, $1)=no
1.3898 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
1.3899 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
1.3900 -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
1.3901 -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
1.3902 -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
1.3903 -_LT_AC_TAGVAR(module_cmds, $1)=
1.3904 -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
1.3905 -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
1.3906 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
1.3907 -_LT_AC_TAGVAR(no_undefined_flag, $1)=
1.3908 -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
1.3909 -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
1.3910 -
1.3911 -# Source file extension for f77 test sources.
1.3912 -ac_ext=f
1.3913 -
1.3914 -# Object file extension for compiled f77 test sources.
1.3915 -objext=o
1.3916 -_LT_AC_TAGVAR(objext, $1)=$objext
1.3917 -
1.3918 -# Code to be used in simple compile tests
1.3919 -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
1.3920 -
1.3921 -# Code to be used in simple link tests
1.3922 -lt_simple_link_test_code=" program t\n end\n"
1.3923 -
1.3924 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
1.3925 -_LT_AC_SYS_COMPILER
1.3926 -
1.3927 -# save warnings/boilerplate of simple test code
1.3928 -_LT_COMPILER_BOILERPLATE
1.3929 -_LT_LINKER_BOILERPLATE
1.3930 -
1.3931 -# Allow CC to be a program name with arguments.
1.3932 -lt_save_CC="$CC"
1.3933 -CC=${F77-"f77"}
1.3934 -compiler=$CC
1.3935 -_LT_AC_TAGVAR(compiler, $1)=$CC
1.3936 -_LT_CC_BASENAME([$compiler])
1.3937 -
1.3938 -AC_MSG_CHECKING([if libtool supports shared libraries])
1.3939 -AC_MSG_RESULT([$can_build_shared])
1.3940 -
1.3941 -AC_MSG_CHECKING([whether to build shared libraries])
1.3942 -test "$can_build_shared" = "no" && enable_shared=no
1.3943 -
1.3944 -# On AIX, shared libraries and static libraries use the same namespace, and
1.3945 -# are all built from PIC.
1.3946 -case $host_os in
1.3947 -aix3*)
1.3948 - test "$enable_shared" = yes && enable_static=no
1.3949 - if test -n "$RANLIB"; then
1.3950 - archive_cmds="$archive_cmds~\$RANLIB \$lib"
1.3951 - postinstall_cmds='$RANLIB $lib'
1.3952 - fi
1.3953 - ;;
1.3954 -aix4* | aix5*)
1.3955 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
1.3956 - test "$enable_shared" = yes && enable_static=no
1.3957 - fi
1.3958 - ;;
1.3959 -esac
1.3960 -AC_MSG_RESULT([$enable_shared])
1.3961 -
1.3962 -AC_MSG_CHECKING([whether to build static libraries])
1.3963 -# Make sure either enable_shared or enable_static is yes.
1.3964 -test "$enable_shared" = yes || enable_static=yes
1.3965 -AC_MSG_RESULT([$enable_static])
1.3966 -
1.3967 -_LT_AC_TAGVAR(GCC, $1)="$G77"
1.3968 -_LT_AC_TAGVAR(LD, $1)="$LD"
1.3969 -
1.3970 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
1.3971 -AC_LIBTOOL_PROG_CC_C_O($1)
1.3972 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
1.3973 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
1.3974 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
1.3975 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
1.3976 -
1.3977 -AC_LIBTOOL_CONFIG($1)
1.3978 -
1.3979 -AC_LANG_POP
1.3980 -CC="$lt_save_CC"
1.3981 -])# AC_LIBTOOL_LANG_F77_CONFIG
1.3982 -
1.3983 -
1.3984 -# AC_LIBTOOL_LANG_GCJ_CONFIG
1.3985 -# --------------------------
1.3986 -# Ensure that the configuration vars for the C compiler are
1.3987 -# suitably defined. Those variables are subsequently used by
1.3988 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1.3989 -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
1.3990 -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
1.3991 -[AC_LANG_SAVE
1.3992 -
1.3993 -# Source file extension for Java test sources.
1.3994 -ac_ext=java
1.3995 -
1.3996 -# Object file extension for compiled Java test sources.
1.3997 -objext=o
1.3998 -_LT_AC_TAGVAR(objext, $1)=$objext
1.3999 -
1.4000 -# Code to be used in simple compile tests
1.4001 -lt_simple_compile_test_code="class foo {}\n"
1.4002 -
1.4003 -# Code to be used in simple link tests
1.4004 -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
1.4005 -
1.4006 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
1.4007 -_LT_AC_SYS_COMPILER
1.4008 -
1.4009 -# save warnings/boilerplate of simple test code
1.4010 -_LT_COMPILER_BOILERPLATE
1.4011 -_LT_LINKER_BOILERPLATE
1.4012 -
1.4013 -# Allow CC to be a program name with arguments.
1.4014 -lt_save_CC="$CC"
1.4015 -CC=${GCJ-"gcj"}
1.4016 -compiler=$CC
1.4017 -_LT_AC_TAGVAR(compiler, $1)=$CC
1.4018 -_LT_CC_BASENAME([$compiler])
1.4019 -
1.4020 -# GCJ did not exist at the time GCC didn't implicitly link libc in.
1.4021 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1.4022 -
1.4023 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
1.4024 -
1.4025 -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
1.4026 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
1.4027 -AC_LIBTOOL_PROG_CC_C_O($1)
1.4028 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
1.4029 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
1.4030 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
1.4031 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
1.4032 -
1.4033 -AC_LIBTOOL_CONFIG($1)
1.4034 -
1.4035 -AC_LANG_RESTORE
1.4036 -CC="$lt_save_CC"
1.4037 -])# AC_LIBTOOL_LANG_GCJ_CONFIG
1.4038 -
1.4039 -
1.4040 -# AC_LIBTOOL_LANG_RC_CONFIG
1.4041 -# -------------------------
1.4042 -# Ensure that the configuration vars for the Windows resource compiler are
1.4043 -# suitably defined. Those variables are subsequently used by
1.4044 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1.4045 -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
1.4046 -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
1.4047 -[AC_LANG_SAVE
1.4048 -
1.4049 -# Source file extension for RC test sources.
1.4050 -ac_ext=rc
1.4051 -
1.4052 -# Object file extension for compiled RC test sources.
1.4053 -objext=o
1.4054 -_LT_AC_TAGVAR(objext, $1)=$objext
1.4055 -
1.4056 -# Code to be used in simple compile tests
1.4057 -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
1.4058 -
1.4059 -# Code to be used in simple link tests
1.4060 -lt_simple_link_test_code="$lt_simple_compile_test_code"
1.4061 -
1.4062 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
1.4063 -_LT_AC_SYS_COMPILER
1.4064 -
1.4065 -# save warnings/boilerplate of simple test code
1.4066 -_LT_COMPILER_BOILERPLATE
1.4067 -_LT_LINKER_BOILERPLATE
1.4068 -
1.4069 -# Allow CC to be a program name with arguments.
1.4070 -lt_save_CC="$CC"
1.4071 -CC=${RC-"windres"}
1.4072 -compiler=$CC
1.4073 -_LT_AC_TAGVAR(compiler, $1)=$CC
1.4074 -_LT_CC_BASENAME([$compiler])
1.4075 -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1.4076 -
1.4077 -AC_LIBTOOL_CONFIG($1)
1.4078 -
1.4079 -AC_LANG_RESTORE
1.4080 -CC="$lt_save_CC"
1.4081 -])# AC_LIBTOOL_LANG_RC_CONFIG
1.4082 -
1.4083 -
1.4084 -# AC_LIBTOOL_CONFIG([TAGNAME])
1.4085 -# ----------------------------
1.4086 -# If TAGNAME is not passed, then create an initial libtool script
1.4087 -# with a default configuration from the untagged config vars. Otherwise
1.4088 -# add code to config.status for appending the configuration named by
1.4089 -# TAGNAME from the matching tagged config vars.
1.4090 -AC_DEFUN([AC_LIBTOOL_CONFIG],
1.4091 -[# The else clause should only fire when bootstrapping the
1.4092 -# libtool distribution, otherwise you forgot to ship ltmain.sh
1.4093 -# with your package, and you will get complaints that there are
1.4094 -# no rules to generate ltmain.sh.
1.4095 -if test -f "$ltmain"; then
1.4096 - # See if we are running on zsh, and set the options which allow our commands through
1.4097 - # without removal of \ escapes.
1.4098 - if test -n "${ZSH_VERSION+set}" ; then
1.4099 - setopt NO_GLOB_SUBST
1.4100 - fi
1.4101 - # Now quote all the things that may contain metacharacters while being
1.4102 - # careful not to overquote the AC_SUBSTed values. We take copies of the
1.4103 - # variables and quote the copies for generation of the libtool script.
1.4104 - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
1.4105 - SED SHELL STRIP \
1.4106 - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
1.4107 - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
1.4108 - deplibs_check_method reload_flag reload_cmds need_locks \
1.4109 - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
1.4110 - lt_cv_sys_global_symbol_to_c_name_address \
1.4111 - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
1.4112 - old_postinstall_cmds old_postuninstall_cmds \
1.4113 - _LT_AC_TAGVAR(compiler, $1) \
1.4114 - _LT_AC_TAGVAR(CC, $1) \
1.4115 - _LT_AC_TAGVAR(LD, $1) \
1.4116 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
1.4117 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
1.4118 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
1.4119 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
1.4120 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
1.4121 - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
1.4122 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
1.4123 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
1.4124 - _LT_AC_TAGVAR(old_archive_cmds, $1) \
1.4125 - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
1.4126 - _LT_AC_TAGVAR(predep_objects, $1) \
1.4127 - _LT_AC_TAGVAR(postdep_objects, $1) \
1.4128 - _LT_AC_TAGVAR(predeps, $1) \
1.4129 - _LT_AC_TAGVAR(postdeps, $1) \
1.4130 - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
1.4131 - _LT_AC_TAGVAR(archive_cmds, $1) \
1.4132 - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
1.4133 - _LT_AC_TAGVAR(postinstall_cmds, $1) \
1.4134 - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
1.4135 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
1.4136 - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
1.4137 - _LT_AC_TAGVAR(no_undefined_flag, $1) \
1.4138 - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
1.4139 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
1.4140 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
1.4141 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
1.4142 - _LT_AC_TAGVAR(hardcode_automatic, $1) \
1.4143 - _LT_AC_TAGVAR(module_cmds, $1) \
1.4144 - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
1.4145 - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
1.4146 - _LT_AC_TAGVAR(exclude_expsyms, $1) \
1.4147 - _LT_AC_TAGVAR(include_expsyms, $1); do
1.4148 -
1.4149 - case $var in
1.4150 - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
1.4151 - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
1.4152 - _LT_AC_TAGVAR(archive_cmds, $1) | \
1.4153 - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
1.4154 - _LT_AC_TAGVAR(module_cmds, $1) | \
1.4155 - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
1.4156 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
1.4157 - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
1.4158 - extract_expsyms_cmds | reload_cmds | finish_cmds | \
1.4159 - postinstall_cmds | postuninstall_cmds | \
1.4160 - old_postinstall_cmds | old_postuninstall_cmds | \
1.4161 - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
1.4162 - # Double-quote double-evaled strings.
1.4163 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
1.4164 - ;;
1.4165 - *)
1.4166 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
1.4167 - ;;
1.4168 - esac
1.4169 - done
1.4170 -
1.4171 - case $lt_echo in
1.4172 - *'\[$]0 --fallback-echo"')
1.4173 - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
1.4174 - ;;
1.4175 - esac
1.4176 -
1.4177 -ifelse([$1], [],
1.4178 - [cfgfile="${ofile}T"
1.4179 - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
1.4180 - $rm -f "$cfgfile"
1.4181 - AC_MSG_NOTICE([creating $ofile])],
1.4182 - [cfgfile="$ofile"])
1.4183 -
1.4184 - cat <<__EOF__ >> "$cfgfile"
1.4185 -ifelse([$1], [],
1.4186 -[#! $SHELL
1.4187 -
1.4188 -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1.4189 -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
1.4190 -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1.4191 -#
1.4192 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
1.4193 -# Free Software Foundation, Inc.
1.4194 -#
1.4195 -# This file is part of GNU Libtool:
1.4196 -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
1.4197 -#
1.4198 -# This program is free software; you can redistribute it and/or modify
1.4199 -# it under the terms of the GNU General Public License as published by
1.4200 -# the Free Software Foundation; either version 2 of the License, or
1.4201 -# (at your option) any later version.
1.4202 -#
1.4203 -# This program is distributed in the hope that it will be useful, but
1.4204 -# WITHOUT ANY WARRANTY; without even the implied warranty of
1.4205 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1.4206 -# General Public License for more details.
1.4207 -#
1.4208 -# You should have received a copy of the GNU General Public License
1.4209 -# along with this program; if not, write to the Free Software
1.4210 -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1.4211 -#
1.4212 -# As a special exception to the GNU General Public License, if you
1.4213 -# distribute this file as part of a program that contains a
1.4214 -# configuration script generated by Autoconf, you may include it under
1.4215 -# the same distribution terms that you use for the rest of that program.
1.4216 -
1.4217 -# A sed program that does not truncate output.
1.4218 -SED=$lt_SED
1.4219 -
1.4220 -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
1.4221 -Xsed="$SED -e 1s/^X//"
1.4222 -
1.4223 -# The HP-UX ksh and POSIX shell print the target directory to stdout
1.4224 -# if CDPATH is set.
1.4225 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.4226 -
1.4227 -# The names of the tagged configurations supported by this script.
1.4228 -available_tags=
1.4229 -
1.4230 -# ### BEGIN LIBTOOL CONFIG],
1.4231 -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
1.4232 -
1.4233 -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1.4234 -
1.4235 -# Shell to use when invoking shell scripts.
1.4236 -SHELL=$lt_SHELL
1.4237 -
1.4238 -# Whether or not to build shared libraries.
1.4239 -build_libtool_libs=$enable_shared
1.4240 -
1.4241 -# Whether or not to build static libraries.
1.4242 -build_old_libs=$enable_static
1.4243 -
1.4244 -# Whether or not to add -lc for building shared libraries.
1.4245 -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
1.4246 -
1.4247 -# Whether or not to disallow shared libs when runtime libs are static
1.4248 -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
1.4249 -
1.4250 -# Whether or not to optimize for fast installation.
1.4251 -fast_install=$enable_fast_install
1.4252 -
1.4253 -# The host system.
1.4254 -host_alias=$host_alias
1.4255 -host=$host
1.4256 -host_os=$host_os
1.4257 -
1.4258 -# The build system.
1.4259 -build_alias=$build_alias
1.4260 -build=$build
1.4261 -build_os=$build_os
1.4262 -
1.4263 -# An echo program that does not interpret backslashes.
1.4264 -echo=$lt_echo
1.4265 -
1.4266 -# The archiver.
1.4267 -AR=$lt_AR
1.4268 -AR_FLAGS=$lt_AR_FLAGS
1.4269 -
1.4270 -# A C compiler.
1.4271 -LTCC=$lt_LTCC
1.4272 -
1.4273 -# LTCC compiler flags.
1.4274 -LTCFLAGS=$lt_LTCFLAGS
1.4275 -
1.4276 -# A language-specific compiler.
1.4277 -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
1.4278 -
1.4279 -# Is the compiler the GNU C compiler?
1.4280 -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
1.4281 -
1.4282 -# An ERE matcher.
1.4283 -EGREP=$lt_EGREP
1.4284 -
1.4285 -# The linker used to build libraries.
1.4286 -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
1.4287 -
1.4288 -# Whether we need hard or soft links.
1.4289 -LN_S=$lt_LN_S
1.4290 -
1.4291 -# A BSD-compatible nm program.
1.4292 -NM=$lt_NM
1.4293 -
1.4294 -# A symbol stripping program
1.4295 -STRIP=$lt_STRIP
1.4296 -
1.4297 -# Used to examine libraries when file_magic_cmd begins "file"
1.4298 -MAGIC_CMD=$MAGIC_CMD
1.4299 -
1.4300 -# Used on cygwin: DLL creation program.
1.4301 -DLLTOOL="$DLLTOOL"
1.4302 -
1.4303 -# Used on cygwin: object dumper.
1.4304 -OBJDUMP="$OBJDUMP"
1.4305 -
1.4306 -# Used on cygwin: assembler.
1.4307 -AS="$AS"
1.4308 -
1.4309 -# The name of the directory that contains temporary libtool files.
1.4310 -objdir=$objdir
1.4311 -
1.4312 -# How to create reloadable object files.
1.4313 -reload_flag=$lt_reload_flag
1.4314 -reload_cmds=$lt_reload_cmds
1.4315 -
1.4316 -# How to pass a linker flag through the compiler.
1.4317 -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
1.4318 -
1.4319 -# Object file suffix (normally "o").
1.4320 -objext="$ac_objext"
1.4321 -
1.4322 -# Old archive suffix (normally "a").
1.4323 -libext="$libext"
1.4324 -
1.4325 -# Shared library suffix (normally ".so").
1.4326 -shrext_cmds='$shrext_cmds'
1.4327 -
1.4328 -# Executable file suffix (normally "").
1.4329 -exeext="$exeext"
1.4330 -
1.4331 -# Additional compiler flags for building library objects.
1.4332 -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
1.4333 -pic_mode=$pic_mode
1.4334 -
1.4335 -# What is the maximum length of a command?
1.4336 -max_cmd_len=$lt_cv_sys_max_cmd_len
1.4337 -
1.4338 -# Does compiler simultaneously support -c and -o options?
1.4339 -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
1.4340 -
1.4341 -# Must we lock files when doing compilation?
1.4342 -need_locks=$lt_need_locks
1.4343 -
1.4344 -# Do we need the lib prefix for modules?
1.4345 -need_lib_prefix=$need_lib_prefix
1.4346 -
1.4347 -# Do we need a version for libraries?
1.4348 -need_version=$need_version
1.4349 -
1.4350 -# Whether dlopen is supported.
1.4351 -dlopen_support=$enable_dlopen
1.4352 -
1.4353 -# Whether dlopen of programs is supported.
1.4354 -dlopen_self=$enable_dlopen_self
1.4355 -
1.4356 -# Whether dlopen of statically linked programs is supported.
1.4357 -dlopen_self_static=$enable_dlopen_self_static
1.4358 -
1.4359 -# Compiler flag to prevent dynamic linking.
1.4360 -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
1.4361 -
1.4362 -# Compiler flag to turn off builtin functions.
1.4363 -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
1.4364 -
1.4365 -# Compiler flag to allow reflexive dlopens.
1.4366 -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
1.4367 -
1.4368 -# Compiler flag to generate shared objects directly from archives.
1.4369 -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
1.4370 -
1.4371 -# Compiler flag to generate thread-safe objects.
1.4372 -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
1.4373 -
1.4374 -# Library versioning type.
1.4375 -version_type=$version_type
1.4376 -
1.4377 -# Format of library name prefix.
1.4378 -libname_spec=$lt_libname_spec
1.4379 -
1.4380 -# List of archive names. First name is the real one, the rest are links.
1.4381 -# The last name is the one that the linker finds with -lNAME.
1.4382 -library_names_spec=$lt_library_names_spec
1.4383 -
1.4384 -# The coded name of the library, if different from the real name.
1.4385 -soname_spec=$lt_soname_spec
1.4386 -
1.4387 -# Commands used to build and install an old-style archive.
1.4388 -RANLIB=$lt_RANLIB
1.4389 -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
1.4390 -old_postinstall_cmds=$lt_old_postinstall_cmds
1.4391 -old_postuninstall_cmds=$lt_old_postuninstall_cmds
1.4392 -
1.4393 -# Create an old-style archive from a shared archive.
1.4394 -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
1.4395 -
1.4396 -# Create a temporary old-style archive to link instead of a shared archive.
1.4397 -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
1.4398 -
1.4399 -# Commands used to build and install a shared archive.
1.4400 -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
1.4401 -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
1.4402 -postinstall_cmds=$lt_postinstall_cmds
1.4403 -postuninstall_cmds=$lt_postuninstall_cmds
1.4404 -
1.4405 -# Commands used to build a loadable module (assumed same as above if empty)
1.4406 -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
1.4407 -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
1.4408 -
1.4409 -# Commands to strip libraries.
1.4410 -old_striplib=$lt_old_striplib
1.4411 -striplib=$lt_striplib
1.4412 -
1.4413 -# Dependencies to place before the objects being linked to create a
1.4414 -# shared library.
1.4415 -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
1.4416 -
1.4417 -# Dependencies to place after the objects being linked to create a
1.4418 -# shared library.
1.4419 -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
1.4420 -
1.4421 -# Dependencies to place before the objects being linked to create a
1.4422 -# shared library.
1.4423 -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
1.4424 -
1.4425 -# Dependencies to place after the objects being linked to create a
1.4426 -# shared library.
1.4427 -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
1.4428 -
1.4429 -# The library search path used internally by the compiler when linking
1.4430 -# a shared library.
1.4431 -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
1.4432 -
1.4433 -# Method to check whether dependent libraries are shared objects.
1.4434 -deplibs_check_method=$lt_deplibs_check_method
1.4435 -
1.4436 -# Command to use when deplibs_check_method == file_magic.
1.4437 -file_magic_cmd=$lt_file_magic_cmd
1.4438 -
1.4439 -# Flag that allows shared libraries with undefined symbols to be built.
1.4440 -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
1.4441 -
1.4442 -# Flag that forces no undefined symbols.
1.4443 -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
1.4444 -
1.4445 -# Commands used to finish a libtool library installation in a directory.
1.4446 -finish_cmds=$lt_finish_cmds
1.4447 -
1.4448 -# Same as above, but a single script fragment to be evaled but not shown.
1.4449 -finish_eval=$lt_finish_eval
1.4450 -
1.4451 -# Take the output of nm and produce a listing of raw symbols and C names.
1.4452 -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1.4453 -
1.4454 -# Transform the output of nm in a proper C declaration
1.4455 -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1.4456 -
1.4457 -# Transform the output of nm in a C name address pair
1.4458 -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1.4459 -
1.4460 -# This is the shared library runtime path variable.
1.4461 -runpath_var=$runpath_var
1.4462 -
1.4463 -# This is the shared library path variable.
1.4464 -shlibpath_var=$shlibpath_var
1.4465 -
1.4466 -# Is shlibpath searched before the hard-coded library search path?
1.4467 -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
1.4468 -
1.4469 -# How to hardcode a shared library path into an executable.
1.4470 -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
1.4471 -
1.4472 -# Whether we should hardcode library paths into libraries.
1.4473 -hardcode_into_libs=$hardcode_into_libs
1.4474 -
1.4475 -# Flag to hardcode \$libdir into a binary during linking.
1.4476 -# This must work even if \$libdir does not exist.
1.4477 -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
1.4478 -
1.4479 -# If ld is used when linking, flag to hardcode \$libdir into
1.4480 -# a binary during linking. This must work even if \$libdir does
1.4481 -# not exist.
1.4482 -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
1.4483 -
1.4484 -# Whether we need a single -rpath flag with a separated argument.
1.4485 -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
1.4486 -
1.4487 -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
1.4488 -# resulting binary.
1.4489 -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
1.4490 -
1.4491 -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
1.4492 -# resulting binary.
1.4493 -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
1.4494 -
1.4495 -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
1.4496 -# the resulting binary.
1.4497 -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
1.4498 -
1.4499 -# Set to yes if building a shared library automatically hardcodes DIR into the library
1.4500 -# and all subsequent libraries and executables linked against it.
1.4501 -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
1.4502 -
1.4503 -# Variables whose values should be saved in libtool wrapper scripts and
1.4504 -# restored at relink time.
1.4505 -variables_saved_for_relink="$variables_saved_for_relink"
1.4506 -
1.4507 -# Whether libtool must link a program against all its dependency libraries.
1.4508 -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
1.4509 -
1.4510 -# Compile-time system search path for libraries
1.4511 -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1.4512 -
1.4513 -# Run-time system search path for libraries
1.4514 -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1.4515 -
1.4516 -# Fix the shell variable \$srcfile for the compiler.
1.4517 -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
1.4518 -
1.4519 -# Set to yes if exported symbols are required.
1.4520 -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
1.4521 -
1.4522 -# The commands to list exported symbols.
1.4523 -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
1.4524 -
1.4525 -# The commands to extract the exported symbol list from a shared archive.
1.4526 -extract_expsyms_cmds=$lt_extract_expsyms_cmds
1.4527 -
1.4528 -# Symbols that should not be listed in the preloaded symbols.
1.4529 -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
1.4530 -
1.4531 -# Symbols that must always be exported.
1.4532 -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
1.4533 -
1.4534 -ifelse([$1],[],
1.4535 -[# ### END LIBTOOL CONFIG],
1.4536 -[# ### END LIBTOOL TAG CONFIG: $tagname])
1.4537 -
1.4538 -__EOF__
1.4539 -
1.4540 -ifelse([$1],[], [
1.4541 - case $host_os in
1.4542 - aix3*)
1.4543 - cat <<\EOF >> "$cfgfile"
1.4544 -
1.4545 -# AIX sometimes has problems with the GCC collect2 program. For some
1.4546 -# reason, if we set the COLLECT_NAMES environment variable, the problems
1.4547 -# vanish in a puff of smoke.
1.4548 -if test "X${COLLECT_NAMES+set}" != Xset; then
1.4549 - COLLECT_NAMES=
1.4550 - export COLLECT_NAMES
1.4551 -fi
1.4552 -EOF
1.4553 - ;;
1.4554 - esac
1.4555 -
1.4556 - # We use sed instead of cat because bash on DJGPP gets confused if
1.4557 - # if finds mixed CR/LF and LF-only lines. Since sed operates in
1.4558 - # text mode, it properly converts lines to CR/LF. This bash problem
1.4559 - # is reportedly fixed, but why not run on old versions too?
1.4560 - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
1.4561 -
1.4562 - mv -f "$cfgfile" "$ofile" || \
1.4563 - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1.4564 - chmod +x "$ofile"
1.4565 -])
1.4566 -else
1.4567 - # If there is no Makefile yet, we rely on a make rule to execute
1.4568 - # `config.status --recheck' to rerun these tests and create the
1.4569 - # libtool script then.
1.4570 - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
1.4571 - if test -f "$ltmain_in"; then
1.4572 - test -f Makefile && make "$ltmain"
1.4573 - fi
1.4574 -fi
1.4575 -])# AC_LIBTOOL_CONFIG
1.4576 -
1.4577 -
1.4578 -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
1.4579 -# -------------------------------------------
1.4580 -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
1.4581 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1.4582 -
1.4583 -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
1.4584 -
1.4585 -if test "$GCC" = yes; then
1.4586 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
1.4587 -
1.4588 - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
1.4589 - lt_cv_prog_compiler_rtti_exceptions,
1.4590 - [-fno-rtti -fno-exceptions], [],
1.4591 - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
1.4592 -fi
1.4593 -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
1.4594 -
1.4595 -
1.4596 -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1.4597 -# ---------------------------------
1.4598 -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
1.4599 -[AC_REQUIRE([AC_CANONICAL_HOST])
1.4600 -AC_REQUIRE([AC_PROG_NM])
1.4601 -AC_REQUIRE([AC_OBJEXT])
1.4602 -# Check for command to grab the raw symbol name followed by C symbol from nm.
1.4603 -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
1.4604 -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
1.4605 -[
1.4606 -# These are sane defaults that work on at least a few old systems.
1.4607 -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.4608 -
1.4609 -# Character class describing NM global symbol codes.
1.4610 -symcode='[[BCDEGRST]]'
1.4611 -
1.4612 -# Regexp to match symbols that can be accessed directly from C.
1.4613 -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
1.4614 -
1.4615 -# Transform an extracted symbol line into a proper C declaration
1.4616 -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
1.4617 -
1.4618 -# Transform an extracted symbol line into symbol name and symbol address
1.4619 -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
1.4620 -
1.4621 -# Define system-specific variables.
1.4622 -case $host_os in
1.4623 -aix*)
1.4624 - symcode='[[BCDT]]'
1.4625 - ;;
1.4626 -cygwin* | mingw* | pw32*)
1.4627 - symcode='[[ABCDGISTW]]'
1.4628 - ;;
1.4629 -hpux*) # Its linker distinguishes data from code symbols
1.4630 - if test "$host_cpu" = ia64; then
1.4631 - symcode='[[ABCDEGRST]]'
1.4632 - fi
1.4633 - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1.4634 - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
1.4635 - ;;
1.4636 -linux* | k*bsd*-gnu)
1.4637 - if test "$host_cpu" = ia64; then
1.4638 - symcode='[[ABCDGIRSTW]]'
1.4639 - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1.4640 - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
1.4641 - fi
1.4642 - ;;
1.4643 -irix* | nonstopux*)
1.4644 - symcode='[[BCDEGRST]]'
1.4645 - ;;
1.4646 -osf*)
1.4647 - symcode='[[BCDEGQRST]]'
1.4648 - ;;
1.4649 -solaris*)
1.4650 - symcode='[[BDRT]]'
1.4651 - ;;
1.4652 -sco3.2v5*)
1.4653 - symcode='[[DT]]'
1.4654 - ;;
1.4655 -sysv4.2uw2*)
1.4656 - symcode='[[DT]]'
1.4657 - ;;
1.4658 -sysv5* | sco5v6* | unixware* | OpenUNIX*)
1.4659 - symcode='[[ABDT]]'
1.4660 - ;;
1.4661 -sysv4)
1.4662 - symcode='[[DFNSTU]]'
1.4663 - ;;
1.4664 -esac
1.4665 -
1.4666 -# Handle CRLF in mingw tool chain
1.4667 -opt_cr=
1.4668 -case $build_os in
1.4669 -mingw*)
1.4670 - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1.4671 - ;;
1.4672 -esac
1.4673 -
1.4674 -# If we're using GNU nm, then use its standard symbol codes.
1.4675 -case `$NM -V 2>&1` in
1.4676 -*GNU* | *'with BFD'*)
1.4677 - symcode='[[ABCDGIRSTW]]' ;;
1.4678 -esac
1.4679 -
1.4680 -# Try without a prefix undercore, then with it.
1.4681 -for ac_symprfx in "" "_"; do
1.4682 -
1.4683 - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
1.4684 - symxfrm="\\1 $ac_symprfx\\2 \\2"
1.4685 -
1.4686 - # Write the raw and C identifiers.
1.4687 - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1.4688 -
1.4689 - # Check to see that the pipe works correctly.
1.4690 - pipe_works=no
1.4691 -
1.4692 - rm -f conftest*
1.4693 - cat > conftest.$ac_ext <<EOF
1.4694 -#ifdef __cplusplus
1.4695 -extern "C" {
1.4696 -#endif
1.4697 -char nm_test_var;
1.4698 -void nm_test_func(){}
1.4699 -#ifdef __cplusplus
1.4700 -}
1.4701 -#endif
1.4702 -int main(){nm_test_var='a';nm_test_func();return(0);}
1.4703 -EOF
1.4704 -
1.4705 - if AC_TRY_EVAL(ac_compile); then
1.4706 - # Now try to grab the symbols.
1.4707 - nlist=conftest.nm
1.4708 - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
1.4709 - # Try sorting and uniquifying the output.
1.4710 - if sort "$nlist" | uniq > "$nlist"T; then
1.4711 - mv -f "$nlist"T "$nlist"
1.4712 - else
1.4713 - rm -f "$nlist"T
1.4714 - fi
1.4715 -
1.4716 - # Make sure that we snagged all the symbols we need.
1.4717 - if grep ' nm_test_var$' "$nlist" >/dev/null; then
1.4718 - if grep ' nm_test_func$' "$nlist" >/dev/null; then
1.4719 - cat <<EOF > conftest.$ac_ext
1.4720 -#ifdef __cplusplus
1.4721 -extern "C" {
1.4722 -#endif
1.4723 -
1.4724 -EOF
1.4725 - # Now generate the symbol file.
1.4726 - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
1.4727 -
1.4728 - cat <<EOF >> conftest.$ac_ext
1.4729 -#if defined (__STDC__) && __STDC__
1.4730 -# define lt_ptr_t void *
1.4731 -#else
1.4732 -# define lt_ptr_t char *
1.4733 -# define const
1.4734 -#endif
1.4735 -
1.4736 -/* The mapping between symbol names and symbols. */
1.4737 -const struct {
1.4738 - const char *name;
1.4739 - lt_ptr_t address;
1.4740 -}
1.4741 -lt_preloaded_symbols[[]] =
1.4742 -{
1.4743 -EOF
1.4744 - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
1.4745 - cat <<\EOF >> conftest.$ac_ext
1.4746 - {0, (lt_ptr_t) 0}
1.4747 -};
1.4748 -
1.4749 -#ifdef __cplusplus
1.4750 -}
1.4751 -#endif
1.4752 -EOF
1.4753 - # Now try linking the two files.
1.4754 - mv conftest.$ac_objext conftstm.$ac_objext
1.4755 - lt_save_LIBS="$LIBS"
1.4756 - lt_save_CFLAGS="$CFLAGS"
1.4757 - LIBS="conftstm.$ac_objext"
1.4758 - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
1.4759 - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
1.4760 - pipe_works=yes
1.4761 - fi
1.4762 - LIBS="$lt_save_LIBS"
1.4763 - CFLAGS="$lt_save_CFLAGS"
1.4764 - else
1.4765 - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
1.4766 - fi
1.4767 - else
1.4768 - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
1.4769 - fi
1.4770 - else
1.4771 - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
1.4772 - fi
1.4773 - else
1.4774 - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
1.4775 - cat conftest.$ac_ext >&5
1.4776 - fi
1.4777 - rm -f conftest* conftst*
1.4778 -
1.4779 - # Do not use the global_symbol_pipe unless it works.
1.4780 - if test "$pipe_works" = yes; then
1.4781 - break
1.4782 - else
1.4783 - lt_cv_sys_global_symbol_pipe=
1.4784 - fi
1.4785 -done
1.4786 -])
1.4787 -if test -z "$lt_cv_sys_global_symbol_pipe"; then
1.4788 - lt_cv_sys_global_symbol_to_cdecl=
1.4789 -fi
1.4790 -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.4791 - AC_MSG_RESULT(failed)
1.4792 -else
1.4793 - AC_MSG_RESULT(ok)
1.4794 -fi
1.4795 -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1.4796 -
1.4797 -
1.4798 -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
1.4799 -# ---------------------------------------
1.4800 -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
1.4801 -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
1.4802 -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
1.4803 -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
1.4804 -
1.4805 -AC_MSG_CHECKING([for $compiler option to produce PIC])
1.4806 - ifelse([$1],[CXX],[
1.4807 - # C++ specific cases for pic, static, wl, etc.
1.4808 - if test "$GXX" = yes; then
1.4809 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.4810 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
1.4811 -
1.4812 - case $host_os in
1.4813 - aix*)
1.4814 - # All AIX code is PIC.
1.4815 - if test "$host_cpu" = ia64; then
1.4816 - # AIX 5 now supports IA64 processor
1.4817 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.4818 - fi
1.4819 - ;;
1.4820 - amigaos*)
1.4821 - # FIXME: we need at least 68020 code to build shared libraries, but
1.4822 - # adding the `-m68020' flag to GCC prevents building anything better,
1.4823 - # like `-m68040'.
1.4824 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
1.4825 - ;;
1.4826 - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1.4827 - # PIC is the default for these OSes.
1.4828 - ;;
1.4829 - mingw* | os2* | pw32*)
1.4830 - # This hack is so that the source file can tell whether it is being
1.4831 - # built for inclusion in a dll (and should export symbols for example).
1.4832 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
1.4833 - ;;
1.4834 - darwin* | rhapsody*)
1.4835 - # PIC is the default on this platform
1.4836 - # Common symbols not allowed in MH_DYLIB files
1.4837 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
1.4838 - ;;
1.4839 - *djgpp*)
1.4840 - # DJGPP does not support shared libraries at all
1.4841 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
1.4842 - ;;
1.4843 - interix3*)
1.4844 - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
1.4845 - # Instead, we relocate shared libraries at runtime.
1.4846 - ;;
1.4847 - sysv4*MP*)
1.4848 - if test -d /usr/nec; then
1.4849 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
1.4850 - fi
1.4851 - ;;
1.4852 - hpux*)
1.4853 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
1.4854 - # not for PA HP-UX.
1.4855 - case $host_cpu in
1.4856 - hppa*64*|ia64*)
1.4857 - ;;
1.4858 - *)
1.4859 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
1.4860 - ;;
1.4861 - esac
1.4862 - ;;
1.4863 - *)
1.4864 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
1.4865 - ;;
1.4866 - esac
1.4867 - else
1.4868 - case $host_os in
1.4869 - aix4* | aix5*)
1.4870 - # All AIX code is PIC.
1.4871 - if test "$host_cpu" = ia64; then
1.4872 - # AIX 5 now supports IA64 processor
1.4873 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.4874 - else
1.4875 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
1.4876 - fi
1.4877 - ;;
1.4878 - chorus*)
1.4879 - case $cc_basename in
1.4880 - cxch68*)
1.4881 - # Green Hills C++ Compiler
1.4882 - # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
1.4883 - ;;
1.4884 - esac
1.4885 - ;;
1.4886 - darwin*)
1.4887 - # PIC is the default on this platform
1.4888 - # Common symbols not allowed in MH_DYLIB files
1.4889 - case $cc_basename in
1.4890 - xlc*)
1.4891 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
1.4892 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.4893 - ;;
1.4894 - esac
1.4895 - ;;
1.4896 - dgux*)
1.4897 - case $cc_basename in
1.4898 - ec++*)
1.4899 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1.4900 - ;;
1.4901 - ghcx*)
1.4902 - # Green Hills C++ Compiler
1.4903 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
1.4904 - ;;
1.4905 - *)
1.4906 - ;;
1.4907 - esac
1.4908 - ;;
1.4909 - freebsd* | dragonfly*)
1.4910 - # FreeBSD uses GNU C++
1.4911 - ;;
1.4912 - hpux9* | hpux10* | hpux11*)
1.4913 - case $cc_basename in
1.4914 - CC*)
1.4915 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.4916 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
1.4917 - if test "$host_cpu" != ia64; then
1.4918 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
1.4919 - fi
1.4920 - ;;
1.4921 - aCC*)
1.4922 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.4923 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
1.4924 - case $host_cpu in
1.4925 - hppa*64*|ia64*)
1.4926 - # +Z the default
1.4927 - ;;
1.4928 - *)
1.4929 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
1.4930 - ;;
1.4931 - esac
1.4932 - ;;
1.4933 - *)
1.4934 - ;;
1.4935 - esac
1.4936 - ;;
1.4937 - interix*)
1.4938 - # This is c89, which is MS Visual C++ (no shared libs)
1.4939 - # Anyone wants to do a port?
1.4940 - ;;
1.4941 - irix5* | irix6* | nonstopux*)
1.4942 - case $cc_basename in
1.4943 - CC*)
1.4944 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.4945 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
1.4946 - # CC pic flag -KPIC is the default.
1.4947 - ;;
1.4948 - *)
1.4949 - ;;
1.4950 - esac
1.4951 - ;;
1.4952 - linux* | k*bsd*-gnu)
1.4953 - case $cc_basename in
1.4954 - KCC*)
1.4955 - # KAI C++ Compiler
1.4956 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
1.4957 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
1.4958 - ;;
1.4959 - icpc* | ecpc*)
1.4960 - # Intel C++
1.4961 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.4962 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1.4963 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
1.4964 - ;;
1.4965 - pgCC*)
1.4966 - # Portland Group C++ compiler.
1.4967 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.4968 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
1.4969 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.4970 - ;;
1.4971 - cxx*)
1.4972 - # Compaq C++
1.4973 - # Make sure the PIC flag is empty. It appears that all Alpha
1.4974 - # Linux and Compaq Tru64 Unix objects are PIC.
1.4975 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
1.4976 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
1.4977 - ;;
1.4978 - *)
1.4979 - ;;
1.4980 - esac
1.4981 - ;;
1.4982 - lynxos*)
1.4983 - ;;
1.4984 - m88k*)
1.4985 - ;;
1.4986 - mvs*)
1.4987 - case $cc_basename in
1.4988 - cxx*)
1.4989 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
1.4990 - ;;
1.4991 - *)
1.4992 - ;;
1.4993 - esac
1.4994 - ;;
1.4995 - netbsd* | netbsdelf*-gnu)
1.4996 - ;;
1.4997 - osf3* | osf4* | osf5*)
1.4998 - case $cc_basename in
1.4999 - KCC*)
1.5000 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
1.5001 - ;;
1.5002 - RCC*)
1.5003 - # Rational C++ 2.4.1
1.5004 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
1.5005 - ;;
1.5006 - cxx*)
1.5007 - # Digital/Compaq C++
1.5008 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.5009 - # Make sure the PIC flag is empty. It appears that all Alpha
1.5010 - # Linux and Compaq Tru64 Unix objects are PIC.
1.5011 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
1.5012 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
1.5013 - ;;
1.5014 - *)
1.5015 - ;;
1.5016 - esac
1.5017 - ;;
1.5018 - psos*)
1.5019 - ;;
1.5020 - solaris*)
1.5021 - case $cc_basename in
1.5022 - CC*)
1.5023 - # Sun C++ 4.2, 5.x and Centerline C++
1.5024 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1.5025 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.5026 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
1.5027 - ;;
1.5028 - gcx*)
1.5029 - # Green Hills C++ Compiler
1.5030 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
1.5031 - ;;
1.5032 - *)
1.5033 - ;;
1.5034 - esac
1.5035 - ;;
1.5036 - sunos4*)
1.5037 - case $cc_basename in
1.5038 - CC*)
1.5039 - # Sun C++ 4.x
1.5040 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
1.5041 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.5042 - ;;
1.5043 - lcc*)
1.5044 - # Lucid
1.5045 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
1.5046 - ;;
1.5047 - *)
1.5048 - ;;
1.5049 - esac
1.5050 - ;;
1.5051 - tandem*)
1.5052 - case $cc_basename in
1.5053 - NCC*)
1.5054 - # NonStop-UX NCC 3.20
1.5055 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1.5056 - ;;
1.5057 - *)
1.5058 - ;;
1.5059 - esac
1.5060 - ;;
1.5061 - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
1.5062 - case $cc_basename in
1.5063 - CC*)
1.5064 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.5065 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1.5066 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.5067 - ;;
1.5068 - esac
1.5069 - ;;
1.5070 - vxworks*)
1.5071 - ;;
1.5072 - *)
1.5073 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
1.5074 - ;;
1.5075 - esac
1.5076 - fi
1.5077 -],
1.5078 -[
1.5079 - if test "$GCC" = yes; then
1.5080 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.5081 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
1.5082 -
1.5083 - case $host_os in
1.5084 - aix*)
1.5085 - # All AIX code is PIC.
1.5086 - if test "$host_cpu" = ia64; then
1.5087 - # AIX 5 now supports IA64 processor
1.5088 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.5089 - fi
1.5090 - ;;
1.5091 -
1.5092 - amigaos*)
1.5093 - # FIXME: we need at least 68020 code to build shared libraries, but
1.5094 - # adding the `-m68020' flag to GCC prevents building anything better,
1.5095 - # like `-m68040'.
1.5096 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
1.5097 - ;;
1.5098 -
1.5099 - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1.5100 - # PIC is the default for these OSes.
1.5101 - ;;
1.5102 -
1.5103 - mingw* | pw32* | os2*)
1.5104 - # This hack is so that the source file can tell whether it is being
1.5105 - # built for inclusion in a dll (and should export symbols for example).
1.5106 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
1.5107 - ;;
1.5108 -
1.5109 - darwin* | rhapsody*)
1.5110 - # PIC is the default on this platform
1.5111 - # Common symbols not allowed in MH_DYLIB files
1.5112 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
1.5113 - ;;
1.5114 -
1.5115 - interix3*)
1.5116 - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
1.5117 - # Instead, we relocate shared libraries at runtime.
1.5118 - ;;
1.5119 -
1.5120 - msdosdjgpp*)
1.5121 - # Just because we use GCC doesn't mean we suddenly get shared libraries
1.5122 - # on systems that don't support them.
1.5123 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
1.5124 - enable_shared=no
1.5125 - ;;
1.5126 -
1.5127 - sysv4*MP*)
1.5128 - if test -d /usr/nec; then
1.5129 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
1.5130 - fi
1.5131 - ;;
1.5132 -
1.5133 - hpux*)
1.5134 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
1.5135 - # not for PA HP-UX.
1.5136 - case $host_cpu in
1.5137 - hppa*64*|ia64*)
1.5138 - # +Z the default
1.5139 - ;;
1.5140 - *)
1.5141 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
1.5142 - ;;
1.5143 - esac
1.5144 - ;;
1.5145 -
1.5146 - *)
1.5147 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
1.5148 - ;;
1.5149 - esac
1.5150 - else
1.5151 - # PORTME Check for flag to pass linker flags through the system compiler.
1.5152 - case $host_os in
1.5153 - aix*)
1.5154 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.5155 - if test "$host_cpu" = ia64; then
1.5156 - # AIX 5 now supports IA64 processor
1.5157 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.5158 - else
1.5159 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
1.5160 - fi
1.5161 - ;;
1.5162 - darwin*)
1.5163 - # PIC is the default on this platform
1.5164 - # Common symbols not allowed in MH_DYLIB files
1.5165 - case $cc_basename in
1.5166 - xlc*)
1.5167 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
1.5168 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.5169 - ;;
1.5170 - esac
1.5171 - ;;
1.5172 -
1.5173 - mingw* | pw32* | os2*)
1.5174 - # This hack is so that the source file can tell whether it is being
1.5175 - # built for inclusion in a dll (and should export symbols for example).
1.5176 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
1.5177 - ;;
1.5178 -
1.5179 - hpux9* | hpux10* | hpux11*)
1.5180 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.5181 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
1.5182 - # not for PA HP-UX.
1.5183 - case $host_cpu in
1.5184 - hppa*64*|ia64*)
1.5185 - # +Z the default
1.5186 - ;;
1.5187 - *)
1.5188 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
1.5189 - ;;
1.5190 - esac
1.5191 - # Is there a better lt_prog_compiler_static that works with the bundled CC?
1.5192 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
1.5193 - ;;
1.5194 -
1.5195 - irix5* | irix6* | nonstopux*)
1.5196 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.5197 - # PIC (with -KPIC) is the default.
1.5198 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
1.5199 - ;;
1.5200 -
1.5201 - newsos6)
1.5202 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1.5203 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.5204 - ;;
1.5205 -
1.5206 - linux* | k*bsd*-gnu)
1.5207 - case $cc_basename in
1.5208 - icc* | ecc*)
1.5209 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.5210 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1.5211 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
1.5212 - ;;
1.5213 - pgcc* | pgf77* | pgf90* | pgf95*)
1.5214 - # Portland Group compilers (*not* the Pentium gcc compiler,
1.5215 - # which looks to be a dead project)
1.5216 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.5217 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
1.5218 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.5219 - ;;
1.5220 - ccc*)
1.5221 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.5222 - # All Alpha code is PIC.
1.5223 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
1.5224 - ;;
1.5225 - esac
1.5226 - ;;
1.5227 -
1.5228 - osf3* | osf4* | osf5*)
1.5229 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.5230 - # All OSF/1 code is PIC.
1.5231 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
1.5232 - ;;
1.5233 -
1.5234 - solaris*)
1.5235 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1.5236 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.5237 - case $cc_basename in
1.5238 - f77* | f90* | f95*)
1.5239 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
1.5240 - *)
1.5241 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
1.5242 - esac
1.5243 - ;;
1.5244 -
1.5245 - sunos4*)
1.5246 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
1.5247 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
1.5248 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.5249 - ;;
1.5250 -
1.5251 - sysv4 | sysv4.2uw2* | sysv4.3*)
1.5252 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.5253 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1.5254 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.5255 - ;;
1.5256 -
1.5257 - sysv4*MP*)
1.5258 - if test -d /usr/nec ;then
1.5259 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
1.5260 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.5261 - fi
1.5262 - ;;
1.5263 -
1.5264 - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
1.5265 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.5266 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
1.5267 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.5268 - ;;
1.5269 -
1.5270 - unicos*)
1.5271 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
1.5272 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
1.5273 - ;;
1.5274 -
1.5275 - uts4*)
1.5276 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
1.5277 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
1.5278 - ;;
1.5279 -
1.5280 - *)
1.5281 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
1.5282 - ;;
1.5283 - esac
1.5284 - fi
1.5285 -])
1.5286 -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
1.5287 -
1.5288 -#
1.5289 -# Check to make sure the PIC flag actually works.
1.5290 -#
1.5291 -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
1.5292 - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
1.5293 - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
1.5294 - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
1.5295 - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
1.5296 - "" | " "*) ;;
1.5297 - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
1.5298 - esac],
1.5299 - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
1.5300 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
1.5301 -fi
1.5302 -case $host_os in
1.5303 - # For platforms which do not support PIC, -DPIC is meaningless:
1.5304 - *djgpp*)
1.5305 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
1.5306 - ;;
1.5307 - *)
1.5308 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
1.5309 - ;;
1.5310 -esac
1.5311 -
1.5312 -#
1.5313 -# Check to make sure the static flag actually works.
1.5314 -#
1.5315 -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
1.5316 -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
1.5317 - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
1.5318 - $lt_tmp_static_flag,
1.5319 - [],
1.5320 - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
1.5321 -])
1.5322 -
1.5323 -
1.5324 -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
1.5325 -# ------------------------------------
1.5326 -# See if the linker supports building shared libraries.
1.5327 -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
1.5328 -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
1.5329 -ifelse([$1],[CXX],[
1.5330 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
1.5331 - case $host_os in
1.5332 - aix4* | aix5*)
1.5333 - # If we're using GNU nm, then we don't want the "-C" option.
1.5334 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
1.5335 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
1.5336 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
1.5337 - else
1.5338 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
1.5339 - fi
1.5340 - ;;
1.5341 - pw32*)
1.5342 - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
1.5343 - ;;
1.5344 - cygwin* | mingw*)
1.5345 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
1.5346 - ;;
1.5347 - linux* | k*bsd*-gnu)
1.5348 - _LT_AC_TAGVAR(link_all_deplibs, $1)=no
1.5349 - ;;
1.5350 - *)
1.5351 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
1.5352 - ;;
1.5353 - esac
1.5354 -],[
1.5355 - runpath_var=
1.5356 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
1.5357 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
1.5358 - _LT_AC_TAGVAR(archive_cmds, $1)=
1.5359 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
1.5360 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
1.5361 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
1.5362 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
1.5363 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
1.5364 - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
1.5365 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
1.5366 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
1.5367 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
1.5368 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
1.5369 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
1.5370 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1.5371 - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
1.5372 - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
1.5373 - _LT_AC_TAGVAR(module_cmds, $1)=
1.5374 - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
1.5375 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
1.5376 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
1.5377 - # include_expsyms should be a list of space-separated symbols to be *always*
1.5378 - # included in the symbol list
1.5379 - _LT_AC_TAGVAR(include_expsyms, $1)=
1.5380 - # exclude_expsyms can be an extended regexp of symbols to exclude
1.5381 - # it will be wrapped by ` (' and `)$', so one must not match beginning or
1.5382 - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
1.5383 - # as well as any symbol that contains `d'.
1.5384 - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
1.5385 - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
1.5386 - # platforms (ab)use it in PIC code, but their linkers get confused if
1.5387 - # the symbol is explicitly referenced. Since portable code cannot
1.5388 - # rely on this symbol name, it's probably fine to never include it in
1.5389 - # preloaded symbol tables.
1.5390 - extract_expsyms_cmds=
1.5391 - # Just being paranoid about ensuring that cc_basename is set.
1.5392 - _LT_CC_BASENAME([$compiler])
1.5393 - case $host_os in
1.5394 - cygwin* | mingw* | pw32*)
1.5395 - # FIXME: the MSVC++ port hasn't been tested in a loooong time
1.5396 - # When not using gcc, we currently assume that we are using
1.5397 - # Microsoft Visual C++.
1.5398 - if test "$GCC" != yes; then
1.5399 - with_gnu_ld=no
1.5400 - fi
1.5401 - ;;
1.5402 - interix*)
1.5403 - # we just hope/assume this is gcc and not c89 (= MSVC++)
1.5404 - with_gnu_ld=yes
1.5405 - ;;
1.5406 - openbsd*)
1.5407 - with_gnu_ld=no
1.5408 - ;;
1.5409 - esac
1.5410 -
1.5411 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
1.5412 - if test "$with_gnu_ld" = yes; then
1.5413 - # If archive_cmds runs LD, not CC, wlarc should be empty
1.5414 - wlarc='${wl}'
1.5415 -
1.5416 - # Set some defaults for GNU ld with shared library support. These
1.5417 - # are reset later if shared libraries are not supported. Putting them
1.5418 - # here allows them to be overridden if necessary.
1.5419 - runpath_var=LD_RUN_PATH
1.5420 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
1.5421 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
1.5422 - # ancient GNU ld didn't support --whole-archive et. al.
1.5423 - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
1.5424 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
1.5425 - else
1.5426 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
1.5427 - fi
1.5428 - supports_anon_versioning=no
1.5429 - case `$LD -v 2>/dev/null` in
1.5430 - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
1.5431 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
1.5432 - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
1.5433 - *\ 2.11.*) ;; # other 2.11 versions
1.5434 - *) supports_anon_versioning=yes ;;
1.5435 - esac
1.5436 -
1.5437 - # See if GNU ld supports shared libraries.
1.5438 - case $host_os in
1.5439 - aix3* | aix4* | aix5*)
1.5440 - # On AIX/PPC, the GNU linker is very broken
1.5441 - if test "$host_cpu" != ia64; then
1.5442 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.5443 - cat <<EOF 1>&2
1.5444 -
1.5445 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
1.5446 -*** to be unable to reliably create shared libraries on AIX.
1.5447 -*** Therefore, libtool is disabling shared libraries support. If you
1.5448 -*** really care for shared libraries, you may want to modify your PATH
1.5449 -*** so that a non-GNU linker is found, and then restart.
1.5450 -
1.5451 -EOF
1.5452 - fi
1.5453 - ;;
1.5454 -
1.5455 - amigaos*)
1.5456 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
1.5457 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1.5458 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
1.5459 -
1.5460 - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
1.5461 - # that the semantics of dynamic libraries on AmigaOS, at least up
1.5462 - # to version 4, is to share data among multiple programs linked
1.5463 - # with the same dynamic library. Since this doesn't match the
1.5464 - # behavior of shared libraries on other platforms, we can't use
1.5465 - # them.
1.5466 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.5467 - ;;
1.5468 -
1.5469 - beos*)
1.5470 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1.5471 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
1.5472 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
1.5473 - # support --undefined. This deserves some investigation. FIXME
1.5474 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.5475 - else
1.5476 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.5477 - fi
1.5478 - ;;
1.5479 -
1.5480 - cygwin* | mingw* | pw32*)
1.5481 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
1.5482 - # as there is no search path for DLLs.
1.5483 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1.5484 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
1.5485 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
1.5486 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
1.5487 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
1.5488 -
1.5489 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1.5490 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.5491 - # If the export-symbols file already is a .def file (1st line
1.5492 - # is EXPORTS), use it as is; otherwise, prepend...
1.5493 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
1.5494 - cp $export_symbols $output_objdir/$soname.def;
1.5495 - else
1.5496 - echo EXPORTS > $output_objdir/$soname.def;
1.5497 - cat $export_symbols >> $output_objdir/$soname.def;
1.5498 - fi~
1.5499 - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.5500 - else
1.5501 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.5502 - fi
1.5503 - ;;
1.5504 -
1.5505 - interix3*)
1.5506 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
1.5507 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.5508 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
1.5509 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1.5510 - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
1.5511 - # Instead, shared libraries are loaded at an image base (0x10000000 by
1.5512 - # default) and relocated if they conflict, which is a slow very memory
1.5513 - # consuming and fragmenting process. To avoid this, we pick a random,
1.5514 - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
1.5515 - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
1.5516 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
1.5517 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
1.5518 - ;;
1.5519 -
1.5520 - linux* | k*bsd*-gnu)
1.5521 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1.5522 - tmp_addflag=
1.5523 - case $cc_basename,$host_cpu in
1.5524 - pgcc*) # Portland Group C compiler
1.5525 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
1.5526 - tmp_addflag=' $pic_flag'
1.5527 - ;;
1.5528 - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
1.5529 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
1.5530 - tmp_addflag=' $pic_flag -Mnomain' ;;
1.5531 - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
1.5532 - tmp_addflag=' -i_dynamic' ;;
1.5533 - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
1.5534 - tmp_addflag=' -i_dynamic -nofor_main' ;;
1.5535 - ifc* | ifort*) # Intel Fortran compiler
1.5536 - tmp_addflag=' -nofor_main' ;;
1.5537 - esac
1.5538 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.5539 -
1.5540 - if test $supports_anon_versioning = yes; then
1.5541 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
1.5542 - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1.5543 - $echo "local: *; };" >> $output_objdir/$libname.ver~
1.5544 - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
1.5545 - fi
1.5546 - _LT_AC_TAGVAR(link_all_deplibs, $1)=no
1.5547 - else
1.5548 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.5549 - fi
1.5550 - ;;
1.5551 -
1.5552 - netbsd* | netbsdelf*-gnu)
1.5553 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1.5554 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
1.5555 - wlarc=
1.5556 - else
1.5557 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.5558 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1.5559 - fi
1.5560 - ;;
1.5561 -
1.5562 - solaris*)
1.5563 - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
1.5564 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.5565 - cat <<EOF 1>&2
1.5566 -
1.5567 -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
1.5568 -*** create shared libraries on Solaris systems. Therefore, libtool
1.5569 -*** is disabling shared libraries support. We urge you to upgrade GNU
1.5570 -*** binutils to release 2.9.1 or newer. Another option is to modify
1.5571 -*** your PATH or compiler configuration so that the native linker is
1.5572 -*** used, and then restart.
1.5573 -
1.5574 -EOF
1.5575 - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1.5576 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.5577 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1.5578 - else
1.5579 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.5580 - fi
1.5581 - ;;
1.5582 -
1.5583 - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
1.5584 - case `$LD -v 2>&1` in
1.5585 - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
1.5586 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.5587 - cat <<_LT_EOF 1>&2
1.5588 -
1.5589 -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
1.5590 -*** reliably create shared libraries on SCO systems. Therefore, libtool
1.5591 -*** is disabling shared libraries support. We urge you to upgrade GNU
1.5592 -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
1.5593 -*** your PATH or compiler configuration so that the native linker is
1.5594 -*** used, and then restart.
1.5595 -
1.5596 -_LT_EOF
1.5597 - ;;
1.5598 - *)
1.5599 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1.5600 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
1.5601 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
1.5602 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
1.5603 - else
1.5604 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.5605 - fi
1.5606 - ;;
1.5607 - esac
1.5608 - ;;
1.5609 -
1.5610 - sunos4*)
1.5611 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1.5612 - wlarc=
1.5613 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1.5614 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.5615 - ;;
1.5616 -
1.5617 - *)
1.5618 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1.5619 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.5620 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1.5621 - else
1.5622 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.5623 - fi
1.5624 - ;;
1.5625 - esac
1.5626 -
1.5627 - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
1.5628 - runpath_var=
1.5629 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
1.5630 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
1.5631 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
1.5632 - fi
1.5633 - else
1.5634 - # PORTME fill in a description of your system's linker (not GNU ld)
1.5635 - case $host_os in
1.5636 - aix3*)
1.5637 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
1.5638 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
1.5639 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
1.5640 - # Note: this linker hardcodes the directories in LIBPATH if there
1.5641 - # are no directories specified by -L.
1.5642 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
1.5643 - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
1.5644 - # Neither direct hardcoding nor static linking is supported with a
1.5645 - # broken collect2.
1.5646 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
1.5647 - fi
1.5648 - ;;
1.5649 -
1.5650 - aix4* | aix5*)
1.5651 - if test "$host_cpu" = ia64; then
1.5652 - # On IA64, the linker does run time linking by default, so we don't
1.5653 - # have to do anything special.
1.5654 - aix_use_runtimelinking=no
1.5655 - exp_sym_flag='-Bexport'
1.5656 - no_entry_flag=""
1.5657 - else
1.5658 - # If we're using GNU nm, then we don't want the "-C" option.
1.5659 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
1.5660 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
1.5661 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
1.5662 - else
1.5663 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
1.5664 - fi
1.5665 - aix_use_runtimelinking=no
1.5666 -
1.5667 - # Test if we are trying to use run time linking or normal
1.5668 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1.5669 - # need to do runtime linking.
1.5670 - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
1.5671 - for ld_flag in $LDFLAGS; do
1.5672 - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
1.5673 - aix_use_runtimelinking=yes
1.5674 - break
1.5675 - fi
1.5676 - done
1.5677 - ;;
1.5678 - esac
1.5679 -
1.5680 - exp_sym_flag='-bexport'
1.5681 - no_entry_flag='-bnoentry'
1.5682 - fi
1.5683 -
1.5684 - # When large executables or shared objects are built, AIX ld can
1.5685 - # have problems creating the table of contents. If linking a library
1.5686 - # or program results in "error TOC overflow" add -mminimal-toc to
1.5687 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
1.5688 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
1.5689 -
1.5690 - _LT_AC_TAGVAR(archive_cmds, $1)=''
1.5691 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1.5692 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
1.5693 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1.5694 -
1.5695 - if test "$GCC" = yes; then
1.5696 - case $host_os in aix4.[[012]]|aix4.[[012]].*)
1.5697 - # We only want to do this on AIX 4.2 and lower, the check
1.5698 - # below for broken collect2 doesn't work under 4.3+
1.5699 - collect2name=`${CC} -print-prog-name=collect2`
1.5700 - if test -f "$collect2name" && \
1.5701 - strings "$collect2name" | grep resolve_lib_name >/dev/null
1.5702 - then
1.5703 - # We have reworked collect2
1.5704 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1.5705 - else
1.5706 - # We have old collect2
1.5707 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
1.5708 - # It fails to find uninstalled libraries when the uninstalled
1.5709 - # path is not listed in the libpath. Setting hardcode_minus_L
1.5710 - # to unsupported forces relinking
1.5711 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
1.5712 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1.5713 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
1.5714 - fi
1.5715 - ;;
1.5716 - esac
1.5717 - shared_flag='-shared'
1.5718 - if test "$aix_use_runtimelinking" = yes; then
1.5719 - shared_flag="$shared_flag "'${wl}-G'
1.5720 - fi
1.5721 - else
1.5722 - # not using gcc
1.5723 - if test "$host_cpu" = ia64; then
1.5724 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
1.5725 - # chokes on -Wl,-G. The following line is correct:
1.5726 - shared_flag='-G'
1.5727 - else
1.5728 - if test "$aix_use_runtimelinking" = yes; then
1.5729 - shared_flag='${wl}-G'
1.5730 - else
1.5731 - shared_flag='${wl}-bM:SRE'
1.5732 - fi
1.5733 - fi
1.5734 - fi
1.5735 -
1.5736 - # It seems that -bexpall does not export symbols beginning with
1.5737 - # underscore (_), so it is better to generate a list of symbols to export.
1.5738 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
1.5739 - if test "$aix_use_runtimelinking" = yes; then
1.5740 - # Warning - without using the other runtime loading flags (-brtl),
1.5741 - # -berok will link without error, but may produce a broken library.
1.5742 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
1.5743 - # Determine the default libpath from the value encoded in an empty executable.
1.5744 - _LT_AC_SYS_LIBPATH_AIX
1.5745 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
1.5746 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1.5747 - else
1.5748 - if test "$host_cpu" = ia64; then
1.5749 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
1.5750 - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
1.5751 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
1.5752 - else
1.5753 - # Determine the default libpath from the value encoded in an empty executable.
1.5754 - _LT_AC_SYS_LIBPATH_AIX
1.5755 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
1.5756 - # Warning - without using the other run time loading flags,
1.5757 - # -berok will link without error, but may produce a broken library.
1.5758 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
1.5759 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
1.5760 - # Exported symbols can be pulled into shared objects from archives
1.5761 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
1.5762 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
1.5763 - # This is similar to how AIX traditionally builds its shared libraries.
1.5764 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
1.5765 - fi
1.5766 - fi
1.5767 - ;;
1.5768 -
1.5769 - amigaos*)
1.5770 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
1.5771 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1.5772 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
1.5773 - # see comment about different semantics on the GNU ld section
1.5774 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.5775 - ;;
1.5776 -
1.5777 - bsdi[[45]]*)
1.5778 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
1.5779 - ;;
1.5780 -
1.5781 - cygwin* | mingw* | pw32*)
1.5782 - # When not using gcc, we currently assume that we are using
1.5783 - # Microsoft Visual C++.
1.5784 - # hardcode_libdir_flag_spec is actually meaningless, as there is
1.5785 - # no search path for DLLs.
1.5786 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
1.5787 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
1.5788 - # Tell ltmain to make .lib files, not .a files.
1.5789 - libext=lib
1.5790 - # Tell ltmain to make .dll files, not .so files.
1.5791 - shrext_cmds=".dll"
1.5792 - # FIXME: Setting linknames here is a bad hack.
1.5793 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
1.5794 - # The linker will automatically build a .lib file if we build a DLL.
1.5795 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
1.5796 - # FIXME: Should let the user specify the lib program.
1.5797 - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
1.5798 - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
1.5799 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
1.5800 - ;;
1.5801 -
1.5802 - darwin* | rhapsody*)
1.5803 - case $host_os in
1.5804 - rhapsody* | darwin1.[[012]])
1.5805 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
1.5806 - ;;
1.5807 - *) # Darwin 1.3 on
1.5808 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
1.5809 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1.5810 - else
1.5811 - case ${MACOSX_DEPLOYMENT_TARGET} in
1.5812 - 10.[[012]])
1.5813 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1.5814 - ;;
1.5815 - 10.*)
1.5816 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
1.5817 - ;;
1.5818 - esac
1.5819 - fi
1.5820 - ;;
1.5821 - esac
1.5822 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1.5823 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
1.5824 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
1.5825 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1.5826 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
1.5827 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1.5828 - if test "$GCC" = yes ; then
1.5829 - output_verbose_link_cmd='echo'
1.5830 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
1.5831 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1.5832 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1.5833 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.5834 - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.5835 - else
1.5836 - case $cc_basename in
1.5837 - xlc*)
1.5838 - output_verbose_link_cmd='echo'
1.5839 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
1.5840 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1.5841 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1.5842 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.5843 - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.5844 - ;;
1.5845 - *)
1.5846 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.5847 - ;;
1.5848 - esac
1.5849 - fi
1.5850 - ;;
1.5851 -
1.5852 - dgux*)
1.5853 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.5854 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1.5855 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.5856 - ;;
1.5857 -
1.5858 - freebsd1*)
1.5859 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.5860 - ;;
1.5861 -
1.5862 - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
1.5863 - # support. Future versions do this automatically, but an explicit c++rt0.o
1.5864 - # does not break anything, and helps significantly (at the cost of a little
1.5865 - # extra space).
1.5866 - freebsd2.2*)
1.5867 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
1.5868 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
1.5869 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1.5870 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.5871 - ;;
1.5872 -
1.5873 - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
1.5874 - freebsd2*)
1.5875 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1.5876 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1.5877 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
1.5878 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.5879 - ;;
1.5880 -
1.5881 - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1.5882 - freebsd* | dragonfly*)
1.5883 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
1.5884 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
1.5885 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1.5886 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.5887 - ;;
1.5888 -
1.5889 - hpux9*)
1.5890 - if test "$GCC" = yes; then
1.5891 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1.5892 - else
1.5893 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1.5894 - fi
1.5895 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1.5896 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.5897 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1.5898 -
1.5899 - # hardcode_minus_L: Not really in the search PATH,
1.5900 - # but as the default location of the library.
1.5901 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
1.5902 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1.5903 - ;;
1.5904 -
1.5905 - hpux10*)
1.5906 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
1.5907 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.5908 - else
1.5909 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1.5910 - fi
1.5911 - if test "$with_gnu_ld" = no; then
1.5912 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1.5913 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.5914 -
1.5915 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1.5916 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1.5917 -
1.5918 - # hardcode_minus_L: Not really in the search PATH,
1.5919 - # but as the default location of the library.
1.5920 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
1.5921 - fi
1.5922 - ;;
1.5923 -
1.5924 - hpux11*)
1.5925 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
1.5926 - case $host_cpu in
1.5927 - hppa*64*)
1.5928 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.5929 - ;;
1.5930 - ia64*)
1.5931 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.5932 - ;;
1.5933 - *)
1.5934 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.5935 - ;;
1.5936 - esac
1.5937 - else
1.5938 - case $host_cpu in
1.5939 - hppa*64*)
1.5940 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.5941 - ;;
1.5942 - ia64*)
1.5943 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.5944 - ;;
1.5945 - *)
1.5946 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.5947 - ;;
1.5948 - esac
1.5949 - fi
1.5950 - if test "$with_gnu_ld" = no; then
1.5951 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
1.5952 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.5953 -
1.5954 - case $host_cpu in
1.5955 - hppa*64*|ia64*)
1.5956 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
1.5957 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
1.5958 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.5959 - ;;
1.5960 - *)
1.5961 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1.5962 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1.5963 -
1.5964 - # hardcode_minus_L: Not really in the search PATH,
1.5965 - # but as the default location of the library.
1.5966 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
1.5967 - ;;
1.5968 - esac
1.5969 - fi
1.5970 - ;;
1.5971 -
1.5972 - irix5* | irix6* | nonstopux*)
1.5973 - if test "$GCC" = yes; then
1.5974 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.5975 - else
1.5976 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1.5977 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
1.5978 - fi
1.5979 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
1.5980 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.5981 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1.5982 - ;;
1.5983 -
1.5984 - netbsd* | netbsdelf*-gnu)
1.5985 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1.5986 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
1.5987 - else
1.5988 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
1.5989 - fi
1.5990 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
1.5991 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1.5992 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.5993 - ;;
1.5994 -
1.5995 - newsos6)
1.5996 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.5997 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1.5998 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
1.5999 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.6000 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.6001 - ;;
1.6002 -
1.6003 - openbsd*)
1.6004 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1.6005 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.6006 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.6007 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1.6008 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1.6009 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
1.6010 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
1.6011 - else
1.6012 - case $host_os in
1.6013 - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
1.6014 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1.6015 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
1.6016 - ;;
1.6017 - *)
1.6018 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1.6019 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
1.6020 - ;;
1.6021 - esac
1.6022 - fi
1.6023 - ;;
1.6024 -
1.6025 - os2*)
1.6026 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1.6027 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
1.6028 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
1.6029 - _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
1.6030 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
1.6031 - ;;
1.6032 -
1.6033 - osf3*)
1.6034 - if test "$GCC" = yes; then
1.6035 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
1.6036 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.6037 - else
1.6038 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
1.6039 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1.6040 - fi
1.6041 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
1.6042 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.6043 - ;;
1.6044 -
1.6045 - osf4* | osf5*) # as osf3* with the addition of -msym flag
1.6046 - if test "$GCC" = yes; then
1.6047 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
1.6048 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.6049 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
1.6050 - else
1.6051 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
1.6052 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1.6053 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
1.6054 - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
1.6055 -
1.6056 - # Both c and cxx compiler support -rpath directly
1.6057 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
1.6058 - fi
1.6059 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
1.6060 - ;;
1.6061 -
1.6062 - solaris*)
1.6063 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
1.6064 - if test "$GCC" = yes; then
1.6065 - wlarc='${wl}'
1.6066 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.6067 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1.6068 - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
1.6069 - else
1.6070 - wlarc=''
1.6071 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.6072 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1.6073 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
1.6074 - fi
1.6075 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
1.6076 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.6077 - case $host_os in
1.6078 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
1.6079 - *)
1.6080 - # The compiler driver will combine linker options so we
1.6081 - # cannot just pass the convience library names through
1.6082 - # without $wl, iff we do not link with $LD.
1.6083 - # Luckily, gcc supports the same syntax we need for Sun Studio.
1.6084 - # Supported since Solaris 2.6 (maybe 2.5.1?)
1.6085 - case $wlarc in
1.6086 - '')
1.6087 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
1.6088 - *)
1.6089 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
1.6090 - esac ;;
1.6091 - esac
1.6092 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1.6093 - ;;
1.6094 -
1.6095 - sunos4*)
1.6096 - if test "x$host_vendor" = xsequent; then
1.6097 - # Use $CC to link under sequent, because it throws in some extra .o
1.6098 - # files that make .init and .fini sections work.
1.6099 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
1.6100 - else
1.6101 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
1.6102 - fi
1.6103 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1.6104 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
1.6105 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
1.6106 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.6107 - ;;
1.6108 -
1.6109 - sysv4)
1.6110 - case $host_vendor in
1.6111 - sni)
1.6112 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.6113 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
1.6114 - ;;
1.6115 - siemens)
1.6116 - ## LD is ld it makes a PLAMLIB
1.6117 - ## CC just makes a GrossModule.
1.6118 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
1.6119 - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
1.6120 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
1.6121 - ;;
1.6122 - motorola)
1.6123 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.6124 - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
1.6125 - ;;
1.6126 - esac
1.6127 - runpath_var='LD_RUN_PATH'
1.6128 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.6129 - ;;
1.6130 -
1.6131 - sysv4.3*)
1.6132 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.6133 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.6134 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
1.6135 - ;;
1.6136 -
1.6137 - sysv4*MP*)
1.6138 - if test -d /usr/nec; then
1.6139 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.6140 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.6141 - runpath_var=LD_RUN_PATH
1.6142 - hardcode_runpath_var=yes
1.6143 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
1.6144 - fi
1.6145 - ;;
1.6146 -
1.6147 - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
1.6148 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
1.6149 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1.6150 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.6151 - runpath_var='LD_RUN_PATH'
1.6152 -
1.6153 - if test "$GCC" = yes; then
1.6154 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.6155 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.6156 - else
1.6157 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.6158 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.6159 - fi
1.6160 - ;;
1.6161 -
1.6162 - sysv5* | sco3.2v5* | sco5v6*)
1.6163 - # Note: We can NOT use -z defs as we might desire, because we do not
1.6164 - # link with -lc, and that would cause any symbols used from libc to
1.6165 - # always be unresolved, which means just about no library would
1.6166 - # ever link correctly. If we're not using GNU ld we use -z text
1.6167 - # though, which does catch some bad symbols but isn't as heavy-handed
1.6168 - # as -z defs.
1.6169 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
1.6170 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
1.6171 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1.6172 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.6173 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
1.6174 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
1.6175 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
1.6176 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
1.6177 - runpath_var='LD_RUN_PATH'
1.6178 -
1.6179 - if test "$GCC" = yes; then
1.6180 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.6181 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.6182 - else
1.6183 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.6184 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.6185 - fi
1.6186 - ;;
1.6187 -
1.6188 - uts4*)
1.6189 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.6190 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
1.6191 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
1.6192 - ;;
1.6193 -
1.6194 - *)
1.6195 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
1.6196 - ;;
1.6197 - esac
1.6198 - fi
1.6199 -])
1.6200 -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
1.6201 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
1.6202 -
1.6203 -#
1.6204 -# Do we need to explicitly link libc?
1.6205 -#
1.6206 -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
1.6207 -x|xyes)
1.6208 - # Assume -lc should be added
1.6209 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
1.6210 -
1.6211 - if test "$enable_shared" = yes && test "$GCC" = yes; then
1.6212 - case $_LT_AC_TAGVAR(archive_cmds, $1) in
1.6213 - *'~'*)
1.6214 - # FIXME: we may have to deal with multi-command sequences.
1.6215 - ;;
1.6216 - '$CC '*)
1.6217 - # Test whether the compiler implicitly links with -lc since on some
1.6218 - # systems, -lgcc has to come before -lc. If gcc already passes -lc
1.6219 - # to ld, don't add -lc before -lgcc.
1.6220 - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
1.6221 - $rm conftest*
1.6222 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1.6223 -
1.6224 - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
1.6225 - soname=conftest
1.6226 - lib=conftest
1.6227 - libobjs=conftest.$ac_objext
1.6228 - deplibs=
1.6229 - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
1.6230 - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
1.6231 - compiler_flags=-v
1.6232 - linker_flags=-v
1.6233 - verstring=
1.6234 - output_objdir=.
1.6235 - libname=conftest
1.6236 - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
1.6237 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
1.6238 - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
1.6239 - then
1.6240 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
1.6241 - else
1.6242 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
1.6243 - fi
1.6244 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
1.6245 - else
1.6246 - cat conftest.err 1>&5
1.6247 - fi
1.6248 - $rm conftest*
1.6249 - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
1.6250 - ;;
1.6251 - esac
1.6252 - fi
1.6253 - ;;
1.6254 -esac
1.6255 -])# AC_LIBTOOL_PROG_LD_SHLIBS
1.6256 -
1.6257 -
1.6258 -# _LT_AC_FILE_LTDLL_C
1.6259 -# -------------------
1.6260 -# Be careful that the start marker always follows a newline.
1.6261 -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
1.6262 -# /* ltdll.c starts here */
1.6263 -# #define WIN32_LEAN_AND_MEAN
1.6264 -# #include <windows.h>
1.6265 -# #undef WIN32_LEAN_AND_MEAN
1.6266 -# #include <stdio.h>
1.6267 -#
1.6268 -# #ifndef __CYGWIN__
1.6269 -# # ifdef __CYGWIN32__
1.6270 -# # define __CYGWIN__ __CYGWIN32__
1.6271 -# # endif
1.6272 -# #endif
1.6273 -#
1.6274 -# #ifdef __cplusplus
1.6275 -# extern "C" {
1.6276 -# #endif
1.6277 -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
1.6278 -# #ifdef __cplusplus
1.6279 -# }
1.6280 -# #endif
1.6281 -#
1.6282 -# #ifdef __CYGWIN__
1.6283 -# #include <cygwin/cygwin_dll.h>
1.6284 -# DECLARE_CYGWIN_DLL( DllMain );
1.6285 -# #endif
1.6286 -# HINSTANCE __hDllInstance_base;
1.6287 -#
1.6288 -# BOOL APIENTRY
1.6289 -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
1.6290 -# {
1.6291 -# __hDllInstance_base = hInst;
1.6292 -# return TRUE;
1.6293 -# }
1.6294 -# /* ltdll.c ends here */
1.6295 -])# _LT_AC_FILE_LTDLL_C
1.6296 -
1.6297 -
1.6298 -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
1.6299 -# ---------------------------------
1.6300 -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
1.6301 -
1.6302 -
1.6303 -# old names
1.6304 -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
1.6305 -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
1.6306 -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
1.6307 -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
1.6308 -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
1.6309 -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
1.6310 -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
1.6311 -
1.6312 -# This is just to silence aclocal about the macro not being used
1.6313 -ifelse([AC_DISABLE_FAST_INSTALL])
1.6314 -
1.6315 -AC_DEFUN([LT_AC_PROG_GCJ],
1.6316 -[AC_CHECK_TOOL(GCJ, gcj, no)
1.6317 - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
1.6318 - AC_SUBST(GCJFLAGS)
1.6319 -])
1.6320 -
1.6321 -AC_DEFUN([LT_AC_PROG_RC],
1.6322 -[AC_CHECK_TOOL(RC, windres, no)
1.6323 -])
1.6324 -
1.6325 -# NOTE: This macro has been submitted for inclusion into #
1.6326 -# GNU Autoconf as AC_PROG_SED. When it is available in #
1.6327 -# a released version of Autoconf we should remove this #
1.6328 -# macro and use it instead. #
1.6329 -# LT_AC_PROG_SED
1.6330 -# --------------
1.6331 -# Check for a fully-functional sed program, that truncates
1.6332 -# as few characters as possible. Prefer GNU sed if found.
1.6333 -AC_DEFUN([LT_AC_PROG_SED],
1.6334 -[AC_MSG_CHECKING([for a sed that does not truncate output])
1.6335 -AC_CACHE_VAL(lt_cv_path_SED,
1.6336 -[# Loop through the user's path and test for sed and gsed.
1.6337 -# Then use that list of sed's as ones to test for truncation.
1.6338 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.6339 -for as_dir in $PATH
1.6340 -do
1.6341 - IFS=$as_save_IFS
1.6342 - test -z "$as_dir" && as_dir=.
1.6343 - for lt_ac_prog in sed gsed; do
1.6344 - for ac_exec_ext in '' $ac_executable_extensions; do
1.6345 - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
1.6346 - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
1.6347 - fi
1.6348 - done
1.6349 - done
1.6350 -done
1.6351 -lt_ac_max=0
1.6352 -lt_ac_count=0
1.6353 -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
1.6354 -# along with /bin/sed that truncates output.
1.6355 -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
1.6356 - test ! -f $lt_ac_sed && continue
1.6357 - cat /dev/null > conftest.in
1.6358 - lt_ac_count=0
1.6359 - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
1.6360 - # Check for GNU sed and select it if it is found.
1.6361 - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
1.6362 - lt_cv_path_SED=$lt_ac_sed
1.6363 - break
1.6364 - fi
1.6365 - while true; do
1.6366 - cat conftest.in conftest.in >conftest.tmp
1.6367 - mv conftest.tmp conftest.in
1.6368 - cp conftest.in conftest.nl
1.6369 - echo >>conftest.nl
1.6370 - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
1.6371 - cmp -s conftest.out conftest.nl || break
1.6372 - # 10000 chars as input seems more than enough
1.6373 - test $lt_ac_count -gt 10 && break
1.6374 - lt_ac_count=`expr $lt_ac_count + 1`
1.6375 - if test $lt_ac_count -gt $lt_ac_max; then
1.6376 - lt_ac_max=$lt_ac_count
1.6377 - lt_cv_path_SED=$lt_ac_sed
1.6378 - fi
1.6379 - done
1.6380 -done
1.6381 -])
1.6382 -SED=$lt_cv_path_SED
1.6383 -AC_MSG_RESULT([$SED])
1.6384 -])
1.6385 -
1.6386 -# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
1.6387 -#
1.6388 -# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
1.6389 -#
1.6390 -# This program is free software; you can redistribute it and/or modify
1.6391 -# it under the terms of the GNU General Public License as published by
1.6392 -# the Free Software Foundation; either version 2 of the License, or
1.6393 -# (at your option) any later version.
1.6394 -#
1.6395 -# This program is distributed in the hope that it will be useful, but
1.6396 -# WITHOUT ANY WARRANTY; without even the implied warranty of
1.6397 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1.6398 -# General Public License for more details.
1.6399 -#
1.6400 -# You should have received a copy of the GNU General Public License
1.6401 -# along with this program; if not, write to the Free Software
1.6402 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1.6403 -#
1.6404 -# As a special exception to the GNU General Public License, if you
1.6405 -# distribute this file as part of a program that contains a
1.6406 -# configuration script generated by Autoconf, you may include it under
1.6407 -# the same distribution terms that you use for the rest of that program.
1.6408 -
1.6409 -# PKG_PROG_PKG_CONFIG([MIN-VERSION])
1.6410 -# ----------------------------------
1.6411 -AC_DEFUN([PKG_PROG_PKG_CONFIG],
1.6412 -[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
1.6413 -m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
1.6414 -AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
1.6415 -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1.6416 - AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
1.6417 -fi
1.6418 -if test -n "$PKG_CONFIG"; then
1.6419 - _pkg_min_version=m4_default([$1], [0.9.0])
1.6420 - AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
1.6421 - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
1.6422 - AC_MSG_RESULT([yes])
1.6423 - else
1.6424 - AC_MSG_RESULT([no])
1.6425 - PKG_CONFIG=""
1.6426 - fi
1.6427 -
1.6428 -fi[]dnl
1.6429 -])# PKG_PROG_PKG_CONFIG
1.6430 -
1.6431 -# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1.6432 -#
1.6433 -# Check to see whether a particular set of modules exists. Similar
1.6434 -# to PKG_CHECK_MODULES(), but does not set variables or print errors.
1.6435 -#
1.6436 -#
1.6437 -# Similar to PKG_CHECK_MODULES, make sure that the first instance of
1.6438 -# this or PKG_CHECK_MODULES is called, or make sure to call
1.6439 -# PKG_CHECK_EXISTS manually
1.6440 -# --------------------------------------------------------------
1.6441 -AC_DEFUN([PKG_CHECK_EXISTS],
1.6442 -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1.6443 -if test -n "$PKG_CONFIG" && \
1.6444 - AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
1.6445 - m4_ifval([$2], [$2], [:])
1.6446 -m4_ifvaln([$3], [else
1.6447 - $3])dnl
1.6448 -fi])
1.6449 -
1.6450 -
1.6451 -# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
1.6452 -# ---------------------------------------------
1.6453 -m4_define([_PKG_CONFIG],
1.6454 -[if test -n "$PKG_CONFIG"; then
1.6455 - if test -n "$$1"; then
1.6456 - pkg_cv_[]$1="$$1"
1.6457 - else
1.6458 - PKG_CHECK_EXISTS([$3],
1.6459 - [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
1.6460 - [pkg_failed=yes])
1.6461 - fi
1.6462 -else
1.6463 - pkg_failed=untried
1.6464 -fi[]dnl
1.6465 -])# _PKG_CONFIG
1.6466 -
1.6467 -# _PKG_SHORT_ERRORS_SUPPORTED
1.6468 -# -----------------------------
1.6469 -AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
1.6470 -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1.6471 -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1.6472 - _pkg_short_errors_supported=yes
1.6473 -else
1.6474 - _pkg_short_errors_supported=no
1.6475 -fi[]dnl
1.6476 -])# _PKG_SHORT_ERRORS_SUPPORTED
1.6477 -
1.6478 -
1.6479 -# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
1.6480 -# [ACTION-IF-NOT-FOUND])
1.6481 -#
1.6482 -#
1.6483 -# Note that if there is a possibility the first call to
1.6484 -# PKG_CHECK_MODULES might not happen, you should be sure to include an
1.6485 -# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
1.6486 -#
1.6487 -#
1.6488 -# --------------------------------------------------------------
1.6489 -AC_DEFUN([PKG_CHECK_MODULES],
1.6490 -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1.6491 -AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
1.6492 -AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
1.6493 -
1.6494 -pkg_failed=no
1.6495 -AC_MSG_CHECKING([for $1])
1.6496 -
1.6497 -_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
1.6498 -_PKG_CONFIG([$1][_LIBS], [libs], [$2])
1.6499 -
1.6500 -m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
1.6501 -and $1[]_LIBS to avoid the need to call pkg-config.
1.6502 -See the pkg-config man page for more details.])
1.6503 -
1.6504 -if test $pkg_failed = yes; then
1.6505 - _PKG_SHORT_ERRORS_SUPPORTED
1.6506 - if test $_pkg_short_errors_supported = yes; then
1.6507 - $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
1.6508 - else
1.6509 - $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
1.6510 - fi
1.6511 - # Put the nasty error message in config.log where it belongs
1.6512 - echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
1.6513 -
1.6514 - ifelse([$4], , [AC_MSG_ERROR(dnl
1.6515 -[Package requirements ($2) were not met:
1.6516 -
1.6517 -$$1_PKG_ERRORS
1.6518 -
1.6519 -Consider adjusting the PKG_CONFIG_PATH environment variable if you
1.6520 -installed software in a non-standard prefix.
1.6521 -
1.6522 -_PKG_TEXT
1.6523 -])],
1.6524 - [AC_MSG_RESULT([no])
1.6525 - $4])
1.6526 -elif test $pkg_failed = untried; then
1.6527 - ifelse([$4], , [AC_MSG_FAILURE(dnl
1.6528 -[The pkg-config script could not be found or is too old. Make sure it
1.6529 -is in your PATH or set the PKG_CONFIG environment variable to the full
1.6530 -path to pkg-config.
1.6531 -
1.6532 -_PKG_TEXT
1.6533 -
1.6534 -To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
1.6535 - [$4])
1.6536 -else
1.6537 - $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
1.6538 - $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
1.6539 - AC_MSG_RESULT([yes])
1.6540 - ifelse([$3], , :, [$3])
1.6541 -fi[]dnl
1.6542 -])# PKG_CHECK_MODULES
1.6543 -
1.6544 -# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
1.6545 -#
1.6546 -# This file is free software; the Free Software Foundation
1.6547 -# gives unlimited permission to copy and/or distribute it,
1.6548 -# with or without modifications, as long as this notice is preserved.
1.6549 -
1.6550 -# AM_AUTOMAKE_VERSION(VERSION)
1.6551 -# ----------------------------
1.6552 -# Automake X.Y traces this macro to ensure aclocal.m4 has been
1.6553 -# generated from the m4 files accompanying Automake X.Y.
1.6554 -AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
1.6555 -
1.6556 -# AM_SET_CURRENT_AUTOMAKE_VERSION
1.6557 -# -------------------------------
1.6558 -# Call AM_AUTOMAKE_VERSION so it can be traced.
1.6559 -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
1.6560 -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
1.6561 - [AM_AUTOMAKE_VERSION([1.9.6])])
1.6562 -
1.6563 -# AM_AUX_DIR_EXPAND -*- Autoconf -*-
1.6564 -
1.6565 -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1.6566 -#
1.6567 -# This file is free software; the Free Software Foundation
1.6568 -# gives unlimited permission to copy and/or distribute it,
1.6569 -# with or without modifications, as long as this notice is preserved.
1.6570 -
1.6571 -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
1.6572 -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
1.6573 -# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
1.6574 -#
1.6575 -# Of course, Automake must honor this variable whenever it calls a
1.6576 -# tool from the auxiliary directory. The problem is that $srcdir (and
1.6577 -# therefore $ac_aux_dir as well) can be either absolute or relative,
1.6578 -# depending on how configure is run. This is pretty annoying, since
1.6579 -# it makes $ac_aux_dir quite unusable in subdirectories: in the top
1.6580 -# source directory, any form will work fine, but in subdirectories a
1.6581 -# relative path needs to be adjusted first.
1.6582 -#
1.6583 -# $ac_aux_dir/missing
1.6584 -# fails when called from a subdirectory if $ac_aux_dir is relative
1.6585 -# $top_srcdir/$ac_aux_dir/missing
1.6586 -# fails if $ac_aux_dir is absolute,
1.6587 -# fails when called from a subdirectory in a VPATH build with
1.6588 -# a relative $ac_aux_dir
1.6589 -#
1.6590 -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
1.6591 -# are both prefixed by $srcdir. In an in-source build this is usually
1.6592 -# harmless because $srcdir is `.', but things will broke when you
1.6593 -# start a VPATH build or use an absolute $srcdir.
1.6594 -#
1.6595 -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
1.6596 -# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
1.6597 -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
1.6598 -# and then we would define $MISSING as
1.6599 -# MISSING="\${SHELL} $am_aux_dir/missing"
1.6600 -# This will work as long as MISSING is not called from configure, because
1.6601 -# unfortunately $(top_srcdir) has no meaning in configure.
1.6602 -# However there are other variables, like CC, which are often used in
1.6603 -# configure, and could therefore not use this "fixed" $ac_aux_dir.
1.6604 -#
1.6605 -# Another solution, used here, is to always expand $ac_aux_dir to an
1.6606 -# absolute PATH. The drawback is that using absolute paths prevent a
1.6607 -# configured tree to be moved without reconfiguration.
1.6608 -
1.6609 -AC_DEFUN([AM_AUX_DIR_EXPAND],
1.6610 -[dnl Rely on autoconf to set up CDPATH properly.
1.6611 -AC_PREREQ([2.50])dnl
1.6612 -# expand $ac_aux_dir to an absolute path
1.6613 -am_aux_dir=`cd $ac_aux_dir && pwd`
1.6614 -])
1.6615 -
1.6616 -# AM_CONDITIONAL -*- Autoconf -*-
1.6617 -
1.6618 -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
1.6619 -# Free Software Foundation, Inc.
1.6620 -#
1.6621 -# This file is free software; the Free Software Foundation
1.6622 -# gives unlimited permission to copy and/or distribute it,
1.6623 -# with or without modifications, as long as this notice is preserved.
1.6624 -
1.6625 -# serial 7
1.6626 -
1.6627 -# AM_CONDITIONAL(NAME, SHELL-CONDITION)
1.6628 -# -------------------------------------
1.6629 -# Define a conditional.
1.6630 -AC_DEFUN([AM_CONDITIONAL],
1.6631 -[AC_PREREQ(2.52)dnl
1.6632 - ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
1.6633 - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
1.6634 -AC_SUBST([$1_TRUE])
1.6635 -AC_SUBST([$1_FALSE])
1.6636 -if $2; then
1.6637 - $1_TRUE=
1.6638 - $1_FALSE='#'
1.6639 -else
1.6640 - $1_TRUE='#'
1.6641 - $1_FALSE=
1.6642 -fi
1.6643 -AC_CONFIG_COMMANDS_PRE(
1.6644 -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
1.6645 - AC_MSG_ERROR([[conditional "$1" was never defined.
1.6646 -Usually this means the macro was only invoked conditionally.]])
1.6647 -fi])])
1.6648 -
1.6649 -
1.6650 -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
1.6651 -# Free Software Foundation, Inc.
1.6652 -#
1.6653 -# This file is free software; the Free Software Foundation
1.6654 -# gives unlimited permission to copy and/or distribute it,
1.6655 -# with or without modifications, as long as this notice is preserved.
1.6656 -
1.6657 -# serial 8
1.6658 -
1.6659 -# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
1.6660 -# written in clear, in which case automake, when reading aclocal.m4,
1.6661 -# will think it sees a *use*, and therefore will trigger all it's
1.6662 -# C support machinery. Also note that it means that autoscan, seeing
1.6663 -# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
1.6664 -
1.6665 -
1.6666 -# _AM_DEPENDENCIES(NAME)
1.6667 -# ----------------------
1.6668 -# See how the compiler implements dependency checking.
1.6669 -# NAME is "CC", "CXX", "GCJ", or "OBJC".
1.6670 -# We try a few techniques and use that to set a single cache variable.
1.6671 -#
1.6672 -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
1.6673 -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
1.6674 -# dependency, and given that the user is not expected to run this macro,
1.6675 -# just rely on AC_PROG_CC.
1.6676 -AC_DEFUN([_AM_DEPENDENCIES],
1.6677 -[AC_REQUIRE([AM_SET_DEPDIR])dnl
1.6678 -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
1.6679 -AC_REQUIRE([AM_MAKE_INCLUDE])dnl
1.6680 -AC_REQUIRE([AM_DEP_TRACK])dnl
1.6681 -
1.6682 -ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
1.6683 - [$1], CXX, [depcc="$CXX" am_compiler_list=],
1.6684 - [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1.6685 - [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
1.6686 - [depcc="$$1" am_compiler_list=])
1.6687 -
1.6688 -AC_CACHE_CHECK([dependency style of $depcc],
1.6689 - [am_cv_$1_dependencies_compiler_type],
1.6690 -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.6691 - # We make a subdir and do the tests there. Otherwise we can end up
1.6692 - # making bogus files that we don't know about and never remove. For
1.6693 - # instance it was reported that on HP-UX the gcc test will end up
1.6694 - # making a dummy file named `D' -- because `-MD' means `put the output
1.6695 - # in D'.
1.6696 - mkdir conftest.dir
1.6697 - # Copy depcomp to subdir because otherwise we won't find it if we're
1.6698 - # using a relative directory.
1.6699 - cp "$am_depcomp" conftest.dir
1.6700 - cd conftest.dir
1.6701 - # We will build objects and dependencies in a subdirectory because
1.6702 - # it helps to detect inapplicable dependency modes. For instance
1.6703 - # both Tru64's cc and ICC support -MD to output dependencies as a
1.6704 - # side effect of compilation, but ICC will put the dependencies in
1.6705 - # the current directory while Tru64 will put them in the object
1.6706 - # directory.
1.6707 - mkdir sub
1.6708 -
1.6709 - am_cv_$1_dependencies_compiler_type=none
1.6710 - if test "$am_compiler_list" = ""; then
1.6711 - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
1.6712 - fi
1.6713 - for depmode in $am_compiler_list; do
1.6714 - # Setup a source with many dependencies, because some compilers
1.6715 - # like to wrap large dependency lists on column 80 (with \), and
1.6716 - # we should not choose a depcomp mode which is confused by this.
1.6717 - #
1.6718 - # We need to recreate these files for each test, as the compiler may
1.6719 - # overwrite some of them when testing with obscure command lines.
1.6720 - # This happens at least with the AIX C compiler.
1.6721 - : > sub/conftest.c
1.6722 - for i in 1 2 3 4 5 6; do
1.6723 - echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.6724 - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1.6725 - # Solaris 8's {/usr,}/bin/sh.
1.6726 - touch sub/conftst$i.h
1.6727 - done
1.6728 - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.6729 -
1.6730 - case $depmode in
1.6731 - nosideeffect)
1.6732 - # after this tag, mechanisms are not by side-effect, so they'll
1.6733 - # only be used when explicitly requested
1.6734 - if test "x$enable_dependency_tracking" = xyes; then
1.6735 - continue
1.6736 - else
1.6737 - break
1.6738 - fi
1.6739 - ;;
1.6740 - none) break ;;
1.6741 - esac
1.6742 - # We check with `-c' and `-o' for the sake of the "dashmstdout"
1.6743 - # mode. It turns out that the SunPro C++ compiler does not properly
1.6744 - # handle `-M -o', and we need to detect this.
1.6745 - if depmode=$depmode \
1.6746 - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1.6747 - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.6748 - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.6749 - >/dev/null 2>conftest.err &&
1.6750 - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.6751 - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.6752 - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.6753 - # icc doesn't choke on unknown options, it will just issue warnings
1.6754 - # or remarks (even with -Werror). So we grep stderr for any message
1.6755 - # that says an option was ignored or not supported.
1.6756 - # When given -MP, icc 7.0 and 7.1 complain thusly:
1.6757 - # icc: Command line warning: ignoring option '-M'; no argument required
1.6758 - # The diagnosis changed in icc 8.0:
1.6759 - # icc: Command line remark: option '-MP' not supported
1.6760 - if (grep 'ignoring option' conftest.err ||
1.6761 - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1.6762 - am_cv_$1_dependencies_compiler_type=$depmode
1.6763 - break
1.6764 - fi
1.6765 - fi
1.6766 - done
1.6767 -
1.6768 - cd ..
1.6769 - rm -rf conftest.dir
1.6770 -else
1.6771 - am_cv_$1_dependencies_compiler_type=none
1.6772 -fi
1.6773 -])
1.6774 -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
1.6775 -AM_CONDITIONAL([am__fastdep$1], [
1.6776 - test "x$enable_dependency_tracking" != xno \
1.6777 - && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
1.6778 -])
1.6779 -
1.6780 -
1.6781 -# AM_SET_DEPDIR
1.6782 -# -------------
1.6783 -# Choose a directory name for dependency files.
1.6784 -# This macro is AC_REQUIREd in _AM_DEPENDENCIES
1.6785 -AC_DEFUN([AM_SET_DEPDIR],
1.6786 -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1.6787 -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
1.6788 -])
1.6789 -
1.6790 -
1.6791 -# AM_DEP_TRACK
1.6792 -# ------------
1.6793 -AC_DEFUN([AM_DEP_TRACK],
1.6794 -[AC_ARG_ENABLE(dependency-tracking,
1.6795 -[ --disable-dependency-tracking speeds up one-time build
1.6796 - --enable-dependency-tracking do not reject slow dependency extractors])
1.6797 -if test "x$enable_dependency_tracking" != xno; then
1.6798 - am_depcomp="$ac_aux_dir/depcomp"
1.6799 - AMDEPBACKSLASH='\'
1.6800 -fi
1.6801 -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1.6802 -AC_SUBST([AMDEPBACKSLASH])
1.6803 -])
1.6804 -
1.6805 -# Generate code to set up dependency tracking. -*- Autoconf -*-
1.6806 -
1.6807 -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
1.6808 -# Free Software Foundation, Inc.
1.6809 -#
1.6810 -# This file is free software; the Free Software Foundation
1.6811 -# gives unlimited permission to copy and/or distribute it,
1.6812 -# with or without modifications, as long as this notice is preserved.
1.6813 -
1.6814 -#serial 3
1.6815 -
1.6816 -# _AM_OUTPUT_DEPENDENCY_COMMANDS
1.6817 -# ------------------------------
1.6818 -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1.6819 -[for mf in $CONFIG_FILES; do
1.6820 - # Strip MF so we end up with the name of the file.
1.6821 - mf=`echo "$mf" | sed -e 's/:.*$//'`
1.6822 - # Check whether this is an Automake generated Makefile or not.
1.6823 - # We used to match only the files named `Makefile.in', but
1.6824 - # some people rename them; so instead we look at the file content.
1.6825 - # Grep'ing the first line is not enough: some people post-process
1.6826 - # each Makefile.in and add a new line on top of each file to say so.
1.6827 - # So let's grep whole file.
1.6828 - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
1.6829 - dirpart=`AS_DIRNAME("$mf")`
1.6830 - else
1.6831 - continue
1.6832 - fi
1.6833 - # Extract the definition of DEPDIR, am__include, and am__quote
1.6834 - # from the Makefile without running `make'.
1.6835 - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1.6836 - test -z "$DEPDIR" && continue
1.6837 - am__include=`sed -n 's/^am__include = //p' < "$mf"`
1.6838 - test -z "am__include" && continue
1.6839 - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1.6840 - # When using ansi2knr, U may be empty or an underscore; expand it
1.6841 - U=`sed -n 's/^U = //p' < "$mf"`
1.6842 - # Find all dependency output files, they are included files with
1.6843 - # $(DEPDIR) in their names. We invoke sed twice because it is the
1.6844 - # simplest approach to changing $(DEPDIR) to its actual value in the
1.6845 - # expansion.
1.6846 - for file in `sed -n "
1.6847 - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1.6848 - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1.6849 - # Make sure the directory exists.
1.6850 - test -f "$dirpart/$file" && continue
1.6851 - fdir=`AS_DIRNAME(["$file"])`
1.6852 - AS_MKDIR_P([$dirpart/$fdir])
1.6853 - # echo "creating $dirpart/$file"
1.6854 - echo '# dummy' > "$dirpart/$file"
1.6855 - done
1.6856 -done
1.6857 -])# _AM_OUTPUT_DEPENDENCY_COMMANDS
1.6858 -
1.6859 -
1.6860 -# AM_OUTPUT_DEPENDENCY_COMMANDS
1.6861 -# -----------------------------
1.6862 -# This macro should only be invoked once -- use via AC_REQUIRE.
1.6863 -#
1.6864 -# This code is only required when automatic dependency tracking
1.6865 -# is enabled. FIXME. This creates each `.P' file that we will
1.6866 -# need in order to bootstrap the dependency handling code.
1.6867 -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1.6868 -[AC_CONFIG_COMMANDS([depfiles],
1.6869 - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1.6870 - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1.6871 -])
1.6872 -
1.6873 -# Do all the work for Automake. -*- Autoconf -*-
1.6874 -
1.6875 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
1.6876 -# Free Software Foundation, Inc.
1.6877 -#
1.6878 -# This file is free software; the Free Software Foundation
1.6879 -# gives unlimited permission to copy and/or distribute it,
1.6880 -# with or without modifications, as long as this notice is preserved.
1.6881 -
1.6882 -# serial 12
1.6883 -
1.6884 -# This macro actually does too much. Some checks are only needed if
1.6885 -# your package does certain things. But this isn't really a big deal.
1.6886 -
1.6887 -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1.6888 -# AM_INIT_AUTOMAKE([OPTIONS])
1.6889 -# -----------------------------------------------
1.6890 -# The call with PACKAGE and VERSION arguments is the old style
1.6891 -# call (pre autoconf-2.50), which is being phased out. PACKAGE
1.6892 -# and VERSION should now be passed to AC_INIT and removed from
1.6893 -# the call to AM_INIT_AUTOMAKE.
1.6894 -# We support both call styles for the transition. After
1.6895 -# the next Automake release, Autoconf can make the AC_INIT
1.6896 -# arguments mandatory, and then we can depend on a new Autoconf
1.6897 -# release and drop the old call support.
1.6898 -AC_DEFUN([AM_INIT_AUTOMAKE],
1.6899 -[AC_PREREQ([2.58])dnl
1.6900 -dnl Autoconf wants to disallow AM_ names. We explicitly allow
1.6901 -dnl the ones we care about.
1.6902 -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1.6903 -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1.6904 -AC_REQUIRE([AC_PROG_INSTALL])dnl
1.6905 -# test to see if srcdir already configured
1.6906 -if test "`cd $srcdir && pwd`" != "`pwd`" &&
1.6907 - test -f $srcdir/config.status; then
1.6908 - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1.6909 -fi
1.6910 -
1.6911 -# test whether we have cygpath
1.6912 -if test -z "$CYGPATH_W"; then
1.6913 - if (cygpath --version) >/dev/null 2>/dev/null; then
1.6914 - CYGPATH_W='cygpath -w'
1.6915 - else
1.6916 - CYGPATH_W=echo
1.6917 - fi
1.6918 -fi
1.6919 -AC_SUBST([CYGPATH_W])
1.6920 -
1.6921 -# Define the identity of the package.
1.6922 -dnl Distinguish between old-style and new-style calls.
1.6923 -m4_ifval([$2],
1.6924 -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1.6925 - AC_SUBST([PACKAGE], [$1])dnl
1.6926 - AC_SUBST([VERSION], [$2])],
1.6927 -[_AM_SET_OPTIONS([$1])dnl
1.6928 - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1.6929 - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1.6930 -
1.6931 -_AM_IF_OPTION([no-define],,
1.6932 -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1.6933 - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
1.6934 -
1.6935 -# Some tools Automake needs.
1.6936 -AC_REQUIRE([AM_SANITY_CHECK])dnl
1.6937 -AC_REQUIRE([AC_ARG_PROGRAM])dnl
1.6938 -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
1.6939 -AM_MISSING_PROG(AUTOCONF, autoconf)
1.6940 -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1.6941 -AM_MISSING_PROG(AUTOHEADER, autoheader)
1.6942 -AM_MISSING_PROG(MAKEINFO, makeinfo)
1.6943 -AM_PROG_INSTALL_SH
1.6944 -AM_PROG_INSTALL_STRIP
1.6945 -AC_REQUIRE([AM_PROG_MKDIR_P])dnl
1.6946 -# We need awk for the "check" target. The system "awk" is bad on
1.6947 -# some platforms.
1.6948 -AC_REQUIRE([AC_PROG_AWK])dnl
1.6949 -AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1.6950 -AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1.6951 -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1.6952 - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1.6953 - [_AM_PROG_TAR([v7])])])
1.6954 -_AM_IF_OPTION([no-dependencies],,
1.6955 -[AC_PROVIDE_IFELSE([AC_PROG_CC],
1.6956 - [_AM_DEPENDENCIES(CC)],
1.6957 - [define([AC_PROG_CC],
1.6958 - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1.6959 -AC_PROVIDE_IFELSE([AC_PROG_CXX],
1.6960 - [_AM_DEPENDENCIES(CXX)],
1.6961 - [define([AC_PROG_CXX],
1.6962 - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1.6963 -])
1.6964 -])
1.6965 -
1.6966 -
1.6967 -# When config.status generates a header, we must update the stamp-h file.
1.6968 -# This file resides in the same directory as the config header
1.6969 -# that is generated. The stamp files are numbered to have different names.
1.6970 -
1.6971 -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1.6972 -# loop where config.status creates the headers, so we can generate
1.6973 -# our stamp files there.
1.6974 -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1.6975 -[# Compute $1's index in $config_headers.
1.6976 -_am_stamp_count=1
1.6977 -for _am_header in $config_headers :; do
1.6978 - case $_am_header in
1.6979 - $1 | $1:* )
1.6980 - break ;;
1.6981 - * )
1.6982 - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1.6983 - esac
1.6984 -done
1.6985 -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
1.6986 -
1.6987 -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1.6988 -#
1.6989 -# This file is free software; the Free Software Foundation
1.6990 -# gives unlimited permission to copy and/or distribute it,
1.6991 -# with or without modifications, as long as this notice is preserved.
1.6992 -
1.6993 -# AM_PROG_INSTALL_SH
1.6994 -# ------------------
1.6995 -# Define $install_sh.
1.6996 -AC_DEFUN([AM_PROG_INSTALL_SH],
1.6997 -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1.6998 -install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.6999 -AC_SUBST(install_sh)])
1.7000 -
1.7001 -# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
1.7002 -#
1.7003 -# This file is free software; the Free Software Foundation
1.7004 -# gives unlimited permission to copy and/or distribute it,
1.7005 -# with or without modifications, as long as this notice is preserved.
1.7006 -
1.7007 -# serial 2
1.7008 -
1.7009 -# Check whether the underlying file-system supports filenames
1.7010 -# with a leading dot. For instance MS-DOS doesn't.
1.7011 -AC_DEFUN([AM_SET_LEADING_DOT],
1.7012 -[rm -rf .tst 2>/dev/null
1.7013 -mkdir .tst 2>/dev/null
1.7014 -if test -d .tst; then
1.7015 - am__leading_dot=.
1.7016 -else
1.7017 - am__leading_dot=_
1.7018 -fi
1.7019 -rmdir .tst 2>/dev/null
1.7020 -AC_SUBST([am__leading_dot])])
1.7021 -
1.7022 -# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
1.7023 -# From Jim Meyering
1.7024 -
1.7025 -# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
1.7026 -# Free Software Foundation, Inc.
1.7027 -#
1.7028 -# This file is free software; the Free Software Foundation
1.7029 -# gives unlimited permission to copy and/or distribute it,
1.7030 -# with or without modifications, as long as this notice is preserved.
1.7031 -
1.7032 -# serial 4
1.7033 -
1.7034 -AC_DEFUN([AM_MAINTAINER_MODE],
1.7035 -[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
1.7036 - dnl maintainer-mode is disabled by default
1.7037 - AC_ARG_ENABLE(maintainer-mode,
1.7038 -[ --enable-maintainer-mode enable make rules and dependencies not useful
1.7039 - (and sometimes confusing) to the casual installer],
1.7040 - USE_MAINTAINER_MODE=$enableval,
1.7041 - USE_MAINTAINER_MODE=no)
1.7042 - AC_MSG_RESULT([$USE_MAINTAINER_MODE])
1.7043 - AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
1.7044 - MAINT=$MAINTAINER_MODE_TRUE
1.7045 - AC_SUBST(MAINT)dnl
1.7046 -]
1.7047 -)
1.7048 -
1.7049 -AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
1.7050 -
1.7051 -# Check to see how 'make' treats includes. -*- Autoconf -*-
1.7052 -
1.7053 -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
1.7054 -#
1.7055 -# This file is free software; the Free Software Foundation
1.7056 -# gives unlimited permission to copy and/or distribute it,
1.7057 -# with or without modifications, as long as this notice is preserved.
1.7058 -
1.7059 -# serial 3
1.7060 -
1.7061 -# AM_MAKE_INCLUDE()
1.7062 -# -----------------
1.7063 -# Check to see how make treats includes.
1.7064 -AC_DEFUN([AM_MAKE_INCLUDE],
1.7065 -[am_make=${MAKE-make}
1.7066 -cat > confinc << 'END'
1.7067 -am__doit:
1.7068 - @echo done
1.7069 -.PHONY: am__doit
1.7070 -END
1.7071 -# If we don't find an include directive, just comment out the code.
1.7072 -AC_MSG_CHECKING([for style of include used by $am_make])
1.7073 -am__include="#"
1.7074 -am__quote=
1.7075 -_am_result=none
1.7076 -# First try GNU make style include.
1.7077 -echo "include confinc" > confmf
1.7078 -# We grep out `Entering directory' and `Leaving directory'
1.7079 -# messages which can occur if `w' ends up in MAKEFLAGS.
1.7080 -# In particular we don't look at `^make:' because GNU make might
1.7081 -# be invoked under some other name (usually "gmake"), in which
1.7082 -# case it prints its new name instead of `make'.
1.7083 -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1.7084 - am__include=include
1.7085 - am__quote=
1.7086 - _am_result=GNU
1.7087 -fi
1.7088 -# Now try BSD make style include.
1.7089 -if test "$am__include" = "#"; then
1.7090 - echo '.include "confinc"' > confmf
1.7091 - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1.7092 - am__include=.include
1.7093 - am__quote="\""
1.7094 - _am_result=BSD
1.7095 - fi
1.7096 -fi
1.7097 -AC_SUBST([am__include])
1.7098 -AC_SUBST([am__quote])
1.7099 -AC_MSG_RESULT([$_am_result])
1.7100 -rm -f confinc confmf
1.7101 -])
1.7102 -
1.7103 -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1.7104 -
1.7105 -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
1.7106 -# Free Software Foundation, Inc.
1.7107 -#
1.7108 -# This file is free software; the Free Software Foundation
1.7109 -# gives unlimited permission to copy and/or distribute it,
1.7110 -# with or without modifications, as long as this notice is preserved.
1.7111 -
1.7112 -# serial 4
1.7113 -
1.7114 -# AM_MISSING_PROG(NAME, PROGRAM)
1.7115 -# ------------------------------
1.7116 -AC_DEFUN([AM_MISSING_PROG],
1.7117 -[AC_REQUIRE([AM_MISSING_HAS_RUN])
1.7118 -$1=${$1-"${am_missing_run}$2"}
1.7119 -AC_SUBST($1)])
1.7120 -
1.7121 -
1.7122 -# AM_MISSING_HAS_RUN
1.7123 -# ------------------
1.7124 -# Define MISSING if not defined so far and test if it supports --run.
1.7125 -# If it does, set am_missing_run to use it, otherwise, to nothing.
1.7126 -AC_DEFUN([AM_MISSING_HAS_RUN],
1.7127 -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1.7128 -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1.7129 -# Use eval to expand $SHELL
1.7130 -if eval "$MISSING --run true"; then
1.7131 - am_missing_run="$MISSING --run "
1.7132 -else
1.7133 - am_missing_run=
1.7134 - AC_MSG_WARN([`missing' script is too old or missing])
1.7135 -fi
1.7136 -])
1.7137 -
1.7138 -# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
1.7139 -#
1.7140 -# This file is free software; the Free Software Foundation
1.7141 -# gives unlimited permission to copy and/or distribute it,
1.7142 -# with or without modifications, as long as this notice is preserved.
1.7143 -
1.7144 -# AM_PROG_MKDIR_P
1.7145 -# ---------------
1.7146 -# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
1.7147 -#
1.7148 -# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
1.7149 -# created by `make install' are always world readable, even if the
1.7150 -# installer happens to have an overly restrictive umask (e.g. 077).
1.7151 -# This was a mistake. There are at least two reasons why we must not
1.7152 -# use `-m 0755':
1.7153 -# - it causes special bits like SGID to be ignored,
1.7154 -# - it may be too restrictive (some setups expect 775 directories).
1.7155 -#
1.7156 -# Do not use -m 0755 and let people choose whatever they expect by
1.7157 -# setting umask.
1.7158 -#
1.7159 -# We cannot accept any implementation of `mkdir' that recognizes `-p'.
1.7160 -# Some implementations (such as Solaris 8's) are not thread-safe: if a
1.7161 -# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
1.7162 -# concurrently, both version can detect that a/ is missing, but only
1.7163 -# one can create it and the other will error out. Consequently we
1.7164 -# restrict ourselves to GNU make (using the --version option ensures
1.7165 -# this.)
1.7166 -AC_DEFUN([AM_PROG_MKDIR_P],
1.7167 -[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1.7168 - # We used to keeping the `.' as first argument, in order to
1.7169 - # allow $(mkdir_p) to be used without argument. As in
1.7170 - # $(mkdir_p) $(somedir)
1.7171 - # where $(somedir) is conditionally defined. However this is wrong
1.7172 - # for two reasons:
1.7173 - # 1. if the package is installed by a user who cannot write `.'
1.7174 - # make install will fail,
1.7175 - # 2. the above comment should most certainly read
1.7176 - # $(mkdir_p) $(DESTDIR)$(somedir)
1.7177 - # so it does not work when $(somedir) is undefined and
1.7178 - # $(DESTDIR) is not.
1.7179 - # To support the latter case, we have to write
1.7180 - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1.7181 - # so the `.' trick is pointless.
1.7182 - mkdir_p='mkdir -p --'
1.7183 -else
1.7184 - # On NextStep and OpenStep, the `mkdir' command does not
1.7185 - # recognize any option. It will interpret all options as
1.7186 - # directories to create, and then abort because `.' already
1.7187 - # exists.
1.7188 - for d in ./-p ./--version;
1.7189 - do
1.7190 - test -d $d && rmdir $d
1.7191 - done
1.7192 - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1.7193 - if test -f "$ac_aux_dir/mkinstalldirs"; then
1.7194 - mkdir_p='$(mkinstalldirs)'
1.7195 - else
1.7196 - mkdir_p='$(install_sh) -d'
1.7197 - fi
1.7198 -fi
1.7199 -AC_SUBST([mkdir_p])])
1.7200 -
1.7201 -# Helper functions for option handling. -*- Autoconf -*-
1.7202 -
1.7203 -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
1.7204 -#
1.7205 -# This file is free software; the Free Software Foundation
1.7206 -# gives unlimited permission to copy and/or distribute it,
1.7207 -# with or without modifications, as long as this notice is preserved.
1.7208 -
1.7209 -# serial 3
1.7210 -
1.7211 -# _AM_MANGLE_OPTION(NAME)
1.7212 -# -----------------------
1.7213 -AC_DEFUN([_AM_MANGLE_OPTION],
1.7214 -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1.7215 -
1.7216 -# _AM_SET_OPTION(NAME)
1.7217 -# ------------------------------
1.7218 -# Set option NAME. Presently that only means defining a flag for this option.
1.7219 -AC_DEFUN([_AM_SET_OPTION],
1.7220 -[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1.7221 -
1.7222 -# _AM_SET_OPTIONS(OPTIONS)
1.7223 -# ----------------------------------
1.7224 -# OPTIONS is a space-separated list of Automake options.
1.7225 -AC_DEFUN([_AM_SET_OPTIONS],
1.7226 -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1.7227 -
1.7228 -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1.7229 -# -------------------------------------------
1.7230 -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1.7231 -AC_DEFUN([_AM_IF_OPTION],
1.7232 -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1.7233 -
1.7234 -# Check to make sure that the build environment is sane. -*- Autoconf -*-
1.7235 -
1.7236 -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
1.7237 -# Free Software Foundation, Inc.
1.7238 -#
1.7239 -# This file is free software; the Free Software Foundation
1.7240 -# gives unlimited permission to copy and/or distribute it,
1.7241 -# with or without modifications, as long as this notice is preserved.
1.7242 -
1.7243 -# serial 4
1.7244 -
1.7245 -# AM_SANITY_CHECK
1.7246 -# ---------------
1.7247 -AC_DEFUN([AM_SANITY_CHECK],
1.7248 -[AC_MSG_CHECKING([whether build environment is sane])
1.7249 -# Just in case
1.7250 -sleep 1
1.7251 -echo timestamp > conftest.file
1.7252 -# Do `set' in a subshell so we don't clobber the current shell's
1.7253 -# arguments. Must try -L first in case configure is actually a
1.7254 -# symlink; some systems play weird games with the mod time of symlinks
1.7255 -# (eg FreeBSD returns the mod time of the symlink's containing
1.7256 -# directory).
1.7257 -if (
1.7258 - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.7259 - if test "$[*]" = "X"; then
1.7260 - # -L didn't work.
1.7261 - set X `ls -t $srcdir/configure conftest.file`
1.7262 - fi
1.7263 - rm -f conftest.file
1.7264 - if test "$[*]" != "X $srcdir/configure conftest.file" \
1.7265 - && test "$[*]" != "X conftest.file $srcdir/configure"; then
1.7266 -
1.7267 - # If neither matched, then we have a broken ls. This can happen
1.7268 - # if, for instance, CONFIG_SHELL is bash and it inherits a
1.7269 - # broken ls alias from the environment. This has actually
1.7270 - # happened. Such a system could not be considered "sane".
1.7271 - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1.7272 -alias in your environment])
1.7273 - fi
1.7274 -
1.7275 - test "$[2]" = conftest.file
1.7276 - )
1.7277 -then
1.7278 - # Ok.
1.7279 - :
1.7280 -else
1.7281 - AC_MSG_ERROR([newly created file is older than distributed files!
1.7282 -Check your system clock])
1.7283 -fi
1.7284 -AC_MSG_RESULT(yes)])
1.7285 -
1.7286 -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1.7287 -#
1.7288 -# This file is free software; the Free Software Foundation
1.7289 -# gives unlimited permission to copy and/or distribute it,
1.7290 -# with or without modifications, as long as this notice is preserved.
1.7291 -
1.7292 -# AM_PROG_INSTALL_STRIP
1.7293 -# ---------------------
1.7294 -# One issue with vendor `install' (even GNU) is that you can't
1.7295 -# specify the program used to strip binaries. This is especially
1.7296 -# annoying in cross-compiling environments, where the build's strip
1.7297 -# is unlikely to handle the host's binaries.
1.7298 -# Fortunately install-sh will honor a STRIPPROG variable, so we
1.7299 -# always use install-sh in `make install-strip', and initialize
1.7300 -# STRIPPROG with the value of the STRIP variable (set by the user).
1.7301 -AC_DEFUN([AM_PROG_INSTALL_STRIP],
1.7302 -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1.7303 -# Installed binaries are usually stripped using `strip' when the user
1.7304 -# run `make install-strip'. However `strip' might not be the right
1.7305 -# tool to use in cross-compilation environments, therefore Automake
1.7306 -# will honor the `STRIP' environment variable to overrule this program.
1.7307 -dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1.7308 -if test "$cross_compiling" != no; then
1.7309 - AC_CHECK_TOOL([STRIP], [strip], :)
1.7310 -fi
1.7311 -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1.7312 -AC_SUBST([INSTALL_STRIP_PROGRAM])])
1.7313 -
1.7314 -# Check how to create a tarball. -*- Autoconf -*-
1.7315 -
1.7316 -# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
1.7317 -#
1.7318 -# This file is free software; the Free Software Foundation
1.7319 -# gives unlimited permission to copy and/or distribute it,
1.7320 -# with or without modifications, as long as this notice is preserved.
1.7321 -
1.7322 -# serial 2
1.7323 -
1.7324 -# _AM_PROG_TAR(FORMAT)
1.7325 -# --------------------
1.7326 -# Check how to create a tarball in format FORMAT.
1.7327 -# FORMAT should be one of `v7', `ustar', or `pax'.
1.7328 -#
1.7329 -# Substitute a variable $(am__tar) that is a command
1.7330 -# writing to stdout a FORMAT-tarball containing the directory
1.7331 -# $tardir.
1.7332 -# tardir=directory && $(am__tar) > result.tar
1.7333 -#
1.7334 -# Substitute a variable $(am__untar) that extract such
1.7335 -# a tarball read from stdin.
1.7336 -# $(am__untar) < result.tar
1.7337 -AC_DEFUN([_AM_PROG_TAR],
1.7338 -[# Always define AMTAR for backward compatibility.
1.7339 -AM_MISSING_PROG([AMTAR], [tar])
1.7340 -m4_if([$1], [v7],
1.7341 - [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1.7342 - [m4_case([$1], [ustar],, [pax],,
1.7343 - [m4_fatal([Unknown tar format])])
1.7344 -AC_MSG_CHECKING([how to create a $1 tar archive])
1.7345 -# Loop over all known methods to create a tar archive until one works.
1.7346 -_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1.7347 -_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1.7348 -# Do not fold the above two line into one, because Tru64 sh and
1.7349 -# Solaris sh will not grok spaces in the rhs of `-'.
1.7350 -for _am_tool in $_am_tools
1.7351 -do
1.7352 - case $_am_tool in
1.7353 - gnutar)
1.7354 - for _am_tar in tar gnutar gtar;
1.7355 - do
1.7356 - AM_RUN_LOG([$_am_tar --version]) && break
1.7357 - done
1.7358 - am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1.7359 - am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1.7360 - am__untar="$_am_tar -xf -"
1.7361 - ;;
1.7362 - plaintar)
1.7363 - # Must skip GNU tar: if it does not support --format= it doesn't create
1.7364 - # ustar tarball either.
1.7365 - (tar --version) >/dev/null 2>&1 && continue
1.7366 - am__tar='tar chf - "$$tardir"'
1.7367 - am__tar_='tar chf - "$tardir"'
1.7368 - am__untar='tar xf -'
1.7369 - ;;
1.7370 - pax)
1.7371 - am__tar='pax -L -x $1 -w "$$tardir"'
1.7372 - am__tar_='pax -L -x $1 -w "$tardir"'
1.7373 - am__untar='pax -r'
1.7374 - ;;
1.7375 - cpio)
1.7376 - am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1.7377 - am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1.7378 - am__untar='cpio -i -H $1 -d'
1.7379 - ;;
1.7380 - none)
1.7381 - am__tar=false
1.7382 - am__tar_=false
1.7383 - am__untar=false
1.7384 - ;;
1.7385 - esac
1.7386 -
1.7387 - # If the value was cached, stop now. We just wanted to have am__tar
1.7388 - # and am__untar set.
1.7389 - test -n "${am_cv_prog_tar_$1}" && break
1.7390 -
1.7391 - # tar/untar a dummy directory, and stop if the command works
1.7392 - rm -rf conftest.dir
1.7393 - mkdir conftest.dir
1.7394 - echo GrepMe > conftest.dir/file
1.7395 - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1.7396 - rm -rf conftest.dir
1.7397 - if test -s conftest.tar; then
1.7398 - AM_RUN_LOG([$am__untar <conftest.tar])
1.7399 - grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1.7400 - fi
1.7401 -done
1.7402 -rm -rf conftest.dir
1.7403 -
1.7404 -AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1.7405 -AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1.7406 -AC_SUBST([am__tar])
1.7407 -AC_SUBST([am__untar])
1.7408 -]) # _AM_PROG_TAR
1.7409 -
1.7410 -m4_include([m4/as-version.m4])
2.1 --- a/gst-plugins-mythtv/autoregen.sh Tue Sep 26 15:23:49 2006 +0100
2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
2.3 @@ -1,2 +0,0 @@
2.4 -#!/bin/sh
2.5 -./autogen.sh $@
3.1 --- a/gst-plugins-mythtv/compile Tue Sep 26 15:23:49 2006 +0100
3.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
3.3 @@ -1,136 +0,0 @@
3.4 -#! /bin/sh
3.5 -# Wrapper for compilers which do not understand `-c -o'.
3.6 -
3.7 -scriptversion=2003-11-09.00
3.8 -
3.9 -# Copyright (C) 1999, 2000, 2003 Free Software Foundation, Inc.
3.10 -# Written by Tom Tromey <tromey@cygnus.com>.
3.11 -#
3.12 -# This program is free software; you can redistribute it and/or modify
3.13 -# it under the terms of the GNU General Public License as published by
3.14 -# the Free Software Foundation; either version 2, or (at your option)
3.15 -# any later version.
3.16 -#
3.17 -# This program is distributed in the hope that it will be useful,
3.18 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
3.19 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3.20 -# GNU General Public License for more details.
3.21 -#
3.22 -# You should have received a copy of the GNU General Public License
3.23 -# along with this program; if not, write to the Free Software
3.24 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3.25 -
3.26 -# As a special exception to the GNU General Public License, if you
3.27 -# distribute this file as part of a program that contains a
3.28 -# configuration script generated by Autoconf, you may include it under
3.29 -# the same distribution terms that you use for the rest of that program.
3.30 -
3.31 -# This file is maintained in Automake, please report
3.32 -# bugs to <bug-automake@gnu.org> or send patches to
3.33 -# <automake-patches@gnu.org>.
3.34 -
3.35 -case $1 in
3.36 - '')
3.37 - echo "$0: No command. Try \`$0 --help' for more information." 1>&2
3.38 - exit 1;
3.39 - ;;
3.40 - -h | --h*)
3.41 - cat <<\EOF
3.42 -Usage: compile [--help] [--version] PROGRAM [ARGS]
3.43 -
3.44 -Wrapper for compilers which do not understand `-c -o'.
3.45 -Remove `-o dest.o' from ARGS, run PROGRAM with the remaining
3.46 -arguments, and rename the output as expected.
3.47 -
3.48 -If you are trying to build a whole package this is not the
3.49 -right script to run: please start by reading the file `INSTALL'.
3.50 -
3.51 -Report bugs to <bug-automake@gnu.org>.
3.52 -EOF
3.53 - exit 0
3.54 - ;;
3.55 - -v | --v*)
3.56 - echo "compile $scriptversion"
3.57 - exit 0
3.58 - ;;
3.59 -esac
3.60 -
3.61 -
3.62 -prog=$1
3.63 -shift
3.64 -
3.65 -ofile=
3.66 -cfile=
3.67 -args=
3.68 -while test $# -gt 0; do
3.69 - case "$1" in
3.70 - -o)
3.71 - # configure might choose to run compile as `compile cc -o foo foo.c'.
3.72 - # So we do something ugly here.
3.73 - ofile=$2
3.74 - shift
3.75 - case "$ofile" in
3.76 - *.o | *.obj)
3.77 - ;;
3.78 - *)
3.79 - args="$args -o $ofile"
3.80 - ofile=
3.81 - ;;
3.82 - esac
3.83 - ;;
3.84 - *.c)
3.85 - cfile=$1
3.86 - args="$args $1"
3.87 - ;;
3.88 - *)
3.89 - args="$args $1"
3.90 - ;;
3.91 - esac
3.92 - shift
3.93 -done
3.94 -
3.95 -if test -z "$ofile" || test -z "$cfile"; then
3.96 - # If no `-o' option was seen then we might have been invoked from a
3.97 - # pattern rule where we don't need one. That is ok -- this is a
3.98 - # normal compilation that the losing compiler can handle. If no
3.99 - # `.c' file was seen then we are probably linking. That is also
3.100 - # ok.
3.101 - exec "$prog" $args
3.102 -fi
3.103 -
3.104 -# Name of file we expect compiler to create.
3.105 -cofile=`echo $cfile | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
3.106 -
3.107 -# Create the lock directory.
3.108 -# Note: use `[/.-]' here to ensure that we don't use the same name
3.109 -# that we are using for the .o file. Also, base the name on the expected
3.110 -# object file name, since that is what matters with a parallel build.
3.111 -lockdir=`echo $cofile | sed -e 's|[/.-]|_|g'`.d
3.112 -while true; do
3.113 - if mkdir $lockdir > /dev/null 2>&1; then
3.114 - break
3.115 - fi
3.116 - sleep 1
3.117 -done
3.118 -# FIXME: race condition here if user kills between mkdir and trap.
3.119 -trap "rmdir $lockdir; exit 1" 1 2 15
3.120 -
3.121 -# Run the compile.
3.122 -"$prog" $args
3.123 -status=$?
3.124 -
3.125 -if test -f "$cofile"; then
3.126 - mv "$cofile" "$ofile"
3.127 -fi
3.128 -
3.129 -rmdir $lockdir
3.130 -exit $status
3.131 -
3.132 -# Local Variables:
3.133 -# mode: shell-script
3.134 -# sh-indentation: 2
3.135 -# eval: (add-hook 'write-file-hooks 'time-stamp)
3.136 -# time-stamp-start: "scriptversion="
3.137 -# time-stamp-format: "%:y-%02m-%02d.%02H"
3.138 -# time-stamp-end: "$"
3.139 -# End:
4.1 --- a/gst-plugins-mythtv/depcomp Tue Sep 26 15:23:49 2006 +0100
4.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
4.3 @@ -1,526 +0,0 @@
4.4 -#! /bin/sh
4.5 -# depcomp - compile a program generating dependencies as side-effects
4.6 -
4.7 -scriptversion=2004-04-25.13
4.8 -
4.9 -# Copyright (C) 1999, 2000, 2003, 2004 Free Software Foundation, Inc.
4.10 -
4.11 -# This program is free software; you can redistribute it and/or modify
4.12 -# it under the terms of the GNU General Public License as published by
4.13 -# the Free Software Foundation; either version 2, or (at your option)
4.14 -# any later version.
4.15 -
4.16 -# This program is distributed in the hope that it will be useful,
4.17 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
4.18 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4.19 -# GNU General Public License for more details.
4.20 -
4.21 -# You should have received a copy of the GNU General Public License
4.22 -# along with this program; if not, write to the Free Software
4.23 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4.24 -# 02111-1307, USA.
4.25 -
4.26 -# As a special exception to the GNU General Public License, if you
4.27 -# distribute this file as part of a program that contains a
4.28 -# configuration script generated by Autoconf, you may include it under
4.29 -# the same distribution terms that you use for the rest of that program.
4.30 -
4.31 -# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
4.32 -
4.33 -case $1 in
4.34 - '')
4.35 - echo "$0: No command. Try \`$0 --help' for more information." 1>&2
4.36 - exit 1;
4.37 - ;;
4.38 - -h | --h*)
4.39 - cat <<\EOF
4.40 -Usage: depcomp [--help] [--version] PROGRAM [ARGS]
4.41 -
4.42 -Run PROGRAMS ARGS to compile a file, generating dependencies
4.43 -as side-effects.
4.44 -
4.45 -Environment variables:
4.46 - depmode Dependency tracking mode.
4.47 - source Source file read by `PROGRAMS ARGS'.
4.48 - object Object file output by `PROGRAMS ARGS'.
4.49 - depfile Dependency file to output.
4.50 - tmpdepfile Temporary file to use when outputing dependencies.
4.51 - libtool Whether libtool is used (yes/no).
4.52 -
4.53 -Report bugs to <bug-automake@gnu.org>.
4.54 -EOF
4.55 - exit 0
4.56 - ;;
4.57 - -v | --v*)
4.58 - echo "depcomp $scriptversion"
4.59 - exit 0
4.60 - ;;
4.61 -esac
4.62 -
4.63 -if test -z "$depmode" || test -z "$source" || test -z "$object"; then
4.64 - echo "depcomp: Variables source, object and depmode must be set" 1>&2
4.65 - exit 1
4.66 -fi
4.67 -# `libtool' can also be set to `yes' or `no'.
4.68 -
4.69 -if test -z "$depfile"; then
4.70 - base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'`
4.71 - dir=`echo "$object" | sed 's,/.*$,/,'`
4.72 - if test "$dir" = "$object"; then
4.73 - dir=
4.74 - fi
4.75 - # FIXME: should be _deps on DOS.
4.76 - depfile="$dir.deps/$base"
4.77 -fi
4.78 -
4.79 -tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
4.80 -
4.81 -rm -f "$tmpdepfile"
4.82 -
4.83 -# Some modes work just like other modes, but use different flags. We
4.84 -# parameterize here, but still list the modes in the big case below,
4.85 -# to make depend.m4 easier to write. Note that we *cannot* use a case
4.86 -# here, because this file can only contain one case statement.
4.87 -if test "$depmode" = hp; then
4.88 - # HP compiler uses -M and no extra arg.
4.89 - gccflag=-M
4.90 - depmode=gcc
4.91 -fi
4.92 -
4.93 -if test "$depmode" = dashXmstdout; then
4.94 - # This is just like dashmstdout with a different argument.
4.95 - dashmflag=-xM
4.96 - depmode=dashmstdout
4.97 -fi
4.98 -
4.99 -case "$depmode" in
4.100 -gcc3)
4.101 -## gcc 3 implements dependency tracking that does exactly what
4.102 -## we want. Yay! Note: for some reason libtool 1.4 doesn't like
4.103 -## it if -MD -MP comes after the -MF stuff. Hmm.
4.104 - "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
4.105 - stat=$?
4.106 - if test $stat -eq 0; then :
4.107 - else
4.108 - rm -f "$tmpdepfile"
4.109 - exit $stat
4.110 - fi
4.111 - mv "$tmpdepfile" "$depfile"
4.112 - ;;
4.113 -
4.114 -gcc)
4.115 -## There are various ways to get dependency output from gcc. Here's
4.116 -## why we pick this rather obscure method:
4.117 -## - Don't want to use -MD because we'd like the dependencies to end
4.118 -## up in a subdir. Having to rename by hand is ugly.
4.119 -## (We might end up doing this anyway to support other compilers.)
4.120 -## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
4.121 -## -MM, not -M (despite what the docs say).
4.122 -## - Using -M directly means running the compiler twice (even worse
4.123 -## than renaming).
4.124 - if test -z "$gccflag"; then
4.125 - gccflag=-MD,
4.126 - fi
4.127 - "$@" -Wp,"$gccflag$tmpdepfile"
4.128 - stat=$?
4.129 - if test $stat -eq 0; then :
4.130 - else
4.131 - rm -f "$tmpdepfile"
4.132 - exit $stat
4.133 - fi
4.134 - rm -f "$depfile"
4.135 - echo "$object : \\" > "$depfile"
4.136 - alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
4.137 -## The second -e expression handles DOS-style file names with drive letters.
4.138 - sed -e 's/^[^:]*: / /' \
4.139 - -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
4.140 -## This next piece of magic avoids the `deleted header file' problem.
4.141 -## The problem is that when a header file which appears in a .P file
4.142 -## is deleted, the dependency causes make to die (because there is
4.143 -## typically no way to rebuild the header). We avoid this by adding
4.144 -## dummy dependencies for each header file. Too bad gcc doesn't do
4.145 -## this for us directly.
4.146 - tr ' ' '
4.147 -' < "$tmpdepfile" |
4.148 -## Some versions of gcc put a space before the `:'. On the theory
4.149 -## that the space means something, we add a space to the output as
4.150 -## well.
4.151 -## Some versions of the HPUX 10.20 sed can't process this invocation
4.152 -## correctly. Breaking it into two sed invocations is a workaround.
4.153 - sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
4.154 - rm -f "$tmpdepfile"
4.155 - ;;
4.156 -
4.157 -hp)
4.158 - # This case exists only to let depend.m4 do its work. It works by
4.159 - # looking at the text of this script. This case will never be run,
4.160 - # since it is checked for above.
4.161 - exit 1
4.162 - ;;
4.163 -
4.164 -sgi)
4.165 - if test "$libtool" = yes; then
4.166 - "$@" "-Wp,-MDupdate,$tmpdepfile"
4.167 - else
4.168 - "$@" -MDupdate "$tmpdepfile"
4.169 - fi
4.170 - stat=$?
4.171 - if test $stat -eq 0; then :
4.172 - else
4.173 - rm -f "$tmpdepfile"
4.174 - exit $stat
4.175 - fi
4.176 - rm -f "$depfile"
4.177 -
4.178 - if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
4.179 - echo "$object : \\" > "$depfile"
4.180 -
4.181 - # Clip off the initial element (the dependent). Don't try to be
4.182 - # clever and replace this with sed code, as IRIX sed won't handle
4.183 - # lines with more than a fixed number of characters (4096 in
4.184 - # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
4.185 - # the IRIX cc adds comments like `#:fec' to the end of the
4.186 - # dependency line.
4.187 - tr ' ' '
4.188 -' < "$tmpdepfile" \
4.189 - | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
4.190 - tr '
4.191 -' ' ' >> $depfile
4.192 - echo >> $depfile
4.193 -
4.194 - # The second pass generates a dummy entry for each header file.
4.195 - tr ' ' '
4.196 -' < "$tmpdepfile" \
4.197 - | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
4.198 - >> $depfile
4.199 - else
4.200 - # The sourcefile does not contain any dependencies, so just
4.201 - # store a dummy comment line, to avoid errors with the Makefile
4.202 - # "include basename.Plo" scheme.
4.203 - echo "#dummy" > "$depfile"
4.204 - fi
4.205 - rm -f "$tmpdepfile"
4.206 - ;;
4.207 -
4.208 -aix)
4.209 - # The C for AIX Compiler uses -M and outputs the dependencies
4.210 - # in a .u file. In older versions, this file always lives in the
4.211 - # current directory. Also, the AIX compiler puts `$object:' at the
4.212 - # start of each line; $object doesn't have directory information.
4.213 - # Version 6 uses the directory in both cases.
4.214 - stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
4.215 - tmpdepfile="$stripped.u"
4.216 - if test "$libtool" = yes; then
4.217 - "$@" -Wc,-M
4.218 - else
4.219 - "$@" -M
4.220 - fi
4.221 - stat=$?
4.222 -
4.223 - if test -f "$tmpdepfile"; then :
4.224 - else
4.225 - stripped=`echo "$stripped" | sed 's,^.*/,,'`
4.226 - tmpdepfile="$stripped.u"
4.227 - fi
4.228 -
4.229 - if test $stat -eq 0; then :
4.230 - else
4.231 - rm -f "$tmpdepfile"
4.232 - exit $stat
4.233 - fi
4.234 -
4.235 - if test -f "$tmpdepfile"; then
4.236 - outname="$stripped.o"
4.237 - # Each line is of the form `foo.o: dependent.h'.
4.238 - # Do two passes, one to just change these to
4.239 - # `$object: dependent.h' and one to simply `dependent.h:'.
4.240 - sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
4.241 - sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
4.242 - else
4.243 - # The sourcefile does not contain any dependencies, so just
4.244 - # store a dummy comment line, to avoid errors with the Makefile
4.245 - # "include basename.Plo" scheme.
4.246 - echo "#dummy" > "$depfile"
4.247 - fi
4.248 - rm -f "$tmpdepfile"
4.249 - ;;
4.250 -
4.251 -icc)
4.252 - # Intel's C compiler understands `-MD -MF file'. However on
4.253 - # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
4.254 - # ICC 7.0 will fill foo.d with something like
4.255 - # foo.o: sub/foo.c
4.256 - # foo.o: sub/foo.h
4.257 - # which is wrong. We want:
4.258 - # sub/foo.o: sub/foo.c
4.259 - # sub/foo.o: sub/foo.h
4.260 - # sub/foo.c:
4.261 - # sub/foo.h:
4.262 - # ICC 7.1 will output
4.263 - # foo.o: sub/foo.c sub/foo.h
4.264 - # and will wrap long lines using \ :
4.265 - # foo.o: sub/foo.c ... \
4.266 - # sub/foo.h ... \
4.267 - # ...
4.268 -
4.269 - "$@" -MD -MF "$tmpdepfile"
4.270 - stat=$?
4.271 - if test $stat -eq 0; then :
4.272 - else
4.273 - rm -f "$tmpdepfile"
4.274 - exit $stat
4.275 - fi
4.276 - rm -f "$depfile"
4.277 - # Each line is of the form `foo.o: dependent.h',
4.278 - # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
4.279 - # Do two passes, one to just change these to
4.280 - # `$object: dependent.h' and one to simply `dependent.h:'.
4.281 - sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
4.282 - # Some versions of the HPUX 10.20 sed can't process this invocation
4.283 - # correctly. Breaking it into two sed invocations is a workaround.
4.284 - sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
4.285 - sed -e 's/$/ :/' >> "$depfile"
4.286 - rm -f "$tmpdepfile"
4.287 - ;;
4.288 -
4.289 -tru64)
4.290 - # The Tru64 compiler uses -MD to generate dependencies as a side
4.291 - # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
4.292 - # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
4.293 - # dependencies in `foo.d' instead, so we check for that too.
4.294 - # Subdirectories are respected.
4.295 - dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
4.296 - test "x$dir" = "x$object" && dir=
4.297 - base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
4.298 -
4.299 - if test "$libtool" = yes; then
4.300 - # Dependencies are output in .lo.d with libtool 1.4.
4.301 - # They are output in .o.d with libtool 1.5.
4.302 - tmpdepfile1="$dir.libs/$base.lo.d"
4.303 - tmpdepfile2="$dir.libs/$base.o.d"
4.304 - tmpdepfile3="$dir.libs/$base.d"
4.305 - "$@" -Wc,-MD
4.306 - else
4.307 - tmpdepfile1="$dir$base.o.d"
4.308 - tmpdepfile2="$dir$base.d"
4.309 - tmpdepfile3="$dir$base.d"
4.310 - "$@" -MD
4.311 - fi
4.312 -
4.313 - stat=$?
4.314 - if test $stat -eq 0; then :
4.315 - else
4.316 - rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
4.317 - exit $stat
4.318 - fi
4.319 -
4.320 - if test -f "$tmpdepfile1"; then
4.321 - tmpdepfile="$tmpdepfile1"
4.322 - elif test -f "$tmpdepfile2"; then
4.323 - tmpdepfile="$tmpdepfile2"
4.324 - else
4.325 - tmpdepfile="$tmpdepfile3"
4.326 - fi
4.327 - if test -f "$tmpdepfile"; then
4.328 - sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
4.329 - # That's a tab and a space in the [].
4.330 - sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
4.331 - else
4.332 - echo "#dummy" > "$depfile"
4.333 - fi
4.334 - rm -f "$tmpdepfile"
4.335 - ;;
4.336 -
4.337 -#nosideeffect)
4.338 - # This comment above is used by automake to tell side-effect
4.339 - # dependency tracking mechanisms from slower ones.
4.340 -
4.341 -dashmstdout)
4.342 - # Important note: in order to support this mode, a compiler *must*
4.343 - # always write the preprocessed file to stdout, regardless of -o.
4.344 - "$@" || exit $?
4.345 -
4.346 - # Remove the call to Libtool.
4.347 - if test "$libtool" = yes; then
4.348 - while test $1 != '--mode=compile'; do
4.349 - shift
4.350 - done
4.351 - shift
4.352 - fi
4.353 -
4.354 - # Remove `-o $object'.
4.355 - IFS=" "
4.356 - for arg
4.357 - do
4.358 - case $arg in
4.359 - -o)
4.360 - shift
4.361 - ;;
4.362 - $object)
4.363 - shift
4.364 - ;;
4.365 - *)
4.366 - set fnord "$@" "$arg"
4.367 - shift # fnord
4.368 - shift # $arg
4.369 - ;;
4.370 - esac
4.371 - done
4.372 -
4.373 - test -z "$dashmflag" && dashmflag=-M
4.374 - # Require at least two characters before searching for `:'
4.375 - # in the target name. This is to cope with DOS-style filenames:
4.376 - # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
4.377 - "$@" $dashmflag |
4.378 - sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
4.379 - rm -f "$depfile"
4.380 - cat < "$tmpdepfile" > "$depfile"
4.381 - tr ' ' '
4.382 -' < "$tmpdepfile" | \
4.383 -## Some versions of the HPUX 10.20 sed can't process this invocation
4.384 -## correctly. Breaking it into two sed invocations is a workaround.
4.385 - sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
4.386 - rm -f "$tmpdepfile"
4.387 - ;;
4.388 -
4.389 -dashXmstdout)
4.390 - # This case only exists to satisfy depend.m4. It is never actually
4.391 - # run, as this mode is specially recognized in the preamble.
4.392 - exit 1
4.393 - ;;
4.394 -
4.395 -makedepend)
4.396 - "$@" || exit $?
4.397 - # Remove any Libtool call
4.398 - if test "$libtool" = yes; then
4.399 - while test $1 != '--mode=compile'; do
4.400 - shift
4.401 - done
4.402 - shift
4.403 - fi
4.404 - # X makedepend
4.405 - shift
4.406 - cleared=no
4.407 - for arg in "$@"; do
4.408 - case $cleared in
4.409 - no)
4.410 - set ""; shift
4.411 - cleared=yes ;;
4.412 - esac
4.413 - case "$arg" in
4.414 - -D*|-I*)
4.415 - set fnord "$@" "$arg"; shift ;;
4.416 - # Strip any option that makedepend may not understand. Remove
4.417 - # the object too, otherwise makedepend will parse it as a source file.
4.418 - -*|$object)
4.419 - ;;
4.420 - *)
4.421 - set fnord "$@" "$arg"; shift ;;
4.422 - esac
4.423 - done
4.424 - obj_suffix="`echo $object | sed 's/^.*\././'`"
4.425 - touch "$tmpdepfile"
4.426 - ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
4.427 - rm -f "$depfile"
4.428 - cat < "$tmpdepfile" > "$depfile"
4.429 - sed '1,2d' "$tmpdepfile" | tr ' ' '
4.430 -' | \
4.431 -## Some versions of the HPUX 10.20 sed can't process this invocation
4.432 -## correctly. Breaking it into two sed invocations is a workaround.
4.433 - sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
4.434 - rm -f "$tmpdepfile" "$tmpdepfile".bak
4.435 - ;;
4.436 -
4.437 -cpp)
4.438 - # Important note: in order to support this mode, a compiler *must*
4.439 - # always write the preprocessed file to stdout.
4.440 - "$@" || exit $?
4.441 -
4.442 - # Remove the call to Libtool.
4.443 - if test "$libtool" = yes; then
4.444 - while test $1 != '--mode=compile'; do
4.445 - shift
4.446 - done
4.447 - shift
4.448 - fi
4.449 -
4.450 - # Remove `-o $object'.
4.451 - IFS=" "
4.452 - for arg
4.453 - do
4.454 - case $arg in
4.455 - -o)
4.456 - shift
4.457 - ;;
4.458 - $object)
4.459 - shift
4.460 - ;;
4.461 - *)
4.462 - set fnord "$@" "$arg"
4.463 - shift # fnord
4.464 - shift # $arg
4.465 - ;;
4.466 - esac
4.467 - done
4.468 -
4.469 - "$@" -E |
4.470 - sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
4.471 - sed '$ s: \\$::' > "$tmpdepfile"
4.472 - rm -f "$depfile"
4.473 - echo "$object : \\" > "$depfile"
4.474 - cat < "$tmpdepfile" >> "$depfile"
4.475 - sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
4.476 - rm -f "$tmpdepfile"
4.477 - ;;
4.478 -
4.479 -msvisualcpp)
4.480 - # Important note: in order to support this mode, a compiler *must*
4.481 - # always write the preprocessed file to stdout, regardless of -o,
4.482 - # because we must use -o when running libtool.
4.483 - "$@" || exit $?
4.484 - IFS=" "
4.485 - for arg
4.486 - do
4.487 - case "$arg" in
4.488 - "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
4.489 - set fnord "$@"
4.490 - shift
4.491 - shift
4.492 - ;;
4.493 - *)
4.494 - set fnord "$@" "$arg"
4.495 - shift
4.496 - shift
4.497 - ;;
4.498 - esac
4.499 - done
4.500 - "$@" -E |
4.501 - sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
4.502 - rm -f "$depfile"
4.503 - echo "$object : \\" > "$depfile"
4.504 - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
4.505 - echo " " >> "$depfile"
4.506 - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
4.507 - rm -f "$tmpdepfile"
4.508 - ;;
4.509 -
4.510 -none)
4.511 - exec "$@"
4.512 - ;;
4.513 -
4.514 -*)
4.515 - echo "Unknown depmode $depmode" 1>&2
4.516 - exit 1
4.517 - ;;
4.518 -esac
4.519 -
4.520 -exit 0
4.521 -
4.522 -# Local Variables:
4.523 -# mode: shell-script
4.524 -# sh-indentation: 2
4.525 -# eval: (add-hook 'write-file-hooks 'time-stamp)
4.526 -# time-stamp-start: "scriptversion="
4.527 -# time-stamp-format: "%:y-%02m-%02d.%02H"
4.528 -# time-stamp-end: "$"
4.529 -# End:
5.1 --- a/gst-plugins-mythtv/install-sh Tue Sep 26 15:23:49 2006 +0100
5.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
5.3 @@ -1,325 +0,0 @@
5.4 -#!/bin/sh
5.5 -# install - install a program, script, or datafile
5.6 -
5.7 -scriptversion=2004-04-01.17
5.8 -
5.9 -# This originates from X11R5 (mit/util/scripts/install.sh), which was
5.10 -# later released in X11R6 (xc/config/util/install.sh) with the
5.11 -# following copyright and license.
5.12 -#
5.13 -# Copyright (C) 1994 X Consortium
5.14 -#
5.15 -# Permission is hereby granted, free of charge, to any person obtaining a copy
5.16 -# of this software and associated documentation files (the "Software"), to
5.17 -# deal in the Software without restriction, including without limitation the
5.18 -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
5.19 -# sell copies of the Software, and to permit persons to whom the Software is
5.20 -# furnished to do so, subject to the following conditions:
5.21 -#
5.22 -# The above copyright notice and this permission notice shall be included in
5.23 -# all copies or substantial portions of the Software.
5.24 -#
5.25 -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5.26 -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5.27 -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5.28 -# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
5.29 -# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
5.30 -# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5.31 -#
5.32 -# Except as contained in this notice, the name of the X Consortium shall not
5.33 -# be used in advertising or otherwise to promote the sale, use or other deal-
5.34 -# ings in this Software without prior written authorization from the X Consor-
5.35 -# tium.
5.36 -#
5.37 -#
5.38 -# FSF changes to this file are in the public domain.
5.39 -#
5.40 -# Calling this script install-sh is preferred over install.sh, to prevent
5.41 -# `make' implicit rules from creating a file called install from it
5.42 -# when there is no Makefile.
5.43 -#
5.44 -# This script is compatible with the BSD install script, but was written
5.45 -# from scratch. It can only install one file at a time, a restriction
5.46 -# shared with many OS's install programs.
5.47 -
5.48 -# set DOITPROG to echo to test this script
5.49 -
5.50 -# Don't use :- since 4.3BSD and earlier shells don't like it.
5.51 -doit="${DOITPROG-}"
5.52 -
5.53 -# put in absolute paths if you don't have them in your path; or use env. vars.
5.54 -
5.55 -mvprog="${MVPROG-mv}"
5.56 -cpprog="${CPPROG-cp}"
5.57 -chmodprog="${CHMODPROG-chmod}"
5.58 -chownprog="${CHOWNPROG-chown}"
5.59 -chgrpprog="${CHGRPPROG-chgrp}"
5.60 -stripprog="${STRIPPROG-strip}"
5.61 -rmprog="${RMPROG-rm}"
5.62 -mkdirprog="${MKDIRPROG-mkdir}"
5.63 -
5.64 -transformbasename=
5.65 -transform_arg=
5.66 -instcmd="$mvprog"
5.67 -chmodcmd="$chmodprog 0755"
5.68 -chowncmd=
5.69 -chgrpcmd=
5.70 -stripcmd=
5.71 -rmcmd="$rmprog -f"
5.72 -mvcmd="$mvprog"
5.73 -src=
5.74 -dst=
5.75 -dir_arg=
5.76 -
5.77 -usage="Usage: $0 [OPTION]... SRCFILE DSTFILE
5.78 - or: $0 [OPTION]... SRCFILES... DIRECTORY
5.79 - or: $0 -d DIRECTORIES...
5.80 -
5.81 -In the first form, install SRCFILE to DSTFILE, removing SRCFILE by default.
5.82 -In the second, create the directory path DIR.
5.83 -
5.84 -Options:
5.85 --b=TRANSFORMBASENAME
5.86 --c copy source (using $cpprog) instead of moving (using $mvprog).
5.87 --d create directories instead of installing files.
5.88 --g GROUP $chgrp installed files to GROUP.
5.89 --m MODE $chmod installed files to MODE.
5.90 --o USER $chown installed files to USER.
5.91 --s strip installed files (using $stripprog).
5.92 --t=TRANSFORM
5.93 ---help display this help and exit.
5.94 ---version display version info and exit.
5.95 -
5.96 -Environment variables override the default commands:
5.97 - CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
5.98 -"
5.99 -
5.100 -while test -n "$1"; do
5.101 - case $1 in
5.102 - -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
5.103 - shift
5.104 - continue;;
5.105 -
5.106 - -c) instcmd=$cpprog
5.107 - shift
5.108 - continue;;
5.109 -
5.110 - -d) dir_arg=true
5.111 - shift
5.112 - continue;;
5.113 -
5.114 - -g) chgrpcmd="$chgrpprog $2"
5.115 - shift
5.116 - shift
5.117 - continue;;
5.118 -
5.119 - --help) echo "$usage"; exit 0;;
5.120 -
5.121 - -m) chmodcmd="$chmodprog $2"
5.122 - shift
5.123 - shift
5.124 - continue;;
5.125 -
5.126 - -o) chowncmd="$chownprog $2"
5.127 - shift
5.128 - shift
5.129 - continue;;
5.130 -
5.131 - -s) stripcmd=$stripprog
5.132 - shift
5.133 - continue;;
5.134 -
5.135 - -t=*) transformarg=`echo $1 | sed 's/-t=//'`
5.136 - shift
5.137 - continue;;
5.138 -
5.139 - --version) echo "$0 $scriptversion"; exit 0;;
5.140 -
5.141 - *) # When -d is used, all remaining arguments are directories to create.
5.142 - test -n "$dir_arg" && break
5.143 - # Otherwise, the last argument is the destination. Remove it from $@.
5.144 - for arg
5.145 - do
5.146 - if test -n "$dstarg"; then
5.147 - # $@ is not empty: it contains at least $arg.
5.148 - set fnord "$@" "$dstarg"
5.149 - shift # fnord
5.150 - fi
5.151 - shift # arg
5.152 - dstarg=$arg
5.153 - done
5.154 - break;;
5.155 - esac
5.156 -done
5.157 -
5.158 -if test -z "$1"; then
5.159 - if test -z "$dir_arg"; then
5.160 - echo "$0: no input file specified." >&2
5.161 - exit 1
5.162 - fi
5.163 - # It's OK to call `install-sh -d' without argument.
5.164 - # This can happen when creating conditional directories.
5.165 - exit 0
5.166 -fi
5.167 -
5.168 -for src
5.169 -do
5.170 - # Protect names starting with `-'.
5.171 - case $src in
5.172 - -*) src=./$src ;;
5.173 - esac
5.174 -
5.175 - if test -n "$dir_arg"; then
5.176 - dst=$src
5.177 - src=
5.178 -
5.179 - if test -d "$dst"; then
5.180 - instcmd=:
5.181 - chmodcmd=
5.182 - else
5.183 - instcmd=$mkdirprog
5.184 - fi
5.185 - else
5.186 - # Waiting for this to be detected by the "$instcmd $src $dsttmp" command
5.187 - # might cause directories to be created, which would be especially bad
5.188 - # if $src (and thus $dsttmp) contains '*'.
5.189 - if test ! -f "$src" && test ! -d "$src"; then
5.190 - echo "$0: $src does not exist." >&2
5.191 - exit 1
5.192 - fi
5.193 -
5.194 - if test -z "$dstarg"; then
5.195 - echo "$0: no destination specified." >&2
5.196 - exit 1
5.197 - fi
5.198 -
5.199 - dst=$dstarg
5.200 - # Protect names starting with `-'.
5.201 - case $dst in
5.202 - -*) dst=./$dst ;;
5.203 - esac
5.204 -
5.205 - # If destination is a directory, append the input filename; won't work
5.206 - # if double slashes aren't ignored.
5.207 - if test -d "$dst"; then
5.208 - dst=$dst/`basename "$src"`
5.209 - fi
5.210 - fi
5.211 -
5.212 - # This sed command emulates the dirname command.
5.213 - dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
5.214 -
5.215 - # Make sure that the destination directory exists.
5.216 -
5.217 - # Skip lots of stat calls in the usual case.
5.218 - if test ! -d "$dstdir"; then
5.219 - defaultIFS='
5.220 - '
5.221 - IFS="${IFS-$defaultIFS}"
5.222 -
5.223 - oIFS=$IFS
5.224 - # Some sh's can't handle IFS=/ for some reason.
5.225 - IFS='%'
5.226 - set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
5.227 - IFS=$oIFS
5.228 -
5.229 - pathcomp=
5.230 -
5.231 - while test $# -ne 0 ; do
5.232 - pathcomp=$pathcomp$1
5.233 - shift
5.234 - if test ! -d "$pathcomp"; then
5.235 - $mkdirprog "$pathcomp" || lasterr=$?
5.236 - # mkdir can fail with a `File exist' error in case several
5.237 - # install-sh are creating the directory concurrently. This
5.238 - # is OK.
5.239 - test ! -d "$pathcomp" && { (exit ${lasterr-1}); exit; }
5.240 - fi
5.241 - pathcomp=$pathcomp/
5.242 - done
5.243 - fi
5.244 -
5.245 - if test -n "$dir_arg"; then
5.246 - $doit $instcmd "$dst" \
5.247 - && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
5.248 - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
5.249 - && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
5.250 - && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
5.251 -
5.252 - else
5.253 - # If we're going to rename the final executable, determine the name now.
5.254 - if test -z "$transformarg"; then
5.255 - dstfile=`basename "$dst"`
5.256 - else
5.257 - dstfile=`basename "$dst" $transformbasename \
5.258 - | sed $transformarg`$transformbasename
5.259 - fi
5.260 -
5.261 - # don't allow the sed command to completely eliminate the filename.
5.262 - test -z "$dstfile" && dstfile=`basename "$dst"`
5.263 -
5.264 - # Make a couple of temp file names in the proper directory.
5.265 - dsttmp=$dstdir/_inst.$$_
5.266 - rmtmp=$dstdir/_rm.$$_
5.267 -
5.268 - # Trap to clean up those temp files at exit.
5.269 - trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0
5.270 - trap '(exit $?); exit' 1 2 13 15
5.271 -
5.272 - # Move or copy the file name to the temp name
5.273 - $doit $instcmd "$src" "$dsttmp" &&
5.274 -
5.275 - # and set any options; do chmod last to preserve setuid bits.
5.276 - #
5.277 - # If any of these fail, we abort the whole thing. If we want to
5.278 - # ignore errors from any of these, just make sure not to ignore
5.279 - # errors from the above "$doit $instcmd $src $dsttmp" command.
5.280 - #
5.281 - { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
5.282 - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
5.283 - && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
5.284 - && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
5.285 -
5.286 - # Now rename the file to the real destination.
5.287 - { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
5.288 - || {
5.289 - # The rename failed, perhaps because mv can't rename something else
5.290 - # to itself, or perhaps because mv is so ancient that it does not
5.291 - # support -f.
5.292 -
5.293 - # Now remove or move aside any old file at destination location.
5.294 - # We try this two ways since rm can't unlink itself on some
5.295 - # systems and the destination file might be busy for other
5.296 - # reasons. In this case, the final cleanup might fail but the new
5.297 - # file should still install successfully.
5.298 - {
5.299 - if test -f "$dstdir/$dstfile"; then
5.300 - $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
5.301 - || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
5.302 - || {
5.303 - echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
5.304 - (exit 1); exit
5.305 - }
5.306 - else
5.307 - :
5.308 - fi
5.309 - } &&
5.310 -
5.311 - # Now rename the file to the real destination.
5.312 - $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
5.313 - }
5.314 - }
5.315 - fi || { (exit 1); exit; }
5.316 -done
5.317 -
5.318 -# The final little trick to "correctly" pass the exit status to the exit trap.
5.319 -{
5.320 - (exit 0); exit
5.321 -}
5.322 -
5.323 -# Local variables:
5.324 -# eval: (add-hook 'write-file-hooks 'time-stamp)
5.325 -# time-stamp-start: "scriptversion="
5.326 -# time-stamp-format: "%:y-%02m-%02d.%02H"
5.327 -# time-stamp-end: "$"
5.328 -# End:
6.1 --- a/gst-plugins-mythtv/missing Tue Sep 26 15:23:49 2006 +0100
6.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
6.3 @@ -1,360 +0,0 @@
6.4 -#! /bin/sh
6.5 -# Common stub for a few missing GNU programs while installing.
6.6 -
6.7 -scriptversion=2003-09-02.23
6.8 -
6.9 -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003
6.10 -# Free Software Foundation, Inc.
6.11 -# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
6.12 -
6.13 -# This program is free software; you can redistribute it and/or modify
6.14 -# it under the terms of the GNU General Public License as published by
6.15 -# the Free Software Foundation; either version 2, or (at your option)
6.16 -# any later version.
6.17 -
6.18 -# This program is distributed in the hope that it will be useful,
6.19 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
6.20 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6.21 -# GNU General Public License for more details.
6.22 -
6.23 -# You should have received a copy of the GNU General Public License
6.24 -# along with this program; if not, write to the Free Software
6.25 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6.26 -# 02111-1307, USA.
6.27 -
6.28 -# As a special exception to the GNU General Public License, if you
6.29 -# distribute this file as part of a program that contains a
6.30 -# configuration script generated by Autoconf, you may include it under
6.31 -# the same distribution terms that you use for the rest of that program.
6.32 -
6.33 -if test $# -eq 0; then
6.34 - echo 1>&2 "Try \`$0 --help' for more information"
6.35 - exit 1
6.36 -fi
6.37 -
6.38 -run=:
6.39 -
6.40 -# In the cases where this matters, `missing' is being run in the
6.41 -# srcdir already.
6.42 -if test -f configure.ac; then
6.43 - configure_ac=configure.ac
6.44 -else
6.45 - configure_ac=configure.in
6.46 -fi
6.47 -
6.48 -msg="missing on your system"
6.49 -
6.50 -case "$1" in
6.51 ---run)
6.52 - # Try to run requested program, and just exit if it succeeds.
6.53 - run=
6.54 - shift
6.55 - "$@" && exit 0
6.56 - # Exit code 63 means version mismatch. This often happens
6.57 - # when the user try to use an ancient version of a tool on
6.58 - # a file that requires a minimum version. In this case we
6.59 - # we should proceed has if the program had been absent, or
6.60 - # if --run hadn't been passed.
6.61 - if test $? = 63; then
6.62 - run=:
6.63 - msg="probably too old"
6.64 - fi
6.65 - ;;
6.66 -esac
6.67 -
6.68 -# If it does not exist, or fails to run (possibly an outdated version),
6.69 -# try to emulate it.
6.70 -case "$1" in
6.71 -
6.72 - -h|--h|--he|--hel|--help)
6.73 - echo "\
6.74 -$0 [OPTION]... PROGRAM [ARGUMENT]...
6.75 -
6.76 -Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
6.77 -error status if there is no known handling for PROGRAM.
6.78 -
6.79 -Options:
6.80 - -h, --help display this help and exit
6.81 - -v, --version output version information and exit
6.82 - --run try to run the given command, and emulate it if it fails
6.83 -
6.84 -Supported PROGRAM values:
6.85 - aclocal touch file \`aclocal.m4'
6.86 - autoconf touch file \`configure'
6.87 - autoheader touch file \`config.h.in'
6.88 - automake touch all \`Makefile.in' files
6.89 - bison create \`y.tab.[ch]', if possible, from existing .[ch]
6.90 - flex create \`lex.yy.c', if possible, from existing .c
6.91 - help2man touch the output file
6.92 - lex create \`lex.yy.c', if possible, from existing .c
6.93 - makeinfo touch the output file
6.94 - tar try tar, gnutar, gtar, then tar without non-portable flags
6.95 - yacc create \`y.tab.[ch]', if possible, from existing .[ch]
6.96 -
6.97 -Send bug reports to <bug-automake@gnu.org>."
6.98 - ;;
6.99 -
6.100 - -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
6.101 - echo "missing $scriptversion (GNU Automake)"
6.102 - ;;
6.103 -
6.104 - -*)
6.105 - echo 1>&2 "$0: Unknown \`$1' option"
6.106 - echo 1>&2 "Try \`$0 --help' for more information"
6.107 - exit 1
6.108 - ;;
6.109 -
6.110 - aclocal*)
6.111 - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
6.112 - # We have it, but it failed.
6.113 - exit 1
6.114 - fi
6.115 -
6.116 - echo 1>&2 "\
6.117 -WARNING: \`$1' is $msg. You should only need it if
6.118 - you modified \`acinclude.m4' or \`${configure_ac}'. You might want
6.119 - to install the \`Automake' and \`Perl' packages. Grab them from
6.120 - any GNU archive site."
6.121 - touch aclocal.m4
6.122 - ;;
6.123 -
6.124 - autoconf)
6.125 - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
6.126 - # We have it, but it failed.
6.127 - exit 1
6.128 - fi
6.129 -
6.130 - echo 1>&2 "\
6.131 -WARNING: \`$1' is $msg. You should only need it if
6.132 - you modified \`${configure_ac}'. You might want to install the
6.133 - \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
6.134 - archive site."
6.135 - touch configure
6.136 - ;;
6.137 -
6.138 - autoheader)
6.139 - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
6.140 - # We have it, but it failed.
6.141 - exit 1
6.142 - fi
6.143 -
6.144 - echo 1>&2 "\
6.145 -WARNING: \`$1' is $msg. You should only need it if
6.146 - you modified \`acconfig.h' or \`${configure_ac}'. You might want
6.147 - to install the \`Autoconf' and \`GNU m4' packages. Grab them
6.148 - from any GNU archive site."
6.149 - files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
6.150 - test -z "$files" && files="config.h"
6.151 - touch_files=
6.152 - for f in $files; do
6.153 - case "$f" in
6.154 - *:*) touch_files="$touch_files "`echo "$f" |
6.155 - sed -e 's/^[^:]*://' -e 's/:.*//'`;;
6.156 - *) touch_files="$touch_files $f.in";;
6.157 - esac
6.158 - done
6.159 - touch $touch_files
6.160 - ;;
6.161 -
6.162 - automake*)
6.163 - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
6.164 - # We have it, but it failed.
6.165 - exit 1
6.166 - fi
6.167 -
6.168 - echo 1>&2 "\
6.169 -WARNING: \`$1' is $msg. You should only need it if
6.170 - you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
6.171 - You might want to install the \`Automake' and \`Perl' packages.
6.172 - Grab them from any GNU archive site."
6.173 - find . -type f -name Makefile.am -print |
6.174 - sed 's/\.am$/.in/' |
6.175 - while read f; do touch "$f"; done
6.176 - ;;
6.177 -
6.178 - autom4te)
6.179 - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
6.180 - # We have it, but it failed.
6.181 - exit 1
6.182 - fi
6.183 -
6.184 - echo 1>&2 "\
6.185 -WARNING: \`$1' is needed, but is $msg.
6.186 - You might have modified some files without having the
6.187 - proper tools for further handling them.
6.188 - You can get \`$1' as part of \`Autoconf' from any GNU
6.189 - archive site."
6.190 -
6.191 - file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
6.192 - test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
6.193 - if test -f "$file"; then
6.194 - touch $file
6.195 - else
6.196 - test -z "$file" || exec >$file
6.197 - echo "#! /bin/sh"
6.198 - echo "# Created by GNU Automake missing as a replacement of"
6.199 - echo "# $ $@"
6.200 - echo "exit 0"
6.201 - chmod +x $file
6.202 - exit 1
6.203 - fi
6.204 - ;;
6.205 -
6.206 - bison|yacc)
6.207 - echo 1>&2 "\
6.208 -WARNING: \`$1' $msg. You should only need it if
6.209 - you modified a \`.y' file. You may need the \`Bison' package
6.210 - in order for those modifications to take effect. You can get
6.211 - \`Bison' from any GNU archive site."
6.212 - rm -f y.tab.c y.tab.h
6.213 - if [ $# -ne 1 ]; then
6.214 - eval LASTARG="\${$#}"
6.215 - case "$LASTARG" in
6.216 - *.y)
6.217 - SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
6.218 - if [ -f "$SRCFILE" ]; then
6.219 - cp "$SRCFILE" y.tab.c
6.220 - fi
6.221 - SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
6.222 - if [ -f "$SRCFILE" ]; then
6.223 - cp "$SRCFILE" y.tab.h
6.224 - fi
6.225 - ;;
6.226 - esac
6.227 - fi
6.228 - if [ ! -f y.tab.h ]; then
6.229 - echo >y.tab.h
6.230 - fi
6.231 - if [ ! -f y.tab.c ]; then
6.232 - echo 'main() { return 0; }' >y.tab.c
6.233 - fi
6.234 - ;;
6.235 -
6.236 - lex|flex)
6.237 - echo 1>&2 "\
6.238 -WARNING: \`$1' is $msg. You should only need it if
6.239 - you modified a \`.l' file. You may need the \`Flex' package
6.240 - in order for those modifications to take effect. You can get
6.241 - \`Flex' from any GNU archive site."
6.242 - rm -f lex.yy.c
6.243 - if [ $# -ne 1 ]; then
6.244 - eval LASTARG="\${$#}"
6.245 - case "$LASTARG" in
6.246 - *.l)
6.247 - SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
6.248 - if [ -f "$SRCFILE" ]; then
6.249 - cp "$SRCFILE" lex.yy.c
6.250 - fi
6.251 - ;;
6.252 - esac
6.253 - fi
6.254 - if [ ! -f lex.yy.c ]; then
6.255 - echo 'main() { return 0; }' >lex.yy.c
6.256 - fi
6.257 - ;;
6.258 -
6.259 - help2man)
6.260 - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
6.261 - # We have it, but it failed.
6.262 - exit 1
6.263 - fi
6.264 -
6.265 - echo 1>&2 "\
6.266 -WARNING: \`$1' is $msg. You should only need it if
6.267 - you modified a dependency of a manual page. You may need the
6.268 - \`Help2man' package in order for those modifications to take
6.269 - effect. You can get \`Help2man' from any GNU archive site."
6.270 -
6.271 - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
6.272 - if test -z "$file"; then
6.273 - file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
6.274 - fi
6.275 - if [ -f "$file" ]; then
6.276 - touch $file
6.277 - else
6.278 - test -z "$file" || exec >$file
6.279 - echo ".ab help2man is required to generate this page"
6.280 - exit 1
6.281 - fi
6.282 - ;;
6.283 -
6.284 - makeinfo)
6.285 - if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
6.286 - # We have makeinfo, but it failed.
6.287 - exit 1
6.288 - fi
6.289 -
6.290 - echo 1>&2 "\
6.291 -WARNING: \`$1' is $msg. You should only need it if
6.292 - you modified a \`.texi' or \`.texinfo' file, or any other file
6.293 - indirectly affecting the aspect of the manual. The spurious
6.294 - call might also be the consequence of using a buggy \`make' (AIX,
6.295 - DU, IRIX). You might want to install the \`Texinfo' package or
6.296 - the \`GNU make' package. Grab either from any GNU archive site."
6.297 - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
6.298 - if test -z "$file"; then
6.299 - file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
6.300 - file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
6.301 - fi
6.302 - touch $file
6.303 - ;;
6.304 -
6.305 - tar)
6.306 - shift
6.307 - if test -n "$run"; then
6.308 - echo 1>&2 "ERROR: \`tar' requires --run"
6.309 - exit 1
6.310 - fi
6.311 -
6.312 - # We have already tried tar in the generic part.
6.313 - # Look for gnutar/gtar before invocation to avoid ugly error
6.314 - # messages.
6.315 - if (gnutar --version > /dev/null 2>&1); then
6.316 - gnutar "$@" && exit 0
6.317 - fi
6.318 - if (gtar --version > /dev/null 2>&1); then
6.319 - gtar "$@" && exit 0
6.320 - fi
6.321 - firstarg="$1"
6.322 - if shift; then
6.323 - case "$firstarg" in
6.324 - *o*)
6.325 - firstarg=`echo "$firstarg" | sed s/o//`
6.326 - tar "$firstarg" "$@" && exit 0
6.327 - ;;
6.328 - esac
6.329 - case "$firstarg" in
6.330 - *h*)
6.331 - firstarg=`echo "$firstarg" | sed s/h//`
6.332 - tar "$firstarg" "$@" && exit 0
6.333 - ;;
6.334 - esac
6.335 - fi
6.336 -
6.337 - echo 1>&2 "\
6.338 -WARNING: I can't seem to be able to run \`tar' with the given arguments.
6.339 - You may want to install GNU tar or Free paxutils, or check the
6.340 - command line arguments."
6.341 - exit 1
6.342 - ;;
6.343 -
6.344 - *)
6.345 - echo 1>&2 "\
6.346 -WARNING: \`$1' is needed, and is $msg.
6.347 - You might have modified some files without having the
6.348 - proper tools for further handling them. Check the \`README' file,
6.349 - it often tells you about the needed prerequisites for installing
6.350 - this package. You may also peek at any GNU archive site, in case
6.351 - some other package would contain this missing \`$1' program."
6.352 - exit 1
6.353 - ;;
6.354 -esac
6.355 -
6.356 -exit 0
6.357 -
6.358 -# Local variables:
6.359 -# eval: (add-hook 'write-file-hooks 'time-stamp)
6.360 -# time-stamp-start: "scriptversion="
6.361 -# time-stamp-format: "%:y-%02m-%02d.%02H"
6.362 -# time-stamp-end: "$"
6.363 -# End: