2N/Adnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
2N/Adnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
2N/A AC_PROVIDE_IFELSE([AC_PROG_CXX],
2N/A [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
2N/Adnl And a similar setup for Fortran 77 support
2N/A AC_PROVIDE_IFELSE([AC_PROG_F77],
2N/A [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
2N/Adnl Quote AM_PROG_GCJ so that aclocal doesn't bring it in needlessly.
2N/Adnl If either AC_PROG_GCJ or AM_PROG_GCJ have already been expanded, run
2N/Adnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
2N/A AC_PROVIDE_IFELSE([AC_PROG_GCJ],
2N/A [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
2N/A [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
2N/A [ifdef([AC_PROG_GCJ],
2N/A [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
2N/A ifdef([A][M_PROG_GCJ],
2N/A [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
2N/A ifdef([LT_AC_PROG_GCJ],
2N/A [define([LT_AC_PROG_GCJ],
2N/A defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
2N/AAC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
2N/AAC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
2N/AAC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
2N/A# This can be used to rebuild libtool when needed
2N/A# Always use our own libtool.
2N/ALIBTOOL='$(SHELL) $(top_builddir)/libtool'
2N/A# Prevent multiple expansion
2N/Adefine([AC_PROG_LIBTOOL], [])
2N/AAC_REQUIRE([AC_ENABLE_SHARED])dnl
2N/AAC_REQUIRE([AC_ENABLE_STATIC])dnl
2N/AAC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
2N/AAC_REQUIRE([AC_CANONICAL_HOST])dnl
2N/AAC_REQUIRE([AC_CANONICAL_BUILD])dnl
2N/AAC_REQUIRE([AC_PROG_CC])dnl
2N/AAC_REQUIRE([AC_PROG_LD])dnl
2N/AAC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
2N/AAC_REQUIRE([AC_PROG_NM])dnl
2N/AAC_REQUIRE([AC_PROG_LN_S])dnl
2N/AAC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
2N/A# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2N/AAC_REQUIRE([AC_OBJEXT])dnl
2N/AAC_REQUIRE([AC_EXEEXT])dnl
2N/AAC_LIBTOOL_SYS_MAX_CMD_LEN
2N/AAC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
2N/AAC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
2N/A_LT_AC_PROG_ECHO_BACKSLASH
2N/A # AIX sometimes has problems with the GCC collect2 program. For some
2N/A # reason, if we set the COLLECT_NAMES environment variable, the problems
2N/A # vanish in a puff of smoke.
2N/A if test "X${COLLECT_NAMES+set}" != Xset; then
2N/A export COLLECT_NAMES
2N/A# Sed substitution that helps us do robust quoting. It backslashifies
2N/A# metacharacters that are still active within double-quoted strings.
2N/AXsed='sed -e 1s/^X//'
2N/A[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
2N/A# Same as above, but do not quote variable references.
2N/A[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
2N/A# Sed substitution to delay expansion of an escaped shell variable in a
2N/A# double_quote_subst'ed string.
2N/Adelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2N/A# Sed substitution to avoid accidental globbing in evaled expressions
2N/Ano_glob_subst='s/\*/\\\*/g'
2N/Adefault_ofile=libtool
2N/A# All known linkers require a `.a' archive for static linking (except MSVC,
2N/A# which needs '.lib').
2N/Aofile="$default_ofile"
2N/Awith_gnu_ld="$lt_cv_prog_gnu_ld"
2N/AAC_CHECK_TOOL(AR, ar, false)
2N/AAC_CHECK_TOOL(RANLIB, ranlib, :)
2N/AAC_CHECK_TOOL(STRIP, strip, :)
2N/A# Set sane defaults for various variables
2N/Atest -z "$AR" && AR=ar
2N/Atest -z "$AR_FLAGS" && AR_FLAGS=cru
2N/Atest -z "$AS" && AS=as
2N/Atest -z "$CC" && CC=cc
2N/Atest -z "$LTCC" && LTCC=$CC
2N/Atest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
2N/Atest -z "$DLLTOOL" && DLLTOOL=dlltool
2N/Atest -z "$LD" && LD=ld
2N/Atest -z "$LN_S" && LN_S="ln -s"
2N/Atest -z "$MAGIC_CMD" && MAGIC_CMD=file
2N/Atest -z "$NM" && NM=nm
2N/Atest -z "$SED" && SED=sed
2N/Atest -z "$OBJDUMP" && OBJDUMP=objdump
2N/Atest -z "$RANLIB" && RANLIB=:
2N/Atest -z "$STRIP" && STRIP=:
2N/Atest -z "$ac_objext" && ac_objext=o
2N/A# Determine commands to create old-style static archives.
2N/Aold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2N/Aold_postinstall_cmds='chmod 644 $oldlib'
2N/Aold_postuninstall_cmds=
2N/Aif test -n "$RANLIB"; then
2N/A old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2N/A old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2N/A old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2N/A_LT_CC_BASENAME([$compiler])
2N/A# Only perform the check for file, if the check method requires it
2N/Acase $deplibs_check_method in
2N/A if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2N/AAC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
2N/AAC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
2N/Aenable_win32_dll=yes, enable_win32_dll=no)
2N/AAC_ARG_ENABLE([libtool-lock],
2N/A [AC_HELP_STRING([--disable-libtool-lock],
2N/A [avoid locking (might break parallel builds)])])
2N/Atest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2N/A [AC_HELP_STRING([--with-pic],
2N/A [pic_mode="$withval"],
2N/Atest -z "$pic_mode" && pic_mode=default
2N/A# Use C for the default configuration in the libtool script
2N/AAC_LIBTOOL_LANG_C_CONFIG
2N/A# If no C compiler was specified, use CC.
2N/A# If no C compiler flags were specified, use CFLAGS.
2N/ALTCFLAGS=${LTCFLAGS-"$CFLAGS"}
2N/A# Allow CC to be a program name with arguments.
2N/A compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
2N/A distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
2N/Acc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
2N/Aprintf "$lt_simple_compile_test_code" >conftest.$ac_ext
2N/Aprintf "$lt_simple_link_test_code" >conftest.$ac_ext
2N/Aaix_libpath=`dump -H conftest$ac_exeext 2>
/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
2N/A# Check for a 64-bit object if we didn't find anything.
2N/Aif 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; }
2N/Aif test -z "$aix_libpath"; then aix_libpath="
/usr/lib:/lib"; fi
2N/A [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
2N/A [AC_DIVERT_PUSH(NOTICE)])
2N/A# Check that we are running under the correct shell.
2N/A # Remove one level of quotation (which was required for Make).
2N/A ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
2N/Aif test "X[$]1" = X--no-reexec; then
2N/A # Discard the --no-reexec flag, and continue.
2N/Aelif test "X[$]1" = X--fallback-echo; then
2N/A # Avoid inline document here, it may be left over
2N/A # Yippee, $echo works!
2N/A # Restart under the correct shell.
2N/A exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
2N/Aif test "X[$]1" = X--fallback-echo; then
2N/A # used as fallback echo
2N/A# The HP-UX ksh and POSIX shell print the target directory to stdout
2N/Aif test -z "$ECHO"; then
2N/Aif test "X${echo_test_string+set}" != Xset; then
2N/A# find a string as large as possible, as long as the shell can cope with it
2N/A for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
2N/A # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
2N/A echo_test_string=`eval $cmd` &&
2N/A (test "X$echo_test_string" = "X$echo_test_string") 2>
/dev/null 2N/A echo_testing_string=`($echo "$echo_test_string") 2>
/dev/null` &&
2N/A test "X$echo_testing_string" = "X$echo_test_string"; then
2N/A # The Solaris, AIX, and Digital Unix default echo programs unquote
2N/A # backslashes. This makes it impossible to quote backslashes using
2N/A # echo "$something" | sed 's/\\/\\\\/g'
2N/A # So, first we look for a working echo in the user's PATH.
2N/A lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2N/A test "X$echo_testing_string" = "X$echo_test_string"; then
2N/A if test "X$echo" = Xecho; then
2N/A # We didn't find a better echo, so look for alternatives.
2N/A echo_testing_string=`(print -r "$echo_test_string") 2>
/dev/null` &&
2N/A test "X$echo_testing_string" = "X$echo_test_string"; then
2N/A # This shell has a builtin print -r that does the trick.
2N/A # If we have ksh, try running configure again with it.
2N/A export ORIGINAL_CONFIG_SHELL
2N/A exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
2N/A echo_testing_string=`($echo "$echo_test_string") 2>
/dev/null` &&
2N/A test "X$echo_testing_string" = "X$echo_test_string"; then
2N/A # Cool, printf works
2N/A elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>
/dev/null` &&
2N/A test "X$echo_testing_string" = 'X\t' &&
2N/A echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>
/dev/null` &&
2N/A test "X$echo_testing_string" = "X$echo_test_string"; then
2N/A CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
2N/A SHELL="$CONFIG_SHELL"
2N/A echo="$CONFIG_SHELL [$]0 --fallback-echo"
2N/A elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>
/dev/null` &&
2N/A test "X$echo_testing_string" = 'X\t' &&
2N/A echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>
/dev/null` &&
2N/A test "X$echo_testing_string" = "X$echo_test_string"; then
2N/A echo="$CONFIG_SHELL [$]0 --fallback-echo"
2N/A # maybe with a smaller string...
2N/A for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
2N/A if test "$prev" != 'sed 50q "[$]0"'; then
2N/A echo_test_string=`eval $prev`
2N/A export echo_test_string
2N/A # Oops. We lost completely, so just stick with echo.
2N/A# Copy echo and quote the copy suitably for passing to libtool from
2N/A# the Makefile, instead of quoting the original, which is used later.
2N/Aif test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
2N/A ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
2N/A [AC_HELP_STRING([--disable-libtool-lock],
2N/A [avoid locking (might break parallel builds)])])
2N/Atest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2N/A# Some flags need to be propagated to the compiler or linker for good
2N/A # Find out which ABI we are using.
2N/A echo 'int i;' > conftest.$ac_ext
2N/A if AC_TRY_EVAL(ac_compile); then
2N/A # Find out which ABI we are using.
2N/A echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2N/A if AC_TRY_EVAL(ac_compile); then
2N/A if test "$lt_cv_prog_gnu_ld" = yes; then
2N/A LD="${LD-ld} -melf32bsmip"
2N/A LD="${LD-ld} -melf32bmipn32"
2N/A LD="${LD-ld} -melf64bmip"
2N/Ax86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2N/A # Find out which ABI we are using.
2N/A echo 'int i;' > conftest.$ac_ext
2N/A if AC_TRY_EVAL(ac_compile); then
2N/A LD="${LD-ld} -m elf_i386"
2N/A ppc64-*linux*|powerpc64-*linux*)
2N/A LD="${LD-ld} -m elf32ppclinux"
2N/A LD="${LD-ld} -m elf_s390"
2N/A LD="${LD-ld} -m elf32_sparc"
2N/A LD="${LD-ld} -m elf_x86_64"
2N/A ppc*-*linux*|powerpc*-*linux*)
2N/A LD="${LD-ld} -m elf64ppc"
2N/A LD="${LD-ld} -m elf64_s390"
2N/A LD="${LD-ld} -m elf64_sparc"
2N/A # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2N/A SAVE_CFLAGS="$CFLAGS"
2N/A CFLAGS="$CFLAGS -belf"
2N/A AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2N/A AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2N/A if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2N/A # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2N/A CFLAGS="$SAVE_CFLAGS"
2N/A # Find out which ABI we are using.
2N/A echo 'int i;' > conftest.$ac_ext
2N/A if AC_TRY_EVAL(ac_compile); then
2N/A case $lt_cv_prog_gnu_ld in
2N/A yes*) LD="${LD-ld} -m elf64_sparc" ;;
2N/A *) LD="${LD-ld} -64" ;;
2N/AAC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
2N/A[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
2N/A AC_CHECK_TOOL(DLLTOOL, dlltool, false)
2N/A AC_CHECK_TOOL(AS, as, false)
2N/A AC_CHECK_TOOL(OBJDUMP, objdump, false)
2N/Aneed_locks="$enable_libtool_lock"
2N/AAC_CACHE_CHECK([$1], [$2],
2N/A ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2N/A printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2N/A lt_compiler_flag="$3"
2N/A # Insert the option either (1) after the last *FLAGS variable, or
2N/A # (2) before a word containing "conftest.", or (3) at the end.
2N/A # Note that $ac_compile itself does not contain backslashes and begins
2N/A # with a dollar sign (not a hyphen), so the echo should work correctly.
2N/A # The option is referenced via a variable to avoid confusing sed.
2N/A lt_compile=`echo "$ac_compile" | $SED \
2N/A -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2N/A -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2N/A -e 's:$: $lt_compiler_flag:'`
2N/A (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2N/A echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2N/A if (exit $ac_status) && test -s "$ac_outfile"; then
2N/A # The compiler can only warn and ignore the option if not recognized
2N/A # So say no if there are warnings other than the usual output.
2N/Aif test x"[$]$2" = xyes; then
2N/A ifelse([$5], , :, [$5])
2N/A ifelse([$6], , :, [$6])
2N/A save_LDFLAGS="$LDFLAGS"
2N/A LDFLAGS="$LDFLAGS $3"
2N/A printf "$lt_simple_link_test_code" > conftest.$ac_ext
2N/A # The linker can only warn and ignore the option if not recognized
2N/A # So say no if there are warnings
2N/A LDFLAGS="$save_LDFLAGS"
2N/Aif test x"[$]$2" = xyes; then
2N/A ifelse([$4], , :, [$4])
2N/A ifelse([$5], , :, [$5])
2N/AAC_MSG_CHECKING([the maximum length of command line arguments])
2N/AAC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2N/A # On DJGPP, this test can blow up pretty badly due to problems in libc
2N/A # (any single argument exceeding 2000 bytes causes a buffer overrun
2N/A # during glob expansion). Even if it were fixed, the result of this
2N/A # check would be larger than it should be.
2N/A lt_cv_sys_max_cmd_len=12288; # 12K is about right
2N/A # Under GNU Hurd, this test is not required because there is
2N/A # no limit to the length of command line arguments.
2N/A # Libtool will interpret -1 as no limit whatsoever
2N/A lt_cv_sys_max_cmd_len=-1;
2N/A # On
Win9x/ME, this test blows up -- it succeeds, but takes
2N/A # about 5 minutes as the teststring grows exponentially.
2N/A # Worse, since 9x/ME are not pre-emptively multitasking,
2N/A # you end up with a "frozen" computer, even though with patience
2N/A # the test eventually succeeds (with a max line length of 256k).
2N/A # Instead, let's just punt: use the minimum linelength reported by
2N/A # all of the supported platforms: 8192 (on NT/2K/XP).
2N/A lt_cv_sys_max_cmd_len=8192;
2N/A # On AmigaOS with pdksh, this test takes hours, literally.
2N/A # So we just punt and use a minimum line length of 8192.
2N/A lt_cv_sys_max_cmd_len=8192;
2N/A netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2N/A # This has been around since 386BSD, at least. Likely further.
2N/A lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2N/A # And add a safety zone
2N/A lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2N/A lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2N/A # We know the value 262144 and hardcode it with a safety zone (like BSD)
2N/A lt_cv_sys_max_cmd_len=196608
2N/A # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2N/A # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2N/A # nice to cause kernel panics so lets avoid the loop below.
2N/A # First set a reasonable default.
2N/A lt_cv_sys_max_cmd_len=16384
2N/A *1*) lt_cv_sys_max_cmd_len=-1 ;;
2N/A lt_cv_sys_max_cmd_len=102400
2N/A sysv5* | sco5v6* | sysv4.2uw2*)
2N/A if test -n "$kargmax"; then
2N/A lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2N/A lt_cv_sys_max_cmd_len=32768
2N/A # If test is not a shell built-in, we'll probably end up computing a
2N/A # maximum length that is only half of the actual maximum length, but
2N/A while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>
/dev/null` \
2N/A new_result=`expr "X$teststring" : ".*" 2>&1` &&
2N/A lt_cv_sys_max_cmd_len=$new_result &&
2N/A test $i != 17 # 1/2 MB should be enough
2N/A teststring=$teststring$teststring
2N/A # Add a significant safety factor because C++ compilers can tack on massive
2N/A # amounts of additional arguments before passing them to the linker.
2N/A # It appears as though 1/2 is a usable value.
2N/A lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2N/Aif test -n $lt_cv_sys_max_cmd_len ; then
2N/A AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2N/Aif test "$cross_compiling" = yes; then :
2N/A lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2N/A lt_status=$lt_dlunknown
2N/A cat > conftest.$ac_ext <<EOF
2N/A[#line __oline__ "configure"
2N/A# define LT_DLGLOBAL RTLD_GLOBAL
2N/A# define LT_DLGLOBAL DL_GLOBAL
2N/A# define LT_DLGLOBAL 0
2N/A/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2N/A find out it does not work in some platform. */
2N/A#ifndef LT_DLLAZY_OR_NOW
2N/A# define LT_DLLAZY_OR_NOW RTLD_LAZY
2N/A# define LT_DLLAZY_OR_NOW DL_LAZY
2N/A# define LT_DLLAZY_OR_NOW RTLD_NOW
2N/A# define LT_DLLAZY_OR_NOW DL_NOW
2N/A# define LT_DLLAZY_OR_NOW 0
2N/Aextern "C" void exit (int);
2N/Avoid fnord() { int i=42;}
2N/A void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2N/A int status = $lt_dlunknown;
2N/A if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2N/A else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2N/A /* dlclose (self); */
2N/A if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>
/dev/null; then
2N/A x$lt_dlno_uscore) $1 ;;
2N/A x$lt_dlneed_uscore) $2 ;;
2N/A x$lt_dlunknown|x*) $3 ;;
2N/A # compilation failed
2N/Aif test "x$enable_dlopen" != xyes; then
2N/A enable_dlopen=unknown
2N/A enable_dlopen_self=unknown
2N/A enable_dlopen_self_static=unknown
2N/A lt_cv_dlopen="load_add_on"
2N/A lt_cv_dlopen_self=yes
2N/A lt_cv_dlopen="LoadLibrary"
2N/A lt_cv_dlopen="dlopen"
2N/A # if libdl is installed we need to link against it
2N/A AC_CHECK_LIB([dl], [dlopen],
2N/A [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2N/A lt_cv_dlopen_self=yes
2N/A AC_CHECK_FUNC([shl_load],
2N/A [lt_cv_dlopen="shl_load"],
2N/A [AC_CHECK_LIB([dld], [shl_load],
2N/A [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
2N/A [AC_CHECK_FUNC([dlopen],
2N/A [lt_cv_dlopen="dlopen"],
2N/A [AC_CHECK_LIB([dl], [dlopen],
2N/A [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2N/A [AC_CHECK_LIB([svld], [dlopen],
2N/A [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2N/A [AC_CHECK_LIB([dld], [dld_link],
2N/A [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
2N/A if test "x$lt_cv_dlopen" != xno; then
2N/A case $lt_cv_dlopen in
2N/A save_CPPFLAGS="$CPPFLAGS"
2N/A test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2N/A save_LDFLAGS="$LDFLAGS"
2N/A wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2N/A LIBS="$lt_cv_dlopen_libs $LIBS"
2N/A AC_CACHE_CHECK([whether a program can dlopen itself],
2N/A lt_cv_dlopen_self, [dnl
2N/A _LT_AC_TRY_DLOPEN_SELF(
2N/A lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2N/A lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2N/A if test "x$lt_cv_dlopen_self" = xyes; then
2N/A wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2N/A AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2N/A lt_cv_dlopen_self_static, [dnl
2N/A _LT_AC_TRY_DLOPEN_SELF(
2N/A lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2N/A lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2N/A CPPFLAGS="$save_CPPFLAGS"
2N/A LDFLAGS="$save_LDFLAGS"
2N/A case $lt_cv_dlopen_self in
2N/A yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2N/A *) enable_dlopen_self=unknown ;;
2N/A case $lt_cv_dlopen_self_static in
2N/A yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2N/A *) enable_dlopen_self_static=unknown ;;
2N/AAC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2N/A [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2N/A [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2N/A printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2N/A # Insert the option either (1) after the last *FLAGS variable, or
2N/A # (2) before a word containing "conftest.", or (3) at the end.
2N/A # Note that $ac_compile itself does not contain backslashes and begins
2N/A # with a dollar sign (not a hyphen), so the echo should work correctly.
2N/A lt_compile=`echo "$ac_compile" | $SED \
2N/A -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2N/A -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2N/A -e 's:$: $lt_compiler_flag:'`
2N/A (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2N/A echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2N/A # The compiler can only warn and ignore the option if not recognized
2N/A # So say no if there are warnings
2N/A _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2N/A chmod u+w . 2>&AS_MESSAGE_LOG_FD
2N/A # template instantiation
2N/A $rm out/* && rmdir out
2N/Ahard_links="nottested"
2N/Aif test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2N/A # do not overwrite the value of need_locks provided by the user
2N/A AC_MSG_CHECKING([if we can lock with hard links])
2N/A AC_MSG_RESULT([$hard_links])
2N/A if test "$hard_links" = no; then
2N/A AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2N/Aif test -d .libs; then
2N/A # MS-DOS does not allow filenames that begin with a dot.
2N/A_LT_AC_TAGVAR(hardcode_action, $1)=
2N/Aif test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2N/A test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
2N/A test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2N/A # We can hardcode non-existant directories.
2N/A if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2N/A # If the only mechanism to avoid hardcoding is shlibpath_var, we
2N/A # have to relink, otherwise we might link with an installed library
2N/A # when we should be linking with a yet-to-be-installed one
2N/A ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2N/A test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2N/A # Linking always hardcodes the temporary library directory.
2N/A _LT_AC_TAGVAR(hardcode_action, $1)=relink
2N/A # We can link without hardcoding, and we can hardcode nonexisting dirs.
2N/A _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2N/A # We cannot hardcode anything, or else we can only hardcode existing
2N/A _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2N/AAC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2N/Aif test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2N/A # Fast installation is not supported
2N/A enable_fast_install=no
2N/Aelif test "$shlibpath_overrides_runpath" = yes ||
2N/A test "$enable_shared" = no; then
2N/A # Fast installation is not necessary
2N/A enable_fast_install=needless
2N/AAC_MSG_CHECKING([whether stripping libraries is possible])
2N/Aif test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >
/dev/null; then
2N/A test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2N/A test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2N/A AC_MSG_RESULT([yes])
2N/A# FIXME - insert some real tests, host_os isn't really good enough
2N/A if test -n "$STRIP" ; then
2N/A striplib="$STRIP -x"
2N/A AC_MSG_RESULT([yes])
2N/Alibname_spec='lib$name'
2N/Ashlibpath_overrides_runpath=unknown
2N/Aif test "$GCC" = yes; then
2N/A sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2N/A if echo "$sys_lib_search_path_spec" | grep ';' >
/dev/null ; then
2N/A # if the path contains ";" then we assume it to be the separator
2N/A # otherwise default to the standard path separator (
i.e. ":") - it is
2N/A # assumed that no part of a normal pathname contains ";" but that should
2N/A # okay in the real world where ";" in dirpaths is itself problematic.
2N/A sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2N/A sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2N/Aneed_lib_prefix=unknown
2N/Ahardcode_into_libs=no
2N/A# when you set need_version to no, make sure it does not cause -set_version
2N/A# flags to be left without arguments
2N/A library_names_spec='${libname}${release}${shared_ext}$versuffix $
libname.a'
2N/A shlibpath_var=LIBPATH
2N/A # AIX 3 has no versioning support, so we append a major version to the name.
2N/A soname_spec='${libname}${release}${shared_ext}$major'
2N/A hardcode_into_libs=yes
2N/A if test "$host_cpu" = ia64; then
2N/A # AIX 5 supports IA64
2N/A library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2N/A shlibpath_var=LD_LIBRARY_PATH
2N/A # With GCC up to
2.95.x, collect2 would create an import file
2N/A # for dependence libraries. The import file would start with
2N/A # the line `#! .'. This would cause the generated library to
2N/A # depend on `.', always an invalid library. This was fixed in
2N/A # development snapshots of GCC prior to 3.0.
2N/A aix4 | aix4.[[01]] | aix4.[[01]].*)
2N/A if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2N/A # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2N/A # soname into executable. Probably we can add versioning support to
2N/A # collect2, so additional links can be useful in future.
2N/A if test "$aix_use_runtimelinking" = yes; then
2N/A # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2N/A # instead of lib<name>.a to let people know that these are not
2N/A # typical AIX shared libraries.
2N/A library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2N/A # We preserve .a as extension for shared libraries through AIX4.2
2N/A # and later when we are not doing run time linking.
2N/A soname_spec='${libname}${release}${shared_ext}$major'
2N/A shlibpath_var=LIBPATH
2N/A library_names_spec='${libname}${shared_ext}'
2N/A shlibpath_var=LIBRARY_PATH
2N/A library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2N/A soname_spec='${libname}${release}${shared_ext}$major'
2N/A finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2N/A shlibpath_var=LD_LIBRARY_PATH
2N/A # libtool to hard-code these into programs
2N/Acygwin* | mingw* | pw32*)
2N/A version_type=windows
2N/A case $GCC,$host_os in
2N/A yes,cygwin* | yes,mingw* | yes,pw32*)
2N/A # DLL is installed to $(libdir)/../bin by postinstall_cmds
2N/A postinstall_cmds='base_file=`basename \${file}`~
2N/A dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2N/A dldir=$destdir/`dirname \$dlpath`~
2N/A test -d \$dldir || mkdir -p \$dldir~
2N/A $install_prog $dir/$dlname \$dldir/$dlname~
2N/A chmod a+x \$dldir/$dlname'
2N/A postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2N/A dlpath=$dir/\$dldll~
2N/A shlibpath_overrides_runpath=yes
2N/A # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2N/A soname_spec='`echo ${libname} | sed -e 's/^
lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2N/A # MinGW DLLs use traditional 'lib' prefix
2N/A soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2N/A sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2N/A if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >
/dev/null]; then
2N/A # It is most probably a Windows format PATH printed by
2N/A # mingw gcc, but we are running on Cygwin. Gcc prints its search
2N/A # path with ; separators, and with drive letters. We can handle the
2N/A # drive letters (cygwin fileutils understands them), so leave them,
2N/A # especially as we might pass files found there to a mingw objdump,
2N/A # which wouldn't understand a cygwinified path. Ahh.
2N/A sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2N/A sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2N/A # pw32 DLLs use 'pw' prefix rather than 'lib'
2N/A library_names_spec='`echo ${libname} | sed -e 's/^
lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2N/A library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $
libname.lib'
2N/A # FIXME: first we should search . and the directory the executable is in
2N/A dynamic_linker="$host_os dyld"
2N/A library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2N/A soname_spec='${libname}${release}${major}$shared_ext'
2N/A shlibpath_overrides_runpath=yes
2N/A shlibpath_var=DYLD_LIBRARY_PATH
2N/A shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2N/A # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2N/A if test "$GCC" = yes; then
2N/A 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"`
2N/A library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2N/A soname_spec='${libname}${release}${shared_ext}$major'
2N/A shlibpath_var=LD_LIBRARY_PATH
2N/A library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2N/A soname_spec='${libname}${release}${shared_ext}$major'
2N/A shlibpath_var=LD_LIBRARY_PATH
2N/A shlibpath_overrides_runpath=no
2N/A hardcode_into_libs=yes
2N/Afreebsd* | dragonfly*)
2N/A # DragonFly does not have aout.
When/if they implement a new
2N/A # versioning mechanism, adjust this.
2N/A freebsd[[123]]*) objformat=aout ;;
2N/A version_type=freebsd-$objformat
2N/A case $version_type in
2N/A library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2N/A library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2N/A shlibpath_var=LD_LIBRARY_PATH
2N/A shlibpath_overrides_runpath=yes
2N/A freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2N/A shlibpath_overrides_runpath=yes
2N/A hardcode_into_libs=yes
2N/A freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2N/A freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2N/A shlibpath_overrides_runpath=no
2N/A hardcode_into_libs=yes
2N/A freebsd*) # from 4.6 on
2N/A shlibpath_overrides_runpath=yes
2N/A hardcode_into_libs=yes
2N/A library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2N/A soname_spec='${libname}${release}${shared_ext}$major'
2N/A shlibpath_var=LD_LIBRARY_PATH
2N/A hardcode_into_libs=yes
2N/Ahpux9* | hpux10* | hpux11*)
2N/A # Give a soname corresponding to the major version so that
dld.sl refuses to
2N/A # link against other versions.
2N/A hardcode_into_libs=yes
2N/A shlibpath_var=LD_LIBRARY_PATH
2N/A shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2N/A library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2N/A soname_spec='${libname}${release}${shared_ext}$major'
2N/A if test "X$HPUX_IA64_MODE" = X32; then
2N/A sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2N/A hardcode_into_libs=yes
2N/A shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2N/A shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2N/A library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2N/A soname_spec='${libname}${release}${shared_ext}$major'
2N/A sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2N/A shlibpath_var=SHLIB_PATH
2N/A shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2N/A library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2N/A soname_spec='${libname}${release}${shared_ext}$major'
2N/A # HP-UX runs *really* slowly unless shared libraries are mode 555.
2N/A postinstall_cmds='chmod 555 $lib'
2N/A library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2N/A soname_spec='${libname}${release}${shared_ext}$major'
2N/A shlibpath_var=LD_LIBRARY_PATH
2N/A shlibpath_overrides_runpath=no
2N/A hardcode_into_libs=yes
2N/Airix5* | irix6* | nonstopux*)
2N/A nonstopux*) version_type=nonstopux ;;
2N/A if test "$lt_cv_prog_gnu_ld" = yes; then
2N/A soname_spec='${libname}${release}${shared_ext}$major'
2N/A library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2N/A irix5* | nonstopux*)
2N/A *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2N/A libsuff= shlibsuff= libmagic=32-bit;;
2N/A *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2N/A libsuff=32 shlibsuff=N32 libmagic=N32;;
2N/A *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2N/A libsuff=64 shlibsuff=64 libmagic=64-bit;;
2N/A *) libsuff= shlibsuff= libmagic=never-match;;
2N/A shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2N/A shlibpath_overrides_runpath=no
2N/A sys_lib_dlsearch_path_spec="
/usr/lib${libsuff} /lib${libsuff}"
2N/A hardcode_into_libs=yes
2N/A# No shared lib support for Linux oldld, aout, or coff.
2N/Alinux*oldld* | linux*aout* | linux*coff*)
2N/A# This must be Linux ELF.
2N/A library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2N/A soname_spec='${libname}${release}${shared_ext}$major'
2N/A finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2N/A shlibpath_var=LD_LIBRARY_PATH
2N/A shlibpath_overrides_runpath=no
2N/A # This implies no fast_install, which is unacceptable.
2N/A # Some rework will be needed to allow for fast_install
2N/A # before this can be enabled.
2N/A hardcode_into_libs=yes
2N/A 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' ' '`
2N/A sys_lib_dlsearch_path_spec="/lib
/usr/lib $lt_ld_extra"
2N/A # powerpc, because MkLinux only supported shared libraries with the
2N/A # GNU dynamic linker. Since this was broken with cross compilers,
2N/A # most powerpc-linux boxes support dynamic linking these days and
2N/A # people can always --disable-shared, the test was removed, and we
2N/A library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2N/A soname_spec='${libname}${release}${shared_ext}$major'
2N/A shlibpath_var=LD_LIBRARY_PATH
2N/A shlibpath_overrides_runpath=no
2N/A hardcode_into_libs=yes
2N/A library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2N/A finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2N/A library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2N/A soname_spec='${libname}${release}${shared_ext}$major'
2N/A shlibpath_var=LD_LIBRARY_PATH
2N/A shlibpath_overrides_runpath=yes
2N/A hardcode_into_libs=yes
2N/A library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2N/A shlibpath_var=LD_LIBRARY_PATH
2N/A shlibpath_overrides_runpath=yes
2N/A library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2N/A soname_spec='${libname}${release}${shared_ext}$major'
2N/A shlibpath_var=LD_LIBRARY_PATH
2N/A shlibpath_overrides_runpath=yes
2N/A # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2N/A openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2N/A *) need_version=no ;;
2N/A library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2N/A finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2N/A shlibpath_var=LD_LIBRARY_PATH
2N/A if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2N/A openbsd2.[[89]] | openbsd2.[[89]].*)
2N/A shlibpath_overrides_runpath=no
2N/A shlibpath_overrides_runpath=yes
2N/A shlibpath_overrides_runpath=yes
2N/A libname_spec='$name'
2N/A shlibpath_var=LIBPATH
2N/Aosf3* | osf4* | osf5*)
2N/A soname_spec='${libname}${release}${shared_ext}$major'
2N/A library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2N/A shlibpath_var=LD_LIBRARY_PATH
2N/A sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2N/A library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2N/A soname_spec='${libname}${release}${shared_ext}$major'
2N/A shlibpath_var=LD_LIBRARY_PATH
2N/A shlibpath_overrides_runpath=yes
2N/A hardcode_into_libs=yes
2N/A # ldd complains unless libraries are executable
2N/A postinstall_cmds='chmod +x $lib'
2N/A library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2N/A shlibpath_var=LD_LIBRARY_PATH
2N/A shlibpath_overrides_runpath=yes
2N/A if test "$with_gnu_ld" = yes; then
2N/A library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2N/A soname_spec='${libname}${release}${shared_ext}$major'
2N/A shlibpath_var=LD_LIBRARY_PATH
2N/A case $host_vendor in
2N/A shlibpath_overrides_runpath=no
2N/A export_dynamic_flag_spec='${wl}-Blargedynsym'
2N/A runpath_var=LD_RUN_PATH
2N/A shlibpath_overrides_runpath=no
2N/A library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2N/A soname_spec='$libname${shared_ext}.$major'
2N/A shlibpath_var=LD_LIBRARY_PATH
2N/Asysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2N/A version_type=freebsd-elf
2N/A library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2N/A soname_spec='${libname}${release}${shared_ext}$major'
2N/A shlibpath_var=LD_LIBRARY_PATH
2N/A hardcode_into_libs=yes
2N/A if test "$with_gnu_ld" = yes; then
2N/A shlibpath_overrides_runpath=no
2N/A shlibpath_overrides_runpath=yes
2N/A sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2N/A library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2N/A soname_spec='${libname}${release}${shared_ext}$major'
2N/A shlibpath_var=LD_LIBRARY_PATH
2N/AAC_MSG_RESULT([$dynamic_linker])
2N/Atest "$dynamic_linker" = no && can_build_shared=no
2N/Avariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2N/Aif test "$GCC" = yes; then
2N/A variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2N/A [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2N/A [include additional configurations @<:@automatic@:>@])],
2N/A [tagnames="$withval"])
2N/Aif test -f "$ltmain" && test -n "$tagnames"; then
2N/A if test ! -f "${ofile}"; then
2N/A AC_MSG_WARN([output file `$ofile' does not exist])
2N/A if test -z "$LTCC"; then
2N/A eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2N/A if test -z "$LTCC"; then
2N/A AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2N/A AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2N/A if test -z "$LTCFLAGS"; then
2N/A eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
2N/A # Extract list of available tagged configurations in $ofile.
2N/A # Note that this assumes the entire list is on one line.
2N/A available_tags=`grep "^available_tags=" "${ofile}" | $SED -e '
s/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2N/A lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2N/A for tagname in $tagnames; do
2N/A # Check whether tagname contains only valid characters
2N/A case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2N/A *) AC_MSG_ERROR([invalid tag name: $tagname])
2N/A if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" >
/dev/null 2N/A AC_MSG_ERROR([tag name \"$tagname\" already exists])
2N/A # Update the list of available tags.
2N/A if test -n "$tagname"; then
2N/A echo appending configuration tag \"$tagname\" to $ofile
2N/A if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2N/A (test "X$CXX" != "Xg++"))) ; then
2N/A AC_LIBTOOL_LANG_CXX_CONFIG
2N/A if test -n "$F77" && test "X$F77" != "Xno"; then
2N/A AC_LIBTOOL_LANG_F77_CONFIG
2N/A if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2N/A AC_LIBTOOL_LANG_GCJ_CONFIG
2N/A AC_LIBTOOL_LANG_RC_CONFIG
2N/A AC_MSG_ERROR([Unsupported tag name: $tagname])
2N/A # Append the new tag name to the list of available tags.
2N/A if test -n "$tagname" ; then
2N/A available_tags="$available_tags $tagname"
2N/A # Now substitute the updated list of available tags.
2N/A if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2N/A mv "${ofile}T" "$ofile"
2N/A AC_MSG_ERROR([unable to update list of available tagged configurations.])
2N/AAC_ARG_ENABLE([shared],
2N/A [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2N/A [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2N/A [p=${PACKAGE-default}
2N/A yes) enable_shared=yes ;;
2N/A no) enable_shared=no ;;
2N/A # Look at the argument we got. We use all the common list separators.
2N/A lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2N/A for pkg in $enableval; do
2N/A if test "X$pkg" = "X$p"; then
2N/A [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2N/AAC_ARG_ENABLE([static],
2N/A [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2N/A [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2N/A [p=${PACKAGE-default}
2N/A yes) enable_static=yes ;;
2N/A no) enable_static=no ;;
2N/A # Look at the argument we got. We use all the common list separators.
2N/A lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2N/A for pkg in $enableval; do
2N/A if test "X$pkg" = "X$p"; then
2N/A [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2N/AAC_ARG_ENABLE([fast-install],
2N/A [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2N/A [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2N/A [p=${PACKAGE-default}
2N/A yes) enable_fast_install=yes ;;
2N/A no) enable_fast_install=no ;;
2N/A enable_fast_install=no
2N/A # Look at the argument we got. We use all the common list separators.
2N/A lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2N/A for pkg in $enableval; do
2N/A if test "X$pkg" = "X$p"; then
2N/A enable_fast_install=yes
2N/A [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2N/AAC_ENABLE_FAST_INSTALL(no)
2N/Apic_mode=ifelse($#,1,$1,default)
2N/AAC_MSG_CHECKING([for $1])
2N/AAC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2N/A lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2N/A lt_save_MAGIC_CMD="$MAGIC_CMD"
2N/A lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2N/Adnl $ac_dummy forces splitting on constant user-supplied paths.
2N/Adnl POSIX.2 word splitting is done only on the output of word expansions,
2N/Adnl not every word. This closes a longstanding sh security hole.
2N/A ac_dummy="ifelse([$2], , $PATH, [$2])"
2N/A for ac_dir in $ac_dummy; do
2N/A test -z "$ac_dir" && ac_dir=.
2N/A if test -f $ac_dir/$1; then
2N/A lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2N/A if test -n "$file_magic_test_file"; then
2N/A case $deplibs_check_method in
2N/A file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2N/A MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2N/A if eval $file_magic_cmd \$file_magic_test_file 2>
/dev/null |
2N/A*** Warning: the command libtool uses to detect shared libraries,
2N/A*** $file_magic_cmd, produces output that libtool cannot recognize.
2N/A*** The result is that libtool may fail to recognize shared libraries
2N/A*** as such. This will affect the creation of libtool libraries that
2N/A*** depend on shared libraries, but programs linked with such libtool
2N/A*** libraries will work regardless of this problem. Nevertheless, you
2N/A*** may want to report the problem to your system manager
and/or to
2N/A*** bug-libtool@gnu.org
2N/A MAGIC_CMD="$lt_save_MAGIC_CMD"
2N/AMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2N/Aif test -n "$MAGIC_CMD"; then
2N/A AC_MSG_RESULT($MAGIC_CMD)
2N/Aif test -z "$lt_cv_path_MAGIC_CMD"; then
2N/A if test -n "$ac_tool_prefix"; then
2N/A AC_PATH_TOOL_PREFIX(file,
/usr/bin$PATH_SEPARATOR$PATH)
2N/A [AC_HELP_STRING([--with-gnu-ld],
2N/A [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2N/A [test "$withval" = no || with_gnu_ld=yes],
2N/AAC_REQUIRE([LT_AC_PROG_SED])dnl
2N/AAC_REQUIRE([AC_PROG_CC])dnl
2N/AAC_REQUIRE([AC_CANONICAL_HOST])dnl
2N/AAC_REQUIRE([AC_CANONICAL_BUILD])dnl
2N/Aif test "$GCC" = yes; then
2N/A # Check if gcc -print-prog-name=ld gives a path.
2N/A AC_MSG_CHECKING([for ld used by $CC])
2N/A # gcc leaves a trailing carriage return which upsets mingw
2N/A ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2N/A ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2N/A # Accept absolute paths.
2N/A [[\\/]]* | ?:[[\\/]]*)
2N/A re_direlt='/[[^/]][[^/]]*/\.\./'
2N/A # Canonicalize the pathname of ld
2N/A ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2N/A while echo $ac_prog | grep "$re_direlt" >
/dev/null 2>&1; do
2N/A ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2N/A test -z "$LD" && LD="$ac_prog"
2N/A # If it fails, then pretend we aren't using GCC.
2N/A # If it is relative, then search for the first ld in PATH.
2N/Aelif test "$with_gnu_ld" = yes; then
2N/A AC_MSG_CHECKING([for GNU ld])
2N/A AC_MSG_CHECKING([for non-GNU ld])
2N/AAC_CACHE_VAL(lt_cv_path_LD,
2N/A[if test -z "$LD"; then
2N/A lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2N/A for ac_dir in $PATH; do
2N/A test -z "$ac_dir" && ac_dir=.
2N/A if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2N/A lt_cv_path_LD="$ac_dir/$ac_prog"
2N/A # Check to see if the program is GNU ld. I'd rather use --version,
2N/A # but apparently some variants of GNU ld only accept -v.
2N/A *GNU* | *'with BFD'*)
2N/A test "$with_gnu_ld" != no && break
2N/A test "$with_gnu_ld" != yes && break
2N/A lt_cv_path_LD="$LD" # Let the user override the test with a path.
2N/Aif test -n "$LD"; then
2N/Atest -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2N/AAC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2N/A[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2N/A*GNU* | *'with BFD'*)
2N/A lt_cv_prog_gnu_ld=yes
2N/A lt_cv_prog_gnu_ld=no
2N/Awith_gnu_ld=$lt_cv_prog_gnu_ld
2N/A lt_cv_ld_reload_flag,
2N/A [lt_cv_ld_reload_flag='-r'])
2N/Areload_flag=$lt_cv_ld_reload_flag
2N/A*) reload_flag=" $reload_flag" ;;
2N/Areload_cmds='$LD$reload_flag -o $output$reload_objs'
2N/A if test "$GCC" = yes; then
2N/A reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2N/A reload_cmds='$LD$reload_flag -o $output$reload_objs'
2N/Alt_cv_deplibs_check_method,
2N/A[lt_cv_file_magic_cmd='$MAGIC_CMD'
2N/Alt_cv_file_magic_test_file=
2N/Alt_cv_deplibs_check_method='unknown'
2N/A# Need to set the preceding variable on all platforms that support
2N/A# interlibrary dependencies.
2N/A# 'none' -- dependencies not supported.
2N/A# `unknown' -- same as none, but documents that we really don't know.
2N/A# 'pass_all' -- all dependencies passed with no checks.
2N/A# 'test_compile' -- check by making test program.
2N/A# 'file_magic [[regex]]' -- check by looking for files in library path
2N/A# which responds to the $file_magic_cmd with a given extended regex.
2N/A# If you have `file' or equivalent on your system and you're not sure
2N/A# whether `pass_all' will *always* work, you probably want this one.
2N/A lt_cv_deplibs_check_method=pass_all
2N/A lt_cv_deplibs_check_method=pass_all
2N/A lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2N/A lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2N/A lt_cv_file_magic_cmd='func_win32_libid'
2N/A # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2N/A lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2N/A lt_cv_file_magic_cmd='$OBJDUMP -f'
2N/A lt_cv_deplibs_check_method=pass_all
2N/Afreebsd* | kfreebsd*-gnu | dragonfly*)
2N/A # Not sure whether the presence of OpenBSD here was a mistake.
2N/A # Let's accept both of them until this is cleared up.
2N/A lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2N/A lt_cv_deplibs_check_method=pass_all
2N/A lt_cv_deplibs_check_method=pass_all
2N/Ahpux10.20* | hpux11*)
2N/A lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2N/A [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]']
2N/A lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2N/A # PIC code is broken on Interix
3.x, that's why |\.a not |_pic\.a here
2N/A lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2N/Airix5* | irix6* | nonstopux*)
2N/A *-32|*"-32 ") libmagic=32-bit;;
2N/A *-n32|*"-n32 ") libmagic=N32;;
2N/A *-64|*"-64 ") libmagic=64-bit;;
2N/A *) libmagic=never-match;;
2N/A lt_cv_deplibs_check_method=pass_all
2N/A# This must be Linux ELF.
2N/A lt_cv_deplibs_check_method=pass_all
2N/A lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2N/A lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2N/A lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2N/A lt_cv_deplibs_check_method=unknown
2N/A if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2N/A lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2N/A lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2N/Aosf3* | osf4* | osf5*)
2N/A lt_cv_deplibs_check_method=pass_all
2N/A lt_cv_deplibs_check_method=pass_all
2N/A case $host_vendor in
2N/A 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]]'
2N/A lt_cv_deplibs_check_method=pass_all
2N/A lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2N/A lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2N/A lt_cv_deplibs_check_method=pass_all
2N/A lt_cv_deplibs_check_method=pass_all
2N/Asysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2N/A lt_cv_deplibs_check_method=pass_all
2N/Afile_magic_cmd=$lt_cv_file_magic_cmd
2N/Adeplibs_check_method=$lt_cv_deplibs_check_method
2N/Atest -z "$deplibs_check_method" && deplibs_check_method=unknown
2N/A[if test -n "$NM"; then
2N/A # Let the user override the test.
2N/A lt_nm_to_check="${ac_tool_prefix}nm"
2N/A if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2N/A lt_nm_to_check="$lt_nm_to_check nm"
2N/A for lt_tmp_nm in $lt_nm_to_check; do
2N/A lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2N/A test -z "$ac_dir" && ac_dir=.
2N/A tmp_nm="$ac_dir/$lt_tmp_nm"
2N/A if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2N/A # Check to see if the nm accepts a BSD-compat flag.
2N/A # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2N/A # nm: unknown option "B" ignored
2N/A # Tru64's nm complains that
/dev/null is an invalid object file
2N/A lt_cv_path_NM="$tmp_nm -B"
2N/A lt_cv_path_NM="$tmp_nm -p"
2N/A lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2N/A continue # so that we can try to find one that supports BSD flags
2N/A test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2N/A*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2N/A # These system don't have libm, or don't need it
2N/A AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
2N/A AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
2N/A AC_CHECK_LIB(m, cos, LIBM="-lm")
2N/A case $enable_ltdl_convenience in
2N/A no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2N/A "") enable_ltdl_convenience=yes
2N/A ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2N/A LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2N/A # For backwards non-gettext consistent compatibility...
2N/A AC_CHECK_LIB(ltdl, lt_dlinit,
2N/A [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2N/A [if test x"$enable_ltdl_install" = xno; then
2N/A AC_MSG_WARN([libltdl not installed, but installation disabled])
2N/A enable_ltdl_install=yes
2N/A if test x"$enable_ltdl_install" = x"yes"; then
2N/A ac_configure_args="$ac_configure_args --enable-ltdl-install"
2N/A LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/
libltdl.la 2N/A LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2N/A ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2N/A # For backwards non-gettext consistent compatibility...
2N/AAC_REQUIRE([_LT_AC_PROG_CXXCPP])
2N/A_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2N/AAC_REQUIRE([AC_PROG_CXX])
2N/Aif test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2N/A (test "X$CXX" != "Xg++"))) ; then
2N/A_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2N/A [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2N/A [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2N/A [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2N/A [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2N/A [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2N/A_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2N/A_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2N/A# Source file extension for C test sources.
2N/A# Object file extension for compiled C test sources.
2N/A_LT_AC_TAGVAR(objext, $1)=$objext
2N/A# Code to be used in simple compile tests
2N/Alt_simple_compile_test_code="int some_variable = 0;\n"
2N/A# Code to be used in simple link tests
2N/Alt_simple_link_test_code='int main(){return(0);}\n'
2N/A_LT_COMPILER_BOILERPLATE
2N/A_LT_LINKER_BOILERPLATE
2N/A## There is no encapsulation within the following macros, do not change
2N/A## the running order or otherwise move them around unless you know exactly
2N/A## what you are doing...
2N/AAC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2N/AAC_LIBTOOL_PROG_COMPILER_PIC($1)
2N/AAC_LIBTOOL_PROG_CC_C_O($1)
2N/AAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2N/AAC_LIBTOOL_PROG_LD_SHLIBS($1)
2N/AAC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2N/AAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2N/AAC_LIBTOOL_SYS_LIB_STRIP
2N/AAC_LIBTOOL_DLOPEN_SELF
2N/A# Report which library types will actually be built
2N/AAC_MSG_CHECKING([if libtool supports shared libraries])
2N/AAC_MSG_RESULT([$can_build_shared])
2N/AAC_MSG_CHECKING([whether to build shared libraries])
2N/Atest "$can_build_shared" = "no" && enable_shared=no
2N/A# On AIX, shared libraries and static libraries use the same namespace, and
2N/A# are all built from PIC.
2N/A test "$enable_shared" = yes && enable_static=no
2N/A if test -n "$RANLIB"; then
2N/A archive_cmds="$archive_cmds~\$RANLIB \$lib"
2N/A postinstall_cmds='$RANLIB $lib'
2N/A if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2N/A test "$enable_shared" = yes && enable_static=no
2N/AAC_MSG_RESULT([$enable_shared])
2N/AAC_MSG_CHECKING([whether to build static libraries])
2N/A# Make sure either enable_shared or enable_static is yes.
2N/Atest "$enable_shared" = yes || enable_static=yes
2N/AAC_MSG_RESULT([$enable_static])
2N/AAC_LIBTOOL_CONFIG($1)
2N/AAC_REQUIRE([AC_PROG_CXX])
2N/AAC_REQUIRE([_LT_AC_PROG_CXXCPP])
2N/A_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2N/A_LT_AC_TAGVAR(allow_undefined_flag, $1)=
2N/A_LT_AC_TAGVAR(always_export_symbols, $1)=no
2N/A_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2N/A_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2N/A_LT_AC_TAGVAR(hardcode_direct, $1)=no
2N/A_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2N/A_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2N/A_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2N/A_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2N/A_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2N/A_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2N/A_LT_AC_TAGVAR(module_cmds, $1)=
2N/A_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2N/A_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2N/A_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2N/A_LT_AC_TAGVAR(no_undefined_flag, $1)=
2N/A_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2N/A_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2N/A# Dependencies to place before and after the object being linked:
2N/A_LT_AC_TAGVAR(predep_objects, $1)=
2N/A_LT_AC_TAGVAR(postdep_objects, $1)=
2N/A_LT_AC_TAGVAR(predeps, $1)=
2N/A_LT_AC_TAGVAR(postdeps, $1)=
2N/A_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2N/A# Source file extension for C++ test sources.
2N/A# Object file extension for compiled C++ test sources.
2N/A_LT_AC_TAGVAR(objext, $1)=$objext
2N/A# Code to be used in simple compile tests
2N/Alt_simple_compile_test_code="int some_variable = 0;\n"
2N/A# Code to be used in simple link tests
2N/Alt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2N/A# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2N/A_LT_COMPILER_BOILERPLATE
2N/A_LT_LINKER_BOILERPLATE
2N/A# Allow CC to be a program name with arguments.
2N/Alt_save_with_gnu_ld=$with_gnu_ld
2N/Alt_save_path_LD=$lt_cv_path_LD
2N/Aif test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2N/A lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2N/A $as_unset lt_cv_prog_gnu_ld
2N/Aif test -n "${lt_cv_path_LDCXX+set}"; then
2N/A lt_cv_path_LD=$lt_cv_path_LDCXX
2N/A $as_unset lt_cv_path_LD
2N/Atest -z "${LDCXX+set}" || LD=$LDCXX
2N/A_LT_AC_TAGVAR(compiler, $1)=$CC
2N/A_LT_CC_BASENAME([$compiler])
2N/A# We don't want -fno-exception wen compiling C++ code, so set the
2N/A# no_builtin_flag separately
2N/Aif test "$GXX" = yes; then
2N/A _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2N/Aif test "$GXX" = yes; then
2N/A # Set up default GNU C++ configuration
2N/A # Check if GNU C++ uses GNU ld as the underlying linker, since the
2N/A # archiving commands below assume that GNU ld is being used.
2N/A if test "$with_gnu_ld" = yes; then
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2N/A _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'
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2N/A _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2N/A # If archive_cmds runs LD, not CC, wlarc should be empty
2N/A # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2N/A # investigate it a little bit more. (MM)
2N/A # ancient GNU ld didn't support --whole-archive et. al.
2N/A if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2N/A _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2N/A _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2N/A # A generic and very simple default shared library creation
2N/A # command for GNU C++ for the case where it uses the native
2N/A # linker, instead of GNU ld. If possible, this setting should
2N/A # overridden to take advantage of the native linker features on
2N/A # the platform it is being used on.
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2N/A # Commands to make compiler produce verbose output that lists
2N/A # what "hidden" libraries, object files and flags are used when
2N/A # linking a shared library.
2N/A output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
2N/A# PORTME: fill in a description of your system's C++ link characteristics
2N/AAC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
2N/A_LT_AC_TAGVAR(ld_shlibs, $1)=yes
2N/A # FIXME: insert proper C++ library support
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A if test "$host_cpu" = ia64; then
2N/A # On IA64, the linker does run time linking by default, so we don't
2N/A # have to do anything special.
2N/A aix_use_runtimelinking=no
2N/A exp_sym_flag='-Bexport'
2N/A aix_use_runtimelinking=no
2N/A # Test if we are trying to use run time linking or normal
2N/A # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2N/A # need to do runtime linking.
2N/A case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
2N/A for ld_flag in $LDFLAGS; do
2N/A aix_use_runtimelinking=yes
2N/A exp_sym_flag='-bexport'
2N/A no_entry_flag='-bnoentry'
2N/A # When large executables or shared objects are built, AIX ld can
2N/A # have problems creating the table of contents. If linking a library
2N/A # or program results in "error TOC overflow" add -mminimal-toc to
2N/A # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
2N/A _LT_AC_TAGVAR(archive_cmds, $1)=''
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2N/A _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2N/A _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2N/A if test "$GXX" = yes; then
2N/A case $host_os in aix4.[[012]]|aix4.[[012]].*)
2N/A # We only want to do this on AIX 4.2 and lower, the check
2N/A # below for broken collect2 doesn't work under 4.3+
2N/A collect2name=`${CC} -print-prog-name=collect2`
2N/A if test -f "$collect2name" && \
2N/A # We have reworked collect2
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2N/A # We have old collect2
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
2N/A # It fails to find uninstalled libraries when the uninstalled
2N/A # path is not listed in the libpath. Setting hardcode_minus_L
2N/A # to unsupported forces relinking
2N/A _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2N/A _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2N/A shared_flag='-shared'
2N/A if test "$aix_use_runtimelinking" = yes; then
2N/A shared_flag="$shared_flag "'${wl}-G'
2N/A if test "$host_cpu" = ia64; then
2N/A # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
2N/A # chokes on -Wl,-G. The following line is correct:
2N/A if test "$aix_use_runtimelinking" = yes; then
2N/A shared_flag='${wl}-G'
2N/A shared_flag='${wl}-bM:SRE'
2N/A # It seems that -bexpall does not export symbols beginning with
2N/A # underscore (_), so it is better to generate a list of symbols to export.
2N/A _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2N/A if test "$aix_use_runtimelinking" = yes; then
2N/A # Warning - without using the other runtime loading flags (-brtl),
2N/A # -berok will link without error, but may produce a broken library.
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
2N/A # Determine the default libpath from the value encoded in an empty executable.
2N/A _LT_AC_SYS_LIBPATH_AIX
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2N/A _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"
2N/A if test "$host_cpu" = ia64; then
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:
/usr/lib:/lib'
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2N/A _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"
2N/A # Determine the default libpath from the value encoded in an empty executable.
2N/A _LT_AC_SYS_LIBPATH_AIX
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2N/A # Warning - without using the other run time loading flags,
2N/A # -berok will link without error, but may produce a broken library.
2N/A _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2N/A # Exported symbols can be pulled into shared objects from archives
2N/A _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2N/A _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2N/A # This is similar to how AIX traditionally builds its shared libraries.
2N/A _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'
2N/A if $LD --help 2>&1 | grep ': supported targets:.* elf' >
/dev/null; then
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2N/A # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
2N/A # support --undefined. This deserves some investigation. FIXME
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A case $cc_basename in
2N/A # FIXME: insert proper C++ library support
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A cygwin* | mingw* | pw32*)
2N/A # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
2N/A # as there is no search path for DLLs.
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2N/A _LT_AC_TAGVAR(always_export_symbols, $1)=no
2N/A _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2N/A _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'
2N/A # If the export-symbols file already is a .def file (1st line
2N/A # is EXPORTS), use it as is; otherwise, prepend...
2N/A _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
2N/A $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'
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A darwin* | rhapsody*)
2N/A rhapsody* | darwin1.[[012]])
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
2N/A if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
2N/A case ${MACOSX_DEPLOYMENT_TARGET} in
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
2N/A _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=no
2N/A _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2N/A _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
2N/A _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2N/A if test "$GXX" = yes ; then
2N/A lt_int_apple_cc_single_mod=no
2N/A output_verbose_link_cmd='echo'
2N/A if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >
/dev/null ; then
2N/A lt_int_apple_cc_single_mod=yes
2N/A if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2N/A _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'
2N/A _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2N/A # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
2N/A if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2N/A _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}'
2N/A _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}'
2N/A _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}'
2N/A case $cc_basename in
2N/A output_verbose_link_cmd='echo'
2N/A _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'
2N/A _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2N/A # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
2N/A _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}'
2N/A _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}'
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A case $cc_basename in
2N/A # FIXME: insert proper C++ library support
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A # Green Hills C++ Compiler
2N/A # FIXME: insert proper C++ library support
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A # FIXME: insert proper C++ library support
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A # C++ shared libraries reported to be fairly broken before switch to ELF
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2N/A freebsd* | kfreebsd*-gnu | dragonfly*)
2N/A # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=yes
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
2N/A _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2N/A _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2N/A _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
2N/A # but as the default
2N/A # location of the library.
2N/A case $cc_basename in
2N/A # FIXME: insert proper C++ library support
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A _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'
2N/A # Commands to make compiler produce verbose output that lists
2N/A # what "hidden" libraries, object files and flags are used when
2N/A # linking a shared library.
2N/A # There doesn't appear to be a way to prevent this compiler from
2N/A # explicitly linking system object files so we need to strip them
2N/A # from the output so that they don't get included in the library
2N/A 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'
2N/A if test "$GXX" = yes; then
2N/A _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'
2N/A # FIXME: insert proper C++ library support
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A if test $with_gnu_ld = no; then
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
2N/A _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
2N/A _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=no
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2N/A _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
2N/A # but as the default
2N/A # location of the library.
2N/A case $cc_basename in
2N/A # FIXME: insert proper C++ library support
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2N/A _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'
2N/A # Commands to make compiler produce verbose output that lists
2N/A # what "hidden" libraries, object files and flags are used when
2N/A # linking a shared library.
2N/A # There doesn't appear to be a way to prevent this compiler from
2N/A # explicitly linking system object files so we need to strip them
2N/A # from the output so that they don't get included in the library
2N/A 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'
2N/A if test "$GXX" = yes; then
2N/A if test $with_gnu_ld = no; then
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2N/A _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'
2N/A _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'
2N/A # FIXME: insert proper C++ library support
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=no
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
2N/A _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2N/A # Hack: On Interix
3.x, we cannot compile PIC because of a broken gcc.
2N/A # Instead, shared libraries are loaded at an image base (0x10000000 by
2N/A # default) and relocated if they conflict, which is a slow very memory
2N/A # consuming and fragmenting process. To avoid this, we pick a random,
2N/A # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
2N/A # time. Moving up from 0x10000000 also allows more sbrk(2) space.
2N/A _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'
2N/A _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'
2N/A case $cc_basename in
2N/A _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'
2N/A # Archives containing C++ object files must be created using
2N/A # "CC -ar", where "CC" is the IRIX C++ compiler. This is
2N/A # necessary to make sure instantiated templates are included
2N/A _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
2N/A if test "$GXX" = yes; then
2N/A if test "$with_gnu_ld" = no; then
2N/A _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'
2N/A _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'
2N/A _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2N/A _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2N/A case $cc_basename in
2N/A # Kuck and Associates, Inc. (KAI) C++ Compiler
2N/A # KCC will only create a shared library if the output file
2N/A # ends with ".so" (or ".sl" for HP-UX), so rename the library
2N/A # to its proper name (with version) after linking.
2N/A _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'
2N/A _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'
2N/A # Commands to make compiler produce verbose output that lists
2N/A # what "hidden" libraries, object files and flags are used when
2N/A # linking a shared library.
2N/A # There doesn't appear to be a way to prevent this compiler from
2N/A # explicitly linking system object files so we need to strip them
2N/A # from the output so that they don't get included in the library
2N/A 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'
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
2N/A _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2N/A # Archives containing C++ object files must be created using
2N/A # "CC -Bstatic", where "CC" is the KAI C++ compiler.
2N/A _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
2N/A # version 8.0 and above of icpc choke on multiply defined symbols
2N/A # if we add $predep_objects and $postdep_objects, however 7.1 and
2N/A # earlier do not add the objects themselves.
2N/A case `$CC -V 2>&1` in
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2N/A _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'
2N/A *) # Version 8.0 or newer
2N/A ia64*) tmp_idyn=' -i_dynamic';;
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2N/A _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'
2N/A _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
2N/A _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2N/A _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
2N/A # Portland Group C++ compiler
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
2N/A _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'
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2N/A _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2N/A _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'
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2N/A _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'
2N/A runpath_var=LD_RUN_PATH
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
2N/A _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2N/A # Commands to make compiler produce verbose output that lists
2N/A # what "hidden" libraries, object files and flags are used when
2N/A # linking a shared library.
2N/A # There doesn't appear to be a way to prevent this compiler from
2N/A # explicitly linking system object files so we need to strip them
2N/A # from the output so that they don't get included in the library
2N/A 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'
2N/A # FIXME: insert proper C++ library support
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A # FIXME: insert proper C++ library support
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A case $cc_basename in
2N/A # FIXME: insert proper C++ library support
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A # FIXME: insert proper C++ library support
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2N/A # Workaround some broken pre-1.5 toolchains
2N/A output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
2N/A # C++ shared libraries are fairly broken
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
2N/A if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2N/A _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'
2N/A _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2N/A _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2N/A output_verbose_link_cmd='echo'
2N/A case $cc_basename in
2N/A # Kuck and Associates, Inc. (KAI) C++ Compiler
2N/A # KCC will only create a shared library if the output file
2N/A # ends with ".so" (or ".sl" for HP-UX), so rename the library
2N/A # to its proper name (with version) after linking.
2N/A _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'
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
2N/A _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2N/A # Archives containing C++ object files must be created using
2N/A # "CC -Bstatic", where "CC" is the KAI C++ compiler.
2N/A _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
2N/A # Rational C++ 2.4.1
2N/A # FIXME: insert proper C++ library support
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
2N/A _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'
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2N/A _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2N/A # Commands to make compiler produce verbose output that lists
2N/A # what "hidden" libraries, object files and flags are used when
2N/A # linking a shared library.
2N/A # There doesn't appear to be a way to prevent this compiler from
2N/A # explicitly linking system object files so we need to strip them
2N/A # from the output so that they don't get included in the library
2N/A 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'
2N/A if test "$GXX" = yes && test "$with_gnu_ld" = no; then
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
2N/A _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'
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2N/A _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2N/A # Commands to make compiler produce verbose output that lists
2N/A # what "hidden" libraries, object files and flags are used when
2N/A # linking a shared library.
2N/A output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
2N/A # FIXME: insert proper C++ library support
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A case $cc_basename in
2N/A # Kuck and Associates, Inc. (KAI) C++ Compiler
2N/A # KCC will only create a shared library if the output file
2N/A # ends with ".so" (or ".sl" for HP-UX), so rename the library
2N/A # to its proper name (with version) after linking.
2N/A _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'
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
2N/A _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2N/A # Archives containing C++ object files must be created using
2N/A # the KAI C++ compiler.
2N/A _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
2N/A # Rational C++ 2.4.1
2N/A # FIXME: insert proper C++ library support
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
2N/A _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'
2N/A _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $
lib.exp; done~
2N/A $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~
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
2N/A _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2N/A # Commands to make compiler produce verbose output that lists
2N/A # what "hidden" libraries, object files and flags are used when
2N/A # linking a shared library.
2N/A # There doesn't appear to be a way to prevent this compiler from
2N/A # explicitly linking system object files so we need to strip them
2N/A # from the output so that they don't get included in the library
2N/A 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'
2N/A if test "$GXX" = yes && test "$with_gnu_ld" = no; then
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
2N/A _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'
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2N/A _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2N/A # Commands to make compiler produce verbose output that lists
2N/A # what "hidden" libraries, object files and flags are used when
2N/A # linking a shared library.
2N/A output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
2N/A # FIXME: insert proper C++ library support
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A # FIXME: insert proper C++ library support
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A case $cc_basename in
2N/A # FIXME: insert proper C++ library support
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A # FIXME: insert proper C++ library support
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A # FIXME: insert proper C++ library support
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A case $cc_basename in
2N/A # Sun C++ 4.2,
5.x and Centerline C++
2N/A _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
2N/A _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
2N/A _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $
lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $
lib.exp~$echo "local: *; };" >> $
lib.exp~
2N/A $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'
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2N/A solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
2N/A # The C++ compiler is used as linker so we must use $wl
2N/A # flag to pass the commands to the underlying system
2N/A # linker. We must also pass each convience library through
2N/A # The C++ compiler will combine linker options so we
2N/A # cannot just pass the convience library names through
2N/A # Supported since Solaris 2.6 (maybe 2.5.1?)
2N/A _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'
2N/A _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2N/A output_verbose_link_cmd='echo'
2N/A # Archives containing C++ object files must be created using
2N/A # "CC -xar", where "CC" is the Sun C++ compiler. This is
2N/A # necessary to make sure instantiated templates are included
2N/A _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
2N/A # Green Hills C++ Compiler
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
2N/A # The C++ compiler must be used to create the archive.
2N/A _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
2N/A # GNU C++ compiler with Solaris linker
2N/A if test "$GXX" = yes && test "$with_gnu_ld" = no; then
2N/A _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
2N/A _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $
lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $
lib.exp~$echo "local: *; };" >> $
lib.exp~
2N/A $CC -shared -nostdlib ${wl}-M $wl$
lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $
lib.exp'
2N/A # Commands to make compiler produce verbose output that lists
2N/A # what "hidden" libraries, object files and flags are used when
2N/A # linking a shared library.
2N/A output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
2N/A # g++ 2.7 appears to require `-G' NOT `-shared' on this
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
2N/A _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $
lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $
lib.exp~$echo "local: *; };" >> $
lib.exp~
2N/A $CC -G -nostdlib ${wl}-M $wl$
lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $
lib.exp'
2N/A # Commands to make compiler produce verbose output that lists
2N/A # what "hidden" libraries, object files and flags are used when
2N/A # linking a shared library.
2N/A output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
2N/A sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
2N/A _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
2N/A _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2N/A runpath_var='LD_RUN_PATH'
2N/A case $cc_basename in
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2N/A _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2N/A _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2N/A sysv5* | sco3.2v5* | sco5v6*)
2N/A # Note: We can NOT use -z defs as we might desire, because we do not
2N/A # link with -lc, and that would cause any symbols used from libc to
2N/A # always be unresolved, which means just about no library would
2N/A # ever link correctly. If we're not using GNU ld we use -z text
2N/A # though, which does catch some bad symbols but isn't as heavy-handed
2N/A # For security reasons, it is highly recommended that you always
2N/A # use absolute paths for naming shared libraries, and exclude the
2N/A # DT_RUNPATH tag from executables and libraries. But doing so
2N/A # requires that you compile everything twice, which is a pain.
2N/A # So that behaviour is only enabled if SCOABSPATH is set to a
2N/A # non-empty value in the environment. Most likely only useful for
2N/A # creating official distributions of packages.
2N/A # This is a hack until libtool officially supports absolute path
2N/A # names for shared libraries.
2N/A _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
2N/A _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
2N/A _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2N/A _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2N/A _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
2N/A runpath_var='LD_RUN_PATH'
2N/A case $cc_basename in
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
2N/A _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'
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
2N/A _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'
2N/A case $cc_basename in
2N/A # NonStop-UX NCC 3.20
2N/A # FIXME: insert proper C++ library support
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A # FIXME: insert proper C++ library support
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A # FIXME: insert proper C++ library support
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A # FIXME: insert proper C++ library support
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/AAC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
2N/Atest "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
2N/A_LT_AC_TAGVAR(GCC, $1)="$GXX"
2N/A_LT_AC_TAGVAR(LD, $1)="$LD"
2N/A## There is no encapsulation within the following macros, do not change
2N/A## the running order or otherwise move them around unless you know exactly
2N/A## what you are doing...
2N/AAC_LIBTOOL_POSTDEP_PREDEP($1)
2N/AAC_LIBTOOL_PROG_COMPILER_PIC($1)
2N/AAC_LIBTOOL_PROG_CC_C_O($1)
2N/AAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2N/AAC_LIBTOOL_PROG_LD_SHLIBS($1)
2N/AAC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2N/AAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2N/AAC_LIBTOOL_CONFIG($1)
2N/Awith_gnu_ldcxx=$with_gnu_ld
2N/Awith_gnu_ld=$lt_save_with_gnu_ld
2N/Alt_cv_path_LDCXX=$lt_cv_path_LD
2N/Alt_cv_path_LD=$lt_save_path_LD
2N/Alt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
2N/Alt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
2N/Adnl we can't use the lt_simple_compile_test_code here,
2N/Adnl because it contains code intended for an executable,
2N/Adnl not a library. It's possible we should let each
2N/Adnl tag define a new lt_????_link_test_code variable,
2N/Adnl but it's only used here...
2N/Aifelse([$1],[],[cat > conftest.$ac_ext <<EOF
2N/Avoid foo (void) { a = 0; }
2N/A],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
2N/A Foo (void) { a = 0; }
2N/A],[$1],[F77],[cat > conftest.$ac_ext <<EOF
2N/A],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
2N/A public void bar (void) {
2N/Adnl Parse the compiler output and extract the necessary
2N/Adnl objects, libraries and library flags.
2N/Aif AC_TRY_EVAL(ac_compile); then
2N/A # Parse the compiler output and extract the necessary
2N/A # objects, libraries and library flags.
2N/A # Sentinel used to keep track of whether or not we are before
2N/A # the conftest object file.
2N/A pre_test_object_deps_done=no
2N/A # The `*' in the case matches for architectures that use `case' in
2N/A # $output_verbose_cmd can trigger glob expansion during the loop
2N/A # eval without this substitution.
2N/A output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
2N/A for p in `eval $output_verbose_link_cmd`; do
2N/A # Some compilers place space between "-{L,R}" and the path.
2N/A || test $p = "-R"; then
2N/A if test "$pre_test_object_deps_done" = no; then
2N/A # Internal compiler library paths should come after those
2N/A # provided the user. The postdeps already come after the
2N/A # user supplied libs so there is no need to process them.
2N/A if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
2N/A _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
2N/A _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
2N/A # The "-l" case would never come before the object being
2N/A # linked, so don't bother handling this case.
2N/A if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
2N/A _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
2N/A _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
2N/A # This assumes that the test object file only shows up
2N/A # once in the compiler output.
2N/A if test "$p" = "conftest.$objext"; then
2N/A pre_test_object_deps_done=yes
2N/A if test "$pre_test_object_deps_done" = no; then
2N/A if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
2N/A _LT_AC_TAGVAR(predep_objects, $1)="$p"
2N/A _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
2N/A if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
2N/A _LT_AC_TAGVAR(postdep_objects, $1)="$p"
2N/A _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
2N/A *) ;; # Ignore the rest.
2N/A$rm -f confest.$objext
2N/A# PORTME: override above test on systems where it is broken
2N/A # Interix 3.5 installs completely hosed .la files for C++, so rather than
2N/A # hack all around it, let's just trust "g++" to DTRT.
2N/A _LT_AC_TAGVAR(predep_objects,$1)=
2N/A _LT_AC_TAGVAR(postdep_objects,$1)=
2N/A _LT_AC_TAGVAR(postdeps,$1)=
2N/A case $cc_basename in
2N/A # Adding this requires a known-good setup of shared libraries for
2N/A # Sun compiler versions before 5.6, else PIC objects from an old
2N/A # archive will be linked into the output, leading to subtle bugs.
2N/A _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
2N/Acase " $_LT_AC_TAGVAR(postdeps, $1) " in
2N/A*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
2N/AAC_LANG_PUSH(Fortran 77)
2N/A_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2N/A_LT_AC_TAGVAR(allow_undefined_flag, $1)=
2N/A_LT_AC_TAGVAR(always_export_symbols, $1)=no
2N/A_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2N/A_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2N/A_LT_AC_TAGVAR(hardcode_direct, $1)=no
2N/A_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2N/A_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2N/A_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2N/A_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2N/A_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2N/A_LT_AC_TAGVAR(module_cmds, $1)=
2N/A_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2N/A_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2N/A_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2N/A_LT_AC_TAGVAR(no_undefined_flag, $1)=
2N/A_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2N/A_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2N/A# Source file extension for f77 test sources.
2N/A# Object file extension for compiled f77 test sources.
2N/A_LT_AC_TAGVAR(objext, $1)=$objext
2N/A# Code to be used in simple compile tests
2N/Alt_simple_compile_test_code=" subroutine t\n return\n end\n"
2N/A# Code to be used in simple link tests
2N/Alt_simple_link_test_code=" program t\n end\n"
2N/A# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2N/A_LT_COMPILER_BOILERPLATE
2N/A_LT_LINKER_BOILERPLATE
2N/A# Allow CC to be a program name with arguments.
2N/A_LT_AC_TAGVAR(compiler, $1)=$CC
2N/A_LT_CC_BASENAME([$compiler])
2N/AAC_MSG_CHECKING([if libtool supports shared libraries])
2N/AAC_MSG_RESULT([$can_build_shared])
2N/AAC_MSG_CHECKING([whether to build shared libraries])
2N/Atest "$can_build_shared" = "no" && enable_shared=no
2N/A# On AIX, shared libraries and static libraries use the same namespace, and
2N/A# are all built from PIC.
2N/A test "$enable_shared" = yes && enable_static=no
2N/A if test -n "$RANLIB"; then
2N/A archive_cmds="$archive_cmds~\$RANLIB \$lib"
2N/A postinstall_cmds='$RANLIB $lib'
2N/A if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2N/A test "$enable_shared" = yes && enable_static=no
2N/AAC_MSG_RESULT([$enable_shared])
2N/AAC_MSG_CHECKING([whether to build static libraries])
2N/A# Make sure either enable_shared or enable_static is yes.
2N/Atest "$enable_shared" = yes || enable_static=yes
2N/AAC_MSG_RESULT([$enable_static])
2N/A_LT_AC_TAGVAR(GCC, $1)="$G77"
2N/A_LT_AC_TAGVAR(LD, $1)="$LD"
2N/AAC_LIBTOOL_PROG_COMPILER_PIC($1)
2N/AAC_LIBTOOL_PROG_CC_C_O($1)
2N/AAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2N/AAC_LIBTOOL_PROG_LD_SHLIBS($1)
2N/AAC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2N/AAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2N/AAC_LIBTOOL_CONFIG($1)
2N/A# Source file extension for Java test sources.
2N/A# Object file extension for compiled Java test sources.
2N/A_LT_AC_TAGVAR(objext, $1)=$objext
2N/A# Code to be used in simple compile tests
2N/Alt_simple_compile_test_code="class foo {}\n"
2N/A# Code to be used in simple link tests
2N/Alt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
2N/A# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2N/A_LT_COMPILER_BOILERPLATE
2N/A_LT_LINKER_BOILERPLATE
2N/A# Allow CC to be a program name with arguments.
2N/A_LT_AC_TAGVAR(compiler, $1)=$CC
2N/A_LT_CC_BASENAME([$compiler])
2N/A# GCJ did not exist at the time GCC didn't implicitly link libc in.
2N/A_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2N/A_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2N/A## There is no encapsulation within the following macros, do not change
2N/A## the running order or otherwise move them around unless you know exactly
2N/A## what you are doing...
2N/AAC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2N/AAC_LIBTOOL_PROG_COMPILER_PIC($1)
2N/AAC_LIBTOOL_PROG_CC_C_O($1)
2N/AAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2N/AAC_LIBTOOL_PROG_LD_SHLIBS($1)
2N/AAC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2N/AAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2N/AAC_LIBTOOL_CONFIG($1)
2N/A# Source file extension for RC test sources.
2N/A# Object file extension for compiled RC test sources.
2N/A_LT_AC_TAGVAR(objext, $1)=$objext
2N/A# Code to be used in simple compile tests
2N/Alt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
2N/A# Code to be used in simple link tests
2N/Alt_simple_link_test_code="$lt_simple_compile_test_code"
2N/A# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2N/A_LT_COMPILER_BOILERPLATE
2N/A_LT_LINKER_BOILERPLATE
2N/A# Allow CC to be a program name with arguments.
2N/A_LT_AC_TAGVAR(compiler, $1)=$CC
2N/A_LT_CC_BASENAME([$compiler])
2N/A_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2N/AAC_LIBTOOL_CONFIG($1)
2N/A# libtool distribution, otherwise you forgot to ship
ltmain.sh 2N/A# with your package, and you will get complaints that there are
2N/Aif test -f "$ltmain"; then
2N/A # See if we are running on zsh, and set the options which allow our commands through
2N/A # without removal of \ escapes.
2N/A if test -n "${ZSH_VERSION+set}" ; then
2N/A setopt NO_GLOB_SUBST
2N/A # Now quote all the things that may contain metacharacters while being
2N/A # careful not to overquote the AC_SUBSTed values. We take copies of the
2N/A # variables and quote the copies for generation of the libtool script.
2N/A for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
2N/A libname_spec library_names_spec soname_spec extract_expsyms_cmds \
2N/A old_striplib striplib file_magic_cmd finish_cmds finish_eval \
2N/A deplibs_check_method reload_flag reload_cmds need_locks \
2N/A lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
2N/A lt_cv_sys_global_symbol_to_c_name_address \
2N/A sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
2N/A old_postinstall_cmds old_postuninstall_cmds \
2N/A _LT_AC_TAGVAR(compiler, $1) \
2N/A _LT_AC_TAGVAR(CC, $1) \
2N/A _LT_AC_TAGVAR(LD, $1) \
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
2N/A _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
2N/A _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
2N/A _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
2N/A _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
2N/A _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
2N/A _LT_AC_TAGVAR(old_archive_cmds, $1) \
2N/A _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
2N/A _LT_AC_TAGVAR(predep_objects, $1) \
2N/A _LT_AC_TAGVAR(postdep_objects, $1) \
2N/A _LT_AC_TAGVAR(predeps, $1) \
2N/A _LT_AC_TAGVAR(postdeps, $1) \
2N/A _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
2N/A _LT_AC_TAGVAR(archive_cmds, $1) \
2N/A _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
2N/A _LT_AC_TAGVAR(postinstall_cmds, $1) \
2N/A _LT_AC_TAGVAR(postuninstall_cmds, $1) \
2N/A _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1) \
2N/A _LT_AC_TAGVAR(no_undefined_flag, $1) \
2N/A _LT_AC_TAGVAR(export_symbols_cmds, $1) \
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
2N/A _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
2N/A _LT_AC_TAGVAR(hardcode_automatic, $1) \
2N/A _LT_AC_TAGVAR(module_cmds, $1) \
2N/A _LT_AC_TAGVAR(module_expsym_cmds, $1) \
2N/A _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
2N/A _LT_AC_TAGVAR(exclude_expsyms, $1) \
2N/A _LT_AC_TAGVAR(include_expsyms, $1); do
2N/A _LT_AC_TAGVAR(old_archive_cmds, $1) | \
2N/A _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
2N/A _LT_AC_TAGVAR(archive_cmds, $1) | \
2N/A _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
2N/A _LT_AC_TAGVAR(module_cmds, $1) | \
2N/A _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
2N/A _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
2N/A _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
2N/A extract_expsyms_cmds | reload_cmds | finish_cmds | \
2N/A postinstall_cmds | postuninstall_cmds | \
2N/A old_postinstall_cmds | old_postuninstall_cmds | \
2N/A sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
2N/A # Double-quote double-evaled strings.
2N/A eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
2N/A eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
2N/A *'\[$]0 --fallback-echo"')
2N/A lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
2N/A [cfgfile="${ofile}T"
2N/A trap "$rm \"$cfgfile\"; exit 1" 1 2 15
2N/A AC_MSG_NOTICE([creating $ofile])],
2N/A cat <<__EOF__ >> "$cfgfile"
2N/A# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
2N/A# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
2N/A# NOTE: Changes made to this file will be lost: look at
ltmain.sh. 2N/A# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
2N/A# Free Software Foundation, Inc.
2N/A# This file is part of GNU Libtool:
2N/A# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
2N/A# This program is free software; you can redistribute it
and/or modify
2N/A# it under the terms of the GNU General Public License as published by
2N/A# the Free Software Foundation; either version 2 of the License, or
2N/A# (at your option) any later version.
2N/A# This program is distributed in the hope that it will be useful, but
2N/A# WITHOUT ANY WARRANTY; without even the implied warranty of
2N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2N/A# General Public License for more details.
2N/A# You should have received a copy of the GNU General Public License
2N/A# along with this program; if not, write to the Free Software
2N/A# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2N/A# As a special exception to the GNU General Public License, if you
2N/A# distribute this file as part of a program that contains a
2N/A# configuration script generated by Autoconf, you may include it under
2N/A# the same distribution terms that you use for the rest of that program.
2N/A# A sed program that does not truncate output.
2N/A# Sed that helps us avoid accidentally triggering echo(1) options like -n.
2N/AXsed="$SED -e 1s/^X//"
2N/A# The HP-UX ksh and POSIX shell print the target directory to stdout
2N/A# The names of the tagged configurations supported by this script.
2N/A# ### BEGIN LIBTOOL CONFIG],
2N/A[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
2N/A# Libtool was configured on host `(hostname || uname -n) 2>
/dev/null | sed 1q`:
2N/A# Shell to use when invoking shell scripts.
2N/A# Whether or not to build shared libraries.
2N/Abuild_libtool_libs=$enable_shared
2N/A# Whether or not to build static libraries.
2N/Abuild_old_libs=$enable_static
2N/A# Whether or not to add -lc for building shared libraries.
2N/Abuild_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
2N/A# Whether or not to disallow shared libs when runtime libs are static
2N/Aallow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
2N/A# Whether or not to optimize for fast installation.
2N/Afast_install=$enable_fast_install
2N/Ahost_alias=$host_alias
2N/Abuild_alias=$build_alias
2N/A# An echo program that does not interpret backslashes.
2N/AAR_FLAGS=$lt_AR_FLAGS
2N/A# LTCC compiler flags.
2N/ALTCFLAGS=$lt_LTCFLAGS
2N/A# A language-specific compiler.
2N/ACC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
2N/A# Is the compiler the GNU C compiler?
2N/Awith_gcc=$_LT_AC_TAGVAR(GCC, $1)
2N/A# The linker used to build libraries.
2N/ALD=$lt_[]_LT_AC_TAGVAR(LD, $1)
2N/A# Whether we need hard or soft links.
2N/A# A BSD-compatible nm program.
2N/A# A symbol stripping program
2N/A# Used to examine libraries when file_magic_cmd begins "file"
2N/A# Used on cygwin: DLL creation program.
2N/A# Used on cygwin: object dumper.
2N/A# Used on cygwin: assembler.
2N/A# The name of the directory that contains temporary libtool files.
2N/A# How to create reloadable object files.
2N/Areload_flag=$lt_reload_flag
2N/Areload_cmds=$lt_reload_cmds
2N/A# How to pass a linker flag through the compiler.
2N/Awl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
2N/A# Object file suffix (normally "o").
2N/A# Old archive suffix (normally "a").
2N/A# Shared library suffix (normally ".so").
2N/Ashrext_cmds='$shrext_cmds'
2N/A# Executable file suffix (normally "").
2N/A# Additional compiler flags for building library objects.
2N/Apic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
2N/A# What is the maximum length of a command?
2N/Amax_cmd_len=$lt_cv_sys_max_cmd_len
2N/A# Does compiler simultaneously support -c and -o options?
2N/Acompiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
2N/A# Must we lock files when doing compilation?
2N/Aneed_locks=$lt_need_locks
2N/A# Do we need the lib prefix for modules?
2N/Aneed_lib_prefix=$need_lib_prefix
2N/A# Do we need a version for libraries?
2N/Aneed_version=$need_version
2N/A# Whether dlopen is supported.
2N/Adlopen_support=$enable_dlopen
2N/A# Whether dlopen of programs is supported.
2N/Adlopen_self=$enable_dlopen_self
2N/A# Whether dlopen of statically linked programs is supported.
2N/Adlopen_self_static=$enable_dlopen_self_static
2N/A# Compiler flag to prevent dynamic linking.
2N/Alink_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
2N/A# Compiler flag to turn off builtin functions.
2N/Ano_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
2N/A# Compiler flag to allow reflexive dlopens.
2N/Aexport_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
2N/A# Compiler flag to generate shared objects directly from archives.
2N/Awhole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
2N/A# Compiler flag to generate thread-safe objects.
2N/Athread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
2N/A# Library versioning type.
2N/Aversion_type=$version_type
2N/A# Format of library name prefix.
2N/Alibname_spec=$lt_libname_spec
2N/A# List of archive names. First name is the real one, the rest are links.
2N/A# The last name is the one that the linker finds with -lNAME.
2N/Alibrary_names_spec=$lt_library_names_spec
2N/A# The coded name of the library, if different from the real name.
2N/Asoname_spec=$lt_soname_spec
2N/A# Commands used to build and install an old-style archive.
2N/Aold_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
2N/Aold_postinstall_cmds=$lt_old_postinstall_cmds
2N/Aold_postuninstall_cmds=$lt_old_postuninstall_cmds
2N/A# Create an old-style archive from a shared archive.
2N/Aold_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
2N/A# Create a temporary old-style archive to link instead of a shared archive.
2N/Aold_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
2N/A# Commands used to build and install a shared archive.
2N/Aarchive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
2N/Aarchive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
2N/Apostinstall_cmds=$lt_postinstall_cmds
2N/Apostuninstall_cmds=$lt_postuninstall_cmds
2N/A# Commands used to build a loadable module (assumed same as above if empty)
2N/Amodule_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
2N/Amodule_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
2N/A# Commands to strip libraries.
2N/Aold_striplib=$lt_old_striplib
2N/Astriplib=$lt_striplib
2N/A# Dependencies to place before the objects being linked to create a
2N/Apredep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
2N/A# Dependencies to place after the objects being linked to create a
2N/Apostdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
2N/A# Dependencies to place before the objects being linked to create a
2N/Apredeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
2N/A# Dependencies to place after the objects being linked to create a
2N/Apostdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
2N/A# The library search path used internally by the compiler when linking
2N/Acompiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
2N/A# Method to check whether dependent libraries are shared objects.
2N/Adeplibs_check_method=$lt_deplibs_check_method
2N/A# Command to use when deplibs_check_method == file_magic.
2N/Afile_magic_cmd=$lt_file_magic_cmd
2N/A# Flag that allows shared libraries with undefined symbols to be built.
2N/Aallow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
2N/A# Flag that forces no undefined symbols.
2N/Ano_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
2N/A# Commands used to finish a libtool library installation in a directory.
2N/Afinish_cmds=$lt_finish_cmds
2N/A# Same as above, but a single script fragment to be evaled but not shown.
2N/Afinish_eval=$lt_finish_eval
2N/A# Take the output of nm and produce a listing of raw symbols and C names.
2N/Aglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
2N/A# Transform the output of nm in a proper C declaration
2N/Aglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
2N/A# Transform the output of nm in a C name address pair
2N/Aglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
2N/A# This is the shared library runtime path variable.
2N/Arunpath_var=$runpath_var
2N/A# This is the shared library path variable.
2N/Ashlibpath_var=$shlibpath_var
2N/A# Is shlibpath searched before the hard-coded library search path?
2N/Ashlibpath_overrides_runpath=$shlibpath_overrides_runpath
2N/A# How to hardcode a shared library path into an executable.
2N/Ahardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
2N/A# Whether we should hardcode library paths into libraries.
2N/Ahardcode_into_libs=$hardcode_into_libs
2N/A# Flag to hardcode \$libdir into a binary during linking.
2N/A# This must work even if \$libdir does not exist.
2N/Ahardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
2N/A# If ld is used when linking, flag to hardcode \$libdir into
2N/A# a binary during linking. This must work even if \$libdir does
2N/Ahardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
2N/A# Whether we need a single -rpath flag with a separated argument.
2N/Ahardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
2N/A# Set to yes if using
DIR/libNAME${shared_ext} during linking hardcodes DIR into the
2N/Ahardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
2N/A# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
2N/Ahardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
2N/A# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
2N/A# the resulting binary.
2N/Ahardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
2N/A# Set to yes if building a shared library automatically hardcodes DIR into the library
2N/A# and all subsequent libraries and executables linked against it.
2N/Ahardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
2N/A# Variables whose values should be saved in libtool wrapper scripts and
2N/A# restored at relink time.
2N/Avariables_saved_for_relink="$variables_saved_for_relink"
2N/A# Whether libtool must link a program against all its dependency libraries.
2N/Alink_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
2N/A# Compile-time system search path for libraries
2N/Asys_lib_search_path_spec=$lt_sys_lib_search_path_spec
2N/A# Run-time system search path for libraries
2N/Asys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
2N/A# Fix the shell variable \$srcfile for the compiler.
2N/Afix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
2N/A# Set to yes if exported symbols are required.
2N/Aalways_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
2N/A# The commands to list exported symbols.
2N/Aexport_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
2N/A# The commands to extract the exported symbol list from a shared archive.
2N/Aextract_expsyms_cmds=$lt_extract_expsyms_cmds
2N/A# Symbols that should not be listed in the preloaded symbols.
2N/Aexclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
2N/A# Symbols that must always be exported.
2N/Ainclude_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
2N/A[# ### END LIBTOOL CONFIG],
2N/A[# ### END LIBTOOL TAG CONFIG: $tagname])
2N/A cat <<\EOF >> "$cfgfile"
2N/A# AIX sometimes has problems with the GCC collect2 program. For some
2N/A# reason, if we set the COLLECT_NAMES environment variable, the problems
2N/A# vanish in a puff of smoke.
2N/Aif test "X${COLLECT_NAMES+set}" != Xset; then
2N/A export COLLECT_NAMES
2N/A # We use sed instead of cat because bash on DJGPP gets confused if
2N/A # if finds mixed
CR/LF and LF-only lines. Since sed operates in
2N/A # text mode, it properly converts lines to
CR/LF. This bash problem
2N/A # is reportedly fixed, but why not run on old versions too?
2N/A sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
2N/A mv -f "$cfgfile" "$ofile" || \
2N/A (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
2N/A # If there is no Makefile yet, we rely on a make rule to execute
2N/A # libtool script then.
2N/A ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
2N/A if test -f "$ltmain_in"; then
2N/A test -f Makefile && make "$ltmain"
2N/A_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2N/Aif test "$GCC" = yes; then
2N/A _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2N/A AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
2N/A lt_cv_prog_compiler_rtti_exceptions,
2N/A [-fno-rtti -fno-exceptions], [],
2N/A [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
2N/AAC_REQUIRE([AC_PROG_NM])
2N/AAC_REQUIRE([AC_OBJEXT])
2N/A# Check for command to grab the raw symbol name followed by C symbol from nm.
2N/AAC_MSG_CHECKING([command to parse $NM output from $compiler object])
2N/AAC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
2N/A# These are sane defaults that work on at least a few old systems.
2N/A# [They come from Ultrix. What could be older than Ultrix?!! ;)]
2N/A# Character class describing NM global symbol codes.
2N/Asymcode='[[BCDEGRST]]'
2N/A# Regexp to match symbols that can be accessed directly from C.
2N/Asympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
2N/A# Transform an extracted symbol line into a proper C declaration
2N/Alt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
2N/A# Transform an extracted symbol line into symbol name and symbol address
2N/Alt_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'"
2N/A# Define system-specific variables.
2N/Acygwin* | mingw* | pw32*)
2N/A symcode='[[ABCDGISTW]]'
2N/Ahpux*) # Its linker distinguishes data from code symbols
2N/A if test "$host_cpu" = ia64; then
2N/A symcode='[[ABCDEGRST]]'
2N/A lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2N/A 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'"
2N/A if test "$host_cpu" = ia64; then
2N/A symcode='[[ABCDGIRSTW]]'
2N/A lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2N/A 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'"
2N/A symcode='[[BCDEGRST]]'
2N/A symcode='[[BCDEGQRST]]'
2N/Asysv5* | sco5v6* | unixware* | OpenUNIX*)
2N/A symcode='[[DFNSTU]]'
2N/A# Handle CRLF in mingw tool chain
2N/A opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2N/A# If we're using GNU nm, then use its standard symbol codes.
2N/Acase `$NM -V 2>&1` in
2N/A*GNU* | *'with BFD'*)
2N/A symcode='[[ABCDGIRSTW]]' ;;
2N/A# Try without a prefix undercore, then with it.
2N/Afor ac_symprfx in "" "_"; do
2N/A # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
2N/A symxfrm="\\1 $ac_symprfx\\2 \\2"
2N/A # Write the raw and C identifiers.
2N/A lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
2N/A # Check to see that the pipe works correctly.
2N/A cat > conftest.$ac_ext <<EOF
2N/Avoid nm_test_func(){}
2N/Aint main(){nm_test_var='a';nm_test_func();return(0);}
2N/A if AC_TRY_EVAL(ac_compile); then
2N/A # Now try to grab the symbols.
2N/A if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
2N/A # Try sorting and uniquifying the output.
2N/A if sort "$nlist" | uniq > "$nlist"T; then
2N/A mv -f "$nlist"T "$nlist"
2N/A # Make sure that we snagged all the symbols we need.
2N/A cat <<EOF > conftest.$ac_ext
2N/A # Now generate the symbol file.
2N/A eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
2N/A cat <<EOF >> conftest.$ac_ext
2N/A#if defined (__STDC__) && __STDC__
2N/A# define lt_ptr_t void *
2N/A# define lt_ptr_t char *
2N/A/* The mapping between symbol names and symbols. */
2N/Alt_preloaded_symbols[[]] =
2N/A $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
2N/A cat <<\EOF >> conftest.$ac_ext
2N/A # Now try linking the two files.
2N/A mv conftest.$ac_objext conftstm.$ac_objext
2N/A lt_save_LIBS="$LIBS"
2N/A lt_save_CFLAGS="$CFLAGS"
2N/A LIBS="conftstm.$ac_objext"
2N/A CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
2N/A if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
2N/A LIBS="$lt_save_LIBS"
2N/A CFLAGS="$lt_save_CFLAGS"
2N/A echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
2N/A echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
2N/A echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
2N/A echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
2N/A cat conftest.$ac_ext >&5
2N/A rm -f conftest* conftst*
2N/A # Do not use the global_symbol_pipe unless it works.
2N/A if test "$pipe_works" = yes; then
2N/A lt_cv_sys_global_symbol_pipe=
2N/Aif test -z "$lt_cv_sys_global_symbol_pipe"; then
2N/A lt_cv_sys_global_symbol_to_cdecl=
2N/Aif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
2N/A AC_MSG_RESULT(failed)
2N/A_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
2N/A_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
2N/AAC_MSG_CHECKING([for $compiler option to produce PIC])
2N/A # C++ specific cases for pic, static, wl, etc.
2N/A if test "$GXX" = yes; then
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
2N/A # All AIX code is PIC.
2N/A if test "$host_cpu" = ia64; then
2N/A # AIX 5 now supports IA64 processor
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2N/A # FIXME: we need at least 68020 code to build shared libraries, but
2N/A # adding the `-m68020' flag to GCC prevents building anything better,
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
2N/A beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2N/A # PIC is the default for these OSes.
2N/A mingw* | os2* | pw32*)
2N/A # This hack is so that the source file can tell whether it is being
2N/A # built for inclusion in a dll (and should export symbols for example).
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
2N/A darwin* | rhapsody*)
2N/A # PIC is the default on this platform
2N/A # Common symbols not allowed in MH_DYLIB files
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
2N/A # DJGPP does not support shared libraries at all
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
2N/A # Interix
3.x gcc -fpic/-fPIC options generate broken code.
2N/A # Instead, we relocate shared libraries at runtime.
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
2N/A # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
2N/A # All AIX code is PIC.
2N/A if test "$host_cpu" = ia64; then
2N/A # AIX 5 now supports IA64 processor
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2N/A case $cc_basename in
2N/A # Green Hills C++ Compiler
2N/A # PIC is the default on this platform
2N/A # Common symbols not allowed in MH_DYLIB files
2N/A case $cc_basename in
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2N/A case $cc_basename in
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2N/A # Green Hills C++ Compiler
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
2N/A freebsd* | kfreebsd*-gnu | dragonfly*)
2N/A # FreeBSD uses GNU C++
2N/A hpux9* | hpux10* | hpux11*)
2N/A case $cc_basename in
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
2N/A if test "$host_cpu" != ia64; then
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
2N/A # This is c89, which is MS Visual C++ (no shared libs)
2N/A # Anyone wants to do a port?
2N/A irix5* | irix6* | nonstopux*)
2N/A case $cc_basename in
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
2N/A # CC pic flag -KPIC is the default.
2N/A case $cc_basename in
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
2N/A # Portland Group C++ compiler.
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2N/A # Make sure the PIC flag is empty. It appears that all Alpha
2N/A # Linux and Compaq Tru64 Unix objects are PIC.
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
2N/A case $cc_basename in
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
2N/A osf3* | osf4* | osf5*)
2N/A case $cc_basename in
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
2N/A # Rational C++ 2.4.1
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2N/A # Make sure the PIC flag is empty. It appears that all Alpha
2N/A # Linux and Compaq Tru64 Unix objects are PIC.
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
2N/A case $cc_basename in
2N/A # Sun C++ 4.2,
5.x and Centerline C++
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
2N/A # Green Hills C++ Compiler
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
2N/A case $cc_basename in
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
2N/A case $cc_basename in
2N/A # NonStop-UX NCC 3.20
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2N/A sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
2N/A case $cc_basename in
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
2N/A if test "$GCC" = yes; then
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
2N/A # All AIX code is PIC.
2N/A if test "$host_cpu" = ia64; then
2N/A # AIX 5 now supports IA64 processor
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2N/A # FIXME: we need at least 68020 code to build shared libraries, but
2N/A # adding the `-m68020' flag to GCC prevents building anything better,
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
2N/A beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2N/A # PIC is the default for these OSes.
2N/A mingw* | pw32* | os2*)
2N/A # This hack is so that the source file can tell whether it is being
2N/A # built for inclusion in a dll (and should export symbols for example).
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
2N/A darwin* | rhapsody*)
2N/A # PIC is the default on this platform
2N/A # Common symbols not allowed in MH_DYLIB files
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
2N/A # Interix
3.x gcc -fpic/-fPIC options generate broken code.
2N/A # Instead, we relocate shared libraries at runtime.
2N/A # Just because we use GCC doesn't mean we suddenly get shared libraries
2N/A # on systems that don't support them.
2N/A _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
2N/A # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
2N/A # PORTME Check for flag to pass linker flags through the system compiler.
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2N/A if test "$host_cpu" = ia64; then
2N/A # AIX 5 now supports IA64 processor
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2N/A # PIC is the default on this platform
2N/A # Common symbols not allowed in MH_DYLIB files
2N/A case $cc_basename in
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2N/A mingw* | pw32* | os2*)
2N/A # This hack is so that the source file can tell whether it is being
2N/A # built for inclusion in a dll (and should export symbols for example).
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
2N/A hpux9* | hpux10* | hpux11*)
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2N/A # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
2N/A # Is there a better lt_prog_compiler_static that works with the bundled CC?
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
2N/A irix5* | irix6* | nonstopux*)
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2N/A # PIC (with -KPIC) is the default.
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2N/A case $cc_basename in
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
2N/A pgcc* | pgf77* | pgf90* | pgf95*)
2N/A # Portland Group compilers (*not* the Pentium gcc compiler,
2N/A # which looks to be a dead project)
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2N/A # All Alpha code is PIC.
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
2N/A osf3* | osf4* | osf5*)
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2N/A # All OSF/1 code is PIC.
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2N/A case $cc_basename in
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2N/A sysv4 | sysv4.2uw2* | sysv4.3*)
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2N/A sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
2N/A _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
2N/AAC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
2N/A# Check to make sure the PIC flag actually works.
2N/Aif test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
2N/A AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
2N/A [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
2N/A [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
2N/A *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
2N/A [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
2N/A _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
2N/A # For platforms which do not support PIC, -DPIC is meaningless:
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
2N/A _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
2N/A# Check to make sure the static flag actually works.
2N/Awl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
2N/AAC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
2N/A _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2N/A $lt_tmp_static_flag,
2N/A [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2N/Am4trace:
/usr/share/aclocal/libtool.m4:5342: -1- AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
2N/A _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
2N/A # If we're using GNU nm, then we don't want the "-C" option.
2N/A # -C means demangle to AIX nm, but means don't demangle with GNU nm
2N/A _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'
2N/A _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'
2N/A _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
2N/A _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'
2N/A _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)=
2N/A _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2N/A _LT_AC_TAGVAR(archive_cmds, $1)=
2N/A _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2N/A _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
2N/A _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
2N/A _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2N/A _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2N/A _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2N/A _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=no
2N/A _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2N/A _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2N/A _LT_AC_TAGVAR(hardcode_automatic, $1)=no
2N/A _LT_AC_TAGVAR(module_cmds, $1)=
2N/A _LT_AC_TAGVAR(module_expsym_cmds, $1)=
2N/A _LT_AC_TAGVAR(always_export_symbols, $1)=no
2N/A _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
2N/A # include_expsyms should be a list of space-separated symbols to be *always*
2N/A # included in the symbol list
2N/A _LT_AC_TAGVAR(include_expsyms, $1)=
2N/A # exclude_expsyms can be an extended regexp of symbols to exclude
2N/A # it will be wrapped by ` (' and `)$', so one must not match beginning or
2N/A # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
2N/A # as well as any symbol that contains `d'.
2N/A _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
2N/A # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most
a.out 2N/A # platforms (ab)use it in PIC code, but their linkers get confused if
2N/A # the symbol is explicitly referenced. Since portable code cannot
2N/A # rely on this symbol name, it's probably fine to never include it in
2N/A # preloaded symbol tables.
2N/A extract_expsyms_cmds=
2N/A # Just being paranoid about ensuring that cc_basename is set.
2N/A _LT_CC_BASENAME([$compiler])
2N/A cygwin* | mingw* | pw32*)
2N/A # FIXME: the MSVC++ port hasn't been tested in a loooong time
2N/A # When not using gcc, we currently assume that we are using
2N/A # Microsoft Visual C++.
2N/A if test "$GCC" != yes; then
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=yes
2N/A if test "$with_gnu_ld" = yes; then
2N/A # If archive_cmds runs LD, not CC, wlarc should be empty
2N/A # Set some defaults for GNU ld with shared library support. These
2N/A # are reset later if shared libraries are not supported. Putting them
2N/A # here allows them to be overridden if necessary.
2N/A runpath_var=LD_RUN_PATH
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2N/A _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2N/A # ancient GNU ld didn't support --whole-archive et. al.
2N/A if $LD --help 2>&1 | grep 'no-whole-archive' >
/dev/null; then
2N/A _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2N/A _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2N/A supports_anon_versioning=no
2N/A *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
2N/A *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
2N/A *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
2N/A *\ 2.11.*) ;; # other 2.11 versions
2N/A *) supports_anon_versioning=yes ;;
2N/A # See if GNU ld supports shared libraries.
2N/A aix3* | aix4* | aix5*)
2N/A if test "$host_cpu" != ia64; then
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A*** Warning: the GNU linker, at least up to release 2.9.1, is reported
2N/A*** to be unable to reliably create shared libraries on AIX.
2N/A*** Therefore, libtool is disabling shared libraries support. If you
2N/A*** really care for shared libraries, you may want to modify your PATH
2N/A*** so that a non-GNU linker is found, and then restart.
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2N/A _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2N/A # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
2N/A # that the semantics of dynamic libraries on AmigaOS, at least up
2N/A # to version 4, is to share data among multiple programs linked
2N/A # with the same dynamic library. Since this doesn't match the
2N/A # behavior of shared libraries on other platforms, we can't use
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A if $LD --help 2>&1 | grep ': supported targets:.* elf' >
/dev/null; then
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2N/A # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
2N/A # support --undefined. This deserves some investigation. FIXME
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A cygwin* | mingw* | pw32*)
2N/A # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
2N/A # as there is no search path for DLLs.
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2N/A _LT_AC_TAGVAR(always_export_symbols, $1)=no
2N/A _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2N/A _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'
2N/A _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'
2N/A # If the export-symbols file already is a .def file (1st line
2N/A # is EXPORTS), use it as is; otherwise, prepend...
2N/A _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
2N/A $CC -shared $output_objdir/$
soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=no
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
2N/A _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2N/A # Hack: On Interix
3.x, we cannot compile PIC because of a broken gcc.
2N/A # Instead, shared libraries are loaded at an image base (0x10000000 by
2N/A # default) and relocated if they conflict, which is a slow very memory
2N/A # consuming and fragmenting process. To avoid this, we pick a random,
2N/A # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
2N/A # time. Moving up from 0x10000000 also allows more sbrk(2) space.
2N/A _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'
2N/A _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'
2N/A if $LD --help 2>&1 | grep ': supported targets:.* elf' >
/dev/null; then
2N/A case $cc_basename,$host_cpu in
2N/A pgcc*) # Portland Group C compiler
2N/A _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'
2N/A tmp_addflag=' $pic_flag'
2N/A pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
2N/A _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'
2N/A tmp_addflag=' $pic_flag -Mnomain' ;;
2N/A ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
2N/A tmp_addflag=' -i_dynamic' ;;
2N/A efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
2N/A tmp_addflag=' -i_dynamic -nofor_main' ;;
2N/A ifc* | ifort*) # Intel Fortran compiler
2N/A tmp_addflag=' -nofor_main' ;;
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2N/A if test $supports_anon_versioning = yes; then
2N/A _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$
libname.ver~
2N/A cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$
libname.ver~
2N/A $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$
libname.ver -o $lib'
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2N/A _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'
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A*** Warning: The releases 2.8.* of the GNU linker cannot reliably
2N/A*** create shared libraries on Solaris systems. Therefore, libtool
2N/A*** is disabling shared libraries support. We urge you to upgrade GNU
2N/A*** binutils to release 2.9.1 or newer. Another option is to modify
2N/A*** your PATH or compiler configuration so that the native linker is
2N/A*** used, and then restart.
2N/A elif $LD --help 2>&1 | grep ': supported targets:.* elf' >
/dev/null; then
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2N/A _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'
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
2N/A case `$LD -v 2>&1` in
2N/A *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
2N/A*** reliably create shared libraries on SCO systems. Therefore, libtool
2N/A*** is disabling shared libraries support. We urge you to upgrade GNU
2N/A*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
2N/A*** your PATH or compiler configuration so that the native linker is
2N/A*** used, and then restart.
2N/A if $LD --help 2>&1 | grep ': supported targets:.* elf' >
/dev/null; then
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
2N/A _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'
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2N/A if $LD --help 2>&1 | grep ': supported targets:.* elf' >
/dev/null; then
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2N/A _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'
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2N/A _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2N/A _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2N/A # PORTME fill in a description of your system's linker (not GNU ld)
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2N/A _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2N/A _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'
2N/A # Note: this linker hardcodes the directories in LIBPATH if there
2N/A # are no directories specified by -L.
2N/A _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2N/A if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
2N/A # Neither direct hardcoding nor static linking is supported with a
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
2N/A if test "$host_cpu" = ia64; then
2N/A # On IA64, the linker does run time linking by default, so we don't
2N/A # have to do anything special.
2N/A aix_use_runtimelinking=no
2N/A exp_sym_flag='-Bexport'
2N/A # If we're using GNU nm, then we don't want the "-C" option.
2N/A # -C means demangle to AIX nm, but means don't demangle with GNU nm
2N/A _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'
2N/A _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'
2N/A aix_use_runtimelinking=no
2N/A # Test if we are trying to use run time linking or normal
2N/A # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2N/A # need to do runtime linking.
2N/A case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
2N/A for ld_flag in $LDFLAGS; do
2N/A if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
2N/A aix_use_runtimelinking=yes
2N/A exp_sym_flag='-bexport'
2N/A no_entry_flag='-bnoentry'
2N/A # When large executables or shared objects are built, AIX ld can
2N/A # have problems creating the table of contents. If linking a library
2N/A # or program results in "error TOC overflow" add -mminimal-toc to
2N/A # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
2N/A _LT_AC_TAGVAR(archive_cmds, $1)=''
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2N/A _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2N/A _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2N/A if test "$GCC" = yes; then
2N/A case $host_os in aix4.[[012]]|aix4.[[012]].*)
2N/A # We only want to do this on AIX 4.2 and lower, the check
2N/A # below for broken collect2 doesn't work under 4.3+
2N/A collect2name=`${CC} -print-prog-name=collect2`
2N/A if test -f "$collect2name" && \
2N/A # We have reworked collect2
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2N/A # We have old collect2
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
2N/A # It fails to find uninstalled libraries when the uninstalled
2N/A # path is not listed in the libpath. Setting hardcode_minus_L
2N/A # to unsupported forces relinking
2N/A _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2N/A _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2N/A shared_flag='-shared'
2N/A if test "$aix_use_runtimelinking" = yes; then
2N/A shared_flag="$shared_flag "'${wl}-G'
2N/A if test "$host_cpu" = ia64; then
2N/A # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
2N/A # chokes on -Wl,-G. The following line is correct:
2N/A if test "$aix_use_runtimelinking" = yes; then
2N/A shared_flag='${wl}-G'
2N/A shared_flag='${wl}-bM:SRE'
2N/A # It seems that -bexpall does not export symbols beginning with
2N/A # underscore (_), so it is better to generate a list of symbols to export.
2N/A _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2N/A if test "$aix_use_runtimelinking" = yes; then
2N/A # Warning - without using the other runtime loading flags (-brtl),
2N/A # -berok will link without error, but may produce a broken library.
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
2N/A # Determine the default libpath from the value encoded in an empty executable.
2N/A _LT_AC_SYS_LIBPATH_AIX
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2N/A _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"
2N/A if test "$host_cpu" = ia64; then
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:
/usr/lib:/lib'
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2N/A _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"
2N/A # Determine the default libpath from the value encoded in an empty executable.
2N/A _LT_AC_SYS_LIBPATH_AIX
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2N/A # Warning - without using the other run time loading flags,
2N/A # -berok will link without error, but may produce a broken library.
2N/A _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2N/A # Exported symbols can be pulled into shared objects from archives
2N/A _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2N/A _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2N/A # This is similar to how AIX traditionally builds its shared libraries.
2N/A _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'
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2N/A _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2N/A # see comment about different semantics on the GNU ld section
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
2N/A cygwin* | mingw* | pw32*)
2N/A # When not using gcc, we currently assume that we are using
2N/A # Microsoft Visual C++.
2N/A # hardcode_libdir_flag_spec is actually meaningless, as there is
2N/A # no search path for DLLs.
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2N/A # Tell ltmain to make .lib files, not .a files.
2N/A # Tell ltmain to make .dll files, not .so files.
2N/A # FIXME: Setting linknames here is a bad hack.
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
2N/A # The linker will automatically build a .lib file if we build a DLL.
2N/A _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
2N/A # FIXME: Should let the user specify the lib program.
2N/A _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
2N/A _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
2N/A _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2N/A darwin* | rhapsody*)
2N/A rhapsody* | darwin1.[[012]])
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
2N/A if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
2N/A case ${MACOSX_DEPLOYMENT_TARGET} in
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
2N/A _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=no
2N/A _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2N/A _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
2N/A _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2N/A if test "$GCC" = yes ; then
2N/A output_verbose_link_cmd='echo'
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2N/A _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2N/A # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
2N/A _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}'
2N/A _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}'
2N/A case $cc_basename in
2N/A output_verbose_link_cmd='echo'
2N/A _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'
2N/A _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2N/A # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
2N/A _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}'
2N/A _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}'
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/A # FreeBSD 2.2.[012] allows us to include c++
rt0.o to get C++ constructor
2N/A # support. Future versions do this automatically, but an explicit c++
rt0.o 2N/A # does not break anything, and helps significantly (at the cost of a little
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags
/usr/lib/c++
rt0.o'
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2N/A # Unfortunately, older versions of FreeBSD 2 do not have this feature.
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2N/A _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2N/A # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
2N/A freebsd* | kfreebsd*-gnu | dragonfly*)
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2N/A if test "$GCC" = yes; then
2N/A _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'
2N/A _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'
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
2N/A _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2N/A # hardcode_minus_L: Not really in the search PATH,
2N/A # but as the default location of the library.
2N/A _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2N/A _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2N/A if test "$GCC" = yes -a "$with_gnu_ld" = no; then
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
2N/A if test "$with_gnu_ld" = no; then
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
2N/A _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2N/A _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2N/A # hardcode_minus_L: Not really in the search PATH,
2N/A # but as the default location of the library.
2N/A _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2N/A if test "$GCC" = yes -a "$with_gnu_ld" = no; then
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
2N/A if test "$with_gnu_ld" = no; then
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
2N/A _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=no
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2N/A _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2N/A # hardcode_minus_L: Not really in the search PATH,
2N/A # but as the default location of the library.
2N/A _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2N/A irix5* | irix6* | nonstopux*)
2N/A if test "$GCC" = yes; then
2N/A _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'
2N/A _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'
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2N/A _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2N/A _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' #
a.out 2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2N/A _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2N/A if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
2N/A _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
2N/A _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
2N/A openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2N/A _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2N/A _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'
2N/A if test "$GCC" = yes; then
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
2N/A _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'
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
2N/A _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'
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2N/A _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2N/A osf4* | osf5*) # as osf3* with the addition of -msym flag
2N/A if test "$GCC" = yes; then
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
2N/A _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'
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
2N/A _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'
2N/A _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~
2N/A $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'
2N/A # Both c and cxx compiler support -rpath directly
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
2N/A _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
2N/A _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
2N/A if test "$GCC" = yes; then
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2N/A _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $
lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $
lib.exp~$echo "local: *; };" >> $
lib.exp~
2N/A $CC -shared ${wl}-M ${wl}$
lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $
lib.exp'
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
2N/A _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $
lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $
lib.exp~$echo "local: *; };" >> $
lib.exp~
2N/A $LD -G${allow_undefined_flag} -M $
lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $
lib.exp'
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2N/A solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
2N/A # The compiler driver will combine linker options so we
2N/A # cannot just pass the convience library names through
2N/A # without $wl, iff we do not link with $LD.
2N/A # Luckily, gcc supports the same syntax we need for Sun Studio.
2N/A # Supported since Solaris 2.6 (maybe 2.5.1?)
2N/A _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
2N/A _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' ;;
2N/A _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2N/A if test "x$host_vendor" = xsequent; then
2N/A # Use $CC to link under sequent, because it throws in some extra .o
2N/A # files that make .init and .fini sections work.
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2N/A _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2N/A case $host_vendor in
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
2N/A ## LD is ld it makes a PLAMLIB
2N/A ## CC just makes a GrossModule.
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
2N/A _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=no
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2N/A _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
2N/A runpath_var='LD_RUN_PATH'
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2N/A _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2N/A runpath_var=LD_RUN_PATH
2N/A hardcode_runpath_var=yes
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=yes
2N/A sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
2N/A _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
2N/A _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2N/A runpath_var='LD_RUN_PATH'
2N/A if test "$GCC" = yes; then
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2N/A _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2N/A _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
2N/A sysv5* | sco3.2v5* | sco5v6*)
2N/A # Note: We can NOT use -z defs as we might desire, because we do not
2N/A # link with -lc, and that would cause any symbols used from libc to
2N/A # always be unresolved, which means just about no library would
2N/A # ever link correctly. If we're not using GNU ld we use -z text
2N/A # though, which does catch some bad symbols but isn't as heavy-handed
2N/A _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
2N/A _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
2N/A _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2N/A _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2N/A _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
2N/A runpath_var='LD_RUN_PATH'
2N/A if test "$GCC" = yes; then
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
2N/A _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'
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
2N/A _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'
2N/A _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2N/A _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2N/A _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
2N/A _LT_AC_TAGVAR(ld_shlibs, $1)=no
2N/AAC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
2N/Atest "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
2N/A# Do we need to explicitly link libc?
2N/Acase "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
2N/A # Assume -lc should be added
2N/A _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2N/A if test "$enable_shared" = yes && test "$GCC" = yes; then
2N/A case $_LT_AC_TAGVAR(archive_cmds, $1) in
2N/A # FIXME: we may have to deal with multi-command sequences.
2N/A # Test whether the compiler implicitly links with -lc since on some
2N/A # systems, -lgcc has to come before -lc. If gcc already passes -lc
2N/A # to ld, don't add -lc before -lgcc.
2N/A AC_MSG_CHECKING([whether -lc should be explicitly linked in])
2N/A printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2N/A libobjs=conftest.$ac_objext
2N/A wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
2N/A pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
2N/A lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)=
2N/A if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>
/dev/null 2\>\&1)
2N/A _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2N/A _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2N/A _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
2N/A AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
2N/A# #define WIN32_LEAN_AND_MEAN
2N/A# #undef WIN32_LEAN_AND_MEAN
2N/A# # ifdef __CYGWIN32__
2N/A# # define __CYGWIN__ __CYGWIN32__
2N/A# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
2N/A# DECLARE_CYGWIN_DLL( DllMain );
2N/A# HINSTANCE __hDllInstance_base;
2N/A# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
2N/A# __hDllInstance_base = hInst;
2N/A test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
2N/AAC_CACHE_VAL(lt_cv_path_SED,
2N/A[# Loop through the user's path and test for sed and gsed.
2N/A# Then use that list of sed's as ones to test for truncation.
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/A test -z "$as_dir" && as_dir=.
2N/A for lt_ac_prog in sed gsed; do
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2N/A lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2N/A test ! -f $lt_ac_sed && continue
2N/A # Check for GNU sed and select it if it is found.
2N/A lt_cv_path_SED=$lt_ac_sed
2N/A # 10000 chars as input seems more than enough
2N/A test $lt_ac_count -gt 10 && break
2N/A lt_ac_count=`expr $lt_ac_count + 1`
2N/A if test $lt_ac_count -gt $lt_ac_max; then
2N/A lt_ac_max=$lt_ac_count
2N/A lt_cv_path_SED=$lt_ac_sed
2N/AAC_MSG_RESULT([$SED])
2N/Adnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
2N/Adnl require some minimum version. Point them to the right macro.
2N/Am4_if([$1], [1.10], [],
2N/A [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
2N/A_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
2N/AAC_REQUIRE([AC_PROG_CC])
2N/Atest "${CCAS+set}" = set || CCAS=$CC
2N/Atest "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
2N/AAC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)])
2N/AAC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
2N/A_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
2N/A# expand $ac_aux_dir to an absolute path
2N/Aam_aux_dir=`cd $ac_aux_dir && pwd`
2N/A ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
2N/A [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
2N/AAC_SUBST([$1_TRUE])dnl
2N/AAC_SUBST([$1_FALSE])dnl
2N/A_AM_SUBST_NOTMAKE([$1_TRUE])dnl
2N/A_AM_SUBST_NOTMAKE([$1_FALSE])dnl
2N/AAC_CONFIG_COMMANDS_PRE(
2N/A[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
2N/A AC_MSG_ERROR([[conditional "$1" was never defined.
2N/AUsually this means the macro was only invoked conditionally.]])
2N/AAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
2N/AAC_REQUIRE([AM_MAKE_INCLUDE])dnl
2N/AAC_REQUIRE([AM_DEP_TRACK])dnl
2N/Aifelse([$1], CC, [depcc="$CC" am_compiler_list=],
2N/A [$1], CXX, [depcc="$CXX" am_compiler_list=],
2N/A [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
2N/A [$1], UPC, [depcc="$UPC" am_compiler_list=],
2N/A [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
2N/A [depcc="$$1" am_compiler_list=])
2N/AAC_CACHE_CHECK([dependency style of $depcc],
2N/A [am_cv_$1_dependencies_compiler_type],
2N/A[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2N/A # We make a subdir and do the tests there. Otherwise we can end up
2N/A # making bogus files that we don't know about and never remove. For
2N/A # instance it was reported that on HP-UX the gcc test will end up
2N/A # making a dummy file named `D' -- because `-MD' means `put the output
2N/A # Copy depcomp to subdir because otherwise we won't find it if we're
2N/A # using a relative directory.
2N/A # We will build objects and dependencies in a subdirectory because
2N/A # it helps to detect inapplicable dependency modes. For instance
2N/A # both Tru64's cc and ICC support -MD to output dependencies as a
2N/A # side effect of compilation, but ICC will put the dependencies in
2N/A # the current directory while Tru64 will put them in the object
2N/A am_cv_$1_dependencies_compiler_type=none
2N/A if test "$am_compiler_list" = ""; then
2N/A am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
2N/A for depmode in $am_compiler_list; do
2N/A # Setup a source with many dependencies, because some compilers
2N/A # like to wrap large dependency lists on column 80 (with \), and
2N/A # we should not choose a depcomp mode which is confused by this.
2N/A # We need to recreate these files for each test, as the compiler may
2N/A # overwrite some of them when testing with obscure command lines.
2N/A # This happens at least with the AIX C compiler.
2N/A for i in 1 2 3 4 5 6; do
2N/A # after this tag, mechanisms are not by side-effect, so they'll
2N/A # only be used when explicitly requested
2N/A if test "x$enable_dependency_tracking" = xyes; then
2N/A # We check with `-c' and `-o' for the sake of the "dashmstdout"
2N/A # mode. It turns out that the SunPro C++ compiler does not properly
2N/A # handle `-M -o', and we need to detect this.
2N/A if depmode=$depmode \
2N/A # icc doesn't choke on unknown options, it will just issue warnings
2N/A # or remarks (even with -Werror). So we grep stderr for any message
2N/A # that says an option was ignored or not supported.
2N/A # When given -MP, icc 7.0 and 7.1 complain thusly:
2N/A # icc: Command line warning: ignoring option '-M'; no argument required
2N/A # The diagnosis changed in icc 8.0:
2N/A # icc: Command line remark: option '-MP' not supported
2N/A am_cv_$1_dependencies_compiler_type=$depmode
2N/A am_cv_$1_dependencies_compiler_type=none
2N/AAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
2N/AAM_CONDITIONAL([am__fastdep$1], [
2N/A test "x$enable_dependency_tracking" != xno \
2N/A && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
2N/AAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
2N/A[ --disable-dependency-tracking speeds up one-time build
2N/A --enable-dependency-tracking do not reject slow dependency extractors])
2N/Aif test "x$enable_dependency_tracking" != xno; then
2N/AAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
2N/AAC_SUBST([AMDEPBACKSLASH])dnl
2N/A_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
2N/A # Strip MF so we end up with the name of the file.
2N/A mf=`echo "$mf" | sed -e 's/:.*$//'`
2N/A # Check whether this is an Automake generated Makefile or not.
2N/A # some people rename them; so instead we look at the file content.
2N/A # Grep'ing the first line is not enough: some people post-process
2N/A # Grep'ing the whole file is not good either: AIX grep has a line
2N/A # limit of 2048, but all sed's we know have understand at least 4000.
2N/A if sed 10q "$mf" | grep '^#.*generated by automake' >
/dev/null 2>&1; then
2N/A dirpart=`AS_DIRNAME("$mf")`
2N/A # Extract the definition of DEPDIR, am__include, and am__quote
2N/A # from the Makefile without running `make'.
2N/A DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
2N/A test -z "$DEPDIR" && continue
2N/A am__include=`sed -n 's/^am__include = //p' < "$mf"`
2N/A test -z "am__include" && continue
2N/A am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
2N/A # When using ansi2knr, U may be empty or an underscore; expand it
2N/A U=`sed -n 's/^U = //p' < "$mf"`
2N/A # Find all dependency output files, they are included files with
2N/A # $(DEPDIR) in their names. We invoke sed twice because it is the
2N/A # simplest approach to changing $(DEPDIR) to its actual value in the
2N/A for file in `sed -n "
2N/A s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
2N/A sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
2N/A # Make sure the directory exists.
2N/A test -f "$dirpart/$file" && continue
2N/A fdir=`AS_DIRNAME(["$file"])`
2N/A AS_MKDIR_P([$dirpart/$fdir])
2N/A # echo "creating $dirpart/$file"
2N/A echo '# dummy' > "$dirpart/$file"
2N/A [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
2N/A [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
2N/Adnl Autoconf wants to disallow AM_ names. We explicitly allow
2N/Adnl the ones we care about.
2N/Am4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
2N/AAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
2N/AAC_REQUIRE([AC_PROG_INSTALL])dnl
2N/Aif test "`cd $srcdir && pwd`" != "`pwd`"; then
2N/A # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2N/A # is not polluted with repeated "-I."
2N/A AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
2N/A # test to see if srcdir already configured
2N/A AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
2N/A# test whether we have cygpath
2N/Aif test -z "$CYGPATH_W"; then
2N/A CYGPATH_W='cygpath -w'
2N/AAC_SUBST([CYGPATH_W])
2N/A# Define the identity of the package.
2N/Adnl Distinguish between old-style and new-style calls.
2N/A[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
2N/A AC_SUBST([PACKAGE], [$1])dnl
2N/A AC_SUBST([VERSION], [$2])],
2N/A[_AM_SET_OPTIONS([$1])dnl
2N/Adnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
2N/Am4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
2N/A [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
2N/A AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
2N/A AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
2N/A_AM_IF_OPTION([no-define],,
2N/A[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
2N/A AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
2N/A# Some tools Automake needs.
2N/AAC_REQUIRE([AM_SANITY_CHECK])dnl
2N/AAC_REQUIRE([AC_ARG_PROGRAM])dnl
2N/AAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
2N/AAM_MISSING_PROG(AUTOCONF, autoconf)
2N/AAM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
2N/AAM_MISSING_PROG(AUTOHEADER, autoheader)
2N/AAM_MISSING_PROG(MAKEINFO, makeinfo)
2N/AAM_PROG_INSTALL_STRIP
2N/AAC_REQUIRE([AM_PROG_MKDIR_P])dnl
2N/A# We need awk for the "check" target. The system "awk" is bad on
2N/AAC_REQUIRE([AC_PROG_AWK])dnl
2N/AAC_REQUIRE([AC_PROG_MAKE_SET])dnl
2N/AAC_REQUIRE([AM_SET_LEADING_DOT])dnl
2N/A_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
2N/A [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
2N/A [_AM_PROG_TAR([v7])])])
2N/A_AM_IF_OPTION([no-dependencies],,
2N/A[AC_PROVIDE_IFELSE([AC_PROG_CC],
2N/A [_AM_DEPENDENCIES(CC)],
2N/A [define([AC_PROG_CC],
2N/A defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
2N/AAC_PROVIDE_IFELSE([AC_PROG_CXX],
2N/A [_AM_DEPENDENCIES(CXX)],
2N/A [define([AC_PROG_CXX],
2N/A defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
2N/AAC_PROVIDE_IFELSE([AC_PROG_OBJC],
2N/A [_AM_DEPENDENCIES(OBJC)],
2N/A [define([AC_PROG_OBJC],
2N/A defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
2N/Afor _am_header in $config_headers :; do
2N/A _am_stamp_count=`expr $_am_stamp_count + 1` ;;
2N/Aecho "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
2N/AAC_SUBST(install_sh)])
2N/Aif test -d .tst; then
2N/AAC_SUBST([am__leading_dot])])
2N/Acat > confinc << 'END'
2N/A# If we don't find an include directive, just comment out the code.
2N/AAC_MSG_CHECKING([for style of include used by $am_make])
2N/A# First try GNU make style include.
2N/Aecho "include confinc" > confmf
2N/A# We grep out `Entering directory' and `Leaving directory'
2N/A# messages which can occur if `w' ends up in MAKEFLAGS.
2N/A# In particular we don't look at `^make:' because GNU make might
2N/A# be invoked under some other name (usually "gmake"), in which
2N/A# case it prints its new name instead of `make'.
2N/Aif test "`$am_make -s -f confmf 2>
/dev/null | grep -v 'ing directory'`" = "done"; then
2N/A# Now try BSD make style include.
2N/Aif test "$am__include" = "#"; then
2N/A echo '.include "confinc"' > confmf
2N/A if test "`$am_make -s -f confmf 2>
/dev/null`" = "done"; then
2N/A am__include=.include
2N/AAC_SUBST([am__include])
2N/AAC_SUBST([am__quote])
2N/AAC_MSG_RESULT([$_am_result])
2N/AAC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
2N/AAC_REQUIRE_AUX_FILE([compile])dnl
2N/A# FIXME: we rely on the cache variable name because
2N/A# there is no other way.
2N/Aac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
2N/Aif eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2N/A # Losing compiler, so override with the script.
2N/A # FIXME: It is wrong to rewrite CC.
2N/A # But if we don't then we get into trouble of one sort or another.
2N/A # A longer-term fix would be to have automake use am__CC in this case,
2N/A # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2N/Adnl Make sure AC_PROG_CC is never called again, or it will override our
2N/Am4_define([AC_PROG_CC],
2N/A [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
2N/A$1=${$1-"${am_missing_run}$2"}
2N/AAC_REQUIRE_AUX_FILE([missing])dnl
2N/A# Use eval to expand $SHELL
2N/Aif eval "$MISSING --run true"; then
2N/A am_missing_run="$MISSING --run "
2N/A AC_MSG_WARN([`missing' script is too old or missing])
2N/AAC_REQUIRE([AC_PROG_MKDIR_P])dnl
2N/Adnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
2N/Adnl while keeping a definition of mkdir_p for backward compatibility.
2N/Adnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
2N/Adnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
2N/Adnl adjustment using top_builddir (which is defined more often than
2N/AAC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
2N/A [[\\/$]]* | ?:[[\\/]]*) ;;
2N/A */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2N/A ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
2N/A echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2N/A (exit $ac_status); }])
2N/A# Do `set' in a subshell so we don't clobber the current shell's
2N/A# arguments. Must try -L first in case configure is actually a
2N/A# symlink; some systems play weird games with the mod time of symlinks
2N/A# (eg FreeBSD returns the mod time of the symlink's containing
2N/A if test "$[*]" = "X"; then
2N/A # If neither matched, then we have a broken ls. This can happen
2N/A # if, for instance, CONFIG_SHELL is bash and it inherits a
2N/A # broken ls alias from the environment. This has actually
2N/A # happened. Such a system could not be considered "sane".
2N/A AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
2N/Aalias in your environment])
2N/A AC_MSG_ERROR([newly created file is older than distributed files!
2N/ACheck your system clock])
2N/A# Installed binaries are usually stripped using `strip' when the user
2N/A# run `make install-strip'. However `strip' might not be the right
2N/A# tool to use in cross-compilation environments, therefore Automake
2N/A# will honor the `STRIP' environment variable to overrule this program.
2N/Adnl Don't test for $cross_compiling = yes, because it might be `maybe'.
2N/Aif test "$cross_compiling" != no; then
2N/A AC_CHECK_TOOL([STRIP], [strip], :)
2N/AINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2N/AAC_SUBST([INSTALL_STRIP_PROGRAM])])
2N/AAM_MISSING_PROG([AMTAR], [tar])
2N/A [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
2N/A [m4_case([$1], [ustar],, [pax],,
2N/A [m4_fatal([Unknown tar format])])
2N/AAC_MSG_CHECKING([how to create a $1 tar archive])
2N/A# Loop over all known methods to create a tar archive until one works.
2N/A_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
2N/A_am_tools=${am_cv_prog_tar_$1-$_am_tools}
2N/A# Do not fold the above two line into one, because Tru64 sh and
2N/A# Solaris sh will not grok spaces in the rhs of `-'.
2N/Afor _am_tool in $_am_tools
2N/A for _am_tar in tar gnutar gtar;
2N/A AM_RUN_LOG([$_am_tar --version]) && break
2N/A am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
2N/A am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
2N/A am__untar="$_am_tar -xf -"
2N/A # Must skip GNU tar: if it does not support --format= it doesn't create
2N/A # ustar tarball either.
2N/A am__tar='tar chf - "$$tardir"'
2N/A am__tar_='tar chf - "$tardir"'
2N/A am__untar='tar xf -'
2N/A am__tar='pax -L -x $1 -w "$$tardir"'
2N/A am__tar_='pax -L -x $1 -w "$tardir"'
2N/A am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
2N/A am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
2N/A am__untar='cpio -i -H $1 -d'
2N/A # If the value was cached, stop now. We just wanted to have am__tar
2N/A # and am__untar set.
2N/A test -n "${am_cv_prog_tar_$1}" && break
2N/A #
tar/untar a dummy directory, and stop if the command works
2N/AAC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
2N/AAC_MSG_RESULT([$am_cv_prog_tar_$1])])
2N/AAC_SUBST([am__untar])
2N/A dnl Work around a bug of AC_EGREP_CPP in autoconf-2.57.
2N/A AC_REQUIRE([AC_PROG_CPP])
2N/A AC_REQUIRE([AC_PROG_EGREP])
2N/A AC_REQUIRE([AC_FUNC_ALLOCA])
2N/A if test $ac_cv_func_alloca_works = no; then
2N/A # Define an additional variable used in the Makefile substitution.
2N/A if test $ac_cv_working_alloca_h = yes; then
2N/A AC_CACHE_CHECK([for alloca as a compiler built-in], [gl_cv_rpl_alloca], [
2N/A AC_EGREP_CPP([Need own alloca], [
2N/A#if defined __GNUC__ || defined _AIX || defined _MSC_VER
2N/A ], [gl_cv_rpl_alloca=yes], [gl_cv_rpl_alloca=no])
2N/A if test $gl_cv_rpl_alloca = yes; then
2N/A dnl OK, alloca can be implemented through a compiler built-in.
2N/A AC_DEFINE([HAVE_ALLOCA], [1],
2N/A [Define to 1 if you have 'alloca' after including <
alloca.h>,
2N/A a header that may be supplied by this distribution.])
2N/A dnl alloca exists as a library function,
i.e. it is slow and probably
2N/A dnl a memory leak. Don't define HAVE_ALLOCA in this case.
2N/A AC_SUBST([ALLOCA_H])
2N/A AC_REQUIRE([AC_C_INLINE])
2N/A AC_REQUIRE([AC_C_RESTRICT])
2N/A AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
2N/A dnl Note: gl_REPLACE_GETOPT does AC_LIBOBJ([getopt]), AC_LIBOBJ([getopt1]).
2N/A AC_CHECK_DECL([program_invocation_name],
2N/A [AC_DEFINE([HAVE_DECL_PROGRAM_INVOCATION_NAME], [1],
2N/A [Define if program_invocation_name is declared])],
2N/A [AC_DEFINE([GNULIB_PROGRAM_INVOCATION_NAME], [1],
2N/A [Define to 1 to add extern declaration of program_invocation_name to
argp.h])],
2N/A AC_CHECK_DECL([program_invocation_short_name],
2N/A [AC_DEFINE([HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME], [1],
2N/A [Define if program_invocation_short_name is declared])],
2N/A [AC_DEFINE([GNULIB_PROGRAM_INVOCATION_SHORT_NAME], [1],
2N/A [Define to 1 to add extern declaration of program_invocation_short_name to
argp.h])],
2N/A # Check if program_invocation_name and program_invocation_short_name
2N/A # are defined elsewhere. It is improbable that only one of them will
2N/A # be defined and other not, I prefer to stay on the safe side and to
2N/A # test each one separately.
2N/A AC_MSG_CHECKING([whether program_invocation_name is defined])
2N/A AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <
argp.h>]],
2N/A [[program_invocation_name = "test";]])],
2N/A [AC_DEFINE([HAVE_PROGRAM_INVOCATION_NAME], [1],
2N/A [Define if program_invocation_name is defined])
2N/A AC_MSG_RESULT([yes])],
2N/A [AC_MSG_RESULT([no])])
2N/A AC_MSG_CHECKING([whether program_invocation_short_name is defined])
2N/A AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <
argp.h>]],
2N/A [[program_invocation_short_name = "test";]])],
2N/A [AC_DEFINE([HAVE_PROGRAM_INVOCATION_SHORT_NAME], [1],
2N/A [Define if program_invocation_short_name is defined])
2N/A AC_MSG_RESULT([yes])],
2N/A [AC_MSG_RESULT([no])])
2N/A AC_CHECK_DECLS_ONCE([clearerr_unlocked])
2N/A AC_CHECK_DECLS_ONCE([feof_unlocked])
2N/A AC_CHECK_DECLS_ONCE([ferror_unlocked])
2N/A AC_CHECK_DECLS_ONCE([fflush_unlocked])
2N/A AC_CHECK_DECLS_ONCE([fgets_unlocked])
2N/A AC_CHECK_DECLS_ONCE([fputc_unlocked])
2N/A AC_CHECK_DECLS_ONCE([fputs_unlocked])
2N/A AC_CHECK_DECLS_ONCE([fread_unlocked])
2N/A AC_CHECK_DECLS_ONCE([fwrite_unlocked])
2N/A AC_CHECK_DECLS_ONCE([getc_unlocked])
2N/A AC_CHECK_DECLS_ONCE([getchar_unlocked])
2N/A AC_CHECK_DECLS_ONCE([putc_unlocked])
2N/A AC_CHECK_DECLS_ONCE([putchar_unlocked])
2N/A AC_CHECK_FUNCS_ONCE([flockfile funlockfile])
2N/A dnl We don't use GCC's __USER_LABEL_PREFIX__ here, because
2N/A dnl 1. It works only for GCC.
2N/A dnl 2. It is incorrectly defined on some platforms, in some GCC versions.
2N/A [whether C symbols are prefixed with underscore at the linker level],
2N/A [gl_cv_prog_as_underscore],
2N/Aextern "C" int foo (void);
2N/Aint foo(void) { return 0; }
2N/A # Look for the assembly language name in the .s file.
2N/A gl_cv_prog_as_underscore=yes
2N/A gl_cv_prog_as_underscore=no
2N/A if test $gl_cv_prog_as_underscore = yes; then
2N/A AC_DEFINE_UNQUOTED([USER_LABEL_PREFIX], [$USER_LABEL_PREFIX],
2N/A [Define to the prefix of C symbols at the assembler and linker level,
2N/A either an underscore or empty.])
2N/A ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
2N/A AC_SUBST([ASM_SYMBOL_PREFIX])
2N/A AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
2N/A dnl Check whether <
wchar.h> is usable at all, first. Otherwise the test
2N/A dnl program below may lead to an endless loop. See
2N/A AC_REQUIRE([gl_WCHAR_H_INLINE_OK])
2N/A AC_CHECK_FUNCS_ONCE([btowc])
2N/A if test $ac_cv_func_btowc = no; then
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([gt_LOCALE_FR])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A dnl Cygwin 1.7.2 btowc('\0') is WEOF, not 0.
2N/A AC_CACHE_CHECK([whether btowc(0) is correct],
2N/A [gl_cv_func_btowc_nul],
2N/A if (btowc ('\0') != 0)
2N/A [gl_cv_func_btowc_nul=yes],
2N/A [gl_cv_func_btowc_nul=no],
2N/A # Guess no on Cygwin.
2N/A cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
2N/A # Guess yes otherwise.
2N/A *) gl_cv_func_btowc_nul="guessing yes" ;;
2N/A dnl IRIX 6.5 btowc(EOF) is 0xFF, not WEOF.
2N/A AC_CACHE_CHECK([whether btowc(EOF) is correct],
2N/A [gl_cv_func_btowc_eof],
2N/A dnl Initial guess, used when cross-compiling or when no suitable locale
2N/A irix*) gl_cv_func_btowc_eof="guessing no" ;;
2N/A # Guess yes otherwise.
2N/A *) gl_cv_func_btowc_eof="guessing yes" ;;
2N/A if test $LOCALE_FR != none; then
2N/A if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
2N/A if (btowc (EOF) != WEOF)
2N/A [gl_cv_func_btowc_eof=yes],
2N/A [gl_cv_func_btowc_eof=no],
2N/A case "$gl_cv_func_btowc_nul" in
2N/A *) REPLACE_BTOWC=1 ;;
2N/A case "$gl_cv_func_btowc_eof" in
2N/A *) REPLACE_BTOWC=1 ;;
2N/A if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
2N/A AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset],
2N/A [[char* cs = nl_langinfo(CODESET); return !cs;]])],
2N/A [am_cv_langinfo_codeset=yes],
2N/A [am_cv_langinfo_codeset=no])
2N/A if test $am_cv_langinfo_codeset = yes; then
2N/A AC_DEFINE([HAVE_LANGINFO_CODESET], [1],
2N/A AC_REQUIRE([gl_DIRNAME_LGPL])
2N/A AC_LIBOBJ([basename])
2N/A AC_LIBOBJ([dirname])
2N/A AC_LIBOBJ([basename-lgpl])
2N/A AC_LIBOBJ([dirname-lgpl])
2N/A AC_LIBOBJ([stripslash])
2N/A AC_REQUIRE([gl_AC_DOS])
2N/A AC_REQUIRE([gl_DOUBLE_SLASH_ROOT])
2N/A AC_CACHE_CHECK([whether system is Windows or MSDOS], [ac_cv_win_or_dos],
2N/A AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[
2N/A#if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
2N/Aneither MSDOS nor Windows
2N/A [ac_cv_win_or_dos=yes],
2N/A [ac_cv_win_or_dos=no])
2N/A if test x"$ac_cv_win_or_dos" = xyes; then
2N/A ac_fs_accepts_drive_letter_prefix=1
2N/A ac_fs_backslash_is_file_name_separator=1
2N/A AC_CACHE_CHECK([whether drive letter can start relative path],
2N/A [ac_cv_drive_letter_can_be_relative],
2N/A AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[
2N/A#if defined __CYGWIN__
2N/Adrive letters are always absolute
2N/A [ac_cv_drive_letter_can_be_relative=yes],
2N/A [ac_cv_drive_letter_can_be_relative=no])
2N/A if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
2N/A ac_fs_drive_letter_can_be_relative=1
2N/A ac_fs_drive_letter_can_be_relative=0
2N/A ac_fs_accepts_drive_letter_prefix=0
2N/A ac_fs_backslash_is_file_name_separator=0
2N/A ac_fs_drive_letter_can_be_relative=0
2N/A AC_DEFINE_UNQUOTED([FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX],
2N/A $ac_fs_accepts_drive_letter_prefix,
2N/A [Define on systems for which file names may have a so-called
2N/A `drive letter' prefix, define this to compute the length of that
2N/A prefix, including the colon.])
2N/A AH_VERBATIM(ISSLASH,
2N/A [#if FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR
2N/A# define ISSLASH(C) ((C) == '/' || (C) == '\\')
2N/A# define ISSLASH(C) ((C) == '/')
2N/A AC_DEFINE_UNQUOTED([FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR],
2N/A $ac_fs_backslash_is_file_name_separator,
2N/A [Define if the backslash character may also serve as a file name
2N/A component separator.])
2N/A AC_DEFINE_UNQUOTED([FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE],
2N/A $ac_fs_drive_letter_can_be_relative,
2N/A [Define if a drive letter prefix denotes a relative path if it is
2N/A not followed by a file name component separator.])
2N/A AC_REQUIRE([AC_CANONICAL_HOST])
2N/A AC_CACHE_CHECK([whether // is distinct from /], [gl_cv_double_slash_root],
2N/A [ if test x"$cross_compiling" = xyes ; then
2N/A # When cross-compiling, there is no way to tell whether // is special
2N/A # short of a list of hosts. However, the only known hosts to date
2N/A # that have a distinct // are Apollo DomainOS (too old to port to),
2N/A # Cygwin, and
z/OS. If anyone knows of another system for which // has
2N/A # special semantics and is distinct from /, please report it to
2N/A # <bug-gnulib@gnu.org>.
2N/A *-cygwin | i370-ibm-openedition)
2N/A gl_cv_double_slash_root=yes ;;
2N/A # Be optimistic and assume that / and // are the same when we
2N/A gl_cv_double_slash_root='unknown, assuming no' ;;
2N/A gl_cv_double_slash_root=no
2N/A gl_cv_double_slash_root=yes
2N/A if test "$gl_cv_double_slash_root" = yes; then
2N/A AC_DEFINE([DOUBLE_SLASH_IS_DISTINCT_ROOT], [1],
2N/A [Define to 1 if // is a file system root distinct from /.])
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_CACHE_CHECK([for complete
errno.h], [gl_cv_header_errno_h_complete], [
2N/A AC_EGREP_CPP([booboo],[
2N/A#if !defined EMULTIHOP
2N/A#if !defined EOVERFLOW
2N/A#if !defined ECANCELED
2N/A [gl_cv_header_errno_h_complete=no],
2N/A [gl_cv_header_errno_h_complete=yes])
2N/A if test $gl_cv_header_errno_h_complete = yes; then
2N/A gl_REPLACE_ERRNO_VALUE([EMULTIHOP])
2N/A gl_REPLACE_ERRNO_VALUE([ENOLINK])
2N/A gl_REPLACE_ERRNO_VALUE([EOVERFLOW])
2N/Am4trace:
m4/errno_h.m4:7: -1- AC_DEFUN([gl_HEADER_ERRNO_H], [AC_REQUIRE([_gl_DEFUN_ONCE([gl_HEADER_ERRNO_H])],
2N/A [m4_indir([_gl_DEFUN_ONCE([gl_HEADER_ERRNO_H])])])])
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_CACHE_CHECK([for complete
errno.h], [gl_cv_header_errno_h_complete], [
2N/A AC_EGREP_CPP([booboo],[
2N/A#if !defined EMULTIHOP
2N/A#if !defined EOVERFLOW
2N/A#if !defined ECANCELED
2N/A [gl_cv_header_errno_h_complete=no],
2N/A [gl_cv_header_errno_h_complete=yes])
2N/A if test $gl_cv_header_errno_h_complete = yes; then
2N/A gl_REPLACE_ERRNO_VALUE([EMULTIHOP])
2N/A gl_REPLACE_ERRNO_VALUE([ENOLINK])
2N/A gl_REPLACE_ERRNO_VALUE([EOVERFLOW])
2N/A if test -n "$ERRNO_H"; then
2N/A AC_CACHE_CHECK([for ]$1[ value], [gl_cv_header_errno_h_]$1, [
2N/A AC_EGREP_CPP([yes],[
2N/A [gl_cv_header_errno_h_]$1[=yes],
2N/A [gl_cv_header_errno_h_]$1[=no])
2N/A if test $gl_cv_header_errno_h_]$1[ = no; then
2N/A AC_EGREP_CPP([yes],[
2N/A#define _XOPEN_SOURCE_EXTENDED 1
2N/A ], [gl_cv_header_errno_h_]$1[=hidden])
2N/A if test $gl_cv_header_errno_h_]$1[ = hidden; then
2N/A dnl The macro exists but is hidden.
2N/A dnl Define it to the same value.
2N/A AC_COMPUTE_INT([gl_cv_header_errno_h_]$1, $1, [
2N/A#define _XOPEN_SOURCE_EXTENDED 1
2N/A/* The following two lines are a workaround against an autoconf-2.52 bug. */
2N/A case $gl_cv_header_errno_h_$1 in
2N/A $1_HIDDEN=0; $1_VALUE=
2N/A $1_HIDDEN=1; $1_VALUE="$gl_cv_header_errno_h_$1"
2N/A AC_SUBST($1[_HIDDEN])
2N/A AC_SUBST($1[_VALUE])
2N/A AC_FUNC_ERROR_AT_LINE
2N/A AC_CACHE_CHECK([for error_at_line], [ac_cv_lib_error_at_line],
2N/A [[error_at_line (0, 0, "", 0, "an error occurred");]])],
2N/A [ac_cv_lib_error_at_line=yes],
2N/A [ac_cv_lib_error_at_line=no])])
2N/A if test $ac_cv_lib_error_at_line = no; then
2N/A AC_REQUIRE([AC_FUNC_STRERROR_R])
2N/A AC_REQUIRE([AC_C_INLINE])
2N/Am4trace:
m4/extensions.m4:37: -1- AC_DEFUN_ONCE([AC_USE_SYSTEM_EXTENSIONS], [AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl
2N/AAC_BEFORE([$0], [AC_RUN_IFELSE])dnl
2N/A AC_REQUIRE([AC_CANONICAL_HOST])
2N/A if test "$MINIX" = yes; then
2N/A AC_DEFINE([_POSIX_SOURCE], [1],
2N/A [Define to 1 if you need to in order for `stat' and other
2N/A AC_DEFINE([_POSIX_1_SOURCE], [2],
2N/A [Define to 2 if the system does not provide POSIX.1 features
2N/A except with this defined.])
2N/A AC_DEFINE([_MINIX], [1],
2N/A [Define to 1 if on MINIX.])
2N/A dnl HP-UX 11.11 defines mbstate_t only if _XOPEN_SOURCE is defined to 500,
2N/A dnl regardless of whether the flags -Ae or _D_HPUX_SOURCE=1 are already
2N/A AC_DEFINE([_XOPEN_SOURCE], [500],
2N/A [Define to 500 only on HP-UX.])
2N/A AH_VERBATIM([__EXTENSIONS__],
2N/A[/* Enable extensions on AIX 3, Interix. */
2N/A/* Enable GNU extensions on systems that have them. */
2N/A/* Enable threading extensions on Solaris. */
2N/A#ifndef _POSIX_PTHREAD_SEMANTICS
2N/A# undef _POSIX_PTHREAD_SEMANTICS
2N/A/* Enable extensions on HP NonStop. */
2N/A#ifndef _TANDEM_SOURCE
2N/A# undef _TANDEM_SOURCE
2N/A/* Enable general extensions on Solaris. */
2N/A#ifndef __EXTENSIONS__
2N/A# undef __EXTENSIONS__
2N/A AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__],
2N/A [ac_cv_safe_to_define___extensions__],
2N/A# define __EXTENSIONS__ 1
2N/A ]AC_INCLUDES_DEFAULT])],
2N/A [ac_cv_safe_to_define___extensions__=yes],
2N/A [ac_cv_safe_to_define___extensions__=no])])
2N/A test $ac_cv_safe_to_define___extensions__ = yes &&
2N/A AC_DEFINE([__EXTENSIONS__])
2N/A AC_DEFINE([_ALL_SOURCE])
2N/A AC_DEFINE([_GNU_SOURCE])
2N/A AC_DEFINE([_POSIX_PTHREAD_SEMANTICS])
2N/A AC_DEFINE([_TANDEM_SOURCE])
2N/Am4trace:
m4/extensions.m4:37: -1- AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], [AC_REQUIRE([_gl_DEFUN_ONCE([AC_USE_SYSTEM_EXTENSIONS])],
2N/A [m4_indir([_gl_DEFUN_ONCE([AC_USE_SYSTEM_EXTENSIONS])])])])
2N/Am4trace:
m4/extensions.m4:37: -1- AC_DEFUN([_gl_DEFUN_ONCE([AC_USE_SYSTEM_EXTENSIONS])], [AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl
2N/AAC_BEFORE([$0], [AC_RUN_IFELSE])dnl
2N/A AC_REQUIRE([AC_CANONICAL_HOST])
2N/A if test "$MINIX" = yes; then
2N/A AC_DEFINE([_POSIX_SOURCE], [1],
2N/A [Define to 1 if you need to in order for `stat' and other
2N/A AC_DEFINE([_POSIX_1_SOURCE], [2],
2N/A [Define to 2 if the system does not provide POSIX.1 features
2N/A except with this defined.])
2N/A AC_DEFINE([_MINIX], [1],
2N/A [Define to 1 if on MINIX.])
2N/A dnl HP-UX 11.11 defines mbstate_t only if _XOPEN_SOURCE is defined to 500,
2N/A dnl regardless of whether the flags -Ae or _D_HPUX_SOURCE=1 are already
2N/A AC_DEFINE([_XOPEN_SOURCE], [500],
2N/A [Define to 500 only on HP-UX.])
2N/A AH_VERBATIM([__EXTENSIONS__],
2N/A[/* Enable extensions on AIX 3, Interix. */
2N/A/* Enable GNU extensions on systems that have them. */
2N/A/* Enable threading extensions on Solaris. */
2N/A#ifndef _POSIX_PTHREAD_SEMANTICS
2N/A# undef _POSIX_PTHREAD_SEMANTICS
2N/A/* Enable extensions on HP NonStop. */
2N/A#ifndef _TANDEM_SOURCE
2N/A# undef _TANDEM_SOURCE
2N/A/* Enable general extensions on Solaris. */
2N/A#ifndef __EXTENSIONS__
2N/A# undef __EXTENSIONS__
2N/A AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__],
2N/A [ac_cv_safe_to_define___extensions__],
2N/A# define __EXTENSIONS__ 1
2N/A ]AC_INCLUDES_DEFAULT])],
2N/A [ac_cv_safe_to_define___extensions__=yes],
2N/A [ac_cv_safe_to_define___extensions__=no])])
2N/A test $ac_cv_safe_to_define___extensions__ = yes &&
2N/A AC_DEFINE([__EXTENSIONS__])
2N/A AC_DEFINE([_ALL_SOURCE])
2N/A AC_DEFINE([_GNU_SOURCE])
2N/A AC_DEFINE([_POSIX_PTHREAD_SEMANTICS])
2N/A AC_DEFINE([_TANDEM_SOURCE])
2N/A dnl Require this macro before AC_USE_SYSTEM_EXTENSIONS.
2N/A dnl gnulib does not need it. But if it gets required by third-party macros
2N/A dnl after AC_USE_SYSTEM_EXTENSIONS is required, autoconf 2.62..2.63 emit a
2N/A dnl warning: "AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS".
2N/A dnl Note: We can do this only for one of the macros AC_AIX, AC_GNU_SOURCE,
2N/A dnl AC_MINIX. If people still use AC_AIX or AC_MINIX, they are out of luck.
2N/A AC_REQUIRE([AC_GNU_SOURCE])
2N/A AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
2N/Am4trace:
m4/extensions.m4:107: -1- AC_DEFUN([gl_USE_SYSTEM_EXTENSIONS], [AC_REQUIRE([_gl_DEFUN_ONCE([gl_USE_SYSTEM_EXTENSIONS])],
2N/A [m4_indir([_gl_DEFUN_ONCE([gl_USE_SYSTEM_EXTENSIONS])])])])
2N/A dnl Require this macro before AC_USE_SYSTEM_EXTENSIONS.
2N/A dnl gnulib does not need it. But if it gets required by third-party macros
2N/A dnl after AC_USE_SYSTEM_EXTENSIONS is required, autoconf 2.62..2.63 emit a
2N/A dnl warning: "AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS".
2N/A dnl Note: We can do this only for one of the macros AC_AIX, AC_GNU_SOURCE,
2N/A dnl AC_MINIX. If people still use AC_AIX or AC_MINIX, they are out of luck.
2N/A AC_REQUIRE([AC_GNU_SOURCE])
2N/A AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
2N/A dnl Persuade glibc <
fcntl.h> to define O_NOATIME and O_NOFOLLOW.
2N/A dnl AC_USE_SYSTEM_EXTENSIONS was introduced in autoconf 2.60 and obsoletes
2N/A m4_ifdef([AC_USE_SYSTEM_EXTENSIONS],
2N/A [AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])],
2N/A [AC_REQUIRE([AC_GNU_SOURCE])])
2N/A AC_CACHE_CHECK([for working
fcntl.h], [gl_cv_header_working_fcntl_h],
2N/A #define O_NOFOLLOW 0
2N/A static int const constants[] =
2N/A O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
2N/A O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
2N/A int status = !constants;
2N/A if (symlink (".", sym) != 0
2N/A || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
2N/A int fd = open (file, O_RDONLY | O_NOATIME);
2N/A struct stat st0, st1;
2N/A || fstat (fd, &st0) != 0
2N/A || read (fd, &c, 1) != 1
2N/A || stat (file, &st1) != 0
2N/A [gl_cv_header_working_fcntl_h=yes],
2N/A 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
2N/A 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
2N/A 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
2N/A *) gl_cv_header_working_fcntl_h='no';;
2N/A [gl_cv_header_working_fcntl_h=cross-compiling])])
2N/A case $gl_cv_header_working_fcntl_h in #(
2N/A *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
2N/A AC_DEFINE_UNQUOTED([HAVE_WORKING_O_NOATIME], [$ac_val],
2N/A [Define to 1 if O_NOATIME works.])
2N/A case $gl_cv_header_working_fcntl_h in #(
2N/A *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
2N/A AC_DEFINE_UNQUOTED([HAVE_WORKING_O_NOFOLLOW], [$ac_val],
2N/A [Define to 1 if O_NOFOLLOW works.])
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([AC_CANONICAL_HOST])
2N/A beos* | openbsd* | mirbsd*)
2N/A m4_divert_text([DEFAULTS], [gl_fnmatch_required=POSIX])
2N/A dnl This is only needed if gl_fnmatch_required = GNU. It would be possible
2N/A dnl to avoid this dependency for gl_FUNC_FNMATCH_POSIX by putting
2N/A dnl gl_FUNC_FNMATCH_GNU into a separate .m4 file.
2N/A AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
2N/A gl_fnmatch_required_lowercase=`echo $gl_fnmatch_required | tr 'A-Z' 'a-z'`
2N/A gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
2N/A AC_CACHE_CHECK([for working $gl_fnmatch_required fnmatch],
2N/A [$gl_fnmatch_cache_var],
2N/A [dnl Some versions of Solaris, SCO, and the GNU C Library
2N/A dnl have a broken or incompatible fnmatch.
2N/A dnl So we run a test program. If we are cross-compiling, take no chance.
2N/A dnl Thanks to John Oleynick, François Pinard, and Paul Eggert for this
2N/A if test $gl_fnmatch_required = GNU; then
2N/A gl_fnmatch_gnu_start=
2N/A gl_fnmatch_gnu_start='#if 0'
2N/A gl_fnmatch_gnu_end='#endif'
2N/A y (char const *pattern, char const *string, int flags)
2N/A return fnmatch (pattern, string, flags) == 0;
2N/A n (char const *pattern, char const *string, int flags)
2N/A return fnmatch (pattern, string, flags) == FNM_NOMATCH;
2N/A [[char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
2N/A char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
2N/A static char const A_1[] = { 'A' - 1, 0 };
2N/A static char const A01[] = { 'A' + 1, 0 };
2N/A static char const a_1[] = { 'a' - 1, 0 };
2N/A static char const a01[] = { 'a' + 1, 0 };
2N/A static char const bs_1[] = { '\\\\' - 1, 0 };
2N/A static char const bs01[] = { '\\\\' + 1, 0 };
2N/A && y ("a*", "abc", 0)
2N/A && n ("d*/*1", "d/s/1", FNM_PATHNAME)
2N/A && y ("a\\\\bc", "abc", 0)
2N/A && n ("a\\\\bc", "abc", FNM_NOESCAPE)
2N/A && y ("*x", ".x", 0)
2N/A && n ("*x", ".x", FNM_PERIOD)
2N/A && y (Apat, "\\\\", 0) && y (Apat, "A", 0)
2N/A && y (apat, "\\\\", 0) && y (apat, "a", 0)
2N/A && n (Apat, A_1, 0) == ('A' < '\\\\')
2N/A && n (apat, a_1, 0) == ('a' < '\\\\')
2N/A && y (Apat, A01, 0) == ('A' < '\\\\')
2N/A && y (apat, a01, 0) == ('a' < '\\\\')
2N/A && y (Apat, bs_1, 0) == ('A' < '\\\\')
2N/A && y (apat, bs_1, 0) == ('a' < '\\\\')
2N/A && n (Apat, bs01, 0) == ('A' < '\\\\')
2N/A && n (apat, bs01, 0) == ('a' < '\\\\')
2N/A $gl_fnmatch_gnu_start
2N/A && y ("xxXX", "xXxX", FNM_CASEFOLD)
2N/A && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
2N/A && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
2N/A && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
2N/A && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
2N/A && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)
2N/A [eval "$gl_fnmatch_cache_var=yes"],
2N/A [eval "$gl_fnmatch_cache_var=no"],
2N/A [eval "$gl_fnmatch_cache_var=\"guessing no\""])
2N/A eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
2N/A if test "$gl_fnmatch_result" = yes; then
2N/A dnl Not strictly necessary. Only to avoid spurious leftover files if people
2N/A dnl don't do "make distclean".
2N/A AC_LIBOBJ([fnmatch])
2N/A dnl We must choose a different name for our function, since on ELF systems
2N/A dnl a broken fnmatch() in
libc.so would override our fnmatch() if it is
2N/A dnl compiled into a shared library.
2N/A AC_DEFINE_UNQUOTED([fnmatch], [${gl_fnmatch_required_lowercase}_fnmatch],
2N/A [Define to a replacement function name for fnmatch().])
2N/A AC_REQUIRE([AC_TYPE_MBSTATE_T])
2N/A AC_CHECK_DECLS([isblank], [], [], [#include <
ctype.h>])
2N/A AC_CHECK_FUNCS_ONCE([btowc isblank iswctype mbsrtowcs mempcpy wmemchr wmemcpy wmempcpy])
2N/A AC_SUBST([FNMATCH_H])
2N/A m4_divert_text([INIT_PREPARE], [gl_fnmatch_required=GNU])
2N/A AC_REQUIRE([gl_FUNC_FNMATCH_POSIX])
2N/A AC_REQUIRE([gl_STDIO_H_DEFAULTS])
2N/A dnl Persuade glibc <
stdio.h> to declare getdelim().
2N/A AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
2N/A AC_CHECK_DECLS_ONCE([getdelim])
2N/A AC_CHECK_FUNCS_ONCE([getdelim])
2N/A if test $ac_cv_func_getdelim = yes; then
2N/A dnl Found it in some library. Verify that it works.
2N/A AC_CACHE_CHECK([for working getdelim function], [gl_cv_func_working_getdelim],
2N/A AC_RUN_IFELSE([AC_LANG_SOURCE([[
2N/A /* Test result for a NULL buffer and a zero size.
2N/A Based on a test program from Karl Heuer. */
2N/A int len = getdelim (&line, &siz, '\n', in);
2N/A if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
2N/A /* Test result for a NULL buffer and a non-zero size.
2N/A This crashes on FreeBSD 8.0. */
2N/A size_t siz = (size_t)(~0) / 4;
2N/A if (getdelim (&line, &siz, '\n', in) == -1)
2N/A ]])], [gl_cv_func_working_getdelim=yes] dnl The library version works.
2N/A , [gl_cv_func_working_getdelim=no] dnl The library version does NOT work.
2N/A , dnl We're cross compiling. Assume it works on glibc2 systems.
2N/A [AC_EGREP_CPP([Lucky GNU user],
2N/A#ifdef __GNU_LIBRARY__
2N/A #if (__GLIBC__ >= 2)
2N/A [gl_cv_func_working_getdelim=yes],
2N/A [gl_cv_func_working_getdelim=no])]
2N/A gl_cv_func_working_getdelim=no
2N/A if test $ac_cv_have_decl_getdelim = no; then
2N/A HAVE_DECL_GETDELIM=0
2N/A if test $gl_cv_func_working_getdelim = no; then
2N/A if test $ac_cv_func_getdelim = yes; then
2N/A AC_LIBOBJ([getdelim])
2N/A AC_CHECK_FUNCS([flockfile funlockfile])
2N/A AC_CHECK_DECLS([getc_unlocked])
2N/A AC_REQUIRE([gl_STDIO_H_DEFAULTS])
2N/A dnl Persuade glibc <
stdio.h> to declare getline().
2N/A AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
2N/A AC_CHECK_DECLS_ONCE([getline])
2N/A gl_getline_needs_run_time_check=no
2N/A AC_CHECK_FUNC([getline],
2N/A [dnl Found it in some library. Verify that it works.
2N/A gl_getline_needs_run_time_check=yes],
2N/A [am_cv_func_working_getline=no])
2N/A if test $gl_getline_needs_run_time_check = yes; then
2N/A AC_CACHE_CHECK([for working getline function], [am_cv_func_working_getline],
2N/A AC_RUN_IFELSE([AC_LANG_SOURCE([[
2N/A /* Test result for a NULL buffer and a zero size.
2N/A Based on a test program from Karl Heuer. */
2N/A int len = getline (&line, &siz, in);
2N/A if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
2N/A /* Test result for a NULL buffer and a non-zero size.
2N/A This crashes on FreeBSD 8.0. */
2N/A size_t siz = (size_t)(~0) / 4;
2N/A if (getline (&line, &siz, in) == -1)
2N/A ]])], [am_cv_func_working_getline=yes] dnl The library version works.
2N/A , [am_cv_func_working_getline=no] dnl The library version does NOT work.
2N/A , dnl We're cross compiling. Assume it works on glibc2 systems.
2N/A [AC_EGREP_CPP([Lucky GNU user],
2N/A#ifdef __GNU_LIBRARY__
2N/A #if (__GLIBC__ >= 2)
2N/A [am_cv_func_working_getline=yes],
2N/A [am_cv_func_working_getline=no])]
2N/A if test $ac_cv_have_decl_getline = no; then
2N/A if test $am_cv_func_working_getline = no; then
2N/A dnl Set REPLACE_GETLINE always: Even if we have not found the broken
2N/A dnl getline function among $LIBS, it may exist in libinet and the
2N/A dnl executable may be linked with -linet.
2N/A AC_LIBOBJ([getline])
2N/A m4_divert_text([DEFAULTS], [gl_getopt_required=POSIX])
2N/A AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
2N/A m4_divert_text([INIT_PREPARE], [gl_getopt_required=GNU])
2N/A AC_REQUIRE([gl_FUNC_GETOPT_POSIX])
2N/A gl_GETOPT_SUBSTITUTE_HEADER
2N/A GNULIB_UNISTD_H_GETOPT=1
2N/A dnl Arrange to compile the getopt implementation.
2N/A AC_LIBOBJ([getopt1])
2N/A AC_REQUIRE([gl_GETOPT_CHECK_HEADERS])
2N/A AS_IF([test -n "$gl_replace_getopt"], [$1], [$2])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A AC_REQUIRE([AC_PROG_AWK]) dnl for awk that supports ENVIRON
2N/A dnl Persuade Solaris <
unistd.h> to declare optarg, optind, opterr, optopt.
2N/A AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
2N/A if test $ac_cv_header_getopt_h = yes; then
2N/A AC_SUBST([HAVE_GETOPT_H])
2N/A if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
2N/A AC_CHECK_HEADERS([
getopt.h], [], [gl_replace_getopt=yes])
2N/A dnl Test whether the function getopt_long is available.
2N/A if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
2N/A AC_CHECK_FUNCS([getopt_long_only], [], [gl_replace_getopt=yes])
2N/A dnl BSD getopt_long uses an incompatible method to reset option processing.
2N/A dnl Existence of the variable, in and of itself, is not a reason to replace
2N/A dnl getopt, but knowledge of the variable is needed to determine how to
2N/A dnl reset and whether a reset reparses the environment.
2N/A dnl Solaris supports neither optreset nor optind=0, but keeps no state that
2N/A dnl needs a reset beyond setting optind=1; detect Solaris by getopt_clip.
2N/A if test -z "$gl_replace_getopt"; then
2N/A AC_CHECK_DECLS([optreset], [],
2N/A [AC_CHECK_DECLS([getopt_clip], [], [],
2N/A dnl strings starts with '+' and it's not the first call. Some internal state
2N/A dnl is left over from earlier calls, and neither setting optind = 0 nor
2N/A dnl setting optreset = 1 get rid of this internal state.
2N/A dnl POSIX is silent on optind vs. optreset, so we allow either behavior.
2N/A dnl POSIX 2008 does not specify leading '+' behavior, but see
2N/A dnl the next version of POSIX. For now, we only guarantee leading '+'
2N/A dnl behavior with getopt-gnu.
2N/A if test -z "$gl_replace_getopt"; then
2N/A AC_CACHE_CHECK([whether getopt is POSIX compatible],
2N/A [gl_cv_func_getopt_posix],
2N/A dnl This test fails on mingw and succeeds on many other platforms.
2N/A AC_RUN_IFELSE([AC_LANG_SOURCE([[
2N/A#if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
2N/A# define OPTIND_MIN 0
2N/A# define OPTIND_MIN 1
2N/A argv[argc++] = "program";
2N/A argv[argc++] = "-a";
2N/A argv[argc++] = "foo";
2N/A argv[argc++] = "bar";
2N/A optind = OPTIND_MIN;
2N/A c = getopt (argc, argv, "ab");
2N/A c = getopt (argc, argv, "ab");
2N/A /* Some internal state exists at this point. */
2N/A argv[argc++] = "program";
2N/A argv[argc++] = "donald";
2N/A argv[argc++] = "-p";
2N/A argv[argc++] = "billy";
2N/A argv[argc++] = "duck";
2N/A argv[argc++] = "-a";
2N/A argv[argc++] = "bar";
2N/A optind = OPTIND_MIN;
2N/A c = getopt (argc, argv, "+abp:q:");
2N/A if (!(strcmp (argv[0], "program") == 0))
2N/A if (!(strcmp (argv[1], "donald") == 0))
2N/A if (!(strcmp (argv[2], "-p") == 0))
2N/A if (!(strcmp (argv[3], "billy") == 0))
2N/A if (!(strcmp (argv[4], "duck") == 0))
2N/A if (!(strcmp (argv[5], "-a") == 0))
2N/A if (!(strcmp (argv[6], "bar") == 0))
2N/A /* Detect MacOS 10.5, AIX 7.1 bug. */
2N/A char *argv[3] = { "program", "-ab", NULL };
2N/A optind = OPTIND_MIN;
2N/A if (getopt (2, argv, "ab:") != 'a')
2N/A if (getopt (2, argv, "ab:") != '?')
2N/A [gl_cv_func_getopt_posix=yes], [gl_cv_func_getopt_posix=no],
2N/A mingw*) gl_cv_func_getopt_posix="guessing no";;
2N/A darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
2N/A *) gl_cv_func_getopt_posix="guessing yes";;
2N/A case "$gl_cv_func_getopt_posix" in
2N/A *no) gl_replace_getopt=yes ;;
2N/A if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
2N/A AC_CACHE_CHECK([for working GNU getopt function], [gl_cv_func_getopt_gnu],
2N/A [# Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
2N/A # optstring is necessary for programs like m4 that have POSIX-mandated
2N/A # semantics for supporting options interspersed with files.
2N/A # Also, since getopt_long is a GNU extension, we require optind=0.
2N/A # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
2N/A # so take care to revert to the correct (non-)export state.
2N/Adnl GNU Coding Standards currently allow awk but not env; besides, env
2N/Adnl is ambiguous with environment values that contain newlines.
2N/A gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
2N/A case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" <
/dev/null` in
2N/A xx) gl_had_POSIXLY_CORRECT=exported ;;
2N/A x) gl_had_POSIXLY_CORRECT=yes ;;
2N/A *) gl_had_POSIXLY_CORRECT= ;;
2N/A export POSIXLY_CORRECT
2N/A /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
2N/A and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
2N/A OSF/1 5.1, Solaris 10. */
2N/A myargv[0] = "conftest";
2N/A if (getopt (2, myargv, "+a") != '?')
2N/A /* This code succeeds on glibc 2.8, mingw,
2N/A and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
2N/A IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin
1.5.x. */
2N/A char *argv[] = { "program", "-p", "foo", "bar", NULL };
2N/A if (getopt (4, argv, "p::") != 'p')
2N/A if (getopt (4, argv, "p::") != -1)
2N/A /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
2N/A char *argv[] = { "program", "foo", "-p", NULL };
2N/A if (getopt (3, argv, "-p") != 1)
2N/A if (getopt (3, argv, "-p") != 'p')
2N/A /* This code fails on glibc 2.11. */
2N/A char *argv[] = { "program", "-b", "-a", NULL };
2N/A optind = opterr = 0;
2N/A if (getopt (3, argv, "+:a:b") != 'b')
2N/A if (getopt (3, argv, "+:a:b") != ':')
2N/A [gl_cv_func_getopt_gnu=yes],
2N/A [gl_cv_func_getopt_gnu=no],
2N/A [dnl Cross compiling. Guess based on host and declarations.
2N/A case $host_os:$ac_cv_have_decl_optreset in
2N/A *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
2N/A *:yes) gl_cv_func_getopt_gnu=no;;
2N/A *) gl_cv_func_getopt_gnu=yes;;
2N/A case $gl_had_POSIXLY_CORRECT in
2N/A yes) AS_UNSET([POSIXLY_CORRECT]); POSIXLY_CORRECT=1 ;;
2N/A *) AS_UNSET([POSIXLY_CORRECT]) ;;
2N/A if test "$gl_cv_func_getopt_gnu" = "no"; then
2N/A gl_replace_getopt=yes
2N/A AC_DEFINE([__GETOPT_PREFIX], [[rpl_]],
2N/A [Define to rpl_ if the getopt replacement functions and variables
2N/A AC_SUBST([GETOPT_H])
2N/A AC_CHECK_DECLS_ONCE([getenv])
2N/A dnl Argument checking.
2N/A ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
2N/A [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
2N/A ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old],
2N/A [AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])])
2N/A ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
2N/A [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
2N/A define([gt_included_intl],
2N/A ifelse([$1], [external],
2N/A ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]),
2N/A define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))
2N/A AM_GNU_GETTEXT_NEED([$2])
2N/A AC_REQUIRE([AM_PO_SUBDIRS])dnl
2N/A ifelse(gt_included_intl, yes, [
2N/A AC_REQUIRE([AM_INTL_SUBDIR])dnl
2N/A dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
2N/A AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
2N/A AC_REQUIRE([AC_LIB_RPATH])
2N/A dnl Sometimes libintl requires libiconv, so first search for libiconv.
2N/A dnl Ideally we would do this search only after the
2N/A dnl if test "$USE_NLS" = "yes"; then
2N/A dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
2N/A dnl the configure script would need to contain the same shell code
2N/A dnl again, outside any 'if'. There are two solutions:
2N/A dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
2N/A dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
2N/A dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not
2N/A dnl documented, we avoid it.
2N/A ifelse(gt_included_intl, yes, , [
2N/A AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
2N/A dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation.
2N/A AC_REQUIRE([AM_NLS])
2N/A ifelse(gt_included_intl, yes, [
2N/A BUILD_INCLUDED_LIBINTL=no
2N/A USE_INCLUDED_LIBINTL=no
2N/A dnl Add a version number to the cache macros.
2N/A case " $gt_needs " in
2N/A *" need-formatstring-macros "*) gt_api_version=3 ;;
2N/A *" need-ngettext "*) gt_api_version=2 ;;
2N/A *) gt_api_version=1 ;;
2N/A gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
2N/A gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
2N/A dnl If we use NLS figure out what method
2N/A if test "$USE_NLS" = "yes"; then
2N/A gt_use_preinstalled_gnugettext=no
2N/A ifelse(gt_included_intl, yes, [
2N/A AC_MSG_CHECKING([whether included gettext is requested])
2N/A AC_ARG_WITH([included-gettext],
2N/A [ --with-included-gettext use the GNU gettext library included here],
2N/A nls_cv_force_use_gnu_gettext=$withval,
2N/A nls_cv_force_use_gnu_gettext=no)
2N/A AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext])
2N/A nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2N/A if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2N/A dnl User does not insist on using GNU NLS library. Figure out what
2N/A dnl to use. If GNU gettext is available we use this. Else we have
2N/A dnl to fall back to GNU NLS library.
2N/A if test $gt_api_version -ge 3; then
2N/A gt_revision_test_code='
2N/A#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
2N/A#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
2N/Atypedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
2N/A gt_revision_test_code=
2N/A if test $gt_api_version -ge 2; then
2N/A gt_expression_test_code=' + * ngettext ("", "", 0)'
2N/A gt_expression_test_code=
2N/A AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc],
2N/A$gt_revision_test_code
2N/Aextern int _nl_msg_cat_cntr;
2N/Aextern int *_nl_domain_bindings;
2N/Abindtextdomain ("", "");
2N/Areturn * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
2N/A [eval "$gt_func_gnugettext_libc=yes"],
2N/A [eval "$gt_func_gnugettext_libc=no"])])
2N/A if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
2N/A dnl Sometimes libintl requires libiconv, so first search for libiconv.
2N/A ifelse(gt_included_intl, yes, , [
2N/A dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
2N/A dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
2N/A dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
2N/A dnl even if libiconv doesn't exist.
2N/A AC_LIB_LINKFLAGS_BODY([intl])
2N/A AC_CACHE_CHECK([for GNU gettext in libintl],
2N/A [$gt_func_gnugettext_libintl],
2N/A [gt_save_CPPFLAGS="$CPPFLAGS"
2N/A CPPFLAGS="$CPPFLAGS $INCINTL"
2N/A gt_save_LIBS="$LIBS"
2N/A LIBS="$LIBS $LIBINTL"
2N/A dnl Now see whether libintl exists and does not depend on libiconv.
2N/A$gt_revision_test_code
2N/Aextern int _nl_msg_cat_cntr;
2N/Aconst char *_nl_expand_alias (const char *);
2N/Abindtextdomain ("", "");
2N/Areturn * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
2N/A [eval "$gt_func_gnugettext_libintl=yes"],
2N/A [eval "$gt_func_gnugettext_libintl=no"])
2N/A dnl Now see whether libintl exists and depends on libiconv.
2N/A if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
2N/A LIBS="$LIBS $LIBICONV"
2N/A$gt_revision_test_code
2N/Aextern int _nl_msg_cat_cntr;
2N/Aconst char *_nl_expand_alias (const char *);
2N/Abindtextdomain ("", "");
2N/Areturn * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
2N/A [LIBINTL="$LIBINTL $LIBICONV"
2N/A LTLIBINTL="$LTLIBINTL $LTLIBICONV"
2N/A eval "$gt_func_gnugettext_libintl=yes"
2N/A CPPFLAGS="$gt_save_CPPFLAGS"
2N/A LIBS="$gt_save_LIBS"])
2N/A dnl If an already present or preinstalled GNU gettext() is found,
2N/A dnl use it. But if this macro is used in GNU gettext, and GNU
2N/A dnl gettext is already preinstalled in libintl, we update this
2N/A if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
2N/A || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
2N/A && test "$PACKAGE" != gettext-runtime \
2N/A && test "$PACKAGE" != gettext-tools; }; then
2N/A gt_use_preinstalled_gnugettext=yes
2N/A dnl Reset the values set by searching for libintl.
2N/A ifelse(gt_included_intl, yes, [
2N/A if test "$gt_use_preinstalled_gnugettext" != "yes"; then
2N/A dnl GNU gettext is not found in the C library.
2N/A dnl Fall back on included GNU gettext library.
2N/A nls_cv_use_gnu_gettext=yes
2N/A if test "$nls_cv_use_gnu_gettext" = "yes"; then
2N/A dnl Mark actions used to generate GNU NLS library.
2N/A BUILD_INCLUDED_LIBINTL=yes
2N/A USE_INCLUDED_LIBINTL=yes
2N/A LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD"
2N/A LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD"
2N/A LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2N/A if test "$gt_use_preinstalled_gnugettext" = "yes" \
2N/A || test "$nls_cv_use_gnu_gettext" = "yes"; then
2N/A dnl Mark actions to use GNU gettext tools.
2N/A if test -n "$INTL_MACOSX_LIBS"; then
2N/A if test "$gt_use_preinstalled_gnugettext" = "yes" \
2N/A || test "$nls_cv_use_gnu_gettext" = "yes"; then
2N/A dnl Some extra flags are needed during linking.
2N/A LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
2N/A LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
2N/A if test "$gt_use_preinstalled_gnugettext" = "yes" \
2N/A || test "$nls_cv_use_gnu_gettext" = "yes"; then
2N/A AC_DEFINE([ENABLE_NLS], [1],
2N/A [Define to 1 if translation of program messages to the user's native language
2N/A AC_MSG_CHECKING([whether to use NLS])
2N/A AC_MSG_RESULT([$USE_NLS])
2N/A if test "$USE_NLS" = "yes"; then
2N/A AC_MSG_CHECKING([where the gettext function comes from])
2N/A if test "$gt_use_preinstalled_gnugettext" = "yes"; then
2N/A if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
2N/A gt_source="external libintl"
2N/A gt_source="included intl directory"
2N/A AC_MSG_RESULT([$gt_source])
2N/A if test "$USE_NLS" = "yes"; then
2N/A if test "$gt_use_preinstalled_gnugettext" = "yes"; then
2N/A if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
2N/A AC_MSG_CHECKING([how to link with libintl])
2N/A AC_MSG_RESULT([$LIBINTL])
2N/A AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
2N/A dnl For backward compatibility. Some packages may be using this.
2N/A AC_DEFINE([HAVE_GETTEXT], [1],
2N/A [Define if the GNU gettext() function is already present or preinstalled.])
2N/A AC_DEFINE([HAVE_DCGETTEXT], [1],
2N/A [Define if the GNU dcgettext() function is already present or preinstalled.])
2N/A dnl We need to process the po/ directory.
2N/A ifelse(gt_included_intl, yes, [
2N/A dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
2N/A dnl to 'yes' because some of the testsuite requires it.
2N/A if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
2N/A BUILD_INCLUDED_LIBINTL=yes
2N/A dnl Make all variables we use known to autoconf.
2N/A AC_SUBST([BUILD_INCLUDED_LIBINTL])
2N/A AC_SUBST([USE_INCLUDED_LIBINTL])
2N/A AC_SUBST([CATOBJEXT])
2N/A nls_cv_header_libgt=
2N/A dnl For backward compatibility. Some Makefiles may be using this.
2N/A AC_SUBST([DATADIRNAME])
2N/A dnl For backward compatibility. Some Makefiles may be using this.
2N/A AC_SUBST([INSTOBJEXT])
2N/A dnl For backward compatibility. Some Makefiles may be using this.
2N/A dnl For backward compatibility. Some Makefiles may be using this.
2N/A if test "$USE_INCLUDED_LIBINTL" = yes; then
2N/A INTLOBJS="\$(GETTOBJS)"
2N/A AC_SUBST([INTLOBJS])
2N/A dnl Enable libtool support if the surrounding package wishes it.
2N/A INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
2N/A AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX])
2N/A dnl For backward compatibility. Some Makefiles may be using this.
2N/A AC_SUBST([INTLLIBS])
2N/A dnl Make all documented variables known to autoconf.
2N/A AC_SUBST([LTLIBINTL])
2N/A m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"])
2N/A AC_CACHE_CHECK([whether we are using the GNU C Library 2 or newer],
2N/A [ac_cv_gnu_library_2],
2N/A [AC_EGREP_CPP([Lucky GNU user],
2N/A#ifdef __GNU_LIBRARY__
2N/A #if (__GLIBC__ >= 2)
2N/A [ac_cv_gnu_library_2=yes],
2N/A [ac_cv_gnu_library_2=no])
2N/A GLIBC2="$ac_cv_gnu_library_2"
2N/A AC_CACHE_CHECK([whether we are using the GNU C Library 2.1 or newer],
2N/A [ac_cv_gnu_library_2_1],
2N/A [AC_EGREP_CPP([Lucky GNU user],
2N/A#ifdef __GNU_LIBRARY__
2N/A #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2N/A [ac_cv_gnu_library_2_1=yes],
2N/A [ac_cv_gnu_library_2_1=no])
2N/A GLIBC21="$ac_cv_gnu_library_2_1"
2N/A dnl Use AC_REQUIRE here, so that the code is expanded once only.
2N/A AC_REQUIRE([gl_00GNULIB])
2N/A AC_REQUIRE([gl_COMMON_BODY])
2N/A AH_VERBATIM([isoc99_inline],
2N/A[/* Work around a bug in Apple GCC 4.0.1 build 5465: In C99 mode, it supports
2N/A the ISO C 99 semantics of 'extern inline' (unlike the GNU C semantics of
2N/A earlier versions), but does not display it by setting __GNUC_STDC_INLINE__.
2N/A __APPLE__ && __MACH__ test for MacOS X.
2N/A __APPLE_CC__ tests for the Apple compiler and its version.
2N/A __STDC_VERSION__ tests for the C99 mode. */
2N/A#if defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && !defined __cplusplus && __STDC_VERSION__ >= 199901L && !defined __GNUC_STDC_INLINE__
2N/A# define __GNUC_STDC_INLINE__ 1
2N/A AH_VERBATIM([unused_parameter],
2N/A[/* Define as a marker that can be attached to declarations that might not
2N/A be used. This helps to reduce warnings, such as from
2N/A GCC -Wunused-parameter. */
2N/A#if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
2N/A# define _GL_UNUSED __attribute__ ((__unused__))
2N/A/* The name _UNUSED_PARAMETER_ is an earlier spelling, although the name
2N/A is a misnomer outside of parameter lists. */
2N/A#define _UNUSED_PARAMETER_ _GL_UNUSED
2N/A dnl Preparation for running test programs:
2N/A dnl Tell glibc to write diagnostics from -D_FORTIFY_SOURCE=2 to stderr, not
2N/A dnl to
/dev/tty, so they can be redirected to log files. Such diagnostics
2N/A dnl arise
e.g., in the macros gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N.
2N/A LIBC_FATAL_STDERR_=1
2N/A export LIBC_FATAL_STDERR_
2N/A GNULIB_[]m4_translit([[$1]],
2N/A [abcdefghijklmnopqrstuvwxyz./-],
2N/A [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=gl_MODULE_INDICATOR_CONDITION
2N/A AC_DEFINE_UNQUOTED([GNULIB_]m4_translit([[$1]],
2N/A [abcdefghijklmnopqrstuvwxyz./-],
2N/A [ABCDEFGHIJKLMNOPQRSTUVWXYZ___]),
2N/A [gl_MODULE_INDICATOR_CONDITION],
2N/A [Define to a C preprocessor expression that evaluates to 1 or 0,
2N/A depending whether the gnulib module $1 shall be considered present.])
2N/A AC_DEFINE([GNULIB_TEST_]m4_translit([[$1]],
2N/A [abcdefghijklmnopqrstuvwxyz./-],
2N/A [ABCDEFGHIJKLMNOPQRSTUVWXYZ___]), [1],
2N/A [Define to 1 when the gnulib module $1 should be tested.])
2N/A saved_as_echo_n="$as_echo_n"
2N/A AC_CACHE_VAL([$1], [$2])
2N/A as_echo_n="$saved_as_echo_n"
2N/A m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
2N/A m4_pattern_allow([^gl_ES$])dnl a valid locale name
2N/A m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
2N/A m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
2N/A AC_REQUIRE([AC_PROG_RANLIB])
2N/A # Code from module alloca:
2N/A # Code from module alloca-opt:
2N/A # Code from module arg-nonnull:
2N/A # Code from module argp:
2N/A # Code from module btowc:
2N/A # Code from module c++defs:
2N/A # Code from module configmake:
2N/A # Code from module dirname-lgpl:
2N/A # Code from module double-slash-root:
2N/A # Code from module errno:
2N/A # Code from module error:
2N/A # Code from module extensions:
2N/A AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
2N/A # Code from module float:
2N/A # Code from module fnmatch:
2N/A # Code from module getdelim:
2N/A # Code from module getline:
2N/A # Code from module getopt-gnu:
2N/A # Code from module getopt-posix:
2N/A # Code from module gettext:
2N/A # Code from module gettext-h:
2N/A # Code from module havelib:
2N/A # Code from module include_next:
2N/A # Code from module intprops:
2N/A # Code from module langinfo:
2N/A # Code from module localcharset:
2N/A # Code from module malloc-gnu:
2N/A # Code from module malloc-posix:
2N/A # Code from module mbrtowc:
2N/A # Code from module mbsinit:
2N/A # Code from module mbsrtowcs:
2N/A # Code from module memchr:
2N/A # Code from module mempcpy:
2N/A # Code from module multiarch:
2N/A # Code from module nl_langinfo:
2N/A # Code from module progname:
2N/A # Code from module rawmemchr:
2N/A # Code from module realloc-posix:
2N/A # Code from module regex:
2N/A # Code from module size_max:
2N/A # Code from module sleep:
2N/A # Code from module ssize_t:
2N/A # Code from module stdbool:
2N/A # Code from module stddef:
2N/A # Code from module stdint:
2N/A # Code from module stdio:
2N/A # Code from module stdlib:
2N/A # Code from module strcase:
2N/A # Code from module strchrnul:
2N/A # Code from module streq:
2N/A # Code from module strerror:
2N/A # Code from module string:
2N/A # Code from module strings:
2N/A # Code from module strndup:
2N/A # Code from module strnlen:
2N/A # Code from module strnlen1:
2N/A # Code from module sys_wait:
2N/A # Code from module sysexits:
2N/A # Code from module unistd:
2N/A # Code from module vasnprintf:
2N/A # Code from module verify:
2N/A # Code from module vsnprintf:
2N/A # Code from module warn-on-use:
2N/A # Code from module wchar:
2N/A # Code from module wcrtomb:
2N/A # Code from module wctype:
2N/A # Code from module xsize:
2N/A AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
2N/A gl_cond_libtool=false
2N/A m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
2N/A m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
2N/A m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
2N/A m4_pushdef([gl_LIBSOURCES_LIST], [])
2N/A m4_pushdef([gl_LIBSOURCES_DIR], [])
2N/A # Code from module alloca:
2N/A # Code from module alloca-opt:
2N/A # Code from module arg-nonnull:
2N/A # Code from module argp:
2N/A m4_ifdef([AM_XGETTEXT_OPTION],
2N/A [AM_][XGETTEXT_OPTION([--flag=argp_error:2:c-format])
2N/A AM_][XGETTEXT_OPTION([--flag=argp_failure:4:c-format])])
2N/A # Code from module btowc:
2N/A gl_WCHAR_MODULE_INDICATOR([btowc])
2N/A # Code from module c++defs:
2N/A # Code from module configmake:
2N/A # Code from module dirname-lgpl:
2N/A # Code from module double-slash-root:
2N/A gl_DOUBLE_SLASH_ROOT
2N/A # Code from module errno:
2N/A # Code from module error:
2N/A m4_ifdef([AM_XGETTEXT_OPTION],
2N/A [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
2N/A AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
2N/A # Code from module extensions:
2N/A # Code from module float:
2N/A # Code from module fnmatch:
2N/A gl_FUNC_FNMATCH_POSIX
2N/A # Code from module getdelim:
2N/A gl_STDIO_MODULE_INDICATOR([getdelim])
2N/A # Code from module getline:
2N/A gl_STDIO_MODULE_INDICATOR([getline])
2N/A # Code from module getopt-gnu:
2N/A gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
2N/A # Code from module getopt-posix:
2N/A gl_FUNC_GETOPT_POSIX
2N/A # Code from module gettext:
2N/A AM_GNU_GETTEXT_VERSION([0.18.1])
2N/A # Code from module gettext-h:
2N/A AC_SUBST([LTLIBINTL])
2N/A # Code from module havelib:
2N/A # Code from module include_next:
2N/A # Code from module intprops:
2N/A # Code from module langinfo:
2N/A # Code from module localcharset:
2N/A LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
2N/A AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
2N/A # Code from module malloc-gnu:
2N/A gl_MODULE_INDICATOR([malloc-gnu])
2N/A # Code from module malloc-posix:
2N/A gl_FUNC_MALLOC_POSIX
2N/A gl_STDLIB_MODULE_INDICATOR([malloc-posix])
2N/A # Code from module mbrtowc:
2N/A gl_WCHAR_MODULE_INDICATOR([mbrtowc])
2N/A # Code from module mbsinit:
2N/A gl_WCHAR_MODULE_INDICATOR([mbsinit])
2N/A # Code from module mbsrtowcs:
2N/A gl_WCHAR_MODULE_INDICATOR([mbsrtowcs])
2N/A # Code from module memchr:
2N/A gl_STRING_MODULE_INDICATOR([memchr])
2N/A # Code from module mempcpy:
2N/A gl_STRING_MODULE_INDICATOR([mempcpy])
2N/A # Code from module multiarch:
2N/A # Code from module nl_langinfo:
2N/A gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
2N/A # Code from module progname:
2N/A AC_CHECK_DECLS([program_invocation_name], [], [], [#include <
errno.h>])
2N/A AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <
errno.h>])
2N/A # Code from module rawmemchr:
2N/A gl_STRING_MODULE_INDICATOR([rawmemchr])
2N/A # Code from module realloc-posix:
2N/A gl_FUNC_REALLOC_POSIX
2N/A gl_STDLIB_MODULE_INDICATOR([realloc-posix])
2N/A # Code from module regex:
2N/A # Code from module size_max:
2N/A # Code from module sleep:
2N/A gl_UNISTD_MODULE_INDICATOR([sleep])
2N/A # Code from module ssize_t:
2N/A # Code from module stdbool:
2N/A # Code from module stddef:
2N/A # Code from module stdint:
2N/A # Code from module stdio:
2N/A # Code from module stdlib:
2N/A # Code from module strcase:
2N/A # Code from module strchrnul:
2N/A gl_STRING_MODULE_INDICATOR([strchrnul])
2N/A # Code from module streq:
2N/A # Code from module strerror:
2N/A gl_STRING_MODULE_INDICATOR([strerror])
2N/A # Code from module string:
2N/A # Code from module strings:
2N/A # Code from module strndup:
2N/A gl_STRING_MODULE_INDICATOR([strndup])
2N/A # Code from module strnlen:
2N/A gl_STRING_MODULE_INDICATOR([strnlen])
2N/A # Code from module strnlen1:
2N/A # Code from module sys_wait:
2N/A # Code from module sysexits:
2N/A # Code from module unistd:
2N/A # Code from module vasnprintf:
2N/A # Code from module verify:
2N/A # Code from module vsnprintf:
2N/A gl_STDIO_MODULE_INDICATOR([vsnprintf])
2N/A # Code from module warn-on-use:
2N/A # Code from module wchar:
2N/A # Code from module wcrtomb:
2N/A gl_WCHAR_MODULE_INDICATOR([wcrtomb])
2N/A # Code from module wctype:
2N/A # Code from module xsize:
2N/A # End of code from modules
2N/A m4_ifval(gl_LIBSOURCES_LIST, [
2N/A m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
2N/A for gl_file in ]gl_LIBSOURCES_LIST[ ; do
2N/A if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
2N/A echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
2N/A m4_if(m4_sysval, [0], [],
2N/A [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
2N/A m4_popdef([gl_LIBSOURCES_DIR])
2N/A m4_popdef([gl_LIBSOURCES_LIST])
2N/A m4_popdef([AC_LIBSOURCES])
2N/A m4_popdef([AC_REPLACE_FUNCS])
2N/A m4_popdef([AC_LIBOBJ])
2N/A AC_CONFIG_COMMANDS_PRE([
2N/A if test -n "$gl_LIBOBJS"; then
2N/A # Remove the extension.
2N/A sed_drop_objext='s/\.o$//;s/\.obj$//'
2N/A for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
2N/A gl_libobjs="$gl_libobjs $i.$ac_objext"
2N/A AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
2N/A AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
2N/A m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
2N/A m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
2N/A m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
2N/A m4_pushdef([gltests_LIBSOURCES_LIST], [])
2N/A m4_pushdef([gltests_LIBSOURCES_DIR], [])
2N/A gl_source_base='tests'
2N/A gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
2N/A AC_SUBST([gltests_WITNESS])
2N/A gl_module_indicator_condition=$gltests_WITNESS
2N/A m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
2N/A m4_popdef([gl_MODULE_INDICATOR_CONDITION])
2N/A m4_ifval(gltests_LIBSOURCES_LIST, [
2N/A m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
2N/A for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
2N/A if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
2N/A echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
2N/A m4_if(m4_sysval, [0], [],
2N/A [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
2N/A m4_popdef([gltests_LIBSOURCES_DIR])
2N/A m4_popdef([gltests_LIBSOURCES_LIST])
2N/A m4_popdef([AC_LIBSOURCES])
2N/A m4_popdef([AC_REPLACE_FUNCS])
2N/A m4_popdef([AC_LIBOBJ])
2N/A AC_CONFIG_COMMANDS_PRE([
2N/A if test -n "$gltests_LIBOBJS"; then
2N/A # Remove the extension.
2N/A sed_drop_objext='s/\.o$//;s/\.obj$//'
2N/A for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
2N/A gltests_libobjs="$gltests_libobjs $i.$ac_objext"
2N/A gltests_ltlibobjs="$gltests_ltlibobjs $
i.lo"
2N/A AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
2N/A AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
2N/A LIBGNU_LIBDEPS="$gl_libdeps"
2N/A AC_SUBST([LIBGNU_LIBDEPS])
2N/A LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
2N/A AC_SUBST([LIBGNU_LTLIBDEPS])
2N/A AS_LITERAL_IF([$1], [gl_LIBSOURCES([$
1.c])])dnl
2N/A gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
2N/A m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
2N/A AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
2N/A m4_foreach([_gl_NAME], [$1], [
2N/A m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
2N/A AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$
1.c])])dnl
2N/A gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
2N/A m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
2N/A AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
2N/A m4_foreach([_gl_NAME], [$1], [
2N/A m4_define([gltests_LIBSOURCES_DIR], [tests])
2N/A m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
2N/A dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
2N/A AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
2N/A AC_REQUIRE([AC_LIB_RPATH])
2N/A dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
2N/A AC_LIB_LINKFLAGS_BODY([iconv])
2N/A dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
2N/A dnl those with the standalone portable GNU libiconv installed).
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
2N/A AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
2N/A dnl Add $INCICONV to CPPFLAGS before performing the following checks,
2N/A dnl because if the user has installed libiconv and not disabled its use
2N/A dnl via --without-libiconv-prefix, he wants to use it. The first
2N/A dnl AC_LINK_IFELSE will then fail, the second AC_LINK_IFELSE will succeed.
2N/A am_save_CPPFLAGS="$CPPFLAGS"
2N/A AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
2N/A AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [
2N/A am_cv_func_iconv="no, consider installing GNU libiconv"
2N/A [[iconv_t cd = iconv_open("","");
2N/A iconv(cd,NULL,NULL,NULL,NULL);
2N/A iconv_close(cd);]])],
2N/A [am_cv_func_iconv=yes])
2N/A if test "$am_cv_func_iconv" != yes; then
2N/A am_save_LIBS="$LIBS"
2N/A LIBS="$LIBS $LIBICONV"
2N/A [[iconv_t cd = iconv_open("","");
2N/A iconv(cd,NULL,NULL,NULL,NULL);
2N/A iconv_close(cd);]])],
2N/A [am_cv_lib_iconv=yes]
2N/A [am_cv_func_iconv=yes])
2N/A LIBS="$am_save_LIBS"
2N/A if test "$am_cv_func_iconv" = yes; then
2N/A AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [
2N/A dnl This tests against bugs in AIX 5.1, AIX 6.1..7.1, HP-UX 11.11,
2N/A am_save_LIBS="$LIBS"
2N/A if test $am_cv_lib_iconv = yes; then
2N/A LIBS="$LIBS $LIBICONV"
2N/A /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
2N/A iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
2N/A if (cd_utf8_to_88591 != (iconv_t)(-1))
2N/A static const char input[] = "\342\202\254"; /* EURO SIGN */
2N/A const char *inptr = input;
2N/A size_t inbytesleft = strlen (input);
2N/A size_t outbytesleft = sizeof (buf);
2N/A size_t res = iconv (cd_utf8_to_88591,
2N/A (char **) &inptr, &inbytesleft,
2N/A &outptr, &outbytesleft);
2N/A /* Test against Solaris 10 bug: Failures are not distinguishable from
2N/A successful returns. */
2N/A iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
2N/A if (cd_ascii_to_88591 != (iconv_t)(-1))
2N/A static const char input[] = "\263";
2N/A const char *inptr = input;
2N/A size_t inbytesleft = strlen (input);
2N/A size_t outbytesleft = sizeof (buf);
2N/A size_t res = iconv (cd_ascii_to_88591,
2N/A (char **) &inptr, &inbytesleft,
2N/A &outptr, &outbytesleft);
2N/A /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
2N/A iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
2N/A if (cd_88591_to_utf8 != (iconv_t)(-1))
2N/A static const char input[] = "\304";
2N/A static char buf[2] = { (char)0xDE, (char)0xAD };
2N/A const char *inptr = input;
2N/A size_t inbytesleft = 1;
2N/A size_t outbytesleft = 1;
2N/A size_t res = iconv (cd_88591_to_utf8,
2N/A (char **) &inptr, &inbytesleft,
2N/A &outptr, &outbytesleft);
2N/A if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
2N/A#if 0 /* This bug could be worked around by the caller. */
2N/A /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
2N/A iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
2N/A if (cd_88591_to_utf8 != (iconv_t)(-1))
2N/A static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
2N/A const char *inptr = input;
2N/A size_t inbytesleft = strlen (input);
2N/A size_t outbytesleft = sizeof (buf);
2N/A size_t res = iconv (cd_88591_to_utf8,
2N/A (char **) &inptr, &inbytesleft,
2N/A &outptr, &outbytesleft);
2N/A /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
2N/A if (/* Try standardized names. */
2N/A iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
2N/A /* Try IRIX, OSF/1 names. */
2N/A && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
2N/A /* Try AIX names. */
2N/A && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
2N/A /* Try HP-UX names. */
2N/A && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
2N/A [am_cv_func_iconv_works=yes],
2N/A [am_cv_func_iconv_works=no],
2N/A aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
2N/A *) am_cv_func_iconv_works="guessing yes" ;;
2N/A LIBS="$am_save_LIBS"
2N/A case "$am_cv_func_iconv_works" in
2N/A *no) am_func_iconv=no am_cv_lib_iconv=no ;;
2N/A *) am_func_iconv=yes ;;
2N/A am_func_iconv=no am_cv_lib_iconv=no
2N/A if test "$am_func_iconv" = yes; then
2N/A AC_DEFINE([HAVE_ICONV], [1],
2N/A [Define if you have the iconv() function and it works.])
2N/A if test "$am_cv_lib_iconv" = yes; then
2N/A AC_MSG_CHECKING([how to link with libiconv])
2N/A AC_MSG_RESULT([$LIBICONV])
2N/A dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
2N/A CPPFLAGS="$am_save_CPPFLAGS"
2N/A AC_SUBST([LIBICONV])
2N/A AC_SUBST([LTLIBICONV])
2N/A if test "$am_cv_func_iconv" = yes; then
2N/A AC_MSG_CHECKING([for iconv declaration])
2N/A AC_CACHE_VAL([am_cv_proto_iconv], [
2N/A#if defined(__STDC__) || defined(__cplusplus)
2N/Asize_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2N/A [am_cv_proto_iconv_arg1=""],
2N/A [am_cv_proto_iconv_arg1="const"])
2N/A am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
2N/A am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2N/A $am_cv_proto_iconv])
2N/A AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1],
2N/A [Define as const if the declaration of iconv() needs const.])
2N/Am4trace:
m4/iconv.m4:225: -1- AC_DEFUN([AM_ICONV], [AC_REQUIRE([_gl_DEFUN_ONCE([AM_ICONV])],
2N/A [m4_indir([_gl_DEFUN_ONCE([AM_ICONV])])])])
2N/A if test "$am_cv_func_iconv" = yes; then
2N/A AC_MSG_CHECKING([for iconv declaration])
2N/A AC_CACHE_VAL([am_cv_proto_iconv], [
2N/A#if defined(__STDC__) || defined(__cplusplus)
2N/Asize_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2N/A [am_cv_proto_iconv_arg1=""],
2N/A [am_cv_proto_iconv_arg1="const"])
2N/A am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
2N/A am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2N/A $am_cv_proto_iconv])
2N/A AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1],
2N/A [Define as const if the declaration of iconv() needs const.])
2N/A AC_LANG_PREPROC_REQUIRE()
2N/A AC_CACHE_CHECK([whether the preprocessor supports include_next],
2N/A [gl_cv_have_include_next],
2N/A [rm -rf conftestd1a conftestd1b conftestd2
2N/A mkdir conftestd1a conftestd1b conftestd2
2N/A dnl IBM C 9.0, 10.1 (original versions, prior to the 2009-01 updates) on
2N/A dnl AIX 6.1 support include_next when used as first preprocessor directive
2N/A dnl in a file, but not when preceded by another include directive. Check
2N/A dnl Additionally, with this same compiler, include_next is a no-op when
2N/A dnl used in a header file that was included by specifying its absolute
2N/A dnl file name. Despite these two bugs, include_next is used in the
2N/A dnl compiler's <
math.h>. By virtue of the second bug, we need to use
2N/A dnl include_next as well in this case.
2N/A#define DEFINED_IN_CONFTESTD1
2N/A#ifdef DEFINED_IN_CONFTESTD2
2N/A#error "include_next doesn't work"
2N/A#define DEFINED_IN_CONFTESTD1
2N/A#ifdef DEFINED_IN_CONFTESTD2
2N/A#error "include_next doesn't work"
2N/A#ifndef DEFINED_IN_CONFTESTD1
2N/A#error "include_next test doesn't work"
2N/A#define DEFINED_IN_CONFTESTD2
2N/A gl_save_CPPFLAGS="$CPPFLAGS"
2N/A CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
2N/Adnl We intentionally avoid using AC_LANG_SOURCE here.
2N/A AC_COMPILE_IFELSE([AC_LANG_DEFINES_PROVIDED[#include <
conftest.h>]],
2N/A [gl_cv_have_include_next=yes],
2N/A [CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
2N/A AC_COMPILE_IFELSE([AC_LANG_DEFINES_PROVIDED[#include <
conftest.h>]],
2N/A [gl_cv_have_include_next=buggy],
2N/A [gl_cv_have_include_next=no])
2N/A CPPFLAGS="$gl_save_CPPFLAGS"
2N/A rm -rf conftestd1a conftestd1b conftestd2
2N/A PRAGMA_SYSTEM_HEADER=
2N/A if test $gl_cv_have_include_next = yes; then
2N/A INCLUDE_NEXT=include_next
2N/A INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
2N/A if test -n "$GCC"; then
2N/A PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
2N/A if test $gl_cv_have_include_next = buggy; then
2N/A INCLUDE_NEXT=include
2N/A INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
2N/A INCLUDE_NEXT=include
2N/A INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
2N/A AC_SUBST([INCLUDE_NEXT])
2N/A AC_SUBST([INCLUDE_NEXT_AS_FIRST_DIRECTIVE])
2N/A AC_SUBST([PRAGMA_SYSTEM_HEADER])
2N/A AC_REQUIRE([gl_INCLUDE_NEXT])
2N/A AC_REQUIRE([AC_CANONICAL_HOST])
2N/A AC_CHECK_HEADERS_ONCE([$1])
2N/A m4_foreach_w([gl_HEADER_NAME], [$1],
2N/A [AS_VAR_PUSHDEF([gl_next_header],
2N/A [gl_cv_next_]m4_defn([gl_HEADER_NAME]))
2N/A if test $gl_cv_have_include_next = yes; then
2N/A AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>'])
2N/A [absolute name of <]m4_defn([gl_HEADER_NAME])[>],
2N/A m4_defn([gl_next_header]),
2N/A [AS_VAR_PUSHDEF([gl_header_exists],
2N/A [ac_cv_header_]m4_defn([gl_HEADER_NAME]))
2N/A if test AS_VAR_GET(gl_header_exists) = yes; then
2N/A [[#include <]]m4_dquote(m4_defn([gl_HEADER_NAME]))[[>]]
2N/A dnl AIX "xlc -E" and "cc -E" omit #line directives for header files
2N/A dnl that contain only a #include of other header files and no
2N/A dnl non-comment tokens of their own. This leads to a failure to
2N/A dnl and others. The workaround is to force preservation of comments
2N/A dnl through option -C. This ensures all necessary #line directives
2N/A dnl are present. GCC supports option -C as well.
2N/A aix*) gl_absname_cpp="$ac_cpp -C" ;;
2N/A *) gl_absname_cpp="$ac_cpp" ;;
2N/A dnl eval is necessary to expand gl_absname_cpp.
2N/A dnl Ultrix and Pyramid sh refuse to redirect output of eval,
2N/A dnl so use subshell.
2N/A AS_VAR_SET([gl_next_header],
2N/A ['"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD |
2N/A sed -n '\#/]m4_defn([gl_HEADER_NAME])[#{
2N/A s#.*"\(.*/]m4_defn([gl_HEADER_NAME])[\)".*#\1#
2N/A AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>'])
2N/A AS_VAR_POPDEF([gl_header_exists])])
2N/A AS_TR_CPP([NEXT_]m4_defn([gl_HEADER_NAME])),
2N/A [AS_VAR_GET([gl_next_header])])
2N/A if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
2N/A gl_next_as_first_directive='<'gl_HEADER_NAME'>'
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
2N/A gl_next_as_first_directive=AS_VAR_GET([gl_next_header])
2N/A AS_TR_CPP([NEXT_AS_FIRST_DIRECTIVE_]m4_defn([gl_HEADER_NAME])),
2N/A [$gl_next_as_first_directive])
2N/A AS_VAR_POPDEF([gl_next_header])])
2N/A AC_REQUIRE([AC_PROG_CC])dnl
2N/A AC_REQUIRE([AC_CANONICAL_HOST])dnl
2N/A AC_CACHE_CHECK([whether integer division by zero raises SIGFPE],
2N/A gt_cv_int_divbyzero_sigfpe,
2N/A gt_cv_int_divbyzero_sigfpe=
2N/A macos* | darwin[6-9]* | darwin[1-9][0-9]*)
2N/A # On MacOS X 10.2 or newer, just assume the same as when cross-
2N/A # compiling. If we were to perform the real test, 1 Crash Report
2N/A # dialog window would pop up.
2N/A i[34567]86 | x86_64)
2N/A gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
2N/A if test -z "$gt_cv_int_divbyzero_sigfpe"; then
2N/Asigfpe_handler (int sig)
2N/A /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
2N/A exit (sig != SIGFPE);
2N/A signal (SIGFPE, sigfpe_handler);
2N/A/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
2N/A#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
2N/A signal (SIGTRAP, sigfpe_handler);
2N/A#if defined (__sparc__) && defined (__linux__)
2N/A signal (SIGILL, sigfpe_handler);
2N/A [gt_cv_int_divbyzero_sigfpe=yes],
2N/A [gt_cv_int_divbyzero_sigfpe=no],
2N/A # Guess based on the CPU.
2N/A alpha* | i[34567]86 | x86_64 | m68k | s390*)
2N/A gt_cv_int_divbyzero_sigfpe="guessing yes";;
2N/A gt_cv_int_divbyzero_sigfpe="guessing no";;
2N/A case "$gt_cv_int_divbyzero_sigfpe" in
2N/A AC_DEFINE_UNQUOTED([INTDIV0_RAISES_SIGFPE], [$value],
2N/A [Define if integer division by zero raises signal SIGFPE.])
2N/A AC_REQUIRE([AC_PROG_INSTALL])dnl
2N/A AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
2N/A AC_REQUIRE([AC_PROG_CC])dnl
2N/A AC_REQUIRE([AC_CANONICAL_HOST])dnl
2N/A AC_REQUIRE([gt_GLIBC2])dnl
2N/A AC_REQUIRE([AC_PROG_RANLIB])dnl
2N/A AC_REQUIRE([gl_VISIBILITY])dnl
2N/A AC_REQUIRE([gt_INTL_SUBDIR_CORE])dnl
2N/A AC_REQUIRE([AC_TYPE_LONG_LONG_INT])dnl
2N/A AC_REQUIRE([gt_TYPE_WCHAR_T])dnl
2N/A AC_REQUIRE([gt_TYPE_WINT_T])dnl
2N/A AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
2N/A AC_REQUIRE([gt_TYPE_INTMAX_T])
2N/A AC_REQUIRE([gt_PRINTF_POSIX])
2N/A AC_REQUIRE([gl_GLIBC21])dnl
2N/A AC_REQUIRE([gl_XSIZE])dnl
2N/A AC_REQUIRE([gl_FCNTL_O_FLAGS])dnl
2N/A AC_REQUIRE([gt_INTL_MACOSX])dnl
2N/A dnl Support for automake's --enable-silent-rules.
2N/A case "$enable_silent_rules" in
2N/A yes) INTL_DEFAULT_VERBOSITY=0;;
2N/A no) INTL_DEFAULT_VERBOSITY=1;;
2N/A *) INTL_DEFAULT_VERBOSITY=1;;
2N/A AC_SUBST([INTL_DEFAULT_VERBOSITY])
2N/A AC_CHECK_TYPE([ptrdiff_t], ,
2N/A [AC_DEFINE([ptrdiff_t], [long],
2N/A [Define as the type of the result of subtracting two pointers, if the system doesn't define it.])
2N/A AC_CHECK_FUNCS([asprintf fwprintf newlocale putenv setenv setlocale \
2N/A snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb])
2N/A dnl Use the _snprintf function only if it is declared (because on NetBSD it
2N/A dnl is defined as a weak alias of snprintf; we prefer to use the latter).
2N/A dnl Use the *_unlocked functions only if they are declared.
2N/A dnl (because some of them were defined without being declared in Solaris
2N/A dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built
2N/A dnl on Solaris 2.5.1 to run on Solaris 2.6).
2N/A dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13.
2N/A gt_CHECK_DECL(getc_unlocked, [#include <
stdio.h>])
2N/A case $gt_cv_func_printf_posix in
2N/A *yes) HAVE_POSIX_PRINTF=1 ;;
2N/A *) HAVE_POSIX_PRINTF=0 ;;
2N/A AC_SUBST([HAVE_POSIX_PRINTF])
2N/A if test "$ac_cv_func_asprintf" = yes; then
2N/A AC_SUBST([HAVE_ASPRINTF])
2N/A if test "$ac_cv_func_snprintf" = yes; then
2N/A AC_SUBST([HAVE_SNPRINTF])
2N/A if test "$ac_cv_func_newlocale" = yes; then
2N/A AC_SUBST([HAVE_NEWLOCALE])
2N/A if test "$ac_cv_func_wprintf" = yes; then
2N/A AC_SUBST([HAVE_WPRINTF])
2N/A dnl Compilation on mingw and Cygwin needs special Makefile rules, because
2N/A dnl 1. when we install a shared library, we must arrange to export
2N/A dnl auxiliary pointer variables for every exported variable,
2N/A dnl 2. when we install a shared library and a static library simultaneously,
2N/A dnl the include file specifies __declspec(dllimport) and therefore we
2N/A dnl must arrange to define the auxiliary pointer variables for the
2N/A dnl exported variables _also_ in the static library.
2N/A if test "$enable_shared" = yes; then
2N/A mingw* | cygwin*) is_woe32dll=yes ;;
2N/A *) is_woe32dll=no ;;
2N/A WOE32DLL=$is_woe32dll
2N/A AC_SUBST([WOE32DLL])
2N/A dnl On mingw and Cygwin, we can activate special Makefile rules which add
2N/A dnl version information to the shared libraries and executables.
2N/A mingw* | cygwin*) is_woe32=yes ;;
2N/A if test $WOE32 = yes; then
2N/A dnl Check for a program that compiles Windows resource files.
2N/A AC_CHECK_TOOL([WINDRES], [windres])
2N/A dnl Determine whether when creating a library, "-lc" should be passed to
2N/A dnl libtool or not. On many platforms, it is required for the libtool option
2N/A dnl -no-undefined to work. On HP-UX, however, the -lc - stored by libtool
2N/A dnl in the *.la files - makes it impossible to create multithreaded programs,
2N/A dnl because libtool also reorders the -lc to come before the -pthread, and
2N/A dnl Rename some macros and functions used for locking.
2N/A#define __libc_lock_t gl_lock_t
2N/A#define __libc_lock_define gl_lock_define
2N/A#define __libc_lock_define_initialized gl_lock_define_initialized
2N/A#define __libc_lock_init gl_lock_init
2N/A#define __libc_lock_lock gl_lock_lock
2N/A#define __libc_lock_unlock gl_lock_unlock
2N/A#define __libc_lock_recursive_t gl_recursive_lock_t
2N/A#define __libc_lock_define_recursive gl_recursive_lock_define
2N/A#define __libc_lock_define_initialized_recursive gl_recursive_lock_define_initialized
2N/A#define __libc_lock_init_recursive gl_recursive_lock_init
2N/A#define __libc_lock_lock_recursive gl_recursive_lock_lock
2N/A#define __libc_lock_unlock_recursive gl_recursive_lock_unlock
2N/A#define glthread_in_use libintl_thread_in_use
2N/A#define glthread_lock_init_func libintl_lock_init_func
2N/A#define glthread_lock_lock_func libintl_lock_lock_func
2N/A#define glthread_lock_unlock_func libintl_lock_unlock_func
2N/A#define glthread_lock_destroy_func libintl_lock_destroy_func
2N/A#define glthread_rwlock_init_multithreaded libintl_rwlock_init_multithreaded
2N/A#define glthread_rwlock_init_func libintl_rwlock_init_func
2N/A#define glthread_rwlock_rdlock_multithreaded libintl_rwlock_rdlock_multithreaded
2N/A#define glthread_rwlock_rdlock_func libintl_rwlock_rdlock_func
2N/A#define glthread_rwlock_wrlock_multithreaded libintl_rwlock_wrlock_multithreaded
2N/A#define glthread_rwlock_wrlock_func libintl_rwlock_wrlock_func
2N/A#define glthread_rwlock_unlock_multithreaded libintl_rwlock_unlock_multithreaded
2N/A#define glthread_rwlock_unlock_func libintl_rwlock_unlock_func
2N/A#define glthread_rwlock_destroy_multithreaded libintl_rwlock_destroy_multithreaded
2N/A#define glthread_rwlock_destroy_func libintl_rwlock_destroy_func
2N/A#define glthread_recursive_lock_init_multithreaded libintl_recursive_lock_init_multithreaded
2N/A#define glthread_recursive_lock_init_func libintl_recursive_lock_init_func
2N/A#define glthread_recursive_lock_lock_multithreaded libintl_recursive_lock_lock_multithreaded
2N/A#define glthread_recursive_lock_lock_func libintl_recursive_lock_lock_func
2N/A#define glthread_recursive_lock_unlock_multithreaded libintl_recursive_lock_unlock_multithreaded
2N/A#define glthread_recursive_lock_unlock_func libintl_recursive_lock_unlock_func
2N/A#define glthread_recursive_lock_destroy_multithreaded libintl_recursive_lock_destroy_multithreaded
2N/A#define glthread_recursive_lock_destroy_func libintl_recursive_lock_destroy_func
2N/A#define glthread_once_func libintl_once_func
2N/A#define glthread_once_singlethreaded libintl_once_singlethreaded
2N/A#define glthread_once_multithreaded libintl_once_multithreaded
2N/A AC_REQUIRE([AC_C_INLINE])dnl
2N/A AC_REQUIRE([AC_TYPE_SIZE_T])dnl
2N/A AC_REQUIRE([gl_AC_HEADER_STDINT_H])
2N/A AC_REQUIRE([AC_FUNC_ALLOCA])dnl
2N/A AC_REQUIRE([AC_FUNC_MMAP])dnl
2N/A AC_REQUIRE([gt_INTDIV0])dnl
2N/A AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl
2N/A AC_REQUIRE([gt_INTTYPES_PRI])dnl
2N/A AC_REQUIRE([gl_LOCK])dnl
2N/A [[int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }]],
2N/A [AC_DEFINE([HAVE_BUILTIN_EXPECT], [1],
2N/A [Define to 1 if the compiler understands __builtin_expect.])])
2N/A AC_CHECK_FUNCS([getcwd getegid geteuid getgid getuid mempcpy munmap \
2N/A stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
2N/A argz_stringify argz_next __fsetlocking])
2N/A dnl Use the *_unlocked functions only if they are declared.
2N/A dnl (because some of them were defined without being declared in Solaris
2N/A dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built
2N/A dnl on Solaris 2.5.1 to run on Solaris 2.6).
2N/A dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13.
2N/A gt_CHECK_DECL([feof_unlocked], [#include <
stdio.h>])
2N/A gt_CHECK_DECL([fgets_unlocked], [#include <
stdio.h>])
2N/A dnl because
plural.y uses bison specific features. It requires at least
2N/A dnl bison-1.26 because earlier versions generate a
plural.c that doesn't
2N/A dnl bison is only needed for the maintainer (who touches
plural.y). But in
2N/A dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put
2N/A dnl the rule in general Makefile. Now, some people carelessly touch the
2N/A dnl files or have a broken "make" program, hence the
plural.c rule will
2N/A dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not
2N/A dnl present or too old.
2N/A AC_CHECK_PROGS([INTLBISON], [bison])
2N/A if test -z "$INTLBISON"; then
2N/A dnl Found it, now check the version.
2N/A AC_MSG_CHECKING([version of bison])
2N/Achangequote(<<,>>)dnl
2N/A ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2N/A case $ac_prog_version in
2N/A '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2N/A 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
2N/A ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2N/A *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2N/A AC_MSG_RESULT([$ac_prog_version])
2N/A if test $ac_verc_fail = yes; then
2N/A AC_CACHE_CHECK([whether $1 is declared], [ac_cv_have_decl_$1],
2N/A char *p = (char *) $1;
2N/A [ac_cv_have_decl_$1=yes],
2N/A [ac_cv_have_decl_$1=no])])
2N/A if test $ac_cv_have_decl_$1 = yes; then
2N/A AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value],
2N/A [Define to 1 if you have the declaration of `$1', and to 0 if you don't.])
2N/A dnl Check for API introduced in MacOS X 10.2.
2N/A AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
2N/A [gt_cv_func_CFPreferencesCopyAppValue],
2N/A [gt_save_LIBS="$LIBS"
2N/A LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
2N/A [[CFPreferencesCopyAppValue(NULL, NULL)]])],
2N/A [gt_cv_func_CFPreferencesCopyAppValue=yes],
2N/A [gt_cv_func_CFPreferencesCopyAppValue=no])
2N/A LIBS="$gt_save_LIBS"])
2N/A if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
2N/A AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1],
2N/A [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
2N/A dnl Check for API introduced in MacOS X 10.3.
2N/A AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent],
2N/A [gt_save_LIBS="$LIBS"
2N/A LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
2N/A [[CFLocaleCopyCurrent();]])],
2N/A [gt_cv_func_CFLocaleCopyCurrent=yes],
2N/A [gt_cv_func_CFLocaleCopyCurrent=no])
2N/A LIBS="$gt_save_LIBS"])
2N/A if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
2N/A AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1],
2N/A [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
2N/A if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
2N/A INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
2N/A AC_SUBST([INTL_MACOSX_LIBS])
2N/A AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
2N/A AC_REQUIRE([gl_AC_HEADER_STDINT_H])
2N/A AC_CACHE_CHECK([for intmax_t], [gt_cv_c_intmax_t],
2N/A#if HAVE_STDINT_H_WITH_UINTMAX
2N/A#if HAVE_INTTYPES_H_WITH_UINTMAX
2N/A [gt_cv_c_intmax_t=yes],
2N/A [gt_cv_c_intmax_t=no])])
2N/A if test $gt_cv_c_intmax_t = yes; then
2N/A AC_DEFINE([HAVE_INTMAX_T], [1],
2N/A dnl For simplicity, we assume that a header file defines 'intmax_t' if and
2N/A dnl only if it defines 'uintmax_t'.
2N/A AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
2N/A AC_REQUIRE([gl_AC_HEADER_STDINT_H])
2N/A if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
2N/A AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
2N/A test $ac_cv_type_long_long_int = yes \
2N/A && ac_type='long long' \
2N/A AC_DEFINE_UNQUOTED([intmax_t], [$ac_type],
2N/A AC_DEFINE([HAVE_INTMAX_T], [1],
2N/A AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
2N/A AC_REQUIRE([gl_AC_HEADER_STDINT_H])
2N/A AC_CACHE_CHECK([for intmax_t], [gt_cv_c_intmax_t],
2N/A#if HAVE_STDINT_H_WITH_UINTMAX
2N/A#if HAVE_INTTYPES_H_WITH_UINTMAX
2N/A [[intmax_t x = -1; return !x;]])],
2N/A [gt_cv_c_intmax_t=yes],
2N/A [gt_cv_c_intmax_t=no])])
2N/A if test $gt_cv_c_intmax_t = yes; then
2N/A AC_DEFINE([HAVE_INTMAX_T], [1],
2N/A AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
2N/A test $ac_cv_type_long_long_int = yes \
2N/A && ac_type='long long' \
2N/A AC_DEFINE_UNQUOTED([intmax_t], [$ac_type],
2N/A if test $ac_cv_header_inttypes_h = yes; then
2N/A AC_CACHE_CHECK([whether the
inttypes.h PRIxNN macros are broken],
2N/A [gt_cv_inttypes_pri_broken],
2N/A [gt_cv_inttypes_pri_broken=no],
2N/A [gt_cv_inttypes_pri_broken=yes])
2N/A if test "$gt_cv_inttypes_pri_broken" = yes; then
2N/A AC_DEFINE_UNQUOTED([PRI_MACROS_BROKEN], [1],
2N/A [Define if <
inttypes.h> exists and defines unusable PRI* macros.])
2N/A AC_SUBST([PRI_MACROS_BROKEN])
2N/A [[uintmax_t i = (uintmax_t) -1; return !i;]])],
2N/A [gl_cv_header_inttypes_h=yes],
2N/A [gl_cv_header_inttypes_h=no])])
2N/A if test $gl_cv_header_inttypes_h = yes; then
2N/A AC_DEFINE_UNQUOTED([HAVE_INTTYPES_H_WITH_UINTMAX], [1],
2N/A and declares uintmax_t. ])
2N/A AC_REQUIRE([gl_LANGINFO_H_DEFAULTS])
2N/A AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
2N/A dnl <
langinfo.h> is always overridden, because of GNULIB_POSIXCHECK.
2N/A dnl Determine whether <
langinfo.h> exists. It is missing on mingw and BeOS.
2N/A HAVE_LANGINFO_CODESET=0
2N/A HAVE_LANGINFO_T_FMT_AMPM=0
2N/A HAVE_LANGINFO_YESEXPR=0
2N/A if test $ac_cv_header_langinfo_h = yes; then
2N/A dnl Determine what <
langinfo.h> defines. CODESET and ERA etc. are missing
2N/A dnl on OpenBSD 3.8. T_FMT_AMPM and YESEXPR, NOEXPR are missing on IRIX 5.3.
2N/A [gl_cv_header_langinfo_codeset],
2N/A [gl_cv_header_langinfo_codeset=yes],
2N/A [gl_cv_header_langinfo_codeset=no])
2N/A if test $gl_cv_header_langinfo_codeset = yes; then
2N/A HAVE_LANGINFO_CODESET=1
2N/A [gl_cv_header_langinfo_t_fmt_ampm],
2N/A [gl_cv_header_langinfo_t_fmt_ampm=yes],
2N/A [gl_cv_header_langinfo_t_fmt_ampm=no])
2N/A if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
2N/A HAVE_LANGINFO_T_FMT_AMPM=1
2N/A [gl_cv_header_langinfo_era],
2N/A [gl_cv_header_langinfo_era=yes],
2N/A [gl_cv_header_langinfo_era=no])
2N/A if test $gl_cv_header_langinfo_era = yes; then
2N/A [gl_cv_header_langinfo_yesexpr],
2N/A [gl_cv_header_langinfo_yesexpr=yes],
2N/A [gl_cv_header_langinfo_yesexpr=no])
2N/A if test $gl_cv_header_langinfo_yesexpr = yes; then
2N/A HAVE_LANGINFO_YESEXPR=1
2N/A AC_SUBST([HAVE_LANGINFO_H])
2N/A AC_SUBST([HAVE_LANGINFO_CODESET])
2N/A AC_SUBST([HAVE_LANGINFO_T_FMT_AMPM])
2N/A AC_SUBST([HAVE_LANGINFO_ERA])
2N/A AC_SUBST([HAVE_LANGINFO_YESEXPR])
2N/A dnl Check for declarations of anything we want to poison if the
2N/A dnl corresponding gnulib module is not in use.
2N/A dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
2N/A AC_REQUIRE([gl_LANGINFO_H_DEFAULTS])
2N/A gl_MODULE_INDICATOR_SET_VARIABLE([$1])
2N/A dnl Define it also as a C macro, for the benefit of the unit tests.
2N/A gl_MODULE_INDICATOR_FOR_TESTS([$1])
2N/A GNULIB_NL_LANGINFO=0; AC_SUBST([GNULIB_NL_LANGINFO])
2N/A dnl Assume proper GNU behavior unless another module says otherwise.
2N/A HAVE_NL_LANGINFO=1; AC_SUBST([HAVE_NL_LANGINFO])
2N/A REPLACE_NL_LANGINFO=0; AC_SUBST([REPLACE_NL_LANGINFO])
2N/A AC_CACHE_CHECK([for LC_MESSAGES], [gt_cv_val_LC_MESSAGES],
2N/A [[return LC_MESSAGES]])],
2N/A [gt_cv_val_LC_MESSAGES=yes],
2N/A [gt_cv_val_LC_MESSAGES=no])])
2N/A if test $gt_cv_val_LC_MESSAGES = yes; then
2N/A AC_DEFINE([HAVE_LC_MESSAGES], [1],
2N/Am4trace:
m4/lib-ld.m4:12: -1- AC_DEFUN([AC_LIB_PROG_LD_GNU], [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld],
2N/A[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
2N/A*GNU* | *'with BFD'*)
2N/A acl_cv_prog_gnu_ld=yes ;;
2N/A acl_cv_prog_gnu_ld=no ;;
2N/Awith_gnu_ld=$acl_cv_prog_gnu_ld
2N/Am4trace:
m4/lib-ld.m4:25: -1- AC_DEFUN([AC_LIB_PROG_LD], [AC_ARG_WITH([gnu-ld],
2N/A[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
2N/Atest "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
2N/AAC_REQUIRE([AC_PROG_CC])dnl
2N/AAC_REQUIRE([AC_CANONICAL_HOST])dnl
2N/A# Prepare PATH_SEPARATOR.
2N/A# The user is always right.
2N/Aif test "${PATH_SEPARATOR+set}" != set; then
2N/A # Determine PATH_SEPARATOR by trying to find
/bin/sh in a PATH which
2N/A # contains only /bin. Note that ksh looks also at the FPATH variable,
2N/A # so we have to set that as well for the test.
2N/A && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >
/dev/null 2>&1 \
2N/A || PATH_SEPARATOR=';'
2N/Aif test "$GCC" = yes; then
2N/A # Check if gcc -print-prog-name=ld gives a path.
2N/A AC_MSG_CHECKING([for ld used by GCC])
2N/A # gcc leaves a trailing carriage return which upsets mingw
2N/A ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2N/A ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2N/A # Accept absolute paths.
2N/A [[\\/]* | [A-Za-z]:[\\/]*)]
2N/A [re_direlt='/[^/][^/]*/\.\./']
2N/A # Canonicalize the path of ld
2N/A ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2N/A while echo $ac_prog | grep "$re_direlt" >
/dev/null 2>&1; do
2N/A ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2N/A test -z "$LD" && LD="$ac_prog"
2N/A # If it fails, then pretend we aren't using GCC.
2N/A # If it is relative, then search for the first ld in PATH.
2N/Aelif test "$with_gnu_ld" = yes; then
2N/A AC_MSG_CHECKING([for GNU ld])
2N/A AC_MSG_CHECKING([for non-GNU ld])
2N/AAC_CACHE_VAL([acl_cv_path_LD],
2N/A[if test -z "$LD"; then
2N/A IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2N/A for ac_dir in $PATH; do
2N/A test -z "$ac_dir" && ac_dir=.
2N/A if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2N/A acl_cv_path_LD="$ac_dir/$ac_prog"
2N/A # Check to see if the program is GNU ld. I'd rather use --version,
2N/A # but apparently some GNU ld's only accept -v.
2N/A *GNU* | *'with BFD'*)
2N/A test "$with_gnu_ld" != no && break ;;
2N/A test "$with_gnu_ld" != yes && break ;;
2N/A acl_cv_path_LD="$LD" # Let the user override the test with a path.
2N/Aif test -n "$LD"; then
2N/A AC_MSG_RESULT([$LD])
2N/Atest -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2N/A AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
2N/A AC_REQUIRE([AC_LIB_RPATH])
2N/A pushdef([Name],[m4_translit([$1],[./+-], [____])])
2N/A pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
2N/A [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
2N/A AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
2N/A AC_LIB_LINKFLAGS_BODY([$1], [$2])
2N/A ac_cv_lib[]Name[]_libs="$LIB[]NAME"
2N/A ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
2N/A ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
2N/A ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX"
2N/A LIB[]NAME="$ac_cv_lib[]Name[]_libs"
2N/A LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
2N/A INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
2N/A LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix"
2N/A AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
2N/A AC_SUBST([LTLIB]NAME)
2N/A AC_SUBST([LIB]NAME[_PREFIX])
2N/A dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
2N/A dnl results of this search when this library appears as a dependency.
2N/A AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
2N/A AC_REQUIRE([AC_LIB_RPATH])
2N/A pushdef([Name],[m4_translit([$1],[./+-], [____])])
2N/A pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
2N/A [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
2N/A dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
2N/A AC_LIB_LINKFLAGS_BODY([$1], [$2])
2N/A dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
2N/A dnl because if the user has installed lib[]Name and not disabled its use
2N/A dnl via --without-lib[]Name-prefix, he wants to use it.
2N/A ac_save_CPPFLAGS="$CPPFLAGS"
2N/A AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
2N/A AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
2N/A ac_save_LIBS="$LIBS"
2N/A dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS,
2N/A dnl because these -l options might require -L options that are present in
2N/A dnl LIBS. -l options benefit only from the -L options listed before it.
2N/A dnl Otherwise, add it to the front of LIBS, because it may be a static
2N/A dnl library that depends on another static library that is present in LIBS.
2N/A dnl Static libraries benefit only from the static libraries listed after
2N/A case " $LIB[]NAME" in
2N/A *" -l"*) LIBS="$LIBS $LIB[]NAME" ;;
2N/A *) LIBS="$LIB[]NAME $LIBS" ;;
2N/A [AC_LANG_PROGRAM([[$3]], [[$4]])],
2N/A [ac_cv_lib[]Name=yes],
2N/A [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])'])
2N/A LIBS="$ac_save_LIBS"
2N/A if test "$ac_cv_lib[]Name" = yes; then
2N/A AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.])
2N/A AC_MSG_CHECKING([how to link with lib[]$1])
2N/A AC_MSG_RESULT([$LIB[]NAME])
2N/A dnl If $LIB[]NAME didn't lead to a usable library, we don't need
2N/A dnl $INC[]NAME either.
2N/A CPPFLAGS="$ac_save_CPPFLAGS"
2N/A AC_SUBST([HAVE_LIB]NAME)
2N/A AC_SUBST([LTLIB]NAME)
2N/A AC_SUBST([LIB]NAME[_PREFIX])
2N/A AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
2N/A AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
2N/A AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
2N/A AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [
2N/A CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
2N/A acl_libext="$acl_cv_libext"
2N/A acl_shlibext="$acl_cv_shlibext"
2N/A acl_libname_spec="$acl_cv_libname_spec"
2N/A acl_library_names_spec="$acl_cv_library_names_spec"
2N/A acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
2N/A acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
2N/A acl_hardcode_direct="$acl_cv_hardcode_direct"
2N/A acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
2N/A dnl Determine whether the user wants rpath handling at all.
2N/A AC_ARG_ENABLE([rpath],
2N/A [ --disable-rpath do not hardcode runtime library paths],
2N/A :, enable_rpath=yes)
2N/A pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
2N/A [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
2N/A define([acl_frompackage_]NAME, [$2])
2N/A pushdef([PACK],[$2])
2N/A pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
2N/A [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
2N/A define([acl_libsinpackage_]PACKUP,
2N/A m4_ifdef([acl_libsinpackage_]PACKUP, [m4_defn([acl_libsinpackage_]PACKUP)[, ]],)[lib$1])
2N/A AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
2N/A pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
2N/A [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
2N/A pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])])
2N/A pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
2N/A [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
2N/A pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])])
2N/A dnl Autoconf >= 2.61 supports dots in --with options.
2N/A pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[m4_translit(PACK,[.],[_])],PACK)])
2N/A dnl By default, look in $includedir and $libdir.
2N/A AC_LIB_WITH_FINAL_PREFIX([
2N/A eval additional_includedir=\"$includedir\"
2N/A eval additional_libdir=\"$libdir\"
2N/A AC_ARG_WITH(P_A_C_K[-prefix],
2N/A --without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]],
2N/A if test "X$withval" = "Xno"; then
2N/A if test "X$withval" = "X"; then
2N/A AC_LIB_WITH_FINAL_PREFIX([
2N/A eval additional_includedir=\"$includedir\"
2N/A eval additional_libdir=\"$libdir\"
2N/A additional_libdir="$withval/$acl_libdirstem"
2N/A if test "$acl_libdirstem2" != "$acl_libdirstem" \
2N/A && ! test -d "$withval/$acl_libdirstem"; then
2N/A additional_libdir="$withval/$acl_libdirstem2"
2N/A dnl Search the library and its dependencies in $additional_libdir and
2N/A dnl $LDFLAGS. Using breadth-first-seach.
2N/A dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been
2N/A dnl computed. So it has to be reset here.
2N/A names_already_handled=
2N/A names_next_round='$1 $2'
2N/A while test -n "$names_next_round"; do
2N/A names_this_round="$names_next_round"
2N/A for name in $names_this_round; do
2N/A for n in $names_already_handled; do
2N/A if test "$n" = "$name"; then
2N/A if test -z "$already_handled"; then
2N/A names_already_handled="$names_already_handled $name"
2N/A dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
2N/A dnl or AC_LIB_HAVE_LINKFLAGS call.
2N/A uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
2N/A eval value=\"\$HAVE_LIB$uppername\"
2N/A if test -n "$value"; then
2N/A if test "$value" = yes; then
2N/A eval value=\"\$LIB$uppername\"
2N/A test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
2N/A eval value=\"\$LTLIB$uppername\"
2N/A test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
2N/A dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
2N/A dnl that this library doesn't exist. So just drop it.
2N/A dnl Search the library lib$name in $additional_libdir and $LDFLAGS
2N/A dnl and the already constructed $LIBNAME/$LTLIBNAME.
2N/A eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
2N/A if test -n "$acl_shlibext"; then
2N/A shrext=".$acl_shlibext" # typically: shrext=.so
2N/A if test $use_additional = yes; then
2N/A dir="$additional_libdir"
2N/A dnl The same code as in the loop below:
2N/A dnl First look for a shared library.
2N/A if test -n "$acl_shlibext"; then
2N/A if test -f "$dir/$libname$shrext"; then
2N/A found_so="$dir/$libname$shrext"
2N/A if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
2N/A ver=`(cd "$dir" && \
2N/A for f in "$libname$shrext".*; do echo "$f"; done \
2N/A | sed -e "s,^$libname$shrext\\\\.,," \
2N/A | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
2N/A if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
2N/A found_so="$dir/$libname$shrext.$ver"
2N/A eval library_names=\"$acl_library_names_spec\"
2N/A for f in $library_names; do
2N/A if test -f "$dir/$f"; then
2N/A dnl Then look for a static library.
2N/A if test "X$found_dir" = "X"; then
2N/A if test -f "$dir/$libname.$acl_libext"; then
2N/A found_a="$dir/$libname.$acl_libext"
2N/A if test "X$found_dir" != "X"; then
2N/A if test "X$found_dir" = "X"; then
2N/A for x in $LDFLAGS $LTLIB[]NAME; do
2N/A AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
2N/A dir=`echo "X$x" | sed -e 's/^X-L//'`
2N/A dnl First look for a shared library.
2N/A if test -n "$acl_shlibext"; then
2N/A if test -f "$dir/$libname$shrext"; then
2N/A found_so="$dir/$libname$shrext"
2N/A if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
2N/A ver=`(cd "$dir" && \
2N/A for f in "$libname$shrext".*; do echo "$f"; done \
2N/A | sed -e "s,^$libname$shrext\\\\.,," \
2N/A | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
2N/A if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
2N/A found_so="$dir/$libname$shrext.$ver"
2N/A eval library_names=\"$acl_library_names_spec\"
2N/A for f in $library_names; do
2N/A if test -f "$dir/$f"; then
2N/A dnl Then look for a static library.
2N/A if test "X$found_dir" = "X"; then
2N/A if test -f "$dir/$libname.$acl_libext"; then
2N/A found_a="$dir/$libname.$acl_libext"
2N/A if test "X$found_dir" != "X"; then
2N/A if test "X$found_dir" != "X"; then
2N/A if test "X$found_dir" != "X"; then
2N/A dnl Found the library.
2N/A LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
2N/A if test "X$found_so" != "X"; then
2N/A dnl Linking with a shared library. We attempt to hardcode its
2N/A dnl directory into the executable's runpath, unless it's the
2N/A if test "$enable_rpath" = no \
2N/A || test "X$found_dir" = "
X/usr/$acl_libdirstem" \
2N/A || test "X$found_dir" = "
X/usr/$acl_libdirstem2"; then
2N/A dnl No hardcoding is needed.
2N/A LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
2N/A dnl Use an explicit option to hardcode DIR into the resulting
2N/A dnl Potentially add DIR to ltrpathdirs.
2N/A dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
2N/A for x in $ltrpathdirs; do
2N/A if test "X$x" = "X$found_dir"; then
2N/A if test -z "$haveit"; then
2N/A ltrpathdirs="$ltrpathdirs $found_dir"
2N/A dnl The hardcoding into $LIBNAME is system dependent.
2N/A if test "$acl_hardcode_direct" = yes; then
2N/A dnl resulting binary.
2N/A LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
2N/A if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
2N/A dnl Use an explicit option to hardcode DIR into the resulting
2N/A LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
2N/A dnl Potentially add DIR to rpathdirs.
2N/A dnl The rpathdirs will be appended to $LIBNAME at the end.
2N/A for x in $rpathdirs; do
2N/A if test "X$x" = "X$found_dir"; then
2N/A if test -z "$haveit"; then
2N/A rpathdirs="$rpathdirs $found_dir"
2N/A dnl Rely on "-L$found_dir".
2N/A dnl But don't add it if it's already contained in the LDFLAGS
2N/A dnl or the already constructed $LIBNAME
2N/A for x in $LDFLAGS $LIB[]NAME; do
2N/A AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
2N/A if test "X$x" = "X-L$found_dir"; then
2N/A if test -z "$haveit"; then
2N/A LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
2N/A if test "$acl_hardcode_minus_L" != no; then
2N/A dnl FIXME: Not sure whether we should use
2N/A dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
2N/A LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
2N/A dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH
2N/A dnl here, because this doesn't fit in flags passed to the
2N/A dnl compiler. So give up. No hardcoding. This affects only
2N/A dnl very old systems.
2N/A dnl FIXME: Not sure whether we should use
2N/A dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
2N/A LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
2N/A if test "X$found_a" != "X"; then
2N/A dnl Linking with a static library.
2N/A LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
2N/A dnl We shouldn't come here, but anyway it's good to have a
2N/A LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
2N/A dnl Assume the include files are nearby.
2N/A additional_includedir=
2N/A case "$found_dir" in
2N/A */$acl_libdirstem | */$acl_libdirstem/)
2N/A basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
2N/A if test "$name" = '$1'; then
2N/A LIB[]NAME[]_PREFIX="$basedir"
2N/A */$acl_libdirstem2 | */$acl_libdirstem2/)
2N/A basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
2N/A if test "$name" = '$1'; then
2N/A LIB[]NAME[]_PREFIX="$basedir"
2N/A if test "X$additional_includedir" != "X"; then
2N/A dnl Potentially add $additional_includedir to $INCNAME.
2N/A dnl But don't add it
2N/A dnl 3. if it's already present in $CPPFLAGS or the already
2N/A dnl constructed $INCNAME,
2N/A dnl 4. if it doesn't exist as a directory.
2N/A if test -n "$GCC"; then
2N/A linux* | gnu* | k*bsd*-gnu) haveit=yes;;
2N/A if test -z "$haveit"; then
2N/A for x in $CPPFLAGS $INC[]NAME; do
2N/A AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
2N/A if test "X$x" = "X-I$additional_includedir"; then
2N/A if test -z "$haveit"; then
2N/A if test -d "$additional_includedir"; then
2N/A dnl Really add $additional_includedir to $INCNAME.
2N/A INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
2N/A dnl Look for dependencies.
2N/A if test -n "$found_la"; then
2N/A dnl Read the .la file. It defines the variables
2N/A dnl dlname, library_names, old_library, dependency_libs, current,
2N/A dnl age, revision, installed, dlopen, dlpreopen, libdir.
2N/A save_libdir="$libdir"
2N/A */* | *\\*) . "$found_la" ;;
2N/A *) . "./$found_la" ;;
2N/A libdir="$save_libdir"
2N/A dnl We use only dependency_libs.
2N/A for dep in $dependency_libs; do
2N/A additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
2N/A dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
2N/A dnl But don't add it
2N/A dnl 3. if it's already present in $LDFLAGS or the already
2N/A dnl constructed $LIBNAME,
2N/A dnl 4. if it doesn't exist as a directory.
2N/A if test "X$additional_libdir" != "
X/usr/$acl_libdirstem" \
2N/A && test "X$additional_libdir" != "
X/usr/$acl_libdirstem2"; then
2N/A if test -n "$GCC"; then
2N/A linux* | gnu* | k*bsd*-gnu) haveit=yes;;
2N/A if test -z "$haveit"; then
2N/A for x in $LDFLAGS $LIB[]NAME; do
2N/A AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
2N/A if test "X$x" = "X-L$additional_libdir"; then
2N/A if test -z "$haveit"; then
2N/A if test -d "$additional_libdir"; then
2N/A dnl Really add $additional_libdir to $LIBNAME.
2N/A LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
2N/A for x in $LDFLAGS $LTLIB[]NAME; do
2N/A AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
2N/A if test "X$x" = "X-L$additional_libdir"; then
2N/A if test -z "$haveit"; then
2N/A if test -d "$additional_libdir"; then
2N/A dnl Really add $additional_libdir to $LTLIBNAME.
2N/A LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
2N/A dir=`echo "X$dep" | sed -e 's/^X-R//'`
2N/A if test "$enable_rpath" != no; then
2N/A dnl Potentially add DIR to rpathdirs.
2N/A dnl The rpathdirs will be appended to $LIBNAME at the end.
2N/A for x in $rpathdirs; do
2N/A if test "X$x" = "X$dir"; then
2N/A if test -z "$haveit"; then
2N/A rpathdirs="$rpathdirs $dir"
2N/A dnl Potentially add DIR to ltrpathdirs.
2N/A dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
2N/A for x in $ltrpathdirs; do
2N/A if test "X$x" = "X$dir"; then
2N/A if test -z "$haveit"; then
2N/A ltrpathdirs="$ltrpathdirs $dir"
2N/A dnl Handle this in the next round.
2N/A names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
2N/A dnl Handle this in the next round. Throw away the .la's
2N/A dnl directory; it is already contained in a preceding -L
2N/A names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
2N/A dnl Most likely an immediate library name.
2N/A LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
2N/A LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
2N/A dnl Didn't find the library; assume it is in the system directories
2N/A dnl known to the linker and runtime loader. (All the system
2N/A dnl directories known to the linker should also be known to the
2N/A dnl runtime loader, otherwise the system is severely misconfigured.)
2N/A LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
2N/A LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
2N/A if test "X$rpathdirs" != "X"; then
2N/A if test -n "$acl_hardcode_libdir_separator"; then
2N/A dnl Weird platform: only the last -rpath option counts, the user must
2N/A dnl pass all path elements in one option. We can arrange that for a
2N/A dnl single library, but not when more than one $LIBNAMEs are used.
2N/A for found_dir in $rpathdirs; do
2N/A alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
2N/A dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
2N/A acl_save_libdir="$libdir"
2N/A eval flag=\"$acl_hardcode_libdir_flag_spec\"
2N/A libdir="$acl_save_libdir"
2N/A LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
2N/A dnl The -rpath options are cumulative.
2N/A for found_dir in $rpathdirs; do
2N/A acl_save_libdir="$libdir"
2N/A eval flag=\"$acl_hardcode_libdir_flag_spec\"
2N/A libdir="$acl_save_libdir"
2N/A LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
2N/A if test "X$ltrpathdirs" != "X"; then
2N/A dnl When using libtool, the option that works for both libraries and
2N/A dnl executables is -R. The -R options are cumulative.
2N/A for found_dir in $ltrpathdirs; do
2N/A LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
2N/A for element in [$2]; do
2N/A AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
2N/A if test "X$x" = "X$element"; then
2N/A if test -z "$haveit"; then
2N/A [$1]="${[$1]}${[$1]:+ }$element"
2N/A AC_REQUIRE([AC_LIB_RPATH])
2N/A AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
2N/A if test "$enable_rpath" != no; then
2N/A if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
2N/A dnl Use an explicit option to hardcode directories into the resulting
2N/A if test -n "$next"; then
2N/A if test "X$dir" != "
X/usr/$acl_libdirstem" \
2N/A && test "X$dir" != "
X/usr/$acl_libdirstem2"; then
2N/A rpathdirs="$rpathdirs $dir"
2N/A -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
2N/A if test "X$dir" != "
X/usr/$acl_libdirstem" \
2N/A && test "X$dir" != "
X/usr/$acl_libdirstem2"; then
2N/A rpathdirs="$rpathdirs $dir"
2N/A if test "X$rpathdirs" != "X"; then
2N/A if test -n ""$3""; then
2N/A dnl libtool is used for linking. Use -R options.
2N/A for dir in $rpathdirs; do
2N/A $1="${$1}${$1:+ }-R$dir"
2N/A dnl The linker is used for linking directly.
2N/A if test -n "$acl_hardcode_libdir_separator"; then
2N/A dnl Weird platform: only the last -rpath option counts, the user
2N/A dnl must pass all path elements in one option.
2N/A for dir in $rpathdirs; do
2N/A alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
2N/A acl_save_libdir="$libdir"
2N/A eval flag=\"$acl_hardcode_libdir_flag_spec\"
2N/A libdir="$acl_save_libdir"
2N/A dnl The -rpath options are cumulative.
2N/A for dir in $rpathdirs; do
2N/A acl_save_libdir="$libdir"
2N/A eval flag=\"$acl_hardcode_libdir_flag_spec\"
2N/A libdir="$acl_save_libdir"
2N/A $1="${$1}${$1:+ }$flag"
2N/Am4trace:
m4/lib-prefix.m4:12: -1- AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])
2N/A AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([AC_CANONICAL_HOST])
2N/A AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
2N/A AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
2N/A dnl By default, look in $includedir and $libdir.
2N/A AC_LIB_WITH_FINAL_PREFIX([
2N/A eval additional_includedir=\"$includedir\"
2N/A eval additional_libdir=\"$libdir\"
2N/A AC_LIB_ARG_WITH([lib-prefix],
2N/A --without-lib-prefix don't search for libraries in includedir and libdir],
2N/A if test "X$withval" = "Xno"; then
2N/A if test "X$withval" = "X"; then
2N/A AC_LIB_WITH_FINAL_PREFIX([
2N/A eval additional_includedir=\"$includedir\"
2N/A eval additional_libdir=\"$libdir\"
2N/A additional_libdir="$withval/$acl_libdirstem"
2N/A if test $use_additional = yes; then
2N/A dnl Potentially add $additional_includedir to $CPPFLAGS.
2N/A dnl But don't add it
2N/A dnl 2. if it's already present in $CPPFLAGS,
2N/A dnl 4. if it doesn't exist as a directory.
2N/A for x in $CPPFLAGS; do
2N/A AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
2N/A if test "X$x" = "X-I$additional_includedir"; then
2N/A if test -z "$haveit"; then
2N/A if test -n "$GCC"; then
2N/A linux* | gnu* | k*bsd*-gnu) haveit=yes;;
2N/A if test -z "$haveit"; then
2N/A if test -d "$additional_includedir"; then
2N/A dnl Really add $additional_includedir to $CPPFLAGS.
2N/A CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
2N/A dnl Potentially add $additional_libdir to $LDFLAGS.
2N/A dnl But don't add it
2N/A dnl 2. if it's already present in $LDFLAGS,
2N/A dnl 4. if it doesn't exist as a directory.
2N/A if test "X$additional_libdir" != "
X/usr/$acl_libdirstem"; then
2N/A for x in $LDFLAGS; do
2N/A AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
2N/A if test "X$x" = "X-L$additional_libdir"; then
2N/A if test -z "$haveit"; then
2N/A if test -n "$GCC"; then
2N/A linux*) haveit=yes;;
2N/A if test -z "$haveit"; then
2N/A if test -d "$additional_libdir"; then
2N/A dnl Really add $additional_libdir to $LDFLAGS.
2N/A LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
2N/A dnl Unfortunately, prefix and exec_prefix get only finally determined
2N/A dnl at the end of configure.
2N/A if test "X$prefix" = "XNONE"; then
2N/A acl_final_prefix="$ac_default_prefix"
2N/A acl_final_prefix="$prefix"
2N/A if test "X$exec_prefix" = "XNONE"; then
2N/A acl_final_exec_prefix='${prefix}'
2N/A acl_final_exec_prefix="$exec_prefix"
2N/A acl_save_prefix="$prefix"
2N/A prefix="$acl_final_prefix"
2N/A eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
2N/A prefix="$acl_save_prefix"
2N/A acl_save_prefix="$prefix"
2N/A prefix="$acl_final_prefix"
2N/A acl_save_exec_prefix="$exec_prefix"
2N/A exec_prefix="$acl_final_exec_prefix"
2N/A exec_prefix="$acl_save_exec_prefix"
2N/A prefix="$acl_save_prefix"
2N/A dnl There is no formal standard regarding lib and lib64.
2N/A dnl On glibc systems, the current practice is that on a system supporting
2N/A dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
2N/A dnl the compiler's default mode by looking at the compiler's library search
2N/A dnl path. If at least one of its elements ends in /lib64 or points to a
2N/A dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI.
2N/A dnl Otherwise we use the default, namely "lib".
2N/A dnl On Solaris systems, the current practice is that on a system supporting
2N/A dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
2N/A AC_REQUIRE([AC_CANONICAL_HOST])
2N/A dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment
2N/A dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link."
2N/A dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the
2N/A dnl symlink is missing, so we set acl_libdirstem2 too.
2N/A AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit],
2N/A [AC_EGREP_CPP([sixtyfour bits], [
2N/A ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no])
2N/A if test $gl_cv_solaris_64bit = yes; then
2N/A acl_libdirstem=lib/64
2N/A searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>
/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
2N/A if test -n "$searchpath"; then
2N/A acl_save_IFS="${IFS= }"; IFS=":"
2N/A for searchdir in $searchpath; do
2N/A if test -d "$searchdir"; then
2N/A case "$searchdir" in
2N/A */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
2N/A # Better ignore directories of this form. They are misleading.
2N/A *) searchdir=`cd "$searchdir" && pwd`
2N/A case "$searchdir" in
2N/A */lib64 ) acl_libdirstem=lib64 ;;
2N/A test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
2N/A AC_REQUIRE([AM_LANGINFO_CODESET])
2N/A AC_REQUIRE([gl_FCNTL_O_FLAGS])
2N/A AC_CHECK_DECLS_ONCE([getc_unlocked])
2N/A AC_REQUIRE([AC_CANONICAL_HOST])
2N/A AC_REQUIRE([gl_GLIBC21])
2N/A AC_REQUIRE([AC_CANONICAL_HOST])
2N/A AC_REQUIRE([AM_LANGINFO_CODESET])
2N/A AC_CACHE_CHECK([for a traditional french locale], [gt_cv_locale_fr], [
2N/A AC_LANG_CONFTEST([AC_LANG_SOURCE([
2N/A#if HAVE_LANGINFO_CODESET
2N/A /* Check whether the given locale name is recognized by the system. */
2N/A if (setlocale (LC_ALL, "") == NULL) return 1;
2N/A /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
2N/A On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
2N/A is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
2N/A On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
2N/A succeeds but then nl_langinfo(CODESET) is "646". In this situation,
2N/A some unit tests fail. */
2N/A#if HAVE_LANGINFO_CODESET
2N/A const char *cs = nl_langinfo (CODESET);
2N/A if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
2N/A /* On Cygwin, avoid locale names without encoding suffix, because the
2N/A locale_charset() function relies on the encoding suffix. Note that
2N/A LC_ALL is set on the command line. */
2N/A if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
2N/A /* Check whether in the abbreviation of the second month, the second
2N/A character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
2N/A one byte long. This excludes the UTF-8 encoding. */
2N/A if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
2N/A /* Check whether the decimal separator is a comma.
2N/A are nl_langinfo(RADIXCHAR) are both ".". */
2N/A if (localeconv () ->decimal_point[0] != ',') return 1;
2N/A if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then
2N/A # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
2N/A # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
2N/A # configure script would override the LC_ALL setting. Likewise for
2N/A # LC_CTYPE, which is also set at the beginning of the configure script.
2N/A # Test for the usual locale name.
2N/A if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>
/dev/null; then
2N/A gt_cv_locale_fr=fr_FR
2N/A # Test for the locale name with explicit encoding suffix.
2N/A # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
2N/A # Test for the HP-UX locale name.
2N/A # Test for the Solaris 7 locale name.
2N/A if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>
/dev/null; then
2N/A gt_cv_locale_fr=none
2N/A LOCALE_FR=$gt_cv_locale_fr
2N/A AC_SUBST([LOCALE_FR])
2N/A AC_REQUIRE([AM_LANGINFO_CODESET])
2N/A AC_CACHE_CHECK([for a french Unicode locale], [gt_cv_locale_fr_utf8], [
2N/A AC_LANG_CONFTEST([AC_LANG_SOURCE([
2N/A#if HAVE_LANGINFO_CODESET
2N/A /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
2N/A imitates locale dependent behaviour by looking at the environment
2N/A variables, and all locales use the UTF-8 encoding. */
2N/A#if !(defined __BEOS__ || defined __HAIKU__)
2N/A /* Check whether the given locale name is recognized by the system. */
2N/A if (setlocale (LC_ALL, "") == NULL) return 1;
2N/A /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
2N/A On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
2N/A is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
2N/A On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
2N/A succeeds but then nl_langinfo(CODESET) is "646". In this situation,
2N/A some unit tests fail. */
2N/A# if HAVE_LANGINFO_CODESET
2N/A const char *cs = nl_langinfo (CODESET);
2N/A if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
2N/A /* On Cygwin, avoid locale names without encoding suffix, because the
2N/A locale_charset() function relies on the encoding suffix. Note that
2N/A LC_ALL is set on the command line. */
2N/A if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
2N/A /* Check whether in the abbreviation of the second month, the second
2N/A character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
2N/A two bytes long, with UTF-8 encoding. */
2N/A if (strftime (buf, sizeof (buf), "%b", &t) < 4
2N/A || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
2N/A /* Check whether the decimal separator is a comma.
2N/A are nl_langinfo(RADIXCHAR) are both ".". */
2N/A if (localeconv () ->decimal_point[0] != ',') return 1;
2N/A if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then
2N/A # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
2N/A # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
2N/A # configure script would override the LC_ALL setting. Likewise for
2N/A # LC_CTYPE, which is also set at the beginning of the configure script.
2N/A # Test for the usual locale name.
2N/A if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>
/dev/null; then
2N/A gt_cv_locale_fr_utf8=fr_FR
2N/A # Test for the locale name with explicit encoding suffix.
2N/A # Test for the Solaris 7 locale name.
2N/A gt_cv_locale_fr_utf8=none
2N/A LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
2N/A AC_SUBST([LOCALE_FR_UTF8])
2N/A AC_REQUIRE([AC_CANONICAL_HOST])
2N/A AC_REQUIRE([AM_LANGINFO_CODESET])
2N/A AC_CACHE_CHECK([for a traditional japanese locale], [gt_cv_locale_ja], [
2N/A AC_LANG_CONFTEST([AC_LANG_SOURCE([
2N/A#if HAVE_LANGINFO_CODESET
2N/A /* Check whether the given locale name is recognized by the system. */
2N/A if (setlocale (LC_ALL, "") == NULL) return 1;
2N/A /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
2N/A On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
2N/A is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
2N/A On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
2N/A succeeds but then nl_langinfo(CODESET) is "646". In this situation,
2N/A some unit tests fail. */
2N/A#if HAVE_LANGINFO_CODESET
2N/A const char *cs = nl_langinfo (CODESET);
2N/A if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
2N/A /* On Cygwin, avoid locale names without encoding suffix, because the
2N/A locale_charset() function relies on the encoding suffix. Note that
2N/A LC_ALL is set on the command line. */
2N/A if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
2N/A /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
2N/A if (MB_CUR_MAX == 1)
2N/A /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
2N/A This excludes the UTF-8 encoding. */
2N/A if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
2N/A for (p = buf; *p != '\0'; p++)
2N/A if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
2N/A if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then
2N/A # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
2N/A # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
2N/A # configure script would override the LC_ALL setting. Likewise for
2N/A # LC_CTYPE, which is also set at the beginning of the configure script.
2N/A # Test for the AIX locale name.
2N/A if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>
/dev/null; then
2N/A gt_cv_locale_ja=ja_JP
2N/A # Test for the locale name with explicit encoding suffix.
2N/A # Test for the HP-UX, OSF/1, NetBSD locale name.
2N/A # Test for the IRIX, FreeBSD locale name.
2N/A # Test for the Solaris 7 locale name.
2N/A if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>
/dev/null; then
2N/A # Special test for NetBSD 1.6.
2N/A gt_cv_locale_ja=none
2N/A LOCALE_JA=$gt_cv_locale_ja
2N/A AC_SUBST([LOCALE_JA])
2N/A AC_REQUIRE([AC_CANONICAL_HOST])
2N/A AC_REQUIRE([AM_LANGINFO_CODESET])
2N/A AC_CACHE_CHECK([for a transitional chinese locale], [gt_cv_locale_zh_CN], [
2N/A AC_LANG_CONFTEST([AC_LANG_SOURCE([
2N/A#if HAVE_LANGINFO_CODESET
2N/A /* Check whether the given locale name is recognized by the system. */
2N/A if (setlocale (LC_ALL, "") == NULL) return 1;
2N/A /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
2N/A On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
2N/A is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
2N/A On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
2N/A succeeds but then nl_langinfo(CODESET) is "646". In this situation,
2N/A some unit tests fail. */
2N/A#if HAVE_LANGINFO_CODESET
2N/A const char *cs = nl_langinfo (CODESET);
2N/A if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
2N/A /* On Cygwin, avoid locale names without encoding suffix, because the
2N/A locale_charset() function relies on the encoding suffix. Note that
2N/A LC_ALL is set on the command line. */
2N/A if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
2N/A /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
2N/A This excludes the UTF-8 encoding. */
2N/A if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
2N/A for (p = buf; *p != '\0'; p++)
2N/A if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
2N/A /* Check whether a typical GB18030 multibyte sequence is recognized as a
2N/A single wide character. This excludes the GB2312 and GBK encodings. */
2N/A if (mblen ("\203\062\332\066", 5) != 4)
2N/A if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then
2N/A # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
2N/A # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
2N/A # configure script would override the LC_ALL setting. Likewise for
2N/A # LC_CTYPE, which is also set at the beginning of the configure script.
2N/A # Test for the locale name without encoding suffix.
2N/A if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>
/dev/null; then
2N/A gt_cv_locale_zh_CN=zh_CN
2N/A # Test for the locale name with explicit encoding suffix.
2N/A gt_cv_locale_zh_CN=none
2N/A # If there was a link error, due to mblen(), the system is so old that
2N/A # it certainly doesn't have a chinese locale.
2N/A gt_cv_locale_zh_CN=none
2N/A LOCALE_ZH_CN=$gt_cv_locale_zh_CN
2N/A AC_SUBST([LOCALE_ZH_CN])
2N/A AC_REQUIRE([gl_THREADLIB])
2N/A if test "$gl_threads_api" = posix; then
2N/A # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
2N/A # pthread_rwlock_* functions.
2N/A AC_CHECK_TYPE([pthread_rwlock_t],
2N/A [AC_DEFINE([HAVE_PTHREAD_RWLOCK], [1],
2N/A [Define if the POSIX multithreading library has
read/write locks.])],
2N/A # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
2N/Aerror "No, in FreeBSD 4.0 recursive mutexes actually don't work."
2N/Aint x = (int)PTHREAD_MUTEX_RECURSIVE;
2N/A [AC_DEFINE([HAVE_PTHREAD_MUTEX_RECURSIVE], [1],
2N/A [Define if the <
pthread.h> defines PTHREAD_MUTEX_RECURSIVE.])])
2N/A AC_REQUIRE([AC_C_INLINE])
2N/A AC_CACHE_CHECK([for long long int], [ac_cv_type_long_long_int],
2N/A [_AC_TYPE_LONG_LONG_SNIPPET],
2N/A [dnl This catches a bug in Tandem NonStop Kernel (OSS) cc -O circa 2004.
2N/A dnl If cross compiling, assume the bug isn't important, since
2N/A dnl nobody cross compiles for this platform as far as we know.
2N/A @%:@ifndef LLONG_MAX
2N/A (1LL << (sizeof (long long int) * CHAR_BIT - 2))
2N/A @%:@ define LLONG_MAX (HALF - 1 + HALF)
2N/A [[long long int n = 1;
2N/A long long int m = n << i;
2N/A if (LLONG_MAX / 2 < m)
2N/A [ac_cv_type_long_long_int=yes],
2N/A [ac_cv_type_long_long_int=no],
2N/A [ac_cv_type_long_long_int=yes])],
2N/A [ac_cv_type_long_long_int=no])])
2N/A if test $ac_cv_type_long_long_int = yes; then
2N/A AC_DEFINE([HAVE_LONG_LONG_INT], [1],
2N/A [Define to 1 if the system has the type `long long int'.])
2N/A AC_CACHE_CHECK([for unsigned long long int],
2N/A [ac_cv_type_unsigned_long_long_int],
2N/A [_AC_TYPE_LONG_LONG_SNIPPET],
2N/A [ac_cv_type_unsigned_long_long_int=yes],
2N/A [ac_cv_type_unsigned_long_long_int=no])])
2N/A if test $ac_cv_type_unsigned_long_long_int = yes; then
2N/A AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], [1],
2N/A [Define to 1 if the system has the type `unsigned long long int'.])
2N/A [[/* For now, do not test the preprocessor; as of 2007 there are too many
2N/A implementations with broken preprocessors. Perhaps this can
2N/A be revisited in 2012. In the meantime, code should not expect
2N/A #if to work with literals wider than 32 bits. */
2N/A /* Test literals. */
2N/A long long int ll = 9223372036854775807ll;
2N/A long long int nll = -9223372036854775807LL;
2N/A unsigned long long int ull = 18446744073709551615ULL;
2N/A /* Test constant expressions. */
2N/A typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
2N/A typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
2N/A [[/* Test availability of runtime routines for shift and division. */
2N/A long long int llmax = 9223372036854775807ll;
2N/A unsigned long long int ullmax = 18446744073709551615ull;
2N/A return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
2N/A | (llmax / ll) | (llmax % ll)
2N/A | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
2N/A | (ullmax / ull) | (ullmax % ull));]])
2N/A AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
2N/A dnl _AC_FUNC_MALLOC_IF is defined in Autoconf.
2N/A [AC_DEFINE([HAVE_MALLOC_GNU], [1],
2N/A [Define to 1 if your system has a GNU libc compatible 'malloc'
2N/A function, and to 0 otherwise.])],
2N/A [AC_DEFINE([HAVE_MALLOC_GNU], [0])
2N/A AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
2N/A AC_REQUIRE([gl_CHECK_MALLOC_POSIX])
2N/A if test $gl_cv_func_malloc_posix = yes; then
2N/A AC_DEFINE([HAVE_MALLOC_POSIX], [1],
2N/A [Define if the 'malloc' function is POSIX compliant.])
2N/A AC_CACHE_CHECK([whether malloc, realloc, calloc are POSIX compliant],
2N/A [gl_cv_func_malloc_posix],
2N/A dnl It is too dangerous to try to allocate a large amount of memory:
2N/A dnl some systems go to their knees when you do that. So assume that
2N/A dnl all Unix implementations of the function are POSIX compliant.
2N/A [[#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
2N/A [gl_cv_func_malloc_posix=yes],
2N/A [gl_cv_func_malloc_posix=no])
2N/A AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
2N/A AC_REQUIRE([AC_TYPE_MBSTATE_T])
2N/A AC_CHECK_FUNCS_ONCE([mbrtowc])
2N/A if test $ac_cv_func_mbrtowc = no; then
2N/A if test $REPLACE_MBSTATE_T = 1; then
2N/A gl_MBRTOWC_NUL_RETVAL
2N/A case "$gl_cv_func_mbrtowc_null_arg" in
2N/A *) AC_DEFINE([MBRTOWC_NULL_ARG_BUG], [1],
2N/A [Define if the mbrtowc function has the NULL string argument bug.])
2N/A case "$gl_cv_func_mbrtowc_retval" in
2N/A *) AC_DEFINE([MBRTOWC_RETVAL_BUG], [1],
2N/A [Define if the mbrtowc function returns a wrong return value.])
2N/A case "$gl_cv_func_mbrtowc_nul_retval" in
2N/A *) AC_DEFINE([MBRTOWC_NUL_RETVAL_BUG], [1],
2N/A [Define if the mbrtowc function does not return 0 for a NUL character.])
2N/A if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
2N/A AC_LIBOBJ([mbrtowc])
2N/A AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
2N/A AC_REQUIRE([AC_TYPE_MBSTATE_T])
2N/A AC_CHECK_FUNCS_ONCE([mbsinit])
2N/A AC_CHECK_FUNCS_ONCE([mbrtowc])
2N/A if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
2N/A gl_MBRTOWC_INCOMPLETE_STATE
2N/A gl_MBRTOWC_SANITYCHECK
2N/A case "$gl_cv_func_mbrtowc_incomplete_state" in
2N/A *) REPLACE_MBSTATE_T=1 ;;
2N/A case "$gl_cv_func_mbrtowc_sanitycheck" in
2N/A *) REPLACE_MBSTATE_T=1 ;;
2N/A if test $REPLACE_MBSTATE_T = 1; then
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([gt_LOCALE_JA])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A AC_CACHE_CHECK([whether mbrtowc handles incomplete characters],
2N/A [gl_cv_func_mbrtowc_incomplete_state],
2N/A dnl Initial guess, used when cross-compiling or when no suitable locale
2N/A # Guess no on AIX and OSF/1.
2N/A aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
2N/A # Guess yes otherwise.
2N/A *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
2N/A if test $LOCALE_JA != none; then
2N/A if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
2N/A const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
2N/A memset (&state, '\0', sizeof (mbstate_t));
2N/A if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
2N/A if (mbsinit (&state))
2N/A [gl_cv_func_mbrtowc_incomplete_state=yes],
2N/A [gl_cv_func_mbrtowc_incomplete_state=no],
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([gt_LOCALE_ZH_CN])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A AC_CACHE_CHECK([whether mbrtowc works as well as mbtowc],
2N/A [gl_cv_func_mbrtowc_sanitycheck],
2N/A dnl Initial guess, used when cross-compiling or when no suitable locale
2N/A # Guess no on Solaris 8.
2N/A solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
2N/A # Guess yes otherwise.
2N/A *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
2N/A if test $LOCALE_ZH_CN != none; then
2N/A /* This fails on Solaris 8:
2N/A mbrtowc returns 2, and sets wc to 0x00F0.
2N/A mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
2N/A if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
2N/A char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
2N/A memset (&state, '\0', sizeof (mbstate_t));
2N/A if (mbrtowc (&wc, input + 3, 6, &state) != 4
2N/A && mbtowc (&wc, input + 3, 6) == 4)
2N/A [gl_cv_func_mbrtowc_sanitycheck=yes],
2N/A [gl_cv_func_mbrtowc_sanitycheck=no],
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([gt_LOCALE_FR_UTF8])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A AC_CACHE_CHECK([whether mbrtowc handles a NULL string argument],
2N/A [gl_cv_func_mbrtowc_null_arg],
2N/A dnl Initial guess, used when cross-compiling or when no suitable locale
2N/A # Guess no on OSF/1.
2N/A osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
2N/A # Guess yes otherwise.
2N/A *) gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
2N/A if test $LOCALE_FR_UTF8 != none; then
2N/A if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
2N/A memset (&state, '\0', sizeof (mbstate_t));
2N/A wc = (wchar_t) 0xBADFACE;
2N/A mbrtowc (&wc, NULL, 5, &state);
2N/A /* Check that wc was not modified. */
2N/A if (wc != (wchar_t) 0xBADFACE)
2N/A [gl_cv_func_mbrtowc_null_arg=yes],
2N/A [gl_cv_func_mbrtowc_null_arg=no],
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([gt_LOCALE_FR_UTF8])
2N/A AC_REQUIRE([gt_LOCALE_JA])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A AC_CACHE_CHECK([whether mbrtowc has a correct return value],
2N/A [gl_cv_func_mbrtowc_retval],
2N/A dnl Initial guess, used when cross-compiling or when no suitable locale
2N/A # Guess no on HP-UX and Solaris.
2N/A hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
2N/A # Guess yes otherwise.
2N/A *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
2N/A if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
2N/A /* This fails on Solaris. */
2N/A if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
2N/A char input[] = "B\303\274\303\237er"; /* "Büßer" */
2N/A memset (&state, '\0', sizeof (mbstate_t));
2N/A if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
2N/A if (mbrtowc (&wc, input + 2, 5, &state) != 1)
2N/A /* This fails on HP-UX 11.11. */
2N/A if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
2N/A char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
2N/A memset (&state, '\0', sizeof (mbstate_t));
2N/A if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
2N/A if (mbrtowc (&wc, input + 2, 5, &state) != 2)
2N/A [gl_cv_func_mbrtowc_retval=yes],
2N/A [gl_cv_func_mbrtowc_retval=no],
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([gt_LOCALE_ZH_CN])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A AC_CACHE_CHECK([whether mbrtowc returns 0 when parsing a NUL character],
2N/A [gl_cv_func_mbrtowc_nul_retval],
2N/A dnl Initial guess, used when cross-compiling or when no suitable locale
2N/A # Guess no on Solaris 8 and 9.
2N/A solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
2N/A # Guess yes otherwise.
2N/A *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
2N/A if test $LOCALE_ZH_CN != none; then
2N/A /* This fails on Solaris 8 and 9. */
2N/A if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
2N/A memset (&state, '\0', sizeof (mbstate_t));
2N/A if (mbrtowc (&wc, "", 1, &state) != 0)
2N/A [gl_cv_func_mbrtowc_nul_retval=yes],
2N/A [gl_cv_func_mbrtowc_nul_retval=no],
2N/A AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
2N/A AC_REQUIRE([AC_TYPE_MBSTATE_T])
2N/A AC_CHECK_FUNCS_ONCE([mbsinit])
2N/A if test $ac_cv_func_mbsinit = no; then
2N/A if test $REPLACE_MBSTATE_T = 1; then
2N/A if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
2N/A AC_LIBOBJ([mbsinit])
2N/A AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
2N/A AC_REQUIRE([AC_TYPE_MBSTATE_T])
2N/A AC_CHECK_FUNCS_ONCE([mbsrtowcs])
2N/A if test $ac_cv_func_mbsrtowcs = no; then
2N/A if test $REPLACE_MBSTATE_T = 1; then
2N/A case "$gl_cv_func_mbsrtowcs_works" in
2N/A *) REPLACE_MBSRTOWCS=1 ;;
2N/A if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
2N/A AC_LIBOBJ([mbsrtowcs])
2N/A AC_LIBOBJ([mbsrtowcs-state])
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([gt_LOCALE_FR_UTF8])
2N/A AC_REQUIRE([gt_LOCALE_JA])
2N/A AC_REQUIRE([gt_LOCALE_ZH_CN])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A AC_CACHE_CHECK([whether mbsrtowcs works],
2N/A [gl_cv_func_mbsrtowcs_works],
2N/A dnl Initial guess, used when cross-compiling or when no suitable locale
2N/A # Guess no on HP-UX and Solaris.
2N/A hpux* | solaris*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
2N/A # Guess yes otherwise.
2N/A *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
2N/A if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
2N/A /* Test whether the function works when started with a conversion state
2N/A in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
2N/A if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
2N/A const char input[] = "B\303\274\303\237er";
2N/A memset (&state, '\0', sizeof (mbstate_t));
2N/A if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
2N/A if (!mbsinit (&state))
2N/A const char *src = input + 2;
2N/A if (mbsrtowcs (NULL, &src, 10, &state) != 4)
2N/A if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
2N/A const char input[] = "<\306\374\313\334\270\354>";
2N/A memset (&state, '\0', sizeof (mbstate_t));
2N/A if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
2N/A if (!mbsinit (&state))
2N/A const char *src = input + 4;
2N/A if (mbsrtowcs (NULL, &src, 10, &state) != 3)
2N/A if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
2N/A const char input[] = "B\250\271\201\060\211\070er";
2N/A memset (&state, '\0', sizeof (mbstate_t));
2N/A if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
2N/A if (!mbsinit (&state))
2N/A const char *src = input + 2;
2N/A if (mbsrtowcs (NULL, &src, 10, &state) != 4)
2N/A [gl_cv_func_mbsrtowcs_works=yes],
2N/A [gl_cv_func_mbsrtowcs_works=no],
2N/A AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) dnl for HP-UX 11.11
2N/A AC_CACHE_CHECK([for mbstate_t], [ac_cv_type_mbstate_t],
2N/A [AC_INCLUDES_DEFAULT[
2N/A [[mbstate_t x; return sizeof x;]])],
2N/A [ac_cv_type_mbstate_t=yes],
2N/A [ac_cv_type_mbstate_t=no])])
2N/A if test $ac_cv_type_mbstate_t = yes; then
2N/A AC_DEFINE([HAVE_MBSTATE_T], [1],
2N/A AC_DEFINE([mbstate_t], [int],
2N/A dnl Check for prerequisites for memory fence checks.
2N/A AC_CHECK_FUNCS_ONCE([mprotect])
2N/A dnl These days, we assume memchr is present. But just in case...
2N/A AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
2N/A AC_CHECK_FUNCS_ONCE([memchr])
2N/A if test $ac_cv_func_memchr = yes; then
2N/A # Detect platform-specific bugs in some versions of glibc:
2N/A # memchr should not dereference anything with length 0
2N/A # memchr should not dereference overestimated length after a match
2N/A # Assume that memchr works on platforms that lack mprotect.
2N/A AC_CACHE_CHECK([whether memchr works], [gl_cv_func_memchr_works],
2N/A [AC_RUN_IFELSE([AC_LANG_PROGRAM([[
2N/A#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
2N/A# if HAVE_MAP_ANONYMOUS
2N/A const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
2N/A# else /* !HAVE_MAP_ANONYMOUS */
2N/A const int flags = MAP_FILE | MAP_PRIVATE;
2N/A int pagesize = getpagesize ();
2N/A (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
2N/A if (two_pages != (char *)(-1)
2N/A && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
2N/A fence = two_pages + pagesize;
2N/A if (memchr (fence, 0, 0))
2N/A strcpy (fence - 9, "12345678");
2N/A if (memchr (fence - 9, 0, 79) != fence - 1)
2N/A if (memchr (fence - 1, 0, 3) != fence - 1)
2N/A]])], [gl_cv_func_memchr_works=yes], [gl_cv_func_memchr_works=no],
2N/A [dnl Be pessimistic for now.
2N/A gl_cv_func_memchr_works="guessing no"])])
2N/A if test "$gl_cv_func_memchr_works" != yes; then
2N/A if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
2N/Am4trace:
m4/memchr.m4:7: -1- AC_DEFUN([gl_FUNC_MEMCHR], [AC_REQUIRE([_gl_DEFUN_ONCE([gl_FUNC_MEMCHR])],
2N/A [m4_indir([_gl_DEFUN_ONCE([gl_FUNC_MEMCHR])])])])
2N/A dnl Check for prerequisites for memory fence checks.
2N/A AC_CHECK_FUNCS_ONCE([mprotect])
2N/A dnl These days, we assume memchr is present. But just in case...
2N/A AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
2N/A AC_CHECK_FUNCS_ONCE([memchr])
2N/A if test $ac_cv_func_memchr = yes; then
2N/A # Detect platform-specific bugs in some versions of glibc:
2N/A # memchr should not dereference anything with length 0
2N/A # memchr should not dereference overestimated length after a match
2N/A # Assume that memchr works on platforms that lack mprotect.
2N/A AC_CACHE_CHECK([whether memchr works], [gl_cv_func_memchr_works],
2N/A [AC_RUN_IFELSE([AC_LANG_PROGRAM([[
2N/A#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
2N/A# if HAVE_MAP_ANONYMOUS
2N/A const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
2N/A# else /* !HAVE_MAP_ANONYMOUS */
2N/A const int flags = MAP_FILE | MAP_PRIVATE;
2N/A int pagesize = getpagesize ();
2N/A (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
2N/A if (two_pages != (char *)(-1)
2N/A && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
2N/A fence = two_pages + pagesize;
2N/A if (memchr (fence, 0, 0))
2N/A strcpy (fence - 9, "12345678");
2N/A if (memchr (fence - 9, 0, 79) != fence - 1)
2N/A if (memchr (fence - 1, 0, 3) != fence - 1)
2N/A]])], [gl_cv_func_memchr_works=yes], [gl_cv_func_memchr_works=no],
2N/A [dnl Be pessimistic for now.
2N/A gl_cv_func_memchr_works="guessing no"])])
2N/A if test "$gl_cv_func_memchr_works" != yes; then
2N/A if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
2N/A AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
2N/A AC_REQUIRE([AC_C_RESTRICT])
2N/A AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
2N/A AC_REPLACE_FUNCS([mempcpy])
2N/A if test $ac_cv_func_mempcpy = no; then
2N/A dnl Work around a bug of AC_EGREP_CPP in autoconf-2.57.
2N/A AC_REQUIRE([AC_PROG_CPP])
2N/A AC_REQUIRE([AC_PROG_EGREP])
2N/A AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
2N/A # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
2N/A # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
2N/A # irrelevant for anonymous mappings.
2N/A AC_CHECK_FUNC([mmap], [gl_have_mmap=yes], [gl_have_mmap=no])
2N/A # Try to allow MAP_ANONYMOUS.
2N/A gl_have_mmap_anonymous=no
2N/A if test $gl_have_mmap = yes; then
2N/A AC_MSG_CHECKING([for MAP_ANONYMOUS])
2N/A AC_EGREP_CPP([I cant identify this map.], [
2N/A I cant identify this map.
2N/A [gl_have_mmap_anonymous=yes])
2N/A if test $gl_have_mmap_anonymous != yes; then
2N/A AC_EGREP_CPP([I cant identify this map.], [
2N/A I cant identify this map.
2N/A [AC_DEFINE([MAP_ANONYMOUS], [MAP_ANON],
2N/A [Define to a substitute value for mmap()'s MAP_ANONYMOUS flag.])
2N/A gl_have_mmap_anonymous=yes])
2N/A AC_MSG_RESULT([$gl_have_mmap_anonymous])
2N/A if test $gl_have_mmap_anonymous = yes; then
2N/A AC_DEFINE([HAVE_MAP_ANONYMOUS], [1],
2N/A [Define to 1 if mmap()'s MAP_ANONYMOUS flag is available after including
2N/A dnl Code similar to autoconf-2.63 AC_C_BIGENDIAN.
2N/A gl_cv_c_multiarch=no
2N/A [[#ifndef __APPLE_CC__
2N/A not a universal capable compiler
2N/A dnl Check for potential -arch flags. It is not universal unless
2N/A dnl there are at least two -arch flags with different values.
2N/A for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
2N/A if test -n "$prev"; then
2N/A i?86 | x86_64 | ppc | ppc64)
2N/A if test -z "$arch" || test "$arch" = "$word"; then
2N/A gl_cv_c_multiarch=yes
2N/A if test "x$word" = "x-arch"; then
2N/A if test $gl_cv_c_multiarch = yes; then
2N/A AC_DEFINE([AA_APPLE_UNIVERSAL_BUILD], [1],
2N/A [Define if the compiler is building for multiple architectures of Apple platforms at once.])
2N/A APPLE_UNIVERSAL_BUILD=1
2N/A APPLE_UNIVERSAL_BUILD=0
2N/A AC_SUBST([APPLE_UNIVERSAL_BUILD])
2N/Am4trace:
m4/multiarch.m4:22: -1- AC_DEFUN([gl_MULTIARCH], [AC_REQUIRE([_gl_DEFUN_ONCE([gl_MULTIARCH])],
2N/A [m4_indir([_gl_DEFUN_ONCE([gl_MULTIARCH])])])])
2N/A dnl Code similar to autoconf-2.63 AC_C_BIGENDIAN.
2N/A gl_cv_c_multiarch=no
2N/A [[#ifndef __APPLE_CC__
2N/A not a universal capable compiler
2N/A dnl Check for potential -arch flags. It is not universal unless
2N/A dnl there are at least two -arch flags with different values.
2N/A for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
2N/A if test -n "$prev"; then
2N/A i?86 | x86_64 | ppc | ppc64)
2N/A if test -z "$arch" || test "$arch" = "$word"; then
2N/A gl_cv_c_multiarch=yes
2N/A if test "x$word" = "x-arch"; then
2N/A if test $gl_cv_c_multiarch = yes; then
2N/A AC_DEFINE([AA_APPLE_UNIVERSAL_BUILD], [1],
2N/A [Define if the compiler is building for multiple architectures of Apple platforms at once.])
2N/A APPLE_UNIVERSAL_BUILD=1
2N/A APPLE_UNIVERSAL_BUILD=0
2N/A AC_SUBST([APPLE_UNIVERSAL_BUILD])
2N/A AC_REQUIRE([gl_LANGINFO_H_DEFAULTS])
2N/A AC_REQUIRE([gl_LANGINFO_H])
2N/A AC_CHECK_FUNCS_ONCE([nl_langinfo])
2N/A if test $ac_cv_func_nl_langinfo = yes; then
2N/A if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then
2N/A REPLACE_NL_LANGINFO=1
2N/A AC_DEFINE([REPLACE_NL_LANGINFO], [1],
2N/A [Define if nl_langinfo exists but is overridden by gnulib.])
2N/A AC_LIBOBJ([nl_langinfo])
2N/A AC_LIBOBJ([nl_langinfo])
2N/A AC_MSG_CHECKING([whether NLS is requested])
2N/A dnl Default is enabled NLS
2N/A AC_ARG_ENABLE([nls],
2N/A [ --disable-nls do not use Native Language Support],
2N/A USE_NLS=$enableval, USE_NLS=yes)
2N/A AC_MSG_RESULT([$USE_NLS])
2N/A AC_REQUIRE([AC_PROG_MAKE_SET])dnl
2N/A AC_REQUIRE([AC_PROG_INSTALL])dnl
2N/A AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
2N/A AC_REQUIRE([AM_NLS])dnl
2N/A dnl Release version of the gettext macros. This is used to ensure that
2N/A AC_SUBST([GETTEXT_MACRO_VERSION], [0.18])
2N/A dnl Perform the following tests also if --disable-nls has been given,
2N/A dnl because they are needed for "make dist" to work.
2N/A dnl Search for GNU msgfmt in the PATH.
2N/A dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
2N/A dnl The second test excludes FreeBSD msgfmt.
2N/A AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
2N/A [$ac_dir/$ac_word --statistics
/dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
2N/A AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT])
2N/A dnl Test whether it is GNU msgfmt >= 0.15.
2N/A case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2N/A '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
2N/A *) MSGFMT_015=$MSGFMT ;;
2N/A AC_SUBST([MSGFMT_015])
2N/A case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2N/A '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
2N/A *) GMSGFMT_015=$GMSGFMT ;;
2N/A AC_SUBST([GMSGFMT_015])
2N/A dnl Search for GNU xgettext 0.12 or newer in the PATH.
2N/A dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
2N/A dnl The second test excludes FreeBSD xgettext.
2N/A AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
2N/A [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address=
/dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
2N/A (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address=
/dev/null 2>&1 >
/dev/null | grep usage >
/dev/null; then exit 1; else exit 0; fi)],
2N/A dnl Remove leftover from FreeBSD xgettext call.
2N/A dnl Test whether it is GNU xgettext >= 0.15.
2N/A case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2N/A '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
2N/A *) XGETTEXT_015=$XGETTEXT ;;
2N/A AC_SUBST([XGETTEXT_015])
2N/A dnl Search for GNU msgmerge 0.11 or newer in the PATH.
2N/A AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
2N/A dnl Installation directories.
2N/A dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we
2N/A test -n "$localedir" || localedir='${datadir}/locale'
2N/A AC_SUBST([localedir])
2N/A dnl Support for AM_XGETTEXT_OPTION.
2N/A test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
2N/A AC_SUBST([XGETTEXT_EXTRA_OPTIONS])
2N/A AC_CONFIG_COMMANDS([po-directories], [[
2N/A for ac_file in $CONFIG_FILES; do
2N/A # Support "outfile[:infile[:infile...]]"
2N/A *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2N/A # Adjust a relative srcdir.
2N/A ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
2N/A ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
2N/A ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
2N/A # In autoconf-2.13 it is called $ac_given_srcdir.
2N/A # In autoconf-2.50 it is called $srcdir.
2N/A test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
2N/A case "$ac_given_srcdir" in
2N/A .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
2N/A /*) top_srcdir="$ac_given_srcdir" ;;
2N/A *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
2N/A # Treat a directory as a PO directory if and only if it has a
2N/A # directories under different names or in different locations.
2N/A # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
2N/A # on $ac_dir but don't depend on user-specified configuration
2N/A # The LINGUAS file contains the set of available languages.
2N/A if test -n "$OBSOLETE_ALL_LINGUAS"; then
2N/A test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in
configure.in is obsolete" || echo "setting ALL_LINGUAS in
configure.in is obsolete"
2N/A # Hide the ALL_LINGUAS assigment from automake < 1.5.
2N/A eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
2N/A POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
2N/A # Hide the ALL_LINGUAS assigment from automake < 1.5.
2N/A eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
2N/A # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
2N/A # Compute UPDATEPOFILES
2N/A # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
2N/A # Compute DUMMYPOFILES
2N/A # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
2N/A # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
2N/A case "$ac_given_srcdir" in
2N/A *) srcdirpre='$(srcdir)/' ;;
2N/A for lang in $ALL_LINGUAS; do
2N/A # CATALOGS depends on both $ac_dir and the user's LINGUAS
2N/A # environment variable.
2N/A if test -n "$ALL_LINGUAS"; then
2N/A for presentlang in $ALL_LINGUAS; do
2N/A if test "%UNSET%" != "$LINGUAS"; then
2N/A desiredlanguages="$LINGUAS"
2N/A desiredlanguages="$ALL_LINGUAS"
2N/A for desiredlang in $desiredlanguages; do
2N/A # Use the presentlang catalog if desiredlang is
2N/A # a. equal to presentlang, or
2N/A # b. a variant of presentlang (because in this case,
2N/A # presentlang can be used as a fallback for messages
2N/A # which are not translated in the desiredlang catalog).
2N/A case "$desiredlang" in
2N/A "$presentlang"*) useit=yes;;
2N/A if test $useit = yes; then
2N/A INST_LINGUAS="$INST_LINGUAS $presentlang"
2N/A if test -n "$INST_LINGUAS"; then
2N/A for lang in $INST_LINGUAS; do
2N/A sed -e "/^POTFILES =/r $
ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$
ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$
ac_dir/Makefile.in" > "$
ac_dir/Makefile"
2N/A for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
2N/A if test -f "$f"; then
2N/A *.orig | *.bak | *~) ;;
2N/A [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
2N/A # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
2N/A # from automake < 1.5.
2N/A eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
2N/A # Capture the value of LINGUAS because we need it to compute CATALOGS.
2N/A LINGUAS="${LINGUAS-%UNSET%}"
2N/Am4trace:
m4/po.m4:218: -1- AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], [
2N/A # - LINGUAS is the value of the environment variable LINGUAS at configure
2N/A # Adjust a relative srcdir.
2N/A ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
2N/A ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
2N/A ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
2N/A # In autoconf-2.13 it is called $ac_given_srcdir.
2N/A # In autoconf-2.50 it is called $srcdir.
2N/A test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
2N/A case "$ac_given_srcdir" in
2N/A .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
2N/A /*) top_srcdir="$ac_given_srcdir" ;;
2N/A *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
2N/A # Find a way to echo strings without interpreting backslash.
2N/A gt_echo='printf %s\n'
2N/A # A sed script that extracts the value of VARIABLE from a Makefile.
2N/A# Test if the hold space is empty.
2N/A# Yes it was empty. Look if we have the expected variable definition.
2N/A/^[ ]*VARIABLE[ ]*=/{
2N/A # Seen the first line of the variable definition.
2N/A s/^[ ]*VARIABLE[ ]*=//
2N/A# Here we are processing a line from the variable definition.
2N/A# Remove comment, more precisely replace it with a space.
2N/A# See if the line ends in a backslash.
2N/A# Print the line, without the trailing backslash.
2N/A# There was no trailing backslash. The end of the variable definition is
2N/A# reached. Clear the hold space.
2N/A# A trailing backslash means that the variable definition continues in the
2N/A# next line. Put a nonempty string into the hold space to indicate this.
2N/A # Set POTFILES to the value of the Makefile variable POTFILES.
2N/A POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
2N/A # Compute POTFILES_DEPS as
2N/A # $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
2N/A for file in $POTFILES; do
2N/A POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
2N/A if test -n "$OBSOLETE_ALL_LINGUAS"; then
2N/A test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in
configure.in is obsolete" || echo "setting ALL_LINGUAS in
configure.in is obsolete"
2N/A # The LINGUAS file contains the set of available languages.
2N/A POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
2N/A # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
2N/A ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
2N/A # Hide the ALL_LINGUAS assigment from automake < 1.5.
2N/A eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
2N/A # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
2N/A # Compute UPDATEPOFILES
2N/A # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
2N/A # Compute DUMMYPOFILES
2N/A # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
2N/A # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
2N/A # Compute PROPERTIESFILES
2N/A # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
2N/A # Compute CLASSFILES
2N/A # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
2N/A # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
2N/A # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
2N/A # Compute RESOURCESDLLFILES
2N/A # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN)
.resources.dll)
2N/A case "$ac_given_srcdir" in
2N/A *) srcdirpre='$(srcdir)/' ;;
2N/A for lang in $ALL_LINGUAS; do
2N/A frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^
sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
2N/A RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN)
.resources.dll"
2N/A # CATALOGS depends on both $ac_dir and the user's LINGUAS
2N/A # environment variable.
2N/A if test -n "$ALL_LINGUAS"; then
2N/A for presentlang in $ALL_LINGUAS; do
2N/A if test "%UNSET%" != "$LINGUAS"; then
2N/A desiredlanguages="$LINGUAS"
2N/A desiredlanguages="$ALL_LINGUAS"
2N/A for desiredlang in $desiredlanguages; do
2N/A # Use the presentlang catalog if desiredlang is
2N/A # a. equal to presentlang, or
2N/A # b. a variant of presentlang (because in this case,
2N/A # presentlang can be used as a fallback for messages
2N/A # which are not translated in the desiredlang catalog).
2N/A case "$desiredlang" in
2N/A "$presentlang"*) useit=yes;;
2N/A if test $useit = yes; then
2N/A INST_LINGUAS="$INST_LINGUAS $presentlang"
2N/A if test -n "$INST_LINGUAS"; then
2N/A for lang in $INST_LINGUAS; do
2N/A frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^
sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
2N/A sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$
ac_file.tmp"
2N/A # Add dependencies that cannot be formulated as a simple suffix rule.
2N/A for lang in $ALL_LINGUAS; do
2N/A @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$
lang.po"; \
2N/A # Add dependencies that cannot be formulated as a simple suffix rule.
2N/A for lang in $ALL_LINGUAS; do
2N/A frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^
sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
2N/A @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$
lang.po -r \$(DOMAIN)"; \
2N/A \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$
lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$
frobbedlang.msg"; exit 1; }
2N/A if test -n "$POMAKEFILEDEPS"; then
2N/AMakefile: $POMAKEFILEDEPS
2N/Am4trace:
m4/po.m4:439: -1- AC_DEFUN([AM_XGETTEXT_OPTION_INIT], [
2N/A XGETTEXT_EXTRA_OPTIONS=
2N/Am4trace:
m4/po.m4:445: -1- AC_DEFUN([AM_XGETTEXT_OPTION], [
2N/A AC_REQUIRE([AM_XGETTEXT_OPTION_INIT])
2N/A XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1"
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_CACHE_CHECK([whether printf() supports
POSIX/XSI format strings],
2N/A gt_cv_func_printf_posix,
2N/A/* The string "%2$d %1$d", with dollar characters protected from the shell's
2N/A dollar expansion (possibly an autoconf bug). */
2N/Astatic char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
2N/Astatic char buf[100];
2N/A sprintf (buf, format, 33, 55);
2N/A return (strcmp (buf, "55 33") != 0);
2N/A [gt_cv_func_printf_posix=yes],
2N/A [gt_cv_func_printf_posix=no],
2N/A AC_EGREP_CPP([notposix], [
2N/A#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
2N/A [gt_cv_func_printf_posix="guessing no"],
2N/A [gt_cv_func_printf_posix="guessing yes"])
2N/A case $gt_cv_func_printf_posix in
2N/A AC_DEFINE([HAVE_POSIX_PRINTF], [1],
2N/A [Define if your printf() function supports format strings with positions.])
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([gl_AC_HEADER_STDINT_H])
2N/A AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A AC_CACHE_CHECK([whether printf supports size specifiers as in C99],
2N/A [gl_cv_func_printf_sizes_c99],
2N/A#if HAVE_STDINT_H_WITH_UINTMAX
2N/A#if HAVE_INTTYPES_H_WITH_UINTMAX
2N/Astatic char buf[100];
2N/A#if HAVE_STDINT_H_WITH_UINTMAX || HAVE_INTTYPES_H_WITH_UINTMAX
2N/A if (sprintf (buf, "%ju %d", (uintmax_t) 12345671, 33, 44, 55) < 0
2N/A || strcmp (buf, "12345671 33") != 0)
2N/A if (sprintf (buf, "%zu %d", (size_t) 12345672, 33, 44, 55) < 0
2N/A || strcmp (buf, "12345672 33") != 0)
2N/A if (sprintf (buf, "%tu %d", (ptrdiff_t) 12345673, 33, 44, 55) < 0
2N/A || strcmp (buf, "12345673 33") != 0)
2N/A if (sprintf (buf, "%Lg %d", (long double) 1.5, 33, 44, 55) < 0
2N/A || strcmp (buf, "1.5 33") != 0)
2N/A [gl_cv_func_printf_sizes_c99=yes],
2N/A [gl_cv_func_printf_sizes_c99=no],
2N/A # Guess yes on glibc systems.
2N/A *-gnu*) gl_cv_func_printf_sizes_c99="guessing yes";;
2N/A # Guess yes on FreeBSD >= 5.
2N/A freebsd[1-4]*) gl_cv_func_printf_sizes_c99="guessing no";;
2N/A freebsd* | kfreebsd*) gl_cv_func_printf_sizes_c99="guessing yes";;
2N/A # Guess yes on MacOS X >= 10.3.
2N/A darwin[1-6].*) gl_cv_func_printf_sizes_c99="guessing no";;
2N/A darwin*) gl_cv_func_printf_sizes_c99="guessing yes";;
2N/A # Guess yes on OpenBSD >= 3.9.
2N/A openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
2N/A gl_cv_func_printf_sizes_c99="guessing no";;
2N/A openbsd*) gl_cv_func_printf_sizes_c99="guessing yes";;
2N/A # Guess yes on Solaris >= 2.10.
2N/A solaris2.[0-9]*) gl_cv_func_printf_sizes_c99="guessing no";;
2N/A solaris*) gl_cv_func_printf_sizes_c99="guessing yes";;
2N/A # Guess yes on NetBSD >= 3.
2N/A netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
2N/A gl_cv_func_printf_sizes_c99="guessing no";;
2N/A netbsd*) gl_cv_func_printf_sizes_c99="guessing yes";;
2N/A # If we don't know, assume the worst.
2N/A *) gl_cv_func_printf_sizes_c99="guessing no";;
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A AC_CACHE_CHECK([whether printf supports 'long double' arguments],
2N/A [gl_cv_func_printf_long_double],
2N/Astatic char buf[10000];
2N/A if (sprintf (buf, "%Lf %d", 1.75L, 33, 44, 55) < 0
2N/A || strcmp (buf, "1.750000 33") != 0)
2N/A if (sprintf (buf, "%Le %d", 1.75L, 33, 44, 55) < 0
2N/A || strcmp (buf, "1.750000e+00 33") != 0)
2N/A if (sprintf (buf, "%Lg %d", 1.75L, 33, 44, 55) < 0
2N/A || strcmp (buf, "1.75 33") != 0)
2N/A [gl_cv_func_printf_long_double=yes],
2N/A [gl_cv_func_printf_long_double=no],
2N/A beos*) gl_cv_func_printf_long_double="guessing no";;
2N/A mingw* | pw*) gl_cv_func_printf_long_double="guessing no";;
2N/A *) gl_cv_func_printf_long_double="guessing yes";;
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A AC_CACHE_CHECK([whether printf supports infinite 'double' arguments],
2N/A [gl_cv_func_printf_infinite],
2N/Astrisnan (const char *string, size_t start_index, size_t end_index)
2N/A if (start_index < end_index)
2N/A if (string[start_index] == '-')
2N/A if (start_index + 3 <= end_index
2N/A && memcmp (string + start_index, "nan", 3) == 0)
2N/A if (start_index == end_index
2N/A || (string[start_index] == '(' && string[end_index - 1] == ')'))
2N/A static double plus_zero = 0.0;
2N/A double minus_zero = - plus_zero;
2N/A return memcmp (&plus_zero, &minus_zero, sizeof (double)) != 0;
2N/Astatic char buf[10000];
2N/Astatic double zero = 0.0;
2N/A if (sprintf (buf, "%f", 1.0 / 0.0) < 0
2N/A || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
2N/A if (sprintf (buf, "%f", -1.0 / 0.0) < 0
2N/A || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
2N/A if (sprintf (buf, "%f", zero / zero) < 0
2N/A || !strisnan (buf, 0, strlen (buf)))
2N/A if (sprintf (buf, "%e", 1.0 / 0.0) < 0
2N/A || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
2N/A if (sprintf (buf, "%e", -1.0 / 0.0) < 0
2N/A || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
2N/A if (sprintf (buf, "%e", zero / zero) < 0
2N/A || !strisnan (buf, 0, strlen (buf)))
2N/A if (sprintf (buf, "%g", 1.0 / 0.0) < 0
2N/A || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
2N/A if (sprintf (buf, "%g", -1.0 / 0.0) < 0
2N/A || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
2N/A if (sprintf (buf, "%g", zero / zero) < 0
2N/A || !strisnan (buf, 0, strlen (buf)))
2N/A /* This test fails on HP-UX 10.20. */
2N/A if (have_minus_zero ())
2N/A if (sprintf (buf, "%g", - zero) < 0
2N/A || strcmp (buf, "-0") != 0)
2N/A [gl_cv_func_printf_infinite=yes],
2N/A [gl_cv_func_printf_infinite=no],
2N/A # Guess yes on glibc systems.
2N/A *-gnu*) gl_cv_func_printf_infinite="guessing yes";;
2N/A # Guess yes on FreeBSD >= 6.
2N/A freebsd[1-5]*) gl_cv_func_printf_infinite="guessing no";;
2N/A freebsd* | kfreebsd*) gl_cv_func_printf_infinite="guessing yes";;
2N/A # Guess yes on MacOS X >= 10.3.
2N/A darwin[1-6].*) gl_cv_func_printf_infinite="guessing no";;
2N/A darwin*) gl_cv_func_printf_infinite="guessing yes";;
2N/A # Guess yes on HP-UX >= 11.
2N/A hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite="guessing no";;
2N/A hpux*) gl_cv_func_printf_infinite="guessing yes";;
2N/A # Guess yes on NetBSD >= 3.
2N/A netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
2N/A gl_cv_func_printf_infinite="guessing no";;
2N/A netbsd*) gl_cv_func_printf_infinite="guessing yes";;
2N/A # Guess yes on BeOS.
2N/A beos*) gl_cv_func_printf_infinite="guessing yes";;
2N/A # If we don't know, assume the worst.
2N/A *) gl_cv_func_printf_infinite="guessing no";;
2N/A AC_REQUIRE([gl_PRINTF_LONG_DOUBLE])
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([gl_BIGENDIAN])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A dnl The user can set or unset the variable gl_printf_safe to indicate
2N/A dnl that he wishes a safe handling of non-IEEE-754 'long double' values.
2N/A if test -n "$gl_printf_safe"; then
2N/A AC_DEFINE([CHECK_PRINTF_SAFE], [1],
2N/A [Define if you wish *printf() functions that have a safe handling of
2N/A non-IEEE-754 'long double' values.])
2N/A case "$gl_cv_func_printf_long_double" in
2N/A AC_CACHE_CHECK([whether printf supports infinite 'long double' arguments],
2N/A [gl_cv_func_printf_infinite_long_double],
2N/Astrisnan (const char *string, size_t start_index, size_t end_index)
2N/A if (start_index < end_index)
2N/A if (string[start_index] == '-')
2N/A if (start_index + 3 <= end_index
2N/A && memcmp (string + start_index, "nan", 3) == 0)
2N/A if (start_index == end_index
2N/A || (string[start_index] == '(' && string[end_index - 1] == ')'))
2N/Astatic char buf[10000];
2N/Astatic long double zeroL = 0.0L;
2N/A if (sprintf (buf, "%Lf", 1.0L / 0.0L) < 0
2N/A || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
2N/A if (sprintf (buf, "%Lf", -1.0L / 0.0L) < 0
2N/A || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
2N/A if (sprintf (buf, "%Lf", zeroL / zeroL) < 0
2N/A || !strisnan (buf, 0, strlen (buf)))
2N/A if (sprintf (buf, "%Le", 1.0L / 0.0L) < 0
2N/A || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
2N/A if (sprintf (buf, "%Le", -1.0L / 0.0L) < 0
2N/A || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
2N/A if (sprintf (buf, "%Le", zeroL / zeroL) < 0
2N/A || !strisnan (buf, 0, strlen (buf)))
2N/A if (sprintf (buf, "%Lg", 1.0L / 0.0L) < 0
2N/A || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
2N/A if (sprintf (buf, "%Lg", -1.0L / 0.0L) < 0
2N/A || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
2N/A if (sprintf (buf, "%Lg", zeroL / zeroL) < 0
2N/A || !strisnan (buf, 0, strlen (buf)))
2N/A#if CHECK_PRINTF_SAFE && ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_))
2N/A/* Representation of an 80-bit 'long double' as an initializer for a sequence
2N/A of 'unsigned int' words. */
2N/A# ifdef WORDS_BIGENDIAN
2N/A# define LDBL80_WORDS(exponent,manthi,mantlo) \
2N/A { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
2N/A ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
2N/A (unsigned int) (mantlo) << 16 \
2N/A# define LDBL80_WORDS(exponent,manthi,mantlo) \
2N/A { mantlo, manthi, exponent }
2N/A static union { unsigned int word[4]; long double value; } x =
2N/A { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
2N/A || !strisnan (buf, 0, strlen (buf)))
2N/A || !strisnan (buf, 0, strlen (buf)))
2N/A || !strisnan (buf, 0, strlen (buf)))
2N/A /* Signalling NaN. */
2N/A static union { unsigned int word[4]; long double value; } x =
2N/A { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
2N/A || !strisnan (buf, 0, strlen (buf)))
2N/A || !strisnan (buf, 0, strlen (buf)))
2N/A || !strisnan (buf, 0, strlen (buf)))
2N/A static union { unsigned int word[4]; long double value; } x =
2N/A { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
2N/A || !strisnan (buf, 0, strlen (buf)))
2N/A || !strisnan (buf, 0, strlen (buf)))
2N/A || !strisnan (buf, 0, strlen (buf)))
2N/A { /* Pseudo-Infinity. */
2N/A static union { unsigned int word[4]; long double value; } x =
2N/A { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
2N/A || !strisnan (buf, 0, strlen (buf)))
2N/A || !strisnan (buf, 0, strlen (buf)))
2N/A || !strisnan (buf, 0, strlen (buf)))
2N/A { /* Pseudo-Zero. */
2N/A static union { unsigned int word[4]; long double value; } x =
2N/A { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
2N/A || !strisnan (buf, 0, strlen (buf)))
2N/A || !strisnan (buf, 0, strlen (buf)))
2N/A || !strisnan (buf, 0, strlen (buf)))
2N/A { /* Unnormalized number. */
2N/A static union { unsigned int word[4]; long double value; } x =
2N/A { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
2N/A || !strisnan (buf, 0, strlen (buf)))
2N/A || !strisnan (buf, 0, strlen (buf)))
2N/A || !strisnan (buf, 0, strlen (buf)))
2N/A { /* Pseudo-Denormal. */
2N/A static union { unsigned int word[4]; long double value; } x =
2N/A { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
2N/A || !strisnan (buf, 0, strlen (buf)))
2N/A || !strisnan (buf, 0, strlen (buf)))
2N/A || !strisnan (buf, 0, strlen (buf)))
2N/A [gl_cv_func_printf_infinite_long_double=yes],
2N/A [gl_cv_func_printf_infinite_long_double=no],
2N/A # Guess no on ia64, x86_64, i386.
2N/A ia64 | x86_64 | i*86) gl_cv_func_printf_infinite_long_double="guessing no";;
2N/A # Guess yes on glibc systems.
2N/A *-gnu*) gl_cv_func_printf_infinite_long_double="guessing yes";;
2N/A # Guess yes on FreeBSD >= 6.
2N/A freebsd[1-5]*) gl_cv_func_printf_infinite_long_double="guessing no";;
2N/A freebsd* | kfreebsd*) gl_cv_func_printf_infinite_long_double="guessing yes";;
2N/A # Guess yes on MacOS X >= 10.3.
2N/A darwin[1-6].*) gl_cv_func_printf_infinite_long_double="guessing no";;
2N/A darwin*) gl_cv_func_printf_infinite_long_double="guessing yes";;
2N/A # Guess yes on HP-UX >= 11.
2N/A hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite_long_double="guessing no";;
2N/A hpux*) gl_cv_func_printf_infinite_long_double="guessing yes";;
2N/A # Guess yes on NetBSD >= 3.
2N/A netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
2N/A gl_cv_func_printf_infinite_long_double="guessing no";;
2N/A netbsd*) gl_cv_func_printf_infinite_long_double="guessing yes";;
2N/A # If we don't know, assume the worst.
2N/A *) gl_cv_func_printf_infinite_long_double="guessing no";;
2N/A gl_cv_func_printf_infinite_long_double="irrelevant"
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A AC_CACHE_CHECK([whether printf supports the 'a' and 'A' directives],
2N/A [gl_cv_func_printf_directive_a],
2N/Astatic char buf[100];
2N/A if (sprintf (buf, "%a %d", 3.1416015625, 33, 44, 55) < 0
2N/A || (strcmp (buf, "0x1.922p+1 33") != 0
2N/A && strcmp (buf, "0x3.244p+0 33") != 0
2N/A && strcmp (buf, "0x6.488p-1 33") != 0
2N/A && strcmp (buf, "0xc.91p-2 33") != 0))
2N/A if (sprintf (buf, "%A %d", -3.1416015625, 33, 44, 55) < 0
2N/A || (strcmp (buf, "-0X1.922P+1 33") != 0
2N/A && strcmp (buf, "-0X3.244P+0 33") != 0
2N/A && strcmp (buf, "-0X6.488P-1 33") != 0
2N/A && strcmp (buf, "-0XC.91P-2 33") != 0))
2N/A /* This catches a FreeBSD 6.1 bug: it doesn't round. */
2N/A if (sprintf (buf, "%.2a %d", 1.51, 33, 44, 55) < 0
2N/A || (strcmp (buf, "0x1.83p+0 33") != 0
2N/A && strcmp (buf, "0x3.05p-1 33") != 0
2N/A && strcmp (buf, "0x6.0ap-2 33") != 0
2N/A && strcmp (buf, "0xc.14p-3 33") != 0))
2N/A /* This catches a FreeBSD 6.1 bug. See
2N/A if (sprintf (buf, "%010a %d", 1.0 / 0.0, 33, 44, 55) < 0
2N/A /* This catches a MacOS X 10.3.9 (Darwin 7.9) bug. */
2N/A if (sprintf (buf, "%.1a", 1.999) < 0
2N/A || (strcmp (buf, "0x1.0p+1") != 0
2N/A && strcmp (buf, "0x2.0p+0") != 0
2N/A && strcmp (buf, "0x4.0p-1") != 0
2N/A && strcmp (buf, "0x8.0p-2") != 0))
2N/A /* This catches the same MacOS X 10.3.9 (Darwin 7.9) bug and also a
2N/A if (sprintf (buf, "%.1La", 1.999L) < 0
2N/A || (strcmp (buf, "0x1.0p+1") != 0
2N/A && strcmp (buf, "0x2.0p+0") != 0
2N/A && strcmp (buf, "0x4.0p-1") != 0
2N/A && strcmp (buf, "0x8.0p-2") != 0))
2N/A [gl_cv_func_printf_directive_a=yes],
2N/A [gl_cv_func_printf_directive_a=no],
2N/A # Guess yes on glibc >= 2.5 systems.
2N/A AC_EGREP_CPP([BZ2908], [
2N/A #ifdef __GNU_LIBRARY__
2N/A #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 5) || (__GLIBC__ > 2)
2N/A [gl_cv_func_printf_directive_a="guessing yes"],
2N/A [gl_cv_func_printf_directive_a="guessing no"])
2N/A # If we don't know, assume the worst.
2N/A *) gl_cv_func_printf_directive_a="guessing no";;
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A AC_CACHE_CHECK([whether printf supports the 'F' directive],
2N/A [gl_cv_func_printf_directive_f],
2N/Astatic char buf[100];
2N/A if (sprintf (buf, "%F %d", 1234567.0, 33, 44, 55) < 0
2N/A || strcmp (buf, "1234567.000000 33") != 0)
2N/A if (sprintf (buf, "%F", 1.0 / 0.0) < 0
2N/A || (strcmp (buf, "INF") != 0 && strcmp (buf, "INFINITY") != 0))
2N/A if (sprintf (buf, "%.F", 1234.0) < 0
2N/A || strcmp (buf, "1234") != 0)
2N/A [gl_cv_func_printf_directive_f=yes],
2N/A [gl_cv_func_printf_directive_f=no],
2N/A # Guess yes on glibc systems.
2N/A *-gnu*) gl_cv_func_printf_directive_f="guessing yes";;
2N/A # Guess yes on FreeBSD >= 6.
2N/A freebsd[1-5]*) gl_cv_func_printf_directive_f="guessing no";;
2N/A freebsd* | kfreebsd*) gl_cv_func_printf_directive_f="guessing yes";;
2N/A # Guess yes on MacOS X >= 10.3.
2N/A darwin[1-6].*) gl_cv_func_printf_directive_f="guessing no";;
2N/A darwin*) gl_cv_func_printf_directive_f="guessing yes";;
2N/A # Guess yes on Solaris >= 2.10.
2N/A solaris2.[0-9]*) gl_cv_func_printf_directive_f="guessing no";;
2N/A solaris*) gl_cv_func_printf_directive_f="guessing yes";;
2N/A # If we don't know, assume the worst.
2N/A *) gl_cv_func_printf_directive_f="guessing no";;
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A AC_CACHE_CHECK([whether printf supports the 'n' directive],
2N/A [gl_cv_func_printf_directive_n],
2N/Astatic char fmtstring[10];
2N/Astatic char buf[100];
2N/A /* Copy the format string. Some systems (glibc with _FORTIFY_SOURCE=2)
2N/A support %n in format strings in read-only memory but not in writable
2N/A strcpy (fmtstring, "%d %n");
2N/A if (sprintf (buf, fmtstring, 123, &count, 33, 44, 55) < 0
2N/A || strcmp (buf, "123 ") != 0
2N/A [gl_cv_func_printf_directive_n=yes],
2N/A [gl_cv_func_printf_directive_n=no],
2N/A *) gl_cv_func_printf_directive_n="guessing yes";;
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A AC_CACHE_CHECK([whether printf supports the 'ls' directive],
2N/A [gl_cv_func_printf_directive_ls],
2N/A/* Tru64 with Desktop Toolkit C has a bug: <
stdio.h> must be included before
2N/A /* Test whether %ls works at all.
2N/A This test fails on OpenBSD 4.0, IRIX 6.5, Solaris 2.6, Haiku, but not on
2N/A static const wchar_t wstring[] = { 'a', 'b', 'c', 0 };
2N/A if (sprintf (buf, "%ls", wstring) < 0
2N/A || strcmp (buf, "abc") != 0)
2N/A /* This test fails on IRIX 6.5, Solaris 2.6, Cygwin 1.5, Haiku (with an
2N/A assertion failure inside libc), but not on OpenBSD 4.0. */
2N/A static const wchar_t wstring[] = { 'a', 0 };
2N/A if (sprintf (buf, "%ls", wstring) < 0
2N/A || strcmp (buf, "a") != 0)
2N/A /* Test whether precisions in %ls are supported as specified in ISO C 99
2N/A "If a precision is specified, no more than that many bytes are written
2N/A (including shift sequences, if any), and the array shall contain a
2N/A null wide character if, to equal the multibyte character sequence
2N/A length given by the precision, the function would need to access a
2N/A wide character one past the end of the array."
2N/A This test fails on Solaris 10. */
2N/A static const wchar_t wstring[] = { 'a', 'b', (wchar_t) 0xfdfdfdfd, 0 };
2N/A if (sprintf (buf, "%.2ls", wstring) < 0
2N/A || strcmp (buf, "ab") != 0)
2N/A [gl_cv_func_printf_directive_ls=yes],
2N/A [gl_cv_func_printf_directive_ls=no],
2N/A openbsd*) gl_cv_func_printf_directive_ls="guessing no";;
2N/A irix*) gl_cv_func_printf_directive_ls="guessing no";;
2N/A solaris*) gl_cv_func_printf_directive_ls="guessing no";;
2N/A cygwin*) gl_cv_func_printf_directive_ls="guessing no";;
2N/A beos* | haiku*) gl_cv_func_printf_directive_ls="guessing no";;
2N/A *) gl_cv_func_printf_directive_ls="guessing yes";;
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A AC_CACHE_CHECK([whether printf supports
POSIX/XSI format strings with positions],
2N/A [gl_cv_func_printf_positions],
2N/A/* The string "%2$d %1$d", with dollar characters protected from the shell's
2N/A dollar expansion (possibly an autoconf bug). */
2N/Astatic char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
2N/Astatic char buf[100];
2N/A sprintf (buf, format, 33, 55);
2N/A return (strcmp (buf, "55 33") != 0);
2N/A [gl_cv_func_printf_positions=yes],
2N/A [gl_cv_func_printf_positions=no],
2N/A netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
2N/A gl_cv_func_printf_positions="guessing no";;
2N/A beos*) gl_cv_func_printf_positions="guessing no";;
2N/A mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
2N/A *) gl_cv_func_printf_positions="guessing yes";;
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A AC_CACHE_CHECK([whether printf supports the grouping flag],
2N/A [gl_cv_func_printf_flag_grouping],
2N/Astatic char buf[100];
2N/A if (sprintf (buf, "%'d %d", 1234567, 99) < 0
2N/A || buf[strlen (buf) - 1] != '9')
2N/A [gl_cv_func_printf_flag_grouping=yes],
2N/A [gl_cv_func_printf_flag_grouping=no],
2N/A cygwin*) gl_cv_func_printf_flag_grouping="guessing no";;
2N/A netbsd*) gl_cv_func_printf_flag_grouping="guessing no";;
2N/A mingw* | pw*) gl_cv_func_printf_flag_grouping="guessing no";;
2N/A *) gl_cv_func_printf_flag_grouping="guessing yes";;
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A AC_CACHE_CHECK([whether printf supports the left-adjust flag correctly],
2N/A [gl_cv_func_printf_flag_leftadjust],
2N/Astatic char buf[100];
2N/A /* Check that a '-' flag is not annihilated by a negative width. */
2N/A if (sprintf (buf, "a%-*sc", -3, "b") < 0
2N/A || strcmp (buf, "ab c") != 0)
2N/A [gl_cv_func_printf_flag_leftadjust=yes],
2N/A [gl_cv_func_printf_flag_leftadjust=no],
2N/A # Guess yes on HP-UX 11.
2N/A hpux11*) gl_cv_func_printf_flag_leftadjust="guessing yes";;
2N/A # Guess no on HP-UX 10 and older.
2N/A hpux*) gl_cv_func_printf_flag_leftadjust="guessing no";;
2N/A # Guess yes otherwise.
2N/A *) gl_cv_func_printf_flag_leftadjust="guessing yes";;
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A AC_CACHE_CHECK([whether printf supports the zero flag correctly],
2N/A [gl_cv_func_printf_flag_zero],
2N/Astatic char buf[100];
2N/A if (sprintf (buf, "%010f", 1.0 / 0.0, 33, 44, 55) < 0
2N/A || (strcmp (buf, " inf") != 0
2N/A && strcmp (buf, " infinity") != 0))
2N/A [gl_cv_func_printf_flag_zero=yes],
2N/A [gl_cv_func_printf_flag_zero=no],
2N/A # Guess yes on glibc systems.
2N/A *-gnu*) gl_cv_func_printf_flag_zero="guessing yes";;
2N/A # Guess yes on BeOS.
2N/A beos*) gl_cv_func_printf_flag_zero="guessing yes";;
2N/A # If we don't know, assume the worst.
2N/A *) gl_cv_func_printf_flag_zero="guessing no";;
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A AC_CACHE_CHECK([whether printf supports large precisions],
2N/A [gl_cv_func_printf_precision],
2N/Astatic char buf[5000];
2N/A /* On BeOS, this would crash and show a dialog box. Avoid the crash. */
2N/A if (sprintf (buf, "%.4000d %d", 1, 33, 44) < 4000 + 3)
2N/A [gl_cv_func_printf_precision=yes],
2N/A [gl_cv_func_printf_precision=no],
2N/A # Guess no only on native Win32 and BeOS systems.
2N/A mingw* | pw*) gl_cv_func_printf_precision="guessing no" ;;
2N/A beos*) gl_cv_func_printf_precision="guessing no" ;;
2N/A *) gl_cv_func_printf_precision="guessing yes" ;;
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([gl_MULTIARCH])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A AC_CACHE_CHECK([whether printf survives out-of-memory conditions],
2N/A [gl_cv_func_printf_enomem],
2N/A gl_cv_func_printf_enomem="guessing no"
2N/A if test "$cross_compiling" = no; then
2N/A if test $APPLE_UNIVERSAL_BUILD = 0; then
2N/A AC_LANG_CONFTEST([AC_LANG_SOURCE([
2N/A struct rlimit limit;
2N/A /* Some printf implementations allocate temporary space with malloc. */
2N/A /* On BSD systems, malloc() is limited by RLIMIT_DATA. */
2N/A if (getrlimit (RLIMIT_DATA, &limit) < 0)
2N/A if (setrlimit (RLIMIT_DATA, &limit) < 0)
2N/A /* On Linux systems, malloc() is limited by RLIMIT_AS. */
2N/A if (getrlimit (RLIMIT_AS, &limit) < 0)
2N/A if (setrlimit (RLIMIT_AS, &limit) < 0)
2N/A /* Some printf implementations allocate temporary space on the stack. */
2N/A if (getrlimit (RLIMIT_STACK, &limit) < 0)
2N/A if (setrlimit (RLIMIT_STACK, &limit) < 0)
2N/A ret = printf ("%.5000000f", 1.0);
2N/A return !(ret == 5000002 || (ret < 0 && errno == ENOMEM));
2N/A if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then
2N/A if test $result != 0 && test $result != 77; then result=1; fi
2N/A 0) gl_cv_func_printf_enomem="yes" ;;
2N/A 77) gl_cv_func_printf_enomem="guessing no" ;;
2N/A *) gl_cv_func_printf_enomem="no" ;;
2N/A gl_cv_func_printf_enomem="guessing no"
2N/A dnl A universal build on Apple MacOS X platforms.
2N/A dnl The result would be 'no' in 32-bit mode and 'yes' in 64-bit mode.
2N/A dnl But we need a configuration result that is valid in both modes.
2N/A gl_cv_func_printf_enomem="guessing no"
2N/A if test "$gl_cv_func_printf_enomem" = "guessing no"; then
2N/A # Guess yes on glibc systems.
2N/A *-gnu*) gl_cv_func_printf_enomem="guessing yes";;
2N/A # Guess yes on Solaris.
2N/A solaris*) gl_cv_func_printf_enomem="guessing yes";;
2N/A aix*) gl_cv_func_printf_enomem="guessing yes";;
2N/A hpux*) case "$host_cpu" in
2N/A hppa*) gl_cv_func_printf_enomem="guessing yes";;
2N/A *) gl_cv_func_printf_enomem="guessing no";;
2N/A # Guess yes on IRIX.
2N/A irix*) gl_cv_func_printf_enomem="guessing yes";;
2N/A # Guess yes on OSF/1.
2N/A osf*) gl_cv_func_printf_enomem="guessing yes";;
2N/A # Guess yes on BeOS.
2N/A beos*) gl_cv_func_printf_enomem="guessing yes";;
2N/A # Guess yes on Haiku.
2N/A haiku*) gl_cv_func_printf_enomem="guessing yes";;
2N/A # If we don't know, assume the worst.
2N/A *) gl_cv_func_printf_enomem="guessing no";;
2N/A AC_CHECK_FUNCS_ONCE([snprintf])
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A AC_CACHE_CHECK([whether snprintf truncates the result as in C99],
2N/A [gl_cv_func_snprintf_truncation_c99],
2N/Astatic char buf[100];
2N/A strcpy (buf, "ABCDEF");
2N/A snprintf (buf, 3, "%d %d", 4567, 89);
2N/A if (memcmp (buf, "45\0DEF", 6) != 0)
2N/A [gl_cv_func_snprintf_truncation_c99=yes],
2N/A [gl_cv_func_snprintf_truncation_c99=no],
2N/A # Guess yes on glibc systems.
2N/A *-gnu*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
2N/A # Guess yes on FreeBSD >= 5.
2N/A freebsd[1-4]*) gl_cv_func_snprintf_truncation_c99="guessing no";;
2N/A freebsd* | kfreebsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
2N/A # Guess yes on MacOS X >= 10.3.
2N/A darwin[1-6].*) gl_cv_func_snprintf_truncation_c99="guessing no";;
2N/A darwin*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
2N/A # Guess yes on OpenBSD >= 3.9.
2N/A openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
2N/A gl_cv_func_snprintf_truncation_c99="guessing no";;
2N/A openbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
2N/A # Guess yes on Solaris >= 2.6.
2N/A solaris2.[0-5]*) gl_cv_func_snprintf_truncation_c99="guessing no";;
2N/A solaris*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
2N/A # Guess yes on AIX >= 4.
2N/A aix[1-3]*) gl_cv_func_snprintf_truncation_c99="guessing no";;
2N/A aix*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
2N/A # Guess yes on HP-UX >= 11.
2N/A hpux[7-9]* | hpux10*) gl_cv_func_snprintf_truncation_c99="guessing no";;
2N/A hpux*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
2N/A # Guess yes on IRIX >= 6.5.
2N/A irix6.5) gl_cv_func_snprintf_truncation_c99="guessing yes";;
2N/A # Guess yes on OSF/1 >= 5.
2N/A osf[3-4]*) gl_cv_func_snprintf_truncation_c99="guessing no";;
2N/A osf*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
2N/A # Guess yes on NetBSD >= 3.
2N/A netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
2N/A gl_cv_func_snprintf_truncation_c99="guessing no";;
2N/A netbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
2N/A # Guess yes on BeOS.
2N/A beos*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
2N/A # If we don't know, assume the worst.
2N/A *) gl_cv_func_snprintf_truncation_c99="guessing no";;
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A AC_CACHE_CHECK([whether snprintf returns a byte count as in C99],
2N/A [gl_cv_func_snprintf_retval_c99],
2N/Astatic char buf[100];
2N/A strcpy (buf, "ABCDEF");
2N/A if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
2N/A [gl_cv_func_snprintf_retval_c99=yes],
2N/A [gl_cv_func_snprintf_retval_c99=no],
2N/A # Guess yes on glibc systems.
2N/A *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
2N/A # Guess yes on FreeBSD >= 5.
2N/A freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
2N/A freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
2N/A # Guess yes on MacOS X >= 10.3.
2N/A darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
2N/A darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
2N/A # Guess yes on OpenBSD >= 3.9.
2N/A openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
2N/A gl_cv_func_snprintf_retval_c99="guessing no";;
2N/A openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
2N/A # Guess yes on Solaris >= 2.6.
2N/A solaris2.[0-5]*) gl_cv_func_snprintf_retval_c99="guessing no";;
2N/A solaris*) gl_cv_func_snprintf_retval_c99="guessing yes";;
2N/A # Guess yes on AIX >= 4.
2N/A aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
2N/A aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
2N/A # Guess yes on NetBSD >= 3.
2N/A netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
2N/A gl_cv_func_snprintf_retval_c99="guessing no";;
2N/A netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
2N/A # Guess yes on BeOS.
2N/A beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
2N/A # If we don't know, assume the worst.
2N/A *) gl_cv_func_snprintf_retval_c99="guessing no";;
2N/Am4trace:
m4/printf.m4:1142: -1- AC_DEFUN([gl_SNPRINTF_RETVAL_C99], [AC_REQUIRE([_gl_DEFUN_ONCE([gl_SNPRINTF_RETVAL_C99])],
2N/A [m4_indir([_gl_DEFUN_ONCE([gl_SNPRINTF_RETVAL_C99])])])])
2N/Am4trace:
m4/printf.m4:1142: -1- AC_DEFUN([_gl_DEFUN_ONCE([gl_SNPRINTF_RETVAL_C99])], [
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A AC_CACHE_CHECK([whether snprintf returns a byte count as in C99],
2N/A [gl_cv_func_snprintf_retval_c99],
2N/Astatic char buf[100];
2N/A strcpy (buf, "ABCDEF");
2N/A if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
2N/A [gl_cv_func_snprintf_retval_c99=yes],
2N/A [gl_cv_func_snprintf_retval_c99=no],
2N/A # Guess yes on glibc systems.
2N/A *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
2N/A # Guess yes on FreeBSD >= 5.
2N/A freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
2N/A freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
2N/A # Guess yes on MacOS X >= 10.3.
2N/A darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
2N/A darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
2N/A # Guess yes on OpenBSD >= 3.9.
2N/A openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
2N/A gl_cv_func_snprintf_retval_c99="guessing no";;
2N/A openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
2N/A # Guess yes on Solaris >= 2.6.
2N/A solaris2.[0-5]*) gl_cv_func_snprintf_retval_c99="guessing no";;
2N/A solaris*) gl_cv_func_snprintf_retval_c99="guessing yes";;
2N/A # Guess yes on AIX >= 4.
2N/A aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
2N/A aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
2N/A # Guess yes on NetBSD >= 3.
2N/A netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
2N/A gl_cv_func_snprintf_retval_c99="guessing no";;
2N/A netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
2N/A # Guess yes on BeOS.
2N/A beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
2N/A # If we don't know, assume the worst.
2N/A *) gl_cv_func_snprintf_retval_c99="guessing no";;
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A AC_CACHE_CHECK([whether snprintf fully supports the 'n' directive],
2N/A [gl_cv_func_snprintf_directive_n],
2N/Astatic char fmtstring[10];
2N/Astatic char buf[100];
2N/A /* Copy the format string. Some systems (glibc with _FORTIFY_SOURCE=2)
2N/A support %n in format strings in read-only memory but not in writable
2N/A strcpy (fmtstring, "%d %n");
2N/A snprintf (buf, 4, fmtstring, 12345, &count, 33, 44, 55);
2N/A [gl_cv_func_snprintf_directive_n=yes],
2N/A [gl_cv_func_snprintf_directive_n=no],
2N/A # Guess yes on glibc systems.
2N/A *-gnu*) gl_cv_func_snprintf_directive_n="guessing yes";;
2N/A # Guess yes on FreeBSD >= 5.
2N/A freebsd[1-4]*) gl_cv_func_snprintf_directive_n="guessing no";;
2N/A freebsd* | kfreebsd*) gl_cv_func_snprintf_directive_n="guessing yes";;
2N/A # Guess yes on MacOS X >= 10.3.
2N/A darwin[1-6].*) gl_cv_func_snprintf_directive_n="guessing no";;
2N/A darwin*) gl_cv_func_snprintf_directive_n="guessing yes";;
2N/A # Guess yes on Solaris >= 2.6.
2N/A solaris2.[0-5]*) gl_cv_func_snprintf_directive_n="guessing no";;
2N/A solaris*) gl_cv_func_snprintf_directive_n="guessing yes";;
2N/A # Guess yes on AIX >= 4.
2N/A aix[1-3]*) gl_cv_func_snprintf_directive_n="guessing no";;
2N/A aix*) gl_cv_func_snprintf_directive_n="guessing yes";;
2N/A # Guess yes on IRIX >= 6.5.
2N/A irix6.5) gl_cv_func_snprintf_directive_n="guessing yes";;
2N/A # Guess yes on OSF/1 >= 5.
2N/A osf[3-4]*) gl_cv_func_snprintf_directive_n="guessing no";;
2N/A osf*) gl_cv_func_snprintf_directive_n="guessing yes";;
2N/A # Guess yes on NetBSD >= 3.
2N/A netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
2N/A gl_cv_func_snprintf_directive_n="guessing no";;
2N/A netbsd*) gl_cv_func_snprintf_directive_n="guessing yes";;
2N/A # Guess yes on BeOS.
2N/A beos*) gl_cv_func_snprintf_directive_n="guessing yes";;
2N/A # If we don't know, assume the worst.
2N/A *) gl_cv_func_snprintf_directive_n="guessing no";;
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_CACHE_CHECK([whether snprintf respects a size of 1],
2N/A [gl_cv_func_snprintf_size1],
2N/A static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
2N/A snprintf (buf, 1, "%d", 12345);
2N/A return buf[1] != 'E';
2N/A [gl_cv_func_snprintf_size1=yes],
2N/A [gl_cv_func_snprintf_size1=no],
2N/A [gl_cv_func_snprintf_size1="guessing yes"])
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A AC_CACHE_CHECK([whether vsnprintf respects a zero size as in C99],
2N/A [gl_cv_func_vsnprintf_zerosize_c99],
2N/Astatic int my_snprintf (char *buf, int size, const char *format, ...)
2N/A va_start (args, format);
2N/A ret = vsnprintf (buf, size, format, args);
2N/A static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
2N/A my_snprintf (buf, 0, "%d", 12345);
2N/A return buf[0] != 'D';
2N/A [gl_cv_func_vsnprintf_zerosize_c99=yes],
2N/A [gl_cv_func_vsnprintf_zerosize_c99=no],
2N/A # Guess yes on glibc systems.
2N/A *-gnu*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
2N/A # Guess yes on FreeBSD >= 5.
2N/A freebsd[1-4]*) gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
2N/A freebsd* | kfreebsd*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
2N/A # Guess yes on MacOS X >= 10.3.
2N/A darwin[1-6].*) gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
2N/A darwin*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
2N/A # Guess yes on Cygwin.
2N/A cygwin*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
2N/A # Guess yes on Solaris >= 2.6.
2N/A solaris2.[0-5]*) gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
2N/A solaris*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
2N/A # Guess yes on AIX >= 4.
2N/A aix[1-3]*) gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
2N/A aix*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
2N/A # Guess yes on IRIX >= 6.5.
2N/A irix6.5) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
2N/A # Guess yes on NetBSD >= 3.
2N/A netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
2N/A gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
2N/A netbsd*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
2N/A # Guess yes on BeOS.
2N/A beos*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
2N/A # Guess yes on mingw.
2N/A mingw* | pw*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
2N/A # If we don't know, assume the worst.
2N/A *) gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
2N/A# Prepare PATH_SEPARATOR.
2N/A# The user is always right.
2N/Aif test "${PATH_SEPARATOR+set}" != set; then
2N/A # Determine PATH_SEPARATOR by trying to find
/bin/sh in a PATH which
2N/A # contains only /bin. Note that ksh looks also at the FPATH variable,
2N/A # so we have to set that as well for the test.
2N/A && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >
/dev/null 2>&1 \
2N/A || PATH_SEPARATOR=';'
2N/A# Find out how to test for executable files. Don't use a zero-byte file,
2N/A# as systems may use methods other than mode bits to determine executability.
2N/Acat >conf$$.file <<_ASEOF
2N/A ac_executable_p="test -x"
2N/A ac_executable_p="test -f"
2N/A# Extract the first word of "$2", so it can be a program name with args.
2N/Aset dummy $2; ac_word=[$]2
2N/AAC_MSG_CHECKING([for $ac_word])
2N/AAC_CACHE_VAL([ac_cv_path_$1],
2N/A [[\\/]]* | ?:[[\\/]]*)
2N/A ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
2N/A ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2N/A for ac_dir in ifelse([$5], , $PATH, [$5]); do
2N/A test -z "$ac_dir" && ac_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2N/A echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD
2N/A ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"
2N/Adnl If no 4th arg is given, leave the cache variable unset,
2N/Adnl so AC_PATH_PROGS will keep looking.
2N/Aifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
2N/Aif test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
2N/A AC_MSG_RESULT([$][$1])
2N/A AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
2N/A AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
2N/A AC_REPLACE_FUNCS([rawmemchr])
2N/A if test $ac_cv_func_rawmemchr = no; then
2N/A AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
2N/A dnl _AC_FUNC_REALLOC_IF is defined in Autoconf.
2N/A _AC_FUNC_REALLOC_IF(
2N/A [AC_DEFINE([HAVE_REALLOC_GNU], [1],
2N/A [Define to 1 if your system has a GNU libc compatible 'realloc'
2N/A function, and to 0 otherwise.])],
2N/A [AC_DEFINE([HAVE_REALLOC_GNU], [0])
2N/A AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
2N/A AC_REQUIRE([gl_CHECK_MALLOC_POSIX])
2N/A if test $gl_cv_func_malloc_posix = yes; then
2N/A AC_DEFINE([HAVE_REALLOC_POSIX], [1],
2N/A [Define if the 'realloc' function is POSIX compliant.])
2N/A AC_LIBOBJ([realloc])
2N/A AC_ARG_WITH([included-regex],
2N/A [AS_HELP_STRING([--without-included-regex],
2N/A [don't compile regex; this is the default on systems
2N/A with recent-enough versions of the GNU C Library
2N/A (use with caution on other systems).])])
2N/A case $with_included_regex in #(
2N/A yes|no) ac_use_included_regex=$with_included_regex
2N/A # If the system regex support is good enough that it passes the
2N/A # following run test, then default to *not* using the included
regex.c. 2N/A # If cross compiling, assume the test would fail and use the included
2N/A AC_CACHE_CHECK([for working re_compile_pattern],
2N/A [gl_cv_func_re_compile_pattern_working],
2N/A [AC_INCLUDES_DEFAULT[
2N/A [[static struct re_pattern_buffer regex;
2N/A unsigned char folded_chars[UCHAR_MAX + 1];
2N/A struct re_registers regs;
2N/A This test needs valgrind to catch the bug on Debian
2N/A on other platforms and it shouldn't hurt to try the
2N/A static char const pat[] = "insert into";
2N/A static char const data[] =
2N/A "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
2N/A re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
2N/A memset (®ex, 0, sizeof regex);
2N/A s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
2N/A if (re_search (®ex, data, sizeof data - 1,
2N/A 0, sizeof data - 1, ®s)
2N/A if (! setlocale (LC_ALL, "C"))
2N/A /* This test is from glibc bug 3957, reported by Andrew Mackey. */
2N/A re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
2N/A memset (®ex, 0, sizeof regex);
2N/A s = re_compile_pattern ("a[^x]b", 6, ®ex);
2N/A /* This should fail, but succeeds for glibc-2.5. */
2N/A if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1)
2N/A /* This regular expression is from Spencer ere test number 75
2N/A re_set_syntax (RE_SYNTAX_POSIX_EGREP);
2N/A memset (®ex, 0, sizeof regex);
2N/A for (i = 0; i <= UCHAR_MAX; i++)
2N/A folded_chars[i] = i;
2N/A s = re_compile_pattern ("a[[:@:>@:]]b\n", 11, ®ex);
2N/A /* This should fail with _Invalid character class name_ error. */
2N/A /* Ensure that [b-a] is diagnosed as invalid, when
2N/A using RE_NO_EMPTY_RANGES. */
2N/A re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
2N/A memset (®ex, 0, sizeof regex);
2N/A s = re_compile_pattern ("a[b-a]", 6, ®ex);
2N/A /* This should succeed, but does not for glibc-2.1.3. */
2N/A memset (®ex, 0, sizeof regex);
2N/A s = re_compile_pattern ("{1", 2, ®ex);
2N/A /* The following example is derived from a problem report
2N/A against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
2N/A memset (®ex, 0, sizeof regex);
2N/A s = re_compile_pattern ("[an\371]*n", 7, ®ex);
2N/A /* This should match, but does not for glibc-2.2.1. */
2N/A if (re_match (®ex, "an", 2, 0, ®s) != 2)
2N/A memset (®ex, 0, sizeof regex);
2N/A s = re_compile_pattern ("x", 1, ®ex);
2N/A /* glibc-2.2.93 does not work with a negative RANGE argument. */
2N/A if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
2N/A /* The version of
regex.c in older versions of gnulib
2N/A ignored RE_ICASE. Detect that problem too. */
2N/A re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
2N/A memset (®ex, 0, sizeof regex);
2N/A s = re_compile_pattern ("x", 1, ®ex);
2N/A if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0)
2N/A /* Catch a bug reported by Vin Shelton in
2N/A re_set_syntax (RE_SYNTAX_POSIX_BASIC
2N/A & ~RE_CONTEXT_INVALID_DUP
2N/A & ~RE_NO_EMPTY_RANGES);
2N/A memset (®ex, 0, sizeof regex);
2N/A s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, ®ex);
2N/A /* REG_STARTEND was added to glibc on 2004-01-15.
2N/A Reject older versions. */
2N/A /* It would be nice to reject hosts whose regoff_t values are too
2N/A narrow (including glibc on hosts with 64-bit ptrdiff_t and
2N/A 32-bit int), but we should wait until glibc implements this
2N/A feature. Otherwise, support for equivalence classes and
2N/A multibyte collation symbols would always be broken except
2N/A when compiling --without-included-regex. */
2N/A if (sizeof (regoff_t) < sizeof (ptrdiff_t)
2N/A || sizeof (regoff_t) < sizeof (ssize_t))
2N/A [gl_cv_func_re_compile_pattern_working=yes],
2N/A [gl_cv_func_re_compile_pattern_working=no],
2N/A dnl When crosscompiling, assume it is not working.
2N/A [gl_cv_func_re_compile_pattern_working=no])])
2N/A case $gl_cv_func_re_compile_pattern_working in #(
2N/A yes) ac_use_included_regex=no;; #(
2N/A no) ac_use_included_regex=yes;;
2N/A *) AC_MSG_ERROR([Invalid value for --with-included-regex: $with_included_regex])
2N/A if test $ac_use_included_regex = yes; then
2N/A AC_DEFINE([_REGEX_LARGE_OFFSETS], [1],
2N/A [Define if you want regoff_t to be at least as wide POSIX requires.])
2N/A AC_DEFINE([re_syntax_options], [rpl_re_syntax_options],
2N/A [Define to rpl_re_syntax_options if the replacement should be used.])
2N/A AC_DEFINE([re_set_syntax], [rpl_re_set_syntax],
2N/A [Define to rpl_re_set_syntax if the replacement should be used.])
2N/A AC_DEFINE([re_compile_pattern], [rpl_re_compile_pattern],
2N/A [Define to rpl_re_compile_pattern if the replacement should be used.])
2N/A AC_DEFINE([re_compile_fastmap], [rpl_re_compile_fastmap],
2N/A [Define to rpl_re_compile_fastmap if the replacement should be used.])
2N/A AC_DEFINE([re_search], [rpl_re_search],
2N/A [Define to rpl_re_search if the replacement should be used.])
2N/A AC_DEFINE([re_search_2], [rpl_re_search_2],
2N/A [Define to rpl_re_search_2 if the replacement should be used.])
2N/A AC_DEFINE([re_match], [rpl_re_match],
2N/A [Define to rpl_re_match if the replacement should be used.])
2N/A AC_DEFINE([re_match_2], [rpl_re_match_2],
2N/A [Define to rpl_re_match_2 if the replacement should be used.])
2N/A AC_DEFINE([re_set_registers], [rpl_re_set_registers],
2N/A [Define to rpl_re_set_registers if the replacement should be used.])
2N/A AC_DEFINE([re_comp], [rpl_re_comp],
2N/A [Define to rpl_re_comp if the replacement should be used.])
2N/A AC_DEFINE([re_exec], [rpl_re_exec],
2N/A [Define to rpl_re_exec if the replacement should be used.])
2N/A AC_DEFINE([regcomp], [rpl_regcomp],
2N/A [Define to rpl_regcomp if the replacement should be used.])
2N/A AC_DEFINE([regexec], [rpl_regexec],
2N/A [Define to rpl_regexec if the replacement should be used.])
2N/A AC_DEFINE([regerror], [rpl_regerror],
2N/A [Define to rpl_regerror if the replacement should be used.])
2N/A AC_DEFINE([regfree], [rpl_regfree],
2N/A [Define to rpl_regfree if the replacement should be used.])
2N/A AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
2N/A AC_REQUIRE([AC_C_INLINE])
2N/A AC_REQUIRE([AC_C_RESTRICT])
2N/A AC_REQUIRE([AC_TYPE_MBSTATE_T])
2N/A AC_CHECK_FUNCS_ONCE([isblank iswctype wcscoll])
2N/A AC_CHECK_DECLS([isblank], [], [], [#include <
ctype.h>])
2N/A dnl First test whether the system already has SIZE_MAX.
2N/A AC_CACHE_CHECK([for SIZE_MAX], [gl_cv_size_max], [
2N/A AC_EGREP_CPP([Found it], [
2N/A], [gl_cv_size_max=yes])
2N/A if test -z "$gl_cv_size_max"; then
2N/A dnl Define it ourselves. Here we assume that the type 'size_t' is not wider
2N/A dnl than the type 'unsigned long'. Try hard to find a definition that can
2N/A dnl be used in a preprocessor #if,
i.e. doesn't contain a cast.
2N/A AC_COMPUTE_INT([size_t_bits_minus_1], [sizeof (size_t) * CHAR_BIT - 1],
2N/A AC_COMPUTE_INT([fits_in_uint], [sizeof (size_t) <= sizeof (unsigned int)],
2N/A if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
2N/A if test $fits_in_uint = 1; then
2N/A dnl Even though SIZE_MAX fits in an unsigned int, it must be of type
2N/A dnl 'unsigned long' if the type 'size_t' is the same as 'unsigned long'.
2N/A extern unsigned long foo;
2N/A dnl We cannot use 'expr' to simplify this expression, because 'expr'
2N/A dnl works only with 'long' integers in the host environment, while we
2N/A dnl might be cross-compiling from a 32-bit platform to a 64-bit platform.
2N/A if test $fits_in_uint = 1; then
2N/A gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
2N/A gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
2N/A dnl Shouldn't happen, but who knows...
2N/A gl_cv_size_max='((size_t)~(size_t)0)'
2N/A if test "$gl_cv_size_max" != yes; then
2N/A AC_DEFINE_UNQUOTED([SIZE_MAX], [$gl_cv_size_max],
2N/A [Define as the maximum value of type 'size_t', if the system doesn't define it.])
2N/A dnl <
stdint.h>. Remember that the #undef in AH_VERBATIM gets replaced with
2N/A dnl #define by AC_DEFINE_UNQUOTED.
2N/A AH_VERBATIM([SIZE_MAX],
2N/A[/* Define as the maximum value of type 'size_t', if the system doesn't define
2N/A AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
2N/A dnl We expect to see the declaration of sleep() in a header file.
2N/A dnl Older versions of mingw have a sleep() function that is an alias to
2N/A dnl _sleep() in MSVCRT. It has a different signature than POSIX sleep():
2N/A dnl it takes the number of milliseconds as argument and returns void.
2N/A dnl mingw does not declare this function.
2N/A AC_CHECK_FUNCS_ONCE([sleep])
2N/A if test $ac_cv_have_decl_sleep != yes; then
2N/A dnl Cygwin
1.5.x has a bug where sleep can't exceed 49.7 days.
2N/A AC_CACHE_CHECK([for working sleep], [gl_cv_func_sleep_works],
2N/A [AC_RUN_IFELSE([AC_LANG_PROGRAM([[
2N/Ahandle_alarm (int sig)
2N/A /* Failure to compile this test due to missing alarm is okay,
2N/A since all such platforms (mingw) also lack sleep. */
2N/A unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */
2N/A unsigned int remaining;
2N/A signal (SIGALRM, handle_alarm);
2N/A remaining = sleep (pentecost);
2N/A return !(pentecost - 10 < remaining && remaining <= pentecost);]])],
2N/A [gl_cv_func_sleep_works=yes], [gl_cv_func_sleep_works=no],
2N/A [gl_cv_func_sleep_works="guessing no"])])
2N/A if test "$gl_cv_func_sleep_works" != yes; then
2N/A AC_CACHE_CHECK([for ssize_t], [gt_cv_ssize_t],
2N/A [[int x = sizeof (ssize_t *) + sizeof (ssize_t);
2N/A [gt_cv_ssize_t=yes], [gt_cv_ssize_t=no])])
2N/A if test $gt_cv_ssize_t = no; then
2N/A AC_DEFINE([ssize_t], [int],
2N/A [Define as a signed type of the same size as size_t.])
2N/A AC_REQUIRE([AC_HEADER_STDBOOL])
2N/A # Define two additional variables used in the Makefile substitution.
2N/A if test "$ac_cv_header_stdbool_h" = yes; then
2N/A AC_SUBST([STDBOOL_H])
2N/A if test "$ac_cv_type__Bool" = yes; then
2N/A AC_SUBST([HAVE__BOOL])
2N/A [ac_cv_header_stdbool_h],
2N/A "error: bool is not defined"
2N/A "error: false is not defined"
2N/A "error: false is not 0"
2N/A "error: true is not defined"
2N/A "error: true is not 1"
2N/A #ifndef __bool_true_false_are_defined
2N/A "error: __bool_true_false_are_defined is not defined"
2N/A struct s { _Bool s: 1; _Bool t; } s;
2N/A char a[true == 1 ? 1 : -1];
2N/A char b[false == 0 ? 1 : -1];
2N/A char c[__bool_true_false_are_defined == 1 ? 1 : -1];
2N/A char d[(bool) 0.5 == true ? 1 : -1];
2N/A /* See body of main program for 'e'. */
2N/A char f[(_Bool) 0.0 == false ? 1 : -1];
2N/A char h[sizeof (_Bool)];
2N/A enum { j = false, k = true, l = false * true, m = true * 256 };
2N/A /* The following fails for
2N/A HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
2N/A char o[sizeof n == m * sizeof n[0] ? 1 : -1];
2N/A char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
2N/A /* Catch a bug in an HP-UX C compiler. See
2N/A /* Refer to every declared value, to avoid compiler optimizations. */
2N/A return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
2N/A + !m + !n + !o + !p + !q + !pq);
2N/A [ac_cv_header_stdbool_h=yes],
2N/A [ac_cv_header_stdbool_h=no])])
2N/A AC_CHECK_TYPES([_Bool])
2N/A if test $ac_cv_header_stdbool_h = yes; then
2N/A AC_DEFINE([HAVE_STDBOOL_H], [1], [Define to 1 if
stdbool.h conforms to C99.])
2N/A AC_REQUIRE([gl_STDDEF_H_DEFAULTS])
2N/A AC_REQUIRE([gt_TYPE_WCHAR_T])
2N/A if test $gt_cv_c_wchar_t = no; then
2N/A AC_CACHE_CHECK([whether NULL can be used in arbitrary expressions],
2N/A [gl_cv_decl_null_works],
2N/A [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <
stddef.h>
2N/A int test[2 * (sizeof NULL == sizeof (void *)) -1];
2N/A [gl_cv_decl_null_works=yes],
2N/A [gl_cv_decl_null_works=no])])
2N/A if test $gl_cv_decl_null_works = no; then
2N/A if test -n "$STDDEF_H"; then
2N/A dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
2N/A AC_REQUIRE([gl_STDDEF_H_DEFAULTS])
2N/A gl_MODULE_INDICATOR_SET_VARIABLE([$1])
2N/A dnl Assume proper GNU behavior unless another module says otherwise.
2N/A REPLACE_NULL=0; AC_SUBST([REPLACE_NULL])
2N/A HAVE_WCHAR_T=1; AC_SUBST([HAVE_WCHAR_T])
2N/A STDDEF_H=''; AC_SUBST([STDDEF_H])
2N/A AC_PREREQ([2.59])dnl
2N/A dnl Check for long long int and unsigned long long int.
2N/A AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
2N/A if test $ac_cv_type_long_long_int = yes; then
2N/A HAVE_LONG_LONG_INT=1
2N/A HAVE_LONG_LONG_INT=0
2N/A AC_SUBST([HAVE_LONG_LONG_INT])
2N/A AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT])
2N/A if test $ac_cv_type_unsigned_long_long_int = yes; then
2N/A HAVE_UNSIGNED_LONG_LONG_INT=1
2N/A HAVE_UNSIGNED_LONG_LONG_INT=0
2N/A AC_SUBST([HAVE_UNSIGNED_LONG_LONG_INT])
2N/A dnl AC_INCLUDES_DEFAULT defines $ac_cv_header_inttypes_h.
2N/A if test $ac_cv_header_inttypes_h = yes; then
2N/A AC_SUBST([HAVE_INTTYPES_H])
2N/A dnl AC_INCLUDES_DEFAULT defines $ac_cv_header_sys_types_h.
2N/A if test $ac_cv_header_sys_types_h = yes; then
2N/A AC_SUBST([HAVE_SYS_TYPES_H])
2N/A if test $ac_cv_header_stdint_h = yes; then
2N/A AC_SUBST([HAVE_STDINT_H])
2N/A if test $ac_cv_header_stdint_h = yes; then
2N/A [gl_cv_header_working_stdint_h],
2N/A [gl_cv_header_working_stdint_h=no
2N/A#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
2N/A#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
2N/A#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
2N/A/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <
wchar.h>. */
2N/A#if !(defined WCHAR_MIN && defined WCHAR_MAX)
2N/Aint8_t a1 = INT8_MAX;
2N/Aint8_t a1min = INT8_MIN;
2N/Aint16_t a2 = INT16_MAX;
2N/Aint16_t a2min = INT16_MIN;
2N/Aint32_t a3 = INT32_MAX;
2N/Aint32_t a3min = INT32_MIN;
2N/Aint64_t a4 = INT64_MAX;
2N/Aint64_t a4min = INT64_MIN;
2N/Auint8_t b1 = UINT8_MAX;
2N/Atypedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
2N/Auint16_t b2 = UINT16_MAX;
2N/Auint32_t b3 = UINT32_MAX;
2N/Auint64_t b4 = UINT64_MAX;
2N/Aint_least8_t c1 = INT8_C (0x7f);
2N/Aint_least8_t c1max = INT_LEAST8_MAX;
2N/Aint_least8_t c1min = INT_LEAST8_MIN;
2N/Aint_least16_t c2 = INT16_C (0x7fff);
2N/Aint_least16_t c2max = INT_LEAST16_MAX;
2N/Aint_least16_t c2min = INT_LEAST16_MIN;
2N/Aint_least32_t c3 = INT32_C (0x7fffffff);
2N/Aint_least32_t c3max = INT_LEAST32_MAX;
2N/Aint_least32_t c3min = INT_LEAST32_MIN;
2N/Aint_least64_t c4 = INT64_C (0x7fffffffffffffff);
2N/Aint_least64_t c4max = INT_LEAST64_MAX;
2N/Aint_least64_t c4min = INT_LEAST64_MIN;
2N/Auint_least8_t d1 = UINT8_C (0xff);
2N/Auint_least8_t d1max = UINT_LEAST8_MAX;
2N/Auint_least16_t d2 = UINT16_C (0xffff);
2N/Auint_least16_t d2max = UINT_LEAST16_MAX;
2N/Auint_least32_t d3 = UINT32_C (0xffffffff);
2N/Auint_least32_t d3max = UINT_LEAST32_MAX;
2N/Auint_least64_t d4 = UINT64_C (0xffffffffffffffff);
2N/Auint_least64_t d4max = UINT_LEAST64_MAX;
2N/Aint_fast8_t e1 = INT_FAST8_MAX;
2N/Aint_fast8_t e1min = INT_FAST8_MIN;
2N/Aint_fast16_t e2 = INT_FAST16_MAX;
2N/Aint_fast16_t e2min = INT_FAST16_MIN;
2N/Aint_fast32_t e3 = INT_FAST32_MAX;
2N/Aint_fast32_t e3min = INT_FAST32_MIN;
2N/Aint_fast64_t e4 = INT_FAST64_MAX;
2N/Aint_fast64_t e4min = INT_FAST64_MIN;
2N/Auint_fast8_t f1 = UINT_FAST8_MAX;
2N/Auint_fast16_t f2 = UINT_FAST16_MAX;
2N/Auint_fast32_t f3 = UINT_FAST32_MAX;
2N/Auint_fast64_t f4 = UINT_FAST64_MAX;
2N/Aintptr_t g = INTPTR_MAX;
2N/Aintptr_t gmin = INTPTR_MIN;
2N/Auintptr_t h = UINTPTR_MAX;
2N/Aintmax_t i = INTMAX_MAX;
2N/Auintmax_t j = UINTMAX_MAX;
2N/A#define TYPE_MINIMUM(t) \
2N/A ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
2N/A#define TYPE_MAXIMUM(t) \
2N/A ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
2N/A PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
2N/A && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
2N/A /* Detect bug in FreeBSD 6.0 / ia64. */
2N/A int check_SIG_ATOMIC:
2N/A SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
2N/A && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
2N/A int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
2N/A WCHAR_MIN == TYPE_MINIMUM (wchar_t)
2N/A && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
2N/A /* Detect bug in mingw. */
2N/A WINT_MIN == TYPE_MINIMUM (wint_t)
2N/A && WINT_MAX == TYPE_MAXIMUM (wint_t)
2N/A /* Detect bugs in glibc 2.4 and Solaris 10
stdint.h, among others. */
2N/A (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
2N/A (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
2N/A int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
2N/A int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
2N/A int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
2N/A int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
2N/A int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
2N/A int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
2N/A int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
2N/A int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
2N/A int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
2N/A int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
2N/A int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
2N/A int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
2N/A int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
2N/A int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
2N/A int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
2N/A [dnl Determine whether the various *_MIN, *_MAX macros are usable
2N/A dnl in preprocessor expression. We could do it by compiling a test
2N/A dnl program for each of these macros. It is faster to run a program
2N/A dnl that inspects the macro expansion.
2N/A dnl This detects a bug on HP-UX 11.23/ia64.
2N/A#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
2N/A#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
2N/A#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
2N/A#define MVAL(macro) MVAL1(macro)
2N/A#define MVAL1(expression) #expression
2N/Astatic const char *macro_values[] =
2N/A for (mv = macro_values; *mv != NULL; mv++)
2N/A const char *value = *mv;
2N/A /* Test whether it looks like a cast expression. */
2N/A if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
2N/A || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
2N/A || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
2N/A || strncmp (value, "((int)"/*)*/, 6) == 0
2N/A || strncmp (value, "((signed short)"/*)*/, 15) == 0
2N/A || strncmp (value, "((signed char)"/*)*/, 14) == 0)
2N/A [gl_cv_header_working_stdint_h=yes],
2N/A [dnl When cross-compiling, assume it works.
2N/A gl_cv_header_working_stdint_h=yes
2N/A if test "$gl_cv_header_working_stdint_h" = yes; then
2N/A if test $ac_cv_header_sys_inttypes_h = yes; then
2N/A HAVE_SYS_INTTYPES_H=1
2N/A HAVE_SYS_INTTYPES_H=0
2N/A AC_SUBST([HAVE_SYS_INTTYPES_H])
2N/A if test $ac_cv_header_sys_bitypes_h = yes; then
2N/A HAVE_SYS_BITYPES_H=1
2N/A HAVE_SYS_BITYPES_H=0
2N/A AC_SUBST([HAVE_SYS_BITYPES_H])
2N/A dnl Check for <
wchar.h> (missing in Linux uClibc when built without wide
2N/A dnl character support).
2N/A gl_STDINT_TYPE_PROPERTIES
2N/A AC_SUBST([STDINT_H])
2N/A dnl Use a shell loop, to avoid bloating configure, and
2N/A dnl - extra AH_TEMPLATE calls, so that autoheader knows what to put into
2N/A dnl - extra AC_SUBST calls, so that the right substitutions are made.
2N/A m4_foreach_w([gltype], [$1],
2N/A [AH_TEMPLATE([BITSIZEOF_]m4_translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]),
2N/A [Define to the number of bits in type ']gltype['.])])
2N/A for gltype in $1 ; do
2N/A AC_CACHE_CHECK([for bit size of $gltype], [gl_cv_bitsizeof_${gltype}],
2N/A [AC_COMPUTE_INT([result], [sizeof ($gltype) * CHAR_BIT],
2N/A eval gl_cv_bitsizeof_${gltype}=\$result
2N/A eval result=\$gl_cv_bitsizeof_${gltype}
2N/A if test $result = unknown; then
2N/A dnl Use a nonempty default, because some compilers, such as IRIX 5 cc,
2N/A dnl do a syntax check even on unused #if conditions and give an error
2N/A dnl on valid C code like this:
2N/A GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
2N/A AC_DEFINE_UNQUOTED([BITSIZEOF_${GLTYPE}], [$result])
2N/A eval BITSIZEOF_${GLTYPE}=\$result
2N/A m4_foreach_w([gltype], [$1],
2N/A [AC_SUBST([BITSIZEOF_]m4_translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]))])
2N/A dnl Use a shell loop, to avoid bloating configure, and
2N/A dnl - extra AH_TEMPLATE calls, so that autoheader knows what to put into
2N/A dnl - extra AC_SUBST calls, so that the right substitutions are made.
2N/A m4_foreach_w([gltype], [$1],
2N/A [AH_TEMPLATE([HAVE_SIGNED_]m4_translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]),
2N/A [Define to 1 if ']gltype[' is a signed integer type.])])
2N/A for gltype in $1 ; do
2N/A AC_CACHE_CHECK([whether $gltype is signed], [gl_cv_type_${gltype}_signed],
2N/A [AC_LANG_PROGRAM([$2[
2N/A int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];]])],
2N/A result=yes, result=no)
2N/A eval gl_cv_type_${gltype}_signed=\$result
2N/A eval result=\$gl_cv_type_${gltype}_signed
2N/A GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
2N/A if test "$result" = yes; then
2N/A AC_DEFINE_UNQUOTED([HAVE_SIGNED_${GLTYPE}], [1])
2N/A eval HAVE_SIGNED_${GLTYPE}=1
2N/A eval HAVE_SIGNED_${GLTYPE}=0
2N/A m4_foreach_w([gltype], [$1],
2N/A [AC_SUBST([HAVE_SIGNED_]m4_translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]))])
2N/A dnl Use a shell loop, to avoid bloating configure, and
2N/A dnl - extra AH_TEMPLATE calls, so that autoheader knows what to put into
2N/A dnl - extra AC_SUBST calls, so that the right substitutions are made.
2N/A m4_foreach_w([gltype], [$1],
2N/A [AH_TEMPLATE(m4_translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_])[_SUFFIX],
2N/A [Define to l, ll, u, ul, ull, etc., as suitable for
2N/A constants of type ']gltype['.])])
2N/A for gltype in $1 ; do
2N/A AC_CACHE_CHECK([for $gltype integer literal suffix],
2N/A [gl_cv_type_${gltype}_suffix],
2N/A [eval gl_cv_type_${gltype}_suffix=no
2N/A eval result=\$gl_cv_type_${gltype}_signed
2N/A if test "$result" = yes; then
2N/A for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
2N/A l) gltype1='long int';;
2N/A ll) gltype1='long long int';;
2N/A i64) gltype1='__int64';;
2N/A u) gltype1='unsigned int';;
2N/A ul) gltype1='unsigned long int';;
2N/A ull) gltype1='unsigned long long int';;
2N/A ui64)gltype1='unsigned __int64';;
2N/A [AC_LANG_PROGRAM([$2[
2N/A extern $gltype1 foo;]])],
2N/A [eval gl_cv_type_${gltype}_suffix=\$glsuf])
2N/A eval result=\$gl_cv_type_${gltype}_suffix
2N/A test "$result" != no && break
2N/A GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
2N/A eval result=\$gl_cv_type_${gltype}_suffix
2N/A test "$result" = no && result=
2N/A eval ${GLTYPE}_SUFFIX=\$result
2N/A AC_DEFINE_UNQUOTED([${GLTYPE}_SUFFIX], [$result])
2N/A m4_foreach_w([gltype], [$1],
2N/A [AC_SUBST(m4_translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_])[_SUFFIX])])
2N/A AC_REQUIRE([gl_MULTIARCH])
2N/A if test $APPLE_UNIVERSAL_BUILD = 0; then
2N/A gl_STDINT_BITSIZEOF([ptrdiff_t size_t],
2N/A [gl_STDINT_INCLUDES])
2N/A gl_STDINT_BITSIZEOF([sig_atomic_t wchar_t wint_t],
2N/A [gl_STDINT_INCLUDES])
2N/A gl_CHECK_TYPES_SIGNED([sig_atomic_t wchar_t wint_t],
2N/A [gl_STDINT_INCLUDES])
2N/A gl_cv_type_ptrdiff_t_signed=yes
2N/A gl_cv_type_size_t_signed=no
2N/A if test $APPLE_UNIVERSAL_BUILD = 0; then
2N/A gl_INTEGER_TYPE_SUFFIX([ptrdiff_t size_t],
2N/A [gl_STDINT_INCLUDES])
2N/A gl_INTEGER_TYPE_SUFFIX([sig_atomic_t wchar_t wint_t],
2N/A [gl_STDINT_INCLUDES])
2N/A AC_CACHE_CHECK([for
stdint.h], [gl_cv_header_stdint_h],
2N/A [[uintmax_t i = (uintmax_t) -1; return !i;]])],
2N/A [gl_cv_header_stdint_h=yes],
2N/A [gl_cv_header_stdint_h=no])])
2N/A if test $gl_cv_header_stdint_h = yes; then
2N/A AC_DEFINE_UNQUOTED([HAVE_STDINT_H_WITH_UINTMAX], [1],
2N/A and declares uintmax_t. ])
2N/A AC_REQUIRE([gl_STDIO_H_DEFAULTS])
2N/A AC_REQUIRE([AC_C_INLINE])
2N/A AC_REQUIRE([gl_ASM_SYMBOL_PREFIX])
2N/A dnl No need to create extra modules for these functions. Everyone who uses
2N/A dnl This ifdef is just an optimization, to avoid performing a configure
2N/A dnl check whose result is not used. It does not make the test of
2N/A dnl GNULIB_STDIO_H_SIGPIPE or GNULIB_SIGPIPE redundant.
2N/A m4_ifdef([gl_SIGNAL_SIGPIPE], [
2N/A if test $gl_cv_header_signal_h_SIGPIPE != yes; then
2N/A REPLACE_STDIO_WRITE_FUNCS=1
2N/A AC_LIBOBJ([stdio-write])
2N/A dnl Check for declarations of anything we want to poison if the
2N/A dnl corresponding gnulib module is not in use, and which is not
2N/A dnl guaranteed by C89.
2N/A ]], [dprintf fpurge fseeko ftello getdelim getline popen renameat
2N/A snprintf tmpfile vdprintf vsnprintf])
2N/A dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
2N/A AC_REQUIRE([gl_STDIO_H_DEFAULTS])
2N/A gl_MODULE_INDICATOR_SET_VARIABLE([$1])
2N/A dnl Define it also as a C macro, for the benefit of the unit tests.
2N/A gl_MODULE_INDICATOR_FOR_TESTS([$1])
2N/A GNULIB_DPRINTF=0; AC_SUBST([GNULIB_DPRINTF])
2N/A GNULIB_FCLOSE=0; AC_SUBST([GNULIB_FCLOSE])
2N/A GNULIB_FFLUSH=0; AC_SUBST([GNULIB_FFLUSH])
2N/A GNULIB_FOPEN=0; AC_SUBST([GNULIB_FOPEN])
2N/A GNULIB_FPRINTF=0; AC_SUBST([GNULIB_FPRINTF])
2N/A GNULIB_FPRINTF_POSIX=0; AC_SUBST([GNULIB_FPRINTF_POSIX])
2N/A GNULIB_FPURGE=0; AC_SUBST([GNULIB_FPURGE])
2N/A GNULIB_FPUTC=0; AC_SUBST([GNULIB_FPUTC])
2N/A GNULIB_FPUTS=0; AC_SUBST([GNULIB_FPUTS])
2N/A GNULIB_FREOPEN=0; AC_SUBST([GNULIB_FREOPEN])
2N/A GNULIB_FSEEK=0; AC_SUBST([GNULIB_FSEEK])
2N/A GNULIB_FSEEKO=0; AC_SUBST([GNULIB_FSEEKO])
2N/A GNULIB_FTELL=0; AC_SUBST([GNULIB_FTELL])
2N/A GNULIB_FTELLO=0; AC_SUBST([GNULIB_FTELLO])
2N/A GNULIB_FWRITE=0; AC_SUBST([GNULIB_FWRITE])
2N/A GNULIB_GETDELIM=0; AC_SUBST([GNULIB_GETDELIM])
2N/A GNULIB_GETLINE=0; AC_SUBST([GNULIB_GETLINE])
2N/A GNULIB_OBSTACK_PRINTF=0; AC_SUBST([GNULIB_OBSTACK_PRINTF])
2N/A GNULIB_OBSTACK_PRINTF_POSIX=0; AC_SUBST([GNULIB_OBSTACK_PRINTF_POSIX])
2N/A GNULIB_PERROR=0; AC_SUBST([GNULIB_PERROR])
2N/A GNULIB_POPEN=0; AC_SUBST([GNULIB_POPEN])
2N/A GNULIB_PRINTF=0; AC_SUBST([GNULIB_PRINTF])
2N/A GNULIB_PRINTF_POSIX=0; AC_SUBST([GNULIB_PRINTF_POSIX])
2N/A GNULIB_PUTC=0; AC_SUBST([GNULIB_PUTC])
2N/A GNULIB_PUTCHAR=0; AC_SUBST([GNULIB_PUTCHAR])
2N/A GNULIB_PUTS=0; AC_SUBST([GNULIB_PUTS])
2N/A GNULIB_REMOVE=0; AC_SUBST([GNULIB_REMOVE])
2N/A GNULIB_RENAME=0; AC_SUBST([GNULIB_RENAME])
2N/A GNULIB_RENAMEAT=0; AC_SUBST([GNULIB_RENAMEAT])
2N/A GNULIB_SNPRINTF=0; AC_SUBST([GNULIB_SNPRINTF])
2N/A GNULIB_SPRINTF_POSIX=0; AC_SUBST([GNULIB_SPRINTF_POSIX])
2N/A GNULIB_STDIO_H_SIGPIPE=0; AC_SUBST([GNULIB_STDIO_H_SIGPIPE])
2N/A GNULIB_TMPFILE=0; AC_SUBST([GNULIB_TMPFILE])
2N/A GNULIB_VASPRINTF=0; AC_SUBST([GNULIB_VASPRINTF])
2N/A GNULIB_VDPRINTF=0; AC_SUBST([GNULIB_VDPRINTF])
2N/A GNULIB_VFPRINTF=0; AC_SUBST([GNULIB_VFPRINTF])
2N/A GNULIB_VFPRINTF_POSIX=0; AC_SUBST([GNULIB_VFPRINTF_POSIX])
2N/A GNULIB_VPRINTF=0; AC_SUBST([GNULIB_VPRINTF])
2N/A GNULIB_VPRINTF_POSIX=0; AC_SUBST([GNULIB_VPRINTF_POSIX])
2N/A GNULIB_VSNPRINTF=0; AC_SUBST([GNULIB_VSNPRINTF])
2N/A GNULIB_VSPRINTF_POSIX=0; AC_SUBST([GNULIB_VSPRINTF_POSIX])
2N/A dnl Assume proper GNU behavior unless another module says otherwise.
2N/A HAVE_DECL_FPURGE=1; AC_SUBST([HAVE_DECL_FPURGE])
2N/A HAVE_DECL_GETDELIM=1; AC_SUBST([HAVE_DECL_GETDELIM])
2N/A HAVE_DECL_GETLINE=1; AC_SUBST([HAVE_DECL_GETLINE])
2N/A HAVE_DECL_OBSTACK_PRINTF=1; AC_SUBST([HAVE_DECL_OBSTACK_PRINTF])
2N/A HAVE_DECL_SNPRINTF=1; AC_SUBST([HAVE_DECL_SNPRINTF])
2N/A HAVE_DECL_VSNPRINTF=1; AC_SUBST([HAVE_DECL_VSNPRINTF])
2N/A HAVE_DPRINTF=1; AC_SUBST([HAVE_DPRINTF])
2N/A HAVE_FSEEKO=1; AC_SUBST([HAVE_FSEEKO])
2N/A HAVE_FTELLO=1; AC_SUBST([HAVE_FTELLO])
2N/A HAVE_RENAMEAT=1; AC_SUBST([HAVE_RENAMEAT])
2N/A HAVE_VASPRINTF=1; AC_SUBST([HAVE_VASPRINTF])
2N/A HAVE_VDPRINTF=1; AC_SUBST([HAVE_VDPRINTF])
2N/A REPLACE_DPRINTF=0; AC_SUBST([REPLACE_DPRINTF])
2N/A REPLACE_FCLOSE=0; AC_SUBST([REPLACE_FCLOSE])
2N/A REPLACE_FFLUSH=0; AC_SUBST([REPLACE_FFLUSH])
2N/A REPLACE_FOPEN=0; AC_SUBST([REPLACE_FOPEN])
2N/A REPLACE_FPRINTF=0; AC_SUBST([REPLACE_FPRINTF])
2N/A REPLACE_FPURGE=0; AC_SUBST([REPLACE_FPURGE])
2N/A REPLACE_FREOPEN=0; AC_SUBST([REPLACE_FREOPEN])
2N/A REPLACE_FSEEK=0; AC_SUBST([REPLACE_FSEEK])
2N/A REPLACE_FSEEKO=0; AC_SUBST([REPLACE_FSEEKO])
2N/A REPLACE_FTELL=0; AC_SUBST([REPLACE_FTELL])
2N/A REPLACE_FTELLO=0; AC_SUBST([REPLACE_FTELLO])
2N/A REPLACE_GETDELIM=0; AC_SUBST([REPLACE_GETDELIM])
2N/A REPLACE_GETLINE=0; AC_SUBST([REPLACE_GETLINE])
2N/A REPLACE_OBSTACK_PRINTF=0; AC_SUBST([REPLACE_OBSTACK_PRINTF])
2N/A REPLACE_PERROR=0; AC_SUBST([REPLACE_PERROR])
2N/A REPLACE_POPEN=0; AC_SUBST([REPLACE_POPEN])
2N/A REPLACE_PRINTF=0; AC_SUBST([REPLACE_PRINTF])
2N/A REPLACE_REMOVE=0; AC_SUBST([REPLACE_REMOVE])
2N/A REPLACE_RENAME=0; AC_SUBST([REPLACE_RENAME])
2N/A REPLACE_RENAMEAT=0; AC_SUBST([REPLACE_RENAMEAT])
2N/A REPLACE_SNPRINTF=0; AC_SUBST([REPLACE_SNPRINTF])
2N/A REPLACE_SPRINTF=0; AC_SUBST([REPLACE_SPRINTF])
2N/A REPLACE_STDIO_WRITE_FUNCS=0; AC_SUBST([REPLACE_STDIO_WRITE_FUNCS])
2N/A REPLACE_TMPFILE=0; AC_SUBST([REPLACE_TMPFILE])
2N/A REPLACE_VASPRINTF=0; AC_SUBST([REPLACE_VASPRINTF])
2N/A REPLACE_VDPRINTF=0; AC_SUBST([REPLACE_VDPRINTF])
2N/A REPLACE_VFPRINTF=0; AC_SUBST([REPLACE_VFPRINTF])
2N/A REPLACE_VPRINTF=0; AC_SUBST([REPLACE_VPRINTF])
2N/A REPLACE_VSNPRINTF=0; AC_SUBST([REPLACE_VSNPRINTF])
2N/A REPLACE_VSPRINTF=0; AC_SUBST([REPLACE_VSPRINTF])
2N/A AC_CACHE_CHECK([whether stdin defaults to large file offsets],
2N/A [gl_cv_var_stdin_large_offset],
2N/A [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <
stdio.h>]],
2N/A[[#if defined __SL64 && defined __SCLE /* cygwin */
2N/A /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
2N/A it is easier to do a version check than building a runtime test. */
2N/A# if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
2N/A [gl_cv_var_stdin_large_offset=yes],
2N/A [gl_cv_var_stdin_large_offset=no])])
2N/A AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
2N/A AC_CHECK_HEADERS([
random.h], [], [], [AC_INCLUDES_DEFAULT])
2N/A if test $ac_cv_header_random_h = yes; then
2N/A AC_SUBST([HAVE_RANDOM_H])
2N/A AC_CHECK_TYPES([struct random_data],
2N/A [], [HAVE_STRUCT_RANDOM_DATA=0],
2N/A dnl Check for declarations of anything we want to poison if the
2N/A dnl corresponding gnulib module is not in use, and which is not
2N/A dnl guaranteed by C89.
2N/A#if HAVE_SYS_LOADAVG_H
2N/A ]], [_Exit atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp
2N/A mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r
2N/A setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt
2N/A dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
2N/A AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
2N/A gl_MODULE_INDICATOR_SET_VARIABLE([$1])
2N/A dnl Define it also as a C macro, for the benefit of the unit tests.
2N/A gl_MODULE_INDICATOR_FOR_TESTS([$1])
2N/A GNULIB__EXIT=0; AC_SUBST([GNULIB__EXIT])
2N/A GNULIB_ATOLL=0; AC_SUBST([GNULIB_ATOLL])
2N/A GNULIB_CALLOC_POSIX=0; AC_SUBST([GNULIB_CALLOC_POSIX])
2N/A GNULIB_CANONICALIZE_FILE_NAME=0; AC_SUBST([GNULIB_CANONICALIZE_FILE_NAME])
2N/A GNULIB_GETLOADAVG=0; AC_SUBST([GNULIB_GETLOADAVG])
2N/A GNULIB_GETSUBOPT=0; AC_SUBST([GNULIB_GETSUBOPT])
2N/A GNULIB_GRANTPT=0; AC_SUBST([GNULIB_GRANTPT])
2N/A GNULIB_MALLOC_POSIX=0; AC_SUBST([GNULIB_MALLOC_POSIX])
2N/A GNULIB_MKDTEMP=0; AC_SUBST([GNULIB_MKDTEMP])
2N/A GNULIB_MKOSTEMP=0; AC_SUBST([GNULIB_MKOSTEMP])
2N/A GNULIB_MKOSTEMPS=0; AC_SUBST([GNULIB_MKOSTEMPS])
2N/A GNULIB_MKSTEMP=0; AC_SUBST([GNULIB_MKSTEMP])
2N/A GNULIB_MKSTEMPS=0; AC_SUBST([GNULIB_MKSTEMPS])
2N/A GNULIB_PTSNAME=0; AC_SUBST([GNULIB_PTSNAME])
2N/A GNULIB_PUTENV=0; AC_SUBST([GNULIB_PUTENV])
2N/A GNULIB_RANDOM_R=0; AC_SUBST([GNULIB_RANDOM_R])
2N/A GNULIB_REALLOC_POSIX=0; AC_SUBST([GNULIB_REALLOC_POSIX])
2N/A GNULIB_REALPATH=0; AC_SUBST([GNULIB_REALPATH])
2N/A GNULIB_RPMATCH=0; AC_SUBST([GNULIB_RPMATCH])
2N/A GNULIB_SETENV=0; AC_SUBST([GNULIB_SETENV])
2N/A GNULIB_STRTOD=0; AC_SUBST([GNULIB_STRTOD])
2N/A GNULIB_STRTOLL=0; AC_SUBST([GNULIB_STRTOLL])
2N/A GNULIB_STRTOULL=0; AC_SUBST([GNULIB_STRTOULL])
2N/A GNULIB_UNLOCKPT=0; AC_SUBST([GNULIB_UNLOCKPT])
2N/A GNULIB_UNSETENV=0; AC_SUBST([GNULIB_UNSETENV])
2N/A dnl Assume proper GNU behavior unless another module says otherwise.
2N/A HAVE__EXIT=1; AC_SUBST([HAVE__EXIT])
2N/A HAVE_ATOLL=1; AC_SUBST([HAVE_ATOLL])
2N/A HAVE_CANONICALIZE_FILE_NAME=1; AC_SUBST([HAVE_CANONICALIZE_FILE_NAME])
2N/A HAVE_DECL_GETLOADAVG=1; AC_SUBST([HAVE_DECL_GETLOADAVG])
2N/A HAVE_GETSUBOPT=1; AC_SUBST([HAVE_GETSUBOPT])
2N/A HAVE_GRANTPT=1; AC_SUBST([HAVE_GRANTPT])
2N/A HAVE_MKDTEMP=1; AC_SUBST([HAVE_MKDTEMP])
2N/A HAVE_MKOSTEMP=1; AC_SUBST([HAVE_MKOSTEMP])
2N/A HAVE_MKOSTEMPS=1; AC_SUBST([HAVE_MKOSTEMPS])
2N/A HAVE_MKSTEMP=1; AC_SUBST([HAVE_MKSTEMP])
2N/A HAVE_MKSTEMPS=1; AC_SUBST([HAVE_MKSTEMPS])
2N/A HAVE_PTSNAME=1; AC_SUBST([HAVE_PTSNAME])
2N/A HAVE_RANDOM_R=1; AC_SUBST([HAVE_RANDOM_R])
2N/A HAVE_REALPATH=1; AC_SUBST([HAVE_REALPATH])
2N/A HAVE_RPMATCH=1; AC_SUBST([HAVE_RPMATCH])
2N/A HAVE_SETENV=1; AC_SUBST([HAVE_SETENV])
2N/A HAVE_STRTOD=1; AC_SUBST([HAVE_STRTOD])
2N/A HAVE_STRTOLL=1; AC_SUBST([HAVE_STRTOLL])
2N/A HAVE_STRTOULL=1; AC_SUBST([HAVE_STRTOULL])
2N/A HAVE_STRUCT_RANDOM_DATA=1; AC_SUBST([HAVE_STRUCT_RANDOM_DATA])
2N/A HAVE_SYS_LOADAVG_H=0; AC_SUBST([HAVE_SYS_LOADAVG_H])
2N/A HAVE_UNLOCKPT=1; AC_SUBST([HAVE_UNLOCKPT])
2N/A HAVE_UNSETENV=1; AC_SUBST([HAVE_UNSETENV])
2N/A REPLACE_CALLOC=0; AC_SUBST([REPLACE_CALLOC])
2N/A REPLACE_CANONICALIZE_FILE_NAME=0; AC_SUBST([REPLACE_CANONICALIZE_FILE_NAME])
2N/A REPLACE_MALLOC=0; AC_SUBST([REPLACE_MALLOC])
2N/A REPLACE_MKSTEMP=0; AC_SUBST([REPLACE_MKSTEMP])
2N/A REPLACE_PUTENV=0; AC_SUBST([REPLACE_PUTENV])
2N/A REPLACE_REALLOC=0; AC_SUBST([REPLACE_REALLOC])
2N/A REPLACE_REALPATH=0; AC_SUBST([REPLACE_REALPATH])
2N/A REPLACE_SETENV=0; AC_SUBST([REPLACE_SETENV])
2N/A REPLACE_STRTOD=0; AC_SUBST([REPLACE_STRTOD])
2N/A REPLACE_UNSETENV=0; AC_SUBST([REPLACE_UNSETENV])
2N/A AC_REQUIRE([gl_HEADER_STRINGS_H_DEFAULTS])
2N/A AC_REPLACE_FUNCS([strcasecmp])
2N/A if test $ac_cv_func_strcasecmp = no; then
2N/A gl_PREREQ_STRCASECMP
2N/A AC_REQUIRE([gl_HEADER_STRINGS_H_DEFAULTS])
2N/A AC_REPLACE_FUNCS([strncasecmp])
2N/A if test $ac_cv_func_strncasecmp = no; then
2N/A gl_PREREQ_STRNCASECMP
2N/A AC_CHECK_DECLS([strncasecmp])
2N/A if test $ac_cv_have_decl_strncasecmp = no; then
2N/A HAVE_DECL_STRNCASECMP=0
2N/A AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
2N/A AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
2N/A AC_REPLACE_FUNCS([strchrnul])
2N/A if test $ac_cv_func_strchrnul = no; then
2N/A AC_REQUIRE([gl_FUNC_STRERROR_SEPARATE])
2N/A if test $REPLACE_STRERROR = 1; then
2N/A AC_LIBOBJ([strerror])
2N/A AC_DEFINE_UNQUOTED([REPLACE_STRERROR], [$REPLACE_STRERROR],
2N/A [Define this to 1 if strerror is broken.])
2N/A AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
2N/A AC_REQUIRE([gl_HEADER_ERRNO_H])
2N/A if test -z "$ERRNO_H"; then
2N/A AC_CACHE_CHECK([for working strerror function],
2N/A [gl_cv_func_working_strerror],
2N/A [[return !*strerror (-2);]])],
2N/A [gl_cv_func_working_strerror=yes],
2N/A [gl_cv_func_working_strerror=no],
2N/A [dnl Assume crossbuild works if it compiles.
2N/A [[return !*strerror (-2);]])],
2N/A [gl_cv_func_working_strerror=yes],
2N/A [gl_cv_func_working_strerror=no])
2N/A if test $gl_cv_func_working_strerror = no; then
2N/A dnl The system's strerror() fails to return a string for out-of-range
2N/A dnl integers. Replace it.
2N/A dnl The system's strerror() cannot know about the new errno values we add
2N/A if test $REPLACE_STRERROR = 1; then
2N/A AC_CHECK_DECLS([strerror])
2N/A if test $ac_cv_header_sys_socket_h != yes; then
2N/A dnl We cannot use AC_CHECK_HEADERS_ONCE here, because that would make
2N/A dnl the check for those headers unconditional; yet cygwin reports
2N/A dnl that the headers are present but cannot be compiled (since on
2N/A dnl Use AC_REQUIRE here, so that the default behavior below is expanded
2N/A dnl once only, before all statements that occur in other macros.
2N/A AC_REQUIRE([gl_HEADER_STRING_H_BODY])
2N/A AC_REQUIRE([AC_C_RESTRICT])
2N/A AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
2N/A dnl Check for declarations of anything we want to poison if the
2N/A dnl corresponding gnulib module is not in use, and which is not
2N/A dnl guaranteed by C89.
2N/A [memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup
2N/A strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal
2N/A dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
2N/A AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
2N/A gl_MODULE_INDICATOR_SET_VARIABLE([$1])
2N/A dnl Define it also as a C macro, for the benefit of the unit tests.
2N/A gl_MODULE_INDICATOR_FOR_TESTS([$1])
2N/A GNULIB_MEMCHR=0; AC_SUBST([GNULIB_MEMCHR])
2N/A GNULIB_MEMMEM=0; AC_SUBST([GNULIB_MEMMEM])
2N/A GNULIB_MEMPCPY=0; AC_SUBST([GNULIB_MEMPCPY])
2N/A GNULIB_MEMRCHR=0; AC_SUBST([GNULIB_MEMRCHR])
2N/A GNULIB_RAWMEMCHR=0; AC_SUBST([GNULIB_RAWMEMCHR])
2N/A GNULIB_STPCPY=0; AC_SUBST([GNULIB_STPCPY])
2N/A GNULIB_STPNCPY=0; AC_SUBST([GNULIB_STPNCPY])
2N/A GNULIB_STRCHRNUL=0; AC_SUBST([GNULIB_STRCHRNUL])
2N/A GNULIB_STRDUP=0; AC_SUBST([GNULIB_STRDUP])
2N/A GNULIB_STRNCAT=0; AC_SUBST([GNULIB_STRNCAT])
2N/A GNULIB_STRNDUP=0; AC_SUBST([GNULIB_STRNDUP])
2N/A GNULIB_STRNLEN=0; AC_SUBST([GNULIB_STRNLEN])
2N/A GNULIB_STRPBRK=0; AC_SUBST([GNULIB_STRPBRK])
2N/A GNULIB_STRSEP=0; AC_SUBST([GNULIB_STRSEP])
2N/A GNULIB_STRSTR=0; AC_SUBST([GNULIB_STRSTR])
2N/A GNULIB_STRCASESTR=0; AC_SUBST([GNULIB_STRCASESTR])
2N/A GNULIB_STRTOK_R=0; AC_SUBST([GNULIB_STRTOK_R])
2N/A GNULIB_MBSLEN=0; AC_SUBST([GNULIB_MBSLEN])
2N/A GNULIB_MBSNLEN=0; AC_SUBST([GNULIB_MBSNLEN])
2N/A GNULIB_MBSCHR=0; AC_SUBST([GNULIB_MBSCHR])
2N/A GNULIB_MBSRCHR=0; AC_SUBST([GNULIB_MBSRCHR])
2N/A GNULIB_MBSSTR=0; AC_SUBST([GNULIB_MBSSTR])
2N/A GNULIB_MBSCASECMP=0; AC_SUBST([GNULIB_MBSCASECMP])
2N/A GNULIB_MBSNCASECMP=0; AC_SUBST([GNULIB_MBSNCASECMP])
2N/A GNULIB_MBSPCASECMP=0; AC_SUBST([GNULIB_MBSPCASECMP])
2N/A GNULIB_MBSCASESTR=0; AC_SUBST([GNULIB_MBSCASESTR])
2N/A GNULIB_MBSCSPN=0; AC_SUBST([GNULIB_MBSCSPN])
2N/A GNULIB_MBSPBRK=0; AC_SUBST([GNULIB_MBSPBRK])
2N/A GNULIB_MBSSPN=0; AC_SUBST([GNULIB_MBSSPN])
2N/A GNULIB_MBSSEP=0; AC_SUBST([GNULIB_MBSSEP])
2N/A GNULIB_MBSTOK_R=0; AC_SUBST([GNULIB_MBSTOK_R])
2N/A GNULIB_STRERROR=0; AC_SUBST([GNULIB_STRERROR])
2N/A GNULIB_STRSIGNAL=0; AC_SUBST([GNULIB_STRSIGNAL])
2N/A GNULIB_STRVERSCMP=0; AC_SUBST([GNULIB_STRVERSCMP])
2N/A HAVE_MBSLEN=0; AC_SUBST([HAVE_MBSLEN])
2N/A dnl Assume proper GNU behavior unless another module says otherwise.
2N/A HAVE_MEMCHR=1; AC_SUBST([HAVE_MEMCHR])
2N/A HAVE_DECL_MEMMEM=1; AC_SUBST([HAVE_DECL_MEMMEM])
2N/A HAVE_MEMPCPY=1; AC_SUBST([HAVE_MEMPCPY])
2N/A HAVE_DECL_MEMRCHR=1; AC_SUBST([HAVE_DECL_MEMRCHR])
2N/A HAVE_RAWMEMCHR=1; AC_SUBST([HAVE_RAWMEMCHR])
2N/A HAVE_STPCPY=1; AC_SUBST([HAVE_STPCPY])
2N/A HAVE_STPNCPY=1; AC_SUBST([HAVE_STPNCPY])
2N/A HAVE_STRCHRNUL=1; AC_SUBST([HAVE_STRCHRNUL])
2N/A HAVE_DECL_STRDUP=1; AC_SUBST([HAVE_DECL_STRDUP])
2N/A HAVE_DECL_STRNDUP=1; AC_SUBST([HAVE_DECL_STRNDUP])
2N/A HAVE_DECL_STRNLEN=1; AC_SUBST([HAVE_DECL_STRNLEN])
2N/A HAVE_STRPBRK=1; AC_SUBST([HAVE_STRPBRK])
2N/A HAVE_STRSEP=1; AC_SUBST([HAVE_STRSEP])
2N/A HAVE_STRCASESTR=1; AC_SUBST([HAVE_STRCASESTR])
2N/A HAVE_DECL_STRTOK_R=1; AC_SUBST([HAVE_DECL_STRTOK_R])
2N/A HAVE_DECL_STRSIGNAL=1; AC_SUBST([HAVE_DECL_STRSIGNAL])
2N/A HAVE_STRVERSCMP=1; AC_SUBST([HAVE_STRVERSCMP])
2N/A REPLACE_MEMCHR=0; AC_SUBST([REPLACE_MEMCHR])
2N/A REPLACE_MEMMEM=0; AC_SUBST([REPLACE_MEMMEM])
2N/A REPLACE_STPNCPY=0; AC_SUBST([REPLACE_STPNCPY])
2N/A REPLACE_STRDUP=0; AC_SUBST([REPLACE_STRDUP])
2N/A REPLACE_STRSTR=0; AC_SUBST([REPLACE_STRSTR])
2N/A REPLACE_STRCASESTR=0; AC_SUBST([REPLACE_STRCASESTR])
2N/A REPLACE_STRERROR=0; AC_SUBST([REPLACE_STRERROR])
2N/A REPLACE_STRNCAT=0; AC_SUBST([REPLACE_STRNCAT])
2N/A REPLACE_STRNDUP=0; AC_SUBST([REPLACE_STRNDUP])
2N/A REPLACE_STRNLEN=0; AC_SUBST([REPLACE_STRNLEN])
2N/A REPLACE_STRSIGNAL=0; AC_SUBST([REPLACE_STRSIGNAL])
2N/A REPLACE_STRTOK_R=0; AC_SUBST([REPLACE_STRTOK_R])
2N/A UNDEFINE_STRTOK_R=0; AC_SUBST([UNDEFINE_STRTOK_R])
2N/A dnl Use AC_REQUIRE here, so that the default behavior below is expanded
2N/A dnl once only, before all statements that occur in other macros.
2N/A AC_REQUIRE([gl_HEADER_STRINGS_H_BODY])
2N/A AC_REQUIRE([gl_HEADER_STRINGS_H_DEFAULTS])
2N/A dnl Check for declarations of anything we want to poison if the
2N/A dnl corresponding gnulib module is not in use.
2N/A ]], [strcasecmp strncasecmp])
2N/A dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
2N/A AC_REQUIRE([gl_HEADER_STRINGS_H_DEFAULTS])
2N/A gl_MODULE_INDICATOR_SET_VARIABLE([$1])
2N/A dnl Assume proper GNU behavior unless another module says otherwise.
2N/A HAVE_STRCASECMP=1; AC_SUBST([HAVE_STRCASECMP])
2N/A HAVE_DECL_STRNCASECMP=1; AC_SUBST([HAVE_DECL_STRNCASECMP])
2N/A AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
2N/A AC_CHECK_DECLS_ONCE([strndup])
2N/A AC_CHECK_FUNCS_ONCE([strndup])
2N/A if test $ac_cv_have_decl_strndup = no; then
2N/A if test $ac_cv_func_strndup = yes; then
2N/A # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
2N/A AC_CACHE_CHECK([for working strndup], [gl_cv_func_strndup_works],
2N/A#ifndef HAVE_DECL_STRNDUP
2N/A extern char *strndup (const char *, size_t);
2N/A s = strndup ("some longer string", 15);
2N/A s = strndup ("shorter string", 13);
2N/A return s[13] != '\0';]])],
2N/A [gl_cv_func_strndup_works=yes],
2N/A [gl_cv_func_strndup_works=no],
2N/A aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
2N/A *) gl_cv_func_strndup_works="guessing yes";;
2N/A case $gl_cv_func_strndup_works in
2N/A AC_LIBOBJ([strndup])
2N/A AC_LIBOBJ([strndup])
2N/A AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
2N/A AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
2N/A AC_CHECK_DECLS_ONCE([strnlen])
2N/A if test $ac_cv_have_decl_strnlen = no; then
2N/A dnl Note: AC_FUNC_STRNLEN does AC_LIBOBJ([strnlen]).
2N/A if test $ac_cv_func_strnlen_working = no; then
2N/A if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
2N/A AC_LIBOBJ([strnlen])
2N/A AC_REQUIRE([gl_SYS_WAIT_H_DEFAULTS])
2N/A dnl <
sys/wait.h> is always overridden, because of GNULIB_POSIXCHECK.
2N/A dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
2N/A AC_REQUIRE([gl_SYS_WAIT_H_DEFAULTS])
2N/A gl_MODULE_INDICATOR_SET_VARIABLE([$1])
2N/A dnl Assume proper GNU behavior unless another module says otherwise.
2N/A if test $ac_cv_header_sysexits_h = yes; then
2N/A case EX_UNAVAILABLE:
2N/A AC_SUBST([HAVE_SYSEXITS_H])
2N/A AC_SUBST([SYSEXITS_H])
2N/A AC_REQUIRE([gl_THREADLIB_EARLY_BODY])
2N/A dnl Ordering constraints: This macro modifies CPPFLAGS in a way that
2N/A dnl influences the result of the autoconf tests that test for *_unlocked
2N/A dnl declarations, on AIX 5 at least. Therefore it must come early.
2N/A AC_BEFORE([$0], [gl_FUNC_GLIBC_UNLOCKED_IO])dnl
2N/A AC_BEFORE([$0], [gl_ARGP])dnl
2N/A AC_REQUIRE([AC_CANONICAL_HOST])
2N/A dnl _GNU_SOURCE is needed for pthread_rwlock_t on glibc systems.
2N/A dnl AC_USE_SYSTEM_EXTENSIONS was introduced in autoconf 2.60 and obsoletes
2N/A m4_ifdef([AC_USE_SYSTEM_EXTENSIONS],
2N/A [AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])],
2N/A [AC_REQUIRE([AC_GNU_SOURCE])])
2N/A dnl Check for multithreading.
2N/A m4_divert_text([DEFAULTS], [gl_use_threads_default=])
2N/A AC_ARG_ENABLE([threads],
2N/AAC_HELP_STRING([--enable-threads={posix|solaris|pth|win32}], [specify multithreading API])
2N/AAC_HELP_STRING([--disable-threads], [build without multithread safety]),
2N/A [gl_use_threads=$enableval],
2N/A [if test -n "$gl_use_threads_default"; then
2N/A gl_use_threads="$gl_use_threads_default"
2N/A dnl Disable multithreading by default on OSF/1, because it interferes
2N/A dnl with fork()/exec(): When msgexec is linked with -lpthread, its
2N/A dnl child process gets an endless segmentation fault inside execvp().
2N/A dnl Disable multithreading by default on Cygwin
1.5.x, because it has
2N/A dnl bugs that lead to endless loops or crashes. See
2N/A osf*) gl_use_threads=no ;;
2N/A 1.[0-5].*) gl_use_threads=no ;;
2N/A *) gl_use_threads=yes ;;
2N/A *) gl_use_threads=yes ;;
2N/A if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
2N/A # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
2N/A # groks <
pthread.h>. cc also understands the flag -pthread, but
2N/A # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
2N/A # 2. putting a flag into CPPFLAGS that has an effect on the linker
2N/A # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
2N/A # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
2N/A CPPFLAGS="$CPPFLAGS -D_REENTRANT"
2N/A # Some systems optimize for single-threaded programs by default, and
2N/A # need special flags to disable these optimizations. For example, the
2N/A aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
2N/A solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
2N/A AC_REQUIRE([gl_THREADLIB_EARLY_BODY])
2N/A if test "$gl_use_threads" != no; then
2N/A dnl Check whether the compiler and linker support weak declarations.
2N/A AC_CACHE_CHECK([whether imported symbols can be declared weak],
2N/A dnl First, test whether the compiler accepts it syntactically.
2N/A [[extern void xyzzy ();
2N/A#pragma weak xyzzy]],
2N/A [gl_cv_have_weak=maybe])
2N/A if test $gl_cv_have_weak = maybe; then
2N/A dnl Second, test whether it actually works. On Cygwin 1.7.2, with
2N/A dnl gcc 4.3, symbols declared weak always evaluate to the address 0.
2N/A return (fputs == NULL);
2N/A [gl_cv_have_weak=yes],
2N/A [gl_cv_have_weak=no],
2N/A [dnl When cross-compiling, assume that only ELF platforms support
2N/A AC_EGREP_CPP([Extensible Linking Format],
2N/A Extensible Linking Format
2N/A [gl_cv_have_weak="guessing yes"],
2N/A [gl_cv_have_weak="guessing no"])
2N/A if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
2N/A # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
2N/A # it groks <
pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
2N/A [gl_have_pthread_h=yes], [gl_have_pthread_h=no])
2N/A if test "$gl_have_pthread_h" = yes; then
2N/A # Other possible tests:
2N/A # -lpthreads (FSU threads, PCthreads)
2N/A # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
2N/A # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
2N/A # the second one only in libpthread, and
lock.c needs it.
2N/A [[pthread_mutex_lock((pthread_mutex_t*)0);
2N/A pthread_mutexattr_init((pthread_mutexattr_t*)0);]])],
2N/A [gl_have_pthread=yes])
2N/A # Test for libpthread by looking for pthread_kill. (Not pthread_self,
2N/A # since it is defined as a macro on OSF/1.)
2N/A if test -n "$gl_have_pthread"; then
2N/A # The program links fine without libpthread. But it may actually
2N/A # need to link with libpthread in order to create multiple threads.
2N/A AC_CHECK_LIB([pthread], [pthread_kill],
2N/A [LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
2N/A # On Solaris and HP-UX, most pthread functions exist also in libc.
2N/A # Therefore pthread_in_use() needs to actually try to create a
2N/A # thread: pthread_create from libc will fail, whereas
2N/A # pthread_create will actually create a thread.
2N/A AC_DEFINE([PTHREAD_IN_USE_DETECTION_HARD], [1],
2N/A [Define if the pthread_in_use() detection is hard.])
2N/A # Some library is needed. Try libpthread and libc_r.
2N/A AC_CHECK_LIB([pthread], [pthread_kill],
2N/A [gl_have_pthread=yes
2N/A LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
2N/A LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread])
2N/A if test -z "$gl_have_pthread"; then
2N/A AC_CHECK_LIB([c_r], [pthread_kill],
2N/A [gl_have_pthread=yes
2N/A LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
2N/A LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r])
2N/A if test -n "$gl_have_pthread"; then
2N/A gl_threads_api=posix
2N/A AC_DEFINE([USE_POSIX_THREADS], [1],
2N/A [Define if the POSIX multithreading library can be used.])
2N/A if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
2N/A if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
2N/A AC_DEFINE([USE_POSIX_THREADS_WEAK], [1],
2N/A [Define if references to the POSIX multithreading library should be made weak.])
2N/A if test -z "$gl_have_pthread"; then
2N/A if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
2N/A gl_have_solaristhread=
2N/A gl_save_LIBS="$LIBS"
2N/A LIBS="$LIBS -lthread"
2N/A [gl_have_solaristhread=yes])
2N/A LIBS="$gl_save_LIBS"
2N/A if test -n "$gl_have_solaristhread"; then
2N/A gl_threads_api=solaris
2N/A LTLIBTHREAD=-lthread
2N/A LIBMULTITHREAD="$LIBTHREAD"
2N/A LTLIBMULTITHREAD="$LTLIBTHREAD"
2N/A AC_DEFINE([USE_SOLARIS_THREADS], [1],
2N/A [Define if the old Solaris multithreading library can be used.])
2N/A if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
2N/A AC_DEFINE([USE_SOLARIS_THREADS_WEAK], [1],
2N/A [Define if references to the old Solaris multithreading library should be made weak.])
2N/A if test "$gl_use_threads" = pth; then
2N/A gl_save_CPPFLAGS="$CPPFLAGS"
2N/A AC_LIB_LINKFLAGS([pth])
2N/A gl_save_LIBS="$LIBS"
2N/A [AC_LANG_PROGRAM([[#include <
pth.h>]], [[pth_self();]])],
2N/A LIBS="$gl_save_LIBS"
2N/A if test -n "$gl_have_pth"; then
2N/A LTLIBTHREAD="$LTLIBPTH"
2N/A LIBMULTITHREAD="$LIBTHREAD"
2N/A LTLIBMULTITHREAD="$LTLIBTHREAD"
2N/A AC_DEFINE([USE_PTH_THREADS], [1],
2N/A [Define if the GNU Pth multithreading library can be used.])
2N/A if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
2N/A if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
2N/A AC_DEFINE([USE_PTH_THREADS_WEAK], [1],
2N/A [Define if references to the GNU Pth multithreading library should be made weak.])
2N/A CPPFLAGS="$gl_save_CPPFLAGS"
2N/A if test -z "$gl_have_pthread"; then
2N/A if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
2N/A if { case "$host_os" in
2N/A gl_threads_api=win32
2N/A AC_DEFINE([USE_WIN32_THREADS], [1],
2N/A [Define if the Win32 multithreading API can be used.])
2N/A AC_MSG_CHECKING([for multithread API to use])
2N/A AC_MSG_RESULT([$gl_threads_api])
2N/A AC_SUBST([LIBTHREAD])
2N/A AC_SUBST([LTLIBTHREAD])
2N/A AC_SUBST([LIBMULTITHREAD])
2N/A AC_SUBST([LTLIBMULTITHREAD])
2N/A AC_REQUIRE([gl_THREADLIB_EARLY])
2N/A AC_REQUIRE([gl_THREADLIB_BODY])
2N/A m4_divert_text([INIT_PREPARE], [gl_use_threads_default=no])
2N/A AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
2N/A AC_REQUIRE([gl_AC_HEADER_STDINT_H])
2N/A if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
2N/A AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT])
2N/A test $ac_cv_type_unsigned_long_long_int = yes \
2N/A && ac_type='unsigned long long' \
2N/A || ac_type='unsigned long'
2N/A AC_DEFINE_UNQUOTED([uintmax_t], [$ac_type],
2N/A [Define to unsigned long or unsigned long long
2N/A AC_DEFINE([HAVE_UINTMAX_T], [1],
2N/A dnl Use AC_REQUIRE here, so that the default behavior below is expanded
2N/A dnl once only, before all statements that occur in other macros.
2N/A AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
2N/A AC_REQUIRE([AC_C_INLINE])
2N/A if test $ac_cv_header_unistd_h = yes; then
2N/A AC_SUBST([HAVE_UNISTD_H])
2N/A dnl Check for declarations of anything we want to poison if the
2N/A dnl corresponding gnulib module is not in use.
2N/A/* Some systems declare various items in the wrong headers. */
2N/A# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
2N/A ]], [chown dup2 dup3 environ euidaccess faccessat fchdir fchownat
2N/A fsync ftruncate getcwd getdomainname getdtablesize getgroups
2N/A gethostname getlogin getlogin_r getpagesize getusershell setusershell
2N/A endusershell lchown link linkat lseek pipe2 pread pwrite readlink
2N/A readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat
2N/A dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
2N/A AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
2N/A gl_MODULE_INDICATOR_SET_VARIABLE([$1])
2N/A dnl Define it also as a C macro, for the benefit of the unit tests.
2N/A gl_MODULE_INDICATOR_FOR_TESTS([$1])
2N/A GNULIB_CHOWN=0; AC_SUBST([GNULIB_CHOWN])
2N/A GNULIB_CLOSE=0; AC_SUBST([GNULIB_CLOSE])
2N/A GNULIB_DUP2=0; AC_SUBST([GNULIB_DUP2])
2N/A GNULIB_DUP3=0; AC_SUBST([GNULIB_DUP3])
2N/A GNULIB_ENVIRON=0; AC_SUBST([GNULIB_ENVIRON])
2N/A GNULIB_EUIDACCESS=0; AC_SUBST([GNULIB_EUIDACCESS])
2N/A GNULIB_FACCESSAT=0; AC_SUBST([GNULIB_FACCESSAT])
2N/A GNULIB_FCHDIR=0; AC_SUBST([GNULIB_FCHDIR])
2N/A GNULIB_FCHOWNAT=0; AC_SUBST([GNULIB_FCHOWNAT])
2N/A GNULIB_FSYNC=0; AC_SUBST([GNULIB_FSYNC])
2N/A GNULIB_FTRUNCATE=0; AC_SUBST([GNULIB_FTRUNCATE])
2N/A GNULIB_GETCWD=0; AC_SUBST([GNULIB_GETCWD])
2N/A GNULIB_GETDOMAINNAME=0; AC_SUBST([GNULIB_GETDOMAINNAME])
2N/A GNULIB_GETDTABLESIZE=0; AC_SUBST([GNULIB_GETDTABLESIZE])
2N/A GNULIB_GETGROUPS=0; AC_SUBST([GNULIB_GETGROUPS])
2N/A GNULIB_GETHOSTNAME=0; AC_SUBST([GNULIB_GETHOSTNAME])
2N/A GNULIB_GETLOGIN=0; AC_SUBST([GNULIB_GETLOGIN])
2N/A GNULIB_GETLOGIN_R=0; AC_SUBST([GNULIB_GETLOGIN_R])
2N/A GNULIB_GETPAGESIZE=0; AC_SUBST([GNULIB_GETPAGESIZE])
2N/A GNULIB_GETUSERSHELL=0; AC_SUBST([GNULIB_GETUSERSHELL])
2N/A GNULIB_LCHOWN=0; AC_SUBST([GNULIB_LCHOWN])
2N/A GNULIB_LINK=0; AC_SUBST([GNULIB_LINK])
2N/A GNULIB_LINKAT=0; AC_SUBST([GNULIB_LINKAT])
2N/A GNULIB_LSEEK=0; AC_SUBST([GNULIB_LSEEK])
2N/A GNULIB_PIPE2=0; AC_SUBST([GNULIB_PIPE2])
2N/A GNULIB_PREAD=0; AC_SUBST([GNULIB_PREAD])
2N/A GNULIB_PWRITE=0; AC_SUBST([GNULIB_PWRITE])
2N/A GNULIB_READLINK=0; AC_SUBST([GNULIB_READLINK])
2N/A GNULIB_READLINKAT=0; AC_SUBST([GNULIB_READLINKAT])
2N/A GNULIB_RMDIR=0; AC_SUBST([GNULIB_RMDIR])
2N/A GNULIB_SLEEP=0; AC_SUBST([GNULIB_SLEEP])
2N/A GNULIB_SYMLINK=0; AC_SUBST([GNULIB_SYMLINK])
2N/A GNULIB_SYMLINKAT=0; AC_SUBST([GNULIB_SYMLINKAT])
2N/A GNULIB_TTYNAME_R=0; AC_SUBST([GNULIB_TTYNAME_R])
2N/A GNULIB_UNISTD_H_GETOPT=0; AC_SUBST([GNULIB_UNISTD_H_GETOPT])
2N/A GNULIB_UNISTD_H_SIGPIPE=0; AC_SUBST([GNULIB_UNISTD_H_SIGPIPE])
2N/A GNULIB_UNLINK=0; AC_SUBST([GNULIB_UNLINK])
2N/A GNULIB_UNLINKAT=0; AC_SUBST([GNULIB_UNLINKAT])
2N/A GNULIB_USLEEP=0; AC_SUBST([GNULIB_USLEEP])
2N/A GNULIB_WRITE=0; AC_SUBST([GNULIB_WRITE])
2N/A dnl Assume proper GNU behavior unless another module says otherwise.
2N/A HAVE_CHOWN=1; AC_SUBST([HAVE_CHOWN])
2N/A HAVE_DUP2=1; AC_SUBST([HAVE_DUP2])
2N/A HAVE_DUP3=1; AC_SUBST([HAVE_DUP3])
2N/A HAVE_EUIDACCESS=1; AC_SUBST([HAVE_EUIDACCESS])
2N/A HAVE_FACCESSAT=1; AC_SUBST([HAVE_FACCESSAT])
2N/A HAVE_FCHDIR=1; AC_SUBST([HAVE_FCHDIR])
2N/A HAVE_FCHOWNAT=1; AC_SUBST([HAVE_FCHOWNAT])
2N/A HAVE_FSYNC=1; AC_SUBST([HAVE_FSYNC])
2N/A HAVE_FTRUNCATE=1; AC_SUBST([HAVE_FTRUNCATE])
2N/A HAVE_GETDOMAINNAME=1; AC_SUBST([HAVE_GETDOMAINNAME])
2N/A HAVE_GETDTABLESIZE=1; AC_SUBST([HAVE_GETDTABLESIZE])
2N/A HAVE_GETGROUPS=1; AC_SUBST([HAVE_GETGROUPS])
2N/A HAVE_GETHOSTNAME=1; AC_SUBST([HAVE_GETHOSTNAME])
2N/A HAVE_GETLOGIN=1; AC_SUBST([HAVE_GETLOGIN])
2N/A HAVE_GETPAGESIZE=1; AC_SUBST([HAVE_GETPAGESIZE])
2N/A HAVE_LCHOWN=1; AC_SUBST([HAVE_LCHOWN])
2N/A HAVE_LINK=1; AC_SUBST([HAVE_LINK])
2N/A HAVE_LINKAT=1; AC_SUBST([HAVE_LINKAT])
2N/A HAVE_PIPE2=1; AC_SUBST([HAVE_PIPE2])
2N/A HAVE_PREAD=1; AC_SUBST([HAVE_PREAD])
2N/A HAVE_PWRITE=1; AC_SUBST([HAVE_PWRITE])
2N/A HAVE_READLINK=1; AC_SUBST([HAVE_READLINK])
2N/A HAVE_READLINKAT=1; AC_SUBST([HAVE_READLINKAT])
2N/A HAVE_SLEEP=1; AC_SUBST([HAVE_SLEEP])
2N/A HAVE_SYMLINK=1; AC_SUBST([HAVE_SYMLINK])
2N/A HAVE_SYMLINKAT=1; AC_SUBST([HAVE_SYMLINKAT])
2N/A HAVE_TTYNAME_R=1; AC_SUBST([HAVE_TTYNAME_R])
2N/A HAVE_UNLINKAT=1; AC_SUBST([HAVE_UNLINKAT])
2N/A HAVE_USLEEP=1; AC_SUBST([HAVE_USLEEP])
2N/A HAVE_DECL_ENVIRON=1; AC_SUBST([HAVE_DECL_ENVIRON])
2N/A HAVE_DECL_GETLOGIN_R=1; AC_SUBST([HAVE_DECL_GETLOGIN_R])
2N/A HAVE_DECL_GETPAGESIZE=1; AC_SUBST([HAVE_DECL_GETPAGESIZE])
2N/A HAVE_DECL_GETUSERSHELL=1; AC_SUBST([HAVE_DECL_GETUSERSHELL])
2N/A HAVE_OS_H=0; AC_SUBST([HAVE_OS_H])
2N/A HAVE_SYS_PARAM_H=0; AC_SUBST([HAVE_SYS_PARAM_H])
2N/A REPLACE_CHOWN=0; AC_SUBST([REPLACE_CHOWN])
2N/A REPLACE_CLOSE=0; AC_SUBST([REPLACE_CLOSE])
2N/A REPLACE_DUP=0; AC_SUBST([REPLACE_DUP])
2N/A REPLACE_DUP2=0; AC_SUBST([REPLACE_DUP2])
2N/A REPLACE_FCHOWNAT=0; AC_SUBST([REPLACE_FCHOWNAT])
2N/A REPLACE_GETCWD=0; AC_SUBST([REPLACE_GETCWD])
2N/A REPLACE_GETGROUPS=0; AC_SUBST([REPLACE_GETGROUPS])
2N/A REPLACE_GETPAGESIZE=0; AC_SUBST([REPLACE_GETPAGESIZE])
2N/A REPLACE_LCHOWN=0; AC_SUBST([REPLACE_LCHOWN])
2N/A REPLACE_LINK=0; AC_SUBST([REPLACE_LINK])
2N/A REPLACE_LINKAT=0; AC_SUBST([REPLACE_LINKAT])
2N/A REPLACE_LSEEK=0; AC_SUBST([REPLACE_LSEEK])
2N/A REPLACE_PREAD=0; AC_SUBST([REPLACE_PREAD])
2N/A REPLACE_PWRITE=0; AC_SUBST([REPLACE_PWRITE])
2N/A REPLACE_READLINK=0; AC_SUBST([REPLACE_READLINK])
2N/A REPLACE_RMDIR=0; AC_SUBST([REPLACE_RMDIR])
2N/A REPLACE_SLEEP=0; AC_SUBST([REPLACE_SLEEP])
2N/A REPLACE_SYMLINK=0; AC_SUBST([REPLACE_SYMLINK])
2N/A REPLACE_TTYNAME_R=0; AC_SUBST([REPLACE_TTYNAME_R])
2N/A REPLACE_UNLINK=0; AC_SUBST([REPLACE_UNLINK])
2N/A REPLACE_UNLINKAT=0; AC_SUBST([REPLACE_UNLINKAT])
2N/A REPLACE_USLEEP=0; AC_SUBST([REPLACE_USLEEP])
2N/A REPLACE_WRITE=0; AC_SUBST([REPLACE_WRITE])
2N/A UNISTD_H_HAVE_WINSOCK2_H=0; AC_SUBST([UNISTD_H_HAVE_WINSOCK2_H])
2N/A UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
2N/A AC_SUBST([UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS])
2N/A AC_CHECK_FUNCS_ONCE([vasnprintf])
2N/A if test $ac_cv_func_vasnprintf = no; then
2N/A gl_REPLACE_VASNPRINTF
2N/A AC_CHECK_FUNCS_ONCE([vasnprintf])
2N/A AC_LIBOBJ([vasnprintf])
2N/A AC_LIBOBJ([printf-args])
2N/A AC_LIBOBJ([printf-parse])
2N/A AC_LIBOBJ([asnprintf])
2N/A if test $ac_cv_func_vasnprintf = yes; then
2N/A AC_DEFINE([REPLACE_VASNPRINTF], [1],
2N/A [Define if vasnprintf exists but is overridden by gnulib.])
2N/A gl_PREREQ_PRINTF_ARGS
2N/A gl_PREREQ_PRINTF_PARSE
2N/A gl_PREREQ_VASNPRINTF
2N/A AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
2N/A AC_REQUIRE([gt_TYPE_WCHAR_T])
2N/A AC_REQUIRE([gt_TYPE_WINT_T])
2N/A AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
2N/A AC_REQUIRE([gt_TYPE_WCHAR_T])
2N/A AC_REQUIRE([gt_TYPE_WINT_T])
2N/A AC_REQUIRE([AC_TYPE_SIZE_T])
2N/A AC_CHECK_TYPE([ptrdiff_t], ,
2N/A [AC_DEFINE([ptrdiff_t], [long],
2N/A [Define as the type of the result of subtracting two pointers, if the system doesn't define it.])
2N/A AC_REQUIRE([gt_AC_TYPE_INTMAX_T])
2N/A AC_REQUIRE([AC_C_INLINE])
2N/A AC_REQUIRE([AC_FUNC_ALLOCA])
2N/A AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
2N/A AC_REQUIRE([gt_TYPE_WCHAR_T])
2N/A AC_REQUIRE([gt_TYPE_WINT_T])
2N/A AC_CHECK_FUNCS([snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb])
2N/A dnl Use the _snprintf function only if it is declared (because on NetBSD it
2N/A dnl is defined as a weak alias of snprintf; we prefer to use the latter).
2N/A AC_CHECK_DECLS([_snprintf], , , [#include <
stdio.h>])
2N/A dnl We can avoid a lot of code by assuming that snprintf's return value
2N/A dnl conforms to ISO C99. So check that.
2N/A AC_REQUIRE([gl_SNPRINTF_RETVAL_C99])
2N/A case "$gl_cv_func_snprintf_retval_c99" in
2N/A AC_DEFINE([HAVE_SNPRINTF_RETVAL_C99], [1],
2N/A [Define if the return value of the snprintf function is the number of
2N/A of bytes (excluding the terminating NUL) that would have been produced
2N/A if the buffer had been large enough.])
2N/Am4trace:
m4/vasnprintf.m4:55: -1- AC_DEFUN([gl_PREREQ_VASNPRINTF], [AC_REQUIRE([_gl_DEFUN_ONCE([gl_PREREQ_VASNPRINTF])],
2N/A [m4_indir([_gl_DEFUN_ONCE([gl_PREREQ_VASNPRINTF])])])])
2N/A AC_REQUIRE([AC_C_INLINE])
2N/A AC_REQUIRE([AC_FUNC_ALLOCA])
2N/A AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
2N/A AC_REQUIRE([gt_TYPE_WCHAR_T])
2N/A AC_REQUIRE([gt_TYPE_WINT_T])
2N/A AC_CHECK_FUNCS([snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb])
2N/A dnl Use the _snprintf function only if it is declared (because on NetBSD it
2N/A dnl is defined as a weak alias of snprintf; we prefer to use the latter).
2N/A AC_CHECK_DECLS([_snprintf], , , [#include <
stdio.h>])
2N/A dnl We can avoid a lot of code by assuming that snprintf's return value
2N/A dnl conforms to ISO C99. So check that.
2N/A AC_REQUIRE([gl_SNPRINTF_RETVAL_C99])
2N/A case "$gl_cv_func_snprintf_retval_c99" in
2N/A AC_DEFINE([HAVE_SNPRINTF_RETVAL_C99], [1],
2N/A [Define if the return value of the snprintf function is the number of
2N/A of bytes (excluding the terminating NUL) that would have been produced
2N/A if the buffer had been large enough.])
2N/A AC_REQUIRE([gl_PRINTF_LONG_DOUBLE])
2N/A case "$gl_cv_func_printf_long_double" in
2N/A AC_DEFINE([NEED_PRINTF_LONG_DOUBLE], [1],
2N/A [Define if the vasnprintf implementation needs special code for
2N/A 'long double' arguments.])
2N/Am4trace:
m4/vasnprintf.m4:81: -1- AC_DEFUN([gl_PREREQ_VASNPRINTF_LONG_DOUBLE], [AC_REQUIRE([_gl_DEFUN_ONCE([gl_PREREQ_VASNPRINTF_LONG_DOUBLE])],
2N/A [m4_indir([_gl_DEFUN_ONCE([gl_PREREQ_VASNPRINTF_LONG_DOUBLE])])])])
2N/Am4trace:
m4/vasnprintf.m4:81: -1- AC_DEFUN([_gl_DEFUN_ONCE([gl_PREREQ_VASNPRINTF_LONG_DOUBLE])], [
2N/A AC_REQUIRE([gl_PRINTF_LONG_DOUBLE])
2N/A case "$gl_cv_func_printf_long_double" in
2N/A AC_DEFINE([NEED_PRINTF_LONG_DOUBLE], [1],
2N/A [Define if the vasnprintf implementation needs special code for
2N/A 'long double' arguments.])
2N/A AC_REQUIRE([gl_PRINTF_INFINITE])
2N/A case "$gl_cv_func_printf_infinite" in
2N/A AC_DEFINE([NEED_PRINTF_INFINITE_DOUBLE], [1],
2N/A [Define if the vasnprintf implementation needs special code for
2N/A infinite 'double' arguments.])
2N/A AC_REQUIRE([gl_PRINTF_INFINITE_LONG_DOUBLE])
2N/A dnl There is no need to set NEED_PRINTF_INFINITE_LONG_DOUBLE if
2N/A dnl NEED_PRINTF_LONG_DOUBLE is already set.
2N/A AC_REQUIRE([gl_PREREQ_VASNPRINTF_LONG_DOUBLE])
2N/A case "$gl_cv_func_printf_long_double" in
2N/A case "$gl_cv_func_printf_infinite_long_double" in
2N/A AC_DEFINE([NEED_PRINTF_INFINITE_LONG_DOUBLE], [1],
2N/A [Define if the vasnprintf implementation needs special code for
2N/A infinite 'long double' arguments.])
2N/A AC_REQUIRE([gl_PRINTF_DIRECTIVE_A])
2N/A case "$gl_cv_func_printf_directive_a" in
2N/A AC_DEFINE([NEED_PRINTF_DIRECTIVE_A], [1],
2N/A [Define if the vasnprintf implementation needs special code for
2N/A the 'a' and 'A' directives.])
2N/A AC_CHECK_FUNCS([nl_langinfo])
2N/A AC_REQUIRE([gl_PRINTF_DIRECTIVE_F])
2N/A case "$gl_cv_func_printf_directive_f" in
2N/A AC_DEFINE([NEED_PRINTF_DIRECTIVE_F], [1],
2N/A [Define if the vasnprintf implementation needs special code for
2N/A the 'F' directive.])
2N/A AC_REQUIRE([gl_PRINTF_DIRECTIVE_LS])
2N/A case "$gl_cv_func_printf_directive_ls" in
2N/A AC_DEFINE([NEED_PRINTF_DIRECTIVE_LS], [1],
2N/A [Define if the vasnprintf implementation needs special code for
2N/A the 'ls' directive.])
2N/A AC_REQUIRE([gl_PRINTF_FLAG_GROUPING])
2N/A case "$gl_cv_func_printf_flag_grouping" in
2N/A AC_DEFINE([NEED_PRINTF_FLAG_GROUPING], [1],
2N/A [Define if the vasnprintf implementation needs special code for the
2N/A AC_REQUIRE([gl_PRINTF_FLAG_LEFTADJUST])
2N/A case "$gl_cv_func_printf_flag_leftadjust" in
2N/A AC_DEFINE([NEED_PRINTF_FLAG_LEFTADJUST], [1],
2N/A [Define if the vasnprintf implementation needs special code for the
2N/A AC_REQUIRE([gl_PRINTF_FLAG_ZERO])
2N/A case "$gl_cv_func_printf_flag_zero" in
2N/A AC_DEFINE([NEED_PRINTF_FLAG_ZERO], [1],
2N/A [Define if the vasnprintf implementation needs special code for the
2N/A AC_REQUIRE([gl_PRINTF_PRECISION])
2N/A case "$gl_cv_func_printf_precision" in
2N/A AC_DEFINE([NEED_PRINTF_UNBOUNDED_PRECISION], [1],
2N/A [Define if the vasnprintf implementation needs special code for
2N/A supporting large precisions without arbitrary bounds.])
2N/A AC_DEFINE([NEED_PRINTF_DOUBLE], [1],
2N/A [Define if the vasnprintf implementation needs special code for
2N/A 'double' arguments.])
2N/A AC_DEFINE([NEED_PRINTF_LONG_DOUBLE], [1],
2N/A [Define if the vasnprintf implementation needs special code for
2N/A 'long double' arguments.])
2N/A AC_REQUIRE([gl_PRINTF_ENOMEM])
2N/A case "$gl_cv_func_printf_enomem" in
2N/A AC_DEFINE([NEED_PRINTF_ENOMEM], [1],
2N/A [Define if the vasnprintf implementation needs special code for
2N/A surviving out-of-memory conditions.])
2N/A AC_DEFINE([NEED_PRINTF_DOUBLE], [1],
2N/A [Define if the vasnprintf implementation needs special code for
2N/A 'double' arguments.])
2N/A AC_DEFINE([NEED_PRINTF_LONG_DOUBLE], [1],
2N/A [Define if the vasnprintf implementation needs special code for
2N/A 'long double' arguments.])
2N/A AC_REQUIRE([gl_PREREQ_VASNPRINTF])
2N/A gl_PREREQ_VASNPRINTF_LONG_DOUBLE
2N/A gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE
2N/A gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE
2N/A gl_PREREQ_VASNPRINTF_DIRECTIVE_A
2N/A gl_PREREQ_VASNPRINTF_DIRECTIVE_F
2N/A gl_PREREQ_VASNPRINTF_DIRECTIVE_LS
2N/A gl_PREREQ_VASNPRINTF_FLAG_GROUPING
2N/A gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST
2N/A gl_PREREQ_VASNPRINTF_FLAG_ZERO
2N/A gl_PREREQ_VASNPRINTF_PRECISION
2N/A gl_PREREQ_VASNPRINTF_ENOMEM
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A if test -n "$GCC"; then
2N/A dnl First, check whether -Werror can be added to the command line, or
2N/A dnl whether it leads to an error because of some other option that the
2N/A dnl user has put into $CC $CFLAGS $CPPFLAGS.
2N/A AC_MSG_CHECKING([whether the -Werror option is usable])
2N/A AC_CACHE_VAL([gl_cv_cc_vis_werror], [
2N/A gl_save_CFLAGS="$CFLAGS"
2N/A CFLAGS="$CFLAGS -Werror"
2N/A [AC_LANG_PROGRAM([[]], [[]])],
2N/A [gl_cv_cc_vis_werror=yes],
2N/A [gl_cv_cc_vis_werror=no])
2N/A CFLAGS="$gl_save_CFLAGS"])
2N/A AC_MSG_RESULT([$gl_cv_cc_vis_werror])
2N/A dnl Now check whether visibility declarations are supported.
2N/A AC_MSG_CHECKING([for simple visibility declarations])
2N/A AC_CACHE_VAL([gl_cv_cc_visibility], [
2N/A gl_save_CFLAGS="$CFLAGS"
2N/A CFLAGS="$CFLAGS -fvisibility=hidden"
2N/A dnl We use the option -Werror and a function dummyfunc, because on some
2N/A dnl platforms (Cygwin 1.7) the use of -fvisibility triggers a warning
2N/A dnl "visibility attribute not supported in this configuration; ignored"
2N/A dnl at the first function definition in every compilation unit, and we
2N/A dnl don't want to use the option in this case.
2N/A if test $gl_cv_cc_vis_werror = yes; then
2N/A CFLAGS="$CFLAGS -Werror"
2N/A [[extern __attribute__((__visibility__("hidden"))) int hiddenvar;
2N/A extern __attribute__((__visibility__("default"))) int exportedvar;
2N/A extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
2N/A extern __attribute__((__visibility__("default"))) int exportedfunc (void);
2N/A void dummyfunc (void) {}
2N/A [gl_cv_cc_visibility=yes],
2N/A [gl_cv_cc_visibility=no])
2N/A CFLAGS="$gl_save_CFLAGS"])
2N/A AC_MSG_RESULT([$gl_cv_cc_visibility])
2N/A if test $gl_cv_cc_visibility = yes; then
2N/A CFLAG_VISIBILITY="-fvisibility=hidden"
2N/A AC_SUBST([CFLAG_VISIBILITY])
2N/A AC_SUBST([HAVE_VISIBILITY])
2N/A AC_DEFINE_UNQUOTED([HAVE_VISIBILITY], [$HAVE_VISIBILITY],
2N/A [Define to 1 or 0, depending whether the compiler supports simple visibility declarations.])
2N/A AC_REQUIRE([gl_STDIO_H_DEFAULTS])
2N/A gl_cv_func_vsnprintf_usable=no
2N/A AC_CHECK_FUNCS([vsnprintf])
2N/A if test $ac_cv_func_vsnprintf = yes; then
2N/A case "$gl_cv_func_snprintf_size1" in
2N/A gl_cv_func_vsnprintf_usable=yes
2N/A if test $gl_cv_func_vsnprintf_usable = no; then
2N/A gl_REPLACE_VSNPRINTF
2N/A AC_CHECK_DECLS_ONCE([vsnprintf])
2N/A if test $ac_cv_have_decl_vsnprintf = no; then
2N/A HAVE_DECL_VSNPRINTF=0
2N/A AC_REQUIRE([gl_STDIO_H_DEFAULTS])
2N/A AC_LIBOBJ([vsnprintf])
2N/A if test $ac_cv_func_vsnprintf = yes; then
2N/A m4_foreach_w([gl_decl], [$2],
2N/A [AH_TEMPLATE([HAVE_RAW_DECL_]AS_TR_CPP(m4_defn([gl_decl])),
2N/A [Define to 1 if ]m4_defn([gl_decl])[ is declared even after
2N/A undefining macros.])])dnl
2N/A for gl_func in m4_flatten([$2]); do
2N/A AS_VAR_PUSHDEF([gl_Symbol], [gl_cv_have_raw_decl_$gl_func])dnl
2N/A AC_CACHE_CHECK([whether $gl_func is declared without a macro],
2N/A [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([$1],
2N/A (void) $gl_func;])],
2N/A [AS_VAR_SET(gl_Symbol, [yes])], [AS_VAR_SET(gl_Symbol, [no])])])
2N/A AS_VAR_IF(gl_Symbol, [yes],
2N/A [AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_RAW_DECL_$gl_func]), [1])
2N/A dnl shortcut - if the raw declaration exists, then set a cache
2N/A dnl variable to allow skipping any later AC_CHECK_DECL efforts
2N/A eval ac_cv_have_decl_$gl_func=yes])
2N/A AS_VAR_POPDEF([gl_Symbol])dnl
2N/A AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
2N/A AC_REQUIRE([gl_WCHAR_H_INLINE_OK])
2N/A dnl Check for <
wchar.h> (missing in Linux uClibc when built without wide
2N/A dnl character support).
2N/A dnl <
wchar.h> is always overridden, because of GNULIB_POSIXCHECK.
2N/A if test $ac_cv_header_wchar_h = yes; then
2N/A AC_SUBST([HAVE_WCHAR_H])
2N/A AC_REQUIRE([gt_TYPE_WINT_T])
2N/A if test $gt_cv_c_wint_t = yes; then
2N/A AC_SUBST([HAVE_WINT_T])
2N/A dnl Check for declarations of anything we want to poison if the
2N/A dnl corresponding gnulib module is not in use.
2N/A gl_WARN_ON_USE_PREPARE([[
2N/A/* Some systems require additional headers. */
2N/A ]], [btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb
2N/A wcsrtombs wcsnrtombs wcwidth])
2N/A dnl Test whether <
wchar.h> suffers due to the transition from '__inline' to
2N/A dnl glibc version 2.5 or older, together with gcc version 4.3 or newer and
2N/A dnl the option -std=c99 or -std=gnu99, leads to a broken <
wchar.h>.
2N/A AC_CACHE_CHECK([whether <
wchar.h> uses 'inline' correctly],
2N/A [gl_cv_header_wchar_h_correct_inline],
2N/A [gl_cv_header_wchar_h_correct_inline=yes
2N/A AC_LANG_SOURCE([[#define wcstod renamed_wcstod
2N/Aextern int zero (void);
2N/Aint main () { return zero(); }
2N/A if AC_TRY_EVAL([ac_compile]); then
2N/A mv conftest.$ac_objext conftest1.$ac_objext
2N/A AC_LANG_SOURCE([[#define wcstod renamed_wcstod
2N/Aint zero (void) { return 0; }
2N/A if AC_TRY_EVAL([ac_compile]); then
2N/A mv conftest.$ac_objext conftest2.$ac_objext
2N/A if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&AS_MESSAGE_LOG_FD 2>&1; then
2N/A gl_cv_header_wchar_h_correct_inline=no
2N/A rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
2N/A if test $gl_cv_header_wchar_h_correct_inline = no; then
2N/A AC_MSG_ERROR([<
wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
2N/AThis is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
2N/AC99 mode. You have four options:
2N/A - Add the flag -fgnu89-inline to CC and reconfigure, or
2N/A - Fix your include files, using parts of
2N/A - Use a gcc version older than 4.3, or
2N/A - Don't use the flags -std=c99 or -std=gnu99.
2N/AConfiguration aborted.])
2N/A dnl This is a no-op, because <
wchar.h> is always overridden.
2N/A dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
2N/A AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
2N/A gl_MODULE_INDICATOR_SET_VARIABLE([$1])
2N/A dnl Define it also as a C macro, for the benefit of the unit tests.
2N/A gl_MODULE_INDICATOR_FOR_TESTS([$1])
2N/A GNULIB_BTOWC=0; AC_SUBST([GNULIB_BTOWC])
2N/A GNULIB_WCTOB=0; AC_SUBST([GNULIB_WCTOB])
2N/A GNULIB_MBSINIT=0; AC_SUBST([GNULIB_MBSINIT])
2N/A GNULIB_MBRTOWC=0; AC_SUBST([GNULIB_MBRTOWC])
2N/A GNULIB_MBRLEN=0; AC_SUBST([GNULIB_MBRLEN])
2N/A GNULIB_MBSRTOWCS=0; AC_SUBST([GNULIB_MBSRTOWCS])
2N/A GNULIB_MBSNRTOWCS=0; AC_SUBST([GNULIB_MBSNRTOWCS])
2N/A GNULIB_WCRTOMB=0; AC_SUBST([GNULIB_WCRTOMB])
2N/A GNULIB_WCSRTOMBS=0; AC_SUBST([GNULIB_WCSRTOMBS])
2N/A GNULIB_WCSNRTOMBS=0; AC_SUBST([GNULIB_WCSNRTOMBS])
2N/A GNULIB_WCWIDTH=0; AC_SUBST([GNULIB_WCWIDTH])
2N/A dnl Assume proper GNU behavior unless another module says otherwise.
2N/A HAVE_BTOWC=1; AC_SUBST([HAVE_BTOWC])
2N/A HAVE_MBSINIT=1; AC_SUBST([HAVE_MBSINIT])
2N/A HAVE_MBRTOWC=1; AC_SUBST([HAVE_MBRTOWC])
2N/A HAVE_MBRLEN=1; AC_SUBST([HAVE_MBRLEN])
2N/A HAVE_MBSRTOWCS=1; AC_SUBST([HAVE_MBSRTOWCS])
2N/A HAVE_MBSNRTOWCS=1; AC_SUBST([HAVE_MBSNRTOWCS])
2N/A HAVE_WCRTOMB=1; AC_SUBST([HAVE_WCRTOMB])
2N/A HAVE_WCSRTOMBS=1; AC_SUBST([HAVE_WCSRTOMBS])
2N/A HAVE_WCSNRTOMBS=1; AC_SUBST([HAVE_WCSNRTOMBS])
2N/A HAVE_DECL_WCTOB=1; AC_SUBST([HAVE_DECL_WCTOB])
2N/A HAVE_DECL_WCWIDTH=1; AC_SUBST([HAVE_DECL_WCWIDTH])
2N/A REPLACE_MBSTATE_T=0; AC_SUBST([REPLACE_MBSTATE_T])
2N/A REPLACE_BTOWC=0; AC_SUBST([REPLACE_BTOWC])
2N/A REPLACE_WCTOB=0; AC_SUBST([REPLACE_WCTOB])
2N/A REPLACE_MBSINIT=0; AC_SUBST([REPLACE_MBSINIT])
2N/A REPLACE_MBRTOWC=0; AC_SUBST([REPLACE_MBRTOWC])
2N/A REPLACE_MBRLEN=0; AC_SUBST([REPLACE_MBRLEN])
2N/A REPLACE_MBSRTOWCS=0; AC_SUBST([REPLACE_MBSRTOWCS])
2N/A REPLACE_MBSNRTOWCS=0; AC_SUBST([REPLACE_MBSNRTOWCS])
2N/A REPLACE_WCRTOMB=0; AC_SUBST([REPLACE_WCRTOMB])
2N/A REPLACE_WCSRTOMBS=0; AC_SUBST([REPLACE_WCSRTOMBS])
2N/A REPLACE_WCSNRTOMBS=0; AC_SUBST([REPLACE_WCSNRTOMBS])
2N/A REPLACE_WCWIDTH=0; AC_SUBST([REPLACE_WCWIDTH])
2N/A AC_CACHE_CHECK([for wchar_t], [gt_cv_c_wchar_t],
2N/A wchar_t foo = (wchar_t)'\0';]],
2N/A [gt_cv_c_wchar_t=yes],
2N/A [gt_cv_c_wchar_t=no])])
2N/A if test $gt_cv_c_wchar_t = yes; then
2N/A AC_DEFINE([HAVE_WCHAR_T], [1], [Define if you have the 'wchar_t' type.])
2N/A AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
2N/A AC_REQUIRE([AC_TYPE_MBSTATE_T])
2N/A AC_CHECK_FUNCS_ONCE([wcrtomb])
2N/A if test $ac_cv_func_wcrtomb = no; then
2N/A if test $REPLACE_MBSTATE_T = 1; then
2N/A dnl On AIX 4.3, OSF/1 5.1 and Solaris 10, wcrtomb (NULL, 0, NULL) sometimes
2N/A dnl returns 0 instead of 1.
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([gt_LOCALE_FR])
2N/A AC_REQUIRE([gt_LOCALE_FR_UTF8])
2N/A AC_REQUIRE([gt_LOCALE_JA])
2N/A AC_REQUIRE([gt_LOCALE_ZH_CN])
2N/A AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
2N/A AC_CACHE_CHECK([whether wcrtomb return value is correct],
2N/A [gl_cv_func_wcrtomb_retval],
2N/A dnl Initial guess, used when cross-compiling or when no suitable locale
2N/A # Guess no on AIX 4, OSF/1 and Solaris.
2N/A aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
2N/A # Guess yes otherwise.
2N/A *) gl_cv_func_wcrtomb_retval="guessing yes" ;;
2N/A if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
2N/A if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
2N/A if (wcrtomb (NULL, 0, NULL) != 1)
2N/A if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
2N/A if (wcrtomb (NULL, 0, NULL) != 1)
2N/A if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
2N/A if (wcrtomb (NULL, 0, NULL) != 1)
2N/A if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
2N/A if (wcrtomb (NULL, 0, NULL) != 1)
2N/A [gl_cv_func_wcrtomb_retval=yes],
2N/A [gl_cv_func_wcrtomb_retval=no],
2N/A case "$gl_cv_func_wcrtomb_retval" in
2N/A *) REPLACE_WCRTOMB=1 ;;
2N/A if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
2N/A AC_LIBOBJ([wcrtomb])
2N/A AC_REQUIRE([AC_PROG_CC])
2N/A AC_REQUIRE([AC_CANONICAL_HOST])
2N/A AC_CHECK_FUNCS_ONCE([iswcntrl])
2N/A if test $ac_cv_func_iswcntrl = yes; then
2N/A AC_SUBST([HAVE_ISWCNTRL])
2N/A AC_CHECK_FUNCS_ONCE([iswblank])
2N/A AC_CHECK_DECLS_ONCE([iswblank])
2N/A if test $ac_cv_func_iswblank = yes; then
2N/A if test $ac_cv_have_decl_iswblank = yes; then
2N/A AC_SUBST([HAVE_ISWBLANK])
2N/A AC_SUBST([REPLACE_ISWBLANK])
2N/A AC_REQUIRE([AC_C_INLINE])
2N/A AC_REQUIRE([gt_TYPE_WINT_T])
2N/A if test $gt_cv_c_wint_t = yes; then
2N/A AC_SUBST([HAVE_WINT_T])
2N/A if test $ac_cv_header_wctype_h = yes; then
2N/A if test $ac_cv_func_iswcntrl = yes; then
2N/A dnl Linux libc5 has an iswprint function that returns 0 for all arguments.
2N/A dnl The other functions are likely broken in the same way.
2N/A AC_CACHE_CHECK([whether iswcntrl works], [gl_cv_func_iswcntrl_works],
2N/A AC_RUN_IFELSE([AC_LANG_SOURCE([[
2N/A int main () { return iswprint ('x') == 0; }]])],
2N/A [gl_cv_func_iswcntrl_works=yes], [gl_cv_func_iswcntrl_works=no],
2N/A [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <
stdlib.h>
2N/A #if __GNU_LIBRARY__ == 1
2N/A Linux libc5 i18n is broken.
2N/A [gl_cv_func_iswcntrl_works=yes], [gl_cv_func_iswcntrl_works=no])
2N/A AC_SUBST([HAVE_WCTYPE_H])
2N/A if test "$gl_cv_func_iswcntrl_works" = no; then
2N/A AC_SUBST([REPLACE_ISWCNTRL])
2N/A AC_CACHE_CHECK([for wint_t], [gt_cv_c_wint_t],
2N/A/* Tru64 with Desktop Toolkit C has a bug: <
stdio.h> must be included before
2N/A wint_t foo = (wchar_t)'\0';]],
2N/A [gt_cv_c_wint_t=yes],
2N/A [gt_cv_c_wint_t=no])])
2N/A if test $gt_cv_c_wint_t = yes; then
2N/A AC_DEFINE([HAVE_WINT_T], [1], [Define if you have the 'wint_t' type.])
2N/A AC_REQUIRE([gl_SIZE_MAX])
2N/A AC_REQUIRE([AC_C_INLINE])
2N/Am4trace:
acinclude.m4:17: -1- AC_DEFUN([grub_PROG_TARGET_CC], [AC_MSG_CHECKING([whether target compiler is working])
2N/AAC_CACHE_VAL(grub_cv_prog_target_cc,
2N/A[AC_LINK_IFELSE([AC_LANG_PROGRAM([[
2N/Aasm (".globl start; start:");
2N/A [grub_cv_prog_target_cc=yes],
2N/A [grub_cv_prog_target_cc=no])
2N/AAC_MSG_RESULT([$grub_cv_prog_target_cc])
2N/Aif test "x$grub_cv_prog_target_cc" = xno; then
2N/A AC_MSG_ERROR([cannot compile for the target])
2N/Am4trace:
acinclude.m4:35: -1- AC_DEFUN([grub_PROG_TARGET_CC_USES_GAS], [AC_MSG_CHECKING([whether target compiler uses gas as its assembler])
2N/AAC_CACHE_VAL(grub_cv_prog_target_cc_uses_gas,
2N/A[AC_LINK_IFELSE([AC_LANG_PROGRAM([[
2N/Aasm (".code16; .globl start; .type start, \"function\"; start:");
2N/A [grub_cv_prog_target_cc_uses_gas=yes],
2N/A [grub_cv_prog_target_cc_uses_gas=no])
2N/AAC_MSG_RESULT([$grub_cv_prog_target_cc_uses_gas])
2N/Am4trace:
acinclude.m4:53: -1- AC_DEFUN([grub_ASM_USCORE], [AC_REQUIRE([AC_PROG_CC])
2N/AAC_REQUIRE([AC_PROG_EGREP])
2N/AAC_MSG_CHECKING([if C symbols get an underscore after compilation])
2N/AAC_CACHE_VAL(grub_cv_asm_uscore,
2N/A AC_MSG_ERROR([${CC-cc} failed to produce assembly code])
2N/A grub_cv_asm_uscore=yes
2N/A grub_cv_asm_uscore=no
2N/AAC_MSG_RESULT([$grub_cv_asm_uscore])
2N/Am4trace:
acinclude.m4:90: -1- AC_DEFUN([grub_PROG_OBJCOPY_ABSOLUTE], [AC_MSG_CHECKING([whether ${OBJCOPY} works for absolute addresses])
2N/AAC_CACHE_VAL(grub_cv_prog_objcopy_absolute,
2N/A *((int *) 0x1000) = 2;
2N/A AC_MSG_ERROR([${CC-cc} cannot compile C source code])
2N/Agrub_cv_prog_objcopy_absolute=yes
2N/Afor link_addr in 0x2000 0x8000 0x7C00; do
2N/A if test x$grub_cv_solaris_linker = xyes ; then
2N/A text = P${link_addr} ;
2N/A AC_MSG_ERROR([${CC-cc} cannot link at address $link_addr])
2N/A if AC_TRY_COMMAND([${OBJCOPY-objcopy} --only-section=.text -O binary
conftest.exec conftest]); then :
2N/A AC_MSG_ERROR([${OBJCOPY-objcopy} cannot create binary files])
2N/A if AC_TRY_COMMAND([${CC-cc} ${CFLAGS} -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},$link_addr
conftest.o -o
conftest.exec]); then :
2N/A AC_MSG_ERROR([${CC-cc} cannot link at address $link_addr])
2N/A if AC_TRY_COMMAND([${OBJCOPY-objcopy} --only-section=.text -O binary
conftest.exec conftest]); then :
2N/A AC_MSG_ERROR([${OBJCOPY-objcopy} cannot create binary files])
2N/A grub_cv_prog_objcopy_absolute=no
2N/AAC_MSG_RESULT([$grub_cv_prog_objcopy_absolute])
2N/Aif test "x$grub_cv_prog_objcopy_absolute" = xno; then
2N/A AC_MSG_ERROR([GRUB requires a working absolute objcopy; upgrade your binutils])
2N/Am4trace:
acinclude.m4:155: -1- AC_DEFUN([grub_PROG_LD_BUILD_ID_NONE], [AC_MSG_CHECKING([whether linker accepts --build-id=none])
2N/AAC_CACHE_VAL(grub_cv_prog_ld_build_id_none,
2N/A[save_LDFLAGS="$LDFLAGS"
2N/ALDFLAGS="$LDFLAGS -Wl,--build-id=none"
2N/AAC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
2N/A [grub_cv_prog_ld_build_id_none=yes],
2N/A [grub_cv_prog_ld_build_id_none=no])
2N/ALDFLAGS="$save_LDFLAGS"
2N/AAC_MSG_RESULT([$grub_cv_prog_ld_build_id_none])
2N/Aif test "x$grub_cv_prog_ld_build_id_none" = xyes; then
2N/A TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,--build-id=none"
2N/Am4trace:
acinclude.m4:186: -1- AC_DEFUN([grub_I386_ASM_ADDR32], [AC_REQUIRE([AC_PROG_CC])
2N/AAC_REQUIRE([grub_I386_ASM_PREFIX_REQUIREMENT])
2N/AAC_MSG_CHECKING([for .code16 addr32 assembler support])
2N/AAC_CACHE_VAL(grub_cv_i386_asm_addr32,
2N/Al1: @ADDR32@ movb %al, l1
2N/Aif test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
2N/A grub_cv_i386_asm_addr32=yes
2N/A grub_cv_i386_asm_addr32=no
2N/AAC_MSG_RESULT([$grub_cv_i386_asm_addr32])])
2N/Am4trace:
acinclude.m4:214: -1- AC_DEFUN([grub_apple_cc], [AC_REQUIRE([AC_PROG_CC])
2N/AAC_MSG_CHECKING([whether our compiler is apple cc])
2N/AAC_CACHE_VAL(grub_cv_apple_cc,
2N/A grub_cv_apple_cc=yes
2N/AAC_MSG_RESULT([$grub_cv_apple_cc])])
2N/Am4trace:
acinclude.m4:229: -1- AC_DEFUN([grub_apple_target_cc], [AC_REQUIRE([AC_PROG_CC])
2N/AAC_MSG_CHECKING([whether our target compiler is apple cc])
2N/AAC_CACHE_VAL(grub_cv_apple_target_cc,
2N/A grub_cv_apple_target_cc=yes
2N/A grub_cv_apple_target_cc=no
2N/AAC_MSG_RESULT([$grub_cv_apple_target_cc])])
2N/Am4trace:
acinclude.m4:244: -1- AC_DEFUN([grub_solaris_linker], [AC_REQUIRE([AC_PROG_CC])
2N/AAC_MSG_CHECKING([whether our target linker is Solaris ld])
2N/AAC_CACHE_VAL(grub_cv_solaris_linker,
2N/Aint main(int argc, char **argv){return 0;}
2N/A grub_cv_solaris_linker=yes
2N/A grub_cv_solaris_linker=no
2N/AAC_MSG_RESULT([$grub_cv_solaris_linker])])
2N/Am4trace:
acinclude.m4:264: -1- AC_DEFUN([grub_I386_ASM_PREFIX_REQUIREMENT], [AC_REQUIRE([AC_PROG_CC])
2N/A[whether addr32 must be in the same line as the instruction])
2N/AAC_CACHE_VAL(grub_cv_i386_asm_prefix_requirement,
2N/Al1: addr32 movb %al, l1
2N/A grub_cv_i386_asm_prefix_requirement=yes
2N/Aelif test "x$grub_cv_solaris_linker" = xyes; then
2N/A # XXX Hack Alert XXX
2N/A # Force this to be true on Solaris since we always use the latest GAS
2N/A grub_cv_i386_asm_prefix_requirement=yes
2N/A grub_cv_i386_asm_prefix_requirement=no
2N/Aif test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
2N/A grub_tmp_addr32="addr32"
2N/A grub_tmp_data32="data32"
2N/A grub_tmp_addr32="addr32;"
2N/A grub_tmp_data32="data32;"
2N/AADDR32=$grub_tmp_addr32
2N/ADATA32=$grub_tmp_data32
2N/AAC_MSG_RESULT([$grub_cv_i386_asm_prefix_requirement])])
2N/Am4trace:
acinclude.m4:302: -1- AC_DEFUN([grub_CHECK_BSS_START_SYMBOL], [AC_REQUIRE([AC_PROG_CC])
2N/AAC_MSG_CHECKING([if __bss_start is defined by the compiler])
2N/AAC_CACHE_VAL(grub_cv_check_uscore_uscore_bss_start_symbol,
2N/A[AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],
2N/A [[asm ("incl __bss_start")]])],
2N/A [grub_cv_check_uscore_uscore_bss_start_symbol=yes],
2N/A [grub_cv_check_uscore_uscore_bss_start_symbol=no])])
2N/AAC_MSG_RESULT([$grub_cv_check_uscore_uscore_bss_start_symbol])
2N/AAC_MSG_CHECKING([if edata is defined by the compiler])
2N/AAC_CACHE_VAL(grub_cv_check_edata_symbol,
2N/A[AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],
2N/A [[asm ("incl edata")]])],
2N/A [grub_cv_check_edata_symbol=yes],
2N/A [grub_cv_check_edata_symbol=no])])
2N/AAC_MSG_RESULT([$grub_cv_check_edata_symbol])
2N/AAC_MSG_CHECKING([if _edata is defined by the compiler])
2N/AAC_CACHE_VAL(grub_cv_check_uscore_edata_symbol,
2N/A[AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],
2N/A [[asm ("incl _edata")]])],
2N/A [grub_cv_check_uscore_edata_symbol=yes],
2N/A [grub_cv_check_uscore_edata_symbol=no])])
2N/AAC_MSG_RESULT([$grub_cv_check_uscore_edata_symbol])
2N/Aif test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
2N/A BSS_START_SYMBOL=__bss_start
2N/Aelif test "x$grub_cv_check_edata_symbol" = xyes; then
2N/A BSS_START_SYMBOL=edata
2N/Aelif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
2N/A BSS_START_SYMBOL=_edata
2N/A AC_MSG_ERROR([none of __bss_start, edata or _edata is defined])
2N/Am4trace:
acinclude.m4:344: -1- AC_DEFUN([grub_CHECK_END_SYMBOL], [AC_REQUIRE([AC_PROG_CC])
2N/AAC_MSG_CHECKING([if end is defined by the compiler])
2N/AAC_CACHE_VAL(grub_cv_check_end_symbol,
2N/A[AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],
2N/A [[asm ("incl end")]])],
2N/A [grub_cv_check_end_symbol=yes],
2N/A [grub_cv_check_end_symbol=no])])
2N/AAC_MSG_RESULT([$grub_cv_check_end_symbol])
2N/AAC_MSG_CHECKING([if _end is defined by the compiler])
2N/AAC_CACHE_VAL(grub_cv_check_uscore_end_symbol,
2N/A[AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],
2N/A [[asm ("incl _end")]])],
2N/A [grub_cv_check_uscore_end_symbol=yes],
2N/A [grub_cv_check_uscore_end_symbol=no])])
2N/AAC_MSG_RESULT([$grub_cv_check_uscore_end_symbol])
2N/Aif test "x$grub_cv_check_end_symbol" = xyes; then
2N/Aelif test "x$grub_cv_check_uscore_end_symbol" = xyes; then
2N/A AC_MSG_ERROR([neither end nor _end is defined])
2N/AAC_MSG_CHECKING([whether `$CC' generates calls to `__enable_execute_stack()'])
2N/AAC_LANG_CONFTEST([AC_LANG_SOURCE([[
2N/Avoid f (int (*p) (void));
2N/A int nestedfunc (void) { return i; }
2N/A AC_MSG_ERROR([${CC-cc} failed to produce assembly code])
2N/A NEED_ENABLE_EXECUTE_STACK=1
2N/A AC_MSG_RESULT([yes])
2N/A NEED_ENABLE_EXECUTE_STACK=0
2N/A[# Smashing stack protector.
2N/AAC_MSG_CHECKING([whether `$CC' accepts `-fstack-protector'])
2N/A# Is this a reliable test case?
2N/AAC_LANG_CONFTEST([AC_LANG_SOURCE([[
2N/Avoid foo (void) { volatile char a[8]; a[3]; }
2N/A[# `$CC -c -o ...' might not be portable. But, oh, well... Is calling
2N/A# `ac_compile' like this correct, after all?
2N/A AC_MSG_RESULT([yes])
2N/A [# Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
2N/A[# Smashing stack arg probe.
2N/AAC_MSG_CHECKING([whether `$CC' accepts `-mstack-arg-probe'])
2N/AAC_LANG_CONFTEST([AC_LANG_SOURCE([[
2N/Avoid foo (void) { volatile char a[8]; a[3]; }
2N/A AC_MSG_RESULT([yes])
2N/A [# Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
2N/AAC_MSG_CHECKING([whether ln can handle directories properly])
2N/A AC_MSG_RESULT([yes])
2N/A[# Position independent executable.
2N/AAC_MSG_CHECKING([whether `$CC' has `-fPIE' as default])
2N/A# Is this a reliable test case?
2N/AAC_LANG_CONFTEST([AC_LANG_SOURCE([[
2N/A#error NO __PIE__ DEFINED
2N/A[# `$CC -c -o ...' might not be portable. But, oh, well... Is calling
2N/A# `ac_compile' like this correct, after all?
2N/A AC_MSG_RESULT([yes])
2N/A [# Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
2N/Am4trace:
configure.ac:35: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'])
2N/Am4trace:
configure.ac:46: -1- _m4_warn([obsolete], [The macro `AC_FOREACH' is obsolete.
2N/Am4trace:
configure.ac:46: -1- _AM_IF_OPTION([no-define], [], [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
2N/A AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])
2N/Am4trace:
configure.ac:46: -1- AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
2N/Am4trace:
configure.ac:46: -1- AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
2N/Am4trace:
configure.ac:46: -1- _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
2N/A [_AM_PROG_TAR([v7])])])
2N/Am4trace:
configure.ac:46: -1- _AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])
2N/Am4trace:
configure.ac:46: -1- _AM_IF_OPTION([no-dependencies], [], [AC_PROVIDE_IFELSE([AC_PROG_CC],
2N/A [_AM_DEPENDENCIES(CC)],
2N/A [define([AC_PROG_CC],
2N/A defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
2N/AAC_PROVIDE_IFELSE([AC_PROG_CXX],
2N/A [_AM_DEPENDENCIES(CXX)],
2N/A [define([AC_PROG_CXX],
2N/A defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
2N/AAC_PROVIDE_IFELSE([AC_PROG_OBJC],
2N/A [_AM_DEPENDENCIES(OBJC)],
2N/A [define([AC_PROG_OBJC],
2N/A defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
2N/Am4trace:
configure.ac:52: -1- _m4_warn([syntax], [AC_ARG_PROGRAM invoked multiple times], [])
2N/Am4trace:
configure.ac:247: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
2N/A test "x$enable_dependency_tracking" != xno \
2N/A && test "$am_cv_CC_dependencies_compiler_type" = gcc3])
2N/A test "x$enable_dependency_tracking" != xno \
2N/A && test "$am_cv_CC_dependencies_compiler_type" = gcc3])
2N/Am4trace:
configure.ac:272: -1- _m4_warn([obsolete], [The macro `AC_GNU_SOURCE' is obsolete.
2N/Am4trace:
configure.ac:272: -1- m4_pattern_allow([^_POSIX_PTHREAD_SEMANTICS$])
2N/Am4trace:
configure.ac:274: -1- _AM_IF_OPTION([no-dependencies], [], [_AM_DEPENDENCIES([CCAS])])
2N/A test "x$enable_dependency_tracking" != xno \
2N/A && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3])
2N/Am4trace:
configure.ac:279: -1- _m4_warn([obsolete], [The macro `AC_GNU_SOURCE' is obsolete.
2N/Am4trace:
configure.ac:280: -1- AM_PATH_PROG_WITH_TEST([MSGFMT], [msgfmt], [$ac_dir/$ac_word --statistics
/dev/null >&5 2>&1 &&
2N/Am4trace:
configure.ac:280: -1- AM_PATH_PROG_WITH_TEST([XGETTEXT], [xgettext], [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address=
/dev/null >&5 2>&1 &&
2N/A (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address=
/dev/null 2>&1 >
/dev/null | grep usage >
/dev/null; then exit 1; else exit 0; fi)], [:])
2N/A eval additional_includedir=\"$includedir\"
2N/A eval additional_libdir=\"$libdir\"
2N/A eval additional_includedir=\"$includedir\"
2N/A eval additional_libdir=\"$libdir\"
2N/Am4trace:
configure.ac:280: -1- m4_pattern_allow([^HAVE_CFPREFERENCESCOPYAPPVALUE$])
2N/Am4trace:
configure.ac:280: -1- m4_pattern_allow([^HAVE_CFLOCALECOPYCURRENT$])
2N/A eval additional_includedir=\"$includedir\"
2N/A eval additional_libdir=\"$libdir\"
2N/A eval additional_includedir=\"$includedir\"
2N/A eval additional_libdir=\"$libdir\"
2N/Am4trace:
configure.ac:284: -1- m4_pattern_allow([^AC_APPLE_UNIVERSAL_BUILD$])
2N/Am4trace:
configure.ac:285: -1- AC_COMPUTE_INT([AS_TR_SH([ac_cv_sizeof_void *])], [(long int) (sizeof (void *))], [AC_INCLUDES_DEFAULT([])], [if test "$AS_TR_SH([ac_cv_type_void *])" = yes; then
2N/A AC_MSG_FAILURE([cannot compute sizeof (void *)], 77)
2N/A AS_TR_SH([ac_cv_sizeof_void *])=0
2N/Am4trace:
configure.ac:286: -1- AC_COMPUTE_INT([AS_TR_SH([ac_cv_sizeof_long])], [(long int) (sizeof (long))], [AC_INCLUDES_DEFAULT([])], [if test "$AS_TR_SH([ac_cv_type_long])" = yes; then
2N/A AC_MSG_FAILURE([cannot compute sizeof (long)], 77)
2N/A AS_TR_SH([ac_cv_sizeof_long])=0
2N/Am4trace:
configure.ac:304: -1- m4_pattern_allow([^HAVE_STRUCT_STATFS_F_FSTYPENAME$])
2N/Am4trace:
configure.ac:308: -1- m4_pattern_allow([^HAVE_STRUCT_STATFS_F_MNTFROMNAME$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Check_Decl_getenv], [AC_CHECK_DECLS(m4_defn([AC_Symbol]))])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_DECL_PROGRAM_INVOCATION_NAME$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^GNULIB_PROGRAM_INVOCATION_NAME$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^GNULIB_PROGRAM_INVOCATION_SHORT_NAME$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_PROGRAM_INVOCATION_NAME$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_PROGRAM_INVOCATION_SHORT_NAME$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Check_Decl_clearerr_unlocked], [AC_CHECK_DECLS(m4_defn([AC_Symbol]))])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_DECL_CLEARERR_UNLOCKED$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_DECL_CLEARERR_UNLOCKED$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Check_Decl_feof_unlocked], [AC_CHECK_DECLS(m4_defn([AC_Symbol]))])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Check_Decl_ferror_unlocked], [AC_CHECK_DECLS(m4_defn([AC_Symbol]))])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_DECL_FERROR_UNLOCKED$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_DECL_FERROR_UNLOCKED$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Check_Decl_fflush_unlocked], [AC_CHECK_DECLS(m4_defn([AC_Symbol]))])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_DECL_FFLUSH_UNLOCKED$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_DECL_FFLUSH_UNLOCKED$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Check_Decl_fgets_unlocked], [AC_CHECK_DECLS(m4_defn([AC_Symbol]))])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_DECL_FGETS_UNLOCKED$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_DECL_FGETS_UNLOCKED$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Check_Decl_fputc_unlocked], [AC_CHECK_DECLS(m4_defn([AC_Symbol]))])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_DECL_FPUTC_UNLOCKED$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_DECL_FPUTC_UNLOCKED$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Check_Decl_fputs_unlocked], [AC_CHECK_DECLS(m4_defn([AC_Symbol]))])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_DECL_FPUTS_UNLOCKED$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_DECL_FPUTS_UNLOCKED$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Check_Decl_fread_unlocked], [AC_CHECK_DECLS(m4_defn([AC_Symbol]))])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_DECL_FREAD_UNLOCKED$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_DECL_FREAD_UNLOCKED$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Check_Decl_fwrite_unlocked], [AC_CHECK_DECLS(m4_defn([AC_Symbol]))])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_DECL_FWRITE_UNLOCKED$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_DECL_FWRITE_UNLOCKED$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Check_Decl_getc_unlocked], [AC_CHECK_DECLS(m4_defn([AC_Symbol]))])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Check_Decl_getchar_unlocked], [AC_CHECK_DECLS(m4_defn([AC_Symbol]))])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_DECL_GETCHAR_UNLOCKED$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_DECL_GETCHAR_UNLOCKED$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Check_Decl_putc_unlocked], [AC_CHECK_DECLS(m4_defn([AC_Symbol]))])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Check_Decl_putchar_unlocked], [AC_CHECK_DECLS(m4_defn([AC_Symbol]))])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_DECL_PUTCHAR_UNLOCKED$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_DECL_PUTCHAR_UNLOCKED$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_flockfile], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_funlockfile], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_features_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_linewrap_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AM_XGETTEXT_OPTION([--flag=argp_error:2:c-format])
2N/Am4trace:
configure.ac:334: -1- AM_XGETTEXT_OPTION([--flag=argp_failure:4:c-format])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_btowc], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^DOUBLE_SLASH_IS_DISTINCT_ROOT$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^DOUBLE_SLASH_IS_DISTINCT_ROOT$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^INCLUDE_NEXT_AS_FIRST_DIRECTIVE$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_errno_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^NEXT_AS_FIRST_DIRECTIVE_ERRNO_H$])
2N/Am4trace:
configure.ac:334: -1- AC_COMPUTE_INT([gl_cv_header_errno_h_EMULTIHOP], [EMULTIHOP], [
2N/A#define _XOPEN_SOURCE_EXTENDED 1
2N/A/* The following two lines are a workaround against an autoconf-2.52 bug. */
2N/Am4trace:
configure.ac:334: -1- AC_COMPUTE_INT([gl_cv_header_errno_h_ENOLINK], [ENOLINK], [
2N/A#define _XOPEN_SOURCE_EXTENDED 1
2N/A/* The following two lines are a workaround against an autoconf-2.52 bug. */
2N/Am4trace:
configure.ac:334: -1- AC_COMPUTE_INT([gl_cv_header_errno_h_EOVERFLOW], [EOVERFLOW], [
2N/A#define _XOPEN_SOURCE_EXTENDED 1
2N/A/* The following two lines are a workaround against an autoconf-2.52 bug. */
2N/Am4trace:
configure.ac:334: -1- AM_XGETTEXT_OPTION([--flag=error_at_line:5:c-format])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_float_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^NEXT_AS_FIRST_DIRECTIVE_FLOAT_H$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_btowc], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_isblank], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_iswctype], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_mbsrtowcs], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_mempcpy], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_wmemchr], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_wmemcpy], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_wmempcpy], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_wctype_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^GNULIB_OBSTACK_PRINTF_POSIX$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_DECL_OBSTACK_PRINTF$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^REPLACE_STDIO_WRITE_FUNCS$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Check_Decl_getdelim], [AC_CHECK_DECLS(m4_defn([AC_Symbol]))])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_getdelim], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Check_Decl_getline], [AC_CHECK_DECLS(m4_defn([AC_Symbol]))])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Check_Decl_getdelim], [AC_CHECK_DECLS(m4_defn([AC_Symbol]))])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_getdelim], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^UNISTD_H_HAVE_WINSOCK2_H$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_getopt_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^NEXT_AS_FIRST_DIRECTIVE_GETOPT_H$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_getopt_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Check_Decl_getenv], [AC_CHECK_DECLS(m4_defn([AC_Symbol]))])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Check_Decl_getenv], [AC_CHECK_DECLS(m4_defn([AC_Symbol]))])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_langinfo_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_langinfo_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_LANGINFO_T_FMT_AMPM$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Check_Decl_getc_unlocked], [AC_CHECK_DECLS(m4_defn([AC_Symbol]))])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^LOCALCHARSET_TESTS_ENVIRONMENT$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^GNULIB_CANONICALIZE_FILE_NAME$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_CANONICALIZE_FILE_NAME$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^REPLACE_CANONICALIZE_FILE_NAME$])
2N/Am4trace:
configure.ac:334: -1- gl_MODULE_INDICATOR_SET_VARIABLE([malloc-posix])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^GNULIB_TEST_MALLOC_POSIX$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_mbsinit], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_mbrtowc], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_mbrtowc], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_mbsinit], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_mbrtowc], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_mbsinit], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_mbsinit], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_mbrtowc], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_mbsrtowcs], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_sys_mman_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_mprotect], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_memchr], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^AA_APPLE_UNIVERSAL_BUILD$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_nl_langinfo], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- gl_MODULE_INDICATOR_SET_VARIABLE([nl_langinfo])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_DECL_PROGRAM_INVOCATION_NAME$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_DECL_PROGRAM_INVOCATION_NAME$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME$])
2N/Am4trace:
configure.ac:334: -1- gl_MODULE_INDICATOR_SET_VARIABLE([realloc-posix])
2N/Am4trace:
configure.ac:334: -1- gl_MODULE_INDICATOR_FOR_TESTS([realloc-posix])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^GNULIB_TEST_REALLOC_POSIX$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_locale_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_isblank], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_iswctype], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_wcscoll], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_COMPUTE_INT([size_t_bits_minus_1], [sizeof (size_t) * CHAR_BIT - 1], [#include <
stddef.h>
2N/Am4trace:
configure.ac:334: -1- AC_COMPUTE_INT([fits_in_uint], [sizeof (size_t) <= sizeof (unsigned int)], [#include <
stddef.h>], [fits_in_uint=])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_sleep], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_stddef_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^NEXT_AS_FIRST_DIRECTIVE_STDDEF_H$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_UNSIGNED_LONG_LONG_INT$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_UNSIGNED_LONG_LONG_INT$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_stdint_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^NEXT_AS_FIRST_DIRECTIVE_STDINT_H$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_wchar_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- gl_STDINT_BITSIZEOF([ptrdiff_t size_t], [gl_STDINT_INCLUDES])
2N/Am4trace:
configure.ac:334: -1- AC_COMPUTE_INT([result], [sizeof ($gltype) * CHAR_BIT], [gl_STDINT_INCLUDES
2N/Am4trace:
configure.ac:334: -1- gl_STDINT_BITSIZEOF([sig_atomic_t wchar_t wint_t], [gl_STDINT_INCLUDES])
2N/Am4trace:
configure.ac:334: -1- AC_COMPUTE_INT([result], [sizeof ($gltype) * CHAR_BIT], [gl_STDINT_INCLUDES
2N/Am4trace:
configure.ac:334: -1- gl_CHECK_TYPES_SIGNED([sig_atomic_t wchar_t wint_t], [gl_STDINT_INCLUDES])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_SIGNED_SIG_ATOMIC_T$])
2N/Am4trace:
configure.ac:334: -1- gl_INTEGER_TYPE_SUFFIX([ptrdiff_t size_t], [gl_STDINT_INCLUDES])
2N/Am4trace:
configure.ac:334: -1- gl_INTEGER_TYPE_SUFFIX([sig_atomic_t wchar_t wint_t], [gl_STDINT_INCLUDES])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_stdio_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^NEXT_AS_FIRST_DIRECTIVE_STDIO_H$])
2N/A ]], [dprintf fpurge fseeko ftello getdelim getline popen renameat
2N/A snprintf tmpfile vdprintf vsnprintf])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_stdlib_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^NEXT_AS_FIRST_DIRECTIVE_STDLIB_H$])
2N/A#if HAVE_SYS_LOADAVG_H
2N/A ]], [_Exit atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp
2N/A mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r
2N/A setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_sys_socket_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_string_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^NEXT_AS_FIRST_DIRECTIVE_STRING_H$])
2N/A ]], [memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup
2N/A strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_strings_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^NEXT_AS_FIRST_DIRECTIVE_STRINGS_H$])
2N/A ]], [strcasecmp strncasecmp])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Check_Decl_strndup], [AC_CHECK_DECLS(m4_defn([AC_Symbol]))])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_strndup], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Check_Decl_strnlen], [AC_CHECK_DECLS(m4_defn([AC_Symbol]))])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_sys_wait_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_sysexits_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_sysexits_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_unistd_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^NEXT_AS_FIRST_DIRECTIVE_UNISTD_H$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_unistd_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/A/* Some systems declare various items in the wrong headers. */
2N/A# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
2N/A ]], [chown dup2 dup3 environ euidaccess faccessat fchdir fchownat
2N/A fsync ftruncate getcwd getdomainname getdtablesize getgroups
2N/A gethostname getlogin getlogin_r getpagesize getusershell setusershell
2N/A endusershell lchown link linkat lseek pipe2 pread pwrite readlink
2N/A readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_vasnprintf], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_vasnprintf], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_INTTYPES_H_WITH_UINTMAX$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_STDINT_H_WITH_UINTMAX$])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^HAVE_SNPRINTF_RETVAL_C99$])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Check_Decl_vsnprintf], [AC_CHECK_DECLS(m4_defn([AC_Symbol]))])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_wchar_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_wchar_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^NEXT_AS_FIRST_DIRECTIVE_WCHAR_H$])
2N/A/* Some systems require additional headers. */
2N/A ]], [btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb
2N/A wcsrtombs wcsnrtombs wcwidth])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_mbsinit], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_mbrtowc], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_wcrtomb], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_iswcntrl], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Func_iswblank], [m4_divert_text([INIT_PREPARE],
2N/A [ac_func_list="$ac_func_list AC_Func"])
2N/A _AC_FUNCS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Check_Decl_iswblank], [AC_CHECK_DECLS(m4_defn([AC_Symbol]))])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_wctype_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- AC_DEFUN([_AC_Header_wctype_h], [m4_divert_text([INIT_PREPARE],
2N/A [ac_header_list="$ac_header_list AC_Header"])
2N/A _AC_HEADERS_EXPANSION])
2N/Am4trace:
configure.ac:334: -1- m4_pattern_allow([^NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H$])
2N/Am4trace:
configure.ac:447: -1- AM_CONDITIONAL([COND_ld_Solaris], [test x$grub_cv_solaris_linker = xyes])
2N/Am4trace:
configure.ac:1074: -1- m4_pattern_allow([^GRUB_BOOT_MACHINE_LINK_ADDR$])
2N/Am4trace:
configure.ac:1086: -1- m4_pattern_allow([^NEED_ENABLE_EXECUTE_STACK$])
2N/Am4trace:
configure.ac:1087: -1- m4_pattern_allow([^NEED_REGISTER_FRAME_INFO$])
2N/Am4trace:
configure.ac:1093: -1- AM_CONDITIONAL([COND_emu], [test x$platform = xemu])
2N/Am4trace:
configure.ac:1094: -1- AM_CONDITIONAL([COND_i386_pc], [test x$target_cpu = xi386 -a x$platform = xpc])
2N/Am4trace:
configure.ac:1095: -1- AM_CONDITIONAL([COND_i386_efi], [test x$target_cpu = xi386 -a x$platform = xefi])
2N/Am4trace:
configure.ac:1096: -1- AM_CONDITIONAL([COND_ia64_efi], [test x$target_cpu = xia64 -a x$platform = xefi])
2N/Am4trace:
configure.ac:1097: -1- AM_CONDITIONAL([COND_i386_qemu], [test x$target_cpu = xi386 -a x$platform = xqemu])
2N/Am4trace:
configure.ac:1098: -1- AM_CONDITIONAL([COND_i386_ieee1275], [test x$target_cpu = xi386 -a x$platform = xieee1275])
2N/Am4trace:
configure.ac:1098: -1- m4_pattern_allow([^COND_i386_ieee1275_TRUE$])
2N/Am4trace:
configure.ac:1098: -1- m4_pattern_allow([^COND_i386_ieee1275_FALSE$])
2N/Am4trace:
configure.ac:1098: -1- _AM_SUBST_NOTMAKE([COND_i386_ieee1275_FALSE])
2N/Am4trace:
configure.ac:1099: -1- AM_CONDITIONAL([COND_i386_coreboot], [test x$target_cpu = xi386 -a x$platform = xcoreboot])
2N/Am4trace:
configure.ac:1099: -1- m4_pattern_allow([^COND_i386_coreboot_TRUE$])
2N/Am4trace:
configure.ac:1099: -1- m4_pattern_allow([^COND_i386_coreboot_FALSE$])
2N/Am4trace:
configure.ac:1099: -1- _AM_SUBST_NOTMAKE([COND_i386_coreboot_FALSE])
2N/Am4trace:
configure.ac:1100: -1- AM_CONDITIONAL([COND_i386_multiboot], [test x$target_cpu = xi386 -a x$platform = xmultiboot])
2N/Am4trace:
configure.ac:1100: -1- m4_pattern_allow([^COND_i386_multiboot_TRUE$])
2N/Am4trace:
configure.ac:1100: -1- m4_pattern_allow([^COND_i386_multiboot_FALSE$])
2N/Am4trace:
configure.ac:1100: -1- _AM_SUBST_NOTMAKE([COND_i386_multiboot_TRUE])
2N/Am4trace:
configure.ac:1100: -1- _AM_SUBST_NOTMAKE([COND_i386_multiboot_FALSE])
2N/Am4trace:
configure.ac:1101: -1- AM_CONDITIONAL([COND_x86_64_efi], [test x$target_cpu = xx86_64 -a x$platform = xefi])
2N/Am4trace:
configure.ac:1102: -1- AM_CONDITIONAL([COND_mips_loongson], [test x$target_cpu = xmipsel -a x$platform = xloongson])
2N/Am4trace:
configure.ac:1102: -1- m4_pattern_allow([^COND_mips_loongson_TRUE$])
2N/Am4trace:
configure.ac:1102: -1- m4_pattern_allow([^COND_mips_loongson_FALSE$])
2N/Am4trace:
configure.ac:1102: -1- _AM_SUBST_NOTMAKE([COND_mips_loongson_FALSE])
2N/Am4trace:
configure.ac:1103: -1- AM_CONDITIONAL([COND_mips_qemu_mips], [test "(" x$target_cpu = xmips -o x$target_cpu = xmipsel ")" -a x$platform = xqemu_mips])
2N/Am4trace:
configure.ac:1103: -1- m4_pattern_allow([^COND_mips_qemu_mips_TRUE$])
2N/Am4trace:
configure.ac:1103: -1- m4_pattern_allow([^COND_mips_qemu_mips_FALSE$])
2N/Am4trace:
configure.ac:1103: -1- _AM_SUBST_NOTMAKE([COND_mips_qemu_mips_TRUE])
2N/Am4trace:
configure.ac:1103: -1- _AM_SUBST_NOTMAKE([COND_mips_qemu_mips_FALSE])
2N/Am4trace:
configure.ac:1104: -1- AM_CONDITIONAL([COND_mips_arc], [test x$target_cpu = xmips -a x$platform = xarc])
2N/Am4trace:
configure.ac:1105: -1- AM_CONDITIONAL([COND_sparc64_ieee1275], [test x$target_cpu = xsparc64 -a x$platform = xieee1275])
2N/Am4trace:
configure.ac:1105: -1- m4_pattern_allow([^COND_sparc64_ieee1275_TRUE$])
2N/Am4trace:
configure.ac:1105: -1- m4_pattern_allow([^COND_sparc64_ieee1275_FALSE$])
2N/Am4trace:
configure.ac:1105: -1- _AM_SUBST_NOTMAKE([COND_sparc64_ieee1275_TRUE])
2N/Am4trace:
configure.ac:1105: -1- _AM_SUBST_NOTMAKE([COND_sparc64_ieee1275_FALSE])
2N/Am4trace:
configure.ac:1106: -1- AM_CONDITIONAL([COND_powerpc_ieee1275], [test x$target_cpu = xpowerpc -a x$platform = xieee1275])
2N/Am4trace:
configure.ac:1106: -1- m4_pattern_allow([^COND_powerpc_ieee1275_TRUE$])
2N/Am4trace:
configure.ac:1106: -1- m4_pattern_allow([^COND_powerpc_ieee1275_FALSE$])
2N/Am4trace:
configure.ac:1106: -1- _AM_SUBST_NOTMAKE([COND_powerpc_ieee1275_TRUE])
2N/Am4trace:
configure.ac:1106: -1- _AM_SUBST_NOTMAKE([COND_powerpc_ieee1275_FALSE])
2N/Am4trace:
configure.ac:1107: -1- AM_CONDITIONAL([COND_mips], [test x$target_cpu = xmips -o x$target_cpu = xmipsel])
2N/Am4trace:
configure.ac:1109: -1- AM_CONDITIONAL([COND_HOST_HURD], [test x$host_kernel = xhurd])
2N/Am4trace:
configure.ac:1110: -1- AM_CONDITIONAL([COND_HOST_LINUX], [test x$host_kernel = xlinux])
2N/Am4trace:
configure.ac:1111: -1- AM_CONDITIONAL([COND_HOST_NETBSD], [test x$host_kernel = xnetbsd])
2N/Am4trace:
configure.ac:1112: -1- AM_CONDITIONAL([COND_HOST_WINDOWS], [test x$host_kernel = xwindows])
2N/Am4trace:
configure.ac:1112: -1- m4_pattern_allow([^COND_HOST_WINDOWS_FALSE$])
2N/Am4trace:
configure.ac:1113: -1- AM_CONDITIONAL([COND_HOST_KFREEBSD], [test x$host_kernel = xkfreebsd])
2N/Am4trace:
configure.ac:1113: -1- m4_pattern_allow([^COND_HOST_KFREEBSD_TRUE$])
2N/Am4trace:
configure.ac:1113: -1- m4_pattern_allow([^COND_HOST_KFREEBSD_FALSE$])
2N/Am4trace:
configure.ac:1113: -1- _AM_SUBST_NOTMAKE([COND_HOST_KFREEBSD_FALSE])
2N/Am4trace:
configure.ac:1114: -1- AM_CONDITIONAL([COND_HOST_SOLARIS], [test x$host_kernel = xsolaris])
2N/Am4trace:
configure.ac:1114: -1- m4_pattern_allow([^COND_HOST_SOLARIS_FALSE$])
2N/Am4trace:
configure.ac:1115: -1- AM_CONDITIONAL([COND_HOST_ILLUMOS], [test x$host_kernel = xillumos])
2N/Am4trace:
configure.ac:1115: -1- m4_pattern_allow([^COND_HOST_ILLUMOS_FALSE$])
2N/Am4trace:
configure.ac:1117: -1- AM_CONDITIONAL([COND_MAN_PAGES], [test x$cross_compiling = xno -a x$HELP2MAN != x])
2N/Am4trace:
configure.ac:1118: -1- AM_CONDITIONAL([COND_GRUB_EMU_USB], [test x$enable_grub_emu_usb = xyes])
2N/Am4trace:
configure.ac:1118: -1- m4_pattern_allow([^COND_GRUB_EMU_USB_FALSE$])
2N/Am4trace:
configure.ac:1119: -1- AM_CONDITIONAL([COND_GRUB_EMU_SDL], [test x$enable_grub_emu_sdl = xyes])
2N/Am4trace:
configure.ac:1119: -1- m4_pattern_allow([^COND_GRUB_EMU_SDL_FALSE$])
2N/Am4trace:
configure.ac:1120: -1- AM_CONDITIONAL([COND_GRUB_EMU_PCI], [test x$enable_grub_emu_pci = xyes])
2N/Am4trace:
configure.ac:1120: -1- m4_pattern_allow([^COND_GRUB_EMU_PCI_FALSE$])
2N/Am4trace:
configure.ac:1121: -1- AM_CONDITIONAL([COND_GRUB_MKFONT], [test x$enable_grub_mkfont = xyes])
2N/Am4trace:
configure.ac:1122: -1- AM_CONDITIONAL([COND_GRUB_MOUNT], [test x$enable_grub_mount = xyes])
2N/Am4trace:
configure.ac:1123: -1- AM_CONDITIONAL([COND_HAVE_FONT_SOURCE], [test x$FONT_SOURCE != x])
2N/Am4trace:
configure.ac:1123: -1- m4_pattern_allow([^COND_HAVE_FONT_SOURCE_TRUE$])
2N/Am4trace:
configure.ac:1123: -1- m4_pattern_allow([^COND_HAVE_FONT_SOURCE_FALSE$])
2N/Am4trace:
configure.ac:1123: -1- _AM_SUBST_NOTMAKE([COND_HAVE_FONT_SOURCE_TRUE])
2N/Am4trace:
configure.ac:1123: -1- _AM_SUBST_NOTMAKE([COND_HAVE_FONT_SOURCE_FALSE])
2N/Am4trace:
configure.ac:1124: -1- AM_CONDITIONAL([COND_GRUB_PE2ELF], [test x$TARGET_OBJ2ELF != x])
2N/Am4trace:
configure.ac:1125: -1- AM_CONDITIONAL([COND_APPLE_CC], [test x$TARGET_APPLE_CC = x1])
2N/Am4trace:
configure.ac:1126: -1- AM_CONDITIONAL([COND_ENABLE_EFIEMU], [test x$enable_efiemu = xyes])
2N/Am4trace:
configure.ac:1126: -1- m4_pattern_allow([^COND_ENABLE_EFIEMU_TRUE$])
2N/Am4trace:
configure.ac:1126: -1- m4_pattern_allow([^COND_ENABLE_EFIEMU_FALSE$])
2N/Am4trace:
configure.ac:1126: -1- _AM_SUBST_NOTMAKE([COND_ENABLE_EFIEMU_FALSE])
2N/Am4trace:
configure.ac:1127: -1- AM_CONDITIONAL([COND_ENABLE_CACHE_STATS], [test x$DISK_CACHE_STATS = x1])
2N/Am4trace:
configure.ac:1127: -1- m4_pattern_allow([^COND_ENABLE_CACHE_STATS_TRUE$])
2N/Am4trace:
configure.ac:1127: -1- m4_pattern_allow([^COND_ENABLE_CACHE_STATS_FALSE$])
2N/Am4trace:
configure.ac:1127: -1- _AM_SUBST_NOTMAKE([COND_ENABLE_CACHE_STATS_TRUE])
2N/Am4trace:
configure.ac:1127: -1- _AM_SUBST_NOTMAKE([COND_ENABLE_CACHE_STATS_FALSE])
2N/Am4trace:
configure.ac:1129: -1- AM_CONDITIONAL([COND_HAVE_ASM_USCORE], [test x$HAVE_ASM_USCORE = x1])
2N/Am4trace:
configure.ac:1129: -1- m4_pattern_allow([^COND_HAVE_ASM_USCORE_TRUE$])
2N/Am4trace:
configure.ac:1129: -1- m4_pattern_allow([^COND_HAVE_ASM_USCORE_FALSE$])
2N/Am4trace:
configure.ac:1129: -1- _AM_SUBST_NOTMAKE([COND_HAVE_ASM_USCORE_TRUE])
2N/Am4trace:
configure.ac:1129: -1- _AM_SUBST_NOTMAKE([COND_HAVE_ASM_USCORE_FALSE])
2N/Am4trace:
configure.ac:1130: -1- AM_CONDITIONAL([COND_CYGWIN], [test x$host_os = xcygwin])