2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ppastats 0.0.x.
5 # Report bugs to <jeanfi@gmail.com>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir=.
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
240 if test "x$CONFIG_SHELL" != x; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 *v*x* | *x*v* ) as_opts=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and jeanfi@gmail.com
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir=./$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 as_val=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status=$1; test $as_status -eq 0 && as_status=1
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 elif ln conf$$.file conf$$ 2>/dev/null; then
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
546 test -d ./-p && rmdir ./-p
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix=/usr/local
573 ac_config_libobj_dir=.
580 # Identity of this package.
581 PACKAGE_NAME='ppastats'
582 PACKAGE_TARNAME='ppastats'
583 PACKAGE_VERSION='0.0.x'
584 PACKAGE_STRING='ppastats 0.0.x'
585 PACKAGE_BUGREPORT='jeanfi@gmail.com'
586 PACKAGE_URL='http://wpitchoune.net/ppastats'
588 ac_unique_file="src/main.c"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
603 # ifdef HAVE_STDLIB_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
626 ac_subst_vars='am__EXEEXT_FALSE
659 XGETTEXT_EXTRA_OPTIONS
667 GETTEXT_MACRO_VERSION
699 INSTALL_STRIP_PROGRAM
741 program_transform_name
754 enable_option_checking
756 enable_dependency_tracking
764 ac_precious_vars='build_alias
783 # Initialize some variables set by options.
785 ac_init_version=false
786 ac_unrecognized_opts=
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
797 program_transform_name=s,x,x,
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir='${datarootdir}/info'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\$ac_option
843 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 # Accept the important Cygnus configure options, so we can diagnose typos.
850 case $ac_dashdash$ac_option in
854 -bindir | --bindir | --bindi | --bind | --bin | --bi)
856 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859 -build | --build | --buil | --bui | --bu)
860 ac_prev=build_alias ;;
861 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862 build_alias=$ac_optarg ;;
864 -cache-file | --cache-file | --cache-fil | --cache-fi \
865 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866 ac_prev=cache_file ;;
867 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869 cache_file=$ac_optarg ;;
872 cache_file=config.cache ;;
874 -datadir | --datadir | --datadi | --datad)
876 -datadir=* | --datadir=* | --datadi=* | --datad=*)
877 datadir=$ac_optarg ;;
879 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880 | --dataroo | --dataro | --datar)
881 ac_prev=datarootdir ;;
882 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884 datarootdir=$ac_optarg ;;
886 -disable-* | --disable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 as_fn_error $? "invalid feature name: $ac_useropt"
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
900 eval enable_$ac_useropt=no ;;
902 -docdir | --docdir | --docdi | --doc | --do)
904 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 -enable-* | --enable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
926 eval enable_$ac_useropt=\$ac_optarg ;;
928 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930 | --exec | --exe | --ex)
931 ac_prev=exec_prefix ;;
932 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934 | --exec=* | --exe=* | --ex=*)
935 exec_prefix=$ac_optarg ;;
937 -gas | --gas | --ga | --g)
938 # Obsolete; use --with-gas.
941 -help | --help | --hel | --he | -h)
943 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944 ac_init_help=recursive ;;
945 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946 ac_init_help=short ;;
948 -host | --host | --hos | --ho)
949 ac_prev=host_alias ;;
950 -host=* | --host=* | --hos=* | --ho=*)
951 host_alias=$ac_optarg ;;
953 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957 htmldir=$ac_optarg ;;
959 -includedir | --includedir | --includedi | --included | --include \
960 | --includ | --inclu | --incl | --inc)
961 ac_prev=includedir ;;
962 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963 | --includ=* | --inclu=* | --incl=* | --inc=*)
964 includedir=$ac_optarg ;;
966 -infodir | --infodir | --infodi | --infod | --info | --inf)
968 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969 infodir=$ac_optarg ;;
971 -libdir | --libdir | --libdi | --libd)
973 -libdir=* | --libdir=* | --libdi=* | --libd=*)
976 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977 | --libexe | --libex | --libe)
978 ac_prev=libexecdir ;;
979 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980 | --libexe=* | --libex=* | --libe=*)
981 libexecdir=$ac_optarg ;;
983 -localedir | --localedir | --localedi | --localed | --locale)
985 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986 localedir=$ac_optarg ;;
988 -localstatedir | --localstatedir | --localstatedi | --localstated \
989 | --localstate | --localstat | --localsta | --localst | --locals)
990 ac_prev=localstatedir ;;
991 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993 localstatedir=$ac_optarg ;;
995 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 -nfp | --nfp | --nf)
1001 # Obsolete; use --without-fp.
1004 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005 | --no-cr | --no-c | -n)
1008 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014 | --oldin | --oldi | --old | --ol | --o)
1015 ac_prev=oldincludedir ;;
1016 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019 oldincludedir=$ac_optarg ;;
1021 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024 prefix=$ac_optarg ;;
1026 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027 | --program-pre | --program-pr | --program-p)
1028 ac_prev=program_prefix ;;
1029 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031 program_prefix=$ac_optarg ;;
1033 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034 | --program-suf | --program-su | --program-s)
1035 ac_prev=program_suffix ;;
1036 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038 program_suffix=$ac_optarg ;;
1040 -program-transform-name | --program-transform-name \
1041 | --program-transform-nam | --program-transform-na \
1042 | --program-transform-n | --program-transform- \
1043 | --program-transform | --program-transfor \
1044 | --program-transfo | --program-transf \
1045 | --program-trans | --program-tran \
1046 | --progr-tra | --program-tr | --program-t)
1047 ac_prev=program_transform_name ;;
1048 -program-transform-name=* | --program-transform-name=* \
1049 | --program-transform-nam=* | --program-transform-na=* \
1050 | --program-transform-n=* | --program-transform-=* \
1051 | --program-transform=* | --program-transfor=* \
1052 | --program-transfo=* | --program-transf=* \
1053 | --program-trans=* | --program-tran=* \
1054 | --progr-tra=* | --program-tr=* | --program-t=*)
1055 program_transform_name=$ac_optarg ;;
1057 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060 pdfdir=$ac_optarg ;;
1062 -psdir | --psdir | --psdi | --psd | --ps)
1064 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1071 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075 sbindir=$ac_optarg ;;
1077 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079 | --sharedst | --shareds | --shared | --share | --shar \
1081 ac_prev=sharedstatedir ;;
1082 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086 sharedstatedir=$ac_optarg ;;
1088 -site | --site | --sit)
1090 -site=* | --site=* | --sit=*)
1093 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096 srcdir=$ac_optarg ;;
1098 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099 | --syscon | --sysco | --sysc | --sys | --sy)
1100 ac_prev=sysconfdir ;;
1101 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103 sysconfdir=$ac_optarg ;;
1105 -target | --target | --targe | --targ | --tar | --ta | --t)
1106 ac_prev=target_alias ;;
1107 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108 target_alias=$ac_optarg ;;
1110 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113 -version | --version | --versio | --versi | --vers | -V)
1114 ac_init_version=: ;;
1117 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error $? "invalid package name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1130 eval with_$ac_useropt=\$ac_optarg ;;
1132 -without-* | --without-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1146 eval with_$ac_useropt=no ;;
1149 # Obsolete; use --with-x.
1152 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153 | --x-incl | --x-inc | --x-in | --x-i)
1154 ac_prev=x_includes ;;
1155 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157 x_includes=$ac_optarg ;;
1159 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161 ac_prev=x_libraries ;;
1162 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164 x_libraries=$ac_optarg ;;
1166 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167 Try \`$0 --help' for more information"
1171 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172 # Reject names that are not valid shell variable names.
1173 case $ac_envvar in #(
1174 '' | [0-9]* | *[!_$as_cr_alnum]* )
1175 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1177 eval $ac_envvar=\$ac_optarg
1178 export $ac_envvar ;;
1181 # FIXME: should be removed in autoconf 3.0.
1182 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1191 if test -n "$ac_prev"; then
1192 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193 as_fn_error $? "missing argument to $ac_option"
1196 if test -n "$ac_unrecognized_opts"; then
1197 case $enable_option_checking in
1199 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1200 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204 # Check all directory arguments for consistency.
1205 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1210 eval ac_val=\$$ac_var
1211 # Remove trailing slashes.
1214 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215 eval $ac_var=\$ac_val;;
1217 # Be sure to have absolute directory names.
1219 [\\/$]* | ?:[\\/]* ) continue;;
1220 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1230 target=$target_alias
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234 if test "x$build_alias" = x; then
1235 cross_compiling=maybe
1236 elif test "x$build_alias" != "x$host_alias"; then
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244 test "$silent" = yes && exec 6>/dev/null
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 as_fn_error $? "working directory cannot be determined"
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 as_fn_error $? "pwd does not report name of working directory"
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$as_myself" ||
1260 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264 $as_echo X"$as_myself" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1287 ac_srcdir_defaulted=no
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 # Report the --help message.
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1321 \`configure' configures ppastats 0.0.x to adapt to many kinds of systems.
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1328 Defaults for the options are specified in brackets.
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking ...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1352 For better control, use the options below.
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/ppastats]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1384 --x-includes=DIR X include files are in DIR
1385 --x-libraries=DIR X library files are in DIR
1388 --build=BUILD configure for building on BUILD [guessed]
1389 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 if test -n "$ac_init_help"; then
1394 case $ac_init_help in
1395 short | recursive ) echo "Configuration of ppastats 0.0.x:";;
1400 --disable-option-checking ignore unrecognized --enable/--with options
1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1403 --enable-silent-rules less verbose build output (undo: "make V=1")
1404 --disable-silent-rules verbose build output (undo: "make V=0")
1405 --enable-dependency-tracking
1406 do not reject slow dependency extractors
1407 --disable-dependency-tracking
1408 speeds up one-time build
1409 --disable-nls do not use Native Language Support
1410 --disable-rpath do not hardcode runtime library paths
1413 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1414 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1415 --with-gnu-ld assume the C compiler uses GNU ld default=no
1416 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1417 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1418 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1419 --without-libintl-prefix don't search for libintl in includedir and libdir
1420 --with-x use the X Window System
1422 Some influential environment variables:
1423 CC C compiler command
1424 CFLAGS C compiler flags
1425 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1426 nonstandard directory <lib dir>
1427 LIBS libraries to pass to the linker, e.g. -l<library>
1428 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1429 you have headers in a nonstandard directory <include dir>
1431 XMKMF Path to xmkmf, Makefile generator for X Window System
1432 PKG_CONFIG path to pkg-config utility
1434 directories to add to pkg-config's search path
1436 path overriding pkg-config's built-in search path
1437 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1438 CURL_LIBS linker flags for CURL, overriding pkg-config
1439 JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1440 JSON_LIBS linker flags for JSON, overriding pkg-config
1442 Use these variables to override the choices made by `configure' or to help
1443 it to find libraries and programs with nonstandard names/locations.
1445 Report bugs to <jeanfi@gmail.com>.
1446 ppastats home page: <http://wpitchoune.net/ppastats>.
1451 if test "$ac_init_help" = "recursive"; then
1452 # If there are subdirs, report their specific --help.
1453 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1454 test -d "$ac_dir" ||
1455 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1463 # A ".." for each directory in $ac_dir_suffix.
1464 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1465 case $ac_top_builddir_sub in
1466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1470 ac_abs_top_builddir=$ac_pwd
1471 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1472 # for backward compatibility:
1473 ac_top_builddir=$ac_top_build_prefix
1476 .) # We are building in place.
1478 ac_top_srcdir=$ac_top_builddir_sub
1479 ac_abs_top_srcdir=$ac_pwd ;;
1480 [\\/]* | ?:[\\/]* ) # Absolute name.
1481 ac_srcdir=$srcdir$ac_dir_suffix;
1482 ac_top_srcdir=$srcdir
1483 ac_abs_top_srcdir=$srcdir ;;
1485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1486 ac_top_srcdir=$ac_top_build_prefix$srcdir
1487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1489 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1491 cd "$ac_dir" || { ac_status=$?; continue; }
1492 # Check for guested configure.
1493 if test -f "$ac_srcdir/configure.gnu"; then
1495 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1496 elif test -f "$ac_srcdir/configure"; then
1498 $SHELL "$ac_srcdir/configure" --help=recursive
1500 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502 cd "$ac_pwd" || { ac_status=$?; break; }
1506 test -n "$ac_init_help" && exit $ac_status
1507 if $ac_init_version; then
1509 ppastats configure 0.0.x
1510 generated by GNU Autoconf 2.69
1512 Copyright (C) 2012 Free Software Foundation, Inc.
1513 This configure script is free software; the Free Software Foundation
1514 gives unlimited permission to copy, distribute and modify it.
1519 ## ------------------------ ##
1520 ## Autoconf initialization. ##
1521 ## ------------------------ ##
1523 # ac_fn_c_try_compile LINENO
1524 # --------------------------
1525 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_c_try_compile ()
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext
1530 if { { ac_try="$ac_compile"
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.$ac_objext; then :
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557 as_fn_set_status $ac_retval
1559 } # ac_fn_c_try_compile
1561 # ac_fn_c_try_cpp LINENO
1562 # ----------------------
1563 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 if { { ac_try="$ac_cpp conftest.$ac_ext"
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } > conftest.i && {
1583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594 as_fn_set_status $ac_retval
1598 # ac_fn_c_try_link LINENO
1599 # -----------------------
1600 # Try to link conftest.$ac_ext, and return whether this succeeded.
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 rm -f conftest.$ac_objext conftest$ac_exeext
1605 if { { ac_try="$ac_link"
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_link") 2>conftest.err
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } && {
1621 test -z "$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 } && test -s conftest$ac_exeext && {
1624 test "$cross_compiling" = yes ||
1625 test -x conftest$ac_exeext
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1634 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1635 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1636 # interfere with the next link command; also delete a directory that is
1637 # left behind by Apple's compiler. We do this before executing the actions.
1638 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 as_fn_set_status $ac_retval
1642 } # ac_fn_c_try_link
1644 # ac_fn_c_try_run LINENO
1645 # ----------------------
1646 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1647 # that executables *can* be run.
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 if { { ac_try="$ac_link"
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_link") 2>&5
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1662 { { case "(($ac_try" in
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_try") 2>&5
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; }; }; then :
1674 $as_echo "$as_me: program exited with status $ac_status" >&5
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1678 ac_retval=$ac_status
1680 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 as_fn_set_status $ac_retval
1686 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1687 # -------------------------------------------------------
1688 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1689 # the include files in INCLUDES and setting the cache variable VAR
1691 ac_fn_c_check_header_mongrel ()
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if eval \${$3+:} false; then :
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 $as_echo_n "checking for $2... " >&6; }
1697 if eval \${$3+:} false; then :
1698 $as_echo_n "(cached) " >&6
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702 $as_echo "$ac_res" >&6; }
1704 # Is the header compilable?
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1706 $as_echo_n "checking $2 usability... " >&6; }
1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708 /* end confdefs.h. */
1712 if ac_fn_c_try_compile "$LINENO"; then :
1713 ac_header_compiler=yes
1715 ac_header_compiler=no
1717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1719 $as_echo "$ac_header_compiler" >&6; }
1721 # Is the header present?
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1723 $as_echo_n "checking $2 presence... " >&6; }
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h. */
1728 if ac_fn_c_try_cpp "$LINENO"; then :
1729 ac_header_preproc=yes
1731 ac_header_preproc=no
1733 rm -f conftest.err conftest.i conftest.$ac_ext
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1735 $as_echo "$ac_header_preproc" >&6; }
1737 # So? What about this header?
1738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1741 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1743 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1747 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1749 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1751 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1753 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1755 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1756 ( $as_echo "## ------------------------------- ##
1757 ## Report this to jeanfi@gmail.com ##
1758 ## ------------------------------- ##"
1759 ) | sed "s/^/$as_me: WARNING: /" >&2
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if eval \${$3+:} false; then :
1765 $as_echo_n "(cached) " >&6
1767 eval "$3=\$ac_header_compiler"
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771 $as_echo "$ac_res" >&6; }
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 } # ac_fn_c_check_header_mongrel
1777 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1778 # -------------------------------------------------------
1779 # Tests whether HEADER exists and can be compiled using the include files in
1780 # INCLUDES, setting the cache variable VAR accordingly.
1781 ac_fn_c_check_header_compile ()
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if eval \${$3+:} false; then :
1787 $as_echo_n "(cached) " >&6
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1794 if ac_fn_c_try_compile "$LINENO"; then :
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 } # ac_fn_c_check_header_compile
1808 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1809 # -------------------------------------------
1810 # Tests whether TYPE exists after having included INCLUDES, setting cache
1811 # variable VAR accordingly.
1812 ac_fn_c_check_type ()
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if eval \${$3+:} false; then :
1818 $as_echo_n "(cached) " >&6
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1833 if ac_fn_c_try_compile "$LINENO"; then :
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1846 if ac_fn_c_try_compile "$LINENO"; then :
1851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 } # ac_fn_c_check_type
1861 cat >config.log <<_ACEOF
1862 This file contains any messages produced by compilers while
1863 running configure, to aid debugging if configure makes a mistake.
1865 It was created by ppastats $as_me 0.0.x, which was
1866 generated by GNU Autoconf 2.69. Invocation command line was
1878 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1879 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1880 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1881 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1882 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1884 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1885 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1887 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1888 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1889 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1890 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1891 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1892 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1893 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901 test -z "$as_dir" && as_dir=.
1902 $as_echo "PATH: $as_dir"
1918 # Keep a trace of the command line.
1919 # Strip out --no-create and --no-recursion so they do not pile up.
1920 # Strip out --silent because we don't want to record it for future runs.
1921 # Also quote any args containing shell meta-characters.
1922 # Make two passes to allow for proper duplicate-argument suppression.
1926 ac_must_keep_next=false
1932 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1933 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1934 | -silent | --silent | --silen | --sile | --sil)
1937 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1940 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1942 as_fn_append ac_configure_args1 " '$ac_arg'"
1943 if test $ac_must_keep_next = true; then
1944 ac_must_keep_next=false # Got value, back to normal.
1947 *=* | --config-cache | -C | -disable-* | --disable-* \
1948 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1949 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1950 | -with-* | --with-* | -without-* | --without-* | --x)
1951 case "$ac_configure_args0 " in
1952 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1955 -* ) ac_must_keep_next=true ;;
1958 as_fn_append ac_configure_args " '$ac_arg'"
1963 { ac_configure_args0=; unset ac_configure_args0;}
1964 { ac_configure_args1=; unset ac_configure_args1;}
1966 # When interrupted or exit'd, cleanup temporary files, and complete
1967 # config.log. We remove comments because anyway the quotes in there
1968 # would cause problems or look ugly.
1969 # WARNING: Use '\'' to represent an apostrophe within the trap.
1970 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1971 trap 'exit_status=$?
1972 # Save into config.log some information that might help in debugging.
1976 $as_echo "## ---------------- ##
1977 ## Cache variables. ##
1978 ## ---------------- ##"
1980 # The following way of writing the cache mishandles newlines in values,
1982 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1983 eval ac_val=\$$ac_var
1987 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1988 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1991 _ | IFS | as_nl) ;; #(
1992 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1993 *) { eval $ac_var=; unset $ac_var;} ;;
1998 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1999 *${as_nl}ac_space=\ *)
2001 "s/'\''/'\''\\\\'\'''\''/g;
2002 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2005 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2012 $as_echo "## ----------------- ##
2013 ## Output variables. ##
2014 ## ----------------- ##"
2016 for ac_var in $ac_subst_vars
2018 eval ac_val=\$$ac_var
2020 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2022 $as_echo "$ac_var='\''$ac_val'\''"
2026 if test -n "$ac_subst_files"; then
2027 $as_echo "## ------------------- ##
2028 ## File substitutions. ##
2029 ## ------------------- ##"
2031 for ac_var in $ac_subst_files
2033 eval ac_val=\$$ac_var
2035 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2037 $as_echo "$ac_var='\''$ac_val'\''"
2042 if test -s confdefs.h; then
2043 $as_echo "## ----------- ##
2050 test "$ac_signal" != 0 &&
2051 $as_echo "$as_me: caught signal $ac_signal"
2052 $as_echo "$as_me: exit $exit_status"
2054 rm -f core *.core core.conftest.* &&
2055 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2058 for ac_signal in 1 2 13 15; do
2059 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2063 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2064 rm -f -r conftest* confdefs.h
2066 $as_echo "/* confdefs.h */" > confdefs.h
2068 # Predefined preprocessor variables.
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_NAME "$PACKAGE_NAME"
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2082 cat >>confdefs.h <<_ACEOF
2083 #define PACKAGE_STRING "$PACKAGE_STRING"
2086 cat >>confdefs.h <<_ACEOF
2087 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2090 cat >>confdefs.h <<_ACEOF
2091 #define PACKAGE_URL "$PACKAGE_URL"
2095 # Let the site file select an alternate cache file if it wants to.
2096 # Prefer an explicitly selected file to automatically selected ones.
2099 if test -n "$CONFIG_SITE"; then
2100 # We do not want a PATH search for config.site.
2101 case $CONFIG_SITE in #((
2102 -*) ac_site_file1=./$CONFIG_SITE;;
2103 */*) ac_site_file1=$CONFIG_SITE;;
2104 *) ac_site_file1=./$CONFIG_SITE;;
2106 elif test "x$prefix" != xNONE; then
2107 ac_site_file1=$prefix/share/config.site
2108 ac_site_file2=$prefix/etc/config.site
2110 ac_site_file1=$ac_default_prefix/share/config.site
2111 ac_site_file2=$ac_default_prefix/etc/config.site
2113 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2115 test "x$ac_site_file" = xNONE && continue
2116 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2118 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2119 sed 's/^/| /' "$ac_site_file" >&5
2121 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2123 as_fn_error $? "failed to load site script $ac_site_file
2124 See \`config.log' for more details" "$LINENO" 5; }
2128 if test -r "$cache_file"; then
2129 # Some versions of bash will fail to source /dev/null (special files
2130 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2131 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2133 $as_echo "$as_me: loading cache $cache_file" >&6;}
2135 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2136 *) . "./$cache_file";;
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2141 $as_echo "$as_me: creating cache $cache_file" >&6;}
2145 gt_needs="$gt_needs "
2146 # Check that the precious variables saved in the cache have kept the same
2148 ac_cache_corrupted=false
2149 for ac_var in $ac_precious_vars; do
2150 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2151 eval ac_new_set=\$ac_env_${ac_var}_set
2152 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2153 eval ac_new_val=\$ac_env_${ac_var}_value
2154 case $ac_old_set,$ac_new_set in
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2157 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2158 ac_cache_corrupted=: ;;
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2161 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2162 ac_cache_corrupted=: ;;
2165 if test "x$ac_old_val" != "x$ac_new_val"; then
2166 # differences in whitespace do not lead to failure.
2167 ac_old_val_w=`echo x $ac_old_val`
2168 ac_new_val_w=`echo x $ac_new_val`
2169 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2171 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2172 ac_cache_corrupted=:
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2175 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2176 eval $ac_var=\$ac_old_val
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2179 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2181 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2184 # Pass precious variables to config.status.
2185 if test "$ac_new_set" = set; then
2187 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2188 *) ac_arg=$ac_var=$ac_new_val ;;
2190 case " $ac_configure_args " in
2191 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2192 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2196 if $ac_cache_corrupted; then
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2200 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2201 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2203 ## -------------------- ##
2204 ## Main body of script. ##
2205 ## -------------------- ##
2208 ac_cpp='$CPP $CPPFLAGS'
2209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2215 am__api_version='1.13'
2218 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2219 if test -f "$ac_dir/install-sh"; then
2221 ac_install_sh="$ac_aux_dir/install-sh -c"
2223 elif test -f "$ac_dir/install.sh"; then
2225 ac_install_sh="$ac_aux_dir/install.sh -c"
2227 elif test -f "$ac_dir/shtool"; then
2229 ac_install_sh="$ac_aux_dir/shtool install -c"
2233 if test -z "$ac_aux_dir"; then
2234 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2237 # These three variables are undocumented and unsupported,
2238 # and are intended to be withdrawn in a future Autoconf release.
2239 # They can cause serious problems if a builder's source tree is in a directory
2240 # whose full name contains unusual characters.
2241 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2242 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2243 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2246 # Find a good install program. We prefer a C program (faster),
2247 # so one script is as good as another. But avoid the broken or
2248 # incompatible versions:
2249 # SysV /etc/install, /usr/sbin/install
2250 # SunOS /usr/etc/install
2251 # IRIX /sbin/install
2253 # AmigaOS /C/install, which installs bootblocks on floppy discs
2254 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2255 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2256 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2257 # OS/2's system install, which has a completely different semantic
2258 # ./install, which can be erroneously created by make from ./install.sh.
2259 # Reject install programs that cannot install multiple files.
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2261 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2262 if test -z "$INSTALL"; then
2263 if ${ac_cv_path_install+:} false; then :
2264 $as_echo_n "(cached) " >&6
2266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270 test -z "$as_dir" && as_dir=.
2271 # Account for people who put trailing slashes in PATH elements.
2272 case $as_dir/ in #((
2273 ./ | .// | /[cC]/* | \
2274 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2275 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2278 # OSF1 and SCO ODT 3.0 have their own names for install.
2279 # Don't use installbsd from OSF since it installs stuff as root
2281 for ac_prog in ginstall scoinst install; do
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2284 if test $ac_prog = install &&
2285 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2286 # AIX install. It has an incompatible calling convention.
2288 elif test $ac_prog = install &&
2289 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2290 # program-specific install script used by HP pwplus--don't use.
2293 rm -rf conftest.one conftest.two conftest.dir
2294 echo one > conftest.one
2295 echo two > conftest.two
2297 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2298 test -s conftest.one && test -s conftest.two &&
2299 test -s conftest.dir/conftest.one &&
2300 test -s conftest.dir/conftest.two
2302 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2315 rm -rf conftest.one conftest.two conftest.dir
2318 if test "${ac_cv_path_install+set}" = set; then
2319 INSTALL=$ac_cv_path_install
2321 # As a last resort, use the slow shell script. Don't cache a
2322 # value for INSTALL within a source directory, because that will
2323 # break other packages using the cache if that directory is
2324 # removed, or if the value is a relative name.
2325 INSTALL=$ac_install_sh
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2329 $as_echo "$INSTALL" >&6; }
2331 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2332 # It thinks the first close brace ends the variable substitution.
2333 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2335 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2337 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2340 $as_echo_n "checking whether build environment is sane... " >&6; }
2341 # Reject unsafe characters in $srcdir or the absolute working directory
2342 # name. Accept space and tab only in the latter.
2346 *[\\\"\#\$\&\'\`$am_lf]*)
2347 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2350 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2351 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2354 # Do 'set' in a subshell so we don't clobber the current shell's
2355 # arguments. Must try -L first in case configure is actually a
2356 # symlink; some systems play weird games with the mod time of symlinks
2357 # (eg FreeBSD returns the mod time of the symlink's containing
2361 for am_try in 1 2; do
2362 echo "timestamp, slept: $am_has_slept" > conftest.file
2363 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2364 if test "$*" = "X"; then
2366 set X `ls -t "$srcdir/configure" conftest.file`
2368 if test "$*" != "X $srcdir/configure conftest.file" \
2369 && test "$*" != "X conftest.file $srcdir/configure"; then
2371 # If neither matched, then we have a broken ls. This can happen
2372 # if, for instance, CONFIG_SHELL is bash and it inherits a
2373 # broken ls alias from the environment. This has actually
2374 # happened. Such a system could not be considered "sane".
2375 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2376 alias in your environment" "$LINENO" 5
2378 if test "$2" = conftest.file || test $am_try -eq 2; then
2385 test "$2" = conftest.file
2391 as_fn_error $? "newly created file is older than distributed files!
2392 Check your system clock" "$LINENO" 5
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2395 $as_echo "yes" >&6; }
2396 # If we didn't sleep, we still need to ensure time stamps of config.status and
2397 # generated files are strictly newer.
2399 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2406 test "$program_prefix" != NONE &&
2407 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2408 # Use a double $ so make ignores it.
2409 test "$program_suffix" != NONE &&
2410 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2411 # Double any \ or $.
2412 # By default was `s,x,x', remove it if useless.
2413 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2414 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2416 # expand $ac_aux_dir to an absolute path
2417 am_aux_dir=`cd $ac_aux_dir && pwd`
2419 if test x"${MISSING+set}" != xset; then
2422 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2424 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2427 # Use eval to expand $SHELL
2428 if eval "$MISSING --is-lightweight"; then
2429 am_missing_run="$MISSING "
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2433 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2436 if test x"${install_sh}" != xset; then
2439 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2441 install_sh="\${SHELL} $am_aux_dir/install-sh"
2445 # Installed binaries are usually stripped using 'strip' when the user
2446 # run "make install-strip". However 'strip' might not be the right
2447 # tool to use in cross-compilation environments, therefore Automake
2448 # will honor the 'STRIP' environment variable to overrule this program.
2449 if test "$cross_compiling" != no; then
2450 if test -n "$ac_tool_prefix"; then
2451 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2452 set dummy ${ac_tool_prefix}strip; ac_word=$2
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2454 $as_echo_n "checking for $ac_word... " >&6; }
2455 if ${ac_cv_prog_STRIP+:} false; then :
2456 $as_echo_n "(cached) " >&6
2458 if test -n "$STRIP"; then
2459 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 test -z "$as_dir" && as_dir=.
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2468 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 STRIP=$ac_cv_prog_STRIP
2479 if test -n "$STRIP"; then
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2481 $as_echo "$STRIP" >&6; }
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2484 $as_echo "no" >&6; }
2489 if test -z "$ac_cv_prog_STRIP"; then
2491 # Extract the first word of "strip", so it can be a program name with args.
2492 set dummy strip; ac_word=$2
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2494 $as_echo_n "checking for $ac_word... " >&6; }
2495 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2496 $as_echo_n "(cached) " >&6
2498 if test -n "$ac_ct_STRIP"; then
2499 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 test -z "$as_dir" && as_dir=.
2506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2508 ac_cv_prog_ac_ct_STRIP="strip"
2509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2519 if test -n "$ac_ct_STRIP"; then
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2521 $as_echo "$ac_ct_STRIP" >&6; }
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2524 $as_echo "no" >&6; }
2527 if test "x$ac_ct_STRIP" = x; then
2530 case $cross_compiling:$ac_tool_warned in
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2534 ac_tool_warned=yes ;;
2539 STRIP="$ac_cv_prog_STRIP"
2543 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2546 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2547 if test -z "$MKDIR_P"; then
2548 if ${ac_cv_path_mkdir+:} false; then :
2549 $as_echo_n "(cached) " >&6
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2555 test -z "$as_dir" && as_dir=.
2556 for ac_prog in mkdir gmkdir; do
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2559 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2560 'mkdir (GNU coreutils) '* | \
2561 'mkdir (coreutils) '* | \
2562 'mkdir (fileutils) '4.1*)
2563 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2573 test -d ./--version && rmdir ./--version
2574 if test "${ac_cv_path_mkdir+set}" = set; then
2575 MKDIR_P="$ac_cv_path_mkdir -p"
2577 # As a last resort, use the slow shell script. Don't cache a
2578 # value for MKDIR_P within a source directory, because that will
2579 # break other packages using the cache if that directory is
2580 # removed, or if the value is a relative name.
2581 MKDIR_P="$ac_install_sh -d"
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2585 $as_echo "$MKDIR_P" >&6; }
2587 for ac_prog in gawk mawk nawk awk
2589 # Extract the first word of "$ac_prog", so it can be a program name with args.
2590 set dummy $ac_prog; ac_word=$2
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592 $as_echo_n "checking for $ac_word... " >&6; }
2593 if ${ac_cv_prog_AWK+:} false; then :
2594 $as_echo_n "(cached) " >&6
2596 if test -n "$AWK"; then
2597 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2606 ac_cv_prog_AWK="$ac_prog"
2607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2617 if test -n "$AWK"; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2619 $as_echo "$AWK" >&6; }
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2622 $as_echo "no" >&6; }
2626 test -n "$AWK" && break
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2630 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2632 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2633 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2634 $as_echo_n "(cached) " >&6
2636 cat >conftest.make <<\_ACEOF
2639 @echo '@@@%%%=$(MAKE)=@@@%%%'
2641 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2642 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2644 eval ac_cv_prog_make_${ac_make}_set=yes;;
2646 eval ac_cv_prog_make_${ac_make}_set=no;;
2650 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2652 $as_echo "yes" >&6; }
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656 $as_echo "no" >&6; }
2657 SET_MAKE="MAKE=${MAKE-make}"
2660 rm -rf .tst 2>/dev/null
2661 mkdir .tst 2>/dev/null
2662 if test -d .tst; then
2667 rmdir .tst 2>/dev/null
2669 # Check whether --enable-silent-rules was given.
2670 if test "${enable_silent_rules+set}" = set; then :
2671 enableval=$enable_silent_rules;
2674 case $enable_silent_rules in # (((
2675 yes) AM_DEFAULT_VERBOSITY=0;;
2676 no) AM_DEFAULT_VERBOSITY=1;;
2677 *) AM_DEFAULT_VERBOSITY=1;;
2679 am_make=${MAKE-make}
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2681 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2682 if ${am_cv_make_support_nested_variables+:} false; then :
2683 $as_echo_n "(cached) " >&6
2685 if $as_echo 'TRUE=$(BAR$(V))
2691 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2692 am_cv_make_support_nested_variables=yes
2694 am_cv_make_support_nested_variables=no
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2698 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2699 if test $am_cv_make_support_nested_variables = yes; then
2701 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2703 AM_V=$AM_DEFAULT_VERBOSITY
2704 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2708 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2709 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2710 # is not polluted with repeated "-I."
2711 am__isrc=' -I$(srcdir)'
2712 # test to see if srcdir already configured
2713 if test -f $srcdir/config.status; then
2714 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2718 # test whether we have cygpath
2719 if test -z "$CYGPATH_W"; then
2720 if (cygpath --version) >/dev/null 2>/dev/null; then
2721 CYGPATH_W='cygpath -w'
2728 # Define the identity of the package.
2733 cat >>confdefs.h <<_ACEOF
2734 #define PACKAGE "$PACKAGE"
2738 cat >>confdefs.h <<_ACEOF
2739 #define VERSION "$VERSION"
2742 # Some tools Automake needs.
2744 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2747 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2750 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2753 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2756 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2758 # For better backward compatibility. To be removed once Automake 1.9.x
2759 # dies out for good. For more background, see:
2760 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2761 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2762 mkdir_p='$(MKDIR_P)'
2764 # We need awk for the "check" target. The system "awk" is bad on
2766 # Always define AMTAR for backward compatibility. Yes, it's still used
2767 # in the wild :-( We should find a proper way to deprecate it ...
2771 # We'll loop over all known methods to create a tar archive until one works.
2772 _am_tools='gnutar pax cpio none'
2774 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2783 ac_config_headers="$ac_config_headers config.h"
2786 # Checks for programs.
2788 ac_cpp='$CPP $CPPFLAGS'
2789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2792 if test -n "$ac_tool_prefix"; then
2793 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2794 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796 $as_echo_n "checking for $ac_word... " >&6; }
2797 if ${ac_cv_prog_CC+:} false; then :
2798 $as_echo_n "(cached) " >&6
2800 if test -n "$CC"; then
2801 ac_cv_prog_CC="$CC" # Let the user override the test.
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2810 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 if test -n "$CC"; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2823 $as_echo "$CC" >&6; }
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826 $as_echo "no" >&6; }
2831 if test -z "$ac_cv_prog_CC"; then
2833 # Extract the first word of "gcc", so it can be a program name with args.
2834 set dummy gcc; ac_word=$2
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836 $as_echo_n "checking for $ac_word... " >&6; }
2837 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2838 $as_echo_n "(cached) " >&6
2840 if test -n "$ac_ct_CC"; then
2841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850 ac_cv_prog_ac_ct_CC="gcc"
2851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2861 if test -n "$ac_ct_CC"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2863 $as_echo "$ac_ct_CC" >&6; }
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866 $as_echo "no" >&6; }
2869 if test "x$ac_ct_CC" = x; then
2872 case $cross_compiling:$ac_tool_warned in
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2876 ac_tool_warned=yes ;;
2884 if test -z "$CC"; then
2885 if test -n "$ac_tool_prefix"; then
2886 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2887 set dummy ${ac_tool_prefix}cc; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if ${ac_cv_prog_CC+:} false; then :
2891 $as_echo_n "(cached) " >&6
2893 if test -n "$CC"; then
2894 ac_cv_prog_CC="$CC" # Let the user override the test.
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2903 ac_cv_prog_CC="${ac_tool_prefix}cc"
2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 if test -n "$CC"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2916 $as_echo "$CC" >&6; }
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2925 if test -z "$CC"; then
2926 # Extract the first word of "cc", so it can be a program name with args.
2927 set dummy cc; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if ${ac_cv_prog_CC+:} false; then :
2931 $as_echo_n "(cached) " >&6
2933 if test -n "$CC"; then
2934 ac_cv_prog_CC="$CC" # Let the user override the test.
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2945 ac_prog_rejected=yes
2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 if test $ac_prog_rejected = yes; then
2957 # We found a bogon in the path, so make sure we never use it.
2958 set dummy $ac_cv_prog_CC
2960 if test $# != 0; then
2961 # We chose a different compiler from the bogus one.
2962 # However, it has the same basename, so the bogon will be chosen
2963 # first if we set CC to just the basename; use the full file name.
2965 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2971 if test -n "$CC"; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2973 $as_echo "$CC" >&6; }
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2981 if test -z "$CC"; then
2982 if test -n "$ac_tool_prefix"; then
2983 for ac_prog in cl.exe
2985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if ${ac_cv_prog_CC+:} false; then :
2990 $as_echo_n "(cached) " >&6
2992 if test -n "$CC"; then
2993 ac_cv_prog_CC="$CC" # Let the user override the test.
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 if test -n "$CC"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3015 $as_echo "$CC" >&6; }
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3022 test -n "$CC" && break
3025 if test -z "$CC"; then
3027 for ac_prog in cl.exe
3029 # Extract the first word of "$ac_prog", so it can be a program name with args.
3030 set dummy $ac_prog; ac_word=$2
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032 $as_echo_n "checking for $ac_word... " >&6; }
3033 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3034 $as_echo_n "(cached) " >&6
3036 if test -n "$ac_ct_CC"; then
3037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 test -z "$as_dir" && as_dir=.
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3046 ac_cv_prog_ac_ct_CC="$ac_prog"
3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3057 if test -n "$ac_ct_CC"; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3059 $as_echo "$ac_ct_CC" >&6; }
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3066 test -n "$ac_ct_CC" && break
3069 if test "x$ac_ct_CC" = x; then
3072 case $cross_compiling:$ac_tool_warned in
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3076 ac_tool_warned=yes ;;
3085 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087 as_fn_error $? "no acceptable C compiler found in \$PATH
3088 See \`config.log' for more details" "$LINENO" 5; }
3090 # Provide some information about the compiler.
3091 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3094 for ac_option in --version -v -V -qversion; do
3095 { { ac_try="$ac_compiler $ac_option >&5"
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3101 $as_echo "$ac_try_echo"; } >&5
3102 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3104 if test -s conftest.err; then
3106 ... rest of stderr output deleted ...
3107 10q' conftest.err >conftest.er1
3108 cat conftest.er1 >&5
3110 rm -f conftest.er1 conftest.err
3111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3112 test $ac_status = 0; }
3115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3116 /* end confdefs.h. */
3126 ac_clean_files_save=$ac_clean_files
3127 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3128 # Try to create an executable without -o first, disregard a.out.
3129 # It will help us diagnose broken compilers, and finding out an intuition
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3132 $as_echo_n "checking whether the C compiler works... " >&6; }
3133 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3135 # The possible output files:
3136 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3139 for ac_file in $ac_files
3142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3143 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3148 if { { ac_try="$ac_link_default"
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3154 $as_echo "$ac_try_echo"; } >&5
3155 (eval "$ac_link_default") 2>&5
3157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158 test $ac_status = 0; }; then :
3159 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3160 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3161 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3162 # so that the user can short-circuit this test for compilers unknown to
3164 for ac_file in $ac_files ''
3166 test -f "$ac_file" || continue
3168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3171 # We found the default executable, but exeext='' is most
3175 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3177 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3179 # We set ac_cv_exeext here because the later test for it is not
3180 # safe: cross compilers may not add the suffix if given an `-o'
3181 # argument, so we may need to know it at that point already.
3182 # Even if this section looks crufty: it has the advantage of
3189 test "$ac_cv_exeext" = no && ac_cv_exeext=
3194 if test -z "$ac_file"; then :
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 $as_echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202 as_fn_error 77 "C compiler cannot create executables
3203 See \`config.log' for more details" "$LINENO" 5; }
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3206 $as_echo "yes" >&6; }
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3209 $as_echo_n "checking for C compiler default output file name... " >&6; }
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3211 $as_echo "$ac_file" >&6; }
3212 ac_exeext=$ac_cv_exeext
3214 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3215 ac_clean_files=$ac_clean_files_save
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3217 $as_echo_n "checking for suffix of executables... " >&6; }
3218 if { { ac_try="$ac_link"
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224 $as_echo "$ac_try_echo"; } >&5
3225 (eval "$ac_link") 2>&5
3227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228 test $ac_status = 0; }; then :
3229 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3230 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3231 # work properly (i.e., refer to `conftest.exe'), while it won't with
3233 for ac_file in conftest.exe conftest conftest.*; do
3234 test -f "$ac_file" || continue
3236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3237 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3246 See \`config.log' for more details" "$LINENO" 5; }
3248 rm -f conftest conftest$ac_cv_exeext
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3250 $as_echo "$ac_cv_exeext" >&6; }
3252 rm -f conftest.$ac_ext
3253 EXEEXT=$ac_cv_exeext
3255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256 /* end confdefs.h. */
3261 FILE *f = fopen ("conftest.out", "w");
3262 return ferror (f) || fclose (f) != 0;
3268 ac_clean_files="$ac_clean_files conftest.out"
3269 # Check that the compiler produces executables we can run. If not, either
3270 # the compiler is broken, or we cross compile.
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3272 $as_echo_n "checking whether we are cross compiling... " >&6; }
3273 if test "$cross_compiling" != yes; then
3274 { { ac_try="$ac_link"
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280 $as_echo "$ac_try_echo"; } >&5
3281 (eval "$ac_link") 2>&5
3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284 test $ac_status = 0; }
3285 if { ac_try='./conftest$ac_cv_exeext'
3286 { { case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3291 $as_echo "$ac_try_echo"; } >&5
3292 (eval "$ac_try") 2>&5
3294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3295 test $ac_status = 0; }; }; then
3298 if test "$cross_compiling" = maybe; then
3301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3303 as_fn_error $? "cannot run C compiled programs.
3304 If you meant to cross compile, use \`--host'.
3305 See \`config.log' for more details" "$LINENO" 5; }
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3310 $as_echo "$cross_compiling" >&6; }
3312 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3313 ac_clean_files=$ac_clean_files_save
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3315 $as_echo_n "checking for suffix of object files... " >&6; }
3316 if ${ac_cv_objext+:} false; then :
3317 $as_echo_n "(cached) " >&6
3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3320 /* end confdefs.h. */
3330 rm -f conftest.o conftest.obj
3331 if { { ac_try="$ac_compile"
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337 $as_echo "$ac_try_echo"; } >&5
3338 (eval "$ac_compile") 2>&5
3340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341 test $ac_status = 0; }; then :
3342 for ac_file in conftest.o conftest.obj conftest.*; do
3343 test -f "$ac_file" || continue;
3345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3346 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3351 $as_echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 as_fn_error $? "cannot compute suffix of object files: cannot compile
3357 See \`config.log' for more details" "$LINENO" 5; }
3359 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3362 $as_echo "$ac_cv_objext" >&6; }
3363 OBJEXT=$ac_cv_objext
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3366 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3367 if ${ac_cv_c_compiler_gnu+:} false; then :
3368 $as_echo_n "(cached) " >&6
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3384 if ac_fn_c_try_compile "$LINENO"; then :
3389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3390 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3394 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3395 if test $ac_compiler_gnu = yes; then
3400 ac_test_CFLAGS=${CFLAGS+set}
3401 ac_save_CFLAGS=$CFLAGS
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3403 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3404 if ${ac_cv_prog_cc_g+:} false; then :
3405 $as_echo_n "(cached) " >&6
3407 ac_save_c_werror_flag=$ac_c_werror_flag
3408 ac_c_werror_flag=yes
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3422 if ac_fn_c_try_compile "$LINENO"; then :
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3437 if ac_fn_c_try_compile "$LINENO"; then :
3440 ac_c_werror_flag=$ac_save_c_werror_flag
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h. */
3453 if ac_fn_c_try_compile "$LINENO"; then :
3456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3461 ac_c_werror_flag=$ac_save_c_werror_flag
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3464 $as_echo "$ac_cv_prog_cc_g" >&6; }
3465 if test "$ac_test_CFLAGS" = set; then
3466 CFLAGS=$ac_save_CFLAGS
3467 elif test $ac_cv_prog_cc_g = yes; then
3468 if test "$GCC" = yes; then
3474 if test "$GCC" = yes; then
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3481 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3482 if ${ac_cv_prog_cc_c89+:} false; then :
3483 $as_echo_n "(cached) " >&6
3485 ac_cv_prog_cc_c89=no
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3492 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3493 struct buf { int x; };
3494 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3495 static char *e (p, i)
3501 static char *f (char * (*g) (char **, int), char **p, ...)
3506 s = g (p, va_arg (v,int));
3511 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3512 function prototypes and stuff, but not '\xHH' hex character constants.
3513 These don't provoke an error unfortunately, instead are silently treated
3514 as 'x'. The following induces an error, until -std is added to get
3515 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3516 array size at least. It's necessary to write '\x00'==0 to get something
3517 that's true only with -std. */
3518 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3520 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3521 inside strings and character constants. */
3523 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3525 int test (int i, double x);
3526 struct s1 {int (*f) (int a);};
3527 struct s2 {int (*f) (double a);};
3528 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3534 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3539 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3540 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3542 CC="$ac_save_CC $ac_arg"
3543 if ac_fn_c_try_compile "$LINENO"; then :
3544 ac_cv_prog_cc_c89=$ac_arg
3546 rm -f core conftest.err conftest.$ac_objext
3547 test "x$ac_cv_prog_cc_c89" != "xno" && break
3549 rm -f conftest.$ac_ext
3554 case "x$ac_cv_prog_cc_c89" in
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3557 $as_echo "none needed" >&6; } ;;
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3560 $as_echo "unsupported" >&6; } ;;
3562 CC="$CC $ac_cv_prog_cc_c89"
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3564 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3566 if test "x$ac_cv_prog_cc_c89" != xno; then :
3571 ac_cpp='$CPP $CPPFLAGS'
3572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3575 DEPDIR="${am__leading_dot}deps"
3577 ac_config_commands="$ac_config_commands depfiles"
3580 am_make=${MAKE-make}
3581 cat > confinc << 'END'
3583 @echo this is the am__doit target
3586 # If we don't find an include directive, just comment out the code.
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3588 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3592 # First try GNU make style include.
3593 echo "include confinc" > confmf
3594 # Ignore all kinds of additional output from 'make'.
3595 case `$am_make -s -f confmf 2> /dev/null` in #(
3596 *the\ am__doit\ target*)
3602 # Now try BSD make style include.
3603 if test "$am__include" = "#"; then
3604 echo '.include "confinc"' > confmf
3605 case `$am_make -s -f confmf 2> /dev/null` in #(
3606 *the\ am__doit\ target*)
3607 am__include=.include
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3616 $as_echo "$_am_result" >&6; }
3617 rm -f confinc confmf
3619 # Check whether --enable-dependency-tracking was given.
3620 if test "${enable_dependency_tracking+set}" = set; then :
3621 enableval=$enable_dependency_tracking;
3624 if test "x$enable_dependency_tracking" != xno; then
3625 am_depcomp="$ac_aux_dir/depcomp"
3629 if test "x$enable_dependency_tracking" != xno; then
3639 depcc="$CC" am_compiler_list=
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3642 $as_echo_n "checking dependency style of $depcc... " >&6; }
3643 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3644 $as_echo_n "(cached) " >&6
3646 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3647 # We make a subdir and do the tests there. Otherwise we can end up
3648 # making bogus files that we don't know about and never remove. For
3649 # instance it was reported that on HP-UX the gcc test will end up
3650 # making a dummy file named 'D' -- because '-MD' means "put the output
3654 # Copy depcomp to subdir because otherwise we won't find it if we're
3655 # using a relative directory.
3656 cp "$am_depcomp" conftest.dir
3658 # We will build objects and dependencies in a subdirectory because
3659 # it helps to detect inapplicable dependency modes. For instance
3660 # both Tru64's cc and ICC support -MD to output dependencies as a
3661 # side effect of compilation, but ICC will put the dependencies in
3662 # the current directory while Tru64 will put them in the object
3666 am_cv_CC_dependencies_compiler_type=none
3667 if test "$am_compiler_list" = ""; then
3668 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3671 case " $depcc " in #(
3672 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3675 for depmode in $am_compiler_list; do
3676 # Setup a source with many dependencies, because some compilers
3677 # like to wrap large dependency lists on column 80 (with \), and
3678 # we should not choose a depcomp mode which is confused by this.
3680 # We need to recreate these files for each test, as the compiler may
3681 # overwrite some of them when testing with obscure command lines.
3682 # This happens at least with the AIX C compiler.
3684 for i in 1 2 3 4 5 6; do
3685 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3686 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3687 # Solaris 10 /bin/sh.
3688 echo '/* dummy */' > sub/conftst$i.h
3690 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3692 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3693 # mode. It turns out that the SunPro C++ compiler does not properly
3694 # handle '-M -o', and we need to detect this. Also, some Intel
3695 # versions had trouble with output in subdirs.
3696 am__obj=sub/conftest.${OBJEXT-o}
3697 am__minus_obj="-o $am__obj"
3700 # This depmode causes a compiler race in universal mode.
3701 test "$am__universal" = false || continue
3704 # After this tag, mechanisms are not by side-effect, so they'll
3705 # only be used when explicitly requested.
3706 if test "x$enable_dependency_tracking" = xyes; then
3712 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3713 # This compiler won't grok '-c -o', but also, the minuso test has
3714 # not run yet. These depmodes are late enough in the game, and
3715 # so weak that their functioning should not be impacted.
3716 am__obj=conftest.${OBJEXT-o}
3721 if depmode=$depmode \
3722 source=sub/conftest.c object=$am__obj \
3723 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3724 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3725 >/dev/null 2>conftest.err &&
3726 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3727 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3728 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3729 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3730 # icc doesn't choke on unknown options, it will just issue warnings
3731 # or remarks (even with -Werror). So we grep stderr for any message
3732 # that says an option was ignored or not supported.
3733 # When given -MP, icc 7.0 and 7.1 complain thusly:
3734 # icc: Command line warning: ignoring option '-M'; no argument required
3735 # The diagnosis changed in icc 8.0:
3736 # icc: Command line remark: option '-MP' not supported
3737 if (grep 'ignoring option' conftest.err ||
3738 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3739 am_cv_CC_dependencies_compiler_type=$depmode
3748 am_cv_CC_dependencies_compiler_type=none
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3753 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3754 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3757 test "x$enable_dependency_tracking" != xno \
3758 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3760 am__fastdepCC_FALSE='#'
3762 am__fastdepCC_TRUE='#'
3763 am__fastdepCC_FALSE=
3767 if test "x$CC" != xcc; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3769 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3772 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3774 set dummy $CC; ac_cc=`$as_echo "$2" |
3775 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3776 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3777 $as_echo_n "(cached) " >&6
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3790 # Make sure it works both with $CC and with simple cc.
3791 # We do the test twice because some compilers refuse to overwrite an
3792 # existing .o file with -o, though they will create one.
3793 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3795 if { { case "(($ac_try" in
3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3800 $as_echo "$ac_try_echo"; } >&5
3801 (eval "$ac_try") 2>&5
3803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3804 test $ac_status = 0; } &&
3805 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3810 $as_echo "$ac_try_echo"; } >&5
3811 (eval "$ac_try") 2>&5
3813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814 test $ac_status = 0; };
3816 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3817 if test "x$CC" != xcc; then
3818 # Test first that cc exists at all.
3819 if { ac_try='cc -c conftest.$ac_ext >&5'
3820 { { case "(($ac_try" in
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3825 $as_echo "$ac_try_echo"; } >&5
3826 (eval "$ac_try") 2>&5
3828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3829 test $ac_status = 0; }; }; then
3830 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3832 if { { case "(($ac_try" in
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3837 $as_echo "$ac_try_echo"; } >&5
3838 (eval "$ac_try") 2>&5
3840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3841 test $ac_status = 0; } &&
3842 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3847 $as_echo "$ac_try_echo"; } >&5
3848 (eval "$ac_try") 2>&5
3850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3851 test $ac_status = 0; };
3856 # cc exists but doesn't like -o.
3857 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3862 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3864 rm -f core conftest*
3867 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3869 $as_echo "yes" >&6; }
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872 $as_echo "no" >&6; }
3874 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3878 # FIXME: we rely on the cache variable name because
3879 # there is no other way.
3881 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3882 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3883 if test "$am_t" != yes; then
3884 # Losing compiler, so override with the script.
3885 # FIXME: It is wrong to rewrite CC.
3886 # But if we don't then we get into trouble of one sort or another.
3887 # A longer-term fix would be to have automake use am__CC in this case,
3888 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3889 CC="$am_aux_dir/compile $CC"
3895 if test -n "$ac_tool_prefix"; then
3896 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3897 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3899 $as_echo_n "checking for $ac_word... " >&6; }
3900 if ${ac_cv_prog_RANLIB+:} false; then :
3901 $as_echo_n "(cached) " >&6
3903 if test -n "$RANLIB"; then
3904 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 test -z "$as_dir" && as_dir=.
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3913 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 RANLIB=$ac_cv_prog_RANLIB
3924 if test -n "$RANLIB"; then
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3926 $as_echo "$RANLIB" >&6; }
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3929 $as_echo "no" >&6; }
3934 if test -z "$ac_cv_prog_RANLIB"; then
3935 ac_ct_RANLIB=$RANLIB
3936 # Extract the first word of "ranlib", so it can be a program name with args.
3937 set dummy ranlib; ac_word=$2
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939 $as_echo_n "checking for $ac_word... " >&6; }
3940 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3941 $as_echo_n "(cached) " >&6
3943 if test -n "$ac_ct_RANLIB"; then
3944 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953 ac_cv_prog_ac_ct_RANLIB="ranlib"
3954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3964 if test -n "$ac_ct_RANLIB"; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3966 $as_echo "$ac_ct_RANLIB" >&6; }
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3972 if test "x$ac_ct_RANLIB" = x; then
3975 case $cross_compiling:$ac_tool_warned in
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3979 ac_tool_warned=yes ;;
3981 RANLIB=$ac_ct_RANLIB
3984 RANLIB="$ac_cv_prog_RANLIB"
3993 [\\/$]* | ?:[\\/]*) ;;
3994 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3999 $as_echo_n "checking whether NLS is requested... " >&6; }
4000 # Check whether --enable-nls was given.
4001 if test "${enable_nls+set}" = set; then :
4002 enableval=$enable_nls; USE_NLS=$enableval
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4008 $as_echo "$USE_NLS" >&6; }
4013 GETTEXT_MACRO_VERSION=0.18
4018 # Prepare PATH_SEPARATOR.
4019 # The user is always right.
4020 if test "${PATH_SEPARATOR+set}" != set; then
4021 echo "#! /bin/sh" >conf$$.sh
4022 echo "exit 0" >>conf$$.sh
4024 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4032 # Find out how to test for executable files. Don't use a zero-byte file,
4033 # as systems may use methods other than mode bits to determine executability.
4034 cat >conf$$.file <<_ASEOF
4038 chmod +x conf$$.file
4039 if test -x conf$$.file >/dev/null 2>&1; then
4040 ac_executable_p="test -x"
4042 ac_executable_p="test -f"
4046 # Extract the first word of "msgfmt", so it can be a program name with args.
4047 set dummy msgfmt; ac_word=$2
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049 $as_echo_n "checking for $ac_word... " >&6; }
4050 if ${ac_cv_path_MSGFMT+:} false; then :
4051 $as_echo_n "(cached) " >&6
4055 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4058 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4059 for ac_dir in $PATH; do
4061 test -z "$ac_dir" && ac_dir=.
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4064 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4065 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4066 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4067 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4074 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4078 MSGFMT="$ac_cv_path_MSGFMT"
4079 if test "$MSGFMT" != ":"; then
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4081 $as_echo "$MSGFMT" >&6; }
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4084 $as_echo "no" >&6; }
4087 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4088 set dummy gmsgfmt; ac_word=$2
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090 $as_echo_n "checking for $ac_word... " >&6; }
4091 if ${ac_cv_path_GMSGFMT+:} false; then :
4092 $as_echo_n "(cached) " >&6
4096 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 test -z "$as_dir" && as_dir=.
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4106 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4118 GMSGFMT=$ac_cv_path_GMSGFMT
4119 if test -n "$GMSGFMT"; then
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4121 $as_echo "$GMSGFMT" >&6; }
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4124 $as_echo "no" >&6; }
4129 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4130 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4131 *) MSGFMT_015=$MSGFMT ;;
4134 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4135 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4136 *) GMSGFMT_015=$GMSGFMT ;;
4141 # Prepare PATH_SEPARATOR.
4142 # The user is always right.
4143 if test "${PATH_SEPARATOR+set}" != set; then
4144 echo "#! /bin/sh" >conf$$.sh
4145 echo "exit 0" >>conf$$.sh
4147 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4155 # Find out how to test for executable files. Don't use a zero-byte file,
4156 # as systems may use methods other than mode bits to determine executability.
4157 cat >conf$$.file <<_ASEOF
4161 chmod +x conf$$.file
4162 if test -x conf$$.file >/dev/null 2>&1; then
4163 ac_executable_p="test -x"
4165 ac_executable_p="test -f"
4169 # Extract the first word of "xgettext", so it can be a program name with args.
4170 set dummy xgettext; ac_word=$2
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172 $as_echo_n "checking for $ac_word... " >&6; }
4173 if ${ac_cv_path_XGETTEXT+:} false; then :
4174 $as_echo_n "(cached) " >&6
4178 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4181 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4182 for ac_dir in $PATH; do
4184 test -z "$ac_dir" && ac_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4187 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4188 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4189 (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); then
4190 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4197 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4201 XGETTEXT="$ac_cv_path_XGETTEXT"
4202 if test "$XGETTEXT" != ":"; then
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4204 $as_echo "$XGETTEXT" >&6; }
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 $as_echo "no" >&6; }
4212 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4213 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4214 *) XGETTEXT_015=$XGETTEXT ;;
4219 # Prepare PATH_SEPARATOR.
4220 # The user is always right.
4221 if test "${PATH_SEPARATOR+set}" != set; then
4222 echo "#! /bin/sh" >conf$$.sh
4223 echo "exit 0" >>conf$$.sh
4225 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4233 # Find out how to test for executable files. Don't use a zero-byte file,
4234 # as systems may use methods other than mode bits to determine executability.
4235 cat >conf$$.file <<_ASEOF
4239 chmod +x conf$$.file
4240 if test -x conf$$.file >/dev/null 2>&1; then
4241 ac_executable_p="test -x"
4243 ac_executable_p="test -f"
4247 # Extract the first word of "msgmerge", so it can be a program name with args.
4248 set dummy msgmerge; ac_word=$2
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4250 $as_echo_n "checking for $ac_word... " >&6; }
4251 if ${ac_cv_path_MSGMERGE+:} false; then :
4252 $as_echo_n "(cached) " >&6
4256 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4259 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4260 for ac_dir in $PATH; do
4262 test -z "$ac_dir" && ac_dir=.
4263 for ac_exec_ext in '' $ac_executable_extensions; do
4264 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4265 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4266 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
4267 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4274 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4278 MSGMERGE="$ac_cv_path_MSGMERGE"
4279 if test "$MSGMERGE" != ":"; then
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4281 $as_echo "$MSGMERGE" >&6; }
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4284 $as_echo "no" >&6; }
4288 test -n "$localedir" || localedir='${datadir}/locale'
4291 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
4294 ac_config_commands="$ac_config_commands po-directories"
4298 if test "X$prefix" = "XNONE"; then
4299 acl_final_prefix="$ac_default_prefix"
4301 acl_final_prefix="$prefix"
4303 if test "X$exec_prefix" = "XNONE"; then
4304 acl_final_exec_prefix='${prefix}'
4306 acl_final_exec_prefix="$exec_prefix"
4308 acl_save_prefix="$prefix"
4309 prefix="$acl_final_prefix"
4310 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4311 prefix="$acl_save_prefix"
4313 # Make sure we can run config.sub.
4314 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4315 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4318 $as_echo_n "checking build system type... " >&6; }
4319 if ${ac_cv_build+:} false; then :
4320 $as_echo_n "(cached) " >&6
4322 ac_build_alias=$build_alias
4323 test "x$ac_build_alias" = x &&
4324 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4325 test "x$ac_build_alias" = x &&
4326 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4327 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4328 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4332 $as_echo "$ac_cv_build" >&6; }
4333 case $ac_cv_build in
4335 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4338 ac_save_IFS=$IFS; IFS='-'
4344 # Remember, the first character of IFS is used to create $*,
4345 # except with old shells:
4348 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4352 $as_echo_n "checking host system type... " >&6; }
4353 if ${ac_cv_host+:} false; then :
4354 $as_echo_n "(cached) " >&6
4356 if test "x$host_alias" = x; then
4357 ac_cv_host=$ac_cv_build
4359 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4360 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4365 $as_echo "$ac_cv_host" >&6; }
4368 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4371 ac_save_IFS=$IFS; IFS='-'
4377 # Remember, the first character of IFS is used to create $*,
4378 # except with old shells:
4381 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4385 # Check whether --with-gnu-ld was given.
4386 if test "${with_gnu_ld+set}" = set; then :
4387 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4392 # Prepare PATH_SEPARATOR.
4393 # The user is always right.
4394 if test "${PATH_SEPARATOR+set}" != set; then
4395 echo "#! /bin/sh" >conf$$.sh
4396 echo "exit 0" >>conf$$.sh
4398 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4406 if test "$GCC" = yes; then
4407 # Check if gcc -print-prog-name=ld gives a path.
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4409 $as_echo_n "checking for ld used by GCC... " >&6; }
4412 # gcc leaves a trailing carriage return which upsets mingw
4413 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4415 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4418 # Accept absolute paths.
4419 [\\/]* | [A-Za-z]:[\\/]*)
4420 re_direlt='/[^/][^/]*/\.\./'
4421 # Canonicalize the path of ld
4422 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4423 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4424 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4426 test -z "$LD" && LD="$ac_prog"
4429 # If it fails, then pretend we aren't using GCC.
4433 # If it is relative, then search for the first ld in PATH.
4437 elif test "$with_gnu_ld" = yes; then
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4439 $as_echo_n "checking for GNU ld... " >&6; }
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4442 $as_echo_n "checking for non-GNU ld... " >&6; }
4444 if ${acl_cv_path_LD+:} false; then :
4445 $as_echo_n "(cached) " >&6
4447 if test -z "$LD"; then
4448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4449 for ac_dir in $PATH; do
4450 test -z "$ac_dir" && ac_dir=.
4451 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4452 acl_cv_path_LD="$ac_dir/$ac_prog"
4453 # Check to see if the program is GNU ld. I'd rather use --version,
4454 # but apparently some GNU ld's only accept -v.
4455 # Break only if it was the GNU/non-GNU ld that we prefer.
4456 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4457 *GNU* | *'with BFD'*)
4458 test "$with_gnu_ld" != no && break ;;
4460 test "$with_gnu_ld" != yes && break ;;
4466 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4470 LD="$acl_cv_path_LD"
4471 if test -n "$LD"; then
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4473 $as_echo "$LD" >&6; }
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476 $as_echo "no" >&6; }
4478 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4480 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4481 if ${acl_cv_prog_gnu_ld+:} false; then :
4482 $as_echo_n "(cached) " >&6
4484 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4485 case `$LD -v 2>&1 </dev/null` in
4486 *GNU* | *'with BFD'*)
4487 acl_cv_prog_gnu_ld=yes ;;
4489 acl_cv_prog_gnu_ld=no ;;
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4493 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4494 with_gnu_ld=$acl_cv_prog_gnu_ld
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4500 $as_echo_n "checking for shared library run path origin... " >&6; }
4501 if ${acl_cv_rpath+:} false; then :
4502 $as_echo_n "(cached) " >&6
4505 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4506 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4513 $as_echo "$acl_cv_rpath" >&6; }
4515 acl_libext="$acl_cv_libext"
4516 acl_shlibext="$acl_cv_shlibext"
4517 acl_libname_spec="$acl_cv_libname_spec"
4518 acl_library_names_spec="$acl_cv_library_names_spec"
4519 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4520 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4521 acl_hardcode_direct="$acl_cv_hardcode_direct"
4522 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4523 # Check whether --enable-rpath was given.
4524 if test "${enable_rpath+set}" = set; then :
4525 enableval=$enable_rpath; :
4533 ac_cpp='$CPP $CPPFLAGS'
4534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4538 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4539 # On Suns, sometimes $CPP names a directory.
4540 if test -n "$CPP" && test -d "$CPP"; then
4543 if test -z "$CPP"; then
4544 if ${ac_cv_prog_CPP+:} false; then :
4545 $as_echo_n "(cached) " >&6
4547 # Double quotes because CPP needs to be expanded
4548 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4551 for ac_c_preproc_warn_flag in '' yes
4553 # Use a header file that comes with gcc, so configuring glibc
4554 # with a fresh cross-compiler works.
4555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4556 # <limits.h> exists even on freestanding compilers.
4557 # On the NeXT, cc -E runs the code through the compiler's parser,
4558 # not just through cpp. "Syntax error" is here to catch this case.
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4562 # include <limits.h>
4564 # include <assert.h>
4568 if ac_fn_c_try_cpp "$LINENO"; then :
4571 # Broken: fails on valid input.
4574 rm -f conftest.err conftest.i conftest.$ac_ext
4576 # OK, works on sane cases. Now check whether nonexistent headers
4577 # can be detected and how.
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4580 #include <ac_nonexistent.h>
4582 if ac_fn_c_try_cpp "$LINENO"; then :
4583 # Broken: success on invalid input.
4586 # Passes both tests.
4590 rm -f conftest.err conftest.i conftest.$ac_ext
4593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4594 rm -f conftest.i conftest.err conftest.$ac_ext
4595 if $ac_preproc_ok; then :
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4608 $as_echo "$CPP" >&6; }
4610 for ac_c_preproc_warn_flag in '' yes
4612 # Use a header file that comes with gcc, so configuring glibc
4613 # with a fresh cross-compiler works.
4614 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4615 # <limits.h> exists even on freestanding compilers.
4616 # On the NeXT, cc -E runs the code through the compiler's parser,
4617 # not just through cpp. "Syntax error" is here to catch this case.
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h. */
4621 # include <limits.h>
4623 # include <assert.h>
4627 if ac_fn_c_try_cpp "$LINENO"; then :
4630 # Broken: fails on valid input.
4633 rm -f conftest.err conftest.i conftest.$ac_ext
4635 # OK, works on sane cases. Now check whether nonexistent headers
4636 # can be detected and how.
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4639 #include <ac_nonexistent.h>
4641 if ac_fn_c_try_cpp "$LINENO"; then :
4642 # Broken: success on invalid input.
4645 # Passes both tests.
4649 rm -f conftest.err conftest.i conftest.$ac_ext
4652 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4653 rm -f conftest.i conftest.err conftest.$ac_ext
4654 if $ac_preproc_ok; then :
4657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4659 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4660 See \`config.log' for more details" "$LINENO" 5; }
4664 ac_cpp='$CPP $CPPFLAGS'
4665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4671 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4672 if ${ac_cv_path_GREP+:} false; then :
4673 $as_echo_n "(cached) " >&6
4675 if test -z "$GREP"; then
4676 ac_path_GREP_found=false
4677 # Loop through the user's path and test for each of PROGNAME-LIST
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4682 test -z "$as_dir" && as_dir=.
4683 for ac_prog in grep ggrep; do
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4686 as_fn_executable_p "$ac_path_GREP" || continue
4687 # Check for GNU ac_path_GREP and select it if it is found.
4688 # Check for GNU $ac_path_GREP
4689 case `"$ac_path_GREP" --version 2>&1` in
4691 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4694 $as_echo_n 0123456789 >"conftest.in"
4697 cat "conftest.in" "conftest.in" >"conftest.tmp"
4698 mv "conftest.tmp" "conftest.in"
4699 cp "conftest.in" "conftest.nl"
4700 $as_echo 'GREP' >> "conftest.nl"
4701 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4703 as_fn_arith $ac_count + 1 && ac_count=$as_val
4704 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4705 # Best one so far, save it but keep looking for a better one
4706 ac_cv_path_GREP="$ac_path_GREP"
4707 ac_path_GREP_max=$ac_count
4709 # 10*(2^10) chars as input seems more than enough
4710 test $ac_count -gt 10 && break
4712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4715 $ac_path_GREP_found && break 3
4720 if test -z "$ac_cv_path_GREP"; then
4721 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4724 ac_cv_path_GREP=$GREP
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4729 $as_echo "$ac_cv_path_GREP" >&6; }
4730 GREP="$ac_cv_path_GREP"
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4734 $as_echo_n "checking for egrep... " >&6; }
4735 if ${ac_cv_path_EGREP+:} false; then :
4736 $as_echo_n "(cached) " >&6
4738 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4739 then ac_cv_path_EGREP="$GREP -E"
4741 if test -z "$EGREP"; then
4742 ac_path_EGREP_found=false
4743 # Loop through the user's path and test for each of PROGNAME-LIST
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4748 test -z "$as_dir" && as_dir=.
4749 for ac_prog in egrep; do
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4752 as_fn_executable_p "$ac_path_EGREP" || continue
4753 # Check for GNU ac_path_EGREP and select it if it is found.
4754 # Check for GNU $ac_path_EGREP
4755 case `"$ac_path_EGREP" --version 2>&1` in
4757 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4760 $as_echo_n 0123456789 >"conftest.in"
4763 cat "conftest.in" "conftest.in" >"conftest.tmp"
4764 mv "conftest.tmp" "conftest.in"
4765 cp "conftest.in" "conftest.nl"
4766 $as_echo 'EGREP' >> "conftest.nl"
4767 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4768 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4769 as_fn_arith $ac_count + 1 && ac_count=$as_val
4770 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4771 # Best one so far, save it but keep looking for a better one
4772 ac_cv_path_EGREP="$ac_path_EGREP"
4773 ac_path_EGREP_max=$ac_count
4775 # 10*(2^10) chars as input seems more than enough
4776 test $ac_count -gt 10 && break
4778 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4781 $ac_path_EGREP_found && break 3
4786 if test -z "$ac_cv_path_EGREP"; then
4787 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4790 ac_cv_path_EGREP=$EGREP
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4796 $as_echo "$ac_cv_path_EGREP" >&6; }
4797 EGREP="$ac_cv_path_EGREP"
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
4807 $as_echo_n "checking for 64-bit host... " >&6; }
4808 if ${gl_cv_solaris_64bit+:} false; then :
4809 $as_echo_n "(cached) " >&6
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4820 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
4821 gl_cv_solaris_64bit=yes
4823 gl_cv_solaris_64bit=no
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
4830 $as_echo "$gl_cv_solaris_64bit" >&6; }
4831 if test $gl_cv_solaris_64bit = yes; then
4832 acl_libdirstem=lib/64
4834 sparc*) acl_libdirstem2=lib/sparcv9 ;;
4835 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
4840 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4841 if test -n "$searchpath"; then
4842 acl_save_IFS="${IFS= }"; IFS=":"
4843 for searchdir in $searchpath; do
4844 if test -d "$searchdir"; then
4845 case "$searchdir" in
4846 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4848 # Better ignore directories of this form. They are misleading.
4850 *) searchdir=`cd "$searchdir" && pwd`
4851 case "$searchdir" in
4852 */lib64 ) acl_libdirstem=lib64 ;;
4861 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
4876 acl_save_prefix="$prefix"
4877 prefix="$acl_final_prefix"
4878 acl_save_exec_prefix="$exec_prefix"
4879 exec_prefix="$acl_final_exec_prefix"
4881 eval additional_includedir=\"$includedir\"
4882 eval additional_libdir=\"$libdir\"
4884 exec_prefix="$acl_save_exec_prefix"
4885 prefix="$acl_save_prefix"
4888 # Check whether --with-libiconv-prefix was given.
4889 if test "${with_libiconv_prefix+set}" = set; then :
4890 withval=$with_libiconv_prefix;
4891 if test "X$withval" = "Xno"; then
4894 if test "X$withval" = "X"; then
4896 acl_save_prefix="$prefix"
4897 prefix="$acl_final_prefix"
4898 acl_save_exec_prefix="$exec_prefix"
4899 exec_prefix="$acl_final_exec_prefix"
4901 eval additional_includedir=\"$includedir\"
4902 eval additional_libdir=\"$libdir\"
4904 exec_prefix="$acl_save_exec_prefix"
4905 prefix="$acl_save_prefix"
4908 additional_includedir="$withval/include"
4909 additional_libdir="$withval/$acl_libdirstem"
4910 if test "$acl_libdirstem2" != "$acl_libdirstem" \
4911 && ! test -d "$withval/$acl_libdirstem"; then
4912 additional_libdir="$withval/$acl_libdirstem2"
4926 names_already_handled=
4927 names_next_round='iconv '
4928 while test -n "$names_next_round"; do
4929 names_this_round="$names_next_round"
4931 for name in $names_this_round; do
4933 for n in $names_already_handled; do
4934 if test "$n" = "$name"; then
4939 if test -z "$already_handled"; then
4940 names_already_handled="$names_already_handled $name"
4941 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4942 eval value=\"\$HAVE_LIB$uppername\"
4943 if test -n "$value"; then
4944 if test "$value" = yes; then
4945 eval value=\"\$LIB$uppername\"
4946 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4947 eval value=\"\$LTLIB$uppername\"
4948 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4957 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
4958 if test -n "$acl_shlibext"; then
4959 shrext=".$acl_shlibext" # typically: shrext=.so
4963 if test $use_additional = yes; then
4964 dir="$additional_libdir"
4965 if test -n "$acl_shlibext"; then
4966 if test -f "$dir/$libname$shrext"; then
4968 found_so="$dir/$libname$shrext"
4970 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4971 ver=`(cd "$dir" && \
4972 for f in "$libname$shrext".*; do echo "$f"; done \
4973 | sed -e "s,^$libname$shrext\\\\.,," \
4974 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4975 | sed 1q ) 2>/dev/null`
4976 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4978 found_so="$dir/$libname$shrext.$ver"
4981 eval library_names=\"$acl_library_names_spec\"
4982 for f in $library_names; do
4983 if test -f "$dir/$f"; then
4992 if test "X$found_dir" = "X"; then
4993 if test -f "$dir/$libname.$acl_libext"; then
4995 found_a="$dir/$libname.$acl_libext"
4998 if test "X$found_dir" != "X"; then
4999 if test -f "$dir/$libname.la"; then
5000 found_la="$dir/$libname.la"
5004 if test "X$found_dir" = "X"; then
5005 for x in $LDFLAGS $LTLIBICONV; do
5007 acl_save_prefix="$prefix"
5008 prefix="$acl_final_prefix"
5009 acl_save_exec_prefix="$exec_prefix"
5010 exec_prefix="$acl_final_exec_prefix"
5012 exec_prefix="$acl_save_exec_prefix"
5013 prefix="$acl_save_prefix"
5017 dir=`echo "X$x" | sed -e 's/^X-L//'`
5018 if test -n "$acl_shlibext"; then
5019 if test -f "$dir/$libname$shrext"; then
5021 found_so="$dir/$libname$shrext"
5023 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5024 ver=`(cd "$dir" && \
5025 for f in "$libname$shrext".*; do echo "$f"; done \
5026 | sed -e "s,^$libname$shrext\\\\.,," \
5027 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5028 | sed 1q ) 2>/dev/null`
5029 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5031 found_so="$dir/$libname$shrext.$ver"
5034 eval library_names=\"$acl_library_names_spec\"
5035 for f in $library_names; do
5036 if test -f "$dir/$f"; then
5045 if test "X$found_dir" = "X"; then
5046 if test -f "$dir/$libname.$acl_libext"; then
5048 found_a="$dir/$libname.$acl_libext"
5051 if test "X$found_dir" != "X"; then
5052 if test -f "$dir/$libname.la"; then
5053 found_la="$dir/$libname.la"
5058 if test "X$found_dir" != "X"; then
5063 if test "X$found_dir" != "X"; then
5064 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5065 if test "X$found_so" != "X"; then
5066 if test "$enable_rpath" = no \
5067 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5068 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5069 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5072 for x in $ltrpathdirs; do
5073 if test "X$x" = "X$found_dir"; then
5078 if test -z "$haveit"; then
5079 ltrpathdirs="$ltrpathdirs $found_dir"
5081 if test "$acl_hardcode_direct" = yes; then
5082 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5084 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5085 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5087 for x in $rpathdirs; do
5088 if test "X$x" = "X$found_dir"; then
5093 if test -z "$haveit"; then
5094 rpathdirs="$rpathdirs $found_dir"
5098 for x in $LDFLAGS $LIBICONV; do
5100 acl_save_prefix="$prefix"
5101 prefix="$acl_final_prefix"
5102 acl_save_exec_prefix="$exec_prefix"
5103 exec_prefix="$acl_final_exec_prefix"
5105 exec_prefix="$acl_save_exec_prefix"
5106 prefix="$acl_save_prefix"
5108 if test "X$x" = "X-L$found_dir"; then
5113 if test -z "$haveit"; then
5114 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5116 if test "$acl_hardcode_minus_L" != no; then
5117 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5119 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5125 if test "X$found_a" != "X"; then
5126 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5128 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5131 additional_includedir=
5132 case "$found_dir" in
5133 */$acl_libdirstem | */$acl_libdirstem/)
5134 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5135 if test "$name" = 'iconv'; then
5136 LIBICONV_PREFIX="$basedir"
5138 additional_includedir="$basedir/include"
5140 */$acl_libdirstem2 | */$acl_libdirstem2/)
5141 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5142 if test "$name" = 'iconv'; then
5143 LIBICONV_PREFIX="$basedir"
5145 additional_includedir="$basedir/include"
5148 if test "X$additional_includedir" != "X"; then
5149 if test "X$additional_includedir" != "X/usr/include"; then
5151 if test "X$additional_includedir" = "X/usr/local/include"; then
5152 if test -n "$GCC"; then
5154 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5158 if test -z "$haveit"; then
5159 for x in $CPPFLAGS $INCICONV; do
5161 acl_save_prefix="$prefix"
5162 prefix="$acl_final_prefix"
5163 acl_save_exec_prefix="$exec_prefix"
5164 exec_prefix="$acl_final_exec_prefix"
5166 exec_prefix="$acl_save_exec_prefix"
5167 prefix="$acl_save_prefix"
5169 if test "X$x" = "X-I$additional_includedir"; then
5174 if test -z "$haveit"; then
5175 if test -d "$additional_includedir"; then
5176 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5182 if test -n "$found_la"; then
5183 save_libdir="$libdir"
5185 */* | *\\*) . "$found_la" ;;
5186 *) . "./$found_la" ;;
5188 libdir="$save_libdir"
5189 for dep in $dependency_libs; do
5192 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5193 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5194 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5196 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5197 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5198 if test -n "$GCC"; then
5200 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5204 if test -z "$haveit"; then
5206 for x in $LDFLAGS $LIBICONV; do
5208 acl_save_prefix="$prefix"
5209 prefix="$acl_final_prefix"
5210 acl_save_exec_prefix="$exec_prefix"
5211 exec_prefix="$acl_final_exec_prefix"
5213 exec_prefix="$acl_save_exec_prefix"
5214 prefix="$acl_save_prefix"
5216 if test "X$x" = "X-L$additional_libdir"; then
5221 if test -z "$haveit"; then
5222 if test -d "$additional_libdir"; then
5223 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5227 for x in $LDFLAGS $LTLIBICONV; do
5229 acl_save_prefix="$prefix"
5230 prefix="$acl_final_prefix"
5231 acl_save_exec_prefix="$exec_prefix"
5232 exec_prefix="$acl_final_exec_prefix"
5234 exec_prefix="$acl_save_exec_prefix"
5235 prefix="$acl_save_prefix"
5237 if test "X$x" = "X-L$additional_libdir"; then
5242 if test -z "$haveit"; then
5243 if test -d "$additional_libdir"; then
5244 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5251 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5252 if test "$enable_rpath" != no; then
5254 for x in $rpathdirs; do
5255 if test "X$x" = "X$dir"; then
5260 if test -z "$haveit"; then
5261 rpathdirs="$rpathdirs $dir"
5264 for x in $ltrpathdirs; do
5265 if test "X$x" = "X$dir"; then
5270 if test -z "$haveit"; then
5271 ltrpathdirs="$ltrpathdirs $dir"
5276 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5279 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5282 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5283 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5289 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5290 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5296 if test "X$rpathdirs" != "X"; then
5297 if test -n "$acl_hardcode_libdir_separator"; then
5299 for found_dir in $rpathdirs; do
5300 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5302 acl_save_libdir="$libdir"
5304 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5305 libdir="$acl_save_libdir"
5306 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5308 for found_dir in $rpathdirs; do
5309 acl_save_libdir="$libdir"
5311 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5312 libdir="$acl_save_libdir"
5313 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5317 if test "X$ltrpathdirs" != "X"; then
5318 for found_dir in $ltrpathdirs; do
5319 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5354 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5355 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
5356 $as_echo_n "(cached) " >&6
5358 gt_save_LIBS="$LIBS"
5359 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h. */
5362 #include <CoreFoundation/CFPreferences.h>
5366 CFPreferencesCopyAppValue(NULL, NULL)
5371 if ac_fn_c_try_link "$LINENO"; then :
5372 gt_cv_func_CFPreferencesCopyAppValue=yes
5374 gt_cv_func_CFPreferencesCopyAppValue=no
5376 rm -f core conftest.err conftest.$ac_objext \
5377 conftest$ac_exeext conftest.$ac_ext
5378 LIBS="$gt_save_LIBS"
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5381 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5382 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5384 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5388 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5389 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
5390 $as_echo_n "(cached) " >&6
5392 gt_save_LIBS="$LIBS"
5393 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5396 #include <CoreFoundation/CFLocale.h>
5400 CFLocaleCopyCurrent();
5405 if ac_fn_c_try_link "$LINENO"; then :
5406 gt_cv_func_CFLocaleCopyCurrent=yes
5408 gt_cv_func_CFLocaleCopyCurrent=no
5410 rm -f core conftest.err conftest.$ac_objext \
5411 conftest$ac_exeext conftest.$ac_ext
5412 LIBS="$gt_save_LIBS"
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5415 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5416 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5418 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5422 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5423 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5435 case " $gt_needs " in
5436 *" need-formatstring-macros "*) gt_api_version=3 ;;
5437 *" need-ngettext "*) gt_api_version=2 ;;
5438 *) gt_api_version=1 ;;
5440 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5441 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5443 if test "$USE_NLS" = "yes"; then
5444 gt_use_preinstalled_gnugettext=no
5447 if test $gt_api_version -ge 3; then
5448 gt_revision_test_code='
5449 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5450 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5452 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5455 gt_revision_test_code=
5457 if test $gt_api_version -ge 2; then
5458 gt_expression_test_code=' + * ngettext ("", "", 0)'
5460 gt_expression_test_code=
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5464 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5465 if eval \${$gt_func_gnugettext_libc+:} false; then :
5466 $as_echo_n "(cached) " >&6
5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h. */
5470 #include <libintl.h>
5471 $gt_revision_test_code
5472 extern int _nl_msg_cat_cntr;
5473 extern int *_nl_domain_bindings;
5477 bindtextdomain ("", "");
5478 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5483 if ac_fn_c_try_link "$LINENO"; then :
5484 eval "$gt_func_gnugettext_libc=yes"
5486 eval "$gt_func_gnugettext_libc=no"
5488 rm -f core conftest.err conftest.$ac_objext \
5489 conftest$ac_exeext conftest.$ac_ext
5491 eval ac_res=\$$gt_func_gnugettext_libc
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5493 $as_echo "$ac_res" >&6; }
5495 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5501 am_save_CPPFLAGS="$CPPFLAGS"
5503 for element in $INCICONV; do
5505 for x in $CPPFLAGS; do
5507 acl_save_prefix="$prefix"
5508 prefix="$acl_final_prefix"
5509 acl_save_exec_prefix="$exec_prefix"
5510 exec_prefix="$acl_final_exec_prefix"
5512 exec_prefix="$acl_save_exec_prefix"
5513 prefix="$acl_save_prefix"
5515 if test "X$x" = "X$element"; then
5520 if test -z "$haveit"; then
5521 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5527 $as_echo_n "checking for iconv... " >&6; }
5528 if ${am_cv_func_iconv+:} false; then :
5529 $as_echo_n "(cached) " >&6
5532 am_cv_func_iconv="no, consider installing GNU libiconv"
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5541 iconv_t cd = iconv_open("","");
5542 iconv(cd,NULL,NULL,NULL,NULL);
5548 if ac_fn_c_try_link "$LINENO"; then :
5549 am_cv_func_iconv=yes
5551 rm -f core conftest.err conftest.$ac_objext \
5552 conftest$ac_exeext conftest.$ac_ext
5553 if test "$am_cv_func_iconv" != yes; then
5554 am_save_LIBS="$LIBS"
5555 LIBS="$LIBS $LIBICONV"
5556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557 /* end confdefs.h. */
5563 iconv_t cd = iconv_open("","");
5564 iconv(cd,NULL,NULL,NULL,NULL);
5570 if ac_fn_c_try_link "$LINENO"; then :
5572 am_cv_func_iconv=yes
5574 rm -f core conftest.err conftest.$ac_objext \
5575 conftest$ac_exeext conftest.$ac_ext
5576 LIBS="$am_save_LIBS"
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5581 $as_echo "$am_cv_func_iconv" >&6; }
5582 if test "$am_cv_func_iconv" = yes; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5584 $as_echo_n "checking for working iconv... " >&6; }
5585 if ${am_cv_func_iconv_works+:} false; then :
5586 $as_echo_n "(cached) " >&6
5589 am_save_LIBS="$LIBS"
5590 if test $am_cv_lib_iconv = yes; then
5591 LIBS="$LIBS $LIBICONV"
5593 if test "$cross_compiling" = yes; then :
5595 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5596 *) am_cv_func_iconv_works="guessing yes" ;;
5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h. */
5606 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5609 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5610 if (cd_utf8_to_88591 != (iconv_t)(-1))
5612 static const char input[] = "\342\202\254"; /* EURO SIGN */
5614 const char *inptr = input;
5615 size_t inbytesleft = strlen (input);
5617 size_t outbytesleft = sizeof (buf);
5618 size_t res = iconv (cd_utf8_to_88591,
5619 (char **) &inptr, &inbytesleft,
5620 &outptr, &outbytesleft);
5625 /* Test against Solaris 10 bug: Failures are not distinguishable from
5626 successful returns. */
5628 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
5629 if (cd_ascii_to_88591 != (iconv_t)(-1))
5631 static const char input[] = "\263";
5633 const char *inptr = input;
5634 size_t inbytesleft = strlen (input);
5636 size_t outbytesleft = sizeof (buf);
5637 size_t res = iconv (cd_ascii_to_88591,
5638 (char **) &inptr, &inbytesleft,
5639 &outptr, &outbytesleft);
5644 #if 0 /* This bug could be worked around by the caller. */
5645 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
5647 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5648 if (cd_88591_to_utf8 != (iconv_t)(-1))
5650 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5652 const char *inptr = input;
5653 size_t inbytesleft = strlen (input);
5655 size_t outbytesleft = sizeof (buf);
5656 size_t res = iconv (cd_88591_to_utf8,
5657 (char **) &inptr, &inbytesleft,
5658 &outptr, &outbytesleft);
5664 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5666 if (/* Try standardized names. */
5667 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5668 /* Try IRIX, OSF/1 names. */
5669 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5670 /* Try AIX names. */
5671 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5672 /* Try HP-UX names. */
5673 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5678 if ac_fn_c_try_run "$LINENO"; then :
5679 am_cv_func_iconv_works=yes
5681 am_cv_func_iconv_works=no
5683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5684 conftest.$ac_objext conftest.beam conftest.$ac_ext
5687 LIBS="$am_save_LIBS"
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5691 $as_echo "$am_cv_func_iconv_works" >&6; }
5692 case "$am_cv_func_iconv_works" in
5693 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5694 *) am_func_iconv=yes ;;
5697 am_func_iconv=no am_cv_lib_iconv=no
5699 if test "$am_func_iconv" = yes; then
5701 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5704 if test "$am_cv_lib_iconv" = yes; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5706 $as_echo_n "checking how to link with libiconv... " >&6; }
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5708 $as_echo "$LIBICONV" >&6; }
5710 CPPFLAGS="$am_save_CPPFLAGS"
5727 acl_save_prefix="$prefix"
5728 prefix="$acl_final_prefix"
5729 acl_save_exec_prefix="$exec_prefix"
5730 exec_prefix="$acl_final_exec_prefix"
5732 eval additional_includedir=\"$includedir\"
5733 eval additional_libdir=\"$libdir\"
5735 exec_prefix="$acl_save_exec_prefix"
5736 prefix="$acl_save_prefix"
5739 # Check whether --with-libintl-prefix was given.
5740 if test "${with_libintl_prefix+set}" = set; then :
5741 withval=$with_libintl_prefix;
5742 if test "X$withval" = "Xno"; then
5745 if test "X$withval" = "X"; then
5747 acl_save_prefix="$prefix"
5748 prefix="$acl_final_prefix"
5749 acl_save_exec_prefix="$exec_prefix"
5750 exec_prefix="$acl_final_exec_prefix"
5752 eval additional_includedir=\"$includedir\"
5753 eval additional_libdir=\"$libdir\"
5755 exec_prefix="$acl_save_exec_prefix"
5756 prefix="$acl_save_prefix"
5759 additional_includedir="$withval/include"
5760 additional_libdir="$withval/$acl_libdirstem"
5761 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5762 && ! test -d "$withval/$acl_libdirstem"; then
5763 additional_libdir="$withval/$acl_libdirstem2"
5777 names_already_handled=
5778 names_next_round='intl '
5779 while test -n "$names_next_round"; do
5780 names_this_round="$names_next_round"
5782 for name in $names_this_round; do
5784 for n in $names_already_handled; do
5785 if test "$n" = "$name"; then
5790 if test -z "$already_handled"; then
5791 names_already_handled="$names_already_handled $name"
5792 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5793 eval value=\"\$HAVE_LIB$uppername\"
5794 if test -n "$value"; then
5795 if test "$value" = yes; then
5796 eval value=\"\$LIB$uppername\"
5797 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5798 eval value=\"\$LTLIB$uppername\"
5799 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5808 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5809 if test -n "$acl_shlibext"; then
5810 shrext=".$acl_shlibext" # typically: shrext=.so
5814 if test $use_additional = yes; then
5815 dir="$additional_libdir"
5816 if test -n "$acl_shlibext"; then
5817 if test -f "$dir/$libname$shrext"; then
5819 found_so="$dir/$libname$shrext"
5821 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5822 ver=`(cd "$dir" && \
5823 for f in "$libname$shrext".*; do echo "$f"; done \
5824 | sed -e "s,^$libname$shrext\\\\.,," \
5825 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5826 | sed 1q ) 2>/dev/null`
5827 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5829 found_so="$dir/$libname$shrext.$ver"
5832 eval library_names=\"$acl_library_names_spec\"
5833 for f in $library_names; do
5834 if test -f "$dir/$f"; then
5843 if test "X$found_dir" = "X"; then
5844 if test -f "$dir/$libname.$acl_libext"; then
5846 found_a="$dir/$libname.$acl_libext"
5849 if test "X$found_dir" != "X"; then
5850 if test -f "$dir/$libname.la"; then
5851 found_la="$dir/$libname.la"
5855 if test "X$found_dir" = "X"; then
5856 for x in $LDFLAGS $LTLIBINTL; do
5858 acl_save_prefix="$prefix"
5859 prefix="$acl_final_prefix"
5860 acl_save_exec_prefix="$exec_prefix"
5861 exec_prefix="$acl_final_exec_prefix"
5863 exec_prefix="$acl_save_exec_prefix"
5864 prefix="$acl_save_prefix"
5868 dir=`echo "X$x" | sed -e 's/^X-L//'`
5869 if test -n "$acl_shlibext"; then
5870 if test -f "$dir/$libname$shrext"; then
5872 found_so="$dir/$libname$shrext"
5874 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5875 ver=`(cd "$dir" && \
5876 for f in "$libname$shrext".*; do echo "$f"; done \
5877 | sed -e "s,^$libname$shrext\\\\.,," \
5878 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5879 | sed 1q ) 2>/dev/null`
5880 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5882 found_so="$dir/$libname$shrext.$ver"
5885 eval library_names=\"$acl_library_names_spec\"
5886 for f in $library_names; do
5887 if test -f "$dir/$f"; then
5896 if test "X$found_dir" = "X"; then
5897 if test -f "$dir/$libname.$acl_libext"; then
5899 found_a="$dir/$libname.$acl_libext"
5902 if test "X$found_dir" != "X"; then
5903 if test -f "$dir/$libname.la"; then
5904 found_la="$dir/$libname.la"
5909 if test "X$found_dir" != "X"; then
5914 if test "X$found_dir" != "X"; then
5915 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5916 if test "X$found_so" != "X"; then
5917 if test "$enable_rpath" = no \
5918 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5919 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5920 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5923 for x in $ltrpathdirs; do
5924 if test "X$x" = "X$found_dir"; then
5929 if test -z "$haveit"; then
5930 ltrpathdirs="$ltrpathdirs $found_dir"
5932 if test "$acl_hardcode_direct" = yes; then
5933 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5935 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5936 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5938 for x in $rpathdirs; do
5939 if test "X$x" = "X$found_dir"; then
5944 if test -z "$haveit"; then
5945 rpathdirs="$rpathdirs $found_dir"
5949 for x in $LDFLAGS $LIBINTL; do
5951 acl_save_prefix="$prefix"
5952 prefix="$acl_final_prefix"
5953 acl_save_exec_prefix="$exec_prefix"
5954 exec_prefix="$acl_final_exec_prefix"
5956 exec_prefix="$acl_save_exec_prefix"
5957 prefix="$acl_save_prefix"
5959 if test "X$x" = "X-L$found_dir"; then
5964 if test -z "$haveit"; then
5965 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5967 if test "$acl_hardcode_minus_L" != no; then
5968 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5970 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5976 if test "X$found_a" != "X"; then
5977 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5979 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5982 additional_includedir=
5983 case "$found_dir" in
5984 */$acl_libdirstem | */$acl_libdirstem/)
5985 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5986 if test "$name" = 'intl'; then
5987 LIBINTL_PREFIX="$basedir"
5989 additional_includedir="$basedir/include"
5991 */$acl_libdirstem2 | */$acl_libdirstem2/)
5992 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5993 if test "$name" = 'intl'; then
5994 LIBINTL_PREFIX="$basedir"
5996 additional_includedir="$basedir/include"
5999 if test "X$additional_includedir" != "X"; then
6000 if test "X$additional_includedir" != "X/usr/include"; then
6002 if test "X$additional_includedir" = "X/usr/local/include"; then
6003 if test -n "$GCC"; then
6005 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6009 if test -z "$haveit"; then
6010 for x in $CPPFLAGS $INCINTL; do
6012 acl_save_prefix="$prefix"
6013 prefix="$acl_final_prefix"
6014 acl_save_exec_prefix="$exec_prefix"
6015 exec_prefix="$acl_final_exec_prefix"
6017 exec_prefix="$acl_save_exec_prefix"
6018 prefix="$acl_save_prefix"
6020 if test "X$x" = "X-I$additional_includedir"; then
6025 if test -z "$haveit"; then
6026 if test -d "$additional_includedir"; then
6027 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6033 if test -n "$found_la"; then
6034 save_libdir="$libdir"
6036 */* | *\\*) . "$found_la" ;;
6037 *) . "./$found_la" ;;
6039 libdir="$save_libdir"
6040 for dep in $dependency_libs; do
6043 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6044 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6045 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6047 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6048 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6049 if test -n "$GCC"; then
6051 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6055 if test -z "$haveit"; then
6057 for x in $LDFLAGS $LIBINTL; do
6059 acl_save_prefix="$prefix"
6060 prefix="$acl_final_prefix"
6061 acl_save_exec_prefix="$exec_prefix"
6062 exec_prefix="$acl_final_exec_prefix"
6064 exec_prefix="$acl_save_exec_prefix"
6065 prefix="$acl_save_prefix"
6067 if test "X$x" = "X-L$additional_libdir"; then
6072 if test -z "$haveit"; then
6073 if test -d "$additional_libdir"; then
6074 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6078 for x in $LDFLAGS $LTLIBINTL; do
6080 acl_save_prefix="$prefix"
6081 prefix="$acl_final_prefix"
6082 acl_save_exec_prefix="$exec_prefix"
6083 exec_prefix="$acl_final_exec_prefix"
6085 exec_prefix="$acl_save_exec_prefix"
6086 prefix="$acl_save_prefix"
6088 if test "X$x" = "X-L$additional_libdir"; then
6093 if test -z "$haveit"; then
6094 if test -d "$additional_libdir"; then
6095 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6102 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6103 if test "$enable_rpath" != no; then
6105 for x in $rpathdirs; do
6106 if test "X$x" = "X$dir"; then
6111 if test -z "$haveit"; then
6112 rpathdirs="$rpathdirs $dir"
6115 for x in $ltrpathdirs; do
6116 if test "X$x" = "X$dir"; then
6121 if test -z "$haveit"; then
6122 ltrpathdirs="$ltrpathdirs $dir"
6127 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6130 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6133 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6134 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6140 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6141 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6147 if test "X$rpathdirs" != "X"; then
6148 if test -n "$acl_hardcode_libdir_separator"; then
6150 for found_dir in $rpathdirs; do
6151 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6153 acl_save_libdir="$libdir"
6155 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6156 libdir="$acl_save_libdir"
6157 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6159 for found_dir in $rpathdirs; do
6160 acl_save_libdir="$libdir"
6162 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6163 libdir="$acl_save_libdir"
6164 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6168 if test "X$ltrpathdirs" != "X"; then
6169 for found_dir in $ltrpathdirs; do
6170 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6180 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6181 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6182 $as_echo_n "(cached) " >&6
6184 gt_save_CPPFLAGS="$CPPFLAGS"
6185 CPPFLAGS="$CPPFLAGS $INCINTL"
6186 gt_save_LIBS="$LIBS"
6187 LIBS="$LIBS $LIBINTL"
6188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h. */
6190 #include <libintl.h>
6191 $gt_revision_test_code
6192 extern int _nl_msg_cat_cntr;
6197 const char *_nl_expand_alias (const char *);
6201 bindtextdomain ("", "");
6202 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6207 if ac_fn_c_try_link "$LINENO"; then :
6208 eval "$gt_func_gnugettext_libintl=yes"
6210 eval "$gt_func_gnugettext_libintl=no"
6212 rm -f core conftest.err conftest.$ac_objext \
6213 conftest$ac_exeext conftest.$ac_ext
6214 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6215 LIBS="$LIBS $LIBICONV"
6216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6217 /* end confdefs.h. */
6218 #include <libintl.h>
6219 $gt_revision_test_code
6220 extern int _nl_msg_cat_cntr;
6225 const char *_nl_expand_alias (const char *);
6229 bindtextdomain ("", "");
6230 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6235 if ac_fn_c_try_link "$LINENO"; then :
6236 LIBINTL="$LIBINTL $LIBICONV"
6237 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6238 eval "$gt_func_gnugettext_libintl=yes"
6241 rm -f core conftest.err conftest.$ac_objext \
6242 conftest$ac_exeext conftest.$ac_ext
6244 CPPFLAGS="$gt_save_CPPFLAGS"
6245 LIBS="$gt_save_LIBS"
6247 eval ac_res=\$$gt_func_gnugettext_libintl
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6249 $as_echo "$ac_res" >&6; }
6252 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6253 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6254 && test "$PACKAGE" != gettext-runtime \
6255 && test "$PACKAGE" != gettext-tools; }; then
6256 gt_use_preinstalled_gnugettext=yes
6265 if test -n "$INTL_MACOSX_LIBS"; then
6266 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6267 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6268 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6269 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6273 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6274 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6276 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6284 $as_echo_n "checking whether to use NLS... " >&6; }
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6286 $as_echo "$USE_NLS" >&6; }
6287 if test "$USE_NLS" = "yes"; then
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6289 $as_echo_n "checking where the gettext function comes from... " >&6; }
6290 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6291 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6292 gt_source="external libintl"
6297 gt_source="included intl directory"
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6300 $as_echo "$gt_source" >&6; }
6303 if test "$USE_NLS" = "yes"; then
6305 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6306 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6308 $as_echo_n "checking how to link with libintl... " >&6; }
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6310 $as_echo "$LIBINTL" >&6; }
6312 for element in $INCINTL; do
6314 for x in $CPPFLAGS; do
6316 acl_save_prefix="$prefix"
6317 prefix="$acl_final_prefix"
6318 acl_save_exec_prefix="$exec_prefix"
6319 exec_prefix="$acl_final_exec_prefix"
6321 exec_prefix="$acl_save_exec_prefix"
6322 prefix="$acl_save_prefix"
6324 if test "X$x" = "X$element"; then
6329 if test -z "$haveit"; then
6330 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6337 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6340 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6357 # Checks for header files.
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6359 $as_echo_n "checking for X... " >&6; }
6362 # Check whether --with-x was given.
6363 if test "${with_x+set}" = set; then :
6367 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6368 if test "x$with_x" = xno; then
6369 # The user explicitly disabled X.
6372 case $x_includes,$x_libraries in #(
6373 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
6374 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
6375 $as_echo_n "(cached) " >&6
6377 # One or both of the vars are not set, and there is no cached value.
6378 ac_x_includes=no ac_x_libraries=no
6379 rm -f -r conftest.dir
6380 if mkdir conftest.dir; then
6382 cat >Imakefile <<'_ACEOF'
6384 @echo incroot='${INCROOT}'
6386 @echo usrlibdir='${USRLIBDIR}'
6388 @echo libdir='${LIBDIR}'
6390 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6391 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6392 for ac_var in incroot usrlibdir libdir; do
6393 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6395 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6396 for ac_extension in a so sl dylib la dll; do
6397 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6398 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6399 ac_im_usrlibdir=$ac_im_libdir; break
6402 # Screen out bogus values from the imake configuration. They are
6403 # bogus both because they are the default anyway, and because
6404 # using them would break gcc on systems where it needs fixed includes.
6405 case $ac_im_incroot in
6406 /usr/include) ac_x_includes= ;;
6407 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6409 case $ac_im_usrlibdir in
6410 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6411 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6415 rm -f -r conftest.dir
6418 # Standard set of common directories for X headers.
6419 # Check X11 before X11Rn because it is often a symlink to the current release.
6433 /usr/local/X11/include
6434 /usr/local/X11R7/include
6435 /usr/local/X11R6/include
6436 /usr/local/X11R5/include
6437 /usr/local/X11R4/include
6439 /usr/local/include/X11
6440 /usr/local/include/X11R7
6441 /usr/local/include/X11R6
6442 /usr/local/include/X11R5
6443 /usr/local/include/X11R4
6447 /usr/XFree86/include/X11
6451 /usr/unsupported/include
6453 /usr/local/x11r5/include
6454 /usr/lpp/Xamples/include
6456 /usr/openwin/include
6457 /usr/openwin/share/include'
6459 if test "$ac_x_includes" = no; then
6460 # Guess where to find include files, by looking for Xlib.h.
6461 # First, try using that file with no special directory specified.
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464 #include <X11/Xlib.h>
6466 if ac_fn_c_try_cpp "$LINENO"; then :
6467 # We can compile using X headers with no special include directory.
6470 for ac_dir in $ac_x_header_dirs; do
6471 if test -r "$ac_dir/X11/Xlib.h"; then
6472 ac_x_includes=$ac_dir
6477 rm -f conftest.err conftest.i conftest.$ac_ext
6478 fi # $ac_x_includes = no
6480 if test "$ac_x_libraries" = no; then
6481 # Check for the libraries.
6482 # See if we find them without any special options.
6483 # Don't add to $LIBS permanently.
6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487 /* end confdefs.h. */
6488 #include <X11/Xlib.h>
6497 if ac_fn_c_try_link "$LINENO"; then :
6499 # We can link X programs with no special library path.
6503 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6505 # Don't even attempt the hair of trying to link an X program!
6506 for ac_extension in a so sl dylib la dll; do
6507 if test -r "$ac_dir/libX11.$ac_extension"; then
6508 ac_x_libraries=$ac_dir
6514 rm -f core conftest.err conftest.$ac_objext \
6515 conftest$ac_exeext conftest.$ac_ext
6516 fi # $ac_x_libraries = no
6518 case $ac_x_includes,$ac_x_libraries in #(
6520 # Didn't find X, or a directory has "'" in its name.
6521 ac_cv_have_x="have_x=no";; #(
6523 # Record where we found X for the cache.
6524 ac_cv_have_x="have_x=yes\
6525 ac_x_includes='$ac_x_includes'\
6526 ac_x_libraries='$ac_x_libraries'"
6532 eval "$ac_cv_have_x"
6535 if test "$have_x" != yes; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6537 $as_echo "$have_x" >&6; }
6540 # If each of the values was on the command line, it overrides each guess.
6541 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6542 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6543 # Update the cache value to reflect the command line values.
6544 ac_cv_have_x="have_x=yes\
6545 ac_x_includes='$x_includes'\
6546 ac_x_libraries='$x_libraries'"
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6548 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6552 $as_echo_n "checking for ANSI C header files... " >&6; }
6553 if ${ac_cv_header_stdc+:} false; then :
6554 $as_echo_n "(cached) " >&6
6556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557 /* end confdefs.h. */
6571 if ac_fn_c_try_compile "$LINENO"; then :
6572 ac_cv_header_stdc=yes
6574 ac_cv_header_stdc=no
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6578 if test $ac_cv_header_stdc = yes; then
6579 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6586 $EGREP "memchr" >/dev/null 2>&1; then :
6589 ac_cv_header_stdc=no
6595 if test $ac_cv_header_stdc = yes; then
6596 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6603 $EGREP "free" >/dev/null 2>&1; then :
6606 ac_cv_header_stdc=no
6612 if test $ac_cv_header_stdc = yes; then
6613 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6614 if test "$cross_compiling" = yes; then :
6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6621 #if ((' ' & 0x0FF) == 0x020)
6622 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6623 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6625 # define ISLOWER(c) \
6626 (('a' <= (c) && (c) <= 'i') \
6627 || ('j' <= (c) && (c) <= 'r') \
6628 || ('s' <= (c) && (c) <= 'z'))
6629 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6632 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6637 for (i = 0; i < 256; i++)
6638 if (XOR (islower (i), ISLOWER (i))
6639 || toupper (i) != TOUPPER (i))
6644 if ac_fn_c_try_run "$LINENO"; then :
6647 ac_cv_header_stdc=no
6649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6650 conftest.$ac_objext conftest.beam conftest.$ac_ext
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6656 $as_echo "$ac_cv_header_stdc" >&6; }
6657 if test $ac_cv_header_stdc = yes; then
6659 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6663 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6664 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6665 inttypes.h stdint.h unistd.h
6667 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6668 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6670 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6671 cat >>confdefs.h <<_ACEOF
6672 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6680 for ac_header in getopt.h stdio.h stdlib.h string.h sys/stat.h sys/time.h sys/types.h time.h
6682 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6683 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6684 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6685 cat >>confdefs.h <<_ACEOF
6686 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6702 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6703 if test -n "$ac_tool_prefix"; then
6704 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6705 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6707 $as_echo_n "checking for $ac_word... " >&6; }
6708 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6709 $as_echo_n "(cached) " >&6
6713 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6723 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6735 if test -n "$PKG_CONFIG"; then
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6737 $as_echo "$PKG_CONFIG" >&6; }
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740 $as_echo "no" >&6; }
6745 if test -z "$ac_cv_path_PKG_CONFIG"; then
6746 ac_pt_PKG_CONFIG=$PKG_CONFIG
6747 # Extract the first word of "pkg-config", so it can be a program name with args.
6748 set dummy pkg-config; ac_word=$2
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6750 $as_echo_n "checking for $ac_word... " >&6; }
6751 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6752 $as_echo_n "(cached) " >&6
6754 case $ac_pt_PKG_CONFIG in
6756 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 test -z "$as_dir" && as_dir=.
6764 for ac_exec_ext in '' $ac_executable_extensions; do
6765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6766 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6778 if test -n "$ac_pt_PKG_CONFIG"; then
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6780 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6783 $as_echo "no" >&6; }
6786 if test "x$ac_pt_PKG_CONFIG" = x; then
6789 case $cross_compiling:$ac_tool_warned in
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6793 ac_tool_warned=yes ;;
6795 PKG_CONFIG=$ac_pt_PKG_CONFIG
6798 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6802 if test -n "$PKG_CONFIG"; then
6803 _pkg_min_version=0.9.0
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6805 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6806 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6808 $as_echo "yes" >&6; }
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811 $as_echo "no" >&6; }
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
6818 $as_echo_n "checking for CURL... " >&6; }
6820 if test -n "$CURL_CFLAGS"; then
6821 pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
6822 elif test -n "$PKG_CONFIG"; then
6823 if test -n "$PKG_CONFIG" && \
6824 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl \""; } >&5
6825 ($PKG_CONFIG --exists --print-errors "libcurl ") 2>&5
6827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6828 test $ac_status = 0; }; then
6829 pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl " 2>/dev/null`
6830 test "x$?" != "x0" && pkg_failed=yes
6837 if test -n "$CURL_LIBS"; then
6838 pkg_cv_CURL_LIBS="$CURL_LIBS"
6839 elif test -n "$PKG_CONFIG"; then
6840 if test -n "$PKG_CONFIG" && \
6841 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl \""; } >&5
6842 ($PKG_CONFIG --exists --print-errors "libcurl ") 2>&5
6844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6845 test $ac_status = 0; }; then
6846 pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl " 2>/dev/null`
6847 test "x$?" != "x0" && pkg_failed=yes
6857 if test $pkg_failed = yes; then
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6859 $as_echo "no" >&6; }
6861 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6862 _pkg_short_errors_supported=yes
6864 _pkg_short_errors_supported=no
6866 if test $_pkg_short_errors_supported = yes; then
6867 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl " 2>&1`
6869 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl " 2>&1`
6871 # Put the nasty error message in config.log where it belongs
6872 echo "$CURL_PKG_ERRORS" >&5
6874 as_fn_error $? "Package requirements (libcurl ) were not met:
6878 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6879 installed software in a non-standard prefix.
6881 Alternatively, you may set the environment variables CURL_CFLAGS
6882 and CURL_LIBS to avoid the need to call pkg-config.
6883 See the pkg-config man page for more details." "$LINENO" 5
6884 elif test $pkg_failed = untried; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6886 $as_echo "no" >&6; }
6887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6889 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6890 is in your PATH or set the PKG_CONFIG environment variable to the full
6893 Alternatively, you may set the environment variables CURL_CFLAGS
6894 and CURL_LIBS to avoid the need to call pkg-config.
6895 See the pkg-config man page for more details.
6897 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6898 See \`config.log' for more details" "$LINENO" 5; }
6900 CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
6901 CURL_LIBS=$pkg_cv_CURL_LIBS
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6903 $as_echo "yes" >&6; }
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
6914 $as_echo_n "checking for JSON... " >&6; }
6916 if test -n "$JSON_CFLAGS"; then
6917 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
6918 elif test -n "$PKG_CONFIG"; then
6919 if test -n "$PKG_CONFIG" && \
6920 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
6921 ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
6923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6924 test $ac_status = 0; }; then
6925 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json-c" 2>/dev/null`
6926 test "x$?" != "x0" && pkg_failed=yes
6933 if test -n "$JSON_LIBS"; then
6934 pkg_cv_JSON_LIBS="$JSON_LIBS"
6935 elif test -n "$PKG_CONFIG"; then
6936 if test -n "$PKG_CONFIG" && \
6937 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
6938 ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
6940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6941 test $ac_status = 0; }; then
6942 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json-c" 2>/dev/null`
6943 test "x$?" != "x0" && pkg_failed=yes
6953 if test $pkg_failed = yes; then
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6955 $as_echo "no" >&6; }
6957 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6958 _pkg_short_errors_supported=yes
6960 _pkg_short_errors_supported=no
6962 if test $_pkg_short_errors_supported = yes; then
6963 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c" 2>&1`
6965 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c" 2>&1`
6967 # Put the nasty error message in config.log where it belongs
6968 echo "$JSON_PKG_ERRORS" >&5
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json-c missing\"" >&5
6971 $as_echo "$as_me: WARNING: \"json-c missing\"" >&2;}
6972 elif test $pkg_failed = untried; then
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974 $as_echo "no" >&6; }
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json-c missing\"" >&5
6976 $as_echo "$as_me: WARNING: \"json-c missing\"" >&2;}
6978 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
6979 JSON_LIBS=$pkg_cv_JSON_LIBS
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6981 $as_echo "yes" >&6; }
6983 $as_echo "#define HAVE_JSON 1" >>confdefs.h
6987 if test "$JSON_LIBS" == ""; then
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
6991 $as_echo_n "checking for JSON... " >&6; }
6993 if test -n "$JSON_CFLAGS"; then
6994 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
6995 elif test -n "$PKG_CONFIG"; then
6996 if test -n "$PKG_CONFIG" && \
6997 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
6998 ($PKG_CONFIG --exists --print-errors "json") 2>&5
7000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7001 test $ac_status = 0; }; then
7002 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json" 2>/dev/null`
7003 test "x$?" != "x0" && pkg_failed=yes
7010 if test -n "$JSON_LIBS"; then
7011 pkg_cv_JSON_LIBS="$JSON_LIBS"
7012 elif test -n "$PKG_CONFIG"; then
7013 if test -n "$PKG_CONFIG" && \
7014 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
7015 ($PKG_CONFIG --exists --print-errors "json") 2>&5
7017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7018 test $ac_status = 0; }; then
7019 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json" 2>/dev/null`
7020 test "x$?" != "x0" && pkg_failed=yes
7030 if test $pkg_failed = yes; then
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7032 $as_echo "no" >&6; }
7034 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7035 _pkg_short_errors_supported=yes
7037 _pkg_short_errors_supported=no
7039 if test $_pkg_short_errors_supported = yes; then
7040 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json" 2>&1`
7042 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json" 2>&1`
7044 # Put the nasty error message in config.log where it belongs
7045 echo "$JSON_PKG_ERRORS" >&5
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json0 missing\"" >&5
7048 $as_echo "$as_me: WARNING: \"json0 missing\"" >&2;}
7049 elif test $pkg_failed = untried; then
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051 $as_echo "no" >&6; }
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json0 missing\"" >&5
7053 $as_echo "$as_me: WARNING: \"json0 missing\"" >&2;}
7055 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
7056 JSON_LIBS=$pkg_cv_JSON_LIBS
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7058 $as_echo "yes" >&6; }
7060 $as_echo "#define HAVE_JSON 1" >>confdefs.h
7063 $as_echo "#define HAVE_JSON_0 1" >>confdefs.h
7068 if test -n "$JSON_LIBS"; then
7079 ac_fn_c_check_type "$LINENO" "json_bool" "ac_cv_type_json_bool" "#include <json/json.h>
7081 if test "x$ac_cv_type_json_bool" = xyes; then :
7083 $as_echo "#define HAVE_JSON_BOOL 1" >>confdefs.h
7088 ac_config_files="$ac_config_files po/Makefile.in Makefile src/Makefile tests/Makefile www/footer.tpl www/Makefile"
7091 for ac_prog in help2man
7093 # Extract the first word of "$ac_prog", so it can be a program name with args.
7094 set dummy $ac_prog; ac_word=$2
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7096 $as_echo_n "checking for $ac_word... " >&6; }
7097 if ${ac_cv_prog_HELP2MAN+:} false; then :
7098 $as_echo_n "(cached) " >&6
7100 if test -n "$HELP2MAN"; then
7101 ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7110 ac_cv_prog_HELP2MAN="$ac_prog"
7111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 HELP2MAN=$ac_cv_prog_HELP2MAN
7121 if test -n "$HELP2MAN"; then
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
7123 $as_echo "$HELP2MAN" >&6; }
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126 $as_echo "no" >&6; }
7130 test -n "$HELP2MAN" && break
7135 cat >confcache <<\_ACEOF
7136 # This file is a shell script that caches the results of configure
7137 # tests run on this system so they can be shared between configure
7138 # scripts and configure runs, see configure's option --config-cache.
7139 # It is not useful on other systems. If it contains results you don't
7140 # want to keep, you may remove or edit it.
7142 # config.status only pays attention to the cache file if you give it
7143 # the --recheck option to rerun configure.
7145 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7146 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7151 # The following way of writing the cache mishandles newlines in values,
7152 # but we know of no workaround that is simple, portable, and efficient.
7153 # So, we kill variables containing newlines.
7154 # Ultrix sh set writes to stderr and can't be redirected directly,
7155 # and sets the high bit in the cache file unless we assign to the vars.
7157 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7158 eval ac_val=\$$ac_var
7162 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7163 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7166 _ | IFS | as_nl) ;; #(
7167 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7168 *) { eval $ac_var=; unset $ac_var;} ;;
7174 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7175 *${as_nl}ac_space=\ *)
7176 # `set' does not quote correctly, so add quotes: double-quote
7177 # substitution turns \\\\ into \\, and sed turns \\ into \.
7180 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7183 # `set' quotes correctly as required by POSIX, so do not add quotes.
7184 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7193 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7195 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7197 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7198 if test -w "$cache_file"; then
7199 if test "x$cache_file" != "x/dev/null"; then
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7201 $as_echo "$as_me: updating cache $cache_file" >&6;}
7202 if test ! -f "$cache_file" || test -h "$cache_file"; then
7203 cat confcache >"$cache_file"
7205 case $cache_file in #(
7207 mv -f confcache "$cache_file"$$ &&
7208 mv -f "$cache_file"$$ "$cache_file" ;; #(
7210 mv -f confcache "$cache_file" ;;
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7216 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7221 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7222 # Let make expand exec_prefix.
7223 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7225 DEFS=-DHAVE_CONFIG_H
7230 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7231 # 1. Remove the extension, and $U if already installed.
7232 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7233 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7234 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7235 # will be set to the directory where LIBOBJS objects are built.
7236 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7237 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7241 LTLIBOBJS=$ac_ltlibobjs
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7245 $as_echo_n "checking that generated files are newer than configure... " >&6; }
7246 if test -n "$am_sleep_pid"; then
7247 # Hide warnings about reused PIDs.
7248 wait $am_sleep_pid 2>/dev/null
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7251 $as_echo "done" >&6; }
7252 if test -n "$EXEEXT"; then
7254 am__EXEEXT_FALSE='#'
7260 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7261 as_fn_error $? "conditional \"AMDEP\" was never defined.
7262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7264 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7265 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7268 if test -z "${JSON_TRUE}" && test -z "${JSON_FALSE}"; then
7269 as_fn_error $? "conditional \"JSON\" was never defined.
7270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7273 : "${CONFIG_STATUS=./config.status}"
7275 ac_clean_files_save=$ac_clean_files
7276 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7278 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7280 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7282 # Generated by $as_me.
7283 # Run this file to recreate the current configuration.
7284 # Compiler output produced by configure, useful for debugging
7285 # configure, is in config.log if it exists.
7291 SHELL=\${CONFIG_SHELL-$SHELL}
7294 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7295 ## -------------------- ##
7296 ## M4sh Initialization. ##
7297 ## -------------------- ##
7299 # Be more Bourne compatible
7300 DUALCASE=1; export DUALCASE # for MKS sh
7301 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7304 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7305 # is contrary to our usage. Disable this feature.
7306 alias -g '${1+"$@"}'='"$@"'
7307 setopt NO_GLOB_SUBST
7309 case `(set -o) 2>/dev/null` in #(
7321 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7322 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7323 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7324 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7325 # Prefer a ksh shell builtin over an external printf program on Solaris,
7326 # but without wasting forks for bash or zsh.
7327 if test -z "$BASH_VERSION$ZSH_VERSION" \
7328 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7329 as_echo='print -r --'
7330 as_echo_n='print -rn --'
7331 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7332 as_echo='printf %s\n'
7333 as_echo_n='printf %s'
7335 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7336 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7337 as_echo_n='/usr/ucb/echo -n'
7339 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7340 as_echo_n_body='eval
7344 expr "X$arg" : "X\\(.*\\)$as_nl";
7345 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7347 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7349 export as_echo_n_body
7350 as_echo_n='sh -c $as_echo_n_body as_echo'
7353 as_echo='sh -c $as_echo_body as_echo'
7356 # The user is always right.
7357 if test "${PATH_SEPARATOR+set}" != set; then
7359 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7360 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7367 # We need space, tab and new line, in precisely that order. Quoting is
7368 # there to prevent editors from complaining about space-tab.
7369 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7370 # splitting by setting IFS to empty value.)
7373 # Find who we are. Look in the path if we contain no directory separator.
7376 *[\\/]* ) as_myself=$0 ;;
7377 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 test -z "$as_dir" && as_dir=.
7382 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7388 # We did not find ourselves, most probably we were run as `sh COMMAND'
7389 # in which case we are not to be found in the path.
7390 if test "x$as_myself" = x; then
7393 if test ! -f "$as_myself"; then
7394 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7398 # Unset variables that we do not need and which cause bugs (e.g. in
7399 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7400 # suppresses any "Segmentation fault" message there. '((' could
7401 # trigger a bug in pdksh 5.2.14.
7402 for as_var in BASH_ENV ENV MAIL MAILPATH
7403 do eval test x\${$as_var+set} = xset \
7404 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7417 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7420 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7421 # ----------------------------------------
7422 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7423 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7424 # script with STATUS, using 1 if that was 0.
7427 as_status=$1; test $as_status -eq 0 && as_status=1
7429 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7430 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7432 $as_echo "$as_me: error: $2" >&2
7433 as_fn_exit $as_status
7437 # as_fn_set_status STATUS
7438 # -----------------------
7439 # Set $? to STATUS, without forking.
7443 } # as_fn_set_status
7447 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7457 # Portably unset VAR.
7460 { eval $1=; unset $1;}
7462 as_unset=as_fn_unset
7463 # as_fn_append VAR VALUE
7464 # ----------------------
7465 # Append the text in VALUE to the end of the definition contained in VAR. Take
7466 # advantage of any shell optimizations that allow amortized linear growth over
7467 # repeated appends, instead of the typical quadratic growth present in naive
7469 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7470 eval 'as_fn_append ()
7481 # as_fn_arith ARG...
7482 # ------------------
7483 # Perform arithmetic evaluation on the ARGs, and store the result in the
7484 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7485 # must be portable across $(()) and expr.
7486 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7487 eval 'as_fn_arith ()
7494 as_val=`expr "$@" || test $? -eq 1`
7499 if expr a : '\(a\)' >/dev/null 2>&1 &&
7500 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7506 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7507 as_basename=basename
7512 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7518 as_me=`$as_basename -- "$0" ||
7519 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7520 X"$0" : 'X\(//\)$' \| \
7521 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7523 sed '/^.*\/\([^/][^/]*\)\/*$/{
7537 # Avoid depending upon Character Ranges.
7538 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7539 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7540 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7541 as_cr_digits='0123456789'
7542 as_cr_alnum=$as_cr_Letters$as_cr_digits
7544 ECHO_C= ECHO_N= ECHO_T=
7545 case `echo -n x` in #(((((
7547 case `echo 'xy\c'` in
7548 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7550 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7557 rm -f conf$$ conf$$.exe conf$$.file
7558 if test -d conf$$.dir; then
7559 rm -f conf$$.dir/conf$$.file
7562 mkdir conf$$.dir 2>/dev/null
7564 if (echo >conf$$.file) 2>/dev/null; then
7565 if ln -s conf$$.file conf$$ 2>/dev/null; then
7567 # ... but there are two gotchas:
7568 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7569 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7570 # In both cases, we have to default to `cp -pR'.
7571 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7573 elif ln conf$$.file conf$$ 2>/dev/null; then
7581 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7582 rmdir conf$$.dir 2>/dev/null
7587 # Create "$as_dir" as a directory, including parents if necessary.
7592 -*) as_dir=./$as_dir;;
7594 test -d "$as_dir" || eval $as_mkdir_p || {
7598 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7599 *) as_qdir=$as_dir;;
7601 as_dirs="'$as_qdir' $as_dirs"
7602 as_dir=`$as_dirname -- "$as_dir" ||
7603 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7604 X"$as_dir" : 'X\(//\)[^/]' \| \
7605 X"$as_dir" : 'X\(//\)$' \| \
7606 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7607 $as_echo X"$as_dir" |
7608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7625 test -d "$as_dir" && break
7627 test -z "$as_dirs" || eval "mkdir $as_dirs"
7628 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7632 if mkdir -p . 2>/dev/null; then
7633 as_mkdir_p='mkdir -p "$as_dir"'
7635 test -d ./-p && rmdir ./-p
7640 # as_fn_executable_p FILE
7641 # -----------------------
7642 # Test if FILE is an executable regular file.
7643 as_fn_executable_p ()
7645 test -f "$1" && test -x "$1"
7646 } # as_fn_executable_p
7648 as_executable_p=as_fn_executable_p
7650 # Sed expression to map a string onto a valid CPP name.
7651 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7653 # Sed expression to map a string onto a valid variable name.
7654 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7658 ## ----------------------------------- ##
7659 ## Main body of $CONFIG_STATUS script. ##
7660 ## ----------------------------------- ##
7662 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7665 # Save the log message, to keep $0 and so on meaningful, and to
7666 # report actual input values of CONFIG_FILES etc. instead of their
7667 # values after options handling.
7669 This file was extended by ppastats $as_me 0.0.x, which was
7670 generated by GNU Autoconf 2.69. Invocation command line was
7672 CONFIG_FILES = $CONFIG_FILES
7673 CONFIG_HEADERS = $CONFIG_HEADERS
7674 CONFIG_LINKS = $CONFIG_LINKS
7675 CONFIG_COMMANDS = $CONFIG_COMMANDS
7678 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7683 case $ac_config_files in *"
7684 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7687 case $ac_config_headers in *"
7688 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7693 # Files that config.status was made for.
7694 config_files="$ac_config_files"
7695 config_headers="$ac_config_headers"
7696 config_commands="$ac_config_commands"
7700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7702 \`$as_me' instantiates files and other configuration actions
7703 from templates according to the current configuration. Unless the files
7704 and actions are specified as TAGs, all are instantiated by default.
7706 Usage: $0 [OPTION]... [TAG]...
7708 -h, --help print this help, then exit
7709 -V, --version print version number and configuration settings, then exit
7710 --config print configuration, then exit
7711 -q, --quiet, --silent
7712 do not print progress messages
7713 -d, --debug don't remove temporary files
7714 --recheck update $as_me by reconfiguring in the same conditions
7715 --file=FILE[:TEMPLATE]
7716 instantiate the configuration file FILE
7717 --header=FILE[:TEMPLATE]
7718 instantiate the configuration header FILE
7720 Configuration files:
7723 Configuration headers:
7726 Configuration commands:
7729 Report bugs to <jeanfi@gmail.com>.
7730 ppastats home page: <http://wpitchoune.net/ppastats>."
7733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7734 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7736 ppastats config.status 0.0.x
7737 configured by $0, generated by GNU Autoconf 2.69,
7738 with options \\"\$ac_cs_config\\"
7740 Copyright (C) 2012 Free Software Foundation, Inc.
7741 This config.status script is free software; the Free Software Foundation
7742 gives unlimited permission to copy, distribute and modify it."
7749 test -n "\$AWK" || AWK=awk
7752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7753 # The default lists apply if the user does not specify any file.
7759 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7760 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7764 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7776 # Handling of the options.
7777 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7779 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7780 $as_echo "$ac_cs_version"; exit ;;
7781 --config | --confi | --conf | --con | --co | --c )
7782 $as_echo "$ac_cs_config"; exit ;;
7783 --debug | --debu | --deb | --de | --d | -d )
7785 --file | --fil | --fi | --f )
7788 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7789 '') as_fn_error $? "missing file argument" ;;
7791 as_fn_append CONFIG_FILES " '$ac_optarg'"
7792 ac_need_defaults=false;;
7793 --header | --heade | --head | --hea )
7796 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7798 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7799 ac_need_defaults=false;;
7801 # Conflict between --help and --header
7802 as_fn_error $? "ambiguous option: \`$1'
7803 Try \`$0 --help' for more information.";;
7804 --help | --hel | -h )
7805 $as_echo "$ac_cs_usage"; exit ;;
7806 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7807 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7811 -*) as_fn_error $? "unrecognized option: \`$1'
7812 Try \`$0 --help' for more information." ;;
7814 *) as_fn_append ac_config_targets " $1"
7815 ac_need_defaults=false ;;
7821 ac_configure_extra_args=
7823 if $ac_cs_silent; then
7825 ac_configure_extra_args="$ac_configure_extra_args --silent"
7829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7830 if \$ac_cs_recheck; then
7831 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7833 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7834 CONFIG_SHELL='$SHELL'
7840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7844 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7845 ## Running $as_me. ##
7851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7855 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7856 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
7857 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
7858 # from automake < 1.5.
7859 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
7860 # Capture the value of LINGUAS because we need it to compute CATALOGS.
7861 LINGUAS="${LINGUAS-%UNSET%}"
7866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7868 # Handling of arguments.
7869 for ac_config_target in $ac_config_targets
7871 case $ac_config_target in
7872 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7873 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7874 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
7875 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
7876 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7877 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7878 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
7879 "www/footer.tpl") CONFIG_FILES="$CONFIG_FILES www/footer.tpl" ;;
7880 "www/Makefile") CONFIG_FILES="$CONFIG_FILES www/Makefile" ;;
7882 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7887 # If the user did not use the arguments to specify the items to instantiate,
7888 # then the envvar interface is used. Set only those that are not.
7889 # We use the long form for the default assignment because of an extremely
7890 # bizarre bug on SunOS 4.1.3.
7891 if $ac_need_defaults; then
7892 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7893 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7894 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7897 # Have a temporary directory for convenience. Make it in the build tree
7898 # simply because there is no reason against having it here, and in addition,
7899 # creating and moving files from /tmp can sometimes cause problems.
7900 # Hook for its removal unless debugging.
7901 # Note that there is a small window in which the directory will not be cleaned:
7902 # after its creation but before its name has been assigned to `$tmp'.
7906 trap 'exit_status=$?
7908 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7910 trap 'as_fn_exit 1' 1 2 13 15
7912 # Create a (secure) tmp directory for tmp files.
7915 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7919 tmp=./conf$$-$RANDOM
7920 (umask 077 && mkdir "$tmp")
7921 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7924 # Set up the scripts for CONFIG_FILES section.
7925 # No need to generate them if there are no CONFIG_FILES.
7926 # This happens for instance with `./config.status config.h'.
7927 if test -n "$CONFIG_FILES"; then
7930 ac_cr=`echo X | tr X '\015'`
7931 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7932 # But we know of no other shell where ac_cr would be empty at this
7933 # point, so we can use a bashism as a fallback.
7934 if test "x$ac_cr" = x; then
7935 eval ac_cr=\$\'\\r\'
7937 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7938 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7944 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7949 echo "cat >conf$$subs.awk <<_ACEOF" &&
7950 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7953 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7954 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7956 for ac_last_try in false false false false false :; do
7957 . ./conf$$subs.sh ||
7958 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7960 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7961 if test $ac_delim_n = $ac_delim_num; then
7963 elif $ac_last_try; then
7964 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7966 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7972 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7976 s/^/S["/; s/!.*/"]=/
7986 s/\(.\{148\}\)..*/\1/
7988 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7993 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8000 s/\(.\{148\}\)..*/\1/
8002 s/["\\]/\\&/g; s/^/"/; s/$/"/
8006 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8011 ' <conf$$subs.awk | sed '
8016 ' >>$CONFIG_STATUS || ac_write_fail=1
8017 rm -f conf$$subs.awk
8018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8020 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8021 for (key in S) S_is_set[key] = 1
8027 nfields = split(line, field, "@")
8029 len = length(field[1])
8030 for (i = 2; i < nfields; i++) {
8032 keylen = length(key)
8033 if (S_is_set[key]) {
8035 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8036 len += length(value) + length(field[++i])
8047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8048 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8049 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8052 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8053 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8056 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8057 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8058 # trailing colons and then remove the whole line if VPATH becomes empty
8059 # (actually we leave an empty line to preserve line numbers).
8060 if test "x$srcdir" = x.; then
8061 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8080 fi # test -n "$CONFIG_FILES"
8082 # Set up the scripts for CONFIG_HEADERS section.
8083 # No need to generate them if there are no CONFIG_HEADERS.
8084 # This happens for instance with `./config.status Makefile'.
8085 if test -n "$CONFIG_HEADERS"; then
8086 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8090 # Transform confdefs.h into an awk script `defines.awk', embedded as
8091 # here-document in config.status, that substitutes the proper values into
8092 # config.h.in to produce config.h.
8094 # Create a delimiter string that does not exist in confdefs.h, to ease
8095 # handling of long lines.
8097 for ac_last_try in false false :; do
8098 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8099 if test -z "$ac_tt"; then
8101 elif $ac_last_try; then
8102 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8104 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8108 # For the awk script, D is an array of macro values keyed by name,
8109 # likewise P contains macro parameters if any. Preserve backslash
8110 # newline sequences.
8112 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8114 s/.\{148\}/&'"$ac_delim"'/g
8117 s/^[ ]*#[ ]*define[ ][ ]*/ /
8124 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8126 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8130 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8131 D["\1"]=" \3\\\\\\n"\\/p
8133 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8138 s/.\{148\}/&'"$ac_delim"'/g
8143 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8146 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8148 ' <confdefs.h | sed '
8149 s/'"$ac_delim"'/"\\\
8150 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8153 for (key in D) D_is_set[key] = 1
8156 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8158 split(line, arg, " ")
8159 if (arg[1] == "#") {
8163 defundef = substr(arg[1], 2)
8166 split(mac1, mac2, "(") #)
8168 prefix = substr(line, 1, index(line, defundef) - 1)
8169 if (D_is_set[macro]) {
8170 # Preserve the white space surrounding the "#".
8171 print prefix "define", macro P[macro] D[macro]
8174 # Replace #undef with comments. This is necessary, for example,
8175 # in the case of _POSIX_SOURCE, which is predefined and required
8176 # on some systems where configure will not decide to define it.
8177 if (defundef == "undef") {
8178 print "/*", prefix defundef, macro, "*/"
8186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8187 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8188 fi # test -n "$CONFIG_HEADERS"
8191 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8196 :[FHLC]) ac_mode=$ac_tag; continue;;
8198 case $ac_mode$ac_tag in
8200 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8201 :[FH]-) ac_tag=-:-;;
8202 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8219 -) ac_f="$ac_tmp/stdin";;
8220 *) # Look for the file first in the build tree, then in the source tree
8221 # (if the path is not absolute). The absolute path cannot be DOS-style,
8222 # because $ac_f cannot contain `:'.
8226 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8228 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8230 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8231 as_fn_append ac_file_inputs " '$ac_f'"
8234 # Let's still pretend it is `configure' which instantiates (i.e., don't
8235 # use $as_me), people would be surprised to read:
8236 # /* config.h. Generated by config.status. */
8237 configure_input='Generated from '`
8238 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8240 if test x"$ac_file" != x-; then
8241 configure_input="$ac_file. $configure_input"
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8243 $as_echo "$as_me: creating $ac_file" >&6;}
8245 # Neutralize special characters interpreted by sed in replacement strings.
8246 case $configure_input in #(
8247 *\&* | *\|* | *\\* )
8248 ac_sed_conf_input=`$as_echo "$configure_input" |
8249 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8250 *) ac_sed_conf_input=$configure_input;;
8254 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8255 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8260 ac_dir=`$as_dirname -- "$ac_file" ||
8261 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8262 X"$ac_file" : 'X\(//\)[^/]' \| \
8263 X"$ac_file" : 'X\(//\)$' \| \
8264 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8265 $as_echo X"$ac_file" |
8266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8283 as_dir="$ac_dir"; as_fn_mkdir_p
8287 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8289 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8290 # A ".." for each directory in $ac_dir_suffix.
8291 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8292 case $ac_top_builddir_sub in
8293 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8294 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8297 ac_abs_top_builddir=$ac_pwd
8298 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8299 # for backward compatibility:
8300 ac_top_builddir=$ac_top_build_prefix
8303 .) # We are building in place.
8305 ac_top_srcdir=$ac_top_builddir_sub
8306 ac_abs_top_srcdir=$ac_pwd ;;
8307 [\\/]* | ?:[\\/]* ) # Absolute name.
8308 ac_srcdir=$srcdir$ac_dir_suffix;
8309 ac_top_srcdir=$srcdir
8310 ac_abs_top_srcdir=$srcdir ;;
8312 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8313 ac_top_srcdir=$ac_top_build_prefix$srcdir
8314 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8316 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8326 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8327 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8331 [\\/$]* | ?:[\\/]* ) ;;
8332 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8337 # If the template does not know about datarootdir, expand it.
8338 # FIXME: This hack should be removed a few years after 2.60.
8339 ac_datarootdir_hack=; ac_datarootdir_seen=
8350 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8351 *datarootdir*) ac_datarootdir_seen=yes;;
8352 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8354 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8357 ac_datarootdir_hack='
8358 s&@datadir@&$datadir&g
8359 s&@docdir@&$docdir&g
8360 s&@infodir@&$infodir&g
8361 s&@localedir@&$localedir&g
8362 s&@mandir@&$mandir&g
8363 s&\\\${datarootdir}&$datarootdir&g' ;;
8367 # Neutralize VPATH when `$srcdir' = `.'.
8368 # Shell code in configure.ac might set extrasub.
8369 # FIXME: do we really want to maintain this feature?
8370 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8371 ac_sed_extra="$ac_vpsub
8374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8376 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8377 s|@configure_input@|$ac_sed_conf_input|;t t
8378 s&@top_builddir@&$ac_top_builddir_sub&;t t
8379 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8380 s&@srcdir@&$ac_srcdir&;t t
8381 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8382 s&@top_srcdir@&$ac_top_srcdir&;t t
8383 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8384 s&@builddir@&$ac_builddir&;t t
8385 s&@abs_builddir@&$ac_abs_builddir&;t t
8386 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8387 s&@INSTALL@&$ac_INSTALL&;t t
8388 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8389 $ac_datarootdir_hack
8391 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8392 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8394 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8395 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8396 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8397 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8399 which seems to be undefined. Please make sure it is defined" >&5
8400 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8401 which seems to be undefined. Please make sure it is defined" >&2;}
8403 rm -f "$ac_tmp/stdin"
8405 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8406 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8408 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8414 if test x"$ac_file" != x-; then
8416 $as_echo "/* $configure_input */" \
8417 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8418 } >"$ac_tmp/config.h" \
8419 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8420 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8422 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8425 mv "$ac_tmp/config.h" "$ac_file" \
8426 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8429 $as_echo "/* $configure_input */" \
8430 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8431 || as_fn_error $? "could not create -" "$LINENO" 5
8433 # Compute "$ac_file"'s index in $config_headers.
8436 for _am_header in $config_headers :; do
8438 $_am_arg | $_am_arg:* )
8441 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8444 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8445 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8446 X"$_am_arg" : 'X\(//\)[^/]' \| \
8447 X"$_am_arg" : 'X\(//\)$' \| \
8448 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8449 $as_echo X"$_am_arg" |
8450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8466 s/.*/./; q'`/stamp-h$_am_stamp_count
8469 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8470 $as_echo "$as_me: executing $ac_file commands" >&6;}
8475 case $ac_file$ac_mode in
8476 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8477 # Older Autoconf quotes --file arguments for eval, but not when files
8478 # are listed without --file. Let's play safe and only enable the eval
8479 # if we detect the quoting.
8480 case $CONFIG_FILES in
8481 *\'*) eval set x "$CONFIG_FILES" ;;
8482 *) set x $CONFIG_FILES ;;
8487 # Strip MF so we end up with the name of the file.
8488 mf=`echo "$mf" | sed -e 's/:.*$//'`
8489 # Check whether this is an Automake generated Makefile or not.
8490 # We used to match only the files named 'Makefile.in', but
8491 # some people rename them; so instead we look at the file content.
8492 # Grep'ing the first line is not enough: some people post-process
8493 # each Makefile.in and add a new line on top of each file to say so.
8494 # Grep'ing the whole file is not good either: AIX grep has a line
8495 # limit of 2048, but all sed's we know have understand at least 4000.
8496 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8497 dirpart=`$as_dirname -- "$mf" ||
8498 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8499 X"$mf" : 'X\(//\)[^/]' \| \
8500 X"$mf" : 'X\(//\)$' \| \
8501 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8523 # Extract the definition of DEPDIR, am__include, and am__quote
8524 # from the Makefile without running 'make'.
8525 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8526 test -z "$DEPDIR" && continue
8527 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8528 test -z "$am__include" && continue
8529 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8530 # Find all dependency output files, they are included files with
8531 # $(DEPDIR) in their names. We invoke sed twice because it is the
8532 # simplest approach to changing $(DEPDIR) to its actual value in the
8534 for file in `sed -n "
8535 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8536 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8537 # Make sure the directory exists.
8538 test -f "$dirpart/$file" && continue
8539 fdir=`$as_dirname -- "$file" ||
8540 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8541 X"$file" : 'X\(//\)[^/]' \| \
8542 X"$file" : 'X\(//\)$' \| \
8543 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8562 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8563 # echo "creating $dirpart/$file"
8564 echo '# dummy' > "$dirpart/$file"
8570 for ac_file in $CONFIG_FILES; do
8571 # Support "outfile[:infile[:infile...]]"
8573 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8575 # PO directories have a Makefile.in generated from Makefile.in.in.
8576 case "$ac_file" in */Makefile.in)
8577 # Adjust a relative srcdir.
8578 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8579 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8580 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8581 # In autoconf-2.13 it is called $ac_given_srcdir.
8582 # In autoconf-2.50 it is called $srcdir.
8583 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8584 case "$ac_given_srcdir" in
8585 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8586 /*) top_srcdir="$ac_given_srcdir" ;;
8587 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8589 # Treat a directory as a PO directory if and only if it has a
8590 # POTFILES.in file. This allows packages to have multiple PO
8591 # directories under different names or in different locations.
8592 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8593 rm -f "$ac_dir/POTFILES"
8594 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8595 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
8596 POMAKEFILEDEPS="POTFILES.in"
8597 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
8598 # on $ac_dir but don't depend on user-specified configuration
8600 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
8601 # The LINGUAS file contains the set of available languages.
8602 if test -n "$OBSOLETE_ALL_LINGUAS"; then
8603 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
8605 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
8606 # Hide the ALL_LINGUAS assigment from automake < 1.5.
8607 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
8608 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
8610 # The set of available languages was given in configure.in.
8611 # Hide the ALL_LINGUAS assigment from automake < 1.5.
8612 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
8615 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
8616 # Compute UPDATEPOFILES
8617 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
8618 # Compute DUMMYPOFILES
8619 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
8621 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
8622 case "$ac_given_srcdir" in
8624 *) srcdirpre='$(srcdir)/' ;;
8630 for lang in $ALL_LINGUAS; do
8631 POFILES="$POFILES $srcdirpre$lang.po"
8632 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
8633 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
8634 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
8636 # CATALOGS depends on both $ac_dir and the user's LINGUAS
8637 # environment variable.
8639 if test -n "$ALL_LINGUAS"; then
8640 for presentlang in $ALL_LINGUAS; do
8642 if test "%UNSET%" != "$LINGUAS"; then
8643 desiredlanguages="$LINGUAS"
8645 desiredlanguages="$ALL_LINGUAS"
8647 for desiredlang in $desiredlanguages; do
8648 # Use the presentlang catalog if desiredlang is
8649 # a. equal to presentlang, or
8650 # b. a variant of presentlang (because in this case,
8651 # presentlang can be used as a fallback for messages
8652 # which are not translated in the desiredlang catalog).
8653 case "$desiredlang" in
8654 "$presentlang"*) useit=yes;;
8657 if test $useit = yes; then
8658 INST_LINGUAS="$INST_LINGUAS $presentlang"
8663 if test -n "$INST_LINGUAS"; then
8664 for lang in $INST_LINGUAS; do
8665 CATALOGS="$CATALOGS $lang.gmo"
8668 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8669 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"
8670 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
8671 if test -f "$f"; then
8673 *.orig | *.bak | *~) ;;
8674 *) cat "$f" >> "$ac_dir/Makefile" ;;
8689 ac_clean_files=$ac_clean_files_save
8691 test $ac_write_fail = 0 ||
8692 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8695 # configure is writing to config.log, and then calls config.status.
8696 # config.status does its own redirection, appending to config.log.
8697 # Unfortunately, on DOS this fails, as config.log is still kept open
8698 # by configure, so config.status won't be able to write to it; its
8699 # output is simply discarded. So we exec the FD to /dev/null,
8700 # effectively closing config.log, so it can be properly (re)opened and
8701 # appended to by config.status. When coming back to configure, we
8702 # need to make the FD available again.
8703 if test "$no_create" != yes; then
8705 ac_config_status_args=
8706 test "$silent" = yes &&
8707 ac_config_status_args="$ac_config_status_args --quiet"
8709 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8711 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8712 # would make configure fail if this is the last instruction.
8713 $ac_cs_success || as_fn_exit 1
8715 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8717 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}