2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xkbcomp 1.2.0.
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 *v*x* | *x*v* ) as_opts=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
252 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
263 # Portably unset VAR.
266 { eval $1=; unset $1;}
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
290 # Create "$as_dir" as a directory, including parents if necessary.
295 -*) as_dir=./$as_dir;;
297 test -d "$as_dir" || eval $as_mkdir_p || {
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
328 test -d "$as_dir" && break
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 as_val=`expr "$@" || test $? -eq 1`
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
378 as_status=$1; test $as_status -eq 0 && as_status=1
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
460 # Exit status is that of the last command.
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
482 mkdir conf$$.dir 2>/dev/null
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
493 elif ln conf$$.file conf$$ 2>/dev/null; then
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
507 test -d ./-p && rmdir ./-p
511 if test -x / >/dev/null 2>&1; then
514 if ls -dL / >/dev/null 2>&1; then
521 if test -d "$1"; then
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
532 as_executable_p=$as_test_x
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 test -n "$DJDIR" || exec 7<&0 </dev/null
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
552 ac_default_prefix=/usr/local
554 ac_config_libobj_dir=.
561 # Identity of this package.
562 PACKAGE_NAME='xkbcomp'
563 PACKAGE_TARNAME='xkbcomp'
564 PACKAGE_VERSION='1.2.0'
565 PACKAGE_STRING='xkbcomp 1.2.0'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
569 # Factoring default headers for most tests.
570 ac_includes_default="\
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
582 # ifdef HAVE_STDLIB_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
605 ac_subst_vars='am__EXEEXT_FALSE
664 MAINTAINER_MODE_FALSE
674 INSTALL_STRIP_PROGRAM
716 program_transform_name
729 enable_option_checking
730 enable_maintainer_mode
731 enable_dependency_tracking
732 enable_strict_compilation
736 ac_precious_vars='build_alias
752 # Initialize some variables set by options.
754 ac_init_version=false
755 ac_unrecognized_opts=
757 # The variables have the same names as the options, with
758 # dashes changed to underlines.
766 program_transform_name=s,x,x,
774 # Installation directory options.
775 # These are left unexpanded so users can "make install exec_prefix=/foo"
776 # and all the variables that are supposed to be based on exec_prefix
777 # by default will actually change.
778 # Use braces instead of parens because sh, perl, etc. also accept them.
779 # (The list follows the same order as the GNU Coding Standards.)
780 bindir='${exec_prefix}/bin'
781 sbindir='${exec_prefix}/sbin'
782 libexecdir='${exec_prefix}/libexec'
783 datarootdir='${prefix}/share'
784 datadir='${datarootdir}'
785 sysconfdir='${prefix}/etc'
786 sharedstatedir='${prefix}/com'
787 localstatedir='${prefix}/var'
788 includedir='${prefix}/include'
789 oldincludedir='/usr/include'
790 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
791 infodir='${datarootdir}/info'
796 libdir='${exec_prefix}/lib'
797 localedir='${datarootdir}/locale'
798 mandir='${datarootdir}/man'
804 # If the previous option needs an argument, assign it.
805 if test -n "$ac_prev"; then
806 eval $ac_prev=\$ac_option
812 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
817 # Accept the important Cygnus configure options, so we can diagnose typos.
819 case $ac_dashdash$ac_option in
823 -bindir | --bindir | --bindi | --bind | --bin | --bi)
825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
828 -build | --build | --buil | --bui | --bu)
829 ac_prev=build_alias ;;
830 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
831 build_alias=$ac_optarg ;;
833 -cache-file | --cache-file | --cache-fil | --cache-fi \
834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835 ac_prev=cache_file ;;
836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
838 cache_file=$ac_optarg ;;
841 cache_file=config.cache ;;
843 -datadir | --datadir | --datadi | --datad)
845 -datadir=* | --datadir=* | --datadi=* | --datad=*)
846 datadir=$ac_optarg ;;
848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849 | --dataroo | --dataro | --datar)
850 ac_prev=datarootdir ;;
851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853 datarootdir=$ac_optarg ;;
855 -disable-* | --disable-*)
856 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859 as_fn_error $? "invalid feature name: $ac_useropt"
860 ac_useropt_orig=$ac_useropt
861 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
862 case $ac_user_opts in
866 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
867 ac_unrecognized_sep=', ';;
869 eval enable_$ac_useropt=no ;;
871 -docdir | --docdir | --docdi | --doc | --do)
873 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
876 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
878 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
881 -enable-* | --enable-*)
882 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885 as_fn_error $? "invalid feature name: $ac_useropt"
886 ac_useropt_orig=$ac_useropt
887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
893 ac_unrecognized_sep=', ';;
895 eval enable_$ac_useropt=\$ac_optarg ;;
897 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
898 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
899 | --exec | --exe | --ex)
900 ac_prev=exec_prefix ;;
901 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
902 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
903 | --exec=* | --exe=* | --ex=*)
904 exec_prefix=$ac_optarg ;;
906 -gas | --gas | --ga | --g)
907 # Obsolete; use --with-gas.
910 -help | --help | --hel | --he | -h)
912 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
913 ac_init_help=recursive ;;
914 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
915 ac_init_help=short ;;
917 -host | --host | --hos | --ho)
918 ac_prev=host_alias ;;
919 -host=* | --host=* | --hos=* | --ho=*)
920 host_alias=$ac_optarg ;;
922 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
924 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
926 htmldir=$ac_optarg ;;
928 -includedir | --includedir | --includedi | --included | --include \
929 | --includ | --inclu | --incl | --inc)
930 ac_prev=includedir ;;
931 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
932 | --includ=* | --inclu=* | --incl=* | --inc=*)
933 includedir=$ac_optarg ;;
935 -infodir | --infodir | --infodi | --infod | --info | --inf)
937 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
938 infodir=$ac_optarg ;;
940 -libdir | --libdir | --libdi | --libd)
942 -libdir=* | --libdir=* | --libdi=* | --libd=*)
945 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
946 | --libexe | --libex | --libe)
947 ac_prev=libexecdir ;;
948 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
949 | --libexe=* | --libex=* | --libe=*)
950 libexecdir=$ac_optarg ;;
952 -localedir | --localedir | --localedi | --localed | --locale)
954 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
955 localedir=$ac_optarg ;;
957 -localstatedir | --localstatedir | --localstatedi | --localstated \
958 | --localstate | --localstat | --localsta | --localst | --locals)
959 ac_prev=localstatedir ;;
960 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
961 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
962 localstatedir=$ac_optarg ;;
964 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
966 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
970 # Obsolete; use --without-fp.
973 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
974 | --no-cr | --no-c | -n)
977 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
978 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
981 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
982 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
983 | --oldin | --oldi | --old | --ol | --o)
984 ac_prev=oldincludedir ;;
985 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
986 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
987 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
988 oldincludedir=$ac_optarg ;;
990 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
992 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
995 -program-prefix | --program-prefix | --program-prefi | --program-pref \
996 | --program-pre | --program-pr | --program-p)
997 ac_prev=program_prefix ;;
998 -program-prefix=* | --program-prefix=* | --program-prefi=* \
999 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1000 program_prefix=$ac_optarg ;;
1002 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1003 | --program-suf | --program-su | --program-s)
1004 ac_prev=program_suffix ;;
1005 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1006 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1007 program_suffix=$ac_optarg ;;
1009 -program-transform-name | --program-transform-name \
1010 | --program-transform-nam | --program-transform-na \
1011 | --program-transform-n | --program-transform- \
1012 | --program-transform | --program-transfor \
1013 | --program-transfo | --program-transf \
1014 | --program-trans | --program-tran \
1015 | --progr-tra | --program-tr | --program-t)
1016 ac_prev=program_transform_name ;;
1017 -program-transform-name=* | --program-transform-name=* \
1018 | --program-transform-nam=* | --program-transform-na=* \
1019 | --program-transform-n=* | --program-transform-=* \
1020 | --program-transform=* | --program-transfor=* \
1021 | --program-transfo=* | --program-transf=* \
1022 | --program-trans=* | --program-tran=* \
1023 | --progr-tra=* | --program-tr=* | --program-t=*)
1024 program_transform_name=$ac_optarg ;;
1026 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1028 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1029 pdfdir=$ac_optarg ;;
1031 -psdir | --psdir | --psdi | --psd | --ps)
1033 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037 | -silent | --silent | --silen | --sile | --sil)
1040 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1042 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1044 sbindir=$ac_optarg ;;
1046 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1047 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1048 | --sharedst | --shareds | --shared | --share | --shar \
1050 ac_prev=sharedstatedir ;;
1051 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1052 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1053 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1055 sharedstatedir=$ac_optarg ;;
1057 -site | --site | --sit)
1059 -site=* | --site=* | --sit=*)
1062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1065 srcdir=$ac_optarg ;;
1067 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1068 | --syscon | --sysco | --sysc | --sys | --sy)
1069 ac_prev=sysconfdir ;;
1070 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1071 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1072 sysconfdir=$ac_optarg ;;
1074 -target | --target | --targe | --targ | --tar | --ta | --t)
1075 ac_prev=target_alias ;;
1076 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1077 target_alias=$ac_optarg ;;
1079 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1082 -version | --version | --versio | --versi | --vers | -V)
1083 ac_init_version=: ;;
1086 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 as_fn_error $? "invalid package name: $ac_useropt"
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1099 eval with_$ac_useropt=\$ac_optarg ;;
1101 -without-* | --without-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error $? "invalid package name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1115 eval with_$ac_useropt=no ;;
1118 # Obsolete; use --with-x.
1121 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1122 | --x-incl | --x-inc | --x-in | --x-i)
1123 ac_prev=x_includes ;;
1124 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1125 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1126 x_includes=$ac_optarg ;;
1128 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1129 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1130 ac_prev=x_libraries ;;
1131 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1132 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1133 x_libraries=$ac_optarg ;;
1135 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1136 Try \`$0 --help' for more information"
1140 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1141 # Reject names that are not valid shell variable names.
1142 case $ac_envvar in #(
1143 '' | [0-9]* | *[!_$as_cr_alnum]* )
1144 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1146 eval $ac_envvar=\$ac_optarg
1147 export $ac_envvar ;;
1150 # FIXME: should be removed in autoconf 3.0.
1151 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1152 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1154 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1160 if test -n "$ac_prev"; then
1161 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1162 as_fn_error $? "missing argument to $ac_option"
1165 if test -n "$ac_unrecognized_opts"; then
1166 case $enable_option_checking in
1168 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1169 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1173 # Check all directory arguments for consistency.
1174 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1175 datadir sysconfdir sharedstatedir localstatedir includedir \
1176 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1177 libdir localedir mandir
1179 eval ac_val=\$$ac_var
1180 # Remove trailing slashes.
1183 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1184 eval $ac_var=\$ac_val;;
1186 # Be sure to have absolute directory names.
1188 [\\/$]* | ?:[\\/]* ) continue;;
1189 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1191 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1194 # There might be people who depend on the old broken behavior: `$host'
1195 # used to hold the argument of --host etc.
1196 # FIXME: To remove some day.
1199 target=$target_alias
1201 # FIXME: To remove some day.
1202 if test "x$host_alias" != x; then
1203 if test "x$build_alias" = x; then
1204 cross_compiling=maybe
1205 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1206 If a cross compiler is detected then cross compile mode will be used" >&2
1207 elif test "x$build_alias" != "x$host_alias"; then
1213 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1215 test "$silent" = yes && exec 6>/dev/null
1218 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1219 ac_ls_di=`ls -di .` &&
1220 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1221 as_fn_error $? "working directory cannot be determined"
1222 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223 as_fn_error $? "pwd does not report name of working directory"
1226 # Find the source files, if location was not specified.
1227 if test -z "$srcdir"; then
1228 ac_srcdir_defaulted=yes
1229 # Try the directory containing this script, then the parent directory.
1230 ac_confdir=`$as_dirname -- "$as_myself" ||
1231 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1232 X"$as_myself" : 'X\(//\)[^/]' \| \
1233 X"$as_myself" : 'X\(//\)$' \| \
1234 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1235 $as_echo X"$as_myself" |
1236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1254 if test ! -r "$srcdir/$ac_unique_file"; then
1258 ac_srcdir_defaulted=no
1260 if test ! -r "$srcdir/$ac_unique_file"; then
1261 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1262 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1264 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1266 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1268 # When building in place, set srcdir=.
1269 if test "$ac_abs_confdir" = "$ac_pwd"; then
1272 # Remove unnecessary trailing slashes from srcdir.
1273 # Double slashes in file names in object file debugging info
1274 # mess up M-x gdb in Emacs.
1276 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1278 for ac_var in $ac_precious_vars; do
1279 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_env_${ac_var}_value=\$${ac_var}
1281 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1282 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286 # Report the --help message.
1288 if test "$ac_init_help" = "long"; then
1289 # Omit some internal or obsolete options to make the list less imposing.
1290 # This message is too long to be a string in the A/UX 3.1 sh.
1292 \`configure' configures xkbcomp 1.2.0 to adapt to many kinds of systems.
1294 Usage: $0 [OPTION]... [VAR=VALUE]...
1296 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297 VAR=VALUE. See below for descriptions of some of the useful variables.
1299 Defaults for the options are specified in brackets.
1302 -h, --help display this help and exit
1303 --help=short display options specific to this package
1304 --help=recursive display the short help of all the included packages
1305 -V, --version display version information and exit
1306 -q, --quiet, --silent do not print \`checking ...' messages
1307 --cache-file=FILE cache test results in FILE [disabled]
1308 -C, --config-cache alias for \`--cache-file=config.cache'
1309 -n, --no-create do not create output files
1310 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1312 Installation directories:
1313 --prefix=PREFIX install architecture-independent files in PREFIX
1314 [$ac_default_prefix]
1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1318 By default, \`make install' will install all the files in
1319 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1320 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321 for instance \`--prefix=\$HOME'.
1323 For better control, use the options below.
1325 Fine tuning of the installation directories:
1326 --bindir=DIR user executables [EPREFIX/bin]
1327 --sbindir=DIR system admin executables [EPREFIX/sbin]
1328 --libexecdir=DIR program executables [EPREFIX/libexec]
1329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1332 --libdir=DIR object code libraries [EPREFIX/lib]
1333 --includedir=DIR C header files [PREFIX/include]
1334 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1335 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1336 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1337 --infodir=DIR info documentation [DATAROOTDIR/info]
1338 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1339 --mandir=DIR man documentation [DATAROOTDIR/man]
1340 --docdir=DIR documentation root [DATAROOTDIR/doc/xkbcomp]
1341 --htmldir=DIR html documentation [DOCDIR]
1342 --dvidir=DIR dvi documentation [DOCDIR]
1343 --pdfdir=DIR pdf documentation [DOCDIR]
1344 --psdir=DIR ps documentation [DOCDIR]
1350 --program-prefix=PREFIX prepend PREFIX to installed program names
1351 --program-suffix=SUFFIX append SUFFIX to installed program names
1352 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1355 --build=BUILD configure for building on BUILD [guessed]
1356 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1360 if test -n "$ac_init_help"; then
1361 case $ac_init_help in
1362 short | recursive ) echo "Configuration of xkbcomp 1.2.0:";;
1367 --disable-option-checking ignore unrecognized --enable/--with options
1368 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1369 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1370 --enable-maintainer-mode enable make rules and dependencies not useful
1371 (and sometimes confusing) to the casual installer
1372 --disable-dependency-tracking speeds up one-time build
1373 --enable-dependency-tracking do not reject slow dependency extractors
1374 --enable-strict-compilation
1375 Enable all warnings from compiler and make them
1376 errors (default: disabled)
1377 --enable-silent-rules less verbose build output (undo: `make V=1')
1378 --disable-silent-rules verbose build output (undo: `make V=0')
1381 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1382 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1383 --with-xkb-config-root=<paths>
1384 Set default XKB config root (default:
1387 Some influential environment variables:
1388 CC C compiler command
1389 CFLAGS C compiler flags
1390 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1391 nonstandard directory <lib dir>
1392 LIBS libraries to pass to the linker, e.g. -l<library>
1393 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1394 you have headers in a nonstandard directory <include dir>
1396 PKG_CONFIG path to pkg-config utility
1397 YACC The `Yet Another Compiler Compiler' implementation to use.
1398 Defaults to the first program found out of: `bison -y', `byacc',
1400 YFLAGS The list of arguments that will be passed by default to $YACC.
1401 This script will default YFLAGS to the empty string to avoid a
1402 default value of `-d' given by some make applications.
1404 C compiler flags for XKBCOMP, overriding pkg-config
1406 linker flags for XKBCOMP, overriding pkg-config
1408 Use these variables to override the choices made by `configure' or to help
1409 it to find libraries and programs with nonstandard names/locations.
1411 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1416 if test "$ac_init_help" = "recursive"; then
1417 # If there are subdirs, report their specific --help.
1418 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1419 test -d "$ac_dir" ||
1420 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1428 # A ".." for each directory in $ac_dir_suffix.
1429 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1430 case $ac_top_builddir_sub in
1431 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1435 ac_abs_top_builddir=$ac_pwd
1436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1437 # for backward compatibility:
1438 ac_top_builddir=$ac_top_build_prefix
1441 .) # We are building in place.
1443 ac_top_srcdir=$ac_top_builddir_sub
1444 ac_abs_top_srcdir=$ac_pwd ;;
1445 [\\/]* | ?:[\\/]* ) # Absolute name.
1446 ac_srcdir=$srcdir$ac_dir_suffix;
1447 ac_top_srcdir=$srcdir
1448 ac_abs_top_srcdir=$srcdir ;;
1450 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1451 ac_top_srcdir=$ac_top_build_prefix$srcdir
1452 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1456 cd "$ac_dir" || { ac_status=$?; continue; }
1457 # Check for guested configure.
1458 if test -f "$ac_srcdir/configure.gnu"; then
1460 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1461 elif test -f "$ac_srcdir/configure"; then
1463 $SHELL "$ac_srcdir/configure" --help=recursive
1465 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1467 cd "$ac_pwd" || { ac_status=$?; break; }
1471 test -n "$ac_init_help" && exit $ac_status
1472 if $ac_init_version; then
1474 xkbcomp configure 1.2.0
1475 generated by GNU Autoconf 2.68
1477 Copyright (C) 2010 Free Software Foundation, Inc.
1478 This configure script is free software; the Free Software Foundation
1479 gives unlimited permission to copy, distribute and modify it.
1484 ## ------------------------ ##
1485 ## Autoconf initialization. ##
1486 ## ------------------------ ##
1488 # ac_fn_c_try_compile LINENO
1489 # --------------------------
1490 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1491 ac_fn_c_try_compile ()
1493 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1494 rm -f conftest.$ac_objext
1495 if { { ac_try="$ac_compile"
1497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1498 *) ac_try_echo=$ac_try;;
1500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1501 $as_echo "$ac_try_echo"; } >&5
1502 (eval "$ac_compile") 2>conftest.err
1504 if test -s conftest.err; then
1505 grep -v '^ *+' conftest.err >conftest.er1
1506 cat conftest.er1 >&5
1507 mv -f conftest.er1 conftest.err
1509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1510 test $ac_status = 0; } && {
1511 test -z "$ac_c_werror_flag" ||
1512 test ! -s conftest.err
1513 } && test -s conftest.$ac_objext; then :
1516 $as_echo "$as_me: failed program was:" >&5
1517 sed 's/^/| /' conftest.$ac_ext >&5
1521 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1522 as_fn_set_status $ac_retval
1524 } # ac_fn_c_try_compile
1526 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1527 # ---------------------------------------------
1528 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1530 ac_fn_c_check_decl ()
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 as_decl_name=`echo $2|sed 's/ *(.*//'`
1534 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1536 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1537 if eval \${$3+:} false; then :
1538 $as_echo_n "(cached) " >&6
1540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1541 /* end confdefs.h. */
1546 #ifndef $as_decl_name
1548 (void) $as_decl_use;
1550 (void) $as_decl_name;
1558 if ac_fn_c_try_compile "$LINENO"; then :
1563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1567 $as_echo "$ac_res" >&6; }
1568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570 } # ac_fn_c_check_decl
1572 # ac_fn_c_try_cpp LINENO
1573 # ----------------------
1574 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578 if { { ac_try="$ac_cpp conftest.$ac_ext"
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } > conftest.i && {
1594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1595 test ! -s conftest.err
1599 $as_echo "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605 as_fn_set_status $ac_retval
1609 # ac_fn_c_try_run LINENO
1610 # ----------------------
1611 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1612 # that executables *can* be run.
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 if { { ac_try="$ac_link"
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_link") 2>&5
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1627 { { case "(($ac_try" in
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_try") 2>&5
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; }; }; then :
1639 $as_echo "$as_me: program exited with status $ac_status" >&5
1640 $as_echo "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.$ac_ext >&5
1643 ac_retval=$ac_status
1645 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647 as_fn_set_status $ac_retval
1651 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1652 # -------------------------------------------------------
1653 # Tests whether HEADER exists and can be compiled using the include files in
1654 # INCLUDES, setting the cache variable VAR accordingly.
1655 ac_fn_c_check_header_compile ()
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1659 $as_echo_n "checking for $2... " >&6; }
1660 if eval \${$3+:} false; then :
1661 $as_echo_n "(cached) " >&6
1663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1664 /* end confdefs.h. */
1668 if ac_fn_c_try_compile "$LINENO"; then :
1673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677 $as_echo "$ac_res" >&6; }
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 } # ac_fn_c_check_header_compile
1682 # ac_fn_c_try_link LINENO
1683 # -----------------------
1684 # Try to link conftest.$ac_ext, and return whether this succeeded.
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 rm -f conftest.$ac_objext conftest$ac_exeext
1689 if { { ac_try="$ac_link"
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_link") 2>conftest.err
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && {
1705 test -z "$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1707 } && test -s conftest$ac_exeext && {
1708 test "$cross_compiling" = yes ||
1709 $as_test_x conftest$ac_exeext
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1718 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1719 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1720 # interfere with the next link command; also delete a directory that is
1721 # left behind by Apple's compiler. We do this before executing the actions.
1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 as_fn_set_status $ac_retval
1726 } # ac_fn_c_try_link
1728 # ac_fn_c_check_func LINENO FUNC VAR
1729 # ----------------------------------
1730 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1731 ac_fn_c_check_func ()
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if eval \${$3+:} false; then :
1737 $as_echo_n "(cached) " >&6
1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740 /* end confdefs.h. */
1741 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1743 #define $2 innocuous_$2
1745 /* System header to define __stub macros and hopefully few prototypes,
1746 which can conflict with char $2 (); below.
1747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1748 <limits.h> exists even on freestanding compilers. */
1751 # include <limits.h>
1753 # include <assert.h>
1758 /* Override any GCC internal prototype to avoid an error.
1759 Use char because int might match the return type of a GCC
1760 builtin and then its argument prototype would still apply. */
1765 /* The GNU C library defines this for functions which it implements
1766 to always fail with ENOSYS. Some functions are actually named
1767 something starting with __ and the normal name is an alias. */
1768 #if defined __stub_$2 || defined __stub___$2
1780 if ac_fn_c_try_link "$LINENO"; then :
1785 rm -f core conftest.err conftest.$ac_objext \
1786 conftest$ac_exeext conftest.$ac_ext
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790 $as_echo "$ac_res" >&6; }
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 } # ac_fn_c_check_func
1794 cat >config.log <<_ACEOF
1795 This file contains any messages produced by compilers while
1796 running configure, to aid debugging if configure makes a mistake.
1798 It was created by xkbcomp $as_me 1.2.0, which was
1799 generated by GNU Autoconf 2.68. Invocation command line was
1811 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1812 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1813 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1814 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1815 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1817 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1818 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1820 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1821 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1822 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1823 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1824 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1825 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1826 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834 test -z "$as_dir" && as_dir=.
1835 $as_echo "PATH: $as_dir"
1851 # Keep a trace of the command line.
1852 # Strip out --no-create and --no-recursion so they do not pile up.
1853 # Strip out --silent because we don't want to record it for future runs.
1854 # Also quote any args containing shell meta-characters.
1855 # Make two passes to allow for proper duplicate-argument suppression.
1859 ac_must_keep_next=false
1865 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1867 | -silent | --silent | --silen | --sile | --sil)
1870 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1873 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1875 as_fn_append ac_configure_args1 " '$ac_arg'"
1876 if test $ac_must_keep_next = true; then
1877 ac_must_keep_next=false # Got value, back to normal.
1880 *=* | --config-cache | -C | -disable-* | --disable-* \
1881 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1882 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1883 | -with-* | --with-* | -without-* | --without-* | --x)
1884 case "$ac_configure_args0 " in
1885 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1888 -* ) ac_must_keep_next=true ;;
1891 as_fn_append ac_configure_args " '$ac_arg'"
1896 { ac_configure_args0=; unset ac_configure_args0;}
1897 { ac_configure_args1=; unset ac_configure_args1;}
1899 # When interrupted or exit'd, cleanup temporary files, and complete
1900 # config.log. We remove comments because anyway the quotes in there
1901 # would cause problems or look ugly.
1902 # WARNING: Use '\'' to represent an apostrophe within the trap.
1903 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1904 trap 'exit_status=$?
1905 # Save into config.log some information that might help in debugging.
1909 $as_echo "## ---------------- ##
1910 ## Cache variables. ##
1911 ## ---------------- ##"
1913 # The following way of writing the cache mishandles newlines in values,
1915 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1916 eval ac_val=\$$ac_var
1920 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1921 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1924 _ | IFS | as_nl) ;; #(
1925 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1926 *) { eval $ac_var=; unset $ac_var;} ;;
1931 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1932 *${as_nl}ac_space=\ *)
1934 "s/'\''/'\''\\\\'\'''\''/g;
1935 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1938 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1945 $as_echo "## ----------------- ##
1946 ## Output variables. ##
1947 ## ----------------- ##"
1949 for ac_var in $ac_subst_vars
1951 eval ac_val=\$$ac_var
1953 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1955 $as_echo "$ac_var='\''$ac_val'\''"
1959 if test -n "$ac_subst_files"; then
1960 $as_echo "## ------------------- ##
1961 ## File substitutions. ##
1962 ## ------------------- ##"
1964 for ac_var in $ac_subst_files
1966 eval ac_val=\$$ac_var
1968 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1970 $as_echo "$ac_var='\''$ac_val'\''"
1975 if test -s confdefs.h; then
1976 $as_echo "## ----------- ##
1983 test "$ac_signal" != 0 &&
1984 $as_echo "$as_me: caught signal $ac_signal"
1985 $as_echo "$as_me: exit $exit_status"
1987 rm -f core *.core core.conftest.* &&
1988 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1991 for ac_signal in 1 2 13 15; do
1992 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1996 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1997 rm -f -r conftest* confdefs.h
1999 $as_echo "/* confdefs.h */" > confdefs.h
2001 # Predefined preprocessor variables.
2003 cat >>confdefs.h <<_ACEOF
2004 #define PACKAGE_NAME "$PACKAGE_NAME"
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2011 cat >>confdefs.h <<_ACEOF
2012 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2015 cat >>confdefs.h <<_ACEOF
2016 #define PACKAGE_STRING "$PACKAGE_STRING"
2019 cat >>confdefs.h <<_ACEOF
2020 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2023 cat >>confdefs.h <<_ACEOF
2024 #define PACKAGE_URL "$PACKAGE_URL"
2028 # Let the site file select an alternate cache file if it wants to.
2029 # Prefer an explicitly selected file to automatically selected ones.
2032 if test -n "$CONFIG_SITE"; then
2033 # We do not want a PATH search for config.site.
2034 case $CONFIG_SITE in #((
2035 -*) ac_site_file1=./$CONFIG_SITE;;
2036 */*) ac_site_file1=$CONFIG_SITE;;
2037 *) ac_site_file1=./$CONFIG_SITE;;
2039 elif test "x$prefix" != xNONE; then
2040 ac_site_file1=$prefix/share/config.site
2041 ac_site_file2=$prefix/etc/config.site
2043 ac_site_file1=$ac_default_prefix/share/config.site
2044 ac_site_file2=$ac_default_prefix/etc/config.site
2046 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2048 test "x$ac_site_file" = xNONE && continue
2049 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2051 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2052 sed 's/^/| /' "$ac_site_file" >&5
2054 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2056 as_fn_error $? "failed to load site script $ac_site_file
2057 See \`config.log' for more details" "$LINENO" 5; }
2061 if test -r "$cache_file"; then
2062 # Some versions of bash will fail to source /dev/null (special files
2063 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2064 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2066 $as_echo "$as_me: loading cache $cache_file" >&6;}
2068 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2069 *) . "./$cache_file";;
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2074 $as_echo "$as_me: creating cache $cache_file" >&6;}
2078 # Check that the precious variables saved in the cache have kept the same
2080 ac_cache_corrupted=false
2081 for ac_var in $ac_precious_vars; do
2082 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2083 eval ac_new_set=\$ac_env_${ac_var}_set
2084 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2085 eval ac_new_val=\$ac_env_${ac_var}_value
2086 case $ac_old_set,$ac_new_set in
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2089 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2090 ac_cache_corrupted=: ;;
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2093 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2094 ac_cache_corrupted=: ;;
2097 if test "x$ac_old_val" != "x$ac_new_val"; then
2098 # differences in whitespace do not lead to failure.
2099 ac_old_val_w=`echo x $ac_old_val`
2100 ac_new_val_w=`echo x $ac_new_val`
2101 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2103 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2104 ac_cache_corrupted=:
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2107 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2108 eval $ac_var=\$ac_old_val
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2111 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2113 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2116 # Pass precious variables to config.status.
2117 if test "$ac_new_set" = set; then
2119 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2120 *) ac_arg=$ac_var=$ac_new_val ;;
2122 case " $ac_configure_args " in
2123 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2124 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2128 if $ac_cache_corrupted; then
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2132 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2133 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2135 ## -------------------- ##
2136 ## Main body of script. ##
2137 ## -------------------- ##
2140 ac_cpp='$CPP $CPPFLAGS'
2141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2146 am__api_version='1.11'
2149 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2150 if test -f "$ac_dir/install-sh"; then
2152 ac_install_sh="$ac_aux_dir/install-sh -c"
2154 elif test -f "$ac_dir/install.sh"; then
2156 ac_install_sh="$ac_aux_dir/install.sh -c"
2158 elif test -f "$ac_dir/shtool"; then
2160 ac_install_sh="$ac_aux_dir/shtool install -c"
2164 if test -z "$ac_aux_dir"; then
2165 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2168 # These three variables are undocumented and unsupported,
2169 # and are intended to be withdrawn in a future Autoconf release.
2170 # They can cause serious problems if a builder's source tree is in a directory
2171 # whose full name contains unusual characters.
2172 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2173 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2174 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2177 # Find a good install program. We prefer a C program (faster),
2178 # so one script is as good as another. But avoid the broken or
2179 # incompatible versions:
2180 # SysV /etc/install, /usr/sbin/install
2181 # SunOS /usr/etc/install
2182 # IRIX /sbin/install
2184 # AmigaOS /C/install, which installs bootblocks on floppy discs
2185 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2186 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2187 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2188 # OS/2's system install, which has a completely different semantic
2189 # ./install, which can be erroneously created by make from ./install.sh.
2190 # Reject install programs that cannot install multiple files.
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2192 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2193 if test -z "$INSTALL"; then
2194 if ${ac_cv_path_install+:} false; then :
2195 $as_echo_n "(cached) " >&6
2197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201 test -z "$as_dir" && as_dir=.
2202 # Account for people who put trailing slashes in PATH elements.
2203 case $as_dir/ in #((
2204 ./ | .// | /[cC]/* | \
2205 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2206 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2209 # OSF1 and SCO ODT 3.0 have their own names for install.
2210 # Don't use installbsd from OSF since it installs stuff as root
2212 for ac_prog in ginstall scoinst install; do
2213 for ac_exec_ext in '' $ac_executable_extensions; do
2214 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2215 if test $ac_prog = install &&
2216 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2217 # AIX install. It has an incompatible calling convention.
2219 elif test $ac_prog = install &&
2220 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2221 # program-specific install script used by HP pwplus--don't use.
2224 rm -rf conftest.one conftest.two conftest.dir
2225 echo one > conftest.one
2226 echo two > conftest.two
2228 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2229 test -s conftest.one && test -s conftest.two &&
2230 test -s conftest.dir/conftest.one &&
2231 test -s conftest.dir/conftest.two
2233 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2246 rm -rf conftest.one conftest.two conftest.dir
2249 if test "${ac_cv_path_install+set}" = set; then
2250 INSTALL=$ac_cv_path_install
2252 # As a last resort, use the slow shell script. Don't cache a
2253 # value for INSTALL within a source directory, because that will
2254 # break other packages using the cache if that directory is
2255 # removed, or if the value is a relative name.
2256 INSTALL=$ac_install_sh
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2260 $as_echo "$INSTALL" >&6; }
2262 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2263 # It thinks the first close brace ends the variable substitution.
2264 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2266 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2268 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2271 $as_echo_n "checking whether build environment is sane... " >&6; }
2274 echo timestamp > conftest.file
2275 # Reject unsafe characters in $srcdir or the absolute working directory
2276 # name. Accept space and tab only in the latter.
2280 *[\\\"\#\$\&\'\`$am_lf]*)
2281 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2284 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2285 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2288 # Do `set' in a subshell so we don't clobber the current shell's
2289 # arguments. Must try -L first in case configure is actually a
2290 # symlink; some systems play weird games with the mod time of symlinks
2291 # (eg FreeBSD returns the mod time of the symlink's containing
2294 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2295 if test "$*" = "X"; then
2297 set X `ls -t "$srcdir/configure" conftest.file`
2300 if test "$*" != "X $srcdir/configure conftest.file" \
2301 && test "$*" != "X conftest.file $srcdir/configure"; then
2303 # If neither matched, then we have a broken ls. This can happen
2304 # if, for instance, CONFIG_SHELL is bash and it inherits a
2305 # broken ls alias from the environment. This has actually
2306 # happened. Such a system could not be considered "sane".
2307 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2308 alias in your environment" "$LINENO" 5
2311 test "$2" = conftest.file
2317 as_fn_error $? "newly created file is older than distributed files!
2318 Check your system clock" "$LINENO" 5
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2321 $as_echo "yes" >&6; }
2322 test "$program_prefix" != NONE &&
2323 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2324 # Use a double $ so make ignores it.
2325 test "$program_suffix" != NONE &&
2326 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2327 # Double any \ or $.
2328 # By default was `s,x,x', remove it if useless.
2329 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2330 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2332 # expand $ac_aux_dir to an absolute path
2333 am_aux_dir=`cd $ac_aux_dir && pwd`
2335 if test x"${MISSING+set}" != xset; then
2338 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2340 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2343 # Use eval to expand $SHELL
2344 if eval "$MISSING --run true"; then
2345 am_missing_run="$MISSING --run "
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2349 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2352 if test x"${install_sh}" != xset; then
2355 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2357 install_sh="\${SHELL} $am_aux_dir/install-sh"
2361 # Installed binaries are usually stripped using `strip' when the user
2362 # run `make install-strip'. However `strip' might not be the right
2363 # tool to use in cross-compilation environments, therefore Automake
2364 # will honor the `STRIP' environment variable to overrule this program.
2365 if test "$cross_compiling" != no; then
2366 if test -n "$ac_tool_prefix"; then
2367 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2368 set dummy ${ac_tool_prefix}strip; ac_word=$2
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2370 $as_echo_n "checking for $ac_word... " >&6; }
2371 if ${ac_cv_prog_STRIP+:} false; then :
2372 $as_echo_n "(cached) " >&6
2374 if test -n "$STRIP"; then
2375 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 test -z "$as_dir" && as_dir=.
2382 for ac_exec_ext in '' $ac_executable_extensions; do
2383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2384 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2394 STRIP=$ac_cv_prog_STRIP
2395 if test -n "$STRIP"; then
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2397 $as_echo "$STRIP" >&6; }
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2400 $as_echo "no" >&6; }
2405 if test -z "$ac_cv_prog_STRIP"; then
2407 # Extract the first word of "strip", so it can be a program name with args.
2408 set dummy strip; ac_word=$2
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2410 $as_echo_n "checking for $ac_word... " >&6; }
2411 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2412 $as_echo_n "(cached) " >&6
2414 if test -n "$ac_ct_STRIP"; then
2415 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 test -z "$as_dir" && as_dir=.
2422 for ac_exec_ext in '' $ac_executable_extensions; do
2423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2424 ac_cv_prog_ac_ct_STRIP="strip"
2425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2434 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2435 if test -n "$ac_ct_STRIP"; then
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2437 $as_echo "$ac_ct_STRIP" >&6; }
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2440 $as_echo "no" >&6; }
2443 if test "x$ac_ct_STRIP" = x; then
2446 case $cross_compiling:$ac_tool_warned in
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2450 ac_tool_warned=yes ;;
2455 STRIP="$ac_cv_prog_STRIP"
2459 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2462 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2463 if test -z "$MKDIR_P"; then
2464 if ${ac_cv_path_mkdir+:} false; then :
2465 $as_echo_n "(cached) " >&6
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2471 test -z "$as_dir" && as_dir=.
2472 for ac_prog in mkdir gmkdir; do
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2475 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2476 'mkdir (GNU coreutils) '* | \
2477 'mkdir (coreutils) '* | \
2478 'mkdir (fileutils) '4.1*)
2479 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2489 test -d ./--version && rmdir ./--version
2490 if test "${ac_cv_path_mkdir+set}" = set; then
2491 MKDIR_P="$ac_cv_path_mkdir -p"
2493 # As a last resort, use the slow shell script. Don't cache a
2494 # value for MKDIR_P within a source directory, because that will
2495 # break other packages using the cache if that directory is
2496 # removed, or if the value is a relative name.
2497 MKDIR_P="$ac_install_sh -d"
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2501 $as_echo "$MKDIR_P" >&6; }
2505 [\\/$]* | ?:[\\/]*) ;;
2506 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2509 for ac_prog in gawk mawk nawk awk
2511 # Extract the first word of "$ac_prog", so it can be a program name with args.
2512 set dummy $ac_prog; ac_word=$2
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2514 $as_echo_n "checking for $ac_word... " >&6; }
2515 if ${ac_cv_prog_AWK+:} false; then :
2516 $as_echo_n "(cached) " >&6
2518 if test -n "$AWK"; then
2519 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528 ac_cv_prog_AWK="$ac_prog"
2529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 if test -n "$AWK"; then
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2541 $as_echo "$AWK" >&6; }
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2544 $as_echo "no" >&6; }
2548 test -n "$AWK" && break
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2552 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2554 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2555 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2556 $as_echo_n "(cached) " >&6
2558 cat >conftest.make <<\_ACEOF
2561 @echo '@@@%%%=$(MAKE)=@@@%%%'
2563 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2564 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2566 eval ac_cv_prog_make_${ac_make}_set=yes;;
2568 eval ac_cv_prog_make_${ac_make}_set=no;;
2572 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2574 $as_echo "yes" >&6; }
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2578 $as_echo "no" >&6; }
2579 SET_MAKE="MAKE=${MAKE-make}"
2582 rm -rf .tst 2>/dev/null
2583 mkdir .tst 2>/dev/null
2584 if test -d .tst; then
2589 rmdir .tst 2>/dev/null
2591 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2592 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2593 # is not polluted with repeated "-I."
2594 am__isrc=' -I$(srcdir)'
2595 # test to see if srcdir already configured
2596 if test -f $srcdir/config.status; then
2597 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2601 # test whether we have cygpath
2602 if test -z "$CYGPATH_W"; then
2603 if (cygpath --version) >/dev/null 2>/dev/null; then
2604 CYGPATH_W='cygpath -w'
2611 # Define the identity of the package.
2616 cat >>confdefs.h <<_ACEOF
2617 #define PACKAGE "$PACKAGE"
2621 cat >>confdefs.h <<_ACEOF
2622 #define VERSION "$VERSION"
2625 # Some tools Automake needs.
2627 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2630 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2633 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2636 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2639 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2641 # We need awk for the "check" target. The system "awk" is bad on
2643 # Always define AMTAR for backward compatibility.
2645 AMTAR=${AMTAR-"${am_missing_run}tar"}
2647 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2655 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2656 # Check whether --enable-maintainer-mode was given.
2657 if test "${enable_maintainer_mode+set}" = set; then :
2658 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2660 USE_MAINTAINER_MODE=no
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2664 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2665 if test $USE_MAINTAINER_MODE = yes; then
2666 MAINTAINER_MODE_TRUE=
2667 MAINTAINER_MODE_FALSE='#'
2669 MAINTAINER_MODE_TRUE='#'
2670 MAINTAINER_MODE_FALSE=
2673 MAINT=$MAINTAINER_MODE_TRUE
2677 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2689 DEPDIR="${am__leading_dot}deps"
2691 ac_config_commands="$ac_config_commands depfiles"
2694 am_make=${MAKE-make}
2695 cat > confinc << 'END'
2697 @echo this is the am__doit target
2700 # If we don't find an include directive, just comment out the code.
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2702 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2706 # First try GNU make style include.
2707 echo "include confinc" > confmf
2708 # Ignore all kinds of additional output from `make'.
2709 case `$am_make -s -f confmf 2> /dev/null` in #(
2710 *the\ am__doit\ target*)
2716 # Now try BSD make style include.
2717 if test "$am__include" = "#"; then
2718 echo '.include "confinc"' > confmf
2719 case `$am_make -s -f confmf 2> /dev/null` in #(
2720 *the\ am__doit\ target*)
2721 am__include=.include
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2730 $as_echo "$_am_result" >&6; }
2731 rm -f confinc confmf
2733 # Check whether --enable-dependency-tracking was given.
2734 if test "${enable_dependency_tracking+set}" = set; then :
2735 enableval=$enable_dependency_tracking;
2738 if test "x$enable_dependency_tracking" != xno; then
2739 am_depcomp="$ac_aux_dir/depcomp"
2742 if test "x$enable_dependency_tracking" != xno; then
2752 ac_cpp='$CPP $CPPFLAGS'
2753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2756 if test -n "$ac_tool_prefix"; then
2757 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2758 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2760 $as_echo_n "checking for $ac_word... " >&6; }
2761 if ${ac_cv_prog_CC+:} false; then :
2762 $as_echo_n "(cached) " >&6
2764 if test -n "$CC"; then
2765 ac_cv_prog_CC="$CC" # Let the user override the test.
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2774 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 if test -n "$CC"; then
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2787 $as_echo "$CC" >&6; }
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2790 $as_echo "no" >&6; }
2795 if test -z "$ac_cv_prog_CC"; then
2797 # Extract the first word of "gcc", so it can be a program name with args.
2798 set dummy gcc; ac_word=$2
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2800 $as_echo_n "checking for $ac_word... " >&6; }
2801 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2802 $as_echo_n "(cached) " >&6
2804 if test -n "$ac_ct_CC"; then
2805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 test -z "$as_dir" && as_dir=.
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2814 ac_cv_prog_ac_ct_CC="gcc"
2815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2825 if test -n "$ac_ct_CC"; then
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2827 $as_echo "$ac_ct_CC" >&6; }
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2830 $as_echo "no" >&6; }
2833 if test "x$ac_ct_CC" = x; then
2836 case $cross_compiling:$ac_tool_warned in
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2840 ac_tool_warned=yes ;;
2848 if test -z "$CC"; then
2849 if test -n "$ac_tool_prefix"; then
2850 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2851 set dummy ${ac_tool_prefix}cc; ac_word=$2
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853 $as_echo_n "checking for $ac_word... " >&6; }
2854 if ${ac_cv_prog_CC+:} false; then :
2855 $as_echo_n "(cached) " >&6
2857 if test -n "$CC"; then
2858 ac_cv_prog_CC="$CC" # Let the user override the test.
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2867 ac_cv_prog_CC="${ac_tool_prefix}cc"
2868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 if test -n "$CC"; then
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2880 $as_echo "$CC" >&6; }
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2889 if test -z "$CC"; then
2890 # Extract the first word of "cc", so it can be a program name with args.
2891 set dummy cc; ac_word=$2
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2893 $as_echo_n "checking for $ac_word... " >&6; }
2894 if ${ac_cv_prog_CC+:} false; then :
2895 $as_echo_n "(cached) " >&6
2897 if test -n "$CC"; then
2898 ac_cv_prog_CC="$CC" # Let the user override the test.
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 test -z "$as_dir" && as_dir=.
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2908 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2909 ac_prog_rejected=yes
2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 if test $ac_prog_rejected = yes; then
2921 # We found a bogon in the path, so make sure we never use it.
2922 set dummy $ac_cv_prog_CC
2924 if test $# != 0; then
2925 # We chose a different compiler from the bogus one.
2926 # However, it has the same basename, so the bogon will be chosen
2927 # first if we set CC to just the basename; use the full file name.
2929 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2935 if test -n "$CC"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2937 $as_echo "$CC" >&6; }
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 $as_echo "no" >&6; }
2945 if test -z "$CC"; then
2946 if test -n "$ac_tool_prefix"; then
2947 for ac_prog in cl.exe
2949 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2950 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if ${ac_cv_prog_CC+:} false; then :
2954 $as_echo_n "(cached) " >&6
2956 if test -n "$CC"; then
2957 ac_cv_prog_CC="$CC" # Let the user override the test.
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 if test -n "$CC"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2979 $as_echo "$CC" >&6; }
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2986 test -n "$CC" && break
2989 if test -z "$CC"; then
2991 for ac_prog in cl.exe
2993 # Extract the first word of "$ac_prog", so it can be a program name with args.
2994 set dummy $ac_prog; ac_word=$2
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2998 $as_echo_n "(cached) " >&6
3000 if test -n "$ac_ct_CC"; then
3001 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 test -z "$as_dir" && as_dir=.
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3010 ac_cv_prog_ac_ct_CC="$ac_prog"
3011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3021 if test -n "$ac_ct_CC"; then
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3023 $as_echo "$ac_ct_CC" >&6; }
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 $as_echo "no" >&6; }
3030 test -n "$ac_ct_CC" && break
3033 if test "x$ac_ct_CC" = x; then
3036 case $cross_compiling:$ac_tool_warned in
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3040 ac_tool_warned=yes ;;
3049 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3051 as_fn_error $? "no acceptable C compiler found in \$PATH
3052 See \`config.log' for more details" "$LINENO" 5; }
3054 # Provide some information about the compiler.
3055 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3058 for ac_option in --version -v -V -qversion; do
3059 { { ac_try="$ac_compiler $ac_option >&5"
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3065 $as_echo "$ac_try_echo"; } >&5
3066 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3068 if test -s conftest.err; then
3070 ... rest of stderr output deleted ...
3071 10q' conftest.err >conftest.er1
3072 cat conftest.er1 >&5
3074 rm -f conftest.er1 conftest.err
3075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3076 test $ac_status = 0; }
3079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3080 /* end confdefs.h. */
3090 ac_clean_files_save=$ac_clean_files
3091 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3092 # Try to create an executable without -o first, disregard a.out.
3093 # It will help us diagnose broken compilers, and finding out an intuition
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3096 $as_echo_n "checking whether the C compiler works... " >&6; }
3097 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3099 # The possible output files:
3100 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3103 for ac_file in $ac_files
3106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3107 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3112 if { { ac_try="$ac_link_default"
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118 $as_echo "$ac_try_echo"; } >&5
3119 (eval "$ac_link_default") 2>&5
3121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122 test $ac_status = 0; }; then :
3123 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3124 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3125 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3126 # so that the user can short-circuit this test for compilers unknown to
3128 for ac_file in $ac_files ''
3130 test -f "$ac_file" || continue
3132 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3135 # We found the default executable, but exeext='' is most
3139 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3141 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3143 # We set ac_cv_exeext here because the later test for it is not
3144 # safe: cross compilers may not add the suffix if given an `-o'
3145 # argument, so we may need to know it at that point already.
3146 # Even if this section looks crufty: it has the advantage of
3153 test "$ac_cv_exeext" = no && ac_cv_exeext=
3158 if test -z "$ac_file"; then :
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 $as_echo "no" >&6; }
3161 $as_echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166 as_fn_error 77 "C compiler cannot create executables
3167 See \`config.log' for more details" "$LINENO" 5; }
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3170 $as_echo "yes" >&6; }
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3173 $as_echo_n "checking for C compiler default output file name... " >&6; }
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3175 $as_echo "$ac_file" >&6; }
3176 ac_exeext=$ac_cv_exeext
3178 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3179 ac_clean_files=$ac_clean_files_save
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3181 $as_echo_n "checking for suffix of executables... " >&6; }
3182 if { { ac_try="$ac_link"
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3188 $as_echo "$ac_try_echo"; } >&5
3189 (eval "$ac_link") 2>&5
3191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3192 test $ac_status = 0; }; then :
3193 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3194 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3195 # work properly (i.e., refer to `conftest.exe'), while it won't with
3197 for ac_file in conftest.exe conftest conftest.*; do
3198 test -f "$ac_file" || continue
3200 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3201 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3209 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3210 See \`config.log' for more details" "$LINENO" 5; }
3212 rm -f conftest conftest$ac_cv_exeext
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3214 $as_echo "$ac_cv_exeext" >&6; }
3216 rm -f conftest.$ac_ext
3217 EXEEXT=$ac_cv_exeext
3219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220 /* end confdefs.h. */
3225 FILE *f = fopen ("conftest.out", "w");
3226 return ferror (f) || fclose (f) != 0;
3232 ac_clean_files="$ac_clean_files conftest.out"
3233 # Check that the compiler produces executables we can run. If not, either
3234 # the compiler is broken, or we cross compile.
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3236 $as_echo_n "checking whether we are cross compiling... " >&6; }
3237 if test "$cross_compiling" != yes; then
3238 { { ac_try="$ac_link"
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244 $as_echo "$ac_try_echo"; } >&5
3245 (eval "$ac_link") 2>&5
3247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248 test $ac_status = 0; }
3249 if { ac_try='./conftest$ac_cv_exeext'
3250 { { case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255 $as_echo "$ac_try_echo"; } >&5
3256 (eval "$ac_try") 2>&5
3258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259 test $ac_status = 0; }; }; then
3262 if test "$cross_compiling" = maybe; then
3265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3267 as_fn_error $? "cannot run C compiled programs.
3268 If you meant to cross compile, use \`--host'.
3269 See \`config.log' for more details" "$LINENO" 5; }
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3274 $as_echo "$cross_compiling" >&6; }
3276 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3277 ac_clean_files=$ac_clean_files_save
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3279 $as_echo_n "checking for suffix of object files... " >&6; }
3280 if ${ac_cv_objext+:} false; then :
3281 $as_echo_n "(cached) " >&6
3283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3284 /* end confdefs.h. */
3294 rm -f conftest.o conftest.obj
3295 if { { ac_try="$ac_compile"
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301 $as_echo "$ac_try_echo"; } >&5
3302 (eval "$ac_compile") 2>&5
3304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305 test $ac_status = 0; }; then :
3306 for ac_file in conftest.o conftest.obj conftest.*; do
3307 test -f "$ac_file" || continue;
3309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3310 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3315 $as_echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320 as_fn_error $? "cannot compute suffix of object files: cannot compile
3321 See \`config.log' for more details" "$LINENO" 5; }
3323 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3326 $as_echo "$ac_cv_objext" >&6; }
3327 OBJEXT=$ac_cv_objext
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3330 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3331 if ${ac_cv_c_compiler_gnu+:} false; then :
3332 $as_echo_n "(cached) " >&6
3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h. */
3348 if ac_fn_c_try_compile "$LINENO"; then :
3353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3358 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3359 if test $ac_compiler_gnu = yes; then
3364 ac_test_CFLAGS=${CFLAGS+set}
3365 ac_save_CFLAGS=$CFLAGS
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3367 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3368 if ${ac_cv_prog_cc_g+:} false; then :
3369 $as_echo_n "(cached) " >&6
3371 ac_save_c_werror_flag=$ac_c_werror_flag
3372 ac_c_werror_flag=yes
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h. */
3386 if ac_fn_c_try_compile "$LINENO"; then :
3390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391 /* end confdefs.h. */
3401 if ac_fn_c_try_compile "$LINENO"; then :
3404 ac_c_werror_flag=$ac_save_c_werror_flag
3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407 /* end confdefs.h. */
3417 if ac_fn_c_try_compile "$LINENO"; then :
3420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3425 ac_c_werror_flag=$ac_save_c_werror_flag
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3428 $as_echo "$ac_cv_prog_cc_g" >&6; }
3429 if test "$ac_test_CFLAGS" = set; then
3430 CFLAGS=$ac_save_CFLAGS
3431 elif test $ac_cv_prog_cc_g = yes; then
3432 if test "$GCC" = yes; then
3438 if test "$GCC" = yes; then
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3445 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3446 if ${ac_cv_prog_cc_c89+:} false; then :
3447 $as_echo_n "(cached) " >&6
3449 ac_cv_prog_cc_c89=no
3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h. */
3455 #include <sys/types.h>
3456 #include <sys/stat.h>
3457 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3458 struct buf { int x; };
3459 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3460 static char *e (p, i)
3466 static char *f (char * (*g) (char **, int), char **p, ...)
3471 s = g (p, va_arg (v,int));
3476 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3477 function prototypes and stuff, but not '\xHH' hex character constants.
3478 These don't provoke an error unfortunately, instead are silently treated
3479 as 'x'. The following induces an error, until -std is added to get
3480 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3481 array size at least. It's necessary to write '\x00'==0 to get something
3482 that's true only with -std. */
3483 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3485 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3486 inside strings and character constants. */
3488 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3490 int test (int i, double x);
3491 struct s1 {int (*f) (int a);};
3492 struct s2 {int (*f) (double a);};
3493 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3499 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3504 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3505 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3507 CC="$ac_save_CC $ac_arg"
3508 if ac_fn_c_try_compile "$LINENO"; then :
3509 ac_cv_prog_cc_c89=$ac_arg
3511 rm -f core conftest.err conftest.$ac_objext
3512 test "x$ac_cv_prog_cc_c89" != "xno" && break
3514 rm -f conftest.$ac_ext
3519 case "x$ac_cv_prog_cc_c89" in
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3522 $as_echo "none needed" >&6; } ;;
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3525 $as_echo "unsupported" >&6; } ;;
3527 CC="$CC $ac_cv_prog_cc_c89"
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3529 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3531 if test "x$ac_cv_prog_cc_c89" != xno; then :
3536 ac_cpp='$CPP $CPPFLAGS'
3537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3541 depcc="$CC" am_compiler_list=
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3544 $as_echo_n "checking dependency style of $depcc... " >&6; }
3545 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3546 $as_echo_n "(cached) " >&6
3548 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3549 # We make a subdir and do the tests there. Otherwise we can end up
3550 # making bogus files that we don't know about and never remove. For
3551 # instance it was reported that on HP-UX the gcc test will end up
3552 # making a dummy file named `D' -- because `-MD' means `put the output
3555 # Copy depcomp to subdir because otherwise we won't find it if we're
3556 # using a relative directory.
3557 cp "$am_depcomp" conftest.dir
3559 # We will build objects and dependencies in a subdirectory because
3560 # it helps to detect inapplicable dependency modes. For instance
3561 # both Tru64's cc and ICC support -MD to output dependencies as a
3562 # side effect of compilation, but ICC will put the dependencies in
3563 # the current directory while Tru64 will put them in the object
3567 am_cv_CC_dependencies_compiler_type=none
3568 if test "$am_compiler_list" = ""; then
3569 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3572 case " $depcc " in #(
3573 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3576 for depmode in $am_compiler_list; do
3577 # Setup a source with many dependencies, because some compilers
3578 # like to wrap large dependency lists on column 80 (with \), and
3579 # we should not choose a depcomp mode which is confused by this.
3581 # We need to recreate these files for each test, as the compiler may
3582 # overwrite some of them when testing with obscure command lines.
3583 # This happens at least with the AIX C compiler.
3585 for i in 1 2 3 4 5 6; do
3586 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3587 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3588 # Solaris 8's {/usr,}/bin/sh.
3589 touch sub/conftst$i.h
3591 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3593 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3594 # mode. It turns out that the SunPro C++ compiler does not properly
3595 # handle `-M -o', and we need to detect this. Also, some Intel
3596 # versions had trouble with output in subdirs
3597 am__obj=sub/conftest.${OBJEXT-o}
3598 am__minus_obj="-o $am__obj"
3601 # This depmode causes a compiler race in universal mode.
3602 test "$am__universal" = false || continue
3605 # after this tag, mechanisms are not by side-effect, so they'll
3606 # only be used when explicitly requested
3607 if test "x$enable_dependency_tracking" = xyes; then
3613 msvisualcpp | msvcmsys)
3614 # This compiler won't grok `-c -o', but also, the minuso test has
3615 # not run yet. These depmodes are late enough in the game, and
3616 # so weak that their functioning should not be impacted.
3617 am__obj=conftest.${OBJEXT-o}
3622 if depmode=$depmode \
3623 source=sub/conftest.c object=$am__obj \
3624 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3625 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3626 >/dev/null 2>conftest.err &&
3627 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3628 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3629 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3630 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3631 # icc doesn't choke on unknown options, it will just issue warnings
3632 # or remarks (even with -Werror). So we grep stderr for any message
3633 # that says an option was ignored or not supported.
3634 # When given -MP, icc 7.0 and 7.1 complain thusly:
3635 # icc: Command line warning: ignoring option '-M'; no argument required
3636 # The diagnosis changed in icc 8.0:
3637 # icc: Command line remark: option '-MP' not supported
3638 if (grep 'ignoring option' conftest.err ||
3639 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3640 am_cv_CC_dependencies_compiler_type=$depmode
3649 am_cv_CC_dependencies_compiler_type=none
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3654 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3655 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3658 test "x$enable_dependency_tracking" != xno \
3659 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3661 am__fastdepCC_FALSE='#'
3663 am__fastdepCC_TRUE='#'
3664 am__fastdepCC_FALSE=
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3669 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3670 if ${ac_cv_prog_cc_c99+:} false; then :
3671 $as_echo_n "(cached) " >&6
3673 ac_cv_prog_cc_c99=no
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3678 #include <stdbool.h>
3683 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3684 #define debug(...) fprintf (stderr, __VA_ARGS__)
3685 #define showlist(...) puts (#__VA_ARGS__)
3686 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3688 test_varargs_macros (void)
3693 debug ("X = %d\n", x);
3694 showlist (The first, second, and third items.);
3695 report (x>y, "x is %d but y is %d", x, y);
3698 // Check long long types.
3699 #define BIG64 18446744073709551615ull
3700 #define BIG32 4294967295ul
3701 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3703 your preprocessor is broken;
3707 your preprocessor is broken;
3709 static long long int bignum = -9223372036854775807LL;
3710 static unsigned long long int ubignum = BIG64;
3712 struct incomplete_array
3720 const wchar_t *name;
3724 typedef const char *ccp;
3727 test_restrict (ccp restrict text)
3729 // See if C++-style comments work.
3730 // Iterate through items via the restricted pointer.
3731 // Also check for declarations in for loops.
3732 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3737 // Check varargs and va_copy.
3739 test_varargs (const char *format, ...)
3742 va_start (args, format);
3744 va_copy (args_copy, args);
3755 str = va_arg (args_copy, const char *);
3758 number = va_arg (args_copy, int);
3761 fnumber = va_arg (args_copy, double);
3776 _Bool success = false;
3779 if (test_restrict ("String literal") == 0)
3781 char *restrict newvar = "Another string";
3784 test_varargs ("s, d' f .", "string", 65, 34.234);
3785 test_varargs_macros ();
3787 // Check flexible array members.
3788 struct incomplete_array *ia =
3789 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3791 for (int i = 0; i < ia->datasize; ++i)
3792 ia->data[i] = i * 1.234;
3794 // Check named initializers.
3795 struct named_init ni = {
3797 .name = L"Test wide string",
3798 .average = 543.34343,
3803 int dynamic_array[ni.number];
3804 dynamic_array[ni.number - 1] = 543;
3806 // work around unused variable warnings
3807 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3808 || dynamic_array[ni.number - 1] != 543);
3814 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3816 CC="$ac_save_CC $ac_arg"
3817 if ac_fn_c_try_compile "$LINENO"; then :
3818 ac_cv_prog_cc_c99=$ac_arg
3820 rm -f core conftest.err conftest.$ac_objext
3821 test "x$ac_cv_prog_cc_c99" != "xno" && break
3823 rm -f conftest.$ac_ext
3828 case "x$ac_cv_prog_cc_c99" in
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3831 $as_echo "none needed" >&6; } ;;
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3834 $as_echo "unsupported" >&6; } ;;
3836 CC="$CC $ac_cv_prog_cc_c99"
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3838 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3840 if test "x$ac_cv_prog_cc_c99" != xno; then :
3847 ac_cpp='$CPP $CPPFLAGS'
3848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3852 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3853 # On Suns, sometimes $CPP names a directory.
3854 if test -n "$CPP" && test -d "$CPP"; then
3857 if test -z "$CPP"; then
3858 if ${ac_cv_prog_CPP+:} false; then :
3859 $as_echo_n "(cached) " >&6
3861 # Double quotes because CPP needs to be expanded
3862 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3865 for ac_c_preproc_warn_flag in '' yes
3867 # Use a header file that comes with gcc, so configuring glibc
3868 # with a fresh cross-compiler works.
3869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3870 # <limits.h> exists even on freestanding compilers.
3871 # On the NeXT, cc -E runs the code through the compiler's parser,
3872 # not just through cpp. "Syntax error" is here to catch this case.
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3876 # include <limits.h>
3878 # include <assert.h>
3882 if ac_fn_c_try_cpp "$LINENO"; then :
3885 # Broken: fails on valid input.
3888 rm -f conftest.err conftest.i conftest.$ac_ext
3890 # OK, works on sane cases. Now check whether nonexistent headers
3891 # can be detected and how.
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h. */
3894 #include <ac_nonexistent.h>
3896 if ac_fn_c_try_cpp "$LINENO"; then :
3897 # Broken: success on invalid input.
3900 # Passes both tests.
3904 rm -f conftest.err conftest.i conftest.$ac_ext
3907 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3908 rm -f conftest.i conftest.err conftest.$ac_ext
3909 if $ac_preproc_ok; then :
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3922 $as_echo "$CPP" >&6; }
3924 for ac_c_preproc_warn_flag in '' yes
3926 # Use a header file that comes with gcc, so configuring glibc
3927 # with a fresh cross-compiler works.
3928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3929 # <limits.h> exists even on freestanding compilers.
3930 # On the NeXT, cc -E runs the code through the compiler's parser,
3931 # not just through cpp. "Syntax error" is here to catch this case.
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3935 # include <limits.h>
3937 # include <assert.h>
3941 if ac_fn_c_try_cpp "$LINENO"; then :
3944 # Broken: fails on valid input.
3947 rm -f conftest.err conftest.i conftest.$ac_ext
3949 # OK, works on sane cases. Now check whether nonexistent headers
3950 # can be detected and how.
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3953 #include <ac_nonexistent.h>
3955 if ac_fn_c_try_cpp "$LINENO"; then :
3956 # Broken: success on invalid input.
3959 # Passes both tests.
3963 rm -f conftest.err conftest.i conftest.$ac_ext
3966 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3967 rm -f conftest.i conftest.err conftest.$ac_ext
3968 if $ac_preproc_ok; then :
3971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3973 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3974 See \`config.log' for more details" "$LINENO" 5; }
3978 ac_cpp='$CPP $CPPFLAGS'
3979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3985 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3986 if ${ac_cv_path_GREP+:} false; then :
3987 $as_echo_n "(cached) " >&6
3989 if test -z "$GREP"; then
3990 ac_path_GREP_found=false
3991 # Loop through the user's path and test for each of PROGNAME-LIST
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3996 test -z "$as_dir" && as_dir=.
3997 for ac_prog in grep ggrep; do
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4000 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4001 # Check for GNU ac_path_GREP and select it if it is found.
4002 # Check for GNU $ac_path_GREP
4003 case `"$ac_path_GREP" --version 2>&1` in
4005 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4008 $as_echo_n 0123456789 >"conftest.in"
4011 cat "conftest.in" "conftest.in" >"conftest.tmp"
4012 mv "conftest.tmp" "conftest.in"
4013 cp "conftest.in" "conftest.nl"
4014 $as_echo 'GREP' >> "conftest.nl"
4015 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4016 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4017 as_fn_arith $ac_count + 1 && ac_count=$as_val
4018 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4019 # Best one so far, save it but keep looking for a better one
4020 ac_cv_path_GREP="$ac_path_GREP"
4021 ac_path_GREP_max=$ac_count
4023 # 10*(2^10) chars as input seems more than enough
4024 test $ac_count -gt 10 && break
4026 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4029 $ac_path_GREP_found && break 3
4034 if test -z "$ac_cv_path_GREP"; then
4035 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4038 ac_cv_path_GREP=$GREP
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4043 $as_echo "$ac_cv_path_GREP" >&6; }
4044 GREP="$ac_cv_path_GREP"
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4048 $as_echo_n "checking for egrep... " >&6; }
4049 if ${ac_cv_path_EGREP+:} false; then :
4050 $as_echo_n "(cached) " >&6
4052 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4053 then ac_cv_path_EGREP="$GREP -E"
4055 if test -z "$EGREP"; then
4056 ac_path_EGREP_found=false
4057 # Loop through the user's path and test for each of PROGNAME-LIST
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4062 test -z "$as_dir" && as_dir=.
4063 for ac_prog in egrep; do
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4066 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4067 # Check for GNU ac_path_EGREP and select it if it is found.
4068 # Check for GNU $ac_path_EGREP
4069 case `"$ac_path_EGREP" --version 2>&1` in
4071 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4074 $as_echo_n 0123456789 >"conftest.in"
4077 cat "conftest.in" "conftest.in" >"conftest.tmp"
4078 mv "conftest.tmp" "conftest.in"
4079 cp "conftest.in" "conftest.nl"
4080 $as_echo 'EGREP' >> "conftest.nl"
4081 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4082 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4083 as_fn_arith $ac_count + 1 && ac_count=$as_val
4084 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4085 # Best one so far, save it but keep looking for a better one
4086 ac_cv_path_EGREP="$ac_path_EGREP"
4087 ac_path_EGREP_max=$ac_count
4089 # 10*(2^10) chars as input seems more than enough
4090 test $ac_count -gt 10 && break
4092 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4095 $ac_path_EGREP_found && break 3
4100 if test -z "$ac_cv_path_EGREP"; then
4101 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4104 ac_cv_path_EGREP=$EGREP
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4110 $as_echo "$ac_cv_path_EGREP" >&6; }
4111 EGREP="$ac_cv_path_EGREP"
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4115 $as_echo_n "checking for ANSI C header files... " >&6; }
4116 if ${ac_cv_header_stdc+:} false; then :
4117 $as_echo_n "(cached) " >&6
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4134 if ac_fn_c_try_compile "$LINENO"; then :
4135 ac_cv_header_stdc=yes
4137 ac_cv_header_stdc=no
4139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 if test $ac_cv_header_stdc = yes; then
4142 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4149 $EGREP "memchr" >/dev/null 2>&1; then :
4152 ac_cv_header_stdc=no
4158 if test $ac_cv_header_stdc = yes; then
4159 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4166 $EGREP "free" >/dev/null 2>&1; then :
4169 ac_cv_header_stdc=no
4175 if test $ac_cv_header_stdc = yes; then
4176 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4177 if test "$cross_compiling" = yes; then :
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4184 #if ((' ' & 0x0FF) == 0x020)
4185 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4186 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4188 # define ISLOWER(c) \
4189 (('a' <= (c) && (c) <= 'i') \
4190 || ('j' <= (c) && (c) <= 'r') \
4191 || ('s' <= (c) && (c) <= 'z'))
4192 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4195 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4200 for (i = 0; i < 256; i++)
4201 if (XOR (islower (i), ISLOWER (i))
4202 || toupper (i) != TOUPPER (i))
4207 if ac_fn_c_try_run "$LINENO"; then :
4210 ac_cv_header_stdc=no
4212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4213 conftest.$ac_objext conftest.beam conftest.$ac_ext
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4219 $as_echo "$ac_cv_header_stdc" >&6; }
4220 if test $ac_cv_header_stdc = yes; then
4222 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4226 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4227 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4228 inttypes.h stdint.h unistd.h
4230 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4231 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4233 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4234 cat >>confdefs.h <<_ACEOF
4235 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4245 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4246 if test -n "$ac_tool_prefix"; then
4247 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4248 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4250 $as_echo_n "checking for $ac_word... " >&6; }
4251 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4252 $as_echo_n "(cached) " >&6
4256 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 test -z "$as_dir" && as_dir=.
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4266 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4277 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4278 if test -n "$PKG_CONFIG"; then
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4280 $as_echo "$PKG_CONFIG" >&6; }
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283 $as_echo "no" >&6; }
4288 if test -z "$ac_cv_path_PKG_CONFIG"; then
4289 ac_pt_PKG_CONFIG=$PKG_CONFIG
4290 # Extract the first word of "pkg-config", so it can be a program name with args.
4291 set dummy pkg-config; ac_word=$2
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4293 $as_echo_n "checking for $ac_word... " >&6; }
4294 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4295 $as_echo_n "(cached) " >&6
4297 case $ac_pt_PKG_CONFIG in
4299 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 test -z "$as_dir" && as_dir=.
4307 for ac_exec_ext in '' $ac_executable_extensions; do
4308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4309 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4320 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4321 if test -n "$ac_pt_PKG_CONFIG"; then
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4323 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4326 $as_echo "no" >&6; }
4329 if test "x$ac_pt_PKG_CONFIG" = x; then
4332 case $cross_compiling:$ac_tool_warned in
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4336 ac_tool_warned=yes ;;
4338 PKG_CONFIG=$ac_pt_PKG_CONFIG
4341 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4345 if test -n "$PKG_CONFIG"; then
4346 _pkg_min_version=0.9.0
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4348 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4349 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4351 $as_echo "yes" >&6; }
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 $as_echo "no" >&6; }
4359 # Make sure we can run config.sub.
4360 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4361 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4364 $as_echo_n "checking build system type... " >&6; }
4365 if ${ac_cv_build+:} false; then :
4366 $as_echo_n "(cached) " >&6
4368 ac_build_alias=$build_alias
4369 test "x$ac_build_alias" = x &&
4370 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4371 test "x$ac_build_alias" = x &&
4372 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4373 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4374 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4378 $as_echo "$ac_cv_build" >&6; }
4379 case $ac_cv_build in
4381 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4384 ac_save_IFS=$IFS; IFS='-'
4390 # Remember, the first character of IFS is used to create $*,
4391 # except with old shells:
4394 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4398 $as_echo_n "checking host system type... " >&6; }
4399 if ${ac_cv_host+:} false; then :
4400 $as_echo_n "(cached) " >&6
4402 if test "x$host_alias" = x; then
4403 ac_cv_host=$ac_cv_build
4405 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4406 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4411 $as_echo "$ac_cv_host" >&6; }
4414 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4417 ac_save_IFS=$IFS; IFS='-'
4423 # Remember, the first character of IFS is used to create $*,
4424 # except with old shells:
4427 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4431 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4432 if ${ac_cv_path_SED+:} false; then :
4433 $as_echo_n "(cached) " >&6
4435 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4436 for ac_i in 1 2 3 4 5 6 7; do
4437 ac_script="$ac_script$as_nl$ac_script"
4439 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4440 { ac_script=; unset ac_script;}
4441 if test -z "$SED"; then
4442 ac_path_SED_found=false
4443 # Loop through the user's path and test for each of PROGNAME-LIST
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 test -z "$as_dir" && as_dir=.
4449 for ac_prog in sed gsed; do
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4452 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4453 # Check for GNU ac_path_SED and select it if it is found.
4454 # Check for GNU $ac_path_SED
4455 case `"$ac_path_SED" --version 2>&1` in
4457 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4460 $as_echo_n 0123456789 >"conftest.in"
4463 cat "conftest.in" "conftest.in" >"conftest.tmp"
4464 mv "conftest.tmp" "conftest.in"
4465 cp "conftest.in" "conftest.nl"
4466 $as_echo '' >> "conftest.nl"
4467 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4468 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4469 as_fn_arith $ac_count + 1 && ac_count=$as_val
4470 if test $ac_count -gt ${ac_path_SED_max-0}; then
4471 # Best one so far, save it but keep looking for a better one
4472 ac_cv_path_SED="$ac_path_SED"
4473 ac_path_SED_max=$ac_count
4475 # 10*(2^10) chars as input seems more than enough
4476 test $ac_count -gt 10 && break
4478 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4481 $ac_path_SED_found && break 3
4486 if test -z "$ac_cv_path_SED"; then
4487 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4495 $as_echo "$ac_cv_path_SED" >&6; }
4496 SED="$ac_cv_path_SED"
4503 if test "x$GCC" = xyes ; then
4504 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4505 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4506 -Wbad-function-cast -Wformat=2"
4507 case `$CC -dumpversion` in
4509 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4513 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4514 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4520 if test "x$SUNCC" = "xyes"; then
4527 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4531 # Check whether --enable-strict-compilation was given.
4532 if test "${enable_strict_compilation+set}" = set; then :
4533 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4538 if test "x$STRICT_COMPILE" = "xyes"; then
4539 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4540 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4546 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4547 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4553 if test "x$GCC" = xyes ; then
4554 STRICT_CFLAGS="-pedantic -Werror"
4555 elif test "x$SUNCC" = "xyes"; then
4556 STRICT_CFLAGS="-errwarn"
4557 elif test "x$INTELCC" = "xyes"; then
4558 STRICT_CFLAGS="-Werror"
4561 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4566 cat >>confdefs.h <<_ACEOF
4567 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4570 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4571 if test "x$PVM" = "x"; then
4575 cat >>confdefs.h <<_ACEOF
4576 #define PACKAGE_VERSION_MINOR $PVM
4579 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4580 if test "x$PVP" = "x"; then
4584 cat >>confdefs.h <<_ACEOF
4585 #define PACKAGE_VERSION_PATCHLEVEL $PVP
4590 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4591 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4592 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4593 echo 'git directory not found: installing possibly empty changelog.' >&2)"
4598 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4599 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4600 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4601 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4602 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4609 if test x$APP_MAN_SUFFIX = x ; then
4612 if test x$APP_MAN_DIR = x ; then
4613 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4616 if test x$LIB_MAN_SUFFIX = x ; then
4619 if test x$LIB_MAN_DIR = x ; then
4620 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4623 if test x$FILE_MAN_SUFFIX = x ; then
4625 solaris*) FILE_MAN_SUFFIX=4 ;;
4626 *) FILE_MAN_SUFFIX=5 ;;
4629 if test x$FILE_MAN_DIR = x ; then
4630 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4633 if test x$MISC_MAN_SUFFIX = x ; then
4635 solaris*) MISC_MAN_SUFFIX=5 ;;
4636 *) MISC_MAN_SUFFIX=7 ;;
4639 if test x$MISC_MAN_DIR = x ; then
4640 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4643 if test x$DRIVER_MAN_SUFFIX = x ; then
4645 solaris*) DRIVER_MAN_SUFFIX=7 ;;
4646 *) DRIVER_MAN_SUFFIX=4 ;;
4649 if test x$DRIVER_MAN_DIR = x ; then
4650 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4653 if test x$ADMIN_MAN_SUFFIX = x ; then
4655 solaris*) ADMIN_MAN_SUFFIX=1m ;;
4656 *) ADMIN_MAN_SUFFIX=8 ;;
4659 if test x$ADMIN_MAN_DIR = x ; then
4660 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4677 XORG_MAN_PAGE="X Version 11"
4680 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4681 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4682 -e 's|__xservername__|Xorg|g' \
4683 -e 's|__xconfigfile__|xorg.conf|g' \
4684 -e 's|__projectroot__|\$(prefix)|g' \
4685 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
4686 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4687 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4688 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4689 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4690 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4691 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4695 # Check whether --enable-silent-rules was given.
4696 if test "${enable_silent_rules+set}" = set; then :
4697 enableval=$enable_silent_rules;
4700 case $enable_silent_rules in
4701 yes) AM_DEFAULT_VERBOSITY=0;;
4702 no) AM_DEFAULT_VERBOSITY=1;;
4703 *) AM_DEFAULT_VERBOSITY=0;;
4709 ac_config_headers="$ac_config_headers config.h"
4712 for ac_prog in 'bison -y' byacc
4714 # Extract the first word of "$ac_prog", so it can be a program name with args.
4715 set dummy $ac_prog; ac_word=$2
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4717 $as_echo_n "checking for $ac_word... " >&6; }
4718 if ${ac_cv_prog_YACC+:} false; then :
4719 $as_echo_n "(cached) " >&6
4721 if test -n "$YACC"; then
4722 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4731 ac_cv_prog_YACC="$ac_prog"
4732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4741 YACC=$ac_cv_prog_YACC
4742 if test -n "$YACC"; then
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4744 $as_echo "$YACC" >&6; }
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4747 $as_echo "no" >&6; }
4751 test -n "$YACC" && break
4753 test -n "$YACC" || YACC="yacc"
4755 # Extract the first word of "$YACC", so it can be a program name with args.
4756 set dummy $YACC; ac_word=$2
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4758 $as_echo_n "checking for $ac_word... " >&6; }
4759 if ${ac_cv_path_YACC_INST+:} false; then :
4760 $as_echo_n "(cached) " >&6
4764 ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path.
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 test -z "$as_dir" && as_dir=.
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4774 ac_cv_path_YACC_INST="$as_dir/$ac_word$ac_exec_ext"
4775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4785 YACC_INST=$ac_cv_path_YACC_INST
4786 if test -n "$YACC_INST"; then
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5
4788 $as_echo "$YACC_INST" >&6; }
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791 $as_echo "no" >&6; }
4795 as_ac_File=`$as_echo "ac_cv_file_$srcdir/xkbparse.c" | $as_tr_sh`
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/xkbparse.c" >&5
4797 $as_echo_n "checking for $srcdir/xkbparse.c... " >&6; }
4798 if eval \${$as_ac_File+:} false; then :
4799 $as_echo_n "(cached) " >&6
4801 test "$cross_compiling" = yes &&
4802 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4803 if test -r "$srcdir/xkbparse.c"; then
4804 eval "$as_ac_File=yes"
4806 eval "$as_ac_File=no"
4809 eval ac_res=\$$as_ac_File
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4811 $as_echo "$ac_res" >&6; }
4812 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
4815 test -z "$YACC_INST" && as_fn_error $? "yacc not found - unable to compile xkbparse.y" "$LINENO" 5
4820 for ac_func in strdup strcasecmp
4822 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4823 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4824 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4825 cat >>confdefs.h <<_ACEOF
4826 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4833 # Checks for pkg-config packages
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKBCOMP" >&5
4837 $as_echo_n "checking for XKBCOMP... " >&6; }
4839 if test -n "$XKBCOMP_CFLAGS"; then
4840 pkg_cv_XKBCOMP_CFLAGS="$XKBCOMP_CFLAGS"
4841 elif test -n "$PKG_CONFIG"; then
4842 if test -n "$PKG_CONFIG" && \
4843 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xkbfile\""; } >&5
4844 ($PKG_CONFIG --exists --print-errors "x11 xkbfile") 2>&5
4846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4847 test $ac_status = 0; }; then
4848 pkg_cv_XKBCOMP_CFLAGS=`$PKG_CONFIG --cflags "x11 xkbfile" 2>/dev/null`
4855 if test -n "$XKBCOMP_LIBS"; then
4856 pkg_cv_XKBCOMP_LIBS="$XKBCOMP_LIBS"
4857 elif test -n "$PKG_CONFIG"; then
4858 if test -n "$PKG_CONFIG" && \
4859 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xkbfile\""; } >&5
4860 ($PKG_CONFIG --exists --print-errors "x11 xkbfile") 2>&5
4862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4863 test $ac_status = 0; }; then
4864 pkg_cv_XKBCOMP_LIBS=`$PKG_CONFIG --libs "x11 xkbfile" 2>/dev/null`
4874 if test $pkg_failed = yes; then
4876 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4877 _pkg_short_errors_supported=yes
4879 _pkg_short_errors_supported=no
4881 if test $_pkg_short_errors_supported = yes; then
4882 XKBCOMP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xkbfile" 2>&1`
4884 XKBCOMP_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xkbfile" 2>&1`
4886 # Put the nasty error message in config.log where it belongs
4887 echo "$XKBCOMP_PKG_ERRORS" >&5
4889 as_fn_error $? "Package requirements (x11 xkbfile) were not met:
4893 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4894 installed software in a non-standard prefix.
4896 Alternatively, you may set the environment variables XKBCOMP_CFLAGS
4897 and XKBCOMP_LIBS to avoid the need to call pkg-config.
4898 See the pkg-config man page for more details.
4900 elif test $pkg_failed = untried; then
4901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4903 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
4904 is in your PATH or set the PKG_CONFIG environment variable to the full
4907 Alternatively, you may set the environment variables XKBCOMP_CFLAGS
4908 and XKBCOMP_LIBS to avoid the need to call pkg-config.
4909 See the pkg-config man page for more details.
4911 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4912 See \`config.log' for more details" "$LINENO" 5; }
4914 XKBCOMP_CFLAGS=$pkg_cv_XKBCOMP_CFLAGS
4915 XKBCOMP_LIBS=$pkg_cv_XKBCOMP_LIBS
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4917 $as_echo "yes" >&6; }
4922 # Check whether --with-xkb_config_root was given.
4923 if test "${with_xkb_config_root+set}" = set; then :
4924 withval=$with_xkb_config_root; XKBCONFIGROOT="$withval"
4926 XKBCONFIGROOT='${datadir}/X11/xkb'
4932 ac_config_files="$ac_config_files Makefile"
4934 cat >confcache <<\_ACEOF
4935 # This file is a shell script that caches the results of configure
4936 # tests run on this system so they can be shared between configure
4937 # scripts and configure runs, see configure's option --config-cache.
4938 # It is not useful on other systems. If it contains results you don't
4939 # want to keep, you may remove or edit it.
4941 # config.status only pays attention to the cache file if you give it
4942 # the --recheck option to rerun configure.
4944 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4945 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4950 # The following way of writing the cache mishandles newlines in values,
4951 # but we know of no workaround that is simple, portable, and efficient.
4952 # So, we kill variables containing newlines.
4953 # Ultrix sh set writes to stderr and can't be redirected directly,
4954 # and sets the high bit in the cache file unless we assign to the vars.
4956 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4957 eval ac_val=\$$ac_var
4961 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4962 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4965 _ | IFS | as_nl) ;; #(
4966 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4967 *) { eval $ac_var=; unset $ac_var;} ;;
4973 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4974 *${as_nl}ac_space=\ *)
4975 # `set' does not quote correctly, so add quotes: double-quote
4976 # substitution turns \\\\ into \\, and sed turns \\ into \.
4979 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4982 # `set' quotes correctly as required by POSIX, so do not add quotes.
4983 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4992 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4994 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4996 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4997 if test -w "$cache_file"; then
4998 if test "x$cache_file" != "x/dev/null"; then
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5000 $as_echo "$as_me: updating cache $cache_file" >&6;}
5001 if test ! -f "$cache_file" || test -h "$cache_file"; then
5002 cat confcache >"$cache_file"
5004 case $cache_file in #(
5006 mv -f confcache "$cache_file"$$ &&
5007 mv -f "$cache_file"$$ "$cache_file" ;; #(
5009 mv -f confcache "$cache_file" ;;
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5015 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5020 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5021 # Let make expand exec_prefix.
5022 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5024 DEFS=-DHAVE_CONFIG_H
5029 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5030 # 1. Remove the extension, and $U if already installed.
5031 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5032 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5033 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5034 # will be set to the directory where LIBOBJS objects are built.
5035 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5036 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5040 LTLIBOBJS=$ac_ltlibobjs
5043 if test -n "$EXEEXT"; then
5045 am__EXEEXT_FALSE='#'
5051 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5052 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5055 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5056 as_fn_error $? "conditional \"AMDEP\" was never defined.
5057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5059 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5060 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5064 : "${CONFIG_STATUS=./config.status}"
5066 ac_clean_files_save=$ac_clean_files
5067 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5069 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5071 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5073 # Generated by $as_me.
5074 # Run this file to recreate the current configuration.
5075 # Compiler output produced by configure, useful for debugging
5076 # configure, is in config.log if it exists.
5082 SHELL=\${CONFIG_SHELL-$SHELL}
5085 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5086 ## -------------------- ##
5087 ## M4sh Initialization. ##
5088 ## -------------------- ##
5090 # Be more Bourne compatible
5091 DUALCASE=1; export DUALCASE # for MKS sh
5092 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5095 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5096 # is contrary to our usage. Disable this feature.
5097 alias -g '${1+"$@"}'='"$@"'
5098 setopt NO_GLOB_SUBST
5100 case `(set -o) 2>/dev/null` in #(
5112 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5113 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5114 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5115 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5116 # Prefer a ksh shell builtin over an external printf program on Solaris,
5117 # but without wasting forks for bash or zsh.
5118 if test -z "$BASH_VERSION$ZSH_VERSION" \
5119 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5120 as_echo='print -r --'
5121 as_echo_n='print -rn --'
5122 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5123 as_echo='printf %s\n'
5124 as_echo_n='printf %s'
5126 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5127 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5128 as_echo_n='/usr/ucb/echo -n'
5130 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5131 as_echo_n_body='eval
5135 expr "X$arg" : "X\\(.*\\)$as_nl";
5136 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5138 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5140 export as_echo_n_body
5141 as_echo_n='sh -c $as_echo_n_body as_echo'
5144 as_echo='sh -c $as_echo_body as_echo'
5147 # The user is always right.
5148 if test "${PATH_SEPARATOR+set}" != set; then
5150 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5151 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5158 # We need space, tab and new line, in precisely that order. Quoting is
5159 # there to prevent editors from complaining about space-tab.
5160 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5161 # splitting by setting IFS to empty value.)
5164 # Find who we are. Look in the path if we contain no directory separator.
5167 *[\\/]* ) as_myself=$0 ;;
5168 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 test -z "$as_dir" && as_dir=.
5173 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5179 # We did not find ourselves, most probably we were run as `sh COMMAND'
5180 # in which case we are not to be found in the path.
5181 if test "x$as_myself" = x; then
5184 if test ! -f "$as_myself"; then
5185 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5189 # Unset variables that we do not need and which cause bugs (e.g. in
5190 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5191 # suppresses any "Segmentation fault" message there. '((' could
5192 # trigger a bug in pdksh 5.2.14.
5193 for as_var in BASH_ENV ENV MAIL MAILPATH
5194 do eval test x\${$as_var+set} = xset \
5195 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5208 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5211 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5212 # ----------------------------------------
5213 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5214 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5215 # script with STATUS, using 1 if that was 0.
5218 as_status=$1; test $as_status -eq 0 && as_status=1
5220 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5221 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5223 $as_echo "$as_me: error: $2" >&2
5224 as_fn_exit $as_status
5228 # as_fn_set_status STATUS
5229 # -----------------------
5230 # Set $? to STATUS, without forking.
5234 } # as_fn_set_status
5238 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5248 # Portably unset VAR.
5251 { eval $1=; unset $1;}
5253 as_unset=as_fn_unset
5254 # as_fn_append VAR VALUE
5255 # ----------------------
5256 # Append the text in VALUE to the end of the definition contained in VAR. Take
5257 # advantage of any shell optimizations that allow amortized linear growth over
5258 # repeated appends, instead of the typical quadratic growth present in naive
5260 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5261 eval 'as_fn_append ()
5272 # as_fn_arith ARG...
5273 # ------------------
5274 # Perform arithmetic evaluation on the ARGs, and store the result in the
5275 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5276 # must be portable across $(()) and expr.
5277 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5278 eval 'as_fn_arith ()
5285 as_val=`expr "$@" || test $? -eq 1`
5290 if expr a : '\(a\)' >/dev/null 2>&1 &&
5291 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5297 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5298 as_basename=basename
5303 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5309 as_me=`$as_basename -- "$0" ||
5310 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5311 X"$0" : 'X\(//\)$' \| \
5312 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5314 sed '/^.*\/\([^/][^/]*\)\/*$/{
5328 # Avoid depending upon Character Ranges.
5329 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5330 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5331 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5332 as_cr_digits='0123456789'
5333 as_cr_alnum=$as_cr_Letters$as_cr_digits
5335 ECHO_C= ECHO_N= ECHO_T=
5336 case `echo -n x` in #(((((
5338 case `echo 'xy\c'` in
5339 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5341 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5348 rm -f conf$$ conf$$.exe conf$$.file
5349 if test -d conf$$.dir; then
5350 rm -f conf$$.dir/conf$$.file
5353 mkdir conf$$.dir 2>/dev/null
5355 if (echo >conf$$.file) 2>/dev/null; then
5356 if ln -s conf$$.file conf$$ 2>/dev/null; then
5358 # ... but there are two gotchas:
5359 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5360 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5361 # In both cases, we have to default to `cp -p'.
5362 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5364 elif ln conf$$.file conf$$ 2>/dev/null; then
5372 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5373 rmdir conf$$.dir 2>/dev/null
5378 # Create "$as_dir" as a directory, including parents if necessary.
5383 -*) as_dir=./$as_dir;;
5385 test -d "$as_dir" || eval $as_mkdir_p || {
5389 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5390 *) as_qdir=$as_dir;;
5392 as_dirs="'$as_qdir' $as_dirs"
5393 as_dir=`$as_dirname -- "$as_dir" ||
5394 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5395 X"$as_dir" : 'X\(//\)[^/]' \| \
5396 X"$as_dir" : 'X\(//\)$' \| \
5397 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5398 $as_echo X"$as_dir" |
5399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5416 test -d "$as_dir" && break
5418 test -z "$as_dirs" || eval "mkdir $as_dirs"
5419 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5423 if mkdir -p . 2>/dev/null; then
5424 as_mkdir_p='mkdir -p "$as_dir"'
5426 test -d ./-p && rmdir ./-p
5430 if test -x / >/dev/null 2>&1; then
5433 if ls -dL / >/dev/null 2>&1; then
5440 if test -d "$1"; then
5446 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5447 ???[sx]*):;;*)false;;esac;fi
5451 as_executable_p=$as_test_x
5453 # Sed expression to map a string onto a valid CPP name.
5454 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5456 # Sed expression to map a string onto a valid variable name.
5457 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5461 ## ----------------------------------- ##
5462 ## Main body of $CONFIG_STATUS script. ##
5463 ## ----------------------------------- ##
5465 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5468 # Save the log message, to keep $0 and so on meaningful, and to
5469 # report actual input values of CONFIG_FILES etc. instead of their
5470 # values after options handling.
5472 This file was extended by xkbcomp $as_me 1.2.0, which was
5473 generated by GNU Autoconf 2.68. Invocation command line was
5475 CONFIG_FILES = $CONFIG_FILES
5476 CONFIG_HEADERS = $CONFIG_HEADERS
5477 CONFIG_LINKS = $CONFIG_LINKS
5478 CONFIG_COMMANDS = $CONFIG_COMMANDS
5481 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5486 case $ac_config_files in *"
5487 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5490 case $ac_config_headers in *"
5491 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5496 # Files that config.status was made for.
5497 config_files="$ac_config_files"
5498 config_headers="$ac_config_headers"
5499 config_commands="$ac_config_commands"
5503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5505 \`$as_me' instantiates files and other configuration actions
5506 from templates according to the current configuration. Unless the files
5507 and actions are specified as TAGs, all are instantiated by default.
5509 Usage: $0 [OPTION]... [TAG]...
5511 -h, --help print this help, then exit
5512 -V, --version print version number and configuration settings, then exit
5513 --config print configuration, then exit
5514 -q, --quiet, --silent
5515 do not print progress messages
5516 -d, --debug don't remove temporary files
5517 --recheck update $as_me by reconfiguring in the same conditions
5518 --file=FILE[:TEMPLATE]
5519 instantiate the configuration file FILE
5520 --header=FILE[:TEMPLATE]
5521 instantiate the configuration header FILE
5523 Configuration files:
5526 Configuration headers:
5529 Configuration commands:
5532 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
5535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5536 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5538 xkbcomp config.status 1.2.0
5539 configured by $0, generated by GNU Autoconf 2.68,
5540 with options \\"\$ac_cs_config\\"
5542 Copyright (C) 2010 Free Software Foundation, Inc.
5543 This config.status script is free software; the Free Software Foundation
5544 gives unlimited permission to copy, distribute and modify it."
5551 test -n "\$AWK" || AWK=awk
5554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5555 # The default lists apply if the user does not specify any file.
5561 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5562 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5566 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5578 # Handling of the options.
5579 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5581 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5582 $as_echo "$ac_cs_version"; exit ;;
5583 --config | --confi | --conf | --con | --co | --c )
5584 $as_echo "$ac_cs_config"; exit ;;
5585 --debug | --debu | --deb | --de | --d | -d )
5587 --file | --fil | --fi | --f )
5590 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5591 '') as_fn_error $? "missing file argument" ;;
5593 as_fn_append CONFIG_FILES " '$ac_optarg'"
5594 ac_need_defaults=false;;
5595 --header | --heade | --head | --hea )
5598 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5600 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5601 ac_need_defaults=false;;
5603 # Conflict between --help and --header
5604 as_fn_error $? "ambiguous option: \`$1'
5605 Try \`$0 --help' for more information.";;
5606 --help | --hel | -h )
5607 $as_echo "$ac_cs_usage"; exit ;;
5608 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5609 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5613 -*) as_fn_error $? "unrecognized option: \`$1'
5614 Try \`$0 --help' for more information." ;;
5616 *) as_fn_append ac_config_targets " $1"
5617 ac_need_defaults=false ;;
5623 ac_configure_extra_args=
5625 if $ac_cs_silent; then
5627 ac_configure_extra_args="$ac_configure_extra_args --silent"
5631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5632 if \$ac_cs_recheck; then
5633 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5635 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5636 CONFIG_SHELL='$SHELL'
5642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5646 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5647 ## Running $as_me. ##
5653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5657 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5663 # Handling of arguments.
5664 for ac_config_target in $ac_config_targets
5666 case $ac_config_target in
5667 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5668 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5669 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5671 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5676 # If the user did not use the arguments to specify the items to instantiate,
5677 # then the envvar interface is used. Set only those that are not.
5678 # We use the long form for the default assignment because of an extremely
5679 # bizarre bug on SunOS 4.1.3.
5680 if $ac_need_defaults; then
5681 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5682 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5683 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5686 # Have a temporary directory for convenience. Make it in the build tree
5687 # simply because there is no reason against having it here, and in addition,
5688 # creating and moving files from /tmp can sometimes cause problems.
5689 # Hook for its removal unless debugging.
5690 # Note that there is a small window in which the directory will not be cleaned:
5691 # after its creation but before its name has been assigned to `$tmp'.
5695 trap 'exit_status=$?
5697 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5699 trap 'as_fn_exit 1' 1 2 13 15
5701 # Create a (secure) tmp directory for tmp files.
5704 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5708 tmp=./conf$$-$RANDOM
5709 (umask 077 && mkdir "$tmp")
5710 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5713 # Set up the scripts for CONFIG_FILES section.
5714 # No need to generate them if there are no CONFIG_FILES.
5715 # This happens for instance with `./config.status config.h'.
5716 if test -n "$CONFIG_FILES"; then
5719 ac_cr=`echo X | tr X '\015'`
5720 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5721 # But we know of no other shell where ac_cr would be empty at this
5722 # point, so we can use a bashism as a fallback.
5723 if test "x$ac_cr" = x; then
5724 eval ac_cr=\$\'\\r\'
5726 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5727 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5733 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5738 echo "cat >conf$$subs.awk <<_ACEOF" &&
5739 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5742 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5743 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5745 for ac_last_try in false false false false false :; do
5746 . ./conf$$subs.sh ||
5747 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5749 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5750 if test $ac_delim_n = $ac_delim_num; then
5752 elif $ac_last_try; then
5753 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5755 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5761 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5765 s/^/S["/; s/!.*/"]=/
5775 s/\(.\{148\}\)..*/\1/
5777 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5782 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5789 s/\(.\{148\}\)..*/\1/
5791 s/["\\]/\\&/g; s/^/"/; s/$/"/
5795 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5800 ' <conf$$subs.awk | sed '
5805 ' >>$CONFIG_STATUS || ac_write_fail=1
5806 rm -f conf$$subs.awk
5807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5809 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5810 for (key in S) S_is_set[key] = 1
5816 nfields = split(line, field, "@")
5818 len = length(field[1])
5819 for (i = 2; i < nfields; i++) {
5821 keylen = length(key)
5822 if (S_is_set[key]) {
5824 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5825 len += length(value) + length(field[++i])
5836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5837 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5838 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5841 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5842 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5845 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5846 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5847 # trailing colons and then remove the whole line if VPATH becomes empty
5848 # (actually we leave an empty line to preserve line numbers).
5849 if test "x$srcdir" = x.; then
5850 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5869 fi # test -n "$CONFIG_FILES"
5871 # Set up the scripts for CONFIG_HEADERS section.
5872 # No need to generate them if there are no CONFIG_HEADERS.
5873 # This happens for instance with `./config.status Makefile'.
5874 if test -n "$CONFIG_HEADERS"; then
5875 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5879 # Transform confdefs.h into an awk script `defines.awk', embedded as
5880 # here-document in config.status, that substitutes the proper values into
5881 # config.h.in to produce config.h.
5883 # Create a delimiter string that does not exist in confdefs.h, to ease
5884 # handling of long lines.
5886 for ac_last_try in false false :; do
5887 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5888 if test -z "$ac_tt"; then
5890 elif $ac_last_try; then
5891 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5893 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5897 # For the awk script, D is an array of macro values keyed by name,
5898 # likewise P contains macro parameters if any. Preserve backslash
5899 # newline sequences.
5901 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5903 s/.\{148\}/&'"$ac_delim"'/g
5906 s/^[ ]*#[ ]*define[ ][ ]*/ /
5913 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5915 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5919 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5920 D["\1"]=" \3\\\\\\n"\\/p
5922 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5927 s/.\{148\}/&'"$ac_delim"'/g
5932 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5935 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5937 ' <confdefs.h | sed '
5938 s/'"$ac_delim"'/"\\\
5939 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5942 for (key in D) D_is_set[key] = 1
5945 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5947 split(line, arg, " ")
5948 if (arg[1] == "#") {
5952 defundef = substr(arg[1], 2)
5955 split(mac1, mac2, "(") #)
5957 prefix = substr(line, 1, index(line, defundef) - 1)
5958 if (D_is_set[macro]) {
5959 # Preserve the white space surrounding the "#".
5960 print prefix "define", macro P[macro] D[macro]
5963 # Replace #undef with comments. This is necessary, for example,
5964 # in the case of _POSIX_SOURCE, which is predefined and required
5965 # on some systems where configure will not decide to define it.
5966 if (defundef == "undef") {
5967 print "/*", prefix defundef, macro, "*/"
5975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5976 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5977 fi # test -n "$CONFIG_HEADERS"
5980 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
5985 :[FHLC]) ac_mode=$ac_tag; continue;;
5987 case $ac_mode$ac_tag in
5989 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5990 :[FH]-) ac_tag=-:-;;
5991 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6008 -) ac_f="$ac_tmp/stdin";;
6009 *) # Look for the file first in the build tree, then in the source tree
6010 # (if the path is not absolute). The absolute path cannot be DOS-style,
6011 # because $ac_f cannot contain `:'.
6015 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6017 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6019 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6020 as_fn_append ac_file_inputs " '$ac_f'"
6023 # Let's still pretend it is `configure' which instantiates (i.e., don't
6024 # use $as_me), people would be surprised to read:
6025 # /* config.h. Generated by config.status. */
6026 configure_input='Generated from '`
6027 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6029 if test x"$ac_file" != x-; then
6030 configure_input="$ac_file. $configure_input"
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6032 $as_echo "$as_me: creating $ac_file" >&6;}
6034 # Neutralize special characters interpreted by sed in replacement strings.
6035 case $configure_input in #(
6036 *\&* | *\|* | *\\* )
6037 ac_sed_conf_input=`$as_echo "$configure_input" |
6038 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6039 *) ac_sed_conf_input=$configure_input;;
6043 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6044 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6049 ac_dir=`$as_dirname -- "$ac_file" ||
6050 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6051 X"$ac_file" : 'X\(//\)[^/]' \| \
6052 X"$ac_file" : 'X\(//\)$' \| \
6053 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6054 $as_echo X"$ac_file" |
6055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6072 as_dir="$ac_dir"; as_fn_mkdir_p
6076 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6078 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6079 # A ".." for each directory in $ac_dir_suffix.
6080 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6081 case $ac_top_builddir_sub in
6082 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6083 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6086 ac_abs_top_builddir=$ac_pwd
6087 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6088 # for backward compatibility:
6089 ac_top_builddir=$ac_top_build_prefix
6092 .) # We are building in place.
6094 ac_top_srcdir=$ac_top_builddir_sub
6095 ac_abs_top_srcdir=$ac_pwd ;;
6096 [\\/]* | ?:[\\/]* ) # Absolute name.
6097 ac_srcdir=$srcdir$ac_dir_suffix;
6098 ac_top_srcdir=$srcdir
6099 ac_abs_top_srcdir=$srcdir ;;
6101 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6102 ac_top_srcdir=$ac_top_build_prefix$srcdir
6103 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6105 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6115 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6116 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6120 [\\/$]* | ?:[\\/]* ) ;;
6121 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6126 # If the template does not know about datarootdir, expand it.
6127 # FIXME: This hack should be removed a few years after 2.60.
6128 ac_datarootdir_hack=; ac_datarootdir_seen=
6139 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6140 *datarootdir*) ac_datarootdir_seen=yes;;
6141 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6143 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6146 ac_datarootdir_hack='
6147 s&@datadir@&$datadir&g
6148 s&@docdir@&$docdir&g
6149 s&@infodir@&$infodir&g
6150 s&@localedir@&$localedir&g
6151 s&@mandir@&$mandir&g
6152 s&\\\${datarootdir}&$datarootdir&g' ;;
6156 # Neutralize VPATH when `$srcdir' = `.'.
6157 # Shell code in configure.ac might set extrasub.
6158 # FIXME: do we really want to maintain this feature?
6159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6160 ac_sed_extra="$ac_vpsub
6163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6165 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6166 s|@configure_input@|$ac_sed_conf_input|;t t
6167 s&@top_builddir@&$ac_top_builddir_sub&;t t
6168 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6169 s&@srcdir@&$ac_srcdir&;t t
6170 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6171 s&@top_srcdir@&$ac_top_srcdir&;t t
6172 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6173 s&@builddir@&$ac_builddir&;t t
6174 s&@abs_builddir@&$ac_abs_builddir&;t t
6175 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6176 s&@INSTALL@&$ac_INSTALL&;t t
6177 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6178 $ac_datarootdir_hack
6180 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6181 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6183 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6184 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6185 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6186 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6188 which seems to be undefined. Please make sure it is defined" >&5
6189 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6190 which seems to be undefined. Please make sure it is defined" >&2;}
6192 rm -f "$ac_tmp/stdin"
6194 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6195 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6197 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6203 if test x"$ac_file" != x-; then
6205 $as_echo "/* $configure_input */" \
6206 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6207 } >"$ac_tmp/config.h" \
6208 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6209 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6211 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6214 mv "$ac_tmp/config.h" "$ac_file" \
6215 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6218 $as_echo "/* $configure_input */" \
6219 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6220 || as_fn_error $? "could not create -" "$LINENO" 5
6222 # Compute "$ac_file"'s index in $config_headers.
6225 for _am_header in $config_headers :; do
6227 $_am_arg | $_am_arg:* )
6230 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6233 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6234 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6235 X"$_am_arg" : 'X\(//\)[^/]' \| \
6236 X"$_am_arg" : 'X\(//\)$' \| \
6237 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6238 $as_echo X"$_am_arg" |
6239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6255 s/.*/./; q'`/stamp-h$_am_stamp_count
6258 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6259 $as_echo "$as_me: executing $ac_file commands" >&6;}
6264 case $ac_file$ac_mode in
6265 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6266 # Autoconf 2.62 quotes --file arguments for eval, but not when files
6267 # are listed without --file. Let's play safe and only enable the eval
6268 # if we detect the quoting.
6269 case $CONFIG_FILES in
6270 *\'*) eval set x "$CONFIG_FILES" ;;
6271 *) set x $CONFIG_FILES ;;
6276 # Strip MF so we end up with the name of the file.
6277 mf=`echo "$mf" | sed -e 's/:.*$//'`
6278 # Check whether this is an Automake generated Makefile or not.
6279 # We used to match only the files named `Makefile.in', but
6280 # some people rename them; so instead we look at the file content.
6281 # Grep'ing the first line is not enough: some people post-process
6282 # each Makefile.in and add a new line on top of each file to say so.
6283 # Grep'ing the whole file is not good either: AIX grep has a line
6284 # limit of 2048, but all sed's we know have understand at least 4000.
6285 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6286 dirpart=`$as_dirname -- "$mf" ||
6287 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6288 X"$mf" : 'X\(//\)[^/]' \| \
6289 X"$mf" : 'X\(//\)$' \| \
6290 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6312 # Extract the definition of DEPDIR, am__include, and am__quote
6313 # from the Makefile without running `make'.
6314 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6315 test -z "$DEPDIR" && continue
6316 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6317 test -z "am__include" && continue
6318 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6319 # When using ansi2knr, U may be empty or an underscore; expand it
6320 U=`sed -n 's/^U = //p' < "$mf"`
6321 # Find all dependency output files, they are included files with
6322 # $(DEPDIR) in their names. We invoke sed twice because it is the
6323 # simplest approach to changing $(DEPDIR) to its actual value in the
6325 for file in `sed -n "
6326 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6327 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6328 # Make sure the directory exists.
6329 test -f "$dirpart/$file" && continue
6330 fdir=`$as_dirname -- "$file" ||
6331 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6332 X"$file" : 'X\(//\)[^/]' \| \
6333 X"$file" : 'X\(//\)$' \| \
6334 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6353 as_dir=$dirpart/$fdir; as_fn_mkdir_p
6354 # echo "creating $dirpart/$file"
6355 echo '# dummy' > "$dirpart/$file"
6367 ac_clean_files=$ac_clean_files_save
6369 test $ac_write_fail = 0 ||
6370 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6373 # configure is writing to config.log, and then calls config.status.
6374 # config.status does its own redirection, appending to config.log.
6375 # Unfortunately, on DOS this fails, as config.log is still kept open
6376 # by configure, so config.status won't be able to write to it; its
6377 # output is simply discarded. So we exec the FD to /dev/null,
6378 # effectively closing config.log, so it can be properly (re)opened and
6379 # appended to by config.status. When coming back to configure, we
6380 # need to make the FD available again.
6381 if test "$no_create" != yes; then
6383 ac_config_status_args=
6384 test "$silent" = yes &&
6385 ac_config_status_args="$ac_config_status_args --quiet"
6387 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6389 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6390 # would make configure fail if this is the last instruction.
6391 $ac_cs_success || as_fn_exit 1
6393 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6395 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}