1 m4trace:/usr/share/aclocal-1.16/amversion.m4:14: -1- AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.16'
2 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
3 dnl require some minimum version. Point them to the right macro.
4 m4_if([$1], [1.16.5], [],
5 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
7 m4trace:/usr/share/aclocal-1.16/amversion.m4:33: -1- AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.16.5])dnl
8 m4_ifndef([AC_AUTOCONF_VERSION],
9 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
10 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
11 m4trace:/usr/share/aclocal-1.16/auxdir.m4:47: -1- AC_DEFUN([AM_AUX_DIR_EXPAND], [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
12 # Expand $ac_aux_dir to an absolute path.
13 am_aux_dir=`cd "$ac_aux_dir" && pwd`
15 m4trace:/usr/share/aclocal-1.16/cond.m4:12: -1- AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ([2.52])dnl
16 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
17 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
18 AC_SUBST([$1_TRUE])dnl
19 AC_SUBST([$1_FALSE])dnl
20 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
21 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
22 m4_define([_AM_COND_VALUE_$1], [$2])dnl
30 AC_CONFIG_COMMANDS_PRE(
31 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
32 AC_MSG_ERROR([[conditional "$1" was never defined.
33 Usually this means the macro was only invoked conditionally.]])
35 m4trace:/usr/share/aclocal-1.16/depend.m4:26: -1- AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl
36 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
37 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
38 AC_REQUIRE([AM_DEP_TRACK])dnl
40 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
41 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
42 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
43 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
44 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
45 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
46 [depcc="$$1" am_compiler_list=])
48 AC_CACHE_CHECK([dependency style of $depcc],
49 [am_cv_$1_dependencies_compiler_type],
50 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
51 # We make a subdir and do the tests there. Otherwise we can end up
52 # making bogus files that we don't know about and never remove. For
53 # instance it was reported that on HP-UX the gcc test will end up
54 # making a dummy file named 'D' -- because '-MD' means "put the output
58 # Copy depcomp to subdir because otherwise we won't find it if we're
59 # using a relative directory.
60 cp "$am_depcomp" conftest.dir
62 # We will build objects and dependencies in a subdirectory because
63 # it helps to detect inapplicable dependency modes. For instance
64 # both Tru64's cc and ICC support -MD to output dependencies as a
65 # side effect of compilation, but ICC will put the dependencies in
66 # the current directory while Tru64 will put them in the object
70 am_cv_$1_dependencies_compiler_type=none
71 if test "$am_compiler_list" = ""; then
72 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
76 [case " $depcc " in #(
77 *\ -arch\ *\ -arch\ *) am__universal=true ;;
80 [case " $depcc " in #(
81 *\ -arch\ *\ -arch\ *) am__universal=true ;;
84 for depmode in $am_compiler_list; do
85 # Setup a source with many dependencies, because some compilers
86 # like to wrap large dependency lists on column 80 (with \), and
87 # we should not choose a depcomp mode which is confused by this.
89 # We need to recreate these files for each test, as the compiler may
90 # overwrite some of them when testing with obscure command lines.
91 # This happens at least with the AIX C compiler.
93 for i in 1 2 3 4 5 6; do
94 echo '#include "conftst'$i'.h"' >> sub/conftest.c
95 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
97 echo '/* dummy */' > sub/conftst$i.h
99 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
101 # We check with '-c' and '-o' for the sake of the "dashmstdout"
102 # mode. It turns out that the SunPro C++ compiler does not properly
103 # handle '-M -o', and we need to detect this. Also, some Intel
104 # versions had trouble with output in subdirs.
105 am__obj=sub/conftest.${OBJEXT-o}
106 am__minus_obj="-o $am__obj"
109 # This depmode causes a compiler race in universal mode.
110 test "$am__universal" = false || continue
113 # After this tag, mechanisms are not by side-effect, so they'll
114 # only be used when explicitly requested.
115 if test "x$enable_dependency_tracking" = xyes; then
121 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
122 # This compiler won't grok '-c -o', but also, the minuso test has
123 # not run yet. These depmodes are late enough in the game, and
124 # so weak that their functioning should not be impacted.
125 am__obj=conftest.${OBJEXT-o}
130 if depmode=$depmode \
131 source=sub/conftest.c object=$am__obj \
132 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
133 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
134 >/dev/null 2>conftest.err &&
135 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
136 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
137 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
138 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
139 # icc doesn't choke on unknown options, it will just issue warnings
140 # or remarks (even with -Werror). So we grep stderr for any message
141 # that says an option was ignored or not supported.
142 # When given -MP, icc 7.0 and 7.1 complain thusly:
143 # icc: Command line warning: ignoring option '-M'; no argument required
144 # The diagnosis changed in icc 8.0:
145 # icc: Command line remark: option '-MP' not supported
146 if (grep 'ignoring option' conftest.err ||
147 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
148 am_cv_$1_dependencies_compiler_type=$depmode
157 am_cv_$1_dependencies_compiler_type=none
160 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
161 AM_CONDITIONAL([am__fastdep$1], [
162 test "x$enable_dependency_tracking" != xno \
163 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
165 m4trace:/usr/share/aclocal-1.16/depend.m4:163: -1- AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
166 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
168 m4trace:/usr/share/aclocal-1.16/depend.m4:171: -1- AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE([dependency-tracking], [dnl
170 [--enable-dependency-tracking],
171 [do not reject slow dependency extractors])
173 [--disable-dependency-tracking],
174 [speeds up one-time build])])
175 if test "x$enable_dependency_tracking" != xno; then
176 am_depcomp="$ac_aux_dir/depcomp"
180 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
181 AC_SUBST([AMDEPBACKSLASH])dnl
182 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
183 AC_SUBST([am__nodep])dnl
184 _AM_SUBST_NOTMAKE([am__nodep])dnl
186 m4trace:/usr/share/aclocal-1.16/depout.m4:11: -1- AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{
187 # Older Autoconf quotes --file arguments for eval, but not when files
188 # are listed without --file. Let's play safe and only enable the eval
189 # if we detect the quoting.
190 # TODO: see whether this extra hack can be removed once we start
191 # requiring Autoconf 2.70 or later.
192 AS_CASE([$CONFIG_FILES],
193 [*\'*], [eval set x "$CONFIG_FILES"],
194 [*], [set x $CONFIG_FILES])
196 # Used to flag and report bootstrapping failures.
200 # Strip MF so we end up with the name of the file.
201 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
202 # Check whether this is an Automake generated Makefile which includes
203 # dependency-tracking related rules and includes.
204 # Grep'ing the whole file directly is not great: AIX grep has a line
205 # limit of 2048, but all sed's we know have understand at least 4000.
206 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
208 am_dirpart=`AS_DIRNAME(["$am_mf"])`
209 am_filepart=`AS_BASENAME(["$am_mf"])`
210 AM_RUN_LOG([cd "$am_dirpart" \
211 && sed -e '/# am--include-marker/d' "$am_filepart" \
212 | $MAKE -f - am--depfiles]) || am_rc=$?
214 if test $am_rc -ne 0; then
215 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
216 for automatic dependency tracking. If GNU make was not used, consider
217 re-running the configure script with MAKE="gmake" (or whatever is
218 necessary). You can also try re-running configure with the
219 '--disable-dependency-tracking' option to at least be able to build
220 the package (albeit without support for automatic dependency tracking).])
222 AS_UNSET([am_dirpart])
223 AS_UNSET([am_filepart])
226 rm -f conftest-deps.mk
229 m4trace:/usr/share/aclocal-1.16/depout.m4:64: -1- AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles],
230 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
231 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
232 m4trace:/usr/share/aclocal-1.16/init.m4:29: -1- AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.65])dnl
233 m4_ifdef([_$0_ALREADY_INIT],
234 [m4_fatal([$0 expanded multiple times
235 ]m4_defn([_$0_ALREADY_INIT]))],
236 [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
237 dnl Autoconf wants to disallow AM_ names. We explicitly allow
238 dnl the ones we care about.
239 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
240 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
241 AC_REQUIRE([AC_PROG_INSTALL])dnl
242 if test "`cd $srcdir && pwd`" != "`pwd`"; then
243 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
244 # is not polluted with repeated "-I."
245 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
246 # test to see if srcdir already configured
247 if test -f $srcdir/config.status; then
248 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
252 # test whether we have cygpath
253 if test -z "$CYGPATH_W"; then
254 if (cygpath --version) >/dev/null 2>/dev/null; then
255 CYGPATH_W='cygpath -w'
260 AC_SUBST([CYGPATH_W])
262 # Define the identity of the package.
263 dnl Distinguish between old-style and new-style calls.
265 [AC_DIAGNOSE([obsolete],
266 [$0: two- and three-arguments forms are deprecated.])
267 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
268 AC_SUBST([PACKAGE], [$1])dnl
269 AC_SUBST([VERSION], [$2])],
270 [_AM_SET_OPTIONS([$1])dnl
271 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
273 m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
275 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
276 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
277 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
279 _AM_IF_OPTION([no-define],,
280 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
281 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
283 # Some tools Automake needs.
284 AC_REQUIRE([AM_SANITY_CHECK])dnl
285 AC_REQUIRE([AC_ARG_PROGRAM])dnl
286 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
287 AM_MISSING_PROG([AUTOCONF], [autoconf])
288 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
289 AM_MISSING_PROG([AUTOHEADER], [autoheader])
290 AM_MISSING_PROG([MAKEINFO], [makeinfo])
291 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
292 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
293 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
294 # For better backward compatibility. To be removed once Automake 1.9.x
295 # dies out for good. For more background, see:
296 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
297 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
298 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
299 # We need awk for the "check" target (and possibly the TAP driver). The
300 # system "awk" is bad on some platforms.
301 AC_REQUIRE([AC_PROG_AWK])dnl
302 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
303 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
304 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
305 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
306 [_AM_PROG_TAR([v7])])])
307 _AM_IF_OPTION([no-dependencies],,
308 [AC_PROVIDE_IFELSE([AC_PROG_CC],
309 [_AM_DEPENDENCIES([CC])],
310 [m4_define([AC_PROG_CC],
311 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
312 AC_PROVIDE_IFELSE([AC_PROG_CXX],
313 [_AM_DEPENDENCIES([CXX])],
314 [m4_define([AC_PROG_CXX],
315 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
316 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
317 [_AM_DEPENDENCIES([OBJC])],
318 [m4_define([AC_PROG_OBJC],
319 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
320 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
321 [_AM_DEPENDENCIES([OBJCXX])],
322 [m4_define([AC_PROG_OBJCXX],
323 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
325 # Variables for tags utilities; see am/tags.am
326 if test -z "$CTAGS"; then
330 if test -z "$ETAGS"; then
334 if test -z "$CSCOPE"; then
339 AC_REQUIRE([AM_SILENT_RULES])dnl
340 dnl The testsuite driver may need to know about EXEEXT, so add the
341 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
342 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
343 AC_CONFIG_COMMANDS_PRE(dnl
344 [m4_provide_if([_AM_COMPILER_EXEEXT],
345 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
347 # POSIX will say in a future version that running "rm -f" with no argument
348 # is OK; and we want to be able to make that assumption in our Makefile
349 # recipes. So use an aggressive probe to check that the usage we want is
350 # actually supported "in the wild" to an acceptable degree.
351 # See automake bug#10828.
352 # To make any issue more visible, cause the running configure to be aborted
353 # by default if the 'rm' program in use doesn't match our expectations; the
354 # user can still override this though.
355 if rm -f && rm -fr && rm -rf; then : OK; else
359 Your 'rm' program seems unable to run without file operands specified
360 on the command line, even when the '-f' option is present. This is contrary
361 to the behaviour of most rm programs out there, and not conforming with
362 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
364 Please tell bug-automake@gnu.org about your system, including the value
365 of your $PATH and any error possibly output before this message. This
366 can help us improve future automake versions.
369 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
370 echo 'Configuration will proceed anyway, since you have set the' >&2
371 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
375 Aborting the configuration process, to ensure you take notice of the issue.
377 You can download and install GNU coreutils to get an 'rm' implementation
378 that behaves properly: <https://www.gnu.org/software/coreutils/>.
380 If you want to complete the configuration process using your problematic
381 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
382 to "yes", and re-run configure.
385 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
388 dnl The trailing newline in this macro's definition is deliberate, for
389 dnl backward compatibility and to allow trailing 'dnl'-style comments
390 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
392 m4trace:/usr/share/aclocal-1.16/init.m4:204: -1- AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers.
395 for _am_header in $config_headers :; do
397 $_am_arg | $_am_arg:* )
400 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
403 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
404 m4trace:/usr/share/aclocal-1.16/install-sh.m4:11: -1- AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
405 if test x"${install_sh+set}" != xset; then
408 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
410 install_sh="\${SHELL} $am_aux_dir/install-sh"
413 AC_SUBST([install_sh])])
414 m4trace:/usr/share/aclocal-1.16/lead-dot.m4:10: -1- AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null
415 mkdir .tst 2>/dev/null
416 if test -d .tst; then
421 rmdir .tst 2>/dev/null
422 AC_SUBST([am__leading_dot])])
423 m4trace:/usr/share/aclocal-1.16/lex.m4:13: -1- AC_DEFUN([AM_PROG_LEX], [AC_PREREQ([2.50])dnl
424 AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
425 AC_REQUIRE([AC_PROG_LEX])dnl
426 if test "$LEX" = :; then
427 LEX=${am_missing_run}flex
429 m4trace:/usr/share/aclocal-1.16/make.m4:13: -1- AC_DEFUN([AM_MAKE_INCLUDE], [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
430 cat > confinc.mk << 'END'
432 @echo this is the am__doit target >confinc.out
437 # BSD make does it like this.
438 echo '.include "confinc.mk" # ignored' > confmf.BSD
439 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
440 echo 'include confinc.mk # ignored' > confmf.GNU
443 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
444 AS_CASE([$?:`cat confinc.out 2>/dev/null`],
445 ['0:this is the am__doit target'],
447 [BSD], [am__include='.include' am__quote='"'],
448 [am__include='include' am__quote=''])])
449 if test "$am__include" != "#"; then
450 _am_result="yes ($s style)"
454 rm -f confinc.* confmf.*
455 AC_MSG_RESULT([${_am_result}])
456 AC_SUBST([am__include])])
457 m4trace:/usr/share/aclocal-1.16/make.m4:42: -1- m4_pattern_allow([^am__quote$])
458 m4trace:/usr/share/aclocal-1.16/missing.m4:11: -1- AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN])
459 $1=${$1-"${am_missing_run}$2"}
461 m4trace:/usr/share/aclocal-1.16/missing.m4:20: -1- AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
462 AC_REQUIRE_AUX_FILE([missing])dnl
463 if test x"${MISSING+set}" != xset; then
464 MISSING="\${SHELL} '$am_aux_dir/missing'"
466 # Use eval to expand $SHELL
467 if eval "$MISSING --is-lightweight"; then
468 am_missing_run="$MISSING "
471 AC_MSG_WARN(['missing' script is too old or missing])
474 m4trace:/usr/share/aclocal-1.16/options.m4:11: -1- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
475 m4trace:/usr/share/aclocal-1.16/options.m4:17: -1- AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
476 m4trace:/usr/share/aclocal-1.16/options.m4:23: -1- AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
477 m4trace:/usr/share/aclocal-1.16/options.m4:29: -1- AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
478 m4trace:/usr/share/aclocal-1.16/prog-cc-c-o.m4:12: -1- AC_DEFUN([_AM_PROG_CC_C_O], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
479 AC_REQUIRE_AUX_FILE([compile])dnl
482 [whether $CC understands -c and -o together],
484 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
485 # Make sure it works both with $CC and with simple cc.
486 # Following AC_PROG_CC_C_O, we do the test twice because some
487 # compilers refuse to overwrite an existing .o file with -o,
488 # though they will create one.
489 am_cv_prog_cc_c_o=yes
491 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
492 && test -f conftest2.$ac_objext; then
501 if test "$am_cv_prog_cc_c_o" != yes; then
502 # Losing compiler, so override with the script.
503 # FIXME: It is wrong to rewrite CC.
504 # But if we don't then we get into trouble of one sort or another.
505 # A longer-term fix would be to have automake use am__CC in this case,
506 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
507 CC="$am_aux_dir/compile $CC"
510 m4trace:/usr/share/aclocal-1.16/prog-cc-c-o.m4:47: -1- AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
511 m4trace:/usr/share/aclocal-1.16/runlog.m4:12: -1- AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
512 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
514 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
515 (exit $ac_status); }])
516 m4trace:/usr/share/aclocal-1.16/sanity.m4:11: -1- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane])
517 # Reject unsafe characters in $srcdir or the absolute working directory
518 # name. Accept space and tab only in the latter.
522 *[[\\\"\#\$\&\'\`$am_lf]]*)
523 AC_MSG_ERROR([unsafe absolute working directory name]);;
526 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
527 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
530 # Do 'set' in a subshell so we don't clobber the current shell's
531 # arguments. Must try -L first in case configure is actually a
532 # symlink; some systems play weird games with the mod time of symlinks
533 # (eg FreeBSD returns the mod time of the symlink's containing
537 for am_try in 1 2; do
538 echo "timestamp, slept: $am_has_slept" > conftest.file
539 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
540 if test "$[*]" = "X"; then
542 set X `ls -t "$srcdir/configure" conftest.file`
544 if test "$[*]" != "X $srcdir/configure conftest.file" \
545 && test "$[*]" != "X conftest.file $srcdir/configure"; then
547 # If neither matched, then we have a broken ls. This can happen
548 # if, for instance, CONFIG_SHELL is bash and it inherits a
549 # broken ls alias from the environment. This has actually
550 # happened. Such a system could not be considered "sane".
551 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
552 alias in your environment])
554 if test "$[2]" = conftest.file || test $am_try -eq 2; then
561 test "$[2]" = conftest.file
567 AC_MSG_ERROR([newly created file is older than distributed files!
568 Check your system clock])
571 # If we didn't sleep, we still need to ensure time stamps of config.status and
572 # generated files are strictly newer.
574 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
578 AC_CONFIG_COMMANDS_PRE(
579 [AC_MSG_CHECKING([that generated files are newer than configure])
580 if test -n "$am_sleep_pid"; then
581 # Hide warnings about reused PIDs.
582 wait $am_sleep_pid 2>/dev/null
584 AC_MSG_RESULT([done])])
587 m4trace:/usr/share/aclocal-1.16/silent.m4:12: -1- AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], [dnl
589 [--enable-silent-rules],
590 [less verbose build output (undo: "make V=1")])
592 [--disable-silent-rules],
593 [verbose build output (undo: "make V=0")])dnl
595 case $enable_silent_rules in @%:@ (((
596 yes) AM_DEFAULT_VERBOSITY=0;;
597 no) AM_DEFAULT_VERBOSITY=1;;
598 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
601 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
602 dnl do not support nested variable expansions.
603 dnl See automake bug#9928 and bug#10237.
605 AC_CACHE_CHECK([whether $am_make supports nested variables],
606 [am_cv_make_support_nested_variables],
607 [if AS_ECHO([['TRUE=$(BAR$(V))
613 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
614 am_cv_make_support_nested_variables=yes
616 am_cv_make_support_nested_variables=no
618 if test $am_cv_make_support_nested_variables = yes; then
619 dnl Using '$V' instead of '$(V)' breaks IRIX make.
621 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
623 AM_V=$AM_DEFAULT_VERBOSITY
624 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
627 AM_SUBST_NOTMAKE([AM_V])dnl
628 AC_SUBST([AM_DEFAULT_V])dnl
629 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
630 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
632 AC_SUBST([AM_BACKSLASH])dnl
633 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
635 m4trace:/usr/share/aclocal-1.16/strip.m4:17: -1- AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
636 # Installed binaries are usually stripped using 'strip' when the user
637 # run "make install-strip". However 'strip' might not be the right
638 # tool to use in cross-compilation environments, therefore Automake
639 # will honor the 'STRIP' environment variable to overrule this program.
640 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
641 if test "$cross_compiling" != no; then
642 AC_CHECK_TOOL([STRIP], [strip], :)
644 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
645 AC_SUBST([INSTALL_STRIP_PROGRAM])])
646 m4trace:/usr/share/aclocal-1.16/substnot.m4:12: -1- AC_DEFUN([_AM_SUBST_NOTMAKE])
647 m4trace:/usr/share/aclocal-1.16/substnot.m4:17: -1- AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
648 m4trace:/usr/share/aclocal-1.16/tar.m4:23: -1- AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used
649 # in the wild :-( We should find a proper way to deprecate it ...
650 AC_SUBST([AMTAR], ['$${TAR-tar}'])
652 # We'll loop over all known methods to create a tar archive until one works.
653 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
656 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
660 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
661 # There is notably a 21 bits limit for the UID and the GID. In fact,
662 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
664 am_max_uid=2097151 # 2^21 - 1
665 am_max_gid=$am_max_uid
666 # The $UID and $GID variables are not portable, so we need to resort
667 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
668 # below are definitely unexpected, so allow the users to see them
669 # (that is, avoid stderr redirection).
670 am_uid=`id -u || echo unknown`
671 am_gid=`id -g || echo unknown`
672 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
673 if test $am_uid -le $am_max_uid; then
679 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
680 if test $am_gid -le $am_max_gid; then
690 [m4_fatal([Unknown tar format])])
692 AC_MSG_CHECKING([how to create a $1 tar archive])
694 # Go ahead even if we have the value already cached. We do so because we
695 # need to set the values for the 'am__tar' and 'am__untar' variables.
696 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
698 for _am_tool in $_am_tools; do
701 for _am_tar in tar gnutar gtar; do
702 AM_RUN_LOG([$_am_tar --version]) && break
704 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
705 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
706 am__untar="$_am_tar -xf -"
709 # Must skip GNU tar: if it does not support --format= it doesn't create
710 # ustar tarball either.
711 (tar --version) >/dev/null 2>&1 && continue
712 am__tar='tar chf - "$$tardir"'
713 am__tar_='tar chf - "$tardir"'
717 am__tar='pax -L -x $1 -w "$$tardir"'
718 am__tar_='pax -L -x $1 -w "$tardir"'
722 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
723 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
724 am__untar='cpio -i -H $1 -d'
733 # If the value was cached, stop now. We just wanted to have am__tar
735 test -n "${am_cv_prog_tar_$1}" && break
737 # tar/untar a dummy directory, and stop if the command works.
740 echo GrepMe > conftest.dir/file
741 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
743 if test -s conftest.tar; then
744 AM_RUN_LOG([$am__untar <conftest.tar])
745 AM_RUN_LOG([cat conftest.dir/file])
746 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
751 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
752 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
755 AC_SUBST([am__untar])
757 m4trace:m4/gettext.m4:55: -1- AC_DEFUN([AM_GNU_GETTEXT], [
758 dnl Argument checking.
759 m4_if([$1], [], , [m4_if([$1], [external], , [m4_if([$1], [use-libtool], ,
760 [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
762 m4_if(m4_if([$1], [], [old])[]m4_if([$1], [no-libtool], [old]), [old],
763 [errprint([ERROR: Use of AM_GNU_GETTEXT without [external] argument is no longer supported.
765 m4_if([$2], [], , [m4_if([$2], [need-ngettext], , [m4_if([$2], [need-formatstring-macros], ,
766 [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
768 define([gt_included_intl],
769 m4_if([$1], [external], [no], [yes]))
771 AM_GNU_GETTEXT_NEED([$2])
773 AC_REQUIRE([AM_PO_SUBDIRS])dnl
774 m4_if(gt_included_intl, yes, [
775 AC_REQUIRE([AM_INTL_SUBDIR])dnl
778 dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
779 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
780 AC_REQUIRE([AC_LIB_RPATH])
782 dnl Sometimes libintl requires libiconv, so first search for libiconv.
783 dnl Ideally we would do this search only after the
784 dnl if test "$USE_NLS" = "yes"; then
785 dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
786 dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
787 dnl the configure script would need to contain the same shell code
788 dnl again, outside any 'if'. There are two solutions:
789 dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
790 dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
791 dnl Since AC_PROVIDE_IFELSE is not documented, we avoid it.
792 m4_if(gt_included_intl, yes, , [
793 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
796 dnl Sometimes, on Mac OS X, libintl requires linking with CoreFoundation.
802 m4_if(gt_included_intl, yes, [
803 BUILD_INCLUDED_LIBINTL=no
804 USE_INCLUDED_LIBINTL=no
810 dnl Add a version number to the cache macros.
811 case " $gt_needs " in
812 *" need-formatstring-macros "*) gt_api_version=3 ;;
813 *" need-ngettext "*) gt_api_version=2 ;;
814 *) gt_api_version=1 ;;
816 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
817 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
819 dnl If we use NLS figure out what method
820 if test "$USE_NLS" = "yes"; then
821 gt_use_preinstalled_gnugettext=no
822 m4_if(gt_included_intl, yes, [
823 AC_MSG_CHECKING([whether included gettext is requested])
824 AC_ARG_WITH([included-gettext],
825 [ --with-included-gettext use the GNU gettext library included here],
826 nls_cv_force_use_gnu_gettext=$withval,
827 nls_cv_force_use_gnu_gettext=no)
828 AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext])
830 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
831 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
833 dnl User does not insist on using GNU NLS library. Figure out what
834 dnl to use. If GNU gettext is available we use this. Else we have
835 dnl to fall back to GNU NLS library.
837 if test $gt_api_version -ge 3; then
838 gt_revision_test_code='
839 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
840 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
843 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
847 gt_revision_test_code=
849 if test $gt_api_version -ge 2; then
850 gt_expression_test_code=' + * ngettext ("", "", 0)'
852 gt_expression_test_code=
855 AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc],
860 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
861 extern int _nl_msg_cat_cntr;
862 extern int *_nl_domain_bindings;
863 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
865 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
867 $gt_revision_test_code
870 bindtextdomain ("", "");
871 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
873 [eval "$gt_func_gnugettext_libc=yes"],
874 [eval "$gt_func_gnugettext_libc=no"])])
876 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
877 dnl Sometimes libintl requires libiconv, so first search for libiconv.
878 m4_if(gt_included_intl, yes, , [
881 dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
882 dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
883 dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
884 dnl even if libiconv doesn't exist.
885 AC_LIB_LINKFLAGS_BODY([intl])
886 AC_CACHE_CHECK([for GNU gettext in libintl],
887 [$gt_func_gnugettext_libintl],
888 [gt_save_CPPFLAGS="$CPPFLAGS"
889 CPPFLAGS="$CPPFLAGS $INCINTL"
891 LIBS="$LIBS $LIBINTL"
892 dnl Now see whether libintl exists and does not depend on libiconv.
897 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
898 extern int _nl_msg_cat_cntr;
903 const char *_nl_expand_alias (const char *);
904 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
906 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
908 $gt_revision_test_code
911 bindtextdomain ("", "");
912 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
914 [eval "$gt_func_gnugettext_libintl=yes"],
915 [eval "$gt_func_gnugettext_libintl=no"])
916 dnl Now see whether libintl exists and depends on libiconv.
917 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
918 LIBS="$LIBS $LIBICONV"
923 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
924 extern int _nl_msg_cat_cntr;
929 const char *_nl_expand_alias (const char *);
930 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
932 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
934 $gt_revision_test_code
937 bindtextdomain ("", "");
938 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
940 [LIBINTL="$LIBINTL $LIBICONV"
941 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
942 eval "$gt_func_gnugettext_libintl=yes"
945 CPPFLAGS="$gt_save_CPPFLAGS"
946 LIBS="$gt_save_LIBS"])
949 dnl If an already present or preinstalled GNU gettext() is found,
950 dnl use it. But if this macro is used in GNU gettext, and GNU
951 dnl gettext is already preinstalled in libintl, we update this
952 dnl libintl. (Cf. the install rule in intl/Makefile.in.)
953 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
954 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
955 && test "$PACKAGE" != gettext-runtime \
956 && test "$PACKAGE" != gettext-tools; }; then
957 gt_use_preinstalled_gnugettext=yes
959 dnl Reset the values set by searching for libintl.
965 m4_if(gt_included_intl, yes, [
966 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
967 dnl GNU gettext is not found in the C library.
968 dnl Fall back on included GNU gettext library.
969 nls_cv_use_gnu_gettext=yes
973 if test "$nls_cv_use_gnu_gettext" = "yes"; then
974 dnl Mark actions used to generate GNU NLS library.
975 BUILD_INCLUDED_LIBINTL=yes
976 USE_INCLUDED_LIBINTL=yes
977 LIBINTL="m4_if([$3],[],\${top_builddir}/intl,[$3])/libintl.la $LIBICONV $LIBTHREAD"
978 LTLIBINTL="m4_if([$3],[],\${top_builddir}/intl,[$3])/libintl.la $LTLIBICONV $LTLIBTHREAD"
979 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
983 if test "$gt_use_preinstalled_gnugettext" = "yes" \
984 || test "$nls_cv_use_gnu_gettext" = "yes"; then
985 dnl Mark actions to use GNU gettext tools.
990 if test -n "$INTL_MACOSX_LIBS"; then
991 if test "$gt_use_preinstalled_gnugettext" = "yes" \
992 || test "$nls_cv_use_gnu_gettext" = "yes"; then
993 dnl Some extra flags are needed during linking.
994 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
995 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
999 if test "$gt_use_preinstalled_gnugettext" = "yes" \
1000 || test "$nls_cv_use_gnu_gettext" = "yes"; then
1001 AC_DEFINE([ENABLE_NLS], [1],
1002 [Define to 1 if translation of program messages to the user's native language
1009 AC_MSG_CHECKING([whether to use NLS])
1010 AC_MSG_RESULT([$USE_NLS])
1011 if test "$USE_NLS" = "yes"; then
1012 AC_MSG_CHECKING([where the gettext function comes from])
1013 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
1014 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
1015 gt_source="external libintl"
1020 gt_source="included intl directory"
1022 AC_MSG_RESULT([$gt_source])
1025 if test "$USE_NLS" = "yes"; then
1027 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
1028 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
1029 AC_MSG_CHECKING([how to link with libintl])
1030 AC_MSG_RESULT([$LIBINTL])
1031 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
1034 dnl For backward compatibility. Some packages may be using this.
1035 AC_DEFINE([HAVE_GETTEXT], [1],
1036 [Define if the GNU gettext() function is already present or preinstalled.])
1037 AC_DEFINE([HAVE_DCGETTEXT], [1],
1038 [Define if the GNU dcgettext() function is already present or preinstalled.])
1041 dnl We need to process the po/ directory.
1045 m4_if(gt_included_intl, yes, [
1046 dnl In GNU gettext we have to set BUILD_INCLUDED_LIBINTL to 'yes'
1047 dnl because some of the testsuite requires it.
1048 BUILD_INCLUDED_LIBINTL=yes
1050 dnl Make all variables we use known to autoconf.
1051 AC_SUBST([BUILD_INCLUDED_LIBINTL])
1052 AC_SUBST([USE_INCLUDED_LIBINTL])
1053 AC_SUBST([CATOBJEXT])
1056 dnl For backward compatibility. Some Makefiles may be using this.
1058 AC_SUBST([INTLLIBS])
1060 dnl Make all documented variables known to autoconf.
1062 AC_SUBST([LTLIBINTL])
1065 m4trace:m4/gettext.m4:375: -1- AC_DEFUN([AM_GNU_GETTEXT_NEED], [
1066 m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"])
1068 m4trace:m4/gettext.m4:382: -1- AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
1069 m4trace:m4/gettext.m4:386: -1- AC_DEFUN([AM_GNU_GETTEXT_REQUIRE_VERSION], [])
1070 m4trace:m4/host-cpu-c-abi.m4:50: -1- AC_DEFUN([gl_HOST_CPU_C_ABI], [
1071 AC_REQUIRE([AC_CANONICAL_HOST])
1072 AC_REQUIRE([gl_C_ASM])
1073 AC_CACHE_CHECK([host CPU and C ABI], [gl_cv_host_cpu_c_abi],
1074 [case "$host_cpu" in
1079 gl_cv_host_cpu_c_abi=i386
1083 # On x86_64 systems, the C compiler may be generating code in one of
1085 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
1086 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
1087 # with native Windows (mingw, MSVC).
1088 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
1089 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
1092 [[#if (defined __x86_64__ || defined __amd64__ \
1093 || defined _M_X64 || defined _M_AMD64)
1101 [[#if defined __ILP32__ || defined _ILP32
1107 [gl_cv_host_cpu_c_abi=x86_64-x32],
1108 [gl_cv_host_cpu_c_abi=x86_64])],
1109 [gl_cv_host_cpu_c_abi=i386])
1113 alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] )
1115 gl_cv_host_cpu_c_abi=alpha
1119 # Assume arm with EABI.
1120 # On arm64 systems, the C compiler may be generating code in one of
1122 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
1123 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
1124 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
1127 [[#ifdef __aarch64__
1135 [[#if defined __ILP32__ || defined _ILP32
1141 [gl_cv_host_cpu_c_abi=arm64-ilp32],
1142 [gl_cv_host_cpu_c_abi=arm64])],
1143 [# Don't distinguish little-endian and big-endian arm, since they
1144 # don't require different machine code for simple operations and
1145 # since the user can distinguish them through the preprocessor
1146 # defines __ARMEL__ vs. __ARMEB__.
1147 # But distinguish arm which passes floating-point arguments and
1148 # return values in integer registers (r0, r1, ...) - this is
1149 # gcc -mfloat-abi=soft or gcc -mfloat-abi=softfp - from arm which
1150 # passes them in float registers (s0, s1, ...) and double registers
1151 # (d0, d1, ...) - this is gcc -mfloat-abi=hard. GCC 4.6 or newer
1152 # sets the preprocessor defines __ARM_PCS (for the first case) and
1153 # __ARM_PCS_VFP (for the second case), but older GCC does not.
1154 echo 'double ddd; void func (double dd) { ddd = dd; }' > conftest.c
1155 # Look for a reference to the register d0 in the .s file.
1156 AC_TRY_COMMAND(${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c) >/dev/null 2>&1
1157 if LC_ALL=C grep 'd0,' conftest.$gl_asmext >/dev/null; then
1158 gl_cv_host_cpu_c_abi=armhf
1160 gl_cv_host_cpu_c_abi=arm
1166 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
1167 # On hppa, the C compiler may be generating 32-bit code or 64-bit
1168 # code. In the latter case, it defines _LP64 and __LP64__.
1177 [gl_cv_host_cpu_c_abi=hppa64],
1178 [gl_cv_host_cpu_c_abi=hppa])
1182 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
1183 # 32-bit code. In the latter case, it defines _ILP32.
1192 [gl_cv_host_cpu_c_abi=ia64-ilp32],
1193 [gl_cv_host_cpu_c_abi=ia64])
1197 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
1201 [[#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
1207 [gl_cv_host_cpu_c_abi=mips64],
1208 [# In the n32 ABI, _ABIN32 is defined, _ABIO32 is not defined (but
1209 # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIN32.
1210 # In the 32 ABI, _ABIO32 is defined, _ABIN32 is not defined (but
1211 # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIO32.
1214 [[#if (_MIPS_SIM == _ABIN32)
1220 [gl_cv_host_cpu_c_abi=mipsn32],
1221 [gl_cv_host_cpu_c_abi=mips])])
1225 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
1226 # No need to distinguish them here; the caller may distinguish
1227 # them based on the OS.
1228 # On powerpc64 systems, the C compiler may still be generating
1229 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
1230 # be generating 64-bit code.
1233 [[#if defined __powerpc64__ || defined __LP64__
1239 [# On powerpc64, there are two ABIs on Linux: The AIX compatible
1240 # one and the ELFv2 one. The latter defines _CALL_ELF=2.
1243 [[#if defined _CALL_ELF && _CALL_ELF == 2
1249 [gl_cv_host_cpu_c_abi=powerpc64-elfv2],
1250 [gl_cv_host_cpu_c_abi=powerpc64])
1252 [gl_cv_host_cpu_c_abi=powerpc])
1256 gl_cv_host_cpu_c_abi=powerpc
1260 # There are 2 architectures (with variants): rv32* and rv64*.
1263 [[#if __riscv_xlen == 64
1271 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
1272 # Size of 'long' and 'void *':
1275 [[#if defined __LP64__
1284 # __riscv_float_abi_double:
1285 # 'float' and 'double' are passed in floating-point registers.
1286 # __riscv_float_abi_single:
1287 # 'float' are passed in floating-point registers.
1288 # __riscv_float_abi_soft:
1289 # No values are passed in floating-point registers.
1292 [[#if defined __riscv_float_abi_double
1301 [[#if defined __riscv_float_abi_single
1310 gl_cv_host_cpu_c_abi="${cpu}-${main_abi}${float_abi}"
1314 # On s390x, the C compiler may be generating 64-bit (= s390x) code
1315 # or 31-bit (= s390) code.
1318 [[#if defined __LP64__ || defined __s390x__
1324 [gl_cv_host_cpu_c_abi=s390x],
1325 [gl_cv_host_cpu_c_abi=s390])
1329 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
1330 # C compiler still generates 32-bit code.
1333 [[#if defined __sparcv9 || defined __arch64__
1339 [gl_cv_host_cpu_c_abi=sparc64],
1340 [gl_cv_host_cpu_c_abi=sparc])
1344 gl_cv_host_cpu_c_abi="$host_cpu"
1349 dnl In most cases, $HOST_CPU and $HOST_CPU_C_ABI are the same.
1350 HOST_CPU=`echo "$gl_cv_host_cpu_c_abi" | sed -e 's/-.*//'`
1351 HOST_CPU_C_ABI="$gl_cv_host_cpu_c_abi"
1352 AC_SUBST([HOST_CPU])
1353 AC_SUBST([HOST_CPU_C_ABI])
1356 # AC_DEFINE_UNQUOTED([__${HOST_CPU}__])
1357 # AC_DEFINE_UNQUOTED([__${HOST_CPU_C_ABI}__])
1358 # earlier, but KAI C++ 3.2d doesn't like this.
1359 sed -e 's/-/_/g' >> confdefs.h <<EOF
1360 #ifndef __${HOST_CPU}__
1361 #define __${HOST_CPU}__ 1
1363 #ifndef __${HOST_CPU_C_ABI}__
1364 #define __${HOST_CPU_C_ABI}__ 1
1367 AH_TOP([/* CPU and C ABI indicator */
1371 #ifndef __x86_64_x32__
1372 #undef __x86_64_x32__
1386 #ifndef __arm64_ilp32__
1387 #undef __arm64_ilp32__
1398 #ifndef __ia64_ilp32__
1399 #undef __ia64_ilp32__
1404 #ifndef __loongarch64__
1405 #undef __loongarch64__
1422 #ifndef __powerpc64__
1423 #undef __powerpc64__
1425 #ifndef __powerpc64_elfv2__
1426 #undef __powerpc64_elfv2__
1434 #ifndef __riscv32_ilp32__
1435 #undef __riscv32_ilp32__
1437 #ifndef __riscv32_ilp32f__
1438 #undef __riscv32_ilp32f__
1440 #ifndef __riscv32_ilp32d__
1441 #undef __riscv32_ilp32d__
1443 #ifndef __riscv64_ilp32__
1444 #undef __riscv64_ilp32__
1446 #ifndef __riscv64_ilp32f__
1447 #undef __riscv64_ilp32f__
1449 #ifndef __riscv64_ilp32d__
1450 #undef __riscv64_ilp32d__
1452 #ifndef __riscv64_lp64__
1453 #undef __riscv64_lp64__
1455 #ifndef __riscv64_lp64f__
1456 #undef __riscv64_lp64f__
1458 #ifndef __riscv64_lp64d__
1459 #undef __riscv64_lp64d__
1479 m4trace:m4/host-cpu-c-abi.m4:466: -1- AC_DEFUN([gl_HOST_CPU_C_ABI_32BIT], [
1480 AC_REQUIRE([AC_CANONICAL_HOST])
1481 AC_CACHE_CHECK([32-bit host C ABI], [gl_cv_host_cpu_c_abi_32bit],
1482 [if test -n "$gl_cv_host_cpu_c_abi"; then
1483 case "$gl_cv_host_cpu_c_abi" in
1484 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
1485 gl_cv_host_cpu_c_abi_32bit=yes ;;
1486 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
1487 gl_cv_host_cpu_c_abi_32bit=no ;;
1489 gl_cv_host_cpu_c_abi_32bit=unknown ;;
1494 # CPUs that only support a 32-bit ABI.
1503 | microblaze | microblazeel \
1504 | nds32 | nds32le | nds32be \
1505 | nios2 | nios2eb | nios2el \
1508 | sh | sh[1234] | sh[1234]e[lb] \
1511 gl_cv_host_cpu_c_abi_32bit=yes
1514 # CPUs that only support a 64-bit ABI.
1516 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
1519 gl_cv_host_cpu_c_abi_32bit=no
1525 gl_cv_host_cpu_c_abi_32bit=yes
1529 # On x86_64 systems, the C compiler may be generating code in one of
1531 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
1532 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
1533 # with native Windows (mingw, MSVC).
1534 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
1535 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
1538 [[#if (defined __x86_64__ || defined __amd64__ \
1539 || defined _M_X64 || defined _M_AMD64) \
1540 && !(defined __ILP32__ || defined _ILP32)
1546 [gl_cv_host_cpu_c_abi_32bit=no],
1547 [gl_cv_host_cpu_c_abi_32bit=yes])
1551 # Assume arm with EABI.
1552 # On arm64 systems, the C compiler may be generating code in one of
1554 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
1555 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
1556 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
1559 [[#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
1565 [gl_cv_host_cpu_c_abi_32bit=no],
1566 [gl_cv_host_cpu_c_abi_32bit=yes])
1569 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
1570 # On hppa, the C compiler may be generating 32-bit code or 64-bit
1571 # code. In the latter case, it defines _LP64 and __LP64__.
1580 [gl_cv_host_cpu_c_abi_32bit=no],
1581 [gl_cv_host_cpu_c_abi_32bit=yes])
1585 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
1586 # 32-bit code. In the latter case, it defines _ILP32.
1595 [gl_cv_host_cpu_c_abi_32bit=yes],
1596 [gl_cv_host_cpu_c_abi_32bit=no])
1600 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
1604 [[#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
1610 [gl_cv_host_cpu_c_abi_32bit=no],
1611 [gl_cv_host_cpu_c_abi_32bit=yes])
1615 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
1616 # No need to distinguish them here; the caller may distinguish
1617 # them based on the OS.
1618 # On powerpc64 systems, the C compiler may still be generating
1619 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
1620 # be generating 64-bit code.
1623 [[#if defined __powerpc64__ || defined __LP64__
1629 [gl_cv_host_cpu_c_abi_32bit=no],
1630 [gl_cv_host_cpu_c_abi_32bit=yes])
1634 gl_cv_host_cpu_c_abi_32bit=yes
1638 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
1639 # Size of 'long' and 'void *':
1642 [[#if defined __LP64__
1648 [gl_cv_host_cpu_c_abi_32bit=no],
1649 [gl_cv_host_cpu_c_abi_32bit=yes])
1653 # On s390x, the C compiler may be generating 64-bit (= s390x) code
1654 # or 31-bit (= s390) code.
1657 [[#if defined __LP64__ || defined __s390x__
1663 [gl_cv_host_cpu_c_abi_32bit=no],
1664 [gl_cv_host_cpu_c_abi_32bit=yes])
1668 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
1669 # C compiler still generates 32-bit code.
1672 [[#if defined __sparcv9 || defined __arch64__
1678 [gl_cv_host_cpu_c_abi_32bit=no],
1679 [gl_cv_host_cpu_c_abi_32bit=yes])
1683 gl_cv_host_cpu_c_abi_32bit=unknown
1689 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
1691 m4trace:m4/iconv.m4:16: -1- AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], [
1692 dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
1693 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
1694 AC_REQUIRE([AC_LIB_RPATH])
1696 dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
1698 AC_LIB_LINKFLAGS_BODY([iconv])
1700 m4trace:m4/iconv.m4:27: -1- AC_DEFUN([AM_ICONV_LINK], [
1701 dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
1702 dnl those with the standalone portable GNU libiconv installed).
1703 AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
1705 dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
1707 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
1709 dnl Add $INCICONV to CPPFLAGS before performing the following checks,
1710 dnl because if the user has installed libiconv and not disabled its use
1711 dnl via --without-libiconv-prefix, he wants to use it. The first
1712 dnl AC_LINK_IFELSE will then fail, the second AC_LINK_IFELSE will succeed.
1713 am_save_CPPFLAGS="$CPPFLAGS"
1714 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
1716 AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [
1717 am_cv_func_iconv="no, consider installing GNU libiconv"
1725 [[iconv_t cd = iconv_open("","");
1726 iconv(cd,NULL,NULL,NULL,NULL);
1727 iconv_close(cd);]])],
1728 [am_cv_func_iconv=yes])
1729 if test "$am_cv_func_iconv" != yes; then
1730 am_save_LIBS="$LIBS"
1731 LIBS="$LIBS $LIBICONV"
1738 [[iconv_t cd = iconv_open("","");
1739 iconv(cd,NULL,NULL,NULL,NULL);
1740 iconv_close(cd);]])],
1741 [am_cv_lib_iconv=yes]
1742 [am_cv_func_iconv=yes])
1743 LIBS="$am_save_LIBS"
1746 if test "$am_cv_func_iconv" = yes; then
1747 AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [
1748 dnl This tests against bugs in AIX 5.1, AIX 6.1..7.1, HP-UX 11.11,
1750 am_save_LIBS="$LIBS"
1751 if test $am_cv_lib_iconv = yes; then
1752 LIBS="$LIBS $LIBICONV"
1754 am_cv_func_iconv_works=no
1755 for ac_iconv_const in '' 'const'; do
1763 # define ICONV_CONST $ac_iconv_const
1767 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
1768 successful returns. This is even documented in
1769 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
1771 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
1772 if (cd_utf8_to_88591 != (iconv_t)(-1))
1774 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
1776 ICONV_CONST char *inptr = input;
1777 size_t inbytesleft = strlen (input);
1779 size_t outbytesleft = sizeof (buf);
1780 size_t res = iconv (cd_utf8_to_88591,
1781 &inptr, &inbytesleft,
1782 &outptr, &outbytesleft);
1785 iconv_close (cd_utf8_to_88591);
1788 /* Test against Solaris 10 bug: Failures are not distinguishable from
1789 successful returns. */
1791 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
1792 if (cd_ascii_to_88591 != (iconv_t)(-1))
1794 static ICONV_CONST char input[] = "\263";
1796 ICONV_CONST char *inptr = input;
1797 size_t inbytesleft = strlen (input);
1799 size_t outbytesleft = sizeof (buf);
1800 size_t res = iconv (cd_ascii_to_88591,
1801 &inptr, &inbytesleft,
1802 &outptr, &outbytesleft);
1805 iconv_close (cd_ascii_to_88591);
1808 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
1810 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
1811 if (cd_88591_to_utf8 != (iconv_t)(-1))
1813 static ICONV_CONST char input[] = "\304";
1814 static char buf[2] = { (char)0xDE, (char)0xAD };
1815 ICONV_CONST char *inptr = input;
1816 size_t inbytesleft = 1;
1818 size_t outbytesleft = 1;
1819 size_t res = iconv (cd_88591_to_utf8,
1820 &inptr, &inbytesleft,
1821 &outptr, &outbytesleft);
1822 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
1824 iconv_close (cd_88591_to_utf8);
1827 #if 0 /* This bug could be worked around by the caller. */
1828 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
1830 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
1831 if (cd_88591_to_utf8 != (iconv_t)(-1))
1833 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
1835 ICONV_CONST char *inptr = input;
1836 size_t inbytesleft = strlen (input);
1838 size_t outbytesleft = sizeof (buf);
1839 size_t res = iconv (cd_88591_to_utf8,
1840 &inptr, &inbytesleft,
1841 &outptr, &outbytesleft);
1844 iconv_close (cd_88591_to_utf8);
1848 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
1851 /* Try standardized names. */
1852 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
1853 /* Try IRIX, OSF/1 names. */
1854 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
1855 /* Try AIX names. */
1856 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
1857 /* Try HP-UX names. */
1858 iconv_t cd4 = iconv_open ("utf8", "eucJP");
1859 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
1860 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
1862 if (cd1 != (iconv_t)(-1))
1864 if (cd2 != (iconv_t)(-1))
1866 if (cd3 != (iconv_t)(-1))
1868 if (cd4 != (iconv_t)(-1))
1873 [am_cv_func_iconv_works=yes], ,
1875 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
1876 *) am_cv_func_iconv_works="guessing yes" ;;
1878 test "$am_cv_func_iconv_works" = no || break
1880 LIBS="$am_save_LIBS"
1882 case "$am_cv_func_iconv_works" in
1883 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
1884 *) am_func_iconv=yes ;;
1887 am_func_iconv=no am_cv_lib_iconv=no
1889 if test "$am_func_iconv" = yes; then
1890 AC_DEFINE([HAVE_ICONV], [1],
1891 [Define if you have the iconv() function and it works.])
1893 if test "$am_cv_lib_iconv" = yes; then
1894 AC_MSG_CHECKING([how to link with libiconv])
1895 AC_MSG_RESULT([$LIBICONV])
1897 dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
1899 CPPFLAGS="$am_save_CPPFLAGS"
1903 AC_SUBST([LIBICONV])
1904 AC_SUBST([LTLIBICONV])
1906 m4trace:m4/iconv.m4:243: -1- AC_DEFUN_ONCE([AM_ICONV], [
1908 if test "$am_cv_func_iconv" = yes; then
1909 AC_CACHE_CHECK([whether iconv is compatible with its POSIX signature],
1910 [gl_cv_iconv_nonconst],
1920 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
1923 [gl_cv_iconv_nonconst=yes],
1924 [gl_cv_iconv_nonconst=no])
1927 dnl When compiling GNU libiconv on a system that does not have iconv yet,
1928 dnl pick the POSIX compliant declaration without 'const'.
1929 gl_cv_iconv_nonconst=yes
1931 if test $gl_cv_iconv_nonconst = yes; then
1936 AC_DEFINE_UNQUOTED([ICONV_CONST], [$iconv_arg1],
1937 [Define as const if the declaration of iconv() needs const.])
1938 dnl Also substitute ICONV_CONST in the gnulib generated <iconv.h>.
1939 m4_ifdef([gl_ICONV_H_DEFAULTS],
1940 [AC_REQUIRE([gl_ICONV_H_DEFAULTS])
1941 if test $gl_cv_iconv_nonconst != yes; then
1946 m4trace:m4/intlmacosx.m4:18: -1- AC_DEFUN([gt_INTL_MACOSX], [
1947 dnl Check for API introduced in Mac OS X 10.4.
1948 AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
1949 [gt_cv_func_CFPreferencesCopyAppValue],
1950 [gt_save_LIBS="$LIBS"
1951 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
1954 [[#include <CoreFoundation/CFPreferences.h>]],
1955 [[CFPreferencesCopyAppValue(NULL, NULL)]])],
1956 [gt_cv_func_CFPreferencesCopyAppValue=yes],
1957 [gt_cv_func_CFPreferencesCopyAppValue=no])
1958 LIBS="$gt_save_LIBS"])
1959 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
1960 AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1],
1961 [Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
1963 dnl Don't check for the API introduced in Mac OS X 10.5, CFLocaleCopyCurrent,
1964 dnl because in macOS 10.13.4 it has the following behaviour:
1965 dnl When two or more languages are specified in the
1966 dnl "System Preferences > Language & Region > Preferred Languages" panel,
1967 dnl it returns en_CC where CC is the territory (even when English is not among
1968 dnl the preferred languages!). What we want instead is what
1969 dnl CFLocaleCopyCurrent returned in earlier macOS releases and what
1970 dnl CFPreferencesCopyAppValue still returns, namely ll_CC where ll is the
1971 dnl first among the preferred languages and CC is the territory.
1972 AC_CACHE_CHECK([for CFLocaleCopyPreferredLanguages], [gt_cv_func_CFLocaleCopyPreferredLanguages],
1973 [gt_save_LIBS="$LIBS"
1974 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
1977 [[#include <CoreFoundation/CFLocale.h>]],
1978 [[CFLocaleCopyPreferredLanguages();]])],
1979 [gt_cv_func_CFLocaleCopyPreferredLanguages=yes],
1980 [gt_cv_func_CFLocaleCopyPreferredLanguages=no])
1981 LIBS="$gt_save_LIBS"])
1982 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
1983 AC_DEFINE([HAVE_CFLOCALECOPYPREFERREDLANGUAGES], [1],
1984 [Define to 1 if you have the Mac OS X function CFLocaleCopyPreferredLanguages in the CoreFoundation framework.])
1987 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
1988 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
1989 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
1991 AC_SUBST([INTL_MACOSX_LIBS])
1993 m4trace: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],
1994 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
1995 case `$LD -v 2>&1 </dev/null` in
1996 *GNU* | *'with BFD'*)
1997 acl_cv_prog_gnu_ld=yes
2000 acl_cv_prog_gnu_ld=no
2003 with_gnu_ld=$acl_cv_prog_gnu_ld
2005 m4trace:m4/lib-ld.m4:27: -1- AC_DEFUN([AC_LIB_PROG_LD], [AC_REQUIRE([AC_PROG_CC])dnl
2006 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2008 AC_ARG_WITH([gnu-ld],
2009 [AS_HELP_STRING([--with-gnu-ld],
2010 [assume the C compiler uses GNU ld [default=no]])],
2011 [test "$withval" = no || with_gnu_ld=yes],
2012 [with_gnu_ld=no])dnl
2014 # Prepare PATH_SEPARATOR.
2015 # The user is always right.
2016 if test "${PATH_SEPARATOR+set}" != set; then
2017 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
2018 # contains only /bin. Note that ksh looks also at the FPATH variable,
2019 # so we have to set that as well for the test.
2021 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
2022 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
2023 || PATH_SEPARATOR=';'
2027 if test -n "$LD"; then
2028 AC_MSG_CHECKING([for ld])
2029 elif test "$GCC" = yes; then
2030 AC_MSG_CHECKING([for ld used by $CC])
2031 elif test "$with_gnu_ld" = yes; then
2032 AC_MSG_CHECKING([for GNU ld])
2034 AC_MSG_CHECKING([for non-GNU ld])
2036 if test -n "$LD"; then
2037 # Let the user override the test with a path.
2040 AC_CACHE_VAL([acl_cv_path_LD],
2042 acl_cv_path_LD= # Final result of this test
2043 ac_prog=ld # Program to search in $PATH
2044 if test "$GCC" = yes; then
2045 # Check if gcc -print-prog-name=ld gives a path.
2048 # gcc leaves a trailing carriage return which upsets mingw
2049 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2051 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
2054 # Accept absolute paths.
2055 [[\\/]]* | ?:[[\\/]]*)
2056 re_direlt='/[[^/]][[^/]]*/\.\./'
2057 # Canonicalize the pathname of ld
2058 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
2059 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
2060 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
2062 # Got the pathname. No search in PATH is needed.
2063 acl_cv_path_LD="$acl_output"
2067 # If it fails, then pretend we aren't using GCC.
2070 # If it is relative, then search for the first ld in PATH.
2075 if test -n "$ac_prog"; then
2076 # Search for $ac_prog in $PATH.
2077 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2078 for ac_dir in $PATH; do
2080 test -z "$ac_dir" && ac_dir=.
2081 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2082 acl_cv_path_LD="$ac_dir/$ac_prog"
2083 # Check to see if the program is GNU ld. I'd rather use --version,
2084 # but apparently some variants of GNU ld only accept -v.
2085 # Break only if it was the GNU/non-GNU ld that we prefer.
2086 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
2087 *GNU* | *'with BFD'*)
2088 test "$with_gnu_ld" != no && break
2091 test "$with_gnu_ld" != yes && break
2102 [[#if defined __powerpc64__ || defined __LP64__
2108 [# The compiler produces 64-bit code. Add option '-b64' so that the
2109 # linker groks 64-bit object files.
2110 case "$acl_cv_path_LD " in
2112 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
2119 [[#if defined __sparcv9 || defined __arch64__
2126 [# The compiler produces 32-bit code. Add option '-m elf32_sparc'
2127 # so that the linker groks 32-bit object files.
2128 case "$acl_cv_path_LD " in
2129 *" -m elf32_sparc "*) ;;
2130 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
2136 LD="$acl_cv_path_LD"
2138 if test -n "$LD"; then
2139 AC_MSG_RESULT([$LD])
2142 AC_MSG_ERROR([no acceptable ld found in \$PATH])
2146 m4trace:m4/lib-link.m4:17: -1- AC_DEFUN([AC_LIB_LINKFLAGS], [
2147 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
2148 AC_REQUIRE([AC_LIB_RPATH])
2149 pushdef([Name],[m4_translit([$1],[./+-], [____])])
2150 pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
2151 [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
2152 AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
2153 AC_LIB_LINKFLAGS_BODY([$1], [$2])
2154 ac_cv_lib[]Name[]_libs="$LIB[]NAME"
2155 ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
2156 ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
2157 ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX"
2159 LIB[]NAME="$ac_cv_lib[]Name[]_libs"
2160 LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
2161 INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
2162 LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix"
2163 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
2165 AC_SUBST([LTLIB]NAME)
2166 AC_SUBST([LIB]NAME[_PREFIX])
2167 dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
2168 dnl results of this search when this library appears as a dependency.
2173 m4trace:m4/lib-link.m4:57: -1- AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], [
2174 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
2175 AC_REQUIRE([AC_LIB_RPATH])
2176 pushdef([Name],[m4_translit([$1],[./+-], [____])])
2177 pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
2178 [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
2180 dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
2182 AC_LIB_LINKFLAGS_BODY([$1], [$2])
2184 dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
2185 dnl because if the user has installed lib[]Name and not disabled its use
2186 dnl via --without-lib[]Name-prefix, he wants to use it.
2187 ac_save_CPPFLAGS="$CPPFLAGS"
2188 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
2190 AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
2191 ac_save_LIBS="$LIBS"
2192 dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS,
2193 dnl because these -l options might require -L options that are present in
2194 dnl LIBS. -l options benefit only from the -L options listed before it.
2195 dnl Otherwise, add it to the front of LIBS, because it may be a static
2196 dnl library that depends on another static library that is present in LIBS.
2197 dnl Static libraries benefit only from the static libraries listed after
2199 case " $LIB[]NAME" in
2200 *" -l"*) LIBS="$LIBS $LIB[]NAME" ;;
2201 *) LIBS="$LIB[]NAME $LIBS" ;;
2204 [AC_LANG_PROGRAM([[$3]], [[$4]])],
2205 [ac_cv_lib[]Name=yes],
2206 [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])'])
2207 LIBS="$ac_save_LIBS"
2209 if test "$ac_cv_lib[]Name" = yes; then
2211 AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.])
2212 AC_MSG_CHECKING([how to link with lib[]$1])
2213 AC_MSG_RESULT([$LIB[]NAME])
2216 dnl If $LIB[]NAME didn't lead to a usable library, we don't need
2217 dnl $INC[]NAME either.
2218 CPPFLAGS="$ac_save_CPPFLAGS"
2223 AC_SUBST([HAVE_LIB]NAME)
2225 AC_SUBST([LTLIB]NAME)
2226 AC_SUBST([LIB]NAME[_PREFIX])
2230 m4trace:m4/lib-link.m4:125: -1- AC_DEFUN([AC_LIB_RPATH], [
2231 dnl Complain if config.rpath is missing.
2232 AC_REQUIRE_AUX_FILE([config.rpath])
2233 AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
2234 AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
2235 AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
2236 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
2237 AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [
2238 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
2239 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
2245 acl_libext="$acl_cv_libext"
2246 acl_shlibext="$acl_cv_shlibext"
2247 acl_libname_spec="$acl_cv_libname_spec"
2248 acl_library_names_spec="$acl_cv_library_names_spec"
2249 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
2250 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
2251 acl_hardcode_direct="$acl_cv_hardcode_direct"
2252 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
2253 dnl Determine whether the user wants rpath handling at all.
2254 AC_ARG_ENABLE([rpath],
2255 [ --disable-rpath do not hardcode runtime library paths],
2256 :, enable_rpath=yes)
2258 m4trace:m4/lib-link.m4:161: -1- AC_DEFUN([AC_LIB_FROMPACKAGE], [
2259 pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
2260 [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
2261 define([acl_frompackage_]NAME, [$2])
2263 pushdef([PACK],[$2])
2264 pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
2265 [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
2266 define([acl_libsinpackage_]PACKUP,
2267 m4_ifdef([acl_libsinpackage_]PACKUP, [m4_defn([acl_libsinpackage_]PACKUP)[, ]],)[lib$1])
2271 m4trace:m4/lib-link.m4:181: -1- AC_DEFUN([AC_LIB_LINKFLAGS_BODY], [
2272 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
2273 pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
2274 [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
2275 pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])])
2276 pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
2277 [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
2278 pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])])
2279 dnl By default, look in $includedir and $libdir.
2281 AC_LIB_WITH_FINAL_PREFIX([
2282 eval additional_includedir=\"$includedir\"
2283 eval additional_libdir=\"$libdir\"
2284 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
2285 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
2287 AC_ARG_WITH(PACK[-prefix],
2288 [[ --with-]]PACK[[-prefix[=DIR] search for ]]PACKLIBS[[ in DIR/include and DIR/lib
2289 --without-]]PACK[[-prefix don't search for ]]PACKLIBS[[ in includedir and libdir]],
2291 if test "X$withval" = "Xno"; then
2294 if test "X$withval" = "X"; then
2295 AC_LIB_WITH_FINAL_PREFIX([
2296 eval additional_includedir=\"$includedir\"
2297 eval additional_libdir=\"$libdir\"
2298 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
2299 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
2302 additional_includedir="$withval/include"
2303 additional_libdir="$withval/$acl_libdirstem"
2304 additional_libdir2="$withval/$acl_libdirstem2"
2305 additional_libdir3="$withval/$acl_libdirstem3"
2309 if test "X$additional_libdir2" = "X$additional_libdir"; then
2312 if test "X$additional_libdir3" = "X$additional_libdir"; then
2315 dnl Search the library and its dependencies in $additional_libdir and
2316 dnl $LDFLAGS. Using breadth-first-seach.
2321 dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been
2322 dnl computed. So it has to be reset here.
2326 names_already_handled=
2327 names_next_round='$1 $2'
2328 while test -n "$names_next_round"; do
2329 names_this_round="$names_next_round"
2331 for name in $names_this_round; do
2333 for n in $names_already_handled; do
2334 if test "$n" = "$name"; then
2339 if test -z "$already_handled"; then
2340 names_already_handled="$names_already_handled $name"
2341 dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
2342 dnl or AC_LIB_HAVE_LINKFLAGS call.
2343 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
2344 eval value=\"\$HAVE_LIB$uppername\"
2345 if test -n "$value"; then
2346 if test "$value" = yes; then
2347 eval value=\"\$LIB$uppername\"
2348 test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
2349 eval value=\"\$LTLIB$uppername\"
2350 test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
2352 dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
2353 dnl that this library doesn't exist. So just drop it.
2357 dnl Search the library lib$name in $additional_libdir and $LDFLAGS
2358 dnl and the already constructed $LIBNAME/$LTLIBNAME.
2363 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
2364 if test -n "$acl_shlibext"; then
2365 shrext=".$acl_shlibext" # typically: shrext=.so
2369 if test $use_additional = yes; then
2370 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
2371 if test "X$found_dir" = "X"; then
2372 eval dir=\$$additional_libdir_variable
2373 if test -n "$dir"; then
2374 dnl The same code as in the loop below:
2375 dnl First look for a shared library.
2376 if test -n "$acl_shlibext"; then
2377 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
2379 found_so="$dir/$libname$shrext"
2381 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
2382 ver=`(cd "$dir" && \
2383 for f in "$libname$shrext".*; do echo "$f"; done \
2384 | sed -e "s,^$libname$shrext\\\\.,," \
2385 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
2386 | sed 1q ) 2>/dev/null`
2387 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
2389 found_so="$dir/$libname$shrext.$ver"
2392 eval library_names=\"$acl_library_names_spec\"
2393 for f in $library_names; do
2394 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
2403 dnl Then look for a static library.
2404 if test "X$found_dir" = "X"; then
2405 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
2407 found_a="$dir/$libname.$acl_libext"
2410 if test "X$found_dir" != "X"; then
2411 if test -f "$dir/$libname.la"; then
2412 found_la="$dir/$libname.la"
2419 if test "X$found_dir" = "X"; then
2420 for x in $LDFLAGS $LTLIB[]NAME; do
2421 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
2424 dir=`echo "X$x" | sed -e 's/^X-L//'`
2425 dnl First look for a shared library.
2426 if test -n "$acl_shlibext"; then
2427 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
2429 found_so="$dir/$libname$shrext"
2431 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
2432 ver=`(cd "$dir" && \
2433 for f in "$libname$shrext".*; do echo "$f"; done \
2434 | sed -e "s,^$libname$shrext\\\\.,," \
2435 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
2436 | sed 1q ) 2>/dev/null`
2437 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
2439 found_so="$dir/$libname$shrext.$ver"
2442 eval library_names=\"$acl_library_names_spec\"
2443 for f in $library_names; do
2444 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
2453 dnl Then look for a static library.
2454 if test "X$found_dir" = "X"; then
2455 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
2457 found_a="$dir/$libname.$acl_libext"
2460 if test "X$found_dir" != "X"; then
2461 if test -f "$dir/$libname.la"; then
2462 found_la="$dir/$libname.la"
2467 if test "X$found_dir" != "X"; then
2472 if test "X$found_dir" != "X"; then
2473 dnl Found the library.
2474 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
2475 if test "X$found_so" != "X"; then
2476 dnl Linking with a shared library. We attempt to hardcode its
2477 dnl directory into the executable's runpath, unless it's the
2478 dnl standard /usr/lib.
2479 if test "$enable_rpath" = no \
2480 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
2481 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
2482 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
2483 dnl No hardcoding is needed.
2484 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
2486 dnl Use an explicit option to hardcode DIR into the resulting
2488 dnl Potentially add DIR to ltrpathdirs.
2489 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
2491 for x in $ltrpathdirs; do
2492 if test "X$x" = "X$found_dir"; then
2497 if test -z "$haveit"; then
2498 ltrpathdirs="$ltrpathdirs $found_dir"
2500 dnl The hardcoding into $LIBNAME is system dependent.
2501 if test "$acl_hardcode_direct" = yes; then
2502 dnl Using DIR/libNAME.so during linking hardcodes DIR into the
2503 dnl resulting binary.
2504 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
2506 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
2507 dnl Use an explicit option to hardcode DIR into the resulting
2509 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
2510 dnl Potentially add DIR to rpathdirs.
2511 dnl The rpathdirs will be appended to $LIBNAME at the end.
2513 for x in $rpathdirs; do
2514 if test "X$x" = "X$found_dir"; then
2519 if test -z "$haveit"; then
2520 rpathdirs="$rpathdirs $found_dir"
2523 dnl Rely on "-L$found_dir".
2524 dnl But don't add it if it's already contained in the LDFLAGS
2525 dnl or the already constructed $LIBNAME
2527 for x in $LDFLAGS $LIB[]NAME; do
2528 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
2529 if test "X$x" = "X-L$found_dir"; then
2534 if test -z "$haveit"; then
2535 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
2537 if test "$acl_hardcode_minus_L" != no; then
2538 dnl FIXME: Not sure whether we should use
2539 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
2541 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
2543 dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH
2544 dnl here, because this doesn't fit in flags passed to the
2545 dnl compiler. So give up. No hardcoding. This affects only
2546 dnl very old systems.
2547 dnl FIXME: Not sure whether we should use
2548 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
2550 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
2556 if test "X$found_a" != "X"; then
2557 dnl Linking with a static library.
2558 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
2560 dnl We shouldn't come here, but anyway it's good to have a
2562 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
2565 dnl Assume the include files are nearby.
2566 additional_includedir=
2567 case "$found_dir" in
2568 */$acl_libdirstem | */$acl_libdirstem/)
2569 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
2570 if test "$name" = '$1'; then
2571 LIB[]NAME[]_PREFIX="$basedir"
2573 additional_includedir="$basedir/include"
2575 */$acl_libdirstem2 | */$acl_libdirstem2/)
2576 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
2577 if test "$name" = '$1'; then
2578 LIB[]NAME[]_PREFIX="$basedir"
2580 additional_includedir="$basedir/include"
2582 */$acl_libdirstem3 | */$acl_libdirstem3/)
2583 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
2584 if test "$name" = '$1'; then
2585 LIB[]NAME[]_PREFIX="$basedir"
2587 additional_includedir="$basedir/include"
2590 if test "X$additional_includedir" != "X"; then
2591 dnl Potentially add $additional_includedir to $INCNAME.
2592 dnl But don't add it
2593 dnl 1. if it's the standard /usr/include,
2594 dnl 2. if it's /usr/local/include and we are using GCC on Linux,
2595 dnl 3. if it's already present in $CPPFLAGS or the already
2596 dnl constructed $INCNAME,
2597 dnl 4. if it doesn't exist as a directory.
2598 if test "X$additional_includedir" != "X/usr/include"; then
2600 if test "X$additional_includedir" = "X/usr/local/include"; then
2601 if test -n "$GCC"; then
2603 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
2607 if test -z "$haveit"; then
2608 for x in $CPPFLAGS $INC[]NAME; do
2609 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
2610 if test "X$x" = "X-I$additional_includedir"; then
2615 if test -z "$haveit"; then
2616 if test -d "$additional_includedir"; then
2617 dnl Really add $additional_includedir to $INCNAME.
2618 INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
2624 dnl Look for dependencies.
2625 if test -n "$found_la"; then
2626 dnl Read the .la file. It defines the variables
2627 dnl dlname, library_names, old_library, dependency_libs, current,
2628 dnl age, revision, installed, dlopen, dlpreopen, libdir.
2629 save_libdir="$libdir"
2631 */* | *\\*) . "$found_la" ;;
2632 *) . "./$found_la" ;;
2634 libdir="$save_libdir"
2635 dnl We use only dependency_libs.
2636 for dep in $dependency_libs; do
2639 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
2640 dnl Potentially add $dependency_libdir to $LIBNAME and $LTLIBNAME.
2641 dnl But don't add it
2642 dnl 1. if it's the standard /usr/lib,
2643 dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
2644 dnl 3. if it's already present in $LDFLAGS or the already
2645 dnl constructed $LIBNAME,
2646 dnl 4. if it doesn't exist as a directory.
2647 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
2648 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
2649 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
2651 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
2652 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
2653 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
2654 if test -n "$GCC"; then
2656 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
2660 if test -z "$haveit"; then
2662 for x in $LDFLAGS $LIB[]NAME; do
2663 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
2664 if test "X$x" = "X-L$dependency_libdir"; then
2669 if test -z "$haveit"; then
2670 if test -d "$dependency_libdir"; then
2671 dnl Really add $dependency_libdir to $LIBNAME.
2672 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$dependency_libdir"
2676 for x in $LDFLAGS $LTLIB[]NAME; do
2677 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
2678 if test "X$x" = "X-L$dependency_libdir"; then
2683 if test -z "$haveit"; then
2684 if test -d "$dependency_libdir"; then
2685 dnl Really add $dependency_libdir to $LTLIBNAME.
2686 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$dependency_libdir"
2693 dir=`echo "X$dep" | sed -e 's/^X-R//'`
2694 if test "$enable_rpath" != no; then
2695 dnl Potentially add DIR to rpathdirs.
2696 dnl The rpathdirs will be appended to $LIBNAME at the end.
2698 for x in $rpathdirs; do
2699 if test "X$x" = "X$dir"; then
2704 if test -z "$haveit"; then
2705 rpathdirs="$rpathdirs $dir"
2707 dnl Potentially add DIR to ltrpathdirs.
2708 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
2710 for x in $ltrpathdirs; do
2711 if test "X$x" = "X$dir"; then
2716 if test -z "$haveit"; then
2717 ltrpathdirs="$ltrpathdirs $dir"
2722 dnl Handle this in the next round.
2723 dnl But on GNU systems, ignore -lc options, because
2724 dnl - linking with libc is the default anyway,
2725 dnl - linking with libc.a may produce an error
2726 dnl "/usr/bin/ld: dynamic STT_GNU_IFUNC symbol `strcmp' with pointer equality in `/usr/lib/libc.a(strcmp.o)' can not be used when making an executable; recompile with -fPIE and relink with -pie"
2727 dnl or may produce an executable that always crashes, see
2728 dnl <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00052.html>.
2729 dep=`echo "X$dep" | sed -e 's/^X-l//'`
2730 if test "X$dep" != Xc \
2732 linux* | gnu* | k*bsd*-gnu) false ;;
2735 names_next_round="$names_next_round $dep"
2739 dnl Handle this in the next round. Throw away the .la's
2740 dnl directory; it is already contained in a preceding -L
2742 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
2745 dnl Most likely an immediate library name.
2746 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
2747 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
2753 dnl Didn't find the library; assume it is in the system directories
2754 dnl known to the linker and runtime loader. (All the system
2755 dnl directories known to the linker should also be known to the
2756 dnl runtime loader, otherwise the system is severely misconfigured.)
2757 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
2758 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
2764 if test "X$rpathdirs" != "X"; then
2765 if test -n "$acl_hardcode_libdir_separator"; then
2766 dnl Weird platform: only the last -rpath option counts, the user must
2767 dnl pass all path elements in one option. We can arrange that for a
2768 dnl single library, but not when more than one $LIBNAMEs are used.
2770 for found_dir in $rpathdirs; do
2771 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
2773 dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
2774 acl_save_libdir="$libdir"
2776 eval flag=\"$acl_hardcode_libdir_flag_spec\"
2777 libdir="$acl_save_libdir"
2778 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
2780 dnl The -rpath options are cumulative.
2781 for found_dir in $rpathdirs; do
2782 acl_save_libdir="$libdir"
2784 eval flag=\"$acl_hardcode_libdir_flag_spec\"
2785 libdir="$acl_save_libdir"
2786 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
2790 if test "X$ltrpathdirs" != "X"; then
2791 dnl When using libtool, the option that works for both libraries and
2792 dnl executables is -R. The -R options are cumulative.
2793 for found_dir in $ltrpathdirs; do
2794 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
2802 m4trace:m4/lib-link.m4:718: -1- AC_DEFUN([AC_LIB_APPENDTOVAR], [
2803 for element in [$2]; do
2806 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
2807 if test "X$x" = "X$element"; then
2812 if test -z "$haveit"; then
2813 [$1]="${[$1]}${[$1]:+ }$element"
2817 m4trace:m4/lib-link.m4:742: -1- AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], [
2818 AC_REQUIRE([AC_LIB_RPATH])
2819 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
2821 if test "$enable_rpath" != no; then
2822 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
2823 dnl Use an explicit option to hardcode directories into the resulting
2828 if test -n "$next"; then
2830 dnl No need to hardcode the standard /usr/lib.
2831 if test "X$dir" != "X/usr/$acl_libdirstem" \
2832 && test "X$dir" != "X/usr/$acl_libdirstem2" \
2833 && test "X$dir" != "X/usr/$acl_libdirstem3"; then
2834 rpathdirs="$rpathdirs $dir"
2840 -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
2841 dnl No need to hardcode the standard /usr/lib.
2842 if test "X$dir" != "X/usr/$acl_libdirstem" \
2843 && test "X$dir" != "X/usr/$acl_libdirstem2" \
2844 && test "X$dir" != "X/usr/$acl_libdirstem3"; then
2845 rpathdirs="$rpathdirs $dir"
2852 if test "X$rpathdirs" != "X"; then
2853 if test -n ""$3""; then
2854 dnl libtool is used for linking. Use -R options.
2855 for dir in $rpathdirs; do
2856 $1="${$1}${$1:+ }-R$dir"
2859 dnl The linker is used for linking directly.
2860 if test -n "$acl_hardcode_libdir_separator"; then
2861 dnl Weird platform: only the last -rpath option counts, the user
2862 dnl must pass all path elements in one option.
2864 for dir in $rpathdirs; do
2865 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
2867 acl_save_libdir="$libdir"
2869 eval flag=\"$acl_hardcode_libdir_flag_spec\"
2870 libdir="$acl_save_libdir"
2873 dnl The -rpath options are cumulative.
2874 for dir in $rpathdirs; do
2875 acl_save_libdir="$libdir"
2877 eval flag=\"$acl_hardcode_libdir_flag_spec\"
2878 libdir="$acl_save_libdir"
2879 $1="${$1}${$1:+ }$flag"
2888 m4trace:m4/lib-prefix.m4:15: -1- AC_DEFUN([AC_LIB_PREFIX], [
2889 AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
2890 AC_REQUIRE([AC_PROG_CC])
2891 AC_REQUIRE([AC_CANONICAL_HOST])
2892 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
2893 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
2894 dnl By default, look in $includedir and $libdir.
2896 AC_LIB_WITH_FINAL_PREFIX([
2897 eval additional_includedir=\"$includedir\"
2898 eval additional_libdir=\"$libdir\"
2900 AC_ARG_WITH([lib-prefix],
2901 [[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
2902 --without-lib-prefix don't search for libraries in includedir and libdir]],
2904 if test "X$withval" = "Xno"; then
2907 if test "X$withval" = "X"; then
2908 AC_LIB_WITH_FINAL_PREFIX([
2909 eval additional_includedir=\"$includedir\"
2910 eval additional_libdir=\"$libdir\"
2913 additional_includedir="$withval/include"
2914 additional_libdir="$withval/$acl_libdirstem"
2918 if test $use_additional = yes; then
2919 dnl Potentially add $additional_includedir to $CPPFLAGS.
2920 dnl But don't add it
2921 dnl 1. if it's the standard /usr/include,
2922 dnl 2. if it's already present in $CPPFLAGS,
2923 dnl 3. if it's /usr/local/include and we are using GCC on Linux,
2924 dnl 4. if it doesn't exist as a directory.
2925 if test "X$additional_includedir" != "X/usr/include"; then
2927 for x in $CPPFLAGS; do
2928 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
2929 if test "X$x" = "X-I$additional_includedir"; then
2934 if test -z "$haveit"; then
2935 if test "X$additional_includedir" = "X/usr/local/include"; then
2936 if test -n "$GCC"; then
2938 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
2942 if test -z "$haveit"; then
2943 if test -d "$additional_includedir"; then
2944 dnl Really add $additional_includedir to $CPPFLAGS.
2945 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
2950 dnl Potentially add $additional_libdir to $LDFLAGS.
2951 dnl But don't add it
2952 dnl 1. if it's the standard /usr/lib,
2953 dnl 2. if it's already present in $LDFLAGS,
2954 dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
2955 dnl 4. if it doesn't exist as a directory.
2956 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
2958 for x in $LDFLAGS; do
2959 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
2960 if test "X$x" = "X-L$additional_libdir"; then
2965 if test -z "$haveit"; then
2966 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
2967 if test -n "$GCC"; then
2969 linux*) haveit=yes;;
2973 if test -z "$haveit"; then
2974 if test -d "$additional_libdir"; then
2975 dnl Really add $additional_libdir to $LDFLAGS.
2976 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
2983 m4trace:m4/lib-prefix.m4:115: -1- AC_DEFUN([AC_LIB_PREPARE_PREFIX], [
2984 dnl Unfortunately, prefix and exec_prefix get only finally determined
2985 dnl at the end of configure.
2986 if test "X$prefix" = "XNONE"; then
2987 acl_final_prefix="$ac_default_prefix"
2989 acl_final_prefix="$prefix"
2991 if test "X$exec_prefix" = "XNONE"; then
2992 acl_final_exec_prefix='${prefix}'
2994 acl_final_exec_prefix="$exec_prefix"
2996 acl_save_prefix="$prefix"
2997 prefix="$acl_final_prefix"
2998 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
2999 prefix="$acl_save_prefix"
3001 m4trace:m4/lib-prefix.m4:138: -1- AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], [
3002 acl_save_prefix="$prefix"
3003 prefix="$acl_final_prefix"
3004 acl_save_exec_prefix="$exec_prefix"
3005 exec_prefix="$acl_final_exec_prefix"
3007 exec_prefix="$acl_save_exec_prefix"
3008 prefix="$acl_save_prefix"
3010 m4trace:m4/lib-prefix.m4:155: -1- AC_DEFUN([AC_LIB_PREPARE_MULTILIB], [
3011 dnl There is no formal standard regarding lib, lib32, and lib64.
3012 dnl On most glibc systems, the current practice is that on a system supporting
3013 dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
3014 dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. However, on
3015 dnl Arch Linux based distributions, it's the opposite: 32-bit libraries go
3016 dnl under $prefix/lib32 and 64-bit libraries go under $prefix/lib.
3017 dnl We determine the compiler's default mode by looking at the compiler's
3018 dnl library search path. If at least one of its elements ends in /lib64 or
3019 dnl points to a directory whose absolute pathname ends in /lib64, we use that
3020 dnl for 64-bit ABIs. Similarly for 32-bit ABIs. Otherwise we use the default,
3022 dnl On Solaris systems, the current practice is that on a system supporting
3023 dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
3024 dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or
3025 dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib.
3026 AC_REQUIRE([AC_CANONICAL_HOST])
3027 AC_REQUIRE([gl_HOST_CPU_C_ABI_32BIT])
3029 AC_CACHE_CHECK([for ELF binary format], [gl_cv_elf],
3030 [AC_EGREP_CPP([Extensible Linking Format],
3031 [#if defined __ELF__ || (defined __linux__ && defined __EDG__)
3032 Extensible Linking Format
3038 if test $gl_cv_elf = yes; then
3039 # Extract the ELF class of a file (5th byte) in decimal.
3040 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
3041 if od -A x < /dev/null >/dev/null 2>/dev/null; then
3045 od -A n -t d1 -j 4 -N 1
3051 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
3055 # Use 'expr', not 'test', to compare the values of func_elfclass, because on
3056 # Solaris 11 OpenIndiana and Solaris 11 OmniOS, the result is 001 or 002,
3059 case $HOST_CPU_C_ABI_32BIT in
3062 acl_is_expected_elfclass ()
3064 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 1 > /dev/null
3069 acl_is_expected_elfclass ()
3071 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 2 > /dev/null
3076 acl_is_expected_elfclass ()
3084 acl_is_expected_elfclass ()
3090 dnl Allow the user to override the result by setting acl_cv_libdirstems.
3091 AC_CACHE_CHECK([for the common suffixes of directories in the library search path],
3092 [acl_cv_libdirstems],
3093 [dnl Try 'lib' first, because that's the default for libdir in GNU, see
3094 dnl <https://www.gnu.org/prep/standards/html_node/Directory-Variables.html>.
3100 dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment
3101 dnl <https://docs.oracle.com/cd/E19253-01/816-5138/dev-env/index.html>.
3102 dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link."
3103 dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the
3104 dnl symlink is missing, so we set acl_libdirstem2 too.
3105 if test $HOST_CPU_C_ABI_32BIT = no; then
3106 acl_libdirstem2=lib/64
3108 sparc*) acl_libdirstem3=lib/sparcv9 ;;
3109 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
3114 dnl If $CC generates code for a 32-bit ABI, the libraries are
3115 dnl surely under $prefix/lib or $prefix/lib32, not $prefix/lib64.
3116 dnl Similarly, if $CC generates code for a 64-bit ABI, the libraries
3117 dnl are surely under $prefix/lib or $prefix/lib64, not $prefix/lib32.
3118 dnl Find the compiler's search path. However, non-system compilers
3119 dnl sometimes have odd library search paths. But we can't simply invoke
3120 dnl '/usr/bin/gcc -print-search-dirs' because that would not take into
3121 dnl account the -m32/-m31 or -m64 options from the $CC or $CFLAGS.
3122 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
3123 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
3124 if test $HOST_CPU_C_ABI_32BIT != no; then
3125 # 32-bit or unknown ABI.
3126 if test -d /usr/lib32; then
3127 acl_libdirstem2=lib32
3130 if test $HOST_CPU_C_ABI_32BIT != yes; then
3131 # 64-bit or unknown ABI.
3132 if test -d /usr/lib64; then
3133 acl_libdirstem3=lib64
3136 if test -n "$searchpath"; then
3137 acl_save_IFS="${IFS= }"; IFS=":"
3138 for searchdir in $searchpath; do
3139 if test -d "$searchdir"; then
3140 case "$searchdir" in
3141 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
3142 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
3144 # Better ignore directories of this form. They are misleading.
3146 *) searchdir=`cd "$searchdir" && pwd`
3147 case "$searchdir" in
3148 */lib32 ) acl_libdirstem2=lib32 ;;
3149 */lib64 ) acl_libdirstem3=lib64 ;;
3155 if test $HOST_CPU_C_ABI_32BIT = yes; then
3159 if test $HOST_CPU_C_ABI_32BIT = no; then
3166 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
3167 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
3168 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
3170 dnl Decompose acl_cv_libdirstems into acl_libdirstem, acl_libdirstem2, and
3171 dnl acl_libdirstem3.
3173 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
3174 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
3175 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
3178 m4trace:m4/nls.m4:23: -1- AC_DEFUN([AM_NLS], [
3179 AC_MSG_CHECKING([whether NLS is requested])
3180 dnl Default is enabled NLS
3181 AC_ARG_ENABLE([nls],
3182 [ --disable-nls do not use Native Language Support],
3183 USE_NLS=$enableval, USE_NLS=yes)
3184 AC_MSG_RESULT([$USE_NLS])
3187 m4trace:m4/po.m4:23: -1- AC_DEFUN([AM_PO_SUBDIRS], [
3188 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
3189 AC_REQUIRE([AC_PROG_INSTALL])dnl
3190 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
3191 AC_REQUIRE([AC_PROG_SED])dnl
3192 AC_REQUIRE([AM_NLS])dnl
3194 dnl Release version of the gettext macros. This is used to ensure that
3195 dnl the gettext macros and po/Makefile.in.in are in sync.
3196 AC_SUBST([GETTEXT_MACRO_VERSION], [0.20])
3198 dnl Perform the following tests also if --disable-nls has been given,
3199 dnl because they are needed for "make dist" to work.
3201 dnl Search for GNU msgfmt in the PATH.
3202 dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
3203 dnl The second test excludes FreeBSD msgfmt.
3204 AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
3205 [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
3206 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
3208 AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT])
3210 dnl Test whether it is GNU msgfmt >= 0.15.
3212 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3213 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
3214 *) GMSGFMT_015=$GMSGFMT ;;
3217 AC_SUBST([GMSGFMT_015])
3219 dnl Search for GNU xgettext 0.12 or newer in the PATH.
3220 dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
3221 dnl The second test excludes FreeBSD xgettext.
3222 AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
3223 [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
3224 (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)],
3226 dnl Remove leftover from FreeBSD xgettext call.
3229 dnl Test whether it is GNU xgettext >= 0.15.
3231 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3232 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
3233 *) XGETTEXT_015=$XGETTEXT ;;
3236 AC_SUBST([XGETTEXT_015])
3238 dnl Search for GNU msgmerge 0.11 or newer in the PATH.
3239 AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
3240 [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
3242 dnl Test whether it is GNU msgmerge >= 0.20.
3243 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
3244 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
3246 dnl Test whether it is GNU msgmerge >= 0.12.
3247 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
3248 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
3250 dnl With these old versions, $(MSGMERGE) $(MSGMERGE_FOR_MSGFMT_OPTION) is
3251 dnl slow. But this is not a big problem, as such old gettext versions are
3252 dnl hardly in use any more.
3253 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
3256 AC_SUBST([MSGMERGE_FOR_MSGFMT_OPTION])
3258 dnl Support for AM_XGETTEXT_OPTION.
3259 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
3260 AC_SUBST([XGETTEXT_EXTRA_OPTIONS])
3262 AC_CONFIG_COMMANDS([po-directories], [[
3263 for ac_file in $CONFIG_FILES; do
3264 # Support "outfile[:infile[:infile...]]"
3266 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3268 # PO directories have a Makefile.in generated from Makefile.in.in.
3269 case "$ac_file" in */Makefile.in)
3270 # Adjust a relative srcdir.
3271 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3272 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
3273 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
3274 # In autoconf-2.13 it is called $ac_given_srcdir.
3275 # In autoconf-2.50 it is called $srcdir.
3276 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
3277 case "$ac_given_srcdir" in
3278 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
3279 /*) top_srcdir="$ac_given_srcdir" ;;
3280 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
3282 # Treat a directory as a PO directory if and only if it has a
3283 # POTFILES.in file. This allows packages to have multiple PO
3284 # directories under different names or in different locations.
3285 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
3286 rm -f "$ac_dir/POTFILES"
3287 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
3288 gt_tab=`printf '\t'`
3289 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
3290 POMAKEFILEDEPS="POTFILES.in"
3291 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
3292 # on $ac_dir but don't depend on user-specified configuration
3294 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
3295 # The LINGUAS file contains the set of available languages.
3296 if test -n "$OBSOLETE_ALL_LINGUAS"; then
3297 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
3299 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
3300 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
3302 # The set of available languages was given in configure.in.
3303 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
3306 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
3307 # Compute UPDATEPOFILES
3308 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
3309 # Compute DUMMYPOFILES
3310 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
3312 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
3313 case "$ac_given_srcdir" in
3315 *) srcdirpre='$(srcdir)/' ;;
3321 for lang in $ALL_LINGUAS; do
3322 POFILES="$POFILES $srcdirpre$lang.po"
3323 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
3324 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
3325 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
3327 # CATALOGS depends on both $ac_dir and the user's LINGUAS
3328 # environment variable.
3330 if test -n "$ALL_LINGUAS"; then
3331 for presentlang in $ALL_LINGUAS; do
3333 if test "%UNSET%" != "$LINGUAS"; then
3334 desiredlanguages="$LINGUAS"
3336 desiredlanguages="$ALL_LINGUAS"
3338 for desiredlang in $desiredlanguages; do
3339 # Use the presentlang catalog if desiredlang is
3340 # a. equal to presentlang, or
3341 # b. a variant of presentlang (because in this case,
3342 # presentlang can be used as a fallback for messages
3343 # which are not translated in the desiredlang catalog).
3344 case "$desiredlang" in
3345 "$presentlang" | "$presentlang"_* | "$presentlang".* | "$presentlang"@*)
3350 if test $useit = yes; then
3351 INST_LINGUAS="$INST_LINGUAS $presentlang"
3356 if test -n "$INST_LINGUAS"; then
3357 for lang in $INST_LINGUAS; do
3358 CATALOGS="$CATALOGS $lang.gmo"
3361 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
3362 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"
3363 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
3364 if test -f "$f"; then
3366 *.orig | *.bak | *~) ;;
3367 *) cat "$f" >> "$ac_dir/Makefile" ;;
3375 [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
3376 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
3377 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
3378 # Capture the value of LINGUAS because we need it to compute CATALOGS.
3379 LINGUAS="${LINGUAS-%UNSET%}"
3382 m4trace:m4/po.m4:221: -1- AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], [
3383 # When this code is run, in config.status, two variables have already been
3385 # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
3386 # - LINGUAS is the value of the environment variable LINGUAS at configure
3390 # Adjust a relative srcdir.
3391 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3392 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
3393 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
3394 # In autoconf-2.13 it is called $ac_given_srcdir.
3395 # In autoconf-2.50 it is called $srcdir.
3396 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
3397 case "$ac_given_srcdir" in
3398 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
3399 /*) top_srcdir="$ac_given_srcdir" ;;
3400 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
3403 # Find a way to echo strings without interpreting backslash.
3404 if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
3407 if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
3408 gt_echo='printf %s\n'
3419 # A sed script that extracts the value of VARIABLE from a Makefile.
3422 # Test if the hold space is empty.
3427 # Yes it was empty. Look if we have the expected variable definition.
3428 /^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=/{
3429 # Seen the first line of the variable definition.
3430 s/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=//
3435 # Here we are processing a line from the variable definition.
3436 # Remove comment, more precisely replace it with a space.
3438 # See if the line ends in a backslash.
3442 # Print the line, without the trailing backslash.
3445 # There was no trailing backslash. The end of the variable definition is
3446 # reached. Clear the hold space.
3451 # A trailing backslash means that the variable definition continues in the
3452 # next line. Put a nonempty string into the hold space to indicate this.
3459 # Set POTFILES to the value of the Makefile variable POTFILES.
3460 sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`
3461 POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
3462 # Compute POTFILES_DEPS as
3463 # $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
3465 for file in $POTFILES; do
3466 POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
3470 if test -n "$OBSOLETE_ALL_LINGUAS"; then
3471 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
3473 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
3474 # The LINGUAS file contains the set of available languages.
3475 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
3476 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
3478 # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
3479 sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`
3480 ALL_LINGUAS=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
3483 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
3484 # Compute UPDATEPOFILES
3485 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
3486 # Compute DUMMYPOFILES
3487 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
3489 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
3490 # Compute PROPERTIESFILES
3491 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(DOMAIN)_$(lang).properties)
3492 # Compute CLASSFILES
3493 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(DOMAIN)_$(lang).class)
3495 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
3497 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
3498 # Compute RESOURCESDLLFILES
3499 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
3500 case "$ac_given_srcdir" in
3502 *) srcdirpre='$(srcdir)/' ;;
3513 for lang in $ALL_LINGUAS; do
3514 POFILES="$POFILES $srcdirpre$lang.po"
3515 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
3516 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
3517 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
3518 PROPERTIESFILES="$PROPERTIESFILES \$(srcdir)/\$(DOMAIN)_$lang.properties"
3519 CLASSFILES="$CLASSFILES \$(srcdir)/\$(DOMAIN)_$lang.class"
3520 QMFILES="$QMFILES $srcdirpre$lang.qm"
3521 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
3522 MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
3523 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/'`
3524 RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
3526 # CATALOGS depends on both $ac_dir and the user's LINGUAS
3527 # environment variable.
3529 if test -n "$ALL_LINGUAS"; then
3530 for presentlang in $ALL_LINGUAS; do
3532 if test "%UNSET%" != "$LINGUAS"; then
3533 desiredlanguages="$LINGUAS"
3535 desiredlanguages="$ALL_LINGUAS"
3537 for desiredlang in $desiredlanguages; do
3538 # Use the presentlang catalog if desiredlang is
3539 # a. equal to presentlang, or
3540 # b. a variant of presentlang (because in this case,
3541 # presentlang can be used as a fallback for messages
3542 # which are not translated in the desiredlang catalog).
3543 case "$desiredlang" in
3544 "$presentlang" | "$presentlang"_* | "$presentlang".* | "$presentlang"@*)
3549 if test $useit = yes; then
3550 INST_LINGUAS="$INST_LINGUAS $presentlang"
3559 if test -n "$INST_LINGUAS"; then
3560 for lang in $INST_LINGUAS; do
3561 CATALOGS="$CATALOGS $lang.gmo"
3562 JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
3563 QTCATALOGS="$QTCATALOGS $lang.qm"
3564 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
3565 TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
3566 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/'`
3567 CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
3571 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"
3573 if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
3574 # Add dependencies that cannot be formulated as a simple suffix rule.
3575 for lang in $ALL_LINGUAS; do
3576 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
3577 cat >> "$ac_file.tmp" <<EOF
3578 $frobbedlang.msg: $lang.po
3579 ${tab}@echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
3580 ${tab}\$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
3584 if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
3585 # Add dependencies that cannot be formulated as a simple suffix rule.
3586 for lang in $ALL_LINGUAS; do
3587 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/'`
3588 cat >> "$ac_file.tmp" <<EOF
3589 $frobbedlang/\$(DOMAIN).resources.dll: $lang.po
3590 ${tab}@echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
3591 ${tab}\$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
3595 if test -n "$POMAKEFILEDEPS"; then
3596 cat >> "$ac_file.tmp" <<EOF
3597 Makefile: $POMAKEFILEDEPS
3600 mv "$ac_file.tmp" "$ac_file"
3602 m4trace:m4/po.m4:444: -1- AC_DEFUN([AM_XGETTEXT_OPTION_INIT], [
3603 XGETTEXT_EXTRA_OPTIONS=
3605 m4trace:m4/po.m4:450: -1- AC_DEFUN([AM_XGETTEXT_OPTION], [
3606 AC_REQUIRE([AM_XGETTEXT_OPTION_INIT])
3607 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1"
3609 m4trace:m4/progtest.m4:25: -1- AC_DEFUN([AM_PATH_PROG_WITH_TEST], [
3610 # Prepare PATH_SEPARATOR.
3611 # The user is always right.
3612 if test "${PATH_SEPARATOR+set}" != set; then
3613 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
3614 # contains only /bin. Note that ksh looks also at the FPATH variable,
3615 # so we have to set that as well for the test.
3617 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
3618 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
3619 || PATH_SEPARATOR=';'
3623 # Find out how to test for executable files. Don't use a zero-byte file,
3624 # as systems may use methods other than mode bits to determine executability.
3625 cat >conf$$.file <<_ASEOF
3629 chmod +x conf$$.file
3630 if test -x conf$$.file >/dev/null 2>&1; then
3631 ac_executable_p="test -x"
3633 ac_executable_p="test -f"
3637 # Extract the first word of "$2", so it can be a program name with args.
3638 set dummy $2; ac_word=[$]2
3639 AC_MSG_CHECKING([for $ac_word])
3640 AC_CACHE_VAL([ac_cv_path_$1],
3642 [[\\/]]* | ?:[[\\/]]*)
3643 ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
3646 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3647 for ac_dir in m4_if([$5], , $PATH, [$5]); do
3649 test -z "$ac_dir" && ac_dir=.
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3652 echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD
3654 ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"
3661 dnl If no 4th arg is given, leave the cache variable unset,
3662 dnl so AC_PATH_PROGS will keep looking.
3663 m4_if([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
3668 if test m4_if([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
3669 AC_MSG_RESULT([$][$1])
3675 m4trace:configure.ac:2: -1- m4_pattern_forbid([^_?A[CHUM]_])
3676 m4trace:configure.ac:2: -1- m4_pattern_forbid([_AC_])
3677 m4trace:configure.ac:2: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'])
3678 m4trace:configure.ac:2: -1- m4_pattern_allow([^AS_FLAGS$])
3679 m4trace:configure.ac:2: -1- m4_pattern_forbid([^_?m4_])
3680 m4trace:configure.ac:2: -1- m4_pattern_forbid([^dnl$])
3681 m4trace:configure.ac:2: -1- m4_pattern_forbid([^_?AS_])
3682 m4trace:configure.ac:2: -1- m4_pattern_allow([^SHELL$])
3683 m4trace:configure.ac:2: -1- m4_pattern_allow([^PATH_SEPARATOR$])
3684 m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_NAME$])
3685 m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_TARNAME$])
3686 m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_VERSION$])
3687 m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_STRING$])
3688 m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$])
3689 m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_URL$])
3690 m4trace:configure.ac:2: -1- m4_pattern_allow([^exec_prefix$])
3691 m4trace:configure.ac:2: -1- m4_pattern_allow([^prefix$])
3692 m4trace:configure.ac:2: -1- m4_pattern_allow([^program_transform_name$])
3693 m4trace:configure.ac:2: -1- m4_pattern_allow([^bindir$])
3694 m4trace:configure.ac:2: -1- m4_pattern_allow([^sbindir$])
3695 m4trace:configure.ac:2: -1- m4_pattern_allow([^libexecdir$])
3696 m4trace:configure.ac:2: -1- m4_pattern_allow([^datarootdir$])
3697 m4trace:configure.ac:2: -1- m4_pattern_allow([^datadir$])
3698 m4trace:configure.ac:2: -1- m4_pattern_allow([^sysconfdir$])
3699 m4trace:configure.ac:2: -1- m4_pattern_allow([^sharedstatedir$])
3700 m4trace:configure.ac:2: -1- m4_pattern_allow([^localstatedir$])
3701 m4trace:configure.ac:2: -1- m4_pattern_allow([^runstatedir$])
3702 m4trace:configure.ac:2: -1- m4_pattern_allow([^includedir$])
3703 m4trace:configure.ac:2: -1- m4_pattern_allow([^oldincludedir$])
3704 m4trace:configure.ac:2: -1- m4_pattern_allow([^docdir$])
3705 m4trace:configure.ac:2: -1- m4_pattern_allow([^infodir$])
3706 m4trace:configure.ac:2: -1- m4_pattern_allow([^htmldir$])
3707 m4trace:configure.ac:2: -1- m4_pattern_allow([^dvidir$])
3708 m4trace:configure.ac:2: -1- m4_pattern_allow([^pdfdir$])
3709 m4trace:configure.ac:2: -1- m4_pattern_allow([^psdir$])
3710 m4trace:configure.ac:2: -1- m4_pattern_allow([^libdir$])
3711 m4trace:configure.ac:2: -1- m4_pattern_allow([^localedir$])
3712 m4trace:configure.ac:2: -1- m4_pattern_allow([^mandir$])
3713 m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_NAME$])
3714 m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_TARNAME$])
3715 m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_VERSION$])
3716 m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_STRING$])
3717 m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$])
3718 m4trace:configure.ac:2: -1- m4_pattern_allow([^PACKAGE_URL$])
3719 m4trace:configure.ac:2: -1- m4_pattern_allow([^DEFS$])
3720 m4trace:configure.ac:2: -1- m4_pattern_allow([^ECHO_C$])
3721 m4trace:configure.ac:2: -1- m4_pattern_allow([^ECHO_N$])
3722 m4trace:configure.ac:2: -1- m4_pattern_allow([^ECHO_T$])
3723 m4trace:configure.ac:2: -1- m4_pattern_allow([^LIBS$])
3724 m4trace:configure.ac:2: -1- m4_pattern_allow([^build_alias$])
3725 m4trace:configure.ac:2: -1- m4_pattern_allow([^host_alias$])
3726 m4trace:configure.ac:2: -1- m4_pattern_allow([^target_alias$])
3727 m4trace:configure.ac:7: -1- AM_INIT_AUTOMAKE
3728 m4trace:configure.ac:7: -1- m4_pattern_allow([^AM_[A-Z]+FLAGS$])
3729 m4trace:configure.ac:7: -1- AM_SET_CURRENT_AUTOMAKE_VERSION
3730 m4trace:configure.ac:7: -1- AM_AUTOMAKE_VERSION([1.16.5])
3731 m4trace:configure.ac:7: -1- _AM_AUTOCONF_VERSION([2.71])
3732 m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_PROGRAM$])
3733 m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_SCRIPT$])
3734 m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_DATA$])
3735 m4trace:configure.ac:7: -1- m4_pattern_allow([^am__isrc$])
3736 m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([am__isrc])
3737 m4trace:configure.ac:7: -1- m4_pattern_allow([^CYGPATH_W$])
3738 m4trace:configure.ac:7: -1- _AM_SET_OPTIONS([])
3739 m4trace:configure.ac:7: -1- m4_pattern_allow([^PACKAGE$])
3740 m4trace:configure.ac:7: -1- m4_pattern_allow([^VERSION$])
3741 m4trace:configure.ac:7: -1- _AM_IF_OPTION([no-define], [], [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
3742 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])
3743 m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([no-define])
3744 m4trace:configure.ac:7: -1- m4_pattern_allow([^PACKAGE$])
3745 m4trace:configure.ac:7: -1- m4_pattern_allow([^VERSION$])
3746 m4trace:configure.ac:7: -1- AM_SANITY_CHECK
3747 m4trace:configure.ac:7: -1- AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
3748 m4trace:configure.ac:7: -1- AM_MISSING_HAS_RUN
3749 m4trace:configure.ac:7: -1- AM_AUX_DIR_EXPAND
3750 m4trace:configure.ac:7: -1- m4_pattern_allow([^ACLOCAL$])
3751 m4trace:configure.ac:7: -1- AM_MISSING_PROG([AUTOCONF], [autoconf])
3752 m4trace:configure.ac:7: -1- m4_pattern_allow([^AUTOCONF$])
3753 m4trace:configure.ac:7: -1- AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
3754 m4trace:configure.ac:7: -1- m4_pattern_allow([^AUTOMAKE$])
3755 m4trace:configure.ac:7: -1- AM_MISSING_PROG([AUTOHEADER], [autoheader])
3756 m4trace:configure.ac:7: -1- m4_pattern_allow([^AUTOHEADER$])
3757 m4trace:configure.ac:7: -1- AM_MISSING_PROG([MAKEINFO], [makeinfo])
3758 m4trace:configure.ac:7: -1- m4_pattern_allow([^MAKEINFO$])
3759 m4trace:configure.ac:7: -1- AM_PROG_INSTALL_SH
3760 m4trace:configure.ac:7: -1- m4_pattern_allow([^install_sh$])
3761 m4trace:configure.ac:7: -1- AM_PROG_INSTALL_STRIP
3762 m4trace:configure.ac:7: -1- m4_pattern_allow([^STRIP$])
3763 m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_STRIP_PROGRAM$])
3764 m4trace:configure.ac:7: -1- m4_pattern_allow([^MKDIR_P$])
3765 m4trace:configure.ac:7: -1- m4_pattern_allow([^mkdir_p$])
3766 m4trace:configure.ac:7: -1- m4_pattern_allow([^AWK$])
3767 m4trace:configure.ac:7: -1- m4_pattern_allow([^SET_MAKE$])
3768 m4trace:configure.ac:7: -1- AM_SET_LEADING_DOT
3769 m4trace:configure.ac:7: -1- m4_pattern_allow([^am__leading_dot$])
3770 m4trace:configure.ac:7: -1- _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
3771 [_AM_PROG_TAR([v7])])])
3772 m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([tar-ustar])
3773 m4trace:configure.ac:7: -1- _AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])
3774 m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([tar-pax])
3775 m4trace:configure.ac:7: -1- _AM_PROG_TAR([v7])
3776 m4trace:configure.ac:7: -1- m4_pattern_allow([^AMTAR$])
3777 m4trace:configure.ac:7: -1- m4_pattern_allow([^am__tar$])
3778 m4trace:configure.ac:7: -1- m4_pattern_allow([^am__untar$])
3779 m4trace:configure.ac:7: -1- _AM_IF_OPTION([no-dependencies], [], [AC_PROVIDE_IFELSE([AC_PROG_CC],
3780 [_AM_DEPENDENCIES([CC])],
3781 [m4_define([AC_PROG_CC],
3782 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
3783 AC_PROVIDE_IFELSE([AC_PROG_CXX],
3784 [_AM_DEPENDENCIES([CXX])],
3785 [m4_define([AC_PROG_CXX],
3786 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
3787 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
3788 [_AM_DEPENDENCIES([OBJC])],
3789 [m4_define([AC_PROG_OBJC],
3790 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
3791 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
3792 [_AM_DEPENDENCIES([OBJCXX])],
3793 [m4_define([AC_PROG_OBJCXX],
3794 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
3796 m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([no-dependencies])
3797 m4trace:configure.ac:7: -1- m4_pattern_allow([^CTAGS$])
3798 m4trace:configure.ac:7: -1- m4_pattern_allow([^ETAGS$])
3799 m4trace:configure.ac:7: -1- m4_pattern_allow([^CSCOPE$])
3800 m4trace:configure.ac:7: -1- AM_SILENT_RULES
3801 m4trace:configure.ac:7: -1- m4_pattern_allow([^AM_V$])
3802 m4trace:configure.ac:7: -1- AM_SUBST_NOTMAKE([AM_V])
3803 m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([AM_V])
3804 m4trace:configure.ac:7: -1- m4_pattern_allow([^AM_DEFAULT_V$])
3805 m4trace:configure.ac:7: -1- AM_SUBST_NOTMAKE([AM_DEFAULT_V])
3806 m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([AM_DEFAULT_V])
3807 m4trace:configure.ac:7: -1- m4_pattern_allow([^AM_DEFAULT_VERBOSITY$])
3808 m4trace:configure.ac:7: -1- m4_pattern_allow([^AM_BACKSLASH$])
3809 m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([AM_BACKSLASH])
3810 m4trace:configure.ac:11: -1- m4_pattern_allow([^CC$])
3811 m4trace:configure.ac:11: -1- m4_pattern_allow([^CFLAGS$])
3812 m4trace:configure.ac:11: -1- m4_pattern_allow([^LDFLAGS$])
3813 m4trace:configure.ac:11: -1- m4_pattern_allow([^LIBS$])
3814 m4trace:configure.ac:11: -1- m4_pattern_allow([^CPPFLAGS$])
3815 m4trace:configure.ac:11: -1- m4_pattern_allow([^CC$])
3816 m4trace:configure.ac:11: -1- m4_pattern_allow([^CC$])
3817 m4trace:configure.ac:11: -1- m4_pattern_allow([^CC$])
3818 m4trace:configure.ac:11: -1- m4_pattern_allow([^CC$])
3819 m4trace:configure.ac:11: -1- m4_pattern_allow([^ac_ct_CC$])
3820 m4trace:configure.ac:11: -1- m4_pattern_allow([^CC$])
3821 m4trace:configure.ac:11: -1- m4_pattern_allow([^EXEEXT$])
3822 m4trace:configure.ac:11: -1- m4_pattern_allow([^OBJEXT$])
3823 m4trace:configure.ac:11: -1- _AM_PROG_CC_C_O
3824 m4trace:configure.ac:11: -1- AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext])
3825 m4trace:configure.ac:11: -1- _AM_DEPENDENCIES([CC])
3826 m4trace:configure.ac:11: -1- AM_SET_DEPDIR
3827 m4trace:configure.ac:11: -1- m4_pattern_allow([^DEPDIR$])
3828 m4trace:configure.ac:11: -1- AM_OUTPUT_DEPENDENCY_COMMANDS
3829 m4trace:configure.ac:11: -1- AM_MAKE_INCLUDE
3830 m4trace:configure.ac:11: -1- AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
3831 m4trace:configure.ac:11: -1- m4_pattern_allow([^am__include$])
3832 m4trace:configure.ac:11: -1- AM_DEP_TRACK
3833 m4trace:configure.ac:11: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
3834 m4trace:configure.ac:11: -1- m4_pattern_allow([^AMDEP_TRUE$])
3835 m4trace:configure.ac:11: -1- m4_pattern_allow([^AMDEP_FALSE$])
3836 m4trace:configure.ac:11: -1- _AM_SUBST_NOTMAKE([AMDEP_TRUE])
3837 m4trace:configure.ac:11: -1- _AM_SUBST_NOTMAKE([AMDEP_FALSE])
3838 m4trace:configure.ac:11: -1- m4_pattern_allow([^AMDEPBACKSLASH$])
3839 m4trace:configure.ac:11: -1- _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])
3840 m4trace:configure.ac:11: -1- m4_pattern_allow([^am__nodep$])
3841 m4trace:configure.ac:11: -1- _AM_SUBST_NOTMAKE([am__nodep])
3842 m4trace:configure.ac:11: -1- m4_pattern_allow([^CCDEPMODE$])
3843 m4trace:configure.ac:11: -1- AM_CONDITIONAL([am__fastdepCC], [
3844 test "x$enable_dependency_tracking" != xno \
3845 && test "$am_cv_CC_dependencies_compiler_type" = gcc3])
3846 m4trace:configure.ac:11: -1- m4_pattern_allow([^am__fastdepCC_TRUE$])
3847 m4trace:configure.ac:11: -1- m4_pattern_allow([^am__fastdepCC_FALSE$])
3848 m4trace:configure.ac:11: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_TRUE])
3849 m4trace:configure.ac:11: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_FALSE])
3850 m4trace:configure.ac:13: -1- AC_DEFUN([_AC_Header_stdio_h], [m4_divert_text([INIT_PREPARE],
3851 [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list],
3852 [" stdio.h ]AS_TR_SH([stdio.h]) AS_TR_CPP([HAVE_stdio.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)])
3853 m4trace:configure.ac:13: -1- AC_DEFUN([_AC_Header_stdlib_h], [m4_divert_text([INIT_PREPARE],
3854 [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list],
3855 [" stdlib.h ]AS_TR_SH([stdlib.h]) AS_TR_CPP([HAVE_stdlib.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)])
3856 m4trace:configure.ac:13: -1- AC_DEFUN([_AC_Header_string_h], [m4_divert_text([INIT_PREPARE],
3857 [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list],
3858 [" string.h ]AS_TR_SH([string.h]) AS_TR_CPP([HAVE_string.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)])
3859 m4trace:configure.ac:13: -1- AC_DEFUN([_AC_Header_inttypes_h], [m4_divert_text([INIT_PREPARE],
3860 [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list],
3861 [" inttypes.h ]AS_TR_SH([inttypes.h]) AS_TR_CPP([HAVE_inttypes.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)])
3862 m4trace:configure.ac:13: -1- AC_DEFUN([_AC_Header_stdint_h], [m4_divert_text([INIT_PREPARE],
3863 [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list],
3864 [" stdint.h ]AS_TR_SH([stdint.h]) AS_TR_CPP([HAVE_stdint.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)])
3865 m4trace:configure.ac:13: -1- AC_DEFUN([_AC_Header_strings_h], [m4_divert_text([INIT_PREPARE],
3866 [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list],
3867 [" strings.h ]AS_TR_SH([strings.h]) AS_TR_CPP([HAVE_strings.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)])
3868 m4trace:configure.ac:13: -1- AC_DEFUN([_AC_Header_sys_stat_h], [m4_divert_text([INIT_PREPARE],
3869 [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list],
3870 [" sys/stat.h ]AS_TR_SH([sys/stat.h]) AS_TR_CPP([HAVE_sys/stat.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)])
3871 m4trace:configure.ac:13: -1- AC_DEFUN([_AC_Header_sys_types_h], [m4_divert_text([INIT_PREPARE],
3872 [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list],
3873 [" sys/types.h ]AS_TR_SH([sys/types.h]) AS_TR_CPP([HAVE_sys/types.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)])
3874 m4trace:configure.ac:13: -1- AC_DEFUN([_AC_Header_unistd_h], [m4_divert_text([INIT_PREPARE],
3875 [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list],
3876 [" unistd.h ]AS_TR_SH([unistd.h]) AS_TR_CPP([HAVE_unistd.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)])
3877 m4trace:configure.ac:13: -1- m4_pattern_allow([^STDC_HEADERS$])
3878 m4trace:configure.ac:13: -1- AC_DEFUN([_AC_Header_wchar_h], [m4_divert_text([INIT_PREPARE],
3879 [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list],
3880 [" wchar.h ]AS_TR_SH([wchar.h]) AS_TR_CPP([HAVE_wchar.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)])
3881 m4trace:configure.ac:13: -1- AC_DEFUN([_AC_Header_minix_config_h], [m4_divert_text([INIT_PREPARE],
3882 [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list],
3883 [" minix/config.h ]AS_TR_SH([minix/config.h]) AS_TR_CPP([HAVE_minix/config.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)])
3884 m4trace:configure.ac:13: -1- m4_pattern_allow([^_ALL_SOURCE$])
3885 m4trace:configure.ac:13: -1- m4_pattern_allow([^_DARWIN_C_SOURCE$])
3886 m4trace:configure.ac:13: -1- m4_pattern_allow([^_GNU_SOURCE$])
3887 m4trace:configure.ac:13: -1- m4_pattern_allow([^_HPUX_ALT_XOPEN_SOCKET_API$])
3888 m4trace:configure.ac:13: -1- m4_pattern_allow([^_NETBSD_SOURCE$])
3889 m4trace:configure.ac:13: -1- m4_pattern_allow([^_OPENBSD_SOURCE$])
3890 m4trace:configure.ac:13: -1- m4_pattern_allow([^_POSIX_PTHREAD_SEMANTICS$])
3891 m4trace:configure.ac:13: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_ATTRIBS_EXT__$])
3892 m4trace:configure.ac:13: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_BFP_EXT__$])
3893 m4trace:configure.ac:13: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_DFP_EXT__$])
3894 m4trace:configure.ac:13: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_FUNCS_EXT__$])
3895 m4trace:configure.ac:13: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_TYPES_EXT__$])
3896 m4trace:configure.ac:13: -1- m4_pattern_allow([^__STDC_WANT_LIB_EXT2__$])
3897 m4trace:configure.ac:13: -1- m4_pattern_allow([^__STDC_WANT_MATH_SPEC_FUNCS__$])
3898 m4trace:configure.ac:13: -1- m4_pattern_allow([^_TANDEM_SOURCE$])
3899 m4trace:configure.ac:13: -1- m4_pattern_allow([^_MINIX$])
3900 m4trace:configure.ac:13: -1- m4_pattern_allow([^_POSIX_SOURCE$])
3901 m4trace:configure.ac:13: -1- m4_pattern_allow([^_POSIX_1_SOURCE$])
3902 m4trace:configure.ac:13: -1- m4_pattern_allow([^__EXTENSIONS__$])
3903 m4trace:configure.ac:13: -1- m4_pattern_allow([^_XOPEN_SOURCE$])
3904 m4trace:configure.ac:15: -1- m4_pattern_allow([^const$])
3905 m4trace:configure.ac:16: -1- m4_pattern_allow([^size_t$])
3906 m4trace:configure.ac:16: -1- m4_pattern_allow([^HAVE_ALLOCA_H$])
3907 m4trace:configure.ac:16: -1- m4_pattern_allow([^HAVE_ALLOCA$])
3908 m4trace:configure.ac:16: -1- m4_pattern_allow([^ALLOCA$])
3909 m4trace:configure.ac:16: -1- m4_pattern_allow([^C_ALLOCA$])
3910 m4trace:configure.ac:16: -1- m4_pattern_allow([^STACK_DIRECTION$])
3911 m4trace:configure.ac:18: -1- m4_pattern_allow([^PROTOTYPES$])
3912 m4trace:configure.ac:20: -1- _m4_warn([obsolete], [The macro `AC_HEADER_STDC' is obsolete.
3913 You should run autoupdate.], [./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
3914 configure.ac:20: the top level])
3915 m4trace:configure.ac:20: -1- m4_pattern_allow([^GREP$])
3916 m4trace:configure.ac:20: -1- m4_pattern_allow([^EGREP$])
3917 m4trace:configure.ac:21: -1- m4_pattern_allow([^HAVE_STRING_H$])
3918 m4trace:configure.ac:21: -1- m4_pattern_allow([^HAVE_STDLIB_H$])
3919 m4trace:configure.ac:21: -1- m4_pattern_allow([^HAVE_UNISTD_H$])
3920 m4trace:configure.ac:21: -1- m4_pattern_allow([^HAVE_STDARG_H$])
3921 m4trace:configure.ac:21: -1- m4_pattern_allow([^HAVE_MATH_H$])
3922 m4trace:configure.ac:21: -1- m4_pattern_allow([^HAVE_PWD_H$])
3923 m4trace:configure.ac:22: -1- m4_pattern_allow([^HAVE_SYS_TYPES_H$])
3924 m4trace:configure.ac:22: -1- m4_pattern_allow([^HAVE_SYS_STAT_H$])
3925 m4trace:configure.ac:25: -1- m4_pattern_allow([^HAVE_STRCHR$])
3926 m4trace:configure.ac:25: -1- m4_pattern_allow([^HAVE_GETCWD$])
3927 m4trace:configure.ac:26: -1- m4_pattern_allow([^HAVE_STRERROR$])
3928 m4trace:configure.ac:26: -1- m4_pattern_allow([^LIB@&t@OBJS$])
3929 m4trace:configure.ac:26: -1- m4_pattern_allow([^HAVE_MEMMOVE$])
3930 m4trace:configure.ac:26: -1- m4_pattern_allow([^LIB@&t@OBJS$])
3931 m4trace:configure.ac:26: -1- m4_pattern_allow([^HAVE_MEMCPY$])
3932 m4trace:configure.ac:26: -1- m4_pattern_allow([^LIB@&t@OBJS$])
3933 m4trace:configure.ac:26: -1- m4_pattern_allow([^HAVE_STRTOUL$])
3934 m4trace:configure.ac:26: -1- m4_pattern_allow([^LIB@&t@OBJS$])
3935 m4trace:configure.ac:27: -1- AC_DEFUN([_AC_Func_vprintf], [m4_divert_text([INIT_PREPARE],
3936 [AS_VAR_APPEND([ac_func_]]_AC_LANG_ABBREV[[_list],
3937 [" vprintf ]AS_TR_CPP([HAVE_vprintf])["])])_AC_FUNCS_EXPANSION(_AC_LANG_ABBREV)])
3938 m4trace:configure.ac:27: -1- m4_pattern_allow([^HAVE_DOPRNT$])
3939 m4trace:configure.ac:31: -1- m4_pattern_allow([^HAVE_LIBSUN$])
3940 m4trace:configure.ac:34: -1- m4_pattern_allow([^HAVE_LIBSOCKET$])
3941 m4trace:configure.ac:40: -1- m4_pattern_allow([^RANLIB$])
3942 m4trace:configure.ac:41: -1- m4_pattern_allow([^YACC$])
3943 m4trace:configure.ac:41: -1- m4_pattern_allow([^YACC$])
3944 m4trace:configure.ac:41: -1- m4_pattern_allow([^YFLAGS$])
3945 m4trace:configure.ac:42: -1- AM_PROG_LEX
3946 m4trace:configure.ac:42: -1- _m4_warn([obsolete], [AC_PROG_LEX without either yywrap or noyywrap is obsolete], [./lib/autoconf/programs.m4:716: _AC_PROG_LEX is expanded from...
3947 ./lib/autoconf/programs.m4:709: AC_PROG_LEX is expanded from...
3948 /usr/share/aclocal-1.16/lex.m4:13: AM_PROG_LEX is expanded from...
3949 configure.ac:42: the top level])
3950 m4trace:configure.ac:42: -1- m4_pattern_allow([^LEX$])
3951 m4trace:configure.ac:42: -1- m4_pattern_allow([^LEX_OUTPUT_ROOT$])
3952 m4trace:configure.ac:42: -1- m4_pattern_allow([^LEXLIB$])
3953 m4trace:configure.ac:42: -1- m4_pattern_allow([^YYTEXT_POINTER$])
3954 m4trace:configure.ac:68: -1- m4_pattern_allow([^MEDIA$])
3955 m4trace:configure.ac:85: -1- m4_pattern_allow([^ENCODING$])
3956 m4trace:configure.ac:89: -1- m4_pattern_allow([^SPOOLER$])
3957 m4trace:configure.ac:90: -1- m4_pattern_allow([^SPOOLER$])
3958 m4trace:configure.ac:114: -1- m4_pattern_allow([^PSLEVEL$])
3959 m4trace:configure.ac:117: -1- AM_GNU_GETTEXT([external])
3960 m4trace:configure.ac:117: -1- AM_GNU_GETTEXT_NEED([])
3961 m4trace:configure.ac:117: -1- AM_PO_SUBDIRS
3962 m4trace:configure.ac:117: -1- m4_pattern_allow([^SED$])
3963 m4trace:configure.ac:117: -1- AM_NLS
3964 m4trace:configure.ac:117: -1- m4_pattern_allow([^USE_NLS$])
3965 m4trace:configure.ac:117: -1- m4_pattern_allow([^GETTEXT_MACRO_VERSION$])
3966 m4trace:configure.ac:117: -1- AM_PATH_PROG_WITH_TEST([MSGFMT], [msgfmt], [$ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
3967 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], [:])
3968 m4trace:configure.ac:117: -1- m4_pattern_allow([^MSGFMT$])
3969 m4trace:configure.ac:117: -1- m4_pattern_allow([^GMSGFMT$])
3970 m4trace:configure.ac:117: -1- m4_pattern_allow([^GMSGFMT_015$])
3971 m4trace:configure.ac:117: -1- AM_PATH_PROG_WITH_TEST([XGETTEXT], [xgettext], [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
3972 (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)], [:])
3973 m4trace:configure.ac:117: -1- m4_pattern_allow([^XGETTEXT$])
3974 m4trace:configure.ac:117: -1- m4_pattern_allow([^XGETTEXT_015$])
3975 m4trace:configure.ac:117: -1- AM_PATH_PROG_WITH_TEST([MSGMERGE], [msgmerge], [$ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1], [:])
3976 m4trace:configure.ac:117: -1- m4_pattern_allow([^MSGMERGE$])
3977 m4trace:configure.ac:117: -1- m4_pattern_allow([^MSGMERGE_FOR_MSGFMT_OPTION$])
3978 m4trace:configure.ac:117: -1- m4_pattern_allow([^XGETTEXT_EXTRA_OPTIONS$])
3979 m4trace:configure.ac:117: -1- AC_LIB_PREPARE_PREFIX
3980 m4trace:configure.ac:117: -1- AC_LIB_RPATH
3981 m4trace:configure.ac:117: -1- AC_LIB_PROG_LD
3982 m4trace:configure.ac:117: -1- m4_pattern_allow([^build$])
3983 m4trace:configure.ac:117: -1- m4_pattern_allow([^build_cpu$])
3984 m4trace:configure.ac:117: -1- m4_pattern_allow([^build_vendor$])
3985 m4trace:configure.ac:117: -1- m4_pattern_allow([^build_os$])
3986 m4trace:configure.ac:117: -1- m4_pattern_allow([^host$])
3987 m4trace:configure.ac:117: -1- m4_pattern_allow([^host_cpu$])
3988 m4trace:configure.ac:117: -1- m4_pattern_allow([^host_vendor$])
3989 m4trace:configure.ac:117: -1- m4_pattern_allow([^host_os$])
3990 m4trace:configure.ac:117: -1- AC_LIB_PROG_LD_GNU
3991 m4trace:configure.ac:117: -1- AM_ICONV_LINKFLAGS_BODY
3992 m4trace:configure.ac:117: -1- AC_LIB_LINKFLAGS_BODY([iconv])
3993 m4trace:configure.ac:117: -1- AC_LIB_PREPARE_MULTILIB
3994 m4trace:configure.ac:117: -1- gl_HOST_CPU_C_ABI_32BIT
3995 m4trace:configure.ac:117: -1- m4_pattern_allow([^CPP$])
3996 m4trace:configure.ac:117: -1- m4_pattern_allow([^CPPFLAGS$])
3997 m4trace:configure.ac:117: -1- m4_pattern_allow([^CPP$])
3998 m4trace:configure.ac:117: -1- AC_LIB_WITH_FINAL_PREFIX([
3999 eval additional_includedir=\"$includedir\"
4000 eval additional_libdir=\"$libdir\"
4001 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
4002 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
4004 m4trace:configure.ac:117: -1- AC_LIB_WITH_FINAL_PREFIX([
4005 eval additional_includedir=\"$includedir\"
4006 eval additional_libdir=\"$libdir\"
4007 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
4008 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
4010 m4trace:configure.ac:117: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
4011 m4trace:configure.ac:117: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
4012 m4trace:configure.ac:117: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
4013 m4trace:configure.ac:117: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
4014 m4trace:configure.ac:117: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
4015 m4trace:configure.ac:117: -1- gt_INTL_MACOSX
4016 m4trace:configure.ac:117: -1- m4_pattern_allow([^HAVE_CFPREFERENCESCOPYAPPVALUE$])
4017 m4trace:configure.ac:117: -1- m4_pattern_allow([^HAVE_CFLOCALECOPYPREFERREDLANGUAGES$])
4018 m4trace:configure.ac:117: -1- m4_pattern_allow([^INTL_MACOSX_LIBS$])
4019 m4trace:configure.ac:117: -1- AM_ICONV_LINK
4020 m4trace:configure.ac:117: -1- AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
4021 m4trace:configure.ac:117: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
4022 m4trace:configure.ac:117: -1- m4_pattern_allow([^HAVE_ICONV$])
4023 m4trace:configure.ac:117: -1- m4_pattern_allow([^LIBICONV$])
4024 m4trace:configure.ac:117: -1- m4_pattern_allow([^LTLIBICONV$])
4025 m4trace:configure.ac:117: -1- AC_LIB_LINKFLAGS_BODY([intl])
4026 m4trace:configure.ac:117: -1- AC_LIB_WITH_FINAL_PREFIX([
4027 eval additional_includedir=\"$includedir\"
4028 eval additional_libdir=\"$libdir\"
4029 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
4030 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
4032 m4trace:configure.ac:117: -1- AC_LIB_WITH_FINAL_PREFIX([
4033 eval additional_includedir=\"$includedir\"
4034 eval additional_libdir=\"$libdir\"
4035 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
4036 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
4038 m4trace:configure.ac:117: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
4039 m4trace:configure.ac:117: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
4040 m4trace:configure.ac:117: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
4041 m4trace:configure.ac:117: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
4042 m4trace:configure.ac:117: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
4043 m4trace:configure.ac:117: -1- m4_pattern_allow([^ENABLE_NLS$])
4044 m4trace:configure.ac:117: -1- AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
4045 m4trace:configure.ac:117: -1- AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
4046 m4trace:configure.ac:117: -1- m4_pattern_allow([^HAVE_GETTEXT$])
4047 m4trace:configure.ac:117: -1- m4_pattern_allow([^HAVE_DCGETTEXT$])
4048 m4trace:configure.ac:117: -1- m4_pattern_allow([^INTLLIBS$])
4049 m4trace:configure.ac:117: -1- m4_pattern_allow([^LIBINTL$])
4050 m4trace:configure.ac:117: -1- m4_pattern_allow([^LTLIBINTL$])
4051 m4trace:configure.ac:117: -1- m4_pattern_allow([^POSUB$])
4052 m4trace:configure.ac:118: -1- AM_GNU_GETTEXT_VERSION([0.21.1])
4053 m4trace:configure.ac:121: -1- m4_pattern_allow([^PATH_SEPARATOR$])
4054 m4trace:configure.ac:123: -1- m4_pattern_allow([^PATH_SEPARATOR_STR$])
4055 m4trace:configure.ac:132: -1- m4_pattern_allow([^PERL$])
4056 m4trace:configure.ac:136: -1- m4_pattern_allow([^CFLAGS$])
4057 m4trace:configure.ac:137: -1- m4_pattern_allow([^LDFLAGS$])
4058 m4trace:configure.ac:153: -1- m4_pattern_allow([^LIB@&t@OBJS$])
4059 m4trace:configure.ac:153: -1- m4_pattern_allow([^LTLIBOBJS$])
4060 m4trace:configure.ac:153: -1- AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])
4061 m4trace:configure.ac:153: -1- m4_pattern_allow([^am__EXEEXT_TRUE$])
4062 m4trace:configure.ac:153: -1- m4_pattern_allow([^am__EXEEXT_FALSE$])
4063 m4trace:configure.ac:153: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_TRUE])
4064 m4trace:configure.ac:153: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_FALSE])
4065 m4trace:configure.ac:153: -1- _AC_AM_CONFIG_HEADER_HOOK(["$ac_file"])
4066 m4trace:configure.ac:153: -1- _AM_OUTPUT_DEPENDENCY_COMMANDS
4067 m4trace:configure.ac:153: -1- AM_RUN_LOG([cd "$am_dirpart" \
4068 && sed -e '/# am--include-marker/d' "$am_filepart" \
4069 | $MAKE -f - am--depfiles])