2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (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 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 as_val=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status=$1; test $as_status -eq 0 && as_status=1
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
543 test -d ./-p && rmdir ./-p
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix=/usr/local
570 ac_config_libobj_dir=.
577 # Identity of this package.
585 ac_unique_file="driver/subprocs.c"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
623 ac_subst_vars='LTLIBOBJS
666 DEFAULT_IMAGE_DIRECTORY
670 COMMENT_PAM_CHECK_ACCOUNT
691 PREFERRED_DEMO_PROGRAM
693 gnome_url_show_program
722 INTLTOOL_SOUNDLIST_RULE
728 INTLTOOL_DIRECTORY_RULE
729 INTLTOOL_DESKTOP_RULE
785 program_transform_name
798 enable_option_checking
815 with_pam_service_name
816 enable_pam_check_account_type
837 ac_precious_vars='build_alias
849 # Initialize some variables set by options.
851 ac_init_version=false
852 ac_unrecognized_opts=
854 # The variables have the same names as the options, with
855 # dashes changed to underlines.
863 program_transform_name=s,x,x,
871 # Installation directory options.
872 # These are left unexpanded so users can "make install exec_prefix=/foo"
873 # and all the variables that are supposed to be based on exec_prefix
874 # by default will actually change.
875 # Use braces instead of parens because sh, perl, etc. also accept them.
876 # (The list follows the same order as the GNU Coding Standards.)
877 bindir='${exec_prefix}/bin'
878 sbindir='${exec_prefix}/sbin'
879 libexecdir='${exec_prefix}/libexec'
880 datarootdir='${prefix}/share'
881 datadir='${datarootdir}'
882 sysconfdir='${prefix}/etc'
883 sharedstatedir='${prefix}/com'
884 localstatedir='${prefix}/var'
885 includedir='${prefix}/include'
886 oldincludedir='/usr/include'
887 docdir='${datarootdir}/doc/${PACKAGE}'
888 infodir='${datarootdir}/info'
893 libdir='${exec_prefix}/lib'
894 localedir='${datarootdir}/locale'
895 mandir='${datarootdir}/man'
901 # If the previous option needs an argument, assign it.
902 if test -n "$ac_prev"; then
903 eval $ac_prev=\$ac_option
909 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914 # Accept the important Cygnus configure options, so we can diagnose typos.
916 case $ac_dashdash$ac_option in
920 -bindir | --bindir | --bindi | --bind | --bin | --bi)
922 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925 -build | --build | --buil | --bui | --bu)
926 ac_prev=build_alias ;;
927 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
928 build_alias=$ac_optarg ;;
930 -cache-file | --cache-file | --cache-fil | --cache-fi \
931 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
932 ac_prev=cache_file ;;
933 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
934 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
935 cache_file=$ac_optarg ;;
938 cache_file=config.cache ;;
940 -datadir | --datadir | --datadi | --datad)
942 -datadir=* | --datadir=* | --datadi=* | --datad=*)
943 datadir=$ac_optarg ;;
945 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
946 | --dataroo | --dataro | --datar)
947 ac_prev=datarootdir ;;
948 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
949 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
950 datarootdir=$ac_optarg ;;
952 -disable-* | --disable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 as_fn_error $? "invalid feature name: $ac_useropt"
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
966 eval enable_$ac_useropt=no ;;
968 -docdir | --docdir | --docdi | --doc | --do)
970 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978 -enable-* | --enable-*)
979 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982 as_fn_error $? "invalid feature name: $ac_useropt"
983 ac_useropt_orig=$ac_useropt
984 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985 case $ac_user_opts in
989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
990 ac_unrecognized_sep=', ';;
992 eval enable_$ac_useropt=\$ac_optarg ;;
994 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
995 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
996 | --exec | --exe | --ex)
997 ac_prev=exec_prefix ;;
998 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
999 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1000 | --exec=* | --exe=* | --ex=*)
1001 exec_prefix=$ac_optarg ;;
1003 -gas | --gas | --ga | --g)
1004 # Obsolete; use --with-gas.
1007 -help | --help | --hel | --he | -h)
1008 ac_init_help=long ;;
1009 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1010 ac_init_help=recursive ;;
1011 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1012 ac_init_help=short ;;
1014 -host | --host | --hos | --ho)
1015 ac_prev=host_alias ;;
1016 -host=* | --host=* | --hos=* | --ho=*)
1017 host_alias=$ac_optarg ;;
1019 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023 htmldir=$ac_optarg ;;
1025 -includedir | --includedir | --includedi | --included | --include \
1026 | --includ | --inclu | --incl | --inc)
1027 ac_prev=includedir ;;
1028 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1029 | --includ=* | --inclu=* | --incl=* | --inc=*)
1030 includedir=$ac_optarg ;;
1032 -infodir | --infodir | --infodi | --infod | --info | --inf)
1034 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1035 infodir=$ac_optarg ;;
1037 -libdir | --libdir | --libdi | --libd)
1039 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1040 libdir=$ac_optarg ;;
1042 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1043 | --libexe | --libex | --libe)
1044 ac_prev=libexecdir ;;
1045 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1046 | --libexe=* | --libex=* | --libe=*)
1047 libexecdir=$ac_optarg ;;
1049 -localedir | --localedir | --localedi | --localed | --locale)
1050 ac_prev=localedir ;;
1051 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1052 localedir=$ac_optarg ;;
1054 -localstatedir | --localstatedir | --localstatedi | --localstated \
1055 | --localstate | --localstat | --localsta | --localst | --locals)
1056 ac_prev=localstatedir ;;
1057 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1058 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1059 localstatedir=$ac_optarg ;;
1061 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1064 mandir=$ac_optarg ;;
1066 -nfp | --nfp | --nf)
1067 # Obsolete; use --without-fp.
1070 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1071 | --no-cr | --no-c | -n)
1074 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1075 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1079 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1080 | --oldin | --oldi | --old | --ol | --o)
1081 ac_prev=oldincludedir ;;
1082 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1083 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1084 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1085 oldincludedir=$ac_optarg ;;
1087 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1090 prefix=$ac_optarg ;;
1092 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1093 | --program-pre | --program-pr | --program-p)
1094 ac_prev=program_prefix ;;
1095 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1096 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1097 program_prefix=$ac_optarg ;;
1099 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1100 | --program-suf | --program-su | --program-s)
1101 ac_prev=program_suffix ;;
1102 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1103 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1104 program_suffix=$ac_optarg ;;
1106 -program-transform-name | --program-transform-name \
1107 | --program-transform-nam | --program-transform-na \
1108 | --program-transform-n | --program-transform- \
1109 | --program-transform | --program-transfor \
1110 | --program-transfo | --program-transf \
1111 | --program-trans | --program-tran \
1112 | --progr-tra | --program-tr | --program-t)
1113 ac_prev=program_transform_name ;;
1114 -program-transform-name=* | --program-transform-name=* \
1115 | --program-transform-nam=* | --program-transform-na=* \
1116 | --program-transform-n=* | --program-transform-=* \
1117 | --program-transform=* | --program-transfor=* \
1118 | --program-transfo=* | --program-transf=* \
1119 | --program-trans=* | --program-tran=* \
1120 | --progr-tra=* | --program-tr=* | --program-t=*)
1121 program_transform_name=$ac_optarg ;;
1123 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1126 pdfdir=$ac_optarg ;;
1128 -psdir | --psdir | --psdi | --psd | --ps)
1130 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134 | -silent | --silent | --silen | --sile | --sil)
1137 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1139 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1141 sbindir=$ac_optarg ;;
1143 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1144 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1145 | --sharedst | --shareds | --shared | --share | --shar \
1147 ac_prev=sharedstatedir ;;
1148 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1149 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1150 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1152 sharedstatedir=$ac_optarg ;;
1154 -site | --site | --sit)
1156 -site=* | --site=* | --sit=*)
1159 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1161 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1162 srcdir=$ac_optarg ;;
1164 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1165 | --syscon | --sysco | --sysc | --sys | --sy)
1166 ac_prev=sysconfdir ;;
1167 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1168 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1169 sysconfdir=$ac_optarg ;;
1171 -target | --target | --targe | --targ | --tar | --ta | --t)
1172 ac_prev=target_alias ;;
1173 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1174 target_alias=$ac_optarg ;;
1176 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1179 -version | --version | --versio | --versi | --vers | -V)
1180 ac_init_version=: ;;
1183 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: $ac_useropt"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1196 eval with_$ac_useropt=\$ac_optarg ;;
1198 -without-* | --without-*)
1199 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 as_fn_error $? "invalid package name: $ac_useropt"
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1212 eval with_$ac_useropt=no ;;
1215 # Obsolete; use --with-x.
1218 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219 | --x-incl | --x-inc | --x-in | --x-i)
1220 ac_prev=x_includes ;;
1221 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223 x_includes=$ac_optarg ;;
1225 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227 ac_prev=x_libraries ;;
1228 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230 x_libraries=$ac_optarg ;;
1232 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1233 Try \`$0 --help' for more information"
1237 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238 # Reject names that are not valid shell variable names.
1239 case $ac_envvar in #(
1240 '' | [0-9]* | *[!_$as_cr_alnum]* )
1241 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1243 eval $ac_envvar=\$ac_optarg
1244 export $ac_envvar ;;
1247 # FIXME: should be removed in autoconf 3.0.
1248 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1249 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1251 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1257 if test -n "$ac_prev"; then
1258 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259 as_fn_error $? "missing argument to $ac_option"
1262 if test -n "$ac_unrecognized_opts"; then
1263 case $enable_option_checking in
1265 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1266 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270 # Check all directory arguments for consistency.
1271 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272 datadir sysconfdir sharedstatedir localstatedir includedir \
1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274 libdir localedir mandir
1276 eval ac_val=\$$ac_var
1277 # Remove trailing slashes.
1280 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281 eval $ac_var=\$ac_val;;
1283 # Be sure to have absolute directory names.
1285 [\\/$]* | ?:[\\/]* ) continue;;
1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1296 target=$target_alias
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300 if test "x$build_alias" = x; then
1301 cross_compiling=maybe
1302 elif test "x$build_alias" != "x$host_alias"; then
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310 test "$silent" = yes && exec 6>/dev/null
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 as_fn_error $? "working directory cannot be determined"
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318 as_fn_error $? "pwd does not report name of working directory"
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 $as_echo X"$as_myself" |
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1353 ac_srcdir_defaulted=no
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1359 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1361 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1363 # When building in place, set srcdir=.
1364 if test "$ac_abs_confdir" = "$ac_pwd"; then
1367 # Remove unnecessary trailing slashes from srcdir.
1368 # Double slashes in file names in object file debugging info
1369 # mess up M-x gdb in Emacs.
1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1373 for ac_var in $ac_precious_vars; do
1374 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_env_${ac_var}_value=\$${ac_var}
1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381 # Report the --help message.
1383 if test "$ac_init_help" = "long"; then
1384 # Omit some internal or obsolete options to make the list less imposing.
1385 # This message is too long to be a string in the A/UX 3.1 sh.
1387 \`configure' configures this package to adapt to many kinds of systems.
1389 Usage: $0 [OPTION]... [VAR=VALUE]...
1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392 VAR=VALUE. See below for descriptions of some of the useful variables.
1394 Defaults for the options are specified in brackets.
1399 -h, --help display this help and exit
1400 --help=short display options specific to this package
1401 --help=recursive display the short help of all the included packages
1402 -V, --version display version information and exit
1403 -q, --quiet, --silent do not print \`checking ...' messages
1404 --cache-file=FILE cache test results in FILE [disabled]
1405 -C, --config-cache alias for \`--cache-file=config.cache'
1406 -n, --no-create do not create output files
1407 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409 Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
1411 [$ac_default_prefix]
1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 By default, \`make install' will install all the files in
1416 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1417 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418 for instance \`--prefix=\$HOME'.
1420 For better control, use the options below.
1422 Fine tuning of the installation directories:
1423 --bindir=DIR user executables [EPREFIX/bin]
1424 --libexecdir=DIR program executables [EPREFIX/libexec]
1425 --libdir=DIR object code libraries [EPREFIX/lib]
1426 --includedir=DIR C header files [PREFIX/include]
1427 --x-includes=DIR X include files are in DIR
1428 --x-libraries=DIR X library files are in DIR
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1432 --mandir=DIR man documentation [DATAROOTDIR/man]
1433 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1434 --htmldir=DIR html documentation [DOCDIR]
1435 --dvidir=DIR dvi documentation [DOCDIR]
1436 --pdfdir=DIR pdf documentation [DOCDIR]
1437 --psdir=DIR ps documentation [DOCDIR]
1443 --x-includes=DIR X include files are in DIR
1444 --x-libraries=DIR X library files are in DIR
1447 --build=BUILD configure for building on BUILD [guessed]
1448 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1452 if test -n "$ac_init_help"; then
1457 --disable-option-checking ignore unrecognized --enable/--with options
1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1460 --disable-largefile omit support for large files
1462 Screen locking options:
1463 --enable-locking Compile in support for locking the display.
1464 --disable-locking Do not allow locking at all.
1466 --enable-root-passwd Allow root passwd to unlock screen.
1467 --disable-root-passwd Do not allow that.
1468 --enable-pam-check-account-type
1469 Whether PAM should check the result of account
1470 modules when authenticating. Only do this if you
1471 have account configured properly on your system.
1474 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1475 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1478 Installation options:
1479 --with-hackdir=DIR Where to install the hundreds of demo executables.
1480 Default: `PREFIX/libexec/xscreensaver/'
1481 --with-configdir=DIR Where to install the data files that describe each
1482 of the display modes to the GUI.
1483 Default: `PREFIX/share/xscreensaver/config/'
1484 --with-x-app-defaults=DIR
1485 Where to install xscreensaver configuration file.
1487 --with-dpms-ext Include support for the DPMS extension.
1488 --with-xinerama-ext Include support for the XINERAMA extension.
1489 --with-xinput-ext Include support for the XInput extension.
1490 --with-xf86vmode-ext Include support for XFree86 virtual screens.
1491 --with-xf86gamma-ext Include support for XFree86 gamma fading.
1492 --with-randr-ext Include support for the X Resize+Rotate extension.
1493 --with-proc-interrupts Include support for consulting the /proc/interrupts
1494 file to notice keyboard activity.
1495 --with-pam Include support for PAM (Pluggable Auth Modules.)
1496 --with-pam-service-name NAME arg is the name of the PAM service that
1497 xscreensaver will authenticate as.
1498 --with-kerberos Include support for Kerberos authentication.
1499 --with-shadow Include support for shadow password authentication.
1500 --with-passwd-helper Include support for an external password
1501 verification helper program.
1502 --with-login-manager Put a "New Login" button on the unlock dialog that
1503 runs a login manager like gdmflexiserver or kdmctl.
1505 User interface options:
1507 --with-gtk Use the Gtk toolkit for the user interface.
1508 --with-motif Use the Motif toolkit for the user interface
1509 (no longer supported.)
1513 --with-gl Build those demos which depend on OpenGL.
1514 --with-gle Build those demos which depend on GLE
1515 (the OpenGL "extrusion" library.)
1516 --with-gles Target OpenGL ES 1.x API instead of OpenGL 1.3.
1517 --with-pixbuf Include support for the GDK-Pixbuf library in some
1518 demos, which will make it possible for them to read
1519 GIF, JPEG, and PNG files as well.
1520 --with-xpm Include support for XPM files in some demos.
1521 (Not needed if Pixbuf is used.)
1522 --with-jpeg Include support for the JPEG library.
1523 --with-xshm-ext Include support for the Shared Memory extension.
1524 --with-xdbe-ext Include support for the DOUBLE-BUFFER extension.
1525 --with-readdisplay Include support for the XReadDisplay extension.
1526 --with-image-directory Arg is the default directory from which some demos
1527 will choose random images to display.
1528 --with-text-file=FILE By default, some demos may display this file.
1529 --with-browser=BROWSER Specify the web browser used to show the help URL.
1530 --with-setuid-hacks Allow some demos to be installed `setuid root'
1531 (which is needed in order to ping other hosts.)
1534 Some influential environment variables:
1535 CC C compiler command
1536 CFLAGS C compiler flags
1537 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1538 nonstandard directory <lib dir>
1539 LIBS libraries to pass to the linker, e.g. -l<library>
1540 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1541 you have headers in a nonstandard directory <include dir>
1543 XMKMF Path to xmkmf, Makefile generator for X Window System
1545 Use these variables to override the choices made by `configure' or to help
1546 it to find libraries and programs with nonstandard names/locations.
1548 Report bugs to the package provider.
1553 if test "$ac_init_help" = "recursive"; then
1554 # If there are subdirs, report their specific --help.
1555 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1556 test -d "$ac_dir" ||
1557 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1562 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1565 # A ".." for each directory in $ac_dir_suffix.
1566 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1567 case $ac_top_builddir_sub in
1568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1572 ac_abs_top_builddir=$ac_pwd
1573 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1574 # for backward compatibility:
1575 ac_top_builddir=$ac_top_build_prefix
1578 .) # We are building in place.
1580 ac_top_srcdir=$ac_top_builddir_sub
1581 ac_abs_top_srcdir=$ac_pwd ;;
1582 [\\/]* | ?:[\\/]* ) # Absolute name.
1583 ac_srcdir=$srcdir$ac_dir_suffix;
1584 ac_top_srcdir=$srcdir
1585 ac_abs_top_srcdir=$srcdir ;;
1587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1588 ac_top_srcdir=$ac_top_build_prefix$srcdir
1589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1591 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1593 cd "$ac_dir" || { ac_status=$?; continue; }
1594 # Check for guested configure.
1595 if test -f "$ac_srcdir/configure.gnu"; then
1597 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1598 elif test -f "$ac_srcdir/configure"; then
1600 $SHELL "$ac_srcdir/configure" --help=recursive
1602 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1604 cd "$ac_pwd" || { ac_status=$?; break; }
1608 test -n "$ac_init_help" && exit $ac_status
1609 if $ac_init_version; then
1612 generated by GNU Autoconf 2.69
1614 Copyright (C) 2012 Free Software Foundation, Inc.
1615 This configure script is free software; the Free Software Foundation
1616 gives unlimited permission to copy, distribute and modify it.
1621 ## ------------------------ ##
1622 ## Autoconf initialization. ##
1623 ## ------------------------ ##
1625 # ac_fn_c_try_compile LINENO
1626 # --------------------------
1627 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_c_try_compile ()
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 rm -rf conftest.$ac_objext
1632 if { { ac_try="$ac_compile"
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_compile") 2>conftest.err
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && {
1648 test -z "$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1650 } && test -s conftest.$ac_objext; then :
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 as_fn_set_status $ac_retval
1661 } # ac_fn_c_try_compile
1663 # ac_fn_c_try_run LINENO
1664 # ----------------------
1665 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1666 # that executables *can* be run.
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 if { { ac_try="$ac_link"
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_link") 2>&5
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1681 { { case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_try") 2>&5
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; }; }; then :
1693 $as_echo "$as_me: program exited with status $ac_status" >&5
1694 $as_echo "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1697 ac_retval=$ac_status
1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status $ac_retval
1705 # ac_fn_c_try_cpp LINENO
1706 # ----------------------
1707 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 if { { ac_try="$ac_cpp conftest.$ac_ext"
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1720 if test -s conftest.err; then
1721 grep -v '^ *+' conftest.err >conftest.er1
1722 cat conftest.er1 >&5
1723 mv -f conftest.er1 conftest.err
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } > conftest.i && {
1727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1728 test ! -s conftest.err
1732 $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.$ac_ext >&5
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 as_fn_set_status $ac_retval
1742 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1743 # -------------------------------------------------------
1744 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1745 # the include files in INCLUDES and setting the cache variable VAR
1747 ac_fn_c_check_header_mongrel ()
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 if eval \${$3+:} false; then :
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752 $as_echo_n "checking for $2... " >&6; }
1753 if eval \${$3+:} false; then :
1754 $as_echo_n "(cached) " >&6
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 $as_echo "$ac_res" >&6; }
1760 # Is the header compilable?
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1762 $as_echo_n "checking $2 usability... " >&6; }
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1768 if ac_fn_c_try_compile "$LINENO"; then :
1769 ac_header_compiler=yes
1771 ac_header_compiler=no
1773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1775 $as_echo "$ac_header_compiler" >&6; }
1777 # Is the header present?
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1779 $as_echo_n "checking $2 presence... " >&6; }
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1784 if ac_fn_c_try_cpp "$LINENO"; then :
1785 ac_header_preproc=yes
1787 ac_header_preproc=no
1789 rm -rf conftest.err conftest.i conftest.$ac_ext
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1791 $as_echo "$ac_header_preproc" >&6; }
1793 # So? What about this header?
1794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1797 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1799 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1803 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1805 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1807 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1809 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1811 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if eval \${$3+:} false; then :
1817 $as_echo_n "(cached) " >&6
1819 eval "$3=\$ac_header_compiler"
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 } # ac_fn_c_check_header_mongrel
1829 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1830 # -------------------------------------------------------
1831 # Tests whether HEADER exists and can be compiled using the include files in
1832 # INCLUDES, setting the cache variable VAR accordingly.
1833 ac_fn_c_check_header_compile ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if eval \${$3+:} false; then :
1839 $as_echo_n "(cached) " >&6
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1846 if ac_fn_c_try_compile "$LINENO"; then :
1851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 } # ac_fn_c_check_header_compile
1860 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1861 # -------------------------------------------
1862 # Tests whether TYPE exists after having included INCLUDES, setting cache
1863 # variable VAR accordingly.
1864 ac_fn_c_check_type ()
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868 $as_echo_n "checking for $2... " >&6; }
1869 if eval \${$3+:} false; then :
1870 $as_echo_n "(cached) " >&6
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1885 if ac_fn_c_try_compile "$LINENO"; then :
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1898 if ac_fn_c_try_compile "$LINENO"; then :
1903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 } # ac_fn_c_check_type
1914 # ac_fn_c_try_link LINENO
1915 # -----------------------
1916 # Try to link conftest.$ac_ext, and return whether this succeeded.
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 rm -rf conftest.$ac_objext conftest$ac_exeext
1921 if { { ac_try="$ac_link"
1923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924 *) ac_try_echo=$ac_try;;
1926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927 $as_echo "$ac_try_echo"; } >&5
1928 (eval "$ac_link") 2>conftest.err
1930 if test -s conftest.err; then
1931 grep -v '^ *+' conftest.err >conftest.er1
1932 cat conftest.er1 >&5
1933 mv -f conftest.er1 conftest.err
1935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936 test $ac_status = 0; } && {
1937 test -z "$ac_c_werror_flag" ||
1938 test ! -s conftest.err
1939 } && test -s conftest$ac_exeext && {
1940 test "$cross_compiling" = yes ||
1941 test -x conftest$ac_exeext
1945 $as_echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1950 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1951 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1952 # interfere with the next link command; also delete a directory that is
1953 # left behind by Apple's compiler. We do this before executing the actions.
1954 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956 as_fn_set_status $ac_retval
1958 } # ac_fn_c_try_link
1960 # ac_fn_c_check_func LINENO FUNC VAR
1961 # ----------------------------------
1962 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1963 ac_fn_c_check_func ()
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if eval \${$3+:} false; then :
1969 $as_echo_n "(cached) " >&6
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1973 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1975 #define $2 innocuous_$2
1977 /* System header to define __stub macros and hopefully few prototypes,
1978 which can conflict with char $2 (); below.
1979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1980 <limits.h> exists even on freestanding compilers. */
1983 # include <limits.h>
1985 # include <assert.h>
1990 /* Override any GCC internal prototype to avoid an error.
1991 Use char because int might match the return type of a GCC
1992 builtin and then its argument prototype would still apply. */
1997 /* The GNU C library defines this for functions which it implements
1998 to always fail with ENOSYS. Some functions are actually named
1999 something starting with __ and the normal name is an alias. */
2000 #if defined __stub_$2 || defined __stub___$2
2012 if ac_fn_c_try_link "$LINENO"; then :
2017 rm -f core conftest.err conftest.$ac_objext \
2018 conftest$ac_exeext conftest.$ac_ext
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025 } # ac_fn_c_check_func
2026 cat >config.log <<_ACEOF
2027 This file contains any messages produced by compilers while
2028 running configure, to aid debugging if configure makes a mistake.
2030 It was created by $as_me, which was
2031 generated by GNU Autoconf 2.69. Invocation command line was
2043 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2044 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2045 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2046 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2047 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2049 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2050 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2052 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2053 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2054 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2055 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2056 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2057 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2058 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 test -z "$as_dir" && as_dir=.
2067 $as_echo "PATH: $as_dir"
2083 # Keep a trace of the command line.
2084 # Strip out --no-create and --no-recursion so they do not pile up.
2085 # Strip out --silent because we don't want to record it for future runs.
2086 # Also quote any args containing shell meta-characters.
2087 # Make two passes to allow for proper duplicate-argument suppression.
2091 ac_must_keep_next=false
2097 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2099 | -silent | --silent | --silen | --sile | --sil)
2102 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2105 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2107 as_fn_append ac_configure_args1 " '$ac_arg'"
2108 if test $ac_must_keep_next = true; then
2109 ac_must_keep_next=false # Got value, back to normal.
2112 *=* | --config-cache | -C | -disable-* | --disable-* \
2113 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2114 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2115 | -with-* | --with-* | -without-* | --without-* | --x)
2116 case "$ac_configure_args0 " in
2117 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2120 -* ) ac_must_keep_next=true ;;
2123 as_fn_append ac_configure_args " '$ac_arg'"
2128 { ac_configure_args0=; unset ac_configure_args0;}
2129 { ac_configure_args1=; unset ac_configure_args1;}
2131 # When interrupted or exit'd, cleanup temporary files, and complete
2132 # config.log. We remove comments because anyway the quotes in there
2133 # would cause problems or look ugly.
2134 # WARNING: Use '\'' to represent an apostrophe within the trap.
2135 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2136 trap 'exit_status=$?
2137 # Save into config.log some information that might help in debugging.
2141 $as_echo "## ---------------- ##
2142 ## Cache variables. ##
2143 ## ---------------- ##"
2145 # The following way of writing the cache mishandles newlines in values,
2147 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2148 eval ac_val=\$$ac_var
2152 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2153 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2156 _ | IFS | as_nl) ;; #(
2157 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2158 *) { eval $ac_var=; unset $ac_var;} ;;
2163 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2164 *${as_nl}ac_space=\ *)
2166 "s/'\''/'\''\\\\'\'''\''/g;
2167 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2170 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2177 $as_echo "## ----------------- ##
2178 ## Output variables. ##
2179 ## ----------------- ##"
2181 for ac_var in $ac_subst_vars
2183 eval ac_val=\$$ac_var
2185 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2187 $as_echo "$ac_var='\''$ac_val'\''"
2191 if test -n "$ac_subst_files"; then
2192 $as_echo "## ------------------- ##
2193 ## File substitutions. ##
2194 ## ------------------- ##"
2196 for ac_var in $ac_subst_files
2198 eval ac_val=\$$ac_var
2200 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2202 $as_echo "$ac_var='\''$ac_val'\''"
2207 if test -s confdefs.h; then
2208 $as_echo "## ----------- ##
2215 test "$ac_signal" != 0 &&
2216 $as_echo "$as_me: caught signal $ac_signal"
2217 $as_echo "$as_me: exit $exit_status"
2219 rm -f core *.core core.conftest.* &&
2220 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2223 for ac_signal in 1 2 13 15; do
2224 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2228 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2229 rm -f -r conftest* confdefs.h
2231 $as_echo "/* confdefs.h */" > confdefs.h
2233 # Predefined preprocessor variables.
2235 cat >>confdefs.h <<_ACEOF
2236 #define PACKAGE_NAME "$PACKAGE_NAME"
2239 cat >>confdefs.h <<_ACEOF
2240 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_STRING "$PACKAGE_STRING"
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2255 cat >>confdefs.h <<_ACEOF
2256 #define PACKAGE_URL "$PACKAGE_URL"
2260 # Let the site file select an alternate cache file if it wants to.
2261 # Prefer an explicitly selected file to automatically selected ones.
2264 if test -n "$CONFIG_SITE"; then
2265 # We do not want a PATH search for config.site.
2266 case $CONFIG_SITE in #((
2267 -*) ac_site_file1=./$CONFIG_SITE;;
2268 */*) ac_site_file1=$CONFIG_SITE;;
2269 *) ac_site_file1=./$CONFIG_SITE;;
2271 elif test "x$prefix" != xNONE; then
2272 ac_site_file1=$prefix/share/config.site
2273 ac_site_file2=$prefix/etc/config.site
2275 ac_site_file1=$ac_default_prefix/share/config.site
2276 ac_site_file2=$ac_default_prefix/etc/config.site
2278 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2280 test "x$ac_site_file" = xNONE && continue
2281 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2283 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2284 sed 's/^/| /' "$ac_site_file" >&5
2286 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2288 as_fn_error $? "failed to load site script $ac_site_file
2289 See \`config.log' for more details" "$LINENO" 5; }
2293 if test -r "$cache_file"; then
2294 # Some versions of bash will fail to source /dev/null (special files
2295 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2296 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2298 $as_echo "$as_me: loading cache $cache_file" >&6;}
2300 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2301 *) . "./$cache_file";;
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2306 $as_echo "$as_me: creating cache $cache_file" >&6;}
2310 as_fn_append ac_header_list " stdlib.h"
2311 as_fn_append ac_header_list " unistd.h"
2312 as_fn_append ac_header_list " sys/param.h"
2313 # Check that the precious variables saved in the cache have kept the same
2315 ac_cache_corrupted=false
2316 for ac_var in $ac_precious_vars; do
2317 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2318 eval ac_new_set=\$ac_env_${ac_var}_set
2319 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2320 eval ac_new_val=\$ac_env_${ac_var}_value
2321 case $ac_old_set,$ac_new_set in
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2324 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2325 ac_cache_corrupted=: ;;
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2328 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2329 ac_cache_corrupted=: ;;
2332 if test "x$ac_old_val" != "x$ac_new_val"; then
2333 # differences in whitespace do not lead to failure.
2334 ac_old_val_w=`echo x $ac_old_val`
2335 ac_new_val_w=`echo x $ac_new_val`
2336 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2338 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2339 ac_cache_corrupted=:
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2342 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2343 eval $ac_var=\$ac_old_val
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2346 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2348 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2351 # Pass precious variables to config.status.
2352 if test "$ac_new_set" = set; then
2354 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2355 *) ac_arg=$ac_var=$ac_new_val ;;
2357 case " $ac_configure_args " in
2358 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2359 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2363 if $ac_cache_corrupted; then
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2367 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2368 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2370 ## -------------------- ##
2371 ## Main body of script. ##
2372 ## -------------------- ##
2375 ac_cpp='$CPP $CPPFLAGS'
2376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2381 ac_config_headers="$ac_config_headers config.h"
2384 echo "current directory: `pwd`"
2385 echo "command line was: $0 $@"
2387 ###############################################################################
2391 ###############################################################################
2399 # This only ever existed in X11R4 and X11R5.
2400 #AH_TEMPLATE([HAVE_XIDLE_EXTENSION],
2401 # [Define this if you have the XIDLE extension installed. If you
2402 # have the XIDLE extension, this is recommended. (You have this
2403 # extension if the file /usr/include/X11/extensions/xidle.h
2404 # exists.) Turning on this flag lets XScreenSaver work better with
2405 # servers which support this extension; but it will still work
2406 # with servers which do not suport it, so it's a good idea to
2407 # compile in support for it if you can.])
2409 # Using this extension will crash your X server and make fading not work.
2410 #AH_TEMPLATE([HAVE_MIT_SAVER_EXTENSION],
2411 # [Define this if you have the MIT-SCREEN-SAVER extension
2412 # installed. See the caveats about this extension, above.
2413 # (It's available if /usr/include/X11/extensions/scrnsaver.h
2416 # This only ever existed on SGI hardware.
2417 #AH_TEMPLATE([HAVE_SGI_SAVER_EXTENSION],
2418 # [Define this if you have the SGI SCREEN_SAVER extension. This is
2419 # standard on Irix systems, and not available elsewhere.])
2421 # This only ever existed on SGI hardware.
2422 #AH_TEMPLATE([HAVE_SGI_VC_EXTENSION],
2423 # [Define this if you have the SGI-VIDEO-CONTROL extension. This
2424 # is standard on Irix systems, and not available elsewhere.])
2537 # After checking to see that --srcdir is correct (which AC_INIT does)
2538 # check for some random other files that come later in the tar file,
2539 # to make sure everything is here.
2541 for d in driver utils hacks hacks/glx ; do
2542 f=$srcdir/$d/Makefile.in
2543 if test \! -r $f ; then
2545 echo "ERROR: The package is incomplete: $f does not exist."
2546 echo " This probably means that your download was truncated."
2552 ###############################################################################
2554 # Function to figure out how to run the compiler.
2556 ###############################################################################
2561 ###############################################################################
2563 # Check for availability of various gcc command-line options.
2565 ###############################################################################
2573 # Need to disable Objective C extensions in ANSI C on MacOS X to work
2574 # around an Apple-specific gcc bug.
2578 ###############################################################################
2580 # Function to figure out how to disable // comments in ANSI C code.
2582 # (With recent gcc, this is done with "-std=c89". With older gcc, this
2583 # is done by passing "-lang-c89" to cpp, by passing "-Wp,-lang-c89" to
2584 # gcc. Old gcc doesn't support -std, and new gcc doesn't support -lang.
2585 # so much for compatibility!)
2587 # UPDATE: apparently there is NO WAY to tell gcc 3.2.2 to require that
2588 # declarations preceed statements, without resorting to "-pedantic".
2589 # This means that there is no way to get gcc3 to issue warnings that
2590 # ensure that your code complies with the ANSI/ISO C89 standard, without
2591 # also drowning in totally useless warnings. Thank you master may I
2594 # So, I give up, let's just use -pedantic.
2596 ###############################################################################
2603 ###############################################################################
2605 # Function to figure out how to create directory trees.
2607 ###############################################################################
2612 ###############################################################################
2614 # Function to check whether gettimeofday() exists, and how to call it.
2615 # This may define HAVE_GETTIMEOFDAY and GETTIMEOFDAY_TWO_ARGS.
2617 ###############################################################################
2622 ###############################################################################
2624 # Function to find perl5 (defines PERL and PERL_VERSION.)
2626 ###############################################################################
2628 # M4 sucks!! perl sucks too!!
2630 perl_version_cmd='print $]'
2636 ###############################################################################
2638 # Function to demand "bc". Losers.
2640 ###############################################################################
2644 ###############################################################################
2646 # Functions to check how to do ICMP PING requests.
2648 ###############################################################################
2655 ###############################################################################
2657 # Functions to check for various X11 crap.
2659 ###############################################################################
2661 # Try and find the app-defaults directory.
2662 # It sucks that autoconf doesn't do this already...
2666 ###############################################################################
2668 # Handle the --with-x-app-defaults option HERE
2670 ###############################################################################
2673 # Check whether --with-x-app-defaults was given.
2674 if test "${with_x_app_defaults+set}" = set; then :
2675 withval=$with_x_app_defaults; ac_cv_x_app_defaults="$withval"
2677 eval ac_x_app_defaults="$withval"
2690 # Random special-cases for X on certain pathological OSes.
2691 # You know who you are.
2698 ###############################################################################
2700 # Some utility functions to make checking for X things easier.
2702 ###############################################################################
2704 # Like AC_CHECK_HEADER, but it uses the already-computed -I directories.
2708 # Like AC_EGREP_HEADER, but it uses the already-computed -I directories.
2712 # Like AC_TRY_COMPILE, but it uses the already-computed -I directories.
2717 # Like AC_CHECK_LIB, but it uses the already-computed -I and -L directories.
2718 # Use this sparingly; it probably doesn't work very well on X programs.
2722 # Like AC_TRY_RUN, but it uses the already-computed -I directories.
2723 # (But not the -L directories!)
2729 # Usage: HANDLE_X_PATH_ARG([variable_name],
2730 # [--command-line-option],
2731 # [descriptive string])
2733 # All of the --with options take three forms:
2735 # --with-foo (or --with-foo=yes)
2736 # --without-foo (or --with-foo=no)
2739 # This function, HANDLE_X_PATH_ARG, deals with the /DIR case. When it sees
2740 # a directory (string beginning with a slash) it checks to see whether
2741 # /DIR/include and /DIR/lib exist, and adds them to $X_CFLAGS and $X_LIBS
2748 ###############################################################################
2749 ###############################################################################
2751 # End of function definitions. Now start actually executing stuff.
2753 ###############################################################################
2754 ###############################################################################
2756 # WTF! autoconf emits this *way* too late. Do it earlier.
2757 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2758 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2761 # random compiler setup
2763 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2764 if test -f "$ac_dir/install-sh"; then
2766 ac_install_sh="$ac_aux_dir/install-sh -c"
2768 elif test -f "$ac_dir/install.sh"; then
2770 ac_install_sh="$ac_aux_dir/install.sh -c"
2772 elif test -f "$ac_dir/shtool"; then
2774 ac_install_sh="$ac_aux_dir/shtool install -c"
2778 if test -z "$ac_aux_dir"; then
2779 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2782 # These three variables are undocumented and unsupported,
2783 # and are intended to be withdrawn in a future Autoconf release.
2784 # They can cause serious problems if a builder's source tree is in a directory
2785 # whose full name contains unusual characters.
2786 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2787 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2788 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2791 # Make sure we can run config.sub.
2792 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2793 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2796 $as_echo_n "checking build system type... " >&6; }
2797 if ${ac_cv_build+:} false; then :
2798 $as_echo_n "(cached) " >&6
2800 ac_build_alias=$build_alias
2801 test "x$ac_build_alias" = x &&
2802 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2803 test "x$ac_build_alias" = x &&
2804 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2805 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2806 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2810 $as_echo "$ac_cv_build" >&6; }
2811 case $ac_cv_build in
2813 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2816 ac_save_IFS=$IFS; IFS='-'
2822 # Remember, the first character of IFS is used to create $*,
2823 # except with old shells:
2826 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2830 $as_echo_n "checking host system type... " >&6; }
2831 if ${ac_cv_host+:} false; then :
2832 $as_echo_n "(cached) " >&6
2834 if test "x$host_alias" = x; then
2835 ac_cv_host=$ac_cv_build
2837 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2838 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2843 $as_echo "$ac_cv_host" >&6; }
2846 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2849 ac_save_IFS=$IFS; IFS='-'
2855 # Remember, the first character of IFS is used to create $*,
2856 # except with old shells:
2859 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2863 ac_cpp='$CPP $CPPFLAGS'
2864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867 if test -n "$ac_tool_prefix"; then
2868 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2869 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871 $as_echo_n "checking for $ac_word... " >&6; }
2872 if ${ac_cv_prog_CC+:} false; then :
2873 $as_echo_n "(cached) " >&6
2875 if test -n "$CC"; then
2876 ac_cv_prog_CC="$CC" # Let the user override the test.
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 if test -n "$CC"; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2898 $as_echo "$CC" >&6; }
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2906 if test -z "$ac_cv_prog_CC"; then
2908 # Extract the first word of "gcc", so it can be a program name with args.
2909 set dummy gcc; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2913 $as_echo_n "(cached) " >&6
2915 if test -n "$ac_ct_CC"; then
2916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_ac_ct_CC="gcc"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2936 if test -n "$ac_ct_CC"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2938 $as_echo "$ac_ct_CC" >&6; }
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2944 if test "x$ac_ct_CC" = x; then
2947 case $cross_compiling:$ac_tool_warned in
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2951 ac_tool_warned=yes ;;
2959 if test -z "$CC"; then
2960 if test -n "$ac_tool_prefix"; then
2961 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2962 set dummy ${ac_tool_prefix}cc; ac_word=$2
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if ${ac_cv_prog_CC+:} false; then :
2966 $as_echo_n "(cached) " >&6
2968 if test -n "$CC"; then
2969 ac_cv_prog_CC="$CC" # Let the user override the test.
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 test -z "$as_dir" && as_dir=.
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2978 ac_cv_prog_CC="${ac_tool_prefix}cc"
2979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 if test -n "$CC"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2991 $as_echo "$CC" >&6; }
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 $as_echo "no" >&6; }
3000 if test -z "$CC"; then
3001 # Extract the first word of "cc", so it can be a program name with args.
3002 set dummy cc; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if ${ac_cv_prog_CC+:} false; then :
3006 $as_echo_n "(cached) " >&6
3008 if test -n "$CC"; then
3009 ac_cv_prog_CC="$CC" # Let the user override the test.
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3020 ac_prog_rejected=yes
3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 if test $ac_prog_rejected = yes; then
3032 # We found a bogon in the path, so make sure we never use it.
3033 set dummy $ac_cv_prog_CC
3035 if test $# != 0; then
3036 # We chose a different compiler from the bogus one.
3037 # However, it has the same basename, so the bogon will be chosen
3038 # first if we set CC to just the basename; use the full file name.
3040 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3046 if test -n "$CC"; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3048 $as_echo "$CC" >&6; }
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051 $as_echo "no" >&6; }
3056 if test -z "$CC"; then
3057 if test -n "$ac_tool_prefix"; then
3058 for ac_prog in cl.exe
3060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3061 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if ${ac_cv_prog_CC+:} false; then :
3065 $as_echo_n "(cached) " >&6
3067 if test -n "$CC"; then
3068 ac_cv_prog_CC="$CC" # Let the user override the test.
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 if test -n "$CC"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3090 $as_echo "$CC" >&6; }
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3097 test -n "$CC" && break
3100 if test -z "$CC"; then
3102 for ac_prog in cl.exe
3104 # Extract the first word of "$ac_prog", so it can be a program name with args.
3105 set dummy $ac_prog; ac_word=$2
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107 $as_echo_n "checking for $ac_word... " >&6; }
3108 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3109 $as_echo_n "(cached) " >&6
3111 if test -n "$ac_ct_CC"; then
3112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121 ac_cv_prog_ac_ct_CC="$ac_prog"
3122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3132 if test -n "$ac_ct_CC"; then
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3134 $as_echo "$ac_ct_CC" >&6; }
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137 $as_echo "no" >&6; }
3141 test -n "$ac_ct_CC" && break
3144 if test "x$ac_ct_CC" = x; then
3147 case $cross_compiling:$ac_tool_warned in
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3151 ac_tool_warned=yes ;;
3160 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3162 as_fn_error $? "no acceptable C compiler found in \$PATH
3163 See \`config.log' for more details" "$LINENO" 5; }
3165 # Provide some information about the compiler.
3166 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3169 for ac_option in --version -v -V -qversion; do
3170 { { ac_try="$ac_compiler $ac_option >&5"
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3176 $as_echo "$ac_try_echo"; } >&5
3177 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3179 if test -s conftest.err; then
3181 ... rest of stderr output deleted ...
3182 10q' conftest.err >conftest.er1
3183 cat conftest.er1 >&5
3185 rm -rf conftest.er1 conftest.err
3186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187 test $ac_status = 0; }
3190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191 /* end confdefs.h. */
3201 ac_clean_files_save=$ac_clean_files
3202 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3203 # Try to create an executable without -o first, disregard a.out.
3204 # It will help us diagnose broken compilers, and finding out an intuition
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3207 $as_echo_n "checking whether the C compiler works... " >&6; }
3208 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3210 # The possible output files:
3211 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3214 for ac_file in $ac_files
3217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3218 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3223 if { { ac_try="$ac_link_default"
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3229 $as_echo "$ac_try_echo"; } >&5
3230 (eval "$ac_link_default") 2>&5
3232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3233 test $ac_status = 0; }; then :
3234 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3235 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3236 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3237 # so that the user can short-circuit this test for compilers unknown to
3239 for ac_file in $ac_files ''
3241 test -f "$ac_file" || continue
3243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3246 # We found the default executable, but exeext='' is most
3250 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3252 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3254 # We set ac_cv_exeext here because the later test for it is not
3255 # safe: cross compilers may not add the suffix if given an `-o'
3256 # argument, so we may need to know it at that point already.
3257 # Even if this section looks crufty: it has the advantage of
3264 test "$ac_cv_exeext" = no && ac_cv_exeext=
3269 if test -z "$ac_file"; then :
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3272 $as_echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277 as_fn_error 77 "C compiler cannot create executables
3278 See \`config.log' for more details" "$LINENO" 5; }
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3281 $as_echo "yes" >&6; }
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3284 $as_echo_n "checking for C compiler default output file name... " >&6; }
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3286 $as_echo "$ac_file" >&6; }
3287 ac_exeext=$ac_cv_exeext
3289 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3290 ac_clean_files=$ac_clean_files_save
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3292 $as_echo_n "checking for suffix of executables... " >&6; }
3293 if { { ac_try="$ac_link"
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3299 $as_echo "$ac_try_echo"; } >&5
3300 (eval "$ac_link") 2>&5
3302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3303 test $ac_status = 0; }; then :
3304 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3305 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3306 # work properly (i.e., refer to `conftest.exe'), while it won't with
3308 for ac_file in conftest.exe conftest conftest.*; do
3309 test -f "$ac_file" || continue
3311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3312 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3321 See \`config.log' for more details" "$LINENO" 5; }
3323 rm -rf conftest conftest$ac_cv_exeext
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3325 $as_echo "$ac_cv_exeext" >&6; }
3327 rm -rf conftest.$ac_ext
3328 EXEEXT=$ac_cv_exeext
3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331 /* end confdefs.h. */
3336 FILE *f = fopen ("conftest.out", "w");
3337 return ferror (f) || fclose (f) != 0;
3343 ac_clean_files="$ac_clean_files conftest.out"
3344 # Check that the compiler produces executables we can run. If not, either
3345 # the compiler is broken, or we cross compile.
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3347 $as_echo_n "checking whether we are cross compiling... " >&6; }
3348 if test "$cross_compiling" != yes; then
3349 { { ac_try="$ac_link"
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3355 $as_echo "$ac_try_echo"; } >&5
3356 (eval "$ac_link") 2>&5
3358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3359 test $ac_status = 0; }
3360 if { ac_try='./conftest$ac_cv_exeext'
3361 { { case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3366 $as_echo "$ac_try_echo"; } >&5
3367 (eval "$ac_try") 2>&5
3369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3370 test $ac_status = 0; }; }; then
3373 if test "$cross_compiling" = maybe; then
3376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378 as_fn_error $? "cannot run C compiled programs.
3379 If you meant to cross compile, use \`--host'.
3380 See \`config.log' for more details" "$LINENO" 5; }
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3385 $as_echo "$cross_compiling" >&6; }
3387 rm -rf conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3388 ac_clean_files=$ac_clean_files_save
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3390 $as_echo_n "checking for suffix of object files... " >&6; }
3391 if ${ac_cv_objext+:} false; then :
3392 $as_echo_n "(cached) " >&6
3394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395 /* end confdefs.h. */
3405 rm -rf conftest.o conftest.obj
3406 if { { ac_try="$ac_compile"
3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409 *) ac_try_echo=$ac_try;;
3411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3412 $as_echo "$ac_try_echo"; } >&5
3413 (eval "$ac_compile") 2>&5
3415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3416 test $ac_status = 0; }; then :
3417 for ac_file in conftest.o conftest.obj conftest.*; do
3418 test -f "$ac_file" || continue;
3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3421 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3426 $as_echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431 as_fn_error $? "cannot compute suffix of object files: cannot compile
3432 See \`config.log' for more details" "$LINENO" 5; }
3434 rm -rf conftest.$ac_cv_objext conftest.$ac_ext
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3437 $as_echo "$ac_cv_objext" >&6; }
3438 OBJEXT=$ac_cv_objext
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3441 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3442 if ${ac_cv_c_compiler_gnu+:} false; then :
3443 $as_echo_n "(cached) " >&6
3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h. */
3459 if ac_fn_c_try_compile "$LINENO"; then :
3464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3465 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3469 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3470 if test $ac_compiler_gnu = yes; then
3475 ac_test_CFLAGS=${CFLAGS+set}
3476 ac_save_CFLAGS=$CFLAGS
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3478 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3479 if ${ac_cv_prog_cc_g+:} false; then :
3480 $as_echo_n "(cached) " >&6
3482 ac_save_c_werror_flag=$ac_c_werror_flag
3483 ac_c_werror_flag=yes
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3497 if ac_fn_c_try_compile "$LINENO"; then :
3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502 /* end confdefs.h. */
3512 if ac_fn_c_try_compile "$LINENO"; then :
3515 ac_c_werror_flag=$ac_save_c_werror_flag
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3528 if ac_fn_c_try_compile "$LINENO"; then :
3531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536 ac_c_werror_flag=$ac_save_c_werror_flag
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3539 $as_echo "$ac_cv_prog_cc_g" >&6; }
3540 if test "$ac_test_CFLAGS" = set; then
3541 CFLAGS=$ac_save_CFLAGS
3542 elif test $ac_cv_prog_cc_g = yes; then
3543 if test "$GCC" = yes; then
3549 if test "$GCC" = yes; then
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3556 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3557 if ${ac_cv_prog_cc_c89+:} false; then :
3558 $as_echo_n "(cached) " >&6
3560 ac_cv_prog_cc_c89=no
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h. */
3567 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3568 struct buf { int x; };
3569 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3570 static char *e (p, i)
3576 static char *f (char * (*g) (char **, int), char **p, ...)
3581 s = g (p, va_arg (v,int));
3586 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3587 function prototypes and stuff, but not '\xHH' hex character constants.
3588 These don't provoke an error unfortunately, instead are silently treated
3589 as 'x'. The following induces an error, until -std is added to get
3590 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3591 array size at least. It's necessary to write '\x00'==0 to get something
3592 that's true only with -std. */
3593 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3595 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3596 inside strings and character constants. */
3598 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3600 int test (int i, double x);
3601 struct s1 {int (*f) (int a);};
3602 struct s2 {int (*f) (double a);};
3603 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3609 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3614 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3615 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3617 CC="$ac_save_CC $ac_arg"
3618 if ac_fn_c_try_compile "$LINENO"; then :
3619 ac_cv_prog_cc_c89=$ac_arg
3621 rm -f core conftest.err conftest.$ac_objext
3622 test "x$ac_cv_prog_cc_c89" != "xno" && break
3624 rm -rf conftest.$ac_ext
3629 case "x$ac_cv_prog_cc_c89" in
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3632 $as_echo "none needed" >&6; } ;;
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3635 $as_echo "unsupported" >&6; } ;;
3637 CC="$CC $ac_cv_prog_cc_c89"
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3639 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3641 if test "x$ac_cv_prog_cc_c89" != xno; then :
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3654 if test -z "$GCC"; then
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to request ANSI compilation" >&5
3657 $as_echo_n "checking how to request ANSI compilation... " >&6; }
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HPUX: adding -Ae" >&5
3661 $as_echo "HPUX: adding -Ae" >&6; }
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX: adding -qlanglvl=ansi -qhalt=e" >&5
3666 $as_echo "AIX: adding -qlanglvl=ansi -qhalt=e" >&6; }
3667 CC="$CC -qlanglvl=ansi -qhalt=e"
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DEC: adding -std1 -ieee" >&5
3671 $as_echo "DEC: adding -std1 -ieee" >&6; }
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no idea" >&5
3676 $as_echo "no idea" >&6; }
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris: adding -D__EXTENSIONS__" >&5
3684 $as_echo "Solaris: adding -D__EXTENSIONS__" >&6; }
3685 CC="$CC -D__EXTENSIONS__"
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler works on ANSI C" >&5
3693 $as_echo_n "checking whether the compiler works on ANSI C... " >&6; }
3694 if test "$cross_compiling" = yes; then :
3695 as_fn_error $? "Couldn't build even a trivial ANSI C program: check CC." "$LINENO" 5
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3699 main(int ac, char **av) { return 0; }
3701 if ac_fn_c_try_run "$LINENO"; then :
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3703 $as_echo "yes" >&6; }
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3706 $as_echo "no" >&6; }
3707 as_fn_error $? "Couldn't build even a trivial ANSI C program: check CC." "$LINENO" 5
3709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3710 conftest.$ac_objext conftest.beam conftest.$ac_ext
3714 if test -n "$GCC"; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Turning on gcc compiler warnings." >&5
3716 $as_echo "Turning on gcc compiler warnings." >&6; }
3717 CC="$CC -pedantic -Wall -Wstrict-prototypes -Wnested-externs -Wmissing-prototypes"
3718 OBJCC="$OBJCC -Wall"
3719 # As of gcc 3.4, we have "-Wdeclaration-after-statement"
3720 # and so perhaps now we can do without -pedantic?
3723 *-irix5* |*-irix6.0-3* )
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Turning on SGI compiler warnings." >&5
3725 $as_echo "Turning on SGI compiler warnings." >&6; }
3726 CC="$CC -fullwarn -use_readonly_const -rdata_shared -g3"
3729 # if test -z "$GCC"; then
3730 # AC_MSG_RESULT(Turning on DEC C compiler warnings.)
3731 # CC="$CC -migrate -w0 -verbose -warnprotos"
3737 if test -n "$GCC"; then
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wno-overlength-strings" >&5
3739 $as_echo_n "checking whether gcc accepts -Wno-overlength-strings... " >&6; }
3740 if ${ac_cv_gcc_accepts_no_overlength+:} false; then :
3741 $as_echo_n "(cached) " >&6
3743 rm -rf conftest.$ac_ext
3744 touch conftest.$ac_ext
3745 if ( ( gcc -c -Wno-overlength-strings conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3746 grep unrecognized >/dev/null ); then
3747 ac_cv_gcc_accepts_no_overlength=no
3749 ac_cv_gcc_accepts_no_overlength=yes
3750 CC="$CC -Wno-overlength-strings"
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_accepts_no_overlength" >&5
3754 $as_echo "$ac_cv_gcc_accepts_no_overlength" >&6; }
3755 ac_gcc_accepts_no_overlength="$ac_cv_gcc_accepts_no_overlength"
3758 if test -n "$GCC"; then
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wdeclaration-after-statement" >&5
3760 $as_echo_n "checking whether gcc accepts -Wdeclaration-after-statement... " >&6; }
3761 if ${ac_cv_gcc_accepts_no_decl_after+:} false; then :
3762 $as_echo_n "(cached) " >&6
3764 rm -rf conftest.$ac_ext
3765 touch conftest.$ac_ext
3766 if ( ( gcc -c -Wdeclaration-after-statement conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3767 grep unrecognized >/dev/null ); then
3768 ac_cv_gcc_accepts_no_decl_after=no
3770 ac_cv_gcc_accepts_no_decl_after=yes
3771 CC="$CC -Wdeclaration-after-statement"
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_accepts_no_decl_after" >&5
3775 $as_echo "$ac_cv_gcc_accepts_no_decl_after" >&6; }
3776 ac_gcc_accepts_no_decl_after="$ac_cv_gcc_accepts_no_decl_after"
3779 if test -n "$GCC"; then
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -no-cpp-precomp" >&5
3781 $as_echo_n "checking whether gcc accepts -no-cpp-precomp... " >&6; }
3782 if ${ac_cv_gcc_accepts_no_cpp_precomp+:} false; then :
3783 $as_echo_n "(cached) " >&6
3785 rm -rf conftest.$ac_ext
3786 touch conftest.$ac_ext
3787 if ( ( gcc -c -no-cpp-precomp conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3788 grep unrecognized >/dev/null ); then
3789 ac_cv_gcc_accepts_no_cpp_precomp=no
3791 ac_cv_gcc_accepts_no_cpp_precomp=yes
3792 CC="$CC -no-cpp-precomp"
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_accepts_no_cpp_precomp" >&5
3796 $as_echo "$ac_cv_gcc_accepts_no_cpp_precomp" >&6; }
3797 ac_gcc_accepts_no_cpp_precomp="$ac_cv_gcc_accepts_no_cpp_precomp"
3800 if test -n "$GCC"; then
3804 # Fucking Apple let // comments sneak into OpenGL headers, so
3805 # we *must* allow // comments when compiling on Mac OS 10.6! FUCK!
3808 if test -n "$GCC"; then
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -std=c89" >&5
3810 $as_echo_n "checking whether gcc accepts -std=c89... " >&6; }
3811 if ${ac_cv_gcc_accepts_std+:} false; then :
3812 $as_echo_n "(cached) " >&6
3814 rm -rf conftest.$ac_ext
3815 touch conftest.$ac_ext
3816 if ( ( gcc -c -std=c89 conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3817 grep unrecognized >/dev/null ); then
3818 ac_cv_gcc_accepts_std=no
3820 ac_cv_gcc_accepts_std=yes
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_accepts_std" >&5
3825 $as_echo "$ac_cv_gcc_accepts_std" >&6; }
3826 ac_gcc_accepts_std="$ac_cv_gcc_accepts_std"
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling C++ comments in ANSI C code." >&5
3833 $as_echo "Disabling C++ comments in ANSI C code." >&6; }
3835 # The reason that // comments are banned from xscreensaver is that gcc is
3836 # basically the only compiler in the world that supports them in C code.
3837 # All other vendors support them only in their C++ compilers, not in their
3838 # ANSI C compilers. This means that it's a portability problem: every time
3839 # these comments have snuck into the xscreensaver source code, I've gotten
3840 # complaints about it the next day. So we turn off support for them in gcc
3841 # as well to prevent them from accidentially slipping in.
3843 if test "$ac_gcc_accepts_std" = yes ; then
3845 # -std=c89 defines __STRICT_ANSI__, which we don't want.
3846 # (That appears to be the only additional preprocessor symbol
3847 # it defines, in addition to the syntax changes it makes.)
3849 # -std=gnu89 is no good, because // comments were a GNU extension
3850 # before they were in the ANSI C 99 spec... (gcc 2.96 permits //
3851 # with -std=gnu89 but not with -std=c89.)
3853 # $CC already contains "-std=c89" via AC_GCC_ACCEPTS_STD
3854 CC="$CC -U__STRICT_ANSI__"
3857 # CC="$CC -Wp,-lang-c89"
3862 ac_cpp='$CPP $CPPFLAGS'
3863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3867 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3868 # On Suns, sometimes $CPP names a directory.
3869 if test -n "$CPP" && test -d "$CPP"; then
3872 if test -z "$CPP"; then
3873 if ${ac_cv_prog_CPP+:} false; then :
3874 $as_echo_n "(cached) " >&6
3876 # Double quotes because CPP needs to be expanded
3877 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3880 for ac_c_preproc_warn_flag in '' yes
3882 # Use a header file that comes with gcc, so configuring glibc
3883 # with a fresh cross-compiler works.
3884 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3885 # <limits.h> exists even on freestanding compilers.
3886 # On the NeXT, cc -E runs the code through the compiler's parser,
3887 # not just through cpp. "Syntax error" is here to catch this case.
3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h. */
3891 # include <limits.h>
3893 # include <assert.h>
3897 if ac_fn_c_try_cpp "$LINENO"; then :
3900 # Broken: fails on valid input.
3903 rm -rf conftest.err conftest.i conftest.$ac_ext
3905 # OK, works on sane cases. Now check whether nonexistent headers
3906 # can be detected and how.
3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3909 #include <ac_nonexistent.h>
3911 if ac_fn_c_try_cpp "$LINENO"; then :
3912 # Broken: success on invalid input.
3915 # Passes both tests.
3919 rm -rf conftest.err conftest.i conftest.$ac_ext
3922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3923 rm -rf conftest.i conftest.err conftest.$ac_ext
3924 if $ac_preproc_ok; then :
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3937 $as_echo "$CPP" >&6; }
3939 for ac_c_preproc_warn_flag in '' yes
3941 # Use a header file that comes with gcc, so configuring glibc
3942 # with a fresh cross-compiler works.
3943 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3944 # <limits.h> exists even on freestanding compilers.
3945 # On the NeXT, cc -E runs the code through the compiler's parser,
3946 # not just through cpp. "Syntax error" is here to catch this case.
3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h. */
3950 # include <limits.h>
3952 # include <assert.h>
3956 if ac_fn_c_try_cpp "$LINENO"; then :
3959 # Broken: fails on valid input.
3962 rm -rf conftest.err conftest.i conftest.$ac_ext
3964 # OK, works on sane cases. Now check whether nonexistent headers
3965 # can be detected and how.
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h. */
3968 #include <ac_nonexistent.h>
3970 if ac_fn_c_try_cpp "$LINENO"; then :
3971 # Broken: success on invalid input.
3974 # Passes both tests.
3978 rm -rf conftest.err conftest.i conftest.$ac_ext
3981 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3982 rm -rf conftest.i conftest.err conftest.$ac_ext
3983 if $ac_preproc_ok; then :
3986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3988 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3989 See \`config.log' for more details" "$LINENO" 5; }
3993 ac_cpp='$CPP $CPPFLAGS'
3994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3999 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4000 if ${ac_cv_c_const+:} false; then :
4001 $as_echo_n "(cached) " >&6
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4011 /* Ultrix mips cc rejects this sort of thing. */
4012 typedef int charset[2];
4013 const charset cs = { 0, 0 };
4014 /* SunOS 4.1.1 cc rejects this. */
4015 char const *const *pcpcc;
4017 /* NEC SVR4.0.2 mips cc rejects this. */
4018 struct point {int x, y;};
4019 static struct point const zero = {0,0};
4020 /* AIX XL C 1.02.0.0 rejects this.
4021 It does not let you subtract one const X* pointer from another in
4022 an arm of an if-expression whose if-part is not a constant
4024 const char *g = "string";
4025 pcpcc = &g + (g ? g-g : 0);
4026 /* HPUX 7.0 cc rejects these. */
4028 ppc = (char**) pcpcc;
4029 pcpcc = (char const *const *) ppc;
4030 { /* SCO 3.2v4 cc rejects this sort of thing. */
4033 char const *s = 0 ? (char *) 0 : (char const *) 0;
4038 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4040 const int *foo = &x[0];
4043 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4044 typedef const int *iptr;
4048 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4049 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4050 struct s { int j; const int *ap[3]; } bx;
4051 struct s *b = &bx; b->j = 5;
4053 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4057 return !cs[0] && !zero.x;
4064 if ac_fn_c_try_compile "$LINENO"; then :
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4072 $as_echo "$ac_cv_c_const" >&6; }
4073 if test $ac_cv_c_const = no; then
4075 $as_echo "#define const /**/" >>confdefs.h
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4080 $as_echo_n "checking for inline... " >&6; }
4081 if ${ac_cv_c_inline+:} false; then :
4082 $as_echo_n "(cached) " >&6
4085 for ac_kw in inline __inline__ __inline; do
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4090 static $ac_kw foo_t static_foo () {return 0; }
4091 $ac_kw foo_t foo () {return 0; }
4095 if ac_fn_c_try_compile "$LINENO"; then :
4096 ac_cv_c_inline=$ac_kw
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 test "$ac_cv_c_inline" != no && break
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4104 $as_echo "$ac_cv_c_inline" >&6; }
4106 case $ac_cv_c_inline in
4109 case $ac_cv_c_inline in
4111 *) ac_val=$ac_cv_c_inline;;
4113 cat >>confdefs.h <<_ACEOF
4115 #define inline $ac_val
4122 ac_bc_result=`echo 6+9 | bc 2>/dev/null`
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bc" >&5
4124 $as_echo_n "checking for bc... " >&6; }
4125 if test "$ac_bc_result" = "15" ; then
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4127 $as_echo "yes" >&6; }
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130 $as_echo "no" >&6; }
4132 as_fn_error $? "Your system doesn't have \"bc\", which has been a standard
4133 part of Unix since the 1970s. Come back when your vendor
4134 has grown a clue." "$LINENO" 5
4138 # stuff for Makefiles
4139 # Find a good install program. We prefer a C program (faster),
4140 # so one script is as good as another. But avoid the broken or
4141 # incompatible versions:
4142 # SysV /etc/install, /usr/sbin/install
4143 # SunOS /usr/etc/install
4144 # IRIX /sbin/install
4146 # AmigaOS /C/install, which installs bootblocks on floppy discs
4147 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4148 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4149 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4150 # OS/2's system install, which has a completely different semantic
4151 # ./install, which can be erroneously created by make from ./install.sh.
4152 # Reject install programs that cannot install multiple files.
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4154 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4155 if test -z "$INSTALL"; then
4156 if ${ac_cv_path_install+:} false; then :
4157 $as_echo_n "(cached) " >&6
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 test -z "$as_dir" && as_dir=.
4164 # Account for people who put trailing slashes in PATH elements.
4165 case $as_dir/ in #((
4166 ./ | .// | /[cC]/* | \
4167 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4168 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4171 # OSF1 and SCO ODT 3.0 have their own names for install.
4172 # Don't use installbsd from OSF since it installs stuff as root
4174 for ac_prog in ginstall scoinst install; do
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4177 if test $ac_prog = install &&
4178 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4179 # AIX install. It has an incompatible calling convention.
4181 elif test $ac_prog = install &&
4182 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4183 # program-specific install script used by HP pwplus--don't use.
4186 rm -rf conftest.one conftest.two conftest.dir
4187 echo one > conftest.one
4188 echo two > conftest.two
4190 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4191 test -s conftest.one && test -s conftest.two &&
4192 test -s conftest.dir/conftest.one &&
4193 test -s conftest.dir/conftest.two
4195 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4208 rm -rf conftest.one conftest.two conftest.dir
4211 if test "${ac_cv_path_install+set}" = set; then
4212 INSTALL=$ac_cv_path_install
4214 # As a last resort, use the slow shell script. Don't cache a
4215 # value for INSTALL within a source directory, because that will
4216 # break other packages using the cache if that directory is
4217 # removed, or if the value is a relative name.
4218 INSTALL=$ac_install_sh
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4222 $as_echo "$INSTALL" >&6; }
4224 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4225 # It thinks the first close brace ends the variable substitution.
4226 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4228 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4230 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \"\${INSTALL} -d\" creates intermediate directories" >&5
4233 $as_echo_n "checking whether \"\${INSTALL} -d\" creates intermediate directories... " >&6; }
4234 if ${ac_cv_install_d_creates_dirs+:} false; then :
4235 $as_echo_n "(cached) " >&6
4237 ac_cv_install_d_creates_dirs=no
4239 if mkdir conftestdir; then
4240 cd conftestdir 2>/dev/null
4241 ${INSTALL} -d `pwd`/dir1/dir2 >/dev/null 2>&1
4242 if test -d dir1/dir2/. ; then
4243 ac_cv_install_d_creates_dirs=yes
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_install_d_creates_dirs" >&5
4251 $as_echo "$ac_cv_install_d_creates_dirs" >&6; }
4253 if test "$ac_cv_install_d_creates_dirs" = no ; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \"mkdir -p\" creates intermediate directories" >&5
4255 $as_echo_n "checking whether \"mkdir -p\" creates intermediate directories... " >&6; }
4256 if ${ac_cv_mkdir_p_creates_dirs+:} false; then :
4257 $as_echo_n "(cached) " >&6
4259 ac_cv_mkdir_p_creates_dirs=no
4261 if mkdir conftestdir; then
4262 cd conftestdir 2>/dev/null
4263 mkdir -p dir1/dir2 >/dev/null 2>&1
4264 if test -d dir1/dir2/. ; then
4265 ac_cv_mkdir_p_creates_dirs=yes
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_p_creates_dirs" >&5
4273 $as_echo "$ac_cv_mkdir_p_creates_dirs" >&6; }
4276 if test "$ac_cv_install_d_creates_dirs" = yes ; then
4277 INSTALL_DIRS='${INSTALL} -d'
4278 elif test "$ac_cv_mkdir_p_creates_dirs" = yes ; then
4279 INSTALL_DIRS='mkdir -p'
4282 INSTALL_DIRS='${INSTALL} -d'
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4286 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4288 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4289 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4290 $as_echo_n "(cached) " >&6
4292 cat >conftest.make <<\_ACEOF
4295 @echo '@@@%%%=$(MAKE)=@@@%%%'
4297 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4298 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4300 eval ac_cv_prog_make_${ac_make}_set=yes;;
4302 eval ac_cv_prog_make_${ac_make}_set=no;;
4304 rm -rf conftest.make
4306 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4308 $as_echo "yes" >&6; }
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4312 $as_echo "no" >&6; }
4313 SET_MAKE="MAKE=${MAKE-make}"
4317 # By default, autoconf sets INSTALL_SCRIPT to '${INSTALL_PROGRAM}'.
4318 # That's wrong: it should be set to '${INSTALL}', so that one can
4319 # implement the "install-strip" target properly (strip executables,
4320 # but do not try to strip scripts.)
4322 INSTALL_SCRIPT='${INSTALL}'
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4327 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4328 if ${ac_cv_path_GREP+:} false; then :
4329 $as_echo_n "(cached) " >&6
4331 if test -z "$GREP"; then
4332 ac_path_GREP_found=false
4333 # Loop through the user's path and test for each of PROGNAME-LIST
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4338 test -z "$as_dir" && as_dir=.
4339 for ac_prog in grep ggrep; do
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4342 as_fn_executable_p "$ac_path_GREP" || continue
4343 # Check for GNU ac_path_GREP and select it if it is found.
4344 # Check for GNU $ac_path_GREP
4345 case `"$ac_path_GREP" --version 2>&1` in
4347 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4350 $as_echo_n 0123456789 >"conftest.in"
4353 cat "conftest.in" "conftest.in" >"conftest.tmp"
4354 mv "conftest.tmp" "conftest.in"
4355 cp "conftest.in" "conftest.nl"
4356 $as_echo 'GREP' >> "conftest.nl"
4357 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4358 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4359 as_fn_arith $ac_count + 1 && ac_count=$as_val
4360 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4361 # Best one so far, save it but keep looking for a better one
4362 ac_cv_path_GREP="$ac_path_GREP"
4363 ac_path_GREP_max=$ac_count
4365 # 10*(2^10) chars as input seems more than enough
4366 test $ac_count -gt 10 && break
4368 rm -rf conftest.in conftest.tmp conftest.nl conftest.out;;
4371 $ac_path_GREP_found && break 3
4376 if test -z "$ac_cv_path_GREP"; then
4377 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4380 ac_cv_path_GREP=$GREP
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4385 $as_echo "$ac_cv_path_GREP" >&6; }
4386 GREP="$ac_cv_path_GREP"
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4390 $as_echo_n "checking for egrep... " >&6; }
4391 if ${ac_cv_path_EGREP+:} false; then :
4392 $as_echo_n "(cached) " >&6
4394 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4395 then ac_cv_path_EGREP="$GREP -E"
4397 if test -z "$EGREP"; then
4398 ac_path_EGREP_found=false
4399 # Loop through the user's path and test for each of PROGNAME-LIST
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4404 test -z "$as_dir" && as_dir=.
4405 for ac_prog in egrep; do
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4408 as_fn_executable_p "$ac_path_EGREP" || continue
4409 # Check for GNU ac_path_EGREP and select it if it is found.
4410 # Check for GNU $ac_path_EGREP
4411 case `"$ac_path_EGREP" --version 2>&1` in
4413 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4416 $as_echo_n 0123456789 >"conftest.in"
4419 cat "conftest.in" "conftest.in" >"conftest.tmp"
4420 mv "conftest.tmp" "conftest.in"
4421 cp "conftest.in" "conftest.nl"
4422 $as_echo 'EGREP' >> "conftest.nl"
4423 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4424 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4425 as_fn_arith $ac_count + 1 && ac_count=$as_val
4426 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4427 # Best one so far, save it but keep looking for a better one
4428 ac_cv_path_EGREP="$ac_path_EGREP"
4429 ac_path_EGREP_max=$ac_count
4431 # 10*(2^10) chars as input seems more than enough
4432 test $ac_count -gt 10 && break
4434 rm -rf conftest.in conftest.tmp conftest.nl conftest.out;;
4437 $ac_path_EGREP_found && break 3
4442 if test -z "$ac_cv_path_EGREP"; then
4443 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4446 ac_cv_path_EGREP=$EGREP
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4452 $as_echo "$ac_cv_path_EGREP" >&6; }
4453 EGREP="$ac_cv_path_EGREP"
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4457 $as_echo_n "checking for ANSI C header files... " >&6; }
4458 if ${ac_cv_header_stdc+:} false; then :
4459 $as_echo_n "(cached) " >&6
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 /* end confdefs.h. */
4476 if ac_fn_c_try_compile "$LINENO"; then :
4477 ac_cv_header_stdc=yes
4479 ac_cv_header_stdc=no
4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483 if test $ac_cv_header_stdc = yes; then
4484 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4491 $EGREP "memchr" >/dev/null 2>&1; then :
4494 ac_cv_header_stdc=no
4500 if test $ac_cv_header_stdc = yes; then
4501 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4508 $EGREP "free" >/dev/null 2>&1; then :
4511 ac_cv_header_stdc=no
4517 if test $ac_cv_header_stdc = yes; then
4518 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4519 if test "$cross_compiling" = yes; then :
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4526 #if ((' ' & 0x0FF) == 0x020)
4527 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4528 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4530 # define ISLOWER(c) \
4531 (('a' <= (c) && (c) <= 'i') \
4532 || ('j' <= (c) && (c) <= 'r') \
4533 || ('s' <= (c) && (c) <= 'z'))
4534 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4537 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4542 for (i = 0; i < 256; i++)
4543 if (XOR (islower (i), ISLOWER (i))
4544 || toupper (i) != TOUPPER (i))
4549 if ac_fn_c_try_run "$LINENO"; then :
4552 ac_cv_header_stdc=no
4554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4555 conftest.$ac_objext conftest.beam conftest.$ac_ext
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4561 $as_echo "$ac_cv_header_stdc" >&6; }
4562 if test $ac_cv_header_stdc = yes; then
4564 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4568 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4569 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4570 inttypes.h stdint.h unistd.h
4572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4573 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4575 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4576 cat >>confdefs.h <<_ACEOF
4577 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4585 for ac_header in unistd.h
4587 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4588 if test "x$ac_cv_header_unistd_h" = xyes; then :
4589 cat >>confdefs.h <<_ACEOF
4590 #define HAVE_UNISTD_H 1
4597 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
4598 if test "x$ac_cv_type_mode_t" = xyes; then :
4602 cat >>confdefs.h <<_ACEOF
4608 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
4609 if test "x$ac_cv_type_pid_t" = xyes; then :
4613 cat >>confdefs.h <<_ACEOF
4619 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4620 if test "x$ac_cv_type_size_t" = xyes; then :
4624 cat >>confdefs.h <<_ACEOF
4625 #define size_t unsigned int
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4631 $as_echo_n "checking return type of signal handlers... " >&6; }
4632 if ${ac_cv_type_signal+:} false; then :
4633 $as_echo_n "(cached) " >&6
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4637 #include <sys/types.h>
4643 return *(signal (0, 0)) (0) == 1;
4648 if ac_fn_c_try_compile "$LINENO"; then :
4649 ac_cv_type_signal=int
4651 ac_cv_type_signal=void
4653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4656 $as_echo "$ac_cv_type_signal" >&6; }
4658 cat >>confdefs.h <<_ACEOF
4659 #define RETSIGTYPE $ac_cv_type_signal
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4664 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4665 if ${ac_cv_header_time+:} false; then :
4666 $as_echo_n "(cached) " >&6
4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669 /* end confdefs.h. */
4670 #include <sys/types.h>
4671 #include <sys/time.h>
4677 if ((struct tm *) 0)
4683 if ac_fn_c_try_compile "$LINENO"; then :
4684 ac_cv_header_time=yes
4686 ac_cv_header_time=no
4688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4691 $as_echo "$ac_cv_header_time" >&6; }
4692 if test $ac_cv_header_time = yes; then
4694 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4699 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4700 if ${ac_cv_header_sys_wait_h+:} false; then :
4701 $as_echo_n "(cached) " >&6
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4705 #include <sys/types.h>
4706 #include <sys/wait.h>
4708 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4711 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4719 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4724 if ac_fn_c_try_compile "$LINENO"; then :
4725 ac_cv_header_sys_wait_h=yes
4727 ac_cv_header_sys_wait_h=no
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4732 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4733 if test $ac_cv_header_sys_wait_h = yes; then
4735 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4740 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4741 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4743 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4744 if eval \${$as_ac_Header+:} false; then :
4745 $as_echo_n "(cached) " >&6
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h. */
4749 #include <sys/types.h>
4761 if ac_fn_c_try_compile "$LINENO"; then :
4762 eval "$as_ac_Header=yes"
4764 eval "$as_ac_Header=no"
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4768 eval ac_res=\$$as_ac_Header
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4770 $as_echo "$ac_res" >&6; }
4771 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4772 cat >>confdefs.h <<_ACEOF
4773 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4776 ac_header_dirent=$ac_hdr; break
4780 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4781 if test $ac_header_dirent = dirent.h; then
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4783 $as_echo_n "checking for library containing opendir... " >&6; }
4784 if ${ac_cv_search_opendir+:} false; then :
4785 $as_echo_n "(cached) " >&6
4787 ac_func_search_save_LIBS=$LIBS
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4791 /* Override any GCC internal prototype to avoid an error.
4792 Use char because int might match the return type of a GCC
4793 builtin and then its argument prototype would still apply. */
4806 for ac_lib in '' dir; do
4807 if test -z "$ac_lib"; then
4808 ac_res="none required"
4811 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4813 if ac_fn_c_try_link "$LINENO"; then :
4814 ac_cv_search_opendir=$ac_res
4816 rm -f core conftest.err conftest.$ac_objext \
4818 if ${ac_cv_search_opendir+:} false; then :
4822 if ${ac_cv_search_opendir+:} false; then :
4825 ac_cv_search_opendir=no
4828 LIBS=$ac_func_search_save_LIBS
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4831 $as_echo "$ac_cv_search_opendir" >&6; }
4832 ac_res=$ac_cv_search_opendir
4833 if test "$ac_res" != no; then :
4834 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4840 $as_echo_n "checking for library containing opendir... " >&6; }
4841 if ${ac_cv_search_opendir+:} false; then :
4842 $as_echo_n "(cached) " >&6
4844 ac_func_search_save_LIBS=$LIBS
4845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846 /* end confdefs.h. */
4848 /* Override any GCC internal prototype to avoid an error.
4849 Use char because int might match the return type of a GCC
4850 builtin and then its argument prototype would still apply. */
4863 for ac_lib in '' x; do
4864 if test -z "$ac_lib"; then
4865 ac_res="none required"
4868 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4870 if ac_fn_c_try_link "$LINENO"; then :
4871 ac_cv_search_opendir=$ac_res
4873 rm -f core conftest.err conftest.$ac_objext \
4875 if ${ac_cv_search_opendir+:} false; then :
4879 if ${ac_cv_search_opendir+:} false; then :
4882 ac_cv_search_opendir=no
4885 LIBS=$ac_func_search_save_LIBS
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4888 $as_echo "$ac_cv_search_opendir" >&6; }
4889 ac_res=$ac_cv_search_opendir
4890 if test "$ac_res" != no; then :
4891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to call gettimeofday" >&5
4898 $as_echo_n "checking how to call gettimeofday... " >&6; }
4899 if ${ac_cv_gettimeofday_args+:} false; then :
4900 $as_echo_n "(cached) " >&6
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4905 #include <sys/time.h>
4909 struct timeval tv; struct timezone tzp;
4910 gettimeofday(&tv, &tzp);
4915 if ac_fn_c_try_compile "$LINENO"; then :
4916 ac_gettimeofday_args=2
4918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4919 /* end confdefs.h. */
4921 #include <sys/time.h>
4925 struct timeval tv; gettimeofday(&tv);
4930 if ac_fn_c_try_compile "$LINENO"; then :
4931 ac_gettimeofday_args=1
4933 ac_gettimeofday_args=0
4935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938 ac_cv_gettimeofday_args=$ac_gettimeofday_args
4941 ac_gettimeofday_args=$ac_cv_gettimeofday_args
4942 if test "$ac_gettimeofday_args" = 1 ; then
4943 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: one argument" >&5
4946 $as_echo "one argument" >&6; }
4947 elif test "$ac_gettimeofday_args" = 2 ; then
4948 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
4950 $as_echo "#define GETTIMEOFDAY_TWO_ARGS 1" >>confdefs.h
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: two arguments" >&5
4953 $as_echo "two arguments" >&6; }
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
4956 $as_echo "unknown" >&6; }
4959 # Check whether --enable-largefile was given.
4960 if test "${enable_largefile+set}" = set; then :
4961 enableval=$enable_largefile;
4964 if test "$enable_largefile" != no; then
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4967 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4968 if ${ac_cv_sys_largefile_CC+:} false; then :
4969 $as_echo_n "(cached) " >&6
4971 ac_cv_sys_largefile_CC=no
4972 if test "$GCC" != yes; then
4975 # IRIX 6.2 and later do not support large files by default,
4976 # so use the C compiler's -n32 option if that helps.
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h. */
4979 #include <sys/types.h>
4980 /* Check that off_t can represent 2**63 - 1 correctly.
4981 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4982 since some C++ compilers masquerading as C compilers
4983 incorrectly reject 9223372036854775807. */
4984 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4985 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4986 && LARGE_OFF_T % 2147483647 == 1)
4996 if ac_fn_c_try_compile "$LINENO"; then :
4999 rm -f core conftest.err conftest.$ac_objext
5001 if ac_fn_c_try_compile "$LINENO"; then :
5002 ac_cv_sys_largefile_CC=' -n32'; break
5004 rm -f core conftest.err conftest.$ac_objext
5008 rm -rf conftest.$ac_ext
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5012 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5013 if test "$ac_cv_sys_largefile_CC" != no; then
5014 CC=$CC$ac_cv_sys_largefile_CC
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5018 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5019 if ${ac_cv_sys_file_offset_bits+:} false; then :
5020 $as_echo_n "(cached) " >&6
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5025 #include <sys/types.h>
5026 /* Check that off_t can represent 2**63 - 1 correctly.
5027 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5028 since some C++ compilers masquerading as C compilers
5029 incorrectly reject 9223372036854775807. */
5030 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5031 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5032 && LARGE_OFF_T % 2147483647 == 1)
5042 if ac_fn_c_try_compile "$LINENO"; then :
5043 ac_cv_sys_file_offset_bits=no; break
5045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5048 #define _FILE_OFFSET_BITS 64
5049 #include <sys/types.h>
5050 /* Check that off_t can represent 2**63 - 1 correctly.
5051 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5052 since some C++ compilers masquerading as C compilers
5053 incorrectly reject 9223372036854775807. */
5054 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5055 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5056 && LARGE_OFF_T % 2147483647 == 1)
5066 if ac_fn_c_try_compile "$LINENO"; then :
5067 ac_cv_sys_file_offset_bits=64; break
5069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5070 ac_cv_sys_file_offset_bits=unknown
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5075 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5076 case $ac_cv_sys_file_offset_bits in #(
5079 cat >>confdefs.h <<_ACEOF
5080 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5085 if test $ac_cv_sys_file_offset_bits = unknown; then
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5087 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5088 if ${ac_cv_sys_large_files+:} false; then :
5089 $as_echo_n "(cached) " >&6
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5094 #include <sys/types.h>
5095 /* Check that off_t can represent 2**63 - 1 correctly.
5096 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5097 since some C++ compilers masquerading as C compilers
5098 incorrectly reject 9223372036854775807. */
5099 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5100 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5101 && LARGE_OFF_T % 2147483647 == 1)
5111 if ac_fn_c_try_compile "$LINENO"; then :
5112 ac_cv_sys_large_files=no; break
5114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5117 #define _LARGE_FILES 1
5118 #include <sys/types.h>
5119 /* Check that off_t can represent 2**63 - 1 correctly.
5120 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5121 since some C++ compilers masquerading as C compilers
5122 incorrectly reject 9223372036854775807. */
5123 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5124 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5125 && LARGE_OFF_T % 2147483647 == 1)
5135 if ac_fn_c_try_compile "$LINENO"; then :
5136 ac_cv_sys_large_files=1; break
5138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5139 ac_cv_sys_large_files=unknown
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5144 $as_echo "$ac_cv_sys_large_files" >&6; }
5145 case $ac_cv_sys_large_files in #(
5148 cat >>confdefs.h <<_ACEOF
5149 #define _LARGE_FILES $ac_cv_sys_large_files
5159 for ac_func in select fcntl uname nice setpriority getcwd getwd putenv sbrk
5161 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5162 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5163 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5164 cat >>confdefs.h <<_ACEOF
5165 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5171 for ac_func in sigaction syslog realpath setrlimit
5173 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5174 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5175 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5176 cat >>confdefs.h <<_ACEOF
5177 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5183 for ac_func in setlocale
5185 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
5186 if test "x$ac_cv_func_setlocale" = xyes; then :
5187 cat >>confdefs.h <<_ACEOF
5188 #define HAVE_SETLOCALE 1
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct icmp" >&5
5195 $as_echo_n "checking for struct icmp... " >&6; }
5196 if ${ac_cv_have_icmp+:} false; then :
5197 $as_echo_n "(cached) " >&6
5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200 /* end confdefs.h. */
5208 #include <sys/types.h>
5209 #include <sys/time.h>
5210 #include <sys/ipc.h>
5211 #include <sys/shm.h>
5212 #include <sys/socket.h>
5213 #include <netinet/in_systm.h>
5214 #include <netinet/in.h>
5215 #include <netinet/ip.h>
5216 #include <netinet/ip_icmp.h>
5217 #include <netinet/udp.h>
5218 #include <arpa/inet.h>
5225 struct sockaddr_in si;
5227 i.icmp_type = ICMP_ECHO;
5232 si.sin_family = AF_INET;
5233 #if defined(__DECC) || defined(_IP_VHL)
5243 if ac_fn_c_try_compile "$LINENO"; then :
5248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_icmp" >&5
5251 $as_echo "$ac_cv_have_icmp" >&6; }
5252 if test "$ac_cv_have_icmp" = yes ; then
5253 $as_echo "#define HAVE_ICMP 1" >>confdefs.h
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct icmphdr" >&5
5257 $as_echo_n "checking for struct icmphdr... " >&6; }
5258 if ${ac_cv_have_icmphdr+:} false; then :
5259 $as_echo_n "(cached) " >&6
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5270 #include <sys/types.h>
5271 #include <sys/time.h>
5272 #include <sys/ipc.h>
5273 #include <sys/shm.h>
5274 #include <sys/socket.h>
5275 #include <netinet/in_systm.h>
5276 #include <netinet/in.h>
5277 #include <netinet/ip.h>
5278 #include <netinet/ip_icmp.h>
5279 #include <netinet/udp.h>
5280 #include <arpa/inet.h>
5287 struct sockaddr_in si;
5293 i.un.echo.sequence = 0;
5294 si.sin_family = AF_INET;
5300 if ac_fn_c_try_compile "$LINENO"; then :
5301 ac_cv_have_icmphdr=yes
5303 ac_cv_have_icmphdr=no
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_icmphdr" >&5
5308 $as_echo "$ac_cv_have_icmphdr" >&6; }
5309 if test "$ac_cv_have_icmphdr" = yes ; then
5310 $as_echo "#define HAVE_ICMPHDR 1" >>confdefs.h
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getifaddrs" >&5
5314 $as_echo_n "checking for getifaddrs... " >&6; }
5315 if ${ac_cv_have_getifaddrs+:} false; then :
5316 $as_echo_n "(cached) " >&6
5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h. */
5322 #include <arpa/inet.h>
5323 #include <ifaddrs.h>
5327 struct ifaddrs *ifa;
5330 ifa->ifa_addr->sa_family = 0;
5335 if ac_fn_c_try_compile "$LINENO"; then :
5336 ac_cv_have_getifaddrs=yes
5338 ac_cv_have_getifaddrs=no
5340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getifaddrs" >&5
5343 $as_echo "$ac_cv_have_getifaddrs" >&6; }
5344 if test "$ac_cv_have_getifaddrs" = yes ; then
5345 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
5348 for ac_header in crypt.h sys/select.h
5350 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5351 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5352 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5353 cat >>confdefs.h <<_ACEOF
5354 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5361 for ac_prog in perl5 perl
5363 # Extract the first word of "$ac_prog", so it can be a program name with args.
5364 set dummy $ac_prog; ac_word=$2
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366 $as_echo_n "checking for $ac_word... " >&6; }
5367 if ${ac_cv_path_PERL+:} false; then :
5368 $as_echo_n "(cached) " >&6
5372 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 test -z "$as_dir" && as_dir=.
5380 for ac_exec_ext in '' $ac_executable_extensions; do
5381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5382 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5393 PERL=$ac_cv_path_PERL
5394 if test -n "$PERL"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5396 $as_echo "$PERL" >&6; }
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5403 test -n "$PERL" && break
5406 if test -z "$PERL" ; then
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
5410 $as_echo_n "checking perl version... " >&6; }
5411 if ${ac_cv_perl_version+:} false; then :
5412 $as_echo_n "(cached) " >&6
5414 ac_cv_perl_version=`$PERL -e "$perl_version_cmd"`
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_perl_version" >&5
5417 $as_echo "$ac_cv_perl_version" >&6; }
5418 PERL_VERSION=$ac_cv_perl_version
5422 if test -z "$PERL" ; then
5423 # don't let it be blank...
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5428 $as_echo_n "checking for X... " >&6; }
5431 # Check whether --with-x was given.
5432 if test "${with_x+set}" = set; then :
5436 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5437 if test "x$with_x" = xno; then
5438 # The user explicitly disabled X.
5441 case $x_includes,$x_libraries in #(
5442 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
5443 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
5444 $as_echo_n "(cached) " >&6
5446 # One or both of the vars are not set, and there is no cached value.
5447 ac_x_includes=no ac_x_libraries=no
5448 rm -f -r conftest.dir
5449 if mkdir conftest.dir; then
5451 cat >Imakefile <<'_ACEOF'
5453 @echo incroot='${INCROOT}'
5455 @echo usrlibdir='${USRLIBDIR}'
5457 @echo libdir='${LIBDIR}'
5459 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5460 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5461 for ac_var in incroot usrlibdir libdir; do
5462 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5464 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5465 for ac_extension in a so sl dylib la dll; do
5466 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5467 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5468 ac_im_usrlibdir=$ac_im_libdir; break
5471 # Screen out bogus values from the imake configuration. They are
5472 # bogus both because they are the default anyway, and because
5473 # using them would break gcc on systems where it needs fixed includes.
5474 case $ac_im_incroot in
5475 /usr/include) ac_x_includes= ;;
5476 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5478 case $ac_im_usrlibdir in
5479 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5480 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5484 rm -f -r conftest.dir
5487 # Standard set of common directories for X headers.
5488 # Check X11 before X11Rn because it is often a symlink to the current release.
5502 /usr/local/X11/include
5503 /usr/local/X11R7/include
5504 /usr/local/X11R6/include
5505 /usr/local/X11R5/include
5506 /usr/local/X11R4/include
5508 /usr/local/include/X11
5509 /usr/local/include/X11R7
5510 /usr/local/include/X11R6
5511 /usr/local/include/X11R5
5512 /usr/local/include/X11R4
5516 /usr/XFree86/include/X11
5520 /usr/unsupported/include
5522 /usr/local/x11r5/include
5523 /usr/lpp/Xamples/include
5525 /usr/openwin/include
5526 /usr/openwin/share/include'
5528 if test "$ac_x_includes" = no; then
5529 # Guess where to find include files, by looking for Xlib.h.
5530 # First, try using that file with no special directory specified.
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5533 #include <X11/Xlib.h>
5535 if ac_fn_c_try_cpp "$LINENO"; then :
5536 # We can compile using X headers with no special include directory.
5539 for ac_dir in $ac_x_header_dirs; do
5540 if test -r "$ac_dir/X11/Xlib.h"; then
5541 ac_x_includes=$ac_dir
5546 rm -rf conftest.err conftest.i conftest.$ac_ext
5547 fi # $ac_x_includes = no
5549 if test "$ac_x_libraries" = no; then
5550 # Check for the libraries.
5551 # See if we find them without any special options.
5552 # Don't add to $LIBS permanently.
5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556 /* end confdefs.h. */
5557 #include <X11/Xlib.h>
5566 if ac_fn_c_try_link "$LINENO"; then :
5568 # We can link X programs with no special library path.
5572 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5574 # Don't even attempt the hair of trying to link an X program!
5575 for ac_extension in a so sl dylib la dll; do
5576 if test -r "$ac_dir/libX11.$ac_extension"; then
5577 ac_x_libraries=$ac_dir
5583 rm -f core conftest.err conftest.$ac_objext \
5584 conftest$ac_exeext conftest.$ac_ext
5585 fi # $ac_x_libraries = no
5587 case $ac_x_includes,$ac_x_libraries in #(
5589 # Didn't find X, or a directory has "'" in its name.
5590 ac_cv_have_x="have_x=no";; #(
5592 # Record where we found X for the cache.
5593 ac_cv_have_x="have_x=yes\
5594 ac_x_includes='$ac_x_includes'\
5595 ac_x_libraries='$ac_x_libraries'"
5601 eval "$ac_cv_have_x"
5604 if test "$have_x" != yes; then
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5606 $as_echo "$have_x" >&6; }
5609 # If each of the values was on the command line, it overrides each guess.
5610 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5611 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5612 # Update the cache value to reflect the command line values.
5613 ac_cv_have_x="have_x=yes\
5614 ac_x_includes='$x_includes'\
5615 ac_x_libraries='$x_libraries'"
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5617 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5620 if test "$no_x" = yes; then
5621 # Not all programs may use this symbol, but it does not hurt to define it.
5623 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5625 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5627 if test -n "$x_includes"; then
5628 X_CFLAGS="$X_CFLAGS -I$x_includes"
5631 # It would also be nice to do this for all -L options, not just this one.
5632 if test -n "$x_libraries"; then
5633 X_LIBS="$X_LIBS -L$x_libraries"
5634 # For Solaris; some versions of Sun CC require a space after -R and
5635 # others require no space. Words are not sufficient . . . .
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5637 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5638 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5639 ac_xsave_c_werror_flag=$ac_c_werror_flag
5640 ac_c_werror_flag=yes
5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h. */
5652 if ac_fn_c_try_link "$LINENO"; then :
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }
5655 X_LIBS="$X_LIBS -R$x_libraries"
5657 LIBS="$ac_xsave_LIBS -R $x_libraries"
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5669 if ac_fn_c_try_link "$LINENO"; then :
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5671 $as_echo "yes" >&6; }
5672 X_LIBS="$X_LIBS -R $x_libraries"
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5675 $as_echo "neither works" >&6; }
5677 rm -f core conftest.err conftest.$ac_objext \
5678 conftest$ac_exeext conftest.$ac_ext
5680 rm -f core conftest.err conftest.$ac_objext \
5681 conftest$ac_exeext conftest.$ac_ext
5682 ac_c_werror_flag=$ac_xsave_c_werror_flag
5686 # Check for system-dependent libraries X programs must link with.
5687 # Do this before checking for the system-independent R6 libraries
5688 # (-lICE), since we may need -lsocket or whatever for X linking.
5690 if test "$ISC" = yes; then
5691 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5693 # Martyn Johnson says this is needed for Ultrix, if the X
5694 # libraries were built with DECnet support. And Karl Berry says
5695 # the Alpha needs dnet_stub (dnet does not exist).
5696 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698 /* end confdefs.h. */
5700 /* Override any GCC internal prototype to avoid an error.
5701 Use char because int might match the return type of a GCC
5702 builtin and then its argument prototype would still apply. */
5706 char XOpenDisplay ();
5710 return XOpenDisplay ();
5715 if ac_fn_c_try_link "$LINENO"; then :
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5719 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5720 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
5721 $as_echo_n "(cached) " >&6
5723 ac_check_lib_save_LIBS=$LIBS
5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5728 /* Override any GCC internal prototype to avoid an error.
5729 Use char because int might match the return type of a GCC
5730 builtin and then its argument prototype would still apply. */
5738 return dnet_ntoa ();
5743 if ac_fn_c_try_link "$LINENO"; then :
5744 ac_cv_lib_dnet_dnet_ntoa=yes
5746 ac_cv_lib_dnet_dnet_ntoa=no
5748 rm -f core conftest.err conftest.$ac_objext \
5749 conftest$ac_exeext conftest.$ac_ext
5750 LIBS=$ac_check_lib_save_LIBS
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5753 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5754 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
5755 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5758 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5760 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5761 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
5762 $as_echo_n "(cached) " >&6
5764 ac_check_lib_save_LIBS=$LIBS
5765 LIBS="-ldnet_stub $LIBS"
5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h. */
5769 /* Override any GCC internal prototype to avoid an error.
5770 Use char because int might match the return type of a GCC
5771 builtin and then its argument prototype would still apply. */
5779 return dnet_ntoa ();
5784 if ac_fn_c_try_link "$LINENO"; then :
5785 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5787 ac_cv_lib_dnet_stub_dnet_ntoa=no
5789 rm -f core conftest.err conftest.$ac_objext \
5790 conftest$ac_exeext conftest.$ac_ext
5791 LIBS=$ac_check_lib_save_LIBS
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5794 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5795 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
5796 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5801 rm -f core conftest.err conftest.$ac_objext \
5802 conftest$ac_exeext conftest.$ac_ext
5803 LIBS="$ac_xsave_LIBS"
5805 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5806 # to get the SysV transport functions.
5807 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5809 # The nsl library prevents programs from opening the X display
5810 # on Irix 5.2, according to T.E. Dickey.
5811 # The functions gethostbyname, getservbyname, and inet_addr are
5812 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5813 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5814 if test "x$ac_cv_func_gethostbyname" = xyes; then :
5818 if test $ac_cv_func_gethostbyname = no; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5820 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5821 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
5822 $as_echo_n "(cached) " >&6
5824 ac_check_lib_save_LIBS=$LIBS
5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827 /* end confdefs.h. */
5829 /* Override any GCC internal prototype to avoid an error.
5830 Use char because int might match the return type of a GCC
5831 builtin and then its argument prototype would still apply. */
5835 char gethostbyname ();
5839 return gethostbyname ();
5844 if ac_fn_c_try_link "$LINENO"; then :
5845 ac_cv_lib_nsl_gethostbyname=yes
5847 ac_cv_lib_nsl_gethostbyname=no
5849 rm -f core conftest.err conftest.$ac_objext \
5850 conftest$ac_exeext conftest.$ac_ext
5851 LIBS=$ac_check_lib_save_LIBS
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5854 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5855 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
5856 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5859 if test $ac_cv_lib_nsl_gethostbyname = no; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5861 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5862 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
5863 $as_echo_n "(cached) " >&6
5865 ac_check_lib_save_LIBS=$LIBS
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5870 /* Override any GCC internal prototype to avoid an error.
5871 Use char because int might match the return type of a GCC
5872 builtin and then its argument prototype would still apply. */
5876 char gethostbyname ();
5880 return gethostbyname ();
5885 if ac_fn_c_try_link "$LINENO"; then :
5886 ac_cv_lib_bsd_gethostbyname=yes
5888 ac_cv_lib_bsd_gethostbyname=no
5890 rm -f core conftest.err conftest.$ac_objext \
5891 conftest$ac_exeext conftest.$ac_ext
5892 LIBS=$ac_check_lib_save_LIBS
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5895 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5896 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
5897 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5903 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5904 # socket/setsockopt and other routines are undefined under SCO ODT
5905 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5906 # on later versions), says Simon Leinen: it contains gethostby*
5907 # variants that don't use the name server (or something). -lsocket
5908 # must be given before -lnsl if both are needed. We assume that
5909 # if connect needs -lnsl, so does gethostbyname.
5910 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
5911 if test "x$ac_cv_func_connect" = xyes; then :
5915 if test $ac_cv_func_connect = no; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5917 $as_echo_n "checking for connect in -lsocket... " >&6; }
5918 if ${ac_cv_lib_socket_connect+:} false; then :
5919 $as_echo_n "(cached) " >&6
5921 ac_check_lib_save_LIBS=$LIBS
5922 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5926 /* Override any GCC internal prototype to avoid an error.
5927 Use char because int might match the return type of a GCC
5928 builtin and then its argument prototype would still apply. */
5941 if ac_fn_c_try_link "$LINENO"; then :
5942 ac_cv_lib_socket_connect=yes
5944 ac_cv_lib_socket_connect=no
5946 rm -f core conftest.err conftest.$ac_objext \
5947 conftest$ac_exeext conftest.$ac_ext
5948 LIBS=$ac_check_lib_save_LIBS
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5951 $as_echo "$ac_cv_lib_socket_connect" >&6; }
5952 if test "x$ac_cv_lib_socket_connect" = xyes; then :
5953 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5958 # Guillermo Gomez says -lposix is necessary on A/UX.
5959 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
5960 if test "x$ac_cv_func_remove" = xyes; then :
5964 if test $ac_cv_func_remove = no; then
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5966 $as_echo_n "checking for remove in -lposix... " >&6; }
5967 if ${ac_cv_lib_posix_remove+:} false; then :
5968 $as_echo_n "(cached) " >&6
5970 ac_check_lib_save_LIBS=$LIBS
5971 LIBS="-lposix $LIBS"
5972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973 /* end confdefs.h. */
5975 /* Override any GCC internal prototype to avoid an error.
5976 Use char because int might match the return type of a GCC
5977 builtin and then its argument prototype would still apply. */
5990 if ac_fn_c_try_link "$LINENO"; then :
5991 ac_cv_lib_posix_remove=yes
5993 ac_cv_lib_posix_remove=no
5995 rm -f core conftest.err conftest.$ac_objext \
5996 conftest$ac_exeext conftest.$ac_ext
5997 LIBS=$ac_check_lib_save_LIBS
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6000 $as_echo "$ac_cv_lib_posix_remove" >&6; }
6001 if test "x$ac_cv_lib_posix_remove" = xyes; then :
6002 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6007 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6008 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6009 if test "x$ac_cv_func_shmat" = xyes; then :
6013 if test $ac_cv_func_shmat = no; then
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6015 $as_echo_n "checking for shmat in -lipc... " >&6; }
6016 if ${ac_cv_lib_ipc_shmat+:} false; then :
6017 $as_echo_n "(cached) " >&6
6019 ac_check_lib_save_LIBS=$LIBS
6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h. */
6024 /* Override any GCC internal prototype to avoid an error.
6025 Use char because int might match the return type of a GCC
6026 builtin and then its argument prototype would still apply. */
6039 if ac_fn_c_try_link "$LINENO"; then :
6040 ac_cv_lib_ipc_shmat=yes
6042 ac_cv_lib_ipc_shmat=no
6044 rm -f core conftest.err conftest.$ac_objext \
6045 conftest$ac_exeext conftest.$ac_ext
6046 LIBS=$ac_check_lib_save_LIBS
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6049 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
6050 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
6051 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6057 # Check for libraries that X11R6 Xt/Xaw programs need.
6058 ac_save_LDFLAGS=$LDFLAGS
6059 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6060 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6061 # check for ICE first), but we must link in the order -lSM -lICE or
6062 # we get undefined symbols. So assume we have SM if we have ICE.
6063 # These have to be linked with before -lX11, unlike the other
6064 # libraries we check for below, so use a different variable.
6065 # John Interrante, Karl Berry
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6067 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
6068 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
6069 $as_echo_n "(cached) " >&6
6071 ac_check_lib_save_LIBS=$LIBS
6072 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6076 /* Override any GCC internal prototype to avoid an error.
6077 Use char because int might match the return type of a GCC
6078 builtin and then its argument prototype would still apply. */
6082 char IceConnectionNumber ();
6086 return IceConnectionNumber ();
6091 if ac_fn_c_try_link "$LINENO"; then :
6092 ac_cv_lib_ICE_IceConnectionNumber=yes
6094 ac_cv_lib_ICE_IceConnectionNumber=no
6096 rm -f core conftest.err conftest.$ac_objext \
6097 conftest$ac_exeext conftest.$ac_ext
6098 LIBS=$ac_check_lib_save_LIBS
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6101 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6102 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
6103 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6106 LDFLAGS=$ac_save_LDFLAGS
6111 if test "$have_x" != yes; then
6112 as_fn_error $? "Couldn't find X11 headers/libs. Try \`$0 --help'." "$LINENO" 5
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X app-defaults directory" >&5
6117 $as_echo_n "checking for X app-defaults directory... " >&6; }
6118 if ${ac_cv_x_app_defaults+:} false; then :
6119 $as_echo_n "(cached) " >&6
6123 if mkdir conftestdir; then
6124 cd conftestdir 2>/dev/null
6125 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6126 cat > Imakefile <<'EOF'
6128 @echo 'ac_x_app_defaults="${XAPPLOADDIR}"'
6130 if (xmkmf) >/dev/null 2>&1 && test -f Makefile; then
6131 # GNU make sometimes prints "make[1]: Entering...", which'd confuse us.
6132 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6137 if test x"$ac_x_app_defaults" = x; then
6139 # Look for the directory under a standard set of common directories.
6140 # Check X11 before X11Rn because it's often a symlink to the current release.
6142 /usr/X11/lib/app-defaults \
6143 /usr/X11R6/lib/app-defaults \
6144 /usr/X11R6/lib/X11/app-defaults \
6145 /usr/X11R5/lib/app-defaults \
6146 /usr/X11R5/lib/X11/app-defaults \
6147 /usr/X11R4/lib/app-defaults \
6148 /usr/X11R4/lib/X11/app-defaults \
6150 /usr/lib/X11/app-defaults \
6151 /usr/lib/X11R6/app-defaults \
6152 /usr/lib/X11R5/app-defaults \
6153 /usr/lib/X11R4/app-defaults \
6155 /usr/local/X11/lib/app-defaults \
6156 /usr/local/X11R6/lib/app-defaults \
6157 /usr/local/X11R5/lib/app-defaults \
6158 /usr/local/X11R4/lib/app-defaults \
6160 /usr/local/lib/X11/app-defaults \
6161 /usr/local/lib/X11R6/app-defaults \
6162 /usr/local/lib/X11R6/X11/app-defaults \
6163 /usr/local/lib/X11R5/app-defaults \
6164 /usr/local/lib/X11R5/X11/app-defaults \
6165 /usr/local/lib/X11R4/app-defaults \
6166 /usr/local/lib/X11R4/X11/app-defaults \
6168 /usr/X386/lib/X11/app-defaults \
6169 /usr/x386/lib/X11/app-defaults \
6170 /usr/XFree86/lib/X11/app-defaults \
6172 /usr/lib/X11/app-defaults \
6173 /usr/local/lib/X11/app-defaults \
6174 /usr/unsupported/lib/X11/app-defaults \
6175 /usr/athena/lib/X11/app-defaults \
6176 /usr/local/x11r5/lib/X11/app-defaults \
6177 /usr/lpp/Xamples/lib/X11/app-defaults \
6178 /lib/usr/lib/X11/app-defaults \
6180 /usr/openwin/lib/app-defaults \
6181 /usr/openwin/lib/X11/app-defaults \
6182 /usr/openwin/share/lib/app-defaults \
6183 /usr/openwin/share/lib/X11/app-defaults \
6185 /X11R6/lib/app-defaults \
6186 /X11R5/lib/app-defaults \
6187 /X11R4/lib/app-defaults \
6190 if test -d "$ac_dir"; then
6191 ac_x_app_defaults=$ac_dir
6197 if test x"$ac_x_app_defaults" = x; then
6198 ac_cv_x_app_defaults="/usr/lib/X11/app-defaults"
6200 # Record where we found app-defaults for the cache.
6201 ac_cv_x_app_defaults="$ac_x_app_defaults"
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x_app_defaults" >&5
6205 $as_echo "$ac_cv_x_app_defaults" >&6; }
6206 eval ac_x_app_defaults="$ac_cv_x_app_defaults"
6210 # The following arcana was gleaned from conversations with
6211 # Eric Schwartz <erics@col.hp.com>:
6213 # On HPUX 10.x, the parts of X that HP considers "standard" live in
6214 # /usr/{include,lib}/X11R6/. The parts that HP doesn't consider
6215 # "standard", notably, Xaw and Xmu, live in /usr/contrib/X11R6/.
6216 # Yet /usr/contrib/X11R6/ comes preinstalled on all HPUX systems.
6217 # Also, there are symlinks from /usr/include/ and /usr/lib/ into
6218 # /usr/{include,lib}/X11R6/, so that (if you don't use Xmu at all)
6219 # you don't need any -I or -L arguments.
6221 # On HPUX 9.x, /usr/{include,lib}/X11R5/ and /usr/contrib/X11R5/
6222 # are the same division as 10.x. However, there are no symlinks to
6223 # the X stuff from /usr/include/ and /usr/lib/, so -I and -L
6224 # arguments are always necessary.
6226 # However, X11R6 was available on HPUX 9.x as a patch: if that
6227 # patch was installed, then all of X11R6 went in to
6228 # /usr/contrib/X11R6/ (there was no /usr/{include,lib}/X11R6/.)
6230 # HPUX 8.x was the same as 9.x, but was X11R4 instead (I don't know
6231 # whether R5 was available as a patch; R6 undoubtedly was not.)
6233 # So. We try and use the highest numbered pair of
6234 # /usr/{include,lib}/X11R?/ and /usr/contrib/X11R?/{include,lib}/
6235 # that are available. We do not mix and match different versions
6238 # Question I still don't know the answer to: (do you?)
6240 # * On HPUX 9.x, where /usr/include/X11R5/ was standard, and
6241 # /usr/contrib/X11R6/ could be installed as a patch, what was in
6242 # that contrib directory? Did it contain so-called "standard"
6243 # X11R6, or did it include Xaw and Xmu as well? If the former,
6244 # where did one find Xaw and Xmu on 9.x R6 systems? Would this
6245 # be a situation where one had to reach into the R5 headers and
6246 # libs to find Xmu? That is, must both R6 and R5 directories
6247 # be on the -I and -L lists in that case?
6249 for version in X11R6 X11R5 X11R4 ; do
6250 # if either pair of directories exists...
6251 if test -d /usr/include/$version || test -d /usr/contrib/$version/include
6253 # if contrib exists, use it...
6254 if test -d /usr/contrib/$version/include ; then
6255 X_CFLAGS="$X_CFLAGS -I/usr/contrib/$version/include"
6256 X_LIBS="$X_LIBS -L/usr/contrib/$version/lib"
6258 # if the "standard" one exists, use it.
6259 if test -d /usr/include/$version ; then
6260 X_CFLAGS="$X_CFLAGS -I/usr/include/$version"
6261 X_LIBS="$X_LIBS -L/usr/lib/$version"
6263 # since at least one of the pair exists, go no farther.
6268 # Now find Motif. Thanks for not making xmkmf find this by
6269 # default, you losers.
6271 if test -d /usr/include/Motif2.1 ; then
6272 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif2.1"
6273 X_LIBS="$X_LIBS -L/usr/lib/Motif2.1"
6274 elif test -d /usr/include/Motif1.2 ; then
6275 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.2"
6276 X_LIBS="$X_LIBS -L/usr/lib/Motif1.2"
6277 elif test -d /usr/include/Motif1.1 ; then
6278 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.1"
6279 X_LIBS="$X_LIBS -L/usr/lib/Motif1.1"
6282 # Now let's check for the pseudo-standard locations for OpenGL and XPM.
6284 if test -d /opt/graphics/OpenGL/include ; then
6285 # HP-UX 10.20 puts it here
6286 X_CFLAGS="-I/opt/graphics/OpenGL/include $X_CFLAGS"
6287 X_LIBS="-L/opt/graphics/OpenGL/lib $X_LIBS"
6288 elif test -d /opt/Mesa/lib ; then
6289 X_CFLAGS="-I/opt/Mesa/include $X_CFLAGS"
6290 X_LIBS="-L/opt/Mesa/lib $X_LIBS"
6294 if test -d /opt/xpm/lib/X11 ; then
6295 X_CFLAGS="-I/opt/xpm/include $X_CFLAGS"
6296 X_LIBS="-L/opt/xpm/lib/X11 $X_LIBS"
6299 # On HPUX, default to installing in /opt/xscreensaver/ instead of
6300 # in /usr/local/, unless there is already an xscreensaver in
6301 # /usr/local/bin/. This can be overridden with the --prefix arg
6302 # to configure. I'm not sure this is the right thing to do, but
6303 # Richard Lloyd says so...
6305 if test \! -x /usr/local/bin/xscreensaver ; then
6306 ac_default_prefix=/opt/xscreensaver
6312 # Thanks for not making xmkmf find this by default, pinheads.
6313 # And thanks for moving things around again, too. Is this
6314 # really the standard location now? What happened to the
6315 # joke that this kind of thing went in /opt?
6316 # cthomp says "answer: CDE (Common Disorganized Environment)"
6318 if test -f /usr/dt/include/Xm/Xm.h ; then
6319 X_CFLAGS="$X_CFLAGS -I/usr/dt/include"
6320 MOTIF_LIBS="$MOTIF_LIBS -L/usr/dt/lib -R/usr/dt/lib"
6322 # Some versions of Slowlaris Motif require -lgen. But not all. Why?
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcmp in -lgen" >&5
6324 $as_echo_n "checking for regcmp in -lgen... " >&6; }
6325 if ${ac_cv_lib_gen_regcmp+:} false; then :
6326 $as_echo_n "(cached) " >&6
6328 ac_check_lib_save_LIBS=$LIBS
6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331 /* end confdefs.h. */
6333 /* Override any GCC internal prototype to avoid an error.
6334 Use char because int might match the return type of a GCC
6335 builtin and then its argument prototype would still apply. */
6348 if ac_fn_c_try_link "$LINENO"; then :
6349 ac_cv_lib_gen_regcmp=yes
6351 ac_cv_lib_gen_regcmp=no
6353 rm -f core conftest.err conftest.$ac_objext \
6354 conftest$ac_exeext conftest.$ac_ext
6355 LIBS=$ac_check_lib_save_LIBS
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_regcmp" >&5
6358 $as_echo "$ac_cv_lib_gen_regcmp" >&6; }
6359 if test "x$ac_cv_lib_gen_regcmp" = xyes; then :
6360 MOTIF_LIBS="$MOTIF_LIBS -lgen"
6368 # On MacOS X (10.x with "fink"), many things are under /sw/.
6370 if test -d /sw/include ; then
6371 X_CFLAGS="-I/sw/include $X_CFLAGS"
6372 X_LIBS="-L/sw/lib $X_LIBS"
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPointer" >&5
6377 $as_echo_n "checking for XPointer... " >&6; }
6378 if ${ac_cv_xpointer+:} false; then :
6379 $as_echo_n "(cached) " >&6
6382 ac_save_CPPFLAGS="$CPPFLAGS"
6383 if test \! -z "$includedir" ; then
6384 CPPFLAGS="$CPPFLAGS -I$includedir"
6386 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6387 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389 /* end confdefs.h. */
6390 #include <X11/Xlib.h>
6394 XPointer foo = (XPointer) 0;
6399 if ac_fn_c_try_compile "$LINENO"; then :
6404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405 CPPFLAGS="$ac_save_CPPFLAGS"
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xpointer" >&5
6408 $as_echo "$ac_cv_xpointer" >&6; }
6409 if test "$ac_cv_xpointer" != yes; then
6410 $as_echo "#define XPointer char*" >>confdefs.h
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this is MacOS X" >&5
6415 $as_echo_n "checking whether this is MacOS X... " >&6; }
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_macosx" >&5
6423 $as_echo "$ac_macosx" >&6; }
6426 ###############################################################################
6430 ###############################################################################
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= " >&5
6436 $as_echo_n "checking for intltool >= ... " >&6; }
6438 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
6439 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }' < intltool-update.in`
6441 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < intltool-update.in`
6444 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
6446 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&5
6449 $as_echo "$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&6; }
6454 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'
6455 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'
6456 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'
6457 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -p'
6458 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'
6459 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'
6460 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'
6461 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'
6462 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'
6463 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'
6464 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'
6478 # Use the tools built into the package, not the ones that are installed.
6480 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
6481 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
6482 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
6488 # Extract the first word of "perl", so it can be a program name with args.
6489 set dummy perl; ac_word=$2
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491 $as_echo_n "checking for $ac_word... " >&6; }
6492 if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
6493 $as_echo_n "(cached) " >&6
6495 case $INTLTOOL_PERL in
6497 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
6500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504 test -z "$as_dir" && as_dir=.
6505 for ac_exec_ext in '' $ac_executable_extensions; do
6506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6507 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
6508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
6519 if test -n "$INTLTOOL_PERL"; then
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
6521 $as_echo "$INTLTOOL_PERL" >&6; }
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6524 $as_echo "no" >&6; }
6528 if test -z "$INTLTOOL_PERL"; then
6529 as_fn_error $? "perl not found; required for intltool" "$LINENO" 5
6531 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
6532 as_fn_error $? "perl 5.x required for intltool" "$LINENO" 5
6535 # Remove file type tags (using []) from po/POTFILES.
6543 # Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
6545 ac_config_commands="$ac_config_commands default-1"
6549 GETTEXT_PACKAGE=xscreensaver
6551 cat >>confdefs.h <<_ACEOF
6552 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
6556 cat >>confdefs.h <<_ACEOF
6557 #define PACKAGE "$GETTEXT_PACKAGE"
6562 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"
6563 if test -n "$ac_tool_prefix"; then
6564 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6565 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567 $as_echo_n "checking for $ac_word... " >&6; }
6568 if ${ac_cv_prog_RANLIB+:} false; then :
6569 $as_echo_n "(cached) " >&6
6571 if test -n "$RANLIB"; then
6572 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6581 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 RANLIB=$ac_cv_prog_RANLIB
6592 if test -n "$RANLIB"; then
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6594 $as_echo "$RANLIB" >&6; }
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597 $as_echo "no" >&6; }
6602 if test -z "$ac_cv_prog_RANLIB"; then
6603 ac_ct_RANLIB=$RANLIB
6604 # Extract the first word of "ranlib", so it can be a program name with args.
6605 set dummy ranlib; ac_word=$2
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6607 $as_echo_n "checking for $ac_word... " >&6; }
6608 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6609 $as_echo_n "(cached) " >&6
6611 if test -n "$ac_ct_RANLIB"; then
6612 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6621 ac_cv_prog_ac_ct_RANLIB="ranlib"
6622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6632 if test -n "$ac_ct_RANLIB"; then
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6634 $as_echo "$ac_ct_RANLIB" >&6; }
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6637 $as_echo "no" >&6; }
6640 if test "x$ac_ct_RANLIB" = x; then
6643 case $cross_compiling:$ac_tool_warned in
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6647 ac_tool_warned=yes ;;
6649 RANLIB=$ac_ct_RANLIB
6652 RANLIB="$ac_cv_prog_RANLIB"
6655 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6656 if test "x$ac_cv_type_off_t" = xyes; then :
6660 cat >>confdefs.h <<_ACEOF
6661 #define off_t long int
6666 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6667 # for constant arguments. Useless!
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6669 $as_echo_n "checking for working alloca.h... " >&6; }
6670 if ${ac_cv_working_alloca_h+:} false; then :
6671 $as_echo_n "(cached) " >&6
6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674 /* end confdefs.h. */
6679 char *p = (char *) alloca (2 * sizeof (int));
6685 if ac_fn_c_try_link "$LINENO"; then :
6686 ac_cv_working_alloca_h=yes
6688 ac_cv_working_alloca_h=no
6690 rm -f core conftest.err conftest.$ac_objext \
6691 conftest$ac_exeext conftest.$ac_ext
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6694 $as_echo "$ac_cv_working_alloca_h" >&6; }
6695 if test $ac_cv_working_alloca_h = yes; then
6697 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6702 $as_echo_n "checking for alloca... " >&6; }
6703 if ${ac_cv_func_alloca_works+:} false; then :
6704 $as_echo_n "(cached) " >&6
6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h. */
6709 # define alloca __builtin_alloca
6712 # include <malloc.h>
6713 # define alloca _alloca
6715 # ifdef HAVE_ALLOCA_H
6716 # include <alloca.h>
6721 # ifndef alloca /* predefined by HP cc +Olibcalls */
6722 void *alloca (size_t);
6732 char *p = (char *) alloca (1);
6738 if ac_fn_c_try_link "$LINENO"; then :
6739 ac_cv_func_alloca_works=yes
6741 ac_cv_func_alloca_works=no
6743 rm -f core conftest.err conftest.$ac_objext \
6744 conftest$ac_exeext conftest.$ac_ext
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6747 $as_echo "$ac_cv_func_alloca_works" >&6; }
6749 if test $ac_cv_func_alloca_works = yes; then
6751 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6754 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6755 # that cause trouble. Some versions do not even contain alloca or
6756 # contain a buggy version. If you still want to use their alloca,
6757 # use ar to extract alloca.o from them instead of compiling alloca.c.
6759 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6761 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6765 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6766 if ${ac_cv_os_cray+:} false; then :
6767 $as_echo_n "(cached) " >&6
6769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770 /* end confdefs.h. */
6771 #if defined CRAY && ! defined CRAY2
6778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6779 $EGREP "webecray" >/dev/null 2>&1; then :
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6788 $as_echo "$ac_cv_os_cray" >&6; }
6789 if test $ac_cv_os_cray = yes; then
6790 for ac_func in _getb67 GETB67 getb67; do
6791 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6792 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6793 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6795 cat >>confdefs.h <<_ACEOF
6796 #define CRAY_STACKSEG_END $ac_func
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6806 $as_echo_n "checking stack direction for C alloca... " >&6; }
6807 if ${ac_cv_c_stack_direction+:} false; then :
6808 $as_echo_n "(cached) " >&6
6810 if test "$cross_compiling" = yes; then :
6811 ac_cv_c_stack_direction=0
6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h. */
6815 $ac_includes_default
6817 find_stack_direction (int *addr, int depth)
6822 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6823 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6828 main (int argc, char **argv)
6830 return find_stack_direction (0, argc + !argv + 20) < 0;
6833 if ac_fn_c_try_run "$LINENO"; then :
6834 ac_cv_c_stack_direction=1
6836 ac_cv_c_stack_direction=-1
6838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6839 conftest.$ac_objext conftest.beam conftest.$ac_ext
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6844 $as_echo "$ac_cv_c_stack_direction" >&6; }
6845 cat >>confdefs.h <<_ACEOF
6846 #define STACK_DIRECTION $ac_cv_c_stack_direction
6855 for ac_header in $ac_header_list
6857 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6858 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6860 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6861 cat >>confdefs.h <<_ACEOF
6862 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6876 for ac_func in getpagesize
6878 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6879 if test "x$ac_cv_func_getpagesize" = xyes; then :
6880 cat >>confdefs.h <<_ACEOF
6881 #define HAVE_GETPAGESIZE 1
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6888 $as_echo_n "checking for working mmap... " >&6; }
6889 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6890 $as_echo_n "(cached) " >&6
6892 if test "$cross_compiling" = yes; then :
6893 ac_cv_func_mmap_fixed_mapped=no
6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h. */
6897 $ac_includes_default
6898 /* malloc might have been renamed as rpl_malloc. */
6901 /* Thanks to Mike Haertel and Jim Avera for this test.
6902 Here is a matrix of mmap possibilities:
6903 mmap private not fixed
6904 mmap private fixed at somewhere currently unmapped
6905 mmap private fixed at somewhere already mapped
6906 mmap shared not fixed
6907 mmap shared fixed at somewhere currently unmapped
6908 mmap shared fixed at somewhere already mapped
6909 For private mappings, we should verify that changes cannot be read()
6910 back from the file, nor mmap's back from the file at a different
6911 address. (There have been systems where private was not correctly
6912 implemented like the infamous i386 svr4.0, and systems where the
6913 VM page cache was not coherent with the file system buffer cache
6914 like early versions of FreeBSD and possibly contemporary NetBSD.)
6915 For shared mappings, we should conversely verify that changes get
6916 propagated back to all the places they're supposed to be.
6918 Grep wants private fixed already mapped.
6919 The main things grep needs to know about mmap are:
6920 * does it exist and is it safe to write into the mmap'd area
6921 * how to use it (BSD variants) */
6924 #include <sys/mman.h>
6926 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6930 /* This mess was copied from the GNU getpagesize.h. */
6931 #ifndef HAVE_GETPAGESIZE
6932 # ifdef _SC_PAGESIZE
6933 # define getpagesize() sysconf(_SC_PAGESIZE)
6934 # else /* no _SC_PAGESIZE */
6935 # ifdef HAVE_SYS_PARAM_H
6936 # include <sys/param.h>
6937 # ifdef EXEC_PAGESIZE
6938 # define getpagesize() EXEC_PAGESIZE
6939 # else /* no EXEC_PAGESIZE */
6941 # define getpagesize() NBPG * CLSIZE
6944 # endif /* no CLSIZE */
6945 # else /* no NBPG */
6947 # define getpagesize() NBPC
6948 # else /* no NBPC */
6950 # define getpagesize() PAGESIZE
6951 # endif /* PAGESIZE */
6952 # endif /* no NBPC */
6953 # endif /* no NBPG */
6954 # endif /* no EXEC_PAGESIZE */
6955 # else /* no HAVE_SYS_PARAM_H */
6956 # define getpagesize() 8192 /* punt totally */
6957 # endif /* no HAVE_SYS_PARAM_H */
6958 # endif /* no _SC_PAGESIZE */
6960 #endif /* no HAVE_GETPAGESIZE */
6965 char *data, *data2, *data3;
6970 pagesize = getpagesize ();
6972 /* First, make a file with some known garbage in it. */
6973 data = (char *) malloc (pagesize);
6976 for (i = 0; i < pagesize; ++i)
6977 *(data + i) = rand ();
6979 fd = creat ("conftest.mmap", 0600);
6982 if (write (fd, data, pagesize) != pagesize)
6986 /* Next, check that the tail of a page is zero-filled. File must have
6987 non-zero length, otherwise we risk SIGBUS for entire page. */
6988 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6992 if (write (fd2, cdata2, 1) != 1)
6994 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6995 if (data2 == MAP_FAILED)
6997 for (i = 0; i < pagesize; ++i)
7001 if (munmap (data2, pagesize))
7004 /* Next, try to mmap the file at a fixed address which already has
7005 something else allocated at it. If we can, also make sure that
7006 we see the same garbage. */
7007 fd = open ("conftest.mmap", O_RDWR);
7010 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7011 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7013 for (i = 0; i < pagesize; ++i)
7014 if (*(data + i) != *(data2 + i))
7017 /* Finally, make sure that changes to the mapped area do not
7018 percolate back to the file as seen by read(). (This is a bug on
7019 some variants of i386 svr4.0.) */
7020 for (i = 0; i < pagesize; ++i)
7021 *(data2 + i) = *(data2 + i) + 1;
7022 data3 = (char *) malloc (pagesize);
7025 if (read (fd, data3, pagesize) != pagesize)
7027 for (i = 0; i < pagesize; ++i)
7028 if (*(data + i) != *(data3 + i))
7034 if ac_fn_c_try_run "$LINENO"; then :
7035 ac_cv_func_mmap_fixed_mapped=yes
7037 ac_cv_func_mmap_fixed_mapped=no
7039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7040 conftest.$ac_objext conftest.beam conftest.$ac_ext
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7045 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7046 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7048 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7051 rm -rf conftest.mmap conftest.txt
7054 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7055 unistd.h sys/param.h
7057 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7058 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7059 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7060 cat >>confdefs.h <<_ACEOF
7061 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7068 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7069 strdup __argz_count __argz_stringify __argz_next
7071 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7072 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7073 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7074 cat >>confdefs.h <<_ACEOF
7075 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7082 if test $ac_cv_header_locale_h = yes; then
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
7084 $as_echo_n "checking for LC_MESSAGES... " >&6; }
7085 if ${am_cv_val_LC_MESSAGES+:} false; then :
7086 $as_echo_n "(cached) " >&6
7088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h. */
7099 if ac_fn_c_try_link "$LINENO"; then :
7100 am_cv_val_LC_MESSAGES=yes
7102 am_cv_val_LC_MESSAGES=no
7104 rm -f core conftest.err conftest.$ac_objext \
7105 conftest$ac_exeext conftest.$ac_ext
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
7108 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
7109 if test $am_cv_val_LC_MESSAGES = yes; then
7111 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
7118 nls_cv_force_use_gnu_gettext="no"
7120 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7121 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7123 nls_cv_header_libgt=
7126 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
7127 if test "x$ac_cv_header_libintl_h" = xyes; then :
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
7129 $as_echo_n "checking for dgettext in libc... " >&6; }
7130 if ${gt_cv_func_dgettext_libc+:} false; then :
7131 $as_echo_n "(cached) " >&6
7133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h. */
7135 #include <libintl.h>
7139 return (int) dgettext ("","")
7144 if ac_fn_c_try_link "$LINENO"; then :
7145 gt_cv_func_dgettext_libc=yes
7147 gt_cv_func_dgettext_libc=no
7149 rm -f core conftest.err conftest.$ac_objext \
7150 conftest$ac_exeext conftest.$ac_ext
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
7153 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
7155 if test "$gt_cv_func_dgettext_libc" != "yes"; then
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
7157 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
7158 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
7159 $as_echo_n "(cached) " >&6
7161 ac_check_lib_save_LIBS=$LIBS
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7166 /* Override any GCC internal prototype to avoid an error.
7167 Use char because int might match the return type of a GCC
7168 builtin and then its argument prototype would still apply. */
7172 char bindtextdomain ();
7176 return bindtextdomain ();
7181 if ac_fn_c_try_link "$LINENO"; then :
7182 ac_cv_lib_intl_bindtextdomain=yes
7184 ac_cv_lib_intl_bindtextdomain=no
7186 rm -f core conftest.err conftest.$ac_objext \
7187 conftest$ac_exeext conftest.$ac_ext
7188 LIBS=$ac_check_lib_save_LIBS
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
7191 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
7192 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libintl" >&5
7194 $as_echo_n "checking for dgettext in libintl... " >&6; }
7195 if ${gt_cv_func_dgettext_libintl+:} false; then :
7196 $as_echo_n "(cached) " >&6
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
7199 $as_echo_n "checking for dgettext in -lintl... " >&6; }
7200 if ${ac_cv_lib_intl_dgettext+:} false; then :
7201 $as_echo_n "(cached) " >&6
7203 ac_check_lib_save_LIBS=$LIBS
7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h. */
7208 /* Override any GCC internal prototype to avoid an error.
7209 Use char because int might match the return type of a GCC
7210 builtin and then its argument prototype would still apply. */
7223 if ac_fn_c_try_link "$LINENO"; then :
7224 ac_cv_lib_intl_dgettext=yes
7226 ac_cv_lib_intl_dgettext=no
7228 rm -f core conftest.err conftest.$ac_objext \
7229 conftest$ac_exeext conftest.$ac_ext
7230 LIBS=$ac_check_lib_save_LIBS
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
7233 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
7234 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
7235 gt_cv_func_dgettext_libintl=yes
7237 gt_cv_func_dgettext_libintl=no
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libintl" >&5
7242 $as_echo "$gt_cv_func_dgettext_libintl" >&6; }
7247 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
7248 LIBS="$LIBS -lintl";
7251 if test "$gt_cv_func_dgettext_libc" = "yes" \
7252 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
7254 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7256 # Extract the first word of "msgfmt", so it can be a program name with args.
7257 set dummy msgfmt; ac_word=$2
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259 $as_echo_n "checking for $ac_word... " >&6; }
7260 if ${ac_cv_path_MSGFMT+:} false; then :
7261 $as_echo_n "(cached) " >&6
7265 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7268 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7269 for ac_dir in $PATH; do
7270 test -z "$ac_dir" && ac_dir=.
7271 if test -f $ac_dir/$ac_word; then
7272 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7273 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7279 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7283 MSGFMT="$ac_cv_path_MSGFMT"
7284 if test -n "$MSGFMT"; then
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7286 $as_echo "$MSGFMT" >&6; }
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7289 $as_echo "no" >&6; }
7291 if test "$MSGFMT" != "no"; then
7292 for ac_func in dcgettext
7294 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
7295 if test "x$ac_cv_func_dcgettext" = xyes; then :
7296 cat >>confdefs.h <<_ACEOF
7297 #define HAVE_DCGETTEXT 1
7303 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7304 set dummy gmsgfmt; ac_word=$2
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306 $as_echo_n "checking for $ac_word... " >&6; }
7307 if ${ac_cv_path_GMSGFMT+:} false; then :
7308 $as_echo_n "(cached) " >&6
7312 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7334 GMSGFMT=$ac_cv_path_GMSGFMT
7335 if test -n "$GMSGFMT"; then
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7337 $as_echo "$GMSGFMT" >&6; }
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7344 # Extract the first word of "xgettext", so it can be a program name with args.
7345 set dummy xgettext; ac_word=$2
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 $as_echo_n "checking for $ac_word... " >&6; }
7348 if ${ac_cv_path_XGETTEXT+:} false; then :
7349 $as_echo_n "(cached) " >&6
7353 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7357 for ac_dir in $PATH; do
7358 test -z "$ac_dir" && ac_dir=.
7359 if test -f $ac_dir/$ac_word; then
7360 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7361 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7367 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7371 XGETTEXT="$ac_cv_path_XGETTEXT"
7372 if test -n "$XGETTEXT"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7374 $as_echo "$XGETTEXT" >&6; }
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7386 extern int _nl_msg_cat_cntr;
7387 return _nl_msg_cat_cntr
7392 if ac_fn_c_try_link "$LINENO"; then :
7399 rm -f core conftest.err conftest.$ac_objext \
7400 conftest$ac_exeext conftest.$ac_ext
7405 # Added by Martin Baulig 12/15/98 for libc5 systems
7406 if test "$gt_cv_func_dgettext_libc" != "yes" \
7407 && test "$gt_cv_func_dgettext_libintl" = "yes"; then
7409 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7416 if test "$CATOBJEXT" = "NONE"; then
7417 nls_cv_use_gnu_gettext=yes
7421 if test "$nls_cv_use_gnu_gettext" != "yes"; then
7423 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7429 if test "$XGETTEXT" != ":"; then
7430 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
7434 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7439 # We need to process the po/ directory.
7442 ac_config_commands="$ac_config_commands default-2"
7445 for lang in $ALL_LINGUAS; do
7446 GMOFILES="$GMOFILES $lang.gmo"
7447 POFILES="$POFILES $lang.po"
7462 if test "x$CATOBJEXT" != "x"; then
7463 if test "x$ALL_LINGUAS" = "x"; then
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7467 $as_echo_n "checking for catalogs to be installed... " >&6; }
7469 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7470 case "$ALL_LINGUAS" in
7471 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7474 LINGUAS=$NEW_LINGUAS
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7476 $as_echo "$LINGUAS" >&6; }
7479 if test -n "$LINGUAS"; then
7480 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7484 test -d po || mkdir po
7485 if test "$CATOBJEXT" = ".cat"; then
7486 ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
7487 if test "x$ac_cv_header_linux_version_h" = xyes; then :
7495 sed -e '/^#/d' $srcdir/po/$msgformat-msg.sed > po/po2msg.sed
7500 # jwz: fuck this! it puts hardcoded pathnames into the generated Makefiles!
7502 # if test -n "$ac_aux_dir"; then
7503 # MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7505 if test -z "$MKINSTALLDIRS"; then
7506 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7509 # jwz: you know what, screw it. Let's just use the version that I
7510 # already computed in configure.in, instead of this version that came
7511 # with the i18n crud, ok?
7512 MKINSTALLDIRS="$INSTALL_DIRS"
7517 test -d po || mkdir po
7518 if test "x$srcdir" != "x."; then
7519 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7520 posrcprefix="$srcdir/"
7522 posrcprefix="../$srcdir/"
7528 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7529 < $srcdir/po/POTFILES.in > po/POTFILES
7531 MKINSTALLDIRS="$INSTALL_DIRS"
7534 ###############################################################################
7536 # Check for -lXmu (some fucked up vendors don't ship it...)
7538 ###############################################################################
7542 ac_save_CPPFLAGS="$CPPFLAGS"
7543 if test \! -z "$includedir" ; then
7544 CPPFLAGS="$CPPFLAGS -I$includedir"
7546 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7547 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
7548 ac_fn_c_check_header_compile "$LINENO" "X11/Xmu/Error.h" "ac_cv_header_X11_Xmu_Error_h" "#include <stdlib.h>
7550 #include <X11/Intrinsic.h>
7552 if test "x$ac_cv_header_X11_Xmu_Error_h" = xyes; then :
7557 CPPFLAGS="$ac_save_CPPFLAGS"
7558 if test "$have_xmu" = no ; then
7559 XMU_SRCS='$(UTILS_SRC)/xmu.c'
7560 XMU_OBJS='$(UTILS_BIN)/xmu.o'
7566 $as_echo "#define HAVE_XMU 1" >>confdefs.h
7571 ###############################################################################
7573 # Check for the SunOS 4.1.x _get_wmShellWidgetClass bug.
7574 # See comp.windows.x FAQ question 124. The right fix is to
7575 # get OpenWindows 3.0 patches 100512-02 and 100573-03.
7577 ###############################################################################
7579 if test "$have_xmu" = yes ; then
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the SunOS 4.1.x _get_wmShellWidgetClass bug" >&5
7583 $as_echo_n "checking for the SunOS 4.1.x _get_wmShellWidgetClass bug... " >&6; }
7584 if ${ac_cv_sunos_xmu_bug+:} false; then :
7585 $as_echo_n "(cached) " >&6
7587 ac_save_LDFLAGS="$LDFLAGS"
7588 if test \! -z "$x_libraries" ; then
7589 LDFLAGS="$LDFLAGS -L$x_libraries"
7591 # Note: this trick never works! (Generally.)
7592 # We're only getting away with using AC_TRY_LINK
7593 # with X libraries because we know it's SunOS.
7594 LDFLAGS="$LDFLAGS -lXmu -lXt -lX11 -lXext -lm"
7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h. */
7606 if ac_fn_c_try_link "$LINENO"; then :
7607 ac_cv_sunos_xmu_bug=no
7609 ac_cv_sunos_xmu_bug=yes
7611 rm -f core conftest.err conftest.$ac_objext \
7612 conftest$ac_exeext conftest.$ac_ext
7613 LDFLAGS="$ac_save_LDFLAGS"
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sunos_xmu_bug" >&5
7616 $as_echo "$ac_cv_sunos_xmu_bug" >&6; }
7617 if test "$ac_cv_sunos_xmu_bug" = yes ; then
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static" >&5
7619 $as_echo_n "checking whether the compiler understands -static... " >&6; }
7620 if ${ac_cv_ld_static+:} false; then :
7621 $as_echo_n "(cached) " >&6
7623 ac_save_LDFLAGS="$LDFLAGS"
7624 LDFLAGS="$LDFLAGS -static"
7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626 /* end confdefs.h. */
7636 if ac_fn_c_try_link "$LINENO"; then :
7641 rm -f core conftest.err conftest.$ac_objext \
7642 conftest$ac_exeext conftest.$ac_ext
7643 LDFLAGS="$ac_save_LDFLAGS"
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ld_static" >&5
7646 $as_echo "$ac_cv_ld_static" >&6; }
7647 if test "$ac_cv_ld_static" = yes ; then
7648 LDFLAGS="$LDFLAGS -static"
7650 LDFLAGS="$LDFLAGS -Bstatic"
7658 ###############################################################################
7660 # Handle the --with-hackdir option
7662 ###############################################################################
7665 with_hackdir_req=unspecified
7667 # Check whether --with-hackdir was given.
7668 if test "${with_hackdir+set}" = set; then :
7669 withval=$with_hackdir; with_hackdir="$withval"; with_hackdir_req="$withval"
7675 if test x"$with_hackdir" = xyes; then
7676 HACKDIR='${libexecdir}/xscreensaver'
7677 elif test x"$with_hackdir" = xno; then
7680 HACKDIR=$with_hackdir
7683 # canonicalize slashes.
7684 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
7686 # Expand HACKDIR as HACKDIR_FULL
7687 HACKDIR_FULL=`eval eval eval eval eval eval eval eval eval echo $HACKDIR`
7689 # This option used to be called --enable-subdir; make sure that is no longer
7690 # used, since configure brain-damagedly ignores unknown --enable options.
7693 # Check whether --enable-subdir was given.
7694 if test "${enable_subdir+set}" = set; then :
7695 enableval=$enable_subdir; obsolete_enable=yes
7698 if test -n "$obsolete_enable"; then
7699 echo "error: the --enable-subdir option has been replaced with"
7700 echo " the new --with-hackdir option; see \`configure --help'"
7701 echo " for more information."
7706 ###############################################################################
7708 # Handle the --with-configdir option
7709 # Help for --with-x-app-defaults option added.
7711 ###############################################################################
7714 with_configdir_req=unspecified
7716 # Check whether --with-configdir was given.
7717 if test "${with_configdir+set}" = set; then :
7718 withval=$with_configdir; with_configdir="$withval"; with_configdir_req="$withval"
7724 if test x"$with_configdir" = xyes; then
7725 HACK_CONF_DIR='${datadir}/xscreensaver/config'
7726 elif test x"$with_configdir" = xno; then
7727 echo "error: must be yes, or a pathname: --with-configdir=$with_configdir"
7730 # there must be a better way than this...
7731 if test -z "`echo $with_configdir | sed 's@^/.*@@'`" ; then
7733 HACK_CONF_DIR=$with_configdir
7736 HACK_CONF_DIR="\${exec_prefix}$with_configdir"
7743 ###############################################################################
7745 # Check for the SGI SCREEN_SAVER server extension.
7747 ###############################################################################
7750 #with_sgi_req=unspecified
7751 #AC_ARG_WITH(sgi-ext,
7752 #[Except where noted, all of the --with options below can also take a
7753 #directory argument: for example, `--with-motif=/opt/Motif'. That would
7754 #cause /opt/Motif/include/ to be added to the -I list, and /opt/Motif/lib/
7755 #to be added to the -L list, assuming those directories exist.
7757 #By default, support for each of these options will be built in, if the
7758 #relevant library routines exist. At run time, they will then be used
7759 #only if the X server being used supports them. Each --with option has
7760 #a corresponding --without option, to override building support for them
7763 #Screen blanking and idle-detection options:
7765 # --with-sgi-ext Include support for the SGI SCREEN_SAVER extension.],
7766 # [with_sgi="$withval"; with_sgi_req="$withval"],[with_sgi=yes])
7768 #HANDLE_X_PATH_ARG(with_sgi, --with-sgi-ext, SGI SCREEN_SAVER)
7770 #if test "$with_sgi" = yes; then
7771 # AC_CHECK_X_HEADER(X11/extensions/XScreenSaver.h,
7773 # AC_DEFINE(HAVE_SGI_SAVER_EXTENSION)],,
7774 # [#include <X11/Xlib.h>])
7776 #elif test "$with_sgi" != no; then
7777 # echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
7782 ###############################################################################
7784 # Check for the XIDLE server extension.
7786 ###############################################################################
7789 #with_xidle_req=unspecified
7790 #AC_ARG_WITH(xidle-ext,
7791 #[ --with-xidle-ext Include support for the XIDLE extension.],
7792 # [with_xidle="$withval"; with_xidle_req="$withval"],[with_xidle=yes])
7794 #HANDLE_X_PATH_ARG(with_xidle, --with-xidle-ext, XIDLE)
7796 #if test "$with_xidle" = yes; then
7797 # AC_CHECK_X_HEADER(X11/extensions/xidle.h,
7799 # AC_DEFINE(HAVE_XIDLE_EXTENSION)],,
7800 # [#include <X11/Xlib.h>])
7801 #elif test "$with_xidle" != no; then
7802 # echo "error: must be yes or no: --with-xidle-ext=$with_xidle"
7807 ###############################################################################
7809 # Check for the SGI-VIDEO-CONTROL server extension.
7811 ###############################################################################
7814 #with_sgivc_req=unspecified
7815 #AC_ARG_WITH(sgivc-ext,
7816 #[ --with-sgivc-ext Include support for the SGI-VIDEO-CONTROL extension.],
7817 # [with_sgivc="$withval"; with_sgivc_req="$withval"],[with_sgivc=yes])
7819 #HANDLE_X_PATH_ARG(with_sgivc, --with-sgivc-ext, SGI-VIDEO-CONTROL)
7821 #if test "$with_sgivc" = yes; then
7823 # # first check for XSGIvc.h
7824 # AC_CHECK_X_HEADER(X11/extensions/XSGIvc.h, [have_sgivc=yes],,
7825 # [#include <X11/Xlib.h>])
7827 # # if that succeeded, then check for the -lXsgivc
7828 # if test "$have_sgivc" = yes; then
7830 # AC_CHECK_X_LIB(Xsgivc, XSGIvcQueryGammaMap,
7831 # [have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"], [true],
7835 # # if that succeeded, then we've really got it.
7836 # if test "$have_sgivc" = yes; then
7837 # AC_DEFINE(HAVE_SGI_VC_EXTENSION)
7840 #elif test "$with_sgivc" != no; then
7841 # echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
7846 ###############################################################################
7848 # Check for the DPMS server extension.
7850 ###############################################################################
7853 with_dpms_req=unspecified
7855 # Check whether --with-dpms-ext was given.
7856 if test "${with_dpms_ext+set}" = set; then :
7857 withval=$with_dpms_ext; with_dpms="$withval"; with_dpms_req="$withval"
7864 case "$with_dpms" in
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPMS headers" >&5
7870 $as_echo_n "checking for DPMS headers... " >&6; }
7871 d=$with_dpms/include
7873 X_CFLAGS="-I$d $X_CFLAGS"
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
7875 $as_echo "$d" >&6; }
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
7878 $as_echo "not found ($d: no such directory)" >&6; }
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPMS libs" >&5
7882 $as_echo_n "checking for DPMS libs... " >&6; }
7885 X_LIBS="-L$d $X_LIBS"
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
7887 $as_echo "$d" >&6; }
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
7890 $as_echo "not found ($d: no such directory)" >&6; }
7893 # replace the directory string with "yes".
7895 with_dpms=$with_dpms_req
7900 echo "error: argument to --with-dpms-ext must be \"yes\", \"no\", or a directory."
7901 echo " If it is a directory, then \`DIR/include' will be added to"
7902 echo " the -I list, and \`DIR/lib' will be added to the -L list."
7908 if test "$with_dpms" = yes; then
7910 # first check for dpms.h
7912 ac_save_CPPFLAGS="$CPPFLAGS"
7913 if test \! -z "$includedir" ; then
7914 CPPFLAGS="$CPPFLAGS -I$includedir"
7916 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7917 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
7918 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/dpms.h" "ac_cv_header_X11_extensions_dpms_h" "#include <X11/Xlib.h>
7919 #include <X11/Xmd.h>
7921 if test "x$ac_cv_header_X11_extensions_dpms_h" = xyes; then :
7926 CPPFLAGS="$ac_save_CPPFLAGS"
7928 # if that succeeded, then check for the DPMS code in the libraries
7929 if test "$have_dpms" = yes; then
7931 # first look in -lXext (this is where it is with XFree86 4.0)
7934 ac_save_CPPFLAGS="$CPPFLAGS"
7935 ac_save_LDFLAGS="$LDFLAGS"
7936 # ac_save_LIBS="$LIBS"
7938 if test \! -z "$includedir" ; then
7939 CPPFLAGS="$CPPFLAGS -I$includedir"
7941 # note: $X_CFLAGS includes $x_includes
7942 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7944 if test \! -z "$libdir" ; then
7945 LDFLAGS="$LDFLAGS -L$libdir"
7947 # note: $X_LIBS includes $x_libraries
7948 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
7950 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
7951 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPMSInfo in -lXext" >&5
7953 $as_echo_n "checking for DPMSInfo in -lXext... " >&6; }
7954 if ${ac_cv_lib_Xext_DPMSInfo+:} false; then :
7955 $as_echo_n "(cached) " >&6
7957 ac_check_lib_save_LIBS=$LIBS
7958 LIBS="-lXext -lXext -lX11 $LIBS"
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7962 /* Override any GCC internal prototype to avoid an error.
7963 Use char because int might match the return type of a GCC
7964 builtin and then its argument prototype would still apply. */
7977 if ac_fn_c_try_link "$LINENO"; then :
7978 ac_cv_lib_Xext_DPMSInfo=yes
7980 ac_cv_lib_Xext_DPMSInfo=no
7982 rm -f core conftest.err conftest.$ac_objext \
7983 conftest$ac_exeext conftest.$ac_ext
7984 LIBS=$ac_check_lib_save_LIBS
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_DPMSInfo" >&5
7987 $as_echo "$ac_cv_lib_Xext_DPMSInfo" >&6; }
7988 if test "x$ac_cv_lib_Xext_DPMSInfo" = xyes; then :
7994 CPPFLAGS="$ac_save_CPPFLAGS"
7995 LDFLAGS="$ac_save_LDFLAGS"
7996 # LIBS="$ac_save_LIBS"
7999 # if that failed, look in -lXdpms (this is where it was in XFree86 3.x)
8000 if test "$have_dpms" = no; then
8002 ac_save_CPPFLAGS="$CPPFLAGS"
8003 ac_save_LDFLAGS="$LDFLAGS"
8004 # ac_save_LIBS="$LIBS"
8006 if test \! -z "$includedir" ; then
8007 CPPFLAGS="$CPPFLAGS -I$includedir"
8009 # note: $X_CFLAGS includes $x_includes
8010 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8012 if test \! -z "$libdir" ; then
8013 LDFLAGS="$LDFLAGS -L$libdir"
8015 # note: $X_LIBS includes $x_libraries
8016 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
8018 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8019 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPMSInfo in -lXdpms" >&5
8021 $as_echo_n "checking for DPMSInfo in -lXdpms... " >&6; }
8022 if ${ac_cv_lib_Xdpms_DPMSInfo+:} false; then :
8023 $as_echo_n "(cached) " >&6
8025 ac_check_lib_save_LIBS=$LIBS
8026 LIBS="-lXdpms -lXext -lX11 $LIBS"
8027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8028 /* end confdefs.h. */
8030 /* Override any GCC internal prototype to avoid an error.
8031 Use char because int might match the return type of a GCC
8032 builtin and then its argument prototype would still apply. */
8045 if ac_fn_c_try_link "$LINENO"; then :
8046 ac_cv_lib_Xdpms_DPMSInfo=yes
8048 ac_cv_lib_Xdpms_DPMSInfo=no
8050 rm -f core conftest.err conftest.$ac_objext \
8051 conftest$ac_exeext conftest.$ac_ext
8052 LIBS=$ac_check_lib_save_LIBS
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdpms_DPMSInfo" >&5
8055 $as_echo "$ac_cv_lib_Xdpms_DPMSInfo" >&6; }
8056 if test "x$ac_cv_lib_Xdpms_DPMSInfo" = xyes; then :
8057 have_dpms=yes; XDPMS_LIBS="-lXdpms"
8062 CPPFLAGS="$ac_save_CPPFLAGS"
8063 LDFLAGS="$ac_save_LDFLAGS"
8064 # LIBS="$ac_save_LIBS"
8070 # if that succeeded, then we've really got it.
8071 if test "$have_dpms" = yes; then
8072 $as_echo "#define HAVE_DPMS_EXTENSION 1" >>confdefs.h
8076 elif test "$with_dpms" != no; then
8077 echo "error: must be yes or no: --with-dpms-ext=$with_dpms"
8082 ###############################################################################
8084 # Check for the XINERAMA server extension.
8086 ###############################################################################
8089 with_xinerama_req=unspecified
8091 # Check whether --with-xinerama-ext was given.
8092 if test "${with_xinerama_ext+set}" = set; then :
8093 withval=$with_xinerama_ext; with_xinerama="$withval"; with_xinerama_req="$withval"
8100 case "$with_xinerama" in
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINERAMA headers" >&5
8106 $as_echo_n "checking for XINERAMA headers... " >&6; }
8107 d=$with_xinerama/include
8109 X_CFLAGS="-I$d $X_CFLAGS"
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
8111 $as_echo "$d" >&6; }
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
8114 $as_echo "not found ($d: no such directory)" >&6; }
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINERAMA libs" >&5
8118 $as_echo_n "checking for XINERAMA libs... " >&6; }
8119 d=$with_xinerama/lib
8121 X_LIBS="-L$d $X_LIBS"
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
8123 $as_echo "$d" >&6; }
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
8126 $as_echo "not found ($d: no such directory)" >&6; }
8129 # replace the directory string with "yes".
8130 with_xinerama_req="yes"
8131 with_xinerama=$with_xinerama_req
8136 echo "error: argument to --with-xinerama-ext must be \"yes\", \"no\", or a directory."
8137 echo " If it is a directory, then \`DIR/include' will be added to"
8138 echo " the -I list, and \`DIR/lib' will be added to the -L list."
8144 if test "$with_xinerama" = yes; then
8146 # first check for Xinerama.h
8148 ac_save_CPPFLAGS="$CPPFLAGS"
8149 if test \! -z "$includedir" ; then
8150 CPPFLAGS="$CPPFLAGS -I$includedir"
8152 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8153 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8154 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
8156 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
8161 CPPFLAGS="$ac_save_CPPFLAGS"
8163 # if that succeeded, then check for the XINERAMA code in the libraries
8164 if test "$have_xinerama" = yes; then
8166 # first look in -lXext
8169 ac_save_CPPFLAGS="$CPPFLAGS"
8170 ac_save_LDFLAGS="$LDFLAGS"
8171 # ac_save_LIBS="$LIBS"
8173 if test \! -z "$includedir" ; then
8174 CPPFLAGS="$CPPFLAGS -I$includedir"
8176 # note: $X_CFLAGS includes $x_includes
8177 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8179 if test \! -z "$libdir" ; then
8180 LDFLAGS="$LDFLAGS -L$libdir"
8182 # note: $X_LIBS includes $x_libraries
8183 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
8185 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8186 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryScreens in -lXext" >&5
8188 $as_echo_n "checking for XineramaQueryScreens in -lXext... " >&6; }
8189 if ${ac_cv_lib_Xext_XineramaQueryScreens+:} false; then :
8190 $as_echo_n "(cached) " >&6
8192 ac_check_lib_save_LIBS=$LIBS
8193 LIBS="-lXext -lXext -lX11 $LIBS"
8194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195 /* end confdefs.h. */
8197 /* Override any GCC internal prototype to avoid an error.
8198 Use char because int might match the return type of a GCC
8199 builtin and then its argument prototype would still apply. */
8203 char XineramaQueryScreens ();
8207 return XineramaQueryScreens ();
8212 if ac_fn_c_try_link "$LINENO"; then :
8213 ac_cv_lib_Xext_XineramaQueryScreens=yes
8215 ac_cv_lib_Xext_XineramaQueryScreens=no
8217 rm -f core conftest.err conftest.$ac_objext \
8218 conftest$ac_exeext conftest.$ac_ext
8219 LIBS=$ac_check_lib_save_LIBS
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XineramaQueryScreens" >&5
8222 $as_echo "$ac_cv_lib_Xext_XineramaQueryScreens" >&6; }
8223 if test "x$ac_cv_lib_Xext_XineramaQueryScreens" = xyes; then :
8229 CPPFLAGS="$ac_save_CPPFLAGS"
8230 LDFLAGS="$ac_save_LDFLAGS"
8231 # LIBS="$ac_save_LIBS"
8234 # if that failed, look in -lXinerama (this is where it is in XFree86 4.1.)
8235 if test "$have_xinerama" = no; then
8237 ac_save_CPPFLAGS="$CPPFLAGS"
8238 ac_save_LDFLAGS="$LDFLAGS"
8239 # ac_save_LIBS="$LIBS"
8241 if test \! -z "$includedir" ; then
8242 CPPFLAGS="$CPPFLAGS -I$includedir"
8244 # note: $X_CFLAGS includes $x_includes
8245 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8247 if test \! -z "$libdir" ; then
8248 LDFLAGS="$LDFLAGS -L$libdir"
8250 # note: $X_LIBS includes $x_libraries
8251 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
8253 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8254 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryScreens in -lXinerama" >&5
8256 $as_echo_n "checking for XineramaQueryScreens in -lXinerama... " >&6; }
8257 if ${ac_cv_lib_Xinerama_XineramaQueryScreens+:} false; then :
8258 $as_echo_n "(cached) " >&6
8260 ac_check_lib_save_LIBS=$LIBS
8261 LIBS="-lXinerama -lXext -lX11 $LIBS"
8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8263 /* end confdefs.h. */
8265 /* Override any GCC internal prototype to avoid an error.
8266 Use char because int might match the return type of a GCC
8267 builtin and then its argument prototype would still apply. */
8271 char XineramaQueryScreens ();
8275 return XineramaQueryScreens ();
8280 if ac_fn_c_try_link "$LINENO"; then :
8281 ac_cv_lib_Xinerama_XineramaQueryScreens=yes
8283 ac_cv_lib_Xinerama_XineramaQueryScreens=no
8285 rm -f core conftest.err conftest.$ac_objext \
8286 conftest$ac_exeext conftest.$ac_ext
8287 LIBS=$ac_check_lib_save_LIBS
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
8290 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
8291 if test "x$ac_cv_lib_Xinerama_XineramaQueryScreens" = xyes; then :
8292 have_xinerama=yes; XINERAMA_LIBS="-lXinerama"
8297 CPPFLAGS="$ac_save_CPPFLAGS"
8298 LDFLAGS="$ac_save_LDFLAGS"
8299 # LIBS="$ac_save_LIBS"
8304 # if that succeeded, then we've really got it.
8305 if test "$have_xinerama" = yes; then
8306 $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
8310 elif test "$with_xinerama" != no; then
8311 echo "error: must be yes or no: --with-xinerama-ext=$with_xinerama"
8316 ###############################################################################
8318 # Check for the XINPUT server extension.
8320 ###############################################################################
8323 with_xinput_req=unspecified
8325 # Check whether --with-xinput-ext was given.
8326 if test "${with_xinput_ext+set}" = set; then :
8327 withval=$with_xinput_ext; with_xinput="$withval"; with_xinput_req="$withval"
8334 case "$with_xinput" in
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINPUT headers" >&5
8340 $as_echo_n "checking for XINPUT headers... " >&6; }
8341 d=$with_xinput/include
8343 X_CFLAGS="-I$d $X_CFLAGS"
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
8345 $as_echo "$d" >&6; }
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
8348 $as_echo "not found ($d: no such directory)" >&6; }
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINPUT libs" >&5
8352 $as_echo_n "checking for XINPUT libs... " >&6; }
8355 X_LIBS="-L$d $X_LIBS"
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
8357 $as_echo "$d" >&6; }
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
8360 $as_echo "not found ($d: no such directory)" >&6; }
8363 # replace the directory string with "yes".
8364 with_xinput_req="yes"
8365 with_xinput=$with_xinput_req
8370 echo "error: argument to --with-xinput-ext must be \"yes\", \"no\", or a directory."
8371 echo " If it is a directory, then \`DIR/include' will be added to"
8372 echo " the -I list, and \`DIR/lib' will be added to the -L list."
8378 if test "$with_xinput" = yes; then
8380 # first check for Xinput.h
8382 ac_save_CPPFLAGS="$CPPFLAGS"
8383 if test \! -z "$includedir" ; then
8384 CPPFLAGS="$CPPFLAGS -I$includedir"
8386 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8387 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8388 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput.h" "ac_cv_header_X11_extensions_XInput_h" "#include <X11/Xlib.h>
8390 if test "x$ac_cv_header_X11_extensions_XInput_h" = xyes; then :
8395 CPPFLAGS="$ac_save_CPPFLAGS"
8397 # if that succeeded, then check for libXi
8398 if test "$have_xinput" = yes; then
8401 ac_save_CPPFLAGS="$CPPFLAGS"
8402 ac_save_LDFLAGS="$LDFLAGS"
8403 # ac_save_LIBS="$LIBS"
8405 if test \! -z "$includedir" ; then
8406 CPPFLAGS="$CPPFLAGS -I$includedir"
8408 # note: $X_CFLAGS includes $x_includes
8409 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8411 if test \! -z "$libdir" ; then
8412 LDFLAGS="$LDFLAGS -L$libdir"
8414 # note: $X_LIBS includes $x_libraries
8415 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
8417 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8418 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XListInputDevices in -lXi" >&5
8420 $as_echo_n "checking for XListInputDevices in -lXi... " >&6; }
8421 if ${ac_cv_lib_Xi_XListInputDevices+:} false; then :
8422 $as_echo_n "(cached) " >&6
8424 ac_check_lib_save_LIBS=$LIBS
8425 LIBS="-lXi -lXext -lX11 $LIBS"
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h. */
8429 /* Override any GCC internal prototype to avoid an error.
8430 Use char because int might match the return type of a GCC
8431 builtin and then its argument prototype would still apply. */
8435 char XListInputDevices ();
8439 return XListInputDevices ();
8444 if ac_fn_c_try_link "$LINENO"; then :
8445 ac_cv_lib_Xi_XListInputDevices=yes
8447 ac_cv_lib_Xi_XListInputDevices=no
8449 rm -f core conftest.err conftest.$ac_objext \
8450 conftest$ac_exeext conftest.$ac_ext
8451 LIBS=$ac_check_lib_save_LIBS
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XListInputDevices" >&5
8454 $as_echo "$ac_cv_lib_Xi_XListInputDevices" >&6; }
8455 if test "x$ac_cv_lib_Xi_XListInputDevices" = xyes; then :
8456 have_xinput=yes; SAVER_LIBS="$SAVER_LIBS -lXi"
8461 CPPFLAGS="$ac_save_CPPFLAGS"
8462 LDFLAGS="$ac_save_LDFLAGS"
8463 # LIBS="$ac_save_LIBS"
8467 # if that succeeded, then we've really got it.
8468 if test "$have_xinput" = yes; then
8469 $as_echo "#define HAVE_XINPUT 1" >>confdefs.h
8473 elif test "$with_xinput" != no; then
8474 echo "error: must be yes or no: --with-xinput-ext=$with_xinput"
8479 ###############################################################################
8481 # Check for the XF86VMODE server extension (for virtual screens.)
8483 ###############################################################################
8486 with_xf86vmode_req=unspecified
8488 # Check whether --with-xf86vmode-ext was given.
8489 if test "${with_xf86vmode_ext+set}" = set; then :
8490 withval=$with_xf86vmode_ext; with_xf86vmode="$withval"; with_xf86vmode_req="$withval"
8497 case "$with_xf86vmode" in
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xf86vmode headers" >&5
8503 $as_echo_n "checking for xf86vmode headers... " >&6; }
8504 d=$with_xf86vmode/include
8506 X_CFLAGS="-I$d $X_CFLAGS"
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
8508 $as_echo "$d" >&6; }
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
8511 $as_echo "not found ($d: no such directory)" >&6; }
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xf86vmode libs" >&5
8515 $as_echo_n "checking for xf86vmode libs... " >&6; }
8516 d=$with_xf86vmode/lib
8518 X_LIBS="-L$d $X_LIBS"
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
8520 $as_echo "$d" >&6; }
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
8523 $as_echo "not found ($d: no such directory)" >&6; }
8526 # replace the directory string with "yes".
8527 with_xf86vmode_req="yes"
8528 with_xf86vmode=$with_xf86vmode_req
8533 echo "error: argument to --with-xf86vmode-ext must be \"yes\", \"no\", or a directory."
8534 echo " If it is a directory, then \`DIR/include' will be added to"
8535 echo " the -I list, and \`DIR/lib' will be added to the -L list."
8543 if test "$with_xf86vmode" = yes; then
8545 # first check for xf86vmode.h
8547 ac_save_CPPFLAGS="$CPPFLAGS"
8548 if test \! -z "$includedir" ; then
8549 CPPFLAGS="$CPPFLAGS -I$includedir"
8551 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8552 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8553 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
8555 if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
8560 CPPFLAGS="$ac_save_CPPFLAGS"
8562 # if that succeeded, then check for the -lXxf86vm
8563 if test "$have_xf86vmode" = yes; then
8566 ac_save_CPPFLAGS="$CPPFLAGS"
8567 ac_save_LDFLAGS="$LDFLAGS"
8568 # ac_save_LIBS="$LIBS"
8570 if test \! -z "$includedir" ; then
8571 CPPFLAGS="$CPPFLAGS -I$includedir"
8573 # note: $X_CFLAGS includes $x_includes
8574 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8576 if test \! -z "$libdir" ; then
8577 LDFLAGS="$LDFLAGS -L$libdir"
8579 # note: $X_LIBS includes $x_libraries
8580 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
8582 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8583 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeGetViewPort in -lXxf86vm" >&5
8585 $as_echo_n "checking for XF86VidModeGetViewPort in -lXxf86vm... " >&6; }
8586 if ${ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort+:} false; then :
8587 $as_echo_n "(cached) " >&6
8589 ac_check_lib_save_LIBS=$LIBS
8590 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
8591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592 /* end confdefs.h. */
8594 /* Override any GCC internal prototype to avoid an error.
8595 Use char because int might match the return type of a GCC
8596 builtin and then its argument prototype would still apply. */
8600 char XF86VidModeGetViewPort ();
8604 return XF86VidModeGetViewPort ();
8609 if ac_fn_c_try_link "$LINENO"; then :
8610 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=yes
8612 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=no
8614 rm -f core conftest.err conftest.$ac_objext \
8615 conftest$ac_exeext conftest.$ac_ext
8616 LIBS=$ac_check_lib_save_LIBS
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&5
8619 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&6; }
8620 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" = xyes; then :
8622 VIDMODE_LIBS="-lXxf86vm";
8623 SAVER_LIBS="$SAVER_LIBS $VIDMODE_LIBS"
8628 CPPFLAGS="$ac_save_CPPFLAGS"
8629 LDFLAGS="$ac_save_LDFLAGS"
8630 # LIBS="$ac_save_LIBS"
8634 # if that succeeded, then we've really got it.
8635 if test "$have_xf86vmode" = yes; then
8636 $as_echo "#define HAVE_XF86VMODE 1" >>confdefs.h
8640 elif test "$with_xf86vmode" != no; then
8641 echo "error: must be yes or no: --with-xf86vmode-ext=$with_xf86vmode"
8646 ###############################################################################
8648 # Check for the XF86VMODE server extension (for gamma fading.)
8650 ###############################################################################
8653 have_xf86gamma_ramp=no
8654 with_xf86gamma_req=unspecified
8656 # Check whether --with-xf86gamma-ext was given.
8657 if test "${with_xf86gamma_ext+set}" = set; then :
8658 withval=$with_xf86gamma_ext; with_xf86gamma="$withval"; with_xf86gamma_req="$withval"
8665 case "$with_xf86gamma" in
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xf86gamma headers" >&5
8671 $as_echo_n "checking for xf86gamma headers... " >&6; }
8672 d=$with_xf86gamma/include
8674 X_CFLAGS="-I$d $X_CFLAGS"
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
8676 $as_echo "$d" >&6; }
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
8679 $as_echo "not found ($d: no such directory)" >&6; }
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xf86gamma libs" >&5
8683 $as_echo_n "checking for xf86gamma libs... " >&6; }
8684 d=$with_xf86gamma/lib
8686 X_LIBS="-L$d $X_LIBS"
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
8688 $as_echo "$d" >&6; }
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
8691 $as_echo "not found ($d: no such directory)" >&6; }
8694 # replace the directory string with "yes".
8695 with_xf86gamma_req="yes"
8696 with_xf86gamma=$with_xf86gamma_req
8701 echo "error: argument to --with-xf86gamma-ext must be \"yes\", \"no\", or a directory."
8702 echo " If it is a directory, then \`DIR/include' will be added to"
8703 echo " the -I list, and \`DIR/lib' will be added to the -L list."
8709 if test "$with_xf86gamma" = yes; then
8711 # first check for xf86vmode.h, if we haven't already
8712 if test "$have_xf86vmode" = yes; then
8716 ac_save_CPPFLAGS="$CPPFLAGS"
8717 if test \! -z "$includedir" ; then
8718 CPPFLAGS="$CPPFLAGS -I$includedir"
8720 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8721 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8722 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
8724 if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
8729 CPPFLAGS="$ac_save_CPPFLAGS"
8732 # if that succeeded, then check for the -lXxf86vm
8733 if test "$have_xf86gamma" = yes; then
8736 ac_save_CPPFLAGS="$CPPFLAGS"
8737 ac_save_LDFLAGS="$LDFLAGS"
8738 # ac_save_LIBS="$LIBS"
8740 if test \! -z "$includedir" ; then
8741 CPPFLAGS="$CPPFLAGS -I$includedir"
8743 # note: $X_CFLAGS includes $x_includes
8744 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8746 if test \! -z "$libdir" ; then
8747 LDFLAGS="$LDFLAGS -L$libdir"
8749 # note: $X_LIBS includes $x_libraries
8750 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
8752 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8753 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeSetGamma in -lXxf86vm" >&5
8755 $as_echo_n "checking for XF86VidModeSetGamma in -lXxf86vm... " >&6; }
8756 if ${ac_cv_lib_Xxf86vm_XF86VidModeSetGamma+:} false; then :
8757 $as_echo_n "(cached) " >&6
8759 ac_check_lib_save_LIBS=$LIBS
8760 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
8761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8762 /* end confdefs.h. */
8764 /* Override any GCC internal prototype to avoid an error.
8765 Use char because int might match the return type of a GCC
8766 builtin and then its argument prototype would still apply. */
8770 char XF86VidModeSetGamma ();
8774 return XF86VidModeSetGamma ();
8779 if ac_fn_c_try_link "$LINENO"; then :
8780 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=yes
8782 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=no
8784 rm -f core conftest.err conftest.$ac_objext \
8785 conftest$ac_exeext conftest.$ac_ext
8786 LIBS=$ac_check_lib_save_LIBS
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&5
8789 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&6; }
8790 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" = xyes; then :
8796 CPPFLAGS="$ac_save_CPPFLAGS"
8797 LDFLAGS="$ac_save_LDFLAGS"
8798 # LIBS="$ac_save_LIBS"
8802 # check for the Ramp versions of the functions too.
8803 if test "$have_xf86gamma" = yes; then
8804 have_xf86gamma_ramp=no
8806 ac_save_CPPFLAGS="$CPPFLAGS"
8807 ac_save_LDFLAGS="$LDFLAGS"
8808 # ac_save_LIBS="$LIBS"
8810 if test \! -z "$includedir" ; then
8811 CPPFLAGS="$CPPFLAGS -I$includedir"
8813 # note: $X_CFLAGS includes $x_includes
8814 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8816 if test \! -z "$libdir" ; then
8817 LDFLAGS="$LDFLAGS -L$libdir"
8819 # note: $X_LIBS includes $x_libraries
8820 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
8822 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8823 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeSetGammaRamp in -lXxf86vm" >&5
8825 $as_echo_n "checking for XF86VidModeSetGammaRamp in -lXxf86vm... " >&6; }
8826 if ${ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp+:} false; then :
8827 $as_echo_n "(cached) " >&6
8829 ac_check_lib_save_LIBS=$LIBS
8830 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832 /* end confdefs.h. */
8834 /* Override any GCC internal prototype to avoid an error.
8835 Use char because int might match the return type of a GCC
8836 builtin and then its argument prototype would still apply. */
8840 char XF86VidModeSetGammaRamp ();
8844 return XF86VidModeSetGammaRamp ();
8849 if ac_fn_c_try_link "$LINENO"; then :
8850 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=yes
8852 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=no
8854 rm -f core conftest.err conftest.$ac_objext \
8855 conftest$ac_exeext conftest.$ac_ext
8856 LIBS=$ac_check_lib_save_LIBS
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&5
8859 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&6; }
8860 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" = xyes; then :
8861 have_xf86gamma_ramp=yes
8866 CPPFLAGS="$ac_save_CPPFLAGS"
8867 LDFLAGS="$ac_save_LDFLAGS"
8868 # LIBS="$ac_save_LIBS"
8872 # if those tests succeeded, then we've really got the functions.
8873 if test "$have_xf86gamma" = yes; then
8874 $as_echo "#define HAVE_XF86VMODE_GAMMA 1" >>confdefs.h
8878 if test "$have_xf86gamma_ramp" = yes; then
8879 $as_echo "#define HAVE_XF86VMODE_GAMMA_RAMP 1" >>confdefs.h
8883 # pull in the lib, if we haven't already
8884 if test "$have_xf86gamma" = yes -a "$have_xf86vmode" = no; then
8885 SAVER_LIBS="$SAVER_LIBS -lXxf86vm"
8888 elif test "$with_xf86gamma" != no; then
8889 echo "error: must be yes or no: --with-xf86gamma-ext=$with_xf86vmode"
8894 ###############################################################################
8896 # Check for the RANDR (Resize and Rotate) server extension.
8898 # We need this to detect when the resolution of the desktop
8899 # has changed out from under us (this is a newer, different
8900 # mechanism than the XF86VMODE virtual viewports.)
8902 ###############################################################################
8905 with_randr_req=unspecified
8907 # Check whether --with-randr-ext was given.
8908 if test "${with_randr_ext+set}" = set; then :
8909 withval=$with_randr_ext; with_randr="$withval"; with_randr_req="$withval"
8916 case "$with_randr" in
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RANDR headers" >&5
8922 $as_echo_n "checking for RANDR headers... " >&6; }
8923 d=$with_randr/include
8925 X_CFLAGS="-I$d $X_CFLAGS"
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
8927 $as_echo "$d" >&6; }
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
8930 $as_echo "not found ($d: no such directory)" >&6; }
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RANDR libs" >&5
8934 $as_echo_n "checking for RANDR libs... " >&6; }
8937 X_LIBS="-L$d $X_LIBS"
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
8939 $as_echo "$d" >&6; }
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
8942 $as_echo "not found ($d: no such directory)" >&6; }
8945 # replace the directory string with "yes".
8946 with_randr_req="yes"
8947 with_randr=$with_randr_req
8952 echo "error: argument to --with-randr-ext must be \"yes\", \"no\", or a directory."
8953 echo " If it is a directory, then \`DIR/include' will be added to"
8954 echo " the -I list, and \`DIR/lib' will be added to the -L list."
8960 if test "$with_randr" = yes; then
8962 # first check for Xrandr.h
8964 ac_save_CPPFLAGS="$CPPFLAGS"
8965 if test \! -z "$includedir" ; then
8966 CPPFLAGS="$CPPFLAGS -I$includedir"
8968 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8969 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8970 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "#include <X11/Xlib.h>
8972 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = xyes; then :
8977 CPPFLAGS="$ac_save_CPPFLAGS"
8979 # if that succeeded, then check for the XRR code in the libraries
8980 if test "$have_randr" = yes; then
8982 # RANDR probably needs -lXrender
8985 ac_save_CPPFLAGS="$CPPFLAGS"
8986 ac_save_LDFLAGS="$LDFLAGS"
8987 # ac_save_LIBS="$LIBS"
8989 if test \! -z "$includedir" ; then
8990 CPPFLAGS="$CPPFLAGS -I$includedir"
8992 # note: $X_CFLAGS includes $x_includes
8993 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8995 if test \! -z "$libdir" ; then
8996 LDFLAGS="$LDFLAGS -L$libdir"
8998 # note: $X_LIBS includes $x_libraries
8999 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9001 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9002 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetSubpixelOrder in -lXrender" >&5
9004 $as_echo_n "checking for XRenderSetSubpixelOrder in -lXrender... " >&6; }
9005 if ${ac_cv_lib_Xrender_XRenderSetSubpixelOrder+:} false; then :
9006 $as_echo_n "(cached) " >&6
9008 ac_check_lib_save_LIBS=$LIBS
9009 LIBS="-lXrender -lXext -lX11 $LIBS"
9010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9011 /* end confdefs.h. */
9013 /* Override any GCC internal prototype to avoid an error.
9014 Use char because int might match the return type of a GCC
9015 builtin and then its argument prototype would still apply. */
9019 char XRenderSetSubpixelOrder ();
9023 return XRenderSetSubpixelOrder ();
9028 if ac_fn_c_try_link "$LINENO"; then :
9029 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=yes
9031 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=no
9033 rm -f core conftest.err conftest.$ac_objext \
9034 conftest$ac_exeext conftest.$ac_ext
9035 LIBS=$ac_check_lib_save_LIBS
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&5
9038 $as_echo "$ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&6; }
9039 if test "x$ac_cv_lib_Xrender_XRenderSetSubpixelOrder" = xyes; then :
9040 xrender_libs="-lXrender"
9045 CPPFLAGS="$ac_save_CPPFLAGS"
9046 LDFLAGS="$ac_save_LDFLAGS"
9047 # LIBS="$ac_save_LIBS"
9050 # first look for RANDR in -lXext
9053 ac_save_CPPFLAGS="$CPPFLAGS"
9054 ac_save_LDFLAGS="$LDFLAGS"
9055 # ac_save_LIBS="$LIBS"
9057 if test \! -z "$includedir" ; then
9058 CPPFLAGS="$CPPFLAGS -I$includedir"
9060 # note: $X_CFLAGS includes $x_includes
9061 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9063 if test \! -z "$libdir" ; then
9064 LDFLAGS="$LDFLAGS -L$libdir"
9066 # note: $X_LIBS includes $x_libraries
9067 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9069 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9070 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenInfo in -lXext" >&5
9072 $as_echo_n "checking for XRRGetScreenInfo in -lXext... " >&6; }
9073 if ${ac_cv_lib_Xext_XRRGetScreenInfo+:} false; then :
9074 $as_echo_n "(cached) " >&6
9076 ac_check_lib_save_LIBS=$LIBS
9077 LIBS="-lXext $xrender_libs -lXext -lX11 $LIBS"
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9081 /* Override any GCC internal prototype to avoid an error.
9082 Use char because int might match the return type of a GCC
9083 builtin and then its argument prototype would still apply. */
9087 char XRRGetScreenInfo ();
9091 return XRRGetScreenInfo ();
9096 if ac_fn_c_try_link "$LINENO"; then :
9097 ac_cv_lib_Xext_XRRGetScreenInfo=yes
9099 ac_cv_lib_Xext_XRRGetScreenInfo=no
9101 rm -f core conftest.err conftest.$ac_objext \
9102 conftest$ac_exeext conftest.$ac_ext
9103 LIBS=$ac_check_lib_save_LIBS
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XRRGetScreenInfo" >&5
9106 $as_echo "$ac_cv_lib_Xext_XRRGetScreenInfo" >&6; }
9107 if test "x$ac_cv_lib_Xext_XRRGetScreenInfo" = xyes; then :
9108 have_randr=yes; SAVER_LIBS="$SAVER_LIBS $xrender_libs"
9113 CPPFLAGS="$ac_save_CPPFLAGS"
9114 LDFLAGS="$ac_save_LDFLAGS"
9115 # LIBS="$ac_save_LIBS"
9118 # if that failed, look in -lXrandr
9119 if test "$have_randr" = no; then
9121 ac_save_CPPFLAGS="$CPPFLAGS"
9122 ac_save_LDFLAGS="$LDFLAGS"
9123 # ac_save_LIBS="$LIBS"
9125 if test \! -z "$includedir" ; then
9126 CPPFLAGS="$CPPFLAGS -I$includedir"
9128 # note: $X_CFLAGS includes $x_includes
9129 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9131 if test \! -z "$libdir" ; then
9132 LDFLAGS="$LDFLAGS -L$libdir"
9134 # note: $X_LIBS includes $x_libraries
9135 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9137 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9138 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenInfo in -lXrandr" >&5
9140 $as_echo_n "checking for XRRGetScreenInfo in -lXrandr... " >&6; }
9141 if ${ac_cv_lib_Xrandr_XRRGetScreenInfo+:} false; then :
9142 $as_echo_n "(cached) " >&6
9144 ac_check_lib_save_LIBS=$LIBS
9145 LIBS="-lXrandr $xrender_libs -lXext -lX11 $LIBS"
9146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9147 /* end confdefs.h. */
9149 /* Override any GCC internal prototype to avoid an error.
9150 Use char because int might match the return type of a GCC
9151 builtin and then its argument prototype would still apply. */
9155 char XRRGetScreenInfo ();
9159 return XRRGetScreenInfo ();
9164 if ac_fn_c_try_link "$LINENO"; then :
9165 ac_cv_lib_Xrandr_XRRGetScreenInfo=yes
9167 ac_cv_lib_Xrandr_XRRGetScreenInfo=no
9169 rm -f core conftest.err conftest.$ac_objext \
9170 conftest$ac_exeext conftest.$ac_ext
9171 LIBS=$ac_check_lib_save_LIBS
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRGetScreenInfo" >&5
9174 $as_echo "$ac_cv_lib_Xrandr_XRRGetScreenInfo" >&6; }
9175 if test "x$ac_cv_lib_Xrandr_XRRGetScreenInfo" = xyes; then :
9176 have_randr=yes; SAVER_LIBS="$SAVER_LIBS -lXrandr $xrender_libs"
9181 CPPFLAGS="$ac_save_CPPFLAGS"
9182 LDFLAGS="$ac_save_LDFLAGS"
9183 # LIBS="$ac_save_LIBS"
9188 # if that succeeded, then we've really got it.
9189 if test "$have_randr" = yes; then
9190 $as_echo "#define HAVE_RANDR 1" >>confdefs.h
9193 # Now check for version 1.2 in the same libs.
9194 # Try to compile, since on MacOS 10.5.7, headers are older than libs!
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenResources" >&5
9196 $as_echo_n "checking for XRRGetScreenResources... " >&6; }
9197 if ${ac_cv_randr_12+:} false; then :
9198 $as_echo_n "(cached) " >&6
9202 ac_save_CPPFLAGS="$CPPFLAGS"
9203 if test \! -z "$includedir" ; then
9204 CPPFLAGS="$CPPFLAGS -I$includedir"
9206 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9207 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9209 /* end confdefs.h. */
9211 #include <X11/Xlib.h>
9212 #include <X11/extensions/Xrandr.h>
9216 XRRScreenResources *res =
9217 XRRGetScreenResources (0, 0);
9222 if ac_fn_c_try_compile "$LINENO"; then :
9227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9228 CPPFLAGS="$ac_save_CPPFLAGS"
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_randr_12" >&5
9231 $as_echo "$ac_cv_randr_12" >&6; }
9232 if test "$ac_cv_randr_12" = yes ; then
9233 $as_echo "#define HAVE_RANDR_12 1" >>confdefs.h
9236 # AC_CHECK_X_LIB(c, XRRGetOutputInfo, [AC_DEFINE(HAVE_RANDR_12)],
9237 # [true], $SAVER_LIBS)
9241 elif test "$with_randr" != no; then
9242 echo "error: must be yes or no: --with-randr-ext=$with_randr"
9247 ###############################################################################
9249 # Check for XF86MiscSetGrabKeysState (but only bother if we are already
9250 # using other XF86 stuff.)
9252 ###############################################################################
9254 have_xf86miscsetgrabkeysstate=no
9255 if test "$have_xf86gamma" = yes -o "$have_xf86vmode" = yes; then
9257 ac_save_CPPFLAGS="$CPPFLAGS"
9258 ac_save_LDFLAGS="$LDFLAGS"
9259 # ac_save_LIBS="$LIBS"
9261 if test \! -z "$includedir" ; then
9262 CPPFLAGS="$CPPFLAGS -I$includedir"
9264 # note: $X_CFLAGS includes $x_includes
9265 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9267 if test \! -z "$libdir" ; then
9268 LDFLAGS="$LDFLAGS -L$libdir"
9270 # note: $X_LIBS includes $x_libraries
9271 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9273 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9274 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86MiscSetGrabKeysState in -lXxf86misc" >&5
9276 $as_echo_n "checking for XF86MiscSetGrabKeysState in -lXxf86misc... " >&6; }
9277 if ${ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState+:} false; then :
9278 $as_echo_n "(cached) " >&6
9280 ac_check_lib_save_LIBS=$LIBS
9281 LIBS="-lXxf86misc -lXext -lX11 $LIBS"
9282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h. */
9285 /* Override any GCC internal prototype to avoid an error.
9286 Use char because int might match the return type of a GCC
9287 builtin and then its argument prototype would still apply. */
9291 char XF86MiscSetGrabKeysState ();
9295 return XF86MiscSetGrabKeysState ();
9300 if ac_fn_c_try_link "$LINENO"; then :
9301 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=yes
9303 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=no
9305 rm -f core conftest.err conftest.$ac_objext \
9306 conftest$ac_exeext conftest.$ac_ext
9307 LIBS=$ac_check_lib_save_LIBS
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&5
9310 $as_echo "$ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&6; }
9311 if test "x$ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" = xyes; then :
9312 have_xf86miscsetgrabkeysstate=yes
9317 CPPFLAGS="$ac_save_CPPFLAGS"
9318 LDFLAGS="$ac_save_LDFLAGS"
9319 # LIBS="$ac_save_LIBS"
9321 if test "$have_xf86miscsetgrabkeysstate" = yes ; then
9322 SAVER_LIBS="$SAVER_LIBS -lXxf86misc"
9323 $as_echo "#define HAVE_XF86MISCSETGRABKEYSSTATE 1" >>confdefs.h
9329 ###############################################################################
9331 # Check for HP XHPDisableReset and XHPEnableReset.
9333 ###############################################################################
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XHPDisableReset in X11/XHPlib.h" >&5
9336 $as_echo_n "checking for XHPDisableReset in X11/XHPlib.h... " >&6; }
9338 ac_save_CPPFLAGS="$CPPFLAGS"
9339 if test \! -z "$includedir" ; then
9340 CPPFLAGS="$CPPFLAGS -I$includedir"
9342 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9343 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h. */
9346 #include <X11/XHPlib.h>
9349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9350 $EGREP "XHPDisableReset" >/dev/null 2>&1; then :
9351 $as_echo "#define HAVE_XHPDISABLERESET 1" >>confdefs.h
9353 SAVER_LIBS="-lXhp11 $SAVER_LIBS"
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9355 $as_echo "yes" >&6; }
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9358 $as_echo "no" >&6; }
9362 CPPFLAGS="$ac_save_CPPFLAGS"
9365 ###############################################################################
9367 # Check for /proc/interrupts.
9369 ###############################################################################
9371 have_proc_interrupts=no
9372 with_proc_interrupts_req=unspecified
9374 # Check whether --with-proc-interrupts was given.
9375 if test "${with_proc_interrupts+set}" = set; then :
9376 withval=$with_proc_interrupts; with_proc_interrupts="$withval"; with_proc_interrupts_req="$withval"
9378 with_proc_interrupts=yes
9382 if test "$with_proc_interrupts" = yes; then
9384 # Note that we may be building in an environment (e.g. Debian buildd chroot)
9385 # without a proper /proc filesystem. If /proc/interrupts exists, then we'll
9386 # check that it has the bits we need, but otherwise we'll just go on faith.
9388 have_proc_interrupts=yes
9390 if test -f /proc/interrupts; then
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /proc/interrupts contains keyboard data" >&5
9392 $as_echo_n "checking whether /proc/interrupts contains keyboard data... " >&6; }
9393 if ${ac_cv_have_proc_interrupts+:} false; then :
9394 $as_echo_n "(cached) " >&6
9396 ac_cv_have_proc_interrupts=no
9397 if grep 'keyboard\|i8042' /proc/interrupts >/dev/null 2>&1 ; then
9398 ac_cv_have_proc_interrupts=yes
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_proc_interrupts" >&5
9403 $as_echo "$ac_cv_have_proc_interrupts" >&6; }
9404 have_proc_interrupts=$ac_cv_have_proc_interrupts
9407 if test "$have_proc_interrupts" = yes; then
9408 $as_echo "#define HAVE_PROC_INTERRUPTS 1" >>confdefs.h
9412 elif test "$with_proc_interrupts" != no; then
9413 echo "error: must be yes or no: --with-proc-interrupts=$with_proc_interrupts"
9418 ###############################################################################
9420 # The --enable-locking option
9422 ###############################################################################
9424 # Check whether --enable-locking was given.
9425 if test "${enable_locking+set}" = set; then :
9426 enableval=$enable_locking; enable_locking="$enableval"
9428 if test "$ac_macosx" = yes; then
9429 # We can't lock on MacOS X, so default to not compiling in support for it.
9430 # But allow --enable-locking to override that, so I can debug Linux locking
9438 if test "$enable_locking" = yes; then
9440 elif test "$enable_locking" = no; then
9441 $as_echo "#define NO_LOCKING 1" >>confdefs.h
9444 echo "error: must be yes or no: --enable-locking=$enable_locking"
9449 ###############################################################################
9451 # Whether to allow root password to unblank.
9453 ###############################################################################
9454 # Check whether --enable-root-passwd was given.
9455 if test "${enable_root_passwd+set}" = set; then :
9456 enableval=$enable_root_passwd; enable_root_passwd="$enableval"
9458 enable_root_passwd=yes
9461 if test "$enable_root_passwd" = yes; then
9462 $as_echo "#define ALLOW_ROOT_PASSWD 1" >>confdefs.h
9465 elif test "$enable_root_passwd" != no; then
9466 echo "error: must be yes or no: --enable-root-passwd=$enable_root_passwd"
9470 ###############################################################################
9474 ###############################################################################
9478 # Solaris systems tend to come with PAM misconfigured.
9479 # Don't build it by default, even if the headers exist.
9483 # Default to building PAM support on all other systems, if it exists.
9484 with_pam_default=yes
9489 with_pam_req=unspecified
9492 # Check whether --with-pam was given.
9493 if test "${with_pam+set}" = set; then :
9494 withval=$with_pam; with_pam="$withval"; with_pam_req="$withval"
9496 with_pam=$with_pam_default
9501 # Check whether --with-pam_service_name was given.
9502 if test "${with_pam_service_name+set}" = set; then :
9503 withval=$with_pam_service_name; pam_service_name="$withval"
9505 pam_service_name="xscreensaver"
9509 # Check whether --enable-pam-check-account-type was given.
9510 if test "${enable_pam_check_account_type+set}" = set; then :
9511 enableval=$enable_pam_check_account_type; enable_pam_check_account_type="$enableval"
9513 enable_pam_check_account_type=no
9516 if test "$enable_pam_check_account_type" = yes ; then
9517 $as_echo "#define PAM_CHECK_ACCOUNT_TYPE 1" >>confdefs.h
9520 elif test "$enable_pam_check_account_type" != no ; then
9521 echo "error: must be yes or no: --enable-pam-check-account-type=$enable_pam_check_account_type"
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAM headers" >&5
9532 $as_echo_n "checking for PAM headers... " >&6; }
9535 X_CFLAGS="-I$d $X_CFLAGS"
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
9537 $as_echo "$d" >&6; }
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
9540 $as_echo "not found ($d: no such directory)" >&6; }
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAM libs" >&5
9544 $as_echo_n "checking for PAM libs... " >&6; }
9547 X_LIBS="-L$d $X_LIBS"
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
9549 $as_echo "$d" >&6; }
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
9552 $as_echo "not found ($d: no such directory)" >&6; }
9555 # replace the directory string with "yes".
9557 with_pam=$with_pam_req
9562 echo "error: argument to --with-pam must be \"yes\", \"no\", or a directory."
9563 echo " If it is a directory, then \`DIR/include' will be added to"
9564 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9570 if test "$enable_locking" = yes -a "$with_pam" = yes; then
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAM" >&5
9572 $as_echo_n "checking for PAM... " >&6; }
9573 if ${ac_cv_pam+:} false; then :
9574 $as_echo_n "(cached) " >&6
9577 ac_save_CPPFLAGS="$CPPFLAGS"
9578 if test \! -z "$includedir" ; then
9579 CPPFLAGS="$CPPFLAGS -I$includedir"
9581 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9582 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584 /* end confdefs.h. */
9585 #include <security/pam_appl.h>
9594 if ac_fn_c_try_compile "$LINENO"; then :
9599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9600 CPPFLAGS="$ac_save_CPPFLAGS"
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pam" >&5
9603 $as_echo "$ac_cv_pam" >&6; }
9604 if test "$ac_cv_pam" = yes ; then
9606 $as_echo "#define HAVE_PAM 1" >>confdefs.h
9608 cat >>confdefs.h <<_ACEOF
9609 #define PAM_SERVICE_NAME "$pam_service_name"
9613 PASSWD_LIBS="${PASSWD_LIBS} -lpam"
9615 # libpam typically requires dlopen and dlsym. On FreeBSD,
9616 # those are in libc. On Linux and Solaris, they're in libdl.
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9618 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9619 if ${ac_cv_lib_dl_dlopen+:} false; then :
9620 $as_echo_n "(cached) " >&6
9622 ac_check_lib_save_LIBS=$LIBS
9624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9625 /* end confdefs.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. */
9642 if ac_fn_c_try_link "$LINENO"; then :
9643 ac_cv_lib_dl_dlopen=yes
9645 ac_cv_lib_dl_dlopen=no
9647 rm -f core conftest.err conftest.$ac_objext \
9648 conftest$ac_exeext conftest.$ac_ext
9649 LIBS=$ac_check_lib_save_LIBS
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9652 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9653 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9654 PASSWD_LIBS="${PASSWD_LIBS} -ldl"
9658 # On Linux, sigtimedwait() is in libc; on Solaris, it's in librt.
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigtimedwait in -lc" >&5
9661 $as_echo_n "checking for sigtimedwait in -lc... " >&6; }
9662 if ${ac_cv_lib_c_sigtimedwait+:} false; then :
9663 $as_echo_n "(cached) " >&6
9665 ac_check_lib_save_LIBS=$LIBS
9667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9668 /* end confdefs.h. */
9670 /* Override any GCC internal prototype to avoid an error.
9671 Use char because int might match the return type of a GCC
9672 builtin and then its argument prototype would still apply. */
9676 char sigtimedwait ();
9680 return sigtimedwait ();
9685 if ac_fn_c_try_link "$LINENO"; then :
9686 ac_cv_lib_c_sigtimedwait=yes
9688 ac_cv_lib_c_sigtimedwait=no
9690 rm -f core conftest.err conftest.$ac_objext \
9691 conftest$ac_exeext conftest.$ac_ext
9692 LIBS=$ac_check_lib_save_LIBS
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigtimedwait" >&5
9695 $as_echo "$ac_cv_lib_c_sigtimedwait" >&6; }
9696 if test "x$ac_cv_lib_c_sigtimedwait" = xyes; then :
9698 $as_echo "#define HAVE_SIGTIMEDWAIT 1" >>confdefs.h
9702 if test "$have_timedwait" = no ; then
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigtimedwait in -lrt" >&5
9704 $as_echo_n "checking for sigtimedwait in -lrt... " >&6; }
9705 if ${ac_cv_lib_rt_sigtimedwait+:} false; then :
9706 $as_echo_n "(cached) " >&6
9708 ac_check_lib_save_LIBS=$LIBS
9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h. */
9713 /* Override any GCC internal prototype to avoid an error.
9714 Use char because int might match the return type of a GCC
9715 builtin and then its argument prototype would still apply. */
9719 char sigtimedwait ();
9723 return sigtimedwait ();
9728 if ac_fn_c_try_link "$LINENO"; then :
9729 ac_cv_lib_rt_sigtimedwait=yes
9731 ac_cv_lib_rt_sigtimedwait=no
9733 rm -f core conftest.err conftest.$ac_objext \
9734 conftest$ac_exeext conftest.$ac_ext
9735 LIBS=$ac_check_lib_save_LIBS
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sigtimedwait" >&5
9738 $as_echo "$ac_cv_lib_rt_sigtimedwait" >&6; }
9739 if test "x$ac_cv_lib_rt_sigtimedwait" = xyes; then :
9741 $as_echo "#define HAVE_SIGTIMEDWAIT 1" >>confdefs.h
9743 PASSWD_LIBS="${PASSWD_LIBS} -lrt"
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to call pam_strerror" >&5
9749 $as_echo_n "checking how to call pam_strerror... " >&6; }
9750 if ${ac_cv_pam_strerror_args+:} false; then :
9751 $as_echo_n "(cached) " >&6
9754 ac_save_CPPFLAGS="$CPPFLAGS"
9755 if test \! -z "$includedir" ; then
9756 CPPFLAGS="$CPPFLAGS -I$includedir"
9758 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9759 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9761 /* end confdefs.h. */
9764 #include <security/pam_appl.h>
9768 pam_handle_t *pamh = 0;
9769 char *s = pam_strerror(pamh, PAM_SUCCESS);
9774 if ac_fn_c_try_compile "$LINENO"; then :
9775 ac_pam_strerror_args=2
9778 ac_save_CPPFLAGS="$CPPFLAGS"
9779 if test \! -z "$includedir" ; then
9780 CPPFLAGS="$CPPFLAGS -I$includedir"
9782 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9783 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h. */
9788 #include <security/pam_appl.h>
9793 pam_strerror(PAM_SUCCESS);
9798 if ac_fn_c_try_compile "$LINENO"; then :
9799 ac_pam_strerror_args=1
9801 ac_pam_strerror_args=0
9803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9804 CPPFLAGS="$ac_save_CPPFLAGS"
9806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9807 CPPFLAGS="$ac_save_CPPFLAGS"
9808 ac_cv_pam_strerror_args=$ac_pam_strerror_args
9811 ac_pam_strerror_args=$ac_cv_pam_strerror_args
9812 if test "$ac_pam_strerror_args" = 1 ; then
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: one argument" >&5
9814 $as_echo "one argument" >&6; }
9815 elif test "$ac_pam_strerror_args" = 2 ; then
9816 $as_echo "#define PAM_STRERROR_TWO_ARGS 1" >>confdefs.h
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: two arguments" >&5
9819 $as_echo "two arguments" >&6; }
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
9822 $as_echo "unknown" >&6; }
9825 # Check pam_fail_delay
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pam_fail_delay in -lpam" >&5
9827 $as_echo_n "checking pam_fail_delay in -lpam... " >&6; }
9828 if ${ac_cv_pam_fail_delay+:} false; then :
9829 $as_echo_n "(cached) " >&6
9831 ac_save_LDFLAGS="$LDFLAGS"
9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834 /* end confdefs.h. */
9835 #include <security/pam_appl.h>
9839 pam_handle_t *pamh = 0;
9840 unsigned int usec = 1;
9841 int status = pam_fail_delay (pamh, usec);
9846 if ac_fn_c_try_link "$LINENO"; then :
9847 ac_pam_fail_delay=yes
9849 ac_pam_fail_delay=no
9851 rm -f core conftest.err conftest.$ac_objext \
9852 conftest$ac_exeext conftest.$ac_ext
9853 ac_cv_pam_fail_delay=$ac_pam_fail_delay,
9854 LDFLAGS=$ac_save_LDFLAGS
9858 if test "$ac_pam_fail_delay" = yes ; then
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9860 $as_echo "yes" >&6; }
9861 $as_echo "#define HAVE_PAM_FAIL_DELAY 1" >>confdefs.h
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9865 $as_echo "no" >&6; }
9872 ###############################################################################
9874 # Check for Kerberos.
9876 ###############################################################################
9880 with_kerberos_req=unspecified
9883 # Check whether --with-kerberos was given.
9884 if test "${with_kerberos+set}" = set; then :
9885 withval=$with_kerberos; with_kerberos="$withval"; with_kerberos_req="$withval"
9892 case "$with_kerberos" in
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos headers" >&5
9898 $as_echo_n "checking for Kerberos headers... " >&6; }
9899 d=$with_kerberos/include
9901 X_CFLAGS="-I$d $X_CFLAGS"
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
9903 $as_echo "$d" >&6; }
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
9906 $as_echo "not found ($d: no such directory)" >&6; }
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos libs" >&5
9910 $as_echo_n "checking for Kerberos libs... " >&6; }
9911 d=$with_kerberos/lib
9913 X_LIBS="-L$d $X_LIBS"
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
9915 $as_echo "$d" >&6; }
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
9918 $as_echo "not found ($d: no such directory)" >&6; }
9921 # replace the directory string with "yes".
9922 with_kerberos_req="yes"
9923 with_kerberos=$with_kerberos_req
9928 echo "error: argument to --with-kerberos must be \"yes\", \"no\", or a directory."
9929 echo " If it is a directory, then \`DIR/include' will be added to"
9930 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9936 if test "$enable_locking" = yes -a "$with_kerberos" = yes; then
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos 4" >&5
9938 $as_echo_n "checking for Kerberos 4... " >&6; }
9939 if ${ac_cv_kerberos+:} false; then :
9940 $as_echo_n "(cached) " >&6
9943 ac_save_CPPFLAGS="$CPPFLAGS"
9944 if test \! -z "$includedir" ; then
9945 CPPFLAGS="$CPPFLAGS -I$includedir"
9947 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9948 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950 /* end confdefs.h. */
9960 if ac_fn_c_try_compile "$LINENO"; then :
9965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9966 CPPFLAGS="$ac_save_CPPFLAGS"
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kerberos" >&5
9969 $as_echo "$ac_cv_kerberos" >&6; }
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos 5" >&5
9971 $as_echo_n "checking for Kerberos 5... " >&6; }
9972 if ${ac_cv_kerberos5+:} false; then :
9973 $as_echo_n "(cached) " >&6
9976 ac_save_CPPFLAGS="$CPPFLAGS"
9977 if test \! -z "$includedir" ; then
9978 CPPFLAGS="$CPPFLAGS -I$includedir"
9980 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9981 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9983 /* end confdefs.h. */
9984 #include <kerberosIV/krb.h>
9993 if ac_fn_c_try_compile "$LINENO"; then :
9998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9999 CPPFLAGS="$ac_save_CPPFLAGS"
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kerberos5" >&5
10002 $as_echo "$ac_cv_kerberos5" >&6; }
10004 if test "$ac_cv_kerberos" = yes ; then
10006 $as_echo "#define HAVE_KERBEROS 1" >>confdefs.h
10010 if test "$ac_cv_kerberos5" = yes ; then
10012 # Andrew Snare <ajs@pigpond.com> wrote:
10014 # You were assuming that if kerberosV (krb5) was found, then kerberosIV
10015 # (krb4) was also available. This turns out not to be the case with
10016 # mit-krb-1.2.7; apparently backwards-compatibility with KerberosIV
10019 # So, disable kerberosV support if libkrb4 can't be found.
10020 # This is not the best solution, but it makes the compile not fail.
10023 ac_save_CPPFLAGS="$CPPFLAGS"
10024 ac_save_LDFLAGS="$LDFLAGS"
10025 # ac_save_LIBS="$LIBS"
10027 if test \! -z "$includedir" ; then
10028 CPPFLAGS="$CPPFLAGS -I$includedir"
10030 # note: $X_CFLAGS includes $x_includes
10031 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10033 if test \! -z "$libdir" ; then
10034 LDFLAGS="$LDFLAGS -L$libdir"
10036 # note: $X_LIBS includes $x_libraries
10037 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10039 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10040 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_tf_realm in -lkrb4" >&5
10042 $as_echo_n "checking for krb_get_tf_realm in -lkrb4... " >&6; }
10043 if ${ac_cv_lib_krb4_krb_get_tf_realm+:} false; then :
10044 $as_echo_n "(cached) " >&6
10046 ac_check_lib_save_LIBS=$LIBS
10047 LIBS="-lkrb4 $LIBS"
10048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10049 /* end confdefs.h. */
10051 /* Override any GCC internal prototype to avoid an error.
10052 Use char because int might match the return type of a GCC
10053 builtin and then its argument prototype would still apply. */
10057 char krb_get_tf_realm ();
10061 return krb_get_tf_realm ();
10066 if ac_fn_c_try_link "$LINENO"; then :
10067 ac_cv_lib_krb4_krb_get_tf_realm=yes
10069 ac_cv_lib_krb4_krb_get_tf_realm=no
10071 rm -f core conftest.err conftest.$ac_objext \
10072 conftest$ac_exeext conftest.$ac_ext
10073 LIBS=$ac_check_lib_save_LIBS
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_tf_realm" >&5
10076 $as_echo "$ac_cv_lib_krb4_krb_get_tf_realm" >&6; }
10077 if test "x$ac_cv_lib_krb4_krb_get_tf_realm" = xyes; then :
10083 CPPFLAGS="$ac_save_CPPFLAGS"
10084 LDFLAGS="$ac_save_LDFLAGS"
10085 # LIBS="$ac_save_LIBS"
10087 if test "$have_kerberos" = yes ; then
10089 $as_echo "#define HAVE_KERBEROS 1" >>confdefs.h
10091 $as_echo "#define HAVE_KERBEROS5 1" >>confdefs.h
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&5
10096 $as_echo "$as_me: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&2;}
10101 if test "$have_kerberos5" = yes ; then
10102 # from Matt Knopp <mhat@infocalypse.netlag.com>
10103 # (who got it from amu@mit.edu)
10105 PASSWD_LIBS="$PASSWD_LIBS -lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
10107 # jwz: MacOS X uses -lkrb5, but not -lcrypt
10109 ac_save_CPPFLAGS="$CPPFLAGS"
10110 ac_save_LDFLAGS="$LDFLAGS"
10111 # ac_save_LIBS="$LIBS"
10113 if test \! -z "$includedir" ; then
10114 CPPFLAGS="$CPPFLAGS -I$includedir"
10116 # note: $X_CFLAGS includes $x_includes
10117 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10119 if test \! -z "$libdir" ; then
10120 LDFLAGS="$LDFLAGS -L$libdir"
10122 # note: $X_LIBS includes $x_libraries
10123 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10125 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10126 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10128 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
10129 if ${ac_cv_lib_crypt_crypt+:} false; then :
10130 $as_echo_n "(cached) " >&6
10132 ac_check_lib_save_LIBS=$LIBS
10133 LIBS="-lcrypt $LIBS"
10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h. */
10137 /* Override any GCC internal prototype to avoid an error.
10138 Use char because int might match the return type of a GCC
10139 builtin and then its argument prototype would still apply. */
10152 if ac_fn_c_try_link "$LINENO"; then :
10153 ac_cv_lib_crypt_crypt=yes
10155 ac_cv_lib_crypt_crypt=no
10157 rm -f core conftest.err conftest.$ac_objext \
10158 conftest$ac_exeext conftest.$ac_ext
10159 LIBS=$ac_check_lib_save_LIBS
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10162 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10163 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
10164 PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
10167 CPPFLAGS="$ac_save_CPPFLAGS"
10168 LDFLAGS="$ac_save_LDFLAGS"
10169 # LIBS="$ac_save_LIBS"
10172 elif test "$have_kerberos" = yes ; then
10173 # from Tim Showalter <tjs@psaux.com> for FreeBSD 4.2
10174 PASSWD_LIBS="$PASSWD_LIBS -lkrb -ldes -lcom_err"
10177 if test "$have_kerberos" = yes ; then
10178 ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
10179 if test "x$ac_cv_func_res_search" = xyes; then :
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
10183 $as_echo_n "checking for res_search in -lresolv... " >&6; }
10184 if ${ac_cv_lib_resolv_res_search+:} false; then :
10185 $as_echo_n "(cached) " >&6
10187 ac_check_lib_save_LIBS=$LIBS
10188 LIBS="-lresolv $LIBS"
10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190 /* end confdefs.h. */
10192 /* Override any GCC internal prototype to avoid an error.
10193 Use char because int might match the return type of a GCC
10194 builtin and then its argument prototype would still apply. */
10198 char res_search ();
10202 return res_search ();
10207 if ac_fn_c_try_link "$LINENO"; then :
10208 ac_cv_lib_resolv_res_search=yes
10210 ac_cv_lib_resolv_res_search=no
10212 rm -f core conftest.err conftest.$ac_objext \
10213 conftest$ac_exeext conftest.$ac_ext
10214 LIBS=$ac_check_lib_save_LIBS
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
10217 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
10218 if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
10219 PASSWD_LIBS="${PASSWD_LIBS} -lresolv"
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&5
10222 $as_echo "$as_me: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&2;}
10232 ###############################################################################
10234 # Check for the nine billion variants of shadow passwords...
10236 ###############################################################################
10241 with_shadow_req=unspecified
10244 # Check whether --with-shadow was given.
10245 if test "${with_shadow+set}" = set; then :
10246 withval=$with_shadow; with_shadow="$withval"; with_shadow_req="$withval"
10253 case "$with_shadow" in
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shadow password headers" >&5
10259 $as_echo_n "checking for shadow password headers... " >&6; }
10260 d=$with_shadow/include
10261 if test -d $d; then
10262 X_CFLAGS="-I$d $X_CFLAGS"
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
10264 $as_echo "$d" >&6; }
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
10267 $as_echo "not found ($d: no such directory)" >&6; }
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shadow password libs" >&5
10271 $as_echo_n "checking for shadow password libs... " >&6; }
10273 if test -d $d; then
10274 X_LIBS="-L$d $X_LIBS"
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
10276 $as_echo "$d" >&6; }
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
10279 $as_echo "not found ($d: no such directory)" >&6; }
10282 # replace the directory string with "yes".
10283 with_shadow_req="yes"
10284 with_shadow=$with_shadow_req
10289 echo "error: argument to --with-shadow must be \"yes\", \"no\", or a directory."
10290 echo " If it is a directory, then \`DIR/include' will be added to"
10291 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10297 if test "$enable_locking" = no ; then
10303 ###############################################################################
10305 # Check for Sun "adjunct" passwords.
10307 ###############################################################################
10309 if test "$with_shadow" = yes ; then
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Sun-style shadow passwords" >&5
10311 $as_echo_n "checking for Sun-style shadow passwords... " >&6; }
10312 if ${ac_cv_sun_adjunct+:} false; then :
10313 $as_echo_n "(cached) " >&6
10316 ac_save_CPPFLAGS="$CPPFLAGS"
10317 if test \! -z "$includedir" ; then
10318 CPPFLAGS="$CPPFLAGS -I$includedir"
10320 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10321 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10323 /* end confdefs.h. */
10324 #include <stdlib.h>
10325 #include <unistd.h>
10326 #include <sys/types.h>
10327 #include <sys/label.h>
10328 #include <sys/audit.h>
10329 #include <pwdadj.h>
10333 struct passwd_adjunct *p = getpwanam("nobody");
10334 const char *pw = p->pwa_passwd;
10339 if ac_fn_c_try_compile "$LINENO"; then :
10340 ac_cv_sun_adjunct=yes
10342 ac_cv_sun_adjunct=no
10344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10345 CPPFLAGS="$ac_save_CPPFLAGS"
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sun_adjunct" >&5
10348 $as_echo "$ac_cv_sun_adjunct" >&6; }
10349 if test "$ac_cv_sun_adjunct" = yes; then
10350 have_shadow_adjunct=yes
10357 ###############################################################################
10359 # Check for DEC and SCO so-called "enhanced" security.
10361 ###############################################################################
10363 if test "$with_shadow" = yes ; then
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEC-style shadow passwords" >&5
10365 $as_echo_n "checking for DEC-style shadow passwords... " >&6; }
10366 if ${ac_cv_enhanced_passwd+:} false; then :
10367 $as_echo_n "(cached) " >&6
10370 ac_save_CPPFLAGS="$CPPFLAGS"
10371 if test \! -z "$includedir" ; then
10372 CPPFLAGS="$CPPFLAGS -I$includedir"
10374 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10375 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10377 /* end confdefs.h. */
10378 #include <stdlib.h>
10379 #include <unistd.h>
10380 #include <sys/types.h>
10382 #include <sys/security.h>
10387 struct pr_passwd *p;
10389 set_auth_parameters(0, 0);
10390 check_auth_parameters();
10391 p = getprpwnam("nobody");
10392 pw = p->ufld.fd_encrypt;
10397 if ac_fn_c_try_compile "$LINENO"; then :
10398 ac_cv_enhanced_passwd=yes
10400 ac_cv_enhanced_passwd=no
10402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10403 CPPFLAGS="$ac_save_CPPFLAGS"
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enhanced_passwd" >&5
10406 $as_echo "$ac_cv_enhanced_passwd" >&6; }
10407 if test $ac_cv_enhanced_passwd = yes; then
10408 have_shadow_enhanced=yes
10412 # On SCO, getprpwnam() is in -lprot (which uses nap() from -lx)
10413 # (I'm told it needs -lcurses too, but I don't understand why.)
10414 # But on DEC, it's in -lsecurity.
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getprpwnam in -lprot" >&5
10417 $as_echo_n "checking for getprpwnam in -lprot... " >&6; }
10418 if ${ac_cv_lib_prot_getprpwnam+:} false; then :
10419 $as_echo_n "(cached) " >&6
10421 ac_check_lib_save_LIBS=$LIBS
10422 LIBS="-lprot -lx $LIBS"
10423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10424 /* end confdefs.h. */
10426 /* Override any GCC internal prototype to avoid an error.
10427 Use char because int might match the return type of a GCC
10428 builtin and then its argument prototype would still apply. */
10432 char getprpwnam ();
10436 return getprpwnam ();
10441 if ac_fn_c_try_link "$LINENO"; then :
10442 ac_cv_lib_prot_getprpwnam=yes
10444 ac_cv_lib_prot_getprpwnam=no
10446 rm -f core conftest.err conftest.$ac_objext \
10447 conftest$ac_exeext conftest.$ac_ext
10448 LIBS=$ac_check_lib_save_LIBS
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getprpwnam" >&5
10451 $as_echo "$ac_cv_lib_prot_getprpwnam" >&6; }
10452 if test "x$ac_cv_lib_prot_getprpwnam" = xyes; then :
10453 PASSWD_LIBS="$PASSWD_LIBS -lprot -lcurses -lx"
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getprpwnam in -lsecurity" >&5
10456 $as_echo_n "checking for getprpwnam in -lsecurity... " >&6; }
10457 if ${ac_cv_lib_security_getprpwnam+:} false; then :
10458 $as_echo_n "(cached) " >&6
10460 ac_check_lib_save_LIBS=$LIBS
10461 LIBS="-lsecurity $LIBS"
10462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10463 /* end confdefs.h. */
10465 /* Override any GCC internal prototype to avoid an error.
10466 Use char because int might match the return type of a GCC
10467 builtin and then its argument prototype would still apply. */
10471 char getprpwnam ();
10475 return getprpwnam ();
10480 if ac_fn_c_try_link "$LINENO"; then :
10481 ac_cv_lib_security_getprpwnam=yes
10483 ac_cv_lib_security_getprpwnam=no
10485 rm -f core conftest.err conftest.$ac_objext \
10486 conftest$ac_exeext conftest.$ac_ext
10487 LIBS=$ac_check_lib_save_LIBS
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_security_getprpwnam" >&5
10490 $as_echo "$ac_cv_lib_security_getprpwnam" >&6; }
10491 if test "x$ac_cv_lib_security_getprpwnam" = xyes; then :
10492 PASSWD_LIBS="$PASSWD_LIBS -lsecurity"
10500 ###############################################################################
10502 # Check for HP's entry in the "Not Invented Here" Sweepstakes.
10504 ###############################################################################
10506 if test "$with_shadow" = yes ; then
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-style shadow passwords" >&5
10508 $as_echo_n "checking for HP-style shadow passwords... " >&6; }
10509 if ${ac_cv_hpux_passwd+:} false; then :
10510 $as_echo_n "(cached) " >&6
10513 ac_save_CPPFLAGS="$CPPFLAGS"
10514 if test \! -z "$includedir" ; then
10515 CPPFLAGS="$CPPFLAGS -I$includedir"
10517 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10518 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10521 #include <stdlib.h>
10522 #include <unistd.h>
10523 #include <sys/types.h>
10525 #include <hpsecurity.h>
10530 struct s_passwd *p = getspwnam("nobody");
10531 const char *pw = p->pw_passwd;
10536 if ac_fn_c_try_compile "$LINENO"; then :
10537 ac_cv_hpux_passwd=yes
10539 ac_cv_hpux_passwd=no
10541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10542 CPPFLAGS="$ac_save_CPPFLAGS"
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hpux_passwd" >&5
10545 $as_echo "$ac_cv_hpux_passwd" >&6; }
10546 if test "$ac_cv_hpux_passwd" = yes; then
10547 have_shadow_hpux=yes
10551 # on HPUX, bigcrypt is in -lsec
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bigcrypt in -lsec" >&5
10553 $as_echo_n "checking for bigcrypt in -lsec... " >&6; }
10554 if ${ac_cv_lib_sec_bigcrypt+:} false; then :
10555 $as_echo_n "(cached) " >&6
10557 ac_check_lib_save_LIBS=$LIBS
10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10562 /* Override any GCC internal prototype to avoid an error.
10563 Use char because int might match the return type of a GCC
10564 builtin and then its argument prototype would still apply. */
10572 return bigcrypt ();
10577 if ac_fn_c_try_link "$LINENO"; then :
10578 ac_cv_lib_sec_bigcrypt=yes
10580 ac_cv_lib_sec_bigcrypt=no
10582 rm -f core conftest.err conftest.$ac_objext \
10583 conftest$ac_exeext conftest.$ac_ext
10584 LIBS=$ac_check_lib_save_LIBS
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_bigcrypt" >&5
10587 $as_echo "$ac_cv_lib_sec_bigcrypt" >&6; }
10588 if test "x$ac_cv_lib_sec_bigcrypt" = xyes; then :
10589 PASSWD_LIBS="$PASSWD_LIBS -lsec"
10596 ###############################################################################
10598 # Check for FreeBSD-style shadow passwords.
10600 # On FreeBSD, getpwnam() and friends work just like on non-shadow-
10601 # password systems -- except you only get stuff in the pw_passwd field
10602 # if the running program is setuid. So, guess that we've got this
10603 # lossage to contend with if /etc/master.passwd exists, and default to
10604 # a setuid installation.
10606 ###############################################################################
10608 if test "$with_shadow" = yes ; then
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD-style shadow passwords" >&5
10610 $as_echo_n "checking for FreeBSD-style shadow passwords... " >&6; }
10611 if ${ac_cv_master_passwd+:} false; then :
10612 $as_echo_n "(cached) " >&6
10614 if test -f /etc/master.passwd ; then
10615 ac_cv_master_passwd=yes
10617 ac_cv_master_passwd=no
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_master_passwd" >&5
10621 $as_echo "$ac_cv_master_passwd" >&6; }
10622 if test "$ac_cv_master_passwd" = yes; then
10628 ###############################################################################
10630 # Check for traditional (ha!) shadow passwords.
10632 ###############################################################################
10634 if test "$with_shadow" = yes ; then
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for generic shadow passwords" >&5
10636 $as_echo_n "checking for generic shadow passwords... " >&6; }
10637 if ${ac_cv_shadow+:} false; then :
10638 $as_echo_n "(cached) " >&6
10641 ac_save_CPPFLAGS="$CPPFLAGS"
10642 if test \! -z "$includedir" ; then
10643 CPPFLAGS="$CPPFLAGS -I$includedir"
10645 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10646 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10649 #include <stdlib.h>
10650 #include <unistd.h>
10651 #include <sys/types.h>
10653 #include <shadow.h>
10657 struct spwd *p = getspnam("nobody");
10658 const char *pw = p->sp_pwdp;
10663 if ac_fn_c_try_compile "$LINENO"; then :
10668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10669 CPPFLAGS="$ac_save_CPPFLAGS"
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_shadow" >&5
10672 $as_echo "$ac_cv_shadow" >&6; }
10673 if test "$ac_cv_shadow" = yes; then
10677 # On some systems (UnixWare 2.1), getspnam() is in -lgen instead of -lc.
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lc" >&5
10680 $as_echo_n "checking for getspnam in -lc... " >&6; }
10681 if ${ac_cv_lib_c_getspnam+:} false; then :
10682 $as_echo_n "(cached) " >&6
10684 ac_check_lib_save_LIBS=$LIBS
10686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687 /* end confdefs.h. */
10689 /* Override any GCC internal prototype to avoid an error.
10690 Use char because int might match the return type of a GCC
10691 builtin and then its argument prototype would still apply. */
10699 return getspnam ();
10704 if ac_fn_c_try_link "$LINENO"; then :
10705 ac_cv_lib_c_getspnam=yes
10707 ac_cv_lib_c_getspnam=no
10709 rm -f core conftest.err conftest.$ac_objext \
10710 conftest$ac_exeext conftest.$ac_ext
10711 LIBS=$ac_check_lib_save_LIBS
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getspnam" >&5
10714 $as_echo "$ac_cv_lib_c_getspnam" >&6; }
10715 if test "x$ac_cv_lib_c_getspnam" = xyes; then :
10719 if test "$have_getspnam" = no ; then
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5
10721 $as_echo_n "checking for getspnam in -lgen... " >&6; }
10722 if ${ac_cv_lib_gen_getspnam+:} false; then :
10723 $as_echo_n "(cached) " >&6
10725 ac_check_lib_save_LIBS=$LIBS
10727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10728 /* end confdefs.h. */
10730 /* Override any GCC internal prototype to avoid an error.
10731 Use char because int might match the return type of a GCC
10732 builtin and then its argument prototype would still apply. */
10740 return getspnam ();
10745 if ac_fn_c_try_link "$LINENO"; then :
10746 ac_cv_lib_gen_getspnam=yes
10748 ac_cv_lib_gen_getspnam=no
10750 rm -f core conftest.err conftest.$ac_objext \
10751 conftest$ac_exeext conftest.$ac_ext
10752 LIBS=$ac_check_lib_save_LIBS
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5
10755 $as_echo "$ac_cv_lib_gen_getspnam" >&6; }
10756 if test "x$ac_cv_lib_gen_getspnam" = xyes; then :
10757 have_getspnam=yes; PASSWD_LIBS="$PASSWD_LIBS -lgen"
10765 ###############################################################################
10767 # Check for other libraries needed for non-shadow passwords.
10769 ###############################################################################
10771 if test "$enable_locking" = yes ; then
10773 # On some systems (UnixWare 2.1), crypt() is in -lcrypt instead of -lc.
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lc" >&5
10776 $as_echo_n "checking for crypt in -lc... " >&6; }
10777 if ${ac_cv_lib_c_crypt+:} false; then :
10778 $as_echo_n "(cached) " >&6
10780 ac_check_lib_save_LIBS=$LIBS
10782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h. */
10785 /* Override any GCC internal prototype to avoid an error.
10786 Use char because int might match the return type of a GCC
10787 builtin and then its argument prototype would still apply. */
10800 if ac_fn_c_try_link "$LINENO"; then :
10801 ac_cv_lib_c_crypt=yes
10803 ac_cv_lib_c_crypt=no
10805 rm -f core conftest.err conftest.$ac_objext \
10806 conftest$ac_exeext conftest.$ac_ext
10807 LIBS=$ac_check_lib_save_LIBS
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_crypt" >&5
10810 $as_echo "$ac_cv_lib_c_crypt" >&6; }
10811 if test "x$ac_cv_lib_c_crypt" = xyes; then :
10815 if test "$have_crypt" = no ; then
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10817 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
10818 if ${ac_cv_lib_crypt_crypt+:} false; then :
10819 $as_echo_n "(cached) " >&6
10821 ac_check_lib_save_LIBS=$LIBS
10822 LIBS="-lcrypt $LIBS"
10823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824 /* end confdefs.h. */
10826 /* Override any GCC internal prototype to avoid an error.
10827 Use char because int might match the return type of a GCC
10828 builtin and then its argument prototype would still apply. */
10841 if ac_fn_c_try_link "$LINENO"; then :
10842 ac_cv_lib_crypt_crypt=yes
10844 ac_cv_lib_crypt_crypt=no
10846 rm -f core conftest.err conftest.$ac_objext \
10847 conftest$ac_exeext conftest.$ac_ext
10848 LIBS=$ac_check_lib_save_LIBS
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10851 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10852 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
10853 have_crypt=yes; PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
10860 # Most of the above shadow mechanisms will have set need_setuid to yes,
10861 # if they were found. But, on some systems, we need setuid even when
10862 # using plain old vanilla passwords.
10864 if test "$enable_locking" = yes ; then
10866 *-hpux* | *-aix* | *-netbsd* | *-freebsd* | *-openbsd* )
10873 if test "$have_shadow_adjunct" = yes ; then
10874 $as_echo "#define HAVE_ADJUNCT_PASSWD 1" >>confdefs.h
10876 elif test "$have_shadow_enhanced" = yes ; then
10877 $as_echo "#define HAVE_ENHANCED_PASSWD 1" >>confdefs.h
10879 elif test "$have_shadow_hpux" = yes ; then
10880 $as_echo "#define HAVE_HPUX_PASSWD 1" >>confdefs.h
10882 elif test "$have_shadow" = yes ; then
10883 $as_echo "#define HAVE_SHADOW_PASSWD 1" >>confdefs.h
10888 ###############################################################################
10890 # Check for external password helper
10891 # On SuSE, instead of having xscreensaver be a setuid program, they
10892 # fork an external program that takes the password on stdin, and
10893 # returns true if that password is a valid one. Then only that
10894 # smaller program needs to be setuid.
10896 # (Note that this external program is not a GUI: the GUI is still
10897 # all in xscreensaver itself; the external program just does auth.)
10899 ###############################################################################
10901 have_passwd_helper=no
10902 with_passwd_helper_req=unspecified
10905 # Check whether --with-passwd-helper was given.
10906 if test "${with_passwd_helper+set}" = set; then :
10907 withval=$with_passwd_helper; with_passwd_helper="$withval"; with_passwd_helper_req="$withval"
10909 with_passwd_helper=no
10912 # no HANDLE_X_PATH_ARG for this one
10914 if test "$enable_locking" = no ; then
10915 with_passwd_helper_req=no
10916 with_passwd_helper=no
10919 case "$with_passwd_helper" in
10922 cat >>confdefs.h <<_ACEOF
10923 #define PASSWD_HELPER_PROGRAM "$with_passwd_helper"
10926 have_passwd_helper=yes;;
10928 echo "error: --with-passwd-helper needs full pathname of helper (not '$with_passwd_helper')." >&2
10933 ###############################################################################
10935 # Check for a login manager for a "New Login" button on the lock dialog.
10936 # Usually this will be "/usr/bin/gdmflexiserver".
10938 ###############################################################################
10940 with_login_manager_req=unspecified
10941 default_login_manager_1='gdmflexiserver -ls'
10942 default_login_manager_2='kdmctl reserve'
10945 # Check whether --with-login-manager was given.
10946 if test "${with_login_manager+set}" = set; then :
10947 withval=$with_login_manager; with_login_manager="$withval"; with_login_manager_req="$withval"
10949 with_login_manager=yes
10952 # no HANDLE_X_PATH_ARG for this one
10954 if test "$enable_locking" = no ; then
10955 with_login_manager_req=no
10956 with_login_manager=no
10959 case "$with_login_manager_req" in
10961 with_login_manager=""
10965 # Try both defaults, use the one that exists.
10967 set dummy $default_login_manager_1 ; login_manager_tmp=$2
10968 unset ac_cv_path_login_manager_tmp # don't cache
10969 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
10970 set dummy $login_manager_tmp; ac_word=$2
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10972 $as_echo_n "checking for $ac_word... " >&6; }
10973 if ${ac_cv_path_login_manager_tmp+:} false; then :
10974 $as_echo_n "(cached) " >&6
10976 case $login_manager_tmp in
10978 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
10981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10982 for as_dir in $PATH
10985 test -z "$as_dir" && as_dir=.
10986 for ac_exec_ext in '' $ac_executable_extensions; do
10987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10988 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
10989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10999 login_manager_tmp=$ac_cv_path_login_manager_tmp
11000 if test -n "$login_manager_tmp"; then
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $login_manager_tmp" >&5
11002 $as_echo "$login_manager_tmp" >&6; }
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11005 $as_echo "no" >&6; }
11009 if test ! -z "$login_manager_tmp" ; then
11010 with_login_manager="$default_login_manager_1"
11012 set dummy $default_login_manager_2 ; login_manager_tmp=$2
11013 unset ac_cv_path_login_manager_tmp # don't cache
11014 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
11015 set dummy $login_manager_tmp; ac_word=$2
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11017 $as_echo_n "checking for $ac_word... " >&6; }
11018 if ${ac_cv_path_login_manager_tmp+:} false; then :
11019 $as_echo_n "(cached) " >&6
11021 case $login_manager_tmp in
11023 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
11026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11027 for as_dir in $PATH
11030 test -z "$as_dir" && as_dir=.
11031 for ac_exec_ext in '' $ac_executable_extensions; do
11032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11033 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
11034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11044 login_manager_tmp=$ac_cv_path_login_manager_tmp
11045 if test -n "$login_manager_tmp"; then
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $login_manager_tmp" >&5
11047 $as_echo "$login_manager_tmp" >&6; }
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11050 $as_echo "no" >&6; }
11054 if test ! -z "$login_manager_tmp" ; then
11055 with_login_manager="$default_login_manager_2"
11057 with_login_manager=""
11063 # absolute path specified on cmd line
11064 set dummy $with_login_manager_req ; login_manager_tmp=$2
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $login_manager_tmp" >&5
11066 $as_echo_n "checking for $login_manager_tmp... " >&6; }
11067 if test -x "$login_manager_tmp" ; then
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11069 $as_echo "yes" >&6; }
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11072 $as_echo "no" >&6; }
11073 with_login_manager=""
11078 # relative path specified on cmd line
11079 set dummy $with_login_manager_req ; login_manager_tmp=$2
11080 unset ac_cv_path_login_manager_tmp # don't cache
11081 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
11082 set dummy $login_manager_tmp; ac_word=$2
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11084 $as_echo_n "checking for $ac_word... " >&6; }
11085 if ${ac_cv_path_login_manager_tmp+:} false; then :
11086 $as_echo_n "(cached) " >&6
11088 case $login_manager_tmp in
11090 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
11093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094 for as_dir in $PATH
11097 test -z "$as_dir" && as_dir=.
11098 for ac_exec_ext in '' $ac_executable_extensions; do
11099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11100 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
11101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11111 login_manager_tmp=$ac_cv_path_login_manager_tmp
11112 if test -n "$login_manager_tmp"; then
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $login_manager_tmp" >&5
11114 $as_echo "$login_manager_tmp" >&6; }
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11117 $as_echo "no" >&6; }
11121 if test -z "$login_manager_tmp" ; then
11122 with_login_manager=""
11124 with_login_manager="$login_manager_tmp"
11128 ac_cv_login_manager_program="$with_login_manager"
11130 NEW_LOGIN_COMMAND_P=''
11131 NEW_LOGIN_COMMAND="$ac_cv_login_manager_program"
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for login manager" >&5
11134 $as_echo_n "checking for login manager... " >&6; }
11135 if test -z "$NEW_LOGIN_COMMAND" ; then
11136 NEW_LOGIN_COMMAND="$default_login_manager_1"
11137 NEW_LOGIN_COMMAND_P='! '
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NEW_LOGIN_COMMAND (disabled)" >&5
11139 $as_echo "$NEW_LOGIN_COMMAND (disabled)" >&6; }
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NEW_LOGIN_COMMAND" >&5
11142 $as_echo "$NEW_LOGIN_COMMAND" >&6; }
11146 ###############################################################################
11148 # Check for -lgtk (and Gnome stuff)
11150 ###############################################################################
11153 with_gtk_req=unspecified
11155 # Check whether --with-gtk was given.
11156 if test "${with_gtk+set}" = set; then :
11157 withval=$with_gtk; with_gtk="$withval"; with_gtk_req="$withval"
11163 # if --with-gtk=/directory/ was specified, remember that directory so that
11164 # we can also look for the `gtk-config' program in that directory.
11165 case "$with_gtk" in
11167 gtk_dir="$with_gtk"
11175 case "$with_gtk" in
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gtk headers" >&5
11181 $as_echo_n "checking for Gtk headers... " >&6; }
11182 d=$with_gtk/include
11183 if test -d $d; then
11184 X_CFLAGS="-I$d $X_CFLAGS"
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
11186 $as_echo "$d" >&6; }
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
11189 $as_echo "not found ($d: no such directory)" >&6; }
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gtk libs" >&5
11193 $as_echo_n "checking for Gtk libs... " >&6; }
11195 if test -d $d; then
11196 X_LIBS="-L$d $X_LIBS"
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
11198 $as_echo "$d" >&6; }
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
11201 $as_echo "not found ($d: no such directory)" >&6; }
11204 # replace the directory string with "yes".
11206 with_gtk=$with_gtk_req
11211 echo "error: argument to --with-gtk must be \"yes\", \"no\", or a directory."
11212 echo " If it is a directory, then \`DIR/include' will be added to"
11213 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11219 if test "$with_gtk" != yes -a "$with_gtk" != no ; then
11220 echo "error: must be yes or no: --with-gtk=$with_gtk"
11225 parse_gtk_version_string() {
11228 maj=`echo $ac_gtk_version_string | sed -n 's/\..*//p'`
11229 min=`echo $ac_gtk_version_string | sed -n 's/[^.]*\.\([^.]*\).*/\1/p'`
11231 ac_gtk_version=`echo "$maj * 1000 + $min" | bc`
11232 if test -z "$ac_gtk_version"; then
11233 ac_gtk_version=unknown
11234 ac_gtk_version_string=unknown
11238 # Find pkg-config... (need this for both gtk and gdk_pixbuf.)
11239 # if the user specified --with-gtk=/foo/ then look there.
11242 if test ! -z "$gtk_dir"; then
11243 # canonicalize slashes.
11244 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
11245 gtk_path="$foo:$gtk_path"
11248 for ac_prog in pkg-config
11250 # Extract the first word of "$ac_prog", so it can be a program name with args.
11251 set dummy $ac_prog; ac_word=$2
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11253 $as_echo_n "checking for $ac_word... " >&6; }
11254 if ${ac_cv_path_pkg_config+:} false; then :
11255 $as_echo_n "(cached) " >&6
11257 case $pkg_config in
11259 ac_cv_path_pkg_config="$pkg_config" # Let the user override the test with a path.
11262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11263 for as_dir in $gtk_path
11266 test -z "$as_dir" && as_dir=.
11267 for ac_exec_ext in '' $ac_executable_extensions; do
11268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11269 ac_cv_path_pkg_config="$as_dir/$ac_word$ac_exec_ext"
11270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11280 pkg_config=$ac_cv_path_pkg_config
11281 if test -n "$pkg_config"; then
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config" >&5
11283 $as_echo "$pkg_config" >&6; }
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11286 $as_echo "no" >&6; }
11290 test -n "$pkg_config" && break
11294 if test -z "$pkg_config" ; then
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found!" >&5
11296 $as_echo "$as_me: WARNING: pkg-config not found!" >&2;}
11301 # Utility function for running pkg-config-based tests...
11304 pkg_check_version() {
11305 if test "$ok" = yes ; then
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $req" >&5
11309 $as_echo_n "checking for $req... " >&6; }
11310 if $pkg_config --exists "$req" ; then
11311 vers=`$pkg_config --modversion "$req"`
11312 if $pkg_config --exists "$req >= $min" ; then
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vers" >&5
11314 $as_echo "$vers" >&6; }
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vers (wanted >= $min)" >&5
11319 $as_echo "$vers (wanted >= $min)" >&6; }
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11325 $as_echo "no" >&6; }
11336 if test "$with_gtk" = yes; then
11340 pkg_check_version gtk+-2.0 2.0.1 ; ac_gtk_version_string="$vers"
11341 pkg_check_version gmodule-2.0 2.0.0
11342 pkg_check_version libxml-2.0 2.4.6
11343 pkg_check_version libglade-2.0 1.99.0
11344 pkg_check_version gdk-pixbuf-2.0 2.0.0
11345 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
11348 if test "$have_gtk" = no; then
11349 if test -n "$ac_gtk_version_string" ; then
11350 gtk_halfassed="$ac_gtk_version_string"
11351 gtk_halfassed_lib="$req"
11355 if test "$have_gtk" = yes; then
11356 parse_gtk_version_string
11360 if test "$have_gtk" = yes; then
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gtk includes" >&5
11362 $as_echo_n "checking for Gtk includes... " >&6; }
11363 if ${ac_cv_gtk_config_cflags+:} false; then :
11364 $as_echo_n "(cached) " >&6
11366 ac_cv_gtk_config_cflags=`$pkg_config --cflags $pkgs`
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gtk_config_cflags" >&5
11369 $as_echo "$ac_cv_gtk_config_cflags" >&6; }
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gtk libs" >&5
11371 $as_echo_n "checking for Gtk libs... " >&6; }
11372 if ${ac_cv_gtk_config_libs+:} false; then :
11373 $as_echo_n "(cached) " >&6
11375 ac_cv_gtk_config_libs=`$pkg_config --libs $pkgs`
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gtk_config_libs" >&5
11378 $as_echo "$ac_cv_gtk_config_libs" >&6; }
11381 ac_gtk_config_cflags=$ac_cv_gtk_config_cflags
11382 ac_gtk_config_libs=$ac_cv_gtk_config_libs
11386 if test "$have_gtk" = yes; then
11387 GTK_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
11388 GTK_DATADIR="$GTK_DATADIR/share"
11391 if test "$have_gtk" = yes; then
11392 INCLUDES="$INCLUDES $ac_gtk_config_cflags"
11393 GTK_LIBS="$GTK_LIBS $ac_gtk_config_libs"
11394 $as_echo "#define HAVE_GTK 1" >>confdefs.h
11396 $as_echo "#define HAVE_GTK2 1" >>confdefs.h
11398 $as_echo "#define HAVE_XML 1" >>confdefs.h
11405 # Check for the various Gnome help and URL loading programs.
11407 WITH_BROWSER=gnome-open
11408 if test "$have_gtk" = yes; then
11409 for ac_prog in gnome-open
11411 # Extract the first word of "$ac_prog", so it can be a program name with args.
11412 set dummy $ac_prog; ac_word=$2
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11414 $as_echo_n "checking for $ac_word... " >&6; }
11415 if ${ac_cv_prog_gnome_open_program+:} false; then :
11416 $as_echo_n "(cached) " >&6
11418 if test -n "$gnome_open_program"; then
11419 ac_cv_prog_gnome_open_program="$gnome_open_program" # Let the user override the test.
11421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11422 for as_dir in $PATH
11425 test -z "$as_dir" && as_dir=.
11426 for ac_exec_ext in '' $ac_executable_extensions; do
11427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11428 ac_cv_prog_gnome_open_program="$ac_prog"
11429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11438 gnome_open_program=$ac_cv_prog_gnome_open_program
11439 if test -n "$gnome_open_program"; then
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnome_open_program" >&5
11441 $as_echo "$gnome_open_program" >&6; }
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11444 $as_echo "no" >&6; }
11448 test -n "$gnome_open_program" && break
11451 for ac_prog in gnome-url-show
11453 # Extract the first word of "$ac_prog", so it can be a program name with args.
11454 set dummy $ac_prog; ac_word=$2
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11456 $as_echo_n "checking for $ac_word... " >&6; }
11457 if ${ac_cv_prog_gnome_url_show_program+:} false; then :
11458 $as_echo_n "(cached) " >&6
11460 if test -n "$gnome_url_show_program"; then
11461 ac_cv_prog_gnome_url_show_program="$gnome_url_show_program" # Let the user override the test.
11463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11464 for as_dir in $PATH
11467 test -z "$as_dir" && as_dir=.
11468 for ac_exec_ext in '' $ac_executable_extensions; do
11469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11470 ac_cv_prog_gnome_url_show_program="$ac_prog"
11471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11480 gnome_url_show_program=$ac_cv_prog_gnome_url_show_program
11481 if test -n "$gnome_url_show_program"; then
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnome_url_show_program" >&5
11483 $as_echo "$gnome_url_show_program" >&6; }
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11486 $as_echo "no" >&6; }
11490 test -n "$gnome_url_show_program" && break
11496 ###############################################################################
11500 ###############################################################################
11503 with_motif_req=unspecified
11505 # Check whether --with-motif was given.
11506 if test "${with_motif+set}" = set; then :
11507 withval=$with_motif; with_motif="$withval"; with_motif_req="$withval"
11514 case "$with_motif" in
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif headers" >&5
11520 $as_echo_n "checking for Motif headers... " >&6; }
11521 d=$with_motif/include
11522 if test -d $d; then
11523 X_CFLAGS="-I$d $X_CFLAGS"
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
11525 $as_echo "$d" >&6; }
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
11528 $as_echo "not found ($d: no such directory)" >&6; }
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif libs" >&5
11532 $as_echo_n "checking for Motif libs... " >&6; }
11534 if test -d $d; then
11535 X_LIBS="-L$d $X_LIBS"
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
11537 $as_echo "$d" >&6; }
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
11540 $as_echo "not found ($d: no such directory)" >&6; }
11543 # replace the directory string with "yes".
11544 with_motif_req="yes"
11545 with_motif=$with_motif_req
11550 echo "error: argument to --with-motif must be \"yes\", \"no\", or a directory."
11551 echo " If it is a directory, then \`DIR/include' will be added to"
11552 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11558 if test "$with_motif" != yes -a "$with_motif" != no ; then
11559 echo "error: must be yes or no: --with-motif=$with_motif"
11563 if test "$with_motif" = yes; then
11566 ac_save_CPPFLAGS="$CPPFLAGS"
11567 if test \! -z "$includedir" ; then
11568 CPPFLAGS="$CPPFLAGS -I$includedir"
11570 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11571 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11572 ac_fn_c_check_header_compile "$LINENO" "Xm/Xm.h" "ac_cv_header_Xm_Xm_h" "#include <stdlib.h>
11574 #include <X11/Intrinsic.h>
11576 if test "x$ac_cv_header_Xm_Xm_h" = xyes; then :
11578 $as_echo "#define HAVE_MOTIF 1" >>confdefs.h
11580 MOTIF_LIBS="$MOTIF_LIBS -lXm"
11584 CPPFLAGS="$ac_save_CPPFLAGS"
11588 if test "$have_motif" = yes; then
11590 ac_save_CPPFLAGS="$CPPFLAGS"
11591 if test \! -z "$includedir" ; then
11592 CPPFLAGS="$CPPFLAGS -I$includedir"
11594 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11595 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11596 ac_fn_c_check_header_compile "$LINENO" "Xm/ComboBox.h" "ac_cv_header_Xm_ComboBox_h" "#include <stdlib.h>
11598 #include <X11/Intrinsic.h>
11600 if test "x$ac_cv_header_Xm_ComboBox_h" = xyes; then :
11601 $as_echo "#define HAVE_XMCOMBOBOX 1" >>confdefs.h
11606 CPPFLAGS="$ac_save_CPPFLAGS"
11610 ###############################################################################
11612 # Checking whether Motif is really Lesstif.
11614 ###############################################################################
11617 if test "$have_motif" = yes ; then
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Motif is really LessTif" >&5
11619 $as_echo_n "checking whether Motif is really LessTif... " >&6; }
11620 if ${ac_cv_have_lesstif+:} false; then :
11621 $as_echo_n "(cached) " >&6
11624 ac_save_CPPFLAGS="$CPPFLAGS"
11625 if test \! -z "$includedir" ; then
11626 CPPFLAGS="$CPPFLAGS -I$includedir"
11628 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11629 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11631 /* end confdefs.h. */
11636 long vers = LesstifVersion;
11641 if ac_fn_c_try_compile "$LINENO"; then :
11642 ac_cv_have_lesstif=yes
11644 ac_cv_have_lesstif=no
11646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11647 CPPFLAGS="$ac_save_CPPFLAGS"
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lesstif" >&5
11650 $as_echo "$ac_cv_have_lesstif" >&6; }
11651 have_lesstif=$ac_cv_have_lesstif
11655 lesstif_version=unknown
11656 lesstif_version_string=unknown
11658 if test "$have_lesstif" = yes ; then
11660 echo unknown > conftest-lt
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LessTif version number" >&5
11662 $as_echo_n "checking LessTif version number... " >&6; }
11663 if ${ac_cv_lesstif_version_string+:} false; then :
11664 $as_echo_n "(cached) " >&6
11667 ac_save_CPPFLAGS="$CPPFLAGS"
11668 if test \! -z "$includedir" ; then
11669 CPPFLAGS="$CPPFLAGS -I$includedir"
11671 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11672 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11673 if test "$cross_compiling" = yes; then :
11674 ac_cv_lesstif_version=unknown
11675 ac_cv_lesstif_version_string=unknown
11677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11678 /* end confdefs.h. */
11682 FILE *f = fopen("conftest-lt", "w");
11684 fprintf(f, "%d %d.%d\n", LesstifVersion,
11685 LESSTIF_VERSION, LESSTIF_REVISION);
11690 if ac_fn_c_try_run "$LINENO"; then :
11691 ltv=`cat conftest-lt`
11692 ac_cv_lesstif_version=`echo $ltv | sed 's/ .*//'`
11693 ac_cv_lesstif_version_string=`echo $ltv | sed 's/.* //'`
11695 ac_cv_lesstif_version=unknown
11696 ac_cv_lesstif_version_string=unknown
11698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11699 conftest.$ac_objext conftest.beam conftest.$ac_ext
11702 CPPFLAGS="$ac_save_CPPFLAGS"
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lesstif_version_string" >&5
11705 $as_echo "$ac_cv_lesstif_version_string" >&6; }
11707 lesstif_version=$ac_cv_lesstif_version
11708 lesstif_version_string=$ac_cv_lesstif_version_string
11713 if test "$have_motif" = yes ; then
11715 echo unknown > conftest-mt
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Motif version number" >&5
11717 $as_echo_n "checking Motif version number... " >&6; }
11718 if ${ac_cv_motif_version_string+:} false; then :
11719 $as_echo_n "(cached) " >&6
11722 ac_save_CPPFLAGS="$CPPFLAGS"
11723 if test \! -z "$includedir" ; then
11724 CPPFLAGS="$CPPFLAGS -I$includedir"
11726 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11727 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11728 if test "$cross_compiling" = yes; then :
11729 ac_cv_motif_version=unknown
11730 ac_cv_motif_version_string=unknown
11732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11733 /* end confdefs.h. */
11737 FILE *f = fopen("conftest-mt", "w");
11739 fprintf(f, "%d %d.%d\n", XmVersion,
11740 XmVERSION, XmREVISION);
11745 if ac_fn_c_try_run "$LINENO"; then :
11746 mtv=`cat conftest-mt`
11747 ac_cv_motif_version=`echo $mtv | sed 's/ .*//'`
11748 ac_cv_motif_version_string=`echo $mtv | sed 's/.* //'`
11750 ac_cv_motif_version=unknown
11751 ac_cv_motif_version_string=unknown
11753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11754 conftest.$ac_objext conftest.beam conftest.$ac_ext
11757 CPPFLAGS="$ac_save_CPPFLAGS"
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_motif_version_string" >&5
11760 $as_echo "$ac_cv_motif_version_string" >&6; }
11762 motif_version=$ac_cv_motif_version
11763 motif_version_string=$ac_cv_motif_version_string
11768 ###############################################################################
11770 # Checking whether Motif requires -lXpm.
11772 # If this is Motif 2.x, and we have XPM, then link against XPM as well.
11773 # The deal is, Motif 2.x requires XPM -- but it's a compilation option
11774 # of the library whether to build the XPM code into libXm, or whether
11775 # to rely on an external libXm. So the only way to tell whether XPM is
11776 # a link-time requirement is to examine libXm.a, which is very
11777 # difficult to do in an autoconf script. So... if it's Motif 2.x, we
11778 # always link against XPM if the XPM lib exists (and this will be a
11779 # no-op if libXm happens to already have the XPM code in it.)
11781 ###############################################################################
11783 motif_requires_xpm=no
11784 if test "$have_motif" = yes ; then
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Motif requires XPM" >&5
11786 $as_echo_n "checking whether Motif requires XPM... " >&6; }
11787 if test "$motif_version" = "unknown" || test "$motif_version" -ge 2000
11789 motif_requires_xpm=yes
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
11791 $as_echo "maybe" >&6; }
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794 $as_echo "no" >&6; }
11799 ###############################################################################
11801 # Checking whether Motif requires -lXp.
11803 # Some versions of Motif (2.1.0, at least) require -lXp, the "X Printing
11804 # Extension". Why this extension isn't in -lXext with all the others,
11807 ###############################################################################
11810 if test "$have_motif" = yes ; then
11813 ac_save_CPPFLAGS="$CPPFLAGS"
11814 ac_save_LDFLAGS="$LDFLAGS"
11815 # ac_save_LIBS="$LIBS"
11817 if test \! -z "$includedir" ; then
11818 CPPFLAGS="$CPPFLAGS -I$includedir"
11820 # note: $X_CFLAGS includes $x_includes
11821 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11823 if test \! -z "$libdir" ; then
11824 LDFLAGS="$LDFLAGS -L$libdir"
11826 # note: $X_LIBS includes $x_libraries
11827 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11829 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11830 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpQueryExtension in -lXp" >&5
11832 $as_echo_n "checking for XpQueryExtension in -lXp... " >&6; }
11833 if ${ac_cv_lib_Xp_XpQueryExtension+:} false; then :
11834 $as_echo_n "(cached) " >&6
11836 ac_check_lib_save_LIBS=$LIBS
11837 LIBS="-lXp -lX11 -lXext -lm $LIBS"
11838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11839 /* end confdefs.h. */
11841 /* Override any GCC internal prototype to avoid an error.
11842 Use char because int might match the return type of a GCC
11843 builtin and then its argument prototype would still apply. */
11847 char XpQueryExtension ();
11851 return XpQueryExtension ();
11856 if ac_fn_c_try_link "$LINENO"; then :
11857 ac_cv_lib_Xp_XpQueryExtension=yes
11859 ac_cv_lib_Xp_XpQueryExtension=no
11861 rm -f core conftest.err conftest.$ac_objext \
11862 conftest$ac_exeext conftest.$ac_ext
11863 LIBS=$ac_check_lib_save_LIBS
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpQueryExtension" >&5
11866 $as_echo "$ac_cv_lib_Xp_XpQueryExtension" >&6; }
11867 if test "x$ac_cv_lib_Xp_XpQueryExtension" = xyes; then :
11868 have_xp_ext=yes; MOTIF_LIBS="$MOTIF_LIBS -lXp"
11873 CPPFLAGS="$ac_save_CPPFLAGS"
11874 LDFLAGS="$ac_save_LDFLAGS"
11875 # LIBS="$ac_save_LIBS"
11880 ###############################################################################
11882 # Checking whether Motif requires -lXintl (for _Xsetlocale.)
11884 ###############################################################################
11887 if test "$have_motif" = yes ; then
11889 ac_save_CPPFLAGS="$CPPFLAGS"
11890 ac_save_LDFLAGS="$LDFLAGS"
11891 # ac_save_LIBS="$LIBS"
11893 if test \! -z "$includedir" ; then
11894 CPPFLAGS="$CPPFLAGS -I$includedir"
11896 # note: $X_CFLAGS includes $x_includes
11897 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11899 if test \! -z "$libdir" ; then
11900 LDFLAGS="$LDFLAGS -L$libdir"
11902 # note: $X_LIBS includes $x_libraries
11903 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11905 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11906 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Xsetlocale in -lXintl" >&5
11908 $as_echo_n "checking for _Xsetlocale in -lXintl... " >&6; }
11909 if ${ac_cv_lib_Xintl__Xsetlocale+:} false; then :
11910 $as_echo_n "(cached) " >&6
11912 ac_check_lib_save_LIBS=$LIBS
11913 LIBS="-lXintl -lX11 -lXext -lm $LIBS"
11914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11915 /* end confdefs.h. */
11917 /* Override any GCC internal prototype to avoid an error.
11918 Use char because int might match the return type of a GCC
11919 builtin and then its argument prototype would still apply. */
11923 char _Xsetlocale ();
11927 return _Xsetlocale ();
11932 if ac_fn_c_try_link "$LINENO"; then :
11933 ac_cv_lib_Xintl__Xsetlocale=yes
11935 ac_cv_lib_Xintl__Xsetlocale=no
11937 rm -f core conftest.err conftest.$ac_objext \
11938 conftest$ac_exeext conftest.$ac_ext
11939 LIBS=$ac_check_lib_save_LIBS
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xintl__Xsetlocale" >&5
11942 $as_echo "$ac_cv_lib_Xintl__Xsetlocale" >&6; }
11943 if test "x$ac_cv_lib_Xintl__Xsetlocale" = xyes; then :
11949 CPPFLAGS="$ac_save_CPPFLAGS"
11950 LDFLAGS="$ac_save_LDFLAGS"
11951 # LIBS="$ac_save_LIBS"
11953 if test "$have_xintl" = yes; then
11954 MOTIF_LIBS="$MOTIF_LIBS -lXintl"
11959 ###############################################################################
11961 # Check for -lGL or -lMesaGL.
11963 ###############################################################################
11967 with_gl_req=unspecified
11970 # Check whether --with-gl was given.
11971 if test "${with_gl+set}" = set; then :
11972 withval=$with_gl; with_gl="$withval"; with_gl_req="$withval"
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL headers" >&5
11985 $as_echo_n "checking for GL headers... " >&6; }
11987 if test -d $d; then
11988 X_CFLAGS="-I$d $X_CFLAGS"
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
11990 $as_echo "$d" >&6; }
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
11993 $as_echo "not found ($d: no such directory)" >&6; }
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL libs" >&5
11997 $as_echo_n "checking for GL libs... " >&6; }
11999 if test -d $d; then
12000 X_LIBS="-L$d $X_LIBS"
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
12002 $as_echo "$d" >&6; }
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
12005 $as_echo "not found ($d: no such directory)" >&6; }
12008 # replace the directory string with "yes".
12010 with_gl=$with_gl_req
12015 echo "error: argument to --with-gl must be \"yes\", \"no\", or a directory."
12016 echo " If it is a directory, then \`DIR/include' will be added to"
12017 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12023 ac_mesagl_version=unknown
12024 ac_mesagl_version_string=unknown
12026 if test "$with_gl" = yes; then
12028 ac_save_CPPFLAGS="$CPPFLAGS"
12029 if test \! -z "$includedir" ; then
12030 CPPFLAGS="$CPPFLAGS -I$includedir"
12032 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12033 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12034 ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
12035 if test "x$ac_cv_header_GL_gl_h" = xyes; then :
12042 CPPFLAGS="$ac_save_CPPFLAGS"
12043 if test "$have_gl" = yes ; then
12045 ac_save_CPPFLAGS="$CPPFLAGS"
12046 if test \! -z "$includedir" ; then
12047 CPPFLAGS="$CPPFLAGS -I$includedir"
12049 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12050 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12051 ac_fn_c_check_header_compile "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "#include <GL/gl.h>
12053 if test "x$ac_cv_header_GL_glx_h" = xyes; then :
12060 CPPFLAGS="$ac_save_CPPFLAGS"
12063 # If we have the headers, try and figure out which vendor it's from.
12065 if test "$have_gl" = yes ; then
12067 # We need to know whether it's MesaGL so that we know which libraries
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GL is really MesaGL" >&5
12071 $as_echo_n "checking whether GL is really MesaGL... " >&6; }
12072 if ${ac_cv_have_mesa_gl+:} false; then :
12073 $as_echo_n "(cached) " >&6
12075 ac_cv_have_mesa_gl=no
12076 if test "$ac_macosx" = no; then
12077 # WTF! MacOS 10.5.0 ships the Mesa GL headers!
12078 # It's not really Mesa, is it?
12080 ac_save_CPPFLAGS="$CPPFLAGS"
12081 if test \! -z "$includedir" ; then
12082 CPPFLAGS="$CPPFLAGS -I$includedir"
12084 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12085 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12087 /* end confdefs.h. */
12088 #include <GL/glx.h>
12091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12092 $EGREP "Mesa|MESA" >/dev/null 2>&1; then :
12093 ac_cv_have_mesa_gl=yes
12097 CPPFLAGS="$ac_save_CPPFLAGS"
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mesa_gl" >&5
12101 $as_echo "$ac_cv_have_mesa_gl" >&6; }
12102 ac_have_mesa_gl=$ac_cv_have_mesa_gl
12107 if test "$ac_macosx" = yes; then
12109 # Without these, every link against libGL gets a bunch of useless
12112 osx_crud="-bind_at_load -multiply_defined suppress"
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding \"$osx_crud\" to GL_LIBS" >&5
12114 $as_echo "adding \"$osx_crud\" to GL_LIBS" >&6; }
12115 GL_LIBS="$GL_LIBS $osx_crud"
12118 # New lossage in 10.5.0: without this, we get:
12119 # ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib
12121 osx_crud="/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
12122 osx_crud="-Wl,-dylib_file,${osx_crud}:${osx_crud}"
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding \"$osx_crud\" to GL_LIBS" >&5
12125 $as_echo "adding \"$osx_crud\" to GL_LIBS" >&6; }
12126 GL_LIBS="$GL_LIBS $osx_crud"
12129 # New lossage in 10.6.8: we can't allow -L/opt/local/lib to be in the
12130 # link line, or at runtime XQueryExtension gets a segv due to some kind
12131 # of library version skew. Libs must come from /usr/X11/lib even if
12132 # $prefix and/or $exec_prefix are set to /opt/local/.
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: omitting \"$libdir\" from LDFLAGS" >&5
12135 $as_echo "omitting \"$libdir\" from LDFLAGS" >&6; }
12141 # Some versions of MesaGL are compiled to require -lpthread.
12142 # So if the Mesa headers exist, and -lpthread exists, then always
12143 # link -lpthread after the Mesa libs (be they named -lGL or -lMesaGL.)
12145 if test "$ac_have_mesa_gl" = yes; then
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
12147 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
12148 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
12149 $as_echo_n "(cached) " >&6
12151 ac_check_lib_save_LIBS=$LIBS
12152 LIBS="-lpthread $LIBS"
12153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12154 /* end confdefs.h. */
12156 /* Override any GCC internal prototype to avoid an error.
12157 Use char because int might match the return type of a GCC
12158 builtin and then its argument prototype would still apply. */
12162 char pthread_create ();
12166 return pthread_create ();
12171 if ac_fn_c_try_link "$LINENO"; then :
12172 ac_cv_lib_pthread_pthread_create=yes
12174 ac_cv_lib_pthread_pthread_create=no
12176 rm -f core conftest.err conftest.$ac_objext \
12177 conftest$ac_exeext conftest.$ac_ext
12178 LIBS=$ac_check_lib_save_LIBS
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
12181 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
12182 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
12183 GL_LIBS="-lpthread"
12189 # If we have Mesa headers, check to see if we can link against -lMesaGL.
12190 # If we don't have Mesa headers, or we don't have -lMesaGL, try -lGL.
12191 # Else, warn that GL is busted. (We have the headers, but no libs.)
12194 if test "$ac_have_mesa_gl" = yes ; then
12196 ac_save_CPPFLAGS="$CPPFLAGS"
12197 ac_save_LDFLAGS="$LDFLAGS"
12198 # ac_save_LIBS="$LIBS"
12200 if test \! -z "$includedir" ; then
12201 CPPFLAGS="$CPPFLAGS -I$includedir"
12203 # note: $X_CFLAGS includes $x_includes
12204 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12206 if test \! -z "$libdir" ; then
12207 LDFLAGS="$LDFLAGS -L$libdir"
12209 # note: $X_LIBS includes $x_libraries
12210 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12212 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12213 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXCreateContext in -lMesaGL" >&5
12215 $as_echo_n "checking for glXCreateContext in -lMesaGL... " >&6; }
12216 if ${ac_cv_lib_MesaGL_glXCreateContext+:} false; then :
12217 $as_echo_n "(cached) " >&6
12219 ac_check_lib_save_LIBS=$LIBS
12220 LIBS="-lMesaGL -lMesaGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
12221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12222 /* end confdefs.h. */
12224 /* Override any GCC internal prototype to avoid an error.
12225 Use char because int might match the return type of a GCC
12226 builtin and then its argument prototype would still apply. */
12230 char glXCreateContext ();
12234 return glXCreateContext ();
12239 if ac_fn_c_try_link "$LINENO"; then :
12240 ac_cv_lib_MesaGL_glXCreateContext=yes
12242 ac_cv_lib_MesaGL_glXCreateContext=no
12244 rm -f core conftest.err conftest.$ac_objext \
12245 conftest$ac_exeext conftest.$ac_ext
12246 LIBS=$ac_check_lib_save_LIBS
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_MesaGL_glXCreateContext" >&5
12249 $as_echo "$ac_cv_lib_MesaGL_glXCreateContext" >&6; }
12250 if test "x$ac_cv_lib_MesaGL_glXCreateContext" = xyes; then :
12252 GL_LIBS="-lMesaGL -lMesaGLU $VIDMODE_LIBS $GL_LIBS"
12255 CPPFLAGS="$ac_save_CPPFLAGS"
12256 LDFLAGS="$ac_save_LDFLAGS"
12257 # LIBS="$ac_save_LIBS"
12261 if test "$gl_lib_1" = "" ; then
12263 ac_save_CPPFLAGS="$CPPFLAGS"
12264 ac_save_LDFLAGS="$LDFLAGS"
12265 # ac_save_LIBS="$LIBS"
12267 if test \! -z "$includedir" ; then
12268 CPPFLAGS="$CPPFLAGS -I$includedir"
12270 # note: $X_CFLAGS includes $x_includes
12271 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12273 if test \! -z "$libdir" ; then
12274 LDFLAGS="$LDFLAGS -L$libdir"
12276 # note: $X_LIBS includes $x_libraries
12277 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12279 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12280 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXCreateContext in -lGL" >&5
12282 $as_echo_n "checking for glXCreateContext in -lGL... " >&6; }
12283 if ${ac_cv_lib_GL_glXCreateContext+:} false; then :
12284 $as_echo_n "(cached) " >&6
12286 ac_check_lib_save_LIBS=$LIBS
12287 LIBS="-lGL -lGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
12288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12289 /* end confdefs.h. */
12291 /* Override any GCC internal prototype to avoid an error.
12292 Use char because int might match the return type of a GCC
12293 builtin and then its argument prototype would still apply. */
12297 char glXCreateContext ();
12301 return glXCreateContext ();
12306 if ac_fn_c_try_link "$LINENO"; then :
12307 ac_cv_lib_GL_glXCreateContext=yes
12309 ac_cv_lib_GL_glXCreateContext=no
12311 rm -f core conftest.err conftest.$ac_objext \
12312 conftest$ac_exeext conftest.$ac_ext
12313 LIBS=$ac_check_lib_save_LIBS
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glXCreateContext" >&5
12316 $as_echo "$ac_cv_lib_GL_glXCreateContext" >&6; }
12317 if test "x$ac_cv_lib_GL_glXCreateContext" = xyes; then :
12319 GL_LIBS="-lGL -lGLU $VIDMODE_LIBS $GL_LIBS"
12322 CPPFLAGS="$ac_save_CPPFLAGS"
12323 LDFLAGS="$ac_save_LDFLAGS"
12324 # LIBS="$ac_save_LIBS"
12328 if test "$gl_lib_1" = "" ; then
12329 # we have headers, but no libs -- bail.
12334 # linking works -- we can build the GL hacks.
12335 $as_echo "#define HAVE_GL 1" >>confdefs.h
12337 if test "$ac_have_mesa_gl" = yes ; then
12338 $as_echo "#define HAVE_MESA_GL 1" >>confdefs.h
12345 # Now that we know we have GL headers and libs, do some more GL testing.
12348 if test "$have_gl" = yes ; then
12349 # If it's MesaGL, we'd like to issue a warning if the version number
12350 # is less than or equal to 2.6, because that version had a security bug.
12352 if test "$ac_have_mesa_gl" = yes; then
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MesaGL version number" >&5
12355 $as_echo_n "checking MesaGL version number... " >&6; }
12356 if ${ac_cv_mesagl_version_string+:} false; then :
12357 $as_echo_n "(cached) " >&6
12359 cat > conftest.$ac_ext <<EOF
12360 #line 12364 "configure"
12361 #include "confdefs.h"
12363 #ifndef MESA_MAJOR_VERSION
12364 # include <GL/xmesa.h>
12365 # ifdef XMESA_MAJOR_VERSION
12366 /* Around Mesa 3.2, they took out the Mesa version number, so instead,
12367 we have to check the XMesa version number (the number of the X protocol
12368 support, which seems to be the same as the Mesa version number.)
12370 # define MESA_MAJOR_VERSION XMESA_MAJOR_VERSION
12371 # define MESA_MINOR_VERSION XMESA_MINOR_VERSION
12373 /* Oh great. Some time after 3.4, they took out the xmesa.h header file,
12374 so we have no way of telling what version of Mesa this is at all.
12375 So, we'll guess that the osmesa version (the "offscreen protocol")
12376 is less than or equal to the real mesa version number. Except that
12377 if OSmesa is 3.3, assume at least Mesa 3.4, since OSmesa was 3.3 in
12378 Mesa 3.4. And Mesa 3.3 had xmesa.h. What a complete load of shit!
12380 # include <GL/osmesa.h>
12381 # define MESA_MAJOR_VERSION OSMESA_MAJOR_VERSION
12382 # define MESA_MINOR_VERSION OSMESA_MINOR_VERSION or newer, probably?
12383 # if OSMESA_MAJOR_VERSION == 3 && OSMESA_MINOR_VERSION == 3
12384 # undef MESA_MINOR_VERSION
12385 # define MESA_MINOR_VERSION 4 or newer, probably?
12389 configure: MESA_MAJOR_VERSION MESA_MINOR_VERSION
12392 ac_save_CPPFLAGS="$CPPFLAGS"
12393 if test \! -z "$includedir" ; then
12394 CPPFLAGS="$CPPFLAGS -I$includedir"
12396 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12398 mglv=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | grep configure:`
12402 mglv=`echo "$mglv" | sed -n \
12403 's/^configure: *\([0-9][0-9]*\) *\([0-9].*\)$/\1.\2/p'`
12406 rm -rf conftest.$ac_ext
12408 CPPFLAGS="$ac_save_CPPFLAGS"
12410 if test "$mglv" = ""; then
12411 ac_mesagl_version=unknown
12412 ac_mesagl_version_string=unknown
12414 ac_mesagl_version_string="$mglv"
12417 maj=`echo "$mglv" | sed -n 's/^\([0-9][0-9]*\)\..*$/\1/p'`
12418 min=`echo "$mglv" | sed -n 's/^.*\.\([0-9][0-9]*\).*$/\1/p'`
12420 ac_mesagl_version=`echo "$maj * 1000 + $min" | bc`
12421 if test -z "$ac_mesagl_version"; then
12422 ac_mesagl_version=unknown
12423 ac_mesagl_version_string=unknown
12426 ac_cv_mesagl_version=$ac_mesagl_version
12427 ac_cv_mesagl_version_string=$ac_mesagl_version_string
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mesagl_version_string" >&5
12431 $as_echo "$ac_cv_mesagl_version_string" >&6; }
12432 ac_mesagl_version=$ac_cv_mesagl_version
12433 ac_mesagl_version_string=$ac_cv_mesagl_version_string
12437 # Check for OpenGL 1.1 features.
12440 ac_save_CPPFLAGS="$CPPFLAGS"
12441 ac_save_LDFLAGS="$LDFLAGS"
12442 # ac_save_LIBS="$LIBS"
12444 if test \! -z "$includedir" ; then
12445 CPPFLAGS="$CPPFLAGS -I$includedir"
12447 # note: $X_CFLAGS includes $x_includes
12448 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12450 if test \! -z "$libdir" ; then
12451 LDFLAGS="$LDFLAGS -L$libdir"
12453 # note: $X_LIBS includes $x_libraries
12454 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12456 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12457 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12458 as_ac_Lib=`$as_echo "ac_cv_lib_$gl_lib_1''_glBindTexture" | $as_tr_sh`
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBindTexture in -l$gl_lib_1" >&5
12460 $as_echo_n "checking for glBindTexture in -l$gl_lib_1... " >&6; }
12461 if eval \${$as_ac_Lib+:} false; then :
12462 $as_echo_n "(cached) " >&6
12464 ac_check_lib_save_LIBS=$LIBS
12465 LIBS="-l$gl_lib_1 $GL_LIBS -lX11 -lXext -lm $LIBS"
12466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h. */
12469 /* Override any GCC internal prototype to avoid an error.
12470 Use char because int might match the return type of a GCC
12471 builtin and then its argument prototype would still apply. */
12475 char glBindTexture ();
12479 return glBindTexture ();
12484 if ac_fn_c_try_link "$LINENO"; then :
12485 eval "$as_ac_Lib=yes"
12487 eval "$as_ac_Lib=no"
12489 rm -f core conftest.err conftest.$ac_objext \
12490 conftest$ac_exeext conftest.$ac_ext
12491 LIBS=$ac_check_lib_save_LIBS
12493 eval ac_res=\$$as_ac_Lib
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12495 $as_echo "$ac_res" >&6; }
12496 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12497 $as_echo "#define HAVE_GLBINDTEXTURE 1" >>confdefs.h
12503 CPPFLAGS="$ac_save_CPPFLAGS"
12504 LDFLAGS="$ac_save_LDFLAGS"
12505 # LIBS="$ac_save_LIBS"
12509 elif test "$with_gl" != no; then
12510 echo "error: must be yes or no: --with-gl=$with_gl"
12515 ###############################################################################
12519 ###############################################################################
12522 with_gle_req=unspecified
12525 # Check whether --with-gle was given.
12526 if test "${with_gle+set}" = set; then :
12527 withval=$with_gle; with_gle="$withval"; with_gle_req="$withval"
12534 case "$with_gle" in
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLE headers" >&5
12540 $as_echo_n "checking for GLE headers... " >&6; }
12541 d=$with_gle/include
12542 if test -d $d; then
12543 X_CFLAGS="-I$d $X_CFLAGS"
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
12545 $as_echo "$d" >&6; }
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
12548 $as_echo "not found ($d: no such directory)" >&6; }
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLE libs" >&5
12552 $as_echo_n "checking for GLE libs... " >&6; }
12554 if test -d $d; then
12555 X_LIBS="-L$d $X_LIBS"
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
12557 $as_echo "$d" >&6; }
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
12560 $as_echo "not found ($d: no such directory)" >&6; }
12563 # replace the directory string with "yes".
12565 with_gle=$with_gle_req
12570 echo "error: argument to --with-gle must be \"yes\", \"no\", or a directory."
12571 echo " If it is a directory, then \`DIR/include' will be added to"
12572 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12580 if test "$have_gl" = no ; then
12582 elif test "$with_gle" = yes; then
12585 ac_save_CPPFLAGS="$CPPFLAGS"
12586 if test \! -z "$includedir" ; then
12587 CPPFLAGS="$CPPFLAGS -I$includedir"
12589 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12590 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12591 ac_fn_c_check_header_compile "$LINENO" "GL/gle.h" "ac_cv_header_GL_gle_h" "#include <GL/gl.h>
12593 if test "x$ac_cv_header_GL_gle_h" = xyes; then :
12600 CPPFLAGS="$ac_save_CPPFLAGS"
12601 if test "$have_gle3" = yes ; then
12605 ac_save_CPPFLAGS="$CPPFLAGS"
12606 if test \! -z "$includedir" ; then
12607 CPPFLAGS="$CPPFLAGS -I$includedir"
12609 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12610 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12611 ac_fn_c_check_header_compile "$LINENO" "GL/gutil.h" "ac_cv_header_GL_gutil_h" "#include <GL/gl.h>
12613 if test "x$ac_cv_header_GL_gutil_h" = xyes; then :
12620 CPPFLAGS="$ac_save_CPPFLAGS"
12621 if test "$have_gle" = yes ; then
12623 ac_save_CPPFLAGS="$CPPFLAGS"
12624 if test \! -z "$includedir" ; then
12625 CPPFLAGS="$CPPFLAGS -I$includedir"
12627 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12628 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12629 ac_fn_c_check_header_compile "$LINENO" "GL/tube.h" "ac_cv_header_GL_tube_h" "#include <GL/gl.h>
12631 if test "x$ac_cv_header_GL_tube_h" = xyes; then :
12638 CPPFLAGS="$ac_save_CPPFLAGS"
12642 if test "$have_gle" = yes ; then
12646 ac_save_CPPFLAGS="$CPPFLAGS"
12647 ac_save_LDFLAGS="$LDFLAGS"
12648 # ac_save_LIBS="$LIBS"
12650 if test \! -z "$includedir" ; then
12651 CPPFLAGS="$CPPFLAGS -I$includedir"
12653 # note: $X_CFLAGS includes $x_includes
12654 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12656 if test \! -z "$libdir" ; then
12657 LDFLAGS="$LDFLAGS -L$libdir"
12659 # note: $X_LIBS includes $x_libraries
12660 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12662 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12663 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gleCreateGC in -lgle" >&5
12665 $as_echo_n "checking for gleCreateGC in -lgle... " >&6; }
12666 if ${ac_cv_lib_gle_gleCreateGC+:} false; then :
12667 $as_echo_n "(cached) " >&6
12669 ac_check_lib_save_LIBS=$LIBS
12670 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
12671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12672 /* end confdefs.h. */
12674 /* Override any GCC internal prototype to avoid an error.
12675 Use char because int might match the return type of a GCC
12676 builtin and then its argument prototype would still apply. */
12680 char gleCreateGC ();
12684 return gleCreateGC ();
12689 if ac_fn_c_try_link "$LINENO"; then :
12690 ac_cv_lib_gle_gleCreateGC=yes
12692 ac_cv_lib_gle_gleCreateGC=no
12694 rm -f core conftest.err conftest.$ac_objext \
12695 conftest$ac_exeext conftest.$ac_ext
12696 LIBS=$ac_check_lib_save_LIBS
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gle_gleCreateGC" >&5
12699 $as_echo "$ac_cv_lib_gle_gleCreateGC" >&6; }
12700 if test "x$ac_cv_lib_gle_gleCreateGC" = xyes; then :
12701 have_gle=yes; gle_halfassed=no; GLE_LIBS="-lgle"
12704 CPPFLAGS="$ac_save_CPPFLAGS"
12705 LDFLAGS="$ac_save_LDFLAGS"
12706 # LIBS="$ac_save_LIBS"
12709 if test "$have_gle" = yes ; then
12713 # sometimes the libmatrix stuff is included in libgle. look there first.
12715 # I don't get it. For some reason, this test passes on SGI, as if
12716 # uview_direction_d() was in libgle -- but it's not, it's in libmatrix.
12717 # Yet the link is succeeding. Why???
12719 # AC_CHECK_X_LIB(gle, uview_direction_d,
12720 # [have_gle=yes; gle_halfassed=no],
12721 # [], $GL_LIBS -lX11 -lXext -lm)
12723 # As of GLE 3 this is in libgle, and has changed name to uview_direction!
12725 if test "$have_gle3" = yes ; then
12727 ac_save_CPPFLAGS="$CPPFLAGS"
12728 ac_save_LDFLAGS="$LDFLAGS"
12729 # ac_save_LIBS="$LIBS"
12731 if test \! -z "$includedir" ; then
12732 CPPFLAGS="$CPPFLAGS -I$includedir"
12734 # note: $X_CFLAGS includes $x_includes
12735 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12737 if test \! -z "$libdir" ; then
12738 LDFLAGS="$LDFLAGS -L$libdir"
12740 # note: $X_LIBS includes $x_libraries
12741 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12743 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12744 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uview_direction in -lgle" >&5
12746 $as_echo_n "checking for uview_direction in -lgle... " >&6; }
12747 if ${ac_cv_lib_gle_uview_direction+:} false; then :
12748 $as_echo_n "(cached) " >&6
12750 ac_check_lib_save_LIBS=$LIBS
12751 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
12752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12753 /* end confdefs.h. */
12755 /* Override any GCC internal prototype to avoid an error.
12756 Use char because int might match the return type of a GCC
12757 builtin and then its argument prototype would still apply. */
12761 char uview_direction ();
12765 return uview_direction ();
12770 if ac_fn_c_try_link "$LINENO"; then :
12771 ac_cv_lib_gle_uview_direction=yes
12773 ac_cv_lib_gle_uview_direction=no
12775 rm -f core conftest.err conftest.$ac_objext \
12776 conftest$ac_exeext conftest.$ac_ext
12777 LIBS=$ac_check_lib_save_LIBS
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gle_uview_direction" >&5
12780 $as_echo "$ac_cv_lib_gle_uview_direction" >&6; }
12781 if test "x$ac_cv_lib_gle_uview_direction" = xyes; then :
12782 have_gle=yes; gle_halfassed=no
12785 CPPFLAGS="$ac_save_CPPFLAGS"
12786 LDFLAGS="$ac_save_LDFLAGS"
12787 # LIBS="$ac_save_LIBS"
12790 # if it wasn't in libgle, then look in libmatrix.
12791 if test "$have_gle" = no ; then
12793 ac_save_CPPFLAGS="$CPPFLAGS"
12794 ac_save_LDFLAGS="$LDFLAGS"
12795 # ac_save_LIBS="$LIBS"
12797 if test \! -z "$includedir" ; then
12798 CPPFLAGS="$CPPFLAGS -I$includedir"
12800 # note: $X_CFLAGS includes $x_includes
12801 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12803 if test \! -z "$libdir" ; then
12804 LDFLAGS="$LDFLAGS -L$libdir"
12806 # note: $X_LIBS includes $x_libraries
12807 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12809 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12810 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uview_direction_d in -lmatrix" >&5
12812 $as_echo_n "checking for uview_direction_d in -lmatrix... " >&6; }
12813 if ${ac_cv_lib_matrix_uview_direction_d+:} false; then :
12814 $as_echo_n "(cached) " >&6
12816 ac_check_lib_save_LIBS=$LIBS
12817 LIBS="-lmatrix $GL_LIBS -lX11 -lXext -lm $LIBS"
12818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12819 /* end confdefs.h. */
12821 /* Override any GCC internal prototype to avoid an error.
12822 Use char because int might match the return type of a GCC
12823 builtin and then its argument prototype would still apply. */
12827 char uview_direction_d ();
12831 return uview_direction_d ();
12836 if ac_fn_c_try_link "$LINENO"; then :
12837 ac_cv_lib_matrix_uview_direction_d=yes
12839 ac_cv_lib_matrix_uview_direction_d=no
12841 rm -f core conftest.err conftest.$ac_objext \
12842 conftest$ac_exeext conftest.$ac_ext
12843 LIBS=$ac_check_lib_save_LIBS
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_matrix_uview_direction_d" >&5
12846 $as_echo "$ac_cv_lib_matrix_uview_direction_d" >&6; }
12847 if test "x$ac_cv_lib_matrix_uview_direction_d" = xyes; then :
12848 have_gle=yes; gle_halfassed=no;
12849 GLE_LIBS="$GLE_LIBS -lmatrix"
12852 CPPFLAGS="$ac_save_CPPFLAGS"
12853 LDFLAGS="$ac_save_LDFLAGS"
12854 # LIBS="$ac_save_LIBS"
12859 if test "$have_gle" = yes ; then
12860 $as_echo "#define HAVE_GLE 1" >>confdefs.h
12862 if test "$have_gle3" = yes ; then
12863 $as_echo "#define HAVE_GLE3 1" >>confdefs.h
12868 elif test "$with_gle" != no; then
12869 echo "error: must be yes or no: --with-gle=$with_gle"
12875 ###############################################################################
12877 # Handle --with-gles
12879 ###############################################################################
12881 with_gles_req=unspecified
12883 # Check whether --with-gles was given.
12884 if test "${with_gles+set}" = set; then :
12885 withval=$with_gles; with_gles="$withval"; with_gles_req="$withval"
12892 case "$with_gles" in
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JWZGLES headers" >&5
12898 $as_echo_n "checking for JWZGLES headers... " >&6; }
12899 d=$with_gles/include
12900 if test -d $d; then
12901 X_CFLAGS="-I$d $X_CFLAGS"
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
12903 $as_echo "$d" >&6; }
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
12906 $as_echo "not found ($d: no such directory)" >&6; }
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JWZGLES libs" >&5
12910 $as_echo_n "checking for JWZGLES libs... " >&6; }
12912 if test -d $d; then
12913 X_LIBS="-L$d $X_LIBS"
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
12915 $as_echo "$d" >&6; }
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
12918 $as_echo "not found ($d: no such directory)" >&6; }
12921 # replace the directory string with "yes".
12922 with_gles_req="yes"
12923 with_gles=$with_gles_req
12928 echo "error: argument to --with-gles must be \"yes\", \"no\", or a directory."
12929 echo " If it is a directory, then \`DIR/include' will be added to"
12930 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12936 if test "$with_gles" = yes; then
12938 $as_echo "#define HAVE_JWZGLES 1" >>confdefs.h
12940 JWZGLES_OBJS="jwzgles.o"
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OpenGL ES compatiblity shim" >&5
12942 $as_echo "using OpenGL ES compatiblity shim" >&6; }
12943 elif test "$with_gles" != no; then
12944 echo "error: must be yes or no: --with-gles=$with_xpm"
12948 # May want to phase out glBitmap even in a non-GLES world.
12950 if test "$have_gles" = yes; then
12951 GLFPS_OBJS="fps-gl.o glxfonts.o texfont.o"
12954 $as_echo "#define HAVE_GLBITMAP 1" >>confdefs.h
12956 GLFPS_OBJS="fps-gl.o glxfonts.o"
12957 GLFONT_OBJS="texfont.o"
12961 ###############################################################################
12963 # Check for -lgdk_pixbuf.
12964 # These tests are for gdk_pixbuf usage of the hacks,
12965 # not xscreensaver-demo (thus we have to test again to get
12966 # the libraries right: don't want to pull in all of GTK
12969 ###############################################################################
12972 with_gdk_pixbuf_req=unspecified
12974 # Check whether --with-pixbuf was given.
12975 if test "${with_pixbuf+set}" = set; then :
12976 withval=$with_pixbuf; with_gdk_pixbuf="$withval"; with_gdk_pixbuf_req="$withval"
12978 with_gdk_pixbuf=yes
12982 # if --with-pixbuf=/directory/ was specified, remember that directory so that
12983 # we can also look for the `gdk-pixbuf-config' program in that directory.
12984 case "$with_gdk_pixbuf" in
12986 gdk_pixbuf_dir="$with_gdk_pixbuf"
12994 case "$with_gdk_pixbuf" in
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDK_PIXBUF headers" >&5
13000 $as_echo_n "checking for GDK_PIXBUF headers... " >&6; }
13001 d=$with_gdk_pixbuf/include
13002 if test -d $d; then
13003 X_CFLAGS="-I$d $X_CFLAGS"
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13005 $as_echo "$d" >&6; }
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13008 $as_echo "not found ($d: no such directory)" >&6; }
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDK_PIXBUF libs" >&5
13012 $as_echo_n "checking for GDK_PIXBUF libs... " >&6; }
13013 d=$with_gdk_pixbuf/lib
13014 if test -d $d; then
13015 X_LIBS="-L$d $X_LIBS"
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13017 $as_echo "$d" >&6; }
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13020 $as_echo "not found ($d: no such directory)" >&6; }
13023 # replace the directory string with "yes".
13024 with_gdk_pixbuf_req="yes"
13025 with_gdk_pixbuf=$with_gdk_pixbuf_req
13030 echo "error: argument to --with-pixbuf must be \"yes\", \"no\", or a directory."
13031 echo " If it is a directory, then \`DIR/include' will be added to"
13032 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13038 if test "$with_gdk_pixbuf" != yes -a "$with_gdk_pixbuf" != no ; then
13039 echo "error: must be yes or no: --with-pixbuf=$with_gdk_pixbuf"
13043 if test "$with_gdk_pixbuf" = yes; then
13049 pkg_check_version gdk-pixbuf-2.0 2.0.0
13050 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
13051 have_gdk_pixbuf="$ok"
13053 if test "$have_gdk_pixbuf" = yes; then
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf includes" >&5
13055 $as_echo_n "checking for gdk-pixbuf includes... " >&6; }
13056 if ${ac_cv_gdk_pixbuf_config_cflags+:} false; then :
13057 $as_echo_n "(cached) " >&6
13059 ac_cv_gdk_pixbuf_config_cflags=`$pkg_config --cflags $pkgs`
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
13062 $as_echo "$ac_cv_gdk_pixbuf_config_cflags" >&6; }
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf libs" >&5
13064 $as_echo_n "checking for gdk-pixbuf libs... " >&6; }
13065 if ${ac_cv_gdk_pixbuf_config_libs+:} false; then :
13066 $as_echo_n "(cached) " >&6
13068 ac_cv_gdk_pixbuf_config_libs=`$pkg_config --libs $pkgs`
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gdk_pixbuf_config_libs" >&5
13071 $as_echo "$ac_cv_gdk_pixbuf_config_libs" >&6; }
13074 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
13075 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
13078 if test "$have_gdk_pixbuf" = yes; then
13080 # we appear to have pixbuf; check for headers/libs to be sure.
13082 ac_save_gdk_pixbuf_CPPFLAGS="$CPPFLAGS"
13083 CPPFLAGS="$CPPFLAGS $ac_gdk_pixbuf_config_cflags"
13087 # check for header A...
13089 ac_save_CPPFLAGS="$CPPFLAGS"
13090 if test \! -z "$includedir" ; then
13091 CPPFLAGS="$CPPFLAGS -I$includedir"
13093 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13094 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13095 ac_fn_c_check_header_mongrel "$LINENO" "gdk-pixbuf/gdk-pixbuf.h" "ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" "$ac_includes_default"
13096 if test "x$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" = xyes; then :
13097 have_gdk_pixbuf=yes
13101 CPPFLAGS="$ac_save_CPPFLAGS"
13103 # if that worked, check for header B...
13104 if test "$have_gdk_pixbuf" = yes; then
13106 gdk_pixbuf_halfassed=yes
13108 ac_save_CPPFLAGS="$CPPFLAGS"
13109 if test \! -z "$includedir" ; then
13110 CPPFLAGS="$CPPFLAGS -I$includedir"
13112 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13113 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13114 ac_fn_c_check_header_mongrel "$LINENO" "gdk-pixbuf/gdk-pixbuf-xlib.h" "ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" "$ac_includes_default"
13115 if test "x$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" = xyes; then :
13116 have_gdk_pixbuf=yes
13117 gdk_pixbuf_halfassed=no
13121 CPPFLAGS="$ac_save_CPPFLAGS"
13123 # yay, it has a new name in Gtk 2.x...
13124 if test "$have_gdk_pixbuf" = no; then
13126 gdk_pixbuf_halfassed=yes
13128 ac_save_CPPFLAGS="$CPPFLAGS"
13129 if test \! -z "$includedir" ; then
13130 CPPFLAGS="$CPPFLAGS -I$includedir"
13132 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13133 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13134 ac_fn_c_check_header_mongrel "$LINENO" "gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" "ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" "$ac_includes_default"
13135 if test "x$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" = xyes; then :
13136 have_gdk_pixbuf=yes
13137 gdk_pixbuf_halfassed=no
13141 CPPFLAGS="$ac_save_CPPFLAGS"
13144 CPPFLAGS="$ac_save_gdk_pixbuf_CPPFLAGS"
13147 if test "$have_gdk_pixbuf" = yes; then
13148 # we have the headers, now check for the libraries
13150 gdk_pixbuf_halfassed=yes
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for gdk_pixbuf usability..." >&5
13153 $as_echo "checking for gdk_pixbuf usability..." >&6; }
13157 ac_save_CPPFLAGS="$CPPFLAGS"
13158 ac_save_LDFLAGS="$LDFLAGS"
13159 # ac_save_LIBS="$LIBS"
13161 if test \! -z "$includedir" ; then
13162 CPPFLAGS="$CPPFLAGS -I$includedir"
13164 # note: $X_CFLAGS includes $x_includes
13165 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13167 if test \! -z "$libdir" ; then
13168 LDFLAGS="$LDFLAGS -L$libdir"
13170 # note: $X_LIBS includes $x_libraries
13171 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13173 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13174 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk_pixbuf_new_from_file in -lc" >&5
13176 $as_echo_n "checking for gdk_pixbuf_new_from_file in -lc... " >&6; }
13177 if ${ac_cv_lib_c_gdk_pixbuf_new_from_file+:} false; then :
13178 $as_echo_n "(cached) " >&6
13180 ac_check_lib_save_LIBS=$LIBS
13181 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
13182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13183 /* end confdefs.h. */
13185 /* Override any GCC internal prototype to avoid an error.
13186 Use char because int might match the return type of a GCC
13187 builtin and then its argument prototype would still apply. */
13191 char gdk_pixbuf_new_from_file ();
13195 return gdk_pixbuf_new_from_file ();
13200 if ac_fn_c_try_link "$LINENO"; then :
13201 ac_cv_lib_c_gdk_pixbuf_new_from_file=yes
13203 ac_cv_lib_c_gdk_pixbuf_new_from_file=no
13205 rm -f core conftest.err conftest.$ac_objext \
13206 conftest$ac_exeext conftest.$ac_ext
13207 LIBS=$ac_check_lib_save_LIBS
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gdk_pixbuf_new_from_file" >&5
13210 $as_echo "$ac_cv_lib_c_gdk_pixbuf_new_from_file" >&6; }
13211 if test "x$ac_cv_lib_c_gdk_pixbuf_new_from_file" = xyes; then :
13212 have_gdk_pixbuf=yes
13215 CPPFLAGS="$ac_save_CPPFLAGS"
13216 LDFLAGS="$ac_save_LDFLAGS"
13217 # LIBS="$ac_save_LIBS"
13220 if test "$have_gdk_pixbuf" = yes; then
13223 ac_save_CPPFLAGS="$CPPFLAGS"
13224 ac_save_LDFLAGS="$LDFLAGS"
13225 # ac_save_LIBS="$LIBS"
13227 if test \! -z "$includedir" ; then
13228 CPPFLAGS="$CPPFLAGS -I$includedir"
13230 # note: $X_CFLAGS includes $x_includes
13231 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13233 if test \! -z "$libdir" ; then
13234 LDFLAGS="$LDFLAGS -L$libdir"
13236 # note: $X_LIBS includes $x_libraries
13237 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13239 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13240 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk_pixbuf_xlib_init in -lc" >&5
13242 $as_echo_n "checking for gdk_pixbuf_xlib_init in -lc... " >&6; }
13243 if ${ac_cv_lib_c_gdk_pixbuf_xlib_init+:} false; then :
13244 $as_echo_n "(cached) " >&6
13246 ac_check_lib_save_LIBS=$LIBS
13247 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
13248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13249 /* end confdefs.h. */
13251 /* Override any GCC internal prototype to avoid an error.
13252 Use char because int might match the return type of a GCC
13253 builtin and then its argument prototype would still apply. */
13257 char gdk_pixbuf_xlib_init ();
13261 return gdk_pixbuf_xlib_init ();
13266 if ac_fn_c_try_link "$LINENO"; then :
13267 ac_cv_lib_c_gdk_pixbuf_xlib_init=yes
13269 ac_cv_lib_c_gdk_pixbuf_xlib_init=no
13271 rm -f core conftest.err conftest.$ac_objext \
13272 conftest$ac_exeext conftest.$ac_ext
13273 LIBS=$ac_check_lib_save_LIBS
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gdk_pixbuf_xlib_init" >&5
13276 $as_echo "$ac_cv_lib_c_gdk_pixbuf_xlib_init" >&6; }
13277 if test "x$ac_cv_lib_c_gdk_pixbuf_xlib_init" = xyes; then :
13278 have_gdk_pixbuf=yes
13279 gdk_pixbuf_halfassed=no
13282 CPPFLAGS="$ac_save_CPPFLAGS"
13283 LDFLAGS="$ac_save_LDFLAGS"
13284 # LIBS="$ac_save_LIBS"
13289 if test "$have_gdk_pixbuf" = yes; then
13290 INCLUDES="$INCLUDES $ac_gdk_pixbuf_config_cflags"
13291 XPM_LIBS="$ac_gdk_pixbuf_config_libs"
13292 $as_echo "#define HAVE_GDK_PIXBUF 1" >>confdefs.h
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for gdk_pixbuf usability... no" >&5
13296 $as_echo "checking for gdk_pixbuf usability... no" >&6; }
13299 if test "$have_gdk_pixbuf" = yes; then
13301 ac_save_CPPFLAGS="$CPPFLAGS"
13302 ac_save_LDFLAGS="$LDFLAGS"
13303 # ac_save_LIBS="$LIBS"
13305 if test \! -z "$includedir" ; then
13306 CPPFLAGS="$CPPFLAGS -I$includedir"
13308 # note: $X_CFLAGS includes $x_includes
13309 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13311 if test \! -z "$libdir" ; then
13312 LDFLAGS="$LDFLAGS -L$libdir"
13314 # note: $X_LIBS includes $x_libraries
13315 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13317 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13318 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk_pixbuf_apply_embedded_orientation in -lc" >&5
13320 $as_echo_n "checking for gdk_pixbuf_apply_embedded_orientation in -lc... " >&6; }
13321 if ${ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation+:} false; then :
13322 $as_echo_n "(cached) " >&6
13324 ac_check_lib_save_LIBS=$LIBS
13325 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
13326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13327 /* end confdefs.h. */
13329 /* Override any GCC internal prototype to avoid an error.
13330 Use char because int might match the return type of a GCC
13331 builtin and then its argument prototype would still apply. */
13335 char gdk_pixbuf_apply_embedded_orientation ();
13339 return gdk_pixbuf_apply_embedded_orientation ();
13344 if ac_fn_c_try_link "$LINENO"; then :
13345 ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation=yes
13347 ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation=no
13349 rm -f core conftest.err conftest.$ac_objext \
13350 conftest$ac_exeext conftest.$ac_ext
13351 LIBS=$ac_check_lib_save_LIBS
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation" >&5
13354 $as_echo "$ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation" >&6; }
13355 if test "x$ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation" = xyes; then :
13356 $as_echo "#define HAVE_GDK_PIXBUF_APPLY_EMBEDDED_ORIENTATION 1" >>confdefs.h
13360 CPPFLAGS="$ac_save_CPPFLAGS"
13361 LDFLAGS="$ac_save_LDFLAGS"
13362 # LIBS="$ac_save_LIBS"
13368 ###############################################################################
13372 ###############################################################################
13375 with_xpm_req=unspecified
13377 # Check whether --with-xpm was given.
13378 if test "${with_xpm+set}" = set; then :
13379 withval=$with_xpm; with_xpm="$withval"; with_xpm_req="$withval"
13386 case "$with_xpm" in
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPM headers" >&5
13392 $as_echo_n "checking for XPM headers... " >&6; }
13393 d=$with_xpm/include
13394 if test -d $d; then
13395 X_CFLAGS="-I$d $X_CFLAGS"
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13397 $as_echo "$d" >&6; }
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13400 $as_echo "not found ($d: no such directory)" >&6; }
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPM libs" >&5
13404 $as_echo_n "checking for XPM libs... " >&6; }
13406 if test -d $d; then
13407 X_LIBS="-L$d $X_LIBS"
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13409 $as_echo "$d" >&6; }
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13412 $as_echo "not found ($d: no such directory)" >&6; }
13415 # replace the directory string with "yes".
13417 with_xpm=$with_xpm_req
13422 echo "error: argument to --with-xpm must be \"yes\", \"no\", or a directory."
13423 echo " If it is a directory, then \`DIR/include' will be added to"
13424 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13430 if test "$with_xpm" = yes; then
13432 ac_save_CPPFLAGS="$CPPFLAGS"
13433 if test \! -z "$includedir" ; then
13434 CPPFLAGS="$CPPFLAGS -I$includedir"
13436 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13437 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13438 ac_fn_c_check_header_compile "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "#include <X11/Xlib.h>
13440 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
13442 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13444 XPM_LIBS="-lXpm $XPM_LIBS"
13448 CPPFLAGS="$ac_save_CPPFLAGS"
13449 elif test "$with_xpm" != no; then
13450 echo "error: must be yes or no: --with-xpm=$with_xpm"
13454 # See comment near $motif_requires_xpm, above.
13455 # Need to do this here, after both Motif and XPM have been checked for.
13457 if test "$have_motif" = yes -a "$have_xpm" = yes ; then
13458 if test "$motif_requires_xpm" = yes ; then
13459 MOTIF_LIBS="$MOTIF_LIBS $XPM_LIBS"
13463 if test "$XPM_LIBS" = "" ; then
13464 XPM_LIBS=$(MINIXPM)
13468 ###############################################################################
13472 ###############################################################################
13475 with_jpeg_req=unspecified
13478 # Check whether --with-jpeg was given.
13479 if test "${with_jpeg+set}" = set; then :
13480 withval=$with_jpeg; with_jpeg="$withval"; with_jpeg_req="$withval"
13487 case "$with_jpeg" in
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG headers" >&5
13493 $as_echo_n "checking for JPEG headers... " >&6; }
13494 d=$with_jpeg/include
13495 if test -d $d; then
13496 X_CFLAGS="-I$d $X_CFLAGS"
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13498 $as_echo "$d" >&6; }
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13501 $as_echo "not found ($d: no such directory)" >&6; }
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG libs" >&5
13505 $as_echo_n "checking for JPEG libs... " >&6; }
13507 if test -d $d; then
13508 X_LIBS="-L$d $X_LIBS"
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13510 $as_echo "$d" >&6; }
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13513 $as_echo "not found ($d: no such directory)" >&6; }
13516 # replace the directory string with "yes".
13517 with_jpeg_req="yes"
13518 with_jpeg=$with_jpeg_req
13523 echo "error: argument to --with-jpeg must be \"yes\", \"no\", or a directory."
13524 echo " If it is a directory, then \`DIR/include' will be added to"
13525 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13531 if test "$with_jpeg" != yes -a "$with_jpeg" != no ; then
13532 echo "error: must be yes or no: --with-jpeg=$with_jpeg"
13536 if test "$with_jpeg" = yes; then
13540 ac_save_CPPFLAGS="$CPPFLAGS"
13541 if test \! -z "$includedir" ; then
13542 CPPFLAGS="$CPPFLAGS -I$includedir"
13544 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13545 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13546 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
13547 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
13552 CPPFLAGS="$ac_save_CPPFLAGS"
13554 if test "$have_jpeg" = yes; then
13555 # we have the header, now check for the library
13559 ac_save_CPPFLAGS="$CPPFLAGS"
13560 ac_save_LDFLAGS="$LDFLAGS"
13561 # ac_save_LIBS="$LIBS"
13563 if test \! -z "$includedir" ; then
13564 CPPFLAGS="$CPPFLAGS -I$includedir"
13566 # note: $X_CFLAGS includes $x_includes
13567 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13569 if test \! -z "$libdir" ; then
13570 LDFLAGS="$LDFLAGS -L$libdir"
13572 # note: $X_LIBS includes $x_libraries
13573 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13575 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13576 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_start_compress in -ljpeg" >&5
13578 $as_echo_n "checking for jpeg_start_compress in -ljpeg... " >&6; }
13579 if ${ac_cv_lib_jpeg_jpeg_start_compress+:} false; then :
13580 $as_echo_n "(cached) " >&6
13582 ac_check_lib_save_LIBS=$LIBS
13583 LIBS="-ljpeg $LIBS"
13584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13585 /* end confdefs.h. */
13587 /* Override any GCC internal prototype to avoid an error.
13588 Use char because int might match the return type of a GCC
13589 builtin and then its argument prototype would still apply. */
13593 char jpeg_start_compress ();
13597 return jpeg_start_compress ();
13602 if ac_fn_c_try_link "$LINENO"; then :
13603 ac_cv_lib_jpeg_jpeg_start_compress=yes
13605 ac_cv_lib_jpeg_jpeg_start_compress=no
13607 rm -f core conftest.err conftest.$ac_objext \
13608 conftest$ac_exeext conftest.$ac_ext
13609 LIBS=$ac_check_lib_save_LIBS
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5
13612 $as_echo "$ac_cv_lib_jpeg_jpeg_start_compress" >&6; }
13613 if test "x$ac_cv_lib_jpeg_jpeg_start_compress" = xyes; then :
13617 $as_echo "#define HAVE_JPEGLIB 1" >>confdefs.h
13621 CPPFLAGS="$ac_save_CPPFLAGS"
13622 LDFLAGS="$ac_save_LDFLAGS"
13623 # LIBS="$ac_save_LIBS"
13629 ###############################################################################
13631 # Check for pty support: this allows 'phosphor' and 'apple2'
13632 # to run curses-based programs, or be used as terminal windows.
13634 ###############################################################################
13637 for ac_header in pty.h util.h
13639 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13640 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13641 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13642 cat >>confdefs.h <<_ACEOF
13643 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13651 ac_save_CPPFLAGS="$CPPFLAGS"
13652 ac_save_LDFLAGS="$LDFLAGS"
13653 # ac_save_LIBS="$LIBS"
13655 if test \! -z "$includedir" ; then
13656 CPPFLAGS="$CPPFLAGS -I$includedir"
13658 # note: $X_CFLAGS includes $x_includes
13659 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13661 if test \! -z "$libdir" ; then
13662 LDFLAGS="$LDFLAGS -L$libdir"
13664 # note: $X_LIBS includes $x_libraries
13665 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13667 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13668 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
13670 $as_echo_n "checking for forkpty in -lutil... " >&6; }
13671 if ${ac_cv_lib_util_forkpty+:} false; then :
13672 $as_echo_n "(cached) " >&6
13674 ac_check_lib_save_LIBS=$LIBS
13675 LIBS="-lutil $LIBS"
13676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13677 /* end confdefs.h. */
13679 /* Override any GCC internal prototype to avoid an error.
13680 Use char because int might match the return type of a GCC
13681 builtin and then its argument prototype would still apply. */
13694 if ac_fn_c_try_link "$LINENO"; then :
13695 ac_cv_lib_util_forkpty=yes
13697 ac_cv_lib_util_forkpty=no
13699 rm -f core conftest.err conftest.$ac_objext \
13700 conftest$ac_exeext conftest.$ac_ext
13701 LIBS=$ac_check_lib_save_LIBS
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
13704 $as_echo "$ac_cv_lib_util_forkpty" >&6; }
13705 if test "x$ac_cv_lib_util_forkpty" = xyes; then :
13707 ac_have_forkpty=yes
13708 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
13712 CPPFLAGS="$ac_save_CPPFLAGS"
13713 LDFLAGS="$ac_save_LDFLAGS"
13714 # LIBS="$ac_save_LIBS"
13717 if test "$ac_have_forkpty" != yes ; then
13718 # we don't need (or have) -lutil on MacOS 10.4.2...
13720 ac_save_CPPFLAGS="$CPPFLAGS"
13721 ac_save_LDFLAGS="$LDFLAGS"
13722 # ac_save_LIBS="$LIBS"
13724 if test \! -z "$includedir" ; then
13725 CPPFLAGS="$CPPFLAGS -I$includedir"
13727 # note: $X_CFLAGS includes $x_includes
13728 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13730 if test \! -z "$libdir" ; then
13731 LDFLAGS="$LDFLAGS -L$libdir"
13733 # note: $X_LIBS includes $x_libraries
13734 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13736 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13737 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lc" >&5
13739 $as_echo_n "checking for forkpty in -lc... " >&6; }
13740 if ${ac_cv_lib_c_forkpty+:} false; then :
13741 $as_echo_n "(cached) " >&6
13743 ac_check_lib_save_LIBS=$LIBS
13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13746 /* end confdefs.h. */
13748 /* Override any GCC internal prototype to avoid an error.
13749 Use char because int might match the return type of a GCC
13750 builtin and then its argument prototype would still apply. */
13763 if ac_fn_c_try_link "$LINENO"; then :
13764 ac_cv_lib_c_forkpty=yes
13766 ac_cv_lib_c_forkpty=no
13768 rm -f core conftest.err conftest.$ac_objext \
13769 conftest$ac_exeext conftest.$ac_ext
13770 LIBS=$ac_check_lib_save_LIBS
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_forkpty" >&5
13773 $as_echo "$ac_cv_lib_c_forkpty" >&6; }
13774 if test "x$ac_cv_lib_c_forkpty" = xyes; then :
13776 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
13780 CPPFLAGS="$ac_save_CPPFLAGS"
13781 LDFLAGS="$ac_save_LDFLAGS"
13782 # LIBS="$ac_save_LIBS"
13786 ###############################################################################
13788 # Check for the XSHM server extension.
13790 ###############################################################################
13793 with_xshm_req=unspecified
13795 # Check whether --with-xshm-ext was given.
13796 if test "${with_xshm_ext+set}" = set; then :
13797 withval=$with_xshm_ext; with_xshm="$withval"; with_xshm_req="$withval"
13804 case "$with_xshm" in
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSHM headers" >&5
13810 $as_echo_n "checking for XSHM headers... " >&6; }
13811 d=$with_xshm/include
13812 if test -d $d; then
13813 X_CFLAGS="-I$d $X_CFLAGS"
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13815 $as_echo "$d" >&6; }
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13818 $as_echo "not found ($d: no such directory)" >&6; }
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSHM libs" >&5
13822 $as_echo_n "checking for XSHM libs... " >&6; }
13824 if test -d $d; then
13825 X_LIBS="-L$d $X_LIBS"
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13827 $as_echo "$d" >&6; }
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13830 $as_echo "not found ($d: no such directory)" >&6; }
13833 # replace the directory string with "yes".
13834 with_xshm_req="yes"
13835 with_xshm=$with_xshm_req
13840 echo "error: argument to --with-xshm-ext must be \"yes\", \"no\", or a directory."
13841 echo " If it is a directory, then \`DIR/include' will be added to"
13842 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13848 if test "$with_xshm" = yes; then
13850 # first check for Xshm.h.
13852 ac_save_CPPFLAGS="$CPPFLAGS"
13853 if test \! -z "$includedir" ; then
13854 CPPFLAGS="$CPPFLAGS -I$includedir"
13856 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13857 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13858 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XShm.h" "ac_cv_header_X11_extensions_XShm_h" "#include <X11/Xlib.h>
13860 if test "x$ac_cv_header_X11_extensions_XShm_h" = xyes; then :
13865 CPPFLAGS="$ac_save_CPPFLAGS"
13867 # if that succeeded, then check for sys/ipc.h.
13868 if test "$have_xshm" = yes; then
13871 ac_save_CPPFLAGS="$CPPFLAGS"
13872 if test \! -z "$includedir" ; then
13873 CPPFLAGS="$CPPFLAGS -I$includedir"
13875 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13876 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13877 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
13878 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
13883 CPPFLAGS="$ac_save_CPPFLAGS"
13886 # if that succeeded, then check for sys/shm.h.
13887 if test "$have_xshm" = yes; then
13890 ac_save_CPPFLAGS="$CPPFLAGS"
13891 if test \! -z "$includedir" ; then
13892 CPPFLAGS="$CPPFLAGS -I$includedir"
13894 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13895 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13896 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
13897 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
13902 CPPFLAGS="$ac_save_CPPFLAGS"
13905 # AIX is pathological, as usual: apparently it's normal for the Xshm headers
13906 # to exist, but the library code to not exist. And even better, the library
13907 # code is in its own library: libXextSam.a. So, if we're on AIX, and that
13908 # lib doesn't exist, give up. (This lib gets added to X_EXTRA_LIBS, and
13909 # that's not quite right, but close enough.)
13913 if `uname -v` -eq 3 ; then
13916 ac_save_CPPFLAGS="$CPPFLAGS"
13917 ac_save_LDFLAGS="$LDFLAGS"
13918 # ac_save_LIBS="$LIBS"
13920 if test \! -z "$includedir" ; then
13921 CPPFLAGS="$CPPFLAGS -I$includedir"
13923 # note: $X_CFLAGS includes $x_includes
13924 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13926 if test \! -z "$libdir" ; then
13927 LDFLAGS="$LDFLAGS -L$libdir"
13929 # note: $X_LIBS includes $x_libraries
13930 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13932 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13933 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXextSam" >&5
13935 $as_echo_n "checking for XShmQueryExtension in -lXextSam... " >&6; }
13936 if ${ac_cv_lib_XextSam_XShmQueryExtension+:} false; then :
13937 $as_echo_n "(cached) " >&6
13939 ac_check_lib_save_LIBS=$LIBS
13940 LIBS="-lXextSam -lX11 -lXext -lm $LIBS"
13941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h. */
13944 /* Override any GCC internal prototype to avoid an error.
13945 Use char because int might match the return type of a GCC
13946 builtin and then its argument prototype would still apply. */
13950 char XShmQueryExtension ();
13954 return XShmQueryExtension ();
13959 if ac_fn_c_try_link "$LINENO"; then :
13960 ac_cv_lib_XextSam_XShmQueryExtension=yes
13962 ac_cv_lib_XextSam_XShmQueryExtension=no
13964 rm -f core conftest.err conftest.$ac_objext \
13965 conftest$ac_exeext conftest.$ac_ext
13966 LIBS=$ac_check_lib_save_LIBS
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XextSam_XShmQueryExtension" >&5
13969 $as_echo "$ac_cv_lib_XextSam_XShmQueryExtension" >&6; }
13970 if test "x$ac_cv_lib_XextSam_XShmQueryExtension" = xyes; then :
13971 have_xshm=yes; X_EXTRA_LIBS="$X_EXTRA_LIBS -lXextSam"
13976 CPPFLAGS="$ac_save_CPPFLAGS"
13977 LDFLAGS="$ac_save_LDFLAGS"
13978 # LIBS="$ac_save_LIBS"
13984 # if that succeeded, then we've really got it.
13985 if test "$have_xshm" = yes; then
13986 $as_echo "#define HAVE_XSHM_EXTENSION 1" >>confdefs.h
13990 elif test "$with_xshm" != no; then
13991 echo "error: must be yes or no: --with-xshm-ext=$with_xshm"
13996 ###############################################################################
13998 # Check for the DOUBLE-BUFFER server extension.
14000 ###############################################################################
14003 with_xdbe_req=unspecified
14005 # Check whether --with-xdbe-ext was given.
14006 if test "${with_xdbe_ext+set}" = set; then :
14007 withval=$with_xdbe_ext; with_xdbe="$withval"; with_xdbe_req="$withval"
14014 case "$with_xdbe" in
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOUBLE-BUFFER headers" >&5
14020 $as_echo_n "checking for DOUBLE-BUFFER headers... " >&6; }
14021 d=$with_xdbe/include
14022 if test -d $d; then
14023 X_CFLAGS="-I$d $X_CFLAGS"
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14025 $as_echo "$d" >&6; }
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14028 $as_echo "not found ($d: no such directory)" >&6; }
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOUBLE-BUFFER libs" >&5
14032 $as_echo_n "checking for DOUBLE-BUFFER libs... " >&6; }
14034 if test -d $d; then
14035 X_LIBS="-L$d $X_LIBS"
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14037 $as_echo "$d" >&6; }
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14040 $as_echo "not found ($d: no such directory)" >&6; }
14043 # replace the directory string with "yes".
14044 with_xdbe_req="yes"
14045 with_xdbe=$with_xdbe_req
14050 echo "error: argument to --with-xdbe-ext must be \"yes\", \"no\", or a directory."
14051 echo " If it is a directory, then \`DIR/include' will be added to"
14052 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14058 if test "$with_xdbe" = yes; then
14061 ac_save_CPPFLAGS="$CPPFLAGS"
14062 if test \! -z "$includedir" ; then
14063 CPPFLAGS="$CPPFLAGS -I$includedir"
14065 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14066 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14067 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
14069 if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
14074 CPPFLAGS="$ac_save_CPPFLAGS"
14075 if test "$have_xdbe" = yes; then
14076 $as_echo "#define HAVE_DOUBLE_BUFFER_EXTENSION 1" >>confdefs.h
14080 elif test "$with_xdbe" != no; then
14081 echo "error: must be yes or no: --with-xdbe-ext=$with_xshm"
14086 ###############################################################################
14088 # Check for the SGI XReadDisplay server extension.
14090 # Note: this has to be down here, rather than up with the other server
14091 # extension tests, so that the output of `configure --help' is in the
14092 # right order. Arrgh!
14094 ###############################################################################
14096 have_readdisplay=no
14097 with_readdisplay_req=unspecified
14099 # Check whether --with-readdisplay was given.
14100 if test "${with_readdisplay+set}" = set; then :
14101 withval=$with_readdisplay; with_readdisplay="$withval"; with_readdisplay_req="$withval"
14103 with_readdisplay=yes
14108 case "$with_readdisplay" in
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XReadDisplay headers" >&5
14114 $as_echo_n "checking for XReadDisplay headers... " >&6; }
14115 d=$with_readdisplay/include
14116 if test -d $d; then
14117 X_CFLAGS="-I$d $X_CFLAGS"
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14119 $as_echo "$d" >&6; }
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14122 $as_echo "not found ($d: no such directory)" >&6; }
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XReadDisplay libs" >&5
14126 $as_echo_n "checking for XReadDisplay libs... " >&6; }
14127 d=$with_readdisplay/lib
14128 if test -d $d; then
14129 X_LIBS="-L$d $X_LIBS"
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14131 $as_echo "$d" >&6; }
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14134 $as_echo "not found ($d: no such directory)" >&6; }
14137 # replace the directory string with "yes".
14138 with_readdisplay_req="yes"
14139 with_readdisplay=$with_readdisplay_req
14144 echo "error: argument to --with-readdisplay must be \"yes\", \"no\", or a directory."
14145 echo " If it is a directory, then \`DIR/include' will be added to"
14146 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14152 if test "$with_readdisplay" = yes; then
14154 ac_save_CPPFLAGS="$CPPFLAGS"
14155 if test \! -z "$includedir" ; then
14156 CPPFLAGS="$CPPFLAGS -I$includedir"
14158 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14159 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14160 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/readdisplay.h" "ac_cv_header_X11_extensions_readdisplay_h" "#include <X11/Xlib.h>
14162 if test "x$ac_cv_header_X11_extensions_readdisplay_h" = xyes; then :
14163 $as_echo "#define HAVE_READ_DISPLAY_EXTENSION 1" >>confdefs.h
14168 CPPFLAGS="$ac_save_CPPFLAGS"
14169 elif test "$with_readdisplay" != no; then
14170 echo "error: must be yes or no: --with-readdisplay=$with_readdisplay"
14175 ###############################################################################
14177 # Check for a directory full of images to use as the default value
14178 # of the "imageDirectory" preference.
14180 ###############################################################################
14183 with_imagedir_req=unspecified
14186 # Check whether --with-image-directory was given.
14187 if test "${with_image_directory+set}" = set; then :
14188 withval=$with_image_directory; with_imagedir="$withval"; with_imagedir_req="$withval"
14193 # no HANDLE_X_PATH_ARG for this one
14195 case "$with_imagedir" in
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for image directory $with_imagedir" >&5
14199 $as_echo_n "checking for image directory $with_imagedir... " >&6; }
14200 if test -d "$with_imagedir" ; then
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14202 $as_echo "yes" >&6; }
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14205 $as_echo "no" >&6; }
14212 #### Could use some more defaults here...
14214 "/usr/share/backgrounds/images/" \
14215 "/usr/share/wallpapers/" \
14216 "/Library/Desktop Pictures/" \
14218 if test -z "$with_imagedir"; then
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for image directory $dd" >&5
14220 $as_echo_n "checking for image directory $dd... " >&6; }
14221 if test -d "$dd" ; then
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14223 $as_echo "yes" >&6; }
14224 with_imagedir="$dd"
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14227 $as_echo "no" >&6; }
14238 echo "error: must be an absolute path: --with-image-directory=$with_imagedir_req"
14242 ac_cv_imagedir="$with_imagedir"
14244 DEFAULT_IMAGES_P='True'
14245 DEFAULT_IMAGE_DIRECTORY="$ac_cv_imagedir"
14247 if test -z "$DEFAULT_IMAGE_DIRECTORY" ; then
14248 DEFAULT_IMAGES_P='False'
14252 ###############################################################################
14254 # Pick a text file to use as the default of the "textFile" preference.
14255 # Any old file will do, but preferably one that will make interesting
14256 # shapes when displayed by "starwars" and "fontglide".
14258 ###############################################################################
14261 with_textfile_req=unspecified
14264 # Check whether --with-text-file was given.
14265 if test "${with_text_file+set}" = set; then :
14266 withval=$with_text_file; with_textfile="$withval"; with_textfile_req="$withval"
14271 # no HANDLE_X_PATH_ARG for this one
14273 case "$with_textfile" in
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for text file $with_textfile" >&5
14277 $as_echo_n "checking for text file $with_textfile... " >&6; }
14278 if test -f "$with_textfile" ; then
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14280 $as_echo "yes" >&6; }
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14283 $as_echo "no" >&6; }
14290 #### Could use some more defaults here...
14292 "/usr/X11R6/lib/X11/doc/README" \
14293 "/usr/share/doc/xserver-common/copyright" \
14294 "/usr/share/doc/xserver-xorg-core/copyright" \
14295 "/usr/X11R6/README" \
14296 "/usr/share/doc/libX11*/COPYING" \
14297 "/usr/X11/share/X11/doc/README*" \
14298 "/usr/share/doc/debian/debian-manifesto" \
14300 if test -z "$with_textfile"; then
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for text file $f" >&5
14302 $as_echo_n "checking for text file $f... " >&6; }
14303 f=`/bin/ls $f 2>&- | head -1`
14304 if test -f "$f" ; then
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14306 $as_echo "yes" >&6; }
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14310 $as_echo "no" >&6; }
14321 echo "error: must be an absolute path: --with-text-file=$with_textfile_req"
14325 ac_cv_textfile="$with_textfile"
14327 DEFAULT_TEXT_FILE="$ac_cv_textfile"
14330 ###############################################################################
14332 # Check the browser to see help URL
14334 ###############################################################################
14337 with_browser_req=unspecified
14340 # Check whether --with-browser was given.
14341 if test "${with_browser+set}" = set; then :
14342 withval=$with_browser; with_browser="$withval"; with_browser_req="$withval"
14347 # no HANDLE_X_PATH_ARG for this one
14349 case "$with_browser" in
14353 WITH_BROWSER=$with_browser
14354 gnome_open_program=$with_browser
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for browser $with_browser" >&5
14356 $as_echo_n "checking for browser $with_browser... " >&6; }
14357 with_browser_fullpath=`which $with_browser 2>/dev/null`
14358 case $with_browser_fullpath in
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14361 $as_echo "yes" >&6; }
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14366 $as_echo "no" >&6; }
14367 # Only warning: we don't want to install all packages for the
14368 # dependency of the browser in building stage...
14369 echo "WARNING: browser not found: --with-browser=$with_browser"
14374 ac_cv_browser="$with_browser"
14376 ###############################################################################
14378 # Check whether it's ok to install some hacks as setuid (e.g., "sonar")
14379 # This should be safe, but let's give people the option.
14381 ###############################################################################
14383 setuid_hacks_default=no
14384 setuid_hacks="$setuid_hacks_default"
14386 # Check whether --with-setuid-hacks was given.
14387 if test "${with_setuid_hacks+set}" = set; then :
14388 withval=$with_setuid_hacks; setuid_hacks="$withval"
14390 setuid_hacks="$setuid_hacks_default"
14395 case "$setuid_hacks" in
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setuid hacks headers" >&5
14401 $as_echo_n "checking for setuid hacks headers... " >&6; }
14402 d=$setuid_hacks/include
14403 if test -d $d; then
14404 X_CFLAGS="-I$d $X_CFLAGS"
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14406 $as_echo "$d" >&6; }
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14409 $as_echo "not found ($d: no such directory)" >&6; }
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setuid hacks libs" >&5
14413 $as_echo_n "checking for setuid hacks libs... " >&6; }
14414 d=$setuid_hacks/lib
14415 if test -d $d; then
14416 X_LIBS="-L$d $X_LIBS"
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14418 $as_echo "$d" >&6; }
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14421 $as_echo "not found ($d: no such directory)" >&6; }
14424 # replace the directory string with "yes".
14425 setuid_hacks_req="yes"
14426 setuid_hacks=$setuid_hacks_req
14431 echo "error: argument to --with-setuid-hacks must be \"yes\", \"no\", or a directory."
14432 echo " If it is a directory, then \`DIR/include' will be added to"
14433 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14439 if test "$setuid_hacks" = yes; then
14441 elif test "$setuid_hacks" != no; then
14442 echo "error: must be yes or no: --with-setuid-hacks=$setuid_hacks"
14447 ###############################################################################
14449 # Done testing. Now, set up the various -I and -L variables,
14450 # and decide which GUI program to build by default.
14452 ###############################################################################
14459 if test \! -z "$includedir" ; then
14460 INCLUDES="$INCLUDES -I$includedir"
14463 if test \! -z "$libdir" ; then
14464 LDFLAGS="$LDFLAGS -L$libdir"
14468 PREFERRED_DEMO_PROGRAM=''
14470 if test "$have_motif" = yes; then
14471 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Xm
14472 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
14474 if test "$have_gtk" = yes; then
14475 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Gtk
14476 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
14480 if test "$have_kerberos" = yes; then
14481 PASSWD_SRCS="$PASSWD_SRCS \$(KERBEROS_SRCS)"
14482 PASSWD_OBJS="$PASSWD_OBJS \$(KERBEROS_OBJS)"
14484 if test "$have_pam" = yes; then
14485 PASSWD_SRCS="$PASSWD_SRCS \$(PAM_SRCS)"
14486 PASSWD_OBJS="$PASSWD_OBJS \$(PAM_OBJS)"
14487 INSTALL_PAM="install-pam"
14489 if test "$enable_pam_check_account_type" = yes; then
14490 COMMENT_PAM_CHECK_ACCOUNT=""
14492 COMMENT_PAM_CHECK_ACCOUNT="#"
14494 if test "$have_passwd_helper" = yes; then
14495 PASSWD_SRCS="$PASSWD_SRCS \$(PWHELPER_SRCS)"
14496 PASSWD_OBJS="$PASSWD_OBJS \$(PWHELPER_OBJS)"
14498 PASSWD_SRCS="$PASSWD_SRCS \$(PWENT_SRCS)"
14499 PASSWD_OBJS="$PASSWD_OBJS \$(PWENT_OBJS)"
14502 if test "$enable_locking" = yes; then
14503 LOCK_SRCS='$(LOCK_SRCS_1) $(PASSWD_SRCS)'
14504 LOCK_OBJS='$(LOCK_OBJS_1) $(PASSWD_OBJS)'
14506 LOCK_SRCS='$(NOLOCK_SRCS_1)'
14507 LOCK_OBJS='$(NOLOCK_OBJS_1)'
14510 if test "$ac_macosx" = yes; then
14511 EXES_OSX='$(EXES_OSX)'
14512 SCRIPTS_OSX='$(SCRIPTS_OSX)'
14513 MEN_OSX='$(MEN_OSX)'
14521 INSTALL_SETUID='$(INSTALL_PROGRAM) $(SUID_FLAGS)'
14523 if test "$need_setuid" = yes; then
14529 if test "$setuid_hacks" = yes; then
14536 if test "$have_gl" = yes; then
14537 GL_EXES='$(GL_EXES)'
14538 SUID_EXES='$(SUID_EXES)'
14539 RETIRED_GL_EXES='$(RETIRED_GL_EXES)'
14540 GL_UTIL_EXES='$(GL_UTIL_EXES)'
14547 if test "$have_gle" = yes; then
14548 GLE_EXES='$(GLE_EXES)'
14554 if test "$have_jpeg" = yes -a "$have_gdk_pixbuf" = yes; then
14555 JPEG_EXES='$(JPEG_EXES)'
14559 # Another substitution in the XScreenSaver.ad.in file:
14561 if test "$gnome_open_program" != ''; then
14565 elif test "$gnome_url_show_program" != ''; then
14576 # Set PO_DATADIR to something sensible.
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale directory" >&5
14579 $as_echo_n "checking for locale directory... " >&6; }
14580 if test -n "$GTK_DATADIR" ; then
14581 PO_DATADIR="$GTK_DATADIR"
14582 elif test "$have_gtk" = yes; then
14583 PO_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
14584 PO_DATADIR="$PO_DATADIR/share"
14587 if test -z "$PO_DATADIR" ; then
14589 # #### Total fucking kludge --
14590 # Map /build/prefix/usr/X11R6/share/ to /build/prefix/usr/share/
14591 # but of course we need to expand all the nested variables to do that...
14593 dd=`eval eval eval eval eval eval eval eval eval eval eval echo $datadir`
14594 PO_DATADIR=`echo $dd | sed 's@/X11R6/@/@'`
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PO_DATADIR/locale" >&5
14598 $as_echo "$PO_DATADIR/locale" >&6; }
14601 # canonicalize slashes.
14602 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
14604 # gcc 3.0 likes to issue this warning for every file:
14606 # cc1: warning: changing search order for system directory "/usr/local/include"
14607 # cc1: warning: as it has already been specified as a non-system directory
14609 # Yay. We can only avoid that by deleting "-I${prefix}/include" from the list.
14610 # Which *should* be totally redundant, and thus an ok thing to delete?
14612 INCLUDES=`echo "$INCLUDES" | sed 's@ -I${prefix}/include@@g;'`
14615 ###############################################################################
14617 # Perform substitutions and write Makefiles.
14619 ###############################################################################
14689 APPDEFAULTS=$ac_x_app_defaults
14697 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"
14699 cat >confcache <<\_ACEOF
14700 # This file is a shell script that caches the results of configure
14701 # tests run on this system so they can be shared between configure
14702 # scripts and configure runs, see configure's option --config-cache.
14703 # It is not useful on other systems. If it contains results you don't
14704 # want to keep, you may remove or edit it.
14706 # config.status only pays attention to the cache file if you give it
14707 # the --recheck option to rerun configure.
14709 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14710 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14711 # following values.
14715 # The following way of writing the cache mishandles newlines in values,
14716 # but we know of no workaround that is simple, portable, and efficient.
14717 # So, we kill variables containing newlines.
14718 # Ultrix sh set writes to stderr and can't be redirected directly,
14719 # and sets the high bit in the cache file unless we assign to the vars.
14721 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14722 eval ac_val=\$$ac_var
14726 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14727 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14730 _ | IFS | as_nl) ;; #(
14731 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14732 *) { eval $ac_var=; unset $ac_var;} ;;
14738 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14739 *${as_nl}ac_space=\ *)
14740 # `set' does not quote correctly, so add quotes: double-quote
14741 # substitution turns \\\\ into \\, and sed turns \\ into \.
14744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14747 # `set' quotes correctly as required by POSIX, so do not add quotes.
14748 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14757 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14759 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14761 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14762 if test -w "$cache_file"; then
14763 if test "x$cache_file" != "x/dev/null"; then
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14765 $as_echo "$as_me: updating cache $cache_file" >&6;}
14766 if test ! -f "$cache_file" || test -h "$cache_file"; then
14767 cat confcache >"$cache_file"
14769 case $cache_file in #(
14771 mv -f confcache "$cache_file"$$ &&
14772 mv -f "$cache_file"$$ "$cache_file" ;; #(
14774 mv -f confcache "$cache_file" ;;
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14780 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14785 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14786 # Let make expand exec_prefix.
14787 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14789 DEFS=-DHAVE_CONFIG_H
14794 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14795 # 1. Remove the extension, and $U if already installed.
14796 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14797 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14798 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14799 # will be set to the directory where LIBOBJS objects are built.
14800 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14801 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14803 LIBOBJS=$ac_libobjs
14805 LTLIBOBJS=$ac_ltlibobjs
14810 mv -f po/POTFILES po/POTFILES.tmp
14811 sed -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
14812 rm -f po/POTFILES.tmp
14816 : "${CONFIG_STATUS=./config.status}"
14818 ac_clean_files_save=$ac_clean_files
14819 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14821 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14823 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14825 # Generated by $as_me.
14826 # Run this file to recreate the current configuration.
14827 # Compiler output produced by configure, useful for debugging
14828 # configure, is in config.log if it exists.
14831 ac_cs_recheck=false
14834 SHELL=\${CONFIG_SHELL-$SHELL}
14837 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14838 ## -------------------- ##
14839 ## M4sh Initialization. ##
14840 ## -------------------- ##
14842 # Be more Bourne compatible
14843 DUALCASE=1; export DUALCASE # for MKS sh
14844 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14847 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14848 # is contrary to our usage. Disable this feature.
14849 alias -g '${1+"$@"}'='"$@"'
14850 setopt NO_GLOB_SUBST
14852 case `(set -o) 2>/dev/null` in #(
14864 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14865 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14866 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14867 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14868 # Prefer a ksh shell builtin over an external printf program on Solaris,
14869 # but without wasting forks for bash or zsh.
14870 if test -z "$BASH_VERSION$ZSH_VERSION" \
14871 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14872 as_echo='print -r --'
14873 as_echo_n='print -rn --'
14874 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14875 as_echo='printf %s\n'
14876 as_echo_n='printf %s'
14878 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14879 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14880 as_echo_n='/usr/ucb/echo -n'
14882 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14883 as_echo_n_body='eval
14887 expr "X$arg" : "X\\(.*\\)$as_nl";
14888 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14890 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14892 export as_echo_n_body
14893 as_echo_n='sh -c $as_echo_n_body as_echo'
14895 export as_echo_body
14896 as_echo='sh -c $as_echo_body as_echo'
14899 # The user is always right.
14900 if test "${PATH_SEPARATOR+set}" != set; then
14902 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14903 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14910 # We need space, tab and new line, in precisely that order. Quoting is
14911 # there to prevent editors from complaining about space-tab.
14912 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14913 # splitting by setting IFS to empty value.)
14916 # Find who we are. Look in the path if we contain no directory separator.
14919 *[\\/]* ) as_myself=$0 ;;
14920 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14921 for as_dir in $PATH
14924 test -z "$as_dir" && as_dir=.
14925 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14931 # We did not find ourselves, most probably we were run as `sh COMMAND'
14932 # in which case we are not to be found in the path.
14933 if test "x$as_myself" = x; then
14936 if test ! -f "$as_myself"; then
14937 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14941 # Unset variables that we do not need and which cause bugs (e.g. in
14942 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14943 # suppresses any "Segmentation fault" message there. '((' could
14944 # trigger a bug in pdksh 5.2.14.
14945 for as_var in BASH_ENV ENV MAIL MAILPATH
14946 do eval test x\${$as_var+set} = xset \
14947 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14960 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14963 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14964 # ----------------------------------------
14965 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14966 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14967 # script with STATUS, using 1 if that was 0.
14970 as_status=$1; test $as_status -eq 0 && as_status=1
14972 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14973 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14975 $as_echo "$as_me: error: $2" >&2
14976 as_fn_exit $as_status
14980 # as_fn_set_status STATUS
14981 # -----------------------
14982 # Set $? to STATUS, without forking.
14983 as_fn_set_status ()
14986 } # as_fn_set_status
14988 # as_fn_exit STATUS
14989 # -----------------
14990 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14994 as_fn_set_status $1
15000 # Portably unset VAR.
15003 { eval $1=; unset $1;}
15005 as_unset=as_fn_unset
15006 # as_fn_append VAR VALUE
15007 # ----------------------
15008 # Append the text in VALUE to the end of the definition contained in VAR. Take
15009 # advantage of any shell optimizations that allow amortized linear growth over
15010 # repeated appends, instead of the typical quadratic growth present in naive
15012 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15013 eval 'as_fn_append ()
15024 # as_fn_arith ARG...
15025 # ------------------
15026 # Perform arithmetic evaluation on the ARGs, and store the result in the
15027 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15028 # must be portable across $(()) and expr.
15029 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15030 eval 'as_fn_arith ()
15037 as_val=`expr "$@" || test $? -eq 1`
15042 if expr a : '\(a\)' >/dev/null 2>&1 &&
15043 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15049 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15050 as_basename=basename
15055 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15061 as_me=`$as_basename -- "$0" ||
15062 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15063 X"$0" : 'X\(//\)$' \| \
15064 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15066 sed '/^.*\/\([^/][^/]*\)\/*$/{
15080 # Avoid depending upon Character Ranges.
15081 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15082 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15083 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15084 as_cr_digits='0123456789'
15085 as_cr_alnum=$as_cr_Letters$as_cr_digits
15087 ECHO_C= ECHO_N= ECHO_T=
15088 case `echo -n x` in #(((((
15090 case `echo 'xy\c'` in
15091 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15093 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15100 rm -f conf$$ conf$$.exe conf$$.file
15101 if test -d conf$$.dir; then
15102 rm -f conf$$.dir/conf$$.file
15105 mkdir conf$$.dir 2>/dev/null
15107 if (echo >conf$$.file) 2>/dev/null; then
15108 if ln -s conf$$.file conf$$ 2>/dev/null; then
15110 # ... but there are two gotchas:
15111 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15112 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15113 # In both cases, we have to default to `cp -pR'.
15114 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15116 elif ln conf$$.file conf$$ 2>/dev/null; then
15124 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15125 rmdir conf$$.dir 2>/dev/null
15130 # Create "$as_dir" as a directory, including parents if necessary.
15135 -*) as_dir=./$as_dir;;
15137 test -d "$as_dir" || eval $as_mkdir_p || {
15141 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15142 *) as_qdir=$as_dir;;
15144 as_dirs="'$as_qdir' $as_dirs"
15145 as_dir=`$as_dirname -- "$as_dir" ||
15146 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15147 X"$as_dir" : 'X\(//\)[^/]' \| \
15148 X"$as_dir" : 'X\(//\)$' \| \
15149 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15150 $as_echo X"$as_dir" |
15151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15155 /^X\(\/\/\)[^/].*/{
15168 test -d "$as_dir" && break
15170 test -z "$as_dirs" || eval "mkdir $as_dirs"
15171 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15175 if mkdir -p . 2>/dev/null; then
15176 as_mkdir_p='mkdir -p "$as_dir"'
15178 test -d ./-p && rmdir ./-p
15183 # as_fn_executable_p FILE
15184 # -----------------------
15185 # Test if FILE is an executable regular file.
15186 as_fn_executable_p ()
15188 test -f "$1" && test -x "$1"
15189 } # as_fn_executable_p
15190 as_test_x='test -x'
15191 as_executable_p=as_fn_executable_p
15193 # Sed expression to map a string onto a valid CPP name.
15194 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15196 # Sed expression to map a string onto a valid variable name.
15197 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15201 ## ----------------------------------- ##
15202 ## Main body of $CONFIG_STATUS script. ##
15203 ## ----------------------------------- ##
15205 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15208 # Save the log message, to keep $0 and so on meaningful, and to
15209 # report actual input values of CONFIG_FILES etc. instead of their
15210 # values after options handling.
15212 This file was extended by $as_me, which was
15213 generated by GNU Autoconf 2.69. Invocation command line was
15215 CONFIG_FILES = $CONFIG_FILES
15216 CONFIG_HEADERS = $CONFIG_HEADERS
15217 CONFIG_LINKS = $CONFIG_LINKS
15218 CONFIG_COMMANDS = $CONFIG_COMMANDS
15221 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15226 case $ac_config_files in *"
15227 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15230 case $ac_config_headers in *"
15231 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15236 # Files that config.status was made for.
15237 config_files="$ac_config_files"
15238 config_headers="$ac_config_headers"
15239 config_commands="$ac_config_commands"
15243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15245 \`$as_me' instantiates files and other configuration actions
15246 from templates according to the current configuration. Unless the files
15247 and actions are specified as TAGs, all are instantiated by default.
15249 Usage: $0 [OPTION]... [TAG]...
15251 -h, --help print this help, then exit
15252 -V, --version print version number and configuration settings, then exit
15253 --config print configuration, then exit
15254 -q, --quiet, --silent
15255 do not print progress messages
15256 -d, --debug don't remove temporary files
15257 --recheck update $as_me by reconfiguring in the same conditions
15258 --file=FILE[:TEMPLATE]
15259 instantiate the configuration file FILE
15260 --header=FILE[:TEMPLATE]
15261 instantiate the configuration header FILE
15263 Configuration files:
15266 Configuration headers:
15269 Configuration commands:
15272 Report bugs to the package provider."
15275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15276 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15279 configured by $0, generated by GNU Autoconf 2.69,
15280 with options \\"\$ac_cs_config\\"
15282 Copyright (C) 2012 Free Software Foundation, Inc.
15283 This config.status script is free software; the Free Software Foundation
15284 gives unlimited permission to copy, distribute and modify it."
15289 test -n "\$AWK" || AWK=awk
15292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15293 # The default lists apply if the user does not specify any file.
15299 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15300 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15304 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15316 # Handling of the options.
15317 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15319 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15320 $as_echo "$ac_cs_version"; exit ;;
15321 --config | --confi | --conf | --con | --co | --c )
15322 $as_echo "$ac_cs_config"; exit ;;
15323 --debug | --debu | --deb | --de | --d | -d )
15325 --file | --fil | --fi | --f )
15328 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15329 '') as_fn_error $? "missing file argument" ;;
15331 as_fn_append CONFIG_FILES " '$ac_optarg'"
15332 ac_need_defaults=false;;
15333 --header | --heade | --head | --hea )
15336 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15338 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15339 ac_need_defaults=false;;
15341 # Conflict between --help and --header
15342 as_fn_error $? "ambiguous option: \`$1'
15343 Try \`$0 --help' for more information.";;
15344 --help | --hel | -h )
15345 $as_echo "$ac_cs_usage"; exit ;;
15346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15347 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15350 # This is an error.
15351 -*) as_fn_error $? "unrecognized option: \`$1'
15352 Try \`$0 --help' for more information." ;;
15354 *) as_fn_append ac_config_targets " $1"
15355 ac_need_defaults=false ;;
15361 ac_configure_extra_args=
15363 if $ac_cs_silent; then
15365 ac_configure_extra_args="$ac_configure_extra_args --silent"
15369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15370 if \$ac_cs_recheck; then
15371 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15373 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15374 CONFIG_SHELL='$SHELL'
15375 export CONFIG_SHELL
15380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15384 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15385 ## Running $as_me. ##
15391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15395 INTLTOOL_PERL=${INTLTOOL_PERL}
15400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15402 # Handling of arguments.
15403 for ac_config_target in $ac_config_targets
15405 case $ac_config_target in
15406 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15407 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15408 "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
15409 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15410 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
15411 "driver/Makefile") CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;;
15412 "driver/xscreensaver.pam") CONFIG_FILES="$CONFIG_FILES driver/xscreensaver.pam" ;;
15413 "hacks/Makefile") CONFIG_FILES="$CONFIG_FILES hacks/Makefile" ;;
15414 "hacks/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hacks/glx/Makefile" ;;
15415 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15416 "driver/XScreenSaver.ad") CONFIG_FILES="$CONFIG_FILES driver/XScreenSaver.ad" ;;
15418 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15423 # If the user did not use the arguments to specify the items to instantiate,
15424 # then the envvar interface is used. Set only those that are not.
15425 # We use the long form for the default assignment because of an extremely
15426 # bizarre bug on SunOS 4.1.3.
15427 if $ac_need_defaults; then
15428 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15429 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15430 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15433 # Have a temporary directory for convenience. Make it in the build tree
15434 # simply because there is no reason against having it here, and in addition,
15435 # creating and moving files from /tmp can sometimes cause problems.
15436 # Hook for its removal unless debugging.
15437 # Note that there is a small window in which the directory will not be cleaned:
15438 # after its creation but before its name has been assigned to `$tmp'.
15442 trap 'exit_status=$?
15443 : "${ac_tmp:=$tmp}"
15444 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15446 trap 'as_fn_exit 1' 1 2 13 15
15448 # Create a (secure) tmp directory for tmp files.
15451 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15455 tmp=./conf$$-$RANDOM
15456 (umask 077 && mkdir "$tmp")
15457 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15460 # Set up the scripts for CONFIG_FILES section.
15461 # No need to generate them if there are no CONFIG_FILES.
15462 # This happens for instance with `./config.status config.h'.
15463 if test -n "$CONFIG_FILES"; then
15466 ac_cr=`echo X | tr X '\015'`
15467 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15468 # But we know of no other shell where ac_cr would be empty at this
15469 # point, so we can use a bashism as a fallback.
15470 if test "x$ac_cr" = x; then
15471 eval ac_cr=\$\'\\r\'
15473 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15474 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15477 ac_cs_awk_cr=$ac_cr
15480 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15485 echo "cat >conf$$subs.awk <<_ACEOF" &&
15486 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15488 } >conf$$subs.sh ||
15489 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15490 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15492 for ac_last_try in false false false false false :; do
15493 . ./conf$$subs.sh ||
15494 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15496 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15497 if test $ac_delim_n = $ac_delim_num; then
15499 elif $ac_last_try; then
15500 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15502 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15505 rm -f conf$$subs.sh
15507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15508 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15512 s/^/S["/; s/!.*/"]=/
15522 s/\(.\{148\}\)..*/\1/
15524 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15529 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15536 s/\(.\{148\}\)..*/\1/
15538 s/["\\]/\\&/g; s/^/"/; s/$/"/
15542 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15547 ' <conf$$subs.awk | sed '
15552 ' >>$CONFIG_STATUS || ac_write_fail=1
15553 rm -f conf$$subs.awk
15554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15556 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15557 for (key in S) S_is_set[key] = 1
15563 nfields = split(line, field, "@")
15565 len = length(field[1])
15566 for (i = 2; i < nfields; i++) {
15568 keylen = length(key)
15569 if (S_is_set[key]) {
15571 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15572 len += length(value) + length(field[++i])
15583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15584 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15585 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15588 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15589 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15592 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15593 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15594 # trailing colons and then remove the whole line if VPATH becomes empty
15595 # (actually we leave an empty line to preserve line numbers).
15596 if test "x$srcdir" = x.; then
15597 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15616 fi # test -n "$CONFIG_FILES"
15618 # Set up the scripts for CONFIG_HEADERS section.
15619 # No need to generate them if there are no CONFIG_HEADERS.
15620 # This happens for instance with `./config.status Makefile'.
15621 if test -n "$CONFIG_HEADERS"; then
15622 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15626 # Transform confdefs.h into an awk script `defines.awk', embedded as
15627 # here-document in config.status, that substitutes the proper values into
15628 # config.h.in to produce config.h.
15630 # Create a delimiter string that does not exist in confdefs.h, to ease
15631 # handling of long lines.
15633 for ac_last_try in false false :; do
15634 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15635 if test -z "$ac_tt"; then
15637 elif $ac_last_try; then
15638 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15640 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15644 # For the awk script, D is an array of macro values keyed by name,
15645 # likewise P contains macro parameters if any. Preserve backslash
15646 # newline sequences.
15648 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15650 s/.\{148\}/&'"$ac_delim"'/g
15653 s/^[ ]*#[ ]*define[ ][ ]*/ /
15660 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15662 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15666 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15667 D["\1"]=" \3\\\\\\n"\\/p
15669 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15674 s/.\{148\}/&'"$ac_delim"'/g
15679 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15682 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15684 ' <confdefs.h | sed '
15685 s/'"$ac_delim"'/"\\\
15686 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15689 for (key in D) D_is_set[key] = 1
15692 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15694 split(line, arg, " ")
15695 if (arg[1] == "#") {
15699 defundef = substr(arg[1], 2)
15702 split(mac1, mac2, "(") #)
15704 prefix = substr(line, 1, index(line, defundef) - 1)
15705 if (D_is_set[macro]) {
15706 # Preserve the white space surrounding the "#".
15707 print prefix "define", macro P[macro] D[macro]
15710 # Replace #undef with comments. This is necessary, for example,
15711 # in the case of _POSIX_SOURCE, which is predefined and required
15712 # on some systems where configure will not decide to define it.
15713 if (defundef == "undef") {
15714 print "/*", prefix defundef, macro, "*/"
15722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15723 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15724 fi # test -n "$CONFIG_HEADERS"
15727 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15732 :[FHLC]) ac_mode=$ac_tag; continue;;
15734 case $ac_mode$ac_tag in
15736 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15737 :[FH]-) ac_tag=-:-;;
15738 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15755 -) ac_f="$ac_tmp/stdin";;
15756 *) # Look for the file first in the build tree, then in the source tree
15757 # (if the path is not absolute). The absolute path cannot be DOS-style,
15758 # because $ac_f cannot contain `:'.
15762 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15764 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15766 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15767 as_fn_append ac_file_inputs " '$ac_f'"
15770 # Let's still pretend it is `configure' which instantiates (i.e., don't
15771 # use $as_me), people would be surprised to read:
15772 # /* config.h. Generated by config.status. */
15773 configure_input='Generated from '`
15774 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15776 if test x"$ac_file" != x-; then
15777 configure_input="$ac_file. $configure_input"
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15779 $as_echo "$as_me: creating $ac_file" >&6;}
15781 # Neutralize special characters interpreted by sed in replacement strings.
15782 case $configure_input in #(
15783 *\&* | *\|* | *\\* )
15784 ac_sed_conf_input=`$as_echo "$configure_input" |
15785 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15786 *) ac_sed_conf_input=$configure_input;;
15790 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15791 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15796 ac_dir=`$as_dirname -- "$ac_file" ||
15797 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15798 X"$ac_file" : 'X\(//\)[^/]' \| \
15799 X"$ac_file" : 'X\(//\)$' \| \
15800 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15801 $as_echo X"$ac_file" |
15802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15806 /^X\(\/\/\)[^/].*/{
15819 as_dir="$ac_dir"; as_fn_mkdir_p
15823 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15825 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15826 # A ".." for each directory in $ac_dir_suffix.
15827 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15828 case $ac_top_builddir_sub in
15829 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15830 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15833 ac_abs_top_builddir=$ac_pwd
15834 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15835 # for backward compatibility:
15836 ac_top_builddir=$ac_top_build_prefix
15839 .) # We are building in place.
15841 ac_top_srcdir=$ac_top_builddir_sub
15842 ac_abs_top_srcdir=$ac_pwd ;;
15843 [\\/]* | ?:[\\/]* ) # Absolute name.
15844 ac_srcdir=$srcdir$ac_dir_suffix;
15845 ac_top_srcdir=$srcdir
15846 ac_abs_top_srcdir=$srcdir ;;
15847 *) # Relative name.
15848 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15849 ac_top_srcdir=$ac_top_build_prefix$srcdir
15850 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15852 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15862 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15863 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15868 # If the template does not know about datarootdir, expand it.
15869 # FIXME: This hack should be removed a few years after 2.60.
15870 ac_datarootdir_hack=; ac_datarootdir_seen=
15881 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15882 *datarootdir*) ac_datarootdir_seen=yes;;
15883 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15885 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15888 ac_datarootdir_hack='
15889 s&@datadir@&$datadir&g
15890 s&@docdir@&$docdir&g
15891 s&@infodir@&$infodir&g
15892 s&@localedir@&$localedir&g
15893 s&@mandir@&$mandir&g
15894 s&\\\${datarootdir}&$datarootdir&g' ;;
15898 # Neutralize VPATH when `$srcdir' = `.'.
15899 # Shell code in configure.ac might set extrasub.
15900 # FIXME: do we really want to maintain this feature?
15901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15902 ac_sed_extra="$ac_vpsub
15905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15907 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15908 s|@configure_input@|$ac_sed_conf_input|;t t
15909 s&@top_builddir@&$ac_top_builddir_sub&;t t
15910 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15911 s&@srcdir@&$ac_srcdir&;t t
15912 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15913 s&@top_srcdir@&$ac_top_srcdir&;t t
15914 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15915 s&@builddir@&$ac_builddir&;t t
15916 s&@abs_builddir@&$ac_abs_builddir&;t t
15917 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15918 s&@INSTALL@&$ac_INSTALL&;t t
15919 $ac_datarootdir_hack
15921 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15922 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15924 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15925 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15926 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15927 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15929 which seems to be undefined. Please make sure it is defined" >&5
15930 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15931 which seems to be undefined. Please make sure it is defined" >&2;}
15933 rm -f "$ac_tmp/stdin"
15935 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15936 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15938 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15944 if test x"$ac_file" != x-; then
15946 $as_echo "/* $configure_input */" \
15947 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15948 } >"$ac_tmp/config.h" \
15949 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15950 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15952 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15955 mv "$ac_tmp/config.h" "$ac_file" \
15956 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15959 $as_echo "/* $configure_input */" \
15960 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15961 || as_fn_error $? "could not create -" "$LINENO" 5
15965 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15966 $as_echo "$as_me: executing $ac_file commands" >&6;}
15971 case $ac_file$ac_mode in
15974 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-extract.in > intltool-extract.out
15975 if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
15976 rm -f intltool-extract.out
15978 mv -f intltool-extract.out intltool-extract
15980 chmod ugo+x intltool-extract
15981 chmod u+w intltool-extract
15983 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-merge.in > intltool-merge.out
15984 if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
15985 rm -f intltool-merge.out
15987 mv -f intltool-merge.out intltool-merge
15989 chmod ugo+x intltool-merge
15990 chmod u+w intltool-merge
15992 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-update.in > intltool-update.out
15993 if cmp -s intltool-update intltool-update.out 2>/dev/null; then
15994 rm -f intltool-update.out
15996 mv -f intltool-update.out intltool-update
15998 chmod ugo+x intltool-update
15999 chmod u+w intltool-update
16002 "default-2":C) case "$CONFIG_FILES" in *po/Makefile.in*)
16003 rm -f po/stamp-it po/stamp-it.tmp
16005 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
16006 mv po/stamp-it.tmp po/stamp-it
16015 ac_clean_files=$ac_clean_files_save
16017 test $ac_write_fail = 0 ||
16018 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16021 # configure is writing to config.log, and then calls config.status.
16022 # config.status does its own redirection, appending to config.log.
16023 # Unfortunately, on DOS this fails, as config.log is still kept open
16024 # by configure, so config.status won't be able to write to it; its
16025 # output is simply discarded. So we exec the FD to /dev/null,
16026 # effectively closing config.log, so it can be properly (re)opened and
16027 # appended to by config.status. When coming back to configure, we
16028 # need to make the FD available again.
16029 if test "$no_create" != yes; then
16031 ac_config_status_args=
16032 test "$silent" = yes &&
16033 ac_config_status_args="$ac_config_status_args --quiet"
16035 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16037 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16038 # would make configure fail if this is the last instruction.
16039 $ac_cs_success || as_fn_exit 1
16041 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16043 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16047 ###############################################################################
16049 # Print some warnings at the end.
16051 ###############################################################################
16053 warn_prefix_1=" Warning:"
16054 warn_prefix_2=" Note:"
16055 warn_prefix="$warn_prefix_1"
16058 warnsep=' #################################################################'
16061 if test "$warning" = no ; then
16062 echo '' ; echo "$warnsep" ; echo ''
16069 if test "$warning" = long ; then echo '' ; fi
16072 echo "$warn_prefix $rest"
16079 if test "$was" != no ; then echo '' ; fi
16081 echo "$warn_prefix $rest"
16091 warn_prefix="$warn_prefix_2"
16093 warn_prefix="$warn_prefix_1"
16097 warn_prefix="$warn_prefix_2"
16099 warn_prefix="$warn_prefix_1"
16103 if test "$with_sgi_req" = yes -a "$have_sgi" = no ; then
16104 warn 'The SGI saver extension was requested, but was not found.'
16107 if test "$with_xidle_req" = yes -a "$have_xidle" = no ; then
16108 warn 'The XIdle extension was requested, but was not found.'
16111 if test "$with_xshm_req" = yes -a "$have_xshm" = no ; then
16112 warn 'The XSHM extension was requested, but was not found.'
16115 if test "$with_xdbe_req" = yes -a "$have_xdbe" = no ; then
16116 warn 'The DOUBLE-BUFFER extension was requested, but was not found.'
16119 if test "$with_sgivc_req" = yes -a "$have_sgivc" = no ; then
16120 warn 'The SGI-VIDEO-CONTROL extension was requested, but was not found.'
16123 if test "$with_dpms_req" = yes -a "$have_dpms" = no ; then
16124 warn 'The DPMS extension was requested, but was not found.'
16127 if test "$with_xinerama_req" = yes -a "$have_xinerama" = no ; then
16128 warn 'The Xinerama extension was requested, but was not found.'
16131 if test "$with_xf86vmode_req" = yes -a "$have_xf86vmode" = no ; then
16132 warn 'The XF86VMODE extension was requested, but was not found.'
16135 if test "$with_randr_req" = yes -a "$have_randr" = no ; then
16136 warn 'The RANDR extension was requested, but was not found.'
16139 if test "$with_proc_interrupts_req" = yes -a "$have_proc_interrupts" = no; then
16140 warn "Checking of /proc/interrupts was requested, but it's bogus."
16143 if test "$pkg_config" = false ; then
16144 warnL 'The "pkg-config" program was not found. Without that,'
16145 warn2 "detection of the various GTK libraries won't work."
16147 pkgerr=`$pkg_config --list-all 2>&1 >/dev/null`
16148 if test "x$pkgerr" != "x" ; then
16149 warnL 'The "pkg-config" program produces errors. This often causes'
16150 warn2 "detection of the various GTK libraries to malfunction."
16151 warn2 "The errors are:"
16153 echo "$pkgerr" | sed 's/^/ > /g'
16157 if test "$gtk_halfassed" != no ; then
16158 warnL "GTK version $gtk_halfassed was found, but at least one supporting"
16159 warn2 "library ($gtk_halfassed_lib) was not, so GTK can't be used."
16160 warn2 "Perhaps some of the development packages are not installed?"
16161 if test "$have_gtk" = yes ; then
16162 v="$ac_gtk_version_string"
16163 warn2 "GTK $v is also installed, so it will be used instead."
16164 warn2 "Please read the above output and the \`config.log' file"
16165 warn2 "for more details."
16170 warn2 'Though the Motif front-end to xscreensaver is still'
16171 warn2 'maintained, it is no longer being updated with new'
16172 warn2 'features: all new development on the xscreensaver-demo'
16173 warn2 'program is happening in the GTK version, and not in the'
16174 warn2 'Motif version. It is recommended that you build against'
16175 warn2 'GTK instead of Motif. See <http://www.gtk.org/>.'
16178 if test "$have_motif" = no -a "$have_gtk" = no; then
16180 if test "$with_motif" = yes; then
16181 warnL "Neither the GTK nor Motif libraries were found; the"
16182 warn2 "\`xscreensaver-demo' program requires one of these."
16186 warnL "The GTK libraries do not seem to be available; the"
16187 warn2 "\`xscreensaver-demo' program requires them."
16189 # warn2 'You can use Motif or Lesstif instead of GTK (use the'
16190 # warn2 "\`--with-motif' option) but that is NOT recommended."
16194 elif test "$with_motif_req" = yes -a "$have_motif" = no ; then
16195 warnL "Use of Motif was requested, but it wasn't found;"
16196 warn2 "Gtk will be used instead."
16198 elif test "$jurassic_gtk" = yes ; then
16202 v="$ac_gtk_version_string"
16203 if test "$with_gtk_req" = yes -a "$ac_gtk_version" = "unknown" ; then
16204 warnL "Use of Gtk was requested, but its version number is unknown;"
16205 elif test "$with_gtk_req" = yes ; then
16206 warnL "Use of Gtk was requested, but it is version $v;"
16208 warnL "Gtk was found on this system, but it is version $v;"
16211 warn2 "Gtk $pref_gtk or newer is required."
16213 elif test "$with_gtk_req" = yes -a "$have_gtk" = no ; then
16214 warnL "Use of Gtk was requested, but it wasn't found."
16218 if test "$have_gtk" = yes -a "$have_gdk_pixbuf" = no ; then
16219 warn "GTK is being used, but the GDK-Pixbuf library and/or"
16220 warn2 "headers were not found. That can't be good. Please"
16221 warn2 "install the GDK-Pixbuf development kit and re-configure."
16224 if test "$have_motif" = yes -a "$have_lesstif" = yes ; then
16226 preferred_lesstif=0.92
16228 if test "$lesstif_version" = unknown; then
16229 warnL "Unable to determine the LessTif version number!"
16230 warn2 "Make sure you are using version $preferred_lesstif or newer."
16231 warn2 "See <http://www.lesstif.org/>."
16233 elif test \! $lesstif_version -gt 82; then
16234 warnL "LessTif version $lesstif_version_string is being used."
16235 warn2 "LessTif versions 0.82 and earlier are too buggy to"
16236 warn2 "use with XScreenSaver; it is strongly recommended"
16237 warn2 "that you upgrade to at least version $preferred_lesstif!"
16238 warn2 "See <http://www.lesstif.org/>."
16243 if test "$have_motif" = yes -a "$have_gtk" = no ; then
16244 warn 'Motif is being used, and GTK is not.'
16250 if test "$with_xpm_req" = yes -a "$have_xpm" = no; then
16251 warnL 'Use of XPM was requested, but it was not found.'
16254 if test "$with_gdk_pixbuf_req" = yes -a "$have_gdk_pixbuf" = no; then
16255 warnL 'Use of GDK-Pixbuf was requested, but it was not found.'
16258 if test "$have_gdk_pixbuf" = no -o "$gdk_pixbuf_halfassed" = yes || \
16259 test "$have_gdk_pixbuf" = no -a "$have_xpm" = no ; then
16261 if test "$with_gdk_pixbuf_req" = yes ; then
16263 elif test "$with_gdk_pixbuf_req" = no ; then
16264 warnL 'The GDK-Pixbuf library is not being used.'
16266 warnL 'The GDK-Pixbuf library was not found.'
16269 if test "$with_xpm_req" = yes -o "$have_xpm" = yes ; then
16271 elif test "$with_xpm_req" = no ; then
16272 warnL 'The XPM library is not being used.'
16274 warnL 'The XPM library was not found.'
16277 if test "$have_gdk_pixbuf" = no -a "$have_xpm" = yes ; then
16278 warn2 'The XPM library is being used instead.'
16281 if test "$gdk_pixbuf_halfassed" = yes ; then
16283 warn2 'More specifically, we found the headers, but not the'
16284 warn2 'libraries; so either GDK-Pixbuf is half-installed on this'
16285 warn2 "system, or something else went wrong. The \`config.log'"
16286 warn2 'file might contain some clues.'
16290 warn2 'Some of the demos will not use images as much as they could.'
16291 warn2 'You should consider installing GDK-Pixbuf and re-running'
16292 warn2 'configure. (GDK-Pixbuf is recommended over XPM, as it'
16293 warn2 'provides support for more image formats.)'
16297 if test "$have_jpeg" = no ; then
16298 if test "$with_jpeg_req" = yes ; then
16299 warnL 'Use of libjpeg was requested, but it was not found.'
16300 elif test "$with_jpeg_req" = no ; then
16301 noteL 'The JPEG library is not being used.'
16303 noteL 'The JPEG library was not found.'
16306 if test "$jpeg_halfassed" = yes ; then
16308 warn2 'More specifically, we found the headers, but not the'
16309 warn2 'library; so either JPEG is half-installed on this'
16310 warn2 "system, or something else went wrong. The \`config.log'"
16311 warn2 'file might contain some clues.'
16315 if test "$have_gdk_pixbuf" = no ; then
16316 warn2 "This means that it won't be possible for the image-manipulating"
16317 warn2 "display modes to load files from disk; and it also means that"
16318 warn2 "the \`webcollage' program will be much slower."
16320 warn2 "This means the \`webcollage' program will be much slower."
16325 if test "$have_gl" = yes -a "$ac_have_mesa_gl" = yes ; then
16326 preferred_mesagl=3.4
16327 mgv="$ac_mesagl_version_string"
16328 pgl="$preferred_mesagl"
16330 if test "$ac_mesagl_version" = unknown; then
16332 # warnL "Unable to determine the MesaGL version number!"
16333 # warn2 "Make sure you are using version $preferred_mesagl or newer."
16335 elif test \! "$ac_mesagl_version" -gt 2006; then
16336 warnL "MesaGL version number is $mgv --"
16337 warn2 "MesaGL 2.6 and earlier have a security bug. It is strongly"
16338 warn2 "recommended that you upgrade to at least version $preferred_mesagl."
16340 elif test \! "$ac_mesagl_version" -gt 3003; then
16341 warnL "MesaGL version number is $mgv --"
16342 warn2 "MesaGL 3.3 and earlier have some bugs; it is recommended"
16343 warn2 "that you upgrade to $pgl or newer."
16347 if test "$have_gl" = no ; then
16348 if test "$with_gl_req" = yes ; then
16349 warnL 'Use of GL was requested, but it was not found.'
16350 elif test "$with_gl_req" = no ; then
16351 noteL 'The OpenGL 3D library is not being used.'
16353 noteL 'The OpenGL 3D library was not found.'
16356 if test "$gl_halfassed" = yes ; then
16358 warn2 'More specifically, we found the headers, but not the'
16359 warn2 'libraries; so either GL is half-installed on this'
16360 warn2 "system, or something else went wrong. The \`config.log'"
16361 warn2 'file might contain some clues.'
16365 warn2 'Those demos which use 3D will not be built or installed.'
16366 warn2 'You might want to consider installing OpenGL and'
16367 warn2 "re-running configure. If your vendor doesn't ship"
16368 warn2 'their own implementation of OpenGL, you can get a free'
16369 warn2 'version at <http://www.mesa3d.org/>. For general OpenGL'
16370 warn2 'info, see <http://www.opengl.org/>.'
16375 if test "$have_gl" = yes -a "$have_gle" = no ; then
16377 # nobody cares about this; don't print the warning unless it was
16378 # requested and not found, or halfway-found.
16379 if test "$with_gle_req" = yes -o "$gle_halfassed" = yes ; then
16381 if test "$with_gle_req" = yes ; then
16382 noteL 'Use of the GLE (GL Extrusion) library was requested, but'
16383 warn2 'it was not found (though the OpenGL library was found, and'
16384 warn2 'is being used.)'
16385 elif test "$with_gle_req" = no ; then
16386 noteL 'The OpenGL Library is being used, but the GLE (GL Extrusion)'
16387 warn2 'library is not.'
16389 noteL 'The OpenGL Library was found, but the GLE (GL Extrusion)'
16393 if test "$gle_halfassed" = yes ; then
16395 warn2 'More specifically, we found the headers, but not the'
16396 warn2 'libraries; so either GLE is half-installed on this'
16397 warn2 "system, or something else went wrong. The \`config.log'"
16398 warn2 'file might contain some clues.'
16402 warn2 'Some of the OpenGL (3D) demos (those that depend on GLE)'
16403 warn2 'will not be built or installed. You might want to consider'
16404 warn2 'installing GLE and re-running configure. You can find the'
16405 warn2 'GLE library at <http://www.linas.org/gle/>. For general'
16406 warn2 'OpenGL info, see <http://www.opengl.org/>.'
16412 if test "$with_readdisplay_req" = yes -a "$have_readdisplay" = no ; then
16413 warn 'Use of XReadDisplay was requested, but it was not found.'
16416 if test "$with_kerberos_req" = yes -a "$have_kerberos" = no ; then
16417 warn 'Use of Kerberos was requested, but it was not found.'
16420 if test "$with_pam_req" = yes -a "$have_pam" = no ; then
16421 warn 'Use of PAM was requested, but it was not found.'
16424 if test "$with_shadow_req" = yes -a "$have_shadow" = no ; then
16425 warn 'Use of shadow passwords was requested, but they were not found.'
16428 if test "$ac_macosx" = yes ; then
16429 if test "$enable_locking" = yes ; then
16430 warn "You have specified --enable-locking on MacOS X."
16431 warn2 "THIS DOES NOT WORK! Don't do this!"
16436 # You are in a twisty maze of namespaces and syntaxes, all alike.
16437 # Fuck the skull of Unix.
16439 bindir=`eval eval eval eval eval eval eval echo $bindir`
16440 HACKDIR=`eval eval eval eval eval eval eval echo $HACKDIR`
16441 HACK_CONF_DIR=`eval eval eval eval eval eval eval echo $HACK_CONF_DIR`
16443 # canonicalize slashes.
16444 bindir=`echo "${bindir}" | sed 's@/$@@;s@//*@/@g'`
16445 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
16446 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
16449 # Sanity check the hackdir
16450 for bad_choice in xscreensaver xscreensaver-demo xscreensaver-command ; do
16451 if test "${HACKDIR}" = "${bindir}/${bad_choice}" ; then
16453 as_fn_error $? "\"--with-hackdir=${bindir}/${bad_choice}\" won't work.
16454 There will be an executable installed with that name, so
16455 that can't be the name of a directory as well. Please
16456 re-configure with a different directory name." "$LINENO" 5
16463 # Now let's warn if there's a previous RPM version already installed.
16464 # But don't bother with this test if we are currently *building* an RPM.
16466 if test -z "$RPM_PACKAGE_VERSION" ; then
16468 rpmnames="xscreensaver xscreensaver-base xscreensaver-extras"
16472 rpmv=`(rpm -qv $rpmnames) 2>/dev/null | \
16473 sed -n 's/^[-a-z]*-\([0-9][0-9]*[.][0-9][0-9a-z]*\)-.*$/\1/p' | \
16477 if test \! -z "$rpmv" ; then
16478 rpmbdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/xscreensaver-demo$@\1@p'`
16479 rpmhdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/popsquares$@\1@p'`
16482 warnL "There is already an installed RPM of xscreensaver $rpmv"
16483 warn2 'on this system. You might want to remove it ("rpm -ve")'
16484 warn2 'before running "make install" in this directory.'
16486 warn2 "Alternately, you could build this version of xscreensaver"
16487 warn2 'as an RPM, and then install that. An "xscreensaver.spec"'
16488 warn2 'file is included. Try "rpmbuild -v -ba xscreensaver.spec".'
16489 warn2 "See the RPM documentation for more info."
16492 if test "$rpmbdir" = "$rpmhdir" ; then
16493 warn2 "The RPM version was installed in $rpmbdir/."
16496 warn2 "The RPM version was installed in $rpmbdir/,"
16497 warn2 "with demos in $rpmhdir/."
16502 # Also warn if there's a Debian package installed.
16504 debnames="xscreensaver xscreensaver-data xscreensaver-data-extra"
16506 for dpkg in $debnames ; do
16507 if test -z "$debv"; then
16508 debv=`dpkg -s $dpkg 2>/dev/null | sed -n 's/^Version: \(.*\)$/\1/p'`
16512 if test \! -z "$debv" ; then
16513 debbdir=`dpkg -L $debnames 2>/dev/null | \
16514 sed -n 's@^\(.*/bin/\)xscreensaver$@\1@p'`
16515 debhdir=`dpkg -L $debnames 2>/dev/null | \
16516 sed -n 's@^\(.*/\)popsquares$@\1@p'`
16517 if test -z "$debbdir" ; then debbdir='???'; fi
16518 if test -z "$debhdir" ; then debhdir='???'; fi
16521 warnL "There is already an installed dpkg of xscreensaver"
16522 warn2 "version \"$debv\" on this system."
16524 warn2 "The dpkg was installed in $debbdir,"
16525 warn2 "with demos in $debhdir."
16529 if test "${bindir}" = "${HACKDIR}" ; then
16533 if test "$do_dir_warning" = yes; then
16537 echo ' When you run "make install", the "xscreensaver",'
16538 echo ' "xscreensaver-demo", and "xscreensaver-command" executables'
16539 echo " will be installed in ${bindir}/."
16541 echo " The various graphics demos (190+ different executables) will"
16542 echo " be installed in ${HACKDIR}/."
16544 echo " If you would prefer the demos to be installed elsewhere,"
16545 echo " you should re-run configure with the --with-hackdir=DIR"
16546 echo " option. For more information, run \`./configure --help'."
16550 if test "$warning" != no; then
16551 echo '' ; echo "$warnsep" ; echo ''
16554 if test "$do_dir_warning" = no; then
16555 if test "$warning" = no; then
16558 echo "User programs will be installed in ${bindir}/"
16559 echo "Screen savers will be installed in ${HACKDIR}/"
16560 echo "Configuration dialogs will be installed in ${HACK_CONF_DIR}/"
16561 echo "System-wide default settings will be installed in ${APPDEFAULTS}/"