2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ptask 1.0.0.
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.
582 PACKAGE_TARNAME='ptask'
583 PACKAGE_VERSION='1.0.0'
584 PACKAGE_STRING='ptask 1.0.0'
585 PACKAGE_BUGREPORT='jeanfi@gmail.com'
586 PACKAGE_URL='http://wpitchoune.net/ptask'
588 ac_unique_file="src/main.c"
590 ac_subst_vars='am__EXEEXT_FALSE
601 GSETTINGS_DISABLE_SCHEMAS_COMPILE
632 XGETTEXT_EXTRA_OPTIONS
640 GETTEXT_MACRO_VERSION
674 INSTALL_STRIP_PROGRAM
717 program_transform_name
730 enable_option_checking
732 enable_dependency_tracking
739 enable_schemas_compile
741 ac_precious_vars='build_alias
764 # Initialize some variables set by options.
766 ac_init_version=false
767 ac_unrecognized_opts=
769 # The variables have the same names as the options, with
770 # dashes changed to underlines.
778 program_transform_name=s,x,x,
786 # Installation directory options.
787 # These are left unexpanded so users can "make install exec_prefix=/foo"
788 # and all the variables that are supposed to be based on exec_prefix
789 # by default will actually change.
790 # Use braces instead of parens because sh, perl, etc. also accept them.
791 # (The list follows the same order as the GNU Coding Standards.)
792 bindir='${exec_prefix}/bin'
793 sbindir='${exec_prefix}/sbin'
794 libexecdir='${exec_prefix}/libexec'
795 datarootdir='${prefix}/share'
796 datadir='${datarootdir}'
797 sysconfdir='${prefix}/etc'
798 sharedstatedir='${prefix}/com'
799 localstatedir='${prefix}/var'
800 runstatedir='${localstatedir}/run'
801 includedir='${prefix}/include'
802 oldincludedir='/usr/include'
803 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
804 infodir='${datarootdir}/info'
809 libdir='${exec_prefix}/lib'
810 localedir='${datarootdir}/locale'
811 mandir='${datarootdir}/man'
817 # If the previous option needs an argument, assign it.
818 if test -n "$ac_prev"; then
819 eval $ac_prev=\$ac_option
825 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
830 # Accept the important Cygnus configure options, so we can diagnose typos.
832 case $ac_dashdash$ac_option in
836 -bindir | --bindir | --bindi | --bind | --bin | --bi)
838 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
841 -build | --build | --buil | --bui | --bu)
842 ac_prev=build_alias ;;
843 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
844 build_alias=$ac_optarg ;;
846 -cache-file | --cache-file | --cache-fil | --cache-fi \
847 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
848 ac_prev=cache_file ;;
849 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
850 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
851 cache_file=$ac_optarg ;;
854 cache_file=config.cache ;;
856 -datadir | --datadir | --datadi | --datad)
858 -datadir=* | --datadir=* | --datadi=* | --datad=*)
859 datadir=$ac_optarg ;;
861 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
862 | --dataroo | --dataro | --datar)
863 ac_prev=datarootdir ;;
864 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
865 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
866 datarootdir=$ac_optarg ;;
868 -disable-* | --disable-*)
869 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872 as_fn_error $? "invalid feature name: $ac_useropt"
873 ac_useropt_orig=$ac_useropt
874 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
875 case $ac_user_opts in
879 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
880 ac_unrecognized_sep=', ';;
882 eval enable_$ac_useropt=no ;;
884 -docdir | --docdir | --docdi | --doc | --do)
886 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
889 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
891 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
894 -enable-* | --enable-*)
895 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898 as_fn_error $? "invalid feature name: $ac_useropt"
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
908 eval enable_$ac_useropt=\$ac_optarg ;;
910 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
911 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
912 | --exec | --exe | --ex)
913 ac_prev=exec_prefix ;;
914 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
915 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
916 | --exec=* | --exe=* | --ex=*)
917 exec_prefix=$ac_optarg ;;
919 -gas | --gas | --ga | --g)
920 # Obsolete; use --with-gas.
923 -help | --help | --hel | --he | -h)
925 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
926 ac_init_help=recursive ;;
927 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
928 ac_init_help=short ;;
930 -host | --host | --hos | --ho)
931 ac_prev=host_alias ;;
932 -host=* | --host=* | --hos=* | --ho=*)
933 host_alias=$ac_optarg ;;
935 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
937 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
939 htmldir=$ac_optarg ;;
941 -includedir | --includedir | --includedi | --included | --include \
942 | --includ | --inclu | --incl | --inc)
943 ac_prev=includedir ;;
944 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
945 | --includ=* | --inclu=* | --incl=* | --inc=*)
946 includedir=$ac_optarg ;;
948 -infodir | --infodir | --infodi | --infod | --info | --inf)
950 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
951 infodir=$ac_optarg ;;
953 -libdir | --libdir | --libdi | --libd)
955 -libdir=* | --libdir=* | --libdi=* | --libd=*)
958 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
959 | --libexe | --libex | --libe)
960 ac_prev=libexecdir ;;
961 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
962 | --libexe=* | --libex=* | --libe=*)
963 libexecdir=$ac_optarg ;;
965 -localedir | --localedir | --localedi | --localed | --locale)
967 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
968 localedir=$ac_optarg ;;
970 -localstatedir | --localstatedir | --localstatedi | --localstated \
971 | --localstate | --localstat | --localsta | --localst | --locals)
972 ac_prev=localstatedir ;;
973 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
974 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
975 localstatedir=$ac_optarg ;;
977 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
979 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983 # Obsolete; use --without-fp.
986 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
987 | --no-cr | --no-c | -n)
990 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
991 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
994 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
995 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
996 | --oldin | --oldi | --old | --ol | --o)
997 ac_prev=oldincludedir ;;
998 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
999 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1000 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1001 oldincludedir=$ac_optarg ;;
1003 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1005 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1006 prefix=$ac_optarg ;;
1008 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1009 | --program-pre | --program-pr | --program-p)
1010 ac_prev=program_prefix ;;
1011 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1012 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1013 program_prefix=$ac_optarg ;;
1015 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1016 | --program-suf | --program-su | --program-s)
1017 ac_prev=program_suffix ;;
1018 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1019 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1020 program_suffix=$ac_optarg ;;
1022 -program-transform-name | --program-transform-name \
1023 | --program-transform-nam | --program-transform-na \
1024 | --program-transform-n | --program-transform- \
1025 | --program-transform | --program-transfor \
1026 | --program-transfo | --program-transf \
1027 | --program-trans | --program-tran \
1028 | --progr-tra | --program-tr | --program-t)
1029 ac_prev=program_transform_name ;;
1030 -program-transform-name=* | --program-transform-name=* \
1031 | --program-transform-nam=* | --program-transform-na=* \
1032 | --program-transform-n=* | --program-transform-=* \
1033 | --program-transform=* | --program-transfor=* \
1034 | --program-transfo=* | --program-transf=* \
1035 | --program-trans=* | --program-tran=* \
1036 | --progr-tra=* | --program-tr=* | --program-t=*)
1037 program_transform_name=$ac_optarg ;;
1039 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1041 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1042 pdfdir=$ac_optarg ;;
1044 -psdir | --psdir | --psdi | --psd | --ps)
1046 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1053 -runstatedir | --runstatedir | --runstatedi | --runstated \
1054 | --runstate | --runstat | --runsta | --runst | --runs \
1055 | --run | --ru | --r)
1056 ac_prev=runstatedir ;;
1057 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1058 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1059 | --run=* | --ru=* | --r=*)
1060 runstatedir=$ac_optarg ;;
1062 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1064 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1066 sbindir=$ac_optarg ;;
1068 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1069 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1070 | --sharedst | --shareds | --shared | --share | --shar \
1072 ac_prev=sharedstatedir ;;
1073 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1074 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1075 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1077 sharedstatedir=$ac_optarg ;;
1079 -site | --site | --sit)
1081 -site=* | --site=* | --sit=*)
1084 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1086 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1087 srcdir=$ac_optarg ;;
1089 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1090 | --syscon | --sysco | --sysc | --sys | --sy)
1091 ac_prev=sysconfdir ;;
1092 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1093 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1094 sysconfdir=$ac_optarg ;;
1096 -target | --target | --targe | --targ | --tar | --ta | --t)
1097 ac_prev=target_alias ;;
1098 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1099 target_alias=$ac_optarg ;;
1101 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1104 -version | --version | --versio | --versi | --vers | -V)
1105 ac_init_version=: ;;
1108 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111 as_fn_error $? "invalid package name: $ac_useropt"
1112 ac_useropt_orig=$ac_useropt
1113 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114 case $ac_user_opts in
1118 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1119 ac_unrecognized_sep=', ';;
1121 eval with_$ac_useropt=\$ac_optarg ;;
1123 -without-* | --without-*)
1124 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error $? "invalid package name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1137 eval with_$ac_useropt=no ;;
1140 # Obsolete; use --with-x.
1143 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1144 | --x-incl | --x-inc | --x-in | --x-i)
1145 ac_prev=x_includes ;;
1146 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1147 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1148 x_includes=$ac_optarg ;;
1150 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1151 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1152 ac_prev=x_libraries ;;
1153 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1154 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1155 x_libraries=$ac_optarg ;;
1157 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1158 Try \`$0 --help' for more information"
1162 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1163 # Reject names that are not valid shell variable names.
1164 case $ac_envvar in #(
1165 '' | [0-9]* | *[!_$as_cr_alnum]* )
1166 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1168 eval $ac_envvar=\$ac_optarg
1169 export $ac_envvar ;;
1172 # FIXME: should be removed in autoconf 3.0.
1173 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1174 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1176 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1182 if test -n "$ac_prev"; then
1183 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1184 as_fn_error $? "missing argument to $ac_option"
1187 if test -n "$ac_unrecognized_opts"; then
1188 case $enable_option_checking in
1190 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1191 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1195 # Check all directory arguments for consistency.
1196 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1197 datadir sysconfdir sharedstatedir localstatedir includedir \
1198 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1199 libdir localedir mandir runstatedir
1201 eval ac_val=\$$ac_var
1202 # Remove trailing slashes.
1205 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1206 eval $ac_var=\$ac_val;;
1208 # Be sure to have absolute directory names.
1210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1221 target=$target_alias
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
1227 elif test "x$build_alias" != "x$host_alias"; then
1233 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235 test "$silent" = yes && exec 6>/dev/null
1238 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239 ac_ls_di=`ls -di .` &&
1240 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241 as_fn_error $? "working directory cannot be determined"
1242 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1243 as_fn_error $? "pwd does not report name of working directory"
1246 # Find the source files, if location was not specified.
1247 if test -z "$srcdir"; then
1248 ac_srcdir_defaulted=yes
1249 # Try the directory containing this script, then the parent directory.
1250 ac_confdir=`$as_dirname -- "$as_myself" ||
1251 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252 X"$as_myself" : 'X\(//\)[^/]' \| \
1253 X"$as_myself" : 'X\(//\)$' \| \
1254 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1255 $as_echo X"$as_myself" |
1256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1278 ac_srcdir_defaulted=no
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1282 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1284 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1286 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1288 # When building in place, set srcdir=.
1289 if test "$ac_abs_confdir" = "$ac_pwd"; then
1292 # Remove unnecessary trailing slashes from srcdir.
1293 # Double slashes in file names in object file debugging info
1294 # mess up M-x gdb in Emacs.
1296 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298 for ac_var in $ac_precious_vars; do
1299 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300 eval ac_env_${ac_var}_value=\$${ac_var}
1301 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1306 # Report the --help message.
1308 if test "$ac_init_help" = "long"; then
1309 # Omit some internal or obsolete options to make the list less imposing.
1310 # This message is too long to be a string in the A/UX 3.1 sh.
1312 \`configure' configures ptask 1.0.0 to adapt to many kinds of systems.
1314 Usage: $0 [OPTION]... [VAR=VALUE]...
1316 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317 VAR=VALUE. See below for descriptions of some of the useful variables.
1319 Defaults for the options are specified in brackets.
1322 -h, --help display this help and exit
1323 --help=short display options specific to this package
1324 --help=recursive display the short help of all the included packages
1325 -V, --version display version information and exit
1326 -q, --quiet, --silent do not print \`checking ...' messages
1327 --cache-file=FILE cache test results in FILE [disabled]
1328 -C, --config-cache alias for \`--cache-file=config.cache'
1329 -n, --no-create do not create output files
1330 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1332 Installation directories:
1333 --prefix=PREFIX install architecture-independent files in PREFIX
1334 [$ac_default_prefix]
1335 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1338 By default, \`make install' will install all the files in
1339 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1340 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341 for instance \`--prefix=\$HOME'.
1343 For better control, use the options below.
1345 Fine tuning of the installation directories:
1346 --bindir=DIR user executables [EPREFIX/bin]
1347 --sbindir=DIR system admin executables [EPREFIX/sbin]
1348 --libexecdir=DIR program executables [EPREFIX/libexec]
1349 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1350 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1351 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1352 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1353 --libdir=DIR object code libraries [EPREFIX/lib]
1354 --includedir=DIR C header files [PREFIX/include]
1355 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1356 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1357 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1358 --infodir=DIR info documentation [DATAROOTDIR/info]
1359 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1360 --mandir=DIR man documentation [DATAROOTDIR/man]
1361 --docdir=DIR documentation root [DATAROOTDIR/doc/ptask]
1362 --htmldir=DIR html documentation [DOCDIR]
1363 --dvidir=DIR dvi documentation [DOCDIR]
1364 --pdfdir=DIR pdf documentation [DOCDIR]
1365 --psdir=DIR ps documentation [DOCDIR]
1371 --program-prefix=PREFIX prepend PREFIX to installed program names
1372 --program-suffix=SUFFIX append SUFFIX to installed program names
1373 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1376 --x-includes=DIR X include files are in DIR
1377 --x-libraries=DIR X library files are in DIR
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1385 if test -n "$ac_init_help"; then
1386 case $ac_init_help in
1387 short | recursive ) echo "Configuration of ptask 1.0.0:";;
1392 --disable-option-checking ignore unrecognized --enable/--with options
1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1395 --enable-silent-rules less verbose build output (undo: "make V=1")
1396 --disable-silent-rules verbose build output (undo: "make V=0")
1397 --enable-dependency-tracking
1398 do not reject slow dependency extractors
1399 --disable-dependency-tracking
1400 speeds up one-time build
1401 --disable-nls do not use Native Language Support
1402 --disable-rpath do not hardcode runtime library paths
1403 --disable-schemas-compile
1404 Disable regeneration of gschemas.compiled on install
1407 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1408 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1409 --with-x use the X Window System
1410 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1411 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1412 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1413 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1414 --without-libintl-prefix don't search for libintl in includedir and libdir
1416 Some influential environment variables:
1417 CC C compiler command
1418 CFLAGS C compiler flags
1419 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1420 nonstandard directory <lib dir>
1421 LIBS libraries to pass to the linker, e.g. -l<library>
1422 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1423 you have headers in a nonstandard directory <include dir>
1424 XMKMF Path to xmkmf, Makefile generator for X Window System
1426 PKG_CONFIG path to pkg-config utility
1428 directories to add to pkg-config's search path
1430 path overriding pkg-config's built-in search path
1431 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1432 X11_LIBS linker flags for X11, overriding pkg-config
1433 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1434 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1435 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1436 GTK_LIBS linker flags for GTK, overriding pkg-config
1437 JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1438 JSON_LIBS linker flags for JSON, overriding pkg-config
1440 Use these variables to override the choices made by `configure' or to help
1441 it to find libraries and programs with nonstandard names/locations.
1443 Report bugs to <jeanfi@gmail.com>.
1444 ptask home page: <http://wpitchoune.net/ptask>.
1449 if test "$ac_init_help" = "recursive"; then
1450 # If there are subdirs, report their specific --help.
1451 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1452 test -d "$ac_dir" ||
1453 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1461 # A ".." for each directory in $ac_dir_suffix.
1462 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1463 case $ac_top_builddir_sub in
1464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1468 ac_abs_top_builddir=$ac_pwd
1469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1470 # for backward compatibility:
1471 ac_top_builddir=$ac_top_build_prefix
1474 .) # We are building in place.
1476 ac_top_srcdir=$ac_top_builddir_sub
1477 ac_abs_top_srcdir=$ac_pwd ;;
1478 [\\/]* | ?:[\\/]* ) # Absolute name.
1479 ac_srcdir=$srcdir$ac_dir_suffix;
1480 ac_top_srcdir=$srcdir
1481 ac_abs_top_srcdir=$srcdir ;;
1483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1484 ac_top_srcdir=$ac_top_build_prefix$srcdir
1485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1489 cd "$ac_dir" || { ac_status=$?; continue; }
1490 # Check for guested configure.
1491 if test -f "$ac_srcdir/configure.gnu"; then
1493 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494 elif test -f "$ac_srcdir/configure"; then
1496 $SHELL "$ac_srcdir/configure" --help=recursive
1498 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1500 cd "$ac_pwd" || { ac_status=$?; break; }
1504 test -n "$ac_init_help" && exit $ac_status
1505 if $ac_init_version; then
1507 ptask configure 1.0.0
1508 generated by GNU Autoconf 2.69
1510 Copyright (C) 2012 Free Software Foundation, Inc.
1511 This configure script is free software; the Free Software Foundation
1512 gives unlimited permission to copy, distribute and modify it.
1517 ## ------------------------ ##
1518 ## Autoconf initialization. ##
1519 ## ------------------------ ##
1521 # ac_fn_c_try_compile LINENO
1522 # --------------------------
1523 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1524 ac_fn_c_try_compile ()
1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527 rm -f conftest.$ac_objext
1528 if { { ac_try="$ac_compile"
1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534 $as_echo "$ac_try_echo"; } >&5
1535 (eval "$ac_compile") 2>conftest.err
1537 if test -s conftest.err; then
1538 grep -v '^ *+' conftest.err >conftest.er1
1539 cat conftest.er1 >&5
1540 mv -f conftest.er1 conftest.err
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } && {
1544 test -z "$ac_c_werror_flag" ||
1545 test ! -s conftest.err
1546 } && test -s conftest.$ac_objext; then :
1549 $as_echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1555 as_fn_set_status $ac_retval
1557 } # ac_fn_c_try_compile
1559 # ac_fn_c_try_cpp LINENO
1560 # ----------------------
1561 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 if { { ac_try="$ac_cpp conftest.$ac_ext"
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } > conftest.i && {
1581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1586 $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status $ac_retval
1596 # ac_fn_c_try_link LINENO
1597 # -----------------------
1598 # Try to link conftest.$ac_ext, and return whether this succeeded.
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 rm -f conftest.$ac_objext conftest$ac_exeext
1603 if { { ac_try="$ac_link"
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610 (eval "$ac_link") 2>conftest.err
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } && {
1619 test -z "$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1621 } && test -s conftest$ac_exeext && {
1622 test "$cross_compiling" = yes ||
1623 test -x conftest$ac_exeext
1627 $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1632 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1633 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1634 # interfere with the next link command; also delete a directory that is
1635 # left behind by Apple's compiler. We do this before executing the actions.
1636 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638 as_fn_set_status $ac_retval
1640 } # ac_fn_c_try_link
1642 # ac_fn_c_try_run LINENO
1643 # ----------------------
1644 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1645 # that executables *can* be run.
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 if { { ac_try="$ac_link"
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_link") 2>&5
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1660 { { case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_try") 2>&5
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; }; }; then :
1672 $as_echo "$as_me: program exited with status $ac_status" >&5
1673 $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1676 ac_retval=$ac_status
1678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 as_fn_set_status $ac_retval
1683 cat >config.log <<_ACEOF
1684 This file contains any messages produced by compilers while
1685 running configure, to aid debugging if configure makes a mistake.
1687 It was created by ptask $as_me 1.0.0, which was
1688 generated by GNU Autoconf 2.69. Invocation command line was
1700 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1701 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1702 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1703 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1704 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1706 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1707 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1709 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1710 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1711 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1712 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1713 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1714 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1715 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723 test -z "$as_dir" && as_dir=.
1724 $as_echo "PATH: $as_dir"
1740 # Keep a trace of the command line.
1741 # Strip out --no-create and --no-recursion so they do not pile up.
1742 # Strip out --silent because we don't want to record it for future runs.
1743 # Also quote any args containing shell meta-characters.
1744 # Make two passes to allow for proper duplicate-argument suppression.
1748 ac_must_keep_next=false
1754 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1755 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1756 | -silent | --silent | --silen | --sile | --sil)
1759 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1762 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1764 as_fn_append ac_configure_args1 " '$ac_arg'"
1765 if test $ac_must_keep_next = true; then
1766 ac_must_keep_next=false # Got value, back to normal.
1769 *=* | --config-cache | -C | -disable-* | --disable-* \
1770 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1771 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1772 | -with-* | --with-* | -without-* | --without-* | --x)
1773 case "$ac_configure_args0 " in
1774 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1777 -* ) ac_must_keep_next=true ;;
1780 as_fn_append ac_configure_args " '$ac_arg'"
1785 { ac_configure_args0=; unset ac_configure_args0;}
1786 { ac_configure_args1=; unset ac_configure_args1;}
1788 # When interrupted or exit'd, cleanup temporary files, and complete
1789 # config.log. We remove comments because anyway the quotes in there
1790 # would cause problems or look ugly.
1791 # WARNING: Use '\'' to represent an apostrophe within the trap.
1792 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1793 trap 'exit_status=$?
1794 # Save into config.log some information that might help in debugging.
1798 $as_echo "## ---------------- ##
1799 ## Cache variables. ##
1800 ## ---------------- ##"
1802 # The following way of writing the cache mishandles newlines in values,
1804 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1805 eval ac_val=\$$ac_var
1809 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1810 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1813 _ | IFS | as_nl) ;; #(
1814 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1815 *) { eval $ac_var=; unset $ac_var;} ;;
1820 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1821 *${as_nl}ac_space=\ *)
1823 "s/'\''/'\''\\\\'\'''\''/g;
1824 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1827 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1834 $as_echo "## ----------------- ##
1835 ## Output variables. ##
1836 ## ----------------- ##"
1838 for ac_var in $ac_subst_vars
1840 eval ac_val=\$$ac_var
1842 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1844 $as_echo "$ac_var='\''$ac_val'\''"
1848 if test -n "$ac_subst_files"; then
1849 $as_echo "## ------------------- ##
1850 ## File substitutions. ##
1851 ## ------------------- ##"
1853 for ac_var in $ac_subst_files
1855 eval ac_val=\$$ac_var
1857 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859 $as_echo "$ac_var='\''$ac_val'\''"
1864 if test -s confdefs.h; then
1865 $as_echo "## ----------- ##
1872 test "$ac_signal" != 0 &&
1873 $as_echo "$as_me: caught signal $ac_signal"
1874 $as_echo "$as_me: exit $exit_status"
1876 rm -f core *.core core.conftest.* &&
1877 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1880 for ac_signal in 1 2 13 15; do
1881 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1885 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1886 rm -f -r conftest* confdefs.h
1888 $as_echo "/* confdefs.h */" > confdefs.h
1890 # Predefined preprocessor variables.
1892 cat >>confdefs.h <<_ACEOF
1893 #define PACKAGE_NAME "$PACKAGE_NAME"
1896 cat >>confdefs.h <<_ACEOF
1897 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_STRING "$PACKAGE_STRING"
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_URL "$PACKAGE_URL"
1917 # Let the site file select an alternate cache file if it wants to.
1918 # Prefer an explicitly selected file to automatically selected ones.
1921 if test -n "$CONFIG_SITE"; then
1922 # We do not want a PATH search for config.site.
1923 case $CONFIG_SITE in #((
1924 -*) ac_site_file1=./$CONFIG_SITE;;
1925 */*) ac_site_file1=$CONFIG_SITE;;
1926 *) ac_site_file1=./$CONFIG_SITE;;
1928 elif test "x$prefix" != xNONE; then
1929 ac_site_file1=$prefix/share/config.site
1930 ac_site_file2=$prefix/etc/config.site
1932 ac_site_file1=$ac_default_prefix/share/config.site
1933 ac_site_file2=$ac_default_prefix/etc/config.site
1935 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1937 test "x$ac_site_file" = xNONE && continue
1938 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1940 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1941 sed 's/^/| /' "$ac_site_file" >&5
1943 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1945 as_fn_error $? "failed to load site script $ac_site_file
1946 See \`config.log' for more details" "$LINENO" 5; }
1950 if test -r "$cache_file"; then
1951 # Some versions of bash will fail to source /dev/null (special files
1952 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1953 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1955 $as_echo "$as_me: loading cache $cache_file" >&6;}
1957 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1958 *) . "./$cache_file";;
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1963 $as_echo "$as_me: creating cache $cache_file" >&6;}
1967 gt_needs="$gt_needs "
1968 # Check that the precious variables saved in the cache have kept the same
1970 ac_cache_corrupted=false
1971 for ac_var in $ac_precious_vars; do
1972 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1973 eval ac_new_set=\$ac_env_${ac_var}_set
1974 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1975 eval ac_new_val=\$ac_env_${ac_var}_value
1976 case $ac_old_set,$ac_new_set in
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1979 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1980 ac_cache_corrupted=: ;;
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1983 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1984 ac_cache_corrupted=: ;;
1987 if test "x$ac_old_val" != "x$ac_new_val"; then
1988 # differences in whitespace do not lead to failure.
1989 ac_old_val_w=`echo x $ac_old_val`
1990 ac_new_val_w=`echo x $ac_new_val`
1991 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1993 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1994 ac_cache_corrupted=:
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1997 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1998 eval $ac_var=\$ac_old_val
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2001 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2003 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2006 # Pass precious variables to config.status.
2007 if test "$ac_new_set" = set; then
2009 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2010 *) ac_arg=$ac_var=$ac_new_val ;;
2012 case " $ac_configure_args " in
2013 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2014 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2018 if $ac_cache_corrupted; then
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2022 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2023 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2025 ## -------------------- ##
2026 ## Main body of script. ##
2027 ## -------------------- ##
2030 ac_cpp='$CPP $CPPFLAGS'
2031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2037 am__api_version='1.15'
2040 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2041 if test -f "$ac_dir/install-sh"; then
2043 ac_install_sh="$ac_aux_dir/install-sh -c"
2045 elif test -f "$ac_dir/install.sh"; then
2047 ac_install_sh="$ac_aux_dir/install.sh -c"
2049 elif test -f "$ac_dir/shtool"; then
2051 ac_install_sh="$ac_aux_dir/shtool install -c"
2055 if test -z "$ac_aux_dir"; then
2056 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2059 # These three variables are undocumented and unsupported,
2060 # and are intended to be withdrawn in a future Autoconf release.
2061 # They can cause serious problems if a builder's source tree is in a directory
2062 # whose full name contains unusual characters.
2063 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2064 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2065 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2068 # Find a good install program. We prefer a C program (faster),
2069 # so one script is as good as another. But avoid the broken or
2070 # incompatible versions:
2071 # SysV /etc/install, /usr/sbin/install
2072 # SunOS /usr/etc/install
2073 # IRIX /sbin/install
2075 # AmigaOS /C/install, which installs bootblocks on floppy discs
2076 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2077 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2078 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2079 # OS/2's system install, which has a completely different semantic
2080 # ./install, which can be erroneously created by make from ./install.sh.
2081 # Reject install programs that cannot install multiple files.
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2083 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2084 if test -z "$INSTALL"; then
2085 if ${ac_cv_path_install+:} false; then :
2086 $as_echo_n "(cached) " >&6
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092 test -z "$as_dir" && as_dir=.
2093 # Account for people who put trailing slashes in PATH elements.
2094 case $as_dir/ in #((
2095 ./ | .// | /[cC]/* | \
2096 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2097 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2100 # OSF1 and SCO ODT 3.0 have their own names for install.
2101 # Don't use installbsd from OSF since it installs stuff as root
2103 for ac_prog in ginstall scoinst install; do
2104 for ac_exec_ext in '' $ac_executable_extensions; do
2105 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2106 if test $ac_prog = install &&
2107 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2108 # AIX install. It has an incompatible calling convention.
2110 elif test $ac_prog = install &&
2111 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2112 # program-specific install script used by HP pwplus--don't use.
2115 rm -rf conftest.one conftest.two conftest.dir
2116 echo one > conftest.one
2117 echo two > conftest.two
2119 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2120 test -s conftest.one && test -s conftest.two &&
2121 test -s conftest.dir/conftest.one &&
2122 test -s conftest.dir/conftest.two
2124 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2137 rm -rf conftest.one conftest.two conftest.dir
2140 if test "${ac_cv_path_install+set}" = set; then
2141 INSTALL=$ac_cv_path_install
2143 # As a last resort, use the slow shell script. Don't cache a
2144 # value for INSTALL within a source directory, because that will
2145 # break other packages using the cache if that directory is
2146 # removed, or if the value is a relative name.
2147 INSTALL=$ac_install_sh
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2151 $as_echo "$INSTALL" >&6; }
2153 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2154 # It thinks the first close brace ends the variable substitution.
2155 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2157 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2159 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2162 $as_echo_n "checking whether build environment is sane... " >&6; }
2163 # Reject unsafe characters in $srcdir or the absolute working directory
2164 # name. Accept space and tab only in the latter.
2168 *[\\\"\#\$\&\'\`$am_lf]*)
2169 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2172 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2173 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2176 # Do 'set' in a subshell so we don't clobber the current shell's
2177 # arguments. Must try -L first in case configure is actually a
2178 # symlink; some systems play weird games with the mod time of symlinks
2179 # (eg FreeBSD returns the mod time of the symlink's containing
2183 for am_try in 1 2; do
2184 echo "timestamp, slept: $am_has_slept" > conftest.file
2185 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2186 if test "$*" = "X"; then
2188 set X `ls -t "$srcdir/configure" conftest.file`
2190 if test "$*" != "X $srcdir/configure conftest.file" \
2191 && test "$*" != "X conftest.file $srcdir/configure"; then
2193 # If neither matched, then we have a broken ls. This can happen
2194 # if, for instance, CONFIG_SHELL is bash and it inherits a
2195 # broken ls alias from the environment. This has actually
2196 # happened. Such a system could not be considered "sane".
2197 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2198 alias in your environment" "$LINENO" 5
2200 if test "$2" = conftest.file || test $am_try -eq 2; then
2207 test "$2" = conftest.file
2213 as_fn_error $? "newly created file is older than distributed files!
2214 Check your system clock" "$LINENO" 5
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2217 $as_echo "yes" >&6; }
2218 # If we didn't sleep, we still need to ensure time stamps of config.status and
2219 # generated files are strictly newer.
2221 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2228 test "$program_prefix" != NONE &&
2229 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2230 # Use a double $ so make ignores it.
2231 test "$program_suffix" != NONE &&
2232 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2233 # Double any \ or $.
2234 # By default was `s,x,x', remove it if useless.
2235 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2236 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2238 # Expand $ac_aux_dir to an absolute path.
2239 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2241 if test x"${MISSING+set}" != xset; then
2244 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2246 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2249 # Use eval to expand $SHELL
2250 if eval "$MISSING --is-lightweight"; then
2251 am_missing_run="$MISSING "
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2255 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2258 if test x"${install_sh+set}" != xset; then
2261 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2263 install_sh="\${SHELL} $am_aux_dir/install-sh"
2267 # Installed binaries are usually stripped using 'strip' when the user
2268 # run "make install-strip". However 'strip' might not be the right
2269 # tool to use in cross-compilation environments, therefore Automake
2270 # will honor the 'STRIP' environment variable to overrule this program.
2271 if test "$cross_compiling" != no; then
2272 if test -n "$ac_tool_prefix"; then
2273 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2274 set dummy ${ac_tool_prefix}strip; ac_word=$2
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2276 $as_echo_n "checking for $ac_word... " >&6; }
2277 if ${ac_cv_prog_STRIP+:} false; then :
2278 $as_echo_n "(cached) " >&6
2280 if test -n "$STRIP"; then
2281 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 test -z "$as_dir" && as_dir=.
2288 for ac_exec_ext in '' $ac_executable_extensions; do
2289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2290 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2300 STRIP=$ac_cv_prog_STRIP
2301 if test -n "$STRIP"; then
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2303 $as_echo "$STRIP" >&6; }
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2306 $as_echo "no" >&6; }
2311 if test -z "$ac_cv_prog_STRIP"; then
2313 # Extract the first word of "strip", so it can be a program name with args.
2314 set dummy strip; ac_word=$2
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2316 $as_echo_n "checking for $ac_word... " >&6; }
2317 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2318 $as_echo_n "(cached) " >&6
2320 if test -n "$ac_ct_STRIP"; then
2321 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 test -z "$as_dir" && as_dir=.
2328 for ac_exec_ext in '' $ac_executable_extensions; do
2329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2330 ac_cv_prog_ac_ct_STRIP="strip"
2331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2340 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2341 if test -n "$ac_ct_STRIP"; then
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2343 $as_echo "$ac_ct_STRIP" >&6; }
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2346 $as_echo "no" >&6; }
2349 if test "x$ac_ct_STRIP" = x; then
2352 case $cross_compiling:$ac_tool_warned in
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2356 ac_tool_warned=yes ;;
2361 STRIP="$ac_cv_prog_STRIP"
2365 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2368 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2369 if test -z "$MKDIR_P"; then
2370 if ${ac_cv_path_mkdir+:} false; then :
2371 $as_echo_n "(cached) " >&6
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2377 test -z "$as_dir" && as_dir=.
2378 for ac_prog in mkdir gmkdir; do
2379 for ac_exec_ext in '' $ac_executable_extensions; do
2380 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2381 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2382 'mkdir (GNU coreutils) '* | \
2383 'mkdir (coreutils) '* | \
2384 'mkdir (fileutils) '4.1*)
2385 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2395 test -d ./--version && rmdir ./--version
2396 if test "${ac_cv_path_mkdir+set}" = set; then
2397 MKDIR_P="$ac_cv_path_mkdir -p"
2399 # As a last resort, use the slow shell script. Don't cache a
2400 # value for MKDIR_P within a source directory, because that will
2401 # break other packages using the cache if that directory is
2402 # removed, or if the value is a relative name.
2403 MKDIR_P="$ac_install_sh -d"
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2407 $as_echo "$MKDIR_P" >&6; }
2409 for ac_prog in gawk mawk nawk awk
2411 # Extract the first word of "$ac_prog", so it can be a program name with args.
2412 set dummy $ac_prog; ac_word=$2
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2414 $as_echo_n "checking for $ac_word... " >&6; }
2415 if ${ac_cv_prog_AWK+:} false; then :
2416 $as_echo_n "(cached) " >&6
2418 if test -n "$AWK"; then
2419 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 test -z "$as_dir" && as_dir=.
2426 for ac_exec_ext in '' $ac_executable_extensions; do
2427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2428 ac_cv_prog_AWK="$ac_prog"
2429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 if test -n "$AWK"; then
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2441 $as_echo "$AWK" >&6; }
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2444 $as_echo "no" >&6; }
2448 test -n "$AWK" && break
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2452 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2454 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2455 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2456 $as_echo_n "(cached) " >&6
2458 cat >conftest.make <<\_ACEOF
2461 @echo '@@@%%%=$(MAKE)=@@@%%%'
2463 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2464 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2466 eval ac_cv_prog_make_${ac_make}_set=yes;;
2468 eval ac_cv_prog_make_${ac_make}_set=no;;
2472 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2474 $as_echo "yes" >&6; }
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2478 $as_echo "no" >&6; }
2479 SET_MAKE="MAKE=${MAKE-make}"
2482 rm -rf .tst 2>/dev/null
2483 mkdir .tst 2>/dev/null
2484 if test -d .tst; then
2489 rmdir .tst 2>/dev/null
2491 # Check whether --enable-silent-rules was given.
2492 if test "${enable_silent_rules+set}" = set; then :
2493 enableval=$enable_silent_rules;
2496 case $enable_silent_rules in # (((
2497 yes) AM_DEFAULT_VERBOSITY=0;;
2498 no) AM_DEFAULT_VERBOSITY=1;;
2499 *) AM_DEFAULT_VERBOSITY=1;;
2501 am_make=${MAKE-make}
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2503 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2504 if ${am_cv_make_support_nested_variables+:} false; then :
2505 $as_echo_n "(cached) " >&6
2507 if $as_echo 'TRUE=$(BAR$(V))
2513 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2514 am_cv_make_support_nested_variables=yes
2516 am_cv_make_support_nested_variables=no
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2520 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2521 if test $am_cv_make_support_nested_variables = yes; then
2523 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2525 AM_V=$AM_DEFAULT_VERBOSITY
2526 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2530 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2531 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2532 # is not polluted with repeated "-I."
2533 am__isrc=' -I$(srcdir)'
2534 # test to see if srcdir already configured
2535 if test -f $srcdir/config.status; then
2536 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2540 # test whether we have cygpath
2541 if test -z "$CYGPATH_W"; then
2542 if (cygpath --version) >/dev/null 2>/dev/null; then
2543 CYGPATH_W='cygpath -w'
2550 # Define the identity of the package.
2555 cat >>confdefs.h <<_ACEOF
2556 #define PACKAGE "$PACKAGE"
2560 cat >>confdefs.h <<_ACEOF
2561 #define VERSION "$VERSION"
2564 # Some tools Automake needs.
2566 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2569 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2572 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2575 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2578 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2580 # For better backward compatibility. To be removed once Automake 1.9.x
2581 # dies out for good. For more background, see:
2582 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2583 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2584 mkdir_p='$(MKDIR_P)'
2586 # We need awk for the "check" target (and possibly the TAP driver). The
2587 # system "awk" is bad on some platforms.
2588 # Always define AMTAR for backward compatibility. Yes, it's still used
2589 # in the wild :-( We should find a proper way to deprecate it ...
2593 # We'll loop over all known methods to create a tar archive until one works.
2594 _am_tools='gnutar pax cpio none'
2596 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2603 # POSIX will say in a future version that running "rm -f" with no argument
2604 # is OK; and we want to be able to make that assumption in our Makefile
2605 # recipes. So use an aggressive probe to check that the usage we want is
2606 # actually supported "in the wild" to an acceptable degree.
2607 # See automake bug#10828.
2608 # To make any issue more visible, cause the running configure to be aborted
2609 # by default if the 'rm' program in use doesn't match our expectations; the
2610 # user can still override this though.
2611 if rm -f && rm -fr && rm -rf; then : OK; else
2615 Your 'rm' program seems unable to run without file operands specified
2616 on the command line, even when the '-f' option is present. This is contrary
2617 to the behaviour of most rm programs out there, and not conforming with
2618 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2620 Please tell bug-automake@gnu.org about your system, including the value
2621 of your $PATH and any error possibly output before this message. This
2622 can help us improve future automake versions.
2625 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2626 echo 'Configuration will proceed anyway, since you have set the' >&2
2627 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2631 Aborting the configuration process, to ensure you take notice of the issue.
2633 You can download and install GNU coreutils to get an 'rm' implementation
2634 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2636 If you want to complete the configuration process using your problematic
2637 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2638 to "yes", and re-run configure.
2641 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2647 ac_config_headers="$ac_config_headers config.h"
2650 # Checks for programs.
2652 ac_cpp='$CPP $CPPFLAGS'
2653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656 if test -n "$ac_tool_prefix"; then
2657 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2658 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660 $as_echo_n "checking for $ac_word... " >&6; }
2661 if ${ac_cv_prog_CC+:} false; then :
2662 $as_echo_n "(cached) " >&6
2664 if test -n "$CC"; then
2665 ac_cv_prog_CC="$CC" # Let the user override the test.
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2674 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2685 if test -n "$CC"; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2687 $as_echo "$CC" >&6; }
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690 $as_echo "no" >&6; }
2695 if test -z "$ac_cv_prog_CC"; then
2697 # Extract the first word of "gcc", so it can be a program name with args.
2698 set dummy gcc; ac_word=$2
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700 $as_echo_n "checking for $ac_word... " >&6; }
2701 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2702 $as_echo_n "(cached) " >&6
2704 if test -n "$ac_ct_CC"; then
2705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 test -z "$as_dir" && as_dir=.
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2714 ac_cv_prog_ac_ct_CC="gcc"
2715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2725 if test -n "$ac_ct_CC"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2727 $as_echo "$ac_ct_CC" >&6; }
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730 $as_echo "no" >&6; }
2733 if test "x$ac_ct_CC" = x; then
2736 case $cross_compiling:$ac_tool_warned in
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2740 ac_tool_warned=yes ;;
2748 if test -z "$CC"; then
2749 if test -n "$ac_tool_prefix"; then
2750 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2751 set dummy ${ac_tool_prefix}cc; ac_word=$2
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753 $as_echo_n "checking for $ac_word... " >&6; }
2754 if ${ac_cv_prog_CC+:} false; then :
2755 $as_echo_n "(cached) " >&6
2757 if test -n "$CC"; then
2758 ac_cv_prog_CC="$CC" # Let the user override the test.
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767 ac_cv_prog_CC="${ac_tool_prefix}cc"
2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 if test -n "$CC"; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2780 $as_echo "$CC" >&6; }
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2789 if test -z "$CC"; then
2790 # Extract the first word of "cc", so it can be a program name with args.
2791 set dummy cc; ac_word=$2
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793 $as_echo_n "checking for $ac_word... " >&6; }
2794 if ${ac_cv_prog_CC+:} false; then :
2795 $as_echo_n "(cached) " >&6
2797 if test -n "$CC"; then
2798 ac_cv_prog_CC="$CC" # Let the user override the test.
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2808 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2809 ac_prog_rejected=yes
2813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 if test $ac_prog_rejected = yes; then
2821 # We found a bogon in the path, so make sure we never use it.
2822 set dummy $ac_cv_prog_CC
2824 if test $# != 0; then
2825 # We chose a different compiler from the bogus one.
2826 # However, it has the same basename, so the bogon will be chosen
2827 # first if we set CC to just the basename; use the full file name.
2829 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2835 if test -n "$CC"; then
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2837 $as_echo "$CC" >&6; }
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840 $as_echo "no" >&6; }
2845 if test -z "$CC"; then
2846 if test -n "$ac_tool_prefix"; then
2847 for ac_prog in cl.exe
2849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 $as_echo_n "checking for $ac_word... " >&6; }
2853 if ${ac_cv_prog_CC+:} false; then :
2854 $as_echo_n "(cached) " >&6
2856 if test -n "$CC"; then
2857 ac_cv_prog_CC="$CC" # Let the user override the test.
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 if test -n "$CC"; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2879 $as_echo "$CC" >&6; }
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2886 test -n "$CC" && break
2889 if test -z "$CC"; then
2891 for ac_prog in cl.exe
2893 # Extract the first word of "$ac_prog", so it can be a program name with args.
2894 set dummy $ac_prog; ac_word=$2
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896 $as_echo_n "checking for $ac_word... " >&6; }
2897 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2898 $as_echo_n "(cached) " >&6
2900 if test -n "$ac_ct_CC"; then
2901 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 test -z "$as_dir" && as_dir=.
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2910 ac_cv_prog_ac_ct_CC="$ac_prog"
2911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2921 if test -n "$ac_ct_CC"; then
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2923 $as_echo "$ac_ct_CC" >&6; }
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926 $as_echo "no" >&6; }
2930 test -n "$ac_ct_CC" && break
2933 if test "x$ac_ct_CC" = x; then
2936 case $cross_compiling:$ac_tool_warned in
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2940 ac_tool_warned=yes ;;
2949 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2951 as_fn_error $? "no acceptable C compiler found in \$PATH
2952 See \`config.log' for more details" "$LINENO" 5; }
2954 # Provide some information about the compiler.
2955 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2958 for ac_option in --version -v -V -qversion; do
2959 { { ac_try="$ac_compiler $ac_option >&5"
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2965 $as_echo "$ac_try_echo"; } >&5
2966 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2968 if test -s conftest.err; then
2970 ... rest of stderr output deleted ...
2971 10q' conftest.err >conftest.er1
2972 cat conftest.er1 >&5
2974 rm -f conftest.er1 conftest.err
2975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2976 test $ac_status = 0; }
2979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2980 /* end confdefs.h. */
2990 ac_clean_files_save=$ac_clean_files
2991 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2992 # Try to create an executable without -o first, disregard a.out.
2993 # It will help us diagnose broken compilers, and finding out an intuition
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2996 $as_echo_n "checking whether the C compiler works... " >&6; }
2997 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2999 # The possible output files:
3000 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3003 for ac_file in $ac_files
3006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3007 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3012 if { { ac_try="$ac_link_default"
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3018 $as_echo "$ac_try_echo"; } >&5
3019 (eval "$ac_link_default") 2>&5
3021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3022 test $ac_status = 0; }; then :
3023 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3024 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3025 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3026 # so that the user can short-circuit this test for compilers unknown to
3028 for ac_file in $ac_files ''
3030 test -f "$ac_file" || continue
3032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3035 # We found the default executable, but exeext='' is most
3039 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3041 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3043 # We set ac_cv_exeext here because the later test for it is not
3044 # safe: cross compilers may not add the suffix if given an `-o'
3045 # argument, so we may need to know it at that point already.
3046 # Even if this section looks crufty: it has the advantage of
3053 test "$ac_cv_exeext" = no && ac_cv_exeext=
3058 if test -z "$ac_file"; then :
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060 $as_echo "no" >&6; }
3061 $as_echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3066 as_fn_error 77 "C compiler cannot create executables
3067 See \`config.log' for more details" "$LINENO" 5; }
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3070 $as_echo "yes" >&6; }
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3073 $as_echo_n "checking for C compiler default output file name... " >&6; }
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3075 $as_echo "$ac_file" >&6; }
3076 ac_exeext=$ac_cv_exeext
3078 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3079 ac_clean_files=$ac_clean_files_save
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3081 $as_echo_n "checking for suffix of executables... " >&6; }
3082 if { { ac_try="$ac_link"
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3088 $as_echo "$ac_try_echo"; } >&5
3089 (eval "$ac_link") 2>&5
3091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3092 test $ac_status = 0; }; then :
3093 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3094 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3095 # work properly (i.e., refer to `conftest.exe'), while it won't with
3097 for ac_file in conftest.exe conftest conftest.*; do
3098 test -f "$ac_file" || continue
3100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3101 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3109 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3110 See \`config.log' for more details" "$LINENO" 5; }
3112 rm -f conftest conftest$ac_cv_exeext
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3114 $as_echo "$ac_cv_exeext" >&6; }
3116 rm -f conftest.$ac_ext
3117 EXEEXT=$ac_cv_exeext
3119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3120 /* end confdefs.h. */
3125 FILE *f = fopen ("conftest.out", "w");
3126 return ferror (f) || fclose (f) != 0;
3132 ac_clean_files="$ac_clean_files conftest.out"
3133 # Check that the compiler produces executables we can run. If not, either
3134 # the compiler is broken, or we cross compile.
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3136 $as_echo_n "checking whether we are cross compiling... " >&6; }
3137 if test "$cross_compiling" != yes; then
3138 { { ac_try="$ac_link"
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144 $as_echo "$ac_try_echo"; } >&5
3145 (eval "$ac_link") 2>&5
3147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148 test $ac_status = 0; }
3149 if { ac_try='./conftest$ac_cv_exeext'
3150 { { case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3155 $as_echo "$ac_try_echo"; } >&5
3156 (eval "$ac_try") 2>&5
3158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3159 test $ac_status = 0; }; }; then
3162 if test "$cross_compiling" = maybe; then
3165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3167 as_fn_error $? "cannot run C compiled programs.
3168 If you meant to cross compile, use \`--host'.
3169 See \`config.log' for more details" "$LINENO" 5; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3174 $as_echo "$cross_compiling" >&6; }
3176 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3177 ac_clean_files=$ac_clean_files_save
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3179 $as_echo_n "checking for suffix of object files... " >&6; }
3180 if ${ac_cv_objext+:} false; then :
3181 $as_echo_n "(cached) " >&6
3183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3184 /* end confdefs.h. */
3194 rm -f conftest.o conftest.obj
3195 if { { ac_try="$ac_compile"
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3201 $as_echo "$ac_try_echo"; } >&5
3202 (eval "$ac_compile") 2>&5
3204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3205 test $ac_status = 0; }; then :
3206 for ac_file in conftest.o conftest.obj conftest.*; do
3207 test -f "$ac_file" || continue;
3209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3210 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3215 $as_echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3220 as_fn_error $? "cannot compute suffix of object files: cannot compile
3221 See \`config.log' for more details" "$LINENO" 5; }
3223 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3226 $as_echo "$ac_cv_objext" >&6; }
3227 OBJEXT=$ac_cv_objext
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3230 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3231 if ${ac_cv_c_compiler_gnu+:} false; then :
3232 $as_echo_n "(cached) " >&6
3234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235 /* end confdefs.h. */
3248 if ac_fn_c_try_compile "$LINENO"; then :
3253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3254 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3258 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3259 if test $ac_compiler_gnu = yes; then
3264 ac_test_CFLAGS=${CFLAGS+set}
3265 ac_save_CFLAGS=$CFLAGS
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3267 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3268 if ${ac_cv_prog_cc_g+:} false; then :
3269 $as_echo_n "(cached) " >&6
3271 ac_save_c_werror_flag=$ac_c_werror_flag
3272 ac_c_werror_flag=yes
3275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276 /* end confdefs.h. */
3286 if ac_fn_c_try_compile "$LINENO"; then :
3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291 /* end confdefs.h. */
3301 if ac_fn_c_try_compile "$LINENO"; then :
3304 ac_c_werror_flag=$ac_save_c_werror_flag
3306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307 /* end confdefs.h. */
3317 if ac_fn_c_try_compile "$LINENO"; then :
3320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3325 ac_c_werror_flag=$ac_save_c_werror_flag
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3328 $as_echo "$ac_cv_prog_cc_g" >&6; }
3329 if test "$ac_test_CFLAGS" = set; then
3330 CFLAGS=$ac_save_CFLAGS
3331 elif test $ac_cv_prog_cc_g = yes; then
3332 if test "$GCC" = yes; then
3338 if test "$GCC" = yes; then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3345 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3346 if ${ac_cv_prog_cc_c89+:} false; then :
3347 $as_echo_n "(cached) " >&6
3349 ac_cv_prog_cc_c89=no
3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352 /* end confdefs.h. */
3356 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3357 struct buf { int x; };
3358 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3359 static char *e (p, i)
3365 static char *f (char * (*g) (char **, int), char **p, ...)
3370 s = g (p, va_arg (v,int));
3375 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3376 function prototypes and stuff, but not '\xHH' hex character constants.
3377 These don't provoke an error unfortunately, instead are silently treated
3378 as 'x'. The following induces an error, until -std is added to get
3379 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3380 array size at least. It's necessary to write '\x00'==0 to get something
3381 that's true only with -std. */
3382 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3384 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3385 inside strings and character constants. */
3387 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3389 int test (int i, double x);
3390 struct s1 {int (*f) (int a);};
3391 struct s2 {int (*f) (double a);};
3392 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3398 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3403 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3404 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3406 CC="$ac_save_CC $ac_arg"
3407 if ac_fn_c_try_compile "$LINENO"; then :
3408 ac_cv_prog_cc_c89=$ac_arg
3410 rm -f core conftest.err conftest.$ac_objext
3411 test "x$ac_cv_prog_cc_c89" != "xno" && break
3413 rm -f conftest.$ac_ext
3418 case "x$ac_cv_prog_cc_c89" in
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3421 $as_echo "none needed" >&6; } ;;
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3424 $as_echo "unsupported" >&6; } ;;
3426 CC="$CC $ac_cv_prog_cc_c89"
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3428 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3430 if test "x$ac_cv_prog_cc_c89" != xno; then :
3435 ac_cpp='$CPP $CPPFLAGS'
3436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3441 ac_cpp='$CPP $CPPFLAGS'
3442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3446 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3447 if ${am_cv_prog_cc_c_o+:} false; then :
3448 $as_echo_n "(cached) " >&6
3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h. */
3461 # Make sure it works both with $CC and with simple cc.
3462 # Following AC_PROG_CC_C_O, we do the test twice because some
3463 # compilers refuse to overwrite an existing .o file with -o,
3464 # though they will create one.
3465 am_cv_prog_cc_c_o=yes
3467 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3468 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); } \
3472 && test -f conftest2.$ac_objext; then
3475 am_cv_prog_cc_c_o=no
3479 rm -f core conftest*
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3483 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3484 if test "$am_cv_prog_cc_c_o" != yes; then
3485 # Losing compiler, so override with the script.
3486 # FIXME: It is wrong to rewrite CC.
3487 # But if we don't then we get into trouble of one sort or another.
3488 # A longer-term fix would be to have automake use am__CC in this case,
3489 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3490 CC="$am_aux_dir/compile $CC"
3493 ac_cpp='$CPP $CPPFLAGS'
3494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498 DEPDIR="${am__leading_dot}deps"
3500 ac_config_commands="$ac_config_commands depfiles"
3503 am_make=${MAKE-make}
3504 cat > confinc << 'END'
3506 @echo this is the am__doit target
3509 # If we don't find an include directive, just comment out the code.
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3511 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3515 # First try GNU make style include.
3516 echo "include confinc" > confmf
3517 # Ignore all kinds of additional output from 'make'.
3518 case `$am_make -s -f confmf 2> /dev/null` in #(
3519 *the\ am__doit\ target*)
3525 # Now try BSD make style include.
3526 if test "$am__include" = "#"; then
3527 echo '.include "confinc"' > confmf
3528 case `$am_make -s -f confmf 2> /dev/null` in #(
3529 *the\ am__doit\ target*)
3530 am__include=.include
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3539 $as_echo "$_am_result" >&6; }
3540 rm -f confinc confmf
3542 # Check whether --enable-dependency-tracking was given.
3543 if test "${enable_dependency_tracking+set}" = set; then :
3544 enableval=$enable_dependency_tracking;
3547 if test "x$enable_dependency_tracking" != xno; then
3548 am_depcomp="$ac_aux_dir/depcomp"
3552 if test "x$enable_dependency_tracking" != xno; then
3562 depcc="$CC" am_compiler_list=
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3565 $as_echo_n "checking dependency style of $depcc... " >&6; }
3566 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3567 $as_echo_n "(cached) " >&6
3569 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3570 # We make a subdir and do the tests there. Otherwise we can end up
3571 # making bogus files that we don't know about and never remove. For
3572 # instance it was reported that on HP-UX the gcc test will end up
3573 # making a dummy file named 'D' -- because '-MD' means "put the output
3577 # Copy depcomp to subdir because otherwise we won't find it if we're
3578 # using a relative directory.
3579 cp "$am_depcomp" conftest.dir
3581 # We will build objects and dependencies in a subdirectory because
3582 # it helps to detect inapplicable dependency modes. For instance
3583 # both Tru64's cc and ICC support -MD to output dependencies as a
3584 # side effect of compilation, but ICC will put the dependencies in
3585 # the current directory while Tru64 will put them in the object
3589 am_cv_CC_dependencies_compiler_type=none
3590 if test "$am_compiler_list" = ""; then
3591 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3594 case " $depcc " in #(
3595 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3598 for depmode in $am_compiler_list; do
3599 # Setup a source with many dependencies, because some compilers
3600 # like to wrap large dependency lists on column 80 (with \), and
3601 # we should not choose a depcomp mode which is confused by this.
3603 # We need to recreate these files for each test, as the compiler may
3604 # overwrite some of them when testing with obscure command lines.
3605 # This happens at least with the AIX C compiler.
3607 for i in 1 2 3 4 5 6; do
3608 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3609 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3610 # Solaris 10 /bin/sh.
3611 echo '/* dummy */' > sub/conftst$i.h
3613 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3615 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3616 # mode. It turns out that the SunPro C++ compiler does not properly
3617 # handle '-M -o', and we need to detect this. Also, some Intel
3618 # versions had trouble with output in subdirs.
3619 am__obj=sub/conftest.${OBJEXT-o}
3620 am__minus_obj="-o $am__obj"
3623 # This depmode causes a compiler race in universal mode.
3624 test "$am__universal" = false || continue
3627 # After this tag, mechanisms are not by side-effect, so they'll
3628 # only be used when explicitly requested.
3629 if test "x$enable_dependency_tracking" = xyes; then
3635 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3636 # This compiler won't grok '-c -o', but also, the minuso test has
3637 # not run yet. These depmodes are late enough in the game, and
3638 # so weak that their functioning should not be impacted.
3639 am__obj=conftest.${OBJEXT-o}
3644 if depmode=$depmode \
3645 source=sub/conftest.c object=$am__obj \
3646 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3647 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3648 >/dev/null 2>conftest.err &&
3649 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3650 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3651 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3652 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3653 # icc doesn't choke on unknown options, it will just issue warnings
3654 # or remarks (even with -Werror). So we grep stderr for any message
3655 # that says an option was ignored or not supported.
3656 # When given -MP, icc 7.0 and 7.1 complain thusly:
3657 # icc: Command line warning: ignoring option '-M'; no argument required
3658 # The diagnosis changed in icc 8.0:
3659 # icc: Command line remark: option '-MP' not supported
3660 if (grep 'ignoring option' conftest.err ||
3661 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3662 am_cv_CC_dependencies_compiler_type=$depmode
3671 am_cv_CC_dependencies_compiler_type=none
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3676 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3677 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3680 test "x$enable_dependency_tracking" != xno \
3681 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3683 am__fastdepCC_FALSE='#'
3685 am__fastdepCC_TRUE='#'
3686 am__fastdepCC_FALSE=
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3691 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3692 if ${ac_cv_prog_cc_c99+:} false; then :
3693 $as_echo_n "(cached) " >&6
3695 ac_cv_prog_cc_c99=no
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3700 #include <stdbool.h>
3705 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3706 #define debug(...) fprintf (stderr, __VA_ARGS__)
3707 #define showlist(...) puts (#__VA_ARGS__)
3708 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3710 test_varargs_macros (void)
3715 debug ("X = %d\n", x);
3716 showlist (The first, second, and third items.);
3717 report (x>y, "x is %d but y is %d", x, y);
3720 // Check long long types.
3721 #define BIG64 18446744073709551615ull
3722 #define BIG32 4294967295ul
3723 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3725 your preprocessor is broken;
3729 your preprocessor is broken;
3731 static long long int bignum = -9223372036854775807LL;
3732 static unsigned long long int ubignum = BIG64;
3734 struct incomplete_array
3742 const wchar_t *name;
3746 typedef const char *ccp;
3749 test_restrict (ccp restrict text)
3751 // See if C++-style comments work.
3752 // Iterate through items via the restricted pointer.
3753 // Also check for declarations in for loops.
3754 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3759 // Check varargs and va_copy.
3761 test_varargs (const char *format, ...)
3764 va_start (args, format);
3766 va_copy (args_copy, args);
3777 str = va_arg (args_copy, const char *);
3780 number = va_arg (args_copy, int);
3783 fnumber = va_arg (args_copy, double);
3798 _Bool success = false;
3801 if (test_restrict ("String literal") == 0)
3803 char *restrict newvar = "Another string";
3806 test_varargs ("s, d' f .", "string", 65, 34.234);
3807 test_varargs_macros ();
3809 // Check flexible array members.
3810 struct incomplete_array *ia =
3811 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3813 for (int i = 0; i < ia->datasize; ++i)
3814 ia->data[i] = i * 1.234;
3816 // Check named initializers.
3817 struct named_init ni = {
3819 .name = L"Test wide string",
3820 .average = 543.34343,
3825 int dynamic_array[ni.number];
3826 dynamic_array[ni.number - 1] = 543;
3828 // work around unused variable warnings
3829 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3830 || dynamic_array[ni.number - 1] != 543);
3836 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3838 CC="$ac_save_CC $ac_arg"
3839 if ac_fn_c_try_compile "$LINENO"; then :
3840 ac_cv_prog_cc_c99=$ac_arg
3842 rm -f core conftest.err conftest.$ac_objext
3843 test "x$ac_cv_prog_cc_c99" != "xno" && break
3845 rm -f conftest.$ac_ext
3850 case "x$ac_cv_prog_cc_c99" in
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3853 $as_echo "none needed" >&6; } ;;
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3856 $as_echo "unsupported" >&6; } ;;
3858 CC="$CC $ac_cv_prog_cc_c99"
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3860 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3862 if test "x$ac_cv_prog_cc_c99" != xno; then :
3869 # Checks for header files.
3872 ac_cpp='$CPP $CPPFLAGS'
3873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3877 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3878 # On Suns, sometimes $CPP names a directory.
3879 if test -n "$CPP" && test -d "$CPP"; then
3882 if test -z "$CPP"; then
3883 if ${ac_cv_prog_CPP+:} false; then :
3884 $as_echo_n "(cached) " >&6
3886 # Double quotes because CPP needs to be expanded
3887 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3890 for ac_c_preproc_warn_flag in '' yes
3892 # Use a header file that comes with gcc, so configuring glibc
3893 # with a fresh cross-compiler works.
3894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3895 # <limits.h> exists even on freestanding compilers.
3896 # On the NeXT, cc -E runs the code through the compiler's parser,
3897 # not just through cpp. "Syntax error" is here to catch this case.
3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899 /* end confdefs.h. */
3901 # include <limits.h>
3903 # include <assert.h>
3907 if ac_fn_c_try_cpp "$LINENO"; then :
3910 # Broken: fails on valid input.
3913 rm -f conftest.err conftest.i conftest.$ac_ext
3915 # OK, works on sane cases. Now check whether nonexistent headers
3916 # can be detected and how.
3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h. */
3919 #include <ac_nonexistent.h>
3921 if ac_fn_c_try_cpp "$LINENO"; then :
3922 # Broken: success on invalid input.
3925 # Passes both tests.
3929 rm -f conftest.err conftest.i conftest.$ac_ext
3932 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3933 rm -f conftest.i conftest.err conftest.$ac_ext
3934 if $ac_preproc_ok; then :
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3947 $as_echo "$CPP" >&6; }
3949 for ac_c_preproc_warn_flag in '' yes
3951 # Use a header file that comes with gcc, so configuring glibc
3952 # with a fresh cross-compiler works.
3953 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3954 # <limits.h> exists even on freestanding compilers.
3955 # On the NeXT, cc -E runs the code through the compiler's parser,
3956 # not just through cpp. "Syntax error" is here to catch this case.
3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3960 # include <limits.h>
3962 # include <assert.h>
3966 if ac_fn_c_try_cpp "$LINENO"; then :
3969 # Broken: fails on valid input.
3972 rm -f conftest.err conftest.i conftest.$ac_ext
3974 # OK, works on sane cases. Now check whether nonexistent headers
3975 # can be detected and how.
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3978 #include <ac_nonexistent.h>
3980 if ac_fn_c_try_cpp "$LINENO"; then :
3981 # Broken: success on invalid input.
3984 # Passes both tests.
3988 rm -f conftest.err conftest.i conftest.$ac_ext
3991 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3992 rm -f conftest.i conftest.err conftest.$ac_ext
3993 if $ac_preproc_ok; then :
3996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3998 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3999 See \`config.log' for more details" "$LINENO" 5; }
4003 ac_cpp='$CPP $CPPFLAGS'
4004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4010 $as_echo_n "checking for X... " >&6; }
4013 # Check whether --with-x was given.
4014 if test "${with_x+set}" = set; then :
4018 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4019 if test "x$with_x" = xno; then
4020 # The user explicitly disabled X.
4023 case $x_includes,$x_libraries in #(
4024 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4025 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4026 $as_echo_n "(cached) " >&6
4028 # One or both of the vars are not set, and there is no cached value.
4029 ac_x_includes=no ac_x_libraries=no
4030 rm -f -r conftest.dir
4031 if mkdir conftest.dir; then
4033 cat >Imakefile <<'_ACEOF'
4035 @echo incroot='${INCROOT}'
4037 @echo usrlibdir='${USRLIBDIR}'
4039 @echo libdir='${LIBDIR}'
4041 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4042 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4043 for ac_var in incroot usrlibdir libdir; do
4044 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4046 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4047 for ac_extension in a so sl dylib la dll; do
4048 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4049 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4050 ac_im_usrlibdir=$ac_im_libdir; break
4053 # Screen out bogus values from the imake configuration. They are
4054 # bogus both because they are the default anyway, and because
4055 # using them would break gcc on systems where it needs fixed includes.
4056 case $ac_im_incroot in
4057 /usr/include) ac_x_includes= ;;
4058 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4060 case $ac_im_usrlibdir in
4061 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4062 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4066 rm -f -r conftest.dir
4069 # Standard set of common directories for X headers.
4070 # Check X11 before X11Rn because it is often a symlink to the current release.
4084 /usr/local/X11/include
4085 /usr/local/X11R7/include
4086 /usr/local/X11R6/include
4087 /usr/local/X11R5/include
4088 /usr/local/X11R4/include
4090 /usr/local/include/X11
4091 /usr/local/include/X11R7
4092 /usr/local/include/X11R6
4093 /usr/local/include/X11R5
4094 /usr/local/include/X11R4
4098 /usr/XFree86/include/X11
4102 /usr/unsupported/include
4104 /usr/local/x11r5/include
4105 /usr/lpp/Xamples/include
4107 /usr/openwin/include
4108 /usr/openwin/share/include'
4110 if test "$ac_x_includes" = no; then
4111 # Guess where to find include files, by looking for Xlib.h.
4112 # First, try using that file with no special directory specified.
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4115 #include <X11/Xlib.h>
4117 if ac_fn_c_try_cpp "$LINENO"; then :
4118 # We can compile using X headers with no special include directory.
4121 for ac_dir in $ac_x_header_dirs; do
4122 if test -r "$ac_dir/X11/Xlib.h"; then
4123 ac_x_includes=$ac_dir
4128 rm -f conftest.err conftest.i conftest.$ac_ext
4129 fi # $ac_x_includes = no
4131 if test "$ac_x_libraries" = no; then
4132 # Check for the libraries.
4133 # See if we find them without any special options.
4134 # Don't add to $LIBS permanently.
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4139 #include <X11/Xlib.h>
4148 if ac_fn_c_try_link "$LINENO"; then :
4150 # We can link X programs with no special library path.
4154 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4156 # Don't even attempt the hair of trying to link an X program!
4157 for ac_extension in a so sl dylib la dll; do
4158 if test -r "$ac_dir/libX11.$ac_extension"; then
4159 ac_x_libraries=$ac_dir
4165 rm -f core conftest.err conftest.$ac_objext \
4166 conftest$ac_exeext conftest.$ac_ext
4167 fi # $ac_x_libraries = no
4169 case $ac_x_includes,$ac_x_libraries in #(
4171 # Didn't find X, or a directory has "'" in its name.
4172 ac_cv_have_x="have_x=no";; #(
4174 # Record where we found X for the cache.
4175 ac_cv_have_x="have_x=yes\
4176 ac_x_includes='$ac_x_includes'\
4177 ac_x_libraries='$ac_x_libraries'"
4183 eval "$ac_cv_have_x"
4186 if test "$have_x" != yes; then
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4188 $as_echo "$have_x" >&6; }
4191 # If each of the values was on the command line, it overrides each guess.
4192 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4193 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4194 # Update the cache value to reflect the command line values.
4195 ac_cv_have_x="have_x=yes\
4196 ac_x_includes='$x_includes'\
4197 ac_x_libraries='$x_libraries'"
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4199 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4205 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4206 if ${ac_cv_path_SED+:} false; then :
4207 $as_echo_n "(cached) " >&6
4209 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4210 for ac_i in 1 2 3 4 5 6 7; do
4211 ac_script="$ac_script$as_nl$ac_script"
4213 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4214 { ac_script=; unset ac_script;}
4215 if test -z "$SED"; then
4216 ac_path_SED_found=false
4217 # Loop through the user's path and test for each of PROGNAME-LIST
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 test -z "$as_dir" && as_dir=.
4223 for ac_prog in sed gsed; do
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4226 as_fn_executable_p "$ac_path_SED" || continue
4227 # Check for GNU ac_path_SED and select it if it is found.
4228 # Check for GNU $ac_path_SED
4229 case `"$ac_path_SED" --version 2>&1` in
4231 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4234 $as_echo_n 0123456789 >"conftest.in"
4237 cat "conftest.in" "conftest.in" >"conftest.tmp"
4238 mv "conftest.tmp" "conftest.in"
4239 cp "conftest.in" "conftest.nl"
4240 $as_echo '' >> "conftest.nl"
4241 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4242 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4243 as_fn_arith $ac_count + 1 && ac_count=$as_val
4244 if test $ac_count -gt ${ac_path_SED_max-0}; then
4245 # Best one so far, save it but keep looking for a better one
4246 ac_cv_path_SED="$ac_path_SED"
4247 ac_path_SED_max=$ac_count
4249 # 10*(2^10) chars as input seems more than enough
4250 test $ac_count -gt 10 && break
4252 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4255 $ac_path_SED_found && break 3
4260 if test -z "$ac_cv_path_SED"; then
4261 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4269 $as_echo "$ac_cv_path_SED" >&6; }
4270 SED="$ac_cv_path_SED"
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4275 $as_echo_n "checking whether NLS is requested... " >&6; }
4276 # Check whether --enable-nls was given.
4277 if test "${enable_nls+set}" = set; then :
4278 enableval=$enable_nls; USE_NLS=$enableval
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4284 $as_echo "$USE_NLS" >&6; }
4289 GETTEXT_MACRO_VERSION=0.19
4294 # Prepare PATH_SEPARATOR.
4295 # The user is always right.
4296 if test "${PATH_SEPARATOR+set}" != set; then
4297 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
4298 # contains only /bin. Note that ksh looks also at the FPATH variable,
4299 # so we have to set that as well for the test.
4301 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4302 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4303 || PATH_SEPARATOR=';'
4307 # Find out how to test for executable files. Don't use a zero-byte file,
4308 # as systems may use methods other than mode bits to determine executability.
4309 cat >conf$$.file <<_ASEOF
4313 chmod +x conf$$.file
4314 if test -x conf$$.file >/dev/null 2>&1; then
4315 ac_executable_p="test -x"
4317 ac_executable_p="test -f"
4321 # Extract the first word of "msgfmt", so it can be a program name with args.
4322 set dummy msgfmt; ac_word=$2
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324 $as_echo_n "checking for $ac_word... " >&6; }
4325 if ${ac_cv_path_MSGFMT+:} false; then :
4326 $as_echo_n "(cached) " >&6
4330 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4333 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4334 for ac_dir in $PATH; do
4336 test -z "$ac_dir" && ac_dir=.
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4339 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4340 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4341 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4342 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4349 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4353 MSGFMT="$ac_cv_path_MSGFMT"
4354 if test "$MSGFMT" != ":"; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4356 $as_echo "$MSGFMT" >&6; }
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4362 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4363 set dummy gmsgfmt; ac_word=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if ${ac_cv_path_GMSGFMT+:} false; then :
4367 $as_echo_n "(cached) " >&6
4371 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 test -z "$as_dir" && as_dir=.
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4381 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4393 GMSGFMT=$ac_cv_path_GMSGFMT
4394 if test -n "$GMSGFMT"; then
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4396 $as_echo "$GMSGFMT" >&6; }
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399 $as_echo "no" >&6; }
4404 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4405 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4406 *) MSGFMT_015=$MSGFMT ;;
4409 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4410 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4411 *) GMSGFMT_015=$GMSGFMT ;;
4416 # Prepare PATH_SEPARATOR.
4417 # The user is always right.
4418 if test "${PATH_SEPARATOR+set}" != set; then
4419 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
4420 # contains only /bin. Note that ksh looks also at the FPATH variable,
4421 # so we have to set that as well for the test.
4423 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4424 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4425 || PATH_SEPARATOR=';'
4429 # Find out how to test for executable files. Don't use a zero-byte file,
4430 # as systems may use methods other than mode bits to determine executability.
4431 cat >conf$$.file <<_ASEOF
4435 chmod +x conf$$.file
4436 if test -x conf$$.file >/dev/null 2>&1; then
4437 ac_executable_p="test -x"
4439 ac_executable_p="test -f"
4443 # Extract the first word of "xgettext", so it can be a program name with args.
4444 set dummy xgettext; ac_word=$2
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4446 $as_echo_n "checking for $ac_word... " >&6; }
4447 if ${ac_cv_path_XGETTEXT+:} false; then :
4448 $as_echo_n "(cached) " >&6
4452 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4455 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4456 for ac_dir in $PATH; do
4458 test -z "$ac_dir" && ac_dir=.
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4461 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4462 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4463 (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
4464 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4471 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4475 XGETTEXT="$ac_cv_path_XGETTEXT"
4476 if test "$XGETTEXT" != ":"; then
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4478 $as_echo "$XGETTEXT" >&6; }
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4486 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4487 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4488 *) XGETTEXT_015=$XGETTEXT ;;
4493 # Prepare PATH_SEPARATOR.
4494 # The user is always right.
4495 if test "${PATH_SEPARATOR+set}" != set; then
4496 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
4497 # contains only /bin. Note that ksh looks also at the FPATH variable,
4498 # so we have to set that as well for the test.
4500 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4501 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4502 || PATH_SEPARATOR=';'
4506 # Find out how to test for executable files. Don't use a zero-byte file,
4507 # as systems may use methods other than mode bits to determine executability.
4508 cat >conf$$.file <<_ASEOF
4512 chmod +x conf$$.file
4513 if test -x conf$$.file >/dev/null 2>&1; then
4514 ac_executable_p="test -x"
4516 ac_executable_p="test -f"
4520 # Extract the first word of "msgmerge", so it can be a program name with args.
4521 set dummy msgmerge; ac_word=$2
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4523 $as_echo_n "checking for $ac_word... " >&6; }
4524 if ${ac_cv_path_MSGMERGE+:} false; then :
4525 $as_echo_n "(cached) " >&6
4529 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4532 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4533 for ac_dir in $PATH; do
4535 test -z "$ac_dir" && ac_dir=.
4536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4538 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4539 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
4540 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4547 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4551 MSGMERGE="$ac_cv_path_MSGMERGE"
4552 if test "$MSGMERGE" != ":"; then
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4554 $as_echo "$MSGMERGE" >&6; }
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4557 $as_echo "no" >&6; }
4561 test -n "$localedir" || localedir='${datadir}/locale'
4564 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
4567 ac_config_commands="$ac_config_commands po-directories"
4571 if test "X$prefix" = "XNONE"; then
4572 acl_final_prefix="$ac_default_prefix"
4574 acl_final_prefix="$prefix"
4576 if test "X$exec_prefix" = "XNONE"; then
4577 acl_final_exec_prefix='${prefix}'
4579 acl_final_exec_prefix="$exec_prefix"
4581 acl_save_prefix="$prefix"
4582 prefix="$acl_final_prefix"
4583 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4584 prefix="$acl_save_prefix"
4586 # Make sure we can run config.sub.
4587 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4588 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4591 $as_echo_n "checking build system type... " >&6; }
4592 if ${ac_cv_build+:} false; then :
4593 $as_echo_n "(cached) " >&6
4595 ac_build_alias=$build_alias
4596 test "x$ac_build_alias" = x &&
4597 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4598 test "x$ac_build_alias" = x &&
4599 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4600 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4601 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4605 $as_echo "$ac_cv_build" >&6; }
4606 case $ac_cv_build in
4608 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4611 ac_save_IFS=$IFS; IFS='-'
4617 # Remember, the first character of IFS is used to create $*,
4618 # except with old shells:
4621 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4625 $as_echo_n "checking host system type... " >&6; }
4626 if ${ac_cv_host+:} false; then :
4627 $as_echo_n "(cached) " >&6
4629 if test "x$host_alias" = x; then
4630 ac_cv_host=$ac_cv_build
4632 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4633 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4638 $as_echo "$ac_cv_host" >&6; }
4641 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4644 ac_save_IFS=$IFS; IFS='-'
4650 # Remember, the first character of IFS is used to create $*,
4651 # except with old shells:
4654 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4659 # Check whether --with-gnu-ld was given.
4660 if test "${with_gnu_ld+set}" = set; then :
4661 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4666 # Prepare PATH_SEPARATOR.
4667 # The user is always right.
4668 if test "${PATH_SEPARATOR+set}" != set; then
4669 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
4670 # contains only /bin. Note that ksh looks also at the FPATH variable,
4671 # so we have to set that as well for the test.
4673 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4674 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4675 || PATH_SEPARATOR=';'
4680 if test "$GCC" = yes; then
4681 # Check if gcc -print-prog-name=ld gives a path.
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4683 $as_echo_n "checking for ld used by $CC... " >&6; }
4686 # gcc leaves a trailing carriage return which upsets mingw
4687 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4689 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4692 # Accept absolute paths.
4694 re_direlt='/[^/][^/]*/\.\./'
4695 # Canonicalize the pathname of ld
4696 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
4697 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
4698 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4700 test -z "$LD" && LD="$ac_prog"
4703 # If it fails, then pretend we aren't using GCC.
4707 # If it is relative, then search for the first ld in PATH.
4711 elif test "$with_gnu_ld" = yes; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4713 $as_echo_n "checking for GNU ld... " >&6; }
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4716 $as_echo_n "checking for non-GNU ld... " >&6; }
4718 if ${acl_cv_path_LD+:} false; then :
4719 $as_echo_n "(cached) " >&6
4721 if test -z "$LD"; then
4722 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4723 for ac_dir in $PATH; do
4725 test -z "$ac_dir" && ac_dir=.
4726 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4727 acl_cv_path_LD="$ac_dir/$ac_prog"
4728 # Check to see if the program is GNU ld. I'd rather use --version,
4729 # but apparently some variants of GNU ld only accept -v.
4730 # Break only if it was the GNU/non-GNU ld that we prefer.
4731 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
4732 *GNU* | *'with BFD'*)
4733 test "$with_gnu_ld" != no && break
4736 test "$with_gnu_ld" != yes && break
4743 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4747 LD="$acl_cv_path_LD"
4748 if test -n "$LD"; then
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4750 $as_echo "$LD" >&6; }
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753 $as_echo "no" >&6; }
4755 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4757 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4758 if ${acl_cv_prog_gnu_ld+:} false; then :
4759 $as_echo_n "(cached) " >&6
4761 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4762 case `$LD -v 2>&1 </dev/null` in
4763 *GNU* | *'with BFD'*)
4764 acl_cv_prog_gnu_ld=yes
4767 acl_cv_prog_gnu_ld=no
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4772 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4773 with_gnu_ld=$acl_cv_prog_gnu_ld
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4779 $as_echo_n "checking for shared library run path origin... " >&6; }
4780 if ${acl_cv_rpath+:} false; then :
4781 $as_echo_n "(cached) " >&6
4784 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4785 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4792 $as_echo "$acl_cv_rpath" >&6; }
4794 acl_libext="$acl_cv_libext"
4795 acl_shlibext="$acl_cv_shlibext"
4796 acl_libname_spec="$acl_cv_libname_spec"
4797 acl_library_names_spec="$acl_cv_library_names_spec"
4798 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4799 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4800 acl_hardcode_direct="$acl_cv_hardcode_direct"
4801 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4802 # Check whether --enable-rpath was given.
4803 if test "${enable_rpath+set}" = set; then :
4804 enableval=$enable_rpath; :
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4811 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4812 if ${ac_cv_path_GREP+:} false; then :
4813 $as_echo_n "(cached) " >&6
4815 if test -z "$GREP"; then
4816 ac_path_GREP_found=false
4817 # Loop through the user's path and test for each of PROGNAME-LIST
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4822 test -z "$as_dir" && as_dir=.
4823 for ac_prog in grep ggrep; do
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4826 as_fn_executable_p "$ac_path_GREP" || continue
4827 # Check for GNU ac_path_GREP and select it if it is found.
4828 # Check for GNU $ac_path_GREP
4829 case `"$ac_path_GREP" --version 2>&1` in
4831 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4834 $as_echo_n 0123456789 >"conftest.in"
4837 cat "conftest.in" "conftest.in" >"conftest.tmp"
4838 mv "conftest.tmp" "conftest.in"
4839 cp "conftest.in" "conftest.nl"
4840 $as_echo 'GREP' >> "conftest.nl"
4841 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4842 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4843 as_fn_arith $ac_count + 1 && ac_count=$as_val
4844 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4845 # Best one so far, save it but keep looking for a better one
4846 ac_cv_path_GREP="$ac_path_GREP"
4847 ac_path_GREP_max=$ac_count
4849 # 10*(2^10) chars as input seems more than enough
4850 test $ac_count -gt 10 && break
4852 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4855 $ac_path_GREP_found && break 3
4860 if test -z "$ac_cv_path_GREP"; then
4861 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4864 ac_cv_path_GREP=$GREP
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4869 $as_echo "$ac_cv_path_GREP" >&6; }
4870 GREP="$ac_cv_path_GREP"
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4874 $as_echo_n "checking for egrep... " >&6; }
4875 if ${ac_cv_path_EGREP+:} false; then :
4876 $as_echo_n "(cached) " >&6
4878 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4879 then ac_cv_path_EGREP="$GREP -E"
4881 if test -z "$EGREP"; then
4882 ac_path_EGREP_found=false
4883 # Loop through the user's path and test for each of PROGNAME-LIST
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4888 test -z "$as_dir" && as_dir=.
4889 for ac_prog in egrep; do
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4892 as_fn_executable_p "$ac_path_EGREP" || continue
4893 # Check for GNU ac_path_EGREP and select it if it is found.
4894 # Check for GNU $ac_path_EGREP
4895 case `"$ac_path_EGREP" --version 2>&1` in
4897 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4900 $as_echo_n 0123456789 >"conftest.in"
4903 cat "conftest.in" "conftest.in" >"conftest.tmp"
4904 mv "conftest.tmp" "conftest.in"
4905 cp "conftest.in" "conftest.nl"
4906 $as_echo 'EGREP' >> "conftest.nl"
4907 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4908 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4909 as_fn_arith $ac_count + 1 && ac_count=$as_val
4910 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4911 # Best one so far, save it but keep looking for a better one
4912 ac_cv_path_EGREP="$ac_path_EGREP"
4913 ac_path_EGREP_max=$ac_count
4915 # 10*(2^10) chars as input seems more than enough
4916 test $ac_count -gt 10 && break
4918 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4921 $ac_path_EGREP_found && break 3
4926 if test -z "$ac_cv_path_EGREP"; then
4927 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4930 ac_cv_path_EGREP=$EGREP
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4936 $as_echo "$ac_cv_path_EGREP" >&6; }
4937 EGREP="$ac_cv_path_EGREP"
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
4947 $as_echo_n "checking for 64-bit host... " >&6; }
4948 if ${gl_cv_solaris_64bit+:} false; then :
4949 $as_echo_n "(cached) " >&6
4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h. */
4959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4960 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
4961 gl_cv_solaris_64bit=yes
4963 gl_cv_solaris_64bit=no
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
4970 $as_echo "$gl_cv_solaris_64bit" >&6; }
4971 if test $gl_cv_solaris_64bit = yes; then
4972 acl_libdirstem=lib/64
4974 sparc*) acl_libdirstem2=lib/sparcv9 ;;
4975 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
4980 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4981 if test -n "$searchpath"; then
4982 acl_save_IFS="${IFS= }"; IFS=":"
4983 for searchdir in $searchpath; do
4984 if test -d "$searchdir"; then
4985 case "$searchdir" in
4986 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4988 # Better ignore directories of this form. They are misleading.
4990 *) searchdir=`cd "$searchdir" && pwd`
4991 case "$searchdir" in
4992 */lib64 ) acl_libdirstem=lib64 ;;
5001 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5016 acl_save_prefix="$prefix"
5017 prefix="$acl_final_prefix"
5018 acl_save_exec_prefix="$exec_prefix"
5019 exec_prefix="$acl_final_exec_prefix"
5021 eval additional_includedir=\"$includedir\"
5022 eval additional_libdir=\"$libdir\"
5024 exec_prefix="$acl_save_exec_prefix"
5025 prefix="$acl_save_prefix"
5028 # Check whether --with-libiconv-prefix was given.
5029 if test "${with_libiconv_prefix+set}" = set; then :
5030 withval=$with_libiconv_prefix;
5031 if test "X$withval" = "Xno"; then
5034 if test "X$withval" = "X"; then
5036 acl_save_prefix="$prefix"
5037 prefix="$acl_final_prefix"
5038 acl_save_exec_prefix="$exec_prefix"
5039 exec_prefix="$acl_final_exec_prefix"
5041 eval additional_includedir=\"$includedir\"
5042 eval additional_libdir=\"$libdir\"
5044 exec_prefix="$acl_save_exec_prefix"
5045 prefix="$acl_save_prefix"
5048 additional_includedir="$withval/include"
5049 additional_libdir="$withval/$acl_libdirstem"
5050 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5051 && ! test -d "$withval/$acl_libdirstem"; then
5052 additional_libdir="$withval/$acl_libdirstem2"
5066 names_already_handled=
5067 names_next_round='iconv '
5068 while test -n "$names_next_round"; do
5069 names_this_round="$names_next_round"
5071 for name in $names_this_round; do
5073 for n in $names_already_handled; do
5074 if test "$n" = "$name"; then
5079 if test -z "$already_handled"; then
5080 names_already_handled="$names_already_handled $name"
5081 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5082 eval value=\"\$HAVE_LIB$uppername\"
5083 if test -n "$value"; then
5084 if test "$value" = yes; then
5085 eval value=\"\$LIB$uppername\"
5086 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5087 eval value=\"\$LTLIB$uppername\"
5088 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5097 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5098 if test -n "$acl_shlibext"; then
5099 shrext=".$acl_shlibext" # typically: shrext=.so
5103 if test $use_additional = yes; then
5104 dir="$additional_libdir"
5105 if test -n "$acl_shlibext"; then
5106 if test -f "$dir/$libname$shrext"; then
5108 found_so="$dir/$libname$shrext"
5110 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5111 ver=`(cd "$dir" && \
5112 for f in "$libname$shrext".*; do echo "$f"; done \
5113 | sed -e "s,^$libname$shrext\\\\.,," \
5114 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5115 | sed 1q ) 2>/dev/null`
5116 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5118 found_so="$dir/$libname$shrext.$ver"
5121 eval library_names=\"$acl_library_names_spec\"
5122 for f in $library_names; do
5123 if test -f "$dir/$f"; then
5132 if test "X$found_dir" = "X"; then
5133 if test -f "$dir/$libname.$acl_libext"; then
5135 found_a="$dir/$libname.$acl_libext"
5138 if test "X$found_dir" != "X"; then
5139 if test -f "$dir/$libname.la"; then
5140 found_la="$dir/$libname.la"
5144 if test "X$found_dir" = "X"; then
5145 for x in $LDFLAGS $LTLIBICONV; do
5147 acl_save_prefix="$prefix"
5148 prefix="$acl_final_prefix"
5149 acl_save_exec_prefix="$exec_prefix"
5150 exec_prefix="$acl_final_exec_prefix"
5152 exec_prefix="$acl_save_exec_prefix"
5153 prefix="$acl_save_prefix"
5157 dir=`echo "X$x" | sed -e 's/^X-L//'`
5158 if test -n "$acl_shlibext"; then
5159 if test -f "$dir/$libname$shrext"; then
5161 found_so="$dir/$libname$shrext"
5163 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5164 ver=`(cd "$dir" && \
5165 for f in "$libname$shrext".*; do echo "$f"; done \
5166 | sed -e "s,^$libname$shrext\\\\.,," \
5167 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5168 | sed 1q ) 2>/dev/null`
5169 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5171 found_so="$dir/$libname$shrext.$ver"
5174 eval library_names=\"$acl_library_names_spec\"
5175 for f in $library_names; do
5176 if test -f "$dir/$f"; then
5185 if test "X$found_dir" = "X"; then
5186 if test -f "$dir/$libname.$acl_libext"; then
5188 found_a="$dir/$libname.$acl_libext"
5191 if test "X$found_dir" != "X"; then
5192 if test -f "$dir/$libname.la"; then
5193 found_la="$dir/$libname.la"
5198 if test "X$found_dir" != "X"; then
5203 if test "X$found_dir" != "X"; then
5204 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5205 if test "X$found_so" != "X"; then
5206 if test "$enable_rpath" = no \
5207 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5208 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5209 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5212 for x in $ltrpathdirs; do
5213 if test "X$x" = "X$found_dir"; then
5218 if test -z "$haveit"; then
5219 ltrpathdirs="$ltrpathdirs $found_dir"
5221 if test "$acl_hardcode_direct" = yes; then
5222 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5224 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5225 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5227 for x in $rpathdirs; do
5228 if test "X$x" = "X$found_dir"; then
5233 if test -z "$haveit"; then
5234 rpathdirs="$rpathdirs $found_dir"
5238 for x in $LDFLAGS $LIBICONV; do
5240 acl_save_prefix="$prefix"
5241 prefix="$acl_final_prefix"
5242 acl_save_exec_prefix="$exec_prefix"
5243 exec_prefix="$acl_final_exec_prefix"
5245 exec_prefix="$acl_save_exec_prefix"
5246 prefix="$acl_save_prefix"
5248 if test "X$x" = "X-L$found_dir"; then
5253 if test -z "$haveit"; then
5254 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5256 if test "$acl_hardcode_minus_L" != no; then
5257 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5259 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5265 if test "X$found_a" != "X"; then
5266 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5268 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5271 additional_includedir=
5272 case "$found_dir" in
5273 */$acl_libdirstem | */$acl_libdirstem/)
5274 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5275 if test "$name" = 'iconv'; then
5276 LIBICONV_PREFIX="$basedir"
5278 additional_includedir="$basedir/include"
5280 */$acl_libdirstem2 | */$acl_libdirstem2/)
5281 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5282 if test "$name" = 'iconv'; then
5283 LIBICONV_PREFIX="$basedir"
5285 additional_includedir="$basedir/include"
5288 if test "X$additional_includedir" != "X"; then
5289 if test "X$additional_includedir" != "X/usr/include"; then
5291 if test "X$additional_includedir" = "X/usr/local/include"; then
5292 if test -n "$GCC"; then
5294 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5298 if test -z "$haveit"; then
5299 for x in $CPPFLAGS $INCICONV; do
5301 acl_save_prefix="$prefix"
5302 prefix="$acl_final_prefix"
5303 acl_save_exec_prefix="$exec_prefix"
5304 exec_prefix="$acl_final_exec_prefix"
5306 exec_prefix="$acl_save_exec_prefix"
5307 prefix="$acl_save_prefix"
5309 if test "X$x" = "X-I$additional_includedir"; then
5314 if test -z "$haveit"; then
5315 if test -d "$additional_includedir"; then
5316 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5322 if test -n "$found_la"; then
5323 save_libdir="$libdir"
5325 */* | *\\*) . "$found_la" ;;
5326 *) . "./$found_la" ;;
5328 libdir="$save_libdir"
5329 for dep in $dependency_libs; do
5332 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5333 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5334 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5336 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5337 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5338 if test -n "$GCC"; then
5340 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5344 if test -z "$haveit"; then
5346 for x in $LDFLAGS $LIBICONV; do
5348 acl_save_prefix="$prefix"
5349 prefix="$acl_final_prefix"
5350 acl_save_exec_prefix="$exec_prefix"
5351 exec_prefix="$acl_final_exec_prefix"
5353 exec_prefix="$acl_save_exec_prefix"
5354 prefix="$acl_save_prefix"
5356 if test "X$x" = "X-L$additional_libdir"; then
5361 if test -z "$haveit"; then
5362 if test -d "$additional_libdir"; then
5363 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5367 for x in $LDFLAGS $LTLIBICONV; do
5369 acl_save_prefix="$prefix"
5370 prefix="$acl_final_prefix"
5371 acl_save_exec_prefix="$exec_prefix"
5372 exec_prefix="$acl_final_exec_prefix"
5374 exec_prefix="$acl_save_exec_prefix"
5375 prefix="$acl_save_prefix"
5377 if test "X$x" = "X-L$additional_libdir"; then
5382 if test -z "$haveit"; then
5383 if test -d "$additional_libdir"; then
5384 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5391 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5392 if test "$enable_rpath" != no; then
5394 for x in $rpathdirs; do
5395 if test "X$x" = "X$dir"; then
5400 if test -z "$haveit"; then
5401 rpathdirs="$rpathdirs $dir"
5404 for x in $ltrpathdirs; do
5405 if test "X$x" = "X$dir"; then
5410 if test -z "$haveit"; then
5411 ltrpathdirs="$ltrpathdirs $dir"
5416 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5419 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5422 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5423 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5429 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5430 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5436 if test "X$rpathdirs" != "X"; then
5437 if test -n "$acl_hardcode_libdir_separator"; then
5439 for found_dir in $rpathdirs; do
5440 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5442 acl_save_libdir="$libdir"
5444 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5445 libdir="$acl_save_libdir"
5446 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5448 for found_dir in $rpathdirs; do
5449 acl_save_libdir="$libdir"
5451 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5452 libdir="$acl_save_libdir"
5453 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5457 if test "X$ltrpathdirs" != "X"; then
5458 for found_dir in $ltrpathdirs; do
5459 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5494 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5495 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
5496 $as_echo_n "(cached) " >&6
5498 gt_save_LIBS="$LIBS"
5499 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5501 /* end confdefs.h. */
5502 #include <CoreFoundation/CFPreferences.h>
5506 CFPreferencesCopyAppValue(NULL, NULL)
5511 if ac_fn_c_try_link "$LINENO"; then :
5512 gt_cv_func_CFPreferencesCopyAppValue=yes
5514 gt_cv_func_CFPreferencesCopyAppValue=no
5516 rm -f core conftest.err conftest.$ac_objext \
5517 conftest$ac_exeext conftest.$ac_ext
5518 LIBS="$gt_save_LIBS"
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5521 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5522 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5524 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5528 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5529 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
5530 $as_echo_n "(cached) " >&6
5532 gt_save_LIBS="$LIBS"
5533 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5536 #include <CoreFoundation/CFLocale.h>
5540 CFLocaleCopyCurrent();
5545 if ac_fn_c_try_link "$LINENO"; then :
5546 gt_cv_func_CFLocaleCopyCurrent=yes
5548 gt_cv_func_CFLocaleCopyCurrent=no
5550 rm -f core conftest.err conftest.$ac_objext \
5551 conftest$ac_exeext conftest.$ac_ext
5552 LIBS="$gt_save_LIBS"
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5555 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5556 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5558 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5562 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5563 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5575 case " $gt_needs " in
5576 *" need-formatstring-macros "*) gt_api_version=3 ;;
5577 *" need-ngettext "*) gt_api_version=2 ;;
5578 *) gt_api_version=1 ;;
5580 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5581 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5583 if test "$USE_NLS" = "yes"; then
5584 gt_use_preinstalled_gnugettext=no
5587 if test $gt_api_version -ge 3; then
5588 gt_revision_test_code='
5589 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5590 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5592 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5595 gt_revision_test_code=
5597 if test $gt_api_version -ge 2; then
5598 gt_expression_test_code=' + * ngettext ("", "", 0)'
5600 gt_expression_test_code=
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5604 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5605 if eval \${$gt_func_gnugettext_libc+:} false; then :
5606 $as_echo_n "(cached) " >&6
5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h. */
5611 #include <libintl.h>
5612 $gt_revision_test_code
5613 extern int _nl_msg_cat_cntr;
5614 extern int *_nl_domain_bindings;
5620 bindtextdomain ("", "");
5621 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5627 if ac_fn_c_try_link "$LINENO"; then :
5628 eval "$gt_func_gnugettext_libc=yes"
5630 eval "$gt_func_gnugettext_libc=no"
5632 rm -f core conftest.err conftest.$ac_objext \
5633 conftest$ac_exeext conftest.$ac_ext
5635 eval ac_res=\$$gt_func_gnugettext_libc
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5637 $as_echo "$ac_res" >&6; }
5639 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5645 am_save_CPPFLAGS="$CPPFLAGS"
5647 for element in $INCICONV; do
5649 for x in $CPPFLAGS; do
5651 acl_save_prefix="$prefix"
5652 prefix="$acl_final_prefix"
5653 acl_save_exec_prefix="$exec_prefix"
5654 exec_prefix="$acl_final_exec_prefix"
5656 exec_prefix="$acl_save_exec_prefix"
5657 prefix="$acl_save_prefix"
5659 if test "X$x" = "X$element"; then
5664 if test -z "$haveit"; then
5665 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5671 $as_echo_n "checking for iconv... " >&6; }
5672 if ${am_cv_func_iconv+:} false; then :
5673 $as_echo_n "(cached) " >&6
5676 am_cv_func_iconv="no, consider installing GNU libiconv"
5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h. */
5687 iconv_t cd = iconv_open("","");
5688 iconv(cd,NULL,NULL,NULL,NULL);
5694 if ac_fn_c_try_link "$LINENO"; then :
5695 am_cv_func_iconv=yes
5697 rm -f core conftest.err conftest.$ac_objext \
5698 conftest$ac_exeext conftest.$ac_ext
5699 if test "$am_cv_func_iconv" != yes; then
5700 am_save_LIBS="$LIBS"
5701 LIBS="$LIBS $LIBICONV"
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5711 iconv_t cd = iconv_open("","");
5712 iconv(cd,NULL,NULL,NULL,NULL);
5718 if ac_fn_c_try_link "$LINENO"; then :
5720 am_cv_func_iconv=yes
5722 rm -f core conftest.err conftest.$ac_objext \
5723 conftest$ac_exeext conftest.$ac_ext
5724 LIBS="$am_save_LIBS"
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5729 $as_echo "$am_cv_func_iconv" >&6; }
5730 if test "$am_cv_func_iconv" = yes; then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5732 $as_echo_n "checking for working iconv... " >&6; }
5733 if ${am_cv_func_iconv_works+:} false; then :
5734 $as_echo_n "(cached) " >&6
5737 am_save_LIBS="$LIBS"
5738 if test $am_cv_lib_iconv = yes; then
5739 LIBS="$LIBS $LIBICONV"
5741 am_cv_func_iconv_works=no
5742 for ac_iconv_const in '' 'const'; do
5743 if test "$cross_compiling" = yes; then :
5745 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5746 *) am_cv_func_iconv_works="guessing yes" ;;
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5756 # define ICONV_CONST $ac_iconv_const
5763 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5766 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5767 if (cd_utf8_to_88591 != (iconv_t)(-1))
5769 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
5771 ICONV_CONST char *inptr = input;
5772 size_t inbytesleft = strlen (input);
5774 size_t outbytesleft = sizeof (buf);
5775 size_t res = iconv (cd_utf8_to_88591,
5776 &inptr, &inbytesleft,
5777 &outptr, &outbytesleft);
5780 iconv_close (cd_utf8_to_88591);
5783 /* Test against Solaris 10 bug: Failures are not distinguishable from
5784 successful returns. */
5786 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
5787 if (cd_ascii_to_88591 != (iconv_t)(-1))
5789 static ICONV_CONST char input[] = "\263";
5791 ICONV_CONST char *inptr = input;
5792 size_t inbytesleft = strlen (input);
5794 size_t outbytesleft = sizeof (buf);
5795 size_t res = iconv (cd_ascii_to_88591,
5796 &inptr, &inbytesleft,
5797 &outptr, &outbytesleft);
5800 iconv_close (cd_ascii_to_88591);
5803 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
5805 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
5806 if (cd_88591_to_utf8 != (iconv_t)(-1))
5808 static ICONV_CONST char input[] = "\304";
5809 static char buf[2] = { (char)0xDE, (char)0xAD };
5810 ICONV_CONST char *inptr = input;
5811 size_t inbytesleft = 1;
5813 size_t outbytesleft = 1;
5814 size_t res = iconv (cd_88591_to_utf8,
5815 &inptr, &inbytesleft,
5816 &outptr, &outbytesleft);
5817 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
5819 iconv_close (cd_88591_to_utf8);
5822 #if 0 /* This bug could be worked around by the caller. */
5823 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
5825 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5826 if (cd_88591_to_utf8 != (iconv_t)(-1))
5828 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5830 ICONV_CONST char *inptr = input;
5831 size_t inbytesleft = strlen (input);
5833 size_t outbytesleft = sizeof (buf);
5834 size_t res = iconv (cd_88591_to_utf8,
5835 &inptr, &inbytesleft,
5836 &outptr, &outbytesleft);
5839 iconv_close (cd_88591_to_utf8);
5843 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5845 if (/* Try standardized names. */
5846 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5847 /* Try IRIX, OSF/1 names. */
5848 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5849 /* Try AIX names. */
5850 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5851 /* Try HP-UX names. */
5852 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5860 if ac_fn_c_try_run "$LINENO"; then :
5861 am_cv_func_iconv_works=yes
5863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5864 conftest.$ac_objext conftest.beam conftest.$ac_ext
5867 test "$am_cv_func_iconv_works" = no || break
5869 LIBS="$am_save_LIBS"
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5873 $as_echo "$am_cv_func_iconv_works" >&6; }
5874 case "$am_cv_func_iconv_works" in
5875 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5876 *) am_func_iconv=yes ;;
5879 am_func_iconv=no am_cv_lib_iconv=no
5881 if test "$am_func_iconv" = yes; then
5883 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5886 if test "$am_cv_lib_iconv" = yes; then
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5888 $as_echo_n "checking how to link with libiconv... " >&6; }
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5890 $as_echo "$LIBICONV" >&6; }
5892 CPPFLAGS="$am_save_CPPFLAGS"
5909 acl_save_prefix="$prefix"
5910 prefix="$acl_final_prefix"
5911 acl_save_exec_prefix="$exec_prefix"
5912 exec_prefix="$acl_final_exec_prefix"
5914 eval additional_includedir=\"$includedir\"
5915 eval additional_libdir=\"$libdir\"
5917 exec_prefix="$acl_save_exec_prefix"
5918 prefix="$acl_save_prefix"
5921 # Check whether --with-libintl-prefix was given.
5922 if test "${with_libintl_prefix+set}" = set; then :
5923 withval=$with_libintl_prefix;
5924 if test "X$withval" = "Xno"; then
5927 if test "X$withval" = "X"; then
5929 acl_save_prefix="$prefix"
5930 prefix="$acl_final_prefix"
5931 acl_save_exec_prefix="$exec_prefix"
5932 exec_prefix="$acl_final_exec_prefix"
5934 eval additional_includedir=\"$includedir\"
5935 eval additional_libdir=\"$libdir\"
5937 exec_prefix="$acl_save_exec_prefix"
5938 prefix="$acl_save_prefix"
5941 additional_includedir="$withval/include"
5942 additional_libdir="$withval/$acl_libdirstem"
5943 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5944 && ! test -d "$withval/$acl_libdirstem"; then
5945 additional_libdir="$withval/$acl_libdirstem2"
5959 names_already_handled=
5960 names_next_round='intl '
5961 while test -n "$names_next_round"; do
5962 names_this_round="$names_next_round"
5964 for name in $names_this_round; do
5966 for n in $names_already_handled; do
5967 if test "$n" = "$name"; then
5972 if test -z "$already_handled"; then
5973 names_already_handled="$names_already_handled $name"
5974 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5975 eval value=\"\$HAVE_LIB$uppername\"
5976 if test -n "$value"; then
5977 if test "$value" = yes; then
5978 eval value=\"\$LIB$uppername\"
5979 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5980 eval value=\"\$LTLIB$uppername\"
5981 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5990 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5991 if test -n "$acl_shlibext"; then
5992 shrext=".$acl_shlibext" # typically: shrext=.so
5996 if test $use_additional = yes; then
5997 dir="$additional_libdir"
5998 if test -n "$acl_shlibext"; then
5999 if test -f "$dir/$libname$shrext"; then
6001 found_so="$dir/$libname$shrext"
6003 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6004 ver=`(cd "$dir" && \
6005 for f in "$libname$shrext".*; do echo "$f"; done \
6006 | sed -e "s,^$libname$shrext\\\\.,," \
6007 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6008 | sed 1q ) 2>/dev/null`
6009 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6011 found_so="$dir/$libname$shrext.$ver"
6014 eval library_names=\"$acl_library_names_spec\"
6015 for f in $library_names; do
6016 if test -f "$dir/$f"; then
6025 if test "X$found_dir" = "X"; then
6026 if test -f "$dir/$libname.$acl_libext"; then
6028 found_a="$dir/$libname.$acl_libext"
6031 if test "X$found_dir" != "X"; then
6032 if test -f "$dir/$libname.la"; then
6033 found_la="$dir/$libname.la"
6037 if test "X$found_dir" = "X"; then
6038 for x in $LDFLAGS $LTLIBINTL; do
6040 acl_save_prefix="$prefix"
6041 prefix="$acl_final_prefix"
6042 acl_save_exec_prefix="$exec_prefix"
6043 exec_prefix="$acl_final_exec_prefix"
6045 exec_prefix="$acl_save_exec_prefix"
6046 prefix="$acl_save_prefix"
6050 dir=`echo "X$x" | sed -e 's/^X-L//'`
6051 if test -n "$acl_shlibext"; then
6052 if test -f "$dir/$libname$shrext"; then
6054 found_so="$dir/$libname$shrext"
6056 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6057 ver=`(cd "$dir" && \
6058 for f in "$libname$shrext".*; do echo "$f"; done \
6059 | sed -e "s,^$libname$shrext\\\\.,," \
6060 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6061 | sed 1q ) 2>/dev/null`
6062 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6064 found_so="$dir/$libname$shrext.$ver"
6067 eval library_names=\"$acl_library_names_spec\"
6068 for f in $library_names; do
6069 if test -f "$dir/$f"; then
6078 if test "X$found_dir" = "X"; then
6079 if test -f "$dir/$libname.$acl_libext"; then
6081 found_a="$dir/$libname.$acl_libext"
6084 if test "X$found_dir" != "X"; then
6085 if test -f "$dir/$libname.la"; then
6086 found_la="$dir/$libname.la"
6091 if test "X$found_dir" != "X"; then
6096 if test "X$found_dir" != "X"; then
6097 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6098 if test "X$found_so" != "X"; then
6099 if test "$enable_rpath" = no \
6100 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6101 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6102 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6105 for x in $ltrpathdirs; do
6106 if test "X$x" = "X$found_dir"; then
6111 if test -z "$haveit"; then
6112 ltrpathdirs="$ltrpathdirs $found_dir"
6114 if test "$acl_hardcode_direct" = yes; then
6115 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6117 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6118 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6120 for x in $rpathdirs; do
6121 if test "X$x" = "X$found_dir"; then
6126 if test -z "$haveit"; then
6127 rpathdirs="$rpathdirs $found_dir"
6131 for x in $LDFLAGS $LIBINTL; do
6133 acl_save_prefix="$prefix"
6134 prefix="$acl_final_prefix"
6135 acl_save_exec_prefix="$exec_prefix"
6136 exec_prefix="$acl_final_exec_prefix"
6138 exec_prefix="$acl_save_exec_prefix"
6139 prefix="$acl_save_prefix"
6141 if test "X$x" = "X-L$found_dir"; then
6146 if test -z "$haveit"; then
6147 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6149 if test "$acl_hardcode_minus_L" != no; then
6150 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6152 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6158 if test "X$found_a" != "X"; then
6159 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6161 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6164 additional_includedir=
6165 case "$found_dir" in
6166 */$acl_libdirstem | */$acl_libdirstem/)
6167 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6168 if test "$name" = 'intl'; then
6169 LIBINTL_PREFIX="$basedir"
6171 additional_includedir="$basedir/include"
6173 */$acl_libdirstem2 | */$acl_libdirstem2/)
6174 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6175 if test "$name" = 'intl'; then
6176 LIBINTL_PREFIX="$basedir"
6178 additional_includedir="$basedir/include"
6181 if test "X$additional_includedir" != "X"; then
6182 if test "X$additional_includedir" != "X/usr/include"; then
6184 if test "X$additional_includedir" = "X/usr/local/include"; then
6185 if test -n "$GCC"; then
6187 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6191 if test -z "$haveit"; then
6192 for x in $CPPFLAGS $INCINTL; do
6194 acl_save_prefix="$prefix"
6195 prefix="$acl_final_prefix"
6196 acl_save_exec_prefix="$exec_prefix"
6197 exec_prefix="$acl_final_exec_prefix"
6199 exec_prefix="$acl_save_exec_prefix"
6200 prefix="$acl_save_prefix"
6202 if test "X$x" = "X-I$additional_includedir"; then
6207 if test -z "$haveit"; then
6208 if test -d "$additional_includedir"; then
6209 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6215 if test -n "$found_la"; then
6216 save_libdir="$libdir"
6218 */* | *\\*) . "$found_la" ;;
6219 *) . "./$found_la" ;;
6221 libdir="$save_libdir"
6222 for dep in $dependency_libs; do
6225 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6226 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6227 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6229 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6230 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6231 if test -n "$GCC"; then
6233 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6237 if test -z "$haveit"; then
6239 for x in $LDFLAGS $LIBINTL; do
6241 acl_save_prefix="$prefix"
6242 prefix="$acl_final_prefix"
6243 acl_save_exec_prefix="$exec_prefix"
6244 exec_prefix="$acl_final_exec_prefix"
6246 exec_prefix="$acl_save_exec_prefix"
6247 prefix="$acl_save_prefix"
6249 if test "X$x" = "X-L$additional_libdir"; then
6254 if test -z "$haveit"; then
6255 if test -d "$additional_libdir"; then
6256 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6260 for x in $LDFLAGS $LTLIBINTL; do
6262 acl_save_prefix="$prefix"
6263 prefix="$acl_final_prefix"
6264 acl_save_exec_prefix="$exec_prefix"
6265 exec_prefix="$acl_final_exec_prefix"
6267 exec_prefix="$acl_save_exec_prefix"
6268 prefix="$acl_save_prefix"
6270 if test "X$x" = "X-L$additional_libdir"; then
6275 if test -z "$haveit"; then
6276 if test -d "$additional_libdir"; then
6277 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6284 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6285 if test "$enable_rpath" != no; then
6287 for x in $rpathdirs; do
6288 if test "X$x" = "X$dir"; then
6293 if test -z "$haveit"; then
6294 rpathdirs="$rpathdirs $dir"
6297 for x in $ltrpathdirs; do
6298 if test "X$x" = "X$dir"; then
6303 if test -z "$haveit"; then
6304 ltrpathdirs="$ltrpathdirs $dir"
6309 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6312 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6315 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6316 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6322 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6323 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6329 if test "X$rpathdirs" != "X"; then
6330 if test -n "$acl_hardcode_libdir_separator"; then
6332 for found_dir in $rpathdirs; do
6333 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6335 acl_save_libdir="$libdir"
6337 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6338 libdir="$acl_save_libdir"
6339 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6341 for found_dir in $rpathdirs; do
6342 acl_save_libdir="$libdir"
6344 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6345 libdir="$acl_save_libdir"
6346 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6350 if test "X$ltrpathdirs" != "X"; then
6351 for found_dir in $ltrpathdirs; do
6352 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6362 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6363 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6364 $as_echo_n "(cached) " >&6
6366 gt_save_CPPFLAGS="$CPPFLAGS"
6367 CPPFLAGS="$CPPFLAGS $INCINTL"
6368 gt_save_LIBS="$LIBS"
6369 LIBS="$LIBS $LIBINTL"
6370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6371 /* end confdefs.h. */
6373 #include <libintl.h>
6374 $gt_revision_test_code
6375 extern int _nl_msg_cat_cntr;
6380 const char *_nl_expand_alias (const char *);
6386 bindtextdomain ("", "");
6387 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6393 if ac_fn_c_try_link "$LINENO"; then :
6394 eval "$gt_func_gnugettext_libintl=yes"
6396 eval "$gt_func_gnugettext_libintl=no"
6398 rm -f core conftest.err conftest.$ac_objext \
6399 conftest$ac_exeext conftest.$ac_ext
6400 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6401 LIBS="$LIBS $LIBICONV"
6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6405 #include <libintl.h>
6406 $gt_revision_test_code
6407 extern int _nl_msg_cat_cntr;
6412 const char *_nl_expand_alias (const char *);
6418 bindtextdomain ("", "");
6419 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6425 if ac_fn_c_try_link "$LINENO"; then :
6426 LIBINTL="$LIBINTL $LIBICONV"
6427 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6428 eval "$gt_func_gnugettext_libintl=yes"
6431 rm -f core conftest.err conftest.$ac_objext \
6432 conftest$ac_exeext conftest.$ac_ext
6434 CPPFLAGS="$gt_save_CPPFLAGS"
6435 LIBS="$gt_save_LIBS"
6437 eval ac_res=\$$gt_func_gnugettext_libintl
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6439 $as_echo "$ac_res" >&6; }
6442 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6443 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6444 && test "$PACKAGE" != gettext-runtime \
6445 && test "$PACKAGE" != gettext-tools; }; then
6446 gt_use_preinstalled_gnugettext=yes
6455 if test -n "$INTL_MACOSX_LIBS"; then
6456 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6457 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6458 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6459 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6463 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6464 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6466 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6474 $as_echo_n "checking whether to use NLS... " >&6; }
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6476 $as_echo "$USE_NLS" >&6; }
6477 if test "$USE_NLS" = "yes"; then
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6479 $as_echo_n "checking where the gettext function comes from... " >&6; }
6480 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6481 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6482 gt_source="external libintl"
6487 gt_source="included intl directory"
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6490 $as_echo "$gt_source" >&6; }
6493 if test "$USE_NLS" = "yes"; then
6495 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6496 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6498 $as_echo_n "checking how to link with libintl... " >&6; }
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6500 $as_echo "$LIBINTL" >&6; }
6502 for element in $INCINTL; do
6504 for x in $CPPFLAGS; do
6506 acl_save_prefix="$prefix"
6507 prefix="$acl_final_prefix"
6508 acl_save_exec_prefix="$exec_prefix"
6509 exec_prefix="$acl_final_exec_prefix"
6511 exec_prefix="$acl_save_exec_prefix"
6512 prefix="$acl_save_prefix"
6514 if test "X$x" = "X$element"; then
6519 if test -z "$haveit"; then
6520 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6527 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6530 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6547 ############### common
6556 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6557 if test -n "$ac_tool_prefix"; then
6558 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6559 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6561 $as_echo_n "checking for $ac_word... " >&6; }
6562 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6563 $as_echo_n "(cached) " >&6
6567 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 test -z "$as_dir" && as_dir=.
6575 for ac_exec_ext in '' $ac_executable_extensions; do
6576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6577 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6588 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6589 if test -n "$PKG_CONFIG"; then
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6591 $as_echo "$PKG_CONFIG" >&6; }
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594 $as_echo "no" >&6; }
6599 if test -z "$ac_cv_path_PKG_CONFIG"; then
6600 ac_pt_PKG_CONFIG=$PKG_CONFIG
6601 # Extract the first word of "pkg-config", so it can be a program name with args.
6602 set dummy pkg-config; ac_word=$2
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6606 $as_echo_n "(cached) " >&6
6608 case $ac_pt_PKG_CONFIG in
6610 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6620 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6632 if test -n "$ac_pt_PKG_CONFIG"; then
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6634 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6637 $as_echo "no" >&6; }
6640 if test "x$ac_pt_PKG_CONFIG" = x; then
6643 case $cross_compiling:$ac_tool_warned in
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6647 ac_tool_warned=yes ;;
6649 PKG_CONFIG=$ac_pt_PKG_CONFIG
6652 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6656 if test -n "$PKG_CONFIG"; then
6657 _pkg_min_version=0.9.0
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6659 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6660 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6662 $as_echo "yes" >&6; }
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665 $as_echo "no" >&6; }
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
6672 $as_echo_n "checking for X11... " >&6; }
6674 if test -n "$X11_CFLAGS"; then
6675 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
6676 elif test -n "$PKG_CONFIG"; then
6677 if test -n "$PKG_CONFIG" && \
6678 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
6679 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
6681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6682 test $ac_status = 0; }; then
6683 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
6684 test "x$?" != "x0" && pkg_failed=yes
6691 if test -n "$X11_LIBS"; then
6692 pkg_cv_X11_LIBS="$X11_LIBS"
6693 elif test -n "$PKG_CONFIG"; then
6694 if test -n "$PKG_CONFIG" && \
6695 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
6696 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
6698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6699 test $ac_status = 0; }; then
6700 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
6701 test "x$?" != "x0" && pkg_failed=yes
6711 if test $pkg_failed = yes; then
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713 $as_echo "no" >&6; }
6715 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6716 _pkg_short_errors_supported=yes
6718 _pkg_short_errors_supported=no
6720 if test $_pkg_short_errors_supported = yes; then
6721 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
6723 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
6725 # Put the nasty error message in config.log where it belongs
6726 echo "$X11_PKG_ERRORS" >&5
6728 as_fn_error $? "Package requirements (x11) were not met:
6732 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6733 installed software in a non-standard prefix.
6735 Alternatively, you may set the environment variables X11_CFLAGS
6736 and X11_LIBS to avoid the need to call pkg-config.
6737 See the pkg-config man page for more details." "$LINENO" 5
6738 elif test $pkg_failed = untried; then
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740 $as_echo "no" >&6; }
6741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6743 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6744 is in your PATH or set the PKG_CONFIG environment variable to the full
6747 Alternatively, you may set the environment variables X11_CFLAGS
6748 and X11_LIBS to avoid the need to call pkg-config.
6749 See the pkg-config man page for more details.
6751 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6752 See \`config.log' for more details" "$LINENO" 5; }
6754 X11_CFLAGS=$pkg_cv_X11_CFLAGS
6755 X11_LIBS=$pkg_cv_X11_LIBS
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6757 $as_echo "yes" >&6; }
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
6766 $as_echo_n "checking for XEXT... " >&6; }
6768 if test -n "$XEXT_CFLAGS"; then
6769 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
6770 elif test -n "$PKG_CONFIG"; then
6771 if test -n "$PKG_CONFIG" && \
6772 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
6773 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
6775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6776 test $ac_status = 0; }; then
6777 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
6778 test "x$?" != "x0" && pkg_failed=yes
6785 if test -n "$XEXT_LIBS"; then
6786 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
6787 elif test -n "$PKG_CONFIG"; then
6788 if test -n "$PKG_CONFIG" && \
6789 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
6790 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
6792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6793 test $ac_status = 0; }; then
6794 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
6795 test "x$?" != "x0" && pkg_failed=yes
6805 if test $pkg_failed = yes; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6809 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6810 _pkg_short_errors_supported=yes
6812 _pkg_short_errors_supported=no
6814 if test $_pkg_short_errors_supported = yes; then
6815 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
6817 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
6819 # Put the nasty error message in config.log where it belongs
6820 echo "$XEXT_PKG_ERRORS" >&5
6822 as_fn_error $? "Package requirements (xext) were not met:
6826 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6827 installed software in a non-standard prefix.
6829 Alternatively, you may set the environment variables XEXT_CFLAGS
6830 and XEXT_LIBS to avoid the need to call pkg-config.
6831 See the pkg-config man page for more details." "$LINENO" 5
6832 elif test $pkg_failed = untried; then
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834 $as_echo "no" >&6; }
6835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6837 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6838 is in your PATH or set the PKG_CONFIG environment variable to the full
6841 Alternatively, you may set the environment variables XEXT_CFLAGS
6842 and XEXT_LIBS to avoid the need to call pkg-config.
6843 See the pkg-config man page for more details.
6845 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6846 See \`config.log' for more details" "$LINENO" 5; }
6848 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
6849 XEXT_LIBS=$pkg_cv_XEXT_LIBS
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6851 $as_echo "yes" >&6; }
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
6861 $as_echo_n "checking for GTK... " >&6; }
6863 if test -n "$GTK_CFLAGS"; then
6864 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
6865 elif test -n "$PKG_CONFIG"; then
6866 if test -n "$PKG_CONFIG" && \
6867 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.12\""; } >&5
6868 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.12") 2>&5
6870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6871 test $ac_status = 0; }; then
6872 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= 3.12" 2>/dev/null`
6873 test "x$?" != "x0" && pkg_failed=yes
6880 if test -n "$GTK_LIBS"; then
6881 pkg_cv_GTK_LIBS="$GTK_LIBS"
6882 elif test -n "$PKG_CONFIG"; then
6883 if test -n "$PKG_CONFIG" && \
6884 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.12\""; } >&5
6885 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.12") 2>&5
6887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6888 test $ac_status = 0; }; then
6889 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= 3.12" 2>/dev/null`
6890 test "x$?" != "x0" && pkg_failed=yes
6900 if test $pkg_failed = yes; then
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902 $as_echo "no" >&6; }
6904 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6905 _pkg_short_errors_supported=yes
6907 _pkg_short_errors_supported=no
6909 if test $_pkg_short_errors_supported = yes; then
6910 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 >= 3.12" 2>&1`
6912 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 >= 3.12" 2>&1`
6914 # Put the nasty error message in config.log where it belongs
6915 echo "$GTK_PKG_ERRORS" >&5
6917 as_fn_error $? "Package requirements (gtk+-3.0 >= 3.12) were not met:
6921 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6922 installed software in a non-standard prefix.
6924 Alternatively, you may set the environment variables GTK_CFLAGS
6925 and GTK_LIBS to avoid the need to call pkg-config.
6926 See the pkg-config man page for more details." "$LINENO" 5
6927 elif test $pkg_failed = untried; then
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929 $as_echo "no" >&6; }
6930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6932 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6933 is in your PATH or set the PKG_CONFIG environment variable to the full
6936 Alternatively, you may set the environment variables GTK_CFLAGS
6937 and GTK_LIBS to avoid the need to call pkg-config.
6938 See the pkg-config man page for more details.
6940 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6941 See \`config.log' for more details" "$LINENO" 5; }
6943 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
6944 GTK_LIBS=$pkg_cv_GTK_LIBS
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6946 $as_echo "yes" >&6; }
6949 # ensure that only allowed headers are included
6950 GTK_CFLAGS+=" -DGTK_DISABLE_SINGLE_INCLUDES "
6951 # ensure that no gtk deprecated symbols are used
6952 GTK_CFLAGS+=" -DGDK_DISABLE_DEPRECATED "
6953 # GTK_CFLAGS+=" -DGTK_DISABLE_DEPRECATED "
6954 # ensure use of accessors
6955 GTK_CFLAGS+=" -DGSEAL_ENABLE "
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
6964 $as_echo_n "checking for JSON... " >&6; }
6966 if test -n "$JSON_CFLAGS"; then
6967 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
6968 elif test -n "$PKG_CONFIG"; then
6969 if test -n "$PKG_CONFIG" && \
6970 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
6971 ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
6973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6974 test $ac_status = 0; }; then
6975 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json-c" 2>/dev/null`
6976 test "x$?" != "x0" && pkg_failed=yes
6983 if test -n "$JSON_LIBS"; then
6984 pkg_cv_JSON_LIBS="$JSON_LIBS"
6985 elif test -n "$PKG_CONFIG"; then
6986 if test -n "$PKG_CONFIG" && \
6987 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
6988 ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
6990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6991 test $ac_status = 0; }; then
6992 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json-c" 2>/dev/null`
6993 test "x$?" != "x0" && pkg_failed=yes
7003 if test $pkg_failed = yes; then
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005 $as_echo "no" >&6; }
7007 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7008 _pkg_short_errors_supported=yes
7010 _pkg_short_errors_supported=no
7012 if test $_pkg_short_errors_supported = yes; then
7013 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c" 2>&1`
7015 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c" 2>&1`
7017 # Put the nasty error message in config.log where it belongs
7018 echo "$JSON_PKG_ERRORS" >&5
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json-c missing\"" >&5
7021 $as_echo "$as_me: WARNING: \"json-c missing\"" >&2;}
7022 elif test $pkg_failed = untried; then
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024 $as_echo "no" >&6; }
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json-c missing\"" >&5
7026 $as_echo "$as_me: WARNING: \"json-c missing\"" >&2;}
7028 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
7029 JSON_LIBS=$pkg_cv_JSON_LIBS
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7031 $as_echo "yes" >&6; }
7033 $as_echo "#define HAVE_JSON 1" >>confdefs.h
7037 if test "$JSON_LIBS" == ""; then
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
7041 $as_echo_n "checking for JSON... " >&6; }
7043 if test -n "$JSON_CFLAGS"; then
7044 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
7045 elif test -n "$PKG_CONFIG"; then
7046 if test -n "$PKG_CONFIG" && \
7047 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
7048 ($PKG_CONFIG --exists --print-errors "json") 2>&5
7050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7051 test $ac_status = 0; }; then
7052 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json" 2>/dev/null`
7053 test "x$?" != "x0" && pkg_failed=yes
7060 if test -n "$JSON_LIBS"; then
7061 pkg_cv_JSON_LIBS="$JSON_LIBS"
7062 elif test -n "$PKG_CONFIG"; then
7063 if test -n "$PKG_CONFIG" && \
7064 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5
7065 ($PKG_CONFIG --exists --print-errors "json") 2>&5
7067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7068 test $ac_status = 0; }; then
7069 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json" 2>/dev/null`
7070 test "x$?" != "x0" && pkg_failed=yes
7080 if test $pkg_failed = yes; then
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7082 $as_echo "no" >&6; }
7084 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7085 _pkg_short_errors_supported=yes
7087 _pkg_short_errors_supported=no
7089 if test $_pkg_short_errors_supported = yes; then
7090 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json" 2>&1`
7092 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json" 2>&1`
7094 # Put the nasty error message in config.log where it belongs
7095 echo "$JSON_PKG_ERRORS" >&5
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json0 missing\"" >&5
7098 $as_echo "$as_me: WARNING: \"json0 missing\"" >&2;}
7099 elif test $pkg_failed = untried; then
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"json0 missing\"" >&5
7103 $as_echo "$as_me: WARNING: \"json0 missing\"" >&2;}
7105 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
7106 JSON_LIBS=$pkg_cv_JSON_LIBS
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7108 $as_echo "yes" >&6; }
7110 $as_echo "#define HAVE_JSON 1" >>confdefs.h
7113 $as_echo "#define HAVE_JSON_0 1" >>confdefs.h
7118 if test -n "$JSON_LIBS"; then
7132 # Check whether --enable-schemas-compile was given.
7133 if test "${enable_schemas_compile+set}" = set; then :
7134 enableval=$enable_schemas_compile; case ${enableval} in
7135 yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
7136 no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
7137 *) as_fn_error $? "bad value ${enableval} for --enable-schemas-compile" "$LINENO" 5 ;;
7149 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7150 if test -n "$ac_tool_prefix"; then
7151 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7152 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7154 $as_echo_n "checking for $ac_word... " >&6; }
7155 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7156 $as_echo_n "(cached) " >&6
7160 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 test -z "$as_dir" && as_dir=.
7168 for ac_exec_ext in '' $ac_executable_extensions; do
7169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7170 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7182 if test -n "$PKG_CONFIG"; then
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7184 $as_echo "$PKG_CONFIG" >&6; }
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7187 $as_echo "no" >&6; }
7192 if test -z "$ac_cv_path_PKG_CONFIG"; then
7193 ac_pt_PKG_CONFIG=$PKG_CONFIG
7194 # Extract the first word of "pkg-config", so it can be a program name with args.
7195 set dummy pkg-config; ac_word=$2
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7197 $as_echo_n "checking for $ac_word... " >&6; }
7198 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7199 $as_echo_n "(cached) " >&6
7201 case $ac_pt_PKG_CONFIG in
7203 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 test -z "$as_dir" && as_dir=.
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7213 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7225 if test -n "$ac_pt_PKG_CONFIG"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7227 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7233 if test "x$ac_pt_PKG_CONFIG" = x; then
7236 case $cross_compiling:$ac_tool_warned in
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7240 ac_tool_warned=yes ;;
7242 PKG_CONFIG=$ac_pt_PKG_CONFIG
7245 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7249 if test -n "$PKG_CONFIG"; then
7250 _pkg_min_version=0.16
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7252 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7253 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7255 $as_echo "yes" >&6; }
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }
7262 gsettingsschemadir=${datadir}/glib-2.0/schemas
7264 if test x$cross_compiling != xyes; then
7265 GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
7267 # Extract the first word of "glib-compile-schemas", so it can be a program name with args.
7268 set dummy glib-compile-schemas; ac_word=$2
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270 $as_echo_n "checking for $ac_word... " >&6; }
7271 if ${ac_cv_path_GLIB_COMPILE_SCHEMAS+:} false; then :
7272 $as_echo_n "(cached) " >&6
7274 case $GLIB_COMPILE_SCHEMAS in
7276 ac_cv_path_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS" # Let the user override the test with a path.
7279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 test -z "$as_dir" && as_dir=.
7284 for ac_exec_ext in '' $ac_executable_extensions; do
7285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7286 ac_cv_path_GLIB_COMPILE_SCHEMAS="$as_dir/$ac_word$ac_exec_ext"
7287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 GLIB_COMPILE_SCHEMAS=$ac_cv_path_GLIB_COMPILE_SCHEMAS
7298 if test -n "$GLIB_COMPILE_SCHEMAS"; then
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_SCHEMAS" >&5
7300 $as_echo "$GLIB_COMPILE_SCHEMAS" >&6; }
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7303 $as_echo "no" >&6; }
7309 if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
7310 as_fn_error $? "glib-compile-schemas not found." "$LINENO" 5
7316 .PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
7318 mostlyclean-am: clean-gsettings-schemas
7320 gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
7322 %.gschema.valid: %.gschema.xml $(gsettings__enum_file)
7323 $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$< && mkdir -p $(@D) && touch $@
7325 all-am: $(gsettings_SCHEMAS:.xml=.valid)
7326 uninstall-am: uninstall-gsettings-schemas
7327 install-data-am: install-gsettings-schemas
7329 .SECONDARY: $(gsettings_SCHEMAS)
7331 install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
7333 if test -n "$^"; then \
7334 test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
7335 $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
7336 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
7339 uninstall-gsettings-schemas:
7340 @$(NORMAL_UNINSTALL)
7341 @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
7342 files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
7343 test -n "$$files" || exit 0; \
7344 echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
7345 cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
7346 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
7348 clean-gsettings-schemas:
7349 rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
7351 ifdef gsettings_ENUM_NAMESPACE
7352 $(gsettings__enum_file): $(gsettings_ENUM_FILES)
7353 $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" $^ > $@.tmp && mv $@.tmp $@
7363 ac_config_files="$ac_config_files Makefile icons/hicolor/scalable/Makefile po/Makefile.in src/Makefile src/glade/Makefile tests/Makefile"
7366 for ac_prog in help2man
7368 # Extract the first word of "$ac_prog", so it can be a program name with args.
7369 set dummy $ac_prog; ac_word=$2
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371 $as_echo_n "checking for $ac_word... " >&6; }
7372 if ${ac_cv_prog_HELP2MAN+:} false; then :
7373 $as_echo_n "(cached) " >&6
7375 if test -n "$HELP2MAN"; then
7376 ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7385 ac_cv_prog_HELP2MAN="$ac_prog"
7386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 HELP2MAN=$ac_cv_prog_HELP2MAN
7396 if test -n "$HELP2MAN"; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
7398 $as_echo "$HELP2MAN" >&6; }
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 $as_echo "no" >&6; }
7405 test -n "$HELP2MAN" && break
7409 # Extract the first word of "cppcheck", so it can be a program name with args.
7410 set dummy cppcheck; ac_word=$2
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412 $as_echo_n "checking for $ac_word... " >&6; }
7413 if ${ac_cv_prog_HAVE_CPPCHECK+:} false; then :
7414 $as_echo_n "(cached) " >&6
7416 if test -n "$HAVE_CPPCHECK"; then
7417 ac_cv_prog_HAVE_CPPCHECK="$HAVE_CPPCHECK" # Let the user override the test.
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 test -z "$as_dir" && as_dir=.
7424 for ac_exec_ext in '' $ac_executable_extensions; do
7425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7426 ac_cv_prog_HAVE_CPPCHECK="yes"
7427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436 HAVE_CPPCHECK=$ac_cv_prog_HAVE_CPPCHECK
7437 if test -n "$HAVE_CPPCHECK"; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CPPCHECK" >&5
7439 $as_echo "$HAVE_CPPCHECK" >&6; }
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442 $as_echo "no" >&6; }
7446 if test -n "$HAVE_CPPCHECK"; then
7455 cat >confcache <<\_ACEOF
7456 # This file is a shell script that caches the results of configure
7457 # tests run on this system so they can be shared between configure
7458 # scripts and configure runs, see configure's option --config-cache.
7459 # It is not useful on other systems. If it contains results you don't
7460 # want to keep, you may remove or edit it.
7462 # config.status only pays attention to the cache file if you give it
7463 # the --recheck option to rerun configure.
7465 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7466 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7471 # The following way of writing the cache mishandles newlines in values,
7472 # but we know of no workaround that is simple, portable, and efficient.
7473 # So, we kill variables containing newlines.
7474 # Ultrix sh set writes to stderr and can't be redirected directly,
7475 # and sets the high bit in the cache file unless we assign to the vars.
7477 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7478 eval ac_val=\$$ac_var
7482 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7483 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7486 _ | IFS | as_nl) ;; #(
7487 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7488 *) { eval $ac_var=; unset $ac_var;} ;;
7494 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7495 *${as_nl}ac_space=\ *)
7496 # `set' does not quote correctly, so add quotes: double-quote
7497 # substitution turns \\\\ into \\, and sed turns \\ into \.
7500 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7503 # `set' quotes correctly as required by POSIX, so do not add quotes.
7504 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7513 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7515 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7517 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7518 if test -w "$cache_file"; then
7519 if test "x$cache_file" != "x/dev/null"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7521 $as_echo "$as_me: updating cache $cache_file" >&6;}
7522 if test ! -f "$cache_file" || test -h "$cache_file"; then
7523 cat confcache >"$cache_file"
7525 case $cache_file in #(
7527 mv -f confcache "$cache_file"$$ &&
7528 mv -f "$cache_file"$$ "$cache_file" ;; #(
7530 mv -f confcache "$cache_file" ;;
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7536 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7541 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7542 # Let make expand exec_prefix.
7543 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7545 DEFS=-DHAVE_CONFIG_H
7550 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7551 # 1. Remove the extension, and $U if already installed.
7552 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7553 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7554 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7555 # will be set to the directory where LIBOBJS objects are built.
7556 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7557 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7561 LTLIBOBJS=$ac_ltlibobjs
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7565 $as_echo_n "checking that generated files are newer than configure... " >&6; }
7566 if test -n "$am_sleep_pid"; then
7567 # Hide warnings about reused PIDs.
7568 wait $am_sleep_pid 2>/dev/null
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7571 $as_echo "done" >&6; }
7572 if test -n "$EXEEXT"; then
7574 am__EXEEXT_FALSE='#'
7580 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7581 as_fn_error $? "conditional \"AMDEP\" was never defined.
7582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7584 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7585 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7588 if test -z "${JSON_TRUE}" && test -z "${JSON_FALSE}"; then
7589 as_fn_error $? "conditional \"JSON\" was never defined.
7590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7592 if test -z "${CPPCHECK_TRUE}" && test -z "${CPPCHECK_FALSE}"; then
7593 as_fn_error $? "conditional \"CPPCHECK\" was never defined.
7594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7597 : "${CONFIG_STATUS=./config.status}"
7599 ac_clean_files_save=$ac_clean_files
7600 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7602 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7604 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7606 # Generated by $as_me.
7607 # Run this file to recreate the current configuration.
7608 # Compiler output produced by configure, useful for debugging
7609 # configure, is in config.log if it exists.
7615 SHELL=\${CONFIG_SHELL-$SHELL}
7618 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7619 ## -------------------- ##
7620 ## M4sh Initialization. ##
7621 ## -------------------- ##
7623 # Be more Bourne compatible
7624 DUALCASE=1; export DUALCASE # for MKS sh
7625 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7628 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7629 # is contrary to our usage. Disable this feature.
7630 alias -g '${1+"$@"}'='"$@"'
7631 setopt NO_GLOB_SUBST
7633 case `(set -o) 2>/dev/null` in #(
7645 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7646 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7647 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7648 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7649 # Prefer a ksh shell builtin over an external printf program on Solaris,
7650 # but without wasting forks for bash or zsh.
7651 if test -z "$BASH_VERSION$ZSH_VERSION" \
7652 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7653 as_echo='print -r --'
7654 as_echo_n='print -rn --'
7655 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7656 as_echo='printf %s\n'
7657 as_echo_n='printf %s'
7659 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7660 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7661 as_echo_n='/usr/ucb/echo -n'
7663 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7664 as_echo_n_body='eval
7668 expr "X$arg" : "X\\(.*\\)$as_nl";
7669 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7671 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7673 export as_echo_n_body
7674 as_echo_n='sh -c $as_echo_n_body as_echo'
7677 as_echo='sh -c $as_echo_body as_echo'
7680 # The user is always right.
7681 if test "${PATH_SEPARATOR+set}" != set; then
7683 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7684 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7691 # We need space, tab and new line, in precisely that order. Quoting is
7692 # there to prevent editors from complaining about space-tab.
7693 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7694 # splitting by setting IFS to empty value.)
7697 # Find who we are. Look in the path if we contain no directory separator.
7700 *[\\/]* ) as_myself=$0 ;;
7701 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705 test -z "$as_dir" && as_dir=.
7706 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7712 # We did not find ourselves, most probably we were run as `sh COMMAND'
7713 # in which case we are not to be found in the path.
7714 if test "x$as_myself" = x; then
7717 if test ! -f "$as_myself"; then
7718 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7722 # Unset variables that we do not need and which cause bugs (e.g. in
7723 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7724 # suppresses any "Segmentation fault" message there. '((' could
7725 # trigger a bug in pdksh 5.2.14.
7726 for as_var in BASH_ENV ENV MAIL MAILPATH
7727 do eval test x\${$as_var+set} = xset \
7728 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7741 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7744 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7745 # ----------------------------------------
7746 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7747 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7748 # script with STATUS, using 1 if that was 0.
7751 as_status=$1; test $as_status -eq 0 && as_status=1
7753 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7754 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7756 $as_echo "$as_me: error: $2" >&2
7757 as_fn_exit $as_status
7761 # as_fn_set_status STATUS
7762 # -----------------------
7763 # Set $? to STATUS, without forking.
7767 } # as_fn_set_status
7771 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7781 # Portably unset VAR.
7784 { eval $1=; unset $1;}
7786 as_unset=as_fn_unset
7787 # as_fn_append VAR VALUE
7788 # ----------------------
7789 # Append the text in VALUE to the end of the definition contained in VAR. Take
7790 # advantage of any shell optimizations that allow amortized linear growth over
7791 # repeated appends, instead of the typical quadratic growth present in naive
7793 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7794 eval 'as_fn_append ()
7805 # as_fn_arith ARG...
7806 # ------------------
7807 # Perform arithmetic evaluation on the ARGs, and store the result in the
7808 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7809 # must be portable across $(()) and expr.
7810 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7811 eval 'as_fn_arith ()
7818 as_val=`expr "$@" || test $? -eq 1`
7823 if expr a : '\(a\)' >/dev/null 2>&1 &&
7824 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7830 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7831 as_basename=basename
7836 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7842 as_me=`$as_basename -- "$0" ||
7843 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7844 X"$0" : 'X\(//\)$' \| \
7845 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7847 sed '/^.*\/\([^/][^/]*\)\/*$/{
7861 # Avoid depending upon Character Ranges.
7862 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7863 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7864 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7865 as_cr_digits='0123456789'
7866 as_cr_alnum=$as_cr_Letters$as_cr_digits
7868 ECHO_C= ECHO_N= ECHO_T=
7869 case `echo -n x` in #(((((
7871 case `echo 'xy\c'` in
7872 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7874 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7881 rm -f conf$$ conf$$.exe conf$$.file
7882 if test -d conf$$.dir; then
7883 rm -f conf$$.dir/conf$$.file
7886 mkdir conf$$.dir 2>/dev/null
7888 if (echo >conf$$.file) 2>/dev/null; then
7889 if ln -s conf$$.file conf$$ 2>/dev/null; then
7891 # ... but there are two gotchas:
7892 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7893 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7894 # In both cases, we have to default to `cp -pR'.
7895 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7897 elif ln conf$$.file conf$$ 2>/dev/null; then
7905 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7906 rmdir conf$$.dir 2>/dev/null
7911 # Create "$as_dir" as a directory, including parents if necessary.
7916 -*) as_dir=./$as_dir;;
7918 test -d "$as_dir" || eval $as_mkdir_p || {
7922 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7923 *) as_qdir=$as_dir;;
7925 as_dirs="'$as_qdir' $as_dirs"
7926 as_dir=`$as_dirname -- "$as_dir" ||
7927 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7928 X"$as_dir" : 'X\(//\)[^/]' \| \
7929 X"$as_dir" : 'X\(//\)$' \| \
7930 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7931 $as_echo X"$as_dir" |
7932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7949 test -d "$as_dir" && break
7951 test -z "$as_dirs" || eval "mkdir $as_dirs"
7952 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7956 if mkdir -p . 2>/dev/null; then
7957 as_mkdir_p='mkdir -p "$as_dir"'
7959 test -d ./-p && rmdir ./-p
7964 # as_fn_executable_p FILE
7965 # -----------------------
7966 # Test if FILE is an executable regular file.
7967 as_fn_executable_p ()
7969 test -f "$1" && test -x "$1"
7970 } # as_fn_executable_p
7972 as_executable_p=as_fn_executable_p
7974 # Sed expression to map a string onto a valid CPP name.
7975 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7977 # Sed expression to map a string onto a valid variable name.
7978 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7982 ## ----------------------------------- ##
7983 ## Main body of $CONFIG_STATUS script. ##
7984 ## ----------------------------------- ##
7986 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7989 # Save the log message, to keep $0 and so on meaningful, and to
7990 # report actual input values of CONFIG_FILES etc. instead of their
7991 # values after options handling.
7993 This file was extended by ptask $as_me 1.0.0, which was
7994 generated by GNU Autoconf 2.69. Invocation command line was
7996 CONFIG_FILES = $CONFIG_FILES
7997 CONFIG_HEADERS = $CONFIG_HEADERS
7998 CONFIG_LINKS = $CONFIG_LINKS
7999 CONFIG_COMMANDS = $CONFIG_COMMANDS
8002 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8007 case $ac_config_files in *"
8008 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8011 case $ac_config_headers in *"
8012 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8017 # Files that config.status was made for.
8018 config_files="$ac_config_files"
8019 config_headers="$ac_config_headers"
8020 config_commands="$ac_config_commands"
8024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8026 \`$as_me' instantiates files and other configuration actions
8027 from templates according to the current configuration. Unless the files
8028 and actions are specified as TAGs, all are instantiated by default.
8030 Usage: $0 [OPTION]... [TAG]...
8032 -h, --help print this help, then exit
8033 -V, --version print version number and configuration settings, then exit
8034 --config print configuration, then exit
8035 -q, --quiet, --silent
8036 do not print progress messages
8037 -d, --debug don't remove temporary files
8038 --recheck update $as_me by reconfiguring in the same conditions
8039 --file=FILE[:TEMPLATE]
8040 instantiate the configuration file FILE
8041 --header=FILE[:TEMPLATE]
8042 instantiate the configuration header FILE
8044 Configuration files:
8047 Configuration headers:
8050 Configuration commands:
8053 Report bugs to <jeanfi@gmail.com>.
8054 ptask home page: <http://wpitchoune.net/ptask>."
8057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8058 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8060 ptask config.status 1.0.0
8061 configured by $0, generated by GNU Autoconf 2.69,
8062 with options \\"\$ac_cs_config\\"
8064 Copyright (C) 2012 Free Software Foundation, Inc.
8065 This config.status script is free software; the Free Software Foundation
8066 gives unlimited permission to copy, distribute and modify it."
8073 test -n "\$AWK" || AWK=awk
8076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8077 # The default lists apply if the user does not specify any file.
8083 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8084 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8088 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8100 # Handling of the options.
8101 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8103 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8104 $as_echo "$ac_cs_version"; exit ;;
8105 --config | --confi | --conf | --con | --co | --c )
8106 $as_echo "$ac_cs_config"; exit ;;
8107 --debug | --debu | --deb | --de | --d | -d )
8109 --file | --fil | --fi | --f )
8112 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8113 '') as_fn_error $? "missing file argument" ;;
8115 as_fn_append CONFIG_FILES " '$ac_optarg'"
8116 ac_need_defaults=false;;
8117 --header | --heade | --head | --hea )
8120 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8122 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8123 ac_need_defaults=false;;
8125 # Conflict between --help and --header
8126 as_fn_error $? "ambiguous option: \`$1'
8127 Try \`$0 --help' for more information.";;
8128 --help | --hel | -h )
8129 $as_echo "$ac_cs_usage"; exit ;;
8130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8131 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8135 -*) as_fn_error $? "unrecognized option: \`$1'
8136 Try \`$0 --help' for more information." ;;
8138 *) as_fn_append ac_config_targets " $1"
8139 ac_need_defaults=false ;;
8145 ac_configure_extra_args=
8147 if $ac_cs_silent; then
8149 ac_configure_extra_args="$ac_configure_extra_args --silent"
8153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8154 if \$ac_cs_recheck; then
8155 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8157 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8158 CONFIG_SHELL='$SHELL'
8164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8168 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8169 ## Running $as_me. ##
8175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8179 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8180 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
8181 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
8182 # from automake < 1.5.
8183 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8184 # Capture the value of LINGUAS because we need it to compute CATALOGS.
8185 LINGUAS="${LINGUAS-%UNSET%}"
8190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8192 # Handling of arguments.
8193 for ac_config_target in $ac_config_targets
8195 case $ac_config_target in
8196 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8197 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8198 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
8199 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8200 "icons/hicolor/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES icons/hicolor/scalable/Makefile" ;;
8201 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8202 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8203 "src/glade/Makefile") CONFIG_FILES="$CONFIG_FILES src/glade/Makefile" ;;
8204 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
8206 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8211 # If the user did not use the arguments to specify the items to instantiate,
8212 # then the envvar interface is used. Set only those that are not.
8213 # We use the long form for the default assignment because of an extremely
8214 # bizarre bug on SunOS 4.1.3.
8215 if $ac_need_defaults; then
8216 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8217 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8218 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8221 # Have a temporary directory for convenience. Make it in the build tree
8222 # simply because there is no reason against having it here, and in addition,
8223 # creating and moving files from /tmp can sometimes cause problems.
8224 # Hook for its removal unless debugging.
8225 # Note that there is a small window in which the directory will not be cleaned:
8226 # after its creation but before its name has been assigned to `$tmp'.
8230 trap 'exit_status=$?
8232 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8234 trap 'as_fn_exit 1' 1 2 13 15
8236 # Create a (secure) tmp directory for tmp files.
8239 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8243 tmp=./conf$$-$RANDOM
8244 (umask 077 && mkdir "$tmp")
8245 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8248 # Set up the scripts for CONFIG_FILES section.
8249 # No need to generate them if there are no CONFIG_FILES.
8250 # This happens for instance with `./config.status config.h'.
8251 if test -n "$CONFIG_FILES"; then
8254 ac_cr=`echo X | tr X '\015'`
8255 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8256 # But we know of no other shell where ac_cr would be empty at this
8257 # point, so we can use a bashism as a fallback.
8258 if test "x$ac_cr" = x; then
8259 eval ac_cr=\$\'\\r\'
8261 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8262 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8268 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8273 echo "cat >conf$$subs.awk <<_ACEOF" &&
8274 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8277 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8278 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8280 for ac_last_try in false false false false false :; do
8281 . ./conf$$subs.sh ||
8282 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8284 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8285 if test $ac_delim_n = $ac_delim_num; then
8287 elif $ac_last_try; then
8288 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8290 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8296 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8300 s/^/S["/; s/!.*/"]=/
8310 s/\(.\{148\}\)..*/\1/
8312 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8317 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8324 s/\(.\{148\}\)..*/\1/
8326 s/["\\]/\\&/g; s/^/"/; s/$/"/
8330 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8335 ' <conf$$subs.awk | sed '
8340 ' >>$CONFIG_STATUS || ac_write_fail=1
8341 rm -f conf$$subs.awk
8342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8344 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8345 for (key in S) S_is_set[key] = 1
8351 nfields = split(line, field, "@")
8353 len = length(field[1])
8354 for (i = 2; i < nfields; i++) {
8356 keylen = length(key)
8357 if (S_is_set[key]) {
8359 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8360 len += length(value) + length(field[++i])
8371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8372 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8373 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8376 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8377 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8380 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8381 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8382 # trailing colons and then remove the whole line if VPATH becomes empty
8383 # (actually we leave an empty line to preserve line numbers).
8384 if test "x$srcdir" = x.; then
8385 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8404 fi # test -n "$CONFIG_FILES"
8406 # Set up the scripts for CONFIG_HEADERS section.
8407 # No need to generate them if there are no CONFIG_HEADERS.
8408 # This happens for instance with `./config.status Makefile'.
8409 if test -n "$CONFIG_HEADERS"; then
8410 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8414 # Transform confdefs.h into an awk script `defines.awk', embedded as
8415 # here-document in config.status, that substitutes the proper values into
8416 # config.h.in to produce config.h.
8418 # Create a delimiter string that does not exist in confdefs.h, to ease
8419 # handling of long lines.
8421 for ac_last_try in false false :; do
8422 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8423 if test -z "$ac_tt"; then
8425 elif $ac_last_try; then
8426 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8428 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8432 # For the awk script, D is an array of macro values keyed by name,
8433 # likewise P contains macro parameters if any. Preserve backslash
8434 # newline sequences.
8436 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8438 s/.\{148\}/&'"$ac_delim"'/g
8441 s/^[ ]*#[ ]*define[ ][ ]*/ /
8448 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8450 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8454 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8455 D["\1"]=" \3\\\\\\n"\\/p
8457 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8462 s/.\{148\}/&'"$ac_delim"'/g
8467 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8470 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8472 ' <confdefs.h | sed '
8473 s/'"$ac_delim"'/"\\\
8474 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8477 for (key in D) D_is_set[key] = 1
8480 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8482 split(line, arg, " ")
8483 if (arg[1] == "#") {
8487 defundef = substr(arg[1], 2)
8490 split(mac1, mac2, "(") #)
8492 prefix = substr(line, 1, index(line, defundef) - 1)
8493 if (D_is_set[macro]) {
8494 # Preserve the white space surrounding the "#".
8495 print prefix "define", macro P[macro] D[macro]
8498 # Replace #undef with comments. This is necessary, for example,
8499 # in the case of _POSIX_SOURCE, which is predefined and required
8500 # on some systems where configure will not decide to define it.
8501 if (defundef == "undef") {
8502 print "/*", prefix defundef, macro, "*/"
8510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8511 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8512 fi # test -n "$CONFIG_HEADERS"
8515 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8520 :[FHLC]) ac_mode=$ac_tag; continue;;
8522 case $ac_mode$ac_tag in
8524 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8525 :[FH]-) ac_tag=-:-;;
8526 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8543 -) ac_f="$ac_tmp/stdin";;
8544 *) # Look for the file first in the build tree, then in the source tree
8545 # (if the path is not absolute). The absolute path cannot be DOS-style,
8546 # because $ac_f cannot contain `:'.
8550 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8552 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8554 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8555 as_fn_append ac_file_inputs " '$ac_f'"
8558 # Let's still pretend it is `configure' which instantiates (i.e., don't
8559 # use $as_me), people would be surprised to read:
8560 # /* config.h. Generated by config.status. */
8561 configure_input='Generated from '`
8562 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8564 if test x"$ac_file" != x-; then
8565 configure_input="$ac_file. $configure_input"
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8567 $as_echo "$as_me: creating $ac_file" >&6;}
8569 # Neutralize special characters interpreted by sed in replacement strings.
8570 case $configure_input in #(
8571 *\&* | *\|* | *\\* )
8572 ac_sed_conf_input=`$as_echo "$configure_input" |
8573 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8574 *) ac_sed_conf_input=$configure_input;;
8578 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8579 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8584 ac_dir=`$as_dirname -- "$ac_file" ||
8585 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8586 X"$ac_file" : 'X\(//\)[^/]' \| \
8587 X"$ac_file" : 'X\(//\)$' \| \
8588 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8589 $as_echo X"$ac_file" |
8590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8607 as_dir="$ac_dir"; as_fn_mkdir_p
8611 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8613 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8614 # A ".." for each directory in $ac_dir_suffix.
8615 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8616 case $ac_top_builddir_sub in
8617 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8618 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8621 ac_abs_top_builddir=$ac_pwd
8622 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8623 # for backward compatibility:
8624 ac_top_builddir=$ac_top_build_prefix
8627 .) # We are building in place.
8629 ac_top_srcdir=$ac_top_builddir_sub
8630 ac_abs_top_srcdir=$ac_pwd ;;
8631 [\\/]* | ?:[\\/]* ) # Absolute name.
8632 ac_srcdir=$srcdir$ac_dir_suffix;
8633 ac_top_srcdir=$srcdir
8634 ac_abs_top_srcdir=$srcdir ;;
8636 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8637 ac_top_srcdir=$ac_top_build_prefix$srcdir
8638 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8640 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8650 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8651 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8655 [\\/$]* | ?:[\\/]* ) ;;
8656 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8661 # If the template does not know about datarootdir, expand it.
8662 # FIXME: This hack should be removed a few years after 2.60.
8663 ac_datarootdir_hack=; ac_datarootdir_seen=
8674 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8675 *datarootdir*) ac_datarootdir_seen=yes;;
8676 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8678 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8681 ac_datarootdir_hack='
8682 s&@datadir@&$datadir&g
8683 s&@docdir@&$docdir&g
8684 s&@infodir@&$infodir&g
8685 s&@localedir@&$localedir&g
8686 s&@mandir@&$mandir&g
8687 s&\\\${datarootdir}&$datarootdir&g' ;;
8691 # Neutralize VPATH when `$srcdir' = `.'.
8692 # Shell code in configure.ac might set extrasub.
8693 # FIXME: do we really want to maintain this feature?
8694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8695 ac_sed_extra="$ac_vpsub
8698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8700 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8701 s|@configure_input@|$ac_sed_conf_input|;t t
8702 s&@top_builddir@&$ac_top_builddir_sub&;t t
8703 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8704 s&@srcdir@&$ac_srcdir&;t t
8705 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8706 s&@top_srcdir@&$ac_top_srcdir&;t t
8707 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8708 s&@builddir@&$ac_builddir&;t t
8709 s&@abs_builddir@&$ac_abs_builddir&;t t
8710 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8711 s&@INSTALL@&$ac_INSTALL&;t t
8712 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8713 $ac_datarootdir_hack
8715 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8716 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8718 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8719 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8720 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8721 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8723 which seems to be undefined. Please make sure it is defined" >&5
8724 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8725 which seems to be undefined. Please make sure it is defined" >&2;}
8727 rm -f "$ac_tmp/stdin"
8729 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8730 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8732 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8738 if test x"$ac_file" != x-; then
8740 $as_echo "/* $configure_input */" \
8741 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8742 } >"$ac_tmp/config.h" \
8743 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8744 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8746 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8749 mv "$ac_tmp/config.h" "$ac_file" \
8750 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8753 $as_echo "/* $configure_input */" \
8754 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8755 || as_fn_error $? "could not create -" "$LINENO" 5
8757 # Compute "$ac_file"'s index in $config_headers.
8760 for _am_header in $config_headers :; do
8762 $_am_arg | $_am_arg:* )
8765 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8768 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8769 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8770 X"$_am_arg" : 'X\(//\)[^/]' \| \
8771 X"$_am_arg" : 'X\(//\)$' \| \
8772 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8773 $as_echo X"$_am_arg" |
8774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8790 s/.*/./; q'`/stamp-h$_am_stamp_count
8793 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8794 $as_echo "$as_me: executing $ac_file commands" >&6;}
8799 case $ac_file$ac_mode in
8800 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8801 # Older Autoconf quotes --file arguments for eval, but not when files
8802 # are listed without --file. Let's play safe and only enable the eval
8803 # if we detect the quoting.
8804 case $CONFIG_FILES in
8805 *\'*) eval set x "$CONFIG_FILES" ;;
8806 *) set x $CONFIG_FILES ;;
8811 # Strip MF so we end up with the name of the file.
8812 mf=`echo "$mf" | sed -e 's/:.*$//'`
8813 # Check whether this is an Automake generated Makefile or not.
8814 # We used to match only the files named 'Makefile.in', but
8815 # some people rename them; so instead we look at the file content.
8816 # Grep'ing the first line is not enough: some people post-process
8817 # each Makefile.in and add a new line on top of each file to say so.
8818 # Grep'ing the whole file is not good either: AIX grep has a line
8819 # limit of 2048, but all sed's we know have understand at least 4000.
8820 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8821 dirpart=`$as_dirname -- "$mf" ||
8822 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8823 X"$mf" : 'X\(//\)[^/]' \| \
8824 X"$mf" : 'X\(//\)$' \| \
8825 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8847 # Extract the definition of DEPDIR, am__include, and am__quote
8848 # from the Makefile without running 'make'.
8849 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8850 test -z "$DEPDIR" && continue
8851 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8852 test -z "$am__include" && continue
8853 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8854 # Find all dependency output files, they are included files with
8855 # $(DEPDIR) in their names. We invoke sed twice because it is the
8856 # simplest approach to changing $(DEPDIR) to its actual value in the
8858 for file in `sed -n "
8859 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8860 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8861 # Make sure the directory exists.
8862 test -f "$dirpart/$file" && continue
8863 fdir=`$as_dirname -- "$file" ||
8864 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8865 X"$file" : 'X\(//\)[^/]' \| \
8866 X"$file" : 'X\(//\)$' \| \
8867 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8886 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8887 # echo "creating $dirpart/$file"
8888 echo '# dummy' > "$dirpart/$file"
8894 for ac_file in $CONFIG_FILES; do
8895 # Support "outfile[:infile[:infile...]]"
8897 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8899 # PO directories have a Makefile.in generated from Makefile.in.in.
8900 case "$ac_file" in */Makefile.in)
8901 # Adjust a relative srcdir.
8902 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8903 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
8904 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8905 # In autoconf-2.13 it is called $ac_given_srcdir.
8906 # In autoconf-2.50 it is called $srcdir.
8907 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8908 case "$ac_given_srcdir" in
8909 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8910 /*) top_srcdir="$ac_given_srcdir" ;;
8911 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8913 # Treat a directory as a PO directory if and only if it has a
8914 # POTFILES.in file. This allows packages to have multiple PO
8915 # directories under different names or in different locations.
8916 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8917 rm -f "$ac_dir/POTFILES"
8918 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8919 gt_tab=`printf '\t'`
8920 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
8921 POMAKEFILEDEPS="POTFILES.in"
8922 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
8923 # on $ac_dir but don't depend on user-specified configuration
8925 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
8926 # The LINGUAS file contains the set of available languages.
8927 if test -n "$OBSOLETE_ALL_LINGUAS"; then
8928 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
8930 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
8931 # Hide the ALL_LINGUAS assignment from automake < 1.5.
8932 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
8933 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
8935 # The set of available languages was given in configure.in.
8936 # Hide the ALL_LINGUAS assignment from automake < 1.5.
8937 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
8940 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
8941 # Compute UPDATEPOFILES
8942 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
8943 # Compute DUMMYPOFILES
8944 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
8946 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
8947 case "$ac_given_srcdir" in
8949 *) srcdirpre='$(srcdir)/' ;;
8955 for lang in $ALL_LINGUAS; do
8956 POFILES="$POFILES $srcdirpre$lang.po"
8957 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
8958 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
8959 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
8961 # CATALOGS depends on both $ac_dir and the user's LINGUAS
8962 # environment variable.
8964 if test -n "$ALL_LINGUAS"; then
8965 for presentlang in $ALL_LINGUAS; do
8967 if test "%UNSET%" != "$LINGUAS"; then
8968 desiredlanguages="$LINGUAS"
8970 desiredlanguages="$ALL_LINGUAS"
8972 for desiredlang in $desiredlanguages; do
8973 # Use the presentlang catalog if desiredlang is
8974 # a. equal to presentlang, or
8975 # b. a variant of presentlang (because in this case,
8976 # presentlang can be used as a fallback for messages
8977 # which are not translated in the desiredlang catalog).
8978 case "$desiredlang" in
8979 "$presentlang"*) useit=yes;;
8982 if test $useit = yes; then
8983 INST_LINGUAS="$INST_LINGUAS $presentlang"
8988 if test -n "$INST_LINGUAS"; then
8989 for lang in $INST_LINGUAS; do
8990 CATALOGS="$CATALOGS $lang.gmo"
8993 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8994 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"
8995 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
8996 if test -f "$f"; then
8998 *.orig | *.bak | *~) ;;
8999 *) cat "$f" >> "$ac_dir/Makefile" ;;
9014 ac_clean_files=$ac_clean_files_save
9016 test $ac_write_fail = 0 ||
9017 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9020 # configure is writing to config.log, and then calls config.status.
9021 # config.status does its own redirection, appending to config.log.
9022 # Unfortunately, on DOS this fails, as config.log is still kept open
9023 # by configure, so config.status won't be able to write to it; its
9024 # output is simply discarded. So we exec the FD to /dev/null,
9025 # effectively closing config.log, so it can be properly (re)opened and
9026 # appended to by config.status. When coming back to configure, we
9027 # need to make the FD available again.
9028 if test "$no_create" != yes; then
9030 ac_config_status_args=
9031 test "$silent" = yes &&
9032 ac_config_status_args="$ac_config_status_args --quiet"
9034 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9036 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9037 # would make configure fail if this is the last instruction.
9038 $ac_cs_success || as_fn_exit 1
9040 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9042 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}