2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for rgb 1.0.4.
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.
563 PACKAGE_TARNAME='rgb'
564 PACKAGE_VERSION='1.0.4'
565 PACKAGE_STRING='rgb 1.0.4'
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
668 MAINTAINER_MODE_FALSE
678 INSTALL_STRIP_PROGRAM
720 program_transform_name
733 enable_option_checking
734 enable_maintainer_mode
735 enable_dependency_tracking
736 enable_strict_compilation
741 ac_precious_vars='build_alias
757 # Initialize some variables set by options.
759 ac_init_version=false
760 ac_unrecognized_opts=
762 # The variables have the same names as the options, with
763 # dashes changed to underlines.
771 program_transform_name=s,x,x,
779 # Installation directory options.
780 # These are left unexpanded so users can "make install exec_prefix=/foo"
781 # and all the variables that are supposed to be based on exec_prefix
782 # by default will actually change.
783 # Use braces instead of parens because sh, perl, etc. also accept them.
784 # (The list follows the same order as the GNU Coding Standards.)
785 bindir='${exec_prefix}/bin'
786 sbindir='${exec_prefix}/sbin'
787 libexecdir='${exec_prefix}/libexec'
788 datarootdir='${prefix}/share'
789 datadir='${datarootdir}'
790 sysconfdir='${prefix}/etc'
791 sharedstatedir='${prefix}/com'
792 localstatedir='${prefix}/var'
793 includedir='${prefix}/include'
794 oldincludedir='/usr/include'
795 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
796 infodir='${datarootdir}/info'
801 libdir='${exec_prefix}/lib'
802 localedir='${datarootdir}/locale'
803 mandir='${datarootdir}/man'
809 # If the previous option needs an argument, assign it.
810 if test -n "$ac_prev"; then
811 eval $ac_prev=\$ac_option
817 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
822 # Accept the important Cygnus configure options, so we can diagnose typos.
824 case $ac_dashdash$ac_option in
828 -bindir | --bindir | --bindi | --bind | --bin | --bi)
830 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
833 -build | --build | --buil | --bui | --bu)
834 ac_prev=build_alias ;;
835 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
836 build_alias=$ac_optarg ;;
838 -cache-file | --cache-file | --cache-fil | --cache-fi \
839 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
840 ac_prev=cache_file ;;
841 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
842 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
843 cache_file=$ac_optarg ;;
846 cache_file=config.cache ;;
848 -datadir | --datadir | --datadi | --datad)
850 -datadir=* | --datadir=* | --datadi=* | --datad=*)
851 datadir=$ac_optarg ;;
853 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
854 | --dataroo | --dataro | --datar)
855 ac_prev=datarootdir ;;
856 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
857 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
858 datarootdir=$ac_optarg ;;
860 -disable-* | --disable-*)
861 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
862 # Reject names that are not valid shell variable names.
863 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
864 as_fn_error $? "invalid feature name: $ac_useropt"
865 ac_useropt_orig=$ac_useropt
866 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
867 case $ac_user_opts in
871 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
872 ac_unrecognized_sep=', ';;
874 eval enable_$ac_useropt=no ;;
876 -docdir | --docdir | --docdi | --doc | --do)
878 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
881 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
883 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
886 -enable-* | --enable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 as_fn_error $? "invalid feature name: $ac_useropt"
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
900 eval enable_$ac_useropt=\$ac_optarg ;;
902 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
903 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
904 | --exec | --exe | --ex)
905 ac_prev=exec_prefix ;;
906 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
907 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
908 | --exec=* | --exe=* | --ex=*)
909 exec_prefix=$ac_optarg ;;
911 -gas | --gas | --ga | --g)
912 # Obsolete; use --with-gas.
915 -help | --help | --hel | --he | -h)
917 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
918 ac_init_help=recursive ;;
919 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
920 ac_init_help=short ;;
922 -host | --host | --hos | --ho)
923 ac_prev=host_alias ;;
924 -host=* | --host=* | --hos=* | --ho=*)
925 host_alias=$ac_optarg ;;
927 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
929 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
931 htmldir=$ac_optarg ;;
933 -includedir | --includedir | --includedi | --included | --include \
934 | --includ | --inclu | --incl | --inc)
935 ac_prev=includedir ;;
936 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
937 | --includ=* | --inclu=* | --incl=* | --inc=*)
938 includedir=$ac_optarg ;;
940 -infodir | --infodir | --infodi | --infod | --info | --inf)
942 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
943 infodir=$ac_optarg ;;
945 -libdir | --libdir | --libdi | --libd)
947 -libdir=* | --libdir=* | --libdi=* | --libd=*)
950 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
951 | --libexe | --libex | --libe)
952 ac_prev=libexecdir ;;
953 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
954 | --libexe=* | --libex=* | --libe=*)
955 libexecdir=$ac_optarg ;;
957 -localedir | --localedir | --localedi | --localed | --locale)
959 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
960 localedir=$ac_optarg ;;
962 -localstatedir | --localstatedir | --localstatedi | --localstated \
963 | --localstate | --localstat | --localsta | --localst | --locals)
964 ac_prev=localstatedir ;;
965 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
966 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
967 localstatedir=$ac_optarg ;;
969 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
971 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
975 # Obsolete; use --without-fp.
978 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979 | --no-cr | --no-c | -n)
982 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
983 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
986 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
987 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
988 | --oldin | --oldi | --old | --ol | --o)
989 ac_prev=oldincludedir ;;
990 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
991 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
992 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
993 oldincludedir=$ac_optarg ;;
995 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
997 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1001 | --program-pre | --program-pr | --program-p)
1002 ac_prev=program_prefix ;;
1003 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1004 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1005 program_prefix=$ac_optarg ;;
1007 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1008 | --program-suf | --program-su | --program-s)
1009 ac_prev=program_suffix ;;
1010 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1011 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1012 program_suffix=$ac_optarg ;;
1014 -program-transform-name | --program-transform-name \
1015 | --program-transform-nam | --program-transform-na \
1016 | --program-transform-n | --program-transform- \
1017 | --program-transform | --program-transfor \
1018 | --program-transfo | --program-transf \
1019 | --program-trans | --program-tran \
1020 | --progr-tra | --program-tr | --program-t)
1021 ac_prev=program_transform_name ;;
1022 -program-transform-name=* | --program-transform-name=* \
1023 | --program-transform-nam=* | --program-transform-na=* \
1024 | --program-transform-n=* | --program-transform-=* \
1025 | --program-transform=* | --program-transfor=* \
1026 | --program-transfo=* | --program-transf=* \
1027 | --program-trans=* | --program-tran=* \
1028 | --progr-tra=* | --program-tr=* | --program-t=*)
1029 program_transform_name=$ac_optarg ;;
1031 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1033 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1034 pdfdir=$ac_optarg ;;
1036 -psdir | --psdir | --psdi | --psd | --ps)
1038 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042 | -silent | --silent | --silen | --sile | --sil)
1045 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1047 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1049 sbindir=$ac_optarg ;;
1051 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1052 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1053 | --sharedst | --shareds | --shared | --share | --shar \
1055 ac_prev=sharedstatedir ;;
1056 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1057 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1058 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1060 sharedstatedir=$ac_optarg ;;
1062 -site | --site | --sit)
1064 -site=* | --site=* | --sit=*)
1067 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1069 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1070 srcdir=$ac_optarg ;;
1072 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1073 | --syscon | --sysco | --sysc | --sys | --sy)
1074 ac_prev=sysconfdir ;;
1075 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1076 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1077 sysconfdir=$ac_optarg ;;
1079 -target | --target | --targe | --targ | --tar | --ta | --t)
1080 ac_prev=target_alias ;;
1081 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1082 target_alias=$ac_optarg ;;
1084 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1087 -version | --version | --versio | --versi | --vers | -V)
1088 ac_init_version=: ;;
1091 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094 as_fn_error $? "invalid package name: $ac_useropt"
1095 ac_useropt_orig=$ac_useropt
1096 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in
1101 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1102 ac_unrecognized_sep=', ';;
1104 eval with_$ac_useropt=\$ac_optarg ;;
1106 -without-* | --without-*)
1107 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error $? "invalid package name: $ac_useropt"
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1120 eval with_$ac_useropt=no ;;
1123 # Obsolete; use --with-x.
1126 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1127 | --x-incl | --x-inc | --x-in | --x-i)
1128 ac_prev=x_includes ;;
1129 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1130 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1131 x_includes=$ac_optarg ;;
1133 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1134 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1135 ac_prev=x_libraries ;;
1136 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1137 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1138 x_libraries=$ac_optarg ;;
1140 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1141 Try \`$0 --help' for more information"
1145 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1146 # Reject names that are not valid shell variable names.
1147 case $ac_envvar in #(
1148 '' | [0-9]* | *[!_$as_cr_alnum]* )
1149 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1151 eval $ac_envvar=\$ac_optarg
1152 export $ac_envvar ;;
1155 # FIXME: should be removed in autoconf 3.0.
1156 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1157 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1158 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1159 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1165 if test -n "$ac_prev"; then
1166 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1167 as_fn_error $? "missing argument to $ac_option"
1170 if test -n "$ac_unrecognized_opts"; then
1171 case $enable_option_checking in
1173 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1174 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1178 # Check all directory arguments for consistency.
1179 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180 datadir sysconfdir sharedstatedir localstatedir includedir \
1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182 libdir localedir mandir
1184 eval ac_val=\$$ac_var
1185 # Remove trailing slashes.
1188 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1189 eval $ac_var=\$ac_val;;
1191 # Be sure to have absolute directory names.
1193 [\\/$]* | ?:[\\/]* ) continue;;
1194 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1196 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1199 # There might be people who depend on the old broken behavior: `$host'
1200 # used to hold the argument of --host etc.
1201 # FIXME: To remove some day.
1204 target=$target_alias
1206 # FIXME: To remove some day.
1207 if test "x$host_alias" != x; then
1208 if test "x$build_alias" = x; then
1209 cross_compiling=maybe
1210 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1211 If a cross compiler is detected then cross compile mode will be used" >&2
1212 elif test "x$build_alias" != "x$host_alias"; then
1218 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1220 test "$silent" = yes && exec 6>/dev/null
1223 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1224 ac_ls_di=`ls -di .` &&
1225 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1226 as_fn_error $? "working directory cannot be determined"
1227 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1228 as_fn_error $? "pwd does not report name of working directory"
1231 # Find the source files, if location was not specified.
1232 if test -z "$srcdir"; then
1233 ac_srcdir_defaulted=yes
1234 # Try the directory containing this script, then the parent directory.
1235 ac_confdir=`$as_dirname -- "$as_myself" ||
1236 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1237 X"$as_myself" : 'X\(//\)[^/]' \| \
1238 X"$as_myself" : 'X\(//\)$' \| \
1239 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1240 $as_echo X"$as_myself" |
1241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1259 if test ! -r "$srcdir/$ac_unique_file"; then
1263 ac_srcdir_defaulted=no
1265 if test ! -r "$srcdir/$ac_unique_file"; then
1266 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1267 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1269 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1271 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1273 # When building in place, set srcdir=.
1274 if test "$ac_abs_confdir" = "$ac_pwd"; then
1277 # Remove unnecessary trailing slashes from srcdir.
1278 # Double slashes in file names in object file debugging info
1279 # mess up M-x gdb in Emacs.
1281 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1283 for ac_var in $ac_precious_vars; do
1284 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_env_${ac_var}_value=\$${ac_var}
1286 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1287 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1291 # Report the --help message.
1293 if test "$ac_init_help" = "long"; then
1294 # Omit some internal or obsolete options to make the list less imposing.
1295 # This message is too long to be a string in the A/UX 3.1 sh.
1297 \`configure' configures rgb 1.0.4 to adapt to many kinds of systems.
1299 Usage: $0 [OPTION]... [VAR=VALUE]...
1301 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1302 VAR=VALUE. See below for descriptions of some of the useful variables.
1304 Defaults for the options are specified in brackets.
1307 -h, --help display this help and exit
1308 --help=short display options specific to this package
1309 --help=recursive display the short help of all the included packages
1310 -V, --version display version information and exit
1311 -q, --quiet, --silent do not print \`checking ...' messages
1312 --cache-file=FILE cache test results in FILE [disabled]
1313 -C, --config-cache alias for \`--cache-file=config.cache'
1314 -n, --no-create do not create output files
1315 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1317 Installation directories:
1318 --prefix=PREFIX install architecture-independent files in PREFIX
1319 [$ac_default_prefix]
1320 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1323 By default, \`make install' will install all the files in
1324 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1325 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1326 for instance \`--prefix=\$HOME'.
1328 For better control, use the options below.
1330 Fine tuning of the installation directories:
1331 --bindir=DIR user executables [EPREFIX/bin]
1332 --sbindir=DIR system admin executables [EPREFIX/sbin]
1333 --libexecdir=DIR program executables [EPREFIX/libexec]
1334 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1335 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1336 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1337 --libdir=DIR object code libraries [EPREFIX/lib]
1338 --includedir=DIR C header files [PREFIX/include]
1339 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1340 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1341 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1342 --infodir=DIR info documentation [DATAROOTDIR/info]
1343 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1344 --mandir=DIR man documentation [DATAROOTDIR/man]
1345 --docdir=DIR documentation root [DATAROOTDIR/doc/rgb]
1346 --htmldir=DIR html documentation [DOCDIR]
1347 --dvidir=DIR dvi documentation [DOCDIR]
1348 --pdfdir=DIR pdf documentation [DOCDIR]
1349 --psdir=DIR ps documentation [DOCDIR]
1355 --program-prefix=PREFIX prepend PREFIX to installed program names
1356 --program-suffix=SUFFIX append SUFFIX to installed program names
1357 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1360 --build=BUILD configure for building on BUILD [guessed]
1361 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1365 if test -n "$ac_init_help"; then
1366 case $ac_init_help in
1367 short | recursive ) echo "Configuration of rgb 1.0.4:";;
1372 --disable-option-checking ignore unrecognized --enable/--with options
1373 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1374 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1375 --enable-maintainer-mode enable make rules and dependencies not useful
1376 (and sometimes confusing) to the casual installer
1377 --disable-dependency-tracking speeds up one-time build
1378 --enable-dependency-tracking do not reject slow dependency extractors
1379 --enable-strict-compilation
1380 Enable all warnings from compiler and make them
1381 errors (default: disabled)
1382 --enable-silent-rules less verbose build output (undo: `make V=1')
1383 --disable-silent-rules verbose build output (undo: `make V=0')
1386 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1387 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1388 --with-rgb-db-dir=<path>
1389 rgb database location (default is
1391 --with-rgb-db-type=(text|dbm|ndbm)
1392 rgb database type (default is text)
1394 Some influential environment variables:
1395 CC C compiler command
1396 CFLAGS C compiler flags
1397 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1398 nonstandard directory <lib dir>
1399 LIBS libraries to pass to the linker, e.g. -l<library>
1400 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1401 you have headers in a nonstandard directory <include dir>
1403 PKG_CONFIG path to pkg-config utility
1404 RGB_CFLAGS C compiler flags for RGB, overriding pkg-config
1405 RGB_LIBS linker flags for RGB, overriding pkg-config
1406 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1407 XORG_LIBS linker flags for XORG, overriding pkg-config
1409 Use these variables to override the choices made by `configure' or to help
1410 it to find libraries and programs with nonstandard names/locations.
1412 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1417 if test "$ac_init_help" = "recursive"; then
1418 # If there are subdirs, report their specific --help.
1419 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1420 test -d "$ac_dir" ||
1421 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1426 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1429 # A ".." for each directory in $ac_dir_suffix.
1430 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1431 case $ac_top_builddir_sub in
1432 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1436 ac_abs_top_builddir=$ac_pwd
1437 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1438 # for backward compatibility:
1439 ac_top_builddir=$ac_top_build_prefix
1442 .) # We are building in place.
1444 ac_top_srcdir=$ac_top_builddir_sub
1445 ac_abs_top_srcdir=$ac_pwd ;;
1446 [\\/]* | ?:[\\/]* ) # Absolute name.
1447 ac_srcdir=$srcdir$ac_dir_suffix;
1448 ac_top_srcdir=$srcdir
1449 ac_abs_top_srcdir=$srcdir ;;
1451 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1452 ac_top_srcdir=$ac_top_build_prefix$srcdir
1453 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1455 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1457 cd "$ac_dir" || { ac_status=$?; continue; }
1458 # Check for guested configure.
1459 if test -f "$ac_srcdir/configure.gnu"; then
1461 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1462 elif test -f "$ac_srcdir/configure"; then
1464 $SHELL "$ac_srcdir/configure" --help=recursive
1466 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1468 cd "$ac_pwd" || { ac_status=$?; break; }
1472 test -n "$ac_init_help" && exit $ac_status
1473 if $ac_init_version; then
1476 generated by GNU Autoconf 2.68
1478 Copyright (C) 2010 Free Software Foundation, Inc.
1479 This configure script is free software; the Free Software Foundation
1480 gives unlimited permission to copy, distribute and modify it.
1485 ## ------------------------ ##
1486 ## Autoconf initialization. ##
1487 ## ------------------------ ##
1489 # ac_fn_c_try_compile LINENO
1490 # --------------------------
1491 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1492 ac_fn_c_try_compile ()
1494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1495 rm -f conftest.$ac_objext
1496 if { { ac_try="$ac_compile"
1498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1499 *) ac_try_echo=$ac_try;;
1501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1502 $as_echo "$ac_try_echo"; } >&5
1503 (eval "$ac_compile") 2>conftest.err
1505 if test -s conftest.err; then
1506 grep -v '^ *+' conftest.err >conftest.er1
1507 cat conftest.er1 >&5
1508 mv -f conftest.er1 conftest.err
1510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1511 test $ac_status = 0; } && {
1512 test -z "$ac_c_werror_flag" ||
1513 test ! -s conftest.err
1514 } && test -s conftest.$ac_objext; then :
1517 $as_echo "$as_me: failed program was:" >&5
1518 sed 's/^/| /' conftest.$ac_ext >&5
1522 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1523 as_fn_set_status $ac_retval
1525 } # ac_fn_c_try_compile
1527 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1528 # ---------------------------------------------
1529 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1531 ac_fn_c_check_decl ()
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 as_decl_name=`echo $2|sed 's/ *(.*//'`
1535 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1537 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1538 if eval \${$3+:} false; then :
1539 $as_echo_n "(cached) " >&6
1541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1542 /* end confdefs.h. */
1547 #ifndef $as_decl_name
1549 (void) $as_decl_use;
1551 (void) $as_decl_name;
1559 if ac_fn_c_try_compile "$LINENO"; then :
1564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1568 $as_echo "$ac_res" >&6; }
1569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571 } # ac_fn_c_check_decl
1573 # ac_fn_c_try_cpp LINENO
1574 # ----------------------
1575 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 if { { ac_try="$ac_cpp conftest.$ac_ext"
1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582 *) ac_try_echo=$ac_try;;
1584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585 $as_echo "$ac_try_echo"; } >&5
1586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1588 if test -s conftest.err; then
1589 grep -v '^ *+' conftest.err >conftest.er1
1590 cat conftest.er1 >&5
1591 mv -f conftest.er1 conftest.err
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } > conftest.i && {
1595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1596 test ! -s conftest.err
1600 $as_echo "$as_me: failed program was:" >&5
1601 sed 's/^/| /' conftest.$ac_ext >&5
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606 as_fn_set_status $ac_retval
1610 # ac_fn_c_try_run LINENO
1611 # ----------------------
1612 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1613 # that executables *can* be run.
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 if { { ac_try="$ac_link"
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_link") 2>&5
1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1628 { { case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_try") 2>&5
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; }; }; then :
1640 $as_echo "$as_me: program exited with status $ac_status" >&5
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1644 ac_retval=$ac_status
1646 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1652 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1653 # -------------------------------------------------------
1654 # Tests whether HEADER exists and can be compiled using the include files in
1655 # INCLUDES, setting the cache variable VAR accordingly.
1656 ac_fn_c_check_header_compile ()
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 $as_echo_n "checking for $2... " >&6; }
1661 if eval \${$3+:} false; then :
1662 $as_echo_n "(cached) " >&6
1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665 /* end confdefs.h. */
1669 if ac_fn_c_try_compile "$LINENO"; then :
1674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678 $as_echo "$ac_res" >&6; }
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681 } # ac_fn_c_check_header_compile
1683 # ac_fn_c_try_link LINENO
1684 # -----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded.
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 rm -f conftest.$ac_objext conftest$ac_exeext
1690 if { { ac_try="$ac_link"
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_link") 2>conftest.err
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && {
1706 test -z "$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1708 } && test -s conftest$ac_exeext && {
1709 test "$cross_compiling" = yes ||
1710 $as_test_x conftest$ac_exeext
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1719 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1720 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1721 # interfere with the next link command; also delete a directory that is
1722 # left behind by Apple's compiler. We do this before executing the actions.
1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1727 } # ac_fn_c_try_link
1729 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1730 # -------------------------------------------------------
1731 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1732 # the include files in INCLUDES and setting the cache variable VAR
1734 ac_fn_c_check_header_mongrel ()
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 if eval \${$3+:} false; then :
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741 $as_echo_n "(cached) " >&6
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745 $as_echo "$ac_res" >&6; }
1747 # Is the header compilable?
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1749 $as_echo_n "checking $2 usability... " >&6; }
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h. */
1755 if ac_fn_c_try_compile "$LINENO"; then :
1756 ac_header_compiler=yes
1758 ac_header_compiler=no
1760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1762 $as_echo "$ac_header_compiler" >&6; }
1764 # Is the header present?
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1766 $as_echo_n "checking $2 presence... " >&6; }
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1771 if ac_fn_c_try_cpp "$LINENO"; then :
1772 ac_header_preproc=yes
1774 ac_header_preproc=no
1776 rm -f conftest.err conftest.i conftest.$ac_ext
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1778 $as_echo "$ac_header_preproc" >&6; }
1780 # So? What about this header?
1781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1784 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1786 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1790 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1792 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1794 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1796 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1798 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1799 ( $as_echo "## ---------------------------------------------------------------------- ##
1800 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1801 ## ---------------------------------------------------------------------- ##"
1802 ) | sed "s/^/$as_me: WARNING: /" >&2
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806 $as_echo_n "checking for $2... " >&6; }
1807 if eval \${$3+:} false; then :
1808 $as_echo_n "(cached) " >&6
1810 eval "$3=\$ac_header_compiler"
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818 } # ac_fn_c_check_header_mongrel
1819 cat >config.log <<_ACEOF
1820 This file contains any messages produced by compilers while
1821 running configure, to aid debugging if configure makes a mistake.
1823 It was created by rgb $as_me 1.0.4, which was
1824 generated by GNU Autoconf 2.68. Invocation command line was
1836 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1837 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1838 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1839 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1840 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1842 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1843 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1845 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1846 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1847 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1848 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1849 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1850 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1851 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859 test -z "$as_dir" && as_dir=.
1860 $as_echo "PATH: $as_dir"
1876 # Keep a trace of the command line.
1877 # Strip out --no-create and --no-recursion so they do not pile up.
1878 # Strip out --silent because we don't want to record it for future runs.
1879 # Also quote any args containing shell meta-characters.
1880 # Make two passes to allow for proper duplicate-argument suppression.
1884 ac_must_keep_next=false
1890 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1891 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1892 | -silent | --silent | --silen | --sile | --sil)
1895 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1898 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1900 as_fn_append ac_configure_args1 " '$ac_arg'"
1901 if test $ac_must_keep_next = true; then
1902 ac_must_keep_next=false # Got value, back to normal.
1905 *=* | --config-cache | -C | -disable-* | --disable-* \
1906 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1907 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1908 | -with-* | --with-* | -without-* | --without-* | --x)
1909 case "$ac_configure_args0 " in
1910 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1913 -* ) ac_must_keep_next=true ;;
1916 as_fn_append ac_configure_args " '$ac_arg'"
1921 { ac_configure_args0=; unset ac_configure_args0;}
1922 { ac_configure_args1=; unset ac_configure_args1;}
1924 # When interrupted or exit'd, cleanup temporary files, and complete
1925 # config.log. We remove comments because anyway the quotes in there
1926 # would cause problems or look ugly.
1927 # WARNING: Use '\'' to represent an apostrophe within the trap.
1928 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1929 trap 'exit_status=$?
1930 # Save into config.log some information that might help in debugging.
1934 $as_echo "## ---------------- ##
1935 ## Cache variables. ##
1936 ## ---------------- ##"
1938 # The following way of writing the cache mishandles newlines in values,
1940 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1941 eval ac_val=\$$ac_var
1945 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1946 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1949 _ | IFS | as_nl) ;; #(
1950 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1951 *) { eval $ac_var=; unset $ac_var;} ;;
1956 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1957 *${as_nl}ac_space=\ *)
1959 "s/'\''/'\''\\\\'\'''\''/g;
1960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1963 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1970 $as_echo "## ----------------- ##
1971 ## Output variables. ##
1972 ## ----------------- ##"
1974 for ac_var in $ac_subst_vars
1976 eval ac_val=\$$ac_var
1978 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1980 $as_echo "$ac_var='\''$ac_val'\''"
1984 if test -n "$ac_subst_files"; then
1985 $as_echo "## ------------------- ##
1986 ## File substitutions. ##
1987 ## ------------------- ##"
1989 for ac_var in $ac_subst_files
1991 eval ac_val=\$$ac_var
1993 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1995 $as_echo "$ac_var='\''$ac_val'\''"
2000 if test -s confdefs.h; then
2001 $as_echo "## ----------- ##
2008 test "$ac_signal" != 0 &&
2009 $as_echo "$as_me: caught signal $ac_signal"
2010 $as_echo "$as_me: exit $exit_status"
2012 rm -f core *.core core.conftest.* &&
2013 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2016 for ac_signal in 1 2 13 15; do
2017 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2021 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2022 rm -f -r conftest* confdefs.h
2024 $as_echo "/* confdefs.h */" > confdefs.h
2026 # Predefined preprocessor variables.
2028 cat >>confdefs.h <<_ACEOF
2029 #define PACKAGE_NAME "$PACKAGE_NAME"
2032 cat >>confdefs.h <<_ACEOF
2033 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2036 cat >>confdefs.h <<_ACEOF
2037 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_STRING "$PACKAGE_STRING"
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_URL "$PACKAGE_URL"
2053 # Let the site file select an alternate cache file if it wants to.
2054 # Prefer an explicitly selected file to automatically selected ones.
2057 if test -n "$CONFIG_SITE"; then
2058 # We do not want a PATH search for config.site.
2059 case $CONFIG_SITE in #((
2060 -*) ac_site_file1=./$CONFIG_SITE;;
2061 */*) ac_site_file1=$CONFIG_SITE;;
2062 *) ac_site_file1=./$CONFIG_SITE;;
2064 elif test "x$prefix" != xNONE; then
2065 ac_site_file1=$prefix/share/config.site
2066 ac_site_file2=$prefix/etc/config.site
2068 ac_site_file1=$ac_default_prefix/share/config.site
2069 ac_site_file2=$ac_default_prefix/etc/config.site
2071 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2073 test "x$ac_site_file" = xNONE && continue
2074 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2076 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2077 sed 's/^/| /' "$ac_site_file" >&5
2079 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2081 as_fn_error $? "failed to load site script $ac_site_file
2082 See \`config.log' for more details" "$LINENO" 5; }
2086 if test -r "$cache_file"; then
2087 # Some versions of bash will fail to source /dev/null (special files
2088 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2089 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2091 $as_echo "$as_me: loading cache $cache_file" >&6;}
2093 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2094 *) . "./$cache_file";;
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2099 $as_echo "$as_me: creating cache $cache_file" >&6;}
2103 # Check that the precious variables saved in the cache have kept the same
2105 ac_cache_corrupted=false
2106 for ac_var in $ac_precious_vars; do
2107 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2108 eval ac_new_set=\$ac_env_${ac_var}_set
2109 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2110 eval ac_new_val=\$ac_env_${ac_var}_value
2111 case $ac_old_set,$ac_new_set in
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2114 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2115 ac_cache_corrupted=: ;;
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2118 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2119 ac_cache_corrupted=: ;;
2122 if test "x$ac_old_val" != "x$ac_new_val"; then
2123 # differences in whitespace do not lead to failure.
2124 ac_old_val_w=`echo x $ac_old_val`
2125 ac_new_val_w=`echo x $ac_new_val`
2126 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2128 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2129 ac_cache_corrupted=:
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2132 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2133 eval $ac_var=\$ac_old_val
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2136 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2138 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2141 # Pass precious variables to config.status.
2142 if test "$ac_new_set" = set; then
2144 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2145 *) ac_arg=$ac_var=$ac_new_val ;;
2147 case " $ac_configure_args " in
2148 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2149 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2153 if $ac_cache_corrupted; then
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2157 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2158 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2160 ## -------------------- ##
2161 ## Main body of script. ##
2162 ## -------------------- ##
2165 ac_cpp='$CPP $CPPFLAGS'
2166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2171 am__api_version='1.11'
2174 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2175 if test -f "$ac_dir/install-sh"; then
2177 ac_install_sh="$ac_aux_dir/install-sh -c"
2179 elif test -f "$ac_dir/install.sh"; then
2181 ac_install_sh="$ac_aux_dir/install.sh -c"
2183 elif test -f "$ac_dir/shtool"; then
2185 ac_install_sh="$ac_aux_dir/shtool install -c"
2189 if test -z "$ac_aux_dir"; then
2190 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2193 # These three variables are undocumented and unsupported,
2194 # and are intended to be withdrawn in a future Autoconf release.
2195 # They can cause serious problems if a builder's source tree is in a directory
2196 # whose full name contains unusual characters.
2197 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2198 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2199 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2202 # Find a good install program. We prefer a C program (faster),
2203 # so one script is as good as another. But avoid the broken or
2204 # incompatible versions:
2205 # SysV /etc/install, /usr/sbin/install
2206 # SunOS /usr/etc/install
2207 # IRIX /sbin/install
2209 # AmigaOS /C/install, which installs bootblocks on floppy discs
2210 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2211 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2212 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2213 # OS/2's system install, which has a completely different semantic
2214 # ./install, which can be erroneously created by make from ./install.sh.
2215 # Reject install programs that cannot install multiple files.
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2217 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2218 if test -z "$INSTALL"; then
2219 if ${ac_cv_path_install+:} false; then :
2220 $as_echo_n "(cached) " >&6
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 test -z "$as_dir" && as_dir=.
2227 # Account for people who put trailing slashes in PATH elements.
2228 case $as_dir/ in #((
2229 ./ | .// | /[cC]/* | \
2230 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2231 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2234 # OSF1 and SCO ODT 3.0 have their own names for install.
2235 # Don't use installbsd from OSF since it installs stuff as root
2237 for ac_prog in ginstall scoinst install; do
2238 for ac_exec_ext in '' $ac_executable_extensions; do
2239 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2240 if test $ac_prog = install &&
2241 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2242 # AIX install. It has an incompatible calling convention.
2244 elif test $ac_prog = install &&
2245 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2246 # program-specific install script used by HP pwplus--don't use.
2249 rm -rf conftest.one conftest.two conftest.dir
2250 echo one > conftest.one
2251 echo two > conftest.two
2253 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2254 test -s conftest.one && test -s conftest.two &&
2255 test -s conftest.dir/conftest.one &&
2256 test -s conftest.dir/conftest.two
2258 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2271 rm -rf conftest.one conftest.two conftest.dir
2274 if test "${ac_cv_path_install+set}" = set; then
2275 INSTALL=$ac_cv_path_install
2277 # As a last resort, use the slow shell script. Don't cache a
2278 # value for INSTALL within a source directory, because that will
2279 # break other packages using the cache if that directory is
2280 # removed, or if the value is a relative name.
2281 INSTALL=$ac_install_sh
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2285 $as_echo "$INSTALL" >&6; }
2287 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2288 # It thinks the first close brace ends the variable substitution.
2289 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2291 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2293 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2296 $as_echo_n "checking whether build environment is sane... " >&6; }
2299 echo timestamp > conftest.file
2300 # Reject unsafe characters in $srcdir or the absolute working directory
2301 # name. Accept space and tab only in the latter.
2305 *[\\\"\#\$\&\'\`$am_lf]*)
2306 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2309 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2310 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2313 # Do `set' in a subshell so we don't clobber the current shell's
2314 # arguments. Must try -L first in case configure is actually a
2315 # symlink; some systems play weird games with the mod time of symlinks
2316 # (eg FreeBSD returns the mod time of the symlink's containing
2319 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2320 if test "$*" = "X"; then
2322 set X `ls -t "$srcdir/configure" conftest.file`
2325 if test "$*" != "X $srcdir/configure conftest.file" \
2326 && test "$*" != "X conftest.file $srcdir/configure"; then
2328 # If neither matched, then we have a broken ls. This can happen
2329 # if, for instance, CONFIG_SHELL is bash and it inherits a
2330 # broken ls alias from the environment. This has actually
2331 # happened. Such a system could not be considered "sane".
2332 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2333 alias in your environment" "$LINENO" 5
2336 test "$2" = conftest.file
2342 as_fn_error $? "newly created file is older than distributed files!
2343 Check your system clock" "$LINENO" 5
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2346 $as_echo "yes" >&6; }
2347 test "$program_prefix" != NONE &&
2348 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2349 # Use a double $ so make ignores it.
2350 test "$program_suffix" != NONE &&
2351 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2352 # Double any \ or $.
2353 # By default was `s,x,x', remove it if useless.
2354 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2355 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2357 # expand $ac_aux_dir to an absolute path
2358 am_aux_dir=`cd $ac_aux_dir && pwd`
2360 if test x"${MISSING+set}" != xset; then
2363 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2365 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2368 # Use eval to expand $SHELL
2369 if eval "$MISSING --run true"; then
2370 am_missing_run="$MISSING --run "
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2374 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2377 if test x"${install_sh}" != xset; then
2380 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2382 install_sh="\${SHELL} $am_aux_dir/install-sh"
2386 # Installed binaries are usually stripped using `strip' when the user
2387 # run `make install-strip'. However `strip' might not be the right
2388 # tool to use in cross-compilation environments, therefore Automake
2389 # will honor the `STRIP' environment variable to overrule this program.
2390 if test "$cross_compiling" != no; then
2391 if test -n "$ac_tool_prefix"; then
2392 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2393 set dummy ${ac_tool_prefix}strip; ac_word=$2
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2395 $as_echo_n "checking for $ac_word... " >&6; }
2396 if ${ac_cv_prog_STRIP+:} false; then :
2397 $as_echo_n "(cached) " >&6
2399 if test -n "$STRIP"; then
2400 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 test -z "$as_dir" && as_dir=.
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2409 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2419 STRIP=$ac_cv_prog_STRIP
2420 if test -n "$STRIP"; then
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2422 $as_echo "$STRIP" >&6; }
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2425 $as_echo "no" >&6; }
2430 if test -z "$ac_cv_prog_STRIP"; then
2432 # Extract the first word of "strip", so it can be a program name with args.
2433 set dummy strip; ac_word=$2
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2435 $as_echo_n "checking for $ac_word... " >&6; }
2436 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2437 $as_echo_n "(cached) " >&6
2439 if test -n "$ac_ct_STRIP"; then
2440 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_ac_ct_STRIP="strip"
2450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2459 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2460 if test -n "$ac_ct_STRIP"; then
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2462 $as_echo "$ac_ct_STRIP" >&6; }
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2465 $as_echo "no" >&6; }
2468 if test "x$ac_ct_STRIP" = x; then
2471 case $cross_compiling:$ac_tool_warned in
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2475 ac_tool_warned=yes ;;
2480 STRIP="$ac_cv_prog_STRIP"
2484 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2487 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2488 if test -z "$MKDIR_P"; then
2489 if ${ac_cv_path_mkdir+:} false; then :
2490 $as_echo_n "(cached) " >&6
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2496 test -z "$as_dir" && as_dir=.
2497 for ac_prog in mkdir gmkdir; do
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2500 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2501 'mkdir (GNU coreutils) '* | \
2502 'mkdir (coreutils) '* | \
2503 'mkdir (fileutils) '4.1*)
2504 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2514 test -d ./--version && rmdir ./--version
2515 if test "${ac_cv_path_mkdir+set}" = set; then
2516 MKDIR_P="$ac_cv_path_mkdir -p"
2518 # As a last resort, use the slow shell script. Don't cache a
2519 # value for MKDIR_P within a source directory, because that will
2520 # break other packages using the cache if that directory is
2521 # removed, or if the value is a relative name.
2522 MKDIR_P="$ac_install_sh -d"
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2526 $as_echo "$MKDIR_P" >&6; }
2530 [\\/$]* | ?:[\\/]*) ;;
2531 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2534 for ac_prog in gawk mawk nawk awk
2536 # Extract the first word of "$ac_prog", so it can be a program name with args.
2537 set dummy $ac_prog; ac_word=$2
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539 $as_echo_n "checking for $ac_word... " >&6; }
2540 if ${ac_cv_prog_AWK+:} false; then :
2541 $as_echo_n "(cached) " >&6
2543 if test -n "$AWK"; then
2544 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2553 ac_cv_prog_AWK="$ac_prog"
2554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 if test -n "$AWK"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2566 $as_echo "$AWK" >&6; }
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569 $as_echo "no" >&6; }
2573 test -n "$AWK" && break
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2577 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2579 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2580 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2581 $as_echo_n "(cached) " >&6
2583 cat >conftest.make <<\_ACEOF
2586 @echo '@@@%%%=$(MAKE)=@@@%%%'
2588 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2589 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2591 eval ac_cv_prog_make_${ac_make}_set=yes;;
2593 eval ac_cv_prog_make_${ac_make}_set=no;;
2597 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2599 $as_echo "yes" >&6; }
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603 $as_echo "no" >&6; }
2604 SET_MAKE="MAKE=${MAKE-make}"
2607 rm -rf .tst 2>/dev/null
2608 mkdir .tst 2>/dev/null
2609 if test -d .tst; then
2614 rmdir .tst 2>/dev/null
2616 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2617 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2618 # is not polluted with repeated "-I."
2619 am__isrc=' -I$(srcdir)'
2620 # test to see if srcdir already configured
2621 if test -f $srcdir/config.status; then
2622 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2626 # test whether we have cygpath
2627 if test -z "$CYGPATH_W"; then
2628 if (cygpath --version) >/dev/null 2>/dev/null; then
2629 CYGPATH_W='cygpath -w'
2636 # Define the identity of the package.
2641 cat >>confdefs.h <<_ACEOF
2642 #define PACKAGE "$PACKAGE"
2646 cat >>confdefs.h <<_ACEOF
2647 #define VERSION "$VERSION"
2650 # Some tools Automake needs.
2652 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2655 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2658 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2661 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2664 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2666 # We need awk for the "check" target. The system "awk" is bad on
2668 # Always define AMTAR for backward compatibility.
2670 AMTAR=${AMTAR-"${am_missing_run}tar"}
2672 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2680 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2681 # Check whether --enable-maintainer-mode was given.
2682 if test "${enable_maintainer_mode+set}" = set; then :
2683 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2685 USE_MAINTAINER_MODE=no
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2689 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2690 if test $USE_MAINTAINER_MODE = yes; then
2691 MAINTAINER_MODE_TRUE=
2692 MAINTAINER_MODE_FALSE='#'
2694 MAINTAINER_MODE_TRUE='#'
2695 MAINTAINER_MODE_FALSE=
2698 MAINT=$MAINTAINER_MODE_TRUE
2701 ac_config_headers="$ac_config_headers config.h"
2704 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2716 DEPDIR="${am__leading_dot}deps"
2718 ac_config_commands="$ac_config_commands depfiles"
2721 am_make=${MAKE-make}
2722 cat > confinc << 'END'
2724 @echo this is the am__doit target
2727 # If we don't find an include directive, just comment out the code.
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2729 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2733 # First try GNU make style include.
2734 echo "include confinc" > confmf
2735 # Ignore all kinds of additional output from `make'.
2736 case `$am_make -s -f confmf 2> /dev/null` in #(
2737 *the\ am__doit\ target*)
2743 # Now try BSD make style include.
2744 if test "$am__include" = "#"; then
2745 echo '.include "confinc"' > confmf
2746 case `$am_make -s -f confmf 2> /dev/null` in #(
2747 *the\ am__doit\ target*)
2748 am__include=.include
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2757 $as_echo "$_am_result" >&6; }
2758 rm -f confinc confmf
2760 # Check whether --enable-dependency-tracking was given.
2761 if test "${enable_dependency_tracking+set}" = set; then :
2762 enableval=$enable_dependency_tracking;
2765 if test "x$enable_dependency_tracking" != xno; then
2766 am_depcomp="$ac_aux_dir/depcomp"
2769 if test "x$enable_dependency_tracking" != xno; then
2779 ac_cpp='$CPP $CPPFLAGS'
2780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2783 if test -n "$ac_tool_prefix"; then
2784 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2785 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787 $as_echo_n "checking for $ac_word... " >&6; }
2788 if ${ac_cv_prog_CC+:} false; then :
2789 $as_echo_n "(cached) " >&6
2791 if test -n "$CC"; then
2792 ac_cv_prog_CC="$CC" # Let the user override the test.
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 if test -n "$CC"; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2814 $as_echo "$CC" >&6; }
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817 $as_echo "no" >&6; }
2822 if test -z "$ac_cv_prog_CC"; then
2824 # Extract the first word of "gcc", so it can be a program name with args.
2825 set dummy gcc; ac_word=$2
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2829 $as_echo_n "(cached) " >&6
2831 if test -n "$ac_ct_CC"; then
2832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841 ac_cv_prog_ac_ct_CC="gcc"
2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2852 if test -n "$ac_ct_CC"; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2854 $as_echo "$ac_ct_CC" >&6; }
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2860 if test "x$ac_ct_CC" = x; then
2863 case $cross_compiling:$ac_tool_warned in
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2867 ac_tool_warned=yes ;;
2875 if test -z "$CC"; then
2876 if test -n "$ac_tool_prefix"; then
2877 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2878 set dummy ${ac_tool_prefix}cc; ac_word=$2
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if ${ac_cv_prog_CC+:} false; then :
2882 $as_echo_n "(cached) " >&6
2884 if test -n "$CC"; then
2885 ac_cv_prog_CC="$CC" # Let the user override the test.
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894 ac_cv_prog_CC="${ac_tool_prefix}cc"
2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 if test -n "$CC"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2907 $as_echo "$CC" >&6; }
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 $as_echo "no" >&6; }
2916 if test -z "$CC"; then
2917 # Extract the first word of "cc", so it can be a program name with args.
2918 set dummy cc; ac_word=$2
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920 $as_echo_n "checking for $ac_word... " >&6; }
2921 if ${ac_cv_prog_CC+:} false; then :
2922 $as_echo_n "(cached) " >&6
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC="$CC" # Let the user override the test.
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2936 ac_prog_rejected=yes
2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 if test $ac_prog_rejected = yes; then
2948 # We found a bogon in the path, so make sure we never use it.
2949 set dummy $ac_cv_prog_CC
2951 if test $# != 0; then
2952 # We chose a different compiler from the bogus one.
2953 # However, it has the same basename, so the bogon will be chosen
2954 # first if we set CC to just the basename; use the full file name.
2956 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2962 if test -n "$CC"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2964 $as_echo "$CC" >&6; }
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2972 if test -z "$CC"; then
2973 if test -n "$ac_tool_prefix"; then
2974 for ac_prog in cl.exe
2976 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2977 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979 $as_echo_n "checking for $ac_word... " >&6; }
2980 if ${ac_cv_prog_CC+:} false; then :
2981 $as_echo_n "(cached) " >&6
2983 if test -n "$CC"; then
2984 ac_cv_prog_CC="$CC" # Let the user override the test.
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2993 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 if test -n "$CC"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3006 $as_echo "$CC" >&6; }
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3013 test -n "$CC" && break
3016 if test -z "$CC"; then
3018 for ac_prog in cl.exe
3020 # Extract the first word of "$ac_prog", so it can be a program name with args.
3021 set dummy $ac_prog; ac_word=$2
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3025 $as_echo_n "(cached) " >&6
3027 if test -n "$ac_ct_CC"; then
3028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037 ac_cv_prog_ac_ct_CC="$ac_prog"
3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3048 if test -n "$ac_ct_CC"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3050 $as_echo "$ac_ct_CC" >&6; }
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3057 test -n "$ac_ct_CC" && break
3060 if test "x$ac_ct_CC" = x; then
3063 case $cross_compiling:$ac_tool_warned in
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3067 ac_tool_warned=yes ;;
3076 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3078 as_fn_error $? "no acceptable C compiler found in \$PATH
3079 See \`config.log' for more details" "$LINENO" 5; }
3081 # Provide some information about the compiler.
3082 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3085 for ac_option in --version -v -V -qversion; do
3086 { { ac_try="$ac_compiler $ac_option >&5"
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3092 $as_echo "$ac_try_echo"; } >&5
3093 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3095 if test -s conftest.err; then
3097 ... rest of stderr output deleted ...
3098 10q' conftest.err >conftest.er1
3099 cat conftest.er1 >&5
3101 rm -f conftest.er1 conftest.err
3102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3103 test $ac_status = 0; }
3106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3107 /* end confdefs.h. */
3117 ac_clean_files_save=$ac_clean_files
3118 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3119 # Try to create an executable without -o first, disregard a.out.
3120 # It will help us diagnose broken compilers, and finding out an intuition
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3123 $as_echo_n "checking whether the C compiler works... " >&6; }
3124 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3126 # The possible output files:
3127 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3130 for ac_file in $ac_files
3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3134 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3139 if { { ac_try="$ac_link_default"
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145 $as_echo "$ac_try_echo"; } >&5
3146 (eval "$ac_link_default") 2>&5
3148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3149 test $ac_status = 0; }; then :
3150 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3151 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3152 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3153 # so that the user can short-circuit this test for compilers unknown to
3155 for ac_file in $ac_files ''
3157 test -f "$ac_file" || continue
3159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3162 # We found the default executable, but exeext='' is most
3166 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3168 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3170 # We set ac_cv_exeext here because the later test for it is not
3171 # safe: cross compilers may not add the suffix if given an `-o'
3172 # argument, so we may need to know it at that point already.
3173 # Even if this section looks crufty: it has the advantage of
3180 test "$ac_cv_exeext" = no && ac_cv_exeext=
3185 if test -z "$ac_file"; then :
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 $as_echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3193 as_fn_error 77 "C compiler cannot create executables
3194 See \`config.log' for more details" "$LINENO" 5; }
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3197 $as_echo "yes" >&6; }
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3200 $as_echo_n "checking for C compiler default output file name... " >&6; }
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3202 $as_echo "$ac_file" >&6; }
3203 ac_exeext=$ac_cv_exeext
3205 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3206 ac_clean_files=$ac_clean_files_save
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3208 $as_echo_n "checking for suffix of executables... " >&6; }
3209 if { { ac_try="$ac_link"
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215 $as_echo "$ac_try_echo"; } >&5
3216 (eval "$ac_link") 2>&5
3218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219 test $ac_status = 0; }; then :
3220 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3221 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3222 # work properly (i.e., refer to `conftest.exe'), while it won't with
3224 for ac_file in conftest.exe conftest conftest.*; do
3225 test -f "$ac_file" || continue
3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3237 See \`config.log' for more details" "$LINENO" 5; }
3239 rm -f conftest conftest$ac_cv_exeext
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3241 $as_echo "$ac_cv_exeext" >&6; }
3243 rm -f conftest.$ac_ext
3244 EXEEXT=$ac_cv_exeext
3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247 /* end confdefs.h. */
3252 FILE *f = fopen ("conftest.out", "w");
3253 return ferror (f) || fclose (f) != 0;
3259 ac_clean_files="$ac_clean_files conftest.out"
3260 # Check that the compiler produces executables we can run. If not, either
3261 # the compiler is broken, or we cross compile.
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3263 $as_echo_n "checking whether we are cross compiling... " >&6; }
3264 if test "$cross_compiling" != yes; then
3265 { { ac_try="$ac_link"
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271 $as_echo "$ac_try_echo"; } >&5
3272 (eval "$ac_link") 2>&5
3274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275 test $ac_status = 0; }
3276 if { ac_try='./conftest$ac_cv_exeext'
3277 { { case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282 $as_echo "$ac_try_echo"; } >&5
3283 (eval "$ac_try") 2>&5
3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286 test $ac_status = 0; }; }; then
3289 if test "$cross_compiling" = maybe; then
3292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294 as_fn_error $? "cannot run C compiled programs.
3295 If you meant to cross compile, use \`--host'.
3296 See \`config.log' for more details" "$LINENO" 5; }
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3301 $as_echo "$cross_compiling" >&6; }
3303 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3304 ac_clean_files=$ac_clean_files_save
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3306 $as_echo_n "checking for suffix of object files... " >&6; }
3307 if ${ac_cv_objext+:} false; then :
3308 $as_echo_n "(cached) " >&6
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h. */
3321 rm -f conftest.o conftest.obj
3322 if { { ac_try="$ac_compile"
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328 $as_echo "$ac_try_echo"; } >&5
3329 (eval "$ac_compile") 2>&5
3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }; then :
3333 for ac_file in conftest.o conftest.obj conftest.*; do
3334 test -f "$ac_file" || continue;
3336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3337 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3342 $as_echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347 as_fn_error $? "cannot compute suffix of object files: cannot compile
3348 See \`config.log' for more details" "$LINENO" 5; }
3350 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3353 $as_echo "$ac_cv_objext" >&6; }
3354 OBJEXT=$ac_cv_objext
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3357 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3358 if ${ac_cv_c_compiler_gnu+:} false; then :
3359 $as_echo_n "(cached) " >&6
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362 /* end confdefs.h. */
3375 if ac_fn_c_try_compile "$LINENO"; then :
3380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3385 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3386 if test $ac_compiler_gnu = yes; then
3391 ac_test_CFLAGS=${CFLAGS+set}
3392 ac_save_CFLAGS=$CFLAGS
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3394 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3395 if ${ac_cv_prog_cc_g+:} false; then :
3396 $as_echo_n "(cached) " >&6
3398 ac_save_c_werror_flag=$ac_c_werror_flag
3399 ac_c_werror_flag=yes
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h. */
3413 if ac_fn_c_try_compile "$LINENO"; then :
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h. */
3428 if ac_fn_c_try_compile "$LINENO"; then :
3431 ac_c_werror_flag=$ac_save_c_werror_flag
3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434 /* end confdefs.h. */
3444 if ac_fn_c_try_compile "$LINENO"; then :
3447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 ac_c_werror_flag=$ac_save_c_werror_flag
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3455 $as_echo "$ac_cv_prog_cc_g" >&6; }
3456 if test "$ac_test_CFLAGS" = set; then
3457 CFLAGS=$ac_save_CFLAGS
3458 elif test $ac_cv_prog_cc_g = yes; then
3459 if test "$GCC" = yes; then
3465 if test "$GCC" = yes; then
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3472 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3473 if ${ac_cv_prog_cc_c89+:} false; then :
3474 $as_echo_n "(cached) " >&6
3476 ac_cv_prog_cc_c89=no
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3482 #include <sys/types.h>
3483 #include <sys/stat.h>
3484 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3485 struct buf { int x; };
3486 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3487 static char *e (p, i)
3493 static char *f (char * (*g) (char **, int), char **p, ...)
3498 s = g (p, va_arg (v,int));
3503 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3504 function prototypes and stuff, but not '\xHH' hex character constants.
3505 These don't provoke an error unfortunately, instead are silently treated
3506 as 'x'. The following induces an error, until -std is added to get
3507 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3508 array size at least. It's necessary to write '\x00'==0 to get something
3509 that's true only with -std. */
3510 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3512 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3513 inside strings and character constants. */
3515 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3517 int test (int i, double x);
3518 struct s1 {int (*f) (int a);};
3519 struct s2 {int (*f) (double a);};
3520 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3526 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3531 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3532 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3534 CC="$ac_save_CC $ac_arg"
3535 if ac_fn_c_try_compile "$LINENO"; then :
3536 ac_cv_prog_cc_c89=$ac_arg
3538 rm -f core conftest.err conftest.$ac_objext
3539 test "x$ac_cv_prog_cc_c89" != "xno" && break
3541 rm -f conftest.$ac_ext
3546 case "x$ac_cv_prog_cc_c89" in
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3549 $as_echo "none needed" >&6; } ;;
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3552 $as_echo "unsupported" >&6; } ;;
3554 CC="$CC $ac_cv_prog_cc_c89"
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3556 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3558 if test "x$ac_cv_prog_cc_c89" != xno; then :
3563 ac_cpp='$CPP $CPPFLAGS'
3564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568 depcc="$CC" am_compiler_list=
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3571 $as_echo_n "checking dependency style of $depcc... " >&6; }
3572 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3573 $as_echo_n "(cached) " >&6
3575 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3576 # We make a subdir and do the tests there. Otherwise we can end up
3577 # making bogus files that we don't know about and never remove. For
3578 # instance it was reported that on HP-UX the gcc test will end up
3579 # making a dummy file named `D' -- because `-MD' means `put the output
3582 # Copy depcomp to subdir because otherwise we won't find it if we're
3583 # using a relative directory.
3584 cp "$am_depcomp" conftest.dir
3586 # We will build objects and dependencies in a subdirectory because
3587 # it helps to detect inapplicable dependency modes. For instance
3588 # both Tru64's cc and ICC support -MD to output dependencies as a
3589 # side effect of compilation, but ICC will put the dependencies in
3590 # the current directory while Tru64 will put them in the object
3594 am_cv_CC_dependencies_compiler_type=none
3595 if test "$am_compiler_list" = ""; then
3596 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3599 case " $depcc " in #(
3600 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3603 for depmode in $am_compiler_list; do
3604 # Setup a source with many dependencies, because some compilers
3605 # like to wrap large dependency lists on column 80 (with \), and
3606 # we should not choose a depcomp mode which is confused by this.
3608 # We need to recreate these files for each test, as the compiler may
3609 # overwrite some of them when testing with obscure command lines.
3610 # This happens at least with the AIX C compiler.
3612 for i in 1 2 3 4 5 6; do
3613 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3614 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3615 # Solaris 8's {/usr,}/bin/sh.
3616 touch sub/conftst$i.h
3618 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3620 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3621 # mode. It turns out that the SunPro C++ compiler does not properly
3622 # handle `-M -o', and we need to detect this. Also, some Intel
3623 # versions had trouble with output in subdirs
3624 am__obj=sub/conftest.${OBJEXT-o}
3625 am__minus_obj="-o $am__obj"
3628 # This depmode causes a compiler race in universal mode.
3629 test "$am__universal" = false || continue
3632 # after this tag, mechanisms are not by side-effect, so they'll
3633 # only be used when explicitly requested
3634 if test "x$enable_dependency_tracking" = xyes; then
3640 msvisualcpp | msvcmsys)
3641 # This compiler won't grok `-c -o', but also, the minuso test has
3642 # not run yet. These depmodes are late enough in the game, and
3643 # so weak that their functioning should not be impacted.
3644 am__obj=conftest.${OBJEXT-o}
3649 if depmode=$depmode \
3650 source=sub/conftest.c object=$am__obj \
3651 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3652 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3653 >/dev/null 2>conftest.err &&
3654 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3655 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3656 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3657 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3658 # icc doesn't choke on unknown options, it will just issue warnings
3659 # or remarks (even with -Werror). So we grep stderr for any message
3660 # that says an option was ignored or not supported.
3661 # When given -MP, icc 7.0 and 7.1 complain thusly:
3662 # icc: Command line warning: ignoring option '-M'; no argument required
3663 # The diagnosis changed in icc 8.0:
3664 # icc: Command line remark: option '-MP' not supported
3665 if (grep 'ignoring option' conftest.err ||
3666 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3667 am_cv_CC_dependencies_compiler_type=$depmode
3676 am_cv_CC_dependencies_compiler_type=none
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3681 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3682 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3685 test "x$enable_dependency_tracking" != xno \
3686 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3688 am__fastdepCC_FALSE='#'
3690 am__fastdepCC_TRUE='#'
3691 am__fastdepCC_FALSE=
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3696 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3697 if ${ac_cv_prog_cc_c99+:} false; then :
3698 $as_echo_n "(cached) " >&6
3700 ac_cv_prog_cc_c99=no
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3705 #include <stdbool.h>
3710 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3711 #define debug(...) fprintf (stderr, __VA_ARGS__)
3712 #define showlist(...) puts (#__VA_ARGS__)
3713 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3715 test_varargs_macros (void)
3720 debug ("X = %d\n", x);
3721 showlist (The first, second, and third items.);
3722 report (x>y, "x is %d but y is %d", x, y);
3725 // Check long long types.
3726 #define BIG64 18446744073709551615ull
3727 #define BIG32 4294967295ul
3728 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3730 your preprocessor is broken;
3734 your preprocessor is broken;
3736 static long long int bignum = -9223372036854775807LL;
3737 static unsigned long long int ubignum = BIG64;
3739 struct incomplete_array
3747 const wchar_t *name;
3751 typedef const char *ccp;
3754 test_restrict (ccp restrict text)
3756 // See if C++-style comments work.
3757 // Iterate through items via the restricted pointer.
3758 // Also check for declarations in for loops.
3759 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3764 // Check varargs and va_copy.
3766 test_varargs (const char *format, ...)
3769 va_start (args, format);
3771 va_copy (args_copy, args);
3782 str = va_arg (args_copy, const char *);
3785 number = va_arg (args_copy, int);
3788 fnumber = va_arg (args_copy, double);
3803 _Bool success = false;
3806 if (test_restrict ("String literal") == 0)
3808 char *restrict newvar = "Another string";
3811 test_varargs ("s, d' f .", "string", 65, 34.234);
3812 test_varargs_macros ();
3814 // Check flexible array members.
3815 struct incomplete_array *ia =
3816 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3818 for (int i = 0; i < ia->datasize; ++i)
3819 ia->data[i] = i * 1.234;
3821 // Check named initializers.
3822 struct named_init ni = {
3824 .name = L"Test wide string",
3825 .average = 543.34343,
3830 int dynamic_array[ni.number];
3831 dynamic_array[ni.number - 1] = 543;
3833 // work around unused variable warnings
3834 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3835 || dynamic_array[ni.number - 1] != 543);
3841 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3843 CC="$ac_save_CC $ac_arg"
3844 if ac_fn_c_try_compile "$LINENO"; then :
3845 ac_cv_prog_cc_c99=$ac_arg
3847 rm -f core conftest.err conftest.$ac_objext
3848 test "x$ac_cv_prog_cc_c99" != "xno" && break
3850 rm -f conftest.$ac_ext
3855 case "x$ac_cv_prog_cc_c99" in
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3858 $as_echo "none needed" >&6; } ;;
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3861 $as_echo "unsupported" >&6; } ;;
3863 CC="$CC $ac_cv_prog_cc_c99"
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3865 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3867 if test "x$ac_cv_prog_cc_c99" != xno; then :
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3879 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3880 # On Suns, sometimes $CPP names a directory.
3881 if test -n "$CPP" && test -d "$CPP"; then
3884 if test -z "$CPP"; then
3885 if ${ac_cv_prog_CPP+:} false; then :
3886 $as_echo_n "(cached) " >&6
3888 # Double quotes because CPP needs to be expanded
3889 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3892 for ac_c_preproc_warn_flag in '' yes
3894 # Use a header file that comes with gcc, so configuring glibc
3895 # with a fresh cross-compiler works.
3896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3897 # <limits.h> exists even on freestanding compilers.
3898 # On the NeXT, cc -E runs the code through the compiler's parser,
3899 # not just through cpp. "Syntax error" is here to catch this case.
3900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901 /* end confdefs.h. */
3903 # include <limits.h>
3905 # include <assert.h>
3909 if ac_fn_c_try_cpp "$LINENO"; then :
3912 # Broken: fails on valid input.
3915 rm -f conftest.err conftest.i conftest.$ac_ext
3917 # OK, works on sane cases. Now check whether nonexistent headers
3918 # can be detected and how.
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3921 #include <ac_nonexistent.h>
3923 if ac_fn_c_try_cpp "$LINENO"; then :
3924 # Broken: success on invalid input.
3927 # Passes both tests.
3931 rm -f conftest.err conftest.i conftest.$ac_ext
3934 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3935 rm -f conftest.i conftest.err conftest.$ac_ext
3936 if $ac_preproc_ok; then :
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3949 $as_echo "$CPP" >&6; }
3951 for ac_c_preproc_warn_flag in '' yes
3953 # Use a header file that comes with gcc, so configuring glibc
3954 # with a fresh cross-compiler works.
3955 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3956 # <limits.h> exists even on freestanding compilers.
3957 # On the NeXT, cc -E runs the code through the compiler's parser,
3958 # not just through cpp. "Syntax error" is here to catch this case.
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3962 # include <limits.h>
3964 # include <assert.h>
3968 if ac_fn_c_try_cpp "$LINENO"; then :
3971 # Broken: fails on valid input.
3974 rm -f conftest.err conftest.i conftest.$ac_ext
3976 # OK, works on sane cases. Now check whether nonexistent headers
3977 # can be detected and how.
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h. */
3980 #include <ac_nonexistent.h>
3982 if ac_fn_c_try_cpp "$LINENO"; then :
3983 # Broken: success on invalid input.
3986 # Passes both tests.
3990 rm -f conftest.err conftest.i conftest.$ac_ext
3993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3994 rm -f conftest.i conftest.err conftest.$ac_ext
3995 if $ac_preproc_ok; then :
3998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4000 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4001 See \`config.log' for more details" "$LINENO" 5; }
4005 ac_cpp='$CPP $CPPFLAGS'
4006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4012 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4013 if ${ac_cv_path_GREP+:} false; then :
4014 $as_echo_n "(cached) " >&6
4016 if test -z "$GREP"; then
4017 ac_path_GREP_found=false
4018 # Loop through the user's path and test for each of PROGNAME-LIST
4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4023 test -z "$as_dir" && as_dir=.
4024 for ac_prog in grep ggrep; do
4025 for ac_exec_ext in '' $ac_executable_extensions; do
4026 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4027 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4028 # Check for GNU ac_path_GREP and select it if it is found.
4029 # Check for GNU $ac_path_GREP
4030 case `"$ac_path_GREP" --version 2>&1` in
4032 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4035 $as_echo_n 0123456789 >"conftest.in"
4038 cat "conftest.in" "conftest.in" >"conftest.tmp"
4039 mv "conftest.tmp" "conftest.in"
4040 cp "conftest.in" "conftest.nl"
4041 $as_echo 'GREP' >> "conftest.nl"
4042 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4043 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4044 as_fn_arith $ac_count + 1 && ac_count=$as_val
4045 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4046 # Best one so far, save it but keep looking for a better one
4047 ac_cv_path_GREP="$ac_path_GREP"
4048 ac_path_GREP_max=$ac_count
4050 # 10*(2^10) chars as input seems more than enough
4051 test $ac_count -gt 10 && break
4053 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4056 $ac_path_GREP_found && break 3
4061 if test -z "$ac_cv_path_GREP"; then
4062 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4065 ac_cv_path_GREP=$GREP
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4070 $as_echo "$ac_cv_path_GREP" >&6; }
4071 GREP="$ac_cv_path_GREP"
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4075 $as_echo_n "checking for egrep... " >&6; }
4076 if ${ac_cv_path_EGREP+:} false; then :
4077 $as_echo_n "(cached) " >&6
4079 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4080 then ac_cv_path_EGREP="$GREP -E"
4082 if test -z "$EGREP"; then
4083 ac_path_EGREP_found=false
4084 # Loop through the user's path and test for each of PROGNAME-LIST
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4089 test -z "$as_dir" && as_dir=.
4090 for ac_prog in egrep; do
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4093 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4094 # Check for GNU ac_path_EGREP and select it if it is found.
4095 # Check for GNU $ac_path_EGREP
4096 case `"$ac_path_EGREP" --version 2>&1` in
4098 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4101 $as_echo_n 0123456789 >"conftest.in"
4104 cat "conftest.in" "conftest.in" >"conftest.tmp"
4105 mv "conftest.tmp" "conftest.in"
4106 cp "conftest.in" "conftest.nl"
4107 $as_echo 'EGREP' >> "conftest.nl"
4108 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4109 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4110 as_fn_arith $ac_count + 1 && ac_count=$as_val
4111 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4112 # Best one so far, save it but keep looking for a better one
4113 ac_cv_path_EGREP="$ac_path_EGREP"
4114 ac_path_EGREP_max=$ac_count
4116 # 10*(2^10) chars as input seems more than enough
4117 test $ac_count -gt 10 && break
4119 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4122 $ac_path_EGREP_found && break 3
4127 if test -z "$ac_cv_path_EGREP"; then
4128 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4131 ac_cv_path_EGREP=$EGREP
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4137 $as_echo "$ac_cv_path_EGREP" >&6; }
4138 EGREP="$ac_cv_path_EGREP"
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4142 $as_echo_n "checking for ANSI C header files... " >&6; }
4143 if ${ac_cv_header_stdc+:} false; then :
4144 $as_echo_n "(cached) " >&6
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4161 if ac_fn_c_try_compile "$LINENO"; then :
4162 ac_cv_header_stdc=yes
4164 ac_cv_header_stdc=no
4166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4168 if test $ac_cv_header_stdc = yes; then
4169 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4176 $EGREP "memchr" >/dev/null 2>&1; then :
4179 ac_cv_header_stdc=no
4185 if test $ac_cv_header_stdc = yes; then
4186 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4193 $EGREP "free" >/dev/null 2>&1; then :
4196 ac_cv_header_stdc=no
4202 if test $ac_cv_header_stdc = yes; then
4203 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4204 if test "$cross_compiling" = yes; then :
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4211 #if ((' ' & 0x0FF) == 0x020)
4212 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4213 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4215 # define ISLOWER(c) \
4216 (('a' <= (c) && (c) <= 'i') \
4217 || ('j' <= (c) && (c) <= 'r') \
4218 || ('s' <= (c) && (c) <= 'z'))
4219 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4222 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4227 for (i = 0; i < 256; i++)
4228 if (XOR (islower (i), ISLOWER (i))
4229 || toupper (i) != TOUPPER (i))
4234 if ac_fn_c_try_run "$LINENO"; then :
4237 ac_cv_header_stdc=no
4239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4240 conftest.$ac_objext conftest.beam conftest.$ac_ext
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4246 $as_echo "$ac_cv_header_stdc" >&6; }
4247 if test $ac_cv_header_stdc = yes; then
4249 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4253 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4254 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4255 inttypes.h stdint.h unistd.h
4257 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4258 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4260 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4261 cat >>confdefs.h <<_ACEOF
4262 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4272 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4273 if test -n "$ac_tool_prefix"; then
4274 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4275 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 $as_echo_n "checking for $ac_word... " >&6; }
4278 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4279 $as_echo_n "(cached) " >&6
4283 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290 test -z "$as_dir" && as_dir=.
4291 for ac_exec_ext in '' $ac_executable_extensions; do
4292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4293 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4305 if test -n "$PKG_CONFIG"; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4307 $as_echo "$PKG_CONFIG" >&6; }
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4315 if test -z "$ac_cv_path_PKG_CONFIG"; then
4316 ac_pt_PKG_CONFIG=$PKG_CONFIG
4317 # Extract the first word of "pkg-config", so it can be a program name with args.
4318 set dummy pkg-config; ac_word=$2
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4320 $as_echo_n "checking for $ac_word... " >&6; }
4321 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4322 $as_echo_n "(cached) " >&6
4324 case $ac_pt_PKG_CONFIG in
4326 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 test -z "$as_dir" && as_dir=.
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4336 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4347 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4348 if test -n "$ac_pt_PKG_CONFIG"; then
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4350 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353 $as_echo "no" >&6; }
4356 if test "x$ac_pt_PKG_CONFIG" = x; then
4359 case $cross_compiling:$ac_tool_warned in
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4363 ac_tool_warned=yes ;;
4365 PKG_CONFIG=$ac_pt_PKG_CONFIG
4368 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4372 if test -n "$PKG_CONFIG"; then
4373 _pkg_min_version=0.9.0
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4375 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4376 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4378 $as_echo "yes" >&6; }
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4381 $as_echo "no" >&6; }
4386 # Make sure we can run config.sub.
4387 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4388 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4391 $as_echo_n "checking build system type... " >&6; }
4392 if ${ac_cv_build+:} false; then :
4393 $as_echo_n "(cached) " >&6
4395 ac_build_alias=$build_alias
4396 test "x$ac_build_alias" = x &&
4397 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4398 test "x$ac_build_alias" = x &&
4399 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4400 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4401 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4405 $as_echo "$ac_cv_build" >&6; }
4406 case $ac_cv_build in
4408 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4411 ac_save_IFS=$IFS; IFS='-'
4417 # Remember, the first character of IFS is used to create $*,
4418 # except with old shells:
4421 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4425 $as_echo_n "checking host system type... " >&6; }
4426 if ${ac_cv_host+:} false; then :
4427 $as_echo_n "(cached) " >&6
4429 if test "x$host_alias" = x; then
4430 ac_cv_host=$ac_cv_build
4432 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4433 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4438 $as_echo "$ac_cv_host" >&6; }
4441 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4444 ac_save_IFS=$IFS; IFS='-'
4450 # Remember, the first character of IFS is used to create $*,
4451 # except with old shells:
4454 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4458 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4459 if ${ac_cv_path_SED+:} false; then :
4460 $as_echo_n "(cached) " >&6
4462 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4463 for ac_i in 1 2 3 4 5 6 7; do
4464 ac_script="$ac_script$as_nl$ac_script"
4466 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4467 { ac_script=; unset ac_script;}
4468 if test -z "$SED"; then
4469 ac_path_SED_found=false
4470 # Loop through the user's path and test for each of PROGNAME-LIST
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 test -z "$as_dir" && as_dir=.
4476 for ac_prog in sed gsed; do
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4479 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4480 # Check for GNU ac_path_SED and select it if it is found.
4481 # Check for GNU $ac_path_SED
4482 case `"$ac_path_SED" --version 2>&1` in
4484 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4487 $as_echo_n 0123456789 >"conftest.in"
4490 cat "conftest.in" "conftest.in" >"conftest.tmp"
4491 mv "conftest.tmp" "conftest.in"
4492 cp "conftest.in" "conftest.nl"
4493 $as_echo '' >> "conftest.nl"
4494 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4495 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4496 as_fn_arith $ac_count + 1 && ac_count=$as_val
4497 if test $ac_count -gt ${ac_path_SED_max-0}; then
4498 # Best one so far, save it but keep looking for a better one
4499 ac_cv_path_SED="$ac_path_SED"
4500 ac_path_SED_max=$ac_count
4502 # 10*(2^10) chars as input seems more than enough
4503 test $ac_count -gt 10 && break
4505 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4508 $ac_path_SED_found && break 3
4513 if test -z "$ac_cv_path_SED"; then
4514 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4522 $as_echo "$ac_cv_path_SED" >&6; }
4523 SED="$ac_cv_path_SED"
4530 if test "x$GCC" = xyes ; then
4531 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4532 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4533 -Wbad-function-cast -Wformat=2"
4534 case `$CC -dumpversion` in
4536 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4540 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4541 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4547 if test "x$SUNCC" = "xyes"; then
4554 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4558 # Check whether --enable-strict-compilation was given.
4559 if test "${enable_strict_compilation+set}" = set; then :
4560 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4565 if test "x$STRICT_COMPILE" = "xyes"; then
4566 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4567 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4573 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4574 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4580 if test "x$GCC" = xyes ; then
4581 STRICT_CFLAGS="-pedantic -Werror"
4582 elif test "x$SUNCC" = "xyes"; then
4583 STRICT_CFLAGS="-errwarn"
4584 elif test "x$INTELCC" = "xyes"; then
4585 STRICT_CFLAGS="-Werror"
4588 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4593 cat >>confdefs.h <<_ACEOF
4594 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4597 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4598 if test "x$PVM" = "x"; then
4602 cat >>confdefs.h <<_ACEOF
4603 #define PACKAGE_VERSION_MINOR $PVM
4606 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4607 if test "x$PVP" = "x"; then
4611 cat >>confdefs.h <<_ACEOF
4612 #define PACKAGE_VERSION_PATCHLEVEL $PVP
4617 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4618 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4619 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4620 echo 'git directory not found: installing possibly empty changelog.' >&2)"
4625 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4626 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4627 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4628 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4629 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4636 if test x$APP_MAN_SUFFIX = x ; then
4639 if test x$APP_MAN_DIR = x ; then
4640 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4643 if test x$LIB_MAN_SUFFIX = x ; then
4646 if test x$LIB_MAN_DIR = x ; then
4647 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4650 if test x$FILE_MAN_SUFFIX = x ; then
4652 solaris*) FILE_MAN_SUFFIX=4 ;;
4653 *) FILE_MAN_SUFFIX=5 ;;
4656 if test x$FILE_MAN_DIR = x ; then
4657 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4660 if test x$MISC_MAN_SUFFIX = x ; then
4662 solaris*) MISC_MAN_SUFFIX=5 ;;
4663 *) MISC_MAN_SUFFIX=7 ;;
4666 if test x$MISC_MAN_DIR = x ; then
4667 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4670 if test x$DRIVER_MAN_SUFFIX = x ; then
4672 solaris*) DRIVER_MAN_SUFFIX=7 ;;
4673 *) DRIVER_MAN_SUFFIX=4 ;;
4676 if test x$DRIVER_MAN_DIR = x ; then
4677 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4680 if test x$ADMIN_MAN_SUFFIX = x ; then
4682 solaris*) ADMIN_MAN_SUFFIX=1m ;;
4683 *) ADMIN_MAN_SUFFIX=8 ;;
4686 if test x$ADMIN_MAN_DIR = x ; then
4687 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4704 XORG_MAN_PAGE="X Version 11"
4707 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4708 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4709 -e 's|__xservername__|Xorg|g' \
4710 -e 's|__xconfigfile__|xorg.conf|g' \
4711 -e 's|__projectroot__|\$(prefix)|g' \
4712 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
4713 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4714 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4715 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4716 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4717 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4718 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4722 # Check whether --enable-silent-rules was given.
4723 if test "${enable_silent_rules+set}" = set; then :
4724 enableval=$enable_silent_rules;
4727 case $enable_silent_rules in
4728 yes) AM_DEFAULT_VERBOSITY=0;;
4729 no) AM_DEFAULT_VERBOSITY=1;;
4730 *) AM_DEFAULT_VERBOSITY=0;;
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RGB" >&5
4739 $as_echo_n "checking for RGB... " >&6; }
4741 if test -n "$RGB_CFLAGS"; then
4742 pkg_cv_RGB_CFLAGS="$RGB_CFLAGS"
4743 elif test -n "$PKG_CONFIG"; then
4744 if test -n "$PKG_CONFIG" && \
4745 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
4746 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
4748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4749 test $ac_status = 0; }; then
4750 pkg_cv_RGB_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
4757 if test -n "$RGB_LIBS"; then
4758 pkg_cv_RGB_LIBS="$RGB_LIBS"
4759 elif test -n "$PKG_CONFIG"; then
4760 if test -n "$PKG_CONFIG" && \
4761 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
4762 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
4764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4765 test $ac_status = 0; }; then
4766 pkg_cv_RGB_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
4776 if test $pkg_failed = yes; then
4778 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4779 _pkg_short_errors_supported=yes
4781 _pkg_short_errors_supported=no
4783 if test $_pkg_short_errors_supported = yes; then
4784 RGB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1`
4786 RGB_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1`
4788 # Put the nasty error message in config.log where it belongs
4789 echo "$RGB_PKG_ERRORS" >&5
4791 as_fn_error $? "Package requirements (xproto) were not met:
4795 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4796 installed software in a non-standard prefix.
4798 Alternatively, you may set the environment variables RGB_CFLAGS
4799 and RGB_LIBS to avoid the need to call pkg-config.
4800 See the pkg-config man page for more details.
4802 elif test $pkg_failed = untried; then
4803 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4805 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
4806 is in your PATH or set the PKG_CONFIG environment variable to the full
4809 Alternatively, you may set the environment variables RGB_CFLAGS
4810 and RGB_LIBS to avoid the need to call pkg-config.
4811 See the pkg-config man page for more details.
4813 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4814 See \`config.log' for more details" "$LINENO" 5; }
4816 RGB_CFLAGS=$pkg_cv_RGB_CFLAGS
4817 RGB_LIBS=$pkg_cv_RGB_LIBS
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4819 $as_echo "yes" >&6; }
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rgb database location" >&5
4824 $as_echo_n "checking for rgb database location... " >&6; }
4826 # Check whether --with-rgb-db-dir was given.
4827 if test "${with_rgb_db_dir+set}" = set; then :
4828 withval=$with_rgb_db_dir; db_path=$withval
4830 db_path=${datadir}/X11/rgb
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_path" >&5
4834 $as_echo "$db_path" >&6; }
4835 db_file=`basename $db_path`
4836 db_dir=`dirname $db_path`
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rgb database format" >&5
4841 $as_echo_n "checking for rgb database format... " >&6; }
4843 # Check whether --with-rgb-db-type was given.
4844 if test "${with_rgb_db_type+set}" = set; then :
4845 withval=$with_rgb_db_type; db_type=$withval
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_type" >&5
4851 $as_echo "$db_type" >&6; }
4853 RGB_DB_TYPE=$db_type
4859 $as_echo "#define USE_RGB_TXT 1" >>confdefs.h
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dbminit" >&5
4864 $as_echo_n "checking for library containing dbminit... " >&6; }
4865 if ${ac_cv_search_dbminit+:} false; then :
4866 $as_echo_n "(cached) " >&6
4868 ac_func_search_save_LIBS=$LIBS
4869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870 /* end confdefs.h. */
4872 /* Override any GCC internal prototype to avoid an error.
4873 Use char because int might match the return type of a GCC
4874 builtin and then its argument prototype would still apply. */
4887 for ac_lib in '' db dbm nsl; do
4888 if test -z "$ac_lib"; then
4889 ac_res="none required"
4892 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4894 if ac_fn_c_try_link "$LINENO"; then :
4895 ac_cv_search_dbminit=$ac_res
4897 rm -f core conftest.err conftest.$ac_objext \
4899 if ${ac_cv_search_dbminit+:} false; then :
4903 if ${ac_cv_search_dbminit+:} false; then :
4906 ac_cv_search_dbminit=no
4909 LIBS=$ac_func_search_save_LIBS
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbminit" >&5
4912 $as_echo "$ac_cv_search_dbminit" >&6; }
4913 ac_res=$ac_cv_search_dbminit
4914 if test "$ac_res" != no; then :
4915 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4918 as_fn_error $? "dbm requested but dbminit() not found in any libraries" "$LINENO" 5
4921 ac_fn_c_check_header_mongrel "$LINENO" "dbm.h" "ac_cv_header_dbm_h" "$ac_includes_default"
4922 if test "x$ac_cv_header_dbm_h" = xyes; then :
4923 DBM_HEADER='<dbm.h>'
4925 ac_fn_c_check_header_mongrel "$LINENO" "rpcsvc/dbm.h" "ac_cv_header_rpcsvc_dbm_h" "$ac_includes_default"
4926 if test "x$ac_cv_header_rpcsvc_dbm_h" = xyes; then :
4927 DBM_HEADER='<rpcsvc/dbm.h>'
4929 as_fn_error $? "dbm requested but dbm.h not found" "$LINENO" 5
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
4939 $as_echo_n "checking for XORG... " >&6; }
4941 if test -n "$XORG_CFLAGS"; then
4942 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
4943 elif test -n "$PKG_CONFIG"; then
4944 if test -n "$PKG_CONFIG" && \
4945 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5
4946 ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5
4948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4949 test $ac_status = 0; }; then
4950 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server" 2>/dev/null`
4957 if test -n "$XORG_LIBS"; then
4958 pkg_cv_XORG_LIBS="$XORG_LIBS"
4959 elif test -n "$PKG_CONFIG"; then
4960 if test -n "$PKG_CONFIG" && \
4961 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5
4962 ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5
4964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4965 test $ac_status = 0; }; then
4966 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server" 2>/dev/null`
4976 if test $pkg_failed = yes; then
4978 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4979 _pkg_short_errors_supported=yes
4981 _pkg_short_errors_supported=no
4983 if test $_pkg_short_errors_supported = yes; then
4984 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server" 2>&1`
4986 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server" 2>&1`
4988 # Put the nasty error message in config.log where it belongs
4989 echo "$XORG_PKG_ERRORS" >&5
4991 as_fn_error $? "Package requirements (xorg-server) were not met:
4995 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4996 installed software in a non-standard prefix.
4998 Alternatively, you may set the environment variables XORG_CFLAGS
4999 and XORG_LIBS to avoid the need to call pkg-config.
5000 See the pkg-config man page for more details.
5002 elif test $pkg_failed = untried; then
5003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5005 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5006 is in your PATH or set the PKG_CONFIG environment variable to the full
5009 Alternatively, you may set the environment variables XORG_CFLAGS
5010 and XORG_LIBS to avoid the need to call pkg-config.
5011 See the pkg-config man page for more details.
5013 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5014 See \`config.log' for more details" "$LINENO" 5; }
5016 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
5017 XORG_LIBS=$pkg_cv_XORG_LIBS
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5019 $as_echo "yes" >&6; }
5022 RGB_CFLAGS="$RGB_CFLAGS $XORG_CFLAGS"
5023 RGB_DB_FILES='$(db_file).dir $(db_file).pag'
5026 # Find a dbm or ndbm implementation
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dbm_open" >&5
5028 $as_echo_n "checking for library containing dbm_open... " >&6; }
5029 if ${ac_cv_search_dbm_open+:} false; then :
5030 $as_echo_n "(cached) " >&6
5032 ac_func_search_save_LIBS=$LIBS
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5036 /* Override any GCC internal prototype to avoid an error.
5037 Use char because int might match the return type of a GCC
5038 builtin and then its argument prototype would still apply. */
5051 for ac_lib in '' db ndbm dbm; do
5052 if test -z "$ac_lib"; then
5053 ac_res="none required"
5056 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5058 if ac_fn_c_try_link "$LINENO"; then :
5059 ac_cv_search_dbm_open=$ac_res
5061 rm -f core conftest.err conftest.$ac_objext \
5063 if ${ac_cv_search_dbm_open+:} false; then :
5067 if ${ac_cv_search_dbm_open+:} false; then :
5070 ac_cv_search_dbm_open=no
5073 LIBS=$ac_func_search_save_LIBS
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbm_open" >&5
5076 $as_echo "$ac_cv_search_dbm_open" >&6; }
5077 ac_res=$ac_cv_search_dbm_open
5078 if test "$ac_res" != no; then :
5079 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5081 $as_echo "#define NDBM 1" >>confdefs.h
5084 as_fn_error $? "ndbm requested but dbm_open() not found in any libraries" "$LINENO" 5
5087 DBM_HEADER='<ndbm.h>'
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
5091 $as_echo_n "checking for XORG... " >&6; }
5093 if test -n "$XORG_CFLAGS"; then
5094 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
5095 elif test -n "$PKG_CONFIG"; then
5096 if test -n "$PKG_CONFIG" && \
5097 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5
5098 ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5
5100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5101 test $ac_status = 0; }; then
5102 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server" 2>/dev/null`
5109 if test -n "$XORG_LIBS"; then
5110 pkg_cv_XORG_LIBS="$XORG_LIBS"
5111 elif test -n "$PKG_CONFIG"; then
5112 if test -n "$PKG_CONFIG" && \
5113 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5
5114 ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5
5116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5117 test $ac_status = 0; }; then
5118 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server" 2>/dev/null`
5128 if test $pkg_failed = yes; then
5130 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5131 _pkg_short_errors_supported=yes
5133 _pkg_short_errors_supported=no
5135 if test $_pkg_short_errors_supported = yes; then
5136 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server" 2>&1`
5138 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server" 2>&1`
5140 # Put the nasty error message in config.log where it belongs
5141 echo "$XORG_PKG_ERRORS" >&5
5143 as_fn_error $? "Package requirements (xorg-server) were not met:
5147 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5148 installed software in a non-standard prefix.
5150 Alternatively, you may set the environment variables XORG_CFLAGS
5151 and XORG_LIBS to avoid the need to call pkg-config.
5152 See the pkg-config man page for more details.
5154 elif test $pkg_failed = untried; then
5155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5157 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5158 is in your PATH or set the PKG_CONFIG environment variable to the full
5161 Alternatively, you may set the environment variables XORG_CFLAGS
5162 and XORG_LIBS to avoid the need to call pkg-config.
5163 See the pkg-config man page for more details.
5165 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5166 See \`config.log' for more details" "$LINENO" 5; }
5168 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
5169 XORG_LIBS=$pkg_cv_XORG_LIBS
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5171 $as_echo "yes" >&6; }
5174 RGB_CFLAGS="$RGB_CFLAGS $XORG_CFLAGS"
5175 RGB_DB_FILES='$(db_file).dir $(db_file).pag'
5178 if test x$DBM_HEADER != x ; then
5180 cat >>confdefs.h <<_ACEOF
5181 #define DBM_HEADER $DBM_HEADER
5187 if test x$db_type != xtext; then
5197 ac_config_files="$ac_config_files Makefile man/Makefile"
5200 cat >confcache <<\_ACEOF
5201 # This file is a shell script that caches the results of configure
5202 # tests run on this system so they can be shared between configure
5203 # scripts and configure runs, see configure's option --config-cache.
5204 # It is not useful on other systems. If it contains results you don't
5205 # want to keep, you may remove or edit it.
5207 # config.status only pays attention to the cache file if you give it
5208 # the --recheck option to rerun configure.
5210 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5211 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5216 # The following way of writing the cache mishandles newlines in values,
5217 # but we know of no workaround that is simple, portable, and efficient.
5218 # So, we kill variables containing newlines.
5219 # Ultrix sh set writes to stderr and can't be redirected directly,
5220 # and sets the high bit in the cache file unless we assign to the vars.
5222 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5223 eval ac_val=\$$ac_var
5227 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5228 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5231 _ | IFS | as_nl) ;; #(
5232 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5233 *) { eval $ac_var=; unset $ac_var;} ;;
5239 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5240 *${as_nl}ac_space=\ *)
5241 # `set' does not quote correctly, so add quotes: double-quote
5242 # substitution turns \\\\ into \\, and sed turns \\ into \.
5245 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5248 # `set' quotes correctly as required by POSIX, so do not add quotes.
5249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5258 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5260 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5262 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5263 if test -w "$cache_file"; then
5264 if test "x$cache_file" != "x/dev/null"; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5266 $as_echo "$as_me: updating cache $cache_file" >&6;}
5267 if test ! -f "$cache_file" || test -h "$cache_file"; then
5268 cat confcache >"$cache_file"
5270 case $cache_file in #(
5272 mv -f confcache "$cache_file"$$ &&
5273 mv -f "$cache_file"$$ "$cache_file" ;; #(
5275 mv -f confcache "$cache_file" ;;
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5281 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5286 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5287 # Let make expand exec_prefix.
5288 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5290 DEFS=-DHAVE_CONFIG_H
5295 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5296 # 1. Remove the extension, and $U if already installed.
5297 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5298 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5299 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5300 # will be set to the directory where LIBOBJS objects are built.
5301 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5302 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5306 LTLIBOBJS=$ac_ltlibobjs
5309 if test -n "$EXEEXT"; then
5311 am__EXEEXT_FALSE='#'
5317 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5318 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5321 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5322 as_fn_error $? "conditional \"AMDEP\" was never defined.
5323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5325 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5326 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5329 if test -z "${RGB_DB_TRUE}" && test -z "${RGB_DB_FALSE}"; then
5330 as_fn_error $? "conditional \"RGB_DB\" was never defined.
5331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5334 : "${CONFIG_STATUS=./config.status}"
5336 ac_clean_files_save=$ac_clean_files
5337 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5339 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5341 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5343 # Generated by $as_me.
5344 # Run this file to recreate the current configuration.
5345 # Compiler output produced by configure, useful for debugging
5346 # configure, is in config.log if it exists.
5352 SHELL=\${CONFIG_SHELL-$SHELL}
5355 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5356 ## -------------------- ##
5357 ## M4sh Initialization. ##
5358 ## -------------------- ##
5360 # Be more Bourne compatible
5361 DUALCASE=1; export DUALCASE # for MKS sh
5362 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5365 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5366 # is contrary to our usage. Disable this feature.
5367 alias -g '${1+"$@"}'='"$@"'
5368 setopt NO_GLOB_SUBST
5370 case `(set -o) 2>/dev/null` in #(
5382 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5383 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5384 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5385 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5386 # Prefer a ksh shell builtin over an external printf program on Solaris,
5387 # but without wasting forks for bash or zsh.
5388 if test -z "$BASH_VERSION$ZSH_VERSION" \
5389 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5390 as_echo='print -r --'
5391 as_echo_n='print -rn --'
5392 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5393 as_echo='printf %s\n'
5394 as_echo_n='printf %s'
5396 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5397 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5398 as_echo_n='/usr/ucb/echo -n'
5400 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5401 as_echo_n_body='eval
5405 expr "X$arg" : "X\\(.*\\)$as_nl";
5406 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5408 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5410 export as_echo_n_body
5411 as_echo_n='sh -c $as_echo_n_body as_echo'
5414 as_echo='sh -c $as_echo_body as_echo'
5417 # The user is always right.
5418 if test "${PATH_SEPARATOR+set}" != set; then
5420 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5421 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5428 # We need space, tab and new line, in precisely that order. Quoting is
5429 # there to prevent editors from complaining about space-tab.
5430 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5431 # splitting by setting IFS to empty value.)
5434 # Find who we are. Look in the path if we contain no directory separator.
5437 *[\\/]* ) as_myself=$0 ;;
5438 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 test -z "$as_dir" && as_dir=.
5443 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5449 # We did not find ourselves, most probably we were run as `sh COMMAND'
5450 # in which case we are not to be found in the path.
5451 if test "x$as_myself" = x; then
5454 if test ! -f "$as_myself"; then
5455 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5459 # Unset variables that we do not need and which cause bugs (e.g. in
5460 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5461 # suppresses any "Segmentation fault" message there. '((' could
5462 # trigger a bug in pdksh 5.2.14.
5463 for as_var in BASH_ENV ENV MAIL MAILPATH
5464 do eval test x\${$as_var+set} = xset \
5465 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5478 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5481 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5482 # ----------------------------------------
5483 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5484 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5485 # script with STATUS, using 1 if that was 0.
5488 as_status=$1; test $as_status -eq 0 && as_status=1
5490 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5491 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5493 $as_echo "$as_me: error: $2" >&2
5494 as_fn_exit $as_status
5498 # as_fn_set_status STATUS
5499 # -----------------------
5500 # Set $? to STATUS, without forking.
5504 } # as_fn_set_status
5508 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5518 # Portably unset VAR.
5521 { eval $1=; unset $1;}
5523 as_unset=as_fn_unset
5524 # as_fn_append VAR VALUE
5525 # ----------------------
5526 # Append the text in VALUE to the end of the definition contained in VAR. Take
5527 # advantage of any shell optimizations that allow amortized linear growth over
5528 # repeated appends, instead of the typical quadratic growth present in naive
5530 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5531 eval 'as_fn_append ()
5542 # as_fn_arith ARG...
5543 # ------------------
5544 # Perform arithmetic evaluation on the ARGs, and store the result in the
5545 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5546 # must be portable across $(()) and expr.
5547 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5548 eval 'as_fn_arith ()
5555 as_val=`expr "$@" || test $? -eq 1`
5560 if expr a : '\(a\)' >/dev/null 2>&1 &&
5561 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5567 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5568 as_basename=basename
5573 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5579 as_me=`$as_basename -- "$0" ||
5580 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5581 X"$0" : 'X\(//\)$' \| \
5582 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5584 sed '/^.*\/\([^/][^/]*\)\/*$/{
5598 # Avoid depending upon Character Ranges.
5599 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5600 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5601 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5602 as_cr_digits='0123456789'
5603 as_cr_alnum=$as_cr_Letters$as_cr_digits
5605 ECHO_C= ECHO_N= ECHO_T=
5606 case `echo -n x` in #(((((
5608 case `echo 'xy\c'` in
5609 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5611 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5618 rm -f conf$$ conf$$.exe conf$$.file
5619 if test -d conf$$.dir; then
5620 rm -f conf$$.dir/conf$$.file
5623 mkdir conf$$.dir 2>/dev/null
5625 if (echo >conf$$.file) 2>/dev/null; then
5626 if ln -s conf$$.file conf$$ 2>/dev/null; then
5628 # ... but there are two gotchas:
5629 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5630 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5631 # In both cases, we have to default to `cp -p'.
5632 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5634 elif ln conf$$.file conf$$ 2>/dev/null; then
5642 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5643 rmdir conf$$.dir 2>/dev/null
5648 # Create "$as_dir" as a directory, including parents if necessary.
5653 -*) as_dir=./$as_dir;;
5655 test -d "$as_dir" || eval $as_mkdir_p || {
5659 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5660 *) as_qdir=$as_dir;;
5662 as_dirs="'$as_qdir' $as_dirs"
5663 as_dir=`$as_dirname -- "$as_dir" ||
5664 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5665 X"$as_dir" : 'X\(//\)[^/]' \| \
5666 X"$as_dir" : 'X\(//\)$' \| \
5667 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5668 $as_echo X"$as_dir" |
5669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5686 test -d "$as_dir" && break
5688 test -z "$as_dirs" || eval "mkdir $as_dirs"
5689 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5693 if mkdir -p . 2>/dev/null; then
5694 as_mkdir_p='mkdir -p "$as_dir"'
5696 test -d ./-p && rmdir ./-p
5700 if test -x / >/dev/null 2>&1; then
5703 if ls -dL / >/dev/null 2>&1; then
5710 if test -d "$1"; then
5716 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5717 ???[sx]*):;;*)false;;esac;fi
5721 as_executable_p=$as_test_x
5723 # Sed expression to map a string onto a valid CPP name.
5724 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5726 # Sed expression to map a string onto a valid variable name.
5727 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5731 ## ----------------------------------- ##
5732 ## Main body of $CONFIG_STATUS script. ##
5733 ## ----------------------------------- ##
5735 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5738 # Save the log message, to keep $0 and so on meaningful, and to
5739 # report actual input values of CONFIG_FILES etc. instead of their
5740 # values after options handling.
5742 This file was extended by rgb $as_me 1.0.4, which was
5743 generated by GNU Autoconf 2.68. Invocation command line was
5745 CONFIG_FILES = $CONFIG_FILES
5746 CONFIG_HEADERS = $CONFIG_HEADERS
5747 CONFIG_LINKS = $CONFIG_LINKS
5748 CONFIG_COMMANDS = $CONFIG_COMMANDS
5751 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5756 case $ac_config_files in *"
5757 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5760 case $ac_config_headers in *"
5761 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5766 # Files that config.status was made for.
5767 config_files="$ac_config_files"
5768 config_headers="$ac_config_headers"
5769 config_commands="$ac_config_commands"
5773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5775 \`$as_me' instantiates files and other configuration actions
5776 from templates according to the current configuration. Unless the files
5777 and actions are specified as TAGs, all are instantiated by default.
5779 Usage: $0 [OPTION]... [TAG]...
5781 -h, --help print this help, then exit
5782 -V, --version print version number and configuration settings, then exit
5783 --config print configuration, then exit
5784 -q, --quiet, --silent
5785 do not print progress messages
5786 -d, --debug don't remove temporary files
5787 --recheck update $as_me by reconfiguring in the same conditions
5788 --file=FILE[:TEMPLATE]
5789 instantiate the configuration file FILE
5790 --header=FILE[:TEMPLATE]
5791 instantiate the configuration header FILE
5793 Configuration files:
5796 Configuration headers:
5799 Configuration commands:
5802 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
5805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5806 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5808 rgb config.status 1.0.4
5809 configured by $0, generated by GNU Autoconf 2.68,
5810 with options \\"\$ac_cs_config\\"
5812 Copyright (C) 2010 Free Software Foundation, Inc.
5813 This config.status script is free software; the Free Software Foundation
5814 gives unlimited permission to copy, distribute and modify it."
5821 test -n "\$AWK" || AWK=awk
5824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5825 # The default lists apply if the user does not specify any file.
5831 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5832 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5836 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5848 # Handling of the options.
5849 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5851 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5852 $as_echo "$ac_cs_version"; exit ;;
5853 --config | --confi | --conf | --con | --co | --c )
5854 $as_echo "$ac_cs_config"; exit ;;
5855 --debug | --debu | --deb | --de | --d | -d )
5857 --file | --fil | --fi | --f )
5860 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5861 '') as_fn_error $? "missing file argument" ;;
5863 as_fn_append CONFIG_FILES " '$ac_optarg'"
5864 ac_need_defaults=false;;
5865 --header | --heade | --head | --hea )
5868 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5870 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5871 ac_need_defaults=false;;
5873 # Conflict between --help and --header
5874 as_fn_error $? "ambiguous option: \`$1'
5875 Try \`$0 --help' for more information.";;
5876 --help | --hel | -h )
5877 $as_echo "$ac_cs_usage"; exit ;;
5878 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5879 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5883 -*) as_fn_error $? "unrecognized option: \`$1'
5884 Try \`$0 --help' for more information." ;;
5886 *) as_fn_append ac_config_targets " $1"
5887 ac_need_defaults=false ;;
5893 ac_configure_extra_args=
5895 if $ac_cs_silent; then
5897 ac_configure_extra_args="$ac_configure_extra_args --silent"
5901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5902 if \$ac_cs_recheck; then
5903 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5905 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5906 CONFIG_SHELL='$SHELL'
5912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5916 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5917 ## Running $as_me. ##
5923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5927 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5933 # Handling of arguments.
5934 for ac_config_target in $ac_config_targets
5936 case $ac_config_target in
5937 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5938 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5939 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5940 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
5942 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5947 # If the user did not use the arguments to specify the items to instantiate,
5948 # then the envvar interface is used. Set only those that are not.
5949 # We use the long form for the default assignment because of an extremely
5950 # bizarre bug on SunOS 4.1.3.
5951 if $ac_need_defaults; then
5952 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5953 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5954 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5957 # Have a temporary directory for convenience. Make it in the build tree
5958 # simply because there is no reason against having it here, and in addition,
5959 # creating and moving files from /tmp can sometimes cause problems.
5960 # Hook for its removal unless debugging.
5961 # Note that there is a small window in which the directory will not be cleaned:
5962 # after its creation but before its name has been assigned to `$tmp'.
5966 trap 'exit_status=$?
5968 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5970 trap 'as_fn_exit 1' 1 2 13 15
5972 # Create a (secure) tmp directory for tmp files.
5975 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5979 tmp=./conf$$-$RANDOM
5980 (umask 077 && mkdir "$tmp")
5981 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5984 # Set up the scripts for CONFIG_FILES section.
5985 # No need to generate them if there are no CONFIG_FILES.
5986 # This happens for instance with `./config.status config.h'.
5987 if test -n "$CONFIG_FILES"; then
5990 ac_cr=`echo X | tr X '\015'`
5991 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5992 # But we know of no other shell where ac_cr would be empty at this
5993 # point, so we can use a bashism as a fallback.
5994 if test "x$ac_cr" = x; then
5995 eval ac_cr=\$\'\\r\'
5997 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5998 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6004 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6009 echo "cat >conf$$subs.awk <<_ACEOF" &&
6010 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6013 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6014 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6016 for ac_last_try in false false false false false :; do
6017 . ./conf$$subs.sh ||
6018 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6020 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6021 if test $ac_delim_n = $ac_delim_num; then
6023 elif $ac_last_try; then
6024 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6026 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6032 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6036 s/^/S["/; s/!.*/"]=/
6046 s/\(.\{148\}\)..*/\1/
6048 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6053 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6060 s/\(.\{148\}\)..*/\1/
6062 s/["\\]/\\&/g; s/^/"/; s/$/"/
6066 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6071 ' <conf$$subs.awk | sed '
6076 ' >>$CONFIG_STATUS || ac_write_fail=1
6077 rm -f conf$$subs.awk
6078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6080 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6081 for (key in S) S_is_set[key] = 1
6087 nfields = split(line, field, "@")
6089 len = length(field[1])
6090 for (i = 2; i < nfields; i++) {
6092 keylen = length(key)
6093 if (S_is_set[key]) {
6095 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6096 len += length(value) + length(field[++i])
6107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6108 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6109 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6112 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6113 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6116 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6117 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6118 # trailing colons and then remove the whole line if VPATH becomes empty
6119 # (actually we leave an empty line to preserve line numbers).
6120 if test "x$srcdir" = x.; then
6121 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6140 fi # test -n "$CONFIG_FILES"
6142 # Set up the scripts for CONFIG_HEADERS section.
6143 # No need to generate them if there are no CONFIG_HEADERS.
6144 # This happens for instance with `./config.status Makefile'.
6145 if test -n "$CONFIG_HEADERS"; then
6146 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6150 # Transform confdefs.h into an awk script `defines.awk', embedded as
6151 # here-document in config.status, that substitutes the proper values into
6152 # config.h.in to produce config.h.
6154 # Create a delimiter string that does not exist in confdefs.h, to ease
6155 # handling of long lines.
6157 for ac_last_try in false false :; do
6158 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6159 if test -z "$ac_tt"; then
6161 elif $ac_last_try; then
6162 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6164 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6168 # For the awk script, D is an array of macro values keyed by name,
6169 # likewise P contains macro parameters if any. Preserve backslash
6170 # newline sequences.
6172 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6174 s/.\{148\}/&'"$ac_delim"'/g
6177 s/^[ ]*#[ ]*define[ ][ ]*/ /
6184 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6186 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6190 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6191 D["\1"]=" \3\\\\\\n"\\/p
6193 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6198 s/.\{148\}/&'"$ac_delim"'/g
6203 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6206 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6208 ' <confdefs.h | sed '
6209 s/'"$ac_delim"'/"\\\
6210 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6213 for (key in D) D_is_set[key] = 1
6216 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6218 split(line, arg, " ")
6219 if (arg[1] == "#") {
6223 defundef = substr(arg[1], 2)
6226 split(mac1, mac2, "(") #)
6228 prefix = substr(line, 1, index(line, defundef) - 1)
6229 if (D_is_set[macro]) {
6230 # Preserve the white space surrounding the "#".
6231 print prefix "define", macro P[macro] D[macro]
6234 # Replace #undef with comments. This is necessary, for example,
6235 # in the case of _POSIX_SOURCE, which is predefined and required
6236 # on some systems where configure will not decide to define it.
6237 if (defundef == "undef") {
6238 print "/*", prefix defundef, macro, "*/"
6246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6247 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6248 fi # test -n "$CONFIG_HEADERS"
6251 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6256 :[FHLC]) ac_mode=$ac_tag; continue;;
6258 case $ac_mode$ac_tag in
6260 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6261 :[FH]-) ac_tag=-:-;;
6262 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6279 -) ac_f="$ac_tmp/stdin";;
6280 *) # Look for the file first in the build tree, then in the source tree
6281 # (if the path is not absolute). The absolute path cannot be DOS-style,
6282 # because $ac_f cannot contain `:'.
6286 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6288 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6290 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6291 as_fn_append ac_file_inputs " '$ac_f'"
6294 # Let's still pretend it is `configure' which instantiates (i.e., don't
6295 # use $as_me), people would be surprised to read:
6296 # /* config.h. Generated by config.status. */
6297 configure_input='Generated from '`
6298 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6300 if test x"$ac_file" != x-; then
6301 configure_input="$ac_file. $configure_input"
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6303 $as_echo "$as_me: creating $ac_file" >&6;}
6305 # Neutralize special characters interpreted by sed in replacement strings.
6306 case $configure_input in #(
6307 *\&* | *\|* | *\\* )
6308 ac_sed_conf_input=`$as_echo "$configure_input" |
6309 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6310 *) ac_sed_conf_input=$configure_input;;
6314 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6315 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6320 ac_dir=`$as_dirname -- "$ac_file" ||
6321 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6322 X"$ac_file" : 'X\(//\)[^/]' \| \
6323 X"$ac_file" : 'X\(//\)$' \| \
6324 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6325 $as_echo X"$ac_file" |
6326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6343 as_dir="$ac_dir"; as_fn_mkdir_p
6347 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6349 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6350 # A ".." for each directory in $ac_dir_suffix.
6351 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6352 case $ac_top_builddir_sub in
6353 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6354 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6357 ac_abs_top_builddir=$ac_pwd
6358 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6359 # for backward compatibility:
6360 ac_top_builddir=$ac_top_build_prefix
6363 .) # We are building in place.
6365 ac_top_srcdir=$ac_top_builddir_sub
6366 ac_abs_top_srcdir=$ac_pwd ;;
6367 [\\/]* | ?:[\\/]* ) # Absolute name.
6368 ac_srcdir=$srcdir$ac_dir_suffix;
6369 ac_top_srcdir=$srcdir
6370 ac_abs_top_srcdir=$srcdir ;;
6372 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6373 ac_top_srcdir=$ac_top_build_prefix$srcdir
6374 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6376 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6386 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6387 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6391 [\\/$]* | ?:[\\/]* ) ;;
6392 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6397 # If the template does not know about datarootdir, expand it.
6398 # FIXME: This hack should be removed a few years after 2.60.
6399 ac_datarootdir_hack=; ac_datarootdir_seen=
6410 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6411 *datarootdir*) ac_datarootdir_seen=yes;;
6412 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6414 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6417 ac_datarootdir_hack='
6418 s&@datadir@&$datadir&g
6419 s&@docdir@&$docdir&g
6420 s&@infodir@&$infodir&g
6421 s&@localedir@&$localedir&g
6422 s&@mandir@&$mandir&g
6423 s&\\\${datarootdir}&$datarootdir&g' ;;
6427 # Neutralize VPATH when `$srcdir' = `.'.
6428 # Shell code in configure.ac might set extrasub.
6429 # FIXME: do we really want to maintain this feature?
6430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6431 ac_sed_extra="$ac_vpsub
6434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6436 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6437 s|@configure_input@|$ac_sed_conf_input|;t t
6438 s&@top_builddir@&$ac_top_builddir_sub&;t t
6439 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6440 s&@srcdir@&$ac_srcdir&;t t
6441 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6442 s&@top_srcdir@&$ac_top_srcdir&;t t
6443 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6444 s&@builddir@&$ac_builddir&;t t
6445 s&@abs_builddir@&$ac_abs_builddir&;t t
6446 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6447 s&@INSTALL@&$ac_INSTALL&;t t
6448 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6449 $ac_datarootdir_hack
6451 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6452 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6454 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6455 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6456 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6457 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6459 which seems to be undefined. Please make sure it is defined" >&5
6460 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6461 which seems to be undefined. Please make sure it is defined" >&2;}
6463 rm -f "$ac_tmp/stdin"
6465 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6466 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6468 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6474 if test x"$ac_file" != x-; then
6476 $as_echo "/* $configure_input */" \
6477 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6478 } >"$ac_tmp/config.h" \
6479 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6480 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6482 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6485 mv "$ac_tmp/config.h" "$ac_file" \
6486 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6489 $as_echo "/* $configure_input */" \
6490 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6491 || as_fn_error $? "could not create -" "$LINENO" 5
6493 # Compute "$ac_file"'s index in $config_headers.
6496 for _am_header in $config_headers :; do
6498 $_am_arg | $_am_arg:* )
6501 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6504 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6505 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6506 X"$_am_arg" : 'X\(//\)[^/]' \| \
6507 X"$_am_arg" : 'X\(//\)$' \| \
6508 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6509 $as_echo X"$_am_arg" |
6510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6526 s/.*/./; q'`/stamp-h$_am_stamp_count
6529 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6530 $as_echo "$as_me: executing $ac_file commands" >&6;}
6535 case $ac_file$ac_mode in
6536 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6537 # Autoconf 2.62 quotes --file arguments for eval, but not when files
6538 # are listed without --file. Let's play safe and only enable the eval
6539 # if we detect the quoting.
6540 case $CONFIG_FILES in
6541 *\'*) eval set x "$CONFIG_FILES" ;;
6542 *) set x $CONFIG_FILES ;;
6547 # Strip MF so we end up with the name of the file.
6548 mf=`echo "$mf" | sed -e 's/:.*$//'`
6549 # Check whether this is an Automake generated Makefile or not.
6550 # We used to match only the files named `Makefile.in', but
6551 # some people rename them; so instead we look at the file content.
6552 # Grep'ing the first line is not enough: some people post-process
6553 # each Makefile.in and add a new line on top of each file to say so.
6554 # Grep'ing the whole file is not good either: AIX grep has a line
6555 # limit of 2048, but all sed's we know have understand at least 4000.
6556 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6557 dirpart=`$as_dirname -- "$mf" ||
6558 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6559 X"$mf" : 'X\(//\)[^/]' \| \
6560 X"$mf" : 'X\(//\)$' \| \
6561 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6583 # Extract the definition of DEPDIR, am__include, and am__quote
6584 # from the Makefile without running `make'.
6585 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6586 test -z "$DEPDIR" && continue
6587 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6588 test -z "am__include" && continue
6589 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6590 # When using ansi2knr, U may be empty or an underscore; expand it
6591 U=`sed -n 's/^U = //p' < "$mf"`
6592 # Find all dependency output files, they are included files with
6593 # $(DEPDIR) in their names. We invoke sed twice because it is the
6594 # simplest approach to changing $(DEPDIR) to its actual value in the
6596 for file in `sed -n "
6597 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6598 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6599 # Make sure the directory exists.
6600 test -f "$dirpart/$file" && continue
6601 fdir=`$as_dirname -- "$file" ||
6602 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6603 X"$file" : 'X\(//\)[^/]' \| \
6604 X"$file" : 'X\(//\)$' \| \
6605 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6624 as_dir=$dirpart/$fdir; as_fn_mkdir_p
6625 # echo "creating $dirpart/$file"
6626 echo '# dummy' > "$dirpart/$file"
6638 ac_clean_files=$ac_clean_files_save
6640 test $ac_write_fail = 0 ||
6641 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6644 # configure is writing to config.log, and then calls config.status.
6645 # config.status does its own redirection, appending to config.log.
6646 # Unfortunately, on DOS this fails, as config.log is still kept open
6647 # by configure, so config.status won't be able to write to it; its
6648 # output is simply discarded. So we exec the FD to /dev/null,
6649 # effectively closing config.log, so it can be properly (re)opened and
6650 # appended to by config.status. When coming back to configure, we
6651 # need to make the FD available again.
6652 if test "$no_create" != yes; then
6654 ac_config_status_args=
6655 test "$silent" = yes &&
6656 ac_config_status_args="$ac_config_status_args --quiet"
6658 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6660 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6661 # would make configure fail if this is the last instruction.
6662 $ac_cs_success || as_fn_exit 1
6664 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6666 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}