2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix=/usr/local
586 ac_config_libobj_dir=.
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file="driver/subprocs.c"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_subst_vars='LTLIBOBJS
681 DEFAULT_IMAGE_DIRECTORY
685 COMMENT_PAM_CHECK_ACCOUNT
706 PREFERRED_DEMO_PROGRAM
708 gnome_url_show_program
737 INTLTOOL_SOUNDLIST_RULE
743 INTLTOOL_DIRECTORY_RULE
744 INTLTOOL_DESKTOP_RULE
800 program_transform_name
812 enable_option_checking
828 with_pam_service_name
829 enable_pam_check_account_type
850 ac_precious_vars='build_alias
862 # Initialize some variables set by options.
864 ac_init_version=false
865 ac_unrecognized_opts=
867 # The variables have the same names as the options, with
868 # dashes changed to underlines.
876 program_transform_name=s,x,x,
884 # Installation directory options.
885 # These are left unexpanded so users can "make install exec_prefix=/foo"
886 # and all the variables that are supposed to be based on exec_prefix
887 # by default will actually change.
888 # Use braces instead of parens because sh, perl, etc. also accept them.
889 # (The list follows the same order as the GNU Coding Standards.)
890 bindir='${exec_prefix}/bin'
891 sbindir='${exec_prefix}/sbin'
892 libexecdir='${exec_prefix}/libexec'
893 datarootdir='${prefix}/share'
894 datadir='${datarootdir}'
895 sysconfdir='${prefix}/etc'
896 sharedstatedir='${prefix}/com'
897 localstatedir='${prefix}/var'
898 includedir='${prefix}/include'
899 oldincludedir='/usr/include'
900 docdir='${datarootdir}/doc/${PACKAGE}'
901 infodir='${datarootdir}/info'
906 libdir='${exec_prefix}/lib'
907 localedir='${datarootdir}/locale'
908 mandir='${datarootdir}/man'
914 # If the previous option needs an argument, assign it.
915 if test -n "$ac_prev"; then
916 eval $ac_prev=\$ac_option
922 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
926 # Accept the important Cygnus configure options, so we can diagnose typos.
928 case $ac_dashdash$ac_option in
932 -bindir | --bindir | --bindi | --bind | --bin | --bi)
934 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
937 -build | --build | --buil | --bui | --bu)
938 ac_prev=build_alias ;;
939 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
940 build_alias=$ac_optarg ;;
942 -cache-file | --cache-file | --cache-fil | --cache-fi \
943 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
944 ac_prev=cache_file ;;
945 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
946 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
947 cache_file=$ac_optarg ;;
950 cache_file=config.cache ;;
952 -datadir | --datadir | --datadi | --datad)
954 -datadir=* | --datadir=* | --datadi=* | --datad=*)
955 datadir=$ac_optarg ;;
957 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
958 | --dataroo | --dataro | --datar)
959 ac_prev=datarootdir ;;
960 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
961 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
962 datarootdir=$ac_optarg ;;
964 -disable-* | --disable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
969 { (exit 1); exit 1; }; }
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
979 eval enable_$ac_useropt=no ;;
981 -docdir | --docdir | --docdi | --doc | --do)
983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 -enable-* | --enable-*)
992 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
996 { (exit 1); exit 1; }; }
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1001 "enable_$ac_useropt"
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1006 eval enable_$ac_useropt=\$ac_optarg ;;
1008 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1009 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1010 | --exec | --exe | --ex)
1011 ac_prev=exec_prefix ;;
1012 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1013 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1014 | --exec=* | --exe=* | --ex=*)
1015 exec_prefix=$ac_optarg ;;
1017 -gas | --gas | --ga | --g)
1018 # Obsolete; use --with-gas.
1021 -help | --help | --hel | --he | -h)
1022 ac_init_help=long ;;
1023 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1024 ac_init_help=recursive ;;
1025 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1026 ac_init_help=short ;;
1028 -host | --host | --hos | --ho)
1029 ac_prev=host_alias ;;
1030 -host=* | --host=* | --hos=* | --ho=*)
1031 host_alias=$ac_optarg ;;
1033 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 htmldir=$ac_optarg ;;
1039 -includedir | --includedir | --includedi | --included | --include \
1040 | --includ | --inclu | --incl | --inc)
1041 ac_prev=includedir ;;
1042 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1043 | --includ=* | --inclu=* | --incl=* | --inc=*)
1044 includedir=$ac_optarg ;;
1046 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1049 infodir=$ac_optarg ;;
1051 -libdir | --libdir | --libdi | --libd)
1053 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1054 libdir=$ac_optarg ;;
1056 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1057 | --libexe | --libex | --libe)
1058 ac_prev=libexecdir ;;
1059 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1060 | --libexe=* | --libex=* | --libe=*)
1061 libexecdir=$ac_optarg ;;
1063 -localedir | --localedir | --localedi | --localed | --locale)
1064 ac_prev=localedir ;;
1065 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1066 localedir=$ac_optarg ;;
1068 -localstatedir | --localstatedir | --localstatedi | --localstated \
1069 | --localstate | --localstat | --localsta | --localst | --locals)
1070 ac_prev=localstatedir ;;
1071 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1072 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1073 localstatedir=$ac_optarg ;;
1075 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1078 mandir=$ac_optarg ;;
1080 -nfp | --nfp | --nf)
1081 # Obsolete; use --without-fp.
1084 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1085 | --no-cr | --no-c | -n)
1088 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1089 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1092 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1093 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1094 | --oldin | --oldi | --old | --ol | --o)
1095 ac_prev=oldincludedir ;;
1096 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1097 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1098 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1099 oldincludedir=$ac_optarg ;;
1101 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1104 prefix=$ac_optarg ;;
1106 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1107 | --program-pre | --program-pr | --program-p)
1108 ac_prev=program_prefix ;;
1109 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1110 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1111 program_prefix=$ac_optarg ;;
1113 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1114 | --program-suf | --program-su | --program-s)
1115 ac_prev=program_suffix ;;
1116 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1117 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1118 program_suffix=$ac_optarg ;;
1120 -program-transform-name | --program-transform-name \
1121 | --program-transform-nam | --program-transform-na \
1122 | --program-transform-n | --program-transform- \
1123 | --program-transform | --program-transfor \
1124 | --program-transfo | --program-transf \
1125 | --program-trans | --program-tran \
1126 | --progr-tra | --program-tr | --program-t)
1127 ac_prev=program_transform_name ;;
1128 -program-transform-name=* | --program-transform-name=* \
1129 | --program-transform-nam=* | --program-transform-na=* \
1130 | --program-transform-n=* | --program-transform-=* \
1131 | --program-transform=* | --program-transfor=* \
1132 | --program-transfo=* | --program-transf=* \
1133 | --program-trans=* | --program-tran=* \
1134 | --progr-tra=* | --program-tr=* | --program-t=*)
1135 program_transform_name=$ac_optarg ;;
1137 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1140 pdfdir=$ac_optarg ;;
1142 -psdir | --psdir | --psdi | --psd | --ps)
1144 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1148 | -silent | --silent | --silen | --sile | --sil)
1151 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 sbindir=$ac_optarg ;;
1157 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1158 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1159 | --sharedst | --shareds | --shared | --share | --shar \
1161 ac_prev=sharedstatedir ;;
1162 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1163 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1164 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 sharedstatedir=$ac_optarg ;;
1168 -site | --site | --sit)
1170 -site=* | --site=* | --sit=*)
1173 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1176 srcdir=$ac_optarg ;;
1178 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1179 | --syscon | --sysco | --sysc | --sys | --sy)
1180 ac_prev=sysconfdir ;;
1181 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1182 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1183 sysconfdir=$ac_optarg ;;
1185 -target | --target | --targe | --targ | --tar | --ta | --t)
1186 ac_prev=target_alias ;;
1187 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1188 target_alias=$ac_optarg ;;
1190 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193 -version | --version | --versio | --versi | --vers | -V)
1194 ac_init_version=: ;;
1197 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1201 { (exit 1); exit 1; }; }
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1211 eval with_$ac_useropt=\$ac_optarg ;;
1213 -without-* | --without-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1218 { (exit 1); exit 1; }; }
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1228 eval with_$ac_useropt=no ;;
1231 # Obsolete; use --with-x.
1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235 | --x-incl | --x-inc | --x-in | --x-i)
1236 ac_prev=x_includes ;;
1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239 x_includes=$ac_optarg ;;
1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243 ac_prev=x_libraries ;;
1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246 x_libraries=$ac_optarg ;;
1248 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1249 Try \`$0 --help' for more information." >&2
1250 { (exit 1); exit 1; }; }
1254 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1257 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1258 { (exit 1); exit 1; }; }
1259 eval $ac_envvar=\$ac_optarg
1260 export $ac_envvar ;;
1263 # FIXME: should be removed in autoconf 3.0.
1264 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1273 if test -n "$ac_prev"; then
1274 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1276 { (exit 1); exit 1; }; }
1279 if test -n "$ac_unrecognized_opts"; then
1280 case $enable_option_checking in
1282 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1283 { (exit 1); exit 1; }; } ;;
1284 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1288 # Check all directory arguments for consistency.
1289 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290 datadir sysconfdir sharedstatedir localstatedir includedir \
1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292 libdir localedir mandir
1294 eval ac_val=\$$ac_var
1295 # Remove trailing slashes.
1298 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1299 eval $ac_var=\$ac_val;;
1301 # Be sure to have absolute directory names.
1303 [\\/$]* | ?:[\\/]* ) continue;;
1304 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1306 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1307 { (exit 1); exit 1; }; }
1310 # There might be people who depend on the old broken behavior: `$host'
1311 # used to hold the argument of --host etc.
1312 # FIXME: To remove some day.
1315 target=$target_alias
1317 # FIXME: To remove some day.
1318 if test "x$host_alias" != x; then
1319 if test "x$build_alias" = x; then
1320 cross_compiling=maybe
1321 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1322 If a cross compiler is detected then cross compile mode will be used." >&2
1323 elif test "x$build_alias" != "x$host_alias"; then
1329 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1331 test "$silent" = yes && exec 6>/dev/null
1334 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1335 ac_ls_di=`ls -di .` &&
1336 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1337 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1338 { (exit 1); exit 1; }; }
1339 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1340 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1341 { (exit 1); exit 1; }; }
1344 # Find the source files, if location was not specified.
1345 if test -z "$srcdir"; then
1346 ac_srcdir_defaulted=yes
1347 # Try the directory containing this script, then the parent directory.
1348 ac_confdir=`$as_dirname -- "$as_myself" ||
1349 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350 X"$as_myself" : 'X\(//\)[^/]' \| \
1351 X"$as_myself" : 'X\(//\)$' \| \
1352 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1353 $as_echo X"$as_myself" |
1354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1376 ac_srcdir_defaulted=no
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1380 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1381 { (exit 1); exit 1; }; }
1383 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1386 { (exit 1); exit 1; }; }
1388 # When building in place, set srcdir=.
1389 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392 # Remove unnecessary trailing slashes from srcdir.
1393 # Double slashes in file names in object file debugging info
1394 # mess up M-x gdb in Emacs.
1396 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 for ac_var in $ac_precious_vars; do
1399 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_env_${ac_var}_value=\$${ac_var}
1401 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406 # Report the --help message.
1408 if test "$ac_init_help" = "long"; then
1409 # Omit some internal or obsolete options to make the list less imposing.
1410 # This message is too long to be a string in the A/UX 3.1 sh.
1412 \`configure' configures this package to adapt to many kinds of systems.
1414 Usage: $0 [OPTION]... [VAR=VALUE]...
1416 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417 VAR=VALUE. See below for descriptions of some of the useful variables.
1419 Defaults for the options are specified in brackets.
1424 -h, --help display this help and exit
1425 --help=short display options specific to this package
1426 --help=recursive display the short help of all the included packages
1427 -V, --version display version information and exit
1428 -q, --quiet, --silent do not print \`checking...' messages
1429 --cache-file=FILE cache test results in FILE [disabled]
1430 -C, --config-cache alias for \`--cache-file=config.cache'
1431 -n, --no-create do not create output files
1432 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1434 Installation directories:
1435 --prefix=PREFIX install architecture-independent files in PREFIX
1436 [$ac_default_prefix]
1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1445 For better control, use the options below.
1447 Fine tuning of the installation directories:
1448 --bindir=DIR user executables [EPREFIX/bin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --libdir=DIR object code libraries [EPREFIX/lib]
1451 --includedir=DIR C header files [PREFIX/include]
1452 --x-includes=DIR X include files are in DIR
1453 --x-libraries=DIR X library files are in DIR
1454 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1455 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1456 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1457 --mandir=DIR man documentation [DATAROOTDIR/man]
1458 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1459 --htmldir=DIR html documentation [DOCDIR]
1460 --dvidir=DIR dvi documentation [DOCDIR]
1461 --pdfdir=DIR pdf documentation [DOCDIR]
1462 --psdir=DIR ps documentation [DOCDIR]
1468 --x-includes=DIR X include files are in DIR
1469 --x-libraries=DIR X library files are in DIR
1472 --build=BUILD configure for building on BUILD [guessed]
1473 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477 if test -n "$ac_init_help"; then
1482 --disable-option-checking ignore unrecognized --enable/--with options
1483 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1484 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1486 Screen locking options:
1487 --enable-locking Compile in support for locking the display.
1488 --disable-locking Do not allow locking at all.
1490 --enable-root-passwd Allow root passwd to unlock screen.
1491 --disable-root-passwd Do not allow that.
1492 --enable-pam-check-account-type
1493 Whether PAM should check the result of account
1494 modules when authenticating. Only do this if you
1495 have account configured properly on your system.
1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1502 Installation options:
1503 --with-hackdir=DIR Where to install the hundreds of demo executables.
1504 Default: `PREFIX/libexec/xscreensaver/'
1505 --with-configdir=DIR Where to install the data files that describe each
1506 of the display modes to the GUI.
1507 Default: `PREFIX/share/xscreensaver/config/'
1508 --with-x-app-defaults=DIR
1509 Where to install xscreensaver configuration file.
1511 --with-dpms-ext Include support for the DPMS extension.
1512 --with-xinerama-ext Include support for the XINERAMA extension.
1513 --with-xinput-ext Include support for the XInput extension.
1514 --with-xf86vmode-ext Include support for XFree86 virtual screens.
1515 --with-xf86gamma-ext Include support for XFree86 gamma fading.
1516 --with-randr-ext Include support for the X Resize+Rotate extension.
1517 --with-proc-interrupts Include support for consulting the /proc/interrupts
1518 file to notice keyboard activity.
1519 --with-pam Include support for PAM (Pluggable Auth Modules.)
1520 --with-pam-service-name NAME arg is the name of the PAM service that
1521 xscreensaver will authenticate as.
1522 --with-kerberos Include support for Kerberos authentication.
1523 --with-shadow Include support for shadow password authentication.
1524 --with-passwd-helper Include support for an external password
1525 verification helper program.
1526 --with-login-manager Put a "New Login" button on the unlock dialog that
1527 runs a login manager like gdmflexiserver or kdmctl.
1529 User interface options:
1531 --with-gtk Use the Gtk toolkit for the user interface.
1532 --with-motif Use the Motif toolkit for the user interface
1533 (no longer supported.)
1537 --with-gl Build those demos which depend on OpenGL.
1538 --with-gle Build those demos which depend on GLE
1539 (the OpenGL "extrusion" library.)
1540 --with-gles Target OpenGL ES 1.x API instead of OpenGL 1.3.
1541 --with-pixbuf Include support for the GDK-Pixbuf library in some
1542 demos, which will make it possible for them to read
1543 GIF, JPEG, and PNG files as well.
1544 --with-xpm Include support for XPM files in some demos.
1545 (Not needed if Pixbuf is used.)
1546 --with-jpeg Include support for the JPEG library.
1547 --with-xshm-ext Include support for the Shared Memory extension.
1548 --with-xdbe-ext Include support for the DOUBLE-BUFFER extension.
1549 --with-readdisplay Include support for the XReadDisplay extension.
1550 --with-image-directory Arg is the default directory from which some demos
1551 will choose random images to display.
1552 --with-text-file=FILE By default, some demos may display this file.
1553 --with-browser=BROWSER Specify the web browser used to show the help URL.
1554 --with-setuid-hacks Allow some demos to be installed `setuid root'
1555 (which is needed in order to ping other hosts.)
1558 Some influential environment variables:
1559 CC C compiler command
1560 CFLAGS C compiler flags
1561 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1562 nonstandard directory <lib dir>
1563 LIBS libraries to pass to the linker, e.g. -l<library>
1564 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1565 you have headers in a nonstandard directory <include dir>
1567 XMKMF Path to xmkmf, Makefile generator for X Window System
1569 Use these variables to override the choices made by `configure' or to help
1570 it to find libraries and programs with nonstandard names/locations.
1576 if test "$ac_init_help" = "recursive"; then
1577 # If there are subdirs, report their specific --help.
1578 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579 test -d "$ac_dir" ||
1580 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1585 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1588 # A ".." for each directory in $ac_dir_suffix.
1589 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1590 case $ac_top_builddir_sub in
1591 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595 ac_abs_top_builddir=$ac_pwd
1596 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1597 # for backward compatibility:
1598 ac_top_builddir=$ac_top_build_prefix
1601 .) # We are building in place.
1603 ac_top_srcdir=$ac_top_builddir_sub
1604 ac_abs_top_srcdir=$ac_pwd ;;
1605 [\\/]* | ?:[\\/]* ) # Absolute name.
1606 ac_srcdir=$srcdir$ac_dir_suffix;
1607 ac_top_srcdir=$srcdir
1608 ac_abs_top_srcdir=$srcdir ;;
1610 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1611 ac_top_srcdir=$ac_top_build_prefix$srcdir
1612 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1614 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1616 cd "$ac_dir" || { ac_status=$?; continue; }
1617 # Check for guested configure.
1618 if test -f "$ac_srcdir/configure.gnu"; then
1620 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1621 elif test -f "$ac_srcdir/configure"; then
1623 $SHELL "$ac_srcdir/configure" --help=recursive
1625 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1627 cd "$ac_pwd" || { ac_status=$?; break; }
1631 test -n "$ac_init_help" && exit $ac_status
1632 if $ac_init_version; then
1635 generated by GNU Autoconf 2.63
1637 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1638 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1639 This configure script is free software; the Free Software Foundation
1640 gives unlimited permission to copy, distribute and modify it.
1644 cat >config.log <<_ACEOF
1645 This file contains any messages produced by compilers while
1646 running configure, to aid debugging if configure makes a mistake.
1648 It was created by $as_me, which was
1649 generated by GNU Autoconf 2.63. Invocation command line was
1661 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1662 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1663 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1664 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1665 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1667 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1668 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1670 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1671 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1672 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1673 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1674 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1675 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1676 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 test -z "$as_dir" && as_dir=.
1685 $as_echo "PATH: $as_dir"
1701 # Keep a trace of the command line.
1702 # Strip out --no-create and --no-recursion so they do not pile up.
1703 # Strip out --silent because we don't want to record it for future runs.
1704 # Also quote any args containing shell meta-characters.
1705 # Make two passes to allow for proper duplicate-argument suppression.
1709 ac_must_keep_next=false
1715 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1716 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1717 | -silent | --silent | --silen | --sile | --sil)
1720 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1723 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1725 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1726 if test $ac_must_keep_next = true; then
1727 ac_must_keep_next=false # Got value, back to normal.
1730 *=* | --config-cache | -C | -disable-* | --disable-* \
1731 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1732 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1733 | -with-* | --with-* | -without-* | --without-* | --x)
1734 case "$ac_configure_args0 " in
1735 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1738 -* ) ac_must_keep_next=true ;;
1741 ac_configure_args="$ac_configure_args '$ac_arg'"
1746 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1747 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1749 # When interrupted or exit'd, cleanup temporary files, and complete
1750 # config.log. We remove comments because anyway the quotes in there
1751 # would cause problems or look ugly.
1752 # WARNING: Use '\'' to represent an apostrophe within the trap.
1753 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1754 trap 'exit_status=$?
1755 # Save into config.log some information that might help in debugging.
1760 ## ---------------- ##
1761 ## Cache variables. ##
1762 ## ---------------- ##
1765 # The following way of writing the cache mishandles newlines in values,
1767 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1768 eval ac_val=\$$ac_var
1772 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1773 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1776 _ | IFS | as_nl) ;; #(
1777 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1778 *) $as_unset $ac_var ;;
1783 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1784 *${as_nl}ac_space=\ *)
1786 "s/'\''/'\''\\\\'\'''\''/g;
1787 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1790 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1798 ## ----------------- ##
1799 ## Output variables. ##
1800 ## ----------------- ##
1803 for ac_var in $ac_subst_vars
1805 eval ac_val=\$$ac_var
1807 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1809 $as_echo "$ac_var='\''$ac_val'\''"
1813 if test -n "$ac_subst_files"; then
1815 ## ------------------- ##
1816 ## File substitutions. ##
1817 ## ------------------- ##
1820 for ac_var in $ac_subst_files
1822 eval ac_val=\$$ac_var
1824 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1826 $as_echo "$ac_var='\''$ac_val'\''"
1831 if test -s confdefs.h; then
1841 test "$ac_signal" != 0 &&
1842 $as_echo "$as_me: caught signal $ac_signal"
1843 $as_echo "$as_me: exit $exit_status"
1845 rm -f core *.core core.conftest.* &&
1846 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1849 for ac_signal in 1 2 13 15; do
1850 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1854 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1855 rm -f -r conftest* confdefs.h
1857 # Predefined preprocessor variables.
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_NAME "$PACKAGE_NAME"
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1869 cat >>confdefs.h <<_ACEOF
1870 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1874 cat >>confdefs.h <<_ACEOF
1875 #define PACKAGE_STRING "$PACKAGE_STRING"
1879 cat >>confdefs.h <<_ACEOF
1880 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1884 # Let the site file select an alternate cache file if it wants to.
1885 # Prefer an explicitly selected file to automatically selected ones.
1888 if test -n "$CONFIG_SITE"; then
1889 ac_site_file1=$CONFIG_SITE
1890 elif test "x$prefix" != xNONE; then
1891 ac_site_file1=$prefix/share/config.site
1892 ac_site_file2=$prefix/etc/config.site
1894 ac_site_file1=$ac_default_prefix/share/config.site
1895 ac_site_file2=$ac_default_prefix/etc/config.site
1897 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1899 test "x$ac_site_file" = xNONE && continue
1900 if test -r "$ac_site_file"; then
1901 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1902 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1903 sed 's/^/| /' "$ac_site_file" >&5
1908 if test -r "$cache_file"; then
1909 # Some versions of bash will fail to source /dev/null (special
1910 # files actually), so we avoid doing that.
1911 if test -f "$cache_file"; then
1912 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1913 $as_echo "$as_me: loading cache $cache_file" >&6;}
1915 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1916 *) . "./$cache_file";;
1920 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1921 $as_echo "$as_me: creating cache $cache_file" >&6;}
1925 # Check that the precious variables saved in the cache have kept the same
1927 ac_cache_corrupted=false
1928 for ac_var in $ac_precious_vars; do
1929 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1930 eval ac_new_set=\$ac_env_${ac_var}_set
1931 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1932 eval ac_new_val=\$ac_env_${ac_var}_value
1933 case $ac_old_set,$ac_new_set in
1935 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1936 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1937 ac_cache_corrupted=: ;;
1939 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1940 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1941 ac_cache_corrupted=: ;;
1944 if test "x$ac_old_val" != "x$ac_new_val"; then
1945 # differences in whitespace do not lead to failure.
1946 ac_old_val_w=`echo x $ac_old_val`
1947 ac_new_val_w=`echo x $ac_new_val`
1948 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1949 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1950 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1951 ac_cache_corrupted=:
1953 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1954 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1955 eval $ac_var=\$ac_old_val
1957 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1958 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1959 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1960 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1963 # Pass precious variables to config.status.
1964 if test "$ac_new_set" = set; then
1966 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1967 *) ac_arg=$ac_var=$ac_new_val ;;
1969 case " $ac_configure_args " in
1970 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1971 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1975 if $ac_cache_corrupted; then
1976 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1978 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1979 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1980 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1981 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1982 { (exit 1); exit 1; }; }
2002 ac_cpp='$CPP $CPPFLAGS'
2003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008 ac_config_headers="$ac_config_headers config.h"
2011 echo "current directory: `pwd`"
2012 echo "command line was: $0 $@"
2014 ###############################################################################
2018 ###############################################################################
2029 # This only ever existed in X11R4 and X11R5.
2030 #AH_TEMPLATE([HAVE_XIDLE_EXTENSION],
2031 # [Define this if you have the XIDLE extension installed. If you
2032 # have the XIDLE extension, this is recommended. (You have this
2033 # extension if the file /usr/include/X11/extensions/xidle.h
2034 # exists.) Turning on this flag lets XScreenSaver work better with
2035 # servers which support this extension; but it will still work
2036 # with servers which do not suport it, so it's a good idea to
2037 # compile in support for it if you can.])
2039 # Using this extension will crash your X server and make fading not work.
2040 #AH_TEMPLATE([HAVE_MIT_SAVER_EXTENSION],
2041 # [Define this if you have the MIT-SCREEN-SAVER extension
2042 # installed. See the caveats about this extension, above.
2043 # (It's available if /usr/include/X11/extensions/scrnsaver.h
2046 # This only ever existed on SGI hardware.
2047 #AH_TEMPLATE([HAVE_SGI_SAVER_EXTENSION],
2048 # [Define this if you have the SGI SCREEN_SAVER extension. This is
2049 # standard on Irix systems, and not available elsewhere.])
2051 # This only ever existed on SGI hardware.
2052 #AH_TEMPLATE([HAVE_SGI_VC_EXTENSION],
2053 # [Define this if you have the SGI-VIDEO-CONTROL extension. This
2054 # is standard on Irix systems, and not available elsewhere.])
2223 # After checking to see that --srcdir is correct (which AC_INIT does)
2224 # check for some random other files that come later in the tar file,
2225 # to make sure everything is here.
2227 for d in driver utils hacks hacks/glx ; do
2228 f=$srcdir/$d/Makefile.in
2229 if test \! -r $f ; then
2231 echo "ERROR: The package is incomplete: $f does not exist."
2232 echo " This probably means that your download was truncated."
2238 ###############################################################################
2240 # Function to figure out how to run the compiler.
2242 ###############################################################################
2247 ###############################################################################
2249 # Check for availability of various gcc command-line options.
2251 ###############################################################################
2259 # Need to disable Objective C extensions in ANSI C on MacOS X to work
2260 # around an Apple-specific gcc bug.
2264 ###############################################################################
2266 # Function to figure out how to disable // comments in ANSI C code.
2268 # (With recent gcc, this is done with "-std=c89". With older gcc, this
2269 # is done by passing "-lang-c89" to cpp, by passing "-Wp,-lang-c89" to
2270 # gcc. Old gcc doesn't support -std, and new gcc doesn't support -lang.
2271 # so much for compatibility!)
2273 # UPDATE: apparently there is NO WAY to tell gcc 3.2.2 to require that
2274 # declarations preceed statements, without resorting to "-pedantic".
2275 # This means that there is no way to get gcc3 to issue warnings that
2276 # ensure that your code complies with the ANSI/ISO C89 standard, without
2277 # also drowning in totally useless warnings. Thank you master may I
2280 # So, I give up, let's just use -pedantic.
2282 ###############################################################################
2289 ###############################################################################
2291 # Function to figure out how to create directory trees.
2293 ###############################################################################
2298 ###############################################################################
2300 # Function to check whether gettimeofday() exists, and how to call it.
2301 # This may define HAVE_GETTIMEOFDAY and GETTIMEOFDAY_TWO_ARGS.
2303 ###############################################################################
2308 ###############################################################################
2310 # Function to find perl5 (defines PERL and PERL_VERSION.)
2312 ###############################################################################
2314 # M4 sucks!! perl sucks too!!
2316 perl_version_cmd='print $]'
2322 ###############################################################################
2324 # Function to demand "bc". Losers.
2326 ###############################################################################
2330 ###############################################################################
2332 # Functions to check how to do ICMP PING requests.
2334 ###############################################################################
2341 ###############################################################################
2343 # Functions to check for various X11 crap.
2345 ###############################################################################
2347 # Try and find the app-defaults directory.
2348 # It sucks that autoconf doesn't do this already...
2352 ###############################################################################
2354 # Handle the --with-x-app-defaults option HERE
2356 ###############################################################################
2359 # Check whether --with-x-app-defaults was given.
2360 if test "${with_x_app_defaults+set}" = set; then
2361 withval=$with_x_app_defaults; ac_cv_x_app_defaults="$withval"
2363 eval ac_x_app_defaults="$withval"
2376 # Random special-cases for X on certain pathological OSes.
2377 # You know who you are.
2384 ###############################################################################
2386 # Some utility functions to make checking for X things easier.
2388 ###############################################################################
2390 # Like AC_CHECK_HEADER, but it uses the already-computed -I directories.
2394 # Like AC_EGREP_HEADER, but it uses the already-computed -I directories.
2398 # Like AC_TRY_COMPILE, but it uses the already-computed -I directories.
2403 # Like AC_CHECK_LIB, but it uses the already-computed -I and -L directories.
2404 # Use this sparingly; it probably doesn't work very well on X programs.
2408 # Like AC_TRY_RUN, but it uses the already-computed -I directories.
2409 # (But not the -L directories!)
2415 # Usage: HANDLE_X_PATH_ARG([variable_name],
2416 # [--command-line-option],
2417 # [descriptive string])
2419 # All of the --with options take three forms:
2421 # --with-foo (or --with-foo=yes)
2422 # --without-foo (or --with-foo=no)
2425 # This function, HANDLE_X_PATH_ARG, deals with the /DIR case. When it sees
2426 # a directory (string beginning with a slash) it checks to see whether
2427 # /DIR/include and /DIR/lib exist, and adds them to $X_CFLAGS and $X_LIBS
2434 ###############################################################################
2435 ###############################################################################
2437 # End of function definitions. Now start actually executing stuff.
2439 ###############################################################################
2440 ###############################################################################
2442 # WTF! autoconf emits this *way* too late. Do it earlier.
2443 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2444 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2447 # random compiler setup
2449 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2450 if test -f "$ac_dir/install-sh"; then
2452 ac_install_sh="$ac_aux_dir/install-sh -c"
2454 elif test -f "$ac_dir/install.sh"; then
2456 ac_install_sh="$ac_aux_dir/install.sh -c"
2458 elif test -f "$ac_dir/shtool"; then
2460 ac_install_sh="$ac_aux_dir/shtool install -c"
2464 if test -z "$ac_aux_dir"; then
2465 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2466 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2467 { (exit 1); exit 1; }; }
2470 # These three variables are undocumented and unsupported,
2471 # and are intended to be withdrawn in a future Autoconf release.
2472 # They can cause serious problems if a builder's source tree is in a directory
2473 # whose full name contains unusual characters.
2474 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2475 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2476 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2479 # Make sure we can run config.sub.
2480 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2481 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2482 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2483 { (exit 1); exit 1; }; }
2485 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2486 $as_echo_n "checking build system type... " >&6; }
2487 if test "${ac_cv_build+set}" = set; then
2488 $as_echo_n "(cached) " >&6
2490 ac_build_alias=$build_alias
2491 test "x$ac_build_alias" = x &&
2492 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2493 test "x$ac_build_alias" = x &&
2494 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2495 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2496 { (exit 1); exit 1; }; }
2497 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2498 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2499 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2500 { (exit 1); exit 1; }; }
2503 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2504 $as_echo "$ac_cv_build" >&6; }
2505 case $ac_cv_build in
2507 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2508 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2509 { (exit 1); exit 1; }; };;
2512 ac_save_IFS=$IFS; IFS='-'
2518 # Remember, the first character of IFS is used to create $*,
2519 # except with old shells:
2522 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2525 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2526 $as_echo_n "checking host system type... " >&6; }
2527 if test "${ac_cv_host+set}" = set; then
2528 $as_echo_n "(cached) " >&6
2530 if test "x$host_alias" = x; then
2531 ac_cv_host=$ac_cv_build
2533 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2534 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2535 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2536 { (exit 1); exit 1; }; }
2540 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2541 $as_echo "$ac_cv_host" >&6; }
2544 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2545 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2546 { (exit 1); exit 1; }; };;
2549 ac_save_IFS=$IFS; IFS='-'
2555 # Remember, the first character of IFS is used to create $*,
2556 # except with old shells:
2559 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2564 ac_cpp='$CPP $CPPFLAGS'
2565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568 if test -n "$ac_tool_prefix"; then
2569 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2570 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2571 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2572 $as_echo_n "checking for $ac_word... " >&6; }
2573 if test "${ac_cv_prog_CC+set}" = set; then
2574 $as_echo_n "(cached) " >&6
2576 if test -n "$CC"; then
2577 ac_cv_prog_CC="$CC" # Let the user override the test.
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2587 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 if test -n "$CC"; then
2598 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2599 $as_echo "$CC" >&6; }
2601 { $as_echo "$as_me:$LINENO: result: no" >&5
2602 $as_echo "no" >&6; }
2607 if test -z "$ac_cv_prog_CC"; then
2609 # Extract the first word of "gcc", so it can be a program name with args.
2610 set dummy gcc; ac_word=$2
2611 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 $as_echo_n "checking for $ac_word... " >&6; }
2613 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2614 $as_echo_n "(cached) " >&6
2616 if test -n "$ac_ct_CC"; then
2617 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2626 ac_cv_prog_ac_ct_CC="gcc"
2627 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2637 if test -n "$ac_ct_CC"; then
2638 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2639 $as_echo "$ac_ct_CC" >&6; }
2641 { $as_echo "$as_me:$LINENO: result: no" >&5
2642 $as_echo "no" >&6; }
2645 if test "x$ac_ct_CC" = x; then
2648 case $cross_compiling:$ac_tool_warned in
2650 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2652 ac_tool_warned=yes ;;
2660 if test -z "$CC"; then
2661 if test -n "$ac_tool_prefix"; then
2662 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2663 set dummy ${ac_tool_prefix}cc; ac_word=$2
2664 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if test "${ac_cv_prog_CC+set}" = set; then
2667 $as_echo_n "(cached) " >&6
2669 if test -n "$CC"; then
2670 ac_cv_prog_CC="$CC" # Let the user override the test.
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2679 ac_cv_prog_CC="${ac_tool_prefix}cc"
2680 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 if test -n "$CC"; then
2691 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2692 $as_echo "$CC" >&6; }
2694 { $as_echo "$as_me:$LINENO: result: no" >&5
2695 $as_echo "no" >&6; }
2701 if test -z "$CC"; then
2702 # Extract the first word of "cc", so it can be a program name with args.
2703 set dummy cc; ac_word=$2
2704 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2705 $as_echo_n "checking for $ac_word... " >&6; }
2706 if test "${ac_cv_prog_CC+set}" = set; then
2707 $as_echo_n "(cached) " >&6
2709 if test -n "$CC"; then
2710 ac_cv_prog_CC="$CC" # Let the user override the test.
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 test -z "$as_dir" && as_dir=.
2718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2720 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2721 ac_prog_rejected=yes
2725 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 if test $ac_prog_rejected = yes; then
2733 # We found a bogon in the path, so make sure we never use it.
2734 set dummy $ac_cv_prog_CC
2736 if test $# != 0; then
2737 # We chose a different compiler from the bogus one.
2738 # However, it has the same basename, so the bogon will be chosen
2739 # first if we set CC to just the basename; use the full file name.
2741 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2747 if test -n "$CC"; then
2748 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2749 $as_echo "$CC" >&6; }
2751 { $as_echo "$as_me:$LINENO: result: no" >&5
2752 $as_echo "no" >&6; }
2757 if test -z "$CC"; then
2758 if test -n "$ac_tool_prefix"; then
2759 for ac_prog in cl.exe
2761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2762 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2763 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2764 $as_echo_n "checking for $ac_word... " >&6; }
2765 if test "${ac_cv_prog_CC+set}" = set; then
2766 $as_echo_n "(cached) " >&6
2768 if test -n "$CC"; then
2769 ac_cv_prog_CC="$CC" # Let the user override the test.
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2778 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2779 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 if test -n "$CC"; then
2790 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2791 $as_echo "$CC" >&6; }
2793 { $as_echo "$as_me:$LINENO: result: no" >&5
2794 $as_echo "no" >&6; }
2798 test -n "$CC" && break
2801 if test -z "$CC"; then
2803 for ac_prog in cl.exe
2805 # Extract the first word of "$ac_prog", so it can be a program name with args.
2806 set dummy $ac_prog; ac_word=$2
2807 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2810 $as_echo_n "(cached) " >&6
2812 if test -n "$ac_ct_CC"; then
2813 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822 ac_cv_prog_ac_ct_CC="$ac_prog"
2823 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2833 if test -n "$ac_ct_CC"; then
2834 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2835 $as_echo "$ac_ct_CC" >&6; }
2837 { $as_echo "$as_me:$LINENO: result: no" >&5
2838 $as_echo "no" >&6; }
2842 test -n "$ac_ct_CC" && break
2845 if test "x$ac_ct_CC" = x; then
2848 case $cross_compiling:$ac_tool_warned in
2850 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2852 ac_tool_warned=yes ;;
2861 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2863 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2864 See \`config.log' for more details." >&5
2865 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2866 See \`config.log' for more details." >&2;}
2867 { (exit 1); exit 1; }; }; }
2869 # Provide some information about the compiler.
2870 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2873 { (ac_try="$ac_compiler --version >&5"
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2879 $as_echo "$ac_try_echo") >&5
2880 (eval "$ac_compiler --version >&5") 2>&5
2882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }
2884 { (ac_try="$ac_compiler -v >&5"
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2890 $as_echo "$ac_try_echo") >&5
2891 (eval "$ac_compiler -v >&5") 2>&5
2893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }
2895 { (ac_try="$ac_compiler -V >&5"
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2901 $as_echo "$ac_try_echo") >&5
2902 (eval "$ac_compiler -V >&5") 2>&5
2904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2907 cat >conftest.$ac_ext <<_ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h. */
2922 ac_clean_files_save=$ac_clean_files
2923 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2924 # Try to create an executable without -o first, disregard a.out.
2925 # It will help us diagnose broken compilers, and finding out an intuition
2927 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2928 $as_echo_n "checking for C compiler default output file name... " >&6; }
2929 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2931 # The possible output files:
2932 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2935 for ac_file in $ac_files
2938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2939 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2944 if { (ac_try="$ac_link_default"
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2950 $as_echo "$ac_try_echo") >&5
2951 (eval "$ac_link_default") 2>&5
2953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; then
2955 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2956 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2957 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2958 # so that the user can short-circuit this test for compilers unknown to
2960 for ac_file in $ac_files ''
2962 test -f "$ac_file" || continue
2964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2967 # We found the default executable, but exeext='' is most
2971 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2973 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2975 # We set ac_cv_exeext here because the later test for it is not
2976 # safe: cross compilers may not add the suffix if given an `-o'
2977 # argument, so we may need to know it at that point already.
2978 # Even if this section looks crufty: it has the advantage of
2985 test "$ac_cv_exeext" = no && ac_cv_exeext=
2991 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2992 $as_echo "$ac_file" >&6; }
2993 if test -z "$ac_file"; then
2994 $as_echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2997 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2999 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3000 See \`config.log' for more details." >&5
3001 $as_echo "$as_me: error: C compiler cannot create executables
3002 See \`config.log' for more details." >&2;}
3003 { (exit 77); exit 77; }; }; }
3006 ac_exeext=$ac_cv_exeext
3008 # Check that the compiler produces executables we can run. If not, either
3009 # the compiler is broken, or we cross compile.
3010 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3011 $as_echo_n "checking whether the C compiler works... " >&6; }
3012 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3013 # If not cross compiling, check that we can run a simple program.
3014 if test "$cross_compiling" != yes; then
3015 if { ac_try='./$ac_file'
3016 { (case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3021 $as_echo "$ac_try_echo") >&5
3022 (eval "$ac_try") 2>&5
3024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; }; then
3028 if test "$cross_compiling" = maybe; then
3031 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3033 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3034 If you meant to cross compile, use \`--host'.
3035 See \`config.log' for more details." >&5
3036 $as_echo "$as_me: error: cannot run C compiled programs.
3037 If you meant to cross compile, use \`--host'.
3038 See \`config.log' for more details." >&2;}
3039 { (exit 1); exit 1; }; }; }
3043 { $as_echo "$as_me:$LINENO: result: yes" >&5
3044 $as_echo "yes" >&6; }
3046 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3047 ac_clean_files=$ac_clean_files_save
3048 # Check that the compiler produces executables we can run. If not, either
3049 # the compiler is broken, or we cross compile.
3050 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3051 $as_echo_n "checking whether we are cross compiling... " >&6; }
3052 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3053 $as_echo "$cross_compiling" >&6; }
3055 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3056 $as_echo_n "checking for suffix of executables... " >&6; }
3057 if { (ac_try="$ac_link"
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3063 $as_echo "$ac_try_echo") >&5
3064 (eval "$ac_link") 2>&5
3066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; then
3068 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3069 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3070 # work properly (i.e., refer to `conftest.exe'), while it won't with
3072 for ac_file in conftest.exe conftest conftest.*; do
3073 test -f "$ac_file" || continue
3075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3076 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3082 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3084 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3085 See \`config.log' for more details." >&5
3086 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3087 See \`config.log' for more details." >&2;}
3088 { (exit 1); exit 1; }; }; }
3091 rm -rf conftest$ac_cv_exeext
3092 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3093 $as_echo "$ac_cv_exeext" >&6; }
3095 rm -rf conftest.$ac_ext
3096 EXEEXT=$ac_cv_exeext
3098 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3099 $as_echo_n "checking for suffix of object files... " >&6; }
3100 if test "${ac_cv_objext+set}" = set; then
3101 $as_echo_n "(cached) " >&6
3103 cat >conftest.$ac_ext <<_ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h. */
3118 rm -rf conftest.o conftest.obj
3119 if { (ac_try="$ac_compile"
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3125 $as_echo "$ac_try_echo") >&5
3126 (eval "$ac_compile") 2>&5
3128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }; then
3130 for ac_file in conftest.o conftest.obj conftest.*; do
3131 test -f "$ac_file" || continue;
3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3134 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3139 $as_echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3142 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3144 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3145 See \`config.log' for more details." >&5
3146 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3147 See \`config.log' for more details." >&2;}
3148 { (exit 1); exit 1; }; }; }
3151 rm -rf conftest.$ac_cv_objext conftest.$ac_ext
3153 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3154 $as_echo "$ac_cv_objext" >&6; }
3155 OBJEXT=$ac_cv_objext
3157 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3158 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3159 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3160 $as_echo_n "(cached) " >&6
3162 cat >conftest.$ac_ext <<_ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3180 rm -rf conftest.$ac_objext
3181 if { (ac_try="$ac_compile"
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3187 $as_echo "$ac_try_echo") >&5
3188 (eval "$ac_compile") 2>conftest.er1
3190 grep -v '^ *+' conftest.er1 >conftest.err
3192 cat conftest.err >&5
3193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } && {
3195 test -z "$ac_c_werror_flag" ||
3196 test ! -s conftest.err
3197 } && test -s conftest.$ac_objext; then
3200 $as_echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3210 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3211 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3212 if test $ac_compiler_gnu = yes; then
3217 ac_test_CFLAGS=${CFLAGS+set}
3218 ac_save_CFLAGS=$CFLAGS
3219 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3220 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3221 if test "${ac_cv_prog_cc_g+set}" = set; then
3222 $as_echo_n "(cached) " >&6
3224 ac_save_c_werror_flag=$ac_c_werror_flag
3225 ac_c_werror_flag=yes
3228 cat >conftest.$ac_ext <<_ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h. */
3243 rm -rf conftest.$ac_objext
3244 if { (ac_try="$ac_compile"
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3250 $as_echo "$ac_try_echo") >&5
3251 (eval "$ac_compile") 2>conftest.er1
3253 grep -v '^ *+' conftest.er1 >conftest.err
3255 cat conftest.err >&5
3256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } && {
3258 test -z "$ac_c_werror_flag" ||
3259 test ! -s conftest.err
3260 } && test -s conftest.$ac_objext; then
3263 $as_echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3267 cat >conftest.$ac_ext <<_ACEOF
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h. */
3282 rm -rf conftest.$ac_objext
3283 if { (ac_try="$ac_compile"
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3289 $as_echo "$ac_try_echo") >&5
3290 (eval "$ac_compile") 2>conftest.er1
3292 grep -v '^ *+' conftest.er1 >conftest.err
3294 cat conftest.err >&5
3295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } && {
3297 test -z "$ac_c_werror_flag" ||
3298 test ! -s conftest.err
3299 } && test -s conftest.$ac_objext; then
3302 $as_echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3305 ac_c_werror_flag=$ac_save_c_werror_flag
3307 cat >conftest.$ac_ext <<_ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3322 rm -rf conftest.$ac_objext
3323 if { (ac_try="$ac_compile"
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3329 $as_echo "$ac_try_echo") >&5
3330 (eval "$ac_compile") 2>conftest.er1
3332 grep -v '^ *+' conftest.er1 >conftest.err
3334 cat conftest.err >&5
3335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } && {
3337 test -z "$ac_c_werror_flag" ||
3338 test ! -s conftest.err
3339 } && test -s conftest.$ac_objext; then
3342 $as_echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355 ac_c_werror_flag=$ac_save_c_werror_flag
3357 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3358 $as_echo "$ac_cv_prog_cc_g" >&6; }
3359 if test "$ac_test_CFLAGS" = set; then
3360 CFLAGS=$ac_save_CFLAGS
3361 elif test $ac_cv_prog_cc_g = yes; then
3362 if test "$GCC" = yes; then
3368 if test "$GCC" = yes; then
3374 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3375 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3376 if test "${ac_cv_prog_cc_c89+set}" = set; then
3377 $as_echo_n "(cached) " >&6
3379 ac_cv_prog_cc_c89=no
3381 cat >conftest.$ac_ext <<_ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3389 #include <sys/types.h>
3390 #include <sys/stat.h>
3391 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3392 struct buf { int x; };
3393 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3394 static char *e (p, i)
3400 static char *f (char * (*g) (char **, int), char **p, ...)
3405 s = g (p, va_arg (v,int));
3410 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3411 function prototypes and stuff, but not '\xHH' hex character constants.
3412 These don't provoke an error unfortunately, instead are silently treated
3413 as 'x'. The following induces an error, until -std is added to get
3414 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3415 array size at least. It's necessary to write '\x00'==0 to get something
3416 that's true only with -std. */
3417 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3419 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3420 inside strings and character constants. */
3422 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3424 int test (int i, double x);
3425 struct s1 {int (*f) (int a);};
3426 struct s2 {int (*f) (double a);};
3427 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3433 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3438 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3439 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3441 CC="$ac_save_CC $ac_arg"
3442 rm -rf conftest.$ac_objext
3443 if { (ac_try="$ac_compile"
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3449 $as_echo "$ac_try_echo") >&5
3450 (eval "$ac_compile") 2>conftest.er1
3452 grep -v '^ *+' conftest.er1 >conftest.err
3454 cat conftest.err >&5
3455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } && {
3457 test -z "$ac_c_werror_flag" ||
3458 test ! -s conftest.err
3459 } && test -s conftest.$ac_objext; then
3460 ac_cv_prog_cc_c89=$ac_arg
3462 $as_echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3468 rm -f core conftest.err conftest.$ac_objext
3469 test "x$ac_cv_prog_cc_c89" != "xno" && break
3471 rm -rf conftest.$ac_ext
3476 case "x$ac_cv_prog_cc_c89" in
3478 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3479 $as_echo "none needed" >&6; } ;;
3481 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3482 $as_echo "unsupported" >&6; } ;;
3484 CC="$CC $ac_cv_prog_cc_c89"
3485 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3486 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3491 ac_cpp='$CPP $CPPFLAGS'
3492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3497 if test -z "$GCC"; then
3499 { $as_echo "$as_me:$LINENO: checking how to request ANSI compilation" >&5
3500 $as_echo_n "checking how to request ANSI compilation... " >&6; }
3503 { $as_echo "$as_me:$LINENO: result: HPUX: adding -Ae" >&5
3504 $as_echo "HPUX: adding -Ae" >&6; }
3508 { $as_echo "$as_me:$LINENO: result: AIX: adding -qlanglvl=ansi -qhalt=e" >&5
3509 $as_echo "AIX: adding -qlanglvl=ansi -qhalt=e" >&6; }
3510 CC="$CC -qlanglvl=ansi -qhalt=e"
3513 { $as_echo "$as_me:$LINENO: result: DEC: adding -std1 -ieee" >&5
3514 $as_echo "DEC: adding -std1 -ieee" >&6; }
3518 { $as_echo "$as_me:$LINENO: result: no idea" >&5
3519 $as_echo "no idea" >&6; }
3526 { $as_echo "$as_me:$LINENO: result: Solaris: adding -D__EXTENSIONS__" >&5
3527 $as_echo "Solaris: adding -D__EXTENSIONS__" >&6; }
3528 CC="$CC -D__EXTENSIONS__"
3535 { $as_echo "$as_me:$LINENO: checking whether the compiler works on ANSI C" >&5
3536 $as_echo_n "checking whether the compiler works on ANSI C... " >&6; }
3537 if test "$cross_compiling" = yes; then
3538 { { $as_echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
3539 $as_echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
3540 { (exit 1); exit 1; }; }
3542 cat >conftest.$ac_ext <<_ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3548 main(int ac, char **av) { return 0; }
3550 rm -rf conftest$ac_exeext
3551 if { (ac_try="$ac_link"
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3557 $as_echo "$ac_try_echo") >&5
3558 (eval "$ac_link") 2>&5
3560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3562 { (case "(($ac_try" in
3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564 *) ac_try_echo=$ac_try;;
3566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3567 $as_echo "$ac_try_echo") >&5
3568 (eval "$ac_try") 2>&5
3570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; }; then
3572 { $as_echo "$as_me:$LINENO: result: yes" >&5
3573 $as_echo "yes" >&6; }
3575 $as_echo "$as_me: program exited with status $ac_status" >&5
3576 $as_echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3580 { $as_echo "$as_me:$LINENO: result: no" >&5
3581 $as_echo "no" >&6; }
3582 { { $as_echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
3583 $as_echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
3584 { (exit 1); exit 1; }; }
3586 rm -rf conftest.dSYM
3587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3592 if test -n "$GCC"; then
3593 { $as_echo "$as_me:$LINENO: result: Turning on gcc compiler warnings." >&5
3594 $as_echo "Turning on gcc compiler warnings." >&6; }
3595 CC="$CC -pedantic -Wall -Wstrict-prototypes -Wnested-externs -Wmissing-prototypes"
3596 OBJCC="$OBJCC -Wall"
3597 # As of gcc 3.4, we have "-Wdeclaration-after-statement"
3598 # and so perhaps now we can do without -pedantic?
3601 *-irix5* |*-irix6.0-3* )
3602 { $as_echo "$as_me:$LINENO: result: Turning on SGI compiler warnings." >&5
3603 $as_echo "Turning on SGI compiler warnings." >&6; }
3604 CC="$CC -fullwarn -use_readonly_const -rdata_shared -g3"
3607 # if test -z "$GCC"; then
3608 # AC_MSG_RESULT(Turning on DEC C compiler warnings.)
3609 # CC="$CC -migrate -w0 -verbose -warnprotos"
3615 if test -n "$GCC"; then
3616 { $as_echo "$as_me:$LINENO: checking whether gcc accepts -Wno-overlength-strings" >&5
3617 $as_echo_n "checking whether gcc accepts -Wno-overlength-strings... " >&6; }
3618 if test "${ac_cv_gcc_accepts_no_overlength+set}" = set; then
3619 $as_echo_n "(cached) " >&6
3621 rm -rf conftest.$ac_ext
3622 touch conftest.$ac_ext
3623 if ( ( gcc -c -Wno-overlength-strings conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3624 grep unrecognized >/dev/null ); then
3625 ac_cv_gcc_accepts_no_overlength=no
3627 ac_cv_gcc_accepts_no_overlength=yes
3628 CC="$CC -Wno-overlength-strings"
3631 { $as_echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_no_overlength" >&5
3632 $as_echo "$ac_cv_gcc_accepts_no_overlength" >&6; }
3633 ac_gcc_accepts_no_overlength="$ac_cv_gcc_accepts_no_overlength"
3636 if test -n "$GCC"; then
3637 { $as_echo "$as_me:$LINENO: checking whether gcc accepts -Wdeclaration-after-statement" >&5
3638 $as_echo_n "checking whether gcc accepts -Wdeclaration-after-statement... " >&6; }
3639 if test "${ac_cv_gcc_accepts_no_decl_after+set}" = set; then
3640 $as_echo_n "(cached) " >&6
3642 rm -rf conftest.$ac_ext
3643 touch conftest.$ac_ext
3644 if ( ( gcc -c -Wdeclaration-after-statement conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3645 grep unrecognized >/dev/null ); then
3646 ac_cv_gcc_accepts_no_decl_after=no
3648 ac_cv_gcc_accepts_no_decl_after=yes
3649 CC="$CC -Wdeclaration-after-statement"
3652 { $as_echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_no_decl_after" >&5
3653 $as_echo "$ac_cv_gcc_accepts_no_decl_after" >&6; }
3654 ac_gcc_accepts_no_decl_after="$ac_cv_gcc_accepts_no_decl_after"
3657 if test -n "$GCC"; then
3658 { $as_echo "$as_me:$LINENO: checking whether gcc accepts -no-cpp-precomp" >&5
3659 $as_echo_n "checking whether gcc accepts -no-cpp-precomp... " >&6; }
3660 if test "${ac_cv_gcc_accepts_no_cpp_precomp+set}" = set; then
3661 $as_echo_n "(cached) " >&6
3663 rm -rf conftest.$ac_ext
3664 touch conftest.$ac_ext
3665 if ( ( gcc -c -no-cpp-precomp conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3666 grep unrecognized >/dev/null ); then
3667 ac_cv_gcc_accepts_no_cpp_precomp=no
3669 ac_cv_gcc_accepts_no_cpp_precomp=yes
3670 CC="$CC -no-cpp-precomp"
3673 { $as_echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_no_cpp_precomp" >&5
3674 $as_echo "$ac_cv_gcc_accepts_no_cpp_precomp" >&6; }
3675 ac_gcc_accepts_no_cpp_precomp="$ac_cv_gcc_accepts_no_cpp_precomp"
3678 if test -n "$GCC"; then
3682 # Fucking Apple let // comments sneak into OpenGL headers, so
3683 # we *must* allow // comments when compiling on Mac OS 10.6! FUCK!
3686 if test -n "$GCC"; then
3687 { $as_echo "$as_me:$LINENO: checking whether gcc accepts -std=c89" >&5
3688 $as_echo_n "checking whether gcc accepts -std=c89... " >&6; }
3689 if test "${ac_cv_gcc_accepts_std+set}" = set; then
3690 $as_echo_n "(cached) " >&6
3692 rm -rf conftest.$ac_ext
3693 touch conftest.$ac_ext
3694 if ( ( gcc -c -std=c89 conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3695 grep unrecognized >/dev/null ); then
3696 ac_cv_gcc_accepts_std=no
3698 ac_cv_gcc_accepts_std=yes
3702 { $as_echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_std" >&5
3703 $as_echo "$ac_cv_gcc_accepts_std" >&6; }
3704 ac_gcc_accepts_std="$ac_cv_gcc_accepts_std"
3710 { $as_echo "$as_me:$LINENO: result: Disabling C++ comments in ANSI C code." >&5
3711 $as_echo "Disabling C++ comments in ANSI C code." >&6; }
3713 # The reason that // comments are banned from xscreensaver is that gcc is
3714 # basically the only compiler in the world that supports them in C code.
3715 # All other vendors support them only in their C++ compilers, not in their
3716 # ANSI C compilers. This means that it's a portability problem: every time
3717 # these comments have snuck into the xscreensaver source code, I've gotten
3718 # complaints about it the next day. So we turn off support for them in gcc
3719 # as well to prevent them from accidentially slipping in.
3721 if test "$ac_gcc_accepts_std" = yes ; then
3723 # -std=c89 defines __STRICT_ANSI__, which we don't want.
3724 # (That appears to be the only additional preprocessor symbol
3725 # it defines, in addition to the syntax changes it makes.)
3727 # -std=gnu89 is no good, because // comments were a GNU extension
3728 # before they were in the ANSI C 99 spec... (gcc 2.96 permits //
3729 # with -std=gnu89 but not with -std=c89.)
3731 # $CC already contains "-std=c89" via AC_GCC_ACCEPTS_STD
3732 CC="$CC -U__STRICT_ANSI__"
3735 # CC="$CC -Wp,-lang-c89"
3740 ac_cpp='$CPP $CPPFLAGS'
3741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3744 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3745 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3746 # On Suns, sometimes $CPP names a directory.
3747 if test -n "$CPP" && test -d "$CPP"; then
3750 if test -z "$CPP"; then
3751 if test "${ac_cv_prog_CPP+set}" = set; then
3752 $as_echo_n "(cached) " >&6
3754 # Double quotes because CPP needs to be expanded
3755 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3758 for ac_c_preproc_warn_flag in '' yes
3760 # Use a header file that comes with gcc, so configuring glibc
3761 # with a fresh cross-compiler works.
3762 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3763 # <limits.h> exists even on freestanding compilers.
3764 # On the NeXT, cc -E runs the code through the compiler's parser,
3765 # not just through cpp. "Syntax error" is here to catch this case.
3766 cat >conftest.$ac_ext <<_ACEOF
3769 cat confdefs.h >>conftest.$ac_ext
3770 cat >>conftest.$ac_ext <<_ACEOF
3771 /* end confdefs.h. */
3773 # include <limits.h>
3775 # include <assert.h>
3779 if { (ac_try="$ac_cpp conftest.$ac_ext"
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3785 $as_echo "$ac_try_echo") >&5
3786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3788 grep -v '^ *+' conftest.er1 >conftest.err
3790 cat conftest.err >&5
3791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } >/dev/null && {
3793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3794 test ! -s conftest.err
3798 $as_echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3801 # Broken: fails on valid input.
3805 rm -rf conftest.err conftest.$ac_ext
3807 # OK, works on sane cases. Now check whether nonexistent headers
3808 # can be detected and how.
3809 cat >conftest.$ac_ext <<_ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3815 #include <ac_nonexistent.h>
3817 if { (ac_try="$ac_cpp conftest.$ac_ext"
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3823 $as_echo "$ac_try_echo") >&5
3824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3826 grep -v '^ *+' conftest.er1 >conftest.err
3828 cat conftest.err >&5
3829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } >/dev/null && {
3831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3832 test ! -s conftest.err
3834 # Broken: success on invalid input.
3837 $as_echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3840 # Passes both tests.
3845 rm -rf conftest.err conftest.$ac_ext
3848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3849 rm -rf conftest.err conftest.$ac_ext
3850 if $ac_preproc_ok; then
3862 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3863 $as_echo "$CPP" >&6; }
3865 for ac_c_preproc_warn_flag in '' yes
3867 # Use a header file that comes with gcc, so configuring glibc
3868 # with a fresh cross-compiler works.
3869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3870 # <limits.h> exists even on freestanding compilers.
3871 # On the NeXT, cc -E runs the code through the compiler's parser,
3872 # not just through cpp. "Syntax error" is here to catch this case.
3873 cat >conftest.$ac_ext <<_ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3880 # include <limits.h>
3882 # include <assert.h>
3886 if { (ac_try="$ac_cpp conftest.$ac_ext"
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3892 $as_echo "$ac_try_echo") >&5
3893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3895 grep -v '^ *+' conftest.er1 >conftest.err
3897 cat conftest.err >&5
3898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } >/dev/null && {
3900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3901 test ! -s conftest.err
3905 $as_echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3908 # Broken: fails on valid input.
3912 rm -rf conftest.err conftest.$ac_ext
3914 # OK, works on sane cases. Now check whether nonexistent headers
3915 # can be detected and how.
3916 cat >conftest.$ac_ext <<_ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h. */
3922 #include <ac_nonexistent.h>
3924 if { (ac_try="$ac_cpp conftest.$ac_ext"
3926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3930 $as_echo "$ac_try_echo") >&5
3931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3933 grep -v '^ *+' conftest.er1 >conftest.err
3935 cat conftest.err >&5
3936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } >/dev/null && {
3938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3939 test ! -s conftest.err
3941 # Broken: success on invalid input.
3944 $as_echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3947 # Passes both tests.
3952 rm -rf conftest.err conftest.$ac_ext
3955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3956 rm -rf conftest.err conftest.$ac_ext
3957 if $ac_preproc_ok; then
3960 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3962 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3963 See \`config.log' for more details." >&5
3964 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3965 See \`config.log' for more details." >&2;}
3966 { (exit 1); exit 1; }; }; }
3970 ac_cpp='$CPP $CPPFLAGS'
3971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3975 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3976 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3977 if test "${ac_cv_c_const+set}" = set; then
3978 $as_echo_n "(cached) " >&6
3980 cat >conftest.$ac_ext <<_ACEOF
3983 cat confdefs.h >>conftest.$ac_ext
3984 cat >>conftest.$ac_ext <<_ACEOF
3985 /* end confdefs.h. */
3990 /* FIXME: Include the comments suggested by Paul. */
3992 /* Ultrix mips cc rejects this. */
3993 typedef int charset[2];
3995 /* SunOS 4.1.1 cc rejects this. */
3996 char const *const *pcpcc;
3998 /* NEC SVR4.0.2 mips cc rejects this. */
3999 struct point {int x, y;};
4000 static struct point const zero = {0,0};
4001 /* AIX XL C 1.02.0.0 rejects this.
4002 It does not let you subtract one const X* pointer from another in
4003 an arm of an if-expression whose if-part is not a constant
4005 const char *g = "string";
4006 pcpcc = &g + (g ? g-g : 0);
4007 /* HPUX 7.0 cc rejects these. */
4009 ppc = (char**) pcpcc;
4010 pcpcc = (char const *const *) ppc;
4011 { /* SCO 3.2v4 cc rejects this. */
4013 char const *s = 0 ? (char *) 0 : (char const *) 0;
4018 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4020 const int *foo = &x[0];
4023 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4024 typedef const int *iptr;
4028 { /* AIX XL C 1.02.0.0 rejects this saying
4029 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4030 struct s { int j; const int *ap[3]; };
4031 struct s *b; b->j = 5;
4033 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4037 return !cs[0] && !zero.x;
4044 rm -rf conftest.$ac_objext
4045 if { (ac_try="$ac_compile"
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4051 $as_echo "$ac_try_echo") >&5
4052 (eval "$ac_compile") 2>conftest.er1
4054 grep -v '^ *+' conftest.er1 >conftest.err
4056 cat conftest.err >&5
4057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); } && {
4059 test -z "$ac_c_werror_flag" ||
4060 test ! -s conftest.err
4061 } && test -s conftest.$ac_objext; then
4064 $as_echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4073 $as_echo "$ac_cv_c_const" >&6; }
4074 if test $ac_cv_c_const = no; then
4076 cat >>confdefs.h <<\_ACEOF
4082 { $as_echo "$as_me:$LINENO: checking for inline" >&5
4083 $as_echo_n "checking for inline... " >&6; }
4084 if test "${ac_cv_c_inline+set}" = set; then
4085 $as_echo_n "(cached) " >&6
4088 for ac_kw in inline __inline__ __inline; do
4089 cat >conftest.$ac_ext <<_ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4097 static $ac_kw foo_t static_foo () {return 0; }
4098 $ac_kw foo_t foo () {return 0; }
4102 rm -rf conftest.$ac_objext
4103 if { (ac_try="$ac_compile"
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4109 $as_echo "$ac_try_echo") >&5
4110 (eval "$ac_compile") 2>conftest.er1
4112 grep -v '^ *+' conftest.er1 >conftest.err
4114 cat conftest.err >&5
4115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } && {
4117 test -z "$ac_c_werror_flag" ||
4118 test ! -s conftest.err
4119 } && test -s conftest.$ac_objext; then
4120 ac_cv_c_inline=$ac_kw
4122 $as_echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129 test "$ac_cv_c_inline" != no && break
4133 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4134 $as_echo "$ac_cv_c_inline" >&6; }
4137 case $ac_cv_c_inline in
4140 case $ac_cv_c_inline in
4142 *) ac_val=$ac_cv_c_inline;;
4144 cat >>confdefs.h <<_ACEOF
4146 #define inline $ac_val
4153 ac_bc_result=`echo 6+9 | bc 2>/dev/null`
4154 { $as_echo "$as_me:$LINENO: checking for bc" >&5
4155 $as_echo_n "checking for bc... " >&6; }
4156 if test "$ac_bc_result" = "15" ; then
4157 { $as_echo "$as_me:$LINENO: result: yes" >&5
4158 $as_echo "yes" >&6; }
4160 { $as_echo "$as_me:$LINENO: result: no" >&5
4161 $as_echo "no" >&6; }
4163 { { $as_echo "$as_me:$LINENO: error: Your system doesn't have \"bc\", which has been a standard
4164 part of Unix since the 1970s. Come back when your vendor
4165 has grown a clue." >&5
4166 $as_echo "$as_me: error: Your system doesn't have \"bc\", which has been a standard
4167 part of Unix since the 1970s. Come back when your vendor
4168 has grown a clue." >&2;}
4169 { (exit 1); exit 1; }; }
4173 # stuff for Makefiles
4174 # Find a good install program. We prefer a C program (faster),
4175 # so one script is as good as another. But avoid the broken or
4176 # incompatible versions:
4177 # SysV /etc/install, /usr/sbin/install
4178 # SunOS /usr/etc/install
4179 # IRIX /sbin/install
4181 # AmigaOS /C/install, which installs bootblocks on floppy discs
4182 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4183 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4184 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4185 # OS/2's system install, which has a completely different semantic
4186 # ./install, which can be erroneously created by make from ./install.sh.
4187 # Reject install programs that cannot install multiple files.
4188 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4189 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4190 if test -z "$INSTALL"; then
4191 if test "${ac_cv_path_install+set}" = set; then
4192 $as_echo_n "(cached) " >&6
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 test -z "$as_dir" && as_dir=.
4199 # Account for people who put trailing slashes in PATH elements.
4201 ./ | .// | /cC/* | \
4202 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4203 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4206 # OSF1 and SCO ODT 3.0 have their own names for install.
4207 # Don't use installbsd from OSF since it installs stuff as root
4209 for ac_prog in ginstall scoinst install; do
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4212 if test $ac_prog = install &&
4213 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4214 # AIX install. It has an incompatible calling convention.
4216 elif test $ac_prog = install &&
4217 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4218 # program-specific install script used by HP pwplus--don't use.
4221 rm -rf conftest.one conftest.two conftest.dir
4222 echo one > conftest.one
4223 echo two > conftest.two
4225 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4226 test -s conftest.one && test -s conftest.two &&
4227 test -s conftest.dir/conftest.one &&
4228 test -s conftest.dir/conftest.two
4230 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4243 rm -rf conftest.one conftest.two conftest.dir
4246 if test "${ac_cv_path_install+set}" = set; then
4247 INSTALL=$ac_cv_path_install
4249 # As a last resort, use the slow shell script. Don't cache a
4250 # value for INSTALL within a source directory, because that will
4251 # break other packages using the cache if that directory is
4252 # removed, or if the value is a relative name.
4253 INSTALL=$ac_install_sh
4256 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4257 $as_echo "$INSTALL" >&6; }
4259 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4260 # It thinks the first close brace ends the variable substitution.
4261 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4263 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4265 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4267 { $as_echo "$as_me:$LINENO: checking whether \"\${INSTALL} -d\" creates intermediate directories" >&5
4268 $as_echo_n "checking whether \"\${INSTALL} -d\" creates intermediate directories... " >&6; }
4269 if test "${ac_cv_install_d_creates_dirs+set}" = set; then
4270 $as_echo_n "(cached) " >&6
4272 ac_cv_install_d_creates_dirs=no
4274 if mkdir conftestdir; then
4275 cd conftestdir 2>/dev/null
4276 ${INSTALL} -d `pwd`/dir1/dir2 >/dev/null 2>&1
4277 if test -d dir1/dir2/. ; then
4278 ac_cv_install_d_creates_dirs=yes
4285 { $as_echo "$as_me:$LINENO: result: $ac_cv_install_d_creates_dirs" >&5
4286 $as_echo "$ac_cv_install_d_creates_dirs" >&6; }
4288 if test "$ac_cv_install_d_creates_dirs" = no ; then
4289 { $as_echo "$as_me:$LINENO: checking whether \"mkdir -p\" creates intermediate directories" >&5
4290 $as_echo_n "checking whether \"mkdir -p\" creates intermediate directories... " >&6; }
4291 if test "${ac_cv_mkdir_p_creates_dirs+set}" = set; then
4292 $as_echo_n "(cached) " >&6
4294 ac_cv_mkdir_p_creates_dirs=no
4296 if mkdir conftestdir; then
4297 cd conftestdir 2>/dev/null
4298 mkdir -p dir1/dir2 >/dev/null 2>&1
4299 if test -d dir1/dir2/. ; then
4300 ac_cv_mkdir_p_creates_dirs=yes
4307 { $as_echo "$as_me:$LINENO: result: $ac_cv_mkdir_p_creates_dirs" >&5
4308 $as_echo "$ac_cv_mkdir_p_creates_dirs" >&6; }
4311 if test "$ac_cv_install_d_creates_dirs" = yes ; then
4312 INSTALL_DIRS='${INSTALL} -d'
4313 elif test "$ac_cv_mkdir_p_creates_dirs" = yes ; then
4314 INSTALL_DIRS='mkdir -p'
4317 INSTALL_DIRS='${INSTALL} -d'
4320 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4321 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4323 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4324 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4325 $as_echo_n "(cached) " >&6
4327 cat >conftest.make <<\_ACEOF
4330 @echo '@@@%%%=$(MAKE)=@@@%%%'
4332 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4333 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4335 eval ac_cv_prog_make_${ac_make}_set=yes;;
4337 eval ac_cv_prog_make_${ac_make}_set=no;;
4339 rm -rf conftest.make
4341 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4342 { $as_echo "$as_me:$LINENO: result: yes" >&5
4343 $as_echo "yes" >&6; }
4346 { $as_echo "$as_me:$LINENO: result: no" >&5
4347 $as_echo "no" >&6; }
4348 SET_MAKE="MAKE=${MAKE-make}"
4352 # By default, autoconf sets INSTALL_SCRIPT to '${INSTALL_PROGRAM}'.
4353 # That's wrong: it should be set to '${INSTALL}', so that one can
4354 # implement the "install-strip" target properly (strip executables,
4355 # but do not try to strip scripts.)
4357 INSTALL_SCRIPT='${INSTALL}'
4361 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4362 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4363 if test "${ac_cv_path_GREP+set}" = set; then
4364 $as_echo_n "(cached) " >&6
4366 if test -z "$GREP"; then
4367 ac_path_GREP_found=false
4368 # Loop through the user's path and test for each of PROGNAME-LIST
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4373 test -z "$as_dir" && as_dir=.
4374 for ac_prog in grep ggrep; do
4375 for ac_exec_ext in '' $ac_executable_extensions; do
4376 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4377 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4378 # Check for GNU ac_path_GREP and select it if it is found.
4379 # Check for GNU $ac_path_GREP
4380 case `"$ac_path_GREP" --version 2>&1` in
4382 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4385 $as_echo_n 0123456789 >"conftest.in"
4388 cat "conftest.in" "conftest.in" >"conftest.tmp"
4389 mv "conftest.tmp" "conftest.in"
4390 cp "conftest.in" "conftest.nl"
4391 $as_echo 'GREP' >> "conftest.nl"
4392 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4394 ac_count=`expr $ac_count + 1`
4395 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4396 # Best one so far, save it but keep looking for a better one
4397 ac_cv_path_GREP="$ac_path_GREP"
4398 ac_path_GREP_max=$ac_count
4400 # 10*(2^10) chars as input seems more than enough
4401 test $ac_count -gt 10 && break
4403 rm -rf conftest.in conftest.tmp conftest.nl conftest.out;;
4406 $ac_path_GREP_found && break 3
4411 if test -z "$ac_cv_path_GREP"; then
4412 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4413 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4414 { (exit 1); exit 1; }; }
4417 ac_cv_path_GREP=$GREP
4421 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4422 $as_echo "$ac_cv_path_GREP" >&6; }
4423 GREP="$ac_cv_path_GREP"
4426 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4427 $as_echo_n "checking for egrep... " >&6; }
4428 if test "${ac_cv_path_EGREP+set}" = set; then
4429 $as_echo_n "(cached) " >&6
4431 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4432 then ac_cv_path_EGREP="$GREP -E"
4434 if test -z "$EGREP"; then
4435 ac_path_EGREP_found=false
4436 # Loop through the user's path and test for each of PROGNAME-LIST
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4441 test -z "$as_dir" && as_dir=.
4442 for ac_prog in egrep; do
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4445 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4446 # Check for GNU ac_path_EGREP and select it if it is found.
4447 # Check for GNU $ac_path_EGREP
4448 case `"$ac_path_EGREP" --version 2>&1` in
4450 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4453 $as_echo_n 0123456789 >"conftest.in"
4456 cat "conftest.in" "conftest.in" >"conftest.tmp"
4457 mv "conftest.tmp" "conftest.in"
4458 cp "conftest.in" "conftest.nl"
4459 $as_echo 'EGREP' >> "conftest.nl"
4460 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4461 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4462 ac_count=`expr $ac_count + 1`
4463 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4464 # Best one so far, save it but keep looking for a better one
4465 ac_cv_path_EGREP="$ac_path_EGREP"
4466 ac_path_EGREP_max=$ac_count
4468 # 10*(2^10) chars as input seems more than enough
4469 test $ac_count -gt 10 && break
4471 rm -rf conftest.in conftest.tmp conftest.nl conftest.out;;
4474 $ac_path_EGREP_found && break 3
4479 if test -z "$ac_cv_path_EGREP"; then
4480 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4481 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4482 { (exit 1); exit 1; }; }
4485 ac_cv_path_EGREP=$EGREP
4490 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4491 $as_echo "$ac_cv_path_EGREP" >&6; }
4492 EGREP="$ac_cv_path_EGREP"
4495 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4496 $as_echo_n "checking for ANSI C header files... " >&6; }
4497 if test "${ac_cv_header_stdc+set}" = set; then
4498 $as_echo_n "(cached) " >&6
4500 cat >conftest.$ac_ext <<_ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h. */
4519 rm -rf conftest.$ac_objext
4520 if { (ac_try="$ac_compile"
4522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523 *) ac_try_echo=$ac_try;;
4525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4526 $as_echo "$ac_try_echo") >&5
4527 (eval "$ac_compile") 2>conftest.er1
4529 grep -v '^ *+' conftest.er1 >conftest.err
4531 cat conftest.err >&5
4532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } && {
4534 test -z "$ac_c_werror_flag" ||
4535 test ! -s conftest.err
4536 } && test -s conftest.$ac_objext; then
4537 ac_cv_header_stdc=yes
4539 $as_echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4542 ac_cv_header_stdc=no
4545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4547 if test $ac_cv_header_stdc = yes; then
4548 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4549 cat >conftest.$ac_ext <<_ACEOF
4552 cat confdefs.h >>conftest.$ac_ext
4553 cat >>conftest.$ac_ext <<_ACEOF
4554 /* end confdefs.h. */
4558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4559 $EGREP "memchr" >/dev/null 2>&1; then
4562 ac_cv_header_stdc=no
4568 if test $ac_cv_header_stdc = yes; then
4569 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4570 cat >conftest.$ac_ext <<_ACEOF
4573 cat confdefs.h >>conftest.$ac_ext
4574 cat >>conftest.$ac_ext <<_ACEOF
4575 /* end confdefs.h. */
4579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4580 $EGREP "free" >/dev/null 2>&1; then
4583 ac_cv_header_stdc=no
4589 if test $ac_cv_header_stdc = yes; then
4590 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4591 if test "$cross_compiling" = yes; then
4594 cat >conftest.$ac_ext <<_ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4602 #if ((' ' & 0x0FF) == 0x020)
4603 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4604 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4606 # define ISLOWER(c) \
4607 (('a' <= (c) && (c) <= 'i') \
4608 || ('j' <= (c) && (c) <= 'r') \
4609 || ('s' <= (c) && (c) <= 'z'))
4610 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4613 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4618 for (i = 0; i < 256; i++)
4619 if (XOR (islower (i), ISLOWER (i))
4620 || toupper (i) != TOUPPER (i))
4625 rm -rf conftest$ac_exeext
4626 if { (ac_try="$ac_link"
4628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629 *) ac_try_echo=$ac_try;;
4631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4632 $as_echo "$ac_try_echo") >&5
4633 (eval "$ac_link") 2>&5
4635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4637 { (case "(($ac_try" in
4638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4642 $as_echo "$ac_try_echo") >&5
4643 (eval "$ac_try") 2>&5
4645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; }; then
4649 $as_echo "$as_me: program exited with status $ac_status" >&5
4650 $as_echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4654 ac_cv_header_stdc=no
4656 rm -rf conftest.dSYM
4657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4663 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4664 $as_echo "$ac_cv_header_stdc" >&6; }
4665 if test $ac_cv_header_stdc = yes; then
4667 cat >>confdefs.h <<\_ACEOF
4668 #define STDC_HEADERS 1
4673 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4683 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4684 inttypes.h stdint.h unistd.h
4686 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4687 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4688 $as_echo_n "checking for $ac_header... " >&6; }
4689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4690 $as_echo_n "(cached) " >&6
4692 cat >conftest.$ac_ext <<_ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h. */
4698 $ac_includes_default
4700 #include <$ac_header>
4702 rm -rf conftest.$ac_objext
4703 if { (ac_try="$ac_compile"
4705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706 *) ac_try_echo=$ac_try;;
4708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4709 $as_echo "$ac_try_echo") >&5
4710 (eval "$ac_compile") 2>conftest.er1
4712 grep -v '^ *+' conftest.er1 >conftest.err
4714 cat conftest.err >&5
4715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } && {
4717 test -z "$ac_c_werror_flag" ||
4718 test ! -s conftest.err
4719 } && test -s conftest.$ac_objext; then
4720 eval "$as_ac_Header=yes"
4722 $as_echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.$ac_ext >&5
4725 eval "$as_ac_Header=no"
4728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730 ac_res=`eval 'as_val=${'$as_ac_Header'}
4731 $as_echo "$as_val"'`
4732 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4733 $as_echo "$ac_res" >&6; }
4734 as_val=`eval 'as_val=${'$as_ac_Header'}
4735 $as_echo "$as_val"'`
4736 if test "x$as_val" = x""yes; then
4737 cat >>confdefs.h <<_ACEOF
4738 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4747 for ac_header in unistd.h
4749 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4751 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4752 $as_echo_n "checking for $ac_header... " >&6; }
4753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4754 $as_echo_n "(cached) " >&6
4756 ac_res=`eval 'as_val=${'$as_ac_Header'}
4757 $as_echo "$as_val"'`
4758 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4759 $as_echo "$ac_res" >&6; }
4761 # Is the header compilable?
4762 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4763 $as_echo_n "checking $ac_header usability... " >&6; }
4764 cat >conftest.$ac_ext <<_ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h. */
4770 $ac_includes_default
4771 #include <$ac_header>
4773 rm -rf conftest.$ac_objext
4774 if { (ac_try="$ac_compile"
4776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4777 *) ac_try_echo=$ac_try;;
4779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4780 $as_echo "$ac_try_echo") >&5
4781 (eval "$ac_compile") 2>conftest.er1
4783 grep -v '^ *+' conftest.er1 >conftest.err
4785 cat conftest.err >&5
4786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } && {
4788 test -z "$ac_c_werror_flag" ||
4789 test ! -s conftest.err
4790 } && test -s conftest.$ac_objext; then
4791 ac_header_compiler=yes
4793 $as_echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4796 ac_header_compiler=no
4799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4800 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4801 $as_echo "$ac_header_compiler" >&6; }
4803 # Is the header present?
4804 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4805 $as_echo_n "checking $ac_header presence... " >&6; }
4806 cat >conftest.$ac_ext <<_ACEOF
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h. */
4812 #include <$ac_header>
4814 if { (ac_try="$ac_cpp conftest.$ac_ext"
4816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4817 *) ac_try_echo=$ac_try;;
4819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4820 $as_echo "$ac_try_echo") >&5
4821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4823 grep -v '^ *+' conftest.er1 >conftest.err
4825 cat conftest.err >&5
4826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); } >/dev/null && {
4828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4829 test ! -s conftest.err
4831 ac_header_preproc=yes
4833 $as_echo "$as_me: failed program was:" >&5
4834 sed 's/^/| /' conftest.$ac_ext >&5
4836 ac_header_preproc=no
4839 rm -rf conftest.err conftest.$ac_ext
4840 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4841 $as_echo "$ac_header_preproc" >&6; }
4843 # So? What about this header?
4844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4847 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4849 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4850 ac_header_preproc=yes
4853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4854 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4856 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4858 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4860 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4862 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4864 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4868 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4869 $as_echo_n "checking for $ac_header... " >&6; }
4870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4871 $as_echo_n "(cached) " >&6
4873 eval "$as_ac_Header=\$ac_header_preproc"
4875 ac_res=`eval 'as_val=${'$as_ac_Header'}
4876 $as_echo "$as_val"'`
4877 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4878 $as_echo "$ac_res" >&6; }
4881 as_val=`eval 'as_val=${'$as_ac_Header'}
4882 $as_echo "$as_val"'`
4883 if test "x$as_val" = x""yes; then
4884 cat >>confdefs.h <<_ACEOF
4885 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4892 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
4893 $as_echo_n "checking for mode_t... " >&6; }
4894 if test "${ac_cv_type_mode_t+set}" = set; then
4895 $as_echo_n "(cached) " >&6
4897 ac_cv_type_mode_t=no
4898 cat >conftest.$ac_ext <<_ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h. */
4904 $ac_includes_default
4908 if (sizeof (mode_t))
4914 rm -rf conftest.$ac_objext
4915 if { (ac_try="$ac_compile"
4917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4918 *) ac_try_echo=$ac_try;;
4920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4921 $as_echo "$ac_try_echo") >&5
4922 (eval "$ac_compile") 2>conftest.er1
4924 grep -v '^ *+' conftest.er1 >conftest.err
4926 cat conftest.err >&5
4927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } && {
4929 test -z "$ac_c_werror_flag" ||
4930 test ! -s conftest.err
4931 } && test -s conftest.$ac_objext; then
4932 cat >conftest.$ac_ext <<_ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h. */
4938 $ac_includes_default
4942 if (sizeof ((mode_t)))
4948 rm -rf conftest.$ac_objext
4949 if { (ac_try="$ac_compile"
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4955 $as_echo "$ac_try_echo") >&5
4956 (eval "$ac_compile") 2>conftest.er1
4958 grep -v '^ *+' conftest.er1 >conftest.err
4960 cat conftest.err >&5
4961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); } && {
4963 test -z "$ac_c_werror_flag" ||
4964 test ! -s conftest.err
4965 } && test -s conftest.$ac_objext; then
4968 $as_echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4971 ac_cv_type_mode_t=yes
4974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4976 $as_echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4984 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4985 $as_echo "$ac_cv_type_mode_t" >&6; }
4986 if test "x$ac_cv_type_mode_t" = x""yes; then
4990 cat >>confdefs.h <<_ACEOF
4996 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
4997 $as_echo_n "checking for pid_t... " >&6; }
4998 if test "${ac_cv_type_pid_t+set}" = set; then
4999 $as_echo_n "(cached) " >&6
5002 cat >conftest.$ac_ext <<_ACEOF
5005 cat confdefs.h >>conftest.$ac_ext
5006 cat >>conftest.$ac_ext <<_ACEOF
5007 /* end confdefs.h. */
5008 $ac_includes_default
5018 rm -rf conftest.$ac_objext
5019 if { (ac_try="$ac_compile"
5021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5022 *) ac_try_echo=$ac_try;;
5024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5025 $as_echo "$ac_try_echo") >&5
5026 (eval "$ac_compile") 2>conftest.er1
5028 grep -v '^ *+' conftest.er1 >conftest.err
5030 cat conftest.err >&5
5031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } && {
5033 test -z "$ac_c_werror_flag" ||
5034 test ! -s conftest.err
5035 } && test -s conftest.$ac_objext; then
5036 cat >conftest.$ac_ext <<_ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5042 $ac_includes_default
5046 if (sizeof ((pid_t)))
5052 rm -rf conftest.$ac_objext
5053 if { (ac_try="$ac_compile"
5055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5056 *) ac_try_echo=$ac_try;;
5058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5059 $as_echo "$ac_try_echo") >&5
5060 (eval "$ac_compile") 2>conftest.er1
5062 grep -v '^ *+' conftest.er1 >conftest.err
5064 cat conftest.err >&5
5065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } && {
5067 test -z "$ac_c_werror_flag" ||
5068 test ! -s conftest.err
5069 } && test -s conftest.$ac_objext; then
5072 $as_echo "$as_me: failed program was:" >&5
5073 sed 's/^/| /' conftest.$ac_ext >&5
5075 ac_cv_type_pid_t=yes
5078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5080 $as_echo "$as_me: failed program was:" >&5
5081 sed 's/^/| /' conftest.$ac_ext >&5
5086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5088 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5089 $as_echo "$ac_cv_type_pid_t" >&6; }
5090 if test "x$ac_cv_type_pid_t" = x""yes; then
5094 cat >>confdefs.h <<_ACEOF
5100 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5101 $as_echo_n "checking for size_t... " >&6; }
5102 if test "${ac_cv_type_size_t+set}" = set; then
5103 $as_echo_n "(cached) " >&6
5105 ac_cv_type_size_t=no
5106 cat >conftest.$ac_ext <<_ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5112 $ac_includes_default
5116 if (sizeof (size_t))
5122 rm -rf conftest.$ac_objext
5123 if { (ac_try="$ac_compile"
5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126 *) ac_try_echo=$ac_try;;
5128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5129 $as_echo "$ac_try_echo") >&5
5130 (eval "$ac_compile") 2>conftest.er1
5132 grep -v '^ *+' conftest.er1 >conftest.err
5134 cat conftest.err >&5
5135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } && {
5137 test -z "$ac_c_werror_flag" ||
5138 test ! -s conftest.err
5139 } && test -s conftest.$ac_objext; then
5140 cat >conftest.$ac_ext <<_ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5146 $ac_includes_default
5150 if (sizeof ((size_t)))
5156 rm -rf conftest.$ac_objext
5157 if { (ac_try="$ac_compile"
5159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5163 $as_echo "$ac_try_echo") >&5
5164 (eval "$ac_compile") 2>conftest.er1
5166 grep -v '^ *+' conftest.er1 >conftest.err
5168 cat conftest.err >&5
5169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } && {
5171 test -z "$ac_c_werror_flag" ||
5172 test ! -s conftest.err
5173 } && test -s conftest.$ac_objext; then
5176 $as_echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5179 ac_cv_type_size_t=yes
5182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5184 $as_echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5192 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5193 $as_echo "$ac_cv_type_size_t" >&6; }
5194 if test "x$ac_cv_type_size_t" = x""yes; then
5198 cat >>confdefs.h <<_ACEOF
5199 #define size_t unsigned int
5204 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5205 $as_echo_n "checking return type of signal handlers... " >&6; }
5206 if test "${ac_cv_type_signal+set}" = set; then
5207 $as_echo_n "(cached) " >&6
5209 cat >conftest.$ac_ext <<_ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5215 #include <sys/types.h>
5221 return *(signal (0, 0)) (0) == 1;
5226 rm -rf conftest.$ac_objext
5227 if { (ac_try="$ac_compile"
5229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5230 *) ac_try_echo=$ac_try;;
5232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5233 $as_echo "$ac_try_echo") >&5
5234 (eval "$ac_compile") 2>conftest.er1
5236 grep -v '^ *+' conftest.er1 >conftest.err
5238 cat conftest.err >&5
5239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } && {
5241 test -z "$ac_c_werror_flag" ||
5242 test ! -s conftest.err
5243 } && test -s conftest.$ac_objext; then
5244 ac_cv_type_signal=int
5246 $as_echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5249 ac_cv_type_signal=void
5252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5255 $as_echo "$ac_cv_type_signal" >&6; }
5257 cat >>confdefs.h <<_ACEOF
5258 #define RETSIGTYPE $ac_cv_type_signal
5262 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5263 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5264 if test "${ac_cv_header_time+set}" = set; then
5265 $as_echo_n "(cached) " >&6
5267 cat >conftest.$ac_ext <<_ACEOF
5270 cat confdefs.h >>conftest.$ac_ext
5271 cat >>conftest.$ac_ext <<_ACEOF
5272 /* end confdefs.h. */
5273 #include <sys/types.h>
5274 #include <sys/time.h>
5280 if ((struct tm *) 0)
5286 rm -rf conftest.$ac_objext
5287 if { (ac_try="$ac_compile"
5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290 *) ac_try_echo=$ac_try;;
5292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5293 $as_echo "$ac_try_echo") >&5
5294 (eval "$ac_compile") 2>conftest.er1
5296 grep -v '^ *+' conftest.er1 >conftest.err
5298 cat conftest.err >&5
5299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } && {
5301 test -z "$ac_c_werror_flag" ||
5302 test ! -s conftest.err
5303 } && test -s conftest.$ac_objext; then
5304 ac_cv_header_time=yes
5306 $as_echo "$as_me: failed program was:" >&5
5307 sed 's/^/| /' conftest.$ac_ext >&5
5309 ac_cv_header_time=no
5312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5315 $as_echo "$ac_cv_header_time" >&6; }
5316 if test $ac_cv_header_time = yes; then
5318 cat >>confdefs.h <<\_ACEOF
5319 #define TIME_WITH_SYS_TIME 1
5324 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5325 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5326 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5327 $as_echo_n "(cached) " >&6
5329 cat >conftest.$ac_ext <<_ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5335 #include <sys/types.h>
5336 #include <sys/wait.h>
5338 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5341 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5349 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5354 rm -rf conftest.$ac_objext
5355 if { (ac_try="$ac_compile"
5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358 *) ac_try_echo=$ac_try;;
5360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5361 $as_echo "$ac_try_echo") >&5
5362 (eval "$ac_compile") 2>conftest.er1
5364 grep -v '^ *+' conftest.er1 >conftest.err
5366 cat conftest.err >&5
5367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } && {
5369 test -z "$ac_c_werror_flag" ||
5370 test ! -s conftest.err
5371 } && test -s conftest.$ac_objext; then
5372 ac_cv_header_sys_wait_h=yes
5374 $as_echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5377 ac_cv_header_sys_wait_h=no
5380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5382 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5383 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5384 if test $ac_cv_header_sys_wait_h = yes; then
5386 cat >>confdefs.h <<\_ACEOF
5387 #define HAVE_SYS_WAIT_H 1
5398 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5399 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5400 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5401 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5403 $as_echo_n "(cached) " >&6
5405 cat >conftest.$ac_ext <<_ACEOF
5408 cat confdefs.h >>conftest.$ac_ext
5409 cat >>conftest.$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5411 #include <sys/types.h>
5423 rm -rf conftest.$ac_objext
5424 if { (ac_try="$ac_compile"
5426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427 *) ac_try_echo=$ac_try;;
5429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5430 $as_echo "$ac_try_echo") >&5
5431 (eval "$ac_compile") 2>conftest.er1
5433 grep -v '^ *+' conftest.er1 >conftest.err
5435 cat conftest.err >&5
5436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } && {
5438 test -z "$ac_c_werror_flag" ||
5439 test ! -s conftest.err
5440 } && test -s conftest.$ac_objext; then
5441 eval "$as_ac_Header=yes"
5443 $as_echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5446 eval "$as_ac_Header=no"
5449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5451 ac_res=`eval 'as_val=${'$as_ac_Header'}
5452 $as_echo "$as_val"'`
5453 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5454 $as_echo "$ac_res" >&6; }
5455 as_val=`eval 'as_val=${'$as_ac_Header'}
5456 $as_echo "$as_val"'`
5457 if test "x$as_val" = x""yes; then
5458 cat >>confdefs.h <<_ACEOF
5459 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5462 ac_header_dirent=$ac_hdr; break
5466 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5467 if test $ac_header_dirent = dirent.h; then
5468 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5469 $as_echo_n "checking for library containing opendir... " >&6; }
5470 if test "${ac_cv_search_opendir+set}" = set; then
5471 $as_echo_n "(cached) " >&6
5473 ac_func_search_save_LIBS=$LIBS
5474 cat >conftest.$ac_ext <<_ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5481 /* Override any GCC internal prototype to avoid an error.
5482 Use char because int might match the return type of a GCC
5483 builtin and then its argument prototype would still apply. */
5496 for ac_lib in '' dir; do
5497 if test -z "$ac_lib"; then
5498 ac_res="none required"
5501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5503 rm -rf conftest.$ac_objext conftest$ac_exeext
5504 if { (ac_try="$ac_link"
5506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5507 *) ac_try_echo=$ac_try;;
5509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5510 $as_echo "$ac_try_echo") >&5
5511 (eval "$ac_link") 2>conftest.er1
5513 grep -v '^ *+' conftest.er1 >conftest.err
5515 cat conftest.err >&5
5516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } && {
5518 test -z "$ac_c_werror_flag" ||
5519 test ! -s conftest.err
5520 } && test -s conftest$ac_exeext && {
5521 test "$cross_compiling" = yes ||
5522 $as_test_x conftest$ac_exeext
5524 ac_cv_search_opendir=$ac_res
5526 $as_echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5532 rm -rf conftest.dSYM
5533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5535 if test "${ac_cv_search_opendir+set}" = set; then
5539 if test "${ac_cv_search_opendir+set}" = set; then
5542 ac_cv_search_opendir=no
5545 LIBS=$ac_func_search_save_LIBS
5547 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5548 $as_echo "$ac_cv_search_opendir" >&6; }
5549 ac_res=$ac_cv_search_opendir
5550 if test "$ac_res" != no; then
5551 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5556 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5557 $as_echo_n "checking for library containing opendir... " >&6; }
5558 if test "${ac_cv_search_opendir+set}" = set; then
5559 $as_echo_n "(cached) " >&6
5561 ac_func_search_save_LIBS=$LIBS
5562 cat >conftest.$ac_ext <<_ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5569 /* Override any GCC internal prototype to avoid an error.
5570 Use char because int might match the return type of a GCC
5571 builtin and then its argument prototype would still apply. */
5584 for ac_lib in '' x; do
5585 if test -z "$ac_lib"; then
5586 ac_res="none required"
5589 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5591 rm -rf conftest.$ac_objext conftest$ac_exeext
5592 if { (ac_try="$ac_link"
5594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595 *) ac_try_echo=$ac_try;;
5597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5598 $as_echo "$ac_try_echo") >&5
5599 (eval "$ac_link") 2>conftest.er1
5601 grep -v '^ *+' conftest.er1 >conftest.err
5603 cat conftest.err >&5
5604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } && {
5606 test -z "$ac_c_werror_flag" ||
5607 test ! -s conftest.err
5608 } && test -s conftest$ac_exeext && {
5609 test "$cross_compiling" = yes ||
5610 $as_test_x conftest$ac_exeext
5612 ac_cv_search_opendir=$ac_res
5614 $as_echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5620 rm -rf conftest.dSYM
5621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5623 if test "${ac_cv_search_opendir+set}" = set; then
5627 if test "${ac_cv_search_opendir+set}" = set; then
5630 ac_cv_search_opendir=no
5633 LIBS=$ac_func_search_save_LIBS
5635 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5636 $as_echo "$ac_cv_search_opendir" >&6; }
5637 ac_res=$ac_cv_search_opendir
5638 if test "$ac_res" != no; then
5639 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5645 { $as_echo "$as_me:$LINENO: checking how to call gettimeofday" >&5
5646 $as_echo_n "checking how to call gettimeofday... " >&6; }
5647 if test "${ac_cv_gettimeofday_args+set}" = set; then
5648 $as_echo_n "(cached) " >&6
5650 cat >conftest.$ac_ext <<_ACEOF
5653 cat confdefs.h >>conftest.$ac_ext
5654 cat >>conftest.$ac_ext <<_ACEOF
5655 /* end confdefs.h. */
5657 #include <sys/time.h>
5661 struct timeval tv; struct timezone tzp;
5662 gettimeofday(&tv, &tzp);
5667 rm -rf conftest.$ac_objext
5668 if { (ac_try="$ac_compile"
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5674 $as_echo "$ac_try_echo") >&5
5675 (eval "$ac_compile") 2>conftest.er1
5677 grep -v '^ *+' conftest.er1 >conftest.err
5679 cat conftest.err >&5
5680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); } && {
5682 test -z "$ac_c_werror_flag" ||
5683 test ! -s conftest.err
5684 } && test -s conftest.$ac_objext; then
5685 ac_gettimeofday_args=2
5687 $as_echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5690 cat >conftest.$ac_ext <<_ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5697 #include <sys/time.h>
5701 struct timeval tv; gettimeofday(&tv);
5706 rm -rf conftest.$ac_objext
5707 if { (ac_try="$ac_compile"
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5713 $as_echo "$ac_try_echo") >&5
5714 (eval "$ac_compile") 2>conftest.er1
5716 grep -v '^ *+' conftest.er1 >conftest.err
5718 cat conftest.err >&5
5719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } && {
5721 test -z "$ac_c_werror_flag" ||
5722 test ! -s conftest.err
5723 } && test -s conftest.$ac_objext; then
5724 ac_gettimeofday_args=1
5726 $as_echo "$as_me: failed program was:" >&5
5727 sed 's/^/| /' conftest.$ac_ext >&5
5729 ac_gettimeofday_args=0
5732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5736 ac_cv_gettimeofday_args=$ac_gettimeofday_args
5739 ac_gettimeofday_args=$ac_cv_gettimeofday_args
5740 if test "$ac_gettimeofday_args" = 1 ; then
5741 cat >>confdefs.h <<\_ACEOF
5742 #define HAVE_GETTIMEOFDAY 1
5745 { $as_echo "$as_me:$LINENO: result: one argument" >&5
5746 $as_echo "one argument" >&6; }
5747 elif test "$ac_gettimeofday_args" = 2 ; then
5748 cat >>confdefs.h <<\_ACEOF
5749 #define HAVE_GETTIMEOFDAY 1
5752 cat >>confdefs.h <<\_ACEOF
5753 #define GETTIMEOFDAY_TWO_ARGS 1
5756 { $as_echo "$as_me:$LINENO: result: two arguments" >&5
5757 $as_echo "two arguments" >&6; }
5759 { $as_echo "$as_me:$LINENO: result: unknown" >&5
5760 $as_echo "unknown" >&6; }
5772 for ac_func in select fcntl uname nice setpriority getcwd getwd putenv sbrk
5774 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5775 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5776 $as_echo_n "checking for $ac_func... " >&6; }
5777 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5778 $as_echo_n "(cached) " >&6
5780 cat >conftest.$ac_ext <<_ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5788 #define $ac_func innocuous_$ac_func
5790 /* System header to define __stub macros and hopefully few prototypes,
5791 which can conflict with char $ac_func (); below.
5792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5793 <limits.h> exists even on freestanding compilers. */
5796 # include <limits.h>
5798 # include <assert.h>
5803 /* Override any GCC internal prototype to avoid an error.
5804 Use char because int might match the return type of a GCC
5805 builtin and then its argument prototype would still apply. */
5810 /* The GNU C library defines this for functions which it implements
5811 to always fail with ENOSYS. Some functions are actually named
5812 something starting with __ and the normal name is an alias. */
5813 #if defined __stub_$ac_func || defined __stub___$ac_func
5825 rm -rf conftest.$ac_objext conftest$ac_exeext
5826 if { (ac_try="$ac_link"
5828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829 *) ac_try_echo=$ac_try;;
5831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5832 $as_echo "$ac_try_echo") >&5
5833 (eval "$ac_link") 2>conftest.er1
5835 grep -v '^ *+' conftest.er1 >conftest.err
5837 cat conftest.err >&5
5838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } && {
5840 test -z "$ac_c_werror_flag" ||
5841 test ! -s conftest.err
5842 } && test -s conftest$ac_exeext && {
5843 test "$cross_compiling" = yes ||
5844 $as_test_x conftest$ac_exeext
5846 eval "$as_ac_var=yes"
5848 $as_echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5851 eval "$as_ac_var=no"
5854 rm -rf conftest.dSYM
5855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5856 conftest$ac_exeext conftest.$ac_ext
5858 ac_res=`eval 'as_val=${'$as_ac_var'}
5859 $as_echo "$as_val"'`
5860 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5861 $as_echo "$ac_res" >&6; }
5862 as_val=`eval 'as_val=${'$as_ac_var'}
5863 $as_echo "$as_val"'`
5864 if test "x$as_val" = x""yes; then
5865 cat >>confdefs.h <<_ACEOF
5866 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5876 for ac_func in sigaction syslog realpath setrlimit
5878 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5879 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5880 $as_echo_n "checking for $ac_func... " >&6; }
5881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5882 $as_echo_n "(cached) " >&6
5884 cat >conftest.$ac_ext <<_ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h. */
5890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5892 #define $ac_func innocuous_$ac_func
5894 /* System header to define __stub macros and hopefully few prototypes,
5895 which can conflict with char $ac_func (); below.
5896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5897 <limits.h> exists even on freestanding compilers. */
5900 # include <limits.h>
5902 # include <assert.h>
5907 /* Override any GCC internal prototype to avoid an error.
5908 Use char because int might match the return type of a GCC
5909 builtin and then its argument prototype would still apply. */
5914 /* The GNU C library defines this for functions which it implements
5915 to always fail with ENOSYS. Some functions are actually named
5916 something starting with __ and the normal name is an alias. */
5917 #if defined __stub_$ac_func || defined __stub___$ac_func
5929 rm -rf conftest.$ac_objext conftest$ac_exeext
5930 if { (ac_try="$ac_link"
5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933 *) ac_try_echo=$ac_try;;
5935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5936 $as_echo "$ac_try_echo") >&5
5937 (eval "$ac_link") 2>conftest.er1
5939 grep -v '^ *+' conftest.er1 >conftest.err
5941 cat conftest.err >&5
5942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } && {
5944 test -z "$ac_c_werror_flag" ||
5945 test ! -s conftest.err
5946 } && test -s conftest$ac_exeext && {
5947 test "$cross_compiling" = yes ||
5948 $as_test_x conftest$ac_exeext
5950 eval "$as_ac_var=yes"
5952 $as_echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5955 eval "$as_ac_var=no"
5958 rm -rf conftest.dSYM
5959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5960 conftest$ac_exeext conftest.$ac_ext
5962 ac_res=`eval 'as_val=${'$as_ac_var'}
5963 $as_echo "$as_val"'`
5964 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5965 $as_echo "$ac_res" >&6; }
5966 as_val=`eval 'as_val=${'$as_ac_var'}
5967 $as_echo "$as_val"'`
5968 if test "x$as_val" = x""yes; then
5969 cat >>confdefs.h <<_ACEOF
5970 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5977 for ac_func in setlocale
5979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5980 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5981 $as_echo_n "checking for $ac_func... " >&6; }
5982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5983 $as_echo_n "(cached) " >&6
5985 cat >conftest.$ac_ext <<_ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h. */
5991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5993 #define $ac_func innocuous_$ac_func
5995 /* System header to define __stub macros and hopefully few prototypes,
5996 which can conflict with char $ac_func (); below.
5997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5998 <limits.h> exists even on freestanding compilers. */
6001 # include <limits.h>
6003 # include <assert.h>
6008 /* Override any GCC internal prototype to avoid an error.
6009 Use char because int might match the return type of a GCC
6010 builtin and then its argument prototype would still apply. */
6015 /* The GNU C library defines this for functions which it implements
6016 to always fail with ENOSYS. Some functions are actually named
6017 something starting with __ and the normal name is an alias. */
6018 #if defined __stub_$ac_func || defined __stub___$ac_func
6030 rm -rf conftest.$ac_objext conftest$ac_exeext
6031 if { (ac_try="$ac_link"
6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034 *) ac_try_echo=$ac_try;;
6036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6037 $as_echo "$ac_try_echo") >&5
6038 (eval "$ac_link") 2>conftest.er1
6040 grep -v '^ *+' conftest.er1 >conftest.err
6042 cat conftest.err >&5
6043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } && {
6045 test -z "$ac_c_werror_flag" ||
6046 test ! -s conftest.err
6047 } && test -s conftest$ac_exeext && {
6048 test "$cross_compiling" = yes ||
6049 $as_test_x conftest$ac_exeext
6051 eval "$as_ac_var=yes"
6053 $as_echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.$ac_ext >&5
6056 eval "$as_ac_var=no"
6059 rm -rf conftest.dSYM
6060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6061 conftest$ac_exeext conftest.$ac_ext
6063 ac_res=`eval 'as_val=${'$as_ac_var'}
6064 $as_echo "$as_val"'`
6065 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6066 $as_echo "$ac_res" >&6; }
6067 as_val=`eval 'as_val=${'$as_ac_var'}
6068 $as_echo "$as_val"'`
6069 if test "x$as_val" = x""yes; then
6070 cat >>confdefs.h <<_ACEOF
6071 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6077 { $as_echo "$as_me:$LINENO: checking for struct icmp" >&5
6078 $as_echo_n "checking for struct icmp... " >&6; }
6079 if test "${ac_cv_have_icmp+set}" = set; then
6080 $as_echo_n "(cached) " >&6
6082 cat >conftest.$ac_ext <<_ACEOF
6085 cat confdefs.h >>conftest.$ac_ext
6086 cat >>conftest.$ac_ext <<_ACEOF
6087 /* end confdefs.h. */
6095 #include <sys/types.h>
6096 #include <sys/time.h>
6097 #include <sys/ipc.h>
6098 #include <sys/shm.h>
6099 #include <sys/socket.h>
6100 #include <netinet/in_systm.h>
6101 #include <netinet/in.h>
6102 #include <netinet/ip.h>
6103 #include <netinet/ip_icmp.h>
6104 #include <netinet/udp.h>
6105 #include <arpa/inet.h>
6112 struct sockaddr_in si;
6114 i.icmp_type = ICMP_ECHO;
6119 si.sin_family = AF_INET;
6120 #if defined(__DECC) || defined(_IP_VHL)
6130 rm -rf conftest.$ac_objext
6131 if { (ac_try="$ac_compile"
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6137 $as_echo "$ac_try_echo") >&5
6138 (eval "$ac_compile") 2>conftest.er1
6140 grep -v '^ *+' conftest.er1 >conftest.err
6142 cat conftest.err >&5
6143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } && {
6145 test -z "$ac_c_werror_flag" ||
6146 test ! -s conftest.err
6147 } && test -s conftest.$ac_objext; then
6150 $as_echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_icmp" >&5
6159 $as_echo "$ac_cv_have_icmp" >&6; }
6160 if test "$ac_cv_have_icmp" = yes ; then
6161 cat >>confdefs.h <<\_ACEOF
6166 { $as_echo "$as_me:$LINENO: checking for struct icmphdr" >&5
6167 $as_echo_n "checking for struct icmphdr... " >&6; }
6168 if test "${ac_cv_have_icmphdr+set}" = set; then
6169 $as_echo_n "(cached) " >&6
6171 cat >conftest.$ac_ext <<_ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h. */
6184 #include <sys/types.h>
6185 #include <sys/time.h>
6186 #include <sys/ipc.h>
6187 #include <sys/shm.h>
6188 #include <sys/socket.h>
6189 #include <netinet/in_systm.h>
6190 #include <netinet/in.h>
6191 #include <netinet/ip.h>
6192 #include <netinet/ip_icmp.h>
6193 #include <netinet/udp.h>
6194 #include <arpa/inet.h>
6201 struct sockaddr_in si;
6207 i.un.echo.sequence = 0;
6208 si.sin_family = AF_INET;
6214 rm -rf conftest.$ac_objext
6215 if { (ac_try="$ac_compile"
6217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6218 *) ac_try_echo=$ac_try;;
6220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6221 $as_echo "$ac_try_echo") >&5
6222 (eval "$ac_compile") 2>conftest.er1
6224 grep -v '^ *+' conftest.er1 >conftest.err
6226 cat conftest.err >&5
6227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } && {
6229 test -z "$ac_c_werror_flag" ||
6230 test ! -s conftest.err
6231 } && test -s conftest.$ac_objext; then
6232 ac_cv_have_icmphdr=yes
6234 $as_echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6237 ac_cv_have_icmphdr=no
6240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_icmphdr" >&5
6243 $as_echo "$ac_cv_have_icmphdr" >&6; }
6244 if test "$ac_cv_have_icmphdr" = yes ; then
6245 cat >>confdefs.h <<\_ACEOF
6246 #define HAVE_ICMPHDR 1
6250 { $as_echo "$as_me:$LINENO: checking for getifaddrs" >&5
6251 $as_echo_n "checking for getifaddrs... " >&6; }
6252 if test "${ac_cv_have_getifaddrs+set}" = set; then
6253 $as_echo_n "(cached) " >&6
6255 cat >conftest.$ac_ext <<_ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6263 #include <arpa/inet.h>
6264 #include <ifaddrs.h>
6268 struct ifaddrs *ifa;
6271 ifa->ifa_addr->sa_family = 0;
6276 rm -rf conftest.$ac_objext
6277 if { (ac_try="$ac_compile"
6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6283 $as_echo "$ac_try_echo") >&5
6284 (eval "$ac_compile") 2>conftest.er1
6286 grep -v '^ *+' conftest.er1 >conftest.err
6288 cat conftest.err >&5
6289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } && {
6291 test -z "$ac_c_werror_flag" ||
6292 test ! -s conftest.err
6293 } && test -s conftest.$ac_objext; then
6294 ac_cv_have_getifaddrs=yes
6296 $as_echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6299 ac_cv_have_getifaddrs=no
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6304 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_getifaddrs" >&5
6305 $as_echo "$ac_cv_have_getifaddrs" >&6; }
6306 if test "$ac_cv_have_getifaddrs" = yes ; then
6307 cat >>confdefs.h <<\_ACEOF
6308 #define HAVE_GETIFADDRS 1
6314 for ac_header in crypt.h sys/select.h
6316 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6318 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6319 $as_echo_n "checking for $ac_header... " >&6; }
6320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6321 $as_echo_n "(cached) " >&6
6323 ac_res=`eval 'as_val=${'$as_ac_Header'}
6324 $as_echo "$as_val"'`
6325 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6326 $as_echo "$ac_res" >&6; }
6328 # Is the header compilable?
6329 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6330 $as_echo_n "checking $ac_header usability... " >&6; }
6331 cat >conftest.$ac_ext <<_ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6337 $ac_includes_default
6338 #include <$ac_header>
6340 rm -rf conftest.$ac_objext
6341 if { (ac_try="$ac_compile"
6343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6344 *) ac_try_echo=$ac_try;;
6346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6347 $as_echo "$ac_try_echo") >&5
6348 (eval "$ac_compile") 2>conftest.er1
6350 grep -v '^ *+' conftest.er1 >conftest.err
6352 cat conftest.err >&5
6353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } && {
6355 test -z "$ac_c_werror_flag" ||
6356 test ! -s conftest.err
6357 } && test -s conftest.$ac_objext; then
6358 ac_header_compiler=yes
6360 $as_echo "$as_me: failed program was:" >&5
6361 sed 's/^/| /' conftest.$ac_ext >&5
6363 ac_header_compiler=no
6366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6367 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6368 $as_echo "$ac_header_compiler" >&6; }
6370 # Is the header present?
6371 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6372 $as_echo_n "checking $ac_header presence... " >&6; }
6373 cat >conftest.$ac_ext <<_ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h. */
6379 #include <$ac_header>
6381 if { (ac_try="$ac_cpp conftest.$ac_ext"
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6387 $as_echo "$ac_try_echo") >&5
6388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6390 grep -v '^ *+' conftest.er1 >conftest.err
6392 cat conftest.err >&5
6393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } >/dev/null && {
6395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6396 test ! -s conftest.err
6398 ac_header_preproc=yes
6400 $as_echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6403 ac_header_preproc=no
6406 rm -rf conftest.err conftest.$ac_ext
6407 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6408 $as_echo "$ac_header_preproc" >&6; }
6410 # So? What about this header?
6411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6414 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6416 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6417 ac_header_preproc=yes
6420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6421 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6423 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6425 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6427 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6429 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6431 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6435 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6436 $as_echo_n "checking for $ac_header... " >&6; }
6437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6438 $as_echo_n "(cached) " >&6
6440 eval "$as_ac_Header=\$ac_header_preproc"
6442 ac_res=`eval 'as_val=${'$as_ac_Header'}
6443 $as_echo "$as_val"'`
6444 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6445 $as_echo "$ac_res" >&6; }
6448 as_val=`eval 'as_val=${'$as_ac_Header'}
6449 $as_echo "$as_val"'`
6450 if test "x$as_val" = x""yes; then
6451 cat >>confdefs.h <<_ACEOF
6452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6459 for ac_prog in perl5 perl
6461 # Extract the first word of "$ac_prog", so it can be a program name with args.
6462 set dummy $ac_prog; ac_word=$2
6463 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6464 $as_echo_n "checking for $ac_word... " >&6; }
6465 if test "${ac_cv_path_PERL+set}" = set; then
6466 $as_echo_n "(cached) " >&6
6470 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6480 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6481 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6491 PERL=$ac_cv_path_PERL
6492 if test -n "$PERL"; then
6493 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
6494 $as_echo "$PERL" >&6; }
6496 { $as_echo "$as_me:$LINENO: result: no" >&5
6497 $as_echo "no" >&6; }
6501 test -n "$PERL" && break
6504 if test -z "$PERL" ; then
6507 { $as_echo "$as_me:$LINENO: checking perl version" >&5
6508 $as_echo_n "checking perl version... " >&6; }
6509 if test "${ac_cv_perl_version+set}" = set; then
6510 $as_echo_n "(cached) " >&6
6512 ac_cv_perl_version=`$PERL -e "$perl_version_cmd"`
6514 { $as_echo "$as_me:$LINENO: result: $ac_cv_perl_version" >&5
6515 $as_echo "$ac_cv_perl_version" >&6; }
6516 PERL_VERSION=$ac_cv_perl_version
6520 if test -z "$PERL" ; then
6521 # don't let it be blank...
6525 { $as_echo "$as_me:$LINENO: checking for X" >&5
6526 $as_echo_n "checking for X... " >&6; }
6529 # Check whether --with-x was given.
6530 if test "${with_x+set}" = set; then
6534 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6535 if test "x$with_x" = xno; then
6536 # The user explicitly disabled X.
6539 case $x_includes,$x_libraries in #(
6540 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
6541 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
6542 { (exit 1); exit 1; }; };; #(
6543 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6544 $as_echo_n "(cached) " >&6
6546 # One or both of the vars are not set, and there is no cached value.
6547 ac_x_includes=no ac_x_libraries=no
6548 rm -f -r conftest.dir
6549 if mkdir conftest.dir; then
6551 cat >Imakefile <<'_ACEOF'
6553 @echo incroot='${INCROOT}'
6555 @echo usrlibdir='${USRLIBDIR}'
6557 @echo libdir='${LIBDIR}'
6559 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6560 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6561 for ac_var in incroot usrlibdir libdir; do
6562 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6564 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6565 for ac_extension in a so sl dylib la dll; do
6566 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6567 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6568 ac_im_usrlibdir=$ac_im_libdir; break
6571 # Screen out bogus values from the imake configuration. They are
6572 # bogus both because they are the default anyway, and because
6573 # using them would break gcc on systems where it needs fixed includes.
6574 case $ac_im_incroot in
6575 /usr/include) ac_x_includes= ;;
6576 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6578 case $ac_im_usrlibdir in
6579 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6580 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6584 rm -f -r conftest.dir
6587 # Standard set of common directories for X headers.
6588 # Check X11 before X11Rn because it is often a symlink to the current release.
6600 /usr/local/X11/include
6601 /usr/local/X11R6/include
6602 /usr/local/X11R5/include
6603 /usr/local/X11R4/include
6605 /usr/local/include/X11
6606 /usr/local/include/X11R6
6607 /usr/local/include/X11R5
6608 /usr/local/include/X11R4
6612 /usr/XFree86/include/X11
6616 /usr/unsupported/include
6618 /usr/local/x11r5/include
6619 /usr/lpp/Xamples/include
6621 /usr/openwin/include
6622 /usr/openwin/share/include'
6624 if test "$ac_x_includes" = no; then
6625 # Guess where to find include files, by looking for Xlib.h.
6626 # First, try using that file with no special directory specified.
6627 cat >conftest.$ac_ext <<_ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6633 #include <X11/Xlib.h>
6635 if { (ac_try="$ac_cpp conftest.$ac_ext"
6637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638 *) ac_try_echo=$ac_try;;
6640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6641 $as_echo "$ac_try_echo") >&5
6642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6644 grep -v '^ *+' conftest.er1 >conftest.err
6646 cat conftest.err >&5
6647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } >/dev/null && {
6649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6650 test ! -s conftest.err
6652 # We can compile using X headers with no special include directory.
6655 $as_echo "$as_me: failed program was:" >&5
6656 sed 's/^/| /' conftest.$ac_ext >&5
6658 for ac_dir in $ac_x_header_dirs; do
6659 if test -r "$ac_dir/X11/Xlib.h"; then
6660 ac_x_includes=$ac_dir
6666 rm -rf conftest.err conftest.$ac_ext
6667 fi # $ac_x_includes = no
6669 if test "$ac_x_libraries" = no; then
6670 # Check for the libraries.
6671 # See if we find them without any special options.
6672 # Don't add to $LIBS permanently.
6675 cat >conftest.$ac_ext <<_ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6681 #include <X11/Xlib.h>
6690 rm -rf conftest.$ac_objext conftest$ac_exeext
6691 if { (ac_try="$ac_link"
6693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6694 *) ac_try_echo=$ac_try;;
6696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6697 $as_echo "$ac_try_echo") >&5
6698 (eval "$ac_link") 2>conftest.er1
6700 grep -v '^ *+' conftest.er1 >conftest.err
6702 cat conftest.err >&5
6703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } && {
6705 test -z "$ac_c_werror_flag" ||
6706 test ! -s conftest.err
6707 } && test -s conftest$ac_exeext && {
6708 test "$cross_compiling" = yes ||
6709 $as_test_x conftest$ac_exeext
6712 # We can link X programs with no special library path.
6715 $as_echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6719 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6721 # Don't even attempt the hair of trying to link an X program!
6722 for ac_extension in a so sl dylib la dll; do
6723 if test -r "$ac_dir/libX11.$ac_extension"; then
6724 ac_x_libraries=$ac_dir
6731 rm -rf conftest.dSYM
6732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6733 conftest$ac_exeext conftest.$ac_ext
6734 fi # $ac_x_libraries = no
6736 case $ac_x_includes,$ac_x_libraries in #(
6738 # Didn't find X, or a directory has "'" in its name.
6739 ac_cv_have_x="have_x=no";; #(
6741 # Record where we found X for the cache.
6742 ac_cv_have_x="have_x=yes\
6743 ac_x_includes='$ac_x_includes'\
6744 ac_x_libraries='$ac_x_libraries'"
6750 eval "$ac_cv_have_x"
6753 if test "$have_x" != yes; then
6754 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
6755 $as_echo "$have_x" >&6; }
6758 # If each of the values was on the command line, it overrides each guess.
6759 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6760 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6761 # Update the cache value to reflect the command line values.
6762 ac_cv_have_x="have_x=yes\
6763 ac_x_includes='$x_includes'\
6764 ac_x_libraries='$x_libraries'"
6765 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6766 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6769 if test "$no_x" = yes; then
6770 # Not all programs may use this symbol, but it does not hurt to define it.
6772 cat >>confdefs.h <<\_ACEOF
6773 #define X_DISPLAY_MISSING 1
6776 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6778 if test -n "$x_includes"; then
6779 X_CFLAGS="$X_CFLAGS -I$x_includes"
6782 # It would also be nice to do this for all -L options, not just this one.
6783 if test -n "$x_libraries"; then
6784 X_LIBS="$X_LIBS -L$x_libraries"
6785 # For Solaris; some versions of Sun CC require a space after -R and
6786 # others require no space. Words are not sufficient . . . .
6787 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6788 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6789 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6790 ac_xsave_c_werror_flag=$ac_c_werror_flag
6791 ac_c_werror_flag=yes
6792 cat >conftest.$ac_ext <<_ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6807 rm -rf conftest.$ac_objext conftest$ac_exeext
6808 if { (ac_try="$ac_link"
6810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6811 *) ac_try_echo=$ac_try;;
6813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6814 $as_echo "$ac_try_echo") >&5
6815 (eval "$ac_link") 2>conftest.er1
6817 grep -v '^ *+' conftest.er1 >conftest.err
6819 cat conftest.err >&5
6820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } && {
6822 test -z "$ac_c_werror_flag" ||
6823 test ! -s conftest.err
6824 } && test -s conftest$ac_exeext && {
6825 test "$cross_compiling" = yes ||
6826 $as_test_x conftest$ac_exeext
6828 { $as_echo "$as_me:$LINENO: result: no" >&5
6829 $as_echo "no" >&6; }
6830 X_LIBS="$X_LIBS -R$x_libraries"
6832 $as_echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.$ac_ext >&5
6835 LIBS="$ac_xsave_LIBS -R $x_libraries"
6836 cat >conftest.$ac_ext <<_ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h. */
6851 rm -rf conftest.$ac_objext conftest$ac_exeext
6852 if { (ac_try="$ac_link"
6854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6855 *) ac_try_echo=$ac_try;;
6857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6858 $as_echo "$ac_try_echo") >&5
6859 (eval "$ac_link") 2>conftest.er1
6861 grep -v '^ *+' conftest.er1 >conftest.err
6863 cat conftest.err >&5
6864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); } && {
6866 test -z "$ac_c_werror_flag" ||
6867 test ! -s conftest.err
6868 } && test -s conftest$ac_exeext && {
6869 test "$cross_compiling" = yes ||
6870 $as_test_x conftest$ac_exeext
6872 { $as_echo "$as_me:$LINENO: result: yes" >&5
6873 $as_echo "yes" >&6; }
6874 X_LIBS="$X_LIBS -R $x_libraries"
6876 $as_echo "$as_me: failed program was:" >&5
6877 sed 's/^/| /' conftest.$ac_ext >&5
6879 { $as_echo "$as_me:$LINENO: result: neither works" >&5
6880 $as_echo "neither works" >&6; }
6883 rm -rf conftest.dSYM
6884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6885 conftest$ac_exeext conftest.$ac_ext
6888 rm -rf conftest.dSYM
6889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6890 conftest$ac_exeext conftest.$ac_ext
6891 ac_c_werror_flag=$ac_xsave_c_werror_flag
6895 # Check for system-dependent libraries X programs must link with.
6896 # Do this before checking for the system-independent R6 libraries
6897 # (-lICE), since we may need -lsocket or whatever for X linking.
6899 if test "$ISC" = yes; then
6900 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6902 # Martyn Johnson says this is needed for Ultrix, if the X
6903 # libraries were built with DECnet support. And Karl Berry says
6904 # the Alpha needs dnet_stub (dnet does not exist).
6905 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6906 cat >conftest.$ac_ext <<_ACEOF
6909 cat confdefs.h >>conftest.$ac_ext
6910 cat >>conftest.$ac_ext <<_ACEOF
6911 /* end confdefs.h. */
6913 /* Override any GCC internal prototype to avoid an error.
6914 Use char because int might match the return type of a GCC
6915 builtin and then its argument prototype would still apply. */
6919 char XOpenDisplay ();
6923 return XOpenDisplay ();
6928 rm -rf conftest.$ac_objext conftest$ac_exeext
6929 if { (ac_try="$ac_link"
6931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6932 *) ac_try_echo=$ac_try;;
6934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6935 $as_echo "$ac_try_echo") >&5
6936 (eval "$ac_link") 2>conftest.er1
6938 grep -v '^ *+' conftest.er1 >conftest.err
6940 cat conftest.err >&5
6941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); } && {
6943 test -z "$ac_c_werror_flag" ||
6944 test ! -s conftest.err
6945 } && test -s conftest$ac_exeext && {
6946 test "$cross_compiling" = yes ||
6947 $as_test_x conftest$ac_exeext
6951 $as_echo "$as_me: failed program was:" >&5
6952 sed 's/^/| /' conftest.$ac_ext >&5
6954 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6955 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6956 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6957 $as_echo_n "(cached) " >&6
6959 ac_check_lib_save_LIBS=$LIBS
6961 cat >conftest.$ac_ext <<_ACEOF
6964 cat confdefs.h >>conftest.$ac_ext
6965 cat >>conftest.$ac_ext <<_ACEOF
6966 /* end confdefs.h. */
6968 /* Override any GCC internal prototype to avoid an error.
6969 Use char because int might match the return type of a GCC
6970 builtin and then its argument prototype would still apply. */
6978 return dnet_ntoa ();
6983 rm -rf conftest.$ac_objext conftest$ac_exeext
6984 if { (ac_try="$ac_link"
6986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6987 *) ac_try_echo=$ac_try;;
6989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6990 $as_echo "$ac_try_echo") >&5
6991 (eval "$ac_link") 2>conftest.er1
6993 grep -v '^ *+' conftest.er1 >conftest.err
6995 cat conftest.err >&5
6996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } && {
6998 test -z "$ac_c_werror_flag" ||
6999 test ! -s conftest.err
7000 } && test -s conftest$ac_exeext && {
7001 test "$cross_compiling" = yes ||
7002 $as_test_x conftest$ac_exeext
7004 ac_cv_lib_dnet_dnet_ntoa=yes
7006 $as_echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7009 ac_cv_lib_dnet_dnet_ntoa=no
7012 rm -rf conftest.dSYM
7013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7014 conftest$ac_exeext conftest.$ac_ext
7015 LIBS=$ac_check_lib_save_LIBS
7017 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7018 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7019 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
7020 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7023 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7024 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7025 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7026 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7027 $as_echo_n "(cached) " >&6
7029 ac_check_lib_save_LIBS=$LIBS
7030 LIBS="-ldnet_stub $LIBS"
7031 cat >conftest.$ac_ext <<_ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7038 /* Override any GCC internal prototype to avoid an error.
7039 Use char because int might match the return type of a GCC
7040 builtin and then its argument prototype would still apply. */
7048 return dnet_ntoa ();
7053 rm -rf conftest.$ac_objext conftest$ac_exeext
7054 if { (ac_try="$ac_link"
7056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7057 *) ac_try_echo=$ac_try;;
7059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7060 $as_echo "$ac_try_echo") >&5
7061 (eval "$ac_link") 2>conftest.er1
7063 grep -v '^ *+' conftest.er1 >conftest.err
7065 cat conftest.err >&5
7066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); } && {
7068 test -z "$ac_c_werror_flag" ||
7069 test ! -s conftest.err
7070 } && test -s conftest$ac_exeext && {
7071 test "$cross_compiling" = yes ||
7072 $as_test_x conftest$ac_exeext
7074 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7076 $as_echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7079 ac_cv_lib_dnet_stub_dnet_ntoa=no
7082 rm -rf conftest.dSYM
7083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7084 conftest$ac_exeext conftest.$ac_ext
7085 LIBS=$ac_check_lib_save_LIBS
7087 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7088 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7089 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
7090 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7096 rm -rf conftest.dSYM
7097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7098 conftest$ac_exeext conftest.$ac_ext
7099 LIBS="$ac_xsave_LIBS"
7101 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7102 # to get the SysV transport functions.
7103 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7105 # The nsl library prevents programs from opening the X display
7106 # on Irix 5.2, according to T.E. Dickey.
7107 # The functions gethostbyname, getservbyname, and inet_addr are
7108 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7109 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
7110 $as_echo_n "checking for gethostbyname... " >&6; }
7111 if test "${ac_cv_func_gethostbyname+set}" = set; then
7112 $as_echo_n "(cached) " >&6
7114 cat >conftest.$ac_ext <<_ACEOF
7117 cat confdefs.h >>conftest.$ac_ext
7118 cat >>conftest.$ac_ext <<_ACEOF
7119 /* end confdefs.h. */
7120 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7122 #define gethostbyname innocuous_gethostbyname
7124 /* System header to define __stub macros and hopefully few prototypes,
7125 which can conflict with char gethostbyname (); below.
7126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7127 <limits.h> exists even on freestanding compilers. */
7130 # include <limits.h>
7132 # include <assert.h>
7135 #undef gethostbyname
7137 /* Override any GCC internal prototype to avoid an error.
7138 Use char because int might match the return type of a GCC
7139 builtin and then its argument prototype would still apply. */
7143 char gethostbyname ();
7144 /* The GNU C library defines this for functions which it implements
7145 to always fail with ENOSYS. Some functions are actually named
7146 something starting with __ and the normal name is an alias. */
7147 #if defined __stub_gethostbyname || defined __stub___gethostbyname
7154 return gethostbyname ();
7159 rm -rf conftest.$ac_objext conftest$ac_exeext
7160 if { (ac_try="$ac_link"
7162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7163 *) ac_try_echo=$ac_try;;
7165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7166 $as_echo "$ac_try_echo") >&5
7167 (eval "$ac_link") 2>conftest.er1
7169 grep -v '^ *+' conftest.er1 >conftest.err
7171 cat conftest.err >&5
7172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); } && {
7174 test -z "$ac_c_werror_flag" ||
7175 test ! -s conftest.err
7176 } && test -s conftest$ac_exeext && {
7177 test "$cross_compiling" = yes ||
7178 $as_test_x conftest$ac_exeext
7180 ac_cv_func_gethostbyname=yes
7182 $as_echo "$as_me: failed program was:" >&5
7183 sed 's/^/| /' conftest.$ac_ext >&5
7185 ac_cv_func_gethostbyname=no
7188 rm -rf conftest.dSYM
7189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7190 conftest$ac_exeext conftest.$ac_ext
7192 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7193 $as_echo "$ac_cv_func_gethostbyname" >&6; }
7195 if test $ac_cv_func_gethostbyname = no; then
7196 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7197 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7198 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7199 $as_echo_n "(cached) " >&6
7201 ac_check_lib_save_LIBS=$LIBS
7203 cat >conftest.$ac_ext <<_ACEOF
7206 cat confdefs.h >>conftest.$ac_ext
7207 cat >>conftest.$ac_ext <<_ACEOF
7208 /* end confdefs.h. */
7210 /* Override any GCC internal prototype to avoid an error.
7211 Use char because int might match the return type of a GCC
7212 builtin and then its argument prototype would still apply. */
7216 char gethostbyname ();
7220 return gethostbyname ();
7225 rm -rf conftest.$ac_objext conftest$ac_exeext
7226 if { (ac_try="$ac_link"
7228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7229 *) ac_try_echo=$ac_try;;
7231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7232 $as_echo "$ac_try_echo") >&5
7233 (eval "$ac_link") 2>conftest.er1
7235 grep -v '^ *+' conftest.er1 >conftest.err
7237 cat conftest.err >&5
7238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } && {
7240 test -z "$ac_c_werror_flag" ||
7241 test ! -s conftest.err
7242 } && test -s conftest$ac_exeext && {
7243 test "$cross_compiling" = yes ||
7244 $as_test_x conftest$ac_exeext
7246 ac_cv_lib_nsl_gethostbyname=yes
7248 $as_echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7251 ac_cv_lib_nsl_gethostbyname=no
7254 rm -rf conftest.dSYM
7255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7256 conftest$ac_exeext conftest.$ac_ext
7257 LIBS=$ac_check_lib_save_LIBS
7259 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7260 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7261 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
7262 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7265 if test $ac_cv_lib_nsl_gethostbyname = no; then
7266 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7267 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7268 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7269 $as_echo_n "(cached) " >&6
7271 ac_check_lib_save_LIBS=$LIBS
7273 cat >conftest.$ac_ext <<_ACEOF
7276 cat confdefs.h >>conftest.$ac_ext
7277 cat >>conftest.$ac_ext <<_ACEOF
7278 /* end confdefs.h. */
7280 /* Override any GCC internal prototype to avoid an error.
7281 Use char because int might match the return type of a GCC
7282 builtin and then its argument prototype would still apply. */
7286 char gethostbyname ();
7290 return gethostbyname ();
7295 rm -rf conftest.$ac_objext conftest$ac_exeext
7296 if { (ac_try="$ac_link"
7298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7299 *) ac_try_echo=$ac_try;;
7301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7302 $as_echo "$ac_try_echo") >&5
7303 (eval "$ac_link") 2>conftest.er1
7305 grep -v '^ *+' conftest.er1 >conftest.err
7307 cat conftest.err >&5
7308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } && {
7310 test -z "$ac_c_werror_flag" ||
7311 test ! -s conftest.err
7312 } && test -s conftest$ac_exeext && {
7313 test "$cross_compiling" = yes ||
7314 $as_test_x conftest$ac_exeext
7316 ac_cv_lib_bsd_gethostbyname=yes
7318 $as_echo "$as_me: failed program was:" >&5
7319 sed 's/^/| /' conftest.$ac_ext >&5
7321 ac_cv_lib_bsd_gethostbyname=no
7324 rm -rf conftest.dSYM
7325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7326 conftest$ac_exeext conftest.$ac_ext
7327 LIBS=$ac_check_lib_save_LIBS
7329 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7330 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7331 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
7332 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7338 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7339 # socket/setsockopt and other routines are undefined under SCO ODT
7340 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7341 # on later versions), says Simon Leinen: it contains gethostby*
7342 # variants that don't use the name server (or something). -lsocket
7343 # must be given before -lnsl if both are needed. We assume that
7344 # if connect needs -lnsl, so does gethostbyname.
7345 { $as_echo "$as_me:$LINENO: checking for connect" >&5
7346 $as_echo_n "checking for connect... " >&6; }
7347 if test "${ac_cv_func_connect+set}" = set; then
7348 $as_echo_n "(cached) " >&6
7350 cat >conftest.$ac_ext <<_ACEOF
7353 cat confdefs.h >>conftest.$ac_ext
7354 cat >>conftest.$ac_ext <<_ACEOF
7355 /* end confdefs.h. */
7356 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7358 #define connect innocuous_connect
7360 /* System header to define __stub macros and hopefully few prototypes,
7361 which can conflict with char connect (); below.
7362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7363 <limits.h> exists even on freestanding compilers. */
7366 # include <limits.h>
7368 # include <assert.h>
7373 /* Override any GCC internal prototype to avoid an error.
7374 Use char because int might match the return type of a GCC
7375 builtin and then its argument prototype would still apply. */
7380 /* The GNU C library defines this for functions which it implements
7381 to always fail with ENOSYS. Some functions are actually named
7382 something starting with __ and the normal name is an alias. */
7383 #if defined __stub_connect || defined __stub___connect
7395 rm -rf conftest.$ac_objext conftest$ac_exeext
7396 if { (ac_try="$ac_link"
7398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7399 *) ac_try_echo=$ac_try;;
7401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7402 $as_echo "$ac_try_echo") >&5
7403 (eval "$ac_link") 2>conftest.er1
7405 grep -v '^ *+' conftest.er1 >conftest.err
7407 cat conftest.err >&5
7408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } && {
7410 test -z "$ac_c_werror_flag" ||
7411 test ! -s conftest.err
7412 } && test -s conftest$ac_exeext && {
7413 test "$cross_compiling" = yes ||
7414 $as_test_x conftest$ac_exeext
7416 ac_cv_func_connect=yes
7418 $as_echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7421 ac_cv_func_connect=no
7424 rm -rf conftest.dSYM
7425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7426 conftest$ac_exeext conftest.$ac_ext
7428 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7429 $as_echo "$ac_cv_func_connect" >&6; }
7431 if test $ac_cv_func_connect = no; then
7432 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7433 $as_echo_n "checking for connect in -lsocket... " >&6; }
7434 if test "${ac_cv_lib_socket_connect+set}" = set; then
7435 $as_echo_n "(cached) " >&6
7437 ac_check_lib_save_LIBS=$LIBS
7438 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7439 cat >conftest.$ac_ext <<_ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7446 /* Override any GCC internal prototype to avoid an error.
7447 Use char because int might match the return type of a GCC
7448 builtin and then its argument prototype would still apply. */
7461 rm -rf conftest.$ac_objext conftest$ac_exeext
7462 if { (ac_try="$ac_link"
7464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7465 *) ac_try_echo=$ac_try;;
7467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7468 $as_echo "$ac_try_echo") >&5
7469 (eval "$ac_link") 2>conftest.er1
7471 grep -v '^ *+' conftest.er1 >conftest.err
7473 cat conftest.err >&5
7474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } && {
7476 test -z "$ac_c_werror_flag" ||
7477 test ! -s conftest.err
7478 } && test -s conftest$ac_exeext && {
7479 test "$cross_compiling" = yes ||
7480 $as_test_x conftest$ac_exeext
7482 ac_cv_lib_socket_connect=yes
7484 $as_echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.$ac_ext >&5
7487 ac_cv_lib_socket_connect=no
7490 rm -rf conftest.dSYM
7491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7492 conftest$ac_exeext conftest.$ac_ext
7493 LIBS=$ac_check_lib_save_LIBS
7495 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7496 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7497 if test "x$ac_cv_lib_socket_connect" = x""yes; then
7498 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7503 # Guillermo Gomez says -lposix is necessary on A/UX.
7504 { $as_echo "$as_me:$LINENO: checking for remove" >&5
7505 $as_echo_n "checking for remove... " >&6; }
7506 if test "${ac_cv_func_remove+set}" = set; then
7507 $as_echo_n "(cached) " >&6
7509 cat >conftest.$ac_ext <<_ACEOF
7512 cat confdefs.h >>conftest.$ac_ext
7513 cat >>conftest.$ac_ext <<_ACEOF
7514 /* end confdefs.h. */
7515 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7517 #define remove innocuous_remove
7519 /* System header to define __stub macros and hopefully few prototypes,
7520 which can conflict with char remove (); below.
7521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7522 <limits.h> exists even on freestanding compilers. */
7525 # include <limits.h>
7527 # include <assert.h>
7532 /* Override any GCC internal prototype to avoid an error.
7533 Use char because int might match the return type of a GCC
7534 builtin and then its argument prototype would still apply. */
7539 /* The GNU C library defines this for functions which it implements
7540 to always fail with ENOSYS. Some functions are actually named
7541 something starting with __ and the normal name is an alias. */
7542 #if defined __stub_remove || defined __stub___remove
7554 rm -rf conftest.$ac_objext conftest$ac_exeext
7555 if { (ac_try="$ac_link"
7557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7558 *) ac_try_echo=$ac_try;;
7560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7561 $as_echo "$ac_try_echo") >&5
7562 (eval "$ac_link") 2>conftest.er1
7564 grep -v '^ *+' conftest.er1 >conftest.err
7566 cat conftest.err >&5
7567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); } && {
7569 test -z "$ac_c_werror_flag" ||
7570 test ! -s conftest.err
7571 } && test -s conftest$ac_exeext && {
7572 test "$cross_compiling" = yes ||
7573 $as_test_x conftest$ac_exeext
7575 ac_cv_func_remove=yes
7577 $as_echo "$as_me: failed program was:" >&5
7578 sed 's/^/| /' conftest.$ac_ext >&5
7580 ac_cv_func_remove=no
7583 rm -rf conftest.dSYM
7584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7585 conftest$ac_exeext conftest.$ac_ext
7587 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7588 $as_echo "$ac_cv_func_remove" >&6; }
7590 if test $ac_cv_func_remove = no; then
7591 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7592 $as_echo_n "checking for remove in -lposix... " >&6; }
7593 if test "${ac_cv_lib_posix_remove+set}" = set; then
7594 $as_echo_n "(cached) " >&6
7596 ac_check_lib_save_LIBS=$LIBS
7597 LIBS="-lposix $LIBS"
7598 cat >conftest.$ac_ext <<_ACEOF
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h. */
7605 /* Override any GCC internal prototype to avoid an error.
7606 Use char because int might match the return type of a GCC
7607 builtin and then its argument prototype would still apply. */
7620 rm -rf conftest.$ac_objext conftest$ac_exeext
7621 if { (ac_try="$ac_link"
7623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624 *) ac_try_echo=$ac_try;;
7626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7627 $as_echo "$ac_try_echo") >&5
7628 (eval "$ac_link") 2>conftest.er1
7630 grep -v '^ *+' conftest.er1 >conftest.err
7632 cat conftest.err >&5
7633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } && {
7635 test -z "$ac_c_werror_flag" ||
7636 test ! -s conftest.err
7637 } && test -s conftest$ac_exeext && {
7638 test "$cross_compiling" = yes ||
7639 $as_test_x conftest$ac_exeext
7641 ac_cv_lib_posix_remove=yes
7643 $as_echo "$as_me: failed program was:" >&5
7644 sed 's/^/| /' conftest.$ac_ext >&5
7646 ac_cv_lib_posix_remove=no
7649 rm -rf conftest.dSYM
7650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7651 conftest$ac_exeext conftest.$ac_ext
7652 LIBS=$ac_check_lib_save_LIBS
7654 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7655 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7656 if test "x$ac_cv_lib_posix_remove" = x""yes; then
7657 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7662 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7663 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
7664 $as_echo_n "checking for shmat... " >&6; }
7665 if test "${ac_cv_func_shmat+set}" = set; then
7666 $as_echo_n "(cached) " >&6
7668 cat >conftest.$ac_ext <<_ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7674 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7676 #define shmat innocuous_shmat
7678 /* System header to define __stub macros and hopefully few prototypes,
7679 which can conflict with char shmat (); below.
7680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7681 <limits.h> exists even on freestanding compilers. */
7684 # include <limits.h>
7686 # include <assert.h>
7691 /* Override any GCC internal prototype to avoid an error.
7692 Use char because int might match the return type of a GCC
7693 builtin and then its argument prototype would still apply. */
7698 /* The GNU C library defines this for functions which it implements
7699 to always fail with ENOSYS. Some functions are actually named
7700 something starting with __ and the normal name is an alias. */
7701 #if defined __stub_shmat || defined __stub___shmat
7713 rm -rf conftest.$ac_objext conftest$ac_exeext
7714 if { (ac_try="$ac_link"
7716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7717 *) ac_try_echo=$ac_try;;
7719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7720 $as_echo "$ac_try_echo") >&5
7721 (eval "$ac_link") 2>conftest.er1
7723 grep -v '^ *+' conftest.er1 >conftest.err
7725 cat conftest.err >&5
7726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } && {
7728 test -z "$ac_c_werror_flag" ||
7729 test ! -s conftest.err
7730 } && test -s conftest$ac_exeext && {
7731 test "$cross_compiling" = yes ||
7732 $as_test_x conftest$ac_exeext
7734 ac_cv_func_shmat=yes
7736 $as_echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.$ac_ext >&5
7742 rm -rf conftest.dSYM
7743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7744 conftest$ac_exeext conftest.$ac_ext
7746 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7747 $as_echo "$ac_cv_func_shmat" >&6; }
7749 if test $ac_cv_func_shmat = no; then
7750 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7751 $as_echo_n "checking for shmat in -lipc... " >&6; }
7752 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7753 $as_echo_n "(cached) " >&6
7755 ac_check_lib_save_LIBS=$LIBS
7757 cat >conftest.$ac_ext <<_ACEOF
7760 cat confdefs.h >>conftest.$ac_ext
7761 cat >>conftest.$ac_ext <<_ACEOF
7762 /* end confdefs.h. */
7764 /* Override any GCC internal prototype to avoid an error.
7765 Use char because int might match the return type of a GCC
7766 builtin and then its argument prototype would still apply. */
7779 rm -rf conftest.$ac_objext conftest$ac_exeext
7780 if { (ac_try="$ac_link"
7782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7783 *) ac_try_echo=$ac_try;;
7785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7786 $as_echo "$ac_try_echo") >&5
7787 (eval "$ac_link") 2>conftest.er1
7789 grep -v '^ *+' conftest.er1 >conftest.err
7791 cat conftest.err >&5
7792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } && {
7794 test -z "$ac_c_werror_flag" ||
7795 test ! -s conftest.err
7796 } && test -s conftest$ac_exeext && {
7797 test "$cross_compiling" = yes ||
7798 $as_test_x conftest$ac_exeext
7800 ac_cv_lib_ipc_shmat=yes
7802 $as_echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.$ac_ext >&5
7805 ac_cv_lib_ipc_shmat=no
7808 rm -rf conftest.dSYM
7809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7810 conftest$ac_exeext conftest.$ac_ext
7811 LIBS=$ac_check_lib_save_LIBS
7813 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7814 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7815 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
7816 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7822 # Check for libraries that X11R6 Xt/Xaw programs need.
7823 ac_save_LDFLAGS=$LDFLAGS
7824 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7825 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7826 # check for ICE first), but we must link in the order -lSM -lICE or
7827 # we get undefined symbols. So assume we have SM if we have ICE.
7828 # These have to be linked with before -lX11, unlike the other
7829 # libraries we check for below, so use a different variable.
7830 # John Interrante, Karl Berry
7831 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7832 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7833 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7834 $as_echo_n "(cached) " >&6
7836 ac_check_lib_save_LIBS=$LIBS
7837 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7838 cat >conftest.$ac_ext <<_ACEOF
7841 cat confdefs.h >>conftest.$ac_ext
7842 cat >>conftest.$ac_ext <<_ACEOF
7843 /* end confdefs.h. */
7845 /* Override any GCC internal prototype to avoid an error.
7846 Use char because int might match the return type of a GCC
7847 builtin and then its argument prototype would still apply. */
7851 char IceConnectionNumber ();
7855 return IceConnectionNumber ();
7860 rm -rf conftest.$ac_objext conftest$ac_exeext
7861 if { (ac_try="$ac_link"
7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7867 $as_echo "$ac_try_echo") >&5
7868 (eval "$ac_link") 2>conftest.er1
7870 grep -v '^ *+' conftest.er1 >conftest.err
7872 cat conftest.err >&5
7873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); } && {
7875 test -z "$ac_c_werror_flag" ||
7876 test ! -s conftest.err
7877 } && test -s conftest$ac_exeext && {
7878 test "$cross_compiling" = yes ||
7879 $as_test_x conftest$ac_exeext
7881 ac_cv_lib_ICE_IceConnectionNumber=yes
7883 $as_echo "$as_me: failed program was:" >&5
7884 sed 's/^/| /' conftest.$ac_ext >&5
7886 ac_cv_lib_ICE_IceConnectionNumber=no
7889 rm -rf conftest.dSYM
7890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7891 conftest$ac_exeext conftest.$ac_ext
7892 LIBS=$ac_check_lib_save_LIBS
7894 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7895 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7896 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
7897 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7900 LDFLAGS=$ac_save_LDFLAGS
7905 if test "$have_x" != yes; then
7906 { { $as_echo "$as_me:$LINENO: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&5
7907 $as_echo "$as_me: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&2;}
7908 { (exit 1); exit 1; }; }
7912 { $as_echo "$as_me:$LINENO: checking for X app-defaults directory" >&5
7913 $as_echo_n "checking for X app-defaults directory... " >&6; }
7914 if test "${ac_cv_x_app_defaults+set}" = set; then
7915 $as_echo_n "(cached) " >&6
7919 if mkdir conftestdir; then
7920 cd conftestdir 2>/dev/null
7921 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7922 cat > Imakefile <<'EOF'
7924 @echo 'ac_x_app_defaults="${XAPPLOADDIR}"'
7926 if (xmkmf) >/dev/null 2>&1 && test -f Makefile; then
7927 # GNU make sometimes prints "make[1]: Entering...", which'd confuse us.
7928 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7933 if test x"$ac_x_app_defaults" = x; then
7935 # Look for the directory under a standard set of common directories.
7936 # Check X11 before X11Rn because it's often a symlink to the current release.
7938 /usr/X11/lib/app-defaults \
7939 /usr/X11R6/lib/app-defaults \
7940 /usr/X11R6/lib/X11/app-defaults \
7941 /usr/X11R5/lib/app-defaults \
7942 /usr/X11R5/lib/X11/app-defaults \
7943 /usr/X11R4/lib/app-defaults \
7944 /usr/X11R4/lib/X11/app-defaults \
7946 /usr/lib/X11/app-defaults \
7947 /usr/lib/X11R6/app-defaults \
7948 /usr/lib/X11R5/app-defaults \
7949 /usr/lib/X11R4/app-defaults \
7951 /usr/local/X11/lib/app-defaults \
7952 /usr/local/X11R6/lib/app-defaults \
7953 /usr/local/X11R5/lib/app-defaults \
7954 /usr/local/X11R4/lib/app-defaults \
7956 /usr/local/lib/X11/app-defaults \
7957 /usr/local/lib/X11R6/app-defaults \
7958 /usr/local/lib/X11R6/X11/app-defaults \
7959 /usr/local/lib/X11R5/app-defaults \
7960 /usr/local/lib/X11R5/X11/app-defaults \
7961 /usr/local/lib/X11R4/app-defaults \
7962 /usr/local/lib/X11R4/X11/app-defaults \
7964 /usr/X386/lib/X11/app-defaults \
7965 /usr/x386/lib/X11/app-defaults \
7966 /usr/XFree86/lib/X11/app-defaults \
7968 /usr/lib/X11/app-defaults \
7969 /usr/local/lib/X11/app-defaults \
7970 /usr/unsupported/lib/X11/app-defaults \
7971 /usr/athena/lib/X11/app-defaults \
7972 /usr/local/x11r5/lib/X11/app-defaults \
7973 /usr/lpp/Xamples/lib/X11/app-defaults \
7974 /lib/usr/lib/X11/app-defaults \
7976 /usr/openwin/lib/app-defaults \
7977 /usr/openwin/lib/X11/app-defaults \
7978 /usr/openwin/share/lib/app-defaults \
7979 /usr/openwin/share/lib/X11/app-defaults \
7981 /X11R6/lib/app-defaults \
7982 /X11R5/lib/app-defaults \
7983 /X11R4/lib/app-defaults \
7986 if test -d "$ac_dir"; then
7987 ac_x_app_defaults=$ac_dir
7993 if test x"$ac_x_app_defaults" = x; then
7994 ac_cv_x_app_defaults="/usr/lib/X11/app-defaults"
7996 # Record where we found app-defaults for the cache.
7997 ac_cv_x_app_defaults="$ac_x_app_defaults"
8000 { $as_echo "$as_me:$LINENO: result: $ac_cv_x_app_defaults" >&5
8001 $as_echo "$ac_cv_x_app_defaults" >&6; }
8002 eval ac_x_app_defaults="$ac_cv_x_app_defaults"
8006 # The following arcana was gleaned from conversations with
8007 # Eric Schwartz <erics@col.hp.com>:
8009 # On HPUX 10.x, the parts of X that HP considers "standard" live in
8010 # /usr/{include,lib}/X11R6/. The parts that HP doesn't consider
8011 # "standard", notably, Xaw and Xmu, live in /usr/contrib/X11R6/.
8012 # Yet /usr/contrib/X11R6/ comes preinstalled on all HPUX systems.
8013 # Also, there are symlinks from /usr/include/ and /usr/lib/ into
8014 # /usr/{include,lib}/X11R6/, so that (if you don't use Xmu at all)
8015 # you don't need any -I or -L arguments.
8017 # On HPUX 9.x, /usr/{include,lib}/X11R5/ and /usr/contrib/X11R5/
8018 # are the same division as 10.x. However, there are no symlinks to
8019 # the X stuff from /usr/include/ and /usr/lib/, so -I and -L
8020 # arguments are always necessary.
8022 # However, X11R6 was available on HPUX 9.x as a patch: if that
8023 # patch was installed, then all of X11R6 went in to
8024 # /usr/contrib/X11R6/ (there was no /usr/{include,lib}/X11R6/.)
8026 # HPUX 8.x was the same as 9.x, but was X11R4 instead (I don't know
8027 # whether R5 was available as a patch; R6 undoubtedly was not.)
8029 # So. We try and use the highest numbered pair of
8030 # /usr/{include,lib}/X11R?/ and /usr/contrib/X11R?/{include,lib}/
8031 # that are available. We do not mix and match different versions
8034 # Question I still don't know the answer to: (do you?)
8036 # * On HPUX 9.x, where /usr/include/X11R5/ was standard, and
8037 # /usr/contrib/X11R6/ could be installed as a patch, what was in
8038 # that contrib directory? Did it contain so-called "standard"
8039 # X11R6, or did it include Xaw and Xmu as well? If the former,
8040 # where did one find Xaw and Xmu on 9.x R6 systems? Would this
8041 # be a situation where one had to reach into the R5 headers and
8042 # libs to find Xmu? That is, must both R6 and R5 directories
8043 # be on the -I and -L lists in that case?
8045 for version in X11R6 X11R5 X11R4 ; do
8046 # if either pair of directories exists...
8047 if test -d /usr/include/$version || test -d /usr/contrib/$version/include
8049 # if contrib exists, use it...
8050 if test -d /usr/contrib/$version/include ; then
8051 X_CFLAGS="$X_CFLAGS -I/usr/contrib/$version/include"
8052 X_LIBS="$X_LIBS -L/usr/contrib/$version/lib"
8054 # if the "standard" one exists, use it.
8055 if test -d /usr/include/$version ; then
8056 X_CFLAGS="$X_CFLAGS -I/usr/include/$version"
8057 X_LIBS="$X_LIBS -L/usr/lib/$version"
8059 # since at least one of the pair exists, go no farther.
8064 # Now find Motif. Thanks for not making xmkmf find this by
8065 # default, you losers.
8067 if test -d /usr/include/Motif2.1 ; then
8068 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif2.1"
8069 X_LIBS="$X_LIBS -L/usr/lib/Motif2.1"
8070 elif test -d /usr/include/Motif1.2 ; then
8071 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.2"
8072 X_LIBS="$X_LIBS -L/usr/lib/Motif1.2"
8073 elif test -d /usr/include/Motif1.1 ; then
8074 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.1"
8075 X_LIBS="$X_LIBS -L/usr/lib/Motif1.1"
8078 # Now let's check for the pseudo-standard locations for OpenGL and XPM.
8080 if test -d /opt/graphics/OpenGL/include ; then
8081 # HP-UX 10.20 puts it here
8082 X_CFLAGS="-I/opt/graphics/OpenGL/include $X_CFLAGS"
8083 X_LIBS="-L/opt/graphics/OpenGL/lib $X_LIBS"
8084 elif test -d /opt/Mesa/lib ; then
8085 X_CFLAGS="-I/opt/Mesa/include $X_CFLAGS"
8086 X_LIBS="-L/opt/Mesa/lib $X_LIBS"
8090 if test -d /opt/xpm/lib/X11 ; then
8091 X_CFLAGS="-I/opt/xpm/include $X_CFLAGS"
8092 X_LIBS="-L/opt/xpm/lib/X11 $X_LIBS"
8095 # On HPUX, default to installing in /opt/xscreensaver/ instead of
8096 # in /usr/local/, unless there is already an xscreensaver in
8097 # /usr/local/bin/. This can be overridden with the --prefix arg
8098 # to configure. I'm not sure this is the right thing to do, but
8099 # Richard Lloyd says so...
8101 if test \! -x /usr/local/bin/xscreensaver ; then
8102 ac_default_prefix=/opt/xscreensaver
8108 # Thanks for not making xmkmf find this by default, pinheads.
8109 # And thanks for moving things around again, too. Is this
8110 # really the standard location now? What happened to the
8111 # joke that this kind of thing went in /opt?
8112 # cthomp says "answer: CDE (Common Disorganized Environment)"
8114 if test -f /usr/dt/include/Xm/Xm.h ; then
8115 X_CFLAGS="$X_CFLAGS -I/usr/dt/include"
8116 MOTIF_LIBS="$MOTIF_LIBS -L/usr/dt/lib -R/usr/dt/lib"
8118 # Some versions of Slowlaris Motif require -lgen. But not all. Why?
8119 { $as_echo "$as_me:$LINENO: checking for regcmp in -lgen" >&5
8120 $as_echo_n "checking for regcmp in -lgen... " >&6; }
8121 if test "${ac_cv_lib_gen_regcmp+set}" = set; then
8122 $as_echo_n "(cached) " >&6
8124 ac_check_lib_save_LIBS=$LIBS
8126 cat >conftest.$ac_ext <<_ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h. */
8133 /* Override any GCC internal prototype to avoid an error.
8134 Use char because int might match the return type of a GCC
8135 builtin and then its argument prototype would still apply. */
8148 rm -rf conftest.$ac_objext conftest$ac_exeext
8149 if { (ac_try="$ac_link"
8151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8152 *) ac_try_echo=$ac_try;;
8154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8155 $as_echo "$ac_try_echo") >&5
8156 (eval "$ac_link") 2>conftest.er1
8158 grep -v '^ *+' conftest.er1 >conftest.err
8160 cat conftest.err >&5
8161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } && {
8163 test -z "$ac_c_werror_flag" ||
8164 test ! -s conftest.err
8165 } && test -s conftest$ac_exeext && {
8166 test "$cross_compiling" = yes ||
8167 $as_test_x conftest$ac_exeext
8169 ac_cv_lib_gen_regcmp=yes
8171 $as_echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8174 ac_cv_lib_gen_regcmp=no
8177 rm -rf conftest.dSYM
8178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8179 conftest$ac_exeext conftest.$ac_ext
8180 LIBS=$ac_check_lib_save_LIBS
8182 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gen_regcmp" >&5
8183 $as_echo "$ac_cv_lib_gen_regcmp" >&6; }
8184 if test "x$ac_cv_lib_gen_regcmp" = x""yes; then
8185 MOTIF_LIBS="$MOTIF_LIBS -lgen"
8193 # On MacOS X (10.x with "fink"), many things are under /sw/.
8195 if test -d /sw/include ; then
8196 X_CFLAGS="-I/sw/include $X_CFLAGS"
8197 X_LIBS="-L/sw/lib $X_LIBS"
8201 { $as_echo "$as_me:$LINENO: checking for XPointer" >&5
8202 $as_echo_n "checking for XPointer... " >&6; }
8203 if test "${ac_cv_xpointer+set}" = set; then
8204 $as_echo_n "(cached) " >&6
8207 ac_save_CPPFLAGS="$CPPFLAGS"
8208 if test \! -z "$includedir" ; then
8209 CPPFLAGS="$CPPFLAGS -I$includedir"
8211 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8212 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8213 cat >conftest.$ac_ext <<_ACEOF
8216 cat confdefs.h >>conftest.$ac_ext
8217 cat >>conftest.$ac_ext <<_ACEOF
8218 /* end confdefs.h. */
8219 #include <X11/Xlib.h>
8223 XPointer foo = (XPointer) 0;
8228 rm -rf conftest.$ac_objext
8229 if { (ac_try="$ac_compile"
8231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8235 $as_echo "$ac_try_echo") >&5
8236 (eval "$ac_compile") 2>conftest.er1
8238 grep -v '^ *+' conftest.er1 >conftest.err
8240 cat conftest.err >&5
8241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } && {
8243 test -z "$ac_c_werror_flag" ||
8244 test ! -s conftest.err
8245 } && test -s conftest.$ac_objext; then
8248 $as_echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8255 CPPFLAGS="$ac_save_CPPFLAGS"
8257 { $as_echo "$as_me:$LINENO: result: $ac_cv_xpointer" >&5
8258 $as_echo "$ac_cv_xpointer" >&6; }
8259 if test "$ac_cv_xpointer" != yes; then
8260 cat >>confdefs.h <<\_ACEOF
8261 #define XPointer char*
8266 { $as_echo "$as_me:$LINENO: checking whether this is MacOS X" >&5
8267 $as_echo_n "checking whether this is MacOS X... " >&6; }
8274 { $as_echo "$as_me:$LINENO: result: $ac_macosx" >&5
8275 $as_echo "$ac_macosx" >&6; }
8278 ###############################################################################
8282 ###############################################################################
8287 { $as_echo "$as_me:$LINENO: checking for intltool >= " >&5
8288 $as_echo_n "checking for intltool >= ... " >&6; }
8290 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
8291 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }' < intltool-update.in`
8293 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < intltool-update.in`
8296 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
8297 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
8298 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
8300 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&5
8301 $as_echo "$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&6; }
8306 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
8307 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
8308 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -k -u -c $(top_builddir)/po/.intltool-merge-cache'
8309 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -p'
8310 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
8311 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -u -c $(top_builddir)/po/.intltool-merge-cache'
8312 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
8313 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
8314 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
8315 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
8316 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
8330 # Use the tools built into the package, not the ones that are installed.
8332 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
8333 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
8334 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
8340 # Extract the first word of "perl", so it can be a program name with args.
8341 set dummy perl; ac_word=$2
8342 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8343 $as_echo_n "checking for $ac_word... " >&6; }
8344 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
8345 $as_echo_n "(cached) " >&6
8347 case $INTLTOOL_PERL in
8349 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 test -z "$as_dir" && as_dir=.
8357 for ac_exec_ext in '' $ac_executable_extensions; do
8358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8359 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
8360 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8370 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
8371 if test -n "$INTLTOOL_PERL"; then
8372 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
8373 $as_echo "$INTLTOOL_PERL" >&6; }
8375 { $as_echo "$as_me:$LINENO: result: no" >&5
8376 $as_echo "no" >&6; }
8380 if test -z "$INTLTOOL_PERL"; then
8381 { { $as_echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
8382 $as_echo "$as_me: error: perl not found; required for intltool" >&2;}
8383 { (exit 1); exit 1; }; }
8385 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
8386 { { $as_echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
8387 $as_echo "$as_me: error: perl 5.x required for intltool" >&2;}
8388 { (exit 1); exit 1; }; }
8391 # Remove file type tags (using []) from po/POTFILES.
8399 # Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
8401 ac_config_commands="$ac_config_commands default-1"
8405 GETTEXT_PACKAGE=xscreensaver
8407 cat >>confdefs.h <<_ACEOF
8408 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
8412 cat >>confdefs.h <<_ACEOF
8413 #define PACKAGE "$GETTEXT_PACKAGE"
8418 ALL_LINGUAS="ca da de es et fi fr hu it ja ko nb nl pl pt pt_BR ru sk sv vi wa zh_CN zh_TW"
8419 if test -n "$ac_tool_prefix"; then
8420 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8421 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8422 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8423 $as_echo_n "checking for $ac_word... " >&6; }
8424 if test "${ac_cv_prog_RANLIB+set}" = set; then
8425 $as_echo_n "(cached) " >&6
8427 if test -n "$RANLIB"; then
8428 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8434 test -z "$as_dir" && as_dir=.
8435 for ac_exec_ext in '' $ac_executable_extensions; do
8436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8437 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8438 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8447 RANLIB=$ac_cv_prog_RANLIB
8448 if test -n "$RANLIB"; then
8449 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
8450 $as_echo "$RANLIB" >&6; }
8452 { $as_echo "$as_me:$LINENO: result: no" >&5
8453 $as_echo "no" >&6; }
8458 if test -z "$ac_cv_prog_RANLIB"; then
8459 ac_ct_RANLIB=$RANLIB
8460 # Extract the first word of "ranlib", so it can be a program name with args.
8461 set dummy ranlib; ac_word=$2
8462 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8463 $as_echo_n "checking for $ac_word... " >&6; }
8464 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8465 $as_echo_n "(cached) " >&6
8467 if test -n "$ac_ct_RANLIB"; then
8468 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8474 test -z "$as_dir" && as_dir=.
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8477 ac_cv_prog_ac_ct_RANLIB="ranlib"
8478 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8487 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8488 if test -n "$ac_ct_RANLIB"; then
8489 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8490 $as_echo "$ac_ct_RANLIB" >&6; }
8492 { $as_echo "$as_me:$LINENO: result: no" >&5
8493 $as_echo "no" >&6; }
8496 if test "x$ac_ct_RANLIB" = x; then
8499 case $cross_compiling:$ac_tool_warned in
8501 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8503 ac_tool_warned=yes ;;
8505 RANLIB=$ac_ct_RANLIB
8508 RANLIB="$ac_cv_prog_RANLIB"
8511 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
8512 $as_echo_n "checking for off_t... " >&6; }
8513 if test "${ac_cv_type_off_t+set}" = set; then
8514 $as_echo_n "(cached) " >&6
8517 cat >conftest.$ac_ext <<_ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8523 $ac_includes_default
8533 rm -rf conftest.$ac_objext
8534 if { (ac_try="$ac_compile"
8536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537 *) ac_try_echo=$ac_try;;
8539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8540 $as_echo "$ac_try_echo") >&5
8541 (eval "$ac_compile") 2>conftest.er1
8543 grep -v '^ *+' conftest.er1 >conftest.err
8545 cat conftest.err >&5
8546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); } && {
8548 test -z "$ac_c_werror_flag" ||
8549 test ! -s conftest.err
8550 } && test -s conftest.$ac_objext; then
8551 cat >conftest.$ac_ext <<_ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8557 $ac_includes_default
8561 if (sizeof ((off_t)))
8567 rm -rf conftest.$ac_objext
8568 if { (ac_try="$ac_compile"
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8574 $as_echo "$ac_try_echo") >&5
8575 (eval "$ac_compile") 2>conftest.er1
8577 grep -v '^ *+' conftest.er1 >conftest.err
8579 cat conftest.err >&5
8580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } && {
8582 test -z "$ac_c_werror_flag" ||
8583 test ! -s conftest.err
8584 } && test -s conftest.$ac_objext; then
8587 $as_echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8590 ac_cv_type_off_t=yes
8593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8595 $as_echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.$ac_ext >&5
8601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8604 $as_echo "$ac_cv_type_off_t" >&6; }
8605 if test "x$ac_cv_type_off_t" = x""yes; then
8609 cat >>confdefs.h <<_ACEOF
8610 #define off_t long int
8615 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8616 # for constant arguments. Useless!
8617 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
8618 $as_echo_n "checking for working alloca.h... " >&6; }
8619 if test "${ac_cv_working_alloca_h+set}" = set; then
8620 $as_echo_n "(cached) " >&6
8622 cat >conftest.$ac_ext <<_ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8632 char *p = (char *) alloca (2 * sizeof (int));
8638 rm -rf conftest.$ac_objext conftest$ac_exeext
8639 if { (ac_try="$ac_link"
8641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8642 *) ac_try_echo=$ac_try;;
8644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8645 $as_echo "$ac_try_echo") >&5
8646 (eval "$ac_link") 2>conftest.er1
8648 grep -v '^ *+' conftest.er1 >conftest.err
8650 cat conftest.err >&5
8651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } && {
8653 test -z "$ac_c_werror_flag" ||
8654 test ! -s conftest.err
8655 } && test -s conftest$ac_exeext && {
8656 test "$cross_compiling" = yes ||
8657 $as_test_x conftest$ac_exeext
8659 ac_cv_working_alloca_h=yes
8661 $as_echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8664 ac_cv_working_alloca_h=no
8667 rm -rf conftest.dSYM
8668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8669 conftest$ac_exeext conftest.$ac_ext
8671 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8672 $as_echo "$ac_cv_working_alloca_h" >&6; }
8673 if test $ac_cv_working_alloca_h = yes; then
8675 cat >>confdefs.h <<\_ACEOF
8676 #define HAVE_ALLOCA_H 1
8681 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
8682 $as_echo_n "checking for alloca... " >&6; }
8683 if test "${ac_cv_func_alloca_works+set}" = set; then
8684 $as_echo_n "(cached) " >&6
8686 cat >conftest.$ac_ext <<_ACEOF
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h. */
8693 # define alloca __builtin_alloca
8696 # include <malloc.h>
8697 # define alloca _alloca
8699 # ifdef HAVE_ALLOCA_H
8700 # include <alloca.h>
8705 # ifndef alloca /* predefined by HP cc +Olibcalls */
8716 char *p = (char *) alloca (1);
8722 rm -rf conftest.$ac_objext conftest$ac_exeext
8723 if { (ac_try="$ac_link"
8725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726 *) ac_try_echo=$ac_try;;
8728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8729 $as_echo "$ac_try_echo") >&5
8730 (eval "$ac_link") 2>conftest.er1
8732 grep -v '^ *+' conftest.er1 >conftest.err
8734 cat conftest.err >&5
8735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } && {
8737 test -z "$ac_c_werror_flag" ||
8738 test ! -s conftest.err
8739 } && test -s conftest$ac_exeext && {
8740 test "$cross_compiling" = yes ||
8741 $as_test_x conftest$ac_exeext
8743 ac_cv_func_alloca_works=yes
8745 $as_echo "$as_me: failed program was:" >&5
8746 sed 's/^/| /' conftest.$ac_ext >&5
8748 ac_cv_func_alloca_works=no
8751 rm -rf conftest.dSYM
8752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8753 conftest$ac_exeext conftest.$ac_ext
8755 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8756 $as_echo "$ac_cv_func_alloca_works" >&6; }
8758 if test $ac_cv_func_alloca_works = yes; then
8760 cat >>confdefs.h <<\_ACEOF
8761 #define HAVE_ALLOCA 1
8765 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8766 # that cause trouble. Some versions do not even contain alloca or
8767 # contain a buggy version. If you still want to use their alloca,
8768 # use ar to extract alloca.o from them instead of compiling alloca.c.
8770 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8772 cat >>confdefs.h <<\_ACEOF
8777 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8778 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8779 if test "${ac_cv_os_cray+set}" = set; then
8780 $as_echo_n "(cached) " >&6
8782 cat >conftest.$ac_ext <<_ACEOF
8785 cat confdefs.h >>conftest.$ac_ext
8786 cat >>conftest.$ac_ext <<_ACEOF
8787 /* end confdefs.h. */
8788 #if defined CRAY && ! defined CRAY2
8795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8796 $EGREP "webecray" >/dev/null 2>&1; then
8804 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8805 $as_echo "$ac_cv_os_cray" >&6; }
8806 if test $ac_cv_os_cray = yes; then
8807 for ac_func in _getb67 GETB67 getb67; do
8808 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8809 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8810 $as_echo_n "checking for $ac_func... " >&6; }
8811 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8812 $as_echo_n "(cached) " >&6
8814 cat >conftest.$ac_ext <<_ACEOF
8817 cat confdefs.h >>conftest.$ac_ext
8818 cat >>conftest.$ac_ext <<_ACEOF
8819 /* end confdefs.h. */
8820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8822 #define $ac_func innocuous_$ac_func
8824 /* System header to define __stub macros and hopefully few prototypes,
8825 which can conflict with char $ac_func (); below.
8826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8827 <limits.h> exists even on freestanding compilers. */
8830 # include <limits.h>
8832 # include <assert.h>
8837 /* Override any GCC internal prototype to avoid an error.
8838 Use char because int might match the return type of a GCC
8839 builtin and then its argument prototype would still apply. */
8844 /* The GNU C library defines this for functions which it implements
8845 to always fail with ENOSYS. Some functions are actually named
8846 something starting with __ and the normal name is an alias. */
8847 #if defined __stub_$ac_func || defined __stub___$ac_func
8859 rm -rf conftest.$ac_objext conftest$ac_exeext
8860 if { (ac_try="$ac_link"
8862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863 *) ac_try_echo=$ac_try;;
8865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8866 $as_echo "$ac_try_echo") >&5
8867 (eval "$ac_link") 2>conftest.er1
8869 grep -v '^ *+' conftest.er1 >conftest.err
8871 cat conftest.err >&5
8872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); } && {
8874 test -z "$ac_c_werror_flag" ||
8875 test ! -s conftest.err
8876 } && test -s conftest$ac_exeext && {
8877 test "$cross_compiling" = yes ||
8878 $as_test_x conftest$ac_exeext
8880 eval "$as_ac_var=yes"
8882 $as_echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.$ac_ext >&5
8885 eval "$as_ac_var=no"
8888 rm -rf conftest.dSYM
8889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8890 conftest$ac_exeext conftest.$ac_ext
8892 ac_res=`eval 'as_val=${'$as_ac_var'}
8893 $as_echo "$as_val"'`
8894 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8895 $as_echo "$ac_res" >&6; }
8896 as_val=`eval 'as_val=${'$as_ac_var'}
8897 $as_echo "$as_val"'`
8898 if test "x$as_val" = x""yes; then
8900 cat >>confdefs.h <<_ACEOF
8901 #define CRAY_STACKSEG_END $ac_func
8910 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8911 $as_echo_n "checking stack direction for C alloca... " >&6; }
8912 if test "${ac_cv_c_stack_direction+set}" = set; then
8913 $as_echo_n "(cached) " >&6
8915 if test "$cross_compiling" = yes; then
8916 ac_cv_c_stack_direction=0
8918 cat >conftest.$ac_ext <<_ACEOF
8921 cat confdefs.h >>conftest.$ac_ext
8922 cat >>conftest.$ac_ext <<_ACEOF
8923 /* end confdefs.h. */
8924 $ac_includes_default
8926 find_stack_direction ()
8928 static char *addr = 0;
8933 return find_stack_direction ();
8936 return (&dummy > addr) ? 1 : -1;
8942 return find_stack_direction () < 0;
8945 rm -rf conftest$ac_exeext
8946 if { (ac_try="$ac_link"
8948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8949 *) ac_try_echo=$ac_try;;
8951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8952 $as_echo "$ac_try_echo") >&5
8953 (eval "$ac_link") 2>&5
8955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8957 { (case "(($ac_try" in
8958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8962 $as_echo "$ac_try_echo") >&5
8963 (eval "$ac_try") 2>&5
8965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; }; then
8967 ac_cv_c_stack_direction=1
8969 $as_echo "$as_me: program exited with status $ac_status" >&5
8970 $as_echo "$as_me: failed program was:" >&5
8971 sed 's/^/| /' conftest.$ac_ext >&5
8974 ac_cv_c_stack_direction=-1
8976 rm -rf conftest.dSYM
8977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8982 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8983 $as_echo "$ac_cv_c_stack_direction" >&6; }
8985 cat >>confdefs.h <<_ACEOF
8986 #define STACK_DIRECTION $ac_cv_c_stack_direction
8994 for ac_header in stdlib.h unistd.h
8996 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8998 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8999 $as_echo_n "checking for $ac_header... " >&6; }
9000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9001 $as_echo_n "(cached) " >&6
9003 ac_res=`eval 'as_val=${'$as_ac_Header'}
9004 $as_echo "$as_val"'`
9005 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9006 $as_echo "$ac_res" >&6; }
9008 # Is the header compilable?
9009 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9010 $as_echo_n "checking $ac_header usability... " >&6; }
9011 cat >conftest.$ac_ext <<_ACEOF
9014 cat confdefs.h >>conftest.$ac_ext
9015 cat >>conftest.$ac_ext <<_ACEOF
9016 /* end confdefs.h. */
9017 $ac_includes_default
9018 #include <$ac_header>
9020 rm -rf conftest.$ac_objext
9021 if { (ac_try="$ac_compile"
9023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9024 *) ac_try_echo=$ac_try;;
9026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9027 $as_echo "$ac_try_echo") >&5
9028 (eval "$ac_compile") 2>conftest.er1
9030 grep -v '^ *+' conftest.er1 >conftest.err
9032 cat conftest.err >&5
9033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } && {
9035 test -z "$ac_c_werror_flag" ||
9036 test ! -s conftest.err
9037 } && test -s conftest.$ac_objext; then
9038 ac_header_compiler=yes
9040 $as_echo "$as_me: failed program was:" >&5
9041 sed 's/^/| /' conftest.$ac_ext >&5
9043 ac_header_compiler=no
9046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9047 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9048 $as_echo "$ac_header_compiler" >&6; }
9050 # Is the header present?
9051 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9052 $as_echo_n "checking $ac_header presence... " >&6; }
9053 cat >conftest.$ac_ext <<_ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h. */
9059 #include <$ac_header>
9061 if { (ac_try="$ac_cpp conftest.$ac_ext"
9063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9064 *) ac_try_echo=$ac_try;;
9066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9067 $as_echo "$ac_try_echo") >&5
9068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9070 grep -v '^ *+' conftest.er1 >conftest.err
9072 cat conftest.err >&5
9073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); } >/dev/null && {
9075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9076 test ! -s conftest.err
9078 ac_header_preproc=yes
9080 $as_echo "$as_me: failed program was:" >&5
9081 sed 's/^/| /' conftest.$ac_ext >&5
9083 ac_header_preproc=no
9086 rm -rf conftest.err conftest.$ac_ext
9087 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9088 $as_echo "$ac_header_preproc" >&6; }
9090 # So? What about this header?
9091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9094 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9096 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9097 ac_header_preproc=yes
9100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9101 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9103 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9105 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9107 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9109 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9111 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9115 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9116 $as_echo_n "checking for $ac_header... " >&6; }
9117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9118 $as_echo_n "(cached) " >&6
9120 eval "$as_ac_Header=\$ac_header_preproc"
9122 ac_res=`eval 'as_val=${'$as_ac_Header'}
9123 $as_echo "$as_val"'`
9124 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9125 $as_echo "$ac_res" >&6; }
9128 as_val=`eval 'as_val=${'$as_ac_Header'}
9129 $as_echo "$as_val"'`
9130 if test "x$as_val" = x""yes; then
9131 cat >>confdefs.h <<_ACEOF
9132 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9140 for ac_func in getpagesize
9142 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9143 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9144 $as_echo_n "checking for $ac_func... " >&6; }
9145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9146 $as_echo_n "(cached) " >&6
9148 cat >conftest.$ac_ext <<_ACEOF
9151 cat confdefs.h >>conftest.$ac_ext
9152 cat >>conftest.$ac_ext <<_ACEOF
9153 /* end confdefs.h. */
9154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9156 #define $ac_func innocuous_$ac_func
9158 /* System header to define __stub macros and hopefully few prototypes,
9159 which can conflict with char $ac_func (); below.
9160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9161 <limits.h> exists even on freestanding compilers. */
9164 # include <limits.h>
9166 # include <assert.h>
9171 /* Override any GCC internal prototype to avoid an error.
9172 Use char because int might match the return type of a GCC
9173 builtin and then its argument prototype would still apply. */
9178 /* The GNU C library defines this for functions which it implements
9179 to always fail with ENOSYS. Some functions are actually named
9180 something starting with __ and the normal name is an alias. */
9181 #if defined __stub_$ac_func || defined __stub___$ac_func
9193 rm -rf conftest.$ac_objext conftest$ac_exeext
9194 if { (ac_try="$ac_link"
9196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197 *) ac_try_echo=$ac_try;;
9199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9200 $as_echo "$ac_try_echo") >&5
9201 (eval "$ac_link") 2>conftest.er1
9203 grep -v '^ *+' conftest.er1 >conftest.err
9205 cat conftest.err >&5
9206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } && {
9208 test -z "$ac_c_werror_flag" ||
9209 test ! -s conftest.err
9210 } && test -s conftest$ac_exeext && {
9211 test "$cross_compiling" = yes ||
9212 $as_test_x conftest$ac_exeext
9214 eval "$as_ac_var=yes"
9216 $as_echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9219 eval "$as_ac_var=no"
9222 rm -rf conftest.dSYM
9223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9224 conftest$ac_exeext conftest.$ac_ext
9226 ac_res=`eval 'as_val=${'$as_ac_var'}
9227 $as_echo "$as_val"'`
9228 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9229 $as_echo "$ac_res" >&6; }
9230 as_val=`eval 'as_val=${'$as_ac_var'}
9231 $as_echo "$as_val"'`
9232 if test "x$as_val" = x""yes; then
9233 cat >>confdefs.h <<_ACEOF
9234 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9240 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
9241 $as_echo_n "checking for working mmap... " >&6; }
9242 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9243 $as_echo_n "(cached) " >&6
9245 if test "$cross_compiling" = yes; then
9246 ac_cv_func_mmap_fixed_mapped=no
9248 cat >conftest.$ac_ext <<_ACEOF
9251 cat confdefs.h >>conftest.$ac_ext
9252 cat >>conftest.$ac_ext <<_ACEOF
9253 /* end confdefs.h. */
9254 $ac_includes_default
9255 /* malloc might have been renamed as rpl_malloc. */
9258 /* Thanks to Mike Haertel and Jim Avera for this test.
9259 Here is a matrix of mmap possibilities:
9260 mmap private not fixed
9261 mmap private fixed at somewhere currently unmapped
9262 mmap private fixed at somewhere already mapped
9263 mmap shared not fixed
9264 mmap shared fixed at somewhere currently unmapped
9265 mmap shared fixed at somewhere already mapped
9266 For private mappings, we should verify that changes cannot be read()
9267 back from the file, nor mmap's back from the file at a different
9268 address. (There have been systems where private was not correctly
9269 implemented like the infamous i386 svr4.0, and systems where the
9270 VM page cache was not coherent with the file system buffer cache
9271 like early versions of FreeBSD and possibly contemporary NetBSD.)
9272 For shared mappings, we should conversely verify that changes get
9273 propagated back to all the places they're supposed to be.
9275 Grep wants private fixed already mapped.
9276 The main things grep needs to know about mmap are:
9277 * does it exist and is it safe to write into the mmap'd area
9278 * how to use it (BSD variants) */
9281 #include <sys/mman.h>
9283 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9287 /* This mess was copied from the GNU getpagesize.h. */
9288 #ifndef HAVE_GETPAGESIZE
9289 /* Assume that all systems that can run configure have sys/param.h. */
9290 # ifndef HAVE_SYS_PARAM_H
9291 # define HAVE_SYS_PARAM_H 1
9294 # ifdef _SC_PAGESIZE
9295 # define getpagesize() sysconf(_SC_PAGESIZE)
9296 # else /* no _SC_PAGESIZE */
9297 # ifdef HAVE_SYS_PARAM_H
9298 # include <sys/param.h>
9299 # ifdef EXEC_PAGESIZE
9300 # define getpagesize() EXEC_PAGESIZE
9301 # else /* no EXEC_PAGESIZE */
9303 # define getpagesize() NBPG * CLSIZE
9306 # endif /* no CLSIZE */
9307 # else /* no NBPG */
9309 # define getpagesize() NBPC
9310 # else /* no NBPC */
9312 # define getpagesize() PAGESIZE
9313 # endif /* PAGESIZE */
9314 # endif /* no NBPC */
9315 # endif /* no NBPG */
9316 # endif /* no EXEC_PAGESIZE */
9317 # else /* no HAVE_SYS_PARAM_H */
9318 # define getpagesize() 8192 /* punt totally */
9319 # endif /* no HAVE_SYS_PARAM_H */
9320 # endif /* no _SC_PAGESIZE */
9322 #endif /* no HAVE_GETPAGESIZE */
9327 char *data, *data2, *data3;
9331 pagesize = getpagesize ();
9333 /* First, make a file with some known garbage in it. */
9334 data = (char *) malloc (pagesize);
9337 for (i = 0; i < pagesize; ++i)
9338 *(data + i) = rand ();
9340 fd = creat ("conftest.mmap", 0600);
9343 if (write (fd, data, pagesize) != pagesize)
9347 /* Next, try to mmap the file at a fixed address which already has
9348 something else allocated at it. If we can, also make sure that
9349 we see the same garbage. */
9350 fd = open ("conftest.mmap", O_RDWR);
9353 data2 = (char *) malloc (2 * pagesize);
9356 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9357 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9358 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9360 for (i = 0; i < pagesize; ++i)
9361 if (*(data + i) != *(data2 + i))
9364 /* Finally, make sure that changes to the mapped area do not
9365 percolate back to the file as seen by read(). (This is a bug on
9366 some variants of i386 svr4.0.) */
9367 for (i = 0; i < pagesize; ++i)
9368 *(data2 + i) = *(data2 + i) + 1;
9369 data3 = (char *) malloc (pagesize);
9372 if (read (fd, data3, pagesize) != pagesize)
9374 for (i = 0; i < pagesize; ++i)
9375 if (*(data + i) != *(data3 + i))
9381 rm -rf conftest$ac_exeext
9382 if { (ac_try="$ac_link"
9384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9385 *) ac_try_echo=$ac_try;;
9387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9388 $as_echo "$ac_try_echo") >&5
9389 (eval "$ac_link") 2>&5
9391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9393 { (case "(($ac_try" in
9394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395 *) ac_try_echo=$ac_try;;
9397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9398 $as_echo "$ac_try_echo") >&5
9399 (eval "$ac_try") 2>&5
9401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; }; then
9403 ac_cv_func_mmap_fixed_mapped=yes
9405 $as_echo "$as_me: program exited with status $ac_status" >&5
9406 $as_echo "$as_me: failed program was:" >&5
9407 sed 's/^/| /' conftest.$ac_ext >&5
9410 ac_cv_func_mmap_fixed_mapped=no
9412 rm -rf conftest.dSYM
9413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9418 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9419 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9420 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9422 cat >>confdefs.h <<\_ACEOF
9427 rm -rf conftest.mmap
9438 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
9439 unistd.h sys/param.h
9441 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9443 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9444 $as_echo_n "checking for $ac_header... " >&6; }
9445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9446 $as_echo_n "(cached) " >&6
9448 ac_res=`eval 'as_val=${'$as_ac_Header'}
9449 $as_echo "$as_val"'`
9450 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9451 $as_echo "$ac_res" >&6; }
9453 # Is the header compilable?
9454 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9455 $as_echo_n "checking $ac_header usability... " >&6; }
9456 cat >conftest.$ac_ext <<_ACEOF
9459 cat confdefs.h >>conftest.$ac_ext
9460 cat >>conftest.$ac_ext <<_ACEOF
9461 /* end confdefs.h. */
9462 $ac_includes_default
9463 #include <$ac_header>
9465 rm -rf conftest.$ac_objext
9466 if { (ac_try="$ac_compile"
9468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9469 *) ac_try_echo=$ac_try;;
9471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9472 $as_echo "$ac_try_echo") >&5
9473 (eval "$ac_compile") 2>conftest.er1
9475 grep -v '^ *+' conftest.er1 >conftest.err
9477 cat conftest.err >&5
9478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); } && {
9480 test -z "$ac_c_werror_flag" ||
9481 test ! -s conftest.err
9482 } && test -s conftest.$ac_objext; then
9483 ac_header_compiler=yes
9485 $as_echo "$as_me: failed program was:" >&5
9486 sed 's/^/| /' conftest.$ac_ext >&5
9488 ac_header_compiler=no
9491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9492 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9493 $as_echo "$ac_header_compiler" >&6; }
9495 # Is the header present?
9496 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9497 $as_echo_n "checking $ac_header presence... " >&6; }
9498 cat >conftest.$ac_ext <<_ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9504 #include <$ac_header>
9506 if { (ac_try="$ac_cpp conftest.$ac_ext"
9508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9509 *) ac_try_echo=$ac_try;;
9511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9512 $as_echo "$ac_try_echo") >&5
9513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9515 grep -v '^ *+' conftest.er1 >conftest.err
9517 cat conftest.err >&5
9518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); } >/dev/null && {
9520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9521 test ! -s conftest.err
9523 ac_header_preproc=yes
9525 $as_echo "$as_me: failed program was:" >&5
9526 sed 's/^/| /' conftest.$ac_ext >&5
9528 ac_header_preproc=no
9531 rm -rf conftest.err conftest.$ac_ext
9532 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9533 $as_echo "$ac_header_preproc" >&6; }
9535 # So? What about this header?
9536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9539 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9541 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9542 ac_header_preproc=yes
9545 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9546 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9548 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9550 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9552 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9554 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9556 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9560 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9561 $as_echo_n "checking for $ac_header... " >&6; }
9562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9563 $as_echo_n "(cached) " >&6
9565 eval "$as_ac_Header=\$ac_header_preproc"
9567 ac_res=`eval 'as_val=${'$as_ac_Header'}
9568 $as_echo "$as_val"'`
9569 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9570 $as_echo "$ac_res" >&6; }
9573 as_val=`eval 'as_val=${'$as_ac_Header'}
9574 $as_echo "$as_val"'`
9575 if test "x$as_val" = x""yes; then
9576 cat >>confdefs.h <<_ACEOF
9577 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9595 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
9596 strdup __argz_count __argz_stringify __argz_next
9598 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9599 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9600 $as_echo_n "checking for $ac_func... " >&6; }
9601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9602 $as_echo_n "(cached) " >&6
9604 cat >conftest.$ac_ext <<_ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9612 #define $ac_func innocuous_$ac_func
9614 /* System header to define __stub macros and hopefully few prototypes,
9615 which can conflict with char $ac_func (); below.
9616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9617 <limits.h> exists even on freestanding compilers. */
9620 # include <limits.h>
9622 # include <assert.h>
9627 /* Override any GCC internal prototype to avoid an error.
9628 Use char because int might match the return type of a GCC
9629 builtin and then its argument prototype would still apply. */
9634 /* The GNU C library defines this for functions which it implements
9635 to always fail with ENOSYS. Some functions are actually named
9636 something starting with __ and the normal name is an alias. */
9637 #if defined __stub_$ac_func || defined __stub___$ac_func
9649 rm -rf conftest.$ac_objext conftest$ac_exeext
9650 if { (ac_try="$ac_link"
9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653 *) ac_try_echo=$ac_try;;
9655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9656 $as_echo "$ac_try_echo") >&5
9657 (eval "$ac_link") 2>conftest.er1
9659 grep -v '^ *+' conftest.er1 >conftest.err
9661 cat conftest.err >&5
9662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } && {
9664 test -z "$ac_c_werror_flag" ||
9665 test ! -s conftest.err
9666 } && test -s conftest$ac_exeext && {
9667 test "$cross_compiling" = yes ||
9668 $as_test_x conftest$ac_exeext
9670 eval "$as_ac_var=yes"
9672 $as_echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9675 eval "$as_ac_var=no"
9678 rm -rf conftest.dSYM
9679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9680 conftest$ac_exeext conftest.$ac_ext
9682 ac_res=`eval 'as_val=${'$as_ac_var'}
9683 $as_echo "$as_val"'`
9684 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9685 $as_echo "$ac_res" >&6; }
9686 as_val=`eval 'as_val=${'$as_ac_var'}
9687 $as_echo "$as_val"'`
9688 if test "x$as_val" = x""yes; then
9689 cat >>confdefs.h <<_ACEOF
9690 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9697 if test $ac_cv_header_locale_h = yes; then
9698 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9699 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9700 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9701 $as_echo_n "(cached) " >&6
9703 cat >conftest.$ac_ext <<_ACEOF
9706 cat confdefs.h >>conftest.$ac_ext
9707 cat >>conftest.$ac_ext <<_ACEOF
9708 /* end confdefs.h. */
9718 rm -rf conftest.$ac_objext conftest$ac_exeext
9719 if { (ac_try="$ac_link"
9721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9722 *) ac_try_echo=$ac_try;;
9724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9725 $as_echo "$ac_try_echo") >&5
9726 (eval "$ac_link") 2>conftest.er1
9728 grep -v '^ *+' conftest.er1 >conftest.err
9730 cat conftest.err >&5
9731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } && {
9733 test -z "$ac_c_werror_flag" ||
9734 test ! -s conftest.err
9735 } && test -s conftest$ac_exeext && {
9736 test "$cross_compiling" = yes ||
9737 $as_test_x conftest$ac_exeext
9739 am_cv_val_LC_MESSAGES=yes
9741 $as_echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9744 am_cv_val_LC_MESSAGES=no
9747 rm -rf conftest.dSYM
9748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9749 conftest$ac_exeext conftest.$ac_ext
9751 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9752 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9753 if test $am_cv_val_LC_MESSAGES = yes; then
9755 cat >>confdefs.h <<\_ACEOF
9756 #define HAVE_LC_MESSAGES 1
9764 nls_cv_force_use_gnu_gettext="no"
9766 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9767 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9769 nls_cv_header_libgt=
9772 if test "${ac_cv_header_libintl_h+set}" = set; then
9773 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
9774 $as_echo_n "checking for libintl.h... " >&6; }
9775 if test "${ac_cv_header_libintl_h+set}" = set; then
9776 $as_echo_n "(cached) " >&6
9778 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
9779 $as_echo "$ac_cv_header_libintl_h" >&6; }
9781 # Is the header compilable?
9782 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
9783 $as_echo_n "checking libintl.h usability... " >&6; }
9784 cat >conftest.$ac_ext <<_ACEOF
9787 cat confdefs.h >>conftest.$ac_ext
9788 cat >>conftest.$ac_ext <<_ACEOF
9789 /* end confdefs.h. */
9790 $ac_includes_default
9791 #include <libintl.h>
9793 rm -rf conftest.$ac_objext
9794 if { (ac_try="$ac_compile"
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9800 $as_echo "$ac_try_echo") >&5
9801 (eval "$ac_compile") 2>conftest.er1
9803 grep -v '^ *+' conftest.er1 >conftest.err
9805 cat conftest.err >&5
9806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } && {
9808 test -z "$ac_c_werror_flag" ||
9809 test ! -s conftest.err
9810 } && test -s conftest.$ac_objext; then
9811 ac_header_compiler=yes
9813 $as_echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9816 ac_header_compiler=no
9819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9820 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9821 $as_echo "$ac_header_compiler" >&6; }
9823 # Is the header present?
9824 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
9825 $as_echo_n "checking libintl.h presence... " >&6; }
9826 cat >conftest.$ac_ext <<_ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9832 #include <libintl.h>
9834 if { (ac_try="$ac_cpp conftest.$ac_ext"
9836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837 *) ac_try_echo=$ac_try;;
9839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9840 $as_echo "$ac_try_echo") >&5
9841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9843 grep -v '^ *+' conftest.er1 >conftest.err
9845 cat conftest.err >&5
9846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } >/dev/null && {
9848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9849 test ! -s conftest.err
9851 ac_header_preproc=yes
9853 $as_echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9856 ac_header_preproc=no
9859 rm -rf conftest.err conftest.$ac_ext
9860 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9861 $as_echo "$ac_header_preproc" >&6; }
9863 # So? What about this header?
9864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9866 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9867 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9868 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
9869 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
9870 ac_header_preproc=yes
9873 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
9874 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
9875 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
9876 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
9877 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
9878 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
9879 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
9880 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9881 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
9882 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
9883 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
9884 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
9888 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
9889 $as_echo_n "checking for libintl.h... " >&6; }
9890 if test "${ac_cv_header_libintl_h+set}" = set; then
9891 $as_echo_n "(cached) " >&6
9893 ac_cv_header_libintl_h=$ac_header_preproc
9895 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
9896 $as_echo "$ac_cv_header_libintl_h" >&6; }
9899 if test "x$ac_cv_header_libintl_h" = x""yes; then
9900 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
9901 $as_echo_n "checking for dgettext in libc... " >&6; }
9902 if test "${gt_cv_func_dgettext_libc+set}" = set; then
9903 $as_echo_n "(cached) " >&6
9905 cat >conftest.$ac_ext <<_ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h. */
9911 #include <libintl.h>
9915 return (int) dgettext ("","")
9920 rm -rf conftest.$ac_objext conftest$ac_exeext
9921 if { (ac_try="$ac_link"
9923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924 *) ac_try_echo=$ac_try;;
9926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9927 $as_echo "$ac_try_echo") >&5
9928 (eval "$ac_link") 2>conftest.er1
9930 grep -v '^ *+' conftest.er1 >conftest.err
9932 cat conftest.err >&5
9933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } && {
9935 test -z "$ac_c_werror_flag" ||
9936 test ! -s conftest.err
9937 } && test -s conftest$ac_exeext && {
9938 test "$cross_compiling" = yes ||
9939 $as_test_x conftest$ac_exeext
9941 gt_cv_func_dgettext_libc=yes
9943 $as_echo "$as_me: failed program was:" >&5
9944 sed 's/^/| /' conftest.$ac_ext >&5
9946 gt_cv_func_dgettext_libc=no
9949 rm -rf conftest.dSYM
9950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9951 conftest$ac_exeext conftest.$ac_ext
9953 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
9954 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
9956 if test "$gt_cv_func_dgettext_libc" != "yes"; then
9957 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
9958 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
9959 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
9960 $as_echo_n "(cached) " >&6
9962 ac_check_lib_save_LIBS=$LIBS
9964 cat >conftest.$ac_ext <<_ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9971 /* Override any GCC internal prototype to avoid an error.
9972 Use char because int might match the return type of a GCC
9973 builtin and then its argument prototype would still apply. */
9977 char bindtextdomain ();
9981 return bindtextdomain ();
9986 rm -rf conftest.$ac_objext conftest$ac_exeext
9987 if { (ac_try="$ac_link"
9989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9990 *) ac_try_echo=$ac_try;;
9992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9993 $as_echo "$ac_try_echo") >&5
9994 (eval "$ac_link") 2>conftest.er1
9996 grep -v '^ *+' conftest.er1 >conftest.err
9998 cat conftest.err >&5
9999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } && {
10001 test -z "$ac_c_werror_flag" ||
10002 test ! -s conftest.err
10003 } && test -s conftest$ac_exeext && {
10004 test "$cross_compiling" = yes ||
10005 $as_test_x conftest$ac_exeext
10007 ac_cv_lib_intl_bindtextdomain=yes
10009 $as_echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10012 ac_cv_lib_intl_bindtextdomain=no
10015 rm -rf conftest.dSYM
10016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10017 conftest$ac_exeext conftest.$ac_ext
10018 LIBS=$ac_check_lib_save_LIBS
10020 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
10021 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
10022 if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then
10023 { $as_echo "$as_me:$LINENO: checking for dgettext in libintl" >&5
10024 $as_echo_n "checking for dgettext in libintl... " >&6; }
10025 if test "${gt_cv_func_dgettext_libintl+set}" = set; then
10026 $as_echo_n "(cached) " >&6
10028 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
10029 $as_echo_n "checking for dgettext in -lintl... " >&6; }
10030 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
10031 $as_echo_n "(cached) " >&6
10033 ac_check_lib_save_LIBS=$LIBS
10034 LIBS="-lintl $LIBS"
10035 cat >conftest.$ac_ext <<_ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10042 /* Override any GCC internal prototype to avoid an error.
10043 Use char because int might match the return type of a GCC
10044 builtin and then its argument prototype would still apply. */
10052 return dgettext ();
10057 rm -rf conftest.$ac_objext conftest$ac_exeext
10058 if { (ac_try="$ac_link"
10059 case "(($ac_try" in
10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061 *) ac_try_echo=$ac_try;;
10063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10064 $as_echo "$ac_try_echo") >&5
10065 (eval "$ac_link") 2>conftest.er1
10067 grep -v '^ *+' conftest.er1 >conftest.err
10068 rm -rf conftest.er1
10069 cat conftest.err >&5
10070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); } && {
10072 test -z "$ac_c_werror_flag" ||
10073 test ! -s conftest.err
10074 } && test -s conftest$ac_exeext && {
10075 test "$cross_compiling" = yes ||
10076 $as_test_x conftest$ac_exeext
10078 ac_cv_lib_intl_dgettext=yes
10080 $as_echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10083 ac_cv_lib_intl_dgettext=no
10086 rm -rf conftest.dSYM
10087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10088 conftest$ac_exeext conftest.$ac_ext
10089 LIBS=$ac_check_lib_save_LIBS
10091 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
10092 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
10093 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
10094 gt_cv_func_dgettext_libintl=yes
10096 gt_cv_func_dgettext_libintl=no
10100 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libintl" >&5
10101 $as_echo "$gt_cv_func_dgettext_libintl" >&6; }
10106 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
10107 LIBS="$LIBS -lintl";
10110 if test "$gt_cv_func_dgettext_libc" = "yes" \
10111 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
10113 cat >>confdefs.h <<\_ACEOF
10114 #define HAVE_GETTEXT 1
10117 # Extract the first word of "msgfmt", so it can be a program name with args.
10118 set dummy msgfmt; ac_word=$2
10119 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10120 $as_echo_n "checking for $ac_word... " >&6; }
10121 if test "${ac_cv_path_MSGFMT+set}" = set; then
10122 $as_echo_n "(cached) " >&6
10126 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10130 for ac_dir in $PATH; do
10131 test -z "$ac_dir" && ac_dir=.
10132 if test -f $ac_dir/$ac_word; then
10133 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
10134 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
10140 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
10144 MSGFMT="$ac_cv_path_MSGFMT"
10145 if test -n "$MSGFMT"; then
10146 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
10147 $as_echo "$MSGFMT" >&6; }
10149 { $as_echo "$as_me:$LINENO: result: no" >&5
10150 $as_echo "no" >&6; }
10152 if test "$MSGFMT" != "no"; then
10154 for ac_func in dcgettext
10156 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10157 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10158 $as_echo_n "checking for $ac_func... " >&6; }
10159 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10160 $as_echo_n "(cached) " >&6
10162 cat >conftest.$ac_ext <<_ACEOF
10165 cat confdefs.h >>conftest.$ac_ext
10166 cat >>conftest.$ac_ext <<_ACEOF
10167 /* end confdefs.h. */
10168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10170 #define $ac_func innocuous_$ac_func
10172 /* System header to define __stub macros and hopefully few prototypes,
10173 which can conflict with char $ac_func (); below.
10174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10175 <limits.h> exists even on freestanding compilers. */
10178 # include <limits.h>
10180 # include <assert.h>
10185 /* Override any GCC internal prototype to avoid an error.
10186 Use char because int might match the return type of a GCC
10187 builtin and then its argument prototype would still apply. */
10192 /* The GNU C library defines this for functions which it implements
10193 to always fail with ENOSYS. Some functions are actually named
10194 something starting with __ and the normal name is an alias. */
10195 #if defined __stub_$ac_func || defined __stub___$ac_func
10202 return $ac_func ();
10207 rm -rf conftest.$ac_objext conftest$ac_exeext
10208 if { (ac_try="$ac_link"
10209 case "(($ac_try" in
10210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211 *) ac_try_echo=$ac_try;;
10213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10214 $as_echo "$ac_try_echo") >&5
10215 (eval "$ac_link") 2>conftest.er1
10217 grep -v '^ *+' conftest.er1 >conftest.err
10218 rm -rf conftest.er1
10219 cat conftest.err >&5
10220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); } && {
10222 test -z "$ac_c_werror_flag" ||
10223 test ! -s conftest.err
10224 } && test -s conftest$ac_exeext && {
10225 test "$cross_compiling" = yes ||
10226 $as_test_x conftest$ac_exeext
10228 eval "$as_ac_var=yes"
10230 $as_echo "$as_me: failed program was:" >&5
10231 sed 's/^/| /' conftest.$ac_ext >&5
10233 eval "$as_ac_var=no"
10236 rm -rf conftest.dSYM
10237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10238 conftest$ac_exeext conftest.$ac_ext
10240 ac_res=`eval 'as_val=${'$as_ac_var'}
10241 $as_echo "$as_val"'`
10242 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10243 $as_echo "$ac_res" >&6; }
10244 as_val=`eval 'as_val=${'$as_ac_var'}
10245 $as_echo "$as_val"'`
10246 if test "x$as_val" = x""yes; then
10247 cat >>confdefs.h <<_ACEOF
10248 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10254 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10255 set dummy gmsgfmt; ac_word=$2
10256 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10257 $as_echo_n "checking for $ac_word... " >&6; }
10258 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10259 $as_echo_n "(cached) " >&6
10263 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10267 for as_dir in $PATH
10270 test -z "$as_dir" && as_dir=.
10271 for ac_exec_ext in '' $ac_executable_extensions; do
10272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10273 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10274 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10281 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10285 GMSGFMT=$ac_cv_path_GMSGFMT
10286 if test -n "$GMSGFMT"; then
10287 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10288 $as_echo "$GMSGFMT" >&6; }
10290 { $as_echo "$as_me:$LINENO: result: no" >&5
10291 $as_echo "no" >&6; }
10295 # Extract the first word of "xgettext", so it can be a program name with args.
10296 set dummy xgettext; ac_word=$2
10297 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10298 $as_echo_n "checking for $ac_word... " >&6; }
10299 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10300 $as_echo_n "(cached) " >&6
10302 case "$XGETTEXT" in
10304 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10307 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10308 for ac_dir in $PATH; do
10309 test -z "$ac_dir" && ac_dir=.
10310 if test -f $ac_dir/$ac_word; then
10311 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
10312 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
10318 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10322 XGETTEXT="$ac_cv_path_XGETTEXT"
10323 if test -n "$XGETTEXT"; then
10324 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10325 $as_echo "$XGETTEXT" >&6; }
10327 { $as_echo "$as_me:$LINENO: result: no" >&5
10328 $as_echo "no" >&6; }
10331 cat >conftest.$ac_ext <<_ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h. */
10341 extern int _nl_msg_cat_cntr;
10342 return _nl_msg_cat_cntr
10347 rm -rf conftest.$ac_objext conftest$ac_exeext
10348 if { (ac_try="$ac_link"
10349 case "(($ac_try" in
10350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10351 *) ac_try_echo=$ac_try;;
10353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10354 $as_echo "$ac_try_echo") >&5
10355 (eval "$ac_link") 2>conftest.er1
10357 grep -v '^ *+' conftest.er1 >conftest.err
10358 rm -rf conftest.er1
10359 cat conftest.err >&5
10360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); } && {
10362 test -z "$ac_c_werror_flag" ||
10363 test ! -s conftest.err
10364 } && test -s conftest$ac_exeext && {
10365 test "$cross_compiling" = yes ||
10366 $as_test_x conftest$ac_exeext
10371 $as_echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10378 rm -rf conftest.dSYM
10379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10380 conftest$ac_exeext conftest.$ac_ext
10385 # Added by Martin Baulig 12/15/98 for libc5 systems
10386 if test "$gt_cv_func_dgettext_libc" != "yes" \
10387 && test "$gt_cv_func_dgettext_libintl" = "yes"; then
10389 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
10396 if test "$CATOBJEXT" = "NONE"; then
10397 nls_cv_use_gnu_gettext=yes
10401 if test "$nls_cv_use_gnu_gettext" != "yes"; then
10403 cat >>confdefs.h <<\_ACEOF
10404 #define ENABLE_NLS 1
10411 if test "$XGETTEXT" != ":"; then
10412 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
10415 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10416 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
10421 # We need to process the po/ directory.
10424 ac_config_commands="$ac_config_commands default-2"
10427 for lang in $ALL_LINGUAS; do
10428 GMOFILES="$GMOFILES $lang.gmo"
10429 POFILES="$POFILES $lang.po"
10444 if test "x$CATOBJEXT" != "x"; then
10445 if test "x$ALL_LINGUAS" = "x"; then
10448 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10449 $as_echo_n "checking for catalogs to be installed... " >&6; }
10451 for lang in ${LINGUAS=$ALL_LINGUAS}; do
10452 case "$ALL_LINGUAS" in
10453 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
10456 LINGUAS=$NEW_LINGUAS
10457 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
10458 $as_echo "$LINGUAS" >&6; }
10461 if test -n "$LINGUAS"; then
10462 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
10466 test -d po || mkdir po
10467 if test "$CATOBJEXT" = ".cat"; then
10468 if test "${ac_cv_header_linux_version_h+set}" = set; then
10469 { $as_echo "$as_me:$LINENO: checking for linux/version.h" >&5
10470 $as_echo_n "checking for linux/version.h... " >&6; }
10471 if test "${ac_cv_header_linux_version_h+set}" = set; then
10472 $as_echo_n "(cached) " >&6
10474 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
10475 $as_echo "$ac_cv_header_linux_version_h" >&6; }
10477 # Is the header compilable?
10478 { $as_echo "$as_me:$LINENO: checking linux/version.h usability" >&5
10479 $as_echo_n "checking linux/version.h usability... " >&6; }
10480 cat >conftest.$ac_ext <<_ACEOF
10483 cat confdefs.h >>conftest.$ac_ext
10484 cat >>conftest.$ac_ext <<_ACEOF
10485 /* end confdefs.h. */
10486 $ac_includes_default
10487 #include <linux/version.h>
10489 rm -rf conftest.$ac_objext
10490 if { (ac_try="$ac_compile"
10491 case "(($ac_try" in
10492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10493 *) ac_try_echo=$ac_try;;
10495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10496 $as_echo "$ac_try_echo") >&5
10497 (eval "$ac_compile") 2>conftest.er1
10499 grep -v '^ *+' conftest.er1 >conftest.err
10500 rm -rf conftest.er1
10501 cat conftest.err >&5
10502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); } && {
10504 test -z "$ac_c_werror_flag" ||
10505 test ! -s conftest.err
10506 } && test -s conftest.$ac_objext; then
10507 ac_header_compiler=yes
10509 $as_echo "$as_me: failed program was:" >&5
10510 sed 's/^/| /' conftest.$ac_ext >&5
10512 ac_header_compiler=no
10515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10516 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10517 $as_echo "$ac_header_compiler" >&6; }
10519 # Is the header present?
10520 { $as_echo "$as_me:$LINENO: checking linux/version.h presence" >&5
10521 $as_echo_n "checking linux/version.h presence... " >&6; }
10522 cat >conftest.$ac_ext <<_ACEOF
10525 cat confdefs.h >>conftest.$ac_ext
10526 cat >>conftest.$ac_ext <<_ACEOF
10527 /* end confdefs.h. */
10528 #include <linux/version.h>
10530 if { (ac_try="$ac_cpp conftest.$ac_ext"
10531 case "(($ac_try" in
10532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10533 *) ac_try_echo=$ac_try;;
10535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10536 $as_echo "$ac_try_echo") >&5
10537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10539 grep -v '^ *+' conftest.er1 >conftest.err
10540 rm -rf conftest.er1
10541 cat conftest.err >&5
10542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); } >/dev/null && {
10544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10545 test ! -s conftest.err
10547 ac_header_preproc=yes
10549 $as_echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10552 ac_header_preproc=no
10555 rm -rf conftest.err conftest.$ac_ext
10556 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10557 $as_echo "$ac_header_preproc" >&6; }
10559 # So? What about this header?
10560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10562 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
10563 $as_echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10564 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
10565 $as_echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
10566 ac_header_preproc=yes
10569 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
10570 $as_echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
10571 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
10572 $as_echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
10573 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
10574 $as_echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
10575 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
10576 $as_echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
10577 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
10578 $as_echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
10579 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
10580 $as_echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
10584 { $as_echo "$as_me:$LINENO: checking for linux/version.h" >&5
10585 $as_echo_n "checking for linux/version.h... " >&6; }
10586 if test "${ac_cv_header_linux_version_h+set}" = set; then
10587 $as_echo_n "(cached) " >&6
10589 ac_cv_header_linux_version_h=$ac_header_preproc
10591 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
10592 $as_echo "$ac_cv_header_linux_version_h" >&6; }
10595 if test "x$ac_cv_header_linux_version_h" = x""yes; then
10603 sed -e '/^#/d' $srcdir/po/$msgformat-msg.sed > po/po2msg.sed
10608 # jwz: fuck this! it puts hardcoded pathnames into the generated Makefiles!
10610 # if test -n "$ac_aux_dir"; then
10611 # MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
10613 if test -z "$MKINSTALLDIRS"; then
10614 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10617 # jwz: you know what, screw it. Let's just use the version that I
10618 # already computed in configure.in, instead of this version that came
10619 # with the i18n crud, ok?
10620 MKINSTALLDIRS="$INSTALL_DIRS"
10625 test -d po || mkdir po
10626 if test "x$srcdir" != "x."; then
10627 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
10628 posrcprefix="$srcdir/"
10630 posrcprefix="../$srcdir/"
10636 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
10637 < $srcdir/po/POTFILES.in > po/POTFILES
10639 MKINSTALLDIRS="$INSTALL_DIRS"
10642 ###############################################################################
10644 # Check for -lXmu (some fucked up vendors don't ship it...)
10646 ###############################################################################
10650 ac_save_CPPFLAGS="$CPPFLAGS"
10651 if test \! -z "$includedir" ; then
10652 CPPFLAGS="$CPPFLAGS -I$includedir"
10654 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10655 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10656 { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Error.h" >&5
10657 $as_echo_n "checking for X11/Xmu/Error.h... " >&6; }
10658 if test "${ac_cv_header_X11_Xmu_Error_h+set}" = set; then
10659 $as_echo_n "(cached) " >&6
10661 cat >conftest.$ac_ext <<_ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10667 #include <stdlib.h>
10669 #include <X11/Intrinsic.h>
10671 #include <X11/Xmu/Error.h>
10673 rm -rf conftest.$ac_objext
10674 if { (ac_try="$ac_compile"
10675 case "(($ac_try" in
10676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10677 *) ac_try_echo=$ac_try;;
10679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10680 $as_echo "$ac_try_echo") >&5
10681 (eval "$ac_compile") 2>conftest.er1
10683 grep -v '^ *+' conftest.er1 >conftest.err
10684 rm -rf conftest.er1
10685 cat conftest.err >&5
10686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); } && {
10688 test -z "$ac_c_werror_flag" ||
10689 test ! -s conftest.err
10690 } && test -s conftest.$ac_objext; then
10691 ac_cv_header_X11_Xmu_Error_h=yes
10693 $as_echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10696 ac_cv_header_X11_Xmu_Error_h=no
10699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10701 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xmu_Error_h" >&5
10702 $as_echo "$ac_cv_header_X11_Xmu_Error_h" >&6; }
10703 if test "x$ac_cv_header_X11_Xmu_Error_h" = x""yes; then
10708 CPPFLAGS="$ac_save_CPPFLAGS"
10709 if test "$have_xmu" = no ; then
10710 XMU_SRCS='$(UTILS_SRC)/xmu.c'
10711 XMU_OBJS='$(UTILS_BIN)/xmu.o'
10717 cat >>confdefs.h <<\_ACEOF
10724 ###############################################################################
10726 # Check for the SunOS 4.1.x _get_wmShellWidgetClass bug.
10727 # See comp.windows.x FAQ question 124. The right fix is to
10728 # get OpenWindows 3.0 patches 100512-02 and 100573-03.
10730 ###############################################################################
10732 if test "$have_xmu" = yes ; then
10735 { $as_echo "$as_me:$LINENO: checking for the SunOS 4.1.x _get_wmShellWidgetClass bug" >&5
10736 $as_echo_n "checking for the SunOS 4.1.x _get_wmShellWidgetClass bug... " >&6; }
10737 if test "${ac_cv_sunos_xmu_bug+set}" = set; then
10738 $as_echo_n "(cached) " >&6
10740 ac_save_LDFLAGS="$LDFLAGS"
10741 if test \! -z "$x_libraries" ; then
10742 LDFLAGS="$LDFLAGS -L$x_libraries"
10744 # Note: this trick never works! (Generally.)
10745 # We're only getting away with using AC_TRY_LINK
10746 # with X libraries because we know it's SunOS.
10747 LDFLAGS="$LDFLAGS -lXmu -lXt -lX11 -lXext -lm"
10748 cat >conftest.$ac_ext <<_ACEOF
10751 cat confdefs.h >>conftest.$ac_ext
10752 cat >>conftest.$ac_ext <<_ACEOF
10753 /* end confdefs.h. */
10763 rm -rf conftest.$ac_objext conftest$ac_exeext
10764 if { (ac_try="$ac_link"
10765 case "(($ac_try" in
10766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767 *) ac_try_echo=$ac_try;;
10769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10770 $as_echo "$ac_try_echo") >&5
10771 (eval "$ac_link") 2>conftest.er1
10773 grep -v '^ *+' conftest.er1 >conftest.err
10774 rm -rf conftest.er1
10775 cat conftest.err >&5
10776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } && {
10778 test -z "$ac_c_werror_flag" ||
10779 test ! -s conftest.err
10780 } && test -s conftest$ac_exeext && {
10781 test "$cross_compiling" = yes ||
10782 $as_test_x conftest$ac_exeext
10784 ac_cv_sunos_xmu_bug=no
10786 $as_echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10789 ac_cv_sunos_xmu_bug=yes
10792 rm -rf conftest.dSYM
10793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10794 conftest$ac_exeext conftest.$ac_ext
10795 LDFLAGS="$ac_save_LDFLAGS"
10797 { $as_echo "$as_me:$LINENO: result: $ac_cv_sunos_xmu_bug" >&5
10798 $as_echo "$ac_cv_sunos_xmu_bug" >&6; }
10799 if test "$ac_cv_sunos_xmu_bug" = yes ; then
10800 { $as_echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
10801 $as_echo_n "checking whether the compiler understands -static... " >&6; }
10802 if test "${ac_cv_ld_static+set}" = set; then
10803 $as_echo_n "(cached) " >&6
10805 ac_save_LDFLAGS="$LDFLAGS"
10806 LDFLAGS="$LDFLAGS -static"
10807 cat >conftest.$ac_ext <<_ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10822 rm -rf conftest.$ac_objext conftest$ac_exeext
10823 if { (ac_try="$ac_link"
10824 case "(($ac_try" in
10825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10826 *) ac_try_echo=$ac_try;;
10828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10829 $as_echo "$ac_try_echo") >&5
10830 (eval "$ac_link") 2>conftest.er1
10832 grep -v '^ *+' conftest.er1 >conftest.err
10833 rm -rf conftest.er1
10834 cat conftest.err >&5
10835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); } && {
10837 test -z "$ac_c_werror_flag" ||
10838 test ! -s conftest.err
10839 } && test -s conftest$ac_exeext && {
10840 test "$cross_compiling" = yes ||
10841 $as_test_x conftest$ac_exeext
10843 ac_cv_ld_static=yes
10845 $as_echo "$as_me: failed program was:" >&5
10846 sed 's/^/| /' conftest.$ac_ext >&5
10851 rm -rf conftest.dSYM
10852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10853 conftest$ac_exeext conftest.$ac_ext
10854 LDFLAGS="$ac_save_LDFLAGS"
10856 { $as_echo "$as_me:$LINENO: result: $ac_cv_ld_static" >&5
10857 $as_echo "$ac_cv_ld_static" >&6; }
10858 if test "$ac_cv_ld_static" = yes ; then
10859 LDFLAGS="$LDFLAGS -static"
10861 LDFLAGS="$LDFLAGS -Bstatic"
10869 ###############################################################################
10871 # Handle the --with-hackdir option
10873 ###############################################################################
10876 with_hackdir_req=unspecified
10878 # Check whether --with-hackdir was given.
10879 if test "${with_hackdir+set}" = set; then
10880 withval=$with_hackdir; with_hackdir="$withval"; with_hackdir_req="$withval"
10886 if test x"$with_hackdir" = xyes; then
10887 HACKDIR='${libexecdir}/xscreensaver'
10888 elif test x"$with_hackdir" = xno; then
10889 HACKDIR='${bindir}'
10891 HACKDIR=$with_hackdir
10894 # canonicalize slashes.
10895 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
10897 # Expand HACKDIR as HACKDIR_FULL
10898 HACKDIR_FULL=`eval eval eval eval eval eval eval eval eval echo $HACKDIR`
10900 # This option used to be called --enable-subdir; make sure that is no longer
10901 # used, since configure brain-damagedly ignores unknown --enable options.
10904 # Check whether --enable-subdir was given.
10905 if test "${enable_subdir+set}" = set; then
10906 enableval=$enable_subdir; obsolete_enable=yes
10909 if test -n "$obsolete_enable"; then
10910 echo "error: the --enable-subdir option has been replaced with"
10911 echo " the new --with-hackdir option; see \`configure --help'"
10912 echo " for more information."
10917 ###############################################################################
10919 # Handle the --with-configdir option
10920 # Help for --with-x-app-defaults option added.
10922 ###############################################################################
10925 with_configdir_req=unspecified
10927 # Check whether --with-configdir was given.
10928 if test "${with_configdir+set}" = set; then
10929 withval=$with_configdir; with_configdir="$withval"; with_configdir_req="$withval"
10935 if test x"$with_configdir" = xyes; then
10936 HACK_CONF_DIR='${datadir}/xscreensaver/config'
10937 elif test x"$with_configdir" = xno; then
10938 echo "error: must be yes, or a pathname: --with-configdir=$with_configdir"
10941 # there must be a better way than this...
10942 if test -z "`echo $with_configdir | sed 's@^/.*@@'`" ; then
10944 HACK_CONF_DIR=$with_configdir
10947 HACK_CONF_DIR="\${exec_prefix}$with_configdir"
10954 ###############################################################################
10956 # Check for the SGI SCREEN_SAVER server extension.
10958 ###############################################################################
10961 #with_sgi_req=unspecified
10962 #AC_ARG_WITH(sgi-ext,
10963 #[Except where noted, all of the --with options below can also take a
10964 #directory argument: for example, `--with-motif=/opt/Motif'. That would
10965 #cause /opt/Motif/include/ to be added to the -I list, and /opt/Motif/lib/
10966 #to be added to the -L list, assuming those directories exist.
10968 #By default, support for each of these options will be built in, if the
10969 #relevant library routines exist. At run time, they will then be used
10970 #only if the X server being used supports them. Each --with option has
10971 #a corresponding --without option, to override building support for them
10974 #Screen blanking and idle-detection options:
10976 # --with-sgi-ext Include support for the SGI SCREEN_SAVER extension.],
10977 # [with_sgi="$withval"; with_sgi_req="$withval"],[with_sgi=yes])
10979 #HANDLE_X_PATH_ARG(with_sgi, --with-sgi-ext, SGI SCREEN_SAVER)
10981 #if test "$with_sgi" = yes; then
10982 # AC_CHECK_X_HEADER(X11/extensions/XScreenSaver.h,
10984 # AC_DEFINE(HAVE_SGI_SAVER_EXTENSION)],,
10985 # [#include <X11/Xlib.h>])
10987 #elif test "$with_sgi" != no; then
10988 # echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
10993 ###############################################################################
10995 # Check for the XIDLE server extension.
10997 ###############################################################################
11000 #with_xidle_req=unspecified
11001 #AC_ARG_WITH(xidle-ext,
11002 #[ --with-xidle-ext Include support for the XIDLE extension.],
11003 # [with_xidle="$withval"; with_xidle_req="$withval"],[with_xidle=yes])
11005 #HANDLE_X_PATH_ARG(with_xidle, --with-xidle-ext, XIDLE)
11007 #if test "$with_xidle" = yes; then
11008 # AC_CHECK_X_HEADER(X11/extensions/xidle.h,
11010 # AC_DEFINE(HAVE_XIDLE_EXTENSION)],,
11011 # [#include <X11/Xlib.h>])
11012 #elif test "$with_xidle" != no; then
11013 # echo "error: must be yes or no: --with-xidle-ext=$with_xidle"
11018 ###############################################################################
11020 # Check for the SGI-VIDEO-CONTROL server extension.
11022 ###############################################################################
11025 #with_sgivc_req=unspecified
11026 #AC_ARG_WITH(sgivc-ext,
11027 #[ --with-sgivc-ext Include support for the SGI-VIDEO-CONTROL extension.],
11028 # [with_sgivc="$withval"; with_sgivc_req="$withval"],[with_sgivc=yes])
11030 #HANDLE_X_PATH_ARG(with_sgivc, --with-sgivc-ext, SGI-VIDEO-CONTROL)
11032 #if test "$with_sgivc" = yes; then
11034 # # first check for XSGIvc.h
11035 # AC_CHECK_X_HEADER(X11/extensions/XSGIvc.h, [have_sgivc=yes],,
11036 # [#include <X11/Xlib.h>])
11038 # # if that succeeded, then check for the -lXsgivc
11039 # if test "$have_sgivc" = yes; then
11041 # AC_CHECK_X_LIB(Xsgivc, XSGIvcQueryGammaMap,
11042 # [have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"], [true],
11046 # # if that succeeded, then we've really got it.
11047 # if test "$have_sgivc" = yes; then
11048 # AC_DEFINE(HAVE_SGI_VC_EXTENSION)
11051 #elif test "$with_sgivc" != no; then
11052 # echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
11057 ###############################################################################
11059 # Check for the DPMS server extension.
11061 ###############################################################################
11064 with_dpms_req=unspecified
11066 # Check whether --with-dpms-ext was given.
11067 if test "${with_dpms_ext+set}" = set; then
11068 withval=$with_dpms_ext; with_dpms="$withval"; with_dpms_req="$withval"
11075 case "$with_dpms" in
11080 { $as_echo "$as_me:$LINENO: checking for DPMS headers" >&5
11081 $as_echo_n "checking for DPMS headers... " >&6; }
11082 d=$with_dpms/include
11083 if test -d $d; then
11084 X_CFLAGS="-I$d $X_CFLAGS"
11085 { $as_echo "$as_me:$LINENO: result: $d" >&5
11086 $as_echo "$d" >&6; }
11088 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11089 $as_echo "not found ($d: no such directory)" >&6; }
11092 { $as_echo "$as_me:$LINENO: checking for DPMS libs" >&5
11093 $as_echo_n "checking for DPMS libs... " >&6; }
11095 if test -d $d; then
11096 X_LIBS="-L$d $X_LIBS"
11097 { $as_echo "$as_me:$LINENO: result: $d" >&5
11098 $as_echo "$d" >&6; }
11100 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11101 $as_echo "not found ($d: no such directory)" >&6; }
11104 # replace the directory string with "yes".
11105 with_dpms_req="yes"
11106 with_dpms=$with_dpms_req
11111 echo "error: argument to --with-dpms-ext must be \"yes\", \"no\", or a directory."
11112 echo " If it is a directory, then \`DIR/include' will be added to"
11113 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11119 if test "$with_dpms" = yes; then
11121 # first check for dpms.h
11123 ac_save_CPPFLAGS="$CPPFLAGS"
11124 if test \! -z "$includedir" ; then
11125 CPPFLAGS="$CPPFLAGS -I$includedir"
11127 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11128 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11129 { $as_echo "$as_me:$LINENO: checking for X11/extensions/dpms.h" >&5
11130 $as_echo_n "checking for X11/extensions/dpms.h... " >&6; }
11131 if test "${ac_cv_header_X11_extensions_dpms_h+set}" = set; then
11132 $as_echo_n "(cached) " >&6
11134 cat >conftest.$ac_ext <<_ACEOF
11137 cat confdefs.h >>conftest.$ac_ext
11138 cat >>conftest.$ac_ext <<_ACEOF
11139 /* end confdefs.h. */
11140 #include <X11/Xlib.h>
11141 #include <X11/Xmd.h>
11143 #include <X11/extensions/dpms.h>
11145 rm -rf conftest.$ac_objext
11146 if { (ac_try="$ac_compile"
11147 case "(($ac_try" in
11148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11152 $as_echo "$ac_try_echo") >&5
11153 (eval "$ac_compile") 2>conftest.er1
11155 grep -v '^ *+' conftest.er1 >conftest.err
11156 rm -rf conftest.er1
11157 cat conftest.err >&5
11158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); } && {
11160 test -z "$ac_c_werror_flag" ||
11161 test ! -s conftest.err
11162 } && test -s conftest.$ac_objext; then
11163 ac_cv_header_X11_extensions_dpms_h=yes
11165 $as_echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.$ac_ext >&5
11168 ac_cv_header_X11_extensions_dpms_h=no
11171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11173 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_dpms_h" >&5
11174 $as_echo "$ac_cv_header_X11_extensions_dpms_h" >&6; }
11175 if test "x$ac_cv_header_X11_extensions_dpms_h" = x""yes; then
11180 CPPFLAGS="$ac_save_CPPFLAGS"
11182 # if that succeeded, then check for the DPMS code in the libraries
11183 if test "$have_dpms" = yes; then
11185 # first look in -lXext (this is where it is with XFree86 4.0)
11188 ac_save_CPPFLAGS="$CPPFLAGS"
11189 ac_save_LDFLAGS="$LDFLAGS"
11190 # ac_save_LIBS="$LIBS"
11192 if test \! -z "$includedir" ; then
11193 CPPFLAGS="$CPPFLAGS -I$includedir"
11195 # note: $X_CFLAGS includes $x_includes
11196 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11198 if test \! -z "$libdir" ; then
11199 LDFLAGS="$LDFLAGS -L$libdir"
11201 # note: $X_LIBS includes $x_libraries
11202 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11204 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11205 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11206 { $as_echo "$as_me:$LINENO: checking for DPMSInfo in -lXext" >&5
11207 $as_echo_n "checking for DPMSInfo in -lXext... " >&6; }
11208 if test "${ac_cv_lib_Xext_DPMSInfo+set}" = set; then
11209 $as_echo_n "(cached) " >&6
11211 ac_check_lib_save_LIBS=$LIBS
11212 LIBS="-lXext -lXext -lX11 $LIBS"
11213 cat >conftest.$ac_ext <<_ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11220 /* Override any GCC internal prototype to avoid an error.
11221 Use char because int might match the return type of a GCC
11222 builtin and then its argument prototype would still apply. */
11230 return DPMSInfo ();
11235 rm -rf conftest.$ac_objext conftest$ac_exeext
11236 if { (ac_try="$ac_link"
11237 case "(($ac_try" in
11238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11239 *) ac_try_echo=$ac_try;;
11241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11242 $as_echo "$ac_try_echo") >&5
11243 (eval "$ac_link") 2>conftest.er1
11245 grep -v '^ *+' conftest.er1 >conftest.err
11246 rm -rf conftest.er1
11247 cat conftest.err >&5
11248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } && {
11250 test -z "$ac_c_werror_flag" ||
11251 test ! -s conftest.err
11252 } && test -s conftest$ac_exeext && {
11253 test "$cross_compiling" = yes ||
11254 $as_test_x conftest$ac_exeext
11256 ac_cv_lib_Xext_DPMSInfo=yes
11258 $as_echo "$as_me: failed program was:" >&5
11259 sed 's/^/| /' conftest.$ac_ext >&5
11261 ac_cv_lib_Xext_DPMSInfo=no
11264 rm -rf conftest.dSYM
11265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11266 conftest$ac_exeext conftest.$ac_ext
11267 LIBS=$ac_check_lib_save_LIBS
11269 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_DPMSInfo" >&5
11270 $as_echo "$ac_cv_lib_Xext_DPMSInfo" >&6; }
11271 if test "x$ac_cv_lib_Xext_DPMSInfo" = x""yes; then
11277 CPPFLAGS="$ac_save_CPPFLAGS"
11278 LDFLAGS="$ac_save_LDFLAGS"
11279 # LIBS="$ac_save_LIBS"
11282 # if that failed, look in -lXdpms (this is where it was in XFree86 3.x)
11283 if test "$have_dpms" = no; then
11285 ac_save_CPPFLAGS="$CPPFLAGS"
11286 ac_save_LDFLAGS="$LDFLAGS"
11287 # ac_save_LIBS="$LIBS"
11289 if test \! -z "$includedir" ; then
11290 CPPFLAGS="$CPPFLAGS -I$includedir"
11292 # note: $X_CFLAGS includes $x_includes
11293 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11295 if test \! -z "$libdir" ; then
11296 LDFLAGS="$LDFLAGS -L$libdir"
11298 # note: $X_LIBS includes $x_libraries
11299 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11301 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11302 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11303 { $as_echo "$as_me:$LINENO: checking for DPMSInfo in -lXdpms" >&5
11304 $as_echo_n "checking for DPMSInfo in -lXdpms... " >&6; }
11305 if test "${ac_cv_lib_Xdpms_DPMSInfo+set}" = set; then
11306 $as_echo_n "(cached) " >&6
11308 ac_check_lib_save_LIBS=$LIBS
11309 LIBS="-lXdpms -lXext -lX11 $LIBS"
11310 cat >conftest.$ac_ext <<_ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h. */
11317 /* Override any GCC internal prototype to avoid an error.
11318 Use char because int might match the return type of a GCC
11319 builtin and then its argument prototype would still apply. */
11327 return DPMSInfo ();
11332 rm -rf conftest.$ac_objext conftest$ac_exeext
11333 if { (ac_try="$ac_link"
11334 case "(($ac_try" in
11335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336 *) ac_try_echo=$ac_try;;
11338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11339 $as_echo "$ac_try_echo") >&5
11340 (eval "$ac_link") 2>conftest.er1
11342 grep -v '^ *+' conftest.er1 >conftest.err
11343 rm -rf conftest.er1
11344 cat conftest.err >&5
11345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); } && {
11347 test -z "$ac_c_werror_flag" ||
11348 test ! -s conftest.err
11349 } && test -s conftest$ac_exeext && {
11350 test "$cross_compiling" = yes ||
11351 $as_test_x conftest$ac_exeext
11353 ac_cv_lib_Xdpms_DPMSInfo=yes
11355 $as_echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11358 ac_cv_lib_Xdpms_DPMSInfo=no
11361 rm -rf conftest.dSYM
11362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11363 conftest$ac_exeext conftest.$ac_ext
11364 LIBS=$ac_check_lib_save_LIBS
11366 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdpms_DPMSInfo" >&5
11367 $as_echo "$ac_cv_lib_Xdpms_DPMSInfo" >&6; }
11368 if test "x$ac_cv_lib_Xdpms_DPMSInfo" = x""yes; then
11369 have_dpms=yes; XDPMS_LIBS="-lXdpms"
11374 CPPFLAGS="$ac_save_CPPFLAGS"
11375 LDFLAGS="$ac_save_LDFLAGS"
11376 # LIBS="$ac_save_LIBS"
11382 # if that succeeded, then we've really got it.
11383 if test "$have_dpms" = yes; then
11384 cat >>confdefs.h <<\_ACEOF
11385 #define HAVE_DPMS_EXTENSION 1
11390 elif test "$with_dpms" != no; then
11391 echo "error: must be yes or no: --with-dpms-ext=$with_dpms"
11396 ###############################################################################
11398 # Check for the XINERAMA server extension.
11400 ###############################################################################
11403 with_xinerama_req=unspecified
11405 # Check whether --with-xinerama-ext was given.
11406 if test "${with_xinerama_ext+set}" = set; then
11407 withval=$with_xinerama_ext; with_xinerama="$withval"; with_xinerama_req="$withval"
11414 case "$with_xinerama" in
11419 { $as_echo "$as_me:$LINENO: checking for XINERAMA headers" >&5
11420 $as_echo_n "checking for XINERAMA headers... " >&6; }
11421 d=$with_xinerama/include
11422 if test -d $d; then
11423 X_CFLAGS="-I$d $X_CFLAGS"
11424 { $as_echo "$as_me:$LINENO: result: $d" >&5
11425 $as_echo "$d" >&6; }
11427 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11428 $as_echo "not found ($d: no such directory)" >&6; }
11431 { $as_echo "$as_me:$LINENO: checking for XINERAMA libs" >&5
11432 $as_echo_n "checking for XINERAMA libs... " >&6; }
11433 d=$with_xinerama/lib
11434 if test -d $d; then
11435 X_LIBS="-L$d $X_LIBS"
11436 { $as_echo "$as_me:$LINENO: result: $d" >&5
11437 $as_echo "$d" >&6; }
11439 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11440 $as_echo "not found ($d: no such directory)" >&6; }
11443 # replace the directory string with "yes".
11444 with_xinerama_req="yes"
11445 with_xinerama=$with_xinerama_req
11450 echo "error: argument to --with-xinerama-ext must be \"yes\", \"no\", or a directory."
11451 echo " If it is a directory, then \`DIR/include' will be added to"
11452 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11458 if test "$with_xinerama" = yes; then
11460 # first check for Xinerama.h
11462 ac_save_CPPFLAGS="$CPPFLAGS"
11463 if test \! -z "$includedir" ; then
11464 CPPFLAGS="$CPPFLAGS -I$includedir"
11466 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11467 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11468 { $as_echo "$as_me:$LINENO: checking for X11/extensions/Xinerama.h" >&5
11469 $as_echo_n "checking for X11/extensions/Xinerama.h... " >&6; }
11470 if test "${ac_cv_header_X11_extensions_Xinerama_h+set}" = set; then
11471 $as_echo_n "(cached) " >&6
11473 cat >conftest.$ac_ext <<_ACEOF
11476 cat confdefs.h >>conftest.$ac_ext
11477 cat >>conftest.$ac_ext <<_ACEOF
11478 /* end confdefs.h. */
11479 #include <X11/Xlib.h>
11481 #include <X11/extensions/Xinerama.h>
11483 rm -rf conftest.$ac_objext
11484 if { (ac_try="$ac_compile"
11485 case "(($ac_try" in
11486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487 *) ac_try_echo=$ac_try;;
11489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11490 $as_echo "$ac_try_echo") >&5
11491 (eval "$ac_compile") 2>conftest.er1
11493 grep -v '^ *+' conftest.er1 >conftest.err
11494 rm -rf conftest.er1
11495 cat conftest.err >&5
11496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } && {
11498 test -z "$ac_c_werror_flag" ||
11499 test ! -s conftest.err
11500 } && test -s conftest.$ac_objext; then
11501 ac_cv_header_X11_extensions_Xinerama_h=yes
11503 $as_echo "$as_me: failed program was:" >&5
11504 sed 's/^/| /' conftest.$ac_ext >&5
11506 ac_cv_header_X11_extensions_Xinerama_h=no
11509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11511 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xinerama_h" >&5
11512 $as_echo "$ac_cv_header_X11_extensions_Xinerama_h" >&6; }
11513 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x""yes; then
11518 CPPFLAGS="$ac_save_CPPFLAGS"
11520 # if that succeeded, then check for the XINERAMA code in the libraries
11521 if test "$have_xinerama" = yes; then
11523 # first look in -lXext
11526 ac_save_CPPFLAGS="$CPPFLAGS"
11527 ac_save_LDFLAGS="$LDFLAGS"
11528 # ac_save_LIBS="$LIBS"
11530 if test \! -z "$includedir" ; then
11531 CPPFLAGS="$CPPFLAGS -I$includedir"
11533 # note: $X_CFLAGS includes $x_includes
11534 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11536 if test \! -z "$libdir" ; then
11537 LDFLAGS="$LDFLAGS -L$libdir"
11539 # note: $X_LIBS includes $x_libraries
11540 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11542 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11543 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11544 { $as_echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXext" >&5
11545 $as_echo_n "checking for XineramaQueryScreens in -lXext... " >&6; }
11546 if test "${ac_cv_lib_Xext_XineramaQueryScreens+set}" = set; then
11547 $as_echo_n "(cached) " >&6
11549 ac_check_lib_save_LIBS=$LIBS
11550 LIBS="-lXext -lXext -lX11 $LIBS"
11551 cat >conftest.$ac_ext <<_ACEOF
11554 cat confdefs.h >>conftest.$ac_ext
11555 cat >>conftest.$ac_ext <<_ACEOF
11556 /* end confdefs.h. */
11558 /* Override any GCC internal prototype to avoid an error.
11559 Use char because int might match the return type of a GCC
11560 builtin and then its argument prototype would still apply. */
11564 char XineramaQueryScreens ();
11568 return XineramaQueryScreens ();
11573 rm -rf conftest.$ac_objext conftest$ac_exeext
11574 if { (ac_try="$ac_link"
11575 case "(($ac_try" in
11576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577 *) ac_try_echo=$ac_try;;
11579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11580 $as_echo "$ac_try_echo") >&5
11581 (eval "$ac_link") 2>conftest.er1
11583 grep -v '^ *+' conftest.er1 >conftest.err
11584 rm -rf conftest.er1
11585 cat conftest.err >&5
11586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } && {
11588 test -z "$ac_c_werror_flag" ||
11589 test ! -s conftest.err
11590 } && test -s conftest$ac_exeext && {
11591 test "$cross_compiling" = yes ||
11592 $as_test_x conftest$ac_exeext
11594 ac_cv_lib_Xext_XineramaQueryScreens=yes
11596 $as_echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11599 ac_cv_lib_Xext_XineramaQueryScreens=no
11602 rm -rf conftest.dSYM
11603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11604 conftest$ac_exeext conftest.$ac_ext
11605 LIBS=$ac_check_lib_save_LIBS
11607 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XineramaQueryScreens" >&5
11608 $as_echo "$ac_cv_lib_Xext_XineramaQueryScreens" >&6; }
11609 if test "x$ac_cv_lib_Xext_XineramaQueryScreens" = x""yes; then
11615 CPPFLAGS="$ac_save_CPPFLAGS"
11616 LDFLAGS="$ac_save_LDFLAGS"
11617 # LIBS="$ac_save_LIBS"
11620 # if that failed, look in -lXinerama (this is where it is in XFree86 4.1.)
11621 if test "$have_xinerama" = no; then
11623 ac_save_CPPFLAGS="$CPPFLAGS"
11624 ac_save_LDFLAGS="$LDFLAGS"
11625 # ac_save_LIBS="$LIBS"
11627 if test \! -z "$includedir" ; then
11628 CPPFLAGS="$CPPFLAGS -I$includedir"
11630 # note: $X_CFLAGS includes $x_includes
11631 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11633 if test \! -z "$libdir" ; then
11634 LDFLAGS="$LDFLAGS -L$libdir"
11636 # note: $X_LIBS includes $x_libraries
11637 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11639 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11640 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11641 { $as_echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
11642 $as_echo_n "checking for XineramaQueryScreens in -lXinerama... " >&6; }
11643 if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
11644 $as_echo_n "(cached) " >&6
11646 ac_check_lib_save_LIBS=$LIBS
11647 LIBS="-lXinerama -lXext -lX11 $LIBS"
11648 cat >conftest.$ac_ext <<_ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h. */
11655 /* Override any GCC internal prototype to avoid an error.
11656 Use char because int might match the return type of a GCC
11657 builtin and then its argument prototype would still apply. */
11661 char XineramaQueryScreens ();
11665 return XineramaQueryScreens ();
11670 rm -rf conftest.$ac_objext conftest$ac_exeext
11671 if { (ac_try="$ac_link"
11672 case "(($ac_try" in
11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674 *) ac_try_echo=$ac_try;;
11676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11677 $as_echo "$ac_try_echo") >&5
11678 (eval "$ac_link") 2>conftest.er1
11680 grep -v '^ *+' conftest.er1 >conftest.err
11681 rm -rf conftest.er1
11682 cat conftest.err >&5
11683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); } && {
11685 test -z "$ac_c_werror_flag" ||
11686 test ! -s conftest.err
11687 } && test -s conftest$ac_exeext && {
11688 test "$cross_compiling" = yes ||
11689 $as_test_x conftest$ac_exeext
11691 ac_cv_lib_Xinerama_XineramaQueryScreens=yes
11693 $as_echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11696 ac_cv_lib_Xinerama_XineramaQueryScreens=no
11699 rm -rf conftest.dSYM
11700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11701 conftest$ac_exeext conftest.$ac_ext
11702 LIBS=$ac_check_lib_save_LIBS
11704 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
11705 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
11706 if test "x$ac_cv_lib_Xinerama_XineramaQueryScreens" = x""yes; then
11707 have_xinerama=yes; XINERAMA_LIBS="-lXinerama"
11712 CPPFLAGS="$ac_save_CPPFLAGS"
11713 LDFLAGS="$ac_save_LDFLAGS"
11714 # LIBS="$ac_save_LIBS"
11719 # if that succeeded, then we've really got it.
11720 if test "$have_xinerama" = yes; then
11721 cat >>confdefs.h <<\_ACEOF
11722 #define HAVE_XINERAMA 1
11727 elif test "$with_xinerama" != no; then
11728 echo "error: must be yes or no: --with-xinerama-ext=$with_xinerama"
11733 ###############################################################################
11735 # Check for the XINPUT server extension.
11737 ###############################################################################
11740 with_xinput_req=unspecified
11742 # Check whether --with-xinput-ext was given.
11743 if test "${with_xinput_ext+set}" = set; then
11744 withval=$with_xinput_ext; with_xinput="$withval"; with_xinput_req="$withval"
11751 case "$with_xinput" in
11756 { $as_echo "$as_me:$LINENO: checking for XINPUT headers" >&5
11757 $as_echo_n "checking for XINPUT headers... " >&6; }
11758 d=$with_xinput/include
11759 if test -d $d; then
11760 X_CFLAGS="-I$d $X_CFLAGS"
11761 { $as_echo "$as_me:$LINENO: result: $d" >&5
11762 $as_echo "$d" >&6; }
11764 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11765 $as_echo "not found ($d: no such directory)" >&6; }
11768 { $as_echo "$as_me:$LINENO: checking for XINPUT libs" >&5
11769 $as_echo_n "checking for XINPUT libs... " >&6; }
11771 if test -d $d; then
11772 X_LIBS="-L$d $X_LIBS"
11773 { $as_echo "$as_me:$LINENO: result: $d" >&5
11774 $as_echo "$d" >&6; }
11776 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11777 $as_echo "not found ($d: no such directory)" >&6; }
11780 # replace the directory string with "yes".
11781 with_xinput_req="yes"
11782 with_xinput=$with_xinput_req
11787 echo "error: argument to --with-xinput-ext must be \"yes\", \"no\", or a directory."
11788 echo " If it is a directory, then \`DIR/include' will be added to"
11789 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11795 if test "$with_xinput" = yes; then
11797 # first check for Xinput.h
11799 ac_save_CPPFLAGS="$CPPFLAGS"
11800 if test \! -z "$includedir" ; then
11801 CPPFLAGS="$CPPFLAGS -I$includedir"
11803 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11804 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11805 { $as_echo "$as_me:$LINENO: checking for X11/extensions/XInput.h" >&5
11806 $as_echo_n "checking for X11/extensions/XInput.h... " >&6; }
11807 if test "${ac_cv_header_X11_extensions_XInput_h+set}" = set; then
11808 $as_echo_n "(cached) " >&6
11810 cat >conftest.$ac_ext <<_ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11816 #include <X11/Xlib.h>
11818 #include <X11/extensions/XInput.h>
11820 rm -rf conftest.$ac_objext
11821 if { (ac_try="$ac_compile"
11822 case "(($ac_try" in
11823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824 *) ac_try_echo=$ac_try;;
11826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11827 $as_echo "$ac_try_echo") >&5
11828 (eval "$ac_compile") 2>conftest.er1
11830 grep -v '^ *+' conftest.er1 >conftest.err
11831 rm -rf conftest.er1
11832 cat conftest.err >&5
11833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } && {
11835 test -z "$ac_c_werror_flag" ||
11836 test ! -s conftest.err
11837 } && test -s conftest.$ac_objext; then
11838 ac_cv_header_X11_extensions_XInput_h=yes
11840 $as_echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.$ac_ext >&5
11843 ac_cv_header_X11_extensions_XInput_h=no
11846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11848 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XInput_h" >&5
11849 $as_echo "$ac_cv_header_X11_extensions_XInput_h" >&6; }
11850 if test "x$ac_cv_header_X11_extensions_XInput_h" = x""yes; then
11855 CPPFLAGS="$ac_save_CPPFLAGS"
11857 # if that succeeded, then check for libXi
11858 if test "$have_xinput" = yes; then
11861 ac_save_CPPFLAGS="$CPPFLAGS"
11862 ac_save_LDFLAGS="$LDFLAGS"
11863 # ac_save_LIBS="$LIBS"
11865 if test \! -z "$includedir" ; then
11866 CPPFLAGS="$CPPFLAGS -I$includedir"
11868 # note: $X_CFLAGS includes $x_includes
11869 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11871 if test \! -z "$libdir" ; then
11872 LDFLAGS="$LDFLAGS -L$libdir"
11874 # note: $X_LIBS includes $x_libraries
11875 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11877 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11878 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11879 { $as_echo "$as_me:$LINENO: checking for XListInputDevices in -lXi" >&5
11880 $as_echo_n "checking for XListInputDevices in -lXi... " >&6; }
11881 if test "${ac_cv_lib_Xi_XListInputDevices+set}" = set; then
11882 $as_echo_n "(cached) " >&6
11884 ac_check_lib_save_LIBS=$LIBS
11885 LIBS="-lXi -lXext -lX11 $LIBS"
11886 cat >conftest.$ac_ext <<_ACEOF
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h. */
11893 /* Override any GCC internal prototype to avoid an error.
11894 Use char because int might match the return type of a GCC
11895 builtin and then its argument prototype would still apply. */
11899 char XListInputDevices ();
11903 return XListInputDevices ();
11908 rm -rf conftest.$ac_objext conftest$ac_exeext
11909 if { (ac_try="$ac_link"
11910 case "(($ac_try" in
11911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912 *) ac_try_echo=$ac_try;;
11914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11915 $as_echo "$ac_try_echo") >&5
11916 (eval "$ac_link") 2>conftest.er1
11918 grep -v '^ *+' conftest.er1 >conftest.err
11919 rm -rf conftest.er1
11920 cat conftest.err >&5
11921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); } && {
11923 test -z "$ac_c_werror_flag" ||
11924 test ! -s conftest.err
11925 } && test -s conftest$ac_exeext && {
11926 test "$cross_compiling" = yes ||
11927 $as_test_x conftest$ac_exeext
11929 ac_cv_lib_Xi_XListInputDevices=yes
11931 $as_echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.$ac_ext >&5
11934 ac_cv_lib_Xi_XListInputDevices=no
11937 rm -rf conftest.dSYM
11938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11939 conftest$ac_exeext conftest.$ac_ext
11940 LIBS=$ac_check_lib_save_LIBS
11942 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xi_XListInputDevices" >&5
11943 $as_echo "$ac_cv_lib_Xi_XListInputDevices" >&6; }
11944 if test "x$ac_cv_lib_Xi_XListInputDevices" = x""yes; then
11945 have_xinput=yes; SAVER_LIBS="$SAVER_LIBS -lXi"
11950 CPPFLAGS="$ac_save_CPPFLAGS"
11951 LDFLAGS="$ac_save_LDFLAGS"
11952 # LIBS="$ac_save_LIBS"
11956 # if that succeeded, then we've really got it.
11957 if test "$have_xinput" = yes; then
11958 cat >>confdefs.h <<\_ACEOF
11959 #define HAVE_XINPUT 1
11964 elif test "$with_xinput" != no; then
11965 echo "error: must be yes or no: --with-xinput-ext=$with_xinput"
11970 ###############################################################################
11972 # Check for the XF86VMODE server extension (for virtual screens.)
11974 ###############################################################################
11977 with_xf86vmode_req=unspecified
11979 # Check whether --with-xf86vmode-ext was given.
11980 if test "${with_xf86vmode_ext+set}" = set; then
11981 withval=$with_xf86vmode_ext; with_xf86vmode="$withval"; with_xf86vmode_req="$withval"
11988 case "$with_xf86vmode" in
11993 { $as_echo "$as_me:$LINENO: checking for xf86vmode headers" >&5
11994 $as_echo_n "checking for xf86vmode headers... " >&6; }
11995 d=$with_xf86vmode/include
11996 if test -d $d; then
11997 X_CFLAGS="-I$d $X_CFLAGS"
11998 { $as_echo "$as_me:$LINENO: result: $d" >&5
11999 $as_echo "$d" >&6; }
12001 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12002 $as_echo "not found ($d: no such directory)" >&6; }
12005 { $as_echo "$as_me:$LINENO: checking for xf86vmode libs" >&5
12006 $as_echo_n "checking for xf86vmode libs... " >&6; }
12007 d=$with_xf86vmode/lib
12008 if test -d $d; then
12009 X_LIBS="-L$d $X_LIBS"
12010 { $as_echo "$as_me:$LINENO: result: $d" >&5
12011 $as_echo "$d" >&6; }
12013 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12014 $as_echo "not found ($d: no such directory)" >&6; }
12017 # replace the directory string with "yes".
12018 with_xf86vmode_req="yes"
12019 with_xf86vmode=$with_xf86vmode_req
12024 echo "error: argument to --with-xf86vmode-ext must be \"yes\", \"no\", or a directory."
12025 echo " If it is a directory, then \`DIR/include' will be added to"
12026 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12034 if test "$with_xf86vmode" = yes; then
12036 # first check for xf86vmode.h
12038 ac_save_CPPFLAGS="$CPPFLAGS"
12039 if test \! -z "$includedir" ; then
12040 CPPFLAGS="$CPPFLAGS -I$includedir"
12042 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12043 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12044 { $as_echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
12045 $as_echo_n "checking for X11/extensions/xf86vmode.h... " >&6; }
12046 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
12047 $as_echo_n "(cached) " >&6
12049 cat >conftest.$ac_ext <<_ACEOF
12052 cat confdefs.h >>conftest.$ac_ext
12053 cat >>conftest.$ac_ext <<_ACEOF
12054 /* end confdefs.h. */
12055 #include <X11/Xlib.h>
12057 #include <X11/extensions/xf86vmode.h>
12059 rm -rf conftest.$ac_objext
12060 if { (ac_try="$ac_compile"
12061 case "(($ac_try" in
12062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063 *) ac_try_echo=$ac_try;;
12065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12066 $as_echo "$ac_try_echo") >&5
12067 (eval "$ac_compile") 2>conftest.er1
12069 grep -v '^ *+' conftest.er1 >conftest.err
12070 rm -rf conftest.er1
12071 cat conftest.err >&5
12072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); } && {
12074 test -z "$ac_c_werror_flag" ||
12075 test ! -s conftest.err
12076 } && test -s conftest.$ac_objext; then
12077 ac_cv_header_X11_extensions_xf86vmode_h=yes
12079 $as_echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12082 ac_cv_header_X11_extensions_xf86vmode_h=no
12085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12087 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
12088 $as_echo "$ac_cv_header_X11_extensions_xf86vmode_h" >&6; }
12089 if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = x""yes; then
12094 CPPFLAGS="$ac_save_CPPFLAGS"
12096 # if that succeeded, then check for the -lXxf86vm
12097 if test "$have_xf86vmode" = yes; then
12100 ac_save_CPPFLAGS="$CPPFLAGS"
12101 ac_save_LDFLAGS="$LDFLAGS"
12102 # ac_save_LIBS="$LIBS"
12104 if test \! -z "$includedir" ; then
12105 CPPFLAGS="$CPPFLAGS -I$includedir"
12107 # note: $X_CFLAGS includes $x_includes
12108 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12110 if test \! -z "$libdir" ; then
12111 LDFLAGS="$LDFLAGS -L$libdir"
12113 # note: $X_LIBS includes $x_libraries
12114 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12116 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12117 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12118 { $as_echo "$as_me:$LINENO: checking for XF86VidModeGetViewPort in -lXxf86vm" >&5
12119 $as_echo_n "checking for XF86VidModeGetViewPort in -lXxf86vm... " >&6; }
12120 if test "${ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort+set}" = set; then
12121 $as_echo_n "(cached) " >&6
12123 ac_check_lib_save_LIBS=$LIBS
12124 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
12125 cat >conftest.$ac_ext <<_ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12132 /* Override any GCC internal prototype to avoid an error.
12133 Use char because int might match the return type of a GCC
12134 builtin and then its argument prototype would still apply. */
12138 char XF86VidModeGetViewPort ();
12142 return XF86VidModeGetViewPort ();
12147 rm -rf conftest.$ac_objext conftest$ac_exeext
12148 if { (ac_try="$ac_link"
12149 case "(($ac_try" in
12150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151 *) ac_try_echo=$ac_try;;
12153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12154 $as_echo "$ac_try_echo") >&5
12155 (eval "$ac_link") 2>conftest.er1
12157 grep -v '^ *+' conftest.er1 >conftest.err
12158 rm -rf conftest.er1
12159 cat conftest.err >&5
12160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); } && {
12162 test -z "$ac_c_werror_flag" ||
12163 test ! -s conftest.err
12164 } && test -s conftest$ac_exeext && {
12165 test "$cross_compiling" = yes ||
12166 $as_test_x conftest$ac_exeext
12168 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=yes
12170 $as_echo "$as_me: failed program was:" >&5
12171 sed 's/^/| /' conftest.$ac_ext >&5
12173 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=no
12176 rm -rf conftest.dSYM
12177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12178 conftest$ac_exeext conftest.$ac_ext
12179 LIBS=$ac_check_lib_save_LIBS
12181 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&5
12182 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&6; }
12183 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" = x""yes; then
12184 have_xf86vmode=yes;
12185 VIDMODE_LIBS="-lXxf86vm";
12186 SAVER_LIBS="$SAVER_LIBS $VIDMODE_LIBS"
12191 CPPFLAGS="$ac_save_CPPFLAGS"
12192 LDFLAGS="$ac_save_LDFLAGS"
12193 # LIBS="$ac_save_LIBS"
12197 # if that succeeded, then we've really got it.
12198 if test "$have_xf86vmode" = yes; then
12199 cat >>confdefs.h <<\_ACEOF
12200 #define HAVE_XF86VMODE 1
12205 elif test "$with_xf86vmode" != no; then
12206 echo "error: must be yes or no: --with-xf86vmode-ext=$with_xf86vmode"
12211 ###############################################################################
12213 # Check for the XF86VMODE server extension (for gamma fading.)
12215 ###############################################################################
12218 have_xf86gamma_ramp=no
12219 with_xf86gamma_req=unspecified
12221 # Check whether --with-xf86gamma-ext was given.
12222 if test "${with_xf86gamma_ext+set}" = set; then
12223 withval=$with_xf86gamma_ext; with_xf86gamma="$withval"; with_xf86gamma_req="$withval"
12230 case "$with_xf86gamma" in
12235 { $as_echo "$as_me:$LINENO: checking for xf86gamma headers" >&5
12236 $as_echo_n "checking for xf86gamma headers... " >&6; }
12237 d=$with_xf86gamma/include
12238 if test -d $d; then
12239 X_CFLAGS="-I$d $X_CFLAGS"
12240 { $as_echo "$as_me:$LINENO: result: $d" >&5
12241 $as_echo "$d" >&6; }
12243 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12244 $as_echo "not found ($d: no such directory)" >&6; }
12247 { $as_echo "$as_me:$LINENO: checking for xf86gamma libs" >&5
12248 $as_echo_n "checking for xf86gamma libs... " >&6; }
12249 d=$with_xf86gamma/lib
12250 if test -d $d; then
12251 X_LIBS="-L$d $X_LIBS"
12252 { $as_echo "$as_me:$LINENO: result: $d" >&5
12253 $as_echo "$d" >&6; }
12255 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12256 $as_echo "not found ($d: no such directory)" >&6; }
12259 # replace the directory string with "yes".
12260 with_xf86gamma_req="yes"
12261 with_xf86gamma=$with_xf86gamma_req
12266 echo "error: argument to --with-xf86gamma-ext must be \"yes\", \"no\", or a directory."
12267 echo " If it is a directory, then \`DIR/include' will be added to"
12268 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12274 if test "$with_xf86gamma" = yes; then
12276 # first check for xf86vmode.h, if we haven't already
12277 if test "$have_xf86vmode" = yes; then
12281 ac_save_CPPFLAGS="$CPPFLAGS"
12282 if test \! -z "$includedir" ; then
12283 CPPFLAGS="$CPPFLAGS -I$includedir"
12285 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12286 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12287 { $as_echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
12288 $as_echo_n "checking for X11/extensions/xf86vmode.h... " >&6; }
12289 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
12290 $as_echo_n "(cached) " >&6
12292 cat >conftest.$ac_ext <<_ACEOF
12295 cat confdefs.h >>conftest.$ac_ext
12296 cat >>conftest.$ac_ext <<_ACEOF
12297 /* end confdefs.h. */
12298 #include <X11/Xlib.h>
12300 #include <X11/extensions/xf86vmode.h>
12302 rm -rf conftest.$ac_objext
12303 if { (ac_try="$ac_compile"
12304 case "(($ac_try" in
12305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306 *) ac_try_echo=$ac_try;;
12308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12309 $as_echo "$ac_try_echo") >&5
12310 (eval "$ac_compile") 2>conftest.er1
12312 grep -v '^ *+' conftest.er1 >conftest.err
12313 rm -rf conftest.er1
12314 cat conftest.err >&5
12315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); } && {
12317 test -z "$ac_c_werror_flag" ||
12318 test ! -s conftest.err
12319 } && test -s conftest.$ac_objext; then
12320 ac_cv_header_X11_extensions_xf86vmode_h=yes
12322 $as_echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12325 ac_cv_header_X11_extensions_xf86vmode_h=no
12328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12330 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
12331 $as_echo "$ac_cv_header_X11_extensions_xf86vmode_h" >&6; }
12332 if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = x""yes; then
12337 CPPFLAGS="$ac_save_CPPFLAGS"
12340 # if that succeeded, then check for the -lXxf86vm
12341 if test "$have_xf86gamma" = yes; then
12344 ac_save_CPPFLAGS="$CPPFLAGS"
12345 ac_save_LDFLAGS="$LDFLAGS"
12346 # ac_save_LIBS="$LIBS"
12348 if test \! -z "$includedir" ; then
12349 CPPFLAGS="$CPPFLAGS -I$includedir"
12351 # note: $X_CFLAGS includes $x_includes
12352 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12354 if test \! -z "$libdir" ; then
12355 LDFLAGS="$LDFLAGS -L$libdir"
12357 # note: $X_LIBS includes $x_libraries
12358 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12360 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12361 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12362 { $as_echo "$as_me:$LINENO: checking for XF86VidModeSetGamma in -lXxf86vm" >&5
12363 $as_echo_n "checking for XF86VidModeSetGamma in -lXxf86vm... " >&6; }
12364 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGamma+set}" = set; then
12365 $as_echo_n "(cached) " >&6
12367 ac_check_lib_save_LIBS=$LIBS
12368 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
12369 cat >conftest.$ac_ext <<_ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h. */
12376 /* Override any GCC internal prototype to avoid an error.
12377 Use char because int might match the return type of a GCC
12378 builtin and then its argument prototype would still apply. */
12382 char XF86VidModeSetGamma ();
12386 return XF86VidModeSetGamma ();
12391 rm -rf conftest.$ac_objext conftest$ac_exeext
12392 if { (ac_try="$ac_link"
12393 case "(($ac_try" in
12394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395 *) ac_try_echo=$ac_try;;
12397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12398 $as_echo "$ac_try_echo") >&5
12399 (eval "$ac_link") 2>conftest.er1
12401 grep -v '^ *+' conftest.er1 >conftest.err
12402 rm -rf conftest.er1
12403 cat conftest.err >&5
12404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); } && {
12406 test -z "$ac_c_werror_flag" ||
12407 test ! -s conftest.err
12408 } && test -s conftest$ac_exeext && {
12409 test "$cross_compiling" = yes ||
12410 $as_test_x conftest$ac_exeext
12412 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=yes
12414 $as_echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.$ac_ext >&5
12417 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=no
12420 rm -rf conftest.dSYM
12421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12422 conftest$ac_exeext conftest.$ac_ext
12423 LIBS=$ac_check_lib_save_LIBS
12425 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&5
12426 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&6; }
12427 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" = x""yes; then
12433 CPPFLAGS="$ac_save_CPPFLAGS"
12434 LDFLAGS="$ac_save_LDFLAGS"
12435 # LIBS="$ac_save_LIBS"
12439 # check for the Ramp versions of the functions too.
12440 if test "$have_xf86gamma" = yes; then
12441 have_xf86gamma_ramp=no
12443 ac_save_CPPFLAGS="$CPPFLAGS"
12444 ac_save_LDFLAGS="$LDFLAGS"
12445 # ac_save_LIBS="$LIBS"
12447 if test \! -z "$includedir" ; then
12448 CPPFLAGS="$CPPFLAGS -I$includedir"
12450 # note: $X_CFLAGS includes $x_includes
12451 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12453 if test \! -z "$libdir" ; then
12454 LDFLAGS="$LDFLAGS -L$libdir"
12456 # note: $X_LIBS includes $x_libraries
12457 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12459 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12460 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12461 { $as_echo "$as_me:$LINENO: checking for XF86VidModeSetGammaRamp in -lXxf86vm" >&5
12462 $as_echo_n "checking for XF86VidModeSetGammaRamp in -lXxf86vm... " >&6; }
12463 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp+set}" = set; then
12464 $as_echo_n "(cached) " >&6
12466 ac_check_lib_save_LIBS=$LIBS
12467 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
12468 cat >conftest.$ac_ext <<_ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h. */
12475 /* Override any GCC internal prototype to avoid an error.
12476 Use char because int might match the return type of a GCC
12477 builtin and then its argument prototype would still apply. */
12481 char XF86VidModeSetGammaRamp ();
12485 return XF86VidModeSetGammaRamp ();
12490 rm -rf conftest.$ac_objext conftest$ac_exeext
12491 if { (ac_try="$ac_link"
12492 case "(($ac_try" in
12493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12494 *) ac_try_echo=$ac_try;;
12496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12497 $as_echo "$ac_try_echo") >&5
12498 (eval "$ac_link") 2>conftest.er1
12500 grep -v '^ *+' conftest.er1 >conftest.err
12501 rm -rf conftest.er1
12502 cat conftest.err >&5
12503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); } && {
12505 test -z "$ac_c_werror_flag" ||
12506 test ! -s conftest.err
12507 } && test -s conftest$ac_exeext && {
12508 test "$cross_compiling" = yes ||
12509 $as_test_x conftest$ac_exeext
12511 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=yes
12513 $as_echo "$as_me: failed program was:" >&5
12514 sed 's/^/| /' conftest.$ac_ext >&5
12516 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=no
12519 rm -rf conftest.dSYM
12520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12521 conftest$ac_exeext conftest.$ac_ext
12522 LIBS=$ac_check_lib_save_LIBS
12524 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&5
12525 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&6; }
12526 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" = x""yes; then
12527 have_xf86gamma_ramp=yes
12532 CPPFLAGS="$ac_save_CPPFLAGS"
12533 LDFLAGS="$ac_save_LDFLAGS"
12534 # LIBS="$ac_save_LIBS"
12538 # if those tests succeeded, then we've really got the functions.
12539 if test "$have_xf86gamma" = yes; then
12540 cat >>confdefs.h <<\_ACEOF
12541 #define HAVE_XF86VMODE_GAMMA 1
12546 if test "$have_xf86gamma_ramp" = yes; then
12547 cat >>confdefs.h <<\_ACEOF
12548 #define HAVE_XF86VMODE_GAMMA_RAMP 1
12553 # pull in the lib, if we haven't already
12554 if test "$have_xf86gamma" = yes -a "$have_xf86vmode" = no; then
12555 SAVER_LIBS="$SAVER_LIBS -lXxf86vm"
12558 elif test "$with_xf86gamma" != no; then
12559 echo "error: must be yes or no: --with-xf86gamma-ext=$with_xf86vmode"
12564 ###############################################################################
12566 # Check for the RANDR (Resize and Rotate) server extension.
12568 # We need this to detect when the resolution of the desktop
12569 # has changed out from under us (this is a newer, different
12570 # mechanism than the XF86VMODE virtual viewports.)
12572 ###############################################################################
12575 with_randr_req=unspecified
12577 # Check whether --with-randr-ext was given.
12578 if test "${with_randr_ext+set}" = set; then
12579 withval=$with_randr_ext; with_randr="$withval"; with_randr_req="$withval"
12586 case "$with_randr" in
12591 { $as_echo "$as_me:$LINENO: checking for RANDR headers" >&5
12592 $as_echo_n "checking for RANDR headers... " >&6; }
12593 d=$with_randr/include
12594 if test -d $d; then
12595 X_CFLAGS="-I$d $X_CFLAGS"
12596 { $as_echo "$as_me:$LINENO: result: $d" >&5
12597 $as_echo "$d" >&6; }
12599 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12600 $as_echo "not found ($d: no such directory)" >&6; }
12603 { $as_echo "$as_me:$LINENO: checking for RANDR libs" >&5
12604 $as_echo_n "checking for RANDR libs... " >&6; }
12606 if test -d $d; then
12607 X_LIBS="-L$d $X_LIBS"
12608 { $as_echo "$as_me:$LINENO: result: $d" >&5
12609 $as_echo "$d" >&6; }
12611 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12612 $as_echo "not found ($d: no such directory)" >&6; }
12615 # replace the directory string with "yes".
12616 with_randr_req="yes"
12617 with_randr=$with_randr_req
12622 echo "error: argument to --with-randr-ext must be \"yes\", \"no\", or a directory."
12623 echo " If it is a directory, then \`DIR/include' will be added to"
12624 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12630 if test "$with_randr" = yes; then
12632 # first check for Xrandr.h
12634 ac_save_CPPFLAGS="$CPPFLAGS"
12635 if test \! -z "$includedir" ; then
12636 CPPFLAGS="$CPPFLAGS -I$includedir"
12638 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12639 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12640 { $as_echo "$as_me:$LINENO: checking for X11/extensions/Xrandr.h" >&5
12641 $as_echo_n "checking for X11/extensions/Xrandr.h... " >&6; }
12642 if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
12643 $as_echo_n "(cached) " >&6
12645 cat >conftest.$ac_ext <<_ACEOF
12648 cat confdefs.h >>conftest.$ac_ext
12649 cat >>conftest.$ac_ext <<_ACEOF
12650 /* end confdefs.h. */
12651 #include <X11/Xlib.h>
12653 #include <X11/extensions/Xrandr.h>
12655 rm -rf conftest.$ac_objext
12656 if { (ac_try="$ac_compile"
12657 case "(($ac_try" in
12658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12659 *) ac_try_echo=$ac_try;;
12661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12662 $as_echo "$ac_try_echo") >&5
12663 (eval "$ac_compile") 2>conftest.er1
12665 grep -v '^ *+' conftest.er1 >conftest.err
12666 rm -rf conftest.er1
12667 cat conftest.err >&5
12668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } && {
12670 test -z "$ac_c_werror_flag" ||
12671 test ! -s conftest.err
12672 } && test -s conftest.$ac_objext; then
12673 ac_cv_header_X11_extensions_Xrandr_h=yes
12675 $as_echo "$as_me: failed program was:" >&5
12676 sed 's/^/| /' conftest.$ac_ext >&5
12678 ac_cv_header_X11_extensions_Xrandr_h=no
12681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12683 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrandr_h" >&5
12684 $as_echo "$ac_cv_header_X11_extensions_Xrandr_h" >&6; }
12685 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x""yes; then
12690 CPPFLAGS="$ac_save_CPPFLAGS"
12692 # if that succeeded, then check for the XRR code in the libraries
12693 if test "$have_randr" = yes; then
12695 # RANDR probably needs -lXrender
12698 ac_save_CPPFLAGS="$CPPFLAGS"
12699 ac_save_LDFLAGS="$LDFLAGS"
12700 # ac_save_LIBS="$LIBS"
12702 if test \! -z "$includedir" ; then
12703 CPPFLAGS="$CPPFLAGS -I$includedir"
12705 # note: $X_CFLAGS includes $x_includes
12706 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12708 if test \! -z "$libdir" ; then
12709 LDFLAGS="$LDFLAGS -L$libdir"
12711 # note: $X_LIBS includes $x_libraries
12712 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12714 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12715 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12716 { $as_echo "$as_me:$LINENO: checking for XRenderSetSubpixelOrder in -lXrender" >&5
12717 $as_echo_n "checking for XRenderSetSubpixelOrder in -lXrender... " >&6; }
12718 if test "${ac_cv_lib_Xrender_XRenderSetSubpixelOrder+set}" = set; then
12719 $as_echo_n "(cached) " >&6
12721 ac_check_lib_save_LIBS=$LIBS
12722 LIBS="-lXrender -lXext -lX11 $LIBS"
12723 cat >conftest.$ac_ext <<_ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h. */
12730 /* Override any GCC internal prototype to avoid an error.
12731 Use char because int might match the return type of a GCC
12732 builtin and then its argument prototype would still apply. */
12736 char XRenderSetSubpixelOrder ();
12740 return XRenderSetSubpixelOrder ();
12745 rm -rf conftest.$ac_objext conftest$ac_exeext
12746 if { (ac_try="$ac_link"
12747 case "(($ac_try" in
12748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749 *) ac_try_echo=$ac_try;;
12751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12752 $as_echo "$ac_try_echo") >&5
12753 (eval "$ac_link") 2>conftest.er1
12755 grep -v '^ *+' conftest.er1 >conftest.err
12756 rm -rf conftest.er1
12757 cat conftest.err >&5
12758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } && {
12760 test -z "$ac_c_werror_flag" ||
12761 test ! -s conftest.err
12762 } && test -s conftest$ac_exeext && {
12763 test "$cross_compiling" = yes ||
12764 $as_test_x conftest$ac_exeext
12766 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=yes
12768 $as_echo "$as_me: failed program was:" >&5
12769 sed 's/^/| /' conftest.$ac_ext >&5
12771 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=no
12774 rm -rf conftest.dSYM
12775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12776 conftest$ac_exeext conftest.$ac_ext
12777 LIBS=$ac_check_lib_save_LIBS
12779 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&5
12780 $as_echo "$ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&6; }
12781 if test "x$ac_cv_lib_Xrender_XRenderSetSubpixelOrder" = x""yes; then
12782 xrender_libs="-lXrender"
12787 CPPFLAGS="$ac_save_CPPFLAGS"
12788 LDFLAGS="$ac_save_LDFLAGS"
12789 # LIBS="$ac_save_LIBS"
12792 # first look for RANDR in -lXext
12795 ac_save_CPPFLAGS="$CPPFLAGS"
12796 ac_save_LDFLAGS="$LDFLAGS"
12797 # ac_save_LIBS="$LIBS"
12799 if test \! -z "$includedir" ; then
12800 CPPFLAGS="$CPPFLAGS -I$includedir"
12802 # note: $X_CFLAGS includes $x_includes
12803 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12805 if test \! -z "$libdir" ; then
12806 LDFLAGS="$LDFLAGS -L$libdir"
12808 # note: $X_LIBS includes $x_libraries
12809 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12811 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12812 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12813 { $as_echo "$as_me:$LINENO: checking for XRRGetScreenInfo in -lXext" >&5
12814 $as_echo_n "checking for XRRGetScreenInfo in -lXext... " >&6; }
12815 if test "${ac_cv_lib_Xext_XRRGetScreenInfo+set}" = set; then
12816 $as_echo_n "(cached) " >&6
12818 ac_check_lib_save_LIBS=$LIBS
12819 LIBS="-lXext $xrender_libs -lXext -lX11 $LIBS"
12820 cat >conftest.$ac_ext <<_ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h. */
12827 /* Override any GCC internal prototype to avoid an error.
12828 Use char because int might match the return type of a GCC
12829 builtin and then its argument prototype would still apply. */
12833 char XRRGetScreenInfo ();
12837 return XRRGetScreenInfo ();
12842 rm -rf conftest.$ac_objext conftest$ac_exeext
12843 if { (ac_try="$ac_link"
12844 case "(($ac_try" in
12845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846 *) ac_try_echo=$ac_try;;
12848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12849 $as_echo "$ac_try_echo") >&5
12850 (eval "$ac_link") 2>conftest.er1
12852 grep -v '^ *+' conftest.er1 >conftest.err
12853 rm -rf conftest.er1
12854 cat conftest.err >&5
12855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } && {
12857 test -z "$ac_c_werror_flag" ||
12858 test ! -s conftest.err
12859 } && test -s conftest$ac_exeext && {
12860 test "$cross_compiling" = yes ||
12861 $as_test_x conftest$ac_exeext
12863 ac_cv_lib_Xext_XRRGetScreenInfo=yes
12865 $as_echo "$as_me: failed program was:" >&5
12866 sed 's/^/| /' conftest.$ac_ext >&5
12868 ac_cv_lib_Xext_XRRGetScreenInfo=no
12871 rm -rf conftest.dSYM
12872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12873 conftest$ac_exeext conftest.$ac_ext
12874 LIBS=$ac_check_lib_save_LIBS
12876 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XRRGetScreenInfo" >&5
12877 $as_echo "$ac_cv_lib_Xext_XRRGetScreenInfo" >&6; }
12878 if test "x$ac_cv_lib_Xext_XRRGetScreenInfo" = x""yes; then
12879 have_randr=yes; SAVER_LIBS="$SAVER_LIBS $xrender_libs"
12884 CPPFLAGS="$ac_save_CPPFLAGS"
12885 LDFLAGS="$ac_save_LDFLAGS"
12886 # LIBS="$ac_save_LIBS"
12889 # if that failed, look in -lXrandr
12890 if test "$have_randr" = no; then
12892 ac_save_CPPFLAGS="$CPPFLAGS"
12893 ac_save_LDFLAGS="$LDFLAGS"
12894 # ac_save_LIBS="$LIBS"
12896 if test \! -z "$includedir" ; then
12897 CPPFLAGS="$CPPFLAGS -I$includedir"
12899 # note: $X_CFLAGS includes $x_includes
12900 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12902 if test \! -z "$libdir" ; then
12903 LDFLAGS="$LDFLAGS -L$libdir"
12905 # note: $X_LIBS includes $x_libraries
12906 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12908 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12909 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12910 { $as_echo "$as_me:$LINENO: checking for XRRGetScreenInfo in -lXrandr" >&5
12911 $as_echo_n "checking for XRRGetScreenInfo in -lXrandr... " >&6; }
12912 if test "${ac_cv_lib_Xrandr_XRRGetScreenInfo+set}" = set; then
12913 $as_echo_n "(cached) " >&6
12915 ac_check_lib_save_LIBS=$LIBS
12916 LIBS="-lXrandr $xrender_libs -lXext -lX11 $LIBS"
12917 cat >conftest.$ac_ext <<_ACEOF
12920 cat confdefs.h >>conftest.$ac_ext
12921 cat >>conftest.$ac_ext <<_ACEOF
12922 /* end confdefs.h. */
12924 /* Override any GCC internal prototype to avoid an error.
12925 Use char because int might match the return type of a GCC
12926 builtin and then its argument prototype would still apply. */
12930 char XRRGetScreenInfo ();
12934 return XRRGetScreenInfo ();
12939 rm -rf conftest.$ac_objext conftest$ac_exeext
12940 if { (ac_try="$ac_link"
12941 case "(($ac_try" in
12942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12943 *) ac_try_echo=$ac_try;;
12945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12946 $as_echo "$ac_try_echo") >&5
12947 (eval "$ac_link") 2>conftest.er1
12949 grep -v '^ *+' conftest.er1 >conftest.err
12950 rm -rf conftest.er1
12951 cat conftest.err >&5
12952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); } && {
12954 test -z "$ac_c_werror_flag" ||
12955 test ! -s conftest.err
12956 } && test -s conftest$ac_exeext && {
12957 test "$cross_compiling" = yes ||
12958 $as_test_x conftest$ac_exeext
12960 ac_cv_lib_Xrandr_XRRGetScreenInfo=yes
12962 $as_echo "$as_me: failed program was:" >&5
12963 sed 's/^/| /' conftest.$ac_ext >&5
12965 ac_cv_lib_Xrandr_XRRGetScreenInfo=no
12968 rm -rf conftest.dSYM
12969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12970 conftest$ac_exeext conftest.$ac_ext
12971 LIBS=$ac_check_lib_save_LIBS
12973 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRGetScreenInfo" >&5
12974 $as_echo "$ac_cv_lib_Xrandr_XRRGetScreenInfo" >&6; }
12975 if test "x$ac_cv_lib_Xrandr_XRRGetScreenInfo" = x""yes; then
12976 have_randr=yes; SAVER_LIBS="$SAVER_LIBS -lXrandr $xrender_libs"
12981 CPPFLAGS="$ac_save_CPPFLAGS"
12982 LDFLAGS="$ac_save_LDFLAGS"
12983 # LIBS="$ac_save_LIBS"
12988 # if that succeeded, then we've really got it.
12989 if test "$have_randr" = yes; then
12990 cat >>confdefs.h <<\_ACEOF
12991 #define HAVE_RANDR 1
12995 # Now check for version 1.2 in the same libs.
12996 # Try to compile, since on MacOS 10.5.7, headers are older than libs!
12997 { $as_echo "$as_me:$LINENO: checking for XRRGetScreenResources" >&5
12998 $as_echo_n "checking for XRRGetScreenResources... " >&6; }
12999 if test "${ac_cv_randr_12+set}" = set; then
13000 $as_echo_n "(cached) " >&6
13004 ac_save_CPPFLAGS="$CPPFLAGS"
13005 if test \! -z "$includedir" ; then
13006 CPPFLAGS="$CPPFLAGS -I$includedir"
13008 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13009 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13010 cat >conftest.$ac_ext <<_ACEOF
13013 cat confdefs.h >>conftest.$ac_ext
13014 cat >>conftest.$ac_ext <<_ACEOF
13015 /* end confdefs.h. */
13016 #include <stdlib.h>
13017 #include <X11/Xlib.h>
13018 #include <X11/extensions/Xrandr.h>
13022 XRRScreenResources *res =
13023 XRRGetScreenResources (0, 0);
13028 rm -rf conftest.$ac_objext
13029 if { (ac_try="$ac_compile"
13030 case "(($ac_try" in
13031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032 *) ac_try_echo=$ac_try;;
13034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13035 $as_echo "$ac_try_echo") >&5
13036 (eval "$ac_compile") 2>conftest.er1
13038 grep -v '^ *+' conftest.er1 >conftest.err
13039 rm -rf conftest.er1
13040 cat conftest.err >&5
13041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); } && {
13043 test -z "$ac_c_werror_flag" ||
13044 test ! -s conftest.err
13045 } && test -s conftest.$ac_objext; then
13048 $as_echo "$as_me: failed program was:" >&5
13049 sed 's/^/| /' conftest.$ac_ext >&5
13054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13055 CPPFLAGS="$ac_save_CPPFLAGS"
13057 { $as_echo "$as_me:$LINENO: result: $ac_cv_randr_12" >&5
13058 $as_echo "$ac_cv_randr_12" >&6; }
13059 if test "$ac_cv_randr_12" = yes ; then
13060 cat >>confdefs.h <<\_ACEOF
13061 #define HAVE_RANDR_12 1
13065 # AC_CHECK_X_LIB(c, XRRGetOutputInfo, [AC_DEFINE(HAVE_RANDR_12)],
13066 # [true], $SAVER_LIBS)
13070 elif test "$with_randr" != no; then
13071 echo "error: must be yes or no: --with-randr-ext=$with_randr"
13076 ###############################################################################
13078 # Check for XF86MiscSetGrabKeysState (but only bother if we are already
13079 # using other XF86 stuff.)
13081 ###############################################################################
13083 have_xf86miscsetgrabkeysstate=no
13084 if test "$have_xf86gamma" = yes -o "$have_xf86vmode" = yes; then
13086 ac_save_CPPFLAGS="$CPPFLAGS"
13087 ac_save_LDFLAGS="$LDFLAGS"
13088 # ac_save_LIBS="$LIBS"
13090 if test \! -z "$includedir" ; then
13091 CPPFLAGS="$CPPFLAGS -I$includedir"
13093 # note: $X_CFLAGS includes $x_includes
13094 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13096 if test \! -z "$libdir" ; then
13097 LDFLAGS="$LDFLAGS -L$libdir"
13099 # note: $X_LIBS includes $x_libraries
13100 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13102 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13103 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13104 { $as_echo "$as_me:$LINENO: checking for XF86MiscSetGrabKeysState in -lXxf86misc" >&5
13105 $as_echo_n "checking for XF86MiscSetGrabKeysState in -lXxf86misc... " >&6; }
13106 if test "${ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState+set}" = set; then
13107 $as_echo_n "(cached) " >&6
13109 ac_check_lib_save_LIBS=$LIBS
13110 LIBS="-lXxf86misc -lXext -lX11 $LIBS"
13111 cat >conftest.$ac_ext <<_ACEOF
13114 cat confdefs.h >>conftest.$ac_ext
13115 cat >>conftest.$ac_ext <<_ACEOF
13116 /* end confdefs.h. */
13118 /* Override any GCC internal prototype to avoid an error.
13119 Use char because int might match the return type of a GCC
13120 builtin and then its argument prototype would still apply. */
13124 char XF86MiscSetGrabKeysState ();
13128 return XF86MiscSetGrabKeysState ();
13133 rm -rf conftest.$ac_objext conftest$ac_exeext
13134 if { (ac_try="$ac_link"
13135 case "(($ac_try" in
13136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13137 *) ac_try_echo=$ac_try;;
13139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13140 $as_echo "$ac_try_echo") >&5
13141 (eval "$ac_link") 2>conftest.er1
13143 grep -v '^ *+' conftest.er1 >conftest.err
13144 rm -rf conftest.er1
13145 cat conftest.err >&5
13146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); } && {
13148 test -z "$ac_c_werror_flag" ||
13149 test ! -s conftest.err
13150 } && test -s conftest$ac_exeext && {
13151 test "$cross_compiling" = yes ||
13152 $as_test_x conftest$ac_exeext
13154 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=yes
13156 $as_echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13159 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=no
13162 rm -rf conftest.dSYM
13163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13164 conftest$ac_exeext conftest.$ac_ext
13165 LIBS=$ac_check_lib_save_LIBS
13167 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&5
13168 $as_echo "$ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&6; }
13169 if test "x$ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" = x""yes; then
13170 have_xf86miscsetgrabkeysstate=yes
13175 CPPFLAGS="$ac_save_CPPFLAGS"
13176 LDFLAGS="$ac_save_LDFLAGS"
13177 # LIBS="$ac_save_LIBS"
13179 if test "$have_xf86miscsetgrabkeysstate" = yes ; then
13180 SAVER_LIBS="$SAVER_LIBS -lXxf86misc"
13181 cat >>confdefs.h <<\_ACEOF
13182 #define HAVE_XF86MISCSETGRABKEYSSTATE 1
13189 ###############################################################################
13191 # Check for HP XHPDisableReset and XHPEnableReset.
13193 ###############################################################################
13195 { $as_echo "$as_me:$LINENO: checking for XHPDisableReset in X11/XHPlib.h" >&5
13196 $as_echo_n "checking for XHPDisableReset in X11/XHPlib.h... " >&6; }
13198 ac_save_CPPFLAGS="$CPPFLAGS"
13199 if test \! -z "$includedir" ; then
13200 CPPFLAGS="$CPPFLAGS -I$includedir"
13202 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13203 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13204 cat >conftest.$ac_ext <<_ACEOF
13207 cat confdefs.h >>conftest.$ac_ext
13208 cat >>conftest.$ac_ext <<_ACEOF
13209 /* end confdefs.h. */
13210 #include <X11/XHPlib.h>
13213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13214 $EGREP "XHPDisableReset" >/dev/null 2>&1; then
13215 cat >>confdefs.h <<\_ACEOF
13216 #define HAVE_XHPDISABLERESET 1
13219 SAVER_LIBS="-lXhp11 $SAVER_LIBS"
13220 { $as_echo "$as_me:$LINENO: result: yes" >&5
13221 $as_echo "yes" >&6; }
13223 { $as_echo "$as_me:$LINENO: result: no" >&5
13224 $as_echo "no" >&6; }
13228 CPPFLAGS="$ac_save_CPPFLAGS"
13231 ###############################################################################
13233 # Check for /proc/interrupts.
13235 ###############################################################################
13237 have_proc_interrupts=no
13238 with_proc_interrupts_req=unspecified
13240 # Check whether --with-proc-interrupts was given.
13241 if test "${with_proc_interrupts+set}" = set; then
13242 withval=$with_proc_interrupts; with_proc_interrupts="$withval"; with_proc_interrupts_req="$withval"
13244 with_proc_interrupts=yes
13248 if test "$with_proc_interrupts" = yes; then
13250 # Note that we may be building in an environment (e.g. Debian buildd chroot)
13251 # without a proper /proc filesystem. If /proc/interrupts exists, then we'll
13252 # check that it has the bits we need, but otherwise we'll just go on faith.
13254 have_proc_interrupts=yes
13256 if test -f /proc/interrupts; then
13257 { $as_echo "$as_me:$LINENO: checking whether /proc/interrupts contains keyboard data" >&5
13258 $as_echo_n "checking whether /proc/interrupts contains keyboard data... " >&6; }
13259 if test "${ac_cv_have_proc_interrupts+set}" = set; then
13260 $as_echo_n "(cached) " >&6
13262 ac_cv_have_proc_interrupts=no
13263 if grep 'keyboard\|i8042' /proc/interrupts >/dev/null 2>&1 ; then
13264 ac_cv_have_proc_interrupts=yes
13268 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_proc_interrupts" >&5
13269 $as_echo "$ac_cv_have_proc_interrupts" >&6; }
13270 have_proc_interrupts=$ac_cv_have_proc_interrupts
13273 if test "$have_proc_interrupts" = yes; then
13274 cat >>confdefs.h <<\_ACEOF
13275 #define HAVE_PROC_INTERRUPTS 1
13280 elif test "$with_proc_interrupts" != no; then
13281 echo "error: must be yes or no: --with-proc-interrupts=$with_proc_interrupts"
13286 ###############################################################################
13288 # The --enable-locking option
13290 ###############################################################################
13292 # Check whether --enable-locking was given.
13293 if test "${enable_locking+set}" = set; then
13294 enableval=$enable_locking; enable_locking="$enableval"
13296 if test "$ac_macosx" = yes; then
13297 # We can't lock on MacOS X, so default to not compiling in support for it.
13298 # But allow --enable-locking to override that, so I can debug Linux locking
13306 if test "$enable_locking" = yes; then
13308 elif test "$enable_locking" = no; then
13309 cat >>confdefs.h <<\_ACEOF
13310 #define NO_LOCKING 1
13314 echo "error: must be yes or no: --enable-locking=$enable_locking"
13319 ###############################################################################
13321 # Whether to allow root password to unblank.
13323 ###############################################################################
13324 # Check whether --enable-root-passwd was given.
13325 if test "${enable_root_passwd+set}" = set; then
13326 enableval=$enable_root_passwd; enable_root_passwd="$enableval"
13328 enable_root_passwd=yes
13331 if test "$enable_root_passwd" = yes; then
13332 cat >>confdefs.h <<\_ACEOF
13333 #define ALLOW_ROOT_PASSWD 1
13337 elif test "$enable_root_passwd" != no; then
13338 echo "error: must be yes or no: --enable-root-passwd=$enable_root_passwd"
13342 ###############################################################################
13346 ###############################################################################
13350 # Solaris systems tend to come with PAM misconfigured.
13351 # Don't build it by default, even if the headers exist.
13352 with_pam_default=no
13355 # Default to building PAM support on all other systems, if it exists.
13356 with_pam_default=yes
13361 with_pam_req=unspecified
13364 # Check whether --with-pam was given.
13365 if test "${with_pam+set}" = set; then
13366 withval=$with_pam; with_pam="$withval"; with_pam_req="$withval"
13368 with_pam=$with_pam_default
13373 # Check whether --with-pam_service_name was given.
13374 if test "${with_pam_service_name+set}" = set; then
13375 withval=$with_pam_service_name; pam_service_name="$withval"
13377 pam_service_name="xscreensaver"
13381 # Check whether --enable-pam-check-account-type was given.
13382 if test "${enable_pam_check_account_type+set}" = set; then
13383 enableval=$enable_pam_check_account_type; enable_pam_check_account_type="$enableval"
13385 enable_pam_check_account_type=no
13388 if test "$enable_pam_check_account_type" = yes ; then
13389 cat >>confdefs.h <<\_ACEOF
13390 #define PAM_CHECK_ACCOUNT_TYPE 1
13394 elif test "$enable_pam_check_account_type" != no ; then
13395 echo "error: must be yes or no: --enable-pam-check-account-type=$enable_pam_check_account_type"
13400 case "$with_pam" in
13405 { $as_echo "$as_me:$LINENO: checking for PAM headers" >&5
13406 $as_echo_n "checking for PAM headers... " >&6; }
13407 d=$with_pam/include
13408 if test -d $d; then
13409 X_CFLAGS="-I$d $X_CFLAGS"
13410 { $as_echo "$as_me:$LINENO: result: $d" >&5
13411 $as_echo "$d" >&6; }
13413 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13414 $as_echo "not found ($d: no such directory)" >&6; }
13417 { $as_echo "$as_me:$LINENO: checking for PAM libs" >&5
13418 $as_echo_n "checking for PAM libs... " >&6; }
13420 if test -d $d; then
13421 X_LIBS="-L$d $X_LIBS"
13422 { $as_echo "$as_me:$LINENO: result: $d" >&5
13423 $as_echo "$d" >&6; }
13425 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13426 $as_echo "not found ($d: no such directory)" >&6; }
13429 # replace the directory string with "yes".
13431 with_pam=$with_pam_req
13436 echo "error: argument to --with-pam must be \"yes\", \"no\", or a directory."
13437 echo " If it is a directory, then \`DIR/include' will be added to"
13438 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13444 if test "$enable_locking" = yes -a "$with_pam" = yes; then
13445 { $as_echo "$as_me:$LINENO: checking for PAM" >&5
13446 $as_echo_n "checking for PAM... " >&6; }
13447 if test "${ac_cv_pam+set}" = set; then
13448 $as_echo_n "(cached) " >&6
13451 ac_save_CPPFLAGS="$CPPFLAGS"
13452 if test \! -z "$includedir" ; then
13453 CPPFLAGS="$CPPFLAGS -I$includedir"
13455 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13456 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13457 cat >conftest.$ac_ext <<_ACEOF
13460 cat confdefs.h >>conftest.$ac_ext
13461 cat >>conftest.$ac_ext <<_ACEOF
13462 /* end confdefs.h. */
13463 #include <security/pam_appl.h>
13472 rm -rf conftest.$ac_objext
13473 if { (ac_try="$ac_compile"
13474 case "(($ac_try" in
13475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13476 *) ac_try_echo=$ac_try;;
13478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13479 $as_echo "$ac_try_echo") >&5
13480 (eval "$ac_compile") 2>conftest.er1
13482 grep -v '^ *+' conftest.er1 >conftest.err
13483 rm -rf conftest.er1
13484 cat conftest.err >&5
13485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); } && {
13487 test -z "$ac_c_werror_flag" ||
13488 test ! -s conftest.err
13489 } && test -s conftest.$ac_objext; then
13492 $as_echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13499 CPPFLAGS="$ac_save_CPPFLAGS"
13501 { $as_echo "$as_me:$LINENO: result: $ac_cv_pam" >&5
13502 $as_echo "$ac_cv_pam" >&6; }
13503 if test "$ac_cv_pam" = yes ; then
13505 cat >>confdefs.h <<\_ACEOF
13509 cat >>confdefs.h <<_ACEOF
13510 #define PAM_SERVICE_NAME "$pam_service_name"
13514 PASSWD_LIBS="${PASSWD_LIBS} -lpam"
13516 # libpam typically requires dlopen and dlsym. On FreeBSD,
13517 # those are in libc. On Linux and Solaris, they're in libdl.
13518 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13519 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13520 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13521 $as_echo_n "(cached) " >&6
13523 ac_check_lib_save_LIBS=$LIBS
13525 cat >conftest.$ac_ext <<_ACEOF
13528 cat confdefs.h >>conftest.$ac_ext
13529 cat >>conftest.$ac_ext <<_ACEOF
13530 /* end confdefs.h. */
13532 /* Override any GCC internal prototype to avoid an error.
13533 Use char because int might match the return type of a GCC
13534 builtin and then its argument prototype would still apply. */
13547 rm -rf conftest.$ac_objext conftest$ac_exeext
13548 if { (ac_try="$ac_link"
13549 case "(($ac_try" in
13550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13551 *) ac_try_echo=$ac_try;;
13553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13554 $as_echo "$ac_try_echo") >&5
13555 (eval "$ac_link") 2>conftest.er1
13557 grep -v '^ *+' conftest.er1 >conftest.err
13558 rm -rf conftest.er1
13559 cat conftest.err >&5
13560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); } && {
13562 test -z "$ac_c_werror_flag" ||
13563 test ! -s conftest.err
13564 } && test -s conftest$ac_exeext && {
13565 test "$cross_compiling" = yes ||
13566 $as_test_x conftest$ac_exeext
13568 ac_cv_lib_dl_dlopen=yes
13570 $as_echo "$as_me: failed program was:" >&5
13571 sed 's/^/| /' conftest.$ac_ext >&5
13573 ac_cv_lib_dl_dlopen=no
13576 rm -rf conftest.dSYM
13577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13578 conftest$ac_exeext conftest.$ac_ext
13579 LIBS=$ac_check_lib_save_LIBS
13581 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13582 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13583 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
13584 PASSWD_LIBS="${PASSWD_LIBS} -ldl"
13588 # On Linux, sigtimedwait() is in libc; on Solaris, it's in librt.
13590 { $as_echo "$as_me:$LINENO: checking for sigtimedwait in -lc" >&5
13591 $as_echo_n "checking for sigtimedwait in -lc... " >&6; }
13592 if test "${ac_cv_lib_c_sigtimedwait+set}" = set; then
13593 $as_echo_n "(cached) " >&6
13595 ac_check_lib_save_LIBS=$LIBS
13597 cat >conftest.$ac_ext <<_ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h. */
13604 /* Override any GCC internal prototype to avoid an error.
13605 Use char because int might match the return type of a GCC
13606 builtin and then its argument prototype would still apply. */
13610 char sigtimedwait ();
13614 return sigtimedwait ();
13619 rm -rf conftest.$ac_objext conftest$ac_exeext
13620 if { (ac_try="$ac_link"
13621 case "(($ac_try" in
13622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13623 *) ac_try_echo=$ac_try;;
13625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13626 $as_echo "$ac_try_echo") >&5
13627 (eval "$ac_link") 2>conftest.er1
13629 grep -v '^ *+' conftest.er1 >conftest.err
13630 rm -rf conftest.er1
13631 cat conftest.err >&5
13632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); } && {
13634 test -z "$ac_c_werror_flag" ||
13635 test ! -s conftest.err
13636 } && test -s conftest$ac_exeext && {
13637 test "$cross_compiling" = yes ||
13638 $as_test_x conftest$ac_exeext
13640 ac_cv_lib_c_sigtimedwait=yes
13642 $as_echo "$as_me: failed program was:" >&5
13643 sed 's/^/| /' conftest.$ac_ext >&5
13645 ac_cv_lib_c_sigtimedwait=no
13648 rm -rf conftest.dSYM
13649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13650 conftest$ac_exeext conftest.$ac_ext
13651 LIBS=$ac_check_lib_save_LIBS
13653 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_sigtimedwait" >&5
13654 $as_echo "$ac_cv_lib_c_sigtimedwait" >&6; }
13655 if test "x$ac_cv_lib_c_sigtimedwait" = x""yes; then
13657 cat >>confdefs.h <<\_ACEOF
13658 #define HAVE_SIGTIMEDWAIT 1
13663 if test "$have_timedwait" = no ; then
13664 { $as_echo "$as_me:$LINENO: checking for sigtimedwait in -lrt" >&5
13665 $as_echo_n "checking for sigtimedwait in -lrt... " >&6; }
13666 if test "${ac_cv_lib_rt_sigtimedwait+set}" = set; then
13667 $as_echo_n "(cached) " >&6
13669 ac_check_lib_save_LIBS=$LIBS
13671 cat >conftest.$ac_ext <<_ACEOF
13674 cat confdefs.h >>conftest.$ac_ext
13675 cat >>conftest.$ac_ext <<_ACEOF
13676 /* end confdefs.h. */
13678 /* Override any GCC internal prototype to avoid an error.
13679 Use char because int might match the return type of a GCC
13680 builtin and then its argument prototype would still apply. */
13684 char sigtimedwait ();
13688 return sigtimedwait ();
13693 rm -rf conftest.$ac_objext conftest$ac_exeext
13694 if { (ac_try="$ac_link"
13695 case "(($ac_try" in
13696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13697 *) ac_try_echo=$ac_try;;
13699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13700 $as_echo "$ac_try_echo") >&5
13701 (eval "$ac_link") 2>conftest.er1
13703 grep -v '^ *+' conftest.er1 >conftest.err
13704 rm -rf conftest.er1
13705 cat conftest.err >&5
13706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); } && {
13708 test -z "$ac_c_werror_flag" ||
13709 test ! -s conftest.err
13710 } && test -s conftest$ac_exeext && {
13711 test "$cross_compiling" = yes ||
13712 $as_test_x conftest$ac_exeext
13714 ac_cv_lib_rt_sigtimedwait=yes
13716 $as_echo "$as_me: failed program was:" >&5
13717 sed 's/^/| /' conftest.$ac_ext >&5
13719 ac_cv_lib_rt_sigtimedwait=no
13722 rm -rf conftest.dSYM
13723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13724 conftest$ac_exeext conftest.$ac_ext
13725 LIBS=$ac_check_lib_save_LIBS
13727 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sigtimedwait" >&5
13728 $as_echo "$ac_cv_lib_rt_sigtimedwait" >&6; }
13729 if test "x$ac_cv_lib_rt_sigtimedwait" = x""yes; then
13731 cat >>confdefs.h <<\_ACEOF
13732 #define HAVE_SIGTIMEDWAIT 1
13735 PASSWD_LIBS="${PASSWD_LIBS} -lrt"
13740 { $as_echo "$as_me:$LINENO: checking how to call pam_strerror" >&5
13741 $as_echo_n "checking how to call pam_strerror... " >&6; }
13742 if test "${ac_cv_pam_strerror_args+set}" = set; then
13743 $as_echo_n "(cached) " >&6
13746 ac_save_CPPFLAGS="$CPPFLAGS"
13747 if test \! -z "$includedir" ; then
13748 CPPFLAGS="$CPPFLAGS -I$includedir"
13750 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13751 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13752 cat >conftest.$ac_ext <<_ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13759 #include <stdlib.h>
13760 #include <security/pam_appl.h>
13764 pam_handle_t *pamh = 0;
13765 char *s = pam_strerror(pamh, PAM_SUCCESS);
13770 rm -rf conftest.$ac_objext
13771 if { (ac_try="$ac_compile"
13772 case "(($ac_try" in
13773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13774 *) ac_try_echo=$ac_try;;
13776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13777 $as_echo "$ac_try_echo") >&5
13778 (eval "$ac_compile") 2>conftest.er1
13780 grep -v '^ *+' conftest.er1 >conftest.err
13781 rm -rf conftest.er1
13782 cat conftest.err >&5
13783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); } && {
13785 test -z "$ac_c_werror_flag" ||
13786 test ! -s conftest.err
13787 } && test -s conftest.$ac_objext; then
13788 ac_pam_strerror_args=2
13790 $as_echo "$as_me: failed program was:" >&5
13791 sed 's/^/| /' conftest.$ac_ext >&5
13794 ac_save_CPPFLAGS="$CPPFLAGS"
13795 if test \! -z "$includedir" ; then
13796 CPPFLAGS="$CPPFLAGS -I$includedir"
13798 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13799 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13800 cat >conftest.$ac_ext <<_ACEOF
13803 cat confdefs.h >>conftest.$ac_ext
13804 cat >>conftest.$ac_ext <<_ACEOF
13805 /* end confdefs.h. */
13807 #include <stdlib.h>
13808 #include <security/pam_appl.h>
13813 pam_strerror(PAM_SUCCESS);
13818 rm -rf conftest.$ac_objext
13819 if { (ac_try="$ac_compile"
13820 case "(($ac_try" in
13821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822 *) ac_try_echo=$ac_try;;
13824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13825 $as_echo "$ac_try_echo") >&5
13826 (eval "$ac_compile") 2>conftest.er1
13828 grep -v '^ *+' conftest.er1 >conftest.err
13829 rm -rf conftest.er1
13830 cat conftest.err >&5
13831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } && {
13833 test -z "$ac_c_werror_flag" ||
13834 test ! -s conftest.err
13835 } && test -s conftest.$ac_objext; then
13836 ac_pam_strerror_args=1
13838 $as_echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13841 ac_pam_strerror_args=0
13844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13845 CPPFLAGS="$ac_save_CPPFLAGS"
13848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13849 CPPFLAGS="$ac_save_CPPFLAGS"
13850 ac_cv_pam_strerror_args=$ac_pam_strerror_args
13853 ac_pam_strerror_args=$ac_cv_pam_strerror_args
13854 if test "$ac_pam_strerror_args" = 1 ; then
13855 { $as_echo "$as_me:$LINENO: result: one argument" >&5
13856 $as_echo "one argument" >&6; }
13857 elif test "$ac_pam_strerror_args" = 2 ; then
13858 cat >>confdefs.h <<\_ACEOF
13859 #define PAM_STRERROR_TWO_ARGS 1
13862 { $as_echo "$as_me:$LINENO: result: two arguments" >&5
13863 $as_echo "two arguments" >&6; }
13865 { $as_echo "$as_me:$LINENO: result: unknown" >&5
13866 $as_echo "unknown" >&6; }
13869 # Check pam_fail_delay
13870 { $as_echo "$as_me:$LINENO: checking pam_fail_delay in -lpam" >&5
13871 $as_echo_n "checking pam_fail_delay in -lpam... " >&6; }
13872 if test "${ac_cv_pam_fail_delay+set}" = set; then
13873 $as_echo_n "(cached) " >&6
13875 ac_save_LDFLAGS="$LDFLAGS"
13877 cat >conftest.$ac_ext <<_ACEOF
13880 cat confdefs.h >>conftest.$ac_ext
13881 cat >>conftest.$ac_ext <<_ACEOF
13882 /* end confdefs.h. */
13883 #include <security/pam_appl.h>
13887 pam_handle_t *pamh = 0;
13888 unsigned int usec = 1;
13889 int status = pam_fail_delay (pamh, usec);
13894 rm -rf conftest.$ac_objext conftest$ac_exeext
13895 if { (ac_try="$ac_link"
13896 case "(($ac_try" in
13897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13898 *) ac_try_echo=$ac_try;;
13900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13901 $as_echo "$ac_try_echo") >&5
13902 (eval "$ac_link") 2>conftest.er1
13904 grep -v '^ *+' conftest.er1 >conftest.err
13905 rm -rf conftest.er1
13906 cat conftest.err >&5
13907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); } && {
13909 test -z "$ac_c_werror_flag" ||
13910 test ! -s conftest.err
13911 } && test -s conftest$ac_exeext && {
13912 test "$cross_compiling" = yes ||
13913 $as_test_x conftest$ac_exeext
13915 ac_pam_fail_delay=yes
13917 $as_echo "$as_me: failed program was:" >&5
13918 sed 's/^/| /' conftest.$ac_ext >&5
13920 ac_pam_fail_delay=no
13923 rm -rf conftest.dSYM
13924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13925 conftest$ac_exeext conftest.$ac_ext
13926 ac_cv_pam_fail_delay=$ac_pam_fail_delay,
13927 LDFLAGS=$ac_save_LDFLAGS
13931 if test "$ac_pam_fail_delay" = yes ; then
13932 { $as_echo "$as_me:$LINENO: result: yes" >&5
13933 $as_echo "yes" >&6; }
13934 cat >>confdefs.h <<\_ACEOF
13935 #define HAVE_PAM_FAIL_DELAY 1
13939 { $as_echo "$as_me:$LINENO: result: no" >&5
13940 $as_echo "no" >&6; }
13947 ###############################################################################
13949 # Check for Kerberos.
13951 ###############################################################################
13955 with_kerberos_req=unspecified
13958 # Check whether --with-kerberos was given.
13959 if test "${with_kerberos+set}" = set; then
13960 withval=$with_kerberos; with_kerberos="$withval"; with_kerberos_req="$withval"
13967 case "$with_kerberos" in
13972 { $as_echo "$as_me:$LINENO: checking for Kerberos headers" >&5
13973 $as_echo_n "checking for Kerberos headers... " >&6; }
13974 d=$with_kerberos/include
13975 if test -d $d; then
13976 X_CFLAGS="-I$d $X_CFLAGS"
13977 { $as_echo "$as_me:$LINENO: result: $d" >&5
13978 $as_echo "$d" >&6; }
13980 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13981 $as_echo "not found ($d: no such directory)" >&6; }
13984 { $as_echo "$as_me:$LINENO: checking for Kerberos libs" >&5
13985 $as_echo_n "checking for Kerberos libs... " >&6; }
13986 d=$with_kerberos/lib
13987 if test -d $d; then
13988 X_LIBS="-L$d $X_LIBS"
13989 { $as_echo "$as_me:$LINENO: result: $d" >&5
13990 $as_echo "$d" >&6; }
13992 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13993 $as_echo "not found ($d: no such directory)" >&6; }
13996 # replace the directory string with "yes".
13997 with_kerberos_req="yes"
13998 with_kerberos=$with_kerberos_req
14003 echo "error: argument to --with-kerberos must be \"yes\", \"no\", or a directory."
14004 echo " If it is a directory, then \`DIR/include' will be added to"
14005 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14011 if test "$enable_locking" = yes -a "$with_kerberos" = yes; then
14012 { $as_echo "$as_me:$LINENO: checking for Kerberos 4" >&5
14013 $as_echo_n "checking for Kerberos 4... " >&6; }
14014 if test "${ac_cv_kerberos+set}" = set; then
14015 $as_echo_n "(cached) " >&6
14018 ac_save_CPPFLAGS="$CPPFLAGS"
14019 if test \! -z "$includedir" ; then
14020 CPPFLAGS="$CPPFLAGS -I$includedir"
14022 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14023 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14024 cat >conftest.$ac_ext <<_ACEOF
14027 cat confdefs.h >>conftest.$ac_ext
14028 cat >>conftest.$ac_ext <<_ACEOF
14029 /* end confdefs.h. */
14039 rm -rf conftest.$ac_objext
14040 if { (ac_try="$ac_compile"
14041 case "(($ac_try" in
14042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14043 *) ac_try_echo=$ac_try;;
14045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14046 $as_echo "$ac_try_echo") >&5
14047 (eval "$ac_compile") 2>conftest.er1
14049 grep -v '^ *+' conftest.er1 >conftest.err
14050 rm -rf conftest.er1
14051 cat conftest.err >&5
14052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } && {
14054 test -z "$ac_c_werror_flag" ||
14055 test ! -s conftest.err
14056 } && test -s conftest.$ac_objext; then
14059 $as_echo "$as_me: failed program was:" >&5
14060 sed 's/^/| /' conftest.$ac_ext >&5
14065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14066 CPPFLAGS="$ac_save_CPPFLAGS"
14068 { $as_echo "$as_me:$LINENO: result: $ac_cv_kerberos" >&5
14069 $as_echo "$ac_cv_kerberos" >&6; }
14070 { $as_echo "$as_me:$LINENO: checking for Kerberos 5" >&5
14071 $as_echo_n "checking for Kerberos 5... " >&6; }
14072 if test "${ac_cv_kerberos5+set}" = set; then
14073 $as_echo_n "(cached) " >&6
14076 ac_save_CPPFLAGS="$CPPFLAGS"
14077 if test \! -z "$includedir" ; then
14078 CPPFLAGS="$CPPFLAGS -I$includedir"
14080 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14081 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14082 cat >conftest.$ac_ext <<_ACEOF
14085 cat confdefs.h >>conftest.$ac_ext
14086 cat >>conftest.$ac_ext <<_ACEOF
14087 /* end confdefs.h. */
14088 #include <kerberosIV/krb.h>
14097 rm -rf conftest.$ac_objext
14098 if { (ac_try="$ac_compile"
14099 case "(($ac_try" in
14100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14101 *) ac_try_echo=$ac_try;;
14103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14104 $as_echo "$ac_try_echo") >&5
14105 (eval "$ac_compile") 2>conftest.er1
14107 grep -v '^ *+' conftest.er1 >conftest.err
14108 rm -rf conftest.er1
14109 cat conftest.err >&5
14110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } && {
14112 test -z "$ac_c_werror_flag" ||
14113 test ! -s conftest.err
14114 } && test -s conftest.$ac_objext; then
14115 ac_cv_kerberos5=yes
14117 $as_echo "$as_me: failed program was:" >&5
14118 sed 's/^/| /' conftest.$ac_ext >&5
14123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14124 CPPFLAGS="$ac_save_CPPFLAGS"
14126 { $as_echo "$as_me:$LINENO: result: $ac_cv_kerberos5" >&5
14127 $as_echo "$ac_cv_kerberos5" >&6; }
14129 if test "$ac_cv_kerberos" = yes ; then
14131 cat >>confdefs.h <<\_ACEOF
14132 #define HAVE_KERBEROS 1
14137 if test "$ac_cv_kerberos5" = yes ; then
14139 # Andrew Snare <ajs@pigpond.com> wrote:
14141 # You were assuming that if kerberosV (krb5) was found, then kerberosIV
14142 # (krb4) was also available. This turns out not to be the case with
14143 # mit-krb-1.2.7; apparently backwards-compatibility with KerberosIV
14146 # So, disable kerberosV support if libkrb4 can't be found.
14147 # This is not the best solution, but it makes the compile not fail.
14150 ac_save_CPPFLAGS="$CPPFLAGS"
14151 ac_save_LDFLAGS="$LDFLAGS"
14152 # ac_save_LIBS="$LIBS"
14154 if test \! -z "$includedir" ; then
14155 CPPFLAGS="$CPPFLAGS -I$includedir"
14157 # note: $X_CFLAGS includes $x_includes
14158 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14160 if test \! -z "$libdir" ; then
14161 LDFLAGS="$LDFLAGS -L$libdir"
14163 # note: $X_LIBS includes $x_libraries
14164 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14166 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14167 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
14168 { $as_echo "$as_me:$LINENO: checking for krb_get_tf_realm in -lkrb4" >&5
14169 $as_echo_n "checking for krb_get_tf_realm in -lkrb4... " >&6; }
14170 if test "${ac_cv_lib_krb4_krb_get_tf_realm+set}" = set; then
14171 $as_echo_n "(cached) " >&6
14173 ac_check_lib_save_LIBS=$LIBS
14174 LIBS="-lkrb4 $LIBS"
14175 cat >conftest.$ac_ext <<_ACEOF
14178 cat confdefs.h >>conftest.$ac_ext
14179 cat >>conftest.$ac_ext <<_ACEOF
14180 /* end confdefs.h. */
14182 /* Override any GCC internal prototype to avoid an error.
14183 Use char because int might match the return type of a GCC
14184 builtin and then its argument prototype would still apply. */
14188 char krb_get_tf_realm ();
14192 return krb_get_tf_realm ();
14197 rm -rf conftest.$ac_objext conftest$ac_exeext
14198 if { (ac_try="$ac_link"
14199 case "(($ac_try" in
14200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201 *) ac_try_echo=$ac_try;;
14203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14204 $as_echo "$ac_try_echo") >&5
14205 (eval "$ac_link") 2>conftest.er1
14207 grep -v '^ *+' conftest.er1 >conftest.err
14208 rm -rf conftest.er1
14209 cat conftest.err >&5
14210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); } && {
14212 test -z "$ac_c_werror_flag" ||
14213 test ! -s conftest.err
14214 } && test -s conftest$ac_exeext && {
14215 test "$cross_compiling" = yes ||
14216 $as_test_x conftest$ac_exeext
14218 ac_cv_lib_krb4_krb_get_tf_realm=yes
14220 $as_echo "$as_me: failed program was:" >&5
14221 sed 's/^/| /' conftest.$ac_ext >&5
14223 ac_cv_lib_krb4_krb_get_tf_realm=no
14226 rm -rf conftest.dSYM
14227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14228 conftest$ac_exeext conftest.$ac_ext
14229 LIBS=$ac_check_lib_save_LIBS
14231 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_tf_realm" >&5
14232 $as_echo "$ac_cv_lib_krb4_krb_get_tf_realm" >&6; }
14233 if test "x$ac_cv_lib_krb4_krb_get_tf_realm" = x""yes; then
14239 CPPFLAGS="$ac_save_CPPFLAGS"
14240 LDFLAGS="$ac_save_LDFLAGS"
14241 # LIBS="$ac_save_LIBS"
14243 if test "$have_kerberos" = yes ; then
14245 cat >>confdefs.h <<\_ACEOF
14246 #define HAVE_KERBEROS 1
14249 cat >>confdefs.h <<\_ACEOF
14250 #define HAVE_KERBEROS5 1
14255 { $as_echo "$as_me:$LINENO: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&5
14256 $as_echo "$as_me: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&2;}
14261 if test "$have_kerberos5" = yes ; then
14262 # from Matt Knopp <mhat@infocalypse.netlag.com>
14263 # (who got it from amu@mit.edu)
14265 PASSWD_LIBS="$PASSWD_LIBS -lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
14267 # jwz: MacOS X uses -lkrb5, but not -lcrypt
14269 ac_save_CPPFLAGS="$CPPFLAGS"
14270 ac_save_LDFLAGS="$LDFLAGS"
14271 # ac_save_LIBS="$LIBS"
14273 if test \! -z "$includedir" ; then
14274 CPPFLAGS="$CPPFLAGS -I$includedir"
14276 # note: $X_CFLAGS includes $x_includes
14277 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14279 if test \! -z "$libdir" ; then
14280 LDFLAGS="$LDFLAGS -L$libdir"
14282 # note: $X_LIBS includes $x_libraries
14283 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14285 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14286 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
14287 { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
14288 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
14289 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
14290 $as_echo_n "(cached) " >&6
14292 ac_check_lib_save_LIBS=$LIBS
14293 LIBS="-lcrypt $LIBS"
14294 cat >conftest.$ac_ext <<_ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14301 /* Override any GCC internal prototype to avoid an error.
14302 Use char because int might match the return type of a GCC
14303 builtin and then its argument prototype would still apply. */
14316 rm -rf conftest.$ac_objext conftest$ac_exeext
14317 if { (ac_try="$ac_link"
14318 case "(($ac_try" in
14319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14323 $as_echo "$ac_try_echo") >&5
14324 (eval "$ac_link") 2>conftest.er1
14326 grep -v '^ *+' conftest.er1 >conftest.err
14327 rm -rf conftest.er1
14328 cat conftest.err >&5
14329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); } && {
14331 test -z "$ac_c_werror_flag" ||
14332 test ! -s conftest.err
14333 } && test -s conftest$ac_exeext && {
14334 test "$cross_compiling" = yes ||
14335 $as_test_x conftest$ac_exeext
14337 ac_cv_lib_crypt_crypt=yes
14339 $as_echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.$ac_ext >&5
14342 ac_cv_lib_crypt_crypt=no
14345 rm -rf conftest.dSYM
14346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14347 conftest$ac_exeext conftest.$ac_ext
14348 LIBS=$ac_check_lib_save_LIBS
14350 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
14351 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
14352 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
14353 PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
14356 CPPFLAGS="$ac_save_CPPFLAGS"
14357 LDFLAGS="$ac_save_LDFLAGS"
14358 # LIBS="$ac_save_LIBS"
14361 elif test "$have_kerberos" = yes ; then
14362 # from Tim Showalter <tjs@psaux.com> for FreeBSD 4.2
14363 PASSWD_LIBS="$PASSWD_LIBS -lkrb -ldes -lcom_err"
14366 if test "$have_kerberos" = yes ; then
14367 { $as_echo "$as_me:$LINENO: checking for res_search" >&5
14368 $as_echo_n "checking for res_search... " >&6; }
14369 if test "${ac_cv_func_res_search+set}" = set; then
14370 $as_echo_n "(cached) " >&6
14372 cat >conftest.$ac_ext <<_ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h. */
14378 /* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
14379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14380 #define res_search innocuous_res_search
14382 /* System header to define __stub macros and hopefully few prototypes,
14383 which can conflict with char res_search (); below.
14384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14385 <limits.h> exists even on freestanding compilers. */
14388 # include <limits.h>
14390 # include <assert.h>
14395 /* Override any GCC internal prototype to avoid an error.
14396 Use char because int might match the return type of a GCC
14397 builtin and then its argument prototype would still apply. */
14401 char res_search ();
14402 /* The GNU C library defines this for functions which it implements
14403 to always fail with ENOSYS. Some functions are actually named
14404 something starting with __ and the normal name is an alias. */
14405 #if defined __stub_res_search || defined __stub___res_search
14412 return res_search ();
14417 rm -rf conftest.$ac_objext conftest$ac_exeext
14418 if { (ac_try="$ac_link"
14419 case "(($ac_try" in
14420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14421 *) ac_try_echo=$ac_try;;
14423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14424 $as_echo "$ac_try_echo") >&5
14425 (eval "$ac_link") 2>conftest.er1
14427 grep -v '^ *+' conftest.er1 >conftest.err
14428 rm -rf conftest.er1
14429 cat conftest.err >&5
14430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); } && {
14432 test -z "$ac_c_werror_flag" ||
14433 test ! -s conftest.err
14434 } && test -s conftest$ac_exeext && {
14435 test "$cross_compiling" = yes ||
14436 $as_test_x conftest$ac_exeext
14438 ac_cv_func_res_search=yes
14440 $as_echo "$as_me: failed program was:" >&5
14441 sed 's/^/| /' conftest.$ac_ext >&5
14443 ac_cv_func_res_search=no
14446 rm -rf conftest.dSYM
14447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14448 conftest$ac_exeext conftest.$ac_ext
14450 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
14451 $as_echo "$ac_cv_func_res_search" >&6; }
14452 if test "x$ac_cv_func_res_search" = x""yes; then
14455 { $as_echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
14456 $as_echo_n "checking for res_search in -lresolv... " >&6; }
14457 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
14458 $as_echo_n "(cached) " >&6
14460 ac_check_lib_save_LIBS=$LIBS
14461 LIBS="-lresolv $LIBS"
14462 cat >conftest.$ac_ext <<_ACEOF
14465 cat confdefs.h >>conftest.$ac_ext
14466 cat >>conftest.$ac_ext <<_ACEOF
14467 /* end confdefs.h. */
14469 /* Override any GCC internal prototype to avoid an error.
14470 Use char because int might match the return type of a GCC
14471 builtin and then its argument prototype would still apply. */
14475 char res_search ();
14479 return res_search ();
14484 rm -rf conftest.$ac_objext conftest$ac_exeext
14485 if { (ac_try="$ac_link"
14486 case "(($ac_try" in
14487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14488 *) ac_try_echo=$ac_try;;
14490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14491 $as_echo "$ac_try_echo") >&5
14492 (eval "$ac_link") 2>conftest.er1
14494 grep -v '^ *+' conftest.er1 >conftest.err
14495 rm -rf conftest.er1
14496 cat conftest.err >&5
14497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); } && {
14499 test -z "$ac_c_werror_flag" ||
14500 test ! -s conftest.err
14501 } && test -s conftest$ac_exeext && {
14502 test "$cross_compiling" = yes ||
14503 $as_test_x conftest$ac_exeext
14505 ac_cv_lib_resolv_res_search=yes
14507 $as_echo "$as_me: failed program was:" >&5
14508 sed 's/^/| /' conftest.$ac_ext >&5
14510 ac_cv_lib_resolv_res_search=no
14513 rm -rf conftest.dSYM
14514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14515 conftest$ac_exeext conftest.$ac_ext
14516 LIBS=$ac_check_lib_save_LIBS
14518 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
14519 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
14520 if test "x$ac_cv_lib_resolv_res_search" = x""yes; then
14521 PASSWD_LIBS="${PASSWD_LIBS} -lresolv"
14523 { $as_echo "$as_me:$LINENO: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&5
14524 $as_echo "$as_me: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&2;}
14534 ###############################################################################
14536 # Check for the nine billion variants of shadow passwords...
14538 ###############################################################################
14543 with_shadow_req=unspecified
14546 # Check whether --with-shadow was given.
14547 if test "${with_shadow+set}" = set; then
14548 withval=$with_shadow; with_shadow="$withval"; with_shadow_req="$withval"
14555 case "$with_shadow" in
14560 { $as_echo "$as_me:$LINENO: checking for shadow password headers" >&5
14561 $as_echo_n "checking for shadow password headers... " >&6; }
14562 d=$with_shadow/include
14563 if test -d $d; then
14564 X_CFLAGS="-I$d $X_CFLAGS"
14565 { $as_echo "$as_me:$LINENO: result: $d" >&5
14566 $as_echo "$d" >&6; }
14568 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14569 $as_echo "not found ($d: no such directory)" >&6; }
14572 { $as_echo "$as_me:$LINENO: checking for shadow password libs" >&5
14573 $as_echo_n "checking for shadow password libs... " >&6; }
14575 if test -d $d; then
14576 X_LIBS="-L$d $X_LIBS"
14577 { $as_echo "$as_me:$LINENO: result: $d" >&5
14578 $as_echo "$d" >&6; }
14580 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14581 $as_echo "not found ($d: no such directory)" >&6; }
14584 # replace the directory string with "yes".
14585 with_shadow_req="yes"
14586 with_shadow=$with_shadow_req
14591 echo "error: argument to --with-shadow must be \"yes\", \"no\", or a directory."
14592 echo " If it is a directory, then \`DIR/include' will be added to"
14593 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14599 if test "$enable_locking" = no ; then
14605 ###############################################################################
14607 # Check for Sun "adjunct" passwords.
14609 ###############################################################################
14611 if test "$with_shadow" = yes ; then
14612 { $as_echo "$as_me:$LINENO: checking for Sun-style shadow passwords" >&5
14613 $as_echo_n "checking for Sun-style shadow passwords... " >&6; }
14614 if test "${ac_cv_sun_adjunct+set}" = set; then
14615 $as_echo_n "(cached) " >&6
14618 ac_save_CPPFLAGS="$CPPFLAGS"
14619 if test \! -z "$includedir" ; then
14620 CPPFLAGS="$CPPFLAGS -I$includedir"
14622 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14623 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14624 cat >conftest.$ac_ext <<_ACEOF
14627 cat confdefs.h >>conftest.$ac_ext
14628 cat >>conftest.$ac_ext <<_ACEOF
14629 /* end confdefs.h. */
14630 #include <stdlib.h>
14631 #include <unistd.h>
14632 #include <sys/types.h>
14633 #include <sys/label.h>
14634 #include <sys/audit.h>
14635 #include <pwdadj.h>
14639 struct passwd_adjunct *p = getpwanam("nobody");
14640 const char *pw = p->pwa_passwd;
14645 rm -rf conftest.$ac_objext
14646 if { (ac_try="$ac_compile"
14647 case "(($ac_try" in
14648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649 *) ac_try_echo=$ac_try;;
14651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14652 $as_echo "$ac_try_echo") >&5
14653 (eval "$ac_compile") 2>conftest.er1
14655 grep -v '^ *+' conftest.er1 >conftest.err
14656 rm -rf conftest.er1
14657 cat conftest.err >&5
14658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); } && {
14660 test -z "$ac_c_werror_flag" ||
14661 test ! -s conftest.err
14662 } && test -s conftest.$ac_objext; then
14663 ac_cv_sun_adjunct=yes
14665 $as_echo "$as_me: failed program was:" >&5
14666 sed 's/^/| /' conftest.$ac_ext >&5
14668 ac_cv_sun_adjunct=no
14671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14672 CPPFLAGS="$ac_save_CPPFLAGS"
14674 { $as_echo "$as_me:$LINENO: result: $ac_cv_sun_adjunct" >&5
14675 $as_echo "$ac_cv_sun_adjunct" >&6; }
14676 if test "$ac_cv_sun_adjunct" = yes; then
14677 have_shadow_adjunct=yes
14684 ###############################################################################
14686 # Check for DEC and SCO so-called "enhanced" security.
14688 ###############################################################################
14690 if test "$with_shadow" = yes ; then
14691 { $as_echo "$as_me:$LINENO: checking for DEC-style shadow passwords" >&5
14692 $as_echo_n "checking for DEC-style shadow passwords... " >&6; }
14693 if test "${ac_cv_enhanced_passwd+set}" = set; then
14694 $as_echo_n "(cached) " >&6
14697 ac_save_CPPFLAGS="$CPPFLAGS"
14698 if test \! -z "$includedir" ; then
14699 CPPFLAGS="$CPPFLAGS -I$includedir"
14701 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14702 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14703 cat >conftest.$ac_ext <<_ACEOF
14706 cat confdefs.h >>conftest.$ac_ext
14707 cat >>conftest.$ac_ext <<_ACEOF
14708 /* end confdefs.h. */
14709 #include <stdlib.h>
14710 #include <unistd.h>
14711 #include <sys/types.h>
14713 #include <sys/security.h>
14718 struct pr_passwd *p;
14720 set_auth_parameters(0, 0);
14721 check_auth_parameters();
14722 p = getprpwnam("nobody");
14723 pw = p->ufld.fd_encrypt;
14728 rm -rf conftest.$ac_objext
14729 if { (ac_try="$ac_compile"
14730 case "(($ac_try" in
14731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732 *) ac_try_echo=$ac_try;;
14734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14735 $as_echo "$ac_try_echo") >&5
14736 (eval "$ac_compile") 2>conftest.er1
14738 grep -v '^ *+' conftest.er1 >conftest.err
14739 rm -rf conftest.er1
14740 cat conftest.err >&5
14741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); } && {
14743 test -z "$ac_c_werror_flag" ||
14744 test ! -s conftest.err
14745 } && test -s conftest.$ac_objext; then
14746 ac_cv_enhanced_passwd=yes
14748 $as_echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14751 ac_cv_enhanced_passwd=no
14754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14755 CPPFLAGS="$ac_save_CPPFLAGS"
14757 { $as_echo "$as_me:$LINENO: result: $ac_cv_enhanced_passwd" >&5
14758 $as_echo "$ac_cv_enhanced_passwd" >&6; }
14759 if test $ac_cv_enhanced_passwd = yes; then
14760 have_shadow_enhanced=yes
14764 # On SCO, getprpwnam() is in -lprot (which uses nap() from -lx)
14765 # (I'm told it needs -lcurses too, but I don't understand why.)
14766 # But on DEC, it's in -lsecurity.
14768 { $as_echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
14769 $as_echo_n "checking for getprpwnam in -lprot... " >&6; }
14770 if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
14771 $as_echo_n "(cached) " >&6
14773 ac_check_lib_save_LIBS=$LIBS
14774 LIBS="-lprot -lx $LIBS"
14775 cat >conftest.$ac_ext <<_ACEOF
14778 cat confdefs.h >>conftest.$ac_ext
14779 cat >>conftest.$ac_ext <<_ACEOF
14780 /* end confdefs.h. */
14782 /* Override any GCC internal prototype to avoid an error.
14783 Use char because int might match the return type of a GCC
14784 builtin and then its argument prototype would still apply. */
14788 char getprpwnam ();
14792 return getprpwnam ();
14797 rm -rf conftest.$ac_objext conftest$ac_exeext
14798 if { (ac_try="$ac_link"
14799 case "(($ac_try" in
14800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801 *) ac_try_echo=$ac_try;;
14803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14804 $as_echo "$ac_try_echo") >&5
14805 (eval "$ac_link") 2>conftest.er1
14807 grep -v '^ *+' conftest.er1 >conftest.err
14808 rm -rf conftest.er1
14809 cat conftest.err >&5
14810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); } && {
14812 test -z "$ac_c_werror_flag" ||
14813 test ! -s conftest.err
14814 } && test -s conftest$ac_exeext && {
14815 test "$cross_compiling" = yes ||
14816 $as_test_x conftest$ac_exeext
14818 ac_cv_lib_prot_getprpwnam=yes
14820 $as_echo "$as_me: failed program was:" >&5
14821 sed 's/^/| /' conftest.$ac_ext >&5
14823 ac_cv_lib_prot_getprpwnam=no
14826 rm -rf conftest.dSYM
14827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14828 conftest$ac_exeext conftest.$ac_ext
14829 LIBS=$ac_check_lib_save_LIBS
14831 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
14832 $as_echo "$ac_cv_lib_prot_getprpwnam" >&6; }
14833 if test "x$ac_cv_lib_prot_getprpwnam" = x""yes; then
14834 PASSWD_LIBS="$PASSWD_LIBS -lprot -lcurses -lx"
14836 { $as_echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
14837 $as_echo_n "checking for getprpwnam in -lsecurity... " >&6; }
14838 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
14839 $as_echo_n "(cached) " >&6
14841 ac_check_lib_save_LIBS=$LIBS
14842 LIBS="-lsecurity $LIBS"
14843 cat >conftest.$ac_ext <<_ACEOF
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h. */
14850 /* Override any GCC internal prototype to avoid an error.
14851 Use char because int might match the return type of a GCC
14852 builtin and then its argument prototype would still apply. */
14856 char getprpwnam ();
14860 return getprpwnam ();
14865 rm -rf conftest.$ac_objext conftest$ac_exeext
14866 if { (ac_try="$ac_link"
14867 case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14872 $as_echo "$ac_try_echo") >&5
14873 (eval "$ac_link") 2>conftest.er1
14875 grep -v '^ *+' conftest.er1 >conftest.err
14876 rm -rf conftest.er1
14877 cat conftest.err >&5
14878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } && {
14880 test -z "$ac_c_werror_flag" ||
14881 test ! -s conftest.err
14882 } && test -s conftest$ac_exeext && {
14883 test "$cross_compiling" = yes ||
14884 $as_test_x conftest$ac_exeext
14886 ac_cv_lib_security_getprpwnam=yes
14888 $as_echo "$as_me: failed program was:" >&5
14889 sed 's/^/| /' conftest.$ac_ext >&5
14891 ac_cv_lib_security_getprpwnam=no
14894 rm -rf conftest.dSYM
14895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14896 conftest$ac_exeext conftest.$ac_ext
14897 LIBS=$ac_check_lib_save_LIBS
14899 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
14900 $as_echo "$ac_cv_lib_security_getprpwnam" >&6; }
14901 if test "x$ac_cv_lib_security_getprpwnam" = x""yes; then
14902 PASSWD_LIBS="$PASSWD_LIBS -lsecurity"
14910 ###############################################################################
14912 # Check for HP's entry in the "Not Invented Here" Sweepstakes.
14914 ###############################################################################
14916 if test "$with_shadow" = yes ; then
14917 { $as_echo "$as_me:$LINENO: checking for HP-style shadow passwords" >&5
14918 $as_echo_n "checking for HP-style shadow passwords... " >&6; }
14919 if test "${ac_cv_hpux_passwd+set}" = set; then
14920 $as_echo_n "(cached) " >&6
14923 ac_save_CPPFLAGS="$CPPFLAGS"
14924 if test \! -z "$includedir" ; then
14925 CPPFLAGS="$CPPFLAGS -I$includedir"
14927 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14928 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14929 cat >conftest.$ac_ext <<_ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h. */
14935 #include <stdlib.h>
14936 #include <unistd.h>
14937 #include <sys/types.h>
14939 #include <hpsecurity.h>
14944 struct s_passwd *p = getspwnam("nobody");
14945 const char *pw = p->pw_passwd;
14950 rm -rf conftest.$ac_objext
14951 if { (ac_try="$ac_compile"
14952 case "(($ac_try" in
14953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14954 *) ac_try_echo=$ac_try;;
14956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14957 $as_echo "$ac_try_echo") >&5
14958 (eval "$ac_compile") 2>conftest.er1
14960 grep -v '^ *+' conftest.er1 >conftest.err
14961 rm -rf conftest.er1
14962 cat conftest.err >&5
14963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); } && {
14965 test -z "$ac_c_werror_flag" ||
14966 test ! -s conftest.err
14967 } && test -s conftest.$ac_objext; then
14968 ac_cv_hpux_passwd=yes
14970 $as_echo "$as_me: failed program was:" >&5
14971 sed 's/^/| /' conftest.$ac_ext >&5
14973 ac_cv_hpux_passwd=no
14976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14977 CPPFLAGS="$ac_save_CPPFLAGS"
14979 { $as_echo "$as_me:$LINENO: result: $ac_cv_hpux_passwd" >&5
14980 $as_echo "$ac_cv_hpux_passwd" >&6; }
14981 if test "$ac_cv_hpux_passwd" = yes; then
14982 have_shadow_hpux=yes
14986 # on HPUX, bigcrypt is in -lsec
14987 { $as_echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
14988 $as_echo_n "checking for bigcrypt in -lsec... " >&6; }
14989 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
14990 $as_echo_n "(cached) " >&6
14992 ac_check_lib_save_LIBS=$LIBS
14994 cat >conftest.$ac_ext <<_ACEOF
14997 cat confdefs.h >>conftest.$ac_ext
14998 cat >>conftest.$ac_ext <<_ACEOF
14999 /* end confdefs.h. */
15001 /* Override any GCC internal prototype to avoid an error.
15002 Use char because int might match the return type of a GCC
15003 builtin and then its argument prototype would still apply. */
15011 return bigcrypt ();
15016 rm -rf conftest.$ac_objext conftest$ac_exeext
15017 if { (ac_try="$ac_link"
15018 case "(($ac_try" in
15019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020 *) ac_try_echo=$ac_try;;
15022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15023 $as_echo "$ac_try_echo") >&5
15024 (eval "$ac_link") 2>conftest.er1
15026 grep -v '^ *+' conftest.er1 >conftest.err
15027 rm -rf conftest.er1
15028 cat conftest.err >&5
15029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); } && {
15031 test -z "$ac_c_werror_flag" ||
15032 test ! -s conftest.err
15033 } && test -s conftest$ac_exeext && {
15034 test "$cross_compiling" = yes ||
15035 $as_test_x conftest$ac_exeext
15037 ac_cv_lib_sec_bigcrypt=yes
15039 $as_echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15042 ac_cv_lib_sec_bigcrypt=no
15045 rm -rf conftest.dSYM
15046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15047 conftest$ac_exeext conftest.$ac_ext
15048 LIBS=$ac_check_lib_save_LIBS
15050 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
15051 $as_echo "$ac_cv_lib_sec_bigcrypt" >&6; }
15052 if test "x$ac_cv_lib_sec_bigcrypt" = x""yes; then
15053 PASSWD_LIBS="$PASSWD_LIBS -lsec"
15060 ###############################################################################
15062 # Check for FreeBSD-style shadow passwords.
15064 # On FreeBSD, getpwnam() and friends work just like on non-shadow-
15065 # password systems -- except you only get stuff in the pw_passwd field
15066 # if the running program is setuid. So, guess that we've got this
15067 # lossage to contend with if /etc/master.passwd exists, and default to
15068 # a setuid installation.
15070 ###############################################################################
15072 if test "$with_shadow" = yes ; then
15073 { $as_echo "$as_me:$LINENO: checking for FreeBSD-style shadow passwords" >&5
15074 $as_echo_n "checking for FreeBSD-style shadow passwords... " >&6; }
15075 if test "${ac_cv_master_passwd+set}" = set; then
15076 $as_echo_n "(cached) " >&6
15078 if test -f /etc/master.passwd ; then
15079 ac_cv_master_passwd=yes
15081 ac_cv_master_passwd=no
15084 { $as_echo "$as_me:$LINENO: result: $ac_cv_master_passwd" >&5
15085 $as_echo "$ac_cv_master_passwd" >&6; }
15086 if test "$ac_cv_master_passwd" = yes; then
15092 ###############################################################################
15094 # Check for traditional (ha!) shadow passwords.
15096 ###############################################################################
15098 if test "$with_shadow" = yes ; then
15099 { $as_echo "$as_me:$LINENO: checking for generic shadow passwords" >&5
15100 $as_echo_n "checking for generic shadow passwords... " >&6; }
15101 if test "${ac_cv_shadow+set}" = set; then
15102 $as_echo_n "(cached) " >&6
15105 ac_save_CPPFLAGS="$CPPFLAGS"
15106 if test \! -z "$includedir" ; then
15107 CPPFLAGS="$CPPFLAGS -I$includedir"
15109 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15110 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15111 cat >conftest.$ac_ext <<_ACEOF
15114 cat confdefs.h >>conftest.$ac_ext
15115 cat >>conftest.$ac_ext <<_ACEOF
15116 /* end confdefs.h. */
15117 #include <stdlib.h>
15118 #include <unistd.h>
15119 #include <sys/types.h>
15121 #include <shadow.h>
15125 struct spwd *p = getspnam("nobody");
15126 const char *pw = p->sp_pwdp;
15131 rm -rf conftest.$ac_objext
15132 if { (ac_try="$ac_compile"
15133 case "(($ac_try" in
15134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135 *) ac_try_echo=$ac_try;;
15137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15138 $as_echo "$ac_try_echo") >&5
15139 (eval "$ac_compile") 2>conftest.er1
15141 grep -v '^ *+' conftest.er1 >conftest.err
15142 rm -rf conftest.er1
15143 cat conftest.err >&5
15144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } && {
15146 test -z "$ac_c_werror_flag" ||
15147 test ! -s conftest.err
15148 } && test -s conftest.$ac_objext; then
15151 $as_echo "$as_me: failed program was:" >&5
15152 sed 's/^/| /' conftest.$ac_ext >&5
15157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15158 CPPFLAGS="$ac_save_CPPFLAGS"
15160 { $as_echo "$as_me:$LINENO: result: $ac_cv_shadow" >&5
15161 $as_echo "$ac_cv_shadow" >&6; }
15162 if test "$ac_cv_shadow" = yes; then
15166 # On some systems (UnixWare 2.1), getspnam() is in -lgen instead of -lc.
15168 { $as_echo "$as_me:$LINENO: checking for getspnam in -lc" >&5
15169 $as_echo_n "checking for getspnam in -lc... " >&6; }
15170 if test "${ac_cv_lib_c_getspnam+set}" = set; then
15171 $as_echo_n "(cached) " >&6
15173 ac_check_lib_save_LIBS=$LIBS
15175 cat >conftest.$ac_ext <<_ACEOF
15178 cat confdefs.h >>conftest.$ac_ext
15179 cat >>conftest.$ac_ext <<_ACEOF
15180 /* end confdefs.h. */
15182 /* Override any GCC internal prototype to avoid an error.
15183 Use char because int might match the return type of a GCC
15184 builtin and then its argument prototype would still apply. */
15192 return getspnam ();
15197 rm -rf conftest.$ac_objext conftest$ac_exeext
15198 if { (ac_try="$ac_link"
15199 case "(($ac_try" in
15200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15201 *) ac_try_echo=$ac_try;;
15203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15204 $as_echo "$ac_try_echo") >&5
15205 (eval "$ac_link") 2>conftest.er1
15207 grep -v '^ *+' conftest.er1 >conftest.err
15208 rm -rf conftest.er1
15209 cat conftest.err >&5
15210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); } && {
15212 test -z "$ac_c_werror_flag" ||
15213 test ! -s conftest.err
15214 } && test -s conftest$ac_exeext && {
15215 test "$cross_compiling" = yes ||
15216 $as_test_x conftest$ac_exeext
15218 ac_cv_lib_c_getspnam=yes
15220 $as_echo "$as_me: failed program was:" >&5
15221 sed 's/^/| /' conftest.$ac_ext >&5
15223 ac_cv_lib_c_getspnam=no
15226 rm -rf conftest.dSYM
15227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15228 conftest$ac_exeext conftest.$ac_ext
15229 LIBS=$ac_check_lib_save_LIBS
15231 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getspnam" >&5
15232 $as_echo "$ac_cv_lib_c_getspnam" >&6; }
15233 if test "x$ac_cv_lib_c_getspnam" = x""yes; then
15237 if test "$have_getspnam" = no ; then
15238 { $as_echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
15239 $as_echo_n "checking for getspnam in -lgen... " >&6; }
15240 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
15241 $as_echo_n "(cached) " >&6
15243 ac_check_lib_save_LIBS=$LIBS
15245 cat >conftest.$ac_ext <<_ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15252 /* Override any GCC internal prototype to avoid an error.
15253 Use char because int might match the return type of a GCC
15254 builtin and then its argument prototype would still apply. */
15262 return getspnam ();
15267 rm -rf conftest.$ac_objext conftest$ac_exeext
15268 if { (ac_try="$ac_link"
15269 case "(($ac_try" in
15270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15271 *) ac_try_echo=$ac_try;;
15273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15274 $as_echo "$ac_try_echo") >&5
15275 (eval "$ac_link") 2>conftest.er1
15277 grep -v '^ *+' conftest.er1 >conftest.err
15278 rm -rf conftest.er1
15279 cat conftest.err >&5
15280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); } && {
15282 test -z "$ac_c_werror_flag" ||
15283 test ! -s conftest.err
15284 } && test -s conftest$ac_exeext && {
15285 test "$cross_compiling" = yes ||
15286 $as_test_x conftest$ac_exeext
15288 ac_cv_lib_gen_getspnam=yes
15290 $as_echo "$as_me: failed program was:" >&5
15291 sed 's/^/| /' conftest.$ac_ext >&5
15293 ac_cv_lib_gen_getspnam=no
15296 rm -rf conftest.dSYM
15297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15298 conftest$ac_exeext conftest.$ac_ext
15299 LIBS=$ac_check_lib_save_LIBS
15301 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
15302 $as_echo "$ac_cv_lib_gen_getspnam" >&6; }
15303 if test "x$ac_cv_lib_gen_getspnam" = x""yes; then
15304 have_getspnam=yes; PASSWD_LIBS="$PASSWD_LIBS -lgen"
15312 ###############################################################################
15314 # Check for other libraries needed for non-shadow passwords.
15316 ###############################################################################
15318 if test "$enable_locking" = yes ; then
15320 # On some systems (UnixWare 2.1), crypt() is in -lcrypt instead of -lc.
15322 { $as_echo "$as_me:$LINENO: checking for crypt in -lc" >&5
15323 $as_echo_n "checking for crypt in -lc... " >&6; }
15324 if test "${ac_cv_lib_c_crypt+set}" = set; then
15325 $as_echo_n "(cached) " >&6
15327 ac_check_lib_save_LIBS=$LIBS
15329 cat >conftest.$ac_ext <<_ACEOF
15332 cat confdefs.h >>conftest.$ac_ext
15333 cat >>conftest.$ac_ext <<_ACEOF
15334 /* end confdefs.h. */
15336 /* Override any GCC internal prototype to avoid an error.
15337 Use char because int might match the return type of a GCC
15338 builtin and then its argument prototype would still apply. */
15351 rm -rf conftest.$ac_objext conftest$ac_exeext
15352 if { (ac_try="$ac_link"
15353 case "(($ac_try" in
15354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355 *) ac_try_echo=$ac_try;;
15357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15358 $as_echo "$ac_try_echo") >&5
15359 (eval "$ac_link") 2>conftest.er1
15361 grep -v '^ *+' conftest.er1 >conftest.err
15362 rm -rf conftest.er1
15363 cat conftest.err >&5
15364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } && {
15366 test -z "$ac_c_werror_flag" ||
15367 test ! -s conftest.err
15368 } && test -s conftest$ac_exeext && {
15369 test "$cross_compiling" = yes ||
15370 $as_test_x conftest$ac_exeext
15372 ac_cv_lib_c_crypt=yes
15374 $as_echo "$as_me: failed program was:" >&5
15375 sed 's/^/| /' conftest.$ac_ext >&5
15377 ac_cv_lib_c_crypt=no
15380 rm -rf conftest.dSYM
15381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15382 conftest$ac_exeext conftest.$ac_ext
15383 LIBS=$ac_check_lib_save_LIBS
15385 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
15386 $as_echo "$ac_cv_lib_c_crypt" >&6; }
15387 if test "x$ac_cv_lib_c_crypt" = x""yes; then
15391 if test "$have_crypt" = no ; then
15392 { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
15393 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
15394 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
15395 $as_echo_n "(cached) " >&6
15397 ac_check_lib_save_LIBS=$LIBS
15398 LIBS="-lcrypt $LIBS"
15399 cat >conftest.$ac_ext <<_ACEOF
15402 cat confdefs.h >>conftest.$ac_ext
15403 cat >>conftest.$ac_ext <<_ACEOF
15404 /* end confdefs.h. */
15406 /* Override any GCC internal prototype to avoid an error.
15407 Use char because int might match the return type of a GCC
15408 builtin and then its argument prototype would still apply. */
15421 rm -rf conftest.$ac_objext conftest$ac_exeext
15422 if { (ac_try="$ac_link"
15423 case "(($ac_try" in
15424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15425 *) ac_try_echo=$ac_try;;
15427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15428 $as_echo "$ac_try_echo") >&5
15429 (eval "$ac_link") 2>conftest.er1
15431 grep -v '^ *+' conftest.er1 >conftest.err
15432 rm -rf conftest.er1
15433 cat conftest.err >&5
15434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); } && {
15436 test -z "$ac_c_werror_flag" ||
15437 test ! -s conftest.err
15438 } && test -s conftest$ac_exeext && {
15439 test "$cross_compiling" = yes ||
15440 $as_test_x conftest$ac_exeext
15442 ac_cv_lib_crypt_crypt=yes
15444 $as_echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15447 ac_cv_lib_crypt_crypt=no
15450 rm -rf conftest.dSYM
15451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15452 conftest$ac_exeext conftest.$ac_ext
15453 LIBS=$ac_check_lib_save_LIBS
15455 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
15456 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
15457 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
15458 have_crypt=yes; PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
15465 # Most of the above shadow mechanisms will have set need_setuid to yes,
15466 # if they were found. But, on some systems, we need setuid even when
15467 # using plain old vanilla passwords.
15469 if test "$enable_locking" = yes ; then
15471 *-hpux* | *-aix* | *-netbsd* | *-freebsd* | *-openbsd* )
15478 if test "$have_shadow_adjunct" = yes ; then
15479 cat >>confdefs.h <<\_ACEOF
15480 #define HAVE_ADJUNCT_PASSWD 1
15483 elif test "$have_shadow_enhanced" = yes ; then
15484 cat >>confdefs.h <<\_ACEOF
15485 #define HAVE_ENHANCED_PASSWD 1
15488 elif test "$have_shadow_hpux" = yes ; then
15489 cat >>confdefs.h <<\_ACEOF
15490 #define HAVE_HPUX_PASSWD 1
15493 elif test "$have_shadow" = yes ; then
15494 cat >>confdefs.h <<\_ACEOF
15495 #define HAVE_SHADOW_PASSWD 1
15501 ###############################################################################
15503 # Check for external password helper
15504 # On SuSE, instead of having xscreensaver be a setuid program, they
15505 # fork an external program that takes the password on stdin, and
15506 # returns true if that password is a valid one. Then only that
15507 # smaller program needs to be setuid.
15509 # (Note that this external program is not a GUI: the GUI is still
15510 # all in xscreensaver itself; the external program just does auth.)
15512 ###############################################################################
15514 have_passwd_helper=no
15515 with_passwd_helper_req=unspecified
15518 # Check whether --with-passwd-helper was given.
15519 if test "${with_passwd_helper+set}" = set; then
15520 withval=$with_passwd_helper; with_passwd_helper="$withval"; with_passwd_helper_req="$withval"
15522 with_passwd_helper=no
15525 # no HANDLE_X_PATH_ARG for this one
15527 if test "$enable_locking" = no ; then
15528 with_passwd_helper_req=no
15529 with_passwd_helper=no
15532 case "$with_passwd_helper" in
15535 cat >>confdefs.h <<_ACEOF
15536 #define PASSWD_HELPER_PROGRAM "$with_passwd_helper"
15539 have_passwd_helper=yes;;
15541 echo "error: --with-passwd-helper needs full pathname of helper (not '$with_passwd_helper')." >&2
15546 ###############################################################################
15548 # Check for a login manager for a "New Login" button on the lock dialog.
15549 # Usually this will be "/usr/bin/gdmflexiserver".
15551 ###############################################################################
15553 with_login_manager_req=unspecified
15554 default_login_manager_1='gdmflexiserver -ls'
15555 default_login_manager_2='kdmctl reserve'
15558 # Check whether --with-login-manager was given.
15559 if test "${with_login_manager+set}" = set; then
15560 withval=$with_login_manager; with_login_manager="$withval"; with_login_manager_req="$withval"
15562 with_login_manager=yes
15565 # no HANDLE_X_PATH_ARG for this one
15567 if test "$enable_locking" = no ; then
15568 with_login_manager_req=no
15569 with_login_manager=no
15572 case "$with_login_manager_req" in
15574 with_login_manager=""
15578 # Try both defaults, use the one that exists.
15580 set dummy $default_login_manager_1 ; login_manager_tmp=$2
15581 unset ac_cv_path_login_manager_tmp # don't cache
15582 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
15583 set dummy $login_manager_tmp; ac_word=$2
15584 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15585 $as_echo_n "checking for $ac_word... " >&6; }
15586 if test "${ac_cv_path_login_manager_tmp+set}" = set; then
15587 $as_echo_n "(cached) " >&6
15589 case $login_manager_tmp in
15591 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
15594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15595 for as_dir in $PATH
15598 test -z "$as_dir" && as_dir=.
15599 for ac_exec_ext in '' $ac_executable_extensions; do
15600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15601 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
15602 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15612 login_manager_tmp=$ac_cv_path_login_manager_tmp
15613 if test -n "$login_manager_tmp"; then
15614 { $as_echo "$as_me:$LINENO: result: $login_manager_tmp" >&5
15615 $as_echo "$login_manager_tmp" >&6; }
15617 { $as_echo "$as_me:$LINENO: result: no" >&5
15618 $as_echo "no" >&6; }
15622 if test ! -z "$login_manager_tmp" ; then
15623 with_login_manager="$default_login_manager_1"
15625 set dummy $default_login_manager_2 ; login_manager_tmp=$2
15626 unset ac_cv_path_login_manager_tmp # don't cache
15627 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
15628 set dummy $login_manager_tmp; ac_word=$2
15629 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15630 $as_echo_n "checking for $ac_word... " >&6; }
15631 if test "${ac_cv_path_login_manager_tmp+set}" = set; then
15632 $as_echo_n "(cached) " >&6
15634 case $login_manager_tmp in
15636 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
15639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15640 for as_dir in $PATH
15643 test -z "$as_dir" && as_dir=.
15644 for ac_exec_ext in '' $ac_executable_extensions; do
15645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15646 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
15647 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15657 login_manager_tmp=$ac_cv_path_login_manager_tmp
15658 if test -n "$login_manager_tmp"; then
15659 { $as_echo "$as_me:$LINENO: result: $login_manager_tmp" >&5
15660 $as_echo "$login_manager_tmp" >&6; }
15662 { $as_echo "$as_me:$LINENO: result: no" >&5
15663 $as_echo "no" >&6; }
15667 if test ! -z "$login_manager_tmp" ; then
15668 with_login_manager="$default_login_manager_2"
15670 with_login_manager=""
15676 # absolute path specified on cmd line
15677 set dummy $with_login_manager_req ; login_manager_tmp=$2
15678 { $as_echo "$as_me:$LINENO: checking for $login_manager_tmp" >&5
15679 $as_echo_n "checking for $login_manager_tmp... " >&6; }
15680 if test -x "$login_manager_tmp" ; then
15681 { $as_echo "$as_me:$LINENO: result: yes" >&5
15682 $as_echo "yes" >&6; }
15684 { $as_echo "$as_me:$LINENO: result: no" >&5
15685 $as_echo "no" >&6; }
15686 with_login_manager=""
15691 # relative path specified on cmd line
15692 set dummy $with_login_manager_req ; login_manager_tmp=$2
15693 unset ac_cv_path_login_manager_tmp # don't cache
15694 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
15695 set dummy $login_manager_tmp; ac_word=$2
15696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15697 $as_echo_n "checking for $ac_word... " >&6; }
15698 if test "${ac_cv_path_login_manager_tmp+set}" = set; then
15699 $as_echo_n "(cached) " >&6
15701 case $login_manager_tmp in
15703 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
15706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15707 for as_dir in $PATH
15710 test -z "$as_dir" && as_dir=.
15711 for ac_exec_ext in '' $ac_executable_extensions; do
15712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15713 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
15714 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15724 login_manager_tmp=$ac_cv_path_login_manager_tmp
15725 if test -n "$login_manager_tmp"; then
15726 { $as_echo "$as_me:$LINENO: result: $login_manager_tmp" >&5
15727 $as_echo "$login_manager_tmp" >&6; }
15729 { $as_echo "$as_me:$LINENO: result: no" >&5
15730 $as_echo "no" >&6; }
15734 if test -z "$login_manager_tmp" ; then
15735 with_login_manager=""
15737 with_login_manager="$login_manager_tmp"
15741 ac_cv_login_manager_program="$with_login_manager"
15743 NEW_LOGIN_COMMAND_P=''
15744 NEW_LOGIN_COMMAND="$ac_cv_login_manager_program"
15746 { $as_echo "$as_me:$LINENO: checking for login manager" >&5
15747 $as_echo_n "checking for login manager... " >&6; }
15748 if test -z "$NEW_LOGIN_COMMAND" ; then
15749 NEW_LOGIN_COMMAND="$default_login_manager_1"
15750 NEW_LOGIN_COMMAND_P='! '
15751 { $as_echo "$as_me:$LINENO: result: $NEW_LOGIN_COMMAND (disabled)" >&5
15752 $as_echo "$NEW_LOGIN_COMMAND (disabled)" >&6; }
15754 { $as_echo "$as_me:$LINENO: result: $NEW_LOGIN_COMMAND" >&5
15755 $as_echo "$NEW_LOGIN_COMMAND" >&6; }
15759 ###############################################################################
15761 # Check for -lgtk (and Gnome stuff)
15763 ###############################################################################
15766 with_gtk_req=unspecified
15768 # Check whether --with-gtk was given.
15769 if test "${with_gtk+set}" = set; then
15770 withval=$with_gtk; with_gtk="$withval"; with_gtk_req="$withval"
15776 # if --with-gtk=/directory/ was specified, remember that directory so that
15777 # we can also look for the `gtk-config' program in that directory.
15778 case "$with_gtk" in
15780 gtk_dir="$with_gtk"
15788 case "$with_gtk" in
15793 { $as_echo "$as_me:$LINENO: checking for Gtk headers" >&5
15794 $as_echo_n "checking for Gtk headers... " >&6; }
15795 d=$with_gtk/include
15796 if test -d $d; then
15797 X_CFLAGS="-I$d $X_CFLAGS"
15798 { $as_echo "$as_me:$LINENO: result: $d" >&5
15799 $as_echo "$d" >&6; }
15801 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15802 $as_echo "not found ($d: no such directory)" >&6; }
15805 { $as_echo "$as_me:$LINENO: checking for Gtk libs" >&5
15806 $as_echo_n "checking for Gtk libs... " >&6; }
15808 if test -d $d; then
15809 X_LIBS="-L$d $X_LIBS"
15810 { $as_echo "$as_me:$LINENO: result: $d" >&5
15811 $as_echo "$d" >&6; }
15813 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15814 $as_echo "not found ($d: no such directory)" >&6; }
15817 # replace the directory string with "yes".
15819 with_gtk=$with_gtk_req
15824 echo "error: argument to --with-gtk must be \"yes\", \"no\", or a directory."
15825 echo " If it is a directory, then \`DIR/include' will be added to"
15826 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15832 if test "$with_gtk" != yes -a "$with_gtk" != no ; then
15833 echo "error: must be yes or no: --with-gtk=$with_gtk"
15838 parse_gtk_version_string() {
15841 maj=`echo $ac_gtk_version_string | sed -n 's/\..*//p'`
15842 min=`echo $ac_gtk_version_string | sed -n 's/[^.]*\.\([^.]*\).*/\1/p'`
15844 ac_gtk_version=`echo "$maj * 1000 + $min" | bc`
15845 if test -z "$ac_gtk_version"; then
15846 ac_gtk_version=unknown
15847 ac_gtk_version_string=unknown
15851 # Find pkg-config... (need this for both gtk and gdk_pixbuf.)
15852 # if the user specified --with-gtk=/foo/ then look there.
15855 if test ! -z "$gtk_dir"; then
15856 # canonicalize slashes.
15857 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
15858 gtk_path="$foo:$gtk_path"
15861 for ac_prog in pkg-config
15863 # Extract the first word of "$ac_prog", so it can be a program name with args.
15864 set dummy $ac_prog; ac_word=$2
15865 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15866 $as_echo_n "checking for $ac_word... " >&6; }
15867 if test "${ac_cv_path_pkg_config+set}" = set; then
15868 $as_echo_n "(cached) " >&6
15870 case $pkg_config in
15872 ac_cv_path_pkg_config="$pkg_config" # Let the user override the test with a path.
15875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15876 for as_dir in $gtk_path
15879 test -z "$as_dir" && as_dir=.
15880 for ac_exec_ext in '' $ac_executable_extensions; do
15881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15882 ac_cv_path_pkg_config="$as_dir/$ac_word$ac_exec_ext"
15883 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15893 pkg_config=$ac_cv_path_pkg_config
15894 if test -n "$pkg_config"; then
15895 { $as_echo "$as_me:$LINENO: result: $pkg_config" >&5
15896 $as_echo "$pkg_config" >&6; }
15898 { $as_echo "$as_me:$LINENO: result: no" >&5
15899 $as_echo "no" >&6; }
15903 test -n "$pkg_config" && break
15907 if test -z "$pkg_config" ; then
15908 { $as_echo "$as_me:$LINENO: WARNING: pkg-config not found!" >&5
15909 $as_echo "$as_me: WARNING: pkg-config not found!" >&2;}
15914 # Utility function for running pkg-config-based tests...
15917 pkg_check_version() {
15918 if test "$ok" = yes ; then
15921 { $as_echo "$as_me:$LINENO: checking for $req" >&5
15922 $as_echo_n "checking for $req... " >&6; }
15923 if $pkg_config --exists "$req" ; then
15924 vers=`$pkg_config --modversion "$req"`
15925 if $pkg_config --exists "$req >= $min" ; then
15926 { $as_echo "$as_me:$LINENO: result: $vers" >&5
15927 $as_echo "$vers" >&6; }
15931 { $as_echo "$as_me:$LINENO: result: $vers (wanted >= $min)" >&5
15932 $as_echo "$vers (wanted >= $min)" >&6; }
15937 { $as_echo "$as_me:$LINENO: result: no" >&5
15938 $as_echo "no" >&6; }
15949 if test "$with_gtk" = yes; then
15953 pkg_check_version gtk+-2.0 2.0.1 ; ac_gtk_version_string="$vers"
15954 pkg_check_version gmodule-2.0 2.0.0
15955 pkg_check_version libxml-2.0 2.4.6
15956 pkg_check_version libglade-2.0 1.99.0
15957 pkg_check_version gdk-pixbuf-2.0 2.0.0
15958 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
15961 if test "$have_gtk" = no; then
15962 if test -n "$ac_gtk_version_string" ; then
15963 gtk_halfassed="$ac_gtk_version_string"
15964 gtk_halfassed_lib="$req"
15968 if test "$have_gtk" = yes; then
15969 parse_gtk_version_string
15973 if test "$have_gtk" = yes; then
15974 { $as_echo "$as_me:$LINENO: checking for Gtk includes" >&5
15975 $as_echo_n "checking for Gtk includes... " >&6; }
15976 if test "${ac_cv_gtk_config_cflags+set}" = set; then
15977 $as_echo_n "(cached) " >&6
15979 ac_cv_gtk_config_cflags=`$pkg_config --cflags $pkgs`
15981 { $as_echo "$as_me:$LINENO: result: $ac_cv_gtk_config_cflags" >&5
15982 $as_echo "$ac_cv_gtk_config_cflags" >&6; }
15983 { $as_echo "$as_me:$LINENO: checking for Gtk libs" >&5
15984 $as_echo_n "checking for Gtk libs... " >&6; }
15985 if test "${ac_cv_gtk_config_libs+set}" = set; then
15986 $as_echo_n "(cached) " >&6
15988 ac_cv_gtk_config_libs=`$pkg_config --libs $pkgs`
15990 { $as_echo "$as_me:$LINENO: result: $ac_cv_gtk_config_libs" >&5
15991 $as_echo "$ac_cv_gtk_config_libs" >&6; }
15994 ac_gtk_config_cflags=$ac_cv_gtk_config_cflags
15995 ac_gtk_config_libs=$ac_cv_gtk_config_libs
15999 if test "$have_gtk" = yes; then
16000 GTK_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
16001 GTK_DATADIR="$GTK_DATADIR/share"
16004 if test "$have_gtk" = yes; then
16005 INCLUDES="$INCLUDES $ac_gtk_config_cflags"
16006 GTK_LIBS="$GTK_LIBS $ac_gtk_config_libs"
16007 cat >>confdefs.h <<\_ACEOF
16011 cat >>confdefs.h <<\_ACEOF
16012 #define HAVE_GTK2 1
16015 cat >>confdefs.h <<\_ACEOF
16024 # Check for the various Gnome help and URL loading programs.
16026 WITH_BROWSER=gnome-open
16027 if test "$have_gtk" = yes; then
16028 for ac_prog in gnome-open
16030 # Extract the first word of "$ac_prog", so it can be a program name with args.
16031 set dummy $ac_prog; ac_word=$2
16032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16033 $as_echo_n "checking for $ac_word... " >&6; }
16034 if test "${ac_cv_prog_gnome_open_program+set}" = set; then
16035 $as_echo_n "(cached) " >&6
16037 if test -n "$gnome_open_program"; then
16038 ac_cv_prog_gnome_open_program="$gnome_open_program" # Let the user override the test.
16040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16041 for as_dir in $PATH
16044 test -z "$as_dir" && as_dir=.
16045 for ac_exec_ext in '' $ac_executable_extensions; do
16046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16047 ac_cv_prog_gnome_open_program="$ac_prog"
16048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16057 gnome_open_program=$ac_cv_prog_gnome_open_program
16058 if test -n "$gnome_open_program"; then
16059 { $as_echo "$as_me:$LINENO: result: $gnome_open_program" >&5
16060 $as_echo "$gnome_open_program" >&6; }
16062 { $as_echo "$as_me:$LINENO: result: no" >&5
16063 $as_echo "no" >&6; }
16067 test -n "$gnome_open_program" && break
16070 for ac_prog in gnome-url-show
16072 # Extract the first word of "$ac_prog", so it can be a program name with args.
16073 set dummy $ac_prog; ac_word=$2
16074 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16075 $as_echo_n "checking for $ac_word... " >&6; }
16076 if test "${ac_cv_prog_gnome_url_show_program+set}" = set; then
16077 $as_echo_n "(cached) " >&6
16079 if test -n "$gnome_url_show_program"; then
16080 ac_cv_prog_gnome_url_show_program="$gnome_url_show_program" # Let the user override the test.
16082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16083 for as_dir in $PATH
16086 test -z "$as_dir" && as_dir=.
16087 for ac_exec_ext in '' $ac_executable_extensions; do
16088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16089 ac_cv_prog_gnome_url_show_program="$ac_prog"
16090 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16099 gnome_url_show_program=$ac_cv_prog_gnome_url_show_program
16100 if test -n "$gnome_url_show_program"; then
16101 { $as_echo "$as_me:$LINENO: result: $gnome_url_show_program" >&5
16102 $as_echo "$gnome_url_show_program" >&6; }
16104 { $as_echo "$as_me:$LINENO: result: no" >&5
16105 $as_echo "no" >&6; }
16109 test -n "$gnome_url_show_program" && break
16115 ###############################################################################
16119 ###############################################################################
16122 with_motif_req=unspecified
16124 # Check whether --with-motif was given.
16125 if test "${with_motif+set}" = set; then
16126 withval=$with_motif; with_motif="$withval"; with_motif_req="$withval"
16133 case "$with_motif" in
16138 { $as_echo "$as_me:$LINENO: checking for Motif headers" >&5
16139 $as_echo_n "checking for Motif headers... " >&6; }
16140 d=$with_motif/include
16141 if test -d $d; then
16142 X_CFLAGS="-I$d $X_CFLAGS"
16143 { $as_echo "$as_me:$LINENO: result: $d" >&5
16144 $as_echo "$d" >&6; }
16146 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16147 $as_echo "not found ($d: no such directory)" >&6; }
16150 { $as_echo "$as_me:$LINENO: checking for Motif libs" >&5
16151 $as_echo_n "checking for Motif libs... " >&6; }
16153 if test -d $d; then
16154 X_LIBS="-L$d $X_LIBS"
16155 { $as_echo "$as_me:$LINENO: result: $d" >&5
16156 $as_echo "$d" >&6; }
16158 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16159 $as_echo "not found ($d: no such directory)" >&6; }
16162 # replace the directory string with "yes".
16163 with_motif_req="yes"
16164 with_motif=$with_motif_req
16169 echo "error: argument to --with-motif must be \"yes\", \"no\", or a directory."
16170 echo " If it is a directory, then \`DIR/include' will be added to"
16171 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16177 if test "$with_motif" != yes -a "$with_motif" != no ; then
16178 echo "error: must be yes or no: --with-motif=$with_motif"
16182 if test "$with_motif" = yes; then
16185 ac_save_CPPFLAGS="$CPPFLAGS"
16186 if test \! -z "$includedir" ; then
16187 CPPFLAGS="$CPPFLAGS -I$includedir"
16189 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16190 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16191 { $as_echo "$as_me:$LINENO: checking for Xm/Xm.h" >&5
16192 $as_echo_n "checking for Xm/Xm.h... " >&6; }
16193 if test "${ac_cv_header_Xm_Xm_h+set}" = set; then
16194 $as_echo_n "(cached) " >&6
16196 cat >conftest.$ac_ext <<_ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h. */
16202 #include <stdlib.h>
16204 #include <X11/Intrinsic.h>
16208 rm -rf conftest.$ac_objext
16209 if { (ac_try="$ac_compile"
16210 case "(($ac_try" in
16211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16212 *) ac_try_echo=$ac_try;;
16214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16215 $as_echo "$ac_try_echo") >&5
16216 (eval "$ac_compile") 2>conftest.er1
16218 grep -v '^ *+' conftest.er1 >conftest.err
16219 rm -rf conftest.er1
16220 cat conftest.err >&5
16221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } && {
16223 test -z "$ac_c_werror_flag" ||
16224 test ! -s conftest.err
16225 } && test -s conftest.$ac_objext; then
16226 ac_cv_header_Xm_Xm_h=yes
16228 $as_echo "$as_me: failed program was:" >&5
16229 sed 's/^/| /' conftest.$ac_ext >&5
16231 ac_cv_header_Xm_Xm_h=no
16234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16236 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Xm_Xm_h" >&5
16237 $as_echo "$ac_cv_header_Xm_Xm_h" >&6; }
16238 if test "x$ac_cv_header_Xm_Xm_h" = x""yes; then
16240 cat >>confdefs.h <<\_ACEOF
16241 #define HAVE_MOTIF 1
16244 MOTIF_LIBS="$MOTIF_LIBS -lXm"
16248 CPPFLAGS="$ac_save_CPPFLAGS"
16252 if test "$have_motif" = yes; then
16254 ac_save_CPPFLAGS="$CPPFLAGS"
16255 if test \! -z "$includedir" ; then
16256 CPPFLAGS="$CPPFLAGS -I$includedir"
16258 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16259 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16260 { $as_echo "$as_me:$LINENO: checking for Xm/ComboBox.h" >&5
16261 $as_echo_n "checking for Xm/ComboBox.h... " >&6; }
16262 if test "${ac_cv_header_Xm_ComboBox_h+set}" = set; then
16263 $as_echo_n "(cached) " >&6
16265 cat >conftest.$ac_ext <<_ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h. */
16271 #include <stdlib.h>
16273 #include <X11/Intrinsic.h>
16275 #include <Xm/ComboBox.h>
16277 rm -rf conftest.$ac_objext
16278 if { (ac_try="$ac_compile"
16279 case "(($ac_try" in
16280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281 *) ac_try_echo=$ac_try;;
16283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16284 $as_echo "$ac_try_echo") >&5
16285 (eval "$ac_compile") 2>conftest.er1
16287 grep -v '^ *+' conftest.er1 >conftest.err
16288 rm -rf conftest.er1
16289 cat conftest.err >&5
16290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); } && {
16292 test -z "$ac_c_werror_flag" ||
16293 test ! -s conftest.err
16294 } && test -s conftest.$ac_objext; then
16295 ac_cv_header_Xm_ComboBox_h=yes
16297 $as_echo "$as_me: failed program was:" >&5
16298 sed 's/^/| /' conftest.$ac_ext >&5
16300 ac_cv_header_Xm_ComboBox_h=no
16303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16305 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Xm_ComboBox_h" >&5
16306 $as_echo "$ac_cv_header_Xm_ComboBox_h" >&6; }
16307 if test "x$ac_cv_header_Xm_ComboBox_h" = x""yes; then
16308 cat >>confdefs.h <<\_ACEOF
16309 #define HAVE_XMCOMBOBOX 1
16315 CPPFLAGS="$ac_save_CPPFLAGS"
16319 ###############################################################################
16321 # Checking whether Motif is really Lesstif.
16323 ###############################################################################
16326 if test "$have_motif" = yes ; then
16327 { $as_echo "$as_me:$LINENO: checking whether Motif is really LessTif" >&5
16328 $as_echo_n "checking whether Motif is really LessTif... " >&6; }
16329 if test "${ac_cv_have_lesstif+set}" = set; then
16330 $as_echo_n "(cached) " >&6
16333 ac_save_CPPFLAGS="$CPPFLAGS"
16334 if test \! -z "$includedir" ; then
16335 CPPFLAGS="$CPPFLAGS -I$includedir"
16337 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16338 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16339 cat >conftest.$ac_ext <<_ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16349 long vers = LesstifVersion;
16354 rm -rf conftest.$ac_objext
16355 if { (ac_try="$ac_compile"
16356 case "(($ac_try" in
16357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16358 *) ac_try_echo=$ac_try;;
16360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16361 $as_echo "$ac_try_echo") >&5
16362 (eval "$ac_compile") 2>conftest.er1
16364 grep -v '^ *+' conftest.er1 >conftest.err
16365 rm -rf conftest.er1
16366 cat conftest.err >&5
16367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); } && {
16369 test -z "$ac_c_werror_flag" ||
16370 test ! -s conftest.err
16371 } && test -s conftest.$ac_objext; then
16372 ac_cv_have_lesstif=yes
16374 $as_echo "$as_me: failed program was:" >&5
16375 sed 's/^/| /' conftest.$ac_ext >&5
16377 ac_cv_have_lesstif=no
16380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16381 CPPFLAGS="$ac_save_CPPFLAGS"
16383 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_lesstif" >&5
16384 $as_echo "$ac_cv_have_lesstif" >&6; }
16385 have_lesstif=$ac_cv_have_lesstif
16389 lesstif_version=unknown
16390 lesstif_version_string=unknown
16392 if test "$have_lesstif" = yes ; then
16394 echo unknown > conftest-lt
16395 { $as_echo "$as_me:$LINENO: checking LessTif version number" >&5
16396 $as_echo_n "checking LessTif version number... " >&6; }
16397 if test "${ac_cv_lesstif_version_string+set}" = set; then
16398 $as_echo_n "(cached) " >&6
16401 ac_save_CPPFLAGS="$CPPFLAGS"
16402 if test \! -z "$includedir" ; then
16403 CPPFLAGS="$CPPFLAGS -I$includedir"
16405 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16406 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16407 if test "$cross_compiling" = yes; then
16408 ac_cv_lesstif_version=unknown
16409 ac_cv_lesstif_version_string=unknown
16411 cat >conftest.$ac_ext <<_ACEOF
16414 cat confdefs.h >>conftest.$ac_ext
16415 cat >>conftest.$ac_ext <<_ACEOF
16416 /* end confdefs.h. */
16420 FILE *f = fopen("conftest-lt", "w");
16422 fprintf(f, "%d %d.%d\n", LesstifVersion,
16423 LESSTIF_VERSION, LESSTIF_REVISION);
16428 rm -rf conftest$ac_exeext
16429 if { (ac_try="$ac_link"
16430 case "(($ac_try" in
16431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432 *) ac_try_echo=$ac_try;;
16434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16435 $as_echo "$ac_try_echo") >&5
16436 (eval "$ac_link") 2>&5
16438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16440 { (case "(($ac_try" in
16441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16442 *) ac_try_echo=$ac_try;;
16444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16445 $as_echo "$ac_try_echo") >&5
16446 (eval "$ac_try") 2>&5
16448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; }; then
16450 ltv=`cat conftest-lt`
16451 ac_cv_lesstif_version=`echo $ltv | sed 's/ .*//'`
16452 ac_cv_lesstif_version_string=`echo $ltv | sed 's/.* //'`
16454 $as_echo "$as_me: program exited with status $ac_status" >&5
16455 $as_echo "$as_me: failed program was:" >&5
16456 sed 's/^/| /' conftest.$ac_ext >&5
16458 ( exit $ac_status )
16459 ac_cv_lesstif_version=unknown
16460 ac_cv_lesstif_version_string=unknown
16462 rm -rf conftest.dSYM
16463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16467 CPPFLAGS="$ac_save_CPPFLAGS"
16469 { $as_echo "$as_me:$LINENO: result: $ac_cv_lesstif_version_string" >&5
16470 $as_echo "$ac_cv_lesstif_version_string" >&6; }
16472 lesstif_version=$ac_cv_lesstif_version
16473 lesstif_version_string=$ac_cv_lesstif_version_string
16478 if test "$have_motif" = yes ; then
16480 echo unknown > conftest-mt
16481 { $as_echo "$as_me:$LINENO: checking Motif version number" >&5
16482 $as_echo_n "checking Motif version number... " >&6; }
16483 if test "${ac_cv_motif_version_string+set}" = set; then
16484 $as_echo_n "(cached) " >&6
16487 ac_save_CPPFLAGS="$CPPFLAGS"
16488 if test \! -z "$includedir" ; then
16489 CPPFLAGS="$CPPFLAGS -I$includedir"
16491 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16492 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16493 if test "$cross_compiling" = yes; then
16494 ac_cv_motif_version=unknown
16495 ac_cv_motif_version_string=unknown
16497 cat >conftest.$ac_ext <<_ACEOF
16500 cat confdefs.h >>conftest.$ac_ext
16501 cat >>conftest.$ac_ext <<_ACEOF
16502 /* end confdefs.h. */
16506 FILE *f = fopen("conftest-mt", "w");
16508 fprintf(f, "%d %d.%d\n", XmVersion,
16509 XmVERSION, XmREVISION);
16514 rm -rf conftest$ac_exeext
16515 if { (ac_try="$ac_link"
16516 case "(($ac_try" in
16517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16521 $as_echo "$ac_try_echo") >&5
16522 (eval "$ac_link") 2>&5
16524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16526 { (case "(($ac_try" in
16527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528 *) ac_try_echo=$ac_try;;
16530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16531 $as_echo "$ac_try_echo") >&5
16532 (eval "$ac_try") 2>&5
16534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; }; then
16536 mtv=`cat conftest-mt`
16537 ac_cv_motif_version=`echo $mtv | sed 's/ .*//'`
16538 ac_cv_motif_version_string=`echo $mtv | sed 's/.* //'`
16540 $as_echo "$as_me: program exited with status $ac_status" >&5
16541 $as_echo "$as_me: failed program was:" >&5
16542 sed 's/^/| /' conftest.$ac_ext >&5
16544 ( exit $ac_status )
16545 ac_cv_motif_version=unknown
16546 ac_cv_motif_version_string=unknown
16548 rm -rf conftest.dSYM
16549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16553 CPPFLAGS="$ac_save_CPPFLAGS"
16555 { $as_echo "$as_me:$LINENO: result: $ac_cv_motif_version_string" >&5
16556 $as_echo "$ac_cv_motif_version_string" >&6; }
16558 motif_version=$ac_cv_motif_version
16559 motif_version_string=$ac_cv_motif_version_string
16564 ###############################################################################
16566 # Checking whether Motif requires -lXpm.
16568 # If this is Motif 2.x, and we have XPM, then link against XPM as well.
16569 # The deal is, Motif 2.x requires XPM -- but it's a compilation option
16570 # of the library whether to build the XPM code into libXm, or whether
16571 # to rely on an external libXm. So the only way to tell whether XPM is
16572 # a link-time requirement is to examine libXm.a, which is very
16573 # difficult to do in an autoconf script. So... if it's Motif 2.x, we
16574 # always link against XPM if the XPM lib exists (and this will be a
16575 # no-op if libXm happens to already have the XPM code in it.)
16577 ###############################################################################
16579 motif_requires_xpm=no
16580 if test "$have_motif" = yes ; then
16581 { $as_echo "$as_me:$LINENO: checking whether Motif requires XPM" >&5
16582 $as_echo_n "checking whether Motif requires XPM... " >&6; }
16583 if test "$motif_version" = "unknown" || test "$motif_version" -ge 2000
16585 motif_requires_xpm=yes
16586 { $as_echo "$as_me:$LINENO: result: maybe" >&5
16587 $as_echo "maybe" >&6; }
16589 { $as_echo "$as_me:$LINENO: result: no" >&5
16590 $as_echo "no" >&6; }
16595 ###############################################################################
16597 # Checking whether Motif requires -lXp.
16599 # Some versions of Motif (2.1.0, at least) require -lXp, the "X Printing
16600 # Extension". Why this extension isn't in -lXext with all the others,
16603 ###############################################################################
16606 if test "$have_motif" = yes ; then
16609 ac_save_CPPFLAGS="$CPPFLAGS"
16610 ac_save_LDFLAGS="$LDFLAGS"
16611 # ac_save_LIBS="$LIBS"
16613 if test \! -z "$includedir" ; then
16614 CPPFLAGS="$CPPFLAGS -I$includedir"
16616 # note: $X_CFLAGS includes $x_includes
16617 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16619 if test \! -z "$libdir" ; then
16620 LDFLAGS="$LDFLAGS -L$libdir"
16622 # note: $X_LIBS includes $x_libraries
16623 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16625 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16626 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
16627 { $as_echo "$as_me:$LINENO: checking for XpQueryExtension in -lXp" >&5
16628 $as_echo_n "checking for XpQueryExtension in -lXp... " >&6; }
16629 if test "${ac_cv_lib_Xp_XpQueryExtension+set}" = set; then
16630 $as_echo_n "(cached) " >&6
16632 ac_check_lib_save_LIBS=$LIBS
16633 LIBS="-lXp -lX11 -lXext -lm $LIBS"
16634 cat >conftest.$ac_ext <<_ACEOF
16637 cat confdefs.h >>conftest.$ac_ext
16638 cat >>conftest.$ac_ext <<_ACEOF
16639 /* end confdefs.h. */
16641 /* Override any GCC internal prototype to avoid an error.
16642 Use char because int might match the return type of a GCC
16643 builtin and then its argument prototype would still apply. */
16647 char XpQueryExtension ();
16651 return XpQueryExtension ();
16656 rm -rf conftest.$ac_objext conftest$ac_exeext
16657 if { (ac_try="$ac_link"
16658 case "(($ac_try" in
16659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660 *) ac_try_echo=$ac_try;;
16662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16663 $as_echo "$ac_try_echo") >&5
16664 (eval "$ac_link") 2>conftest.er1
16666 grep -v '^ *+' conftest.er1 >conftest.err
16667 rm -rf conftest.er1
16668 cat conftest.err >&5
16669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } && {
16671 test -z "$ac_c_werror_flag" ||
16672 test ! -s conftest.err
16673 } && test -s conftest$ac_exeext && {
16674 test "$cross_compiling" = yes ||
16675 $as_test_x conftest$ac_exeext
16677 ac_cv_lib_Xp_XpQueryExtension=yes
16679 $as_echo "$as_me: failed program was:" >&5
16680 sed 's/^/| /' conftest.$ac_ext >&5
16682 ac_cv_lib_Xp_XpQueryExtension=no
16685 rm -rf conftest.dSYM
16686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16687 conftest$ac_exeext conftest.$ac_ext
16688 LIBS=$ac_check_lib_save_LIBS
16690 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpQueryExtension" >&5
16691 $as_echo "$ac_cv_lib_Xp_XpQueryExtension" >&6; }
16692 if test "x$ac_cv_lib_Xp_XpQueryExtension" = x""yes; then
16693 have_xp_ext=yes; MOTIF_LIBS="$MOTIF_LIBS -lXp"
16698 CPPFLAGS="$ac_save_CPPFLAGS"
16699 LDFLAGS="$ac_save_LDFLAGS"
16700 # LIBS="$ac_save_LIBS"
16705 ###############################################################################
16707 # Checking whether Motif requires -lXintl (for _Xsetlocale.)
16709 ###############################################################################
16712 if test "$have_motif" = yes ; then
16714 ac_save_CPPFLAGS="$CPPFLAGS"
16715 ac_save_LDFLAGS="$LDFLAGS"
16716 # ac_save_LIBS="$LIBS"
16718 if test \! -z "$includedir" ; then
16719 CPPFLAGS="$CPPFLAGS -I$includedir"
16721 # note: $X_CFLAGS includes $x_includes
16722 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16724 if test \! -z "$libdir" ; then
16725 LDFLAGS="$LDFLAGS -L$libdir"
16727 # note: $X_LIBS includes $x_libraries
16728 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16730 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16731 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
16732 { $as_echo "$as_me:$LINENO: checking for _Xsetlocale in -lXintl" >&5
16733 $as_echo_n "checking for _Xsetlocale in -lXintl... " >&6; }
16734 if test "${ac_cv_lib_Xintl__Xsetlocale+set}" = set; then
16735 $as_echo_n "(cached) " >&6
16737 ac_check_lib_save_LIBS=$LIBS
16738 LIBS="-lXintl -lX11 -lXext -lm $LIBS"
16739 cat >conftest.$ac_ext <<_ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h. */
16746 /* Override any GCC internal prototype to avoid an error.
16747 Use char because int might match the return type of a GCC
16748 builtin and then its argument prototype would still apply. */
16752 char _Xsetlocale ();
16756 return _Xsetlocale ();
16761 rm -rf conftest.$ac_objext conftest$ac_exeext
16762 if { (ac_try="$ac_link"
16763 case "(($ac_try" in
16764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16765 *) ac_try_echo=$ac_try;;
16767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16768 $as_echo "$ac_try_echo") >&5
16769 (eval "$ac_link") 2>conftest.er1
16771 grep -v '^ *+' conftest.er1 >conftest.err
16772 rm -rf conftest.er1
16773 cat conftest.err >&5
16774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); } && {
16776 test -z "$ac_c_werror_flag" ||
16777 test ! -s conftest.err
16778 } && test -s conftest$ac_exeext && {
16779 test "$cross_compiling" = yes ||
16780 $as_test_x conftest$ac_exeext
16782 ac_cv_lib_Xintl__Xsetlocale=yes
16784 $as_echo "$as_me: failed program was:" >&5
16785 sed 's/^/| /' conftest.$ac_ext >&5
16787 ac_cv_lib_Xintl__Xsetlocale=no
16790 rm -rf conftest.dSYM
16791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16792 conftest$ac_exeext conftest.$ac_ext
16793 LIBS=$ac_check_lib_save_LIBS
16795 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xintl__Xsetlocale" >&5
16796 $as_echo "$ac_cv_lib_Xintl__Xsetlocale" >&6; }
16797 if test "x$ac_cv_lib_Xintl__Xsetlocale" = x""yes; then
16803 CPPFLAGS="$ac_save_CPPFLAGS"
16804 LDFLAGS="$ac_save_LDFLAGS"
16805 # LIBS="$ac_save_LIBS"
16807 if test "$have_xintl" = yes; then
16808 MOTIF_LIBS="$MOTIF_LIBS -lXintl"
16813 ###############################################################################
16815 # Check for -lGL or -lMesaGL.
16817 ###############################################################################
16821 with_gl_req=unspecified
16824 # Check whether --with-gl was given.
16825 if test "${with_gl+set}" = set; then
16826 withval=$with_gl; with_gl="$withval"; with_gl_req="$withval"
16838 { $as_echo "$as_me:$LINENO: checking for GL headers" >&5
16839 $as_echo_n "checking for GL headers... " >&6; }
16841 if test -d $d; then
16842 X_CFLAGS="-I$d $X_CFLAGS"
16843 { $as_echo "$as_me:$LINENO: result: $d" >&5
16844 $as_echo "$d" >&6; }
16846 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16847 $as_echo "not found ($d: no such directory)" >&6; }
16850 { $as_echo "$as_me:$LINENO: checking for GL libs" >&5
16851 $as_echo_n "checking for GL libs... " >&6; }
16853 if test -d $d; then
16854 X_LIBS="-L$d $X_LIBS"
16855 { $as_echo "$as_me:$LINENO: result: $d" >&5
16856 $as_echo "$d" >&6; }
16858 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16859 $as_echo "not found ($d: no such directory)" >&6; }
16862 # replace the directory string with "yes".
16864 with_gl=$with_gl_req
16869 echo "error: argument to --with-gl must be \"yes\", \"no\", or a directory."
16870 echo " If it is a directory, then \`DIR/include' will be added to"
16871 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16877 ac_mesagl_version=unknown
16878 ac_mesagl_version_string=unknown
16880 if test "$with_gl" = yes; then
16882 ac_save_CPPFLAGS="$CPPFLAGS"
16883 if test \! -z "$includedir" ; then
16884 CPPFLAGS="$CPPFLAGS -I$includedir"
16886 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16887 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16888 if test "${ac_cv_header_GL_gl_h+set}" = set; then
16889 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
16890 $as_echo_n "checking for GL/gl.h... " >&6; }
16891 if test "${ac_cv_header_GL_gl_h+set}" = set; then
16892 $as_echo_n "(cached) " >&6
16894 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
16895 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
16897 # Is the header compilable?
16898 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
16899 $as_echo_n "checking GL/gl.h usability... " >&6; }
16900 cat >conftest.$ac_ext <<_ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h. */
16906 $ac_includes_default
16909 rm -rf conftest.$ac_objext
16910 if { (ac_try="$ac_compile"
16911 case "(($ac_try" in
16912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16913 *) ac_try_echo=$ac_try;;
16915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16916 $as_echo "$ac_try_echo") >&5
16917 (eval "$ac_compile") 2>conftest.er1
16919 grep -v '^ *+' conftest.er1 >conftest.err
16920 rm -rf conftest.er1
16921 cat conftest.err >&5
16922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } && {
16924 test -z "$ac_c_werror_flag" ||
16925 test ! -s conftest.err
16926 } && test -s conftest.$ac_objext; then
16927 ac_header_compiler=yes
16929 $as_echo "$as_me: failed program was:" >&5
16930 sed 's/^/| /' conftest.$ac_ext >&5
16932 ac_header_compiler=no
16935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16936 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16937 $as_echo "$ac_header_compiler" >&6; }
16939 # Is the header present?
16940 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
16941 $as_echo_n "checking GL/gl.h presence... " >&6; }
16942 cat >conftest.$ac_ext <<_ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h. */
16950 if { (ac_try="$ac_cpp conftest.$ac_ext"
16951 case "(($ac_try" in
16952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953 *) ac_try_echo=$ac_try;;
16955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16956 $as_echo "$ac_try_echo") >&5
16957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16959 grep -v '^ *+' conftest.er1 >conftest.err
16960 rm -rf conftest.er1
16961 cat conftest.err >&5
16962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); } >/dev/null && {
16964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16965 test ! -s conftest.err
16967 ac_header_preproc=yes
16969 $as_echo "$as_me: failed program was:" >&5
16970 sed 's/^/| /' conftest.$ac_ext >&5
16972 ac_header_preproc=no
16975 rm -rf conftest.err conftest.$ac_ext
16976 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16977 $as_echo "$ac_header_preproc" >&6; }
16979 # So? What about this header?
16980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16982 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16983 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16984 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
16985 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
16986 ac_header_preproc=yes
16989 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
16990 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
16991 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
16992 $as_echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
16993 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
16994 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
16995 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
16996 $as_echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
16997 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
16998 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
16999 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
17000 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
17004 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
17005 $as_echo_n "checking for GL/gl.h... " >&6; }
17006 if test "${ac_cv_header_GL_gl_h+set}" = set; then
17007 $as_echo_n "(cached) " >&6
17009 ac_cv_header_GL_gl_h=$ac_header_preproc
17011 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
17012 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
17015 if test "x$ac_cv_header_GL_gl_h" = x""yes; then
17022 CPPFLAGS="$ac_save_CPPFLAGS"
17023 if test "$have_gl" = yes ; then
17025 ac_save_CPPFLAGS="$CPPFLAGS"
17026 if test \! -z "$includedir" ; then
17027 CPPFLAGS="$CPPFLAGS -I$includedir"
17029 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17030 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17031 { $as_echo "$as_me:$LINENO: checking for GL/glx.h" >&5
17032 $as_echo_n "checking for GL/glx.h... " >&6; }
17033 if test "${ac_cv_header_GL_glx_h+set}" = set; then
17034 $as_echo_n "(cached) " >&6
17036 cat >conftest.$ac_ext <<_ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h. */
17044 #include <GL/glx.h>
17046 rm -rf conftest.$ac_objext
17047 if { (ac_try="$ac_compile"
17048 case "(($ac_try" in
17049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17050 *) ac_try_echo=$ac_try;;
17052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17053 $as_echo "$ac_try_echo") >&5
17054 (eval "$ac_compile") 2>conftest.er1
17056 grep -v '^ *+' conftest.er1 >conftest.err
17057 rm -rf conftest.er1
17058 cat conftest.err >&5
17059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); } && {
17061 test -z "$ac_c_werror_flag" ||
17062 test ! -s conftest.err
17063 } && test -s conftest.$ac_objext; then
17064 ac_cv_header_GL_glx_h=yes
17066 $as_echo "$as_me: failed program was:" >&5
17067 sed 's/^/| /' conftest.$ac_ext >&5
17069 ac_cv_header_GL_glx_h=no
17072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17074 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glx_h" >&5
17075 $as_echo "$ac_cv_header_GL_glx_h" >&6; }
17076 if test "x$ac_cv_header_GL_glx_h" = x""yes; then
17083 CPPFLAGS="$ac_save_CPPFLAGS"
17086 # If we have the headers, try and figure out which vendor it's from.
17088 if test "$have_gl" = yes ; then
17090 # We need to know whether it's MesaGL so that we know which libraries
17093 { $as_echo "$as_me:$LINENO: checking whether GL is really MesaGL" >&5
17094 $as_echo_n "checking whether GL is really MesaGL... " >&6; }
17095 if test "${ac_cv_have_mesa_gl+set}" = set; then
17096 $as_echo_n "(cached) " >&6
17098 ac_cv_have_mesa_gl=no
17099 if test "$ac_macosx" = no; then
17100 # WTF! MacOS 10.5.0 ships the Mesa GL headers!
17101 # It's not really Mesa, is it?
17103 ac_save_CPPFLAGS="$CPPFLAGS"
17104 if test \! -z "$includedir" ; then
17105 CPPFLAGS="$CPPFLAGS -I$includedir"
17107 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17108 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17109 cat >conftest.$ac_ext <<_ACEOF
17112 cat confdefs.h >>conftest.$ac_ext
17113 cat >>conftest.$ac_ext <<_ACEOF
17114 /* end confdefs.h. */
17115 #include <GL/glx.h>
17118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17119 $EGREP "Mesa|MESA" >/dev/null 2>&1; then
17120 ac_cv_have_mesa_gl=yes
17124 CPPFLAGS="$ac_save_CPPFLAGS"
17127 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_mesa_gl" >&5
17128 $as_echo "$ac_cv_have_mesa_gl" >&6; }
17129 ac_have_mesa_gl=$ac_cv_have_mesa_gl
17134 if test "$ac_macosx" = yes; then
17136 # Without these, every link against libGL gets a bunch of useless
17139 osx_crud="-bind_at_load -multiply_defined suppress"
17140 { $as_echo "$as_me:$LINENO: result: adding \"$osx_crud\" to GL_LIBS" >&5
17141 $as_echo "adding \"$osx_crud\" to GL_LIBS" >&6; }
17142 GL_LIBS="$GL_LIBS $osx_crud"
17145 # New lossage in 10.5.0: without this, we get:
17146 # ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib
17148 osx_crud="/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
17149 osx_crud="-Wl,-dylib_file,${osx_crud}:${osx_crud}"
17151 { $as_echo "$as_me:$LINENO: result: adding \"$osx_crud\" to GL_LIBS" >&5
17152 $as_echo "adding \"$osx_crud\" to GL_LIBS" >&6; }
17153 GL_LIBS="$GL_LIBS $osx_crud"
17156 # New lossage in 10.6.8: we can't allow -L/opt/local/lib to be in the
17157 # link line, or at runtime XQueryExtension gets a segv due to some kind
17158 # of library version skew. Libs must come from /usr/X11/lib even if
17159 # $prefix and/or $exec_prefix are set to /opt/local/.
17161 { $as_echo "$as_me:$LINENO: result: omitting \"$libdir\" from LDFLAGS" >&5
17162 $as_echo "omitting \"$libdir\" from LDFLAGS" >&6; }
17168 # Some versions of MesaGL are compiled to require -lpthread.
17169 # So if the Mesa headers exist, and -lpthread exists, then always
17170 # link -lpthread after the Mesa libs (be they named -lGL or -lMesaGL.)
17172 if test "$ac_have_mesa_gl" = yes; then
17173 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17174 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17175 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17176 $as_echo_n "(cached) " >&6
17178 ac_check_lib_save_LIBS=$LIBS
17179 LIBS="-lpthread $LIBS"
17180 cat >conftest.$ac_ext <<_ACEOF
17183 cat confdefs.h >>conftest.$ac_ext
17184 cat >>conftest.$ac_ext <<_ACEOF
17185 /* end confdefs.h. */
17187 /* Override any GCC internal prototype to avoid an error.
17188 Use char because int might match the return type of a GCC
17189 builtin and then its argument prototype would still apply. */
17193 char pthread_create ();
17197 return pthread_create ();
17202 rm -rf conftest.$ac_objext conftest$ac_exeext
17203 if { (ac_try="$ac_link"
17204 case "(($ac_try" in
17205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206 *) ac_try_echo=$ac_try;;
17208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17209 $as_echo "$ac_try_echo") >&5
17210 (eval "$ac_link") 2>conftest.er1
17212 grep -v '^ *+' conftest.er1 >conftest.err
17213 rm -rf conftest.er1
17214 cat conftest.err >&5
17215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); } && {
17217 test -z "$ac_c_werror_flag" ||
17218 test ! -s conftest.err
17219 } && test -s conftest$ac_exeext && {
17220 test "$cross_compiling" = yes ||
17221 $as_test_x conftest$ac_exeext
17223 ac_cv_lib_pthread_pthread_create=yes
17225 $as_echo "$as_me: failed program was:" >&5
17226 sed 's/^/| /' conftest.$ac_ext >&5
17228 ac_cv_lib_pthread_pthread_create=no
17231 rm -rf conftest.dSYM
17232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17233 conftest$ac_exeext conftest.$ac_ext
17234 LIBS=$ac_check_lib_save_LIBS
17236 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17237 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17238 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then
17239 GL_LIBS="-lpthread"
17245 # If we have Mesa headers, check to see if we can link against -lMesaGL.
17246 # If we don't have Mesa headers, or we don't have -lMesaGL, try -lGL.
17247 # Else, warn that GL is busted. (We have the headers, but no libs.)
17250 if test "$ac_have_mesa_gl" = yes ; then
17252 ac_save_CPPFLAGS="$CPPFLAGS"
17253 ac_save_LDFLAGS="$LDFLAGS"
17254 # ac_save_LIBS="$LIBS"
17256 if test \! -z "$includedir" ; then
17257 CPPFLAGS="$CPPFLAGS -I$includedir"
17259 # note: $X_CFLAGS includes $x_includes
17260 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17262 if test \! -z "$libdir" ; then
17263 LDFLAGS="$LDFLAGS -L$libdir"
17265 # note: $X_LIBS includes $x_libraries
17266 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17268 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17269 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
17270 { $as_echo "$as_me:$LINENO: checking for glXCreateContext in -lMesaGL" >&5
17271 $as_echo_n "checking for glXCreateContext in -lMesaGL... " >&6; }
17272 if test "${ac_cv_lib_MesaGL_glXCreateContext+set}" = set; then
17273 $as_echo_n "(cached) " >&6
17275 ac_check_lib_save_LIBS=$LIBS
17276 LIBS="-lMesaGL -lMesaGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
17277 cat >conftest.$ac_ext <<_ACEOF
17280 cat confdefs.h >>conftest.$ac_ext
17281 cat >>conftest.$ac_ext <<_ACEOF
17282 /* end confdefs.h. */
17284 /* Override any GCC internal prototype to avoid an error.
17285 Use char because int might match the return type of a GCC
17286 builtin and then its argument prototype would still apply. */
17290 char glXCreateContext ();
17294 return glXCreateContext ();
17299 rm -rf conftest.$ac_objext conftest$ac_exeext
17300 if { (ac_try="$ac_link"
17301 case "(($ac_try" in
17302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303 *) ac_try_echo=$ac_try;;
17305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17306 $as_echo "$ac_try_echo") >&5
17307 (eval "$ac_link") 2>conftest.er1
17309 grep -v '^ *+' conftest.er1 >conftest.err
17310 rm -rf conftest.er1
17311 cat conftest.err >&5
17312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); } && {
17314 test -z "$ac_c_werror_flag" ||
17315 test ! -s conftest.err
17316 } && test -s conftest$ac_exeext && {
17317 test "$cross_compiling" = yes ||
17318 $as_test_x conftest$ac_exeext
17320 ac_cv_lib_MesaGL_glXCreateContext=yes
17322 $as_echo "$as_me: failed program was:" >&5
17323 sed 's/^/| /' conftest.$ac_ext >&5
17325 ac_cv_lib_MesaGL_glXCreateContext=no
17328 rm -rf conftest.dSYM
17329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17330 conftest$ac_exeext conftest.$ac_ext
17331 LIBS=$ac_check_lib_save_LIBS
17333 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_MesaGL_glXCreateContext" >&5
17334 $as_echo "$ac_cv_lib_MesaGL_glXCreateContext" >&6; }
17335 if test "x$ac_cv_lib_MesaGL_glXCreateContext" = x""yes; then
17337 GL_LIBS="-lMesaGL -lMesaGLU $VIDMODE_LIBS $GL_LIBS"
17340 CPPFLAGS="$ac_save_CPPFLAGS"
17341 LDFLAGS="$ac_save_LDFLAGS"
17342 # LIBS="$ac_save_LIBS"
17346 if test "$gl_lib_1" = "" ; then
17348 ac_save_CPPFLAGS="$CPPFLAGS"
17349 ac_save_LDFLAGS="$LDFLAGS"
17350 # ac_save_LIBS="$LIBS"
17352 if test \! -z "$includedir" ; then
17353 CPPFLAGS="$CPPFLAGS -I$includedir"
17355 # note: $X_CFLAGS includes $x_includes
17356 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17358 if test \! -z "$libdir" ; then
17359 LDFLAGS="$LDFLAGS -L$libdir"
17361 # note: $X_LIBS includes $x_libraries
17362 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17364 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17365 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
17366 { $as_echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
17367 $as_echo_n "checking for glXCreateContext in -lGL... " >&6; }
17368 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
17369 $as_echo_n "(cached) " >&6
17371 ac_check_lib_save_LIBS=$LIBS
17372 LIBS="-lGL -lGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
17373 cat >conftest.$ac_ext <<_ACEOF
17376 cat confdefs.h >>conftest.$ac_ext
17377 cat >>conftest.$ac_ext <<_ACEOF
17378 /* end confdefs.h. */
17380 /* Override any GCC internal prototype to avoid an error.
17381 Use char because int might match the return type of a GCC
17382 builtin and then its argument prototype would still apply. */
17386 char glXCreateContext ();
17390 return glXCreateContext ();
17395 rm -rf conftest.$ac_objext conftest$ac_exeext
17396 if { (ac_try="$ac_link"
17397 case "(($ac_try" in
17398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399 *) ac_try_echo=$ac_try;;
17401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17402 $as_echo "$ac_try_echo") >&5
17403 (eval "$ac_link") 2>conftest.er1
17405 grep -v '^ *+' conftest.er1 >conftest.err
17406 rm -rf conftest.er1
17407 cat conftest.err >&5
17408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); } && {
17410 test -z "$ac_c_werror_flag" ||
17411 test ! -s conftest.err
17412 } && test -s conftest$ac_exeext && {
17413 test "$cross_compiling" = yes ||
17414 $as_test_x conftest$ac_exeext
17416 ac_cv_lib_GL_glXCreateContext=yes
17418 $as_echo "$as_me: failed program was:" >&5
17419 sed 's/^/| /' conftest.$ac_ext >&5
17421 ac_cv_lib_GL_glXCreateContext=no
17424 rm -rf conftest.dSYM
17425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17426 conftest$ac_exeext conftest.$ac_ext
17427 LIBS=$ac_check_lib_save_LIBS
17429 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
17430 $as_echo "$ac_cv_lib_GL_glXCreateContext" >&6; }
17431 if test "x$ac_cv_lib_GL_glXCreateContext" = x""yes; then
17433 GL_LIBS="-lGL -lGLU $VIDMODE_LIBS $GL_LIBS"
17436 CPPFLAGS="$ac_save_CPPFLAGS"
17437 LDFLAGS="$ac_save_LDFLAGS"
17438 # LIBS="$ac_save_LIBS"
17442 if test "$gl_lib_1" = "" ; then
17443 # we have headers, but no libs -- bail.
17448 # linking works -- we can build the GL hacks.
17449 cat >>confdefs.h <<\_ACEOF
17453 if test "$ac_have_mesa_gl" = yes ; then
17454 cat >>confdefs.h <<\_ACEOF
17455 #define HAVE_MESA_GL 1
17463 # Now that we know we have GL headers and libs, do some more GL testing.
17466 if test "$have_gl" = yes ; then
17467 # If it's MesaGL, we'd like to issue a warning if the version number
17468 # is less than or equal to 2.6, because that version had a security bug.
17470 if test "$ac_have_mesa_gl" = yes; then
17472 { $as_echo "$as_me:$LINENO: checking MesaGL version number" >&5
17473 $as_echo_n "checking MesaGL version number... " >&6; }
17474 if test "${ac_cv_mesagl_version_string+set}" = set; then
17475 $as_echo_n "(cached) " >&6
17477 cat > conftest.$ac_ext <<EOF
17478 #line 17482 "configure"
17479 #include "confdefs.h"
17481 #ifndef MESA_MAJOR_VERSION
17482 # include <GL/xmesa.h>
17483 # ifdef XMESA_MAJOR_VERSION
17484 /* Around Mesa 3.2, they took out the Mesa version number, so instead,
17485 we have to check the XMesa version number (the number of the X protocol
17486 support, which seems to be the same as the Mesa version number.)
17488 # define MESA_MAJOR_VERSION XMESA_MAJOR_VERSION
17489 # define MESA_MINOR_VERSION XMESA_MINOR_VERSION
17491 /* Oh great. Some time after 3.4, they took out the xmesa.h header file,
17492 so we have no way of telling what version of Mesa this is at all.
17493 So, we'll guess that the osmesa version (the "offscreen protocol")
17494 is less than or equal to the real mesa version number. Except that
17495 if OSmesa is 3.3, assume at least Mesa 3.4, since OSmesa was 3.3 in
17496 Mesa 3.4. And Mesa 3.3 had xmesa.h. What a complete load of shit!
17498 # include <GL/osmesa.h>
17499 # define MESA_MAJOR_VERSION OSMESA_MAJOR_VERSION
17500 # define MESA_MINOR_VERSION OSMESA_MINOR_VERSION or newer, probably?
17501 # if OSMESA_MAJOR_VERSION == 3 && OSMESA_MINOR_VERSION == 3
17502 # undef MESA_MINOR_VERSION
17503 # define MESA_MINOR_VERSION 4 or newer, probably?
17507 configure: MESA_MAJOR_VERSION MESA_MINOR_VERSION
17510 ac_save_CPPFLAGS="$CPPFLAGS"
17511 if test \! -z "$includedir" ; then
17512 CPPFLAGS="$CPPFLAGS -I$includedir"
17514 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17516 mglv=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | grep configure:`
17520 mglv=`echo "$mglv" | sed -n \
17521 's/^configure: *\([0-9][0-9]*\) *\([0-9].*\)$/\1.\2/p'`
17524 rm -rf conftest.$ac_ext
17526 CPPFLAGS="$ac_save_CPPFLAGS"
17528 if test "$mglv" = ""; then
17529 ac_mesagl_version=unknown
17530 ac_mesagl_version_string=unknown
17532 ac_mesagl_version_string="$mglv"
17535 maj=`echo "$mglv" | sed -n 's/^\([0-9][0-9]*\)\..*$/\1/p'`
17536 min=`echo "$mglv" | sed -n 's/^.*\.\([0-9][0-9]*\).*$/\1/p'`
17538 ac_mesagl_version=`echo "$maj * 1000 + $min" | bc`
17539 if test -z "$ac_mesagl_version"; then
17540 ac_mesagl_version=unknown
17541 ac_mesagl_version_string=unknown
17544 ac_cv_mesagl_version=$ac_mesagl_version
17545 ac_cv_mesagl_version_string=$ac_mesagl_version_string
17548 { $as_echo "$as_me:$LINENO: result: $ac_cv_mesagl_version_string" >&5
17549 $as_echo "$ac_cv_mesagl_version_string" >&6; }
17550 ac_mesagl_version=$ac_cv_mesagl_version
17551 ac_mesagl_version_string=$ac_cv_mesagl_version_string
17555 # Check for OpenGL 1.1 features.
17558 ac_save_CPPFLAGS="$CPPFLAGS"
17559 ac_save_LDFLAGS="$LDFLAGS"
17560 # ac_save_LIBS="$LIBS"
17562 if test \! -z "$includedir" ; then
17563 CPPFLAGS="$CPPFLAGS -I$includedir"
17565 # note: $X_CFLAGS includes $x_includes
17566 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17568 if test \! -z "$libdir" ; then
17569 LDFLAGS="$LDFLAGS -L$libdir"
17571 # note: $X_LIBS includes $x_libraries
17572 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17574 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17575 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
17576 as_ac_Lib=`$as_echo "ac_cv_lib_$gl_lib_1''_glBindTexture" | $as_tr_sh`
17577 { $as_echo "$as_me:$LINENO: checking for glBindTexture in -l$gl_lib_1" >&5
17578 $as_echo_n "checking for glBindTexture in -l$gl_lib_1... " >&6; }
17579 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
17580 $as_echo_n "(cached) " >&6
17582 ac_check_lib_save_LIBS=$LIBS
17583 LIBS="-l$gl_lib_1 $GL_LIBS -lX11 -lXext -lm $LIBS"
17584 cat >conftest.$ac_ext <<_ACEOF
17587 cat confdefs.h >>conftest.$ac_ext
17588 cat >>conftest.$ac_ext <<_ACEOF
17589 /* end confdefs.h. */
17591 /* Override any GCC internal prototype to avoid an error.
17592 Use char because int might match the return type of a GCC
17593 builtin and then its argument prototype would still apply. */
17597 char glBindTexture ();
17601 return glBindTexture ();
17606 rm -rf conftest.$ac_objext conftest$ac_exeext
17607 if { (ac_try="$ac_link"
17608 case "(($ac_try" in
17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17613 $as_echo "$ac_try_echo") >&5
17614 (eval "$ac_link") 2>conftest.er1
17616 grep -v '^ *+' conftest.er1 >conftest.err
17617 rm -rf conftest.er1
17618 cat conftest.err >&5
17619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } && {
17621 test -z "$ac_c_werror_flag" ||
17622 test ! -s conftest.err
17623 } && test -s conftest$ac_exeext && {
17624 test "$cross_compiling" = yes ||
17625 $as_test_x conftest$ac_exeext
17627 eval "$as_ac_Lib=yes"
17629 $as_echo "$as_me: failed program was:" >&5
17630 sed 's/^/| /' conftest.$ac_ext >&5
17632 eval "$as_ac_Lib=no"
17635 rm -rf conftest.dSYM
17636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17637 conftest$ac_exeext conftest.$ac_ext
17638 LIBS=$ac_check_lib_save_LIBS
17640 ac_res=`eval 'as_val=${'$as_ac_Lib'}
17641 $as_echo "$as_val"'`
17642 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17643 $as_echo "$ac_res" >&6; }
17644 as_val=`eval 'as_val=${'$as_ac_Lib'}
17645 $as_echo "$as_val"'`
17646 if test "x$as_val" = x""yes; then
17647 cat >>confdefs.h <<\_ACEOF
17648 #define HAVE_GLBINDTEXTURE 1
17655 CPPFLAGS="$ac_save_CPPFLAGS"
17656 LDFLAGS="$ac_save_LDFLAGS"
17657 # LIBS="$ac_save_LIBS"
17661 elif test "$with_gl" != no; then
17662 echo "error: must be yes or no: --with-gl=$with_gl"
17667 ###############################################################################
17671 ###############################################################################
17674 with_gle_req=unspecified
17677 # Check whether --with-gle was given.
17678 if test "${with_gle+set}" = set; then
17679 withval=$with_gle; with_gle="$withval"; with_gle_req="$withval"
17686 case "$with_gle" in
17691 { $as_echo "$as_me:$LINENO: checking for GLE headers" >&5
17692 $as_echo_n "checking for GLE headers... " >&6; }
17693 d=$with_gle/include
17694 if test -d $d; then
17695 X_CFLAGS="-I$d $X_CFLAGS"
17696 { $as_echo "$as_me:$LINENO: result: $d" >&5
17697 $as_echo "$d" >&6; }
17699 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17700 $as_echo "not found ($d: no such directory)" >&6; }
17703 { $as_echo "$as_me:$LINENO: checking for GLE libs" >&5
17704 $as_echo_n "checking for GLE libs... " >&6; }
17706 if test -d $d; then
17707 X_LIBS="-L$d $X_LIBS"
17708 { $as_echo "$as_me:$LINENO: result: $d" >&5
17709 $as_echo "$d" >&6; }
17711 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17712 $as_echo "not found ($d: no such directory)" >&6; }
17715 # replace the directory string with "yes".
17717 with_gle=$with_gle_req
17722 echo "error: argument to --with-gle must be \"yes\", \"no\", or a directory."
17723 echo " If it is a directory, then \`DIR/include' will be added to"
17724 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17732 if test "$have_gl" = no ; then
17734 elif test "$with_gle" = yes; then
17737 ac_save_CPPFLAGS="$CPPFLAGS"
17738 if test \! -z "$includedir" ; then
17739 CPPFLAGS="$CPPFLAGS -I$includedir"
17741 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17742 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17743 { $as_echo "$as_me:$LINENO: checking for GL/gle.h" >&5
17744 $as_echo_n "checking for GL/gle.h... " >&6; }
17745 if test "${ac_cv_header_GL_gle_h+set}" = set; then
17746 $as_echo_n "(cached) " >&6
17748 cat >conftest.$ac_ext <<_ACEOF
17751 cat confdefs.h >>conftest.$ac_ext
17752 cat >>conftest.$ac_ext <<_ACEOF
17753 /* end confdefs.h. */
17756 #include <GL/gle.h>
17758 rm -rf conftest.$ac_objext
17759 if { (ac_try="$ac_compile"
17760 case "(($ac_try" in
17761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17762 *) ac_try_echo=$ac_try;;
17764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17765 $as_echo "$ac_try_echo") >&5
17766 (eval "$ac_compile") 2>conftest.er1
17768 grep -v '^ *+' conftest.er1 >conftest.err
17769 rm -rf conftest.er1
17770 cat conftest.err >&5
17771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); } && {
17773 test -z "$ac_c_werror_flag" ||
17774 test ! -s conftest.err
17775 } && test -s conftest.$ac_objext; then
17776 ac_cv_header_GL_gle_h=yes
17778 $as_echo "$as_me: failed program was:" >&5
17779 sed 's/^/| /' conftest.$ac_ext >&5
17781 ac_cv_header_GL_gle_h=no
17784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17786 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gle_h" >&5
17787 $as_echo "$ac_cv_header_GL_gle_h" >&6; }
17788 if test "x$ac_cv_header_GL_gle_h" = x""yes; then
17795 CPPFLAGS="$ac_save_CPPFLAGS"
17796 if test "$have_gle3" = yes ; then
17800 ac_save_CPPFLAGS="$CPPFLAGS"
17801 if test \! -z "$includedir" ; then
17802 CPPFLAGS="$CPPFLAGS -I$includedir"
17804 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17805 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17806 { $as_echo "$as_me:$LINENO: checking for GL/gutil.h" >&5
17807 $as_echo_n "checking for GL/gutil.h... " >&6; }
17808 if test "${ac_cv_header_GL_gutil_h+set}" = set; then
17809 $as_echo_n "(cached) " >&6
17811 cat >conftest.$ac_ext <<_ACEOF
17814 cat confdefs.h >>conftest.$ac_ext
17815 cat >>conftest.$ac_ext <<_ACEOF
17816 /* end confdefs.h. */
17819 #include <GL/gutil.h>
17821 rm -rf conftest.$ac_objext
17822 if { (ac_try="$ac_compile"
17823 case "(($ac_try" in
17824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17825 *) ac_try_echo=$ac_try;;
17827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17828 $as_echo "$ac_try_echo") >&5
17829 (eval "$ac_compile") 2>conftest.er1
17831 grep -v '^ *+' conftest.er1 >conftest.err
17832 rm -rf conftest.er1
17833 cat conftest.err >&5
17834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); } && {
17836 test -z "$ac_c_werror_flag" ||
17837 test ! -s conftest.err
17838 } && test -s conftest.$ac_objext; then
17839 ac_cv_header_GL_gutil_h=yes
17841 $as_echo "$as_me: failed program was:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17844 ac_cv_header_GL_gutil_h=no
17847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17849 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gutil_h" >&5
17850 $as_echo "$ac_cv_header_GL_gutil_h" >&6; }
17851 if test "x$ac_cv_header_GL_gutil_h" = x""yes; then
17858 CPPFLAGS="$ac_save_CPPFLAGS"
17859 if test "$have_gle" = yes ; then
17861 ac_save_CPPFLAGS="$CPPFLAGS"
17862 if test \! -z "$includedir" ; then
17863 CPPFLAGS="$CPPFLAGS -I$includedir"
17865 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17866 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17867 { $as_echo "$as_me:$LINENO: checking for GL/tube.h" >&5
17868 $as_echo_n "checking for GL/tube.h... " >&6; }
17869 if test "${ac_cv_header_GL_tube_h+set}" = set; then
17870 $as_echo_n "(cached) " >&6
17872 cat >conftest.$ac_ext <<_ACEOF
17875 cat confdefs.h >>conftest.$ac_ext
17876 cat >>conftest.$ac_ext <<_ACEOF
17877 /* end confdefs.h. */
17880 #include <GL/tube.h>
17882 rm -rf conftest.$ac_objext
17883 if { (ac_try="$ac_compile"
17884 case "(($ac_try" in
17885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886 *) ac_try_echo=$ac_try;;
17888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17889 $as_echo "$ac_try_echo") >&5
17890 (eval "$ac_compile") 2>conftest.er1
17892 grep -v '^ *+' conftest.er1 >conftest.err
17893 rm -rf conftest.er1
17894 cat conftest.err >&5
17895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); } && {
17897 test -z "$ac_c_werror_flag" ||
17898 test ! -s conftest.err
17899 } && test -s conftest.$ac_objext; then
17900 ac_cv_header_GL_tube_h=yes
17902 $as_echo "$as_me: failed program was:" >&5
17903 sed 's/^/| /' conftest.$ac_ext >&5
17905 ac_cv_header_GL_tube_h=no
17908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17910 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_tube_h" >&5
17911 $as_echo "$ac_cv_header_GL_tube_h" >&6; }
17912 if test "x$ac_cv_header_GL_tube_h" = x""yes; then
17919 CPPFLAGS="$ac_save_CPPFLAGS"
17923 if test "$have_gle" = yes ; then
17927 ac_save_CPPFLAGS="$CPPFLAGS"
17928 ac_save_LDFLAGS="$LDFLAGS"
17929 # ac_save_LIBS="$LIBS"
17931 if test \! -z "$includedir" ; then
17932 CPPFLAGS="$CPPFLAGS -I$includedir"
17934 # note: $X_CFLAGS includes $x_includes
17935 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17937 if test \! -z "$libdir" ; then
17938 LDFLAGS="$LDFLAGS -L$libdir"
17940 # note: $X_LIBS includes $x_libraries
17941 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17943 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17944 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
17945 { $as_echo "$as_me:$LINENO: checking for gleCreateGC in -lgle" >&5
17946 $as_echo_n "checking for gleCreateGC in -lgle... " >&6; }
17947 if test "${ac_cv_lib_gle_gleCreateGC+set}" = set; then
17948 $as_echo_n "(cached) " >&6
17950 ac_check_lib_save_LIBS=$LIBS
17951 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
17952 cat >conftest.$ac_ext <<_ACEOF
17955 cat confdefs.h >>conftest.$ac_ext
17956 cat >>conftest.$ac_ext <<_ACEOF
17957 /* end confdefs.h. */
17959 /* Override any GCC internal prototype to avoid an error.
17960 Use char because int might match the return type of a GCC
17961 builtin and then its argument prototype would still apply. */
17965 char gleCreateGC ();
17969 return gleCreateGC ();
17974 rm -rf conftest.$ac_objext conftest$ac_exeext
17975 if { (ac_try="$ac_link"
17976 case "(($ac_try" in
17977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17978 *) ac_try_echo=$ac_try;;
17980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17981 $as_echo "$ac_try_echo") >&5
17982 (eval "$ac_link") 2>conftest.er1
17984 grep -v '^ *+' conftest.er1 >conftest.err
17985 rm -rf conftest.er1
17986 cat conftest.err >&5
17987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); } && {
17989 test -z "$ac_c_werror_flag" ||
17990 test ! -s conftest.err
17991 } && test -s conftest$ac_exeext && {
17992 test "$cross_compiling" = yes ||
17993 $as_test_x conftest$ac_exeext
17995 ac_cv_lib_gle_gleCreateGC=yes
17997 $as_echo "$as_me: failed program was:" >&5
17998 sed 's/^/| /' conftest.$ac_ext >&5
18000 ac_cv_lib_gle_gleCreateGC=no
18003 rm -rf conftest.dSYM
18004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18005 conftest$ac_exeext conftest.$ac_ext
18006 LIBS=$ac_check_lib_save_LIBS
18008 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gle_gleCreateGC" >&5
18009 $as_echo "$ac_cv_lib_gle_gleCreateGC" >&6; }
18010 if test "x$ac_cv_lib_gle_gleCreateGC" = x""yes; then
18011 have_gle=yes; gle_halfassed=no; GLE_LIBS="-lgle"
18014 CPPFLAGS="$ac_save_CPPFLAGS"
18015 LDFLAGS="$ac_save_LDFLAGS"
18016 # LIBS="$ac_save_LIBS"
18019 if test "$have_gle" = yes ; then
18023 # sometimes the libmatrix stuff is included in libgle. look there first.
18025 # I don't get it. For some reason, this test passes on SGI, as if
18026 # uview_direction_d() was in libgle -- but it's not, it's in libmatrix.
18027 # Yet the link is succeeding. Why???
18029 # AC_CHECK_X_LIB(gle, uview_direction_d,
18030 # [have_gle=yes; gle_halfassed=no],
18031 # [], $GL_LIBS -lX11 -lXext -lm)
18033 # As of GLE 3 this is in libgle, and has changed name to uview_direction!
18035 if test "$have_gle3" = yes ; then
18037 ac_save_CPPFLAGS="$CPPFLAGS"
18038 ac_save_LDFLAGS="$LDFLAGS"
18039 # ac_save_LIBS="$LIBS"
18041 if test \! -z "$includedir" ; then
18042 CPPFLAGS="$CPPFLAGS -I$includedir"
18044 # note: $X_CFLAGS includes $x_includes
18045 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18047 if test \! -z "$libdir" ; then
18048 LDFLAGS="$LDFLAGS -L$libdir"
18050 # note: $X_LIBS includes $x_libraries
18051 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18053 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18054 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
18055 { $as_echo "$as_me:$LINENO: checking for uview_direction in -lgle" >&5
18056 $as_echo_n "checking for uview_direction in -lgle... " >&6; }
18057 if test "${ac_cv_lib_gle_uview_direction+set}" = set; then
18058 $as_echo_n "(cached) " >&6
18060 ac_check_lib_save_LIBS=$LIBS
18061 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
18062 cat >conftest.$ac_ext <<_ACEOF
18065 cat confdefs.h >>conftest.$ac_ext
18066 cat >>conftest.$ac_ext <<_ACEOF
18067 /* end confdefs.h. */
18069 /* Override any GCC internal prototype to avoid an error.
18070 Use char because int might match the return type of a GCC
18071 builtin and then its argument prototype would still apply. */
18075 char uview_direction ();
18079 return uview_direction ();
18084 rm -rf conftest.$ac_objext conftest$ac_exeext
18085 if { (ac_try="$ac_link"
18086 case "(($ac_try" in
18087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18088 *) ac_try_echo=$ac_try;;
18090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18091 $as_echo "$ac_try_echo") >&5
18092 (eval "$ac_link") 2>conftest.er1
18094 grep -v '^ *+' conftest.er1 >conftest.err
18095 rm -rf conftest.er1
18096 cat conftest.err >&5
18097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); } && {
18099 test -z "$ac_c_werror_flag" ||
18100 test ! -s conftest.err
18101 } && test -s conftest$ac_exeext && {
18102 test "$cross_compiling" = yes ||
18103 $as_test_x conftest$ac_exeext
18105 ac_cv_lib_gle_uview_direction=yes
18107 $as_echo "$as_me: failed program was:" >&5
18108 sed 's/^/| /' conftest.$ac_ext >&5
18110 ac_cv_lib_gle_uview_direction=no
18113 rm -rf conftest.dSYM
18114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18115 conftest$ac_exeext conftest.$ac_ext
18116 LIBS=$ac_check_lib_save_LIBS
18118 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gle_uview_direction" >&5
18119 $as_echo "$ac_cv_lib_gle_uview_direction" >&6; }
18120 if test "x$ac_cv_lib_gle_uview_direction" = x""yes; then
18121 have_gle=yes; gle_halfassed=no
18124 CPPFLAGS="$ac_save_CPPFLAGS"
18125 LDFLAGS="$ac_save_LDFLAGS"
18126 # LIBS="$ac_save_LIBS"
18129 # if it wasn't in libgle, then look in libmatrix.
18130 if test "$have_gle" = no ; then
18132 ac_save_CPPFLAGS="$CPPFLAGS"
18133 ac_save_LDFLAGS="$LDFLAGS"
18134 # ac_save_LIBS="$LIBS"
18136 if test \! -z "$includedir" ; then
18137 CPPFLAGS="$CPPFLAGS -I$includedir"
18139 # note: $X_CFLAGS includes $x_includes
18140 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18142 if test \! -z "$libdir" ; then
18143 LDFLAGS="$LDFLAGS -L$libdir"
18145 # note: $X_LIBS includes $x_libraries
18146 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18148 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18149 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
18150 { $as_echo "$as_me:$LINENO: checking for uview_direction_d in -lmatrix" >&5
18151 $as_echo_n "checking for uview_direction_d in -lmatrix... " >&6; }
18152 if test "${ac_cv_lib_matrix_uview_direction_d+set}" = set; then
18153 $as_echo_n "(cached) " >&6
18155 ac_check_lib_save_LIBS=$LIBS
18156 LIBS="-lmatrix $GL_LIBS -lX11 -lXext -lm $LIBS"
18157 cat >conftest.$ac_ext <<_ACEOF
18160 cat confdefs.h >>conftest.$ac_ext
18161 cat >>conftest.$ac_ext <<_ACEOF
18162 /* end confdefs.h. */
18164 /* Override any GCC internal prototype to avoid an error.
18165 Use char because int might match the return type of a GCC
18166 builtin and then its argument prototype would still apply. */
18170 char uview_direction_d ();
18174 return uview_direction_d ();
18179 rm -rf conftest.$ac_objext conftest$ac_exeext
18180 if { (ac_try="$ac_link"
18181 case "(($ac_try" in
18182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18183 *) ac_try_echo=$ac_try;;
18185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18186 $as_echo "$ac_try_echo") >&5
18187 (eval "$ac_link") 2>conftest.er1
18189 grep -v '^ *+' conftest.er1 >conftest.err
18190 rm -rf conftest.er1
18191 cat conftest.err >&5
18192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); } && {
18194 test -z "$ac_c_werror_flag" ||
18195 test ! -s conftest.err
18196 } && test -s conftest$ac_exeext && {
18197 test "$cross_compiling" = yes ||
18198 $as_test_x conftest$ac_exeext
18200 ac_cv_lib_matrix_uview_direction_d=yes
18202 $as_echo "$as_me: failed program was:" >&5
18203 sed 's/^/| /' conftest.$ac_ext >&5
18205 ac_cv_lib_matrix_uview_direction_d=no
18208 rm -rf conftest.dSYM
18209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18210 conftest$ac_exeext conftest.$ac_ext
18211 LIBS=$ac_check_lib_save_LIBS
18213 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_matrix_uview_direction_d" >&5
18214 $as_echo "$ac_cv_lib_matrix_uview_direction_d" >&6; }
18215 if test "x$ac_cv_lib_matrix_uview_direction_d" = x""yes; then
18216 have_gle=yes; gle_halfassed=no;
18217 GLE_LIBS="$GLE_LIBS -lmatrix"
18220 CPPFLAGS="$ac_save_CPPFLAGS"
18221 LDFLAGS="$ac_save_LDFLAGS"
18222 # LIBS="$ac_save_LIBS"
18227 if test "$have_gle" = yes ; then
18228 cat >>confdefs.h <<\_ACEOF
18232 if test "$have_gle3" = yes ; then
18233 cat >>confdefs.h <<\_ACEOF
18234 #define HAVE_GLE3 1
18240 elif test "$with_gle" != no; then
18241 echo "error: must be yes or no: --with-gle=$with_gle"
18247 ###############################################################################
18249 # Handle --with-gles
18251 ###############################################################################
18253 with_gles_req=unspecified
18255 # Check whether --with-gles was given.
18256 if test "${with_gles+set}" = set; then
18257 withval=$with_gles; with_gles="$withval"; with_gles_req="$withval"
18264 case "$with_gles" in
18269 { $as_echo "$as_me:$LINENO: checking for JWZGLES headers" >&5
18270 $as_echo_n "checking for JWZGLES headers... " >&6; }
18271 d=$with_gles/include
18272 if test -d $d; then
18273 X_CFLAGS="-I$d $X_CFLAGS"
18274 { $as_echo "$as_me:$LINENO: result: $d" >&5
18275 $as_echo "$d" >&6; }
18277 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18278 $as_echo "not found ($d: no such directory)" >&6; }
18281 { $as_echo "$as_me:$LINENO: checking for JWZGLES libs" >&5
18282 $as_echo_n "checking for JWZGLES libs... " >&6; }
18284 if test -d $d; then
18285 X_LIBS="-L$d $X_LIBS"
18286 { $as_echo "$as_me:$LINENO: result: $d" >&5
18287 $as_echo "$d" >&6; }
18289 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18290 $as_echo "not found ($d: no such directory)" >&6; }
18293 # replace the directory string with "yes".
18294 with_gles_req="yes"
18295 with_gles=$with_gles_req
18300 echo "error: argument to --with-gles must be \"yes\", \"no\", or a directory."
18301 echo " If it is a directory, then \`DIR/include' will be added to"
18302 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18308 if test "$with_gles" = yes; then
18310 cat >>confdefs.h <<\_ACEOF
18311 #define HAVE_JWZGLES 1
18314 JWZGLES_OBJS="jwzgles.o"
18315 { $as_echo "$as_me:$LINENO: result: using OpenGL ES compatiblity shim" >&5
18316 $as_echo "using OpenGL ES compatiblity shim" >&6; }
18317 elif test "$with_gles" != no; then
18318 echo "error: must be yes or no: --with-gles=$with_xpm"
18322 # May want to phase out glBitmap even in a non-GLES world.
18324 if test "$have_gles" = yes; then
18325 GLFPS_OBJS="fps-gl.o glxfonts.o texfont.o"
18328 cat >>confdefs.h <<\_ACEOF
18329 #define HAVE_GLBITMAP 1
18332 GLFPS_OBJS="fps-gl.o glxfonts.o"
18333 GLFONT_OBJS="texfont.o"
18337 ###############################################################################
18339 # Check for -lgdk_pixbuf.
18340 # These tests are for gdk_pixbuf usage of the hacks,
18341 # not xscreensaver-demo (thus we have to test again to get
18342 # the libraries right: don't want to pull in all of GTK
18345 ###############################################################################
18348 with_gdk_pixbuf_req=unspecified
18350 # Check whether --with-pixbuf was given.
18351 if test "${with_pixbuf+set}" = set; then
18352 withval=$with_pixbuf; with_gdk_pixbuf="$withval"; with_gdk_pixbuf_req="$withval"
18354 with_gdk_pixbuf=yes
18358 # if --with-pixbuf=/directory/ was specified, remember that directory so that
18359 # we can also look for the `gdk-pixbuf-config' program in that directory.
18360 case "$with_gdk_pixbuf" in
18362 gdk_pixbuf_dir="$with_gdk_pixbuf"
18370 case "$with_gdk_pixbuf" in
18375 { $as_echo "$as_me:$LINENO: checking for GDK_PIXBUF headers" >&5
18376 $as_echo_n "checking for GDK_PIXBUF headers... " >&6; }
18377 d=$with_gdk_pixbuf/include
18378 if test -d $d; then
18379 X_CFLAGS="-I$d $X_CFLAGS"
18380 { $as_echo "$as_me:$LINENO: result: $d" >&5
18381 $as_echo "$d" >&6; }
18383 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18384 $as_echo "not found ($d: no such directory)" >&6; }
18387 { $as_echo "$as_me:$LINENO: checking for GDK_PIXBUF libs" >&5
18388 $as_echo_n "checking for GDK_PIXBUF libs... " >&6; }
18389 d=$with_gdk_pixbuf/lib
18390 if test -d $d; then
18391 X_LIBS="-L$d $X_LIBS"
18392 { $as_echo "$as_me:$LINENO: result: $d" >&5
18393 $as_echo "$d" >&6; }
18395 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18396 $as_echo "not found ($d: no such directory)" >&6; }
18399 # replace the directory string with "yes".
18400 with_gdk_pixbuf_req="yes"
18401 with_gdk_pixbuf=$with_gdk_pixbuf_req
18406 echo "error: argument to --with-pixbuf must be \"yes\", \"no\", or a directory."
18407 echo " If it is a directory, then \`DIR/include' will be added to"
18408 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18414 if test "$with_gdk_pixbuf" != yes -a "$with_gdk_pixbuf" != no ; then
18415 echo "error: must be yes or no: --with-pixbuf=$with_gdk_pixbuf"
18419 if test "$with_gdk_pixbuf" = yes; then
18425 pkg_check_version gdk-pixbuf-2.0 2.0.0
18426 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
18427 have_gdk_pixbuf="$ok"
18429 if test "$have_gdk_pixbuf" = yes; then
18430 { $as_echo "$as_me:$LINENO: checking for gdk-pixbuf includes" >&5
18431 $as_echo_n "checking for gdk-pixbuf includes... " >&6; }
18432 if test "${ac_cv_gdk_pixbuf_config_cflags+set}" = set; then
18433 $as_echo_n "(cached) " >&6
18435 ac_cv_gdk_pixbuf_config_cflags=`$pkg_config --cflags $pkgs`
18437 { $as_echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
18438 $as_echo "$ac_cv_gdk_pixbuf_config_cflags" >&6; }
18439 { $as_echo "$as_me:$LINENO: checking for gdk-pixbuf libs" >&5
18440 $as_echo_n "checking for gdk-pixbuf libs... " >&6; }
18441 if test "${ac_cv_gdk_pixbuf_config_libs+set}" = set; then
18442 $as_echo_n "(cached) " >&6
18444 ac_cv_gdk_pixbuf_config_libs=`$pkg_config --libs $pkgs`
18446 { $as_echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_libs" >&5
18447 $as_echo "$ac_cv_gdk_pixbuf_config_libs" >&6; }
18450 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
18451 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
18454 if test "$have_gdk_pixbuf" = yes; then
18456 # we appear to have pixbuf; check for headers/libs to be sure.
18458 ac_save_gdk_pixbuf_CPPFLAGS="$CPPFLAGS"
18459 CPPFLAGS="$CPPFLAGS $ac_gdk_pixbuf_config_cflags"
18463 # check for header A...
18465 ac_save_CPPFLAGS="$CPPFLAGS"
18466 if test \! -z "$includedir" ; then
18467 CPPFLAGS="$CPPFLAGS -I$includedir"
18469 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18470 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18471 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
18472 { $as_echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
18473 $as_echo_n "checking for gdk-pixbuf/gdk-pixbuf.h... " >&6; }
18474 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
18475 $as_echo_n "(cached) " >&6
18477 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
18478 $as_echo "$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6; }
18480 # Is the header compilable?
18481 { $as_echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h usability" >&5
18482 $as_echo_n "checking gdk-pixbuf/gdk-pixbuf.h usability... " >&6; }
18483 cat >conftest.$ac_ext <<_ACEOF
18486 cat confdefs.h >>conftest.$ac_ext
18487 cat >>conftest.$ac_ext <<_ACEOF
18488 /* end confdefs.h. */
18489 $ac_includes_default
18490 #include <gdk-pixbuf/gdk-pixbuf.h>
18492 rm -rf conftest.$ac_objext
18493 if { (ac_try="$ac_compile"
18494 case "(($ac_try" in
18495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18496 *) ac_try_echo=$ac_try;;
18498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18499 $as_echo "$ac_try_echo") >&5
18500 (eval "$ac_compile") 2>conftest.er1
18502 grep -v '^ *+' conftest.er1 >conftest.err
18503 rm -rf conftest.er1
18504 cat conftest.err >&5
18505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); } && {
18507 test -z "$ac_c_werror_flag" ||
18508 test ! -s conftest.err
18509 } && test -s conftest.$ac_objext; then
18510 ac_header_compiler=yes
18512 $as_echo "$as_me: failed program was:" >&5
18513 sed 's/^/| /' conftest.$ac_ext >&5
18515 ac_header_compiler=no
18518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18519 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18520 $as_echo "$ac_header_compiler" >&6; }
18522 # Is the header present?
18523 { $as_echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h presence" >&5
18524 $as_echo_n "checking gdk-pixbuf/gdk-pixbuf.h presence... " >&6; }
18525 cat >conftest.$ac_ext <<_ACEOF
18528 cat confdefs.h >>conftest.$ac_ext
18529 cat >>conftest.$ac_ext <<_ACEOF
18530 /* end confdefs.h. */
18531 #include <gdk-pixbuf/gdk-pixbuf.h>
18533 if { (ac_try="$ac_cpp conftest.$ac_ext"
18534 case "(($ac_try" in
18535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18536 *) ac_try_echo=$ac_try;;
18538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18539 $as_echo "$ac_try_echo") >&5
18540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18542 grep -v '^ *+' conftest.er1 >conftest.err
18543 rm -rf conftest.er1
18544 cat conftest.err >&5
18545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); } >/dev/null && {
18547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18548 test ! -s conftest.err
18550 ac_header_preproc=yes
18552 $as_echo "$as_me: failed program was:" >&5
18553 sed 's/^/| /' conftest.$ac_ext >&5
18555 ac_header_preproc=no
18558 rm -rf conftest.err conftest.$ac_ext
18559 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18560 $as_echo "$ac_header_preproc" >&6; }
18562 # So? What about this header?
18563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18565 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&5
18566 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18567 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the compiler's result" >&5
18568 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the compiler's result" >&2;}
18569 ac_header_preproc=yes
18572 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&5
18573 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&2;}
18574 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&5
18575 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&2;}
18576 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: see the Autoconf documentation" >&5
18577 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: see the Autoconf documentation" >&2;}
18578 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: section \"Present But Cannot Be Compiled\"" >&5
18579 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: section \"Present But Cannot Be Compiled\"" >&2;}
18580 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&5
18581 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&2;}
18582 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: in the future, the compiler will take precedence" >&5
18583 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: in the future, the compiler will take precedence" >&2;}
18587 { $as_echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
18588 $as_echo_n "checking for gdk-pixbuf/gdk-pixbuf.h... " >&6; }
18589 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
18590 $as_echo_n "(cached) " >&6
18592 ac_cv_header_gdk_pixbuf_gdk_pixbuf_h=$ac_header_preproc
18594 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
18595 $as_echo "$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6; }
18598 if test "x$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" = x""yes; then
18599 have_gdk_pixbuf=yes
18603 CPPFLAGS="$ac_save_CPPFLAGS"
18605 # if that worked, check for header B...
18606 if test "$have_gdk_pixbuf" = yes; then
18608 gdk_pixbuf_halfassed=yes
18610 ac_save_CPPFLAGS="$CPPFLAGS"
18611 if test \! -z "$includedir" ; then
18612 CPPFLAGS="$CPPFLAGS -I$includedir"
18614 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18615 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18616 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
18617 { $as_echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
18618 $as_echo_n "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... " >&6; }
18619 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
18620 $as_echo_n "(cached) " >&6
18622 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
18623 $as_echo "$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6; }
18625 # Is the header compilable?
18626 { $as_echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h usability" >&5
18627 $as_echo_n "checking gdk-pixbuf/gdk-pixbuf-xlib.h usability... " >&6; }
18628 cat >conftest.$ac_ext <<_ACEOF
18631 cat confdefs.h >>conftest.$ac_ext
18632 cat >>conftest.$ac_ext <<_ACEOF
18633 /* end confdefs.h. */
18634 $ac_includes_default
18635 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
18637 rm -rf conftest.$ac_objext
18638 if { (ac_try="$ac_compile"
18639 case "(($ac_try" in
18640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641 *) ac_try_echo=$ac_try;;
18643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18644 $as_echo "$ac_try_echo") >&5
18645 (eval "$ac_compile") 2>conftest.er1
18647 grep -v '^ *+' conftest.er1 >conftest.err
18648 rm -rf conftest.er1
18649 cat conftest.err >&5
18650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); } && {
18652 test -z "$ac_c_werror_flag" ||
18653 test ! -s conftest.err
18654 } && test -s conftest.$ac_objext; then
18655 ac_header_compiler=yes
18657 $as_echo "$as_me: failed program was:" >&5
18658 sed 's/^/| /' conftest.$ac_ext >&5
18660 ac_header_compiler=no
18663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18664 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18665 $as_echo "$ac_header_compiler" >&6; }
18667 # Is the header present?
18668 { $as_echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h presence" >&5
18669 $as_echo_n "checking gdk-pixbuf/gdk-pixbuf-xlib.h presence... " >&6; }
18670 cat >conftest.$ac_ext <<_ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h. */
18676 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
18678 if { (ac_try="$ac_cpp conftest.$ac_ext"
18679 case "(($ac_try" in
18680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18681 *) ac_try_echo=$ac_try;;
18683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18684 $as_echo "$ac_try_echo") >&5
18685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18687 grep -v '^ *+' conftest.er1 >conftest.err
18688 rm -rf conftest.er1
18689 cat conftest.err >&5
18690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); } >/dev/null && {
18692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18693 test ! -s conftest.err
18695 ac_header_preproc=yes
18697 $as_echo "$as_me: failed program was:" >&5
18698 sed 's/^/| /' conftest.$ac_ext >&5
18700 ac_header_preproc=no
18703 rm -rf conftest.err conftest.$ac_ext
18704 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18705 $as_echo "$ac_header_preproc" >&6; }
18707 # So? What about this header?
18708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18710 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18711 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18712 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&5
18713 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&2;}
18714 ac_header_preproc=yes
18717 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
18718 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
18719 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
18720 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
18721 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&5
18722 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&2;}
18723 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&5
18724 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18725 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
18726 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
18727 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&5
18728 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&2;}
18732 { $as_echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
18733 $as_echo_n "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... " >&6; }
18734 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
18735 $as_echo_n "(cached) " >&6
18737 ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h=$ac_header_preproc
18739 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
18740 $as_echo "$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6; }
18743 if test "x$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" = x""yes; then
18744 have_gdk_pixbuf=yes
18745 gdk_pixbuf_halfassed=no
18749 CPPFLAGS="$ac_save_CPPFLAGS"
18751 # yay, it has a new name in Gtk 2.x...
18752 if test "$have_gdk_pixbuf" = no; then
18754 gdk_pixbuf_halfassed=yes
18756 ac_save_CPPFLAGS="$CPPFLAGS"
18757 if test \! -z "$includedir" ; then
18758 CPPFLAGS="$CPPFLAGS -I$includedir"
18760 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18761 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18762 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
18763 { $as_echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
18764 $as_echo_n "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... " >&6; }
18765 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
18766 $as_echo_n "(cached) " >&6
18768 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
18769 $as_echo "$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6; }
18771 # Is the header compilable?
18772 { $as_echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability" >&5
18773 $as_echo_n "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability... " >&6; }
18774 cat >conftest.$ac_ext <<_ACEOF
18777 cat confdefs.h >>conftest.$ac_ext
18778 cat >>conftest.$ac_ext <<_ACEOF
18779 /* end confdefs.h. */
18780 $ac_includes_default
18781 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
18783 rm -rf conftest.$ac_objext
18784 if { (ac_try="$ac_compile"
18785 case "(($ac_try" in
18786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787 *) ac_try_echo=$ac_try;;
18789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18790 $as_echo "$ac_try_echo") >&5
18791 (eval "$ac_compile") 2>conftest.er1
18793 grep -v '^ *+' conftest.er1 >conftest.err
18794 rm -rf conftest.er1
18795 cat conftest.err >&5
18796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); } && {
18798 test -z "$ac_c_werror_flag" ||
18799 test ! -s conftest.err
18800 } && test -s conftest.$ac_objext; then
18801 ac_header_compiler=yes
18803 $as_echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18806 ac_header_compiler=no
18809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18810 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18811 $as_echo "$ac_header_compiler" >&6; }
18813 # Is the header present?
18814 { $as_echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence" >&5
18815 $as_echo_n "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence... " >&6; }
18816 cat >conftest.$ac_ext <<_ACEOF
18819 cat confdefs.h >>conftest.$ac_ext
18820 cat >>conftest.$ac_ext <<_ACEOF
18821 /* end confdefs.h. */
18822 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
18824 if { (ac_try="$ac_cpp conftest.$ac_ext"
18825 case "(($ac_try" in
18826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18830 $as_echo "$ac_try_echo") >&5
18831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18833 grep -v '^ *+' conftest.er1 >conftest.err
18834 rm -rf conftest.er1
18835 cat conftest.err >&5
18836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); } >/dev/null && {
18838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18839 test ! -s conftest.err
18841 ac_header_preproc=yes
18843 $as_echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18846 ac_header_preproc=no
18849 rm -rf conftest.err conftest.$ac_ext
18850 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18851 $as_echo "$ac_header_preproc" >&6; }
18853 # So? What about this header?
18854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18856 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18857 $as_echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18858 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&5
18859 $as_echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&2;}
18860 ac_header_preproc=yes
18863 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
18864 $as_echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
18865 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
18866 $as_echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
18867 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&5
18868 $as_echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&2;}
18869 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&5
18870 $as_echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18871 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
18872 $as_echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
18873 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&5
18874 $as_echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&2;}
18878 { $as_echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
18879 $as_echo_n "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... " >&6; }
18880 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
18881 $as_echo_n "(cached) " >&6
18883 ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h=$ac_header_preproc
18885 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
18886 $as_echo "$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6; }
18889 if test "x$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" = x""yes; then
18890 have_gdk_pixbuf=yes
18891 gdk_pixbuf_halfassed=no
18895 CPPFLAGS="$ac_save_CPPFLAGS"
18898 CPPFLAGS="$ac_save_gdk_pixbuf_CPPFLAGS"
18901 if test "$have_gdk_pixbuf" = yes; then
18902 # we have the headers, now check for the libraries
18904 gdk_pixbuf_halfassed=yes
18906 { $as_echo "$as_me:$LINENO: result: checking for gdk_pixbuf usability..." >&5
18907 $as_echo "checking for gdk_pixbuf usability..." >&6; }
18911 ac_save_CPPFLAGS="$CPPFLAGS"
18912 ac_save_LDFLAGS="$LDFLAGS"
18913 # ac_save_LIBS="$LIBS"
18915 if test \! -z "$includedir" ; then
18916 CPPFLAGS="$CPPFLAGS -I$includedir"
18918 # note: $X_CFLAGS includes $x_includes
18919 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18921 if test \! -z "$libdir" ; then
18922 LDFLAGS="$LDFLAGS -L$libdir"
18924 # note: $X_LIBS includes $x_libraries
18925 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18927 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18928 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
18929 { $as_echo "$as_me:$LINENO: checking for gdk_pixbuf_new_from_file in -lc" >&5
18930 $as_echo_n "checking for gdk_pixbuf_new_from_file in -lc... " >&6; }
18931 if test "${ac_cv_lib_c_gdk_pixbuf_new_from_file+set}" = set; then
18932 $as_echo_n "(cached) " >&6
18934 ac_check_lib_save_LIBS=$LIBS
18935 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
18936 cat >conftest.$ac_ext <<_ACEOF
18939 cat confdefs.h >>conftest.$ac_ext
18940 cat >>conftest.$ac_ext <<_ACEOF
18941 /* end confdefs.h. */
18943 /* Override any GCC internal prototype to avoid an error.
18944 Use char because int might match the return type of a GCC
18945 builtin and then its argument prototype would still apply. */
18949 char gdk_pixbuf_new_from_file ();
18953 return gdk_pixbuf_new_from_file ();
18958 rm -rf conftest.$ac_objext conftest$ac_exeext
18959 if { (ac_try="$ac_link"
18960 case "(($ac_try" in
18961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18962 *) ac_try_echo=$ac_try;;
18964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18965 $as_echo "$ac_try_echo") >&5
18966 (eval "$ac_link") 2>conftest.er1
18968 grep -v '^ *+' conftest.er1 >conftest.err
18969 rm -rf conftest.er1
18970 cat conftest.err >&5
18971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); } && {
18973 test -z "$ac_c_werror_flag" ||
18974 test ! -s conftest.err
18975 } && test -s conftest$ac_exeext && {
18976 test "$cross_compiling" = yes ||
18977 $as_test_x conftest$ac_exeext
18979 ac_cv_lib_c_gdk_pixbuf_new_from_file=yes
18981 $as_echo "$as_me: failed program was:" >&5
18982 sed 's/^/| /' conftest.$ac_ext >&5
18984 ac_cv_lib_c_gdk_pixbuf_new_from_file=no
18987 rm -rf conftest.dSYM
18988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18989 conftest$ac_exeext conftest.$ac_ext
18990 LIBS=$ac_check_lib_save_LIBS
18992 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_new_from_file" >&5
18993 $as_echo "$ac_cv_lib_c_gdk_pixbuf_new_from_file" >&6; }
18994 if test "x$ac_cv_lib_c_gdk_pixbuf_new_from_file" = x""yes; then
18995 have_gdk_pixbuf=yes
18998 CPPFLAGS="$ac_save_CPPFLAGS"
18999 LDFLAGS="$ac_save_LDFLAGS"
19000 # LIBS="$ac_save_LIBS"
19003 if test "$have_gdk_pixbuf" = yes; then
19006 ac_save_CPPFLAGS="$CPPFLAGS"
19007 ac_save_LDFLAGS="$LDFLAGS"
19008 # ac_save_LIBS="$LIBS"
19010 if test \! -z "$includedir" ; then
19011 CPPFLAGS="$CPPFLAGS -I$includedir"
19013 # note: $X_CFLAGS includes $x_includes
19014 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19016 if test \! -z "$libdir" ; then
19017 LDFLAGS="$LDFLAGS -L$libdir"
19019 # note: $X_LIBS includes $x_libraries
19020 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
19022 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19023 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
19024 { $as_echo "$as_me:$LINENO: checking for gdk_pixbuf_xlib_init in -lc" >&5
19025 $as_echo_n "checking for gdk_pixbuf_xlib_init in -lc... " >&6; }
19026 if test "${ac_cv_lib_c_gdk_pixbuf_xlib_init+set}" = set; then
19027 $as_echo_n "(cached) " >&6
19029 ac_check_lib_save_LIBS=$LIBS
19030 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
19031 cat >conftest.$ac_ext <<_ACEOF
19034 cat confdefs.h >>conftest.$ac_ext
19035 cat >>conftest.$ac_ext <<_ACEOF
19036 /* end confdefs.h. */
19038 /* Override any GCC internal prototype to avoid an error.
19039 Use char because int might match the return type of a GCC
19040 builtin and then its argument prototype would still apply. */
19044 char gdk_pixbuf_xlib_init ();
19048 return gdk_pixbuf_xlib_init ();
19053 rm -rf conftest.$ac_objext conftest$ac_exeext
19054 if { (ac_try="$ac_link"
19055 case "(($ac_try" in
19056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057 *) ac_try_echo=$ac_try;;
19059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19060 $as_echo "$ac_try_echo") >&5
19061 (eval "$ac_link") 2>conftest.er1
19063 grep -v '^ *+' conftest.er1 >conftest.err
19064 rm -rf conftest.er1
19065 cat conftest.err >&5
19066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); } && {
19068 test -z "$ac_c_werror_flag" ||
19069 test ! -s conftest.err
19070 } && test -s conftest$ac_exeext && {
19071 test "$cross_compiling" = yes ||
19072 $as_test_x conftest$ac_exeext
19074 ac_cv_lib_c_gdk_pixbuf_xlib_init=yes
19076 $as_echo "$as_me: failed program was:" >&5
19077 sed 's/^/| /' conftest.$ac_ext >&5
19079 ac_cv_lib_c_gdk_pixbuf_xlib_init=no
19082 rm -rf conftest.dSYM
19083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19084 conftest$ac_exeext conftest.$ac_ext
19085 LIBS=$ac_check_lib_save_LIBS
19087 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_xlib_init" >&5
19088 $as_echo "$ac_cv_lib_c_gdk_pixbuf_xlib_init" >&6; }
19089 if test "x$ac_cv_lib_c_gdk_pixbuf_xlib_init" = x""yes; then
19090 have_gdk_pixbuf=yes
19091 gdk_pixbuf_halfassed=no
19094 CPPFLAGS="$ac_save_CPPFLAGS"
19095 LDFLAGS="$ac_save_LDFLAGS"
19096 # LIBS="$ac_save_LIBS"
19101 if test "$have_gdk_pixbuf" = yes; then
19102 INCLUDES="$INCLUDES $ac_gdk_pixbuf_config_cflags"
19103 XPM_LIBS="$ac_gdk_pixbuf_config_libs"
19104 cat >>confdefs.h <<\_ACEOF
19105 #define HAVE_GDK_PIXBUF 1
19109 { $as_echo "$as_me:$LINENO: result: checking for gdk_pixbuf usability... no" >&5
19110 $as_echo "checking for gdk_pixbuf usability... no" >&6; }
19113 if test "$have_gdk_pixbuf" = yes; then
19115 ac_save_CPPFLAGS="$CPPFLAGS"
19116 ac_save_LDFLAGS="$LDFLAGS"
19117 # ac_save_LIBS="$LIBS"
19119 if test \! -z "$includedir" ; then
19120 CPPFLAGS="$CPPFLAGS -I$includedir"
19122 # note: $X_CFLAGS includes $x_includes
19123 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19125 if test \! -z "$libdir" ; then
19126 LDFLAGS="$LDFLAGS -L$libdir"
19128 # note: $X_LIBS includes $x_libraries
19129 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
19131 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19132 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
19133 { $as_echo "$as_me:$LINENO: checking for gdk_pixbuf_apply_embedded_orientation in -lc" >&5
19134 $as_echo_n "checking for gdk_pixbuf_apply_embedded_orientation in -lc... " >&6; }
19135 if test "${ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation+set}" = set; then
19136 $as_echo_n "(cached) " >&6
19138 ac_check_lib_save_LIBS=$LIBS
19139 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
19140 cat >conftest.$ac_ext <<_ACEOF
19143 cat confdefs.h >>conftest.$ac_ext
19144 cat >>conftest.$ac_ext <<_ACEOF
19145 /* end confdefs.h. */
19147 /* Override any GCC internal prototype to avoid an error.
19148 Use char because int might match the return type of a GCC
19149 builtin and then its argument prototype would still apply. */
19153 char gdk_pixbuf_apply_embedded_orientation ();
19157 return gdk_pixbuf_apply_embedded_orientation ();
19162 rm -rf conftest.$ac_objext conftest$ac_exeext
19163 if { (ac_try="$ac_link"
19164 case "(($ac_try" in
19165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19166 *) ac_try_echo=$ac_try;;
19168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19169 $as_echo "$ac_try_echo") >&5
19170 (eval "$ac_link") 2>conftest.er1
19172 grep -v '^ *+' conftest.er1 >conftest.err
19173 rm -rf conftest.er1
19174 cat conftest.err >&5
19175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } && {
19177 test -z "$ac_c_werror_flag" ||
19178 test ! -s conftest.err
19179 } && test -s conftest$ac_exeext && {
19180 test "$cross_compiling" = yes ||
19181 $as_test_x conftest$ac_exeext
19183 ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation=yes
19185 $as_echo "$as_me: failed program was:" >&5
19186 sed 's/^/| /' conftest.$ac_ext >&5
19188 ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation=no
19191 rm -rf conftest.dSYM
19192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19193 conftest$ac_exeext conftest.$ac_ext
19194 LIBS=$ac_check_lib_save_LIBS
19196 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation" >&5
19197 $as_echo "$ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation" >&6; }
19198 if test "x$ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation" = x""yes; then
19199 cat >>confdefs.h <<\_ACEOF
19200 #define HAVE_GDK_PIXBUF_APPLY_EMBEDDED_ORIENTATION 1
19205 CPPFLAGS="$ac_save_CPPFLAGS"
19206 LDFLAGS="$ac_save_LDFLAGS"
19207 # LIBS="$ac_save_LIBS"
19213 ###############################################################################
19217 ###############################################################################
19220 with_xpm_req=unspecified
19222 # Check whether --with-xpm was given.
19223 if test "${with_xpm+set}" = set; then
19224 withval=$with_xpm; with_xpm="$withval"; with_xpm_req="$withval"
19231 case "$with_xpm" in
19236 { $as_echo "$as_me:$LINENO: checking for XPM headers" >&5
19237 $as_echo_n "checking for XPM headers... " >&6; }
19238 d=$with_xpm/include
19239 if test -d $d; then
19240 X_CFLAGS="-I$d $X_CFLAGS"
19241 { $as_echo "$as_me:$LINENO: result: $d" >&5
19242 $as_echo "$d" >&6; }
19244 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19245 $as_echo "not found ($d: no such directory)" >&6; }
19248 { $as_echo "$as_me:$LINENO: checking for XPM libs" >&5
19249 $as_echo_n "checking for XPM libs... " >&6; }
19251 if test -d $d; then
19252 X_LIBS="-L$d $X_LIBS"
19253 { $as_echo "$as_me:$LINENO: result: $d" >&5
19254 $as_echo "$d" >&6; }
19256 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19257 $as_echo "not found ($d: no such directory)" >&6; }
19260 # replace the directory string with "yes".
19262 with_xpm=$with_xpm_req
19267 echo "error: argument to --with-xpm must be \"yes\", \"no\", or a directory."
19268 echo " If it is a directory, then \`DIR/include' will be added to"
19269 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19275 if test "$with_xpm" = yes; then
19277 ac_save_CPPFLAGS="$CPPFLAGS"
19278 if test \! -z "$includedir" ; then
19279 CPPFLAGS="$CPPFLAGS -I$includedir"
19281 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19282 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19283 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
19284 $as_echo_n "checking for X11/xpm.h... " >&6; }
19285 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
19286 $as_echo_n "(cached) " >&6
19288 cat >conftest.$ac_ext <<_ACEOF
19291 cat confdefs.h >>conftest.$ac_ext
19292 cat >>conftest.$ac_ext <<_ACEOF
19293 /* end confdefs.h. */
19294 #include <X11/Xlib.h>
19296 #include <X11/xpm.h>
19298 rm -rf conftest.$ac_objext
19299 if { (ac_try="$ac_compile"
19300 case "(($ac_try" in
19301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19302 *) ac_try_echo=$ac_try;;
19304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19305 $as_echo "$ac_try_echo") >&5
19306 (eval "$ac_compile") 2>conftest.er1
19308 grep -v '^ *+' conftest.er1 >conftest.err
19309 rm -rf conftest.er1
19310 cat conftest.err >&5
19311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); } && {
19313 test -z "$ac_c_werror_flag" ||
19314 test ! -s conftest.err
19315 } && test -s conftest.$ac_objext; then
19316 ac_cv_header_X11_xpm_h=yes
19318 $as_echo "$as_me: failed program was:" >&5
19319 sed 's/^/| /' conftest.$ac_ext >&5
19321 ac_cv_header_X11_xpm_h=no
19324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19326 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
19327 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
19328 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then
19330 cat >>confdefs.h <<\_ACEOF
19334 XPM_LIBS="-lXpm $XPM_LIBS"
19338 CPPFLAGS="$ac_save_CPPFLAGS"
19339 elif test "$with_xpm" != no; then
19340 echo "error: must be yes or no: --with-xpm=$with_xpm"
19344 # See comment near $motif_requires_xpm, above.
19345 # Need to do this here, after both Motif and XPM have been checked for.
19347 if test "$have_motif" = yes -a "$have_xpm" = yes ; then
19348 if test "$motif_requires_xpm" = yes ; then
19349 MOTIF_LIBS="$MOTIF_LIBS $XPM_LIBS"
19353 if test "$XPM_LIBS" = "" ; then
19354 XPM_LIBS=$(MINIXPM)
19358 ###############################################################################
19362 ###############################################################################
19365 with_jpeg_req=unspecified
19368 # Check whether --with-jpeg was given.
19369 if test "${with_jpeg+set}" = set; then
19370 withval=$with_jpeg; with_jpeg="$withval"; with_jpeg_req="$withval"
19377 case "$with_jpeg" in
19382 { $as_echo "$as_me:$LINENO: checking for JPEG headers" >&5
19383 $as_echo_n "checking for JPEG headers... " >&6; }
19384 d=$with_jpeg/include
19385 if test -d $d; then
19386 X_CFLAGS="-I$d $X_CFLAGS"
19387 { $as_echo "$as_me:$LINENO: result: $d" >&5
19388 $as_echo "$d" >&6; }
19390 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19391 $as_echo "not found ($d: no such directory)" >&6; }
19394 { $as_echo "$as_me:$LINENO: checking for JPEG libs" >&5
19395 $as_echo_n "checking for JPEG libs... " >&6; }
19397 if test -d $d; then
19398 X_LIBS="-L$d $X_LIBS"
19399 { $as_echo "$as_me:$LINENO: result: $d" >&5
19400 $as_echo "$d" >&6; }
19402 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19403 $as_echo "not found ($d: no such directory)" >&6; }
19406 # replace the directory string with "yes".
19407 with_jpeg_req="yes"
19408 with_jpeg=$with_jpeg_req
19413 echo "error: argument to --with-jpeg must be \"yes\", \"no\", or a directory."
19414 echo " If it is a directory, then \`DIR/include' will be added to"
19415 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19421 if test "$with_jpeg" != yes -a "$with_jpeg" != no ; then
19422 echo "error: must be yes or no: --with-jpeg=$with_jpeg"
19426 if test "$with_jpeg" = yes; then
19430 ac_save_CPPFLAGS="$CPPFLAGS"
19431 if test \! -z "$includedir" ; then
19432 CPPFLAGS="$CPPFLAGS -I$includedir"
19434 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19435 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19436 if test "${ac_cv_header_jpeglib_h+set}" = set; then
19437 { $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
19438 $as_echo_n "checking for jpeglib.h... " >&6; }
19439 if test "${ac_cv_header_jpeglib_h+set}" = set; then
19440 $as_echo_n "(cached) " >&6
19442 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
19443 $as_echo "$ac_cv_header_jpeglib_h" >&6; }
19445 # Is the header compilable?
19446 { $as_echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
19447 $as_echo_n "checking jpeglib.h usability... " >&6; }
19448 cat >conftest.$ac_ext <<_ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h. */
19454 $ac_includes_default
19455 #include <jpeglib.h>
19457 rm -rf conftest.$ac_objext
19458 if { (ac_try="$ac_compile"
19459 case "(($ac_try" in
19460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461 *) ac_try_echo=$ac_try;;
19463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19464 $as_echo "$ac_try_echo") >&5
19465 (eval "$ac_compile") 2>conftest.er1
19467 grep -v '^ *+' conftest.er1 >conftest.err
19468 rm -rf conftest.er1
19469 cat conftest.err >&5
19470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); } && {
19472 test -z "$ac_c_werror_flag" ||
19473 test ! -s conftest.err
19474 } && test -s conftest.$ac_objext; then
19475 ac_header_compiler=yes
19477 $as_echo "$as_me: failed program was:" >&5
19478 sed 's/^/| /' conftest.$ac_ext >&5
19480 ac_header_compiler=no
19483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19484 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19485 $as_echo "$ac_header_compiler" >&6; }
19487 # Is the header present?
19488 { $as_echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
19489 $as_echo_n "checking jpeglib.h presence... " >&6; }
19490 cat >conftest.$ac_ext <<_ACEOF
19493 cat confdefs.h >>conftest.$ac_ext
19494 cat >>conftest.$ac_ext <<_ACEOF
19495 /* end confdefs.h. */
19496 #include <jpeglib.h>
19498 if { (ac_try="$ac_cpp conftest.$ac_ext"
19499 case "(($ac_try" in
19500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19501 *) ac_try_echo=$ac_try;;
19503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19504 $as_echo "$ac_try_echo") >&5
19505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19507 grep -v '^ *+' conftest.er1 >conftest.err
19508 rm -rf conftest.er1
19509 cat conftest.err >&5
19510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } >/dev/null && {
19512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19513 test ! -s conftest.err
19515 ac_header_preproc=yes
19517 $as_echo "$as_me: failed program was:" >&5
19518 sed 's/^/| /' conftest.$ac_ext >&5
19520 ac_header_preproc=no
19523 rm -rf conftest.err conftest.$ac_ext
19524 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19525 $as_echo "$ac_header_preproc" >&6; }
19527 # So? What about this header?
19528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19530 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19531 $as_echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19532 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
19533 $as_echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
19534 ac_header_preproc=yes
19537 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
19538 $as_echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
19539 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
19540 $as_echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
19541 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
19542 $as_echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
19543 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
19544 $as_echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
19545 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
19546 $as_echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
19547 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
19548 $as_echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
19552 { $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
19553 $as_echo_n "checking for jpeglib.h... " >&6; }
19554 if test "${ac_cv_header_jpeglib_h+set}" = set; then
19555 $as_echo_n "(cached) " >&6
19557 ac_cv_header_jpeglib_h=$ac_header_preproc
19559 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
19560 $as_echo "$ac_cv_header_jpeglib_h" >&6; }
19563 if test "x$ac_cv_header_jpeglib_h" = x""yes; then
19568 CPPFLAGS="$ac_save_CPPFLAGS"
19570 if test "$have_jpeg" = yes; then
19571 # we have the header, now check for the library
19575 ac_save_CPPFLAGS="$CPPFLAGS"
19576 ac_save_LDFLAGS="$LDFLAGS"
19577 # ac_save_LIBS="$LIBS"
19579 if test \! -z "$includedir" ; then
19580 CPPFLAGS="$CPPFLAGS -I$includedir"
19582 # note: $X_CFLAGS includes $x_includes
19583 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19585 if test \! -z "$libdir" ; then
19586 LDFLAGS="$LDFLAGS -L$libdir"
19588 # note: $X_LIBS includes $x_libraries
19589 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
19591 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19592 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
19593 { $as_echo "$as_me:$LINENO: checking for jpeg_start_compress in -ljpeg" >&5
19594 $as_echo_n "checking for jpeg_start_compress in -ljpeg... " >&6; }
19595 if test "${ac_cv_lib_jpeg_jpeg_start_compress+set}" = set; then
19596 $as_echo_n "(cached) " >&6
19598 ac_check_lib_save_LIBS=$LIBS
19599 LIBS="-ljpeg $LIBS"
19600 cat >conftest.$ac_ext <<_ACEOF
19603 cat confdefs.h >>conftest.$ac_ext
19604 cat >>conftest.$ac_ext <<_ACEOF
19605 /* end confdefs.h. */
19607 /* Override any GCC internal prototype to avoid an error.
19608 Use char because int might match the return type of a GCC
19609 builtin and then its argument prototype would still apply. */
19613 char jpeg_start_compress ();
19617 return jpeg_start_compress ();
19622 rm -rf conftest.$ac_objext conftest$ac_exeext
19623 if { (ac_try="$ac_link"
19624 case "(($ac_try" in
19625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626 *) ac_try_echo=$ac_try;;
19628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19629 $as_echo "$ac_try_echo") >&5
19630 (eval "$ac_link") 2>conftest.er1
19632 grep -v '^ *+' conftest.er1 >conftest.err
19633 rm -rf conftest.er1
19634 cat conftest.err >&5
19635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } && {
19637 test -z "$ac_c_werror_flag" ||
19638 test ! -s conftest.err
19639 } && test -s conftest$ac_exeext && {
19640 test "$cross_compiling" = yes ||
19641 $as_test_x conftest$ac_exeext
19643 ac_cv_lib_jpeg_jpeg_start_compress=yes
19645 $as_echo "$as_me: failed program was:" >&5
19646 sed 's/^/| /' conftest.$ac_ext >&5
19648 ac_cv_lib_jpeg_jpeg_start_compress=no
19651 rm -rf conftest.dSYM
19652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19653 conftest$ac_exeext conftest.$ac_ext
19654 LIBS=$ac_check_lib_save_LIBS
19656 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5
19657 $as_echo "$ac_cv_lib_jpeg_jpeg_start_compress" >&6; }
19658 if test "x$ac_cv_lib_jpeg_jpeg_start_compress" = x""yes; then
19662 cat >>confdefs.h <<\_ACEOF
19663 #define HAVE_JPEGLIB 1
19668 CPPFLAGS="$ac_save_CPPFLAGS"
19669 LDFLAGS="$ac_save_LDFLAGS"
19670 # LIBS="$ac_save_LIBS"
19676 ###############################################################################
19678 # Check for pty support: this allows 'phosphor' and 'apple2'
19679 # to run curses-based programs, or be used as terminal windows.
19681 ###############################################################################
19686 for ac_header in pty.h util.h
19688 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19690 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19691 $as_echo_n "checking for $ac_header... " >&6; }
19692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19693 $as_echo_n "(cached) " >&6
19695 ac_res=`eval 'as_val=${'$as_ac_Header'}
19696 $as_echo "$as_val"'`
19697 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19698 $as_echo "$ac_res" >&6; }
19700 # Is the header compilable?
19701 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19702 $as_echo_n "checking $ac_header usability... " >&6; }
19703 cat >conftest.$ac_ext <<_ACEOF
19706 cat confdefs.h >>conftest.$ac_ext
19707 cat >>conftest.$ac_ext <<_ACEOF
19708 /* end confdefs.h. */
19709 $ac_includes_default
19710 #include <$ac_header>
19712 rm -rf conftest.$ac_objext
19713 if { (ac_try="$ac_compile"
19714 case "(($ac_try" in
19715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716 *) ac_try_echo=$ac_try;;
19718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19719 $as_echo "$ac_try_echo") >&5
19720 (eval "$ac_compile") 2>conftest.er1
19722 grep -v '^ *+' conftest.er1 >conftest.err
19723 rm -rf conftest.er1
19724 cat conftest.err >&5
19725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); } && {
19727 test -z "$ac_c_werror_flag" ||
19728 test ! -s conftest.err
19729 } && test -s conftest.$ac_objext; then
19730 ac_header_compiler=yes
19732 $as_echo "$as_me: failed program was:" >&5
19733 sed 's/^/| /' conftest.$ac_ext >&5
19735 ac_header_compiler=no
19738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19739 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19740 $as_echo "$ac_header_compiler" >&6; }
19742 # Is the header present?
19743 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19744 $as_echo_n "checking $ac_header presence... " >&6; }
19745 cat >conftest.$ac_ext <<_ACEOF
19748 cat confdefs.h >>conftest.$ac_ext
19749 cat >>conftest.$ac_ext <<_ACEOF
19750 /* end confdefs.h. */
19751 #include <$ac_header>
19753 if { (ac_try="$ac_cpp conftest.$ac_ext"
19754 case "(($ac_try" in
19755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19756 *) ac_try_echo=$ac_try;;
19758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19759 $as_echo "$ac_try_echo") >&5
19760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19762 grep -v '^ *+' conftest.er1 >conftest.err
19763 rm -rf conftest.er1
19764 cat conftest.err >&5
19765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); } >/dev/null && {
19767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19768 test ! -s conftest.err
19770 ac_header_preproc=yes
19772 $as_echo "$as_me: failed program was:" >&5
19773 sed 's/^/| /' conftest.$ac_ext >&5
19775 ac_header_preproc=no
19778 rm -rf conftest.err conftest.$ac_ext
19779 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19780 $as_echo "$ac_header_preproc" >&6; }
19782 # So? What about this header?
19783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19786 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19788 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19789 ac_header_preproc=yes
19792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19793 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19795 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19797 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19799 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19801 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19803 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19807 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19808 $as_echo_n "checking for $ac_header... " >&6; }
19809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19810 $as_echo_n "(cached) " >&6
19812 eval "$as_ac_Header=\$ac_header_preproc"
19814 ac_res=`eval 'as_val=${'$as_ac_Header'}
19815 $as_echo "$as_val"'`
19816 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19817 $as_echo "$ac_res" >&6; }
19820 as_val=`eval 'as_val=${'$as_ac_Header'}
19821 $as_echo "$as_val"'`
19822 if test "x$as_val" = x""yes; then
19823 cat >>confdefs.h <<_ACEOF
19824 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19832 ac_save_CPPFLAGS="$CPPFLAGS"
19833 ac_save_LDFLAGS="$LDFLAGS"
19834 # ac_save_LIBS="$LIBS"
19836 if test \! -z "$includedir" ; then
19837 CPPFLAGS="$CPPFLAGS -I$includedir"
19839 # note: $X_CFLAGS includes $x_includes
19840 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19842 if test \! -z "$libdir" ; then
19843 LDFLAGS="$LDFLAGS -L$libdir"
19845 # note: $X_LIBS includes $x_libraries
19846 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
19848 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19849 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
19850 { $as_echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
19851 $as_echo_n "checking for forkpty in -lutil... " >&6; }
19852 if test "${ac_cv_lib_util_forkpty+set}" = set; then
19853 $as_echo_n "(cached) " >&6
19855 ac_check_lib_save_LIBS=$LIBS
19856 LIBS="-lutil $LIBS"
19857 cat >conftest.$ac_ext <<_ACEOF
19860 cat confdefs.h >>conftest.$ac_ext
19861 cat >>conftest.$ac_ext <<_ACEOF
19862 /* end confdefs.h. */
19864 /* Override any GCC internal prototype to avoid an error.
19865 Use char because int might match the return type of a GCC
19866 builtin and then its argument prototype would still apply. */
19879 rm -rf conftest.$ac_objext conftest$ac_exeext
19880 if { (ac_try="$ac_link"
19881 case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19886 $as_echo "$ac_try_echo") >&5
19887 (eval "$ac_link") 2>conftest.er1
19889 grep -v '^ *+' conftest.er1 >conftest.err
19890 rm -rf conftest.er1
19891 cat conftest.err >&5
19892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } && {
19894 test -z "$ac_c_werror_flag" ||
19895 test ! -s conftest.err
19896 } && test -s conftest$ac_exeext && {
19897 test "$cross_compiling" = yes ||
19898 $as_test_x conftest$ac_exeext
19900 ac_cv_lib_util_forkpty=yes
19902 $as_echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19905 ac_cv_lib_util_forkpty=no
19908 rm -rf conftest.dSYM
19909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19910 conftest$ac_exeext conftest.$ac_ext
19911 LIBS=$ac_check_lib_save_LIBS
19913 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
19914 $as_echo "$ac_cv_lib_util_forkpty" >&6; }
19915 if test "x$ac_cv_lib_util_forkpty" = x""yes; then
19917 ac_have_forkpty=yes
19918 cat >>confdefs.h <<\_ACEOF
19919 #define HAVE_FORKPTY 1
19924 CPPFLAGS="$ac_save_CPPFLAGS"
19925 LDFLAGS="$ac_save_LDFLAGS"
19926 # LIBS="$ac_save_LIBS"
19929 if test "$ac_have_forkpty" != yes ; then
19930 # we don't need (or have) -lutil on MacOS 10.4.2...
19932 ac_save_CPPFLAGS="$CPPFLAGS"
19933 ac_save_LDFLAGS="$LDFLAGS"
19934 # ac_save_LIBS="$LIBS"
19936 if test \! -z "$includedir" ; then
19937 CPPFLAGS="$CPPFLAGS -I$includedir"
19939 # note: $X_CFLAGS includes $x_includes
19940 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19942 if test \! -z "$libdir" ; then
19943 LDFLAGS="$LDFLAGS -L$libdir"
19945 # note: $X_LIBS includes $x_libraries
19946 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
19948 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19949 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
19950 { $as_echo "$as_me:$LINENO: checking for forkpty in -lc" >&5
19951 $as_echo_n "checking for forkpty in -lc... " >&6; }
19952 if test "${ac_cv_lib_c_forkpty+set}" = set; then
19953 $as_echo_n "(cached) " >&6
19955 ac_check_lib_save_LIBS=$LIBS
19957 cat >conftest.$ac_ext <<_ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h. */
19964 /* Override any GCC internal prototype to avoid an error.
19965 Use char because int might match the return type of a GCC
19966 builtin and then its argument prototype would still apply. */
19979 rm -rf conftest.$ac_objext conftest$ac_exeext
19980 if { (ac_try="$ac_link"
19981 case "(($ac_try" in
19982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983 *) ac_try_echo=$ac_try;;
19985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19986 $as_echo "$ac_try_echo") >&5
19987 (eval "$ac_link") 2>conftest.er1
19989 grep -v '^ *+' conftest.er1 >conftest.err
19990 rm -rf conftest.er1
19991 cat conftest.err >&5
19992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } && {
19994 test -z "$ac_c_werror_flag" ||
19995 test ! -s conftest.err
19996 } && test -s conftest$ac_exeext && {
19997 test "$cross_compiling" = yes ||
19998 $as_test_x conftest$ac_exeext
20000 ac_cv_lib_c_forkpty=yes
20002 $as_echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20005 ac_cv_lib_c_forkpty=no
20008 rm -rf conftest.dSYM
20009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20010 conftest$ac_exeext conftest.$ac_ext
20011 LIBS=$ac_check_lib_save_LIBS
20013 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_forkpty" >&5
20014 $as_echo "$ac_cv_lib_c_forkpty" >&6; }
20015 if test "x$ac_cv_lib_c_forkpty" = x""yes; then
20017 cat >>confdefs.h <<\_ACEOF
20018 #define HAVE_FORKPTY 1
20023 CPPFLAGS="$ac_save_CPPFLAGS"
20024 LDFLAGS="$ac_save_LDFLAGS"
20025 # LIBS="$ac_save_LIBS"
20029 ###############################################################################
20031 # Check for the XSHM server extension.
20033 ###############################################################################
20036 with_xshm_req=unspecified
20038 # Check whether --with-xshm-ext was given.
20039 if test "${with_xshm_ext+set}" = set; then
20040 withval=$with_xshm_ext; with_xshm="$withval"; with_xshm_req="$withval"
20047 case "$with_xshm" in
20052 { $as_echo "$as_me:$LINENO: checking for XSHM headers" >&5
20053 $as_echo_n "checking for XSHM headers... " >&6; }
20054 d=$with_xshm/include
20055 if test -d $d; then
20056 X_CFLAGS="-I$d $X_CFLAGS"
20057 { $as_echo "$as_me:$LINENO: result: $d" >&5
20058 $as_echo "$d" >&6; }
20060 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20061 $as_echo "not found ($d: no such directory)" >&6; }
20064 { $as_echo "$as_me:$LINENO: checking for XSHM libs" >&5
20065 $as_echo_n "checking for XSHM libs... " >&6; }
20067 if test -d $d; then
20068 X_LIBS="-L$d $X_LIBS"
20069 { $as_echo "$as_me:$LINENO: result: $d" >&5
20070 $as_echo "$d" >&6; }
20072 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20073 $as_echo "not found ($d: no such directory)" >&6; }
20076 # replace the directory string with "yes".
20077 with_xshm_req="yes"
20078 with_xshm=$with_xshm_req
20083 echo "error: argument to --with-xshm-ext must be \"yes\", \"no\", or a directory."
20084 echo " If it is a directory, then \`DIR/include' will be added to"
20085 echo " the -I list, and \`DIR/lib' will be added to the -L list."
20091 if test "$with_xshm" = yes; then
20093 # first check for Xshm.h.
20095 ac_save_CPPFLAGS="$CPPFLAGS"
20096 if test \! -z "$includedir" ; then
20097 CPPFLAGS="$CPPFLAGS -I$includedir"
20099 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
20100 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
20101 { $as_echo "$as_me:$LINENO: checking for X11/extensions/XShm.h" >&5
20102 $as_echo_n "checking for X11/extensions/XShm.h... " >&6; }
20103 if test "${ac_cv_header_X11_extensions_XShm_h+set}" = set; then
20104 $as_echo_n "(cached) " >&6
20106 cat >conftest.$ac_ext <<_ACEOF
20109 cat confdefs.h >>conftest.$ac_ext
20110 cat >>conftest.$ac_ext <<_ACEOF
20111 /* end confdefs.h. */
20112 #include <X11/Xlib.h>
20114 #include <X11/extensions/XShm.h>
20116 rm -rf conftest.$ac_objext
20117 if { (ac_try="$ac_compile"
20118 case "(($ac_try" in
20119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20120 *) ac_try_echo=$ac_try;;
20122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20123 $as_echo "$ac_try_echo") >&5
20124 (eval "$ac_compile") 2>conftest.er1
20126 grep -v '^ *+' conftest.er1 >conftest.err
20127 rm -rf conftest.er1
20128 cat conftest.err >&5
20129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); } && {
20131 test -z "$ac_c_werror_flag" ||
20132 test ! -s conftest.err
20133 } && test -s conftest.$ac_objext; then
20134 ac_cv_header_X11_extensions_XShm_h=yes
20136 $as_echo "$as_me: failed program was:" >&5
20137 sed 's/^/| /' conftest.$ac_ext >&5
20139 ac_cv_header_X11_extensions_XShm_h=no
20142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20144 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XShm_h" >&5
20145 $as_echo "$ac_cv_header_X11_extensions_XShm_h" >&6; }
20146 if test "x$ac_cv_header_X11_extensions_XShm_h" = x""yes; then
20151 CPPFLAGS="$ac_save_CPPFLAGS"
20153 # if that succeeded, then check for sys/ipc.h.
20154 if test "$have_xshm" = yes; then
20157 ac_save_CPPFLAGS="$CPPFLAGS"
20158 if test \! -z "$includedir" ; then
20159 CPPFLAGS="$CPPFLAGS -I$includedir"
20161 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
20162 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
20163 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
20164 { $as_echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
20165 $as_echo_n "checking for sys/ipc.h... " >&6; }
20166 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
20167 $as_echo_n "(cached) " >&6
20169 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
20170 $as_echo "$ac_cv_header_sys_ipc_h" >&6; }
20172 # Is the header compilable?
20173 { $as_echo "$as_me:$LINENO: checking sys/ipc.h usability" >&5
20174 $as_echo_n "checking sys/ipc.h usability... " >&6; }
20175 cat >conftest.$ac_ext <<_ACEOF
20178 cat confdefs.h >>conftest.$ac_ext
20179 cat >>conftest.$ac_ext <<_ACEOF
20180 /* end confdefs.h. */
20181 $ac_includes_default
20182 #include <sys/ipc.h>
20184 rm -rf conftest.$ac_objext
20185 if { (ac_try="$ac_compile"
20186 case "(($ac_try" in
20187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20188 *) ac_try_echo=$ac_try;;
20190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20191 $as_echo "$ac_try_echo") >&5
20192 (eval "$ac_compile") 2>conftest.er1
20194 grep -v '^ *+' conftest.er1 >conftest.err
20195 rm -rf conftest.er1
20196 cat conftest.err >&5
20197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } && {
20199 test -z "$ac_c_werror_flag" ||
20200 test ! -s conftest.err
20201 } && test -s conftest.$ac_objext; then
20202 ac_header_compiler=yes
20204 $as_echo "$as_me: failed program was:" >&5
20205 sed 's/^/| /' conftest.$ac_ext >&5
20207 ac_header_compiler=no
20210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20211 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20212 $as_echo "$ac_header_compiler" >&6; }
20214 # Is the header present?
20215 { $as_echo "$as_me:$LINENO: checking sys/ipc.h presence" >&5
20216 $as_echo_n "checking sys/ipc.h presence... " >&6; }
20217 cat >conftest.$ac_ext <<_ACEOF
20220 cat confdefs.h >>conftest.$ac_ext
20221 cat >>conftest.$ac_ext <<_ACEOF
20222 /* end confdefs.h. */
20223 #include <sys/ipc.h>
20225 if { (ac_try="$ac_cpp conftest.$ac_ext"
20226 case "(($ac_try" in
20227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20228 *) ac_try_echo=$ac_try;;
20230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20231 $as_echo "$ac_try_echo") >&5
20232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20234 grep -v '^ *+' conftest.er1 >conftest.err
20235 rm -rf conftest.er1
20236 cat conftest.err >&5
20237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); } >/dev/null && {
20239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20240 test ! -s conftest.err
20242 ac_header_preproc=yes
20244 $as_echo "$as_me: failed program was:" >&5
20245 sed 's/^/| /' conftest.$ac_ext >&5
20247 ac_header_preproc=no
20250 rm -rf conftest.err conftest.$ac_ext
20251 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20252 $as_echo "$ac_header_preproc" >&6; }
20254 # So? What about this header?
20255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20257 { $as_echo "$as_me:$LINENO: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&5
20258 $as_echo "$as_me: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20259 { $as_echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the compiler's result" >&5
20260 $as_echo "$as_me: WARNING: sys/ipc.h: proceeding with the compiler's result" >&2;}
20261 ac_header_preproc=yes
20264 { $as_echo "$as_me:$LINENO: WARNING: sys/ipc.h: present but cannot be compiled" >&5
20265 $as_echo "$as_me: WARNING: sys/ipc.h: present but cannot be compiled" >&2;}
20266 { $as_echo "$as_me:$LINENO: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&5
20267 $as_echo "$as_me: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&2;}
20268 { $as_echo "$as_me:$LINENO: WARNING: sys/ipc.h: see the Autoconf documentation" >&5
20269 $as_echo "$as_me: WARNING: sys/ipc.h: see the Autoconf documentation" >&2;}
20270 { $as_echo "$as_me:$LINENO: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&5
20271 $as_echo "$as_me: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&2;}
20272 { $as_echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
20273 $as_echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;}
20274 { $as_echo "$as_me:$LINENO: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&5
20275 $as_echo "$as_me: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&2;}
20279 { $as_echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
20280 $as_echo_n "checking for sys/ipc.h... " >&6; }
20281 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
20282 $as_echo_n "(cached) " >&6
20284 ac_cv_header_sys_ipc_h=$ac_header_preproc
20286 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
20287 $as_echo "$ac_cv_header_sys_ipc_h" >&6; }
20290 if test "x$ac_cv_header_sys_ipc_h" = x""yes; then
20295 CPPFLAGS="$ac_save_CPPFLAGS"
20298 # if that succeeded, then check for sys/shm.h.
20299 if test "$have_xshm" = yes; then
20302 ac_save_CPPFLAGS="$CPPFLAGS"
20303 if test \! -z "$includedir" ; then
20304 CPPFLAGS="$CPPFLAGS -I$includedir"
20306 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
20307 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
20308 if test "${ac_cv_header_sys_shm_h+set}" = set; then
20309 { $as_echo "$as_me:$LINENO: checking for sys/shm.h" >&5
20310 $as_echo_n "checking for sys/shm.h... " >&6; }
20311 if test "${ac_cv_header_sys_shm_h+set}" = set; then
20312 $as_echo_n "(cached) " >&6
20314 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
20315 $as_echo "$ac_cv_header_sys_shm_h" >&6; }
20317 # Is the header compilable?
20318 { $as_echo "$as_me:$LINENO: checking sys/shm.h usability" >&5
20319 $as_echo_n "checking sys/shm.h usability... " >&6; }
20320 cat >conftest.$ac_ext <<_ACEOF
20323 cat confdefs.h >>conftest.$ac_ext
20324 cat >>conftest.$ac_ext <<_ACEOF
20325 /* end confdefs.h. */
20326 $ac_includes_default
20327 #include <sys/shm.h>
20329 rm -rf conftest.$ac_objext
20330 if { (ac_try="$ac_compile"
20331 case "(($ac_try" in
20332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333 *) ac_try_echo=$ac_try;;
20335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20336 $as_echo "$ac_try_echo") >&5
20337 (eval "$ac_compile") 2>conftest.er1
20339 grep -v '^ *+' conftest.er1 >conftest.err
20340 rm -rf conftest.er1
20341 cat conftest.err >&5
20342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); } && {
20344 test -z "$ac_c_werror_flag" ||
20345 test ! -s conftest.err
20346 } && test -s conftest.$ac_objext; then
20347 ac_header_compiler=yes
20349 $as_echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20352 ac_header_compiler=no
20355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20356 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20357 $as_echo "$ac_header_compiler" >&6; }
20359 # Is the header present?
20360 { $as_echo "$as_me:$LINENO: checking sys/shm.h presence" >&5
20361 $as_echo_n "checking sys/shm.h presence... " >&6; }
20362 cat >conftest.$ac_ext <<_ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h. */
20368 #include <sys/shm.h>
20370 if { (ac_try="$ac_cpp conftest.$ac_ext"
20371 case "(($ac_try" in
20372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20373 *) ac_try_echo=$ac_try;;
20375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20376 $as_echo "$ac_try_echo") >&5
20377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20379 grep -v '^ *+' conftest.er1 >conftest.err
20380 rm -rf conftest.er1
20381 cat conftest.err >&5
20382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); } >/dev/null && {
20384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20385 test ! -s conftest.err
20387 ac_header_preproc=yes
20389 $as_echo "$as_me: failed program was:" >&5
20390 sed 's/^/| /' conftest.$ac_ext >&5
20392 ac_header_preproc=no
20395 rm -rf conftest.err conftest.$ac_ext
20396 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20397 $as_echo "$ac_header_preproc" >&6; }
20399 # So? What about this header?
20400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20402 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&5
20403 $as_echo "$as_me: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20404 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the compiler's result" >&5
20405 $as_echo "$as_me: WARNING: sys/shm.h: proceeding with the compiler's result" >&2;}
20406 ac_header_preproc=yes
20409 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: present but cannot be compiled" >&5
20410 $as_echo "$as_me: WARNING: sys/shm.h: present but cannot be compiled" >&2;}
20411 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: check for missing prerequisite headers?" >&5
20412 $as_echo "$as_me: WARNING: sys/shm.h: check for missing prerequisite headers?" >&2;}
20413 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: see the Autoconf documentation" >&5
20414 $as_echo "$as_me: WARNING: sys/shm.h: see the Autoconf documentation" >&2;}
20415 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&5
20416 $as_echo "$as_me: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&2;}
20417 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
20418 $as_echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;}
20419 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&5
20420 $as_echo "$as_me: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&2;}
20424 { $as_echo "$as_me:$LINENO: checking for sys/shm.h" >&5
20425 $as_echo_n "checking for sys/shm.h... " >&6; }
20426 if test "${ac_cv_header_sys_shm_h+set}" = set; then
20427 $as_echo_n "(cached) " >&6
20429 ac_cv_header_sys_shm_h=$ac_header_preproc
20431 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
20432 $as_echo "$ac_cv_header_sys_shm_h" >&6; }
20435 if test "x$ac_cv_header_sys_shm_h" = x""yes; then
20440 CPPFLAGS="$ac_save_CPPFLAGS"
20443 # AIX is pathological, as usual: apparently it's normal for the Xshm headers
20444 # to exist, but the library code to not exist. And even better, the library
20445 # code is in its own library: libXextSam.a. So, if we're on AIX, and that
20446 # lib doesn't exist, give up. (This lib gets added to X_EXTRA_LIBS, and
20447 # that's not quite right, but close enough.)
20451 if `uname -v` -eq 3 ; then
20454 ac_save_CPPFLAGS="$CPPFLAGS"
20455 ac_save_LDFLAGS="$LDFLAGS"
20456 # ac_save_LIBS="$LIBS"
20458 if test \! -z "$includedir" ; then
20459 CPPFLAGS="$CPPFLAGS -I$includedir"
20461 # note: $X_CFLAGS includes $x_includes
20462 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
20464 if test \! -z "$libdir" ; then
20465 LDFLAGS="$LDFLAGS -L$libdir"
20467 # note: $X_LIBS includes $x_libraries
20468 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
20470 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
20471 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
20472 { $as_echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXextSam" >&5
20473 $as_echo_n "checking for XShmQueryExtension in -lXextSam... " >&6; }
20474 if test "${ac_cv_lib_XextSam_XShmQueryExtension+set}" = set; then
20475 $as_echo_n "(cached) " >&6
20477 ac_check_lib_save_LIBS=$LIBS
20478 LIBS="-lXextSam -lX11 -lXext -lm $LIBS"
20479 cat >conftest.$ac_ext <<_ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h. */
20486 /* Override any GCC internal prototype to avoid an error.
20487 Use char because int might match the return type of a GCC
20488 builtin and then its argument prototype would still apply. */
20492 char XShmQueryExtension ();
20496 return XShmQueryExtension ();
20501 rm -rf conftest.$ac_objext conftest$ac_exeext
20502 if { (ac_try="$ac_link"
20503 case "(($ac_try" in
20504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20505 *) ac_try_echo=$ac_try;;
20507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20508 $as_echo "$ac_try_echo") >&5
20509 (eval "$ac_link") 2>conftest.er1
20511 grep -v '^ *+' conftest.er1 >conftest.err
20512 rm -rf conftest.er1
20513 cat conftest.err >&5
20514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); } && {
20516 test -z "$ac_c_werror_flag" ||
20517 test ! -s conftest.err
20518 } && test -s conftest$ac_exeext && {
20519 test "$cross_compiling" = yes ||
20520 $as_test_x conftest$ac_exeext
20522 ac_cv_lib_XextSam_XShmQueryExtension=yes
20524 $as_echo "$as_me: failed program was:" >&5
20525 sed 's/^/| /' conftest.$ac_ext >&5
20527 ac_cv_lib_XextSam_XShmQueryExtension=no
20530 rm -rf conftest.dSYM
20531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20532 conftest$ac_exeext conftest.$ac_ext
20533 LIBS=$ac_check_lib_save_LIBS
20535 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_XextSam_XShmQueryExtension" >&5
20536 $as_echo "$ac_cv_lib_XextSam_XShmQueryExtension" >&6; }
20537 if test "x$ac_cv_lib_XextSam_XShmQueryExtension" = x""yes; then
20538 have_xshm=yes; X_EXTRA_LIBS="$X_EXTRA_LIBS -lXextSam"
20543 CPPFLAGS="$ac_save_CPPFLAGS"
20544 LDFLAGS="$ac_save_LDFLAGS"
20545 # LIBS="$ac_save_LIBS"
20551 # if that succeeded, then we've really got it.
20552 if test "$have_xshm" = yes; then
20553 cat >>confdefs.h <<\_ACEOF
20554 #define HAVE_XSHM_EXTENSION 1
20559 elif test "$with_xshm" != no; then
20560 echo "error: must be yes or no: --with-xshm-ext=$with_xshm"
20565 ###############################################################################
20567 # Check for the DOUBLE-BUFFER server extension.
20569 ###############################################################################
20572 with_xdbe_req=unspecified
20574 # Check whether --with-xdbe-ext was given.
20575 if test "${with_xdbe_ext+set}" = set; then
20576 withval=$with_xdbe_ext; with_xdbe="$withval"; with_xdbe_req="$withval"
20583 case "$with_xdbe" in
20588 { $as_echo "$as_me:$LINENO: checking for DOUBLE-BUFFER headers" >&5
20589 $as_echo_n "checking for DOUBLE-BUFFER headers... " >&6; }
20590 d=$with_xdbe/include
20591 if test -d $d; then
20592 X_CFLAGS="-I$d $X_CFLAGS"
20593 { $as_echo "$as_me:$LINENO: result: $d" >&5
20594 $as_echo "$d" >&6; }
20596 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20597 $as_echo "not found ($d: no such directory)" >&6; }
20600 { $as_echo "$as_me:$LINENO: checking for DOUBLE-BUFFER libs" >&5
20601 $as_echo_n "checking for DOUBLE-BUFFER libs... " >&6; }
20603 if test -d $d; then
20604 X_LIBS="-L$d $X_LIBS"
20605 { $as_echo "$as_me:$LINENO: result: $d" >&5
20606 $as_echo "$d" >&6; }
20608 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20609 $as_echo "not found ($d: no such directory)" >&6; }
20612 # replace the directory string with "yes".
20613 with_xdbe_req="yes"
20614 with_xdbe=$with_xdbe_req
20619 echo "error: argument to --with-xdbe-ext must be \"yes\", \"no\", or a directory."
20620 echo " If it is a directory, then \`DIR/include' will be added to"
20621 echo " the -I list, and \`DIR/lib' will be added to the -L list."
20627 if test "$with_xdbe" = yes; then
20630 ac_save_CPPFLAGS="$CPPFLAGS"
20631 if test \! -z "$includedir" ; then
20632 CPPFLAGS="$CPPFLAGS -I$includedir"
20634 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
20635 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
20636 { $as_echo "$as_me:$LINENO: checking for X11/extensions/Xdbe.h" >&5
20637 $as_echo_n "checking for X11/extensions/Xdbe.h... " >&6; }
20638 if test "${ac_cv_header_X11_extensions_Xdbe_h+set}" = set; then
20639 $as_echo_n "(cached) " >&6
20641 cat >conftest.$ac_ext <<_ACEOF
20644 cat confdefs.h >>conftest.$ac_ext
20645 cat >>conftest.$ac_ext <<_ACEOF
20646 /* end confdefs.h. */
20647 #include <X11/Xlib.h>
20649 #include <X11/extensions/Xdbe.h>
20651 rm -rf conftest.$ac_objext
20652 if { (ac_try="$ac_compile"
20653 case "(($ac_try" in
20654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20655 *) ac_try_echo=$ac_try;;
20657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20658 $as_echo "$ac_try_echo") >&5
20659 (eval "$ac_compile") 2>conftest.er1
20661 grep -v '^ *+' conftest.er1 >conftest.err
20662 rm -rf conftest.er1
20663 cat conftest.err >&5
20664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); } && {
20666 test -z "$ac_c_werror_flag" ||
20667 test ! -s conftest.err
20668 } && test -s conftest.$ac_objext; then
20669 ac_cv_header_X11_extensions_Xdbe_h=yes
20671 $as_echo "$as_me: failed program was:" >&5
20672 sed 's/^/| /' conftest.$ac_ext >&5
20674 ac_cv_header_X11_extensions_Xdbe_h=no
20677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20679 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xdbe_h" >&5
20680 $as_echo "$ac_cv_header_X11_extensions_Xdbe_h" >&6; }
20681 if test "x$ac_cv_header_X11_extensions_Xdbe_h" = x""yes; then
20686 CPPFLAGS="$ac_save_CPPFLAGS"
20687 if test "$have_xdbe" = yes; then
20688 cat >>confdefs.h <<\_ACEOF
20689 #define HAVE_DOUBLE_BUFFER_EXTENSION 1
20694 elif test "$with_xdbe" != no; then
20695 echo "error: must be yes or no: --with-xdbe-ext=$with_xshm"
20700 ###############################################################################
20702 # Check for the SGI XReadDisplay server extension.
20704 # Note: this has to be down here, rather than up with the other server
20705 # extension tests, so that the output of `configure --help' is in the
20706 # right order. Arrgh!
20708 ###############################################################################
20710 have_readdisplay=no
20711 with_readdisplay_req=unspecified
20713 # Check whether --with-readdisplay was given.
20714 if test "${with_readdisplay+set}" = set; then
20715 withval=$with_readdisplay; with_readdisplay="$withval"; with_readdisplay_req="$withval"
20717 with_readdisplay=yes
20722 case "$with_readdisplay" in
20727 { $as_echo "$as_me:$LINENO: checking for XReadDisplay headers" >&5
20728 $as_echo_n "checking for XReadDisplay headers... " >&6; }
20729 d=$with_readdisplay/include
20730 if test -d $d; then
20731 X_CFLAGS="-I$d $X_CFLAGS"
20732 { $as_echo "$as_me:$LINENO: result: $d" >&5
20733 $as_echo "$d" >&6; }
20735 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20736 $as_echo "not found ($d: no such directory)" >&6; }
20739 { $as_echo "$as_me:$LINENO: checking for XReadDisplay libs" >&5
20740 $as_echo_n "checking for XReadDisplay libs... " >&6; }
20741 d=$with_readdisplay/lib
20742 if test -d $d; then
20743 X_LIBS="-L$d $X_LIBS"
20744 { $as_echo "$as_me:$LINENO: result: $d" >&5
20745 $as_echo "$d" >&6; }
20747 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20748 $as_echo "not found ($d: no such directory)" >&6; }
20751 # replace the directory string with "yes".
20752 with_readdisplay_req="yes"
20753 with_readdisplay=$with_readdisplay_req
20758 echo "error: argument to --with-readdisplay must be \"yes\", \"no\", or a directory."
20759 echo " If it is a directory, then \`DIR/include' will be added to"
20760 echo " the -I list, and \`DIR/lib' will be added to the -L list."
20766 if test "$with_readdisplay" = yes; then
20768 ac_save_CPPFLAGS="$CPPFLAGS"
20769 if test \! -z "$includedir" ; then
20770 CPPFLAGS="$CPPFLAGS -I$includedir"
20772 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
20773 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
20774 { $as_echo "$as_me:$LINENO: checking for X11/extensions/readdisplay.h" >&5
20775 $as_echo_n "checking for X11/extensions/readdisplay.h... " >&6; }
20776 if test "${ac_cv_header_X11_extensions_readdisplay_h+set}" = set; then
20777 $as_echo_n "(cached) " >&6
20779 cat >conftest.$ac_ext <<_ACEOF
20782 cat confdefs.h >>conftest.$ac_ext
20783 cat >>conftest.$ac_ext <<_ACEOF
20784 /* end confdefs.h. */
20785 #include <X11/Xlib.h>
20787 #include <X11/extensions/readdisplay.h>
20789 rm -rf conftest.$ac_objext
20790 if { (ac_try="$ac_compile"
20791 case "(($ac_try" in
20792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20793 *) ac_try_echo=$ac_try;;
20795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20796 $as_echo "$ac_try_echo") >&5
20797 (eval "$ac_compile") 2>conftest.er1
20799 grep -v '^ *+' conftest.er1 >conftest.err
20800 rm -rf conftest.er1
20801 cat conftest.err >&5
20802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); } && {
20804 test -z "$ac_c_werror_flag" ||
20805 test ! -s conftest.err
20806 } && test -s conftest.$ac_objext; then
20807 ac_cv_header_X11_extensions_readdisplay_h=yes
20809 $as_echo "$as_me: failed program was:" >&5
20810 sed 's/^/| /' conftest.$ac_ext >&5
20812 ac_cv_header_X11_extensions_readdisplay_h=no
20815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20817 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_readdisplay_h" >&5
20818 $as_echo "$ac_cv_header_X11_extensions_readdisplay_h" >&6; }
20819 if test "x$ac_cv_header_X11_extensions_readdisplay_h" = x""yes; then
20820 cat >>confdefs.h <<\_ACEOF
20821 #define HAVE_READ_DISPLAY_EXTENSION 1
20827 CPPFLAGS="$ac_save_CPPFLAGS"
20828 elif test "$with_readdisplay" != no; then
20829 echo "error: must be yes or no: --with-readdisplay=$with_readdisplay"
20834 ###############################################################################
20836 # Check for a directory full of images to use as the default value
20837 # of the "imageDirectory" preference.
20839 ###############################################################################
20842 with_imagedir_req=unspecified
20845 # Check whether --with-image-directory was given.
20846 if test "${with_image_directory+set}" = set; then
20847 withval=$with_image_directory; with_imagedir="$withval"; with_imagedir_req="$withval"
20852 # no HANDLE_X_PATH_ARG for this one
20854 case "$with_imagedir" in
20857 { $as_echo "$as_me:$LINENO: checking for image directory $with_imagedir" >&5
20858 $as_echo_n "checking for image directory $with_imagedir... " >&6; }
20859 if test -d "$with_imagedir" ; then
20860 { $as_echo "$as_me:$LINENO: result: yes" >&5
20861 $as_echo "yes" >&6; }
20863 { $as_echo "$as_me:$LINENO: result: no" >&5
20864 $as_echo "no" >&6; }
20871 #### Could use some more defaults here...
20873 "/usr/share/backgrounds/images/" \
20874 "/usr/share/wallpapers/" \
20875 "/Library/Desktop Pictures/" \
20877 if test -z "$with_imagedir"; then
20878 { $as_echo "$as_me:$LINENO: checking for image directory $dd" >&5
20879 $as_echo_n "checking for image directory $dd... " >&6; }
20880 if test -d "$dd" ; then
20881 { $as_echo "$as_me:$LINENO: result: yes" >&5
20882 $as_echo "yes" >&6; }
20883 with_imagedir="$dd"
20885 { $as_echo "$as_me:$LINENO: result: no" >&5
20886 $as_echo "no" >&6; }
20897 echo "error: must be an absolute path: --with-image-directory=$with_imagedir_req"
20901 ac_cv_imagedir="$with_imagedir"
20903 DEFAULT_IMAGES_P='True'
20904 DEFAULT_IMAGE_DIRECTORY="$ac_cv_imagedir"
20906 if test -z "$DEFAULT_IMAGE_DIRECTORY" ; then
20907 DEFAULT_IMAGES_P='False'
20911 ###############################################################################
20913 # Pick a text file to use as the default of the "textFile" preference.
20914 # Any old file will do, but preferably one that will make interesting
20915 # shapes when displayed by "starwars" and "fontglide".
20917 ###############################################################################
20920 with_textfile_req=unspecified
20923 # Check whether --with-text-file was given.
20924 if test "${with_text_file+set}" = set; then
20925 withval=$with_text_file; with_textfile="$withval"; with_textfile_req="$withval"
20930 # no HANDLE_X_PATH_ARG for this one
20932 case "$with_textfile" in
20935 { $as_echo "$as_me:$LINENO: checking for text file $with_textfile" >&5
20936 $as_echo_n "checking for text file $with_textfile... " >&6; }
20937 if test -f "$with_textfile" ; then
20938 { $as_echo "$as_me:$LINENO: result: yes" >&5
20939 $as_echo "yes" >&6; }
20941 { $as_echo "$as_me:$LINENO: result: no" >&5
20942 $as_echo "no" >&6; }
20949 #### Could use some more defaults here...
20951 "/usr/X11R6/lib/X11/doc/README" \
20952 "/usr/share/doc/xserver-common/copyright" \
20953 "/usr/share/doc/xserver-xorg-core/copyright" \
20954 "/usr/X11R6/README" \
20955 "/usr/share/doc/libX11*/COPYING" \
20956 "/usr/X11/share/X11/doc/README*" \
20957 "/usr/share/doc/debian/debian-manifesto" \
20959 if test -z "$with_textfile"; then
20960 { $as_echo "$as_me:$LINENO: checking for text file $f" >&5
20961 $as_echo_n "checking for text file $f... " >&6; }
20962 f=`/bin/ls $f 2>&- | head -1`
20963 if test -f "$f" ; then
20964 { $as_echo "$as_me:$LINENO: result: yes" >&5
20965 $as_echo "yes" >&6; }
20968 { $as_echo "$as_me:$LINENO: result: no" >&5
20969 $as_echo "no" >&6; }
20980 echo "error: must be an absolute path: --with-text-file=$with_textfile_req"
20984 ac_cv_textfile="$with_textfile"
20986 DEFAULT_TEXT_FILE="$ac_cv_textfile"
20989 ###############################################################################
20991 # Check the browser to see help URL
20993 ###############################################################################
20996 with_browser_req=unspecified
20999 # Check whether --with-browser was given.
21000 if test "${with_browser+set}" = set; then
21001 withval=$with_browser; with_browser="$withval"; with_browser_req="$withval"
21006 # no HANDLE_X_PATH_ARG for this one
21008 case "$with_browser" in
21012 WITH_BROWSER=$with_browser
21013 gnome_open_program=$with_browser
21014 { $as_echo "$as_me:$LINENO: checking for browser $with_browser" >&5
21015 $as_echo_n "checking for browser $with_browser... " >&6; }
21016 with_browser_fullpath=`which $with_browser 2>/dev/null`
21017 case $with_browser_fullpath in
21019 { $as_echo "$as_me:$LINENO: result: yes" >&5
21020 $as_echo "yes" >&6; }
21024 { $as_echo "$as_me:$LINENO: result: no" >&5
21025 $as_echo "no" >&6; }
21026 # Only warning: we don't want to install all packages for the
21027 # dependency of the browser in building stage...
21028 echo "WARNING: browser not found: --with-browser=$with_browser"
21033 ac_cv_browser="$with_browser"
21035 ###############################################################################
21037 # Check whether it's ok to install some hacks as setuid (e.g., "sonar")
21038 # This should be safe, but let's give people the option.
21040 ###############################################################################
21042 setuid_hacks_default=no
21043 setuid_hacks="$setuid_hacks_default"
21045 # Check whether --with-setuid-hacks was given.
21046 if test "${with_setuid_hacks+set}" = set; then
21047 withval=$with_setuid_hacks; setuid_hacks="$withval"
21049 setuid_hacks="$setuid_hacks_default"
21054 case "$setuid_hacks" in
21059 { $as_echo "$as_me:$LINENO: checking for setuid hacks headers" >&5
21060 $as_echo_n "checking for setuid hacks headers... " >&6; }
21061 d=$setuid_hacks/include
21062 if test -d $d; then
21063 X_CFLAGS="-I$d $X_CFLAGS"
21064 { $as_echo "$as_me:$LINENO: result: $d" >&5
21065 $as_echo "$d" >&6; }
21067 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
21068 $as_echo "not found ($d: no such directory)" >&6; }
21071 { $as_echo "$as_me:$LINENO: checking for setuid hacks libs" >&5
21072 $as_echo_n "checking for setuid hacks libs... " >&6; }
21073 d=$setuid_hacks/lib
21074 if test -d $d; then
21075 X_LIBS="-L$d $X_LIBS"
21076 { $as_echo "$as_me:$LINENO: result: $d" >&5
21077 $as_echo "$d" >&6; }
21079 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
21080 $as_echo "not found ($d: no such directory)" >&6; }
21083 # replace the directory string with "yes".
21084 setuid_hacks_req="yes"
21085 setuid_hacks=$setuid_hacks_req
21090 echo "error: argument to --with-setuid-hacks must be \"yes\", \"no\", or a directory."
21091 echo " If it is a directory, then \`DIR/include' will be added to"
21092 echo " the -I list, and \`DIR/lib' will be added to the -L list."
21098 if test "$setuid_hacks" = yes; then
21100 elif test "$setuid_hacks" != no; then
21101 echo "error: must be yes or no: --with-setuid-hacks=$setuid_hacks"
21106 ###############################################################################
21108 # Done testing. Now, set up the various -I and -L variables,
21109 # and decide which GUI program to build by default.
21111 ###############################################################################
21118 if test \! -z "$includedir" ; then
21119 INCLUDES="$INCLUDES -I$includedir"
21122 if test \! -z "$libdir" ; then
21123 LDFLAGS="$LDFLAGS -L$libdir"
21127 PREFERRED_DEMO_PROGRAM=''
21129 if test "$have_motif" = yes; then
21130 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Xm
21131 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
21133 if test "$have_gtk" = yes; then
21134 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Gtk
21135 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
21139 if test "$have_kerberos" = yes; then
21140 PASSWD_SRCS="$PASSWD_SRCS \$(KERBEROS_SRCS)"
21141 PASSWD_OBJS="$PASSWD_OBJS \$(KERBEROS_OBJS)"
21143 if test "$have_pam" = yes; then
21144 PASSWD_SRCS="$PASSWD_SRCS \$(PAM_SRCS)"
21145 PASSWD_OBJS="$PASSWD_OBJS \$(PAM_OBJS)"
21146 INSTALL_PAM="install-pam"
21148 if test "$enable_pam_check_account_type" = yes; then
21149 COMMENT_PAM_CHECK_ACCOUNT=""
21151 COMMENT_PAM_CHECK_ACCOUNT="#"
21153 if test "$have_passwd_helper" = yes; then
21154 PASSWD_SRCS="$PASSWD_SRCS \$(PWHELPER_SRCS)"
21155 PASSWD_OBJS="$PASSWD_OBJS \$(PWHELPER_OBJS)"
21157 PASSWD_SRCS="$PASSWD_SRCS \$(PWENT_SRCS)"
21158 PASSWD_OBJS="$PASSWD_OBJS \$(PWENT_OBJS)"
21161 if test "$enable_locking" = yes; then
21162 LOCK_SRCS='$(LOCK_SRCS_1) $(PASSWD_SRCS)'
21163 LOCK_OBJS='$(LOCK_OBJS_1) $(PASSWD_OBJS)'
21165 LOCK_SRCS='$(NOLOCK_SRCS_1)'
21166 LOCK_OBJS='$(NOLOCK_OBJS_1)'
21169 if test "$ac_macosx" = yes; then
21170 EXES_OSX='$(EXES_OSX)'
21171 SCRIPTS_OSX='$(SCRIPTS_OSX)'
21172 MEN_OSX='$(MEN_OSX)'
21180 INSTALL_SETUID='$(INSTALL_PROGRAM) $(SUID_FLAGS)'
21182 if test "$need_setuid" = yes; then
21188 if test "$setuid_hacks" = yes; then
21195 if test "$have_gl" = yes; then
21196 GL_EXES='$(GL_EXES)'
21197 SUID_EXES='$(SUID_EXES)'
21198 RETIRED_GL_EXES='$(RETIRED_GL_EXES)'
21199 GL_UTIL_EXES='$(GL_UTIL_EXES)'
21206 if test "$have_gle" = yes; then
21207 GLE_EXES='$(GLE_EXES)'
21213 if test "$have_jpeg" = yes -a "$have_gdk_pixbuf" = yes; then
21214 JPEG_EXES='$(JPEG_EXES)'
21218 # Another substitution in the XScreenSaver.ad.in file:
21220 if test "$gnome_open_program" != ''; then
21224 elif test "$gnome_url_show_program" != ''; then
21235 # Set PO_DATADIR to something sensible.
21237 { $as_echo "$as_me:$LINENO: checking for locale directory" >&5
21238 $as_echo_n "checking for locale directory... " >&6; }
21239 if test -n "$GTK_DATADIR" ; then
21240 PO_DATADIR="$GTK_DATADIR"
21241 elif test "$have_gtk" = yes; then
21242 PO_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
21243 PO_DATADIR="$PO_DATADIR/share"
21246 if test -z "$PO_DATADIR" ; then
21248 # #### Total fucking kludge --
21249 # Map /build/prefix/usr/X11R6/share/ to /build/prefix/usr/share/
21250 # but of course we need to expand all the nested variables to do that...
21252 dd=`eval eval eval eval eval eval eval eval eval eval eval echo $datadir`
21253 PO_DATADIR=`echo $dd | sed 's@/X11R6/@/@'`
21256 { $as_echo "$as_me:$LINENO: result: $PO_DATADIR/locale" >&5
21257 $as_echo "$PO_DATADIR/locale" >&6; }
21260 # canonicalize slashes.
21261 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
21263 # gcc 3.0 likes to issue this warning for every file:
21265 # cc1: warning: changing search order for system directory "/usr/local/include"
21266 # cc1: warning: as it has already been specified as a non-system directory
21268 # Yay. We can only avoid that by deleting "-I${prefix}/include" from the list.
21269 # Which *should* be totally redundant, and thus an ok thing to delete?
21271 INCLUDES=`echo "$INCLUDES" | sed 's@ -I${prefix}/include@@g;'`
21274 ###############################################################################
21276 # Perform substitutions and write Makefiles.
21278 ###############################################################################
21348 APPDEFAULTS=$ac_x_app_defaults
21356 ac_config_files="$ac_config_files Makefile utils/Makefile driver/Makefile driver/xscreensaver.pam hacks/Makefile hacks/glx/Makefile po/Makefile.in driver/XScreenSaver.ad"
21358 cat >confcache <<\_ACEOF
21359 # This file is a shell script that caches the results of configure
21360 # tests run on this system so they can be shared between configure
21361 # scripts and configure runs, see configure's option --config-cache.
21362 # It is not useful on other systems. If it contains results you don't
21363 # want to keep, you may remove or edit it.
21365 # config.status only pays attention to the cache file if you give it
21366 # the --recheck option to rerun configure.
21368 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21369 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21370 # following values.
21374 # The following way of writing the cache mishandles newlines in values,
21375 # but we know of no workaround that is simple, portable, and efficient.
21376 # So, we kill variables containing newlines.
21377 # Ultrix sh set writes to stderr and can't be redirected directly,
21378 # and sets the high bit in the cache file unless we assign to the vars.
21380 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21381 eval ac_val=\$$ac_var
21385 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21386 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21389 _ | IFS | as_nl) ;; #(
21390 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21391 *) $as_unset $ac_var ;;
21397 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21398 *${as_nl}ac_space=\ *)
21399 # `set' does not quote correctly, so add quotes (double-quote
21400 # substitution turns \\\\ into \\, and sed turns \\ into \).
21403 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21406 # `set' quotes correctly as required by POSIX, so do not add quotes.
21407 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21416 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21418 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21420 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21421 if test -w "$cache_file"; then
21422 test "x$cache_file" != "x/dev/null" &&
21423 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21424 $as_echo "$as_me: updating cache $cache_file" >&6;}
21425 cat confcache >$cache_file
21427 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21428 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21433 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21434 # Let make expand exec_prefix.
21435 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21437 DEFS=-DHAVE_CONFIG_H
21441 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21442 # 1. Remove the extension, and $U if already installed.
21443 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21444 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21445 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21446 # will be set to the directory where LIBOBJS objects are built.
21447 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21448 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21450 LIBOBJS=$ac_libobjs
21452 LTLIBOBJS=$ac_ltlibobjs
21457 mv -f po/POTFILES po/POTFILES.tmp
21458 sed -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
21459 rm -f po/POTFILES.tmp
21463 : ${CONFIG_STATUS=./config.status}
21465 ac_clean_files_save=$ac_clean_files
21466 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21467 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21468 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21469 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21471 # Generated by $as_me.
21472 # Run this file to recreate the current configuration.
21473 # Compiler output produced by configure, useful for debugging
21474 # configure, is in config.log if it exists.
21477 ac_cs_recheck=false
21479 SHELL=\${CONFIG_SHELL-$SHELL}
21482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21483 ## --------------------- ##
21484 ## M4sh Initialization. ##
21485 ## --------------------- ##
21487 # Be more Bourne compatible
21488 DUALCASE=1; export DUALCASE # for MKS sh
21489 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21492 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21493 # is contrary to our usage. Disable this feature.
21494 alias -g '${1+"$@"}'='"$@"'
21495 setopt NO_GLOB_SUBST
21497 case `(set -o) 2>/dev/null` in
21498 *posix*) set -o posix ;;
21507 # Avoid depending upon Character Ranges.
21508 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21509 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21510 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21511 as_cr_digits='0123456789'
21512 as_cr_alnum=$as_cr_Letters$as_cr_digits
21517 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21518 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21519 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21520 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21521 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21522 as_echo='printf %s\n'
21523 as_echo_n='printf %s'
21525 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21526 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21527 as_echo_n='/usr/ucb/echo -n'
21529 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21530 as_echo_n_body='eval
21534 expr "X$arg" : "X\\(.*\\)$as_nl";
21535 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21537 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21539 export as_echo_n_body
21540 as_echo_n='sh -c $as_echo_n_body as_echo'
21542 export as_echo_body
21543 as_echo='sh -c $as_echo_body as_echo'
21546 # The user is always right.
21547 if test "${PATH_SEPARATOR+set}" != set; then
21549 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21550 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21555 # Support unset when possible.
21556 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21564 # We need space, tab and new line, in precisely that order. Quoting is
21565 # there to prevent editors from complaining about space-tab.
21566 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21567 # splitting by setting IFS to empty value.)
21570 # Find who we are. Look in the path if we contain no directory separator.
21572 *[\\/]* ) as_myself=$0 ;;
21573 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21574 for as_dir in $PATH
21577 test -z "$as_dir" && as_dir=.
21578 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21584 # We did not find ourselves, most probably we were run as `sh COMMAND'
21585 # in which case we are not to be found in the path.
21586 if test "x$as_myself" = x; then
21589 if test ! -f "$as_myself"; then
21590 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21591 { (exit 1); exit 1; }
21594 # Work around bugs in pre-3.0 UWIN ksh.
21595 for as_var in ENV MAIL MAILPATH
21596 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21608 # Required to use basename.
21609 if expr a : '\(a\)' >/dev/null 2>&1 &&
21610 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21616 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21617 as_basename=basename
21623 # Name of the executable.
21624 as_me=`$as_basename -- "$0" ||
21625 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21626 X"$0" : 'X\(//\)$' \| \
21627 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21629 sed '/^.*\/\([^/][^/]*\)\/*$/{
21648 as_lineno_1=$LINENO
21649 as_lineno_2=$LINENO
21650 test "x$as_lineno_1" != "x$as_lineno_2" &&
21651 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21653 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21654 # uniformly replaced by the line number. The first 'sed' inserts a
21655 # line-number line after each line using $LINENO; the second 'sed'
21656 # does the real work. The second script uses 'N' to pair each
21657 # line-number line with the line containing $LINENO, and appends
21658 # trailing '-' during substitution so that $LINENO is not a special
21659 # case at line end.
21660 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21661 # scripts with optimization help from Paolo Bonzini. Blame Lee
21662 # E. McMahon (1931-1989) for sed's syntax. :-)
21674 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21677 ' >$as_me.lineno &&
21678 chmod +x "$as_me.lineno" ||
21679 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21680 { (exit 1); exit 1; }; }
21682 # Don't try to exec as it changes $[0], causing all sort of problems
21683 # (the dirname of $[0] is not the place where we might find the
21684 # original and so on. Autoconf is especially sensitive to this).
21685 . "./$as_me.lineno"
21686 # Exit status is that of the last command.
21691 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21697 ECHO_C= ECHO_N= ECHO_T=
21698 case `echo -n x` in
21700 case `echo 'x\c'` in
21701 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21707 if expr a : '\(a\)' >/dev/null 2>&1 &&
21708 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21714 rm -f conf$$ conf$$.exe conf$$.file
21715 if test -d conf$$.dir; then
21716 rm -f conf$$.dir/conf$$.file
21719 mkdir conf$$.dir 2>/dev/null
21721 if (echo >conf$$.file) 2>/dev/null; then
21722 if ln -s conf$$.file conf$$ 2>/dev/null; then
21724 # ... but there are two gotchas:
21725 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21726 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21727 # In both cases, we have to default to `cp -p'.
21728 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21730 elif ln conf$$.file conf$$ 2>/dev/null; then
21738 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21739 rmdir conf$$.dir 2>/dev/null
21741 if mkdir -p . 2>/dev/null; then
21744 test -d ./-p && rmdir ./-p
21748 if test -x / >/dev/null 2>&1; then
21749 as_test_x='test -x'
21751 if ls -dL / >/dev/null 2>&1; then
21758 if test -d "$1"; then
21764 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21765 ???[sx]*):;;*)false;;esac;fi
21769 as_executable_p=$as_test_x
21771 # Sed expression to map a string onto a valid CPP name.
21772 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21774 # Sed expression to map a string onto a valid variable name.
21775 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21780 # Save the log message, to keep $[0] and so on meaningful, and to
21781 # report actual input values of CONFIG_FILES etc. instead of their
21782 # values after options handling.
21784 This file was extended by $as_me, which was
21785 generated by GNU Autoconf 2.63. Invocation command line was
21787 CONFIG_FILES = $CONFIG_FILES
21788 CONFIG_HEADERS = $CONFIG_HEADERS
21789 CONFIG_LINKS = $CONFIG_LINKS
21790 CONFIG_COMMANDS = $CONFIG_COMMANDS
21793 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21798 case $ac_config_files in *"
21799 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21802 case $ac_config_headers in *"
21803 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21808 # Files that config.status was made for.
21809 config_files="$ac_config_files"
21810 config_headers="$ac_config_headers"
21811 config_commands="$ac_config_commands"
21815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21817 \`$as_me' instantiates files from templates according to the
21818 current configuration.
21820 Usage: $0 [OPTION]... [FILE]...
21822 -h, --help print this help, then exit
21823 -V, --version print version number and configuration settings, then exit
21824 -q, --quiet, --silent
21825 do not print progress messages
21826 -d, --debug don't remove temporary files
21827 --recheck update $as_me by reconfiguring in the same conditions
21828 --file=FILE[:TEMPLATE]
21829 instantiate the configuration file FILE
21830 --header=FILE[:TEMPLATE]
21831 instantiate the configuration header FILE
21833 Configuration files:
21836 Configuration headers:
21839 Configuration commands:
21842 Report bugs to <bug-autoconf@gnu.org>."
21845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21848 configured by $0, generated by GNU Autoconf 2.63,
21849 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21851 Copyright (C) 2008 Free Software Foundation, Inc.
21852 This config.status script is free software; the Free Software Foundation
21853 gives unlimited permission to copy, distribute and modify it."
21858 test -n "\$AWK" || AWK=awk
21861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21862 # The default lists apply if the user does not specify any file.
21868 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21869 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21880 # Handling of the options.
21881 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21883 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21884 $as_echo "$ac_cs_version"; exit ;;
21885 --debug | --debu | --deb | --de | --d | -d )
21887 --file | --fil | --fi | --f )
21890 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21892 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
21893 ac_need_defaults=false;;
21894 --header | --heade | --head | --hea )
21897 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21899 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
21900 ac_need_defaults=false;;
21902 # Conflict between --help and --header
21903 { $as_echo "$as_me: error: ambiguous option: $1
21904 Try \`$0 --help' for more information." >&2
21905 { (exit 1); exit 1; }; };;
21906 --help | --hel | -h )
21907 $as_echo "$ac_cs_usage"; exit ;;
21908 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21909 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21912 # This is an error.
21913 -*) { $as_echo "$as_me: error: unrecognized option: $1
21914 Try \`$0 --help' for more information." >&2
21915 { (exit 1); exit 1; }; } ;;
21917 *) ac_config_targets="$ac_config_targets $1"
21918 ac_need_defaults=false ;;
21924 ac_configure_extra_args=
21926 if $ac_cs_silent; then
21928 ac_configure_extra_args="$ac_configure_extra_args --silent"
21932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21933 if \$ac_cs_recheck; then
21934 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21936 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21937 CONFIG_SHELL='$SHELL'
21938 export CONFIG_SHELL
21943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21947 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21948 ## Running $as_me. ##
21954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21958 INTLTOOL_PERL=${INTLTOOL_PERL}
21963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21965 # Handling of arguments.
21966 for ac_config_target in $ac_config_targets
21968 case $ac_config_target in
21969 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21970 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21971 "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
21972 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21973 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
21974 "driver/Makefile") CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;;
21975 "driver/xscreensaver.pam") CONFIG_FILES="$CONFIG_FILES driver/xscreensaver.pam" ;;
21976 "hacks/Makefile") CONFIG_FILES="$CONFIG_FILES hacks/Makefile" ;;
21977 "hacks/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hacks/glx/Makefile" ;;
21978 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21979 "driver/XScreenSaver.ad") CONFIG_FILES="$CONFIG_FILES driver/XScreenSaver.ad" ;;
21981 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21982 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21983 { (exit 1); exit 1; }; };;
21988 # If the user did not use the arguments to specify the items to instantiate,
21989 # then the envvar interface is used. Set only those that are not.
21990 # We use the long form for the default assignment because of an extremely
21991 # bizarre bug on SunOS 4.1.3.
21992 if $ac_need_defaults; then
21993 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21994 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21995 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21998 # Have a temporary directory for convenience. Make it in the build tree
21999 # simply because there is no reason against having it here, and in addition,
22000 # creating and moving files from /tmp can sometimes cause problems.
22001 # Hook for its removal unless debugging.
22002 # Note that there is a small window in which the directory will not be cleaned:
22003 # after its creation but before its name has been assigned to `$tmp'.
22007 trap 'exit_status=$?
22008 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22010 trap '{ (exit 1); exit 1; }' 1 2 13 15
22012 # Create a (secure) tmp directory for tmp files.
22015 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22016 test -n "$tmp" && test -d "$tmp"
22019 tmp=./conf$$-$RANDOM
22020 (umask 077 && mkdir "$tmp")
22023 $as_echo "$as_me: cannot create a temporary directory in ." >&2
22024 { (exit 1); exit 1; }
22027 # Set up the scripts for CONFIG_FILES section.
22028 # No need to generate them if there are no CONFIG_FILES.
22029 # This happens for instance with `./config.status config.h'.
22030 if test -n "$CONFIG_FILES"; then
22034 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22035 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22038 ac_cs_awk_cr=$ac_cr
22041 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22046 echo "cat >conf$$subs.awk <<_ACEOF" &&
22047 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22049 } >conf$$subs.sh ||
22050 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22051 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22052 { (exit 1); exit 1; }; }
22053 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22055 for ac_last_try in false false false false false :; do
22056 . ./conf$$subs.sh ||
22057 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22058 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22059 { (exit 1); exit 1; }; }
22061 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22062 if test $ac_delim_n = $ac_delim_num; then
22064 elif $ac_last_try; then
22065 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22066 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22067 { (exit 1); exit 1; }; }
22069 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22072 rm -f conf$$subs.sh
22074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22075 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22079 s/^/S["/; s/!.*/"]=/
22089 s/\(.\{148\}\).*/\1/
22091 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22096 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22103 s/\(.\{148\}\).*/\1/
22105 s/["\\]/\\&/g; s/^/"/; s/$/"/
22109 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22114 ' <conf$$subs.awk | sed '
22119 ' >>$CONFIG_STATUS || ac_write_fail=1
22120 rm -f conf$$subs.awk
22121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22123 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22124 for (key in S) S_is_set[key] = 1
22130 nfields = split(line, field, "@")
22132 len = length(field[1])
22133 for (i = 2; i < nfields; i++) {
22135 keylen = length(key)
22136 if (S_is_set[key]) {
22138 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22139 len += length(value) + length(field[++i])
22150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22151 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22152 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22155 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22156 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22157 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
22158 { (exit 1); exit 1; }; }
22161 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22162 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22163 # trailing colons and then remove the whole line if VPATH becomes empty
22164 # (actually we leave an empty line to preserve line numbers).
22165 if test "x$srcdir" = x.; then
22166 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22167 s/:*\$(srcdir):*/:/
22168 s/:*\${srcdir}:*/:/
22170 s/^\([^=]*=[ ]*\):*/\1/
22176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22177 fi # test -n "$CONFIG_FILES"
22179 # Set up the scripts for CONFIG_HEADERS section.
22180 # No need to generate them if there are no CONFIG_HEADERS.
22181 # This happens for instance with `./config.status Makefile'.
22182 if test -n "$CONFIG_HEADERS"; then
22183 cat >"$tmp/defines.awk" <<\_ACAWK ||
22187 # Transform confdefs.h into an awk script `defines.awk', embedded as
22188 # here-document in config.status, that substitutes the proper values into
22189 # config.h.in to produce config.h.
22191 # Create a delimiter string that does not exist in confdefs.h, to ease
22192 # handling of long lines.
22194 for ac_last_try in false false :; do
22195 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22196 if test -z "$ac_t"; then
22198 elif $ac_last_try; then
22199 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22200 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22201 { (exit 1); exit 1; }; }
22203 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22207 # For the awk script, D is an array of macro values keyed by name,
22208 # likewise P contains macro parameters if any. Preserve backslash
22209 # newline sequences.
22211 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22213 s/.\{148\}/&'"$ac_delim"'/g
22216 s/^[ ]*#[ ]*define[ ][ ]*/ /
22223 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22225 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22229 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22230 D["\1"]=" \3\\\\\\n"\\/p
22232 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22237 s/.\{148\}/&'"$ac_delim"'/g
22242 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22245 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22247 ' <confdefs.h | sed '
22248 s/'"$ac_delim"'/"\\\
22249 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22252 for (key in D) D_is_set[key] = 1
22255 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22257 split(line, arg, " ")
22258 if (arg[1] == "#") {
22262 defundef = substr(arg[1], 2)
22265 split(mac1, mac2, "(") #)
22267 prefix = substr(line, 1, index(line, defundef) - 1)
22268 if (D_is_set[macro]) {
22269 # Preserve the white space surrounding the "#".
22270 print prefix "define", macro P[macro] D[macro]
22273 # Replace #undef with comments. This is necessary, for example,
22274 # in the case of _POSIX_SOURCE, which is predefined and required
22275 # on some systems where configure will not decide to define it.
22276 if (defundef == "undef") {
22277 print "/*", prefix defundef, macro, "*/"
22285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22286 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22287 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22288 { (exit 1); exit 1; }; }
22289 fi # test -n "$CONFIG_HEADERS"
22292 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22297 :[FHLC]) ac_mode=$ac_tag; continue;;
22299 case $ac_mode$ac_tag in
22301 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22302 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22303 { (exit 1); exit 1; }; };;
22304 :[FH]-) ac_tag=-:-;;
22305 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22322 -) ac_f="$tmp/stdin";;
22323 *) # Look for the file first in the build tree, then in the source tree
22324 # (if the path is not absolute). The absolute path cannot be DOS-style,
22325 # because $ac_f cannot contain `:'.
22329 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22331 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22332 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22333 { (exit 1); exit 1; }; };;
22335 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22336 ac_file_inputs="$ac_file_inputs '$ac_f'"
22339 # Let's still pretend it is `configure' which instantiates (i.e., don't
22340 # use $as_me), people would be surprised to read:
22341 # /* config.h. Generated by config.status. */
22342 configure_input='Generated from '`
22343 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22345 if test x"$ac_file" != x-; then
22346 configure_input="$ac_file. $configure_input"
22347 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22348 $as_echo "$as_me: creating $ac_file" >&6;}
22350 # Neutralize special characters interpreted by sed in replacement strings.
22351 case $configure_input in #(
22352 *\&* | *\|* | *\\* )
22353 ac_sed_conf_input=`$as_echo "$configure_input" |
22354 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22355 *) ac_sed_conf_input=$configure_input;;
22359 *:-:* | *:-) cat >"$tmp/stdin" \
22360 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22361 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22362 { (exit 1); exit 1; }; } ;;
22367 ac_dir=`$as_dirname -- "$ac_file" ||
22368 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22369 X"$ac_file" : 'X\(//\)[^/]' \| \
22370 X"$ac_file" : 'X\(//\)$' \| \
22371 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22372 $as_echo X"$ac_file" |
22373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22377 /^X\(\/\/\)[^/].*/{
22392 -*) as_dir=./$as_dir;;
22394 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22398 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22399 *) as_qdir=$as_dir;;
22401 as_dirs="'$as_qdir' $as_dirs"
22402 as_dir=`$as_dirname -- "$as_dir" ||
22403 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22404 X"$as_dir" : 'X\(//\)[^/]' \| \
22405 X"$as_dir" : 'X\(//\)$' \| \
22406 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22407 $as_echo X"$as_dir" |
22408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22412 /^X\(\/\/\)[^/].*/{
22425 test -d "$as_dir" && break
22427 test -z "$as_dirs" || eval "mkdir $as_dirs"
22428 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22429 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22430 { (exit 1); exit 1; }; }; }
22434 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22436 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22437 # A ".." for each directory in $ac_dir_suffix.
22438 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22439 case $ac_top_builddir_sub in
22440 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22441 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22444 ac_abs_top_builddir=$ac_pwd
22445 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22446 # for backward compatibility:
22447 ac_top_builddir=$ac_top_build_prefix
22450 .) # We are building in place.
22452 ac_top_srcdir=$ac_top_builddir_sub
22453 ac_abs_top_srcdir=$ac_pwd ;;
22454 [\\/]* | ?:[\\/]* ) # Absolute name.
22455 ac_srcdir=$srcdir$ac_dir_suffix;
22456 ac_top_srcdir=$srcdir
22457 ac_abs_top_srcdir=$srcdir ;;
22458 *) # Relative name.
22459 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22460 ac_top_srcdir=$ac_top_build_prefix$srcdir
22461 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22463 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22473 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22474 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22479 # If the template does not know about datarootdir, expand it.
22480 # FIXME: This hack should be removed a few years after 2.60.
22481 ac_datarootdir_hack=; ac_datarootdir_seen=
22494 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22495 *datarootdir*) ac_datarootdir_seen=yes;;
22496 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22497 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22498 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22501 ac_datarootdir_hack='
22502 s&@datadir@&$datadir&g
22503 s&@docdir@&$docdir&g
22504 s&@infodir@&$infodir&g
22505 s&@localedir@&$localedir&g
22506 s&@mandir@&$mandir&g
22507 s&\\\${datarootdir}&$datarootdir&g' ;;
22511 # Neutralize VPATH when `$srcdir' = `.'.
22512 # Shell code in configure.ac might set extrasub.
22513 # FIXME: do we really want to maintain this feature?
22514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22515 ac_sed_extra="$ac_vpsub
22518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22520 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22521 s|@configure_input@|$ac_sed_conf_input|;t t
22522 s&@top_builddir@&$ac_top_builddir_sub&;t t
22523 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22524 s&@srcdir@&$ac_srcdir&;t t
22525 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22526 s&@top_srcdir@&$ac_top_srcdir&;t t
22527 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22528 s&@builddir@&$ac_builddir&;t t
22529 s&@abs_builddir@&$ac_abs_builddir&;t t
22530 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22531 s&@INSTALL@&$ac_INSTALL&;t t
22532 $ac_datarootdir_hack
22534 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22535 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22536 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22537 { (exit 1); exit 1; }; }
22539 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22540 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22541 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22542 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22543 which seems to be undefined. Please make sure it is defined." >&5
22544 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22545 which seems to be undefined. Please make sure it is defined." >&2;}
22549 -) cat "$tmp/out" && rm -f "$tmp/out";;
22550 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22552 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22553 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22554 { (exit 1); exit 1; }; }
22560 if test x"$ac_file" != x-; then
22562 $as_echo "/* $configure_input */" \
22563 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22564 } >"$tmp/config.h" \
22565 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22566 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22567 { (exit 1); exit 1; }; }
22568 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22569 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22570 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22573 mv "$tmp/config.h" "$ac_file" \
22574 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22575 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22576 { (exit 1); exit 1; }; }
22579 $as_echo "/* $configure_input */" \
22580 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22581 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22582 $as_echo "$as_me: error: could not create -" >&2;}
22583 { (exit 1); exit 1; }; }
22587 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22588 $as_echo "$as_me: executing $ac_file commands" >&6;}
22593 case $ac_file$ac_mode in
22596 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-extract.in > intltool-extract.out
22597 if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
22598 rm -f intltool-extract.out
22600 mv -f intltool-extract.out intltool-extract
22602 chmod ugo+x intltool-extract
22603 chmod u+w intltool-extract
22605 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-merge.in > intltool-merge.out
22606 if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
22607 rm -f intltool-merge.out
22609 mv -f intltool-merge.out intltool-merge
22611 chmod ugo+x intltool-merge
22612 chmod u+w intltool-merge
22614 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-update.in > intltool-update.out
22615 if cmp -s intltool-update intltool-update.out 2>/dev/null; then
22616 rm -f intltool-update.out
22618 mv -f intltool-update.out intltool-update
22620 chmod ugo+x intltool-update
22621 chmod u+w intltool-update
22624 "default-2":C) case "$CONFIG_FILES" in *po/Makefile.in*)
22625 rm -f po/stamp-it po/stamp-it.tmp
22627 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
22628 mv po/stamp-it.tmp po/stamp-it
22635 { (exit 0); exit 0; }
22637 chmod +x $CONFIG_STATUS
22638 ac_clean_files=$ac_clean_files_save
22640 test $ac_write_fail = 0 ||
22641 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22642 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22643 { (exit 1); exit 1; }; }
22646 # configure is writing to config.log, and then calls config.status.
22647 # config.status does its own redirection, appending to config.log.
22648 # Unfortunately, on DOS this fails, as config.log is still kept open
22649 # by configure, so config.status won't be able to write to it; its
22650 # output is simply discarded. So we exec the FD to /dev/null,
22651 # effectively closing config.log, so it can be properly (re)opened and
22652 # appended to by config.status. When coming back to configure, we
22653 # need to make the FD available again.
22654 if test "$no_create" != yes; then
22656 ac_config_status_args=
22657 test "$silent" = yes &&
22658 ac_config_status_args="$ac_config_status_args --quiet"
22660 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22662 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22663 # would make configure fail if this is the last instruction.
22664 $ac_cs_success || { (exit 1); exit 1; }
22666 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22667 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22668 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22672 ###############################################################################
22674 # Print some warnings at the end.
22676 ###############################################################################
22678 warn_prefix_1=" Warning:"
22679 warn_prefix_2=" Note:"
22680 warn_prefix="$warn_prefix_1"
22683 warnsep=' #################################################################'
22686 if test "$warning" = no ; then
22687 echo '' ; echo "$warnsep" ; echo ''
22694 if test "$warning" = long ; then echo '' ; fi
22697 echo "$warn_prefix $rest"
22704 if test "$was" != no ; then echo '' ; fi
22706 echo "$warn_prefix $rest"
22716 warn_prefix="$warn_prefix_2"
22718 warn_prefix="$warn_prefix_1"
22722 warn_prefix="$warn_prefix_2"
22724 warn_prefix="$warn_prefix_1"
22728 if test "$with_sgi_req" = yes -a "$have_sgi" = no ; then
22729 warn 'The SGI saver extension was requested, but was not found.'
22732 if test "$with_xidle_req" = yes -a "$have_xidle" = no ; then
22733 warn 'The XIdle extension was requested, but was not found.'
22736 if test "$with_xshm_req" = yes -a "$have_xshm" = no ; then
22737 warn 'The XSHM extension was requested, but was not found.'
22740 if test "$with_xdbe_req" = yes -a "$have_xdbe" = no ; then
22741 warn 'The DOUBLE-BUFFER extension was requested, but was not found.'
22744 if test "$with_sgivc_req" = yes -a "$have_sgivc" = no ; then
22745 warn 'The SGI-VIDEO-CONTROL extension was requested, but was not found.'
22748 if test "$with_dpms_req" = yes -a "$have_dpms" = no ; then
22749 warn 'The DPMS extension was requested, but was not found.'
22752 if test "$with_xinerama_req" = yes -a "$have_xinerama" = no ; then
22753 warn 'The Xinerama extension was requested, but was not found.'
22756 if test "$with_xf86vmode_req" = yes -a "$have_xf86vmode" = no ; then
22757 warn 'The XF86VMODE extension was requested, but was not found.'
22760 if test "$with_randr_req" = yes -a "$have_randr" = no ; then
22761 warn 'The RANDR extension was requested, but was not found.'
22764 if test "$with_proc_interrupts_req" = yes -a "$have_proc_interrupts" = no; then
22765 warn "Checking of /proc/interrupts was requested, but it's bogus."
22768 if test "$pkg_config" = false ; then
22769 warnL 'The "pkg-config" program was not found. Without that,'
22770 warn2 "detection of the various GTK libraries won't work."
22772 pkgerr=`$pkg_config --list-all 2>&1 >/dev/null`
22773 if test "x$pkgerr" != "x" ; then
22774 warnL 'The "pkg-config" program produces errors. This often causes'
22775 warn2 "detection of the various GTK libraries to malfunction."
22776 warn2 "The errors are:"
22778 echo "$pkgerr" | sed 's/^/ > /g'
22782 if test "$gtk_halfassed" != no ; then
22783 warnL "GTK version $gtk_halfassed was found, but at least one supporting"
22784 warn2 "library ($gtk_halfassed_lib) was not, so GTK can't be used."
22785 warn2 "Perhaps some of the development packages are not installed?"
22786 if test "$have_gtk" = yes ; then
22787 v="$ac_gtk_version_string"
22788 warn2 "GTK $v is also installed, so it will be used instead."
22789 warn2 "Please read the above output and the \`config.log' file"
22790 warn2 "for more details."
22795 warn2 'Though the Motif front-end to xscreensaver is still'
22796 warn2 'maintained, it is no longer being updated with new'
22797 warn2 'features: all new development on the xscreensaver-demo'
22798 warn2 'program is happening in the GTK version, and not in the'
22799 warn2 'Motif version. It is recommended that you build against'
22800 warn2 'GTK instead of Motif. See <http://www.gtk.org/>.'
22803 if test "$have_motif" = no -a "$have_gtk" = no; then
22805 if test "$with_motif" = yes; then
22806 warnL "Neither the GTK nor Motif libraries were found; the"
22807 warn2 "\`xscreensaver-demo' program requires one of these."
22811 warnL "The GTK libraries do not seem to be available; the"
22812 warn2 "\`xscreensaver-demo' program requires them."
22814 # warn2 'You can use Motif or Lesstif instead of GTK (use the'
22815 # warn2 "\`--with-motif' option) but that is NOT recommended."
22819 elif test "$with_motif_req" = yes -a "$have_motif" = no ; then
22820 warnL "Use of Motif was requested, but it wasn't found;"
22821 warn2 "Gtk will be used instead."
22823 elif test "$jurassic_gtk" = yes ; then
22827 v="$ac_gtk_version_string"
22828 if test "$with_gtk_req" = yes -a "$ac_gtk_version" = "unknown" ; then
22829 warnL "Use of Gtk was requested, but its version number is unknown;"
22830 elif test "$with_gtk_req" = yes ; then
22831 warnL "Use of Gtk was requested, but it is version $v;"
22833 warnL "Gtk was found on this system, but it is version $v;"
22836 warn2 "Gtk $pref_gtk or newer is required."
22838 elif test "$with_gtk_req" = yes -a "$have_gtk" = no ; then
22839 warnL "Use of Gtk was requested, but it wasn't found."
22843 if test "$have_gtk" = yes -a "$have_gdk_pixbuf" = no ; then
22844 warn "GTK is being used, but the GDK-Pixbuf library and/or"
22845 warn2 "headers were not found. That can't be good. Please"
22846 warn2 "install the GDK-Pixbuf development kit and re-configure."
22849 if test "$have_motif" = yes -a "$have_lesstif" = yes ; then
22851 preferred_lesstif=0.92
22853 if test "$lesstif_version" = unknown; then
22854 warnL "Unable to determine the LessTif version number!"
22855 warn2 "Make sure you are using version $preferred_lesstif or newer."
22856 warn2 "See <http://www.lesstif.org/>."
22858 elif test \! $lesstif_version -gt 82; then
22859 warnL "LessTif version $lesstif_version_string is being used."
22860 warn2 "LessTif versions 0.82 and earlier are too buggy to"
22861 warn2 "use with XScreenSaver; it is strongly recommended"
22862 warn2 "that you upgrade to at least version $preferred_lesstif!"
22863 warn2 "See <http://www.lesstif.org/>."
22868 if test "$have_motif" = yes -a "$have_gtk" = no ; then
22869 warn 'Motif is being used, and GTK is not.'
22875 if test "$with_xpm_req" = yes -a "$have_xpm" = no; then
22876 warnL 'Use of XPM was requested, but it was not found.'
22879 if test "$with_gdk_pixbuf_req" = yes -a "$have_gdk_pixbuf" = no; then
22880 warnL 'Use of GDK-Pixbuf was requested, but it was not found.'
22883 if test "$have_gdk_pixbuf" = no -o "$gdk_pixbuf_halfassed" = yes || \
22884 test "$have_gdk_pixbuf" = no -a "$have_xpm" = no ; then
22886 if test "$with_gdk_pixbuf_req" = yes ; then
22888 elif test "$with_gdk_pixbuf_req" = no ; then
22889 warnL 'The GDK-Pixbuf library is not being used.'
22891 warnL 'The GDK-Pixbuf library was not found.'
22894 if test "$with_xpm_req" = yes -o "$have_xpm" = yes ; then
22896 elif test "$with_xpm_req" = no ; then
22897 warnL 'The XPM library is not being used.'
22899 warnL 'The XPM library was not found.'
22902 if test "$have_gdk_pixbuf" = no -a "$have_xpm" = yes ; then
22903 warn2 'The XPM library is being used instead.'
22906 if test "$gdk_pixbuf_halfassed" = yes ; then
22908 warn2 'More specifically, we found the headers, but not the'
22909 warn2 'libraries; so either GDK-Pixbuf is half-installed on this'
22910 warn2 "system, or something else went wrong. The \`config.log'"
22911 warn2 'file might contain some clues.'
22915 warn2 'Some of the demos will not use images as much as they could.'
22916 warn2 'You should consider installing GDK-Pixbuf and re-running'
22917 warn2 'configure. (GDK-Pixbuf is recommended over XPM, as it'
22918 warn2 'provides support for more image formats.)'
22922 if test "$have_jpeg" = no ; then
22923 if test "$with_jpeg_req" = yes ; then
22924 warnL 'Use of libjpeg was requested, but it was not found.'
22925 elif test "$with_jpeg_req" = no ; then
22926 noteL 'The JPEG library is not being used.'
22928 noteL 'The JPEG library was not found.'
22931 if test "$jpeg_halfassed" = yes ; then
22933 warn2 'More specifically, we found the headers, but not the'
22934 warn2 'library; so either JPEG is half-installed on this'
22935 warn2 "system, or something else went wrong. The \`config.log'"
22936 warn2 'file might contain some clues.'
22940 if test "$have_gdk_pixbuf" = no ; then
22941 warn2 "This means that it won't be possible for the image-manipulating"
22942 warn2 "display modes to load files from disk; and it also means that"
22943 warn2 "the \`webcollage' program will be much slower."
22945 warn2 "This means the \`webcollage' program will be much slower."
22950 if test "$have_gl" = yes -a "$ac_have_mesa_gl" = yes ; then
22951 preferred_mesagl=3.4
22952 mgv="$ac_mesagl_version_string"
22953 pgl="$preferred_mesagl"
22955 if test "$ac_mesagl_version" = unknown; then
22957 # warnL "Unable to determine the MesaGL version number!"
22958 # warn2 "Make sure you are using version $preferred_mesagl or newer."
22960 elif test \! "$ac_mesagl_version" -gt 2006; then
22961 warnL "MesaGL version number is $mgv --"
22962 warn2 "MesaGL 2.6 and earlier have a security bug. It is strongly"
22963 warn2 "recommended that you upgrade to at least version $preferred_mesagl."
22965 elif test \! "$ac_mesagl_version" -gt 3003; then
22966 warnL "MesaGL version number is $mgv --"
22967 warn2 "MesaGL 3.3 and earlier have some bugs; it is recommended"
22968 warn2 "that you upgrade to $pgl or newer."
22972 if test "$have_gl" = no ; then
22973 if test "$with_gl_req" = yes ; then
22974 warnL 'Use of GL was requested, but it was not found.'
22975 elif test "$with_gl_req" = no ; then
22976 noteL 'The OpenGL 3D library is not being used.'
22978 noteL 'The OpenGL 3D library was not found.'
22981 if test "$gl_halfassed" = yes ; then
22983 warn2 'More specifically, we found the headers, but not the'
22984 warn2 'libraries; so either GL is half-installed on this'
22985 warn2 "system, or something else went wrong. The \`config.log'"
22986 warn2 'file might contain some clues.'
22990 warn2 'Those demos which use 3D will not be built or installed.'
22991 warn2 'You might want to consider installing OpenGL and'
22992 warn2 "re-running configure. If your vendor doesn't ship"
22993 warn2 'their own implementation of OpenGL, you can get a free'
22994 warn2 'version at <http://www.mesa3d.org/>. For general OpenGL'
22995 warn2 'info, see <http://www.opengl.org/>.'
23000 if test "$have_gl" = yes -a "$have_gle" = no ; then
23002 # nobody cares about this; don't print the warning unless it was
23003 # requested and not found, or halfway-found.
23004 if test "$with_gle_req" = yes -o "$gle_halfassed" = yes ; then
23006 if test "$with_gle_req" = yes ; then
23007 noteL 'Use of the GLE (GL Extrusion) library was requested, but'
23008 warn2 'it was not found (though the OpenGL library was found, and'
23009 warn2 'is being used.)'
23010 elif test "$with_gle_req" = no ; then
23011 noteL 'The OpenGL Library is being used, but the GLE (GL Extrusion)'
23012 warn2 'library is not.'
23014 noteL 'The OpenGL Library was found, but the GLE (GL Extrusion)'
23018 if test "$gle_halfassed" = yes ; then
23020 warn2 'More specifically, we found the headers, but not the'
23021 warn2 'libraries; so either GLE is half-installed on this'
23022 warn2 "system, or something else went wrong. The \`config.log'"
23023 warn2 'file might contain some clues.'
23027 warn2 'Some of the OpenGL (3D) demos (those that depend on GLE)'
23028 warn2 'will not be built or installed. You might want to consider'
23029 warn2 'installing GLE and re-running configure. You can find the'
23030 warn2 'GLE library at <http://www.linas.org/gle/>. For general'
23031 warn2 'OpenGL info, see <http://www.opengl.org/>.'
23037 if test "$with_readdisplay_req" = yes -a "$have_readdisplay" = no ; then
23038 warn 'Use of XReadDisplay was requested, but it was not found.'
23041 if test "$with_kerberos_req" = yes -a "$have_kerberos" = no ; then
23042 warn 'Use of Kerberos was requested, but it was not found.'
23045 if test "$with_pam_req" = yes -a "$have_pam" = no ; then
23046 warn 'Use of PAM was requested, but it was not found.'
23049 if test "$with_shadow_req" = yes -a "$have_shadow" = no ; then
23050 warn 'Use of shadow passwords was requested, but they were not found.'
23053 if test "$ac_macosx" = yes ; then
23054 if test "$enable_locking" = yes ; then
23055 warn "You have specified --enable-locking on MacOS X."
23056 warn2 "THIS DOES NOT WORK! Don't do this!"
23061 # You are in a twisty maze of namespaces and syntaxes, all alike.
23062 # Fuck the skull of Unix.
23064 bindir=`eval eval eval eval eval eval eval echo $bindir`
23065 HACKDIR=`eval eval eval eval eval eval eval echo $HACKDIR`
23066 HACK_CONF_DIR=`eval eval eval eval eval eval eval echo $HACK_CONF_DIR`
23068 # canonicalize slashes.
23069 bindir=`echo "${bindir}" | sed 's@/$@@;s@//*@/@g'`
23070 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
23071 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
23074 # Sanity check the hackdir
23075 for bad_choice in xscreensaver xscreensaver-demo xscreensaver-command ; do
23076 if test "${HACKDIR}" = "${bindir}/${bad_choice}" ; then
23078 { { $as_echo "$as_me:$LINENO: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
23079 There will be an executable installed with that name, so
23080 that can't be the name of a directory as well. Please
23081 re-configure with a different directory name." >&5
23082 $as_echo "$as_me: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
23083 There will be an executable installed with that name, so
23084 that can't be the name of a directory as well. Please
23085 re-configure with a different directory name." >&2;}
23086 { (exit 1); exit 1; }; }
23093 # Now let's warn if there's a previous RPM version already installed.
23094 # But don't bother with this test if we are currently *building* an RPM.
23096 if test -z "$RPM_PACKAGE_VERSION" ; then
23098 rpmnames="xscreensaver xscreensaver-base xscreensaver-extras"
23102 rpmv=`(rpm -qv $rpmnames) 2>/dev/null | \
23103 sed -n 's/^[-a-z]*-\([0-9][0-9]*[.][0-9][0-9a-z]*\)-.*$/\1/p' | \
23107 if test \! -z "$rpmv" ; then
23108 rpmbdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/xscreensaver-demo$@\1@p'`
23109 rpmhdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/popsquares$@\1@p'`
23112 warnL "There is already an installed RPM of xscreensaver $rpmv"
23113 warn2 'on this system. You might want to remove it ("rpm -ve")'
23114 warn2 'before running "make install" in this directory.'
23116 warn2 "Alternately, you could build this version of xscreensaver"
23117 warn2 'as an RPM, and then install that. An "xscreensaver.spec"'
23118 warn2 'file is included. Try "rpmbuild -v -ba xscreensaver.spec".'
23119 warn2 "See the RPM documentation for more info."
23122 if test "$rpmbdir" = "$rpmhdir" ; then
23123 warn2 "The RPM version was installed in $rpmbdir/."
23126 warn2 "The RPM version was installed in $rpmbdir/,"
23127 warn2 "with demos in $rpmhdir/."
23132 # Also warn if there's a Debian package installed.
23134 debnames="xscreensaver xscreensaver-data xscreensaver-data-extra"
23136 for dpkg in $debnames ; do
23137 if test -z "$debv"; then
23138 debv=`dpkg -s $dpkg 2>/dev/null | sed -n 's/^Version: \(.*\)$/\1/p'`
23142 if test \! -z "$debv" ; then
23143 debbdir=`dpkg -L $debnames 2>/dev/null | \
23144 sed -n 's@^\(.*/bin/\)xscreensaver$@\1@p'`
23145 debhdir=`dpkg -L $debnames 2>/dev/null | \
23146 sed -n 's@^\(.*/\)popsquares$@\1@p'`
23147 if test -z "$debbdir" ; then debbdir='???'; fi
23148 if test -z "$debhdir" ; then debhdir='???'; fi
23151 warnL "There is already an installed dpkg of xscreensaver"
23152 warn2 "version \"$debv\" on this system."
23154 warn2 "The dpkg was installed in $debbdir,"
23155 warn2 "with demos in $debhdir."
23159 if test "${bindir}" = "${HACKDIR}" ; then
23163 if test "$do_dir_warning" = yes; then
23167 echo ' When you run "make install", the "xscreensaver",'
23168 echo ' "xscreensaver-demo", and "xscreensaver-command" executables'
23169 echo " will be installed in ${bindir}/."
23171 echo " The various graphics demos (190+ different executables) will"
23172 echo " be installed in ${HACKDIR}/."
23174 echo " If you would prefer the demos to be installed elsewhere,"
23175 echo " you should re-run configure with the --with-hackdir=DIR"
23176 echo " option. For more information, run \`./configure --help'."
23180 if test "$warning" != no; then
23181 echo '' ; echo "$warnsep" ; echo ''
23184 if test "$do_dir_warning" = no; then
23185 if test "$warning" = no; then
23188 echo "User programs will be installed in ${bindir}/"
23189 echo "Screen savers will be installed in ${HACKDIR}/"
23190 echo "Configuration dialogs will be installed in ${HACK_CONF_DIR}/"
23191 echo "System-wide default settings will be installed in ${APPDEFAULTS}/"