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
774 program_transform_name
787 enable_option_checking
805 with_pam_service_name
806 enable_pam_check_account_type
827 ac_precious_vars='build_alias
839 # Initialize some variables set by options.
841 ac_init_version=false
842 ac_unrecognized_opts=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
853 program_transform_name=s,x,x,
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir='${exec_prefix}/bin'
868 sbindir='${exec_prefix}/sbin'
869 libexecdir='${exec_prefix}/libexec'
870 datarootdir='${prefix}/share'
871 datadir='${datarootdir}'
872 sysconfdir='${prefix}/etc'
873 sharedstatedir='${prefix}/com'
874 localstatedir='${prefix}/var'
875 includedir='${prefix}/include'
876 oldincludedir='/usr/include'
877 docdir='${datarootdir}/doc/${PACKAGE}'
878 infodir='${datarootdir}/info'
883 libdir='${exec_prefix}/lib'
884 localedir='${datarootdir}/locale'
885 mandir='${datarootdir}/man'
891 # If the previous option needs an argument, assign it.
892 if test -n "$ac_prev"; then
893 eval $ac_prev=\$ac_option
899 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 # Accept the important Cygnus configure options, so we can diagnose typos.
906 case $ac_dashdash$ac_option in
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915 -build | --build | --buil | --bui | --bu)
916 ac_prev=build_alias ;;
917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918 build_alias=$ac_optarg ;;
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925 cache_file=$ac_optarg ;;
928 cache_file=config.cache ;;
930 -datadir | --datadir | --datadi | --datad)
932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
933 datadir=$ac_optarg ;;
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
942 -disable-* | --disable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error $? "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
956 eval enable_$ac_useropt=no ;;
958 -docdir | --docdir | --docdi | --doc | --do)
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 -enable-* | --enable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error $? "invalid feature name: $ac_useropt"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
982 eval enable_$ac_useropt=\$ac_optarg ;;
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
991 exec_prefix=$ac_optarg ;;
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
997 -help | --help | --hel | --he | -h)
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
1004 -host | --host | --hos | --ho)
1005 ac_prev=host_alias ;;
1006 -host=* | --host=* | --hos=* | --ho=*)
1007 host_alias=$ac_optarg ;;
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 htmldir=$ac_optarg ;;
1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
1020 includedir=$ac_optarg ;;
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025 infodir=$ac_optarg ;;
1027 -libdir | --libdir | --libdi | --libd)
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030 libdir=$ac_optarg ;;
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
1037 libexecdir=$ac_optarg ;;
1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
1045 | --localstate | --localstat | --localsta | --localst | --locals)
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049 localstatedir=$ac_optarg ;;
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054 mandir=$ac_optarg ;;
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061 | --no-cr | --no-c | -n)
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075 oldincludedir=$ac_optarg ;;
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080 prefix=$ac_optarg ;;
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087 program_prefix=$ac_optarg ;;
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094 program_suffix=$ac_optarg ;;
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
1111 program_transform_name=$ac_optarg ;;
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1118 -psdir | --psdir | --psdi | --psd | --ps)
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131 sbindir=$ac_optarg ;;
1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135 | --sharedst | --shareds | --shared | --share | --shar \
1137 ac_prev=sharedstatedir ;;
1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142 sharedstatedir=$ac_optarg ;;
1144 -site | --site | --sit)
1146 -site=* | --site=* | --sit=*)
1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1152 srcdir=$ac_optarg ;;
1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155 | --syscon | --sysco | --sysc | --sys | --sy)
1156 ac_prev=sysconfdir ;;
1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1159 sysconfdir=$ac_optarg ;;
1161 -target | --target | --targe | --targ | --tar | --ta | --t)
1162 ac_prev=target_alias ;;
1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1164 target_alias=$ac_optarg ;;
1166 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169 -version | --version | --versio | --versi | --vers | -V)
1170 ac_init_version=: ;;
1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error $? "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1186 eval with_$ac_useropt=\$ac_optarg ;;
1188 -without-* | --without-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error $? "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1202 eval with_$ac_useropt=no ;;
1205 # Obsolete; use --with-x.
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209 | --x-incl | --x-inc | --x-in | --x-i)
1210 ac_prev=x_includes ;;
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213 x_includes=$ac_optarg ;;
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220 x_libraries=$ac_optarg ;;
1222 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1223 Try \`$0 --help' for more information"
1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228 # Reject names that are not valid shell variable names.
1229 case $ac_envvar in #(
1230 '' | [0-9]* | *[!_$as_cr_alnum]* )
1231 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1233 eval $ac_envvar=\$ac_optarg
1234 export $ac_envvar ;;
1237 # FIXME: should be removed in autoconf 3.0.
1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1247 if test -n "$ac_prev"; then
1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249 as_fn_error $? "missing argument to $ac_option"
1252 if test -n "$ac_unrecognized_opts"; then
1253 case $enable_option_checking in
1255 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1256 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260 # Check all directory arguments for consistency.
1261 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262 datadir sysconfdir sharedstatedir localstatedir includedir \
1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264 libdir localedir mandir
1266 eval ac_val=\$$ac_var
1267 # Remove trailing slashes.
1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271 eval $ac_var=\$ac_val;;
1273 # Be sure to have absolute directory names.
1275 [\\/$]* | ?:[\\/]* ) continue;;
1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1286 target=$target_alias
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
1292 elif test "x$build_alias" != "x$host_alias"; then
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300 test "$silent" = yes && exec 6>/dev/null
1303 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di=`ls -di .` &&
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 as_fn_error $? "working directory cannot be determined"
1307 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308 as_fn_error $? "pwd does not report name of working directory"
1311 # Find the source files, if location was not specified.
1312 if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
1314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir=`$as_dirname -- "$as_myself" ||
1316 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$as_myself" : 'X\(//\)[^/]' \| \
1318 X"$as_myself" : 'X\(//\)$' \| \
1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320 $as_echo X"$as_myself" |
1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1343 ac_srcdir_defaulted=no
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1353 # When building in place, set srcdir=.
1354 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 # Remove unnecessary trailing slashes from srcdir.
1358 # Double slashes in file names in object file debugging info
1359 # mess up M-x gdb in Emacs.
1361 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 for ac_var in $ac_precious_vars; do
1364 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_env_${ac_var}_value=\$${ac_var}
1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1371 # Report the --help message.
1373 if test "$ac_init_help" = "long"; then
1374 # Omit some internal or obsolete options to make the list less imposing.
1375 # This message is too long to be a string in the A/UX 3.1 sh.
1377 \`configure' configures this package to adapt to many kinds of systems.
1379 Usage: $0 [OPTION]... [VAR=VALUE]...
1381 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382 VAR=VALUE. See below for descriptions of some of the useful variables.
1384 Defaults for the options are specified in brackets.
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print \`checking ...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1399 Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
1401 [$ac_default_prefix]
1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1410 For better control, use the options below.
1412 Fine tuning of the installation directories:
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --x-includes=DIR X include files are in DIR
1418 --x-libraries=DIR X library files are in DIR
1419 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1420 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1433 --x-includes=DIR X include files are in DIR
1434 --x-libraries=DIR X library files are in DIR
1437 --build=BUILD configure for building on BUILD [guessed]
1438 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1442 if test -n "$ac_init_help"; then
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --disable-largefile omit support for large files
1452 Screen locking options:
1453 --enable-locking Compile in support for locking the display.
1454 --disable-locking Do not allow locking at all.
1456 --enable-root-passwd Allow root passwd to unlock screen.
1457 --disable-root-passwd Do not allow that.
1458 --enable-pam-check-account-type
1459 Whether PAM should check the result of account
1460 modules when authenticating. Only do this if you
1461 have account configured properly on your system.
1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1467 --with-pthread Enables POSIX threads, for SMP support.
1469 Installation options:
1470 --with-hackdir=DIR Where to install the hundreds of demo executables.
1471 Default: `PREFIX/libexec/xscreensaver/'
1472 --with-configdir=DIR Where to install the data files that describe each
1473 of the display modes to the GUI.
1474 Default: `PREFIX/share/xscreensaver/config/'
1475 --with-x-app-defaults=DIR
1476 Where to install xscreensaver configuration file.
1478 --with-dpms-ext Include support for the DPMS extension.
1479 --with-xinerama-ext Include support for the XINERAMA extension.
1480 --with-xinput-ext Include support for the XInput extension.
1481 --with-xf86vmode-ext Include support for XFree86 virtual screens.
1482 --with-xf86gamma-ext Include support for XFree86 gamma fading.
1483 --with-randr-ext Include support for the X Resize+Rotate extension.
1484 --with-proc-interrupts Include support for consulting the /proc/interrupts
1485 file to notice keyboard activity.
1486 --with-pam Include support for PAM (Pluggable Auth Modules.)
1487 --with-pam-service-name NAME arg is the name of the PAM service that
1488 xscreensaver will authenticate as.
1489 --with-kerberos Include support for Kerberos authentication.
1490 --with-shadow Include support for shadow password authentication.
1491 --with-passwd-helper Include support for an external password
1492 verification helper program.
1493 --with-login-manager Put a "New Login" button on the unlock dialog that
1494 runs a login manager like gdmflexiserver or kdmctl.
1496 User interface options:
1498 --with-gtk Use the Gtk toolkit for the user interface.
1499 --with-motif Use the Motif toolkit for the user interface
1500 (no longer supported.)
1504 --with-gl Build those demos which depend on OpenGL.
1505 --with-gle Build those demos which depend on GLE
1506 (the OpenGL "extrusion" library.)
1507 --with-gles Target OpenGL ES 1.x API instead of OpenGL 1.3.
1508 --with-pixbuf Include support for the GDK-Pixbuf library in some
1509 demos, which will make it possible for them to read
1510 GIF, JPEG, and PNG files as well.
1511 --with-xpm Include support for XPM files in some demos.
1512 (Not needed if Pixbuf is used.)
1513 --with-jpeg Include support for the JPEG library.
1514 --with-xshm-ext Include support for the Shared Memory extension.
1515 --with-xdbe-ext Include support for the DOUBLE-BUFFER extension.
1516 --with-readdisplay Include support for the XReadDisplay extension.
1517 --with-image-directory Arg is the default directory from which some demos
1518 will choose random images to display.
1519 --with-text-file=FILE By default, some demos may display this file.
1520 --with-browser=BROWSER Specify the web browser used to show the help URL.
1521 --with-setuid-hacks Allow some demos to be installed `setuid root'
1522 (which is needed in order to ping other hosts.)
1525 Some influential environment variables:
1526 CC C compiler command
1527 CFLAGS C compiler flags
1528 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1529 nonstandard directory <lib dir>
1530 LIBS libraries to pass to the linker, e.g. -l<library>
1531 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1532 you have headers in a nonstandard directory <include dir>
1534 XMKMF Path to xmkmf, Makefile generator for X Window System
1536 Use these variables to override the choices made by `configure' or to help
1537 it to find libraries and programs with nonstandard names/locations.
1539 Report bugs to the package provider.
1544 if test "$ac_init_help" = "recursive"; then
1545 # If there are subdirs, report their specific --help.
1546 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1547 test -d "$ac_dir" ||
1548 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1553 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1556 # A ".." for each directory in $ac_dir_suffix.
1557 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1558 case $ac_top_builddir_sub in
1559 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563 ac_abs_top_builddir=$ac_pwd
1564 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1565 # for backward compatibility:
1566 ac_top_builddir=$ac_top_build_prefix
1569 .) # We are building in place.
1571 ac_top_srcdir=$ac_top_builddir_sub
1572 ac_abs_top_srcdir=$ac_pwd ;;
1573 [\\/]* | ?:[\\/]* ) # Absolute name.
1574 ac_srcdir=$srcdir$ac_dir_suffix;
1575 ac_top_srcdir=$srcdir
1576 ac_abs_top_srcdir=$srcdir ;;
1578 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1579 ac_top_srcdir=$ac_top_build_prefix$srcdir
1580 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1582 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1584 cd "$ac_dir" || { ac_status=$?; continue; }
1585 # Check for guested configure.
1586 if test -f "$ac_srcdir/configure.gnu"; then
1588 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589 elif test -f "$ac_srcdir/configure"; then
1591 $SHELL "$ac_srcdir/configure" --help=recursive
1593 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1595 cd "$ac_pwd" || { ac_status=$?; break; }
1599 test -n "$ac_init_help" && exit $ac_status
1600 if $ac_init_version; then
1603 generated by GNU Autoconf 2.69
1605 Copyright (C) 2012 Free Software Foundation, Inc.
1606 This configure script is free software; the Free Software Foundation
1607 gives unlimited permission to copy, distribute and modify it.
1612 ## ------------------------ ##
1613 ## Autoconf initialization. ##
1614 ## ------------------------ ##
1616 # ac_fn_c_try_compile LINENO
1617 # --------------------------
1618 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1619 ac_fn_c_try_compile ()
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 rm -rf conftest.$ac_objext
1623 if { { ac_try="$ac_compile"
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_compile") 2>conftest.err
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } && {
1639 test -z "$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1641 } && test -s conftest.$ac_objext; then :
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1652 } # ac_fn_c_try_compile
1654 # ac_fn_c_try_link LINENO
1655 # -----------------------
1656 # Try to link conftest.$ac_ext, and return whether this succeeded.
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 rm -rf conftest.$ac_objext conftest$ac_exeext
1661 if { { ac_try="$ac_link"
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_link") 2>conftest.err
1670 if test -s conftest.err; then
1671 grep -v '^ *+' conftest.err >conftest.er1
1672 cat conftest.er1 >&5
1673 mv -f conftest.er1 conftest.err
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } && {
1677 test -z "$ac_c_werror_flag" ||
1678 test ! -s conftest.err
1679 } && test -s conftest$ac_exeext && {
1680 test "$cross_compiling" = yes ||
1681 test -x conftest$ac_exeext
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1690 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1691 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1692 # interfere with the next link command; also delete a directory that is
1693 # left behind by Apple's compiler. We do this before executing the actions.
1694 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696 as_fn_set_status $ac_retval
1698 } # ac_fn_c_try_link
1700 # ac_fn_c_try_run LINENO
1701 # ----------------------
1702 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1703 # that executables *can* be run.
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 if { { ac_try="$ac_link"
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_link") 2>&5
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1718 { { case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_try") 2>&5
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; }; }; then :
1730 $as_echo "$as_me: program exited with status $ac_status" >&5
1731 $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1734 ac_retval=$ac_status
1736 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 as_fn_set_status $ac_retval
1742 # ac_fn_c_try_cpp LINENO
1743 # ----------------------
1744 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 if { { ac_try="$ac_cpp conftest.$ac_ext"
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1757 if test -s conftest.err; then
1758 grep -v '^ *+' conftest.err >conftest.er1
1759 cat conftest.er1 >&5
1760 mv -f conftest.er1 conftest.err
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } > conftest.i && {
1764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1765 test ! -s conftest.err
1769 $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
1779 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1780 # -------------------------------------------------------
1781 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1782 # the include files in INCLUDES and setting the cache variable VAR
1784 ac_fn_c_check_header_mongrel ()
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 if eval \${$3+:} false; then :
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789 $as_echo_n "checking for $2... " >&6; }
1790 if eval \${$3+:} false; then :
1791 $as_echo_n "(cached) " >&6
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1797 # Is the header compilable?
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1799 $as_echo_n "checking $2 usability... " >&6; }
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1805 if ac_fn_c_try_compile "$LINENO"; then :
1806 ac_header_compiler=yes
1808 ac_header_compiler=no
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1812 $as_echo "$ac_header_compiler" >&6; }
1814 # Is the header present?
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1816 $as_echo_n "checking $2 presence... " >&6; }
1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h. */
1821 if ac_fn_c_try_cpp "$LINENO"; then :
1822 ac_header_preproc=yes
1824 ac_header_preproc=no
1826 rm -rf conftest.err conftest.i conftest.$ac_ext
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1828 $as_echo "$ac_header_preproc" >&6; }
1830 # So? What about this header?
1831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1834 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1836 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1840 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1842 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1844 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1846 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1848 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854 $as_echo_n "(cached) " >&6
1856 eval "$3=\$ac_header_compiler"
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864 } # ac_fn_c_check_header_mongrel
1866 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1867 # -------------------------------------------------------
1868 # Tests whether HEADER exists and can be compiled using the include files in
1869 # INCLUDES, setting the cache variable VAR accordingly.
1870 ac_fn_c_check_header_compile ()
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874 $as_echo_n "checking for $2... " >&6; }
1875 if eval \${$3+:} false; then :
1876 $as_echo_n "(cached) " >&6
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h. */
1883 if ac_fn_c_try_compile "$LINENO"; then :
1888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892 $as_echo "$ac_res" >&6; }
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 } # ac_fn_c_check_header_compile
1897 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1898 # -------------------------------------------
1899 # Tests whether TYPE exists after having included INCLUDES, setting cache
1900 # variable VAR accordingly.
1901 ac_fn_c_check_type ()
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 $as_echo_n "checking for $2... " >&6; }
1906 if eval \${$3+:} false; then :
1907 $as_echo_n "(cached) " >&6
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1922 if ac_fn_c_try_compile "$LINENO"; then :
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1935 if ac_fn_c_try_compile "$LINENO"; then :
1940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949 } # ac_fn_c_check_type
1951 # ac_fn_c_check_func LINENO FUNC VAR
1952 # ----------------------------------
1953 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1954 ac_fn_c_check_func ()
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958 $as_echo_n "checking for $2... " >&6; }
1959 if eval \${$3+:} false; then :
1960 $as_echo_n "(cached) " >&6
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1964 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1966 #define $2 innocuous_$2
1968 /* System header to define __stub macros and hopefully few prototypes,
1969 which can conflict with char $2 (); below.
1970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1971 <limits.h> exists even on freestanding compilers. */
1974 # include <limits.h>
1976 # include <assert.h>
1981 /* Override any GCC internal prototype to avoid an error.
1982 Use char because int might match the return type of a GCC
1983 builtin and then its argument prototype would still apply. */
1988 /* The GNU C library defines this for functions which it implements
1989 to always fail with ENOSYS. Some functions are actually named
1990 something starting with __ and the normal name is an alias. */
1991 #if defined __stub_$2 || defined __stub___$2
2003 if ac_fn_c_try_link "$LINENO"; then :
2008 rm -f core conftest.err conftest.$ac_objext \
2009 conftest$ac_exeext conftest.$ac_ext
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013 $as_echo "$ac_res" >&6; }
2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016 } # ac_fn_c_check_func
2017 cat >config.log <<_ACEOF
2018 This file contains any messages produced by compilers while
2019 running configure, to aid debugging if configure makes a mistake.
2021 It was created by $as_me, which was
2022 generated by GNU Autoconf 2.69. Invocation command line was
2034 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2035 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2036 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2037 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2038 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2040 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2041 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2043 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2044 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2045 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2046 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2047 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2048 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2049 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 test -z "$as_dir" && as_dir=.
2058 $as_echo "PATH: $as_dir"
2074 # Keep a trace of the command line.
2075 # Strip out --no-create and --no-recursion so they do not pile up.
2076 # Strip out --silent because we don't want to record it for future runs.
2077 # Also quote any args containing shell meta-characters.
2078 # Make two passes to allow for proper duplicate-argument suppression.
2082 ac_must_keep_next=false
2088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2090 | -silent | --silent | --silen | --sile | --sil)
2093 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2096 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2098 as_fn_append ac_configure_args1 " '$ac_arg'"
2099 if test $ac_must_keep_next = true; then
2100 ac_must_keep_next=false # Got value, back to normal.
2103 *=* | --config-cache | -C | -disable-* | --disable-* \
2104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2106 | -with-* | --with-* | -without-* | --without-* | --x)
2107 case "$ac_configure_args0 " in
2108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2111 -* ) ac_must_keep_next=true ;;
2114 as_fn_append ac_configure_args " '$ac_arg'"
2119 { ac_configure_args0=; unset ac_configure_args0;}
2120 { ac_configure_args1=; unset ac_configure_args1;}
2122 # When interrupted or exit'd, cleanup temporary files, and complete
2123 # config.log. We remove comments because anyway the quotes in there
2124 # would cause problems or look ugly.
2125 # WARNING: Use '\'' to represent an apostrophe within the trap.
2126 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2127 trap 'exit_status=$?
2128 # Save into config.log some information that might help in debugging.
2132 $as_echo "## ---------------- ##
2133 ## Cache variables. ##
2134 ## ---------------- ##"
2136 # The following way of writing the cache mishandles newlines in values,
2138 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2139 eval ac_val=\$$ac_var
2143 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2144 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2147 _ | IFS | as_nl) ;; #(
2148 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2149 *) { eval $ac_var=; unset $ac_var;} ;;
2154 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2155 *${as_nl}ac_space=\ *)
2157 "s/'\''/'\''\\\\'\'''\''/g;
2158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2161 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2168 $as_echo "## ----------------- ##
2169 ## Output variables. ##
2170 ## ----------------- ##"
2172 for ac_var in $ac_subst_vars
2174 eval ac_val=\$$ac_var
2176 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2178 $as_echo "$ac_var='\''$ac_val'\''"
2182 if test -n "$ac_subst_files"; then
2183 $as_echo "## ------------------- ##
2184 ## File substitutions. ##
2185 ## ------------------- ##"
2187 for ac_var in $ac_subst_files
2189 eval ac_val=\$$ac_var
2191 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2193 $as_echo "$ac_var='\''$ac_val'\''"
2198 if test -s confdefs.h; then
2199 $as_echo "## ----------- ##
2206 test "$ac_signal" != 0 &&
2207 $as_echo "$as_me: caught signal $ac_signal"
2208 $as_echo "$as_me: exit $exit_status"
2210 rm -f core *.core core.conftest.* &&
2211 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2214 for ac_signal in 1 2 13 15; do
2215 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2219 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2220 rm -f -r conftest* confdefs.h
2222 $as_echo "/* confdefs.h */" > confdefs.h
2224 # Predefined preprocessor variables.
2226 cat >>confdefs.h <<_ACEOF
2227 #define PACKAGE_NAME "$PACKAGE_NAME"
2230 cat >>confdefs.h <<_ACEOF
2231 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2234 cat >>confdefs.h <<_ACEOF
2235 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2238 cat >>confdefs.h <<_ACEOF
2239 #define PACKAGE_STRING "$PACKAGE_STRING"
2242 cat >>confdefs.h <<_ACEOF
2243 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_URL "$PACKAGE_URL"
2251 # Let the site file select an alternate cache file if it wants to.
2252 # Prefer an explicitly selected file to automatically selected ones.
2255 if test -n "$CONFIG_SITE"; then
2256 # We do not want a PATH search for config.site.
2257 case $CONFIG_SITE in #((
2258 -*) ac_site_file1=./$CONFIG_SITE;;
2259 */*) ac_site_file1=$CONFIG_SITE;;
2260 *) ac_site_file1=./$CONFIG_SITE;;
2262 elif test "x$prefix" != xNONE; then
2263 ac_site_file1=$prefix/share/config.site
2264 ac_site_file2=$prefix/etc/config.site
2266 ac_site_file1=$ac_default_prefix/share/config.site
2267 ac_site_file2=$ac_default_prefix/etc/config.site
2269 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2271 test "x$ac_site_file" = xNONE && continue
2272 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2274 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2275 sed 's/^/| /' "$ac_site_file" >&5
2277 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2279 as_fn_error $? "failed to load site script $ac_site_file
2280 See \`config.log' for more details" "$LINENO" 5; }
2284 if test -r "$cache_file"; then
2285 # Some versions of bash will fail to source /dev/null (special files
2286 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2287 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2289 $as_echo "$as_me: loading cache $cache_file" >&6;}
2291 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2292 *) . "./$cache_file";;
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2297 $as_echo "$as_me: creating cache $cache_file" >&6;}
2301 as_fn_append ac_header_list " stdlib.h"
2302 as_fn_append ac_header_list " unistd.h"
2303 as_fn_append ac_header_list " sys/param.h"
2304 # Check that the precious variables saved in the cache have kept the same
2306 ac_cache_corrupted=false
2307 for ac_var in $ac_precious_vars; do
2308 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2309 eval ac_new_set=\$ac_env_${ac_var}_set
2310 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2311 eval ac_new_val=\$ac_env_${ac_var}_value
2312 case $ac_old_set,$ac_new_set in
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2315 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2316 ac_cache_corrupted=: ;;
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2319 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2320 ac_cache_corrupted=: ;;
2323 if test "x$ac_old_val" != "x$ac_new_val"; then
2324 # differences in whitespace do not lead to failure.
2325 ac_old_val_w=`echo x $ac_old_val`
2326 ac_new_val_w=`echo x $ac_new_val`
2327 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2329 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2330 ac_cache_corrupted=:
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2333 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2334 eval $ac_var=\$ac_old_val
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2337 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2339 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2342 # Pass precious variables to config.status.
2343 if test "$ac_new_set" = set; then
2345 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2346 *) ac_arg=$ac_var=$ac_new_val ;;
2348 case " $ac_configure_args " in
2349 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2350 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2354 if $ac_cache_corrupted; then
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2358 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2359 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2361 ## -------------------- ##
2362 ## Main body of script. ##
2363 ## -------------------- ##
2366 ac_cpp='$CPP $CPPFLAGS'
2367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2372 ac_config_headers="$ac_config_headers config.h"
2375 echo "current directory: `pwd`"
2376 echo "command line was: $0 $@"
2378 ###############################################################################
2382 ###############################################################################
2390 # This only ever existed in X11R4 and X11R5.
2391 #AH_TEMPLATE([HAVE_XIDLE_EXTENSION],
2392 # [Define this if you have the XIDLE extension installed. If you
2393 # have the XIDLE extension, this is recommended. (You have this
2394 # extension if the file /usr/include/X11/extensions/xidle.h
2395 # exists.) Turning on this flag lets XScreenSaver work better with
2396 # servers which support this extension; but it will still work
2397 # with servers which do not suport it, so it's a good idea to
2398 # compile in support for it if you can.])
2400 # Using this extension will crash your X server and make fading not work.
2401 #AH_TEMPLATE([HAVE_MIT_SAVER_EXTENSION],
2402 # [Define this if you have the MIT-SCREEN-SAVER extension
2403 # installed. See the caveats about this extension, above.
2404 # (It's available if /usr/include/X11/extensions/scrnsaver.h
2407 # This only ever existed on SGI hardware.
2408 #AH_TEMPLATE([HAVE_SGI_SAVER_EXTENSION],
2409 # [Define this if you have the SGI SCREEN_SAVER extension. This is
2410 # standard on Irix systems, and not available elsewhere.])
2412 # This only ever existed on SGI hardware.
2413 #AH_TEMPLATE([HAVE_SGI_VC_EXTENSION],
2414 # [Define this if you have the SGI-VIDEO-CONTROL extension. This
2415 # is standard on Irix systems, and not available elsewhere.])
2530 # After checking to see that --srcdir is correct (which AC_INIT does)
2531 # check for some random other files that come later in the tar file,
2532 # to make sure everything is here.
2534 for d in driver utils hacks hacks/glx ; do
2535 f=$srcdir/$d/Makefile.in
2536 if test \! -r $f ; then
2538 echo "ERROR: The package is incomplete: $f does not exist."
2539 echo " This probably means that your download was truncated."
2545 ###############################################################################
2547 # Query AX_PTHREAD, and figure out which compiler gets used.
2549 ###############################################################################
2554 ###############################################################################
2556 # Function to figure out how to run the compiler.
2558 ###############################################################################
2563 ###############################################################################
2565 # Check for availability of various gcc command-line options.
2567 ###############################################################################
2575 # Need to disable Objective C extensions in ANSI C on MacOS X to work
2576 # around an Apple-specific gcc bug.
2580 ###############################################################################
2582 # Function to figure out how to disable // comments in ANSI C code.
2584 # (With recent gcc, this is done with "-std=c89". With older gcc, this
2585 # is done by passing "-lang-c89" to cpp, by passing "-Wp,-lang-c89" to
2586 # gcc. Old gcc doesn't support -std, and new gcc doesn't support -lang.
2587 # so much for compatibility!)
2589 # UPDATE: apparently there is NO WAY to tell gcc 3.2.2 to require that
2590 # declarations preceed statements, without resorting to "-pedantic".
2591 # This means that there is no way to get gcc3 to issue warnings that
2592 # ensure that your code complies with the ANSI/ISO C89 standard, without
2593 # also drowning in totally useless warnings. Thank you master may I
2596 # So, I give up, let's just use -pedantic.
2598 ###############################################################################
2605 ###############################################################################
2607 # Function to figure out how to create directory trees.
2609 ###############################################################################
2614 ###############################################################################
2616 # Function to check whether gettimeofday() exists, and how to call it.
2617 # This may define HAVE_GETTIMEOFDAY and GETTIMEOFDAY_TWO_ARGS.
2619 ###############################################################################
2624 ###############################################################################
2626 # Function to find perl5 (defines PERL and PERL_VERSION.)
2628 ###############################################################################
2630 # M4 sucks!! perl sucks too!!
2632 perl_version_cmd='print $]'
2638 ###############################################################################
2640 # Function to demand "bc". Losers.
2642 ###############################################################################
2646 ###############################################################################
2648 # Functions to check how to do ICMP PING requests.
2650 ###############################################################################
2657 ###############################################################################
2659 # Functions to check for various X11 crap.
2661 ###############################################################################
2663 # Try and find the app-defaults directory.
2664 # It sucks that autoconf doesn't do this already...
2668 ###############################################################################
2670 # Handle the --with-x-app-defaults option HERE
2672 ###############################################################################
2675 # Check whether --with-x-app-defaults was given.
2676 if test "${with_x_app_defaults+set}" = set; then :
2677 withval=$with_x_app_defaults; ac_cv_x_app_defaults="$withval"
2679 eval ac_x_app_defaults="$withval"
2692 # Random special-cases for X on certain pathological OSes.
2693 # You know who you are.
2700 ###############################################################################
2702 # Some utility functions to make checking for X things easier.
2704 ###############################################################################
2706 # Like AC_CHECK_HEADER, but it uses the already-computed -I directories.
2710 # Like AC_EGREP_HEADER, but it uses the already-computed -I directories.
2714 # Like AC_TRY_COMPILE, but it uses the already-computed -I directories.
2719 # Like AC_CHECK_LIB, but it uses the already-computed -I and -L directories.
2720 # Use this sparingly; it probably doesn't work very well on X programs.
2724 # Like AC_TRY_RUN, but it uses the already-computed -I directories.
2725 # (But not the -L directories!)
2731 # Usage: HANDLE_X_PATH_ARG([variable_name],
2732 # [--command-line-option],
2733 # [descriptive string])
2735 # All of the --with options take three forms:
2737 # --with-foo (or --with-foo=yes)
2738 # --without-foo (or --with-foo=no)
2741 # This function, HANDLE_X_PATH_ARG, deals with the /DIR case. When it sees
2742 # a directory (string beginning with a slash) it checks to see whether
2743 # /DIR/include and /DIR/lib exist, and adds them to $X_CFLAGS and $X_LIBS
2750 ###############################################################################
2751 ###############################################################################
2753 # End of function definitions. Now start actually executing stuff.
2755 ###############################################################################
2756 ###############################################################################
2758 # WTF! autoconf emits this *way* too late. Do it earlier.
2759 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2760 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2763 # random compiler setup
2765 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2766 if test -f "$ac_dir/install-sh"; then
2768 ac_install_sh="$ac_aux_dir/install-sh -c"
2770 elif test -f "$ac_dir/install.sh"; then
2772 ac_install_sh="$ac_aux_dir/install.sh -c"
2774 elif test -f "$ac_dir/shtool"; then
2776 ac_install_sh="$ac_aux_dir/shtool install -c"
2780 if test -z "$ac_aux_dir"; then
2781 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2784 # These three variables are undocumented and unsupported,
2785 # and are intended to be withdrawn in a future Autoconf release.
2786 # They can cause serious problems if a builder's source tree is in a directory
2787 # whose full name contains unusual characters.
2788 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2789 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2790 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2793 # Make sure we can run config.sub.
2794 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2795 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2798 $as_echo_n "checking build system type... " >&6; }
2799 if ${ac_cv_build+:} false; then :
2800 $as_echo_n "(cached) " >&6
2802 ac_build_alias=$build_alias
2803 test "x$ac_build_alias" = x &&
2804 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2805 test "x$ac_build_alias" = x &&
2806 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2807 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2808 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2812 $as_echo "$ac_cv_build" >&6; }
2813 case $ac_cv_build in
2815 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2818 ac_save_IFS=$IFS; IFS='-'
2824 # Remember, the first character of IFS is used to create $*,
2825 # except with old shells:
2828 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2832 $as_echo_n "checking host system type... " >&6; }
2833 if ${ac_cv_host+:} false; then :
2834 $as_echo_n "(cached) " >&6
2836 if test "x$host_alias" = x; then
2837 ac_cv_host=$ac_cv_build
2839 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2840 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2845 $as_echo "$ac_cv_host" >&6; }
2848 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2851 ac_save_IFS=$IFS; IFS='-'
2857 # Remember, the first character of IFS is used to create $*,
2858 # except with old shells:
2861 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2867 ac_cpp='$CPP $CPPFLAGS'
2868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871 if test -n "$ac_tool_prefix"; then
2872 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2873 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875 $as_echo_n "checking for $ac_word... " >&6; }
2876 if ${ac_cv_prog_CC+:} false; then :
2877 $as_echo_n "(cached) " >&6
2879 if test -n "$CC"; then
2880 ac_cv_prog_CC="$CC" # Let the user override the test.
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 if test -n "$CC"; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2902 $as_echo "$CC" >&6; }
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905 $as_echo "no" >&6; }
2910 if test -z "$ac_cv_prog_CC"; then
2912 # Extract the first word of "gcc", so it can be a program name with args.
2913 set dummy gcc; ac_word=$2
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2917 $as_echo_n "(cached) " >&6
2919 if test -n "$ac_ct_CC"; then
2920 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_ac_ct_CC="gcc"
2930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2940 if test -n "$ac_ct_CC"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2942 $as_echo "$ac_ct_CC" >&6; }
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945 $as_echo "no" >&6; }
2948 if test "x$ac_ct_CC" = x; then
2951 case $cross_compiling:$ac_tool_warned in
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2955 ac_tool_warned=yes ;;
2963 if test -z "$CC"; then
2964 if test -n "$ac_tool_prefix"; then
2965 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2966 set dummy ${ac_tool_prefix}cc; ac_word=$2
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if ${ac_cv_prog_CC+:} false; then :
2970 $as_echo_n "(cached) " >&6
2972 if test -n "$CC"; then
2973 ac_cv_prog_CC="$CC" # Let the user override the test.
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2982 ac_cv_prog_CC="${ac_tool_prefix}cc"
2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 if test -n "$CC"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2995 $as_echo "$CC" >&6; }
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
3004 if test -z "$CC"; then
3005 # Extract the first word of "cc", so it can be a program name with args.
3006 set dummy cc; ac_word=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if ${ac_cv_prog_CC+:} false; then :
3010 $as_echo_n "(cached) " >&6
3012 if test -n "$CC"; then
3013 ac_cv_prog_CC="$CC" # Let the user override the test.
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3023 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3024 ac_prog_rejected=yes
3028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 if test $ac_prog_rejected = yes; then
3036 # We found a bogon in the path, so make sure we never use it.
3037 set dummy $ac_cv_prog_CC
3039 if test $# != 0; then
3040 # We chose a different compiler from the bogus one.
3041 # However, it has the same basename, so the bogon will be chosen
3042 # first if we set CC to just the basename; use the full file name.
3044 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3050 if test -n "$CC"; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3052 $as_echo "$CC" >&6; }
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 $as_echo "no" >&6; }
3060 if test -z "$CC"; then
3061 if test -n "$ac_tool_prefix"; then
3062 for ac_prog in cl.exe
3064 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3065 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3067 $as_echo_n "checking for $ac_word... " >&6; }
3068 if ${ac_cv_prog_CC+:} false; then :
3069 $as_echo_n "(cached) " >&6
3071 if test -n "$CC"; then
3072 ac_cv_prog_CC="$CC" # Let the user override the test.
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 if test -n "$CC"; then
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3094 $as_echo "$CC" >&6; }
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097 $as_echo "no" >&6; }
3101 test -n "$CC" && break
3104 if test -z "$CC"; then
3106 for ac_prog in cl.exe
3108 # Extract the first word of "$ac_prog", so it can be a program name with args.
3109 set dummy $ac_prog; ac_word=$2
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3111 $as_echo_n "checking for $ac_word... " >&6; }
3112 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3113 $as_echo_n "(cached) " >&6
3115 if test -n "$ac_ct_CC"; then
3116 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 test -z "$as_dir" && as_dir=.
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3125 ac_cv_prog_ac_ct_CC="$ac_prog"
3126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3136 if test -n "$ac_ct_CC"; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3138 $as_echo "$ac_ct_CC" >&6; }
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 $as_echo "no" >&6; }
3145 test -n "$ac_ct_CC" && break
3148 if test "x$ac_ct_CC" = x; then
3151 case $cross_compiling:$ac_tool_warned in
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3155 ac_tool_warned=yes ;;
3164 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166 as_fn_error $? "no acceptable C compiler found in \$PATH
3167 See \`config.log' for more details" "$LINENO" 5; }
3169 # Provide some information about the compiler.
3170 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3173 for ac_option in --version -v -V -qversion; do
3174 { { ac_try="$ac_compiler $ac_option >&5"
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3180 $as_echo "$ac_try_echo"; } >&5
3181 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3183 if test -s conftest.err; then
3185 ... rest of stderr output deleted ...
3186 10q' conftest.err >conftest.er1
3187 cat conftest.er1 >&5
3189 rm -rf conftest.er1 conftest.err
3190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3191 test $ac_status = 0; }
3194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195 /* end confdefs.h. */
3205 ac_clean_files_save=$ac_clean_files
3206 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3207 # Try to create an executable without -o first, disregard a.out.
3208 # It will help us diagnose broken compilers, and finding out an intuition
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3211 $as_echo_n "checking whether the C compiler works... " >&6; }
3212 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3214 # The possible output files:
3215 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3218 for ac_file in $ac_files
3221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3222 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3227 if { { ac_try="$ac_link_default"
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3233 $as_echo "$ac_try_echo"; } >&5
3234 (eval "$ac_link_default") 2>&5
3236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3237 test $ac_status = 0; }; then :
3238 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3239 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3240 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3241 # so that the user can short-circuit this test for compilers unknown to
3243 for ac_file in $ac_files ''
3245 test -f "$ac_file" || continue
3247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3250 # We found the default executable, but exeext='' is most
3254 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3256 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3258 # We set ac_cv_exeext here because the later test for it is not
3259 # safe: cross compilers may not add the suffix if given an `-o'
3260 # argument, so we may need to know it at that point already.
3261 # Even if this section looks crufty: it has the advantage of
3268 test "$ac_cv_exeext" = no && ac_cv_exeext=
3273 if test -z "$ac_file"; then :
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3276 $as_echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3281 as_fn_error 77 "C compiler cannot create executables
3282 See \`config.log' for more details" "$LINENO" 5; }
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3285 $as_echo "yes" >&6; }
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3288 $as_echo_n "checking for C compiler default output file name... " >&6; }
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3290 $as_echo "$ac_file" >&6; }
3291 ac_exeext=$ac_cv_exeext
3293 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3294 ac_clean_files=$ac_clean_files_save
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3296 $as_echo_n "checking for suffix of executables... " >&6; }
3297 if { { ac_try="$ac_link"
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3303 $as_echo "$ac_try_echo"; } >&5
3304 (eval "$ac_link") 2>&5
3306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3307 test $ac_status = 0; }; then :
3308 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3309 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3310 # work properly (i.e., refer to `conftest.exe'), while it won't with
3312 for ac_file in conftest.exe conftest conftest.*; do
3313 test -f "$ac_file" || continue
3315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3316 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3324 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3325 See \`config.log' for more details" "$LINENO" 5; }
3327 rm -rf conftest conftest$ac_cv_exeext
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3329 $as_echo "$ac_cv_exeext" >&6; }
3331 rm -rf conftest.$ac_ext
3332 EXEEXT=$ac_cv_exeext
3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h. */
3340 FILE *f = fopen ("conftest.out", "w");
3341 return ferror (f) || fclose (f) != 0;
3347 ac_clean_files="$ac_clean_files conftest.out"
3348 # Check that the compiler produces executables we can run. If not, either
3349 # the compiler is broken, or we cross compile.
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3351 $as_echo_n "checking whether we are cross compiling... " >&6; }
3352 if test "$cross_compiling" != yes; then
3353 { { ac_try="$ac_link"
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3359 $as_echo "$ac_try_echo"; } >&5
3360 (eval "$ac_link") 2>&5
3362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3363 test $ac_status = 0; }
3364 if { ac_try='./conftest$ac_cv_exeext'
3365 { { case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370 $as_echo "$ac_try_echo"; } >&5
3371 (eval "$ac_try") 2>&5
3373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374 test $ac_status = 0; }; }; then
3377 if test "$cross_compiling" = maybe; then
3380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3382 as_fn_error $? "cannot run C compiled programs.
3383 If you meant to cross compile, use \`--host'.
3384 See \`config.log' for more details" "$LINENO" 5; }
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3389 $as_echo "$cross_compiling" >&6; }
3391 rm -rf conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3392 ac_clean_files=$ac_clean_files_save
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3394 $as_echo_n "checking for suffix of object files... " >&6; }
3395 if ${ac_cv_objext+:} false; then :
3396 $as_echo_n "(cached) " >&6
3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399 /* end confdefs.h. */
3409 rm -rf conftest.o conftest.obj
3410 if { { ac_try="$ac_compile"
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3416 $as_echo "$ac_try_echo"; } >&5
3417 (eval "$ac_compile") 2>&5
3419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420 test $ac_status = 0; }; then :
3421 for ac_file in conftest.o conftest.obj conftest.*; do
3422 test -f "$ac_file" || continue;
3424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3425 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3430 $as_echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3435 as_fn_error $? "cannot compute suffix of object files: cannot compile
3436 See \`config.log' for more details" "$LINENO" 5; }
3438 rm -rf conftest.$ac_cv_objext conftest.$ac_ext
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3441 $as_echo "$ac_cv_objext" >&6; }
3442 OBJEXT=$ac_cv_objext
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3445 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3446 if ${ac_cv_c_compiler_gnu+:} false; then :
3447 $as_echo_n "(cached) " >&6
3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h. */
3463 if ac_fn_c_try_compile "$LINENO"; then :
3468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3469 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3473 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3474 if test $ac_compiler_gnu = yes; then
3479 ac_test_CFLAGS=${CFLAGS+set}
3480 ac_save_CFLAGS=$CFLAGS
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3482 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3483 if ${ac_cv_prog_cc_g+:} false; then :
3484 $as_echo_n "(cached) " >&6
3486 ac_save_c_werror_flag=$ac_c_werror_flag
3487 ac_c_werror_flag=yes
3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h. */
3501 if ac_fn_c_try_compile "$LINENO"; then :
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3516 if ac_fn_c_try_compile "$LINENO"; then :
3519 ac_c_werror_flag=$ac_save_c_werror_flag
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3532 if ac_fn_c_try_compile "$LINENO"; then :
3535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540 ac_c_werror_flag=$ac_save_c_werror_flag
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3543 $as_echo "$ac_cv_prog_cc_g" >&6; }
3544 if test "$ac_test_CFLAGS" = set; then
3545 CFLAGS=$ac_save_CFLAGS
3546 elif test $ac_cv_prog_cc_g = yes; then
3547 if test "$GCC" = yes; then
3553 if test "$GCC" = yes; then
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3560 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3561 if ${ac_cv_prog_cc_c89+:} false; then :
3562 $as_echo_n "(cached) " >&6
3564 ac_cv_prog_cc_c89=no
3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567 /* end confdefs.h. */
3571 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3572 struct buf { int x; };
3573 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3574 static char *e (p, i)
3580 static char *f (char * (*g) (char **, int), char **p, ...)
3585 s = g (p, va_arg (v,int));
3590 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3591 function prototypes and stuff, but not '\xHH' hex character constants.
3592 These don't provoke an error unfortunately, instead are silently treated
3593 as 'x'. The following induces an error, until -std is added to get
3594 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3595 array size at least. It's necessary to write '\x00'==0 to get something
3596 that's true only with -std. */
3597 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3599 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3600 inside strings and character constants. */
3602 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3604 int test (int i, double x);
3605 struct s1 {int (*f) (int a);};
3606 struct s2 {int (*f) (double a);};
3607 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3613 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3618 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3619 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3621 CC="$ac_save_CC $ac_arg"
3622 if ac_fn_c_try_compile "$LINENO"; then :
3623 ac_cv_prog_cc_c89=$ac_arg
3625 rm -f core conftest.err conftest.$ac_objext
3626 test "x$ac_cv_prog_cc_c89" != "xno" && break
3628 rm -rf conftest.$ac_ext
3633 case "x$ac_cv_prog_cc_c89" in
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3636 $as_echo "none needed" >&6; } ;;
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3639 $as_echo "unsupported" >&6; } ;;
3641 CC="$CC $ac_cv_prog_cc_c89"
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3643 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3645 if test "x$ac_cv_prog_cc_c89" != xno; then :
3650 ac_cpp='$CPP $CPPFLAGS'
3651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657 with_pthread_req=unspecified
3659 # AX_PTHREAD is from the GNU Autoconf Archive.
3660 # https://savannah.gnu.org/projects/autoconf-archive/
3661 # ===========================================================================
3662 # http://www.gnu.org/software/autoconf-archive/ax_pthread.html
3663 # ===========================================================================
3667 # AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
3671 # This macro figures out how to build C programs using POSIX threads. It
3672 # sets the PTHREAD_LIBS output variable to the threads library and linker
3673 # flags, and the PTHREAD_CFLAGS output variable to any special C compiler
3674 # flags that are needed. (The user can also force certain compiler
3675 # flags/libs to be tested by setting these environment variables.)
3677 # Also sets PTHREAD_CC to any special C compiler that is needed for
3678 # multi-threaded programs (defaults to the value of CC otherwise). (This
3679 # is necessary on AIX to use the special cc_r compiler alias.)
3681 # NOTE: You are assumed to not only compile your program with these flags,
3682 # but also link it with them as well. e.g. you should link with
3683 # $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
3685 # If you are only building threads programs, you may wish to use these
3686 # variables in your default LIBS, CFLAGS, and CC:
3688 # LIBS="$PTHREAD_LIBS $LIBS"
3689 # CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
3692 # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
3693 # has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name
3694 # (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
3696 # Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the
3697 # PTHREAD_PRIO_INHERIT symbol is defined when compiling with
3700 # ACTION-IF-FOUND is a list of shell commands to run if a threads library
3701 # is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
3702 # is not found. If ACTION-IF-FOUND is not specified, the default action
3703 # will define HAVE_PTHREAD.
3705 # Please let the authors know if this macro fails on any platform, or if
3706 # you have any other suggestions or comments. This macro was based on work
3707 # by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
3708 # from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
3709 # Alejandro Forero Cuervo to the autoconf macro repository. We are also
3710 # grateful for the helpful feedback of numerous users.
3712 # Updated for Autoconf 2.68 by Daniel Richard G.
3716 # Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
3717 # Copyright (c) 2011 Daniel Richard G. <skunk@iSKUNK.ORG>
3719 # This program is free software: you can redistribute it and/or modify it
3720 # under the terms of the GNU General Public License as published by the
3721 # Free Software Foundation, either version 3 of the License, or (at your
3722 # option) any later version.
3724 # This program is distributed in the hope that it will be useful, but
3725 # WITHOUT ANY WARRANTY; without even the implied warranty of
3726 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
3727 # Public License for more details.
3729 # You should have received a copy of the GNU General Public License along
3730 # with this program. If not, see <http://www.gnu.org/licenses/>.
3732 # As a special exception, the respective Autoconf Macro's copyright owner
3733 # gives unlimited permission to copy, distribute and modify the configure
3734 # scripts that are the output of Autoconf when processing the Macro. You
3735 # need not follow the terms of the GNU General Public License when using
3736 # or distributing such scripts, even though portions of the text of the
3737 # Macro appear in them. The GNU General Public License (GPL) does govern
3738 # all other use of the material that constitutes the Autoconf Macro.
3740 # This special exception to the GPL applies to versions of the Autoconf
3741 # Macro released by the Autoconf Archive. When you make and distribute a
3742 # modified version of the Autoconf Macro, you may extend this special
3743 # exception to the GPL to apply to your modified version as well.
3747 # This is what autoupdate's m4 run will expand. It fires
3748 # the warning (with _au_warn_XXX), outputs it into the
3749 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3750 # the replacement expansion.
3753 # This is an auxiliary macro that is also run when
3754 # autoupdate runs m4. It simply calls m4_warning, but
3755 # we need a wrapper so that each warning is emitted only
3756 # once. We break the quoting in m4_warning's argument in
3757 # order to expand this macro's arguments, not AU_DEFUN's.
3760 # Finally, this is the expansion that is picked up by
3761 # autoconf. It tells the user to run autoupdate, and
3762 # then outputs the replacement expansion. We do not care
3763 # about autoupdate's warning because that contains
3764 # information on what to do *after* running autoupdate.
3768 # This affects CC, LIBS, and CFLAGS, instead of defining new variables.
3771 # Check whether --with-pthread was given.
3772 if test "${with_pthread+set}" = set; then :
3773 withval=$with_pthread; with_pthread="$withval"; with_pthread_req="$withval"
3779 if test "$with_pthread" = yes; then
3780 # AX_PTHREAD might want a different compiler.
3784 ac_cpp='$CPP $CPPFLAGS'
3785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791 # We used to check for pthread.h first, but this fails if pthread.h
3792 # requires special compiler flags (e.g. on True64 or Sequent).
3793 # It gets checked for in the link test anyway.
3795 # First of all, check if the user has set any of the PTHREAD_LIBS,
3796 # etcetera environment variables, and if threads linking works using
3798 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
3799 save_CFLAGS="$CFLAGS"
3800 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
3802 LIBS="$PTHREAD_LIBS $LIBS"
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
3804 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3808 /* Override any GCC internal prototype to avoid an error.
3809 Use char because int might match the return type of a GCC
3810 builtin and then its argument prototype would still apply. */
3814 char pthread_join ();
3818 return pthread_join ();
3823 if ac_fn_c_try_link "$LINENO"; then :
3826 rm -f core conftest.err conftest.$ac_objext \
3827 conftest$ac_exeext conftest.$ac_ext
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
3829 $as_echo "$ax_pthread_ok" >&6; }
3830 if test x"$ax_pthread_ok" = xno; then
3835 CFLAGS="$save_CFLAGS"
3838 # We must check for the threads library under a number of different
3839 # names; the ordering is very important because some systems
3840 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
3841 # libraries is broken (non-POSIX).
3843 # Create a list of thread flags to try. Items starting with a "-" are
3844 # C compiler flags, and other items are library names, except for "none"
3845 # which indicates that we try without any flags at all, and "pthread-config"
3846 # which is a program returning the flags for the Pth emulation library.
3848 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
3850 # The ordering *is* (sometimes) important. Some notes on the
3851 # individual items follow:
3853 # pthreads: AIX (must check this before -lpthread)
3854 # none: in case threads are in libc; should be tried before -Kthread and
3855 # other compiler flags to prevent continual compiler warnings
3856 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
3857 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
3858 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
3859 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
3860 # -pthreads: Solaris/gcc
3861 # -mthreads: Mingw32/gcc, Lynx/gcc
3862 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
3863 # doesn't hurt to check since this sometimes defines pthreads too;
3864 # also defines -D_REENTRANT)
3865 # ... -mt is also the pthreads flag for HP/aCC
3866 # pthread: Linux, etcetera
3867 # --thread-safe: KAI C++
3868 # pthread-config: use pthread-config program (for GNU Pth library)
3873 # On Solaris (at least, for some versions), libc contains stubbed
3874 # (non-functional) versions of the pthreads routines, so link-based
3875 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
3876 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
3877 # a function called by this macro, so we could check for that, but
3878 # who knows whether they'll stub that too in a future libc.) So,
3879 # we'll just look for -pthreads and -lpthread first:
3881 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
3885 ax_pthread_flags="-pthread $ax_pthread_flags"
3889 # Clang doesn't consider unrecognized options an error unless we specify
3890 # -Werror. We throw in some extra Clang-specific options to ensure that
3891 # this doesn't happen for GCC, which also accepts -Werror.
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
3894 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
3895 save_CFLAGS="$CFLAGS"
3896 ax_pthread_extra_flags="-Werror"
3897 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899 /* end confdefs.h. */
3909 if ac_fn_c_try_compile "$LINENO"; then :
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3911 $as_echo "yes" >&6; }
3913 ax_pthread_extra_flags=
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915 $as_echo "no" >&6; }
3917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3918 CFLAGS="$save_CFLAGS"
3920 if test x"$ax_pthread_ok" = xno; then
3921 for flag in $ax_pthread_flags; do
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
3926 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
3931 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
3932 PTHREAD_CFLAGS="$flag"
3936 # Extract the first word of "pthread-config", so it can be a program name with args.
3937 set dummy pthread-config; ac_word=$2
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939 $as_echo_n "checking for $ac_word... " >&6; }
3940 if ${ac_cv_prog_ax_pthread_config+:} false; then :
3941 $as_echo_n "(cached) " >&6
3943 if test -n "$ax_pthread_config"; then
3944 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953 ac_cv_prog_ax_pthread_config="yes"
3954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3961 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
3964 ax_pthread_config=$ac_cv_prog_ax_pthread_config
3965 if test -n "$ax_pthread_config"; then
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
3967 $as_echo "$ax_pthread_config" >&6; }
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 $as_echo "no" >&6; }
3974 if test x"$ax_pthread_config" = xno; then continue; fi
3975 PTHREAD_CFLAGS="`pthread-config --cflags`"
3976 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
3981 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
3982 PTHREAD_LIBS="-l$flag"
3987 save_CFLAGS="$CFLAGS"
3988 LIBS="$PTHREAD_LIBS $LIBS"
3989 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
3991 # Check for various functions. We must include pthread.h,
3992 # since some functions may be macros. (On the Sequent, we
3993 # need a special flag -Kthread to make this header compile.)
3994 # We check for pthread_join because it is in -lpthread on IRIX
3995 # while pthread_create is in libc. We check for pthread_attr_init
3996 # due to DEC craziness with -lpthreads. We check for
3997 # pthread_cleanup_push because it is one of the few pthread
3998 # functions on Solaris that doesn't have a non-functional libc stub.
3999 # We try pthread_create on general principles.
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4002 #include <pthread.h>
4003 static void routine(void *a) { a = 0; }
4004 static void *start_routine(void *a) { return a; }
4008 pthread_t th; pthread_attr_t attr;
4009 pthread_create(&th, 0, start_routine, 0);
4010 pthread_join(th, 0);
4011 pthread_attr_init(&attr);
4012 pthread_cleanup_push(routine, 0);
4013 pthread_cleanup_pop(0) /* ; */
4018 if ac_fn_c_try_link "$LINENO"; then :
4021 rm -f core conftest.err conftest.$ac_objext \
4022 conftest$ac_exeext conftest.$ac_ext
4025 CFLAGS="$save_CFLAGS"
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
4028 $as_echo "$ax_pthread_ok" >&6; }
4029 if test "x$ax_pthread_ok" = xyes; then
4038 # Various other checks:
4039 if test "x$ax_pthread_ok" = xyes; then
4041 LIBS="$PTHREAD_LIBS $LIBS"
4042 save_CFLAGS="$CFLAGS"
4043 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4045 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
4047 $as_echo_n "checking for joinable pthread attribute... " >&6; }
4049 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4052 #include <pthread.h>
4056 int attr = $attr; return attr /* ; */
4061 if ac_fn_c_try_link "$LINENO"; then :
4062 attr_name=$attr; break
4064 rm -f core conftest.err conftest.$ac_objext \
4065 conftest$ac_exeext conftest.$ac_ext
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
4068 $as_echo "$attr_name" >&6; }
4069 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
4071 cat >>confdefs.h <<_ACEOF
4072 #define PTHREAD_CREATE_JOINABLE $attr_name
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
4078 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
4081 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
4082 osf* | hpux*) flag="-D_REENTRANT";;
4084 if test "$GCC" = "yes"; then
4087 # TODO: What about Clang on Solaris?
4088 flag="-mt -D_REENTRANT"
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
4093 $as_echo "$flag" >&6; }
4094 if test "x$flag" != xno; then
4095 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
4099 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
4100 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
4101 $as_echo_n "(cached) " >&6
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4106 #include <pthread.h>
4110 int i = PTHREAD_PRIO_INHERIT;
4115 if ac_fn_c_try_link "$LINENO"; then :
4116 ax_cv_PTHREAD_PRIO_INHERIT=yes
4118 ax_cv_PTHREAD_PRIO_INHERIT=no
4120 rm -f core conftest.err conftest.$ac_objext \
4121 conftest$ac_exeext conftest.$ac_ext
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
4125 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
4126 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
4128 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
4133 CFLAGS="$save_CFLAGS"
4135 # More AIX lossage: compile with *_r variant
4136 if test "x$GCC" != xyes; then
4140 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
4141 #handle absolute path differently from PATH based program lookup
4144 if as_fn_executable_p ${CC}_r; then :
4145 PTHREAD_CC="${CC}_r"
4148 for ac_prog in ${CC}_r
4150 # Extract the first word of "$ac_prog", so it can be a program name with args.
4151 set dummy $ac_prog; ac_word=$2
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4153 $as_echo_n "checking for $ac_word... " >&6; }
4154 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
4155 $as_echo_n "(cached) " >&6
4157 if test -n "$PTHREAD_CC"; then
4158 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 test -z "$as_dir" && as_dir=.
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4167 ac_cv_prog_PTHREAD_CC="$ac_prog"
4168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4177 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
4178 if test -n "$PTHREAD_CC"; then
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
4180 $as_echo "$PTHREAD_CC" >&6; }
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4183 $as_echo "no" >&6; }
4187 test -n "$PTHREAD_CC" && break
4189 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
4200 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
4206 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4207 if test x"$ax_pthread_ok" = xyes; then
4208 if test "$CC" = "$PTHREAD_CC" -o -z "$ac_original_cc"; then
4211 ac_prog_cc_no_pthread=yes
4220 ac_cpp='$CPP $CPPFLAGS'
4221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4227 if test "$have_pthread" = yes; then
4228 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
4232 # AX_PTHREAD documentation specifically suggests this...
4233 LIBS="$PTHREAD_LIBS $LIBS"
4234 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4237 # Needs ac_original_cc.
4241 if test -z "$GCC"; then
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to request ANSI compilation" >&5
4244 $as_echo_n "checking how to request ANSI compilation... " >&6; }
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HPUX: adding -Ae" >&5
4248 $as_echo "HPUX: adding -Ae" >&6; }
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX: adding -qlanglvl=ansi -qhalt=e" >&5
4253 $as_echo "AIX: adding -qlanglvl=ansi -qhalt=e" >&6; }
4254 CC="$CC -qlanglvl=ansi -qhalt=e"
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DEC: adding -std1 -ieee" >&5
4258 $as_echo "DEC: adding -std1 -ieee" >&6; }
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no idea" >&5
4263 $as_echo "no idea" >&6; }
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris: adding -D__EXTENSIONS__" >&5
4271 $as_echo "Solaris: adding -D__EXTENSIONS__" >&6; }
4272 CC="$CC -D__EXTENSIONS__"
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler works on ANSI C" >&5
4280 $as_echo_n "checking whether the compiler works on ANSI C... " >&6; }
4281 if test "$cross_compiling" = yes; then :
4282 as_fn_error $? "Couldn't build even a trivial ANSI C program: check CC." "$LINENO" 5
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286 main(int ac, char **av) { return 0; }
4288 if ac_fn_c_try_run "$LINENO"; then :
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4290 $as_echo "yes" >&6; }
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4293 $as_echo "no" >&6; }
4294 as_fn_error $? "Couldn't build even a trivial ANSI C program: check CC." "$LINENO" 5
4296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4297 conftest.$ac_objext conftest.beam conftest.$ac_ext
4301 if test -n "$GCC"; then
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Turning on gcc compiler warnings." >&5
4303 $as_echo "Turning on gcc compiler warnings." >&6; }
4304 CC="$CC -pedantic -Wall -Wstrict-prototypes -Wnested-externs -Wmissing-prototypes"
4305 OBJCC="$OBJCC -Wall"
4306 # As of gcc 3.4, we have "-Wdeclaration-after-statement"
4307 # and so perhaps now we can do without -pedantic?
4310 *-irix5* |*-irix6.0-3* )
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Turning on SGI compiler warnings." >&5
4312 $as_echo "Turning on SGI compiler warnings." >&6; }
4313 CC="$CC -fullwarn -use_readonly_const -rdata_shared -g3"
4316 # if test -z "$GCC"; then
4317 # AC_MSG_RESULT(Turning on DEC C compiler warnings.)
4318 # CC="$CC -migrate -w0 -verbose -warnprotos"
4324 if test -n "$GCC"; then
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wno-overlength-strings" >&5
4326 $as_echo_n "checking whether gcc accepts -Wno-overlength-strings... " >&6; }
4327 if ${ac_cv_gcc_accepts_no_overlength+:} false; then :
4328 $as_echo_n "(cached) " >&6
4330 rm -rf conftest.$ac_ext
4331 touch conftest.$ac_ext
4332 if ( ( gcc -c -Wno-overlength-strings conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
4333 grep unrecognized >/dev/null ); then
4334 ac_cv_gcc_accepts_no_overlength=no
4336 ac_cv_gcc_accepts_no_overlength=yes
4337 CC="$CC -Wno-overlength-strings"
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_accepts_no_overlength" >&5
4341 $as_echo "$ac_cv_gcc_accepts_no_overlength" >&6; }
4342 ac_gcc_accepts_no_overlength="$ac_cv_gcc_accepts_no_overlength"
4345 if test -n "$GCC"; then
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wdeclaration-after-statement" >&5
4347 $as_echo_n "checking whether gcc accepts -Wdeclaration-after-statement... " >&6; }
4348 if ${ac_cv_gcc_accepts_no_decl_after+:} false; then :
4349 $as_echo_n "(cached) " >&6
4351 rm -rf conftest.$ac_ext
4352 touch conftest.$ac_ext
4353 if ( ( gcc -c -Wdeclaration-after-statement conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
4354 grep unrecognized >/dev/null ); then
4355 ac_cv_gcc_accepts_no_decl_after=no
4357 ac_cv_gcc_accepts_no_decl_after=yes
4358 CC="$CC -Wdeclaration-after-statement"
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_accepts_no_decl_after" >&5
4362 $as_echo "$ac_cv_gcc_accepts_no_decl_after" >&6; }
4363 ac_gcc_accepts_no_decl_after="$ac_cv_gcc_accepts_no_decl_after"
4366 if test -n "$GCC"; then
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -no-cpp-precomp" >&5
4368 $as_echo_n "checking whether gcc accepts -no-cpp-precomp... " >&6; }
4369 if ${ac_cv_gcc_accepts_no_cpp_precomp+:} false; then :
4370 $as_echo_n "(cached) " >&6
4372 rm -rf conftest.$ac_ext
4373 touch conftest.$ac_ext
4374 if ( ( gcc -c -no-cpp-precomp conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
4375 grep unrecognized >/dev/null ); then
4376 ac_cv_gcc_accepts_no_cpp_precomp=no
4378 ac_cv_gcc_accepts_no_cpp_precomp=yes
4379 CC="$CC -no-cpp-precomp"
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_accepts_no_cpp_precomp" >&5
4383 $as_echo "$ac_cv_gcc_accepts_no_cpp_precomp" >&6; }
4384 ac_gcc_accepts_no_cpp_precomp="$ac_cv_gcc_accepts_no_cpp_precomp"
4387 if test -n "$GCC"; then
4391 # Fucking Apple let // comments sneak into OpenGL headers, so
4392 # we *must* allow // comments when compiling on Mac OS 10.6! FUCK!
4395 if test -n "$GCC"; then
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -std=c89" >&5
4397 $as_echo_n "checking whether gcc accepts -std=c89... " >&6; }
4398 if ${ac_cv_gcc_accepts_std+:} false; then :
4399 $as_echo_n "(cached) " >&6
4401 rm -rf conftest.$ac_ext
4402 touch conftest.$ac_ext
4403 if ( ( gcc -c -std=c89 conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
4404 grep unrecognized >/dev/null ); then
4405 ac_cv_gcc_accepts_std=no
4407 ac_cv_gcc_accepts_std=yes
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_accepts_std" >&5
4412 $as_echo "$ac_cv_gcc_accepts_std" >&6; }
4413 ac_gcc_accepts_std="$ac_cv_gcc_accepts_std"
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling C++ comments in ANSI C code." >&5
4420 $as_echo "Disabling C++ comments in ANSI C code." >&6; }
4422 # The reason that // comments are banned from xscreensaver is that gcc is
4423 # basically the only compiler in the world that supports them in C code.
4424 # All other vendors support them only in their C++ compilers, not in their
4425 # ANSI C compilers. This means that it's a portability problem: every time
4426 # these comments have snuck into the xscreensaver source code, I've gotten
4427 # complaints about it the next day. So we turn off support for them in gcc
4428 # as well to prevent them from accidentially slipping in.
4430 if test "$ac_gcc_accepts_std" = yes ; then
4432 # -std=c89 defines __STRICT_ANSI__, which we don't want.
4433 # (That appears to be the only additional preprocessor symbol
4434 # it defines, in addition to the syntax changes it makes.)
4436 # -std=gnu89 is no good, because // comments were a GNU extension
4437 # before they were in the ANSI C 99 spec... (gcc 2.96 permits //
4438 # with -std=gnu89 but not with -std=c89.)
4440 # $CC already contains "-std=c89" via AC_GCC_ACCEPTS_STD
4441 CC="$CC -U__STRICT_ANSI__"
4444 # CC="$CC -Wp,-lang-c89"
4449 ac_cpp='$CPP $CPPFLAGS'
4450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4454 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4455 # On Suns, sometimes $CPP names a directory.
4456 if test -n "$CPP" && test -d "$CPP"; then
4459 if test -z "$CPP"; then
4460 if ${ac_cv_prog_CPP+:} false; then :
4461 $as_echo_n "(cached) " >&6
4463 # Double quotes because CPP needs to be expanded
4464 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4467 for ac_c_preproc_warn_flag in '' yes
4469 # Use a header file that comes with gcc, so configuring glibc
4470 # with a fresh cross-compiler works.
4471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4472 # <limits.h> exists even on freestanding compilers.
4473 # On the NeXT, cc -E runs the code through the compiler's parser,
4474 # not just through cpp. "Syntax error" is here to catch this case.
4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h. */
4478 # include <limits.h>
4480 # include <assert.h>
4484 if ac_fn_c_try_cpp "$LINENO"; then :
4487 # Broken: fails on valid input.
4490 rm -rf conftest.err conftest.i conftest.$ac_ext
4492 # OK, works on sane cases. Now check whether nonexistent headers
4493 # can be detected and how.
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4496 #include <ac_nonexistent.h>
4498 if ac_fn_c_try_cpp "$LINENO"; then :
4499 # Broken: success on invalid input.
4502 # Passes both tests.
4506 rm -rf conftest.err conftest.i conftest.$ac_ext
4509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4510 rm -rf conftest.i conftest.err conftest.$ac_ext
4511 if $ac_preproc_ok; then :
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4524 $as_echo "$CPP" >&6; }
4526 for ac_c_preproc_warn_flag in '' yes
4528 # Use a header file that comes with gcc, so configuring glibc
4529 # with a fresh cross-compiler works.
4530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4531 # <limits.h> exists even on freestanding compilers.
4532 # On the NeXT, cc -E runs the code through the compiler's parser,
4533 # not just through cpp. "Syntax error" is here to catch this case.
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4537 # include <limits.h>
4539 # include <assert.h>
4543 if ac_fn_c_try_cpp "$LINENO"; then :
4546 # Broken: fails on valid input.
4549 rm -rf conftest.err conftest.i conftest.$ac_ext
4551 # OK, works on sane cases. Now check whether nonexistent headers
4552 # can be detected and how.
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4555 #include <ac_nonexistent.h>
4557 if ac_fn_c_try_cpp "$LINENO"; then :
4558 # Broken: success on invalid input.
4561 # Passes both tests.
4565 rm -rf conftest.err conftest.i conftest.$ac_ext
4568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4569 rm -rf conftest.i conftest.err conftest.$ac_ext
4570 if $ac_preproc_ok; then :
4573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4575 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4576 See \`config.log' for more details" "$LINENO" 5; }
4580 ac_cpp='$CPP $CPPFLAGS'
4581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4586 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4587 if ${ac_cv_c_const+:} false; then :
4588 $as_echo_n "(cached) " >&6
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4598 /* Ultrix mips cc rejects this sort of thing. */
4599 typedef int charset[2];
4600 const charset cs = { 0, 0 };
4601 /* SunOS 4.1.1 cc rejects this. */
4602 char const *const *pcpcc;
4604 /* NEC SVR4.0.2 mips cc rejects this. */
4605 struct point {int x, y;};
4606 static struct point const zero = {0,0};
4607 /* AIX XL C 1.02.0.0 rejects this.
4608 It does not let you subtract one const X* pointer from another in
4609 an arm of an if-expression whose if-part is not a constant
4611 const char *g = "string";
4612 pcpcc = &g + (g ? g-g : 0);
4613 /* HPUX 7.0 cc rejects these. */
4615 ppc = (char**) pcpcc;
4616 pcpcc = (char const *const *) ppc;
4617 { /* SCO 3.2v4 cc rejects this sort of thing. */
4620 char const *s = 0 ? (char *) 0 : (char const *) 0;
4625 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4627 const int *foo = &x[0];
4630 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4631 typedef const int *iptr;
4635 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4636 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4637 struct s { int j; const int *ap[3]; } bx;
4638 struct s *b = &bx; b->j = 5;
4640 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4644 return !cs[0] && !zero.x;
4651 if ac_fn_c_try_compile "$LINENO"; then :
4656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4659 $as_echo "$ac_cv_c_const" >&6; }
4660 if test $ac_cv_c_const = no; then
4662 $as_echo "#define const /**/" >>confdefs.h
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4667 $as_echo_n "checking for inline... " >&6; }
4668 if ${ac_cv_c_inline+:} false; then :
4669 $as_echo_n "(cached) " >&6
4672 for ac_kw in inline __inline__ __inline; do
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4677 static $ac_kw foo_t static_foo () {return 0; }
4678 $ac_kw foo_t foo () {return 0; }
4682 if ac_fn_c_try_compile "$LINENO"; then :
4683 ac_cv_c_inline=$ac_kw
4685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4686 test "$ac_cv_c_inline" != no && break
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4691 $as_echo "$ac_cv_c_inline" >&6; }
4693 case $ac_cv_c_inline in
4696 case $ac_cv_c_inline in
4698 *) ac_val=$ac_cv_c_inline;;
4700 cat >>confdefs.h <<_ACEOF
4702 #define inline $ac_val
4709 ac_bc_result=`echo 6+9 | bc 2>/dev/null`
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bc" >&5
4711 $as_echo_n "checking for bc... " >&6; }
4712 if test "$ac_bc_result" = "15" ; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4714 $as_echo "yes" >&6; }
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4719 as_fn_error $? "Your system doesn't have \"bc\", which has been a standard
4720 part of Unix since the 1970s. Come back when your vendor
4721 has grown a clue." "$LINENO" 5
4725 # stuff for Makefiles
4726 # Find a good install program. We prefer a C program (faster),
4727 # so one script is as good as another. But avoid the broken or
4728 # incompatible versions:
4729 # SysV /etc/install, /usr/sbin/install
4730 # SunOS /usr/etc/install
4731 # IRIX /sbin/install
4733 # AmigaOS /C/install, which installs bootblocks on floppy discs
4734 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4735 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4736 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4737 # OS/2's system install, which has a completely different semantic
4738 # ./install, which can be erroneously created by make from ./install.sh.
4739 # Reject install programs that cannot install multiple files.
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4741 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4742 if test -z "$INSTALL"; then
4743 if ${ac_cv_path_install+:} false; then :
4744 $as_echo_n "(cached) " >&6
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 test -z "$as_dir" && as_dir=.
4751 # Account for people who put trailing slashes in PATH elements.
4752 case $as_dir/ in #((
4753 ./ | .// | /[cC]/* | \
4754 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4755 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4758 # OSF1 and SCO ODT 3.0 have their own names for install.
4759 # Don't use installbsd from OSF since it installs stuff as root
4761 for ac_prog in ginstall scoinst install; do
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4764 if test $ac_prog = install &&
4765 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4766 # AIX install. It has an incompatible calling convention.
4768 elif test $ac_prog = install &&
4769 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4770 # program-specific install script used by HP pwplus--don't use.
4773 rm -rf conftest.one conftest.two conftest.dir
4774 echo one > conftest.one
4775 echo two > conftest.two
4777 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4778 test -s conftest.one && test -s conftest.two &&
4779 test -s conftest.dir/conftest.one &&
4780 test -s conftest.dir/conftest.two
4782 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4795 rm -rf conftest.one conftest.two conftest.dir
4798 if test "${ac_cv_path_install+set}" = set; then
4799 INSTALL=$ac_cv_path_install
4801 # As a last resort, use the slow shell script. Don't cache a
4802 # value for INSTALL within a source directory, because that will
4803 # break other packages using the cache if that directory is
4804 # removed, or if the value is a relative name.
4805 INSTALL=$ac_install_sh
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4809 $as_echo "$INSTALL" >&6; }
4811 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4812 # It thinks the first close brace ends the variable substitution.
4813 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4815 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4817 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \"\${INSTALL} -d\" creates intermediate directories" >&5
4820 $as_echo_n "checking whether \"\${INSTALL} -d\" creates intermediate directories... " >&6; }
4821 if ${ac_cv_install_d_creates_dirs+:} false; then :
4822 $as_echo_n "(cached) " >&6
4824 ac_cv_install_d_creates_dirs=no
4826 if mkdir conftestdir; then
4827 cd conftestdir 2>/dev/null
4828 ${INSTALL} -d `pwd`/dir1/dir2 >/dev/null 2>&1
4829 if test -d dir1/dir2/. ; then
4830 ac_cv_install_d_creates_dirs=yes
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_install_d_creates_dirs" >&5
4838 $as_echo "$ac_cv_install_d_creates_dirs" >&6; }
4840 if test "$ac_cv_install_d_creates_dirs" = no ; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \"mkdir -p\" creates intermediate directories" >&5
4842 $as_echo_n "checking whether \"mkdir -p\" creates intermediate directories... " >&6; }
4843 if ${ac_cv_mkdir_p_creates_dirs+:} false; then :
4844 $as_echo_n "(cached) " >&6
4846 ac_cv_mkdir_p_creates_dirs=no
4848 if mkdir conftestdir; then
4849 cd conftestdir 2>/dev/null
4850 mkdir -p dir1/dir2 >/dev/null 2>&1
4851 if test -d dir1/dir2/. ; then
4852 ac_cv_mkdir_p_creates_dirs=yes
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_p_creates_dirs" >&5
4860 $as_echo "$ac_cv_mkdir_p_creates_dirs" >&6; }
4863 if test "$ac_cv_install_d_creates_dirs" = yes ; then
4864 INSTALL_DIRS='${INSTALL} -d'
4865 elif test "$ac_cv_mkdir_p_creates_dirs" = yes ; then
4866 INSTALL_DIRS='mkdir -p'
4869 INSTALL_DIRS='${INSTALL} -d'
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4873 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4875 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4876 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4877 $as_echo_n "(cached) " >&6
4879 cat >conftest.make <<\_ACEOF
4882 @echo '@@@%%%=$(MAKE)=@@@%%%'
4884 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4885 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4887 eval ac_cv_prog_make_${ac_make}_set=yes;;
4889 eval ac_cv_prog_make_${ac_make}_set=no;;
4891 rm -rf conftest.make
4893 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4895 $as_echo "yes" >&6; }
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4900 SET_MAKE="MAKE=${MAKE-make}"
4904 # By default, autoconf sets INSTALL_SCRIPT to '${INSTALL_PROGRAM}'.
4905 # That's wrong: it should be set to '${INSTALL}', so that one can
4906 # implement the "install-strip" target properly (strip executables,
4907 # but do not try to strip scripts.)
4909 INSTALL_SCRIPT='${INSTALL}'
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4914 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4915 if ${ac_cv_path_GREP+:} false; then :
4916 $as_echo_n "(cached) " >&6
4918 if test -z "$GREP"; then
4919 ac_path_GREP_found=false
4920 # Loop through the user's path and test for each of PROGNAME-LIST
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4925 test -z "$as_dir" && as_dir=.
4926 for ac_prog in grep ggrep; do
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4929 as_fn_executable_p "$ac_path_GREP" || continue
4930 # Check for GNU ac_path_GREP and select it if it is found.
4931 # Check for GNU $ac_path_GREP
4932 case `"$ac_path_GREP" --version 2>&1` in
4934 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4937 $as_echo_n 0123456789 >"conftest.in"
4940 cat "conftest.in" "conftest.in" >"conftest.tmp"
4941 mv "conftest.tmp" "conftest.in"
4942 cp "conftest.in" "conftest.nl"
4943 $as_echo 'GREP' >> "conftest.nl"
4944 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4946 as_fn_arith $ac_count + 1 && ac_count=$as_val
4947 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4948 # Best one so far, save it but keep looking for a better one
4949 ac_cv_path_GREP="$ac_path_GREP"
4950 ac_path_GREP_max=$ac_count
4952 # 10*(2^10) chars as input seems more than enough
4953 test $ac_count -gt 10 && break
4955 rm -rf conftest.in conftest.tmp conftest.nl conftest.out;;
4958 $ac_path_GREP_found && break 3
4963 if test -z "$ac_cv_path_GREP"; then
4964 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4967 ac_cv_path_GREP=$GREP
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4972 $as_echo "$ac_cv_path_GREP" >&6; }
4973 GREP="$ac_cv_path_GREP"
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4977 $as_echo_n "checking for egrep... " >&6; }
4978 if ${ac_cv_path_EGREP+:} false; then :
4979 $as_echo_n "(cached) " >&6
4981 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4982 then ac_cv_path_EGREP="$GREP -E"
4984 if test -z "$EGREP"; then
4985 ac_path_EGREP_found=false
4986 # Loop through the user's path and test for each of PROGNAME-LIST
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4991 test -z "$as_dir" && as_dir=.
4992 for ac_prog in egrep; do
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4995 as_fn_executable_p "$ac_path_EGREP" || continue
4996 # Check for GNU ac_path_EGREP and select it if it is found.
4997 # Check for GNU $ac_path_EGREP
4998 case `"$ac_path_EGREP" --version 2>&1` in
5000 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5003 $as_echo_n 0123456789 >"conftest.in"
5006 cat "conftest.in" "conftest.in" >"conftest.tmp"
5007 mv "conftest.tmp" "conftest.in"
5008 cp "conftest.in" "conftest.nl"
5009 $as_echo 'EGREP' >> "conftest.nl"
5010 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5011 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5012 as_fn_arith $ac_count + 1 && ac_count=$as_val
5013 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5014 # Best one so far, save it but keep looking for a better one
5015 ac_cv_path_EGREP="$ac_path_EGREP"
5016 ac_path_EGREP_max=$ac_count
5018 # 10*(2^10) chars as input seems more than enough
5019 test $ac_count -gt 10 && break
5021 rm -rf conftest.in conftest.tmp conftest.nl conftest.out;;
5024 $ac_path_EGREP_found && break 3
5029 if test -z "$ac_cv_path_EGREP"; then
5030 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5033 ac_cv_path_EGREP=$EGREP
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5039 $as_echo "$ac_cv_path_EGREP" >&6; }
5040 EGREP="$ac_cv_path_EGREP"
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5044 $as_echo_n "checking for ANSI C header files... " >&6; }
5045 if ${ac_cv_header_stdc+:} false; then :
5046 $as_echo_n "(cached) " >&6
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5063 if ac_fn_c_try_compile "$LINENO"; then :
5064 ac_cv_header_stdc=yes
5066 ac_cv_header_stdc=no
5068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5070 if test $ac_cv_header_stdc = yes; then
5071 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5073 /* end confdefs.h. */
5077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5078 $EGREP "memchr" >/dev/null 2>&1; then :
5081 ac_cv_header_stdc=no
5087 if test $ac_cv_header_stdc = yes; then
5088 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5095 $EGREP "free" >/dev/null 2>&1; then :
5098 ac_cv_header_stdc=no
5104 if test $ac_cv_header_stdc = yes; then
5105 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5106 if test "$cross_compiling" = yes; then :
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5113 #if ((' ' & 0x0FF) == 0x020)
5114 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5115 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5117 # define ISLOWER(c) \
5118 (('a' <= (c) && (c) <= 'i') \
5119 || ('j' <= (c) && (c) <= 'r') \
5120 || ('s' <= (c) && (c) <= 'z'))
5121 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5124 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5129 for (i = 0; i < 256; i++)
5130 if (XOR (islower (i), ISLOWER (i))
5131 || toupper (i) != TOUPPER (i))
5136 if ac_fn_c_try_run "$LINENO"; then :
5139 ac_cv_header_stdc=no
5141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5142 conftest.$ac_objext conftest.beam conftest.$ac_ext
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5148 $as_echo "$ac_cv_header_stdc" >&6; }
5149 if test $ac_cv_header_stdc = yes; then
5151 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5155 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5156 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5157 inttypes.h stdint.h unistd.h
5159 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5160 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5162 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5163 cat >>confdefs.h <<_ACEOF
5164 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5172 for ac_header in unistd.h
5174 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5175 if test "x$ac_cv_header_unistd_h" = xyes; then :
5176 cat >>confdefs.h <<_ACEOF
5177 #define HAVE_UNISTD_H 1
5184 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5185 if test "x$ac_cv_type_mode_t" = xyes; then :
5189 cat >>confdefs.h <<_ACEOF
5195 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5196 if test "x$ac_cv_type_pid_t" = xyes; then :
5200 cat >>confdefs.h <<_ACEOF
5206 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5207 if test "x$ac_cv_type_size_t" = xyes; then :
5211 cat >>confdefs.h <<_ACEOF
5212 #define size_t unsigned int
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5218 $as_echo_n "checking return type of signal handlers... " >&6; }
5219 if ${ac_cv_type_signal+:} false; then :
5220 $as_echo_n "(cached) " >&6
5222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5223 /* end confdefs.h. */
5224 #include <sys/types.h>
5230 return *(signal (0, 0)) (0) == 1;
5235 if ac_fn_c_try_compile "$LINENO"; then :
5236 ac_cv_type_signal=int
5238 ac_cv_type_signal=void
5240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5243 $as_echo "$ac_cv_type_signal" >&6; }
5245 cat >>confdefs.h <<_ACEOF
5246 #define RETSIGTYPE $ac_cv_type_signal
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5251 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5252 if ${ac_cv_header_time+:} false; then :
5253 $as_echo_n "(cached) " >&6
5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5257 #include <sys/types.h>
5258 #include <sys/time.h>
5264 if ((struct tm *) 0)
5270 if ac_fn_c_try_compile "$LINENO"; then :
5271 ac_cv_header_time=yes
5273 ac_cv_header_time=no
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5278 $as_echo "$ac_cv_header_time" >&6; }
5279 if test $ac_cv_header_time = yes; then
5281 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5286 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5287 if ${ac_cv_header_sys_wait_h+:} false; then :
5288 $as_echo_n "(cached) " >&6
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5292 #include <sys/types.h>
5293 #include <sys/wait.h>
5295 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5298 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5306 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5311 if ac_fn_c_try_compile "$LINENO"; then :
5312 ac_cv_header_sys_wait_h=yes
5314 ac_cv_header_sys_wait_h=no
5316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5319 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5320 if test $ac_cv_header_sys_wait_h = yes; then
5322 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5327 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5328 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5330 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5331 if eval \${$as_ac_Header+:} false; then :
5332 $as_echo_n "(cached) " >&6
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335 /* end confdefs.h. */
5336 #include <sys/types.h>
5348 if ac_fn_c_try_compile "$LINENO"; then :
5349 eval "$as_ac_Header=yes"
5351 eval "$as_ac_Header=no"
5353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355 eval ac_res=\$$as_ac_Header
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5357 $as_echo "$ac_res" >&6; }
5358 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5359 cat >>confdefs.h <<_ACEOF
5360 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5363 ac_header_dirent=$ac_hdr; break
5367 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5368 if test $ac_header_dirent = dirent.h; then
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5370 $as_echo_n "checking for library containing opendir... " >&6; }
5371 if ${ac_cv_search_opendir+:} false; then :
5372 $as_echo_n "(cached) " >&6
5374 ac_func_search_save_LIBS=$LIBS
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5378 /* Override any GCC internal prototype to avoid an error.
5379 Use char because int might match the return type of a GCC
5380 builtin and then its argument prototype would still apply. */
5393 for ac_lib in '' dir; do
5394 if test -z "$ac_lib"; then
5395 ac_res="none required"
5398 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5400 if ac_fn_c_try_link "$LINENO"; then :
5401 ac_cv_search_opendir=$ac_res
5403 rm -f core conftest.err conftest.$ac_objext \
5405 if ${ac_cv_search_opendir+:} false; then :
5409 if ${ac_cv_search_opendir+:} false; then :
5412 ac_cv_search_opendir=no
5415 LIBS=$ac_func_search_save_LIBS
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5418 $as_echo "$ac_cv_search_opendir" >&6; }
5419 ac_res=$ac_cv_search_opendir
5420 if test "$ac_res" != no; then :
5421 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5427 $as_echo_n "checking for library containing opendir... " >&6; }
5428 if ${ac_cv_search_opendir+:} false; then :
5429 $as_echo_n "(cached) " >&6
5431 ac_func_search_save_LIBS=$LIBS
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h. */
5435 /* Override any GCC internal prototype to avoid an error.
5436 Use char because int might match the return type of a GCC
5437 builtin and then its argument prototype would still apply. */
5450 for ac_lib in '' x; do
5451 if test -z "$ac_lib"; then
5452 ac_res="none required"
5455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5457 if ac_fn_c_try_link "$LINENO"; then :
5458 ac_cv_search_opendir=$ac_res
5460 rm -f core conftest.err conftest.$ac_objext \
5462 if ${ac_cv_search_opendir+:} false; then :
5466 if ${ac_cv_search_opendir+:} false; then :
5469 ac_cv_search_opendir=no
5472 LIBS=$ac_func_search_save_LIBS
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5475 $as_echo "$ac_cv_search_opendir" >&6; }
5476 ac_res=$ac_cv_search_opendir
5477 if test "$ac_res" != no; then :
5478 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to call gettimeofday" >&5
5485 $as_echo_n "checking how to call gettimeofday... " >&6; }
5486 if ${ac_cv_gettimeofday_args+:} false; then :
5487 $as_echo_n "(cached) " >&6
5489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490 /* end confdefs.h. */
5492 #include <sys/time.h>
5496 struct timeval tv; struct timezone tzp;
5497 gettimeofday(&tv, &tzp);
5502 if ac_fn_c_try_compile "$LINENO"; then :
5503 ac_gettimeofday_args=2
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5508 #include <sys/time.h>
5512 struct timeval tv; gettimeofday(&tv);
5517 if ac_fn_c_try_compile "$LINENO"; then :
5518 ac_gettimeofday_args=1
5520 ac_gettimeofday_args=0
5522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525 ac_cv_gettimeofday_args=$ac_gettimeofday_args
5528 ac_gettimeofday_args=$ac_cv_gettimeofday_args
5529 if test "$ac_gettimeofday_args" = 1 ; then
5530 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: one argument" >&5
5533 $as_echo "one argument" >&6; }
5534 elif test "$ac_gettimeofday_args" = 2 ; then
5535 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
5537 $as_echo "#define GETTIMEOFDAY_TWO_ARGS 1" >>confdefs.h
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: two arguments" >&5
5540 $as_echo "two arguments" >&6; }
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
5543 $as_echo "unknown" >&6; }
5546 # Check whether --enable-largefile was given.
5547 if test "${enable_largefile+set}" = set; then :
5548 enableval=$enable_largefile;
5551 if test "$enable_largefile" != no; then
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5554 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5555 if ${ac_cv_sys_largefile_CC+:} false; then :
5556 $as_echo_n "(cached) " >&6
5558 ac_cv_sys_largefile_CC=no
5559 if test "$GCC" != yes; then
5562 # IRIX 6.2 and later do not support large files by default,
5563 # so use the C compiler's -n32 option if that helps.
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5566 #include <sys/types.h>
5567 /* Check that off_t can represent 2**63 - 1 correctly.
5568 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5569 since some C++ compilers masquerading as C compilers
5570 incorrectly reject 9223372036854775807. */
5571 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5572 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5573 && LARGE_OFF_T % 2147483647 == 1)
5583 if ac_fn_c_try_compile "$LINENO"; then :
5586 rm -f core conftest.err conftest.$ac_objext
5588 if ac_fn_c_try_compile "$LINENO"; then :
5589 ac_cv_sys_largefile_CC=' -n32'; break
5591 rm -f core conftest.err conftest.$ac_objext
5595 rm -rf conftest.$ac_ext
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5599 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5600 if test "$ac_cv_sys_largefile_CC" != no; then
5601 CC=$CC$ac_cv_sys_largefile_CC
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5605 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5606 if ${ac_cv_sys_file_offset_bits+:} false; then :
5607 $as_echo_n "(cached) " >&6
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5612 #include <sys/types.h>
5613 /* Check that off_t can represent 2**63 - 1 correctly.
5614 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5615 since some C++ compilers masquerading as C compilers
5616 incorrectly reject 9223372036854775807. */
5617 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5618 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5619 && LARGE_OFF_T % 2147483647 == 1)
5629 if ac_fn_c_try_compile "$LINENO"; then :
5630 ac_cv_sys_file_offset_bits=no; break
5632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5635 #define _FILE_OFFSET_BITS 64
5636 #include <sys/types.h>
5637 /* Check that off_t can represent 2**63 - 1 correctly.
5638 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5639 since some C++ compilers masquerading as C compilers
5640 incorrectly reject 9223372036854775807. */
5641 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5643 && LARGE_OFF_T % 2147483647 == 1)
5653 if ac_fn_c_try_compile "$LINENO"; then :
5654 ac_cv_sys_file_offset_bits=64; break
5656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5657 ac_cv_sys_file_offset_bits=unknown
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5662 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5663 case $ac_cv_sys_file_offset_bits in #(
5666 cat >>confdefs.h <<_ACEOF
5667 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5672 if test $ac_cv_sys_file_offset_bits = unknown; then
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5674 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5675 if ${ac_cv_sys_large_files+:} false; then :
5676 $as_echo_n "(cached) " >&6
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5681 #include <sys/types.h>
5682 /* Check that off_t can represent 2**63 - 1 correctly.
5683 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5684 since some C++ compilers masquerading as C compilers
5685 incorrectly reject 9223372036854775807. */
5686 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5687 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5688 && LARGE_OFF_T % 2147483647 == 1)
5698 if ac_fn_c_try_compile "$LINENO"; then :
5699 ac_cv_sys_large_files=no; break
5701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5704 #define _LARGE_FILES 1
5705 #include <sys/types.h>
5706 /* Check that off_t can represent 2**63 - 1 correctly.
5707 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5708 since some C++ compilers masquerading as C compilers
5709 incorrectly reject 9223372036854775807. */
5710 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5711 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5712 && LARGE_OFF_T % 2147483647 == 1)
5722 if ac_fn_c_try_compile "$LINENO"; then :
5723 ac_cv_sys_large_files=1; break
5725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5726 ac_cv_sys_large_files=unknown
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5731 $as_echo "$ac_cv_sys_large_files" >&6; }
5732 case $ac_cv_sys_large_files in #(
5735 cat >>confdefs.h <<_ACEOF
5736 #define _LARGE_FILES $ac_cv_sys_large_files
5746 for ac_func in select fcntl uname nice setpriority getcwd getwd putenv sbrk
5748 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5749 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5750 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5751 cat >>confdefs.h <<_ACEOF
5752 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5758 for ac_func in sigaction syslog realpath setrlimit
5760 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5761 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5762 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5763 cat >>confdefs.h <<_ACEOF
5764 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5770 for ac_func in setlocale
5772 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
5773 if test "x$ac_cv_func_setlocale" = xyes; then :
5774 cat >>confdefs.h <<_ACEOF
5775 #define HAVE_SETLOCALE 1
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct icmp" >&5
5782 $as_echo_n "checking for struct icmp... " >&6; }
5783 if ${ac_cv_have_icmp+:} false; then :
5784 $as_echo_n "(cached) " >&6
5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787 /* end confdefs.h. */
5795 #include <sys/types.h>
5796 #include <sys/time.h>
5797 #include <sys/ipc.h>
5798 #include <sys/shm.h>
5799 #include <sys/socket.h>
5800 #include <netinet/in_systm.h>
5801 #include <netinet/in.h>
5802 #include <netinet/ip.h>
5803 #include <netinet/ip_icmp.h>
5804 #include <netinet/udp.h>
5805 #include <arpa/inet.h>
5812 struct sockaddr_in si;
5814 i.icmp_type = ICMP_ECHO;
5819 si.sin_family = AF_INET;
5820 #if defined(__DECC) || defined(_IP_VHL)
5830 if ac_fn_c_try_compile "$LINENO"; then :
5835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_icmp" >&5
5838 $as_echo "$ac_cv_have_icmp" >&6; }
5839 if test "$ac_cv_have_icmp" = yes ; then
5840 $as_echo "#define HAVE_ICMP 1" >>confdefs.h
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct icmphdr" >&5
5844 $as_echo_n "checking for struct icmphdr... " >&6; }
5845 if ${ac_cv_have_icmphdr+:} false; then :
5846 $as_echo_n "(cached) " >&6
5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849 /* end confdefs.h. */
5857 #include <sys/types.h>
5858 #include <sys/time.h>
5859 #include <sys/ipc.h>
5860 #include <sys/shm.h>
5861 #include <sys/socket.h>
5862 #include <netinet/in_systm.h>
5863 #include <netinet/in.h>
5864 #include <netinet/ip.h>
5865 #include <netinet/ip_icmp.h>
5866 #include <netinet/udp.h>
5867 #include <arpa/inet.h>
5874 struct sockaddr_in si;
5880 i.un.echo.sequence = 0;
5881 si.sin_family = AF_INET;
5887 if ac_fn_c_try_compile "$LINENO"; then :
5888 ac_cv_have_icmphdr=yes
5890 ac_cv_have_icmphdr=no
5892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_icmphdr" >&5
5895 $as_echo "$ac_cv_have_icmphdr" >&6; }
5896 if test "$ac_cv_have_icmphdr" = yes ; then
5897 $as_echo "#define HAVE_ICMPHDR 1" >>confdefs.h
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getifaddrs" >&5
5901 $as_echo_n "checking for getifaddrs... " >&6; }
5902 if ${ac_cv_have_getifaddrs+:} false; then :
5903 $as_echo_n "(cached) " >&6
5905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906 /* end confdefs.h. */
5909 #include <arpa/inet.h>
5910 #include <ifaddrs.h>
5914 struct ifaddrs *ifa;
5917 ifa->ifa_addr->sa_family = 0;
5922 if ac_fn_c_try_compile "$LINENO"; then :
5923 ac_cv_have_getifaddrs=yes
5925 ac_cv_have_getifaddrs=no
5927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getifaddrs" >&5
5930 $as_echo "$ac_cv_have_getifaddrs" >&6; }
5931 if test "$ac_cv_have_getifaddrs" = yes ; then
5932 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
5935 for ac_header in crypt.h sys/select.h
5937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5938 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5939 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5940 cat >>confdefs.h <<_ACEOF
5941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5948 for ac_prog in perl5 perl
5950 # Extract the first word of "$ac_prog", so it can be a program name with args.
5951 set dummy $ac_prog; ac_word=$2
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953 $as_echo_n "checking for $ac_word... " >&6; }
5954 if ${ac_cv_path_PERL+:} false; then :
5955 $as_echo_n "(cached) " >&6
5959 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 test -z "$as_dir" && as_dir=.
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5980 PERL=$ac_cv_path_PERL
5981 if test -n "$PERL"; then
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5983 $as_echo "$PERL" >&6; }
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5986 $as_echo "no" >&6; }
5990 test -n "$PERL" && break
5993 if test -z "$PERL" ; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
5997 $as_echo_n "checking perl version... " >&6; }
5998 if ${ac_cv_perl_version+:} false; then :
5999 $as_echo_n "(cached) " >&6
6001 ac_cv_perl_version=`$PERL -e "$perl_version_cmd"`
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_perl_version" >&5
6004 $as_echo "$ac_cv_perl_version" >&6; }
6005 PERL_VERSION=$ac_cv_perl_version
6009 if test -z "$PERL" ; then
6010 # don't let it be blank...
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6015 $as_echo_n "checking for X... " >&6; }
6018 # Check whether --with-x was given.
6019 if test "${with_x+set}" = set; then :
6023 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6024 if test "x$with_x" = xno; then
6025 # The user explicitly disabled X.
6028 case $x_includes,$x_libraries in #(
6029 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
6030 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
6031 $as_echo_n "(cached) " >&6
6033 # One or both of the vars are not set, and there is no cached value.
6034 ac_x_includes=no ac_x_libraries=no
6035 rm -f -r conftest.dir
6036 if mkdir conftest.dir; then
6038 cat >Imakefile <<'_ACEOF'
6040 @echo incroot='${INCROOT}'
6042 @echo usrlibdir='${USRLIBDIR}'
6044 @echo libdir='${LIBDIR}'
6046 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6047 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6048 for ac_var in incroot usrlibdir libdir; do
6049 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6051 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6052 for ac_extension in a so sl dylib la dll; do
6053 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6054 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6055 ac_im_usrlibdir=$ac_im_libdir; break
6058 # Screen out bogus values from the imake configuration. They are
6059 # bogus both because they are the default anyway, and because
6060 # using them would break gcc on systems where it needs fixed includes.
6061 case $ac_im_incroot in
6062 /usr/include) ac_x_includes= ;;
6063 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6065 case $ac_im_usrlibdir in
6066 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6067 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6071 rm -f -r conftest.dir
6074 # Standard set of common directories for X headers.
6075 # Check X11 before X11Rn because it is often a symlink to the current release.
6089 /usr/local/X11/include
6090 /usr/local/X11R7/include
6091 /usr/local/X11R6/include
6092 /usr/local/X11R5/include
6093 /usr/local/X11R4/include
6095 /usr/local/include/X11
6096 /usr/local/include/X11R7
6097 /usr/local/include/X11R6
6098 /usr/local/include/X11R5
6099 /usr/local/include/X11R4
6103 /usr/XFree86/include/X11
6107 /usr/unsupported/include
6109 /usr/local/x11r5/include
6110 /usr/lpp/Xamples/include
6112 /usr/openwin/include
6113 /usr/openwin/share/include'
6115 if test "$ac_x_includes" = no; then
6116 # Guess where to find include files, by looking for Xlib.h.
6117 # First, try using that file with no special directory specified.
6118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119 /* end confdefs.h. */
6120 #include <X11/Xlib.h>
6122 if ac_fn_c_try_cpp "$LINENO"; then :
6123 # We can compile using X headers with no special include directory.
6126 for ac_dir in $ac_x_header_dirs; do
6127 if test -r "$ac_dir/X11/Xlib.h"; then
6128 ac_x_includes=$ac_dir
6133 rm -rf conftest.err conftest.i conftest.$ac_ext
6134 fi # $ac_x_includes = no
6136 if test "$ac_x_libraries" = no; then
6137 # Check for the libraries.
6138 # See if we find them without any special options.
6139 # Don't add to $LIBS permanently.
6142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143 /* end confdefs.h. */
6144 #include <X11/Xlib.h>
6153 if ac_fn_c_try_link "$LINENO"; then :
6155 # We can link X programs with no special library path.
6159 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6161 # Don't even attempt the hair of trying to link an X program!
6162 for ac_extension in a so sl dylib la dll; do
6163 if test -r "$ac_dir/libX11.$ac_extension"; then
6164 ac_x_libraries=$ac_dir
6170 rm -f core conftest.err conftest.$ac_objext \
6171 conftest$ac_exeext conftest.$ac_ext
6172 fi # $ac_x_libraries = no
6174 case $ac_x_includes,$ac_x_libraries in #(
6176 # Didn't find X, or a directory has "'" in its name.
6177 ac_cv_have_x="have_x=no";; #(
6179 # Record where we found X for the cache.
6180 ac_cv_have_x="have_x=yes\
6181 ac_x_includes='$ac_x_includes'\
6182 ac_x_libraries='$ac_x_libraries'"
6188 eval "$ac_cv_have_x"
6191 if test "$have_x" != yes; then
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6193 $as_echo "$have_x" >&6; }
6196 # If each of the values was on the command line, it overrides each guess.
6197 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6198 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6199 # Update the cache value to reflect the command line values.
6200 ac_cv_have_x="have_x=yes\
6201 ac_x_includes='$x_includes'\
6202 ac_x_libraries='$x_libraries'"
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6204 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6207 if test "$no_x" = yes; then
6208 # Not all programs may use this symbol, but it does not hurt to define it.
6210 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
6212 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6214 if test -n "$x_includes"; then
6215 X_CFLAGS="$X_CFLAGS -I$x_includes"
6218 # It would also be nice to do this for all -L options, not just this one.
6219 if test -n "$x_libraries"; then
6220 X_LIBS="$X_LIBS -L$x_libraries"
6221 # For Solaris; some versions of Sun CC require a space after -R and
6222 # others require no space. Words are not sufficient . . . .
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
6224 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6225 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6226 ac_xsave_c_werror_flag=$ac_c_werror_flag
6227 ac_c_werror_flag=yes
6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h. */
6239 if ac_fn_c_try_link "$LINENO"; then :
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241 $as_echo "no" >&6; }
6242 X_LIBS="$X_LIBS -R$x_libraries"
6244 LIBS="$ac_xsave_LIBS -R $x_libraries"
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246 /* end confdefs.h. */
6256 if ac_fn_c_try_link "$LINENO"; then :
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6258 $as_echo "yes" >&6; }
6259 X_LIBS="$X_LIBS -R $x_libraries"
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
6262 $as_echo "neither works" >&6; }
6264 rm -f core conftest.err conftest.$ac_objext \
6265 conftest$ac_exeext conftest.$ac_ext
6267 rm -f core conftest.err conftest.$ac_objext \
6268 conftest$ac_exeext conftest.$ac_ext
6269 ac_c_werror_flag=$ac_xsave_c_werror_flag
6273 # Check for system-dependent libraries X programs must link with.
6274 # Do this before checking for the system-independent R6 libraries
6275 # (-lICE), since we may need -lsocket or whatever for X linking.
6277 if test "$ISC" = yes; then
6278 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6280 # Martyn Johnson says this is needed for Ultrix, if the X
6281 # libraries were built with DECnet support. And Karl Berry says
6282 # the Alpha needs dnet_stub (dnet does not exist).
6283 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285 /* end confdefs.h. */
6287 /* Override any GCC internal prototype to avoid an error.
6288 Use char because int might match the return type of a GCC
6289 builtin and then its argument prototype would still apply. */
6293 char XOpenDisplay ();
6297 return XOpenDisplay ();
6302 if ac_fn_c_try_link "$LINENO"; then :
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
6306 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6307 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
6308 $as_echo_n "(cached) " >&6
6310 ac_check_lib_save_LIBS=$LIBS
6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313 /* end confdefs.h. */
6315 /* Override any GCC internal prototype to avoid an error.
6316 Use char because int might match the return type of a GCC
6317 builtin and then its argument prototype would still apply. */
6325 return dnet_ntoa ();
6330 if ac_fn_c_try_link "$LINENO"; then :
6331 ac_cv_lib_dnet_dnet_ntoa=yes
6333 ac_cv_lib_dnet_dnet_ntoa=no
6335 rm -f core conftest.err conftest.$ac_objext \
6336 conftest$ac_exeext conftest.$ac_ext
6337 LIBS=$ac_check_lib_save_LIBS
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6340 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6341 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
6342 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6345 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
6347 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6348 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
6349 $as_echo_n "(cached) " >&6
6351 ac_check_lib_save_LIBS=$LIBS
6352 LIBS="-ldnet_stub $LIBS"
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6356 /* Override any GCC internal prototype to avoid an error.
6357 Use char because int might match the return type of a GCC
6358 builtin and then its argument prototype would still apply. */
6366 return dnet_ntoa ();
6371 if ac_fn_c_try_link "$LINENO"; then :
6372 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6374 ac_cv_lib_dnet_stub_dnet_ntoa=no
6376 rm -f core conftest.err conftest.$ac_objext \
6377 conftest$ac_exeext conftest.$ac_ext
6378 LIBS=$ac_check_lib_save_LIBS
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6381 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6382 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
6383 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6388 rm -f core conftest.err conftest.$ac_objext \
6389 conftest$ac_exeext conftest.$ac_ext
6390 LIBS="$ac_xsave_LIBS"
6392 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6393 # to get the SysV transport functions.
6394 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6396 # The nsl library prevents programs from opening the X display
6397 # on Irix 5.2, according to T.E. Dickey.
6398 # The functions gethostbyname, getservbyname, and inet_addr are
6399 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6400 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
6401 if test "x$ac_cv_func_gethostbyname" = xyes; then :
6405 if test $ac_cv_func_gethostbyname = no; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6407 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6408 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
6409 $as_echo_n "(cached) " >&6
6411 ac_check_lib_save_LIBS=$LIBS
6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h. */
6416 /* Override any GCC internal prototype to avoid an error.
6417 Use char because int might match the return type of a GCC
6418 builtin and then its argument prototype would still apply. */
6422 char gethostbyname ();
6426 return gethostbyname ();
6431 if ac_fn_c_try_link "$LINENO"; then :
6432 ac_cv_lib_nsl_gethostbyname=yes
6434 ac_cv_lib_nsl_gethostbyname=no
6436 rm -f core conftest.err conftest.$ac_objext \
6437 conftest$ac_exeext conftest.$ac_ext
6438 LIBS=$ac_check_lib_save_LIBS
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6441 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6442 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
6443 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6446 if test $ac_cv_lib_nsl_gethostbyname = no; then
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
6448 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6449 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
6450 $as_echo_n "(cached) " >&6
6452 ac_check_lib_save_LIBS=$LIBS
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6457 /* Override any GCC internal prototype to avoid an error.
6458 Use char because int might match the return type of a GCC
6459 builtin and then its argument prototype would still apply. */
6463 char gethostbyname ();
6467 return gethostbyname ();
6472 if ac_fn_c_try_link "$LINENO"; then :
6473 ac_cv_lib_bsd_gethostbyname=yes
6475 ac_cv_lib_bsd_gethostbyname=no
6477 rm -f core conftest.err conftest.$ac_objext \
6478 conftest$ac_exeext conftest.$ac_ext
6479 LIBS=$ac_check_lib_save_LIBS
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6482 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6483 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
6484 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6490 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6491 # socket/setsockopt and other routines are undefined under SCO ODT
6492 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6493 # on later versions), says Simon Leinen: it contains gethostby*
6494 # variants that don't use the name server (or something). -lsocket
6495 # must be given before -lnsl if both are needed. We assume that
6496 # if connect needs -lnsl, so does gethostbyname.
6497 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
6498 if test "x$ac_cv_func_connect" = xyes; then :
6502 if test $ac_cv_func_connect = no; then
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6504 $as_echo_n "checking for connect in -lsocket... " >&6; }
6505 if ${ac_cv_lib_socket_connect+:} false; then :
6506 $as_echo_n "(cached) " >&6
6508 ac_check_lib_save_LIBS=$LIBS
6509 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6513 /* Override any GCC internal prototype to avoid an error.
6514 Use char because int might match the return type of a GCC
6515 builtin and then its argument prototype would still apply. */
6528 if ac_fn_c_try_link "$LINENO"; then :
6529 ac_cv_lib_socket_connect=yes
6531 ac_cv_lib_socket_connect=no
6533 rm -f core conftest.err conftest.$ac_objext \
6534 conftest$ac_exeext conftest.$ac_ext
6535 LIBS=$ac_check_lib_save_LIBS
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6538 $as_echo "$ac_cv_lib_socket_connect" >&6; }
6539 if test "x$ac_cv_lib_socket_connect" = xyes; then :
6540 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6545 # Guillermo Gomez says -lposix is necessary on A/UX.
6546 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
6547 if test "x$ac_cv_func_remove" = xyes; then :
6551 if test $ac_cv_func_remove = no; then
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6553 $as_echo_n "checking for remove in -lposix... " >&6; }
6554 if ${ac_cv_lib_posix_remove+:} false; then :
6555 $as_echo_n "(cached) " >&6
6557 ac_check_lib_save_LIBS=$LIBS
6558 LIBS="-lposix $LIBS"
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h. */
6562 /* Override any GCC internal prototype to avoid an error.
6563 Use char because int might match the return type of a GCC
6564 builtin and then its argument prototype would still apply. */
6577 if ac_fn_c_try_link "$LINENO"; then :
6578 ac_cv_lib_posix_remove=yes
6580 ac_cv_lib_posix_remove=no
6582 rm -f core conftest.err conftest.$ac_objext \
6583 conftest$ac_exeext conftest.$ac_ext
6584 LIBS=$ac_check_lib_save_LIBS
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6587 $as_echo "$ac_cv_lib_posix_remove" >&6; }
6588 if test "x$ac_cv_lib_posix_remove" = xyes; then :
6589 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6594 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6595 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6596 if test "x$ac_cv_func_shmat" = xyes; then :
6600 if test $ac_cv_func_shmat = no; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6602 $as_echo_n "checking for shmat in -lipc... " >&6; }
6603 if ${ac_cv_lib_ipc_shmat+:} false; then :
6604 $as_echo_n "(cached) " >&6
6606 ac_check_lib_save_LIBS=$LIBS
6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h. */
6611 /* Override any GCC internal prototype to avoid an error.
6612 Use char because int might match the return type of a GCC
6613 builtin and then its argument prototype would still apply. */
6626 if ac_fn_c_try_link "$LINENO"; then :
6627 ac_cv_lib_ipc_shmat=yes
6629 ac_cv_lib_ipc_shmat=no
6631 rm -f core conftest.err conftest.$ac_objext \
6632 conftest$ac_exeext conftest.$ac_ext
6633 LIBS=$ac_check_lib_save_LIBS
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6636 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
6637 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
6638 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6644 # Check for libraries that X11R6 Xt/Xaw programs need.
6645 ac_save_LDFLAGS=$LDFLAGS
6646 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6647 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6648 # check for ICE first), but we must link in the order -lSM -lICE or
6649 # we get undefined symbols. So assume we have SM if we have ICE.
6650 # These have to be linked with before -lX11, unlike the other
6651 # libraries we check for below, so use a different variable.
6652 # John Interrante, Karl Berry
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6654 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
6655 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
6656 $as_echo_n "(cached) " >&6
6658 ac_check_lib_save_LIBS=$LIBS
6659 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6663 /* Override any GCC internal prototype to avoid an error.
6664 Use char because int might match the return type of a GCC
6665 builtin and then its argument prototype would still apply. */
6669 char IceConnectionNumber ();
6673 return IceConnectionNumber ();
6678 if ac_fn_c_try_link "$LINENO"; then :
6679 ac_cv_lib_ICE_IceConnectionNumber=yes
6681 ac_cv_lib_ICE_IceConnectionNumber=no
6683 rm -f core conftest.err conftest.$ac_objext \
6684 conftest$ac_exeext conftest.$ac_ext
6685 LIBS=$ac_check_lib_save_LIBS
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6688 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6689 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
6690 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6693 LDFLAGS=$ac_save_LDFLAGS
6698 if test "$have_x" != yes; then
6699 as_fn_error $? "Couldn't find X11 headers/libs. Try \`$0 --help'." "$LINENO" 5
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X app-defaults directory" >&5
6704 $as_echo_n "checking for X app-defaults directory... " >&6; }
6705 if ${ac_cv_x_app_defaults+:} false; then :
6706 $as_echo_n "(cached) " >&6
6710 if mkdir conftestdir; then
6711 cd conftestdir 2>/dev/null
6712 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6713 cat > Imakefile <<'EOF'
6715 @echo 'ac_x_app_defaults="${XAPPLOADDIR}"'
6717 if (xmkmf) >/dev/null 2>&1 && test -f Makefile; then
6718 # GNU make sometimes prints "make[1]: Entering...", which'd confuse us.
6719 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6724 if test x"$ac_x_app_defaults" = x; then
6726 # Look for the directory under a standard set of common directories.
6727 # Check X11 before X11Rn because it's often a symlink to the current release.
6729 /usr/X11/lib/app-defaults \
6730 /usr/X11R6/lib/app-defaults \
6731 /usr/X11R6/lib/X11/app-defaults \
6732 /usr/X11R5/lib/app-defaults \
6733 /usr/X11R5/lib/X11/app-defaults \
6734 /usr/X11R4/lib/app-defaults \
6735 /usr/X11R4/lib/X11/app-defaults \
6737 /usr/lib/X11/app-defaults \
6738 /usr/lib/X11R6/app-defaults \
6739 /usr/lib/X11R5/app-defaults \
6740 /usr/lib/X11R4/app-defaults \
6742 /usr/local/X11/lib/app-defaults \
6743 /usr/local/X11R6/lib/app-defaults \
6744 /usr/local/X11R5/lib/app-defaults \
6745 /usr/local/X11R4/lib/app-defaults \
6747 /usr/local/lib/X11/app-defaults \
6748 /usr/local/lib/X11R6/app-defaults \
6749 /usr/local/lib/X11R6/X11/app-defaults \
6750 /usr/local/lib/X11R5/app-defaults \
6751 /usr/local/lib/X11R5/X11/app-defaults \
6752 /usr/local/lib/X11R4/app-defaults \
6753 /usr/local/lib/X11R4/X11/app-defaults \
6755 /usr/X386/lib/X11/app-defaults \
6756 /usr/x386/lib/X11/app-defaults \
6757 /usr/XFree86/lib/X11/app-defaults \
6759 /usr/lib/X11/app-defaults \
6760 /usr/local/lib/X11/app-defaults \
6761 /usr/unsupported/lib/X11/app-defaults \
6762 /usr/athena/lib/X11/app-defaults \
6763 /usr/local/x11r5/lib/X11/app-defaults \
6764 /usr/lpp/Xamples/lib/X11/app-defaults \
6765 /lib/usr/lib/X11/app-defaults \
6767 /usr/openwin/lib/app-defaults \
6768 /usr/openwin/lib/X11/app-defaults \
6769 /usr/openwin/share/lib/app-defaults \
6770 /usr/openwin/share/lib/X11/app-defaults \
6772 /X11R6/lib/app-defaults \
6773 /X11R5/lib/app-defaults \
6774 /X11R4/lib/app-defaults \
6777 if test -d "$ac_dir"; then
6778 ac_x_app_defaults=$ac_dir
6784 if test x"$ac_x_app_defaults" = x; then
6785 ac_cv_x_app_defaults="/usr/lib/X11/app-defaults"
6787 # Record where we found app-defaults for the cache.
6788 ac_cv_x_app_defaults="$ac_x_app_defaults"
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x_app_defaults" >&5
6792 $as_echo "$ac_cv_x_app_defaults" >&6; }
6793 eval ac_x_app_defaults="$ac_cv_x_app_defaults"
6797 # The following arcana was gleaned from conversations with
6798 # Eric Schwartz <erics@col.hp.com>:
6800 # On HPUX 10.x, the parts of X that HP considers "standard" live in
6801 # /usr/{include,lib}/X11R6/. The parts that HP doesn't consider
6802 # "standard", notably, Xaw and Xmu, live in /usr/contrib/X11R6/.
6803 # Yet /usr/contrib/X11R6/ comes preinstalled on all HPUX systems.
6804 # Also, there are symlinks from /usr/include/ and /usr/lib/ into
6805 # /usr/{include,lib}/X11R6/, so that (if you don't use Xmu at all)
6806 # you don't need any -I or -L arguments.
6808 # On HPUX 9.x, /usr/{include,lib}/X11R5/ and /usr/contrib/X11R5/
6809 # are the same division as 10.x. However, there are no symlinks to
6810 # the X stuff from /usr/include/ and /usr/lib/, so -I and -L
6811 # arguments are always necessary.
6813 # However, X11R6 was available on HPUX 9.x as a patch: if that
6814 # patch was installed, then all of X11R6 went in to
6815 # /usr/contrib/X11R6/ (there was no /usr/{include,lib}/X11R6/.)
6817 # HPUX 8.x was the same as 9.x, but was X11R4 instead (I don't know
6818 # whether R5 was available as a patch; R6 undoubtedly was not.)
6820 # So. We try and use the highest numbered pair of
6821 # /usr/{include,lib}/X11R?/ and /usr/contrib/X11R?/{include,lib}/
6822 # that are available. We do not mix and match different versions
6825 # Question I still don't know the answer to: (do you?)
6827 # * On HPUX 9.x, where /usr/include/X11R5/ was standard, and
6828 # /usr/contrib/X11R6/ could be installed as a patch, what was in
6829 # that contrib directory? Did it contain so-called "standard"
6830 # X11R6, or did it include Xaw and Xmu as well? If the former,
6831 # where did one find Xaw and Xmu on 9.x R6 systems? Would this
6832 # be a situation where one had to reach into the R5 headers and
6833 # libs to find Xmu? That is, must both R6 and R5 directories
6834 # be on the -I and -L lists in that case?
6836 for version in X11R6 X11R5 X11R4 ; do
6837 # if either pair of directories exists...
6838 if test -d /usr/include/$version || test -d /usr/contrib/$version/include
6840 # if contrib exists, use it...
6841 if test -d /usr/contrib/$version/include ; then
6842 X_CFLAGS="$X_CFLAGS -I/usr/contrib/$version/include"
6843 X_LIBS="$X_LIBS -L/usr/contrib/$version/lib"
6845 # if the "standard" one exists, use it.
6846 if test -d /usr/include/$version ; then
6847 X_CFLAGS="$X_CFLAGS -I/usr/include/$version"
6848 X_LIBS="$X_LIBS -L/usr/lib/$version"
6850 # since at least one of the pair exists, go no farther.
6855 # Now find Motif. Thanks for not making xmkmf find this by
6856 # default, you losers.
6858 if test -d /usr/include/Motif2.1 ; then
6859 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif2.1"
6860 X_LIBS="$X_LIBS -L/usr/lib/Motif2.1"
6861 elif test -d /usr/include/Motif1.2 ; then
6862 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.2"
6863 X_LIBS="$X_LIBS -L/usr/lib/Motif1.2"
6864 elif test -d /usr/include/Motif1.1 ; then
6865 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.1"
6866 X_LIBS="$X_LIBS -L/usr/lib/Motif1.1"
6869 # Now let's check for the pseudo-standard locations for OpenGL and XPM.
6871 if test -d /opt/graphics/OpenGL/include ; then
6872 # HP-UX 10.20 puts it here
6873 X_CFLAGS="-I/opt/graphics/OpenGL/include $X_CFLAGS"
6874 X_LIBS="-L/opt/graphics/OpenGL/lib $X_LIBS"
6875 elif test -d /opt/Mesa/lib ; then
6876 X_CFLAGS="-I/opt/Mesa/include $X_CFLAGS"
6877 X_LIBS="-L/opt/Mesa/lib $X_LIBS"
6881 if test -d /opt/xpm/lib/X11 ; then
6882 X_CFLAGS="-I/opt/xpm/include $X_CFLAGS"
6883 X_LIBS="-L/opt/xpm/lib/X11 $X_LIBS"
6886 # On HPUX, default to installing in /opt/xscreensaver/ instead of
6887 # in /usr/local/, unless there is already an xscreensaver in
6888 # /usr/local/bin/. This can be overridden with the --prefix arg
6889 # to configure. I'm not sure this is the right thing to do, but
6890 # Richard Lloyd says so...
6892 if test \! -x /usr/local/bin/xscreensaver ; then
6893 ac_default_prefix=/opt/xscreensaver
6899 # Thanks for not making xmkmf find this by default, pinheads.
6900 # And thanks for moving things around again, too. Is this
6901 # really the standard location now? What happened to the
6902 # joke that this kind of thing went in /opt?
6903 # cthomp says "answer: CDE (Common Disorganized Environment)"
6905 if test -f /usr/dt/include/Xm/Xm.h ; then
6906 X_CFLAGS="$X_CFLAGS -I/usr/dt/include"
6907 MOTIF_LIBS="$MOTIF_LIBS -L/usr/dt/lib -R/usr/dt/lib"
6909 # Some versions of Slowlaris Motif require -lgen. But not all. Why?
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcmp in -lgen" >&5
6911 $as_echo_n "checking for regcmp in -lgen... " >&6; }
6912 if ${ac_cv_lib_gen_regcmp+:} false; then :
6913 $as_echo_n "(cached) " >&6
6915 ac_check_lib_save_LIBS=$LIBS
6917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918 /* end confdefs.h. */
6920 /* Override any GCC internal prototype to avoid an error.
6921 Use char because int might match the return type of a GCC
6922 builtin and then its argument prototype would still apply. */
6935 if ac_fn_c_try_link "$LINENO"; then :
6936 ac_cv_lib_gen_regcmp=yes
6938 ac_cv_lib_gen_regcmp=no
6940 rm -f core conftest.err conftest.$ac_objext \
6941 conftest$ac_exeext conftest.$ac_ext
6942 LIBS=$ac_check_lib_save_LIBS
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_regcmp" >&5
6945 $as_echo "$ac_cv_lib_gen_regcmp" >&6; }
6946 if test "x$ac_cv_lib_gen_regcmp" = xyes; then :
6947 MOTIF_LIBS="$MOTIF_LIBS -lgen"
6955 # On MacOS X (10.x with "fink"), many things are under /sw/.
6957 if test -d /sw/include ; then
6958 X_CFLAGS="-I/sw/include $X_CFLAGS"
6959 X_LIBS="-L/sw/lib $X_LIBS"
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPointer" >&5
6964 $as_echo_n "checking for XPointer... " >&6; }
6965 if ${ac_cv_xpointer+:} false; then :
6966 $as_echo_n "(cached) " >&6
6969 ac_save_CPPFLAGS="$CPPFLAGS"
6970 if test \! -z "$includedir" ; then
6971 CPPFLAGS="$CPPFLAGS -I$includedir"
6973 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6974 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
6975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6976 /* end confdefs.h. */
6977 #include <X11/Xlib.h>
6981 XPointer foo = (XPointer) 0;
6986 if ac_fn_c_try_compile "$LINENO"; then :
6991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6992 CPPFLAGS="$ac_save_CPPFLAGS"
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xpointer" >&5
6995 $as_echo "$ac_cv_xpointer" >&6; }
6996 if test "$ac_cv_xpointer" != yes; then
6997 $as_echo "#define XPointer char*" >>confdefs.h
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this is MacOS X" >&5
7002 $as_echo_n "checking whether this is MacOS X... " >&6; }
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_macosx" >&5
7010 $as_echo "$ac_macosx" >&6; }
7013 ###############################################################################
7017 ###############################################################################
7020 GETTEXT_PACKAGE=xscreensaver
7022 cat >>confdefs.h <<_ACEOF
7023 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
7027 cat >>confdefs.h <<_ACEOF
7028 #define PACKAGE "$GETTEXT_PACKAGE"
7033 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"
7034 if test -n "$ac_tool_prefix"; then
7035 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7036 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038 $as_echo_n "checking for $ac_word... " >&6; }
7039 if ${ac_cv_prog_RANLIB+:} false; then :
7040 $as_echo_n "(cached) " >&6
7042 if test -n "$RANLIB"; then
7043 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7052 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7062 RANLIB=$ac_cv_prog_RANLIB
7063 if test -n "$RANLIB"; then
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7065 $as_echo "$RANLIB" >&6; }
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068 $as_echo "no" >&6; }
7073 if test -z "$ac_cv_prog_RANLIB"; then
7074 ac_ct_RANLIB=$RANLIB
7075 # Extract the first word of "ranlib", so it can be a program name with args.
7076 set dummy ranlib; ac_word=$2
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7078 $as_echo_n "checking for $ac_word... " >&6; }
7079 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7080 $as_echo_n "(cached) " >&6
7082 if test -n "$ac_ct_RANLIB"; then
7083 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 test -z "$as_dir" && as_dir=.
7090 for ac_exec_ext in '' $ac_executable_extensions; do
7091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7092 ac_cv_prog_ac_ct_RANLIB="ranlib"
7093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7102 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7103 if test -n "$ac_ct_RANLIB"; then
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7105 $as_echo "$ac_ct_RANLIB" >&6; }
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108 $as_echo "no" >&6; }
7111 if test "x$ac_ct_RANLIB" = x; then
7114 case $cross_compiling:$ac_tool_warned in
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7118 ac_tool_warned=yes ;;
7120 RANLIB=$ac_ct_RANLIB
7123 RANLIB="$ac_cv_prog_RANLIB"
7126 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7127 if test "x$ac_cv_type_off_t" = xyes; then :
7131 cat >>confdefs.h <<_ACEOF
7132 #define off_t long int
7137 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7138 # for constant arguments. Useless!
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7140 $as_echo_n "checking for working alloca.h... " >&6; }
7141 if ${ac_cv_working_alloca_h+:} false; then :
7142 $as_echo_n "(cached) " >&6
7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7150 char *p = (char *) alloca (2 * sizeof (int));
7156 if ac_fn_c_try_link "$LINENO"; then :
7157 ac_cv_working_alloca_h=yes
7159 ac_cv_working_alloca_h=no
7161 rm -f core conftest.err conftest.$ac_objext \
7162 conftest$ac_exeext conftest.$ac_ext
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7165 $as_echo "$ac_cv_working_alloca_h" >&6; }
7166 if test $ac_cv_working_alloca_h = yes; then
7168 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7173 $as_echo_n "checking for alloca... " >&6; }
7174 if ${ac_cv_func_alloca_works+:} false; then :
7175 $as_echo_n "(cached) " >&6
7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h. */
7180 # define alloca __builtin_alloca
7183 # include <malloc.h>
7184 # define alloca _alloca
7186 # ifdef HAVE_ALLOCA_H
7187 # include <alloca.h>
7192 # ifndef alloca /* predefined by HP cc +Olibcalls */
7193 void *alloca (size_t);
7203 char *p = (char *) alloca (1);
7209 if ac_fn_c_try_link "$LINENO"; then :
7210 ac_cv_func_alloca_works=yes
7212 ac_cv_func_alloca_works=no
7214 rm -f core conftest.err conftest.$ac_objext \
7215 conftest$ac_exeext conftest.$ac_ext
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7218 $as_echo "$ac_cv_func_alloca_works" >&6; }
7220 if test $ac_cv_func_alloca_works = yes; then
7222 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7225 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7226 # that cause trouble. Some versions do not even contain alloca or
7227 # contain a buggy version. If you still want to use their alloca,
7228 # use ar to extract alloca.o from them instead of compiling alloca.c.
7230 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7232 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7236 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7237 if ${ac_cv_os_cray+:} false; then :
7238 $as_echo_n "(cached) " >&6
7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h. */
7242 #if defined CRAY && ! defined CRAY2
7249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7250 $EGREP "webecray" >/dev/null 2>&1; then :
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7259 $as_echo "$ac_cv_os_cray" >&6; }
7260 if test $ac_cv_os_cray = yes; then
7261 for ac_func in _getb67 GETB67 getb67; do
7262 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7263 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7264 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7266 cat >>confdefs.h <<_ACEOF
7267 #define CRAY_STACKSEG_END $ac_func
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7277 $as_echo_n "checking stack direction for C alloca... " >&6; }
7278 if ${ac_cv_c_stack_direction+:} false; then :
7279 $as_echo_n "(cached) " >&6
7281 if test "$cross_compiling" = yes; then :
7282 ac_cv_c_stack_direction=0
7284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h. */
7286 $ac_includes_default
7288 find_stack_direction (int *addr, int depth)
7293 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7294 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7299 main (int argc, char **argv)
7301 return find_stack_direction (0, argc + !argv + 20) < 0;
7304 if ac_fn_c_try_run "$LINENO"; then :
7305 ac_cv_c_stack_direction=1
7307 ac_cv_c_stack_direction=-1
7309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7310 conftest.$ac_objext conftest.beam conftest.$ac_ext
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7315 $as_echo "$ac_cv_c_stack_direction" >&6; }
7316 cat >>confdefs.h <<_ACEOF
7317 #define STACK_DIRECTION $ac_cv_c_stack_direction
7326 for ac_header in $ac_header_list
7328 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7329 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7331 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7332 cat >>confdefs.h <<_ACEOF
7333 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7347 for ac_func in getpagesize
7349 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7350 if test "x$ac_cv_func_getpagesize" = xyes; then :
7351 cat >>confdefs.h <<_ACEOF
7352 #define HAVE_GETPAGESIZE 1
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7359 $as_echo_n "checking for working mmap... " >&6; }
7360 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7361 $as_echo_n "(cached) " >&6
7363 if test "$cross_compiling" = yes; then :
7364 ac_cv_func_mmap_fixed_mapped=no
7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367 /* end confdefs.h. */
7368 $ac_includes_default
7369 /* malloc might have been renamed as rpl_malloc. */
7372 /* Thanks to Mike Haertel and Jim Avera for this test.
7373 Here is a matrix of mmap possibilities:
7374 mmap private not fixed
7375 mmap private fixed at somewhere currently unmapped
7376 mmap private fixed at somewhere already mapped
7377 mmap shared not fixed
7378 mmap shared fixed at somewhere currently unmapped
7379 mmap shared fixed at somewhere already mapped
7380 For private mappings, we should verify that changes cannot be read()
7381 back from the file, nor mmap's back from the file at a different
7382 address. (There have been systems where private was not correctly
7383 implemented like the infamous i386 svr4.0, and systems where the
7384 VM page cache was not coherent with the file system buffer cache
7385 like early versions of FreeBSD and possibly contemporary NetBSD.)
7386 For shared mappings, we should conversely verify that changes get
7387 propagated back to all the places they're supposed to be.
7389 Grep wants private fixed already mapped.
7390 The main things grep needs to know about mmap are:
7391 * does it exist and is it safe to write into the mmap'd area
7392 * how to use it (BSD variants) */
7395 #include <sys/mman.h>
7397 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7401 /* This mess was copied from the GNU getpagesize.h. */
7402 #ifndef HAVE_GETPAGESIZE
7403 # ifdef _SC_PAGESIZE
7404 # define getpagesize() sysconf(_SC_PAGESIZE)
7405 # else /* no _SC_PAGESIZE */
7406 # ifdef HAVE_SYS_PARAM_H
7407 # include <sys/param.h>
7408 # ifdef EXEC_PAGESIZE
7409 # define getpagesize() EXEC_PAGESIZE
7410 # else /* no EXEC_PAGESIZE */
7412 # define getpagesize() NBPG * CLSIZE
7415 # endif /* no CLSIZE */
7416 # else /* no NBPG */
7418 # define getpagesize() NBPC
7419 # else /* no NBPC */
7421 # define getpagesize() PAGESIZE
7422 # endif /* PAGESIZE */
7423 # endif /* no NBPC */
7424 # endif /* no NBPG */
7425 # endif /* no EXEC_PAGESIZE */
7426 # else /* no HAVE_SYS_PARAM_H */
7427 # define getpagesize() 8192 /* punt totally */
7428 # endif /* no HAVE_SYS_PARAM_H */
7429 # endif /* no _SC_PAGESIZE */
7431 #endif /* no HAVE_GETPAGESIZE */
7436 char *data, *data2, *data3;
7441 pagesize = getpagesize ();
7443 /* First, make a file with some known garbage in it. */
7444 data = (char *) malloc (pagesize);
7447 for (i = 0; i < pagesize; ++i)
7448 *(data + i) = rand ();
7450 fd = creat ("conftest.mmap", 0600);
7453 if (write (fd, data, pagesize) != pagesize)
7457 /* Next, check that the tail of a page is zero-filled. File must have
7458 non-zero length, otherwise we risk SIGBUS for entire page. */
7459 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7463 if (write (fd2, cdata2, 1) != 1)
7465 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7466 if (data2 == MAP_FAILED)
7468 for (i = 0; i < pagesize; ++i)
7472 if (munmap (data2, pagesize))
7475 /* Next, try to mmap the file at a fixed address which already has
7476 something else allocated at it. If we can, also make sure that
7477 we see the same garbage. */
7478 fd = open ("conftest.mmap", O_RDWR);
7481 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7482 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7484 for (i = 0; i < pagesize; ++i)
7485 if (*(data + i) != *(data2 + i))
7488 /* Finally, make sure that changes to the mapped area do not
7489 percolate back to the file as seen by read(). (This is a bug on
7490 some variants of i386 svr4.0.) */
7491 for (i = 0; i < pagesize; ++i)
7492 *(data2 + i) = *(data2 + i) + 1;
7493 data3 = (char *) malloc (pagesize);
7496 if (read (fd, data3, pagesize) != pagesize)
7498 for (i = 0; i < pagesize; ++i)
7499 if (*(data + i) != *(data3 + i))
7505 if ac_fn_c_try_run "$LINENO"; then :
7506 ac_cv_func_mmap_fixed_mapped=yes
7508 ac_cv_func_mmap_fixed_mapped=no
7510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7511 conftest.$ac_objext conftest.beam conftest.$ac_ext
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7516 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7517 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7519 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7522 rm -rf conftest.mmap conftest.txt
7525 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7526 unistd.h sys/param.h
7528 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7529 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7530 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7531 cat >>confdefs.h <<_ACEOF
7532 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7539 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7540 strdup __argz_count __argz_stringify __argz_next
7542 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7543 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7544 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7545 cat >>confdefs.h <<_ACEOF
7546 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7553 if test $ac_cv_header_locale_h = yes; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
7555 $as_echo_n "checking for LC_MESSAGES... " >&6; }
7556 if ${am_cv_val_LC_MESSAGES+:} false; then :
7557 $as_echo_n "(cached) " >&6
7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7570 if ac_fn_c_try_link "$LINENO"; then :
7571 am_cv_val_LC_MESSAGES=yes
7573 am_cv_val_LC_MESSAGES=no
7575 rm -f core conftest.err conftest.$ac_objext \
7576 conftest$ac_exeext conftest.$ac_ext
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
7579 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
7580 if test $am_cv_val_LC_MESSAGES = yes; then
7582 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
7589 nls_cv_force_use_gnu_gettext="no"
7591 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7592 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7594 nls_cv_header_libgt=
7597 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
7598 if test "x$ac_cv_header_libintl_h" = xyes; then :
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
7600 $as_echo_n "checking for dgettext in libc... " >&6; }
7601 if ${gt_cv_func_dgettext_libc+:} false; then :
7602 $as_echo_n "(cached) " >&6
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7606 #include <libintl.h>
7610 return (int) dgettext ("","")
7615 if ac_fn_c_try_link "$LINENO"; then :
7616 gt_cv_func_dgettext_libc=yes
7618 gt_cv_func_dgettext_libc=no
7620 rm -f core conftest.err conftest.$ac_objext \
7621 conftest$ac_exeext conftest.$ac_ext
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
7624 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
7626 if test "$gt_cv_func_dgettext_libc" != "yes"; then
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
7628 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
7629 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
7630 $as_echo_n "(cached) " >&6
7632 ac_check_lib_save_LIBS=$LIBS
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7637 /* Override any GCC internal prototype to avoid an error.
7638 Use char because int might match the return type of a GCC
7639 builtin and then its argument prototype would still apply. */
7643 char bindtextdomain ();
7647 return bindtextdomain ();
7652 if ac_fn_c_try_link "$LINENO"; then :
7653 ac_cv_lib_intl_bindtextdomain=yes
7655 ac_cv_lib_intl_bindtextdomain=no
7657 rm -f core conftest.err conftest.$ac_objext \
7658 conftest$ac_exeext conftest.$ac_ext
7659 LIBS=$ac_check_lib_save_LIBS
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
7662 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
7663 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libintl" >&5
7665 $as_echo_n "checking for dgettext in libintl... " >&6; }
7666 if ${gt_cv_func_dgettext_libintl+:} false; then :
7667 $as_echo_n "(cached) " >&6
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
7670 $as_echo_n "checking for dgettext in -lintl... " >&6; }
7671 if ${ac_cv_lib_intl_dgettext+:} false; then :
7672 $as_echo_n "(cached) " >&6
7674 ac_check_lib_save_LIBS=$LIBS
7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h. */
7679 /* Override any GCC internal prototype to avoid an error.
7680 Use char because int might match the return type of a GCC
7681 builtin and then its argument prototype would still apply. */
7694 if ac_fn_c_try_link "$LINENO"; then :
7695 ac_cv_lib_intl_dgettext=yes
7697 ac_cv_lib_intl_dgettext=no
7699 rm -f core conftest.err conftest.$ac_objext \
7700 conftest$ac_exeext conftest.$ac_ext
7701 LIBS=$ac_check_lib_save_LIBS
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
7704 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
7705 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
7706 gt_cv_func_dgettext_libintl=yes
7708 gt_cv_func_dgettext_libintl=no
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libintl" >&5
7713 $as_echo "$gt_cv_func_dgettext_libintl" >&6; }
7718 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
7719 LIBS="$LIBS -lintl";
7722 if test "$gt_cv_func_dgettext_libc" = "yes" \
7723 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
7725 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7727 # Extract the first word of "msgfmt", so it can be a program name with args.
7728 set dummy msgfmt; ac_word=$2
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7730 $as_echo_n "checking for $ac_word... " >&6; }
7731 if ${ac_cv_path_MSGFMT+:} false; then :
7732 $as_echo_n "(cached) " >&6
7736 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7740 for ac_dir in $PATH; do
7741 test -z "$ac_dir" && ac_dir=.
7742 if test -f $ac_dir/$ac_word; then
7743 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7744 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7750 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7754 MSGFMT="$ac_cv_path_MSGFMT"
7755 if test -n "$MSGFMT"; then
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7757 $as_echo "$MSGFMT" >&6; }
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760 $as_echo "no" >&6; }
7762 if test "$MSGFMT" != "no"; then
7763 for ac_func in dcgettext
7765 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
7766 if test "x$ac_cv_func_dcgettext" = xyes; then :
7767 cat >>confdefs.h <<_ACEOF
7768 #define HAVE_DCGETTEXT 1
7774 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7775 set dummy gmsgfmt; ac_word=$2
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7777 $as_echo_n "checking for $ac_word... " >&6; }
7778 if ${ac_cv_path_GMSGFMT+:} false; then :
7779 $as_echo_n "(cached) " >&6
7783 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790 test -z "$as_dir" && as_dir=.
7791 for ac_exec_ext in '' $ac_executable_extensions; do
7792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7793 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7805 GMSGFMT=$ac_cv_path_GMSGFMT
7806 if test -n "$GMSGFMT"; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7808 $as_echo "$GMSGFMT" >&6; }
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811 $as_echo "no" >&6; }
7815 # Extract the first word of "xgettext", so it can be a program name with args.
7816 set dummy xgettext; ac_word=$2
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7818 $as_echo_n "checking for $ac_word... " >&6; }
7819 if ${ac_cv_path_XGETTEXT+:} false; then :
7820 $as_echo_n "(cached) " >&6
7824 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7828 for ac_dir in $PATH; do
7829 test -z "$ac_dir" && ac_dir=.
7830 if test -f $ac_dir/$ac_word; then
7831 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7832 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7838 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7842 XGETTEXT="$ac_cv_path_XGETTEXT"
7843 if test -n "$XGETTEXT"; then
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7845 $as_echo "$XGETTEXT" >&6; }
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7848 $as_echo "no" >&6; }
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7857 extern int _nl_msg_cat_cntr;
7858 return _nl_msg_cat_cntr
7863 if ac_fn_c_try_link "$LINENO"; then :
7870 rm -f core conftest.err conftest.$ac_objext \
7871 conftest$ac_exeext conftest.$ac_ext
7876 # Added by Martin Baulig 12/15/98 for libc5 systems
7877 if test "$gt_cv_func_dgettext_libc" != "yes" \
7878 && test "$gt_cv_func_dgettext_libintl" = "yes"; then
7880 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7887 if test "$CATOBJEXT" = "NONE"; then
7888 nls_cv_use_gnu_gettext=yes
7892 if test "$nls_cv_use_gnu_gettext" != "yes"; then
7894 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7900 if test "$XGETTEXT" != ":"; then
7901 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
7905 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7910 # We need to process the po/ directory.
7913 ac_config_commands="$ac_config_commands default-1"
7916 for lang in $ALL_LINGUAS; do
7917 GMOFILES="$GMOFILES $lang.gmo"
7918 POFILES="$POFILES $lang.po"
7933 if test "x$CATOBJEXT" != "x"; then
7934 if test "x$ALL_LINGUAS" = "x"; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7938 $as_echo_n "checking for catalogs to be installed... " >&6; }
7940 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7941 case "$ALL_LINGUAS" in
7942 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7945 LINGUAS=$NEW_LINGUAS
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7947 $as_echo "$LINGUAS" >&6; }
7950 if test -n "$LINGUAS"; then
7951 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7955 test -d po || mkdir po
7956 if test "$CATOBJEXT" = ".cat"; then
7957 ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
7958 if test "x$ac_cv_header_linux_version_h" = xyes; then :
7966 sed -e '/^#/d' $srcdir/po/$msgformat-msg.sed > po/po2msg.sed
7971 # jwz: fuck this! it puts hardcoded pathnames into the generated Makefiles!
7973 # if test -n "$ac_aux_dir"; then
7974 # MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7976 if test -z "$MKINSTALLDIRS"; then
7977 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7980 # jwz: you know what, screw it. Let's just use the version that I
7981 # already computed in configure.in, instead of this version that came
7982 # with the i18n crud, ok?
7983 MKINSTALLDIRS="$INSTALL_DIRS"
7988 test -d po || mkdir po
7989 if test "x$srcdir" != "x."; then
7990 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7991 posrcprefix="$srcdir/"
7993 posrcprefix="../$srcdir/"
7999 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8000 < $srcdir/po/POTFILES.in > po/POTFILES
8002 MKINSTALLDIRS="$INSTALL_DIRS"
8005 ###############################################################################
8007 # Check for -lXmu (some fucked up vendors don't ship it...)
8009 ###############################################################################
8013 ac_save_CPPFLAGS="$CPPFLAGS"
8014 if test \! -z "$includedir" ; then
8015 CPPFLAGS="$CPPFLAGS -I$includedir"
8017 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8018 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8019 ac_fn_c_check_header_compile "$LINENO" "X11/Xmu/Error.h" "ac_cv_header_X11_Xmu_Error_h" "#include <stdlib.h>
8021 #include <X11/Intrinsic.h>
8023 if test "x$ac_cv_header_X11_Xmu_Error_h" = xyes; then :
8028 CPPFLAGS="$ac_save_CPPFLAGS"
8029 if test "$have_xmu" = no ; then
8030 XMU_SRCS='$(UTILS_SRC)/xmu.c'
8031 XMU_OBJS='$(UTILS_BIN)/xmu.o'
8037 $as_echo "#define HAVE_XMU 1" >>confdefs.h
8042 ###############################################################################
8044 # Check for the SunOS 4.1.x _get_wmShellWidgetClass bug.
8045 # See comp.windows.x FAQ question 124. The right fix is to
8046 # get OpenWindows 3.0 patches 100512-02 and 100573-03.
8048 ###############################################################################
8050 if test "$have_xmu" = yes ; then
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the SunOS 4.1.x _get_wmShellWidgetClass bug" >&5
8054 $as_echo_n "checking for the SunOS 4.1.x _get_wmShellWidgetClass bug... " >&6; }
8055 if ${ac_cv_sunos_xmu_bug+:} false; then :
8056 $as_echo_n "(cached) " >&6
8058 ac_save_LDFLAGS="$LDFLAGS"
8059 if test \! -z "$x_libraries" ; then
8060 LDFLAGS="$LDFLAGS -L$x_libraries"
8062 # Note: this trick never works! (Generally.)
8063 # We're only getting away with using AC_TRY_LINK
8064 # with X libraries because we know it's SunOS.
8065 LDFLAGS="$LDFLAGS -lXmu -lXt -lX11 -lXext -lm"
8066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8067 /* end confdefs.h. */
8077 if ac_fn_c_try_link "$LINENO"; then :
8078 ac_cv_sunos_xmu_bug=no
8080 ac_cv_sunos_xmu_bug=yes
8082 rm -f core conftest.err conftest.$ac_objext \
8083 conftest$ac_exeext conftest.$ac_ext
8084 LDFLAGS="$ac_save_LDFLAGS"
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sunos_xmu_bug" >&5
8087 $as_echo "$ac_cv_sunos_xmu_bug" >&6; }
8088 if test "$ac_cv_sunos_xmu_bug" = yes ; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static" >&5
8090 $as_echo_n "checking whether the compiler understands -static... " >&6; }
8091 if ${ac_cv_ld_static+:} false; then :
8092 $as_echo_n "(cached) " >&6
8094 ac_save_LDFLAGS="$LDFLAGS"
8095 LDFLAGS="$LDFLAGS -static"
8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097 /* end confdefs.h. */
8107 if ac_fn_c_try_link "$LINENO"; then :
8112 rm -f core conftest.err conftest.$ac_objext \
8113 conftest$ac_exeext conftest.$ac_ext
8114 LDFLAGS="$ac_save_LDFLAGS"
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ld_static" >&5
8117 $as_echo "$ac_cv_ld_static" >&6; }
8118 if test "$ac_cv_ld_static" = yes ; then
8119 LDFLAGS="$LDFLAGS -static"
8121 LDFLAGS="$LDFLAGS -Bstatic"
8129 ###############################################################################
8131 # Handle the --with-hackdir option
8133 ###############################################################################
8136 with_hackdir_req=unspecified
8138 # Check whether --with-hackdir was given.
8139 if test "${with_hackdir+set}" = set; then :
8140 withval=$with_hackdir; with_hackdir="$withval"; with_hackdir_req="$withval"
8146 if test x"$with_hackdir" = xyes; then
8147 HACKDIR='${libexecdir}/xscreensaver'
8148 elif test x"$with_hackdir" = xno; then
8151 HACKDIR=$with_hackdir
8154 # canonicalize slashes.
8155 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
8157 # Expand HACKDIR as HACKDIR_FULL
8158 HACKDIR_FULL=`eval eval eval eval eval eval eval eval eval echo $HACKDIR`
8160 # This option used to be called --enable-subdir; make sure that is no longer
8161 # used, since configure brain-damagedly ignores unknown --enable options.
8164 # Check whether --enable-subdir was given.
8165 if test "${enable_subdir+set}" = set; then :
8166 enableval=$enable_subdir; obsolete_enable=yes
8169 if test -n "$obsolete_enable"; then
8170 echo "error: the --enable-subdir option has been replaced with"
8171 echo " the new --with-hackdir option; see \`configure --help'"
8172 echo " for more information."
8177 ###############################################################################
8179 # Handle the --with-configdir option
8180 # Help for --with-x-app-defaults option added.
8182 ###############################################################################
8185 with_configdir_req=unspecified
8187 # Check whether --with-configdir was given.
8188 if test "${with_configdir+set}" = set; then :
8189 withval=$with_configdir; with_configdir="$withval"; with_configdir_req="$withval"
8195 if test x"$with_configdir" = xyes; then
8196 HACK_CONF_DIR='${datadir}/xscreensaver/config'
8197 elif test x"$with_configdir" = xno; then
8198 echo "error: must be yes, or a pathname: --with-configdir=$with_configdir"
8201 # there must be a better way than this...
8202 if test -z "`echo $with_configdir | sed 's@^/.*@@'`" ; then
8204 HACK_CONF_DIR=$with_configdir
8207 HACK_CONF_DIR="\${exec_prefix}$with_configdir"
8214 ###############################################################################
8216 # Check for the SGI SCREEN_SAVER server extension.
8218 ###############################################################################
8221 #with_sgi_req=unspecified
8222 #AC_ARG_WITH(sgi-ext,
8223 #[Except where noted, all of the --with options below can also take a
8224 #directory argument: for example, `--with-motif=/opt/Motif'. That would
8225 #cause /opt/Motif/include/ to be added to the -I list, and /opt/Motif/lib/
8226 #to be added to the -L list, assuming those directories exist.
8228 #By default, support for each of these options will be built in, if the
8229 #relevant library routines exist. At run time, they will then be used
8230 #only if the X server being used supports them. Each --with option has
8231 #a corresponding --without option, to override building support for them
8234 #Screen blanking and idle-detection options:
8236 # --with-sgi-ext Include support for the SGI SCREEN_SAVER extension.],
8237 # [with_sgi="$withval"; with_sgi_req="$withval"],[with_sgi=yes])
8239 #HANDLE_X_PATH_ARG(with_sgi, --with-sgi-ext, SGI SCREEN_SAVER)
8241 #if test "$with_sgi" = yes; then
8242 # AC_CHECK_X_HEADER(X11/extensions/XScreenSaver.h,
8244 # AC_DEFINE(HAVE_SGI_SAVER_EXTENSION)],,
8245 # [#include <X11/Xlib.h>])
8247 #elif test "$with_sgi" != no; then
8248 # echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
8253 ###############################################################################
8255 # Check for the XIDLE server extension.
8257 ###############################################################################
8260 #with_xidle_req=unspecified
8261 #AC_ARG_WITH(xidle-ext,
8262 #[ --with-xidle-ext Include support for the XIDLE extension.],
8263 # [with_xidle="$withval"; with_xidle_req="$withval"],[with_xidle=yes])
8265 #HANDLE_X_PATH_ARG(with_xidle, --with-xidle-ext, XIDLE)
8267 #if test "$with_xidle" = yes; then
8268 # AC_CHECK_X_HEADER(X11/extensions/xidle.h,
8270 # AC_DEFINE(HAVE_XIDLE_EXTENSION)],,
8271 # [#include <X11/Xlib.h>])
8272 #elif test "$with_xidle" != no; then
8273 # echo "error: must be yes or no: --with-xidle-ext=$with_xidle"
8278 ###############################################################################
8280 # Check for the SGI-VIDEO-CONTROL server extension.
8282 ###############################################################################
8285 #with_sgivc_req=unspecified
8286 #AC_ARG_WITH(sgivc-ext,
8287 #[ --with-sgivc-ext Include support for the SGI-VIDEO-CONTROL extension.],
8288 # [with_sgivc="$withval"; with_sgivc_req="$withval"],[with_sgivc=yes])
8290 #HANDLE_X_PATH_ARG(with_sgivc, --with-sgivc-ext, SGI-VIDEO-CONTROL)
8292 #if test "$with_sgivc" = yes; then
8294 # # first check for XSGIvc.h
8295 # AC_CHECK_X_HEADER(X11/extensions/XSGIvc.h, [have_sgivc=yes],,
8296 # [#include <X11/Xlib.h>])
8298 # # if that succeeded, then check for the -lXsgivc
8299 # if test "$have_sgivc" = yes; then
8301 # AC_CHECK_X_LIB(Xsgivc, XSGIvcQueryGammaMap,
8302 # [have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"], [true],
8306 # # if that succeeded, then we've really got it.
8307 # if test "$have_sgivc" = yes; then
8308 # AC_DEFINE(HAVE_SGI_VC_EXTENSION)
8311 #elif test "$with_sgivc" != no; then
8312 # echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
8317 ###############################################################################
8319 # Check for the DPMS server extension.
8321 ###############################################################################
8324 with_dpms_req=unspecified
8326 # Check whether --with-dpms-ext was given.
8327 if test "${with_dpms_ext+set}" = set; then :
8328 withval=$with_dpms_ext; with_dpms="$withval"; with_dpms_req="$withval"
8335 case "$with_dpms" in
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPMS headers" >&5
8341 $as_echo_n "checking for DPMS headers... " >&6; }
8342 d=$with_dpms/include
8344 X_CFLAGS="-I$d $X_CFLAGS"
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
8346 $as_echo "$d" >&6; }
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
8349 $as_echo "not found ($d: no such directory)" >&6; }
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPMS libs" >&5
8353 $as_echo_n "checking for DPMS libs... " >&6; }
8356 X_LIBS="-L$d $X_LIBS"
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
8358 $as_echo "$d" >&6; }
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
8361 $as_echo "not found ($d: no such directory)" >&6; }
8364 # replace the directory string with "yes".
8366 with_dpms=$with_dpms_req
8371 echo "error: argument to --with-dpms-ext must be \"yes\", \"no\", or a directory."
8372 echo " If it is a directory, then \`DIR/include' will be added to"
8373 echo " the -I list, and \`DIR/lib' will be added to the -L list."
8379 if test "$with_dpms" = yes; then
8381 # first check for dpms.h
8383 ac_save_CPPFLAGS="$CPPFLAGS"
8384 if test \! -z "$includedir" ; then
8385 CPPFLAGS="$CPPFLAGS -I$includedir"
8387 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8388 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8389 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/dpms.h" "ac_cv_header_X11_extensions_dpms_h" "#include <X11/Xlib.h>
8390 #include <X11/Xmd.h>
8392 if test "x$ac_cv_header_X11_extensions_dpms_h" = xyes; then :
8397 CPPFLAGS="$ac_save_CPPFLAGS"
8399 # if that succeeded, then check for the DPMS code in the libraries
8400 if test "$have_dpms" = yes; then
8402 # first look in -lXext (this is where it is with XFree86 4.0)
8405 ac_save_CPPFLAGS="$CPPFLAGS"
8406 ac_save_LDFLAGS="$LDFLAGS"
8407 # ac_save_LIBS="$LIBS"
8409 if test \! -z "$includedir" ; then
8410 CPPFLAGS="$CPPFLAGS -I$includedir"
8412 # note: $X_CFLAGS includes $x_includes
8413 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8415 if test \! -z "$libdir" ; then
8416 LDFLAGS="$LDFLAGS -L$libdir"
8418 # note: $X_LIBS includes $x_libraries
8419 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
8421 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8422 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPMSInfo in -lXext" >&5
8424 $as_echo_n "checking for DPMSInfo in -lXext... " >&6; }
8425 if ${ac_cv_lib_Xext_DPMSInfo+:} false; then :
8426 $as_echo_n "(cached) " >&6
8428 ac_check_lib_save_LIBS=$LIBS
8429 LIBS="-lXext -lXext -lX11 $LIBS"
8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8433 /* Override any GCC internal prototype to avoid an error.
8434 Use char because int might match the return type of a GCC
8435 builtin and then its argument prototype would still apply. */
8448 if ac_fn_c_try_link "$LINENO"; then :
8449 ac_cv_lib_Xext_DPMSInfo=yes
8451 ac_cv_lib_Xext_DPMSInfo=no
8453 rm -f core conftest.err conftest.$ac_objext \
8454 conftest$ac_exeext conftest.$ac_ext
8455 LIBS=$ac_check_lib_save_LIBS
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_DPMSInfo" >&5
8458 $as_echo "$ac_cv_lib_Xext_DPMSInfo" >&6; }
8459 if test "x$ac_cv_lib_Xext_DPMSInfo" = xyes; then :
8465 CPPFLAGS="$ac_save_CPPFLAGS"
8466 LDFLAGS="$ac_save_LDFLAGS"
8467 # LIBS="$ac_save_LIBS"
8470 # if that failed, look in -lXdpms (this is where it was in XFree86 3.x)
8471 if test "$have_dpms" = no; then
8473 ac_save_CPPFLAGS="$CPPFLAGS"
8474 ac_save_LDFLAGS="$LDFLAGS"
8475 # ac_save_LIBS="$LIBS"
8477 if test \! -z "$includedir" ; then
8478 CPPFLAGS="$CPPFLAGS -I$includedir"
8480 # note: $X_CFLAGS includes $x_includes
8481 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8483 if test \! -z "$libdir" ; then
8484 LDFLAGS="$LDFLAGS -L$libdir"
8486 # note: $X_LIBS includes $x_libraries
8487 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
8489 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8490 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPMSInfo in -lXdpms" >&5
8492 $as_echo_n "checking for DPMSInfo in -lXdpms... " >&6; }
8493 if ${ac_cv_lib_Xdpms_DPMSInfo+:} false; then :
8494 $as_echo_n "(cached) " >&6
8496 ac_check_lib_save_LIBS=$LIBS
8497 LIBS="-lXdpms -lXext -lX11 $LIBS"
8498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499 /* end confdefs.h. */
8501 /* Override any GCC internal prototype to avoid an error.
8502 Use char because int might match the return type of a GCC
8503 builtin and then its argument prototype would still apply. */
8516 if ac_fn_c_try_link "$LINENO"; then :
8517 ac_cv_lib_Xdpms_DPMSInfo=yes
8519 ac_cv_lib_Xdpms_DPMSInfo=no
8521 rm -f core conftest.err conftest.$ac_objext \
8522 conftest$ac_exeext conftest.$ac_ext
8523 LIBS=$ac_check_lib_save_LIBS
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdpms_DPMSInfo" >&5
8526 $as_echo "$ac_cv_lib_Xdpms_DPMSInfo" >&6; }
8527 if test "x$ac_cv_lib_Xdpms_DPMSInfo" = xyes; then :
8528 have_dpms=yes; XDPMS_LIBS="-lXdpms"
8533 CPPFLAGS="$ac_save_CPPFLAGS"
8534 LDFLAGS="$ac_save_LDFLAGS"
8535 # LIBS="$ac_save_LIBS"
8541 # if that succeeded, then we've really got it.
8542 if test "$have_dpms" = yes; then
8543 $as_echo "#define HAVE_DPMS_EXTENSION 1" >>confdefs.h
8547 elif test "$with_dpms" != no; then
8548 echo "error: must be yes or no: --with-dpms-ext=$with_dpms"
8553 ###############################################################################
8555 # Check for the XINERAMA server extension.
8557 ###############################################################################
8560 with_xinerama_req=unspecified
8562 # Check whether --with-xinerama-ext was given.
8563 if test "${with_xinerama_ext+set}" = set; then :
8564 withval=$with_xinerama_ext; with_xinerama="$withval"; with_xinerama_req="$withval"
8571 case "$with_xinerama" in
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINERAMA headers" >&5
8577 $as_echo_n "checking for XINERAMA headers... " >&6; }
8578 d=$with_xinerama/include
8580 X_CFLAGS="-I$d $X_CFLAGS"
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
8582 $as_echo "$d" >&6; }
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
8585 $as_echo "not found ($d: no such directory)" >&6; }
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINERAMA libs" >&5
8589 $as_echo_n "checking for XINERAMA libs... " >&6; }
8590 d=$with_xinerama/lib
8592 X_LIBS="-L$d $X_LIBS"
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
8594 $as_echo "$d" >&6; }
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
8597 $as_echo "not found ($d: no such directory)" >&6; }
8600 # replace the directory string with "yes".
8601 with_xinerama_req="yes"
8602 with_xinerama=$with_xinerama_req
8607 echo "error: argument to --with-xinerama-ext must be \"yes\", \"no\", or a directory."
8608 echo " If it is a directory, then \`DIR/include' will be added to"
8609 echo " the -I list, and \`DIR/lib' will be added to the -L list."
8615 if test "$with_xinerama" = yes; then
8617 # first check for Xinerama.h
8619 ac_save_CPPFLAGS="$CPPFLAGS"
8620 if test \! -z "$includedir" ; then
8621 CPPFLAGS="$CPPFLAGS -I$includedir"
8623 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8624 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8625 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
8627 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
8632 CPPFLAGS="$ac_save_CPPFLAGS"
8634 # if that succeeded, then check for the XINERAMA code in the libraries
8635 if test "$have_xinerama" = yes; then
8637 # first look in -lXext
8640 ac_save_CPPFLAGS="$CPPFLAGS"
8641 ac_save_LDFLAGS="$LDFLAGS"
8642 # ac_save_LIBS="$LIBS"
8644 if test \! -z "$includedir" ; then
8645 CPPFLAGS="$CPPFLAGS -I$includedir"
8647 # note: $X_CFLAGS includes $x_includes
8648 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8650 if test \! -z "$libdir" ; then
8651 LDFLAGS="$LDFLAGS -L$libdir"
8653 # note: $X_LIBS includes $x_libraries
8654 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
8656 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8657 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryScreens in -lXext" >&5
8659 $as_echo_n "checking for XineramaQueryScreens in -lXext... " >&6; }
8660 if ${ac_cv_lib_Xext_XineramaQueryScreens+:} false; then :
8661 $as_echo_n "(cached) " >&6
8663 ac_check_lib_save_LIBS=$LIBS
8664 LIBS="-lXext -lXext -lX11 $LIBS"
8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h. */
8668 /* Override any GCC internal prototype to avoid an error.
8669 Use char because int might match the return type of a GCC
8670 builtin and then its argument prototype would still apply. */
8674 char XineramaQueryScreens ();
8678 return XineramaQueryScreens ();
8683 if ac_fn_c_try_link "$LINENO"; then :
8684 ac_cv_lib_Xext_XineramaQueryScreens=yes
8686 ac_cv_lib_Xext_XineramaQueryScreens=no
8688 rm -f core conftest.err conftest.$ac_objext \
8689 conftest$ac_exeext conftest.$ac_ext
8690 LIBS=$ac_check_lib_save_LIBS
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XineramaQueryScreens" >&5
8693 $as_echo "$ac_cv_lib_Xext_XineramaQueryScreens" >&6; }
8694 if test "x$ac_cv_lib_Xext_XineramaQueryScreens" = xyes; then :
8700 CPPFLAGS="$ac_save_CPPFLAGS"
8701 LDFLAGS="$ac_save_LDFLAGS"
8702 # LIBS="$ac_save_LIBS"
8705 # if that failed, look in -lXinerama (this is where it is in XFree86 4.1.)
8706 if test "$have_xinerama" = no; then
8708 ac_save_CPPFLAGS="$CPPFLAGS"
8709 ac_save_LDFLAGS="$LDFLAGS"
8710 # ac_save_LIBS="$LIBS"
8712 if test \! -z "$includedir" ; then
8713 CPPFLAGS="$CPPFLAGS -I$includedir"
8715 # note: $X_CFLAGS includes $x_includes
8716 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8718 if test \! -z "$libdir" ; then
8719 LDFLAGS="$LDFLAGS -L$libdir"
8721 # note: $X_LIBS includes $x_libraries
8722 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
8724 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8725 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryScreens in -lXinerama" >&5
8727 $as_echo_n "checking for XineramaQueryScreens in -lXinerama... " >&6; }
8728 if ${ac_cv_lib_Xinerama_XineramaQueryScreens+:} false; then :
8729 $as_echo_n "(cached) " >&6
8731 ac_check_lib_save_LIBS=$LIBS
8732 LIBS="-lXinerama -lXext -lX11 $LIBS"
8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8736 /* Override any GCC internal prototype to avoid an error.
8737 Use char because int might match the return type of a GCC
8738 builtin and then its argument prototype would still apply. */
8742 char XineramaQueryScreens ();
8746 return XineramaQueryScreens ();
8751 if ac_fn_c_try_link "$LINENO"; then :
8752 ac_cv_lib_Xinerama_XineramaQueryScreens=yes
8754 ac_cv_lib_Xinerama_XineramaQueryScreens=no
8756 rm -f core conftest.err conftest.$ac_objext \
8757 conftest$ac_exeext conftest.$ac_ext
8758 LIBS=$ac_check_lib_save_LIBS
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
8761 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
8762 if test "x$ac_cv_lib_Xinerama_XineramaQueryScreens" = xyes; then :
8763 have_xinerama=yes; XINERAMA_LIBS="-lXinerama"
8768 CPPFLAGS="$ac_save_CPPFLAGS"
8769 LDFLAGS="$ac_save_LDFLAGS"
8770 # LIBS="$ac_save_LIBS"
8775 # if that succeeded, then we've really got it.
8776 if test "$have_xinerama" = yes; then
8777 $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
8781 elif test "$with_xinerama" != no; then
8782 echo "error: must be yes or no: --with-xinerama-ext=$with_xinerama"
8787 ###############################################################################
8789 # Check for the XINPUT server extension.
8791 ###############################################################################
8794 with_xinput_req=unspecified
8796 # Check whether --with-xinput-ext was given.
8797 if test "${with_xinput_ext+set}" = set; then :
8798 withval=$with_xinput_ext; with_xinput="$withval"; with_xinput_req="$withval"
8805 case "$with_xinput" in
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINPUT headers" >&5
8811 $as_echo_n "checking for XINPUT headers... " >&6; }
8812 d=$with_xinput/include
8814 X_CFLAGS="-I$d $X_CFLAGS"
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
8816 $as_echo "$d" >&6; }
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
8819 $as_echo "not found ($d: no such directory)" >&6; }
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINPUT libs" >&5
8823 $as_echo_n "checking for XINPUT libs... " >&6; }
8826 X_LIBS="-L$d $X_LIBS"
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
8828 $as_echo "$d" >&6; }
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
8831 $as_echo "not found ($d: no such directory)" >&6; }
8834 # replace the directory string with "yes".
8835 with_xinput_req="yes"
8836 with_xinput=$with_xinput_req
8841 echo "error: argument to --with-xinput-ext must be \"yes\", \"no\", or a directory."
8842 echo " If it is a directory, then \`DIR/include' will be added to"
8843 echo " the -I list, and \`DIR/lib' will be added to the -L list."
8849 if test "$with_xinput" = yes; then
8851 # first check for Xinput.h
8853 ac_save_CPPFLAGS="$CPPFLAGS"
8854 if test \! -z "$includedir" ; then
8855 CPPFLAGS="$CPPFLAGS -I$includedir"
8857 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8858 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8859 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput.h" "ac_cv_header_X11_extensions_XInput_h" "#include <X11/Xlib.h>
8861 if test "x$ac_cv_header_X11_extensions_XInput_h" = xyes; then :
8866 CPPFLAGS="$ac_save_CPPFLAGS"
8868 # if that succeeded, then check for libXi
8869 if test "$have_xinput" = yes; then
8872 ac_save_CPPFLAGS="$CPPFLAGS"
8873 ac_save_LDFLAGS="$LDFLAGS"
8874 # ac_save_LIBS="$LIBS"
8876 if test \! -z "$includedir" ; then
8877 CPPFLAGS="$CPPFLAGS -I$includedir"
8879 # note: $X_CFLAGS includes $x_includes
8880 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8882 if test \! -z "$libdir" ; then
8883 LDFLAGS="$LDFLAGS -L$libdir"
8885 # note: $X_LIBS includes $x_libraries
8886 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
8888 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8889 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XListInputDevices in -lXi" >&5
8891 $as_echo_n "checking for XListInputDevices in -lXi... " >&6; }
8892 if ${ac_cv_lib_Xi_XListInputDevices+:} false; then :
8893 $as_echo_n "(cached) " >&6
8895 ac_check_lib_save_LIBS=$LIBS
8896 LIBS="-lXi -lXext -lX11 $LIBS"
8897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8898 /* end confdefs.h. */
8900 /* Override any GCC internal prototype to avoid an error.
8901 Use char because int might match the return type of a GCC
8902 builtin and then its argument prototype would still apply. */
8906 char XListInputDevices ();
8910 return XListInputDevices ();
8915 if ac_fn_c_try_link "$LINENO"; then :
8916 ac_cv_lib_Xi_XListInputDevices=yes
8918 ac_cv_lib_Xi_XListInputDevices=no
8920 rm -f core conftest.err conftest.$ac_objext \
8921 conftest$ac_exeext conftest.$ac_ext
8922 LIBS=$ac_check_lib_save_LIBS
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XListInputDevices" >&5
8925 $as_echo "$ac_cv_lib_Xi_XListInputDevices" >&6; }
8926 if test "x$ac_cv_lib_Xi_XListInputDevices" = xyes; then :
8927 have_xinput=yes; SAVER_LIBS="$SAVER_LIBS -lXi"
8932 CPPFLAGS="$ac_save_CPPFLAGS"
8933 LDFLAGS="$ac_save_LDFLAGS"
8934 # LIBS="$ac_save_LIBS"
8938 # if that succeeded, then we've really got it.
8939 if test "$have_xinput" = yes; then
8940 $as_echo "#define HAVE_XINPUT 1" >>confdefs.h
8944 elif test "$with_xinput" != no; then
8945 echo "error: must be yes or no: --with-xinput-ext=$with_xinput"
8950 ###############################################################################
8952 # Check for the XF86VMODE server extension (for virtual screens.)
8954 ###############################################################################
8957 with_xf86vmode_req=unspecified
8959 # Check whether --with-xf86vmode-ext was given.
8960 if test "${with_xf86vmode_ext+set}" = set; then :
8961 withval=$with_xf86vmode_ext; with_xf86vmode="$withval"; with_xf86vmode_req="$withval"
8968 case "$with_xf86vmode" in
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xf86vmode headers" >&5
8974 $as_echo_n "checking for xf86vmode headers... " >&6; }
8975 d=$with_xf86vmode/include
8977 X_CFLAGS="-I$d $X_CFLAGS"
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
8979 $as_echo "$d" >&6; }
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
8982 $as_echo "not found ($d: no such directory)" >&6; }
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xf86vmode libs" >&5
8986 $as_echo_n "checking for xf86vmode libs... " >&6; }
8987 d=$with_xf86vmode/lib
8989 X_LIBS="-L$d $X_LIBS"
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
8991 $as_echo "$d" >&6; }
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
8994 $as_echo "not found ($d: no such directory)" >&6; }
8997 # replace the directory string with "yes".
8998 with_xf86vmode_req="yes"
8999 with_xf86vmode=$with_xf86vmode_req
9004 echo "error: argument to --with-xf86vmode-ext must be \"yes\", \"no\", or a directory."
9005 echo " If it is a directory, then \`DIR/include' will be added to"
9006 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9014 if test "$with_xf86vmode" = yes; then
9016 # first check for xf86vmode.h
9018 ac_save_CPPFLAGS="$CPPFLAGS"
9019 if test \! -z "$includedir" ; then
9020 CPPFLAGS="$CPPFLAGS -I$includedir"
9022 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9023 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9024 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
9026 if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
9031 CPPFLAGS="$ac_save_CPPFLAGS"
9033 # if that succeeded, then check for the -lXxf86vm
9034 if test "$have_xf86vmode" = yes; then
9037 ac_save_CPPFLAGS="$CPPFLAGS"
9038 ac_save_LDFLAGS="$LDFLAGS"
9039 # ac_save_LIBS="$LIBS"
9041 if test \! -z "$includedir" ; then
9042 CPPFLAGS="$CPPFLAGS -I$includedir"
9044 # note: $X_CFLAGS includes $x_includes
9045 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9047 if test \! -z "$libdir" ; then
9048 LDFLAGS="$LDFLAGS -L$libdir"
9050 # note: $X_LIBS includes $x_libraries
9051 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9053 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9054 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeGetViewPort in -lXxf86vm" >&5
9056 $as_echo_n "checking for XF86VidModeGetViewPort in -lXxf86vm... " >&6; }
9057 if ${ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort+:} false; then :
9058 $as_echo_n "(cached) " >&6
9060 ac_check_lib_save_LIBS=$LIBS
9061 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
9062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9063 /* end confdefs.h. */
9065 /* Override any GCC internal prototype to avoid an error.
9066 Use char because int might match the return type of a GCC
9067 builtin and then its argument prototype would still apply. */
9071 char XF86VidModeGetViewPort ();
9075 return XF86VidModeGetViewPort ();
9080 if ac_fn_c_try_link "$LINENO"; then :
9081 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=yes
9083 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=no
9085 rm -f core conftest.err conftest.$ac_objext \
9086 conftest$ac_exeext conftest.$ac_ext
9087 LIBS=$ac_check_lib_save_LIBS
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&5
9090 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&6; }
9091 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" = xyes; then :
9093 VIDMODE_LIBS="-lXxf86vm";
9094 SAVER_LIBS="$SAVER_LIBS $VIDMODE_LIBS"
9099 CPPFLAGS="$ac_save_CPPFLAGS"
9100 LDFLAGS="$ac_save_LDFLAGS"
9101 # LIBS="$ac_save_LIBS"
9105 # if that succeeded, then we've really got it.
9106 if test "$have_xf86vmode" = yes; then
9107 $as_echo "#define HAVE_XF86VMODE 1" >>confdefs.h
9111 elif test "$with_xf86vmode" != no; then
9112 echo "error: must be yes or no: --with-xf86vmode-ext=$with_xf86vmode"
9117 ###############################################################################
9119 # Check for the XF86VMODE server extension (for gamma fading.)
9121 ###############################################################################
9124 have_xf86gamma_ramp=no
9125 with_xf86gamma_req=unspecified
9127 # Check whether --with-xf86gamma-ext was given.
9128 if test "${with_xf86gamma_ext+set}" = set; then :
9129 withval=$with_xf86gamma_ext; with_xf86gamma="$withval"; with_xf86gamma_req="$withval"
9136 case "$with_xf86gamma" in
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xf86gamma headers" >&5
9142 $as_echo_n "checking for xf86gamma headers... " >&6; }
9143 d=$with_xf86gamma/include
9145 X_CFLAGS="-I$d $X_CFLAGS"
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
9147 $as_echo "$d" >&6; }
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
9150 $as_echo "not found ($d: no such directory)" >&6; }
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xf86gamma libs" >&5
9154 $as_echo_n "checking for xf86gamma libs... " >&6; }
9155 d=$with_xf86gamma/lib
9157 X_LIBS="-L$d $X_LIBS"
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
9159 $as_echo "$d" >&6; }
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
9162 $as_echo "not found ($d: no such directory)" >&6; }
9165 # replace the directory string with "yes".
9166 with_xf86gamma_req="yes"
9167 with_xf86gamma=$with_xf86gamma_req
9172 echo "error: argument to --with-xf86gamma-ext must be \"yes\", \"no\", or a directory."
9173 echo " If it is a directory, then \`DIR/include' will be added to"
9174 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9180 if test "$with_xf86gamma" = yes; then
9182 # first check for xf86vmode.h, if we haven't already
9183 if test "$have_xf86vmode" = yes; then
9187 ac_save_CPPFLAGS="$CPPFLAGS"
9188 if test \! -z "$includedir" ; then
9189 CPPFLAGS="$CPPFLAGS -I$includedir"
9191 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9192 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9193 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
9195 if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
9200 CPPFLAGS="$ac_save_CPPFLAGS"
9203 # if that succeeded, then check for the -lXxf86vm
9204 if test "$have_xf86gamma" = yes; then
9207 ac_save_CPPFLAGS="$CPPFLAGS"
9208 ac_save_LDFLAGS="$LDFLAGS"
9209 # ac_save_LIBS="$LIBS"
9211 if test \! -z "$includedir" ; then
9212 CPPFLAGS="$CPPFLAGS -I$includedir"
9214 # note: $X_CFLAGS includes $x_includes
9215 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9217 if test \! -z "$libdir" ; then
9218 LDFLAGS="$LDFLAGS -L$libdir"
9220 # note: $X_LIBS includes $x_libraries
9221 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9223 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9224 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeSetGamma in -lXxf86vm" >&5
9226 $as_echo_n "checking for XF86VidModeSetGamma in -lXxf86vm... " >&6; }
9227 if ${ac_cv_lib_Xxf86vm_XF86VidModeSetGamma+:} false; then :
9228 $as_echo_n "(cached) " >&6
9230 ac_check_lib_save_LIBS=$LIBS
9231 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
9232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9233 /* end confdefs.h. */
9235 /* Override any GCC internal prototype to avoid an error.
9236 Use char because int might match the return type of a GCC
9237 builtin and then its argument prototype would still apply. */
9241 char XF86VidModeSetGamma ();
9245 return XF86VidModeSetGamma ();
9250 if ac_fn_c_try_link "$LINENO"; then :
9251 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=yes
9253 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=no
9255 rm -f core conftest.err conftest.$ac_objext \
9256 conftest$ac_exeext conftest.$ac_ext
9257 LIBS=$ac_check_lib_save_LIBS
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&5
9260 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&6; }
9261 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" = xyes; then :
9267 CPPFLAGS="$ac_save_CPPFLAGS"
9268 LDFLAGS="$ac_save_LDFLAGS"
9269 # LIBS="$ac_save_LIBS"
9273 # check for the Ramp versions of the functions too.
9274 if test "$have_xf86gamma" = yes; then
9275 have_xf86gamma_ramp=no
9277 ac_save_CPPFLAGS="$CPPFLAGS"
9278 ac_save_LDFLAGS="$LDFLAGS"
9279 # ac_save_LIBS="$LIBS"
9281 if test \! -z "$includedir" ; then
9282 CPPFLAGS="$CPPFLAGS -I$includedir"
9284 # note: $X_CFLAGS includes $x_includes
9285 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9287 if test \! -z "$libdir" ; then
9288 LDFLAGS="$LDFLAGS -L$libdir"
9290 # note: $X_LIBS includes $x_libraries
9291 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9293 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9294 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeSetGammaRamp in -lXxf86vm" >&5
9296 $as_echo_n "checking for XF86VidModeSetGammaRamp in -lXxf86vm... " >&6; }
9297 if ${ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp+:} false; then :
9298 $as_echo_n "(cached) " >&6
9300 ac_check_lib_save_LIBS=$LIBS
9301 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303 /* end confdefs.h. */
9305 /* Override any GCC internal prototype to avoid an error.
9306 Use char because int might match the return type of a GCC
9307 builtin and then its argument prototype would still apply. */
9311 char XF86VidModeSetGammaRamp ();
9315 return XF86VidModeSetGammaRamp ();
9320 if ac_fn_c_try_link "$LINENO"; then :
9321 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=yes
9323 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=no
9325 rm -f core conftest.err conftest.$ac_objext \
9326 conftest$ac_exeext conftest.$ac_ext
9327 LIBS=$ac_check_lib_save_LIBS
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&5
9330 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&6; }
9331 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" = xyes; then :
9332 have_xf86gamma_ramp=yes
9337 CPPFLAGS="$ac_save_CPPFLAGS"
9338 LDFLAGS="$ac_save_LDFLAGS"
9339 # LIBS="$ac_save_LIBS"
9343 # if those tests succeeded, then we've really got the functions.
9344 if test "$have_xf86gamma" = yes; then
9345 $as_echo "#define HAVE_XF86VMODE_GAMMA 1" >>confdefs.h
9349 if test "$have_xf86gamma_ramp" = yes; then
9350 $as_echo "#define HAVE_XF86VMODE_GAMMA_RAMP 1" >>confdefs.h
9354 # pull in the lib, if we haven't already
9355 if test "$have_xf86gamma" = yes -a "$have_xf86vmode" = no; then
9356 SAVER_LIBS="$SAVER_LIBS -lXxf86vm"
9359 elif test "$with_xf86gamma" != no; then
9360 echo "error: must be yes or no: --with-xf86gamma-ext=$with_xf86vmode"
9365 ###############################################################################
9367 # Check for the RANDR (Resize and Rotate) server extension.
9369 # We need this to detect when the resolution of the desktop
9370 # has changed out from under us (this is a newer, different
9371 # mechanism than the XF86VMODE virtual viewports.)
9373 ###############################################################################
9376 with_randr_req=unspecified
9378 # Check whether --with-randr-ext was given.
9379 if test "${with_randr_ext+set}" = set; then :
9380 withval=$with_randr_ext; with_randr="$withval"; with_randr_req="$withval"
9387 case "$with_randr" in
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RANDR headers" >&5
9393 $as_echo_n "checking for RANDR headers... " >&6; }
9394 d=$with_randr/include
9396 X_CFLAGS="-I$d $X_CFLAGS"
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
9398 $as_echo "$d" >&6; }
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
9401 $as_echo "not found ($d: no such directory)" >&6; }
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RANDR libs" >&5
9405 $as_echo_n "checking for RANDR libs... " >&6; }
9408 X_LIBS="-L$d $X_LIBS"
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
9410 $as_echo "$d" >&6; }
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
9413 $as_echo "not found ($d: no such directory)" >&6; }
9416 # replace the directory string with "yes".
9417 with_randr_req="yes"
9418 with_randr=$with_randr_req
9423 echo "error: argument to --with-randr-ext must be \"yes\", \"no\", or a directory."
9424 echo " If it is a directory, then \`DIR/include' will be added to"
9425 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9431 if test "$with_randr" = yes; then
9433 # first check for Xrandr.h
9435 ac_save_CPPFLAGS="$CPPFLAGS"
9436 if test \! -z "$includedir" ; then
9437 CPPFLAGS="$CPPFLAGS -I$includedir"
9439 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9440 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9441 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "#include <X11/Xlib.h>
9443 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = xyes; then :
9448 CPPFLAGS="$ac_save_CPPFLAGS"
9450 # if that succeeded, then check for the XRR code in the libraries
9451 if test "$have_randr" = yes; then
9453 # RANDR probably needs -lXrender
9456 ac_save_CPPFLAGS="$CPPFLAGS"
9457 ac_save_LDFLAGS="$LDFLAGS"
9458 # ac_save_LIBS="$LIBS"
9460 if test \! -z "$includedir" ; then
9461 CPPFLAGS="$CPPFLAGS -I$includedir"
9463 # note: $X_CFLAGS includes $x_includes
9464 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9466 if test \! -z "$libdir" ; then
9467 LDFLAGS="$LDFLAGS -L$libdir"
9469 # note: $X_LIBS includes $x_libraries
9470 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9472 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9473 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetSubpixelOrder in -lXrender" >&5
9475 $as_echo_n "checking for XRenderSetSubpixelOrder in -lXrender... " >&6; }
9476 if ${ac_cv_lib_Xrender_XRenderSetSubpixelOrder+:} false; then :
9477 $as_echo_n "(cached) " >&6
9479 ac_check_lib_save_LIBS=$LIBS
9480 LIBS="-lXrender -lXext -lX11 $LIBS"
9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9484 /* Override any GCC internal prototype to avoid an error.
9485 Use char because int might match the return type of a GCC
9486 builtin and then its argument prototype would still apply. */
9490 char XRenderSetSubpixelOrder ();
9494 return XRenderSetSubpixelOrder ();
9499 if ac_fn_c_try_link "$LINENO"; then :
9500 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=yes
9502 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=no
9504 rm -f core conftest.err conftest.$ac_objext \
9505 conftest$ac_exeext conftest.$ac_ext
9506 LIBS=$ac_check_lib_save_LIBS
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&5
9509 $as_echo "$ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&6; }
9510 if test "x$ac_cv_lib_Xrender_XRenderSetSubpixelOrder" = xyes; then :
9511 xrender_libs="-lXrender"
9516 CPPFLAGS="$ac_save_CPPFLAGS"
9517 LDFLAGS="$ac_save_LDFLAGS"
9518 # LIBS="$ac_save_LIBS"
9521 # first look for RANDR in -lXext
9524 ac_save_CPPFLAGS="$CPPFLAGS"
9525 ac_save_LDFLAGS="$LDFLAGS"
9526 # ac_save_LIBS="$LIBS"
9528 if test \! -z "$includedir" ; then
9529 CPPFLAGS="$CPPFLAGS -I$includedir"
9531 # note: $X_CFLAGS includes $x_includes
9532 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9534 if test \! -z "$libdir" ; then
9535 LDFLAGS="$LDFLAGS -L$libdir"
9537 # note: $X_LIBS includes $x_libraries
9538 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9540 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9541 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenInfo in -lXext" >&5
9543 $as_echo_n "checking for XRRGetScreenInfo in -lXext... " >&6; }
9544 if ${ac_cv_lib_Xext_XRRGetScreenInfo+:} false; then :
9545 $as_echo_n "(cached) " >&6
9547 ac_check_lib_save_LIBS=$LIBS
9548 LIBS="-lXext $xrender_libs -lXext -lX11 $LIBS"
9549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9550 /* end confdefs.h. */
9552 /* Override any GCC internal prototype to avoid an error.
9553 Use char because int might match the return type of a GCC
9554 builtin and then its argument prototype would still apply. */
9558 char XRRGetScreenInfo ();
9562 return XRRGetScreenInfo ();
9567 if ac_fn_c_try_link "$LINENO"; then :
9568 ac_cv_lib_Xext_XRRGetScreenInfo=yes
9570 ac_cv_lib_Xext_XRRGetScreenInfo=no
9572 rm -f core conftest.err conftest.$ac_objext \
9573 conftest$ac_exeext conftest.$ac_ext
9574 LIBS=$ac_check_lib_save_LIBS
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XRRGetScreenInfo" >&5
9577 $as_echo "$ac_cv_lib_Xext_XRRGetScreenInfo" >&6; }
9578 if test "x$ac_cv_lib_Xext_XRRGetScreenInfo" = xyes; then :
9579 have_randr=yes; SAVER_LIBS="$SAVER_LIBS $xrender_libs"
9584 CPPFLAGS="$ac_save_CPPFLAGS"
9585 LDFLAGS="$ac_save_LDFLAGS"
9586 # LIBS="$ac_save_LIBS"
9589 # if that failed, look in -lXrandr
9590 if test "$have_randr" = no; then
9592 ac_save_CPPFLAGS="$CPPFLAGS"
9593 ac_save_LDFLAGS="$LDFLAGS"
9594 # ac_save_LIBS="$LIBS"
9596 if test \! -z "$includedir" ; then
9597 CPPFLAGS="$CPPFLAGS -I$includedir"
9599 # note: $X_CFLAGS includes $x_includes
9600 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9602 if test \! -z "$libdir" ; then
9603 LDFLAGS="$LDFLAGS -L$libdir"
9605 # note: $X_LIBS includes $x_libraries
9606 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9608 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9609 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenInfo in -lXrandr" >&5
9611 $as_echo_n "checking for XRRGetScreenInfo in -lXrandr... " >&6; }
9612 if ${ac_cv_lib_Xrandr_XRRGetScreenInfo+:} false; then :
9613 $as_echo_n "(cached) " >&6
9615 ac_check_lib_save_LIBS=$LIBS
9616 LIBS="-lXrandr $xrender_libs -lXext -lX11 $LIBS"
9617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618 /* end confdefs.h. */
9620 /* Override any GCC internal prototype to avoid an error.
9621 Use char because int might match the return type of a GCC
9622 builtin and then its argument prototype would still apply. */
9626 char XRRGetScreenInfo ();
9630 return XRRGetScreenInfo ();
9635 if ac_fn_c_try_link "$LINENO"; then :
9636 ac_cv_lib_Xrandr_XRRGetScreenInfo=yes
9638 ac_cv_lib_Xrandr_XRRGetScreenInfo=no
9640 rm -f core conftest.err conftest.$ac_objext \
9641 conftest$ac_exeext conftest.$ac_ext
9642 LIBS=$ac_check_lib_save_LIBS
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRGetScreenInfo" >&5
9645 $as_echo "$ac_cv_lib_Xrandr_XRRGetScreenInfo" >&6; }
9646 if test "x$ac_cv_lib_Xrandr_XRRGetScreenInfo" = xyes; then :
9647 have_randr=yes; SAVER_LIBS="$SAVER_LIBS -lXrandr $xrender_libs"
9652 CPPFLAGS="$ac_save_CPPFLAGS"
9653 LDFLAGS="$ac_save_LDFLAGS"
9654 # LIBS="$ac_save_LIBS"
9659 # if that succeeded, then we've really got it.
9660 if test "$have_randr" = yes; then
9661 $as_echo "#define HAVE_RANDR 1" >>confdefs.h
9664 # Now check for version 1.2 in the same libs.
9665 # Try to compile, since on MacOS 10.5.7, headers are older than libs!
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenResources" >&5
9667 $as_echo_n "checking for XRRGetScreenResources... " >&6; }
9668 if ${ac_cv_randr_12+:} false; then :
9669 $as_echo_n "(cached) " >&6
9673 ac_save_CPPFLAGS="$CPPFLAGS"
9674 if test \! -z "$includedir" ; then
9675 CPPFLAGS="$CPPFLAGS -I$includedir"
9677 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9678 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9680 /* end confdefs.h. */
9682 #include <X11/Xlib.h>
9683 #include <X11/extensions/Xrandr.h>
9687 XRRScreenResources *res =
9688 XRRGetScreenResources (0, 0);
9693 if ac_fn_c_try_compile "$LINENO"; then :
9698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9699 CPPFLAGS="$ac_save_CPPFLAGS"
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_randr_12" >&5
9702 $as_echo "$ac_cv_randr_12" >&6; }
9703 if test "$ac_cv_randr_12" = yes ; then
9704 $as_echo "#define HAVE_RANDR_12 1" >>confdefs.h
9707 # AC_CHECK_X_LIB(c, XRRGetOutputInfo, [AC_DEFINE(HAVE_RANDR_12)],
9708 # [true], $SAVER_LIBS)
9712 elif test "$with_randr" != no; then
9713 echo "error: must be yes or no: --with-randr-ext=$with_randr"
9718 ###############################################################################
9720 # Check for XF86MiscSetGrabKeysState (but only bother if we are already
9721 # using other XF86 stuff.)
9723 ###############################################################################
9725 have_xf86miscsetgrabkeysstate=no
9726 if test "$have_xf86gamma" = yes -o "$have_xf86vmode" = yes; then
9728 ac_save_CPPFLAGS="$CPPFLAGS"
9729 ac_save_LDFLAGS="$LDFLAGS"
9730 # ac_save_LIBS="$LIBS"
9732 if test \! -z "$includedir" ; then
9733 CPPFLAGS="$CPPFLAGS -I$includedir"
9735 # note: $X_CFLAGS includes $x_includes
9736 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9738 if test \! -z "$libdir" ; then
9739 LDFLAGS="$LDFLAGS -L$libdir"
9741 # note: $X_LIBS includes $x_libraries
9742 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9744 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9745 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86MiscSetGrabKeysState in -lXxf86misc" >&5
9747 $as_echo_n "checking for XF86MiscSetGrabKeysState in -lXxf86misc... " >&6; }
9748 if ${ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState+:} false; then :
9749 $as_echo_n "(cached) " >&6
9751 ac_check_lib_save_LIBS=$LIBS
9752 LIBS="-lXxf86misc -lXext -lX11 $LIBS"
9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h. */
9756 /* Override any GCC internal prototype to avoid an error.
9757 Use char because int might match the return type of a GCC
9758 builtin and then its argument prototype would still apply. */
9762 char XF86MiscSetGrabKeysState ();
9766 return XF86MiscSetGrabKeysState ();
9771 if ac_fn_c_try_link "$LINENO"; then :
9772 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=yes
9774 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=no
9776 rm -f core conftest.err conftest.$ac_objext \
9777 conftest$ac_exeext conftest.$ac_ext
9778 LIBS=$ac_check_lib_save_LIBS
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&5
9781 $as_echo "$ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&6; }
9782 if test "x$ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" = xyes; then :
9783 have_xf86miscsetgrabkeysstate=yes
9788 CPPFLAGS="$ac_save_CPPFLAGS"
9789 LDFLAGS="$ac_save_LDFLAGS"
9790 # LIBS="$ac_save_LIBS"
9792 if test "$have_xf86miscsetgrabkeysstate" = yes ; then
9793 SAVER_LIBS="$SAVER_LIBS -lXxf86misc"
9794 $as_echo "#define HAVE_XF86MISCSETGRABKEYSSTATE 1" >>confdefs.h
9800 ###############################################################################
9802 # Check for HP XHPDisableReset and XHPEnableReset.
9804 ###############################################################################
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XHPDisableReset in X11/XHPlib.h" >&5
9807 $as_echo_n "checking for XHPDisableReset in X11/XHPlib.h... " >&6; }
9809 ac_save_CPPFLAGS="$CPPFLAGS"
9810 if test \! -z "$includedir" ; then
9811 CPPFLAGS="$CPPFLAGS -I$includedir"
9813 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9814 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9816 /* end confdefs.h. */
9817 #include <X11/XHPlib.h>
9820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9821 $EGREP "XHPDisableReset" >/dev/null 2>&1; then :
9822 $as_echo "#define HAVE_XHPDISABLERESET 1" >>confdefs.h
9824 SAVER_LIBS="-lXhp11 $SAVER_LIBS"
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9826 $as_echo "yes" >&6; }
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9829 $as_echo "no" >&6; }
9833 CPPFLAGS="$ac_save_CPPFLAGS"
9836 ###############################################################################
9838 # Check for /proc/interrupts.
9840 ###############################################################################
9842 have_proc_interrupts=no
9843 with_proc_interrupts_req=unspecified
9845 # Check whether --with-proc-interrupts was given.
9846 if test "${with_proc_interrupts+set}" = set; then :
9847 withval=$with_proc_interrupts; with_proc_interrupts="$withval"; with_proc_interrupts_req="$withval"
9849 with_proc_interrupts=yes
9853 if test "$with_proc_interrupts" = yes; then
9855 # Note that we may be building in an environment (e.g. Debian buildd chroot)
9856 # without a proper /proc filesystem. If /proc/interrupts exists, then we'll
9857 # check that it has the bits we need, but otherwise we'll just go on faith.
9859 have_proc_interrupts=yes
9861 if test -f /proc/interrupts; then
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /proc/interrupts contains keyboard data" >&5
9863 $as_echo_n "checking whether /proc/interrupts contains keyboard data... " >&6; }
9864 if ${ac_cv_have_proc_interrupts+:} false; then :
9865 $as_echo_n "(cached) " >&6
9867 ac_cv_have_proc_interrupts=no
9868 if grep 'keyboard\|i8042' /proc/interrupts >/dev/null 2>&1 ; then
9869 ac_cv_have_proc_interrupts=yes
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_proc_interrupts" >&5
9874 $as_echo "$ac_cv_have_proc_interrupts" >&6; }
9875 have_proc_interrupts=$ac_cv_have_proc_interrupts
9878 if test "$have_proc_interrupts" = yes; then
9879 $as_echo "#define HAVE_PROC_INTERRUPTS 1" >>confdefs.h
9883 elif test "$with_proc_interrupts" != no; then
9884 echo "error: must be yes or no: --with-proc-interrupts=$with_proc_interrupts"
9889 ###############################################################################
9891 # The --enable-locking option
9893 ###############################################################################
9895 # Check whether --enable-locking was given.
9896 if test "${enable_locking+set}" = set; then :
9897 enableval=$enable_locking; enable_locking="$enableval"
9899 if test "$ac_macosx" = yes; then
9900 # We can't lock on MacOS X, so default to not compiling in support for it.
9901 # But allow --enable-locking to override that, so I can debug Linux locking
9909 if test "$enable_locking" = yes; then
9911 elif test "$enable_locking" = no; then
9912 $as_echo "#define NO_LOCKING 1" >>confdefs.h
9915 echo "error: must be yes or no: --enable-locking=$enable_locking"
9920 ###############################################################################
9922 # Whether to allow root password to unblank.
9924 ###############################################################################
9925 # Check whether --enable-root-passwd was given.
9926 if test "${enable_root_passwd+set}" = set; then :
9927 enableval=$enable_root_passwd; enable_root_passwd="$enableval"
9929 enable_root_passwd=yes
9932 if test "$enable_root_passwd" = yes; then
9933 $as_echo "#define ALLOW_ROOT_PASSWD 1" >>confdefs.h
9936 elif test "$enable_root_passwd" != no; then
9937 echo "error: must be yes or no: --enable-root-passwd=$enable_root_passwd"
9941 ###############################################################################
9945 ###############################################################################
9949 # Solaris systems tend to come with PAM misconfigured.
9950 # Don't build it by default, even if the headers exist.
9954 # Default to building PAM support on all other systems, if it exists.
9955 with_pam_default=yes
9960 with_pam_req=unspecified
9963 # Check whether --with-pam was given.
9964 if test "${with_pam+set}" = set; then :
9965 withval=$with_pam; with_pam="$withval"; with_pam_req="$withval"
9967 with_pam=$with_pam_default
9972 # Check whether --with-pam_service_name was given.
9973 if test "${with_pam_service_name+set}" = set; then :
9974 withval=$with_pam_service_name; pam_service_name="$withval"
9976 pam_service_name="xscreensaver"
9980 # Check whether --enable-pam-check-account-type was given.
9981 if test "${enable_pam_check_account_type+set}" = set; then :
9982 enableval=$enable_pam_check_account_type; enable_pam_check_account_type="$enableval"
9984 enable_pam_check_account_type=no
9987 if test "$enable_pam_check_account_type" = yes ; then
9988 $as_echo "#define PAM_CHECK_ACCOUNT_TYPE 1" >>confdefs.h
9991 elif test "$enable_pam_check_account_type" != no ; then
9992 echo "error: must be yes or no: --enable-pam-check-account-type=$enable_pam_check_account_type"
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAM headers" >&5
10003 $as_echo_n "checking for PAM headers... " >&6; }
10004 d=$with_pam/include
10005 if test -d $d; then
10006 X_CFLAGS="-I$d $X_CFLAGS"
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
10008 $as_echo "$d" >&6; }
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
10011 $as_echo "not found ($d: no such directory)" >&6; }
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAM libs" >&5
10015 $as_echo_n "checking for PAM libs... " >&6; }
10017 if test -d $d; then
10018 X_LIBS="-L$d $X_LIBS"
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
10020 $as_echo "$d" >&6; }
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
10023 $as_echo "not found ($d: no such directory)" >&6; }
10026 # replace the directory string with "yes".
10028 with_pam=$with_pam_req
10033 echo "error: argument to --with-pam must be \"yes\", \"no\", or a directory."
10034 echo " If it is a directory, then \`DIR/include' will be added to"
10035 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10041 if test "$enable_locking" = yes -a "$with_pam" = yes; then
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAM" >&5
10043 $as_echo_n "checking for PAM... " >&6; }
10044 if ${ac_cv_pam+:} false; then :
10045 $as_echo_n "(cached) " >&6
10048 ac_save_CPPFLAGS="$CPPFLAGS"
10049 if test \! -z "$includedir" ; then
10050 CPPFLAGS="$CPPFLAGS -I$includedir"
10052 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10053 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055 /* end confdefs.h. */
10056 #include <security/pam_appl.h>
10065 if ac_fn_c_try_compile "$LINENO"; then :
10070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10071 CPPFLAGS="$ac_save_CPPFLAGS"
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pam" >&5
10074 $as_echo "$ac_cv_pam" >&6; }
10075 if test "$ac_cv_pam" = yes ; then
10077 $as_echo "#define HAVE_PAM 1" >>confdefs.h
10079 cat >>confdefs.h <<_ACEOF
10080 #define PAM_SERVICE_NAME "$pam_service_name"
10084 PASSWD_LIBS="${PASSWD_LIBS} -lpam"
10086 # libpam typically requires dlopen and dlsym. On FreeBSD,
10087 # those are in libc. On Linux and Solaris, they're in libdl.
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10089 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10090 if ${ac_cv_lib_dl_dlopen+:} false; then :
10091 $as_echo_n "(cached) " >&6
10093 ac_check_lib_save_LIBS=$LIBS
10095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096 /* end confdefs.h. */
10098 /* Override any GCC internal prototype to avoid an error.
10099 Use char because int might match the return type of a GCC
10100 builtin and then its argument prototype would still apply. */
10113 if ac_fn_c_try_link "$LINENO"; then :
10114 ac_cv_lib_dl_dlopen=yes
10116 ac_cv_lib_dl_dlopen=no
10118 rm -f core conftest.err conftest.$ac_objext \
10119 conftest$ac_exeext conftest.$ac_ext
10120 LIBS=$ac_check_lib_save_LIBS
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10123 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10124 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10125 PASSWD_LIBS="${PASSWD_LIBS} -ldl"
10129 # On Linux, sigtimedwait() is in libc; on Solaris, it's in librt.
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigtimedwait in -lc" >&5
10132 $as_echo_n "checking for sigtimedwait in -lc... " >&6; }
10133 if ${ac_cv_lib_c_sigtimedwait+:} false; then :
10134 $as_echo_n "(cached) " >&6
10136 ac_check_lib_save_LIBS=$LIBS
10138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10139 /* end confdefs.h. */
10141 /* Override any GCC internal prototype to avoid an error.
10142 Use char because int might match the return type of a GCC
10143 builtin and then its argument prototype would still apply. */
10147 char sigtimedwait ();
10151 return sigtimedwait ();
10156 if ac_fn_c_try_link "$LINENO"; then :
10157 ac_cv_lib_c_sigtimedwait=yes
10159 ac_cv_lib_c_sigtimedwait=no
10161 rm -f core conftest.err conftest.$ac_objext \
10162 conftest$ac_exeext conftest.$ac_ext
10163 LIBS=$ac_check_lib_save_LIBS
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigtimedwait" >&5
10166 $as_echo "$ac_cv_lib_c_sigtimedwait" >&6; }
10167 if test "x$ac_cv_lib_c_sigtimedwait" = xyes; then :
10169 $as_echo "#define HAVE_SIGTIMEDWAIT 1" >>confdefs.h
10173 if test "$have_timedwait" = no ; then
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigtimedwait in -lrt" >&5
10175 $as_echo_n "checking for sigtimedwait in -lrt... " >&6; }
10176 if ${ac_cv_lib_rt_sigtimedwait+:} false; then :
10177 $as_echo_n "(cached) " >&6
10179 ac_check_lib_save_LIBS=$LIBS
10181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10182 /* end confdefs.h. */
10184 /* Override any GCC internal prototype to avoid an error.
10185 Use char because int might match the return type of a GCC
10186 builtin and then its argument prototype would still apply. */
10190 char sigtimedwait ();
10194 return sigtimedwait ();
10199 if ac_fn_c_try_link "$LINENO"; then :
10200 ac_cv_lib_rt_sigtimedwait=yes
10202 ac_cv_lib_rt_sigtimedwait=no
10204 rm -f core conftest.err conftest.$ac_objext \
10205 conftest$ac_exeext conftest.$ac_ext
10206 LIBS=$ac_check_lib_save_LIBS
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sigtimedwait" >&5
10209 $as_echo "$ac_cv_lib_rt_sigtimedwait" >&6; }
10210 if test "x$ac_cv_lib_rt_sigtimedwait" = xyes; then :
10212 $as_echo "#define HAVE_SIGTIMEDWAIT 1" >>confdefs.h
10214 PASSWD_LIBS="${PASSWD_LIBS} -lrt"
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to call pam_strerror" >&5
10220 $as_echo_n "checking how to call pam_strerror... " >&6; }
10221 if ${ac_cv_pam_strerror_args+:} false; then :
10222 $as_echo_n "(cached) " >&6
10225 ac_save_CPPFLAGS="$CPPFLAGS"
10226 if test \! -z "$includedir" ; then
10227 CPPFLAGS="$CPPFLAGS -I$includedir"
10229 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10230 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10232 /* end confdefs.h. */
10234 #include <stdlib.h>
10235 #include <security/pam_appl.h>
10239 pam_handle_t *pamh = 0;
10240 char *s = pam_strerror(pamh, PAM_SUCCESS);
10245 if ac_fn_c_try_compile "$LINENO"; then :
10246 ac_pam_strerror_args=2
10249 ac_save_CPPFLAGS="$CPPFLAGS"
10250 if test \! -z "$includedir" ; then
10251 CPPFLAGS="$CPPFLAGS -I$includedir"
10253 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10254 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10256 /* end confdefs.h. */
10258 #include <stdlib.h>
10259 #include <security/pam_appl.h>
10264 pam_strerror(PAM_SUCCESS);
10269 if ac_fn_c_try_compile "$LINENO"; then :
10270 ac_pam_strerror_args=1
10272 ac_pam_strerror_args=0
10274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10275 CPPFLAGS="$ac_save_CPPFLAGS"
10277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10278 CPPFLAGS="$ac_save_CPPFLAGS"
10279 ac_cv_pam_strerror_args=$ac_pam_strerror_args
10282 ac_pam_strerror_args=$ac_cv_pam_strerror_args
10283 if test "$ac_pam_strerror_args" = 1 ; then
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: one argument" >&5
10285 $as_echo "one argument" >&6; }
10286 elif test "$ac_pam_strerror_args" = 2 ; then
10287 $as_echo "#define PAM_STRERROR_TWO_ARGS 1" >>confdefs.h
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: two arguments" >&5
10290 $as_echo "two arguments" >&6; }
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
10293 $as_echo "unknown" >&6; }
10296 # Check pam_fail_delay
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pam_fail_delay in -lpam" >&5
10298 $as_echo_n "checking pam_fail_delay in -lpam... " >&6; }
10299 if ${ac_cv_pam_fail_delay+:} false; then :
10300 $as_echo_n "(cached) " >&6
10302 ac_save_LDFLAGS="$LDFLAGS"
10304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10305 /* end confdefs.h. */
10306 #include <security/pam_appl.h>
10310 pam_handle_t *pamh = 0;
10311 unsigned int usec = 1;
10312 int status = pam_fail_delay (pamh, usec);
10317 if ac_fn_c_try_link "$LINENO"; then :
10318 ac_pam_fail_delay=yes
10320 ac_pam_fail_delay=no
10322 rm -f core conftest.err conftest.$ac_objext \
10323 conftest$ac_exeext conftest.$ac_ext
10324 ac_cv_pam_fail_delay=$ac_pam_fail_delay,
10325 LDFLAGS=$ac_save_LDFLAGS
10329 if test "$ac_pam_fail_delay" = yes ; then
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10331 $as_echo "yes" >&6; }
10332 $as_echo "#define HAVE_PAM_FAIL_DELAY 1" >>confdefs.h
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10336 $as_echo "no" >&6; }
10343 ###############################################################################
10345 # Check for Kerberos.
10347 ###############################################################################
10351 with_kerberos_req=unspecified
10354 # Check whether --with-kerberos was given.
10355 if test "${with_kerberos+set}" = set; then :
10356 withval=$with_kerberos; with_kerberos="$withval"; with_kerberos_req="$withval"
10363 case "$with_kerberos" in
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos headers" >&5
10369 $as_echo_n "checking for Kerberos headers... " >&6; }
10370 d=$with_kerberos/include
10371 if test -d $d; then
10372 X_CFLAGS="-I$d $X_CFLAGS"
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
10374 $as_echo "$d" >&6; }
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
10377 $as_echo "not found ($d: no such directory)" >&6; }
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos libs" >&5
10381 $as_echo_n "checking for Kerberos libs... " >&6; }
10382 d=$with_kerberos/lib
10383 if test -d $d; then
10384 X_LIBS="-L$d $X_LIBS"
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
10386 $as_echo "$d" >&6; }
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
10389 $as_echo "not found ($d: no such directory)" >&6; }
10392 # replace the directory string with "yes".
10393 with_kerberos_req="yes"
10394 with_kerberos=$with_kerberos_req
10399 echo "error: argument to --with-kerberos must be \"yes\", \"no\", or a directory."
10400 echo " If it is a directory, then \`DIR/include' will be added to"
10401 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10407 if test "$enable_locking" = yes -a "$with_kerberos" = yes; then
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos 4" >&5
10409 $as_echo_n "checking for Kerberos 4... " >&6; }
10410 if ${ac_cv_kerberos+:} false; then :
10411 $as_echo_n "(cached) " >&6
10414 ac_save_CPPFLAGS="$CPPFLAGS"
10415 if test \! -z "$includedir" ; then
10416 CPPFLAGS="$CPPFLAGS -I$includedir"
10418 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10419 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10431 if ac_fn_c_try_compile "$LINENO"; then :
10436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10437 CPPFLAGS="$ac_save_CPPFLAGS"
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kerberos" >&5
10440 $as_echo "$ac_cv_kerberos" >&6; }
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos 5" >&5
10442 $as_echo_n "checking for Kerberos 5... " >&6; }
10443 if ${ac_cv_kerberos5+:} false; then :
10444 $as_echo_n "(cached) " >&6
10447 ac_save_CPPFLAGS="$CPPFLAGS"
10448 if test \! -z "$includedir" ; then
10449 CPPFLAGS="$CPPFLAGS -I$includedir"
10451 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10452 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10454 /* end confdefs.h. */
10455 #include <kerberosIV/krb.h>
10464 if ac_fn_c_try_compile "$LINENO"; then :
10465 ac_cv_kerberos5=yes
10469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10470 CPPFLAGS="$ac_save_CPPFLAGS"
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kerberos5" >&5
10473 $as_echo "$ac_cv_kerberos5" >&6; }
10475 if test "$ac_cv_kerberos" = yes ; then
10477 $as_echo "#define HAVE_KERBEROS 1" >>confdefs.h
10481 if test "$ac_cv_kerberos5" = yes ; then
10483 # Andrew Snare <ajs@pigpond.com> wrote:
10485 # You were assuming that if kerberosV (krb5) was found, then kerberosIV
10486 # (krb4) was also available. This turns out not to be the case with
10487 # mit-krb-1.2.7; apparently backwards-compatibility with KerberosIV
10490 # So, disable kerberosV support if libkrb4 can't be found.
10491 # This is not the best solution, but it makes the compile not fail.
10494 ac_save_CPPFLAGS="$CPPFLAGS"
10495 ac_save_LDFLAGS="$LDFLAGS"
10496 # ac_save_LIBS="$LIBS"
10498 if test \! -z "$includedir" ; then
10499 CPPFLAGS="$CPPFLAGS -I$includedir"
10501 # note: $X_CFLAGS includes $x_includes
10502 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10504 if test \! -z "$libdir" ; then
10505 LDFLAGS="$LDFLAGS -L$libdir"
10507 # note: $X_LIBS includes $x_libraries
10508 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10510 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10511 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_tf_realm in -lkrb4" >&5
10513 $as_echo_n "checking for krb_get_tf_realm in -lkrb4... " >&6; }
10514 if ${ac_cv_lib_krb4_krb_get_tf_realm+:} false; then :
10515 $as_echo_n "(cached) " >&6
10517 ac_check_lib_save_LIBS=$LIBS
10518 LIBS="-lkrb4 $LIBS"
10519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10522 /* Override any GCC internal prototype to avoid an error.
10523 Use char because int might match the return type of a GCC
10524 builtin and then its argument prototype would still apply. */
10528 char krb_get_tf_realm ();
10532 return krb_get_tf_realm ();
10537 if ac_fn_c_try_link "$LINENO"; then :
10538 ac_cv_lib_krb4_krb_get_tf_realm=yes
10540 ac_cv_lib_krb4_krb_get_tf_realm=no
10542 rm -f core conftest.err conftest.$ac_objext \
10543 conftest$ac_exeext conftest.$ac_ext
10544 LIBS=$ac_check_lib_save_LIBS
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_tf_realm" >&5
10547 $as_echo "$ac_cv_lib_krb4_krb_get_tf_realm" >&6; }
10548 if test "x$ac_cv_lib_krb4_krb_get_tf_realm" = xyes; then :
10554 CPPFLAGS="$ac_save_CPPFLAGS"
10555 LDFLAGS="$ac_save_LDFLAGS"
10556 # LIBS="$ac_save_LIBS"
10558 if test "$have_kerberos" = yes ; then
10560 $as_echo "#define HAVE_KERBEROS 1" >>confdefs.h
10562 $as_echo "#define HAVE_KERBEROS5 1" >>confdefs.h
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&5
10567 $as_echo "$as_me: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&2;}
10572 if test "$have_kerberos5" = yes ; then
10573 # from Matt Knopp <mhat@infocalypse.netlag.com>
10574 # (who got it from amu@mit.edu)
10576 PASSWD_LIBS="$PASSWD_LIBS -lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
10578 # jwz: MacOS X uses -lkrb5, but not -lcrypt
10580 ac_save_CPPFLAGS="$CPPFLAGS"
10581 ac_save_LDFLAGS="$LDFLAGS"
10582 # ac_save_LIBS="$LIBS"
10584 if test \! -z "$includedir" ; then
10585 CPPFLAGS="$CPPFLAGS -I$includedir"
10587 # note: $X_CFLAGS includes $x_includes
10588 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10590 if test \! -z "$libdir" ; then
10591 LDFLAGS="$LDFLAGS -L$libdir"
10593 # note: $X_LIBS includes $x_libraries
10594 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10596 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10597 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10599 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
10600 if ${ac_cv_lib_crypt_crypt+:} false; then :
10601 $as_echo_n "(cached) " >&6
10603 ac_check_lib_save_LIBS=$LIBS
10604 LIBS="-lcrypt $LIBS"
10605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10606 /* end confdefs.h. */
10608 /* Override any GCC internal prototype to avoid an error.
10609 Use char because int might match the return type of a GCC
10610 builtin and then its argument prototype would still apply. */
10623 if ac_fn_c_try_link "$LINENO"; then :
10624 ac_cv_lib_crypt_crypt=yes
10626 ac_cv_lib_crypt_crypt=no
10628 rm -f core conftest.err conftest.$ac_objext \
10629 conftest$ac_exeext conftest.$ac_ext
10630 LIBS=$ac_check_lib_save_LIBS
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10633 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10634 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
10635 PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
10638 CPPFLAGS="$ac_save_CPPFLAGS"
10639 LDFLAGS="$ac_save_LDFLAGS"
10640 # LIBS="$ac_save_LIBS"
10643 elif test "$have_kerberos" = yes ; then
10644 # from Tim Showalter <tjs@psaux.com> for FreeBSD 4.2
10645 PASSWD_LIBS="$PASSWD_LIBS -lkrb -ldes -lcom_err"
10648 if test "$have_kerberos" = yes ; then
10649 ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
10650 if test "x$ac_cv_func_res_search" = xyes; then :
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
10654 $as_echo_n "checking for res_search in -lresolv... " >&6; }
10655 if ${ac_cv_lib_resolv_res_search+:} false; then :
10656 $as_echo_n "(cached) " >&6
10658 ac_check_lib_save_LIBS=$LIBS
10659 LIBS="-lresolv $LIBS"
10660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10661 /* end confdefs.h. */
10663 /* Override any GCC internal prototype to avoid an error.
10664 Use char because int might match the return type of a GCC
10665 builtin and then its argument prototype would still apply. */
10669 char res_search ();
10673 return res_search ();
10678 if ac_fn_c_try_link "$LINENO"; then :
10679 ac_cv_lib_resolv_res_search=yes
10681 ac_cv_lib_resolv_res_search=no
10683 rm -f core conftest.err conftest.$ac_objext \
10684 conftest$ac_exeext conftest.$ac_ext
10685 LIBS=$ac_check_lib_save_LIBS
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
10688 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
10689 if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
10690 PASSWD_LIBS="${PASSWD_LIBS} -lresolv"
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&5
10693 $as_echo "$as_me: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&2;}
10703 ###############################################################################
10705 # Check for the nine billion variants of shadow passwords...
10707 ###############################################################################
10712 with_shadow_req=unspecified
10715 # Check whether --with-shadow was given.
10716 if test "${with_shadow+set}" = set; then :
10717 withval=$with_shadow; with_shadow="$withval"; with_shadow_req="$withval"
10724 case "$with_shadow" in
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shadow password headers" >&5
10730 $as_echo_n "checking for shadow password headers... " >&6; }
10731 d=$with_shadow/include
10732 if test -d $d; then
10733 X_CFLAGS="-I$d $X_CFLAGS"
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
10735 $as_echo "$d" >&6; }
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
10738 $as_echo "not found ($d: no such directory)" >&6; }
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shadow password libs" >&5
10742 $as_echo_n "checking for shadow password libs... " >&6; }
10744 if test -d $d; then
10745 X_LIBS="-L$d $X_LIBS"
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
10747 $as_echo "$d" >&6; }
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
10750 $as_echo "not found ($d: no such directory)" >&6; }
10753 # replace the directory string with "yes".
10754 with_shadow_req="yes"
10755 with_shadow=$with_shadow_req
10760 echo "error: argument to --with-shadow must be \"yes\", \"no\", or a directory."
10761 echo " If it is a directory, then \`DIR/include' will be added to"
10762 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10768 if test "$enable_locking" = no ; then
10774 ###############################################################################
10776 # Check for Sun "adjunct" passwords.
10778 ###############################################################################
10780 if test "$with_shadow" = yes ; then
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Sun-style shadow passwords" >&5
10782 $as_echo_n "checking for Sun-style shadow passwords... " >&6; }
10783 if ${ac_cv_sun_adjunct+:} false; then :
10784 $as_echo_n "(cached) " >&6
10787 ac_save_CPPFLAGS="$CPPFLAGS"
10788 if test \! -z "$includedir" ; then
10789 CPPFLAGS="$CPPFLAGS -I$includedir"
10791 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10792 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10795 #include <stdlib.h>
10796 #include <unistd.h>
10797 #include <sys/types.h>
10798 #include <sys/label.h>
10799 #include <sys/audit.h>
10800 #include <pwdadj.h>
10804 struct passwd_adjunct *p = getpwanam("nobody");
10805 const char *pw = p->pwa_passwd;
10810 if ac_fn_c_try_compile "$LINENO"; then :
10811 ac_cv_sun_adjunct=yes
10813 ac_cv_sun_adjunct=no
10815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10816 CPPFLAGS="$ac_save_CPPFLAGS"
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sun_adjunct" >&5
10819 $as_echo "$ac_cv_sun_adjunct" >&6; }
10820 if test "$ac_cv_sun_adjunct" = yes; then
10821 have_shadow_adjunct=yes
10828 ###############################################################################
10830 # Check for DEC and SCO so-called "enhanced" security.
10832 ###############################################################################
10834 if test "$with_shadow" = yes ; then
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEC-style shadow passwords" >&5
10836 $as_echo_n "checking for DEC-style shadow passwords... " >&6; }
10837 if ${ac_cv_enhanced_passwd+:} false; then :
10838 $as_echo_n "(cached) " >&6
10841 ac_save_CPPFLAGS="$CPPFLAGS"
10842 if test \! -z "$includedir" ; then
10843 CPPFLAGS="$CPPFLAGS -I$includedir"
10845 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10846 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10848 /* end confdefs.h. */
10849 #include <stdlib.h>
10850 #include <unistd.h>
10851 #include <sys/types.h>
10853 #include <sys/security.h>
10858 struct pr_passwd *p;
10860 set_auth_parameters(0, 0);
10861 check_auth_parameters();
10862 p = getprpwnam("nobody");
10863 pw = p->ufld.fd_encrypt;
10868 if ac_fn_c_try_compile "$LINENO"; then :
10869 ac_cv_enhanced_passwd=yes
10871 ac_cv_enhanced_passwd=no
10873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10874 CPPFLAGS="$ac_save_CPPFLAGS"
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enhanced_passwd" >&5
10877 $as_echo "$ac_cv_enhanced_passwd" >&6; }
10878 if test $ac_cv_enhanced_passwd = yes; then
10879 have_shadow_enhanced=yes
10883 # On SCO, getprpwnam() is in -lprot (which uses nap() from -lx)
10884 # (I'm told it needs -lcurses too, but I don't understand why.)
10885 # But on DEC, it's in -lsecurity.
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getprpwnam in -lprot" >&5
10888 $as_echo_n "checking for getprpwnam in -lprot... " >&6; }
10889 if ${ac_cv_lib_prot_getprpwnam+:} false; then :
10890 $as_echo_n "(cached) " >&6
10892 ac_check_lib_save_LIBS=$LIBS
10893 LIBS="-lprot -lx $LIBS"
10894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895 /* end confdefs.h. */
10897 /* Override any GCC internal prototype to avoid an error.
10898 Use char because int might match the return type of a GCC
10899 builtin and then its argument prototype would still apply. */
10903 char getprpwnam ();
10907 return getprpwnam ();
10912 if ac_fn_c_try_link "$LINENO"; then :
10913 ac_cv_lib_prot_getprpwnam=yes
10915 ac_cv_lib_prot_getprpwnam=no
10917 rm -f core conftest.err conftest.$ac_objext \
10918 conftest$ac_exeext conftest.$ac_ext
10919 LIBS=$ac_check_lib_save_LIBS
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getprpwnam" >&5
10922 $as_echo "$ac_cv_lib_prot_getprpwnam" >&6; }
10923 if test "x$ac_cv_lib_prot_getprpwnam" = xyes; then :
10924 PASSWD_LIBS="$PASSWD_LIBS -lprot -lcurses -lx"
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getprpwnam in -lsecurity" >&5
10927 $as_echo_n "checking for getprpwnam in -lsecurity... " >&6; }
10928 if ${ac_cv_lib_security_getprpwnam+:} false; then :
10929 $as_echo_n "(cached) " >&6
10931 ac_check_lib_save_LIBS=$LIBS
10932 LIBS="-lsecurity $LIBS"
10933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10934 /* end confdefs.h. */
10936 /* Override any GCC internal prototype to avoid an error.
10937 Use char because int might match the return type of a GCC
10938 builtin and then its argument prototype would still apply. */
10942 char getprpwnam ();
10946 return getprpwnam ();
10951 if ac_fn_c_try_link "$LINENO"; then :
10952 ac_cv_lib_security_getprpwnam=yes
10954 ac_cv_lib_security_getprpwnam=no
10956 rm -f core conftest.err conftest.$ac_objext \
10957 conftest$ac_exeext conftest.$ac_ext
10958 LIBS=$ac_check_lib_save_LIBS
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_security_getprpwnam" >&5
10961 $as_echo "$ac_cv_lib_security_getprpwnam" >&6; }
10962 if test "x$ac_cv_lib_security_getprpwnam" = xyes; then :
10963 PASSWD_LIBS="$PASSWD_LIBS -lsecurity"
10971 ###############################################################################
10973 # Check for HP's entry in the "Not Invented Here" Sweepstakes.
10975 ###############################################################################
10977 if test "$with_shadow" = yes ; then
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-style shadow passwords" >&5
10979 $as_echo_n "checking for HP-style shadow passwords... " >&6; }
10980 if ${ac_cv_hpux_passwd+:} false; then :
10981 $as_echo_n "(cached) " >&6
10984 ac_save_CPPFLAGS="$CPPFLAGS"
10985 if test \! -z "$includedir" ; then
10986 CPPFLAGS="$CPPFLAGS -I$includedir"
10988 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10989 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10991 /* end confdefs.h. */
10992 #include <stdlib.h>
10993 #include <unistd.h>
10994 #include <sys/types.h>
10996 #include <hpsecurity.h>
11001 struct s_passwd *p = getspwnam("nobody");
11002 const char *pw = p->pw_passwd;
11007 if ac_fn_c_try_compile "$LINENO"; then :
11008 ac_cv_hpux_passwd=yes
11010 ac_cv_hpux_passwd=no
11012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11013 CPPFLAGS="$ac_save_CPPFLAGS"
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hpux_passwd" >&5
11016 $as_echo "$ac_cv_hpux_passwd" >&6; }
11017 if test "$ac_cv_hpux_passwd" = yes; then
11018 have_shadow_hpux=yes
11022 # on HPUX, bigcrypt is in -lsec
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bigcrypt in -lsec" >&5
11024 $as_echo_n "checking for bigcrypt in -lsec... " >&6; }
11025 if ${ac_cv_lib_sec_bigcrypt+:} false; then :
11026 $as_echo_n "(cached) " >&6
11028 ac_check_lib_save_LIBS=$LIBS
11030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031 /* end confdefs.h. */
11033 /* Override any GCC internal prototype to avoid an error.
11034 Use char because int might match the return type of a GCC
11035 builtin and then its argument prototype would still apply. */
11043 return bigcrypt ();
11048 if ac_fn_c_try_link "$LINENO"; then :
11049 ac_cv_lib_sec_bigcrypt=yes
11051 ac_cv_lib_sec_bigcrypt=no
11053 rm -f core conftest.err conftest.$ac_objext \
11054 conftest$ac_exeext conftest.$ac_ext
11055 LIBS=$ac_check_lib_save_LIBS
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_bigcrypt" >&5
11058 $as_echo "$ac_cv_lib_sec_bigcrypt" >&6; }
11059 if test "x$ac_cv_lib_sec_bigcrypt" = xyes; then :
11060 PASSWD_LIBS="$PASSWD_LIBS -lsec"
11067 ###############################################################################
11069 # Check for FreeBSD-style shadow passwords.
11071 # On FreeBSD, getpwnam() and friends work just like on non-shadow-
11072 # password systems -- except you only get stuff in the pw_passwd field
11073 # if the running program is setuid. So, guess that we've got this
11074 # lossage to contend with if /etc/master.passwd exists, and default to
11075 # a setuid installation.
11077 ###############################################################################
11079 if test "$with_shadow" = yes ; then
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD-style shadow passwords" >&5
11081 $as_echo_n "checking for FreeBSD-style shadow passwords... " >&6; }
11082 if ${ac_cv_master_passwd+:} false; then :
11083 $as_echo_n "(cached) " >&6
11085 if test -f /etc/master.passwd ; then
11086 ac_cv_master_passwd=yes
11088 ac_cv_master_passwd=no
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_master_passwd" >&5
11092 $as_echo "$ac_cv_master_passwd" >&6; }
11093 if test "$ac_cv_master_passwd" = yes; then
11099 ###############################################################################
11101 # Check for traditional (ha!) shadow passwords.
11103 ###############################################################################
11105 if test "$with_shadow" = yes ; then
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for generic shadow passwords" >&5
11107 $as_echo_n "checking for generic shadow passwords... " >&6; }
11108 if ${ac_cv_shadow+:} false; then :
11109 $as_echo_n "(cached) " >&6
11112 ac_save_CPPFLAGS="$CPPFLAGS"
11113 if test \! -z "$includedir" ; then
11114 CPPFLAGS="$CPPFLAGS -I$includedir"
11116 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11117 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11119 /* end confdefs.h. */
11120 #include <stdlib.h>
11121 #include <unistd.h>
11122 #include <sys/types.h>
11124 #include <shadow.h>
11128 struct spwd *p = getspnam("nobody");
11129 const char *pw = p->sp_pwdp;
11134 if ac_fn_c_try_compile "$LINENO"; then :
11139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11140 CPPFLAGS="$ac_save_CPPFLAGS"
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_shadow" >&5
11143 $as_echo "$ac_cv_shadow" >&6; }
11144 if test "$ac_cv_shadow" = yes; then
11148 # On some systems (UnixWare 2.1), getspnam() is in -lgen instead of -lc.
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lc" >&5
11151 $as_echo_n "checking for getspnam in -lc... " >&6; }
11152 if ${ac_cv_lib_c_getspnam+:} false; then :
11153 $as_echo_n "(cached) " >&6
11155 ac_check_lib_save_LIBS=$LIBS
11157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h. */
11160 /* Override any GCC internal prototype to avoid an error.
11161 Use char because int might match the return type of a GCC
11162 builtin and then its argument prototype would still apply. */
11170 return getspnam ();
11175 if ac_fn_c_try_link "$LINENO"; then :
11176 ac_cv_lib_c_getspnam=yes
11178 ac_cv_lib_c_getspnam=no
11180 rm -f core conftest.err conftest.$ac_objext \
11181 conftest$ac_exeext conftest.$ac_ext
11182 LIBS=$ac_check_lib_save_LIBS
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getspnam" >&5
11185 $as_echo "$ac_cv_lib_c_getspnam" >&6; }
11186 if test "x$ac_cv_lib_c_getspnam" = xyes; then :
11190 if test "$have_getspnam" = no ; then
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5
11192 $as_echo_n "checking for getspnam in -lgen... " >&6; }
11193 if ${ac_cv_lib_gen_getspnam+:} false; then :
11194 $as_echo_n "(cached) " >&6
11196 ac_check_lib_save_LIBS=$LIBS
11198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11199 /* end confdefs.h. */
11201 /* Override any GCC internal prototype to avoid an error.
11202 Use char because int might match the return type of a GCC
11203 builtin and then its argument prototype would still apply. */
11211 return getspnam ();
11216 if ac_fn_c_try_link "$LINENO"; then :
11217 ac_cv_lib_gen_getspnam=yes
11219 ac_cv_lib_gen_getspnam=no
11221 rm -f core conftest.err conftest.$ac_objext \
11222 conftest$ac_exeext conftest.$ac_ext
11223 LIBS=$ac_check_lib_save_LIBS
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5
11226 $as_echo "$ac_cv_lib_gen_getspnam" >&6; }
11227 if test "x$ac_cv_lib_gen_getspnam" = xyes; then :
11228 have_getspnam=yes; PASSWD_LIBS="$PASSWD_LIBS -lgen"
11236 ###############################################################################
11238 # Check for other libraries needed for non-shadow passwords.
11240 ###############################################################################
11242 if test "$enable_locking" = yes ; then
11244 # On some systems (UnixWare 2.1), crypt() is in -lcrypt instead of -lc.
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lc" >&5
11247 $as_echo_n "checking for crypt in -lc... " >&6; }
11248 if ${ac_cv_lib_c_crypt+:} false; then :
11249 $as_echo_n "(cached) " >&6
11251 ac_check_lib_save_LIBS=$LIBS
11253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11254 /* end confdefs.h. */
11256 /* Override any GCC internal prototype to avoid an error.
11257 Use char because int might match the return type of a GCC
11258 builtin and then its argument prototype would still apply. */
11271 if ac_fn_c_try_link "$LINENO"; then :
11272 ac_cv_lib_c_crypt=yes
11274 ac_cv_lib_c_crypt=no
11276 rm -f core conftest.err conftest.$ac_objext \
11277 conftest$ac_exeext conftest.$ac_ext
11278 LIBS=$ac_check_lib_save_LIBS
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_crypt" >&5
11281 $as_echo "$ac_cv_lib_c_crypt" >&6; }
11282 if test "x$ac_cv_lib_c_crypt" = xyes; then :
11286 if test "$have_crypt" = no ; then
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
11288 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
11289 if ${ac_cv_lib_crypt_crypt+:} false; then :
11290 $as_echo_n "(cached) " >&6
11292 ac_check_lib_save_LIBS=$LIBS
11293 LIBS="-lcrypt $LIBS"
11294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11295 /* end confdefs.h. */
11297 /* Override any GCC internal prototype to avoid an error.
11298 Use char because int might match the return type of a GCC
11299 builtin and then its argument prototype would still apply. */
11312 if ac_fn_c_try_link "$LINENO"; then :
11313 ac_cv_lib_crypt_crypt=yes
11315 ac_cv_lib_crypt_crypt=no
11317 rm -f core conftest.err conftest.$ac_objext \
11318 conftest$ac_exeext conftest.$ac_ext
11319 LIBS=$ac_check_lib_save_LIBS
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
11322 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
11323 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
11324 have_crypt=yes; PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
11331 # Most of the above shadow mechanisms will have set need_setuid to yes,
11332 # if they were found. But, on some systems, we need setuid even when
11333 # using plain old vanilla passwords.
11335 if test "$enable_locking" = yes ; then
11337 *-hpux* | *-aix* | *-netbsd* | *-freebsd* | *-openbsd* )
11344 if test "$have_shadow_adjunct" = yes ; then
11345 $as_echo "#define HAVE_ADJUNCT_PASSWD 1" >>confdefs.h
11347 elif test "$have_shadow_enhanced" = yes ; then
11348 $as_echo "#define HAVE_ENHANCED_PASSWD 1" >>confdefs.h
11350 elif test "$have_shadow_hpux" = yes ; then
11351 $as_echo "#define HAVE_HPUX_PASSWD 1" >>confdefs.h
11353 elif test "$have_shadow" = yes ; then
11354 $as_echo "#define HAVE_SHADOW_PASSWD 1" >>confdefs.h
11359 ###############################################################################
11361 # Check for external password helper
11362 # On SuSE, instead of having xscreensaver be a setuid program, they
11363 # fork an external program that takes the password on stdin, and
11364 # returns true if that password is a valid one. Then only that
11365 # smaller program needs to be setuid.
11367 # (Note that this external program is not a GUI: the GUI is still
11368 # all in xscreensaver itself; the external program just does auth.)
11370 ###############################################################################
11372 have_passwd_helper=no
11373 with_passwd_helper_req=unspecified
11376 # Check whether --with-passwd-helper was given.
11377 if test "${with_passwd_helper+set}" = set; then :
11378 withval=$with_passwd_helper; with_passwd_helper="$withval"; with_passwd_helper_req="$withval"
11380 with_passwd_helper=no
11383 # no HANDLE_X_PATH_ARG for this one
11385 if test "$enable_locking" = no ; then
11386 with_passwd_helper_req=no
11387 with_passwd_helper=no
11390 case "$with_passwd_helper" in
11393 cat >>confdefs.h <<_ACEOF
11394 #define PASSWD_HELPER_PROGRAM "$with_passwd_helper"
11397 have_passwd_helper=yes;;
11399 echo "error: --with-passwd-helper needs full pathname of helper (not '$with_passwd_helper')." >&2
11404 ###############################################################################
11406 # Check for a login manager for a "New Login" button on the lock dialog.
11407 # Usually this will be "/usr/bin/gdmflexiserver".
11409 ###############################################################################
11411 with_login_manager_req=unspecified
11412 default_login_manager_1='gdmflexiserver -ls'
11413 default_login_manager_2='kdmctl reserve'
11416 # Check whether --with-login-manager was given.
11417 if test "${with_login_manager+set}" = set; then :
11418 withval=$with_login_manager; with_login_manager="$withval"; with_login_manager_req="$withval"
11420 with_login_manager=yes
11423 # no HANDLE_X_PATH_ARG for this one
11425 if test "$enable_locking" = no ; then
11426 with_login_manager_req=no
11427 with_login_manager=no
11430 case "$with_login_manager_req" in
11432 with_login_manager=""
11436 # Try both defaults, use the one that exists.
11438 set dummy $default_login_manager_1 ; login_manager_tmp=$2
11439 unset ac_cv_path_login_manager_tmp # don't cache
11440 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
11441 set dummy $login_manager_tmp; ac_word=$2
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11443 $as_echo_n "checking for $ac_word... " >&6; }
11444 if ${ac_cv_path_login_manager_tmp+:} false; then :
11445 $as_echo_n "(cached) " >&6
11447 case $login_manager_tmp in
11449 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
11452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11453 for as_dir in $PATH
11456 test -z "$as_dir" && as_dir=.
11457 for ac_exec_ext in '' $ac_executable_extensions; do
11458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11459 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
11460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11470 login_manager_tmp=$ac_cv_path_login_manager_tmp
11471 if test -n "$login_manager_tmp"; then
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $login_manager_tmp" >&5
11473 $as_echo "$login_manager_tmp" >&6; }
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11476 $as_echo "no" >&6; }
11480 if test ! -z "$login_manager_tmp" ; then
11481 with_login_manager="$default_login_manager_1"
11483 set dummy $default_login_manager_2 ; login_manager_tmp=$2
11484 unset ac_cv_path_login_manager_tmp # don't cache
11485 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
11486 set dummy $login_manager_tmp; ac_word=$2
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11488 $as_echo_n "checking for $ac_word... " >&6; }
11489 if ${ac_cv_path_login_manager_tmp+:} false; then :
11490 $as_echo_n "(cached) " >&6
11492 case $login_manager_tmp in
11494 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
11497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11498 for as_dir in $PATH
11501 test -z "$as_dir" && as_dir=.
11502 for ac_exec_ext in '' $ac_executable_extensions; do
11503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11504 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
11505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11515 login_manager_tmp=$ac_cv_path_login_manager_tmp
11516 if test -n "$login_manager_tmp"; then
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $login_manager_tmp" >&5
11518 $as_echo "$login_manager_tmp" >&6; }
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11521 $as_echo "no" >&6; }
11525 if test ! -z "$login_manager_tmp" ; then
11526 with_login_manager="$default_login_manager_2"
11528 with_login_manager=""
11534 # absolute path specified on cmd line
11535 set dummy $with_login_manager_req ; login_manager_tmp=$2
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $login_manager_tmp" >&5
11537 $as_echo_n "checking for $login_manager_tmp... " >&6; }
11538 if test -x "$login_manager_tmp" ; then
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11540 $as_echo "yes" >&6; }
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11543 $as_echo "no" >&6; }
11544 with_login_manager=""
11549 # relative path specified on cmd line
11550 set dummy $with_login_manager_req ; login_manager_tmp=$2
11551 unset ac_cv_path_login_manager_tmp # don't cache
11552 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
11553 set dummy $login_manager_tmp; ac_word=$2
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11555 $as_echo_n "checking for $ac_word... " >&6; }
11556 if ${ac_cv_path_login_manager_tmp+:} false; then :
11557 $as_echo_n "(cached) " >&6
11559 case $login_manager_tmp in
11561 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
11564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565 for as_dir in $PATH
11568 test -z "$as_dir" && as_dir=.
11569 for ac_exec_ext in '' $ac_executable_extensions; do
11570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11571 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
11572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11582 login_manager_tmp=$ac_cv_path_login_manager_tmp
11583 if test -n "$login_manager_tmp"; then
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $login_manager_tmp" >&5
11585 $as_echo "$login_manager_tmp" >&6; }
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11588 $as_echo "no" >&6; }
11592 if test -z "$login_manager_tmp" ; then
11593 with_login_manager=""
11595 with_login_manager="$login_manager_tmp"
11599 ac_cv_login_manager_program="$with_login_manager"
11601 NEW_LOGIN_COMMAND_P=''
11602 NEW_LOGIN_COMMAND="$ac_cv_login_manager_program"
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for login manager" >&5
11605 $as_echo_n "checking for login manager... " >&6; }
11606 if test -z "$NEW_LOGIN_COMMAND" ; then
11607 NEW_LOGIN_COMMAND="$default_login_manager_1"
11608 NEW_LOGIN_COMMAND_P='! '
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NEW_LOGIN_COMMAND (disabled)" >&5
11610 $as_echo "$NEW_LOGIN_COMMAND (disabled)" >&6; }
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NEW_LOGIN_COMMAND" >&5
11613 $as_echo "$NEW_LOGIN_COMMAND" >&6; }
11617 ###############################################################################
11619 # Check for -lgtk (and Gnome stuff)
11621 ###############################################################################
11624 with_gtk_req=unspecified
11626 # Check whether --with-gtk was given.
11627 if test "${with_gtk+set}" = set; then :
11628 withval=$with_gtk; with_gtk="$withval"; with_gtk_req="$withval"
11634 # if --with-gtk=/directory/ was specified, remember that directory so that
11635 # we can also look for the `gtk-config' program in that directory.
11636 case "$with_gtk" in
11638 gtk_dir="$with_gtk"
11646 case "$with_gtk" in
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gtk headers" >&5
11652 $as_echo_n "checking for Gtk headers... " >&6; }
11653 d=$with_gtk/include
11654 if test -d $d; then
11655 X_CFLAGS="-I$d $X_CFLAGS"
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
11657 $as_echo "$d" >&6; }
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
11660 $as_echo "not found ($d: no such directory)" >&6; }
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gtk libs" >&5
11664 $as_echo_n "checking for Gtk libs... " >&6; }
11666 if test -d $d; then
11667 X_LIBS="-L$d $X_LIBS"
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
11669 $as_echo "$d" >&6; }
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
11672 $as_echo "not found ($d: no such directory)" >&6; }
11675 # replace the directory string with "yes".
11677 with_gtk=$with_gtk_req
11682 echo "error: argument to --with-gtk must be \"yes\", \"no\", or a directory."
11683 echo " If it is a directory, then \`DIR/include' will be added to"
11684 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11690 if test "$with_gtk" != yes -a "$with_gtk" != no ; then
11691 echo "error: must be yes or no: --with-gtk=$with_gtk"
11696 parse_gtk_version_string() {
11699 maj=`echo $ac_gtk_version_string | sed -n 's/\..*//p'`
11700 min=`echo $ac_gtk_version_string | sed -n 's/[^.]*\.\([^.]*\).*/\1/p'`
11702 ac_gtk_version=`echo "$maj * 1000 + $min" | bc`
11703 if test -z "$ac_gtk_version"; then
11704 ac_gtk_version=unknown
11705 ac_gtk_version_string=unknown
11709 # Find pkg-config... (need this for both gtk and gdk_pixbuf.)
11710 # if the user specified --with-gtk=/foo/ then look there.
11713 if test ! -z "$gtk_dir"; then
11714 # canonicalize slashes.
11715 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
11716 gtk_path="$foo:$gtk_path"
11719 for ac_prog in pkg-config
11721 # Extract the first word of "$ac_prog", so it can be a program name with args.
11722 set dummy $ac_prog; ac_word=$2
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11724 $as_echo_n "checking for $ac_word... " >&6; }
11725 if ${ac_cv_path_pkg_config+:} false; then :
11726 $as_echo_n "(cached) " >&6
11728 case $pkg_config in
11730 ac_cv_path_pkg_config="$pkg_config" # Let the user override the test with a path.
11733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11734 for as_dir in $gtk_path
11737 test -z "$as_dir" && as_dir=.
11738 for ac_exec_ext in '' $ac_executable_extensions; do
11739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11740 ac_cv_path_pkg_config="$as_dir/$ac_word$ac_exec_ext"
11741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11751 pkg_config=$ac_cv_path_pkg_config
11752 if test -n "$pkg_config"; then
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config" >&5
11754 $as_echo "$pkg_config" >&6; }
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757 $as_echo "no" >&6; }
11761 test -n "$pkg_config" && break
11765 if test -z "$pkg_config" ; then
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found!" >&5
11767 $as_echo "$as_me: WARNING: pkg-config not found!" >&2;}
11772 # Utility function for running pkg-config-based tests...
11775 pkg_check_version() {
11776 if test "$ok" = yes ; then
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $req" >&5
11780 $as_echo_n "checking for $req... " >&6; }
11781 if $pkg_config --exists "$req" ; then
11782 vers=`$pkg_config --modversion "$req"`
11783 if $pkg_config --exists "$req >= $min" ; then
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vers" >&5
11785 $as_echo "$vers" >&6; }
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vers (wanted >= $min)" >&5
11790 $as_echo "$vers (wanted >= $min)" >&6; }
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11807 if test "$with_gtk" = yes; then
11811 pkg_check_version gtk+-2.0 2.0.1 ; ac_gtk_version_string="$vers"
11812 pkg_check_version gmodule-2.0 2.0.0
11813 pkg_check_version libxml-2.0 2.4.6
11814 pkg_check_version libglade-2.0 1.99.0
11815 pkg_check_version gdk-pixbuf-2.0 2.0.0
11816 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
11819 if test "$have_gtk" = no; then
11820 if test -n "$ac_gtk_version_string" ; then
11821 gtk_halfassed="$ac_gtk_version_string"
11822 gtk_halfassed_lib="$req"
11826 if test "$have_gtk" = yes; then
11827 parse_gtk_version_string
11831 if test "$have_gtk" = yes; then
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gtk includes" >&5
11833 $as_echo_n "checking for Gtk includes... " >&6; }
11834 if ${ac_cv_gtk_config_cflags+:} false; then :
11835 $as_echo_n "(cached) " >&6
11837 ac_cv_gtk_config_cflags=`$pkg_config --cflags $pkgs`
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gtk_config_cflags" >&5
11840 $as_echo "$ac_cv_gtk_config_cflags" >&6; }
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gtk libs" >&5
11842 $as_echo_n "checking for Gtk libs... " >&6; }
11843 if ${ac_cv_gtk_config_libs+:} false; then :
11844 $as_echo_n "(cached) " >&6
11846 ac_cv_gtk_config_libs=`$pkg_config --libs $pkgs`
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gtk_config_libs" >&5
11849 $as_echo "$ac_cv_gtk_config_libs" >&6; }
11852 ac_gtk_config_cflags=$ac_cv_gtk_config_cflags
11853 ac_gtk_config_libs=$ac_cv_gtk_config_libs
11857 if test "$have_gtk" = yes; then
11858 GTK_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
11859 GTK_DATADIR="$GTK_DATADIR/share"
11862 if test "$have_gtk" = yes; then
11863 INCLUDES="$INCLUDES $ac_gtk_config_cflags"
11864 GTK_LIBS="$GTK_LIBS $ac_gtk_config_libs"
11865 $as_echo "#define HAVE_GTK 1" >>confdefs.h
11867 $as_echo "#define HAVE_GTK2 1" >>confdefs.h
11869 $as_echo "#define HAVE_XML 1" >>confdefs.h
11876 # Check for the various Gnome help and URL loading programs.
11878 WITH_BROWSER=gnome-open
11879 if test "$have_gtk" = yes; then
11880 for ac_prog in gnome-open
11882 # Extract the first word of "$ac_prog", so it can be a program name with args.
11883 set dummy $ac_prog; ac_word=$2
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885 $as_echo_n "checking for $ac_word... " >&6; }
11886 if ${ac_cv_prog_gnome_open_program+:} false; then :
11887 $as_echo_n "(cached) " >&6
11889 if test -n "$gnome_open_program"; then
11890 ac_cv_prog_gnome_open_program="$gnome_open_program" # Let the user override the test.
11892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893 for as_dir in $PATH
11896 test -z "$as_dir" && as_dir=.
11897 for ac_exec_ext in '' $ac_executable_extensions; do
11898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11899 ac_cv_prog_gnome_open_program="$ac_prog"
11900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11909 gnome_open_program=$ac_cv_prog_gnome_open_program
11910 if test -n "$gnome_open_program"; then
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnome_open_program" >&5
11912 $as_echo "$gnome_open_program" >&6; }
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 $as_echo "no" >&6; }
11919 test -n "$gnome_open_program" && break
11922 for ac_prog in gnome-url-show
11924 # Extract the first word of "$ac_prog", so it can be a program name with args.
11925 set dummy $ac_prog; ac_word=$2
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11927 $as_echo_n "checking for $ac_word... " >&6; }
11928 if ${ac_cv_prog_gnome_url_show_program+:} false; then :
11929 $as_echo_n "(cached) " >&6
11931 if test -n "$gnome_url_show_program"; then
11932 ac_cv_prog_gnome_url_show_program="$gnome_url_show_program" # Let the user override the test.
11934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11935 for as_dir in $PATH
11938 test -z "$as_dir" && as_dir=.
11939 for ac_exec_ext in '' $ac_executable_extensions; do
11940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11941 ac_cv_prog_gnome_url_show_program="$ac_prog"
11942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11951 gnome_url_show_program=$ac_cv_prog_gnome_url_show_program
11952 if test -n "$gnome_url_show_program"; then
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnome_url_show_program" >&5
11954 $as_echo "$gnome_url_show_program" >&6; }
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11957 $as_echo "no" >&6; }
11961 test -n "$gnome_url_show_program" && break
11967 ###############################################################################
11971 ###############################################################################
11974 with_motif_req=unspecified
11976 # Check whether --with-motif was given.
11977 if test "${with_motif+set}" = set; then :
11978 withval=$with_motif; with_motif="$withval"; with_motif_req="$withval"
11985 case "$with_motif" in
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif headers" >&5
11991 $as_echo_n "checking for Motif headers... " >&6; }
11992 d=$with_motif/include
11993 if test -d $d; then
11994 X_CFLAGS="-I$d $X_CFLAGS"
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
11996 $as_echo "$d" >&6; }
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
11999 $as_echo "not found ($d: no such directory)" >&6; }
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif libs" >&5
12003 $as_echo_n "checking for Motif libs... " >&6; }
12005 if test -d $d; then
12006 X_LIBS="-L$d $X_LIBS"
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
12008 $as_echo "$d" >&6; }
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
12011 $as_echo "not found ($d: no such directory)" >&6; }
12014 # replace the directory string with "yes".
12015 with_motif_req="yes"
12016 with_motif=$with_motif_req
12021 echo "error: argument to --with-motif must be \"yes\", \"no\", or a directory."
12022 echo " If it is a directory, then \`DIR/include' will be added to"
12023 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12029 if test "$with_motif" != yes -a "$with_motif" != no ; then
12030 echo "error: must be yes or no: --with-motif=$with_motif"
12034 if test "$with_motif" = yes; then
12037 ac_save_CPPFLAGS="$CPPFLAGS"
12038 if test \! -z "$includedir" ; then
12039 CPPFLAGS="$CPPFLAGS -I$includedir"
12041 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12042 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12043 ac_fn_c_check_header_compile "$LINENO" "Xm/Xm.h" "ac_cv_header_Xm_Xm_h" "#include <stdlib.h>
12045 #include <X11/Intrinsic.h>
12047 if test "x$ac_cv_header_Xm_Xm_h" = xyes; then :
12049 $as_echo "#define HAVE_MOTIF 1" >>confdefs.h
12051 MOTIF_LIBS="$MOTIF_LIBS -lXm"
12055 CPPFLAGS="$ac_save_CPPFLAGS"
12059 if test "$have_motif" = yes; then
12061 ac_save_CPPFLAGS="$CPPFLAGS"
12062 if test \! -z "$includedir" ; then
12063 CPPFLAGS="$CPPFLAGS -I$includedir"
12065 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12066 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12067 ac_fn_c_check_header_compile "$LINENO" "Xm/ComboBox.h" "ac_cv_header_Xm_ComboBox_h" "#include <stdlib.h>
12069 #include <X11/Intrinsic.h>
12071 if test "x$ac_cv_header_Xm_ComboBox_h" = xyes; then :
12072 $as_echo "#define HAVE_XMCOMBOBOX 1" >>confdefs.h
12077 CPPFLAGS="$ac_save_CPPFLAGS"
12081 ###############################################################################
12083 # Checking whether Motif is really Lesstif.
12085 ###############################################################################
12088 if test "$have_motif" = yes ; then
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Motif is really LessTif" >&5
12090 $as_echo_n "checking whether Motif is really LessTif... " >&6; }
12091 if ${ac_cv_have_lesstif+:} false; then :
12092 $as_echo_n "(cached) " >&6
12095 ac_save_CPPFLAGS="$CPPFLAGS"
12096 if test \! -z "$includedir" ; then
12097 CPPFLAGS="$CPPFLAGS -I$includedir"
12099 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12100 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12102 /* end confdefs.h. */
12107 long vers = LesstifVersion;
12112 if ac_fn_c_try_compile "$LINENO"; then :
12113 ac_cv_have_lesstif=yes
12115 ac_cv_have_lesstif=no
12117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12118 CPPFLAGS="$ac_save_CPPFLAGS"
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lesstif" >&5
12121 $as_echo "$ac_cv_have_lesstif" >&6; }
12122 have_lesstif=$ac_cv_have_lesstif
12126 lesstif_version=unknown
12127 lesstif_version_string=unknown
12129 if test "$have_lesstif" = yes ; then
12131 echo unknown > conftest-lt
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LessTif version number" >&5
12133 $as_echo_n "checking LessTif version number... " >&6; }
12134 if ${ac_cv_lesstif_version_string+:} false; then :
12135 $as_echo_n "(cached) " >&6
12138 ac_save_CPPFLAGS="$CPPFLAGS"
12139 if test \! -z "$includedir" ; then
12140 CPPFLAGS="$CPPFLAGS -I$includedir"
12142 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12143 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12144 if test "$cross_compiling" = yes; then :
12145 ac_cv_lesstif_version=unknown
12146 ac_cv_lesstif_version_string=unknown
12148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12149 /* end confdefs.h. */
12153 FILE *f = fopen("conftest-lt", "w");
12155 fprintf(f, "%d %d.%d\n", LesstifVersion,
12156 LESSTIF_VERSION, LESSTIF_REVISION);
12161 if ac_fn_c_try_run "$LINENO"; then :
12162 ltv=`cat conftest-lt`
12163 ac_cv_lesstif_version=`echo $ltv | sed 's/ .*//'`
12164 ac_cv_lesstif_version_string=`echo $ltv | sed 's/.* //'`
12166 ac_cv_lesstif_version=unknown
12167 ac_cv_lesstif_version_string=unknown
12169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12170 conftest.$ac_objext conftest.beam conftest.$ac_ext
12173 CPPFLAGS="$ac_save_CPPFLAGS"
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lesstif_version_string" >&5
12176 $as_echo "$ac_cv_lesstif_version_string" >&6; }
12178 lesstif_version=$ac_cv_lesstif_version
12179 lesstif_version_string=$ac_cv_lesstif_version_string
12184 if test "$have_motif" = yes ; then
12186 echo unknown > conftest-mt
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Motif version number" >&5
12188 $as_echo_n "checking Motif version number... " >&6; }
12189 if ${ac_cv_motif_version_string+:} false; then :
12190 $as_echo_n "(cached) " >&6
12193 ac_save_CPPFLAGS="$CPPFLAGS"
12194 if test \! -z "$includedir" ; then
12195 CPPFLAGS="$CPPFLAGS -I$includedir"
12197 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12198 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12199 if test "$cross_compiling" = yes; then :
12200 ac_cv_motif_version=unknown
12201 ac_cv_motif_version_string=unknown
12203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12204 /* end confdefs.h. */
12208 FILE *f = fopen("conftest-mt", "w");
12210 fprintf(f, "%d %d.%d\n", XmVersion,
12211 XmVERSION, XmREVISION);
12216 if ac_fn_c_try_run "$LINENO"; then :
12217 mtv=`cat conftest-mt`
12218 ac_cv_motif_version=`echo $mtv | sed 's/ .*//'`
12219 ac_cv_motif_version_string=`echo $mtv | sed 's/.* //'`
12221 ac_cv_motif_version=unknown
12222 ac_cv_motif_version_string=unknown
12224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12225 conftest.$ac_objext conftest.beam conftest.$ac_ext
12228 CPPFLAGS="$ac_save_CPPFLAGS"
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_motif_version_string" >&5
12231 $as_echo "$ac_cv_motif_version_string" >&6; }
12233 motif_version=$ac_cv_motif_version
12234 motif_version_string=$ac_cv_motif_version_string
12239 ###############################################################################
12241 # Checking whether Motif requires -lXpm.
12243 # If this is Motif 2.x, and we have XPM, then link against XPM as well.
12244 # The deal is, Motif 2.x requires XPM -- but it's a compilation option
12245 # of the library whether to build the XPM code into libXm, or whether
12246 # to rely on an external libXm. So the only way to tell whether XPM is
12247 # a link-time requirement is to examine libXm.a, which is very
12248 # difficult to do in an autoconf script. So... if it's Motif 2.x, we
12249 # always link against XPM if the XPM lib exists (and this will be a
12250 # no-op if libXm happens to already have the XPM code in it.)
12252 ###############################################################################
12254 motif_requires_xpm=no
12255 if test "$have_motif" = yes ; then
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Motif requires XPM" >&5
12257 $as_echo_n "checking whether Motif requires XPM... " >&6; }
12258 if test "$motif_version" = "unknown" || test "$motif_version" -ge 2000
12260 motif_requires_xpm=yes
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
12262 $as_echo "maybe" >&6; }
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265 $as_echo "no" >&6; }
12270 ###############################################################################
12272 # Checking whether Motif requires -lXp.
12274 # Some versions of Motif (2.1.0, at least) require -lXp, the "X Printing
12275 # Extension". Why this extension isn't in -lXext with all the others,
12278 ###############################################################################
12281 if test "$have_motif" = yes ; then
12284 ac_save_CPPFLAGS="$CPPFLAGS"
12285 ac_save_LDFLAGS="$LDFLAGS"
12286 # ac_save_LIBS="$LIBS"
12288 if test \! -z "$includedir" ; then
12289 CPPFLAGS="$CPPFLAGS -I$includedir"
12291 # note: $X_CFLAGS includes $x_includes
12292 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12294 if test \! -z "$libdir" ; then
12295 LDFLAGS="$LDFLAGS -L$libdir"
12297 # note: $X_LIBS includes $x_libraries
12298 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12300 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12301 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpQueryExtension in -lXp" >&5
12303 $as_echo_n "checking for XpQueryExtension in -lXp... " >&6; }
12304 if ${ac_cv_lib_Xp_XpQueryExtension+:} false; then :
12305 $as_echo_n "(cached) " >&6
12307 ac_check_lib_save_LIBS=$LIBS
12308 LIBS="-lXp -lX11 -lXext -lm $LIBS"
12309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12310 /* end confdefs.h. */
12312 /* Override any GCC internal prototype to avoid an error.
12313 Use char because int might match the return type of a GCC
12314 builtin and then its argument prototype would still apply. */
12318 char XpQueryExtension ();
12322 return XpQueryExtension ();
12327 if ac_fn_c_try_link "$LINENO"; then :
12328 ac_cv_lib_Xp_XpQueryExtension=yes
12330 ac_cv_lib_Xp_XpQueryExtension=no
12332 rm -f core conftest.err conftest.$ac_objext \
12333 conftest$ac_exeext conftest.$ac_ext
12334 LIBS=$ac_check_lib_save_LIBS
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpQueryExtension" >&5
12337 $as_echo "$ac_cv_lib_Xp_XpQueryExtension" >&6; }
12338 if test "x$ac_cv_lib_Xp_XpQueryExtension" = xyes; then :
12339 have_xp_ext=yes; MOTIF_LIBS="$MOTIF_LIBS -lXp"
12344 CPPFLAGS="$ac_save_CPPFLAGS"
12345 LDFLAGS="$ac_save_LDFLAGS"
12346 # LIBS="$ac_save_LIBS"
12351 ###############################################################################
12353 # Checking whether Motif requires -lXintl (for _Xsetlocale.)
12355 ###############################################################################
12358 if test "$have_motif" = yes ; then
12360 ac_save_CPPFLAGS="$CPPFLAGS"
12361 ac_save_LDFLAGS="$LDFLAGS"
12362 # ac_save_LIBS="$LIBS"
12364 if test \! -z "$includedir" ; then
12365 CPPFLAGS="$CPPFLAGS -I$includedir"
12367 # note: $X_CFLAGS includes $x_includes
12368 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12370 if test \! -z "$libdir" ; then
12371 LDFLAGS="$LDFLAGS -L$libdir"
12373 # note: $X_LIBS includes $x_libraries
12374 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12376 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12377 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Xsetlocale in -lXintl" >&5
12379 $as_echo_n "checking for _Xsetlocale in -lXintl... " >&6; }
12380 if ${ac_cv_lib_Xintl__Xsetlocale+:} false; then :
12381 $as_echo_n "(cached) " >&6
12383 ac_check_lib_save_LIBS=$LIBS
12384 LIBS="-lXintl -lX11 -lXext -lm $LIBS"
12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386 /* end confdefs.h. */
12388 /* Override any GCC internal prototype to avoid an error.
12389 Use char because int might match the return type of a GCC
12390 builtin and then its argument prototype would still apply. */
12394 char _Xsetlocale ();
12398 return _Xsetlocale ();
12403 if ac_fn_c_try_link "$LINENO"; then :
12404 ac_cv_lib_Xintl__Xsetlocale=yes
12406 ac_cv_lib_Xintl__Xsetlocale=no
12408 rm -f core conftest.err conftest.$ac_objext \
12409 conftest$ac_exeext conftest.$ac_ext
12410 LIBS=$ac_check_lib_save_LIBS
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xintl__Xsetlocale" >&5
12413 $as_echo "$ac_cv_lib_Xintl__Xsetlocale" >&6; }
12414 if test "x$ac_cv_lib_Xintl__Xsetlocale" = xyes; then :
12420 CPPFLAGS="$ac_save_CPPFLAGS"
12421 LDFLAGS="$ac_save_LDFLAGS"
12422 # LIBS="$ac_save_LIBS"
12424 if test "$have_xintl" = yes; then
12425 MOTIF_LIBS="$MOTIF_LIBS -lXintl"
12430 ###############################################################################
12432 # Check for -lGL or -lMesaGL.
12434 ###############################################################################
12438 with_gl_req=unspecified
12441 # Check whether --with-gl was given.
12442 if test "${with_gl+set}" = set; then :
12443 withval=$with_gl; with_gl="$withval"; with_gl_req="$withval"
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL headers" >&5
12456 $as_echo_n "checking for GL headers... " >&6; }
12458 if test -d $d; then
12459 X_CFLAGS="-I$d $X_CFLAGS"
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
12461 $as_echo "$d" >&6; }
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
12464 $as_echo "not found ($d: no such directory)" >&6; }
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL libs" >&5
12468 $as_echo_n "checking for GL libs... " >&6; }
12470 if test -d $d; then
12471 X_LIBS="-L$d $X_LIBS"
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
12473 $as_echo "$d" >&6; }
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
12476 $as_echo "not found ($d: no such directory)" >&6; }
12479 # replace the directory string with "yes".
12481 with_gl=$with_gl_req
12486 echo "error: argument to --with-gl must be \"yes\", \"no\", or a directory."
12487 echo " If it is a directory, then \`DIR/include' will be added to"
12488 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12494 ac_mesagl_version=unknown
12495 ac_mesagl_version_string=unknown
12497 if test "$with_gl" = yes; then
12499 ac_save_CPPFLAGS="$CPPFLAGS"
12500 if test \! -z "$includedir" ; then
12501 CPPFLAGS="$CPPFLAGS -I$includedir"
12503 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12504 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12505 ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
12506 if test "x$ac_cv_header_GL_gl_h" = xyes; then :
12513 CPPFLAGS="$ac_save_CPPFLAGS"
12514 if test "$have_gl" = yes ; then
12516 ac_save_CPPFLAGS="$CPPFLAGS"
12517 if test \! -z "$includedir" ; then
12518 CPPFLAGS="$CPPFLAGS -I$includedir"
12520 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12521 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12522 ac_fn_c_check_header_compile "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "#include <GL/gl.h>
12524 if test "x$ac_cv_header_GL_glx_h" = xyes; then :
12531 CPPFLAGS="$ac_save_CPPFLAGS"
12534 # If we have the headers, try and figure out which vendor it's from.
12536 if test "$have_gl" = yes ; then
12538 # We need to know whether it's MesaGL so that we know which libraries
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GL is really MesaGL" >&5
12542 $as_echo_n "checking whether GL is really MesaGL... " >&6; }
12543 if ${ac_cv_have_mesa_gl+:} false; then :
12544 $as_echo_n "(cached) " >&6
12546 ac_cv_have_mesa_gl=no
12547 if test "$ac_macosx" = no; then
12548 # WTF! MacOS 10.5.0 ships the Mesa GL headers!
12549 # It's not really Mesa, is it?
12551 ac_save_CPPFLAGS="$CPPFLAGS"
12552 if test \! -z "$includedir" ; then
12553 CPPFLAGS="$CPPFLAGS -I$includedir"
12555 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12556 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12559 #include <GL/glx.h>
12562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12563 $EGREP "Mesa|MESA" >/dev/null 2>&1; then :
12564 ac_cv_have_mesa_gl=yes
12568 CPPFLAGS="$ac_save_CPPFLAGS"
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mesa_gl" >&5
12572 $as_echo "$ac_cv_have_mesa_gl" >&6; }
12573 ac_have_mesa_gl=$ac_cv_have_mesa_gl
12578 if test "$ac_macosx" = yes; then
12580 # Without these, every link against libGL gets a bunch of useless
12583 osx_crud="-bind_at_load -multiply_defined suppress"
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding \"$osx_crud\" to GL_LIBS" >&5
12585 $as_echo "adding \"$osx_crud\" to GL_LIBS" >&6; }
12586 GL_LIBS="$GL_LIBS $osx_crud"
12589 # New lossage in 10.5.0: without this, we get:
12590 # ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib
12592 osx_crud="/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
12593 osx_crud="-Wl,-dylib_file,${osx_crud}:${osx_crud}"
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding \"$osx_crud\" to GL_LIBS" >&5
12596 $as_echo "adding \"$osx_crud\" to GL_LIBS" >&6; }
12597 GL_LIBS="$GL_LIBS $osx_crud"
12600 # New lossage in 10.6.8: we can't allow -L/opt/local/lib to be in the
12601 # link line, or at runtime XQueryExtension gets a segv due to some kind
12602 # of library version skew. Libs must come from /usr/X11/lib even if
12603 # $prefix and/or $exec_prefix are set to /opt/local/.
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: omitting \"$libdir\" from LDFLAGS" >&5
12606 $as_echo "omitting \"$libdir\" from LDFLAGS" >&6; }
12612 # Some versions of MesaGL are compiled to require -lpthread.
12613 # So if the Mesa headers exist, and -lpthread exists, then always
12614 # link -lpthread after the Mesa libs (be they named -lGL or -lMesaGL.)
12616 # Oftentimes, AX_PTHREAD will bring in -lpthread as well; but that ends
12617 # up before -l(Mesa)GL, instead of after where it would belong.
12619 if test "$ac_have_mesa_gl" = yes; then
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
12621 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
12622 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
12623 $as_echo_n "(cached) " >&6
12625 ac_check_lib_save_LIBS=$LIBS
12626 LIBS="-lpthread $LIBS"
12627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12628 /* end confdefs.h. */
12630 /* Override any GCC internal prototype to avoid an error.
12631 Use char because int might match the return type of a GCC
12632 builtin and then its argument prototype would still apply. */
12636 char pthread_create ();
12640 return pthread_create ();
12645 if ac_fn_c_try_link "$LINENO"; then :
12646 ac_cv_lib_pthread_pthread_create=yes
12648 ac_cv_lib_pthread_pthread_create=no
12650 rm -f core conftest.err conftest.$ac_objext \
12651 conftest$ac_exeext conftest.$ac_ext
12652 LIBS=$ac_check_lib_save_LIBS
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
12655 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
12656 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
12657 GL_LIBS="-lpthread"
12663 # If we have Mesa headers, check to see if we can link against -lMesaGL.
12664 # If we don't have Mesa headers, or we don't have -lMesaGL, try -lGL.
12665 # Else, warn that GL is busted. (We have the headers, but no libs.)
12668 if test "$ac_have_mesa_gl" = yes ; then
12670 ac_save_CPPFLAGS="$CPPFLAGS"
12671 ac_save_LDFLAGS="$LDFLAGS"
12672 # ac_save_LIBS="$LIBS"
12674 if test \! -z "$includedir" ; then
12675 CPPFLAGS="$CPPFLAGS -I$includedir"
12677 # note: $X_CFLAGS includes $x_includes
12678 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12680 if test \! -z "$libdir" ; then
12681 LDFLAGS="$LDFLAGS -L$libdir"
12683 # note: $X_LIBS includes $x_libraries
12684 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12686 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12687 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXCreateContext in -lMesaGL" >&5
12689 $as_echo_n "checking for glXCreateContext in -lMesaGL... " >&6; }
12690 if ${ac_cv_lib_MesaGL_glXCreateContext+:} false; then :
12691 $as_echo_n "(cached) " >&6
12693 ac_check_lib_save_LIBS=$LIBS
12694 LIBS="-lMesaGL -lMesaGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
12695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696 /* end confdefs.h. */
12698 /* Override any GCC internal prototype to avoid an error.
12699 Use char because int might match the return type of a GCC
12700 builtin and then its argument prototype would still apply. */
12704 char glXCreateContext ();
12708 return glXCreateContext ();
12713 if ac_fn_c_try_link "$LINENO"; then :
12714 ac_cv_lib_MesaGL_glXCreateContext=yes
12716 ac_cv_lib_MesaGL_glXCreateContext=no
12718 rm -f core conftest.err conftest.$ac_objext \
12719 conftest$ac_exeext conftest.$ac_ext
12720 LIBS=$ac_check_lib_save_LIBS
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_MesaGL_glXCreateContext" >&5
12723 $as_echo "$ac_cv_lib_MesaGL_glXCreateContext" >&6; }
12724 if test "x$ac_cv_lib_MesaGL_glXCreateContext" = xyes; then :
12726 GL_LIBS="-lMesaGL -lMesaGLU $VIDMODE_LIBS $GL_LIBS"
12729 CPPFLAGS="$ac_save_CPPFLAGS"
12730 LDFLAGS="$ac_save_LDFLAGS"
12731 # LIBS="$ac_save_LIBS"
12735 if test "$gl_lib_1" = "" ; then
12737 ac_save_CPPFLAGS="$CPPFLAGS"
12738 ac_save_LDFLAGS="$LDFLAGS"
12739 # ac_save_LIBS="$LIBS"
12741 if test \! -z "$includedir" ; then
12742 CPPFLAGS="$CPPFLAGS -I$includedir"
12744 # note: $X_CFLAGS includes $x_includes
12745 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12747 if test \! -z "$libdir" ; then
12748 LDFLAGS="$LDFLAGS -L$libdir"
12750 # note: $X_LIBS includes $x_libraries
12751 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12753 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12754 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXCreateContext in -lGL" >&5
12756 $as_echo_n "checking for glXCreateContext in -lGL... " >&6; }
12757 if ${ac_cv_lib_GL_glXCreateContext+:} false; then :
12758 $as_echo_n "(cached) " >&6
12760 ac_check_lib_save_LIBS=$LIBS
12761 LIBS="-lGL -lGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
12762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12763 /* end confdefs.h. */
12765 /* Override any GCC internal prototype to avoid an error.
12766 Use char because int might match the return type of a GCC
12767 builtin and then its argument prototype would still apply. */
12771 char glXCreateContext ();
12775 return glXCreateContext ();
12780 if ac_fn_c_try_link "$LINENO"; then :
12781 ac_cv_lib_GL_glXCreateContext=yes
12783 ac_cv_lib_GL_glXCreateContext=no
12785 rm -f core conftest.err conftest.$ac_objext \
12786 conftest$ac_exeext conftest.$ac_ext
12787 LIBS=$ac_check_lib_save_LIBS
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glXCreateContext" >&5
12790 $as_echo "$ac_cv_lib_GL_glXCreateContext" >&6; }
12791 if test "x$ac_cv_lib_GL_glXCreateContext" = xyes; then :
12793 GL_LIBS="-lGL -lGLU $VIDMODE_LIBS $GL_LIBS"
12796 CPPFLAGS="$ac_save_CPPFLAGS"
12797 LDFLAGS="$ac_save_LDFLAGS"
12798 # LIBS="$ac_save_LIBS"
12802 if test "$gl_lib_1" = "" ; then
12803 # we have headers, but no libs -- bail.
12808 # linking works -- we can build the GL hacks.
12809 $as_echo "#define HAVE_GL 1" >>confdefs.h
12811 if test "$ac_have_mesa_gl" = yes ; then
12812 $as_echo "#define HAVE_MESA_GL 1" >>confdefs.h
12819 # Now that we know we have GL headers and libs, do some more GL testing.
12822 if test "$have_gl" = yes ; then
12823 # If it's MesaGL, we'd like to issue a warning if the version number
12824 # is less than or equal to 2.6, because that version had a security bug.
12826 if test "$ac_have_mesa_gl" = yes; then
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MesaGL version number" >&5
12829 $as_echo_n "checking MesaGL version number... " >&6; }
12830 if ${ac_cv_mesagl_version_string+:} false; then :
12831 $as_echo_n "(cached) " >&6
12833 cat > conftest.$ac_ext <<EOF
12834 #line 12838 "configure"
12835 #include "confdefs.h"
12837 #ifndef MESA_MAJOR_VERSION
12838 # include <GL/xmesa.h>
12839 # ifdef XMESA_MAJOR_VERSION
12840 /* Around Mesa 3.2, they took out the Mesa version number, so instead,
12841 we have to check the XMesa version number (the number of the X protocol
12842 support, which seems to be the same as the Mesa version number.)
12844 # define MESA_MAJOR_VERSION XMESA_MAJOR_VERSION
12845 # define MESA_MINOR_VERSION XMESA_MINOR_VERSION
12847 /* Oh great. Some time after 3.4, they took out the xmesa.h header file,
12848 so we have no way of telling what version of Mesa this is at all.
12849 So, we'll guess that the osmesa version (the "offscreen protocol")
12850 is less than or equal to the real mesa version number. Except that
12851 if OSmesa is 3.3, assume at least Mesa 3.4, since OSmesa was 3.3 in
12852 Mesa 3.4. And Mesa 3.3 had xmesa.h. What a complete load of shit!
12854 # include <GL/osmesa.h>
12855 # define MESA_MAJOR_VERSION OSMESA_MAJOR_VERSION
12856 # define MESA_MINOR_VERSION OSMESA_MINOR_VERSION or newer, probably?
12857 # if OSMESA_MAJOR_VERSION == 3 && OSMESA_MINOR_VERSION == 3
12858 # undef MESA_MINOR_VERSION
12859 # define MESA_MINOR_VERSION 4 or newer, probably?
12863 configure: MESA_MAJOR_VERSION MESA_MINOR_VERSION
12866 ac_save_CPPFLAGS="$CPPFLAGS"
12867 if test \! -z "$includedir" ; then
12868 CPPFLAGS="$CPPFLAGS -I$includedir"
12870 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12872 mglv=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | grep configure:`
12876 mglv=`echo "$mglv" | sed -n \
12877 's/^configure: *\([0-9][0-9]*\) *\([0-9].*\)$/\1.\2/p'`
12880 rm -rf conftest.$ac_ext
12882 CPPFLAGS="$ac_save_CPPFLAGS"
12884 if test "$mglv" = ""; then
12885 ac_mesagl_version=unknown
12886 ac_mesagl_version_string=unknown
12888 ac_mesagl_version_string="$mglv"
12891 maj=`echo "$mglv" | sed -n 's/^\([0-9][0-9]*\)\..*$/\1/p'`
12892 min=`echo "$mglv" | sed -n 's/^.*\.\([0-9][0-9]*\).*$/\1/p'`
12894 ac_mesagl_version=`echo "$maj * 1000 + $min" | bc`
12895 if test -z "$ac_mesagl_version"; then
12896 ac_mesagl_version=unknown
12897 ac_mesagl_version_string=unknown
12900 ac_cv_mesagl_version=$ac_mesagl_version
12901 ac_cv_mesagl_version_string=$ac_mesagl_version_string
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mesagl_version_string" >&5
12905 $as_echo "$ac_cv_mesagl_version_string" >&6; }
12906 ac_mesagl_version=$ac_cv_mesagl_version
12907 ac_mesagl_version_string=$ac_cv_mesagl_version_string
12911 # Check for OpenGL 1.1 features.
12914 ac_save_CPPFLAGS="$CPPFLAGS"
12915 ac_save_LDFLAGS="$LDFLAGS"
12916 # ac_save_LIBS="$LIBS"
12918 if test \! -z "$includedir" ; then
12919 CPPFLAGS="$CPPFLAGS -I$includedir"
12921 # note: $X_CFLAGS includes $x_includes
12922 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12924 if test \! -z "$libdir" ; then
12925 LDFLAGS="$LDFLAGS -L$libdir"
12927 # note: $X_LIBS includes $x_libraries
12928 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12930 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12931 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12932 as_ac_Lib=`$as_echo "ac_cv_lib_$gl_lib_1''_glBindTexture" | $as_tr_sh`
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBindTexture in -l$gl_lib_1" >&5
12934 $as_echo_n "checking for glBindTexture in -l$gl_lib_1... " >&6; }
12935 if eval \${$as_ac_Lib+:} false; then :
12936 $as_echo_n "(cached) " >&6
12938 ac_check_lib_save_LIBS=$LIBS
12939 LIBS="-l$gl_lib_1 $GL_LIBS -lX11 -lXext -lm $LIBS"
12940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12941 /* end confdefs.h. */
12943 /* Override any GCC internal prototype to avoid an error.
12944 Use char because int might match the return type of a GCC
12945 builtin and then its argument prototype would still apply. */
12949 char glBindTexture ();
12953 return glBindTexture ();
12958 if ac_fn_c_try_link "$LINENO"; then :
12959 eval "$as_ac_Lib=yes"
12961 eval "$as_ac_Lib=no"
12963 rm -f core conftest.err conftest.$ac_objext \
12964 conftest$ac_exeext conftest.$ac_ext
12965 LIBS=$ac_check_lib_save_LIBS
12967 eval ac_res=\$$as_ac_Lib
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12969 $as_echo "$ac_res" >&6; }
12970 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12971 $as_echo "#define HAVE_GLBINDTEXTURE 1" >>confdefs.h
12977 CPPFLAGS="$ac_save_CPPFLAGS"
12978 LDFLAGS="$ac_save_LDFLAGS"
12979 # LIBS="$ac_save_LIBS"
12983 elif test "$with_gl" != no; then
12984 echo "error: must be yes or no: --with-gl=$with_gl"
12989 ###############################################################################
12993 ###############################################################################
12996 with_gle_req=unspecified
12999 # Check whether --with-gle was given.
13000 if test "${with_gle+set}" = set; then :
13001 withval=$with_gle; with_gle="$withval"; with_gle_req="$withval"
13008 case "$with_gle" in
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLE headers" >&5
13014 $as_echo_n "checking for GLE headers... " >&6; }
13015 d=$with_gle/include
13016 if test -d $d; then
13017 X_CFLAGS="-I$d $X_CFLAGS"
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13019 $as_echo "$d" >&6; }
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13022 $as_echo "not found ($d: no such directory)" >&6; }
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLE libs" >&5
13026 $as_echo_n "checking for GLE libs... " >&6; }
13028 if test -d $d; then
13029 X_LIBS="-L$d $X_LIBS"
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13031 $as_echo "$d" >&6; }
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13034 $as_echo "not found ($d: no such directory)" >&6; }
13037 # replace the directory string with "yes".
13039 with_gle=$with_gle_req
13044 echo "error: argument to --with-gle must be \"yes\", \"no\", or a directory."
13045 echo " If it is a directory, then \`DIR/include' will be added to"
13046 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13054 if test "$have_gl" = no ; then
13056 elif test "$with_gle" = yes; then
13059 ac_save_CPPFLAGS="$CPPFLAGS"
13060 if test \! -z "$includedir" ; then
13061 CPPFLAGS="$CPPFLAGS -I$includedir"
13063 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13064 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13065 ac_fn_c_check_header_compile "$LINENO" "GL/gle.h" "ac_cv_header_GL_gle_h" "#include <GL/gl.h>
13067 if test "x$ac_cv_header_GL_gle_h" = xyes; then :
13074 CPPFLAGS="$ac_save_CPPFLAGS"
13075 if test "$have_gle3" = yes ; then
13079 ac_save_CPPFLAGS="$CPPFLAGS"
13080 if test \! -z "$includedir" ; then
13081 CPPFLAGS="$CPPFLAGS -I$includedir"
13083 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13084 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13085 ac_fn_c_check_header_compile "$LINENO" "GL/gutil.h" "ac_cv_header_GL_gutil_h" "#include <GL/gl.h>
13087 if test "x$ac_cv_header_GL_gutil_h" = xyes; then :
13094 CPPFLAGS="$ac_save_CPPFLAGS"
13095 if test "$have_gle" = yes ; then
13097 ac_save_CPPFLAGS="$CPPFLAGS"
13098 if test \! -z "$includedir" ; then
13099 CPPFLAGS="$CPPFLAGS -I$includedir"
13101 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13102 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13103 ac_fn_c_check_header_compile "$LINENO" "GL/tube.h" "ac_cv_header_GL_tube_h" "#include <GL/gl.h>
13105 if test "x$ac_cv_header_GL_tube_h" = xyes; then :
13112 CPPFLAGS="$ac_save_CPPFLAGS"
13116 if test "$have_gle" = yes ; then
13120 ac_save_CPPFLAGS="$CPPFLAGS"
13121 ac_save_LDFLAGS="$LDFLAGS"
13122 # ac_save_LIBS="$LIBS"
13124 if test \! -z "$includedir" ; then
13125 CPPFLAGS="$CPPFLAGS -I$includedir"
13127 # note: $X_CFLAGS includes $x_includes
13128 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13130 if test \! -z "$libdir" ; then
13131 LDFLAGS="$LDFLAGS -L$libdir"
13133 # note: $X_LIBS includes $x_libraries
13134 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13136 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13137 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gleCreateGC in -lgle" >&5
13139 $as_echo_n "checking for gleCreateGC in -lgle... " >&6; }
13140 if ${ac_cv_lib_gle_gleCreateGC+:} false; then :
13141 $as_echo_n "(cached) " >&6
13143 ac_check_lib_save_LIBS=$LIBS
13144 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
13145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13146 /* end confdefs.h. */
13148 /* Override any GCC internal prototype to avoid an error.
13149 Use char because int might match the return type of a GCC
13150 builtin and then its argument prototype would still apply. */
13154 char gleCreateGC ();
13158 return gleCreateGC ();
13163 if ac_fn_c_try_link "$LINENO"; then :
13164 ac_cv_lib_gle_gleCreateGC=yes
13166 ac_cv_lib_gle_gleCreateGC=no
13168 rm -f core conftest.err conftest.$ac_objext \
13169 conftest$ac_exeext conftest.$ac_ext
13170 LIBS=$ac_check_lib_save_LIBS
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gle_gleCreateGC" >&5
13173 $as_echo "$ac_cv_lib_gle_gleCreateGC" >&6; }
13174 if test "x$ac_cv_lib_gle_gleCreateGC" = xyes; then :
13175 have_gle=yes; gle_halfassed=no; GLE_LIBS="-lgle"
13178 CPPFLAGS="$ac_save_CPPFLAGS"
13179 LDFLAGS="$ac_save_LDFLAGS"
13180 # LIBS="$ac_save_LIBS"
13183 if test "$have_gle" = yes ; then
13187 # sometimes the libmatrix stuff is included in libgle. look there first.
13189 # I don't get it. For some reason, this test passes on SGI, as if
13190 # uview_direction_d() was in libgle -- but it's not, it's in libmatrix.
13191 # Yet the link is succeeding. Why???
13193 # AC_CHECK_X_LIB(gle, uview_direction_d,
13194 # [have_gle=yes; gle_halfassed=no],
13195 # [], $GL_LIBS -lX11 -lXext -lm)
13197 # As of GLE 3 this is in libgle, and has changed name to uview_direction!
13199 if test "$have_gle3" = yes ; then
13201 ac_save_CPPFLAGS="$CPPFLAGS"
13202 ac_save_LDFLAGS="$LDFLAGS"
13203 # ac_save_LIBS="$LIBS"
13205 if test \! -z "$includedir" ; then
13206 CPPFLAGS="$CPPFLAGS -I$includedir"
13208 # note: $X_CFLAGS includes $x_includes
13209 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13211 if test \! -z "$libdir" ; then
13212 LDFLAGS="$LDFLAGS -L$libdir"
13214 # note: $X_LIBS includes $x_libraries
13215 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13217 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13218 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uview_direction in -lgle" >&5
13220 $as_echo_n "checking for uview_direction in -lgle... " >&6; }
13221 if ${ac_cv_lib_gle_uview_direction+:} false; then :
13222 $as_echo_n "(cached) " >&6
13224 ac_check_lib_save_LIBS=$LIBS
13225 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
13226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13227 /* end confdefs.h. */
13229 /* Override any GCC internal prototype to avoid an error.
13230 Use char because int might match the return type of a GCC
13231 builtin and then its argument prototype would still apply. */
13235 char uview_direction ();
13239 return uview_direction ();
13244 if ac_fn_c_try_link "$LINENO"; then :
13245 ac_cv_lib_gle_uview_direction=yes
13247 ac_cv_lib_gle_uview_direction=no
13249 rm -f core conftest.err conftest.$ac_objext \
13250 conftest$ac_exeext conftest.$ac_ext
13251 LIBS=$ac_check_lib_save_LIBS
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gle_uview_direction" >&5
13254 $as_echo "$ac_cv_lib_gle_uview_direction" >&6; }
13255 if test "x$ac_cv_lib_gle_uview_direction" = xyes; then :
13256 have_gle=yes; gle_halfassed=no
13259 CPPFLAGS="$ac_save_CPPFLAGS"
13260 LDFLAGS="$ac_save_LDFLAGS"
13261 # LIBS="$ac_save_LIBS"
13264 # if it wasn't in libgle, then look in libmatrix.
13265 if test "$have_gle" = no ; then
13267 ac_save_CPPFLAGS="$CPPFLAGS"
13268 ac_save_LDFLAGS="$LDFLAGS"
13269 # ac_save_LIBS="$LIBS"
13271 if test \! -z "$includedir" ; then
13272 CPPFLAGS="$CPPFLAGS -I$includedir"
13274 # note: $X_CFLAGS includes $x_includes
13275 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13277 if test \! -z "$libdir" ; then
13278 LDFLAGS="$LDFLAGS -L$libdir"
13280 # note: $X_LIBS includes $x_libraries
13281 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13283 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13284 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uview_direction_d in -lmatrix" >&5
13286 $as_echo_n "checking for uview_direction_d in -lmatrix... " >&6; }
13287 if ${ac_cv_lib_matrix_uview_direction_d+:} false; then :
13288 $as_echo_n "(cached) " >&6
13290 ac_check_lib_save_LIBS=$LIBS
13291 LIBS="-lmatrix $GL_LIBS -lX11 -lXext -lm $LIBS"
13292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293 /* end confdefs.h. */
13295 /* Override any GCC internal prototype to avoid an error.
13296 Use char because int might match the return type of a GCC
13297 builtin and then its argument prototype would still apply. */
13301 char uview_direction_d ();
13305 return uview_direction_d ();
13310 if ac_fn_c_try_link "$LINENO"; then :
13311 ac_cv_lib_matrix_uview_direction_d=yes
13313 ac_cv_lib_matrix_uview_direction_d=no
13315 rm -f core conftest.err conftest.$ac_objext \
13316 conftest$ac_exeext conftest.$ac_ext
13317 LIBS=$ac_check_lib_save_LIBS
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_matrix_uview_direction_d" >&5
13320 $as_echo "$ac_cv_lib_matrix_uview_direction_d" >&6; }
13321 if test "x$ac_cv_lib_matrix_uview_direction_d" = xyes; then :
13322 have_gle=yes; gle_halfassed=no;
13323 GLE_LIBS="$GLE_LIBS -lmatrix"
13326 CPPFLAGS="$ac_save_CPPFLAGS"
13327 LDFLAGS="$ac_save_LDFLAGS"
13328 # LIBS="$ac_save_LIBS"
13333 if test "$have_gle" = yes ; then
13334 $as_echo "#define HAVE_GLE 1" >>confdefs.h
13336 if test "$have_gle3" = yes ; then
13337 $as_echo "#define HAVE_GLE3 1" >>confdefs.h
13342 elif test "$with_gle" != no; then
13343 echo "error: must be yes or no: --with-gle=$with_gle"
13349 ###############################################################################
13351 # Handle --with-gles
13353 ###############################################################################
13355 with_gles_req=unspecified
13357 # Check whether --with-gles was given.
13358 if test "${with_gles+set}" = set; then :
13359 withval=$with_gles; with_gles="$withval"; with_gles_req="$withval"
13366 case "$with_gles" in
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JWZGLES headers" >&5
13372 $as_echo_n "checking for JWZGLES headers... " >&6; }
13373 d=$with_gles/include
13374 if test -d $d; then
13375 X_CFLAGS="-I$d $X_CFLAGS"
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13377 $as_echo "$d" >&6; }
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13380 $as_echo "not found ($d: no such directory)" >&6; }
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JWZGLES libs" >&5
13384 $as_echo_n "checking for JWZGLES libs... " >&6; }
13386 if test -d $d; then
13387 X_LIBS="-L$d $X_LIBS"
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13389 $as_echo "$d" >&6; }
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13392 $as_echo "not found ($d: no such directory)" >&6; }
13395 # replace the directory string with "yes".
13396 with_gles_req="yes"
13397 with_gles=$with_gles_req
13402 echo "error: argument to --with-gles must be \"yes\", \"no\", or a directory."
13403 echo " If it is a directory, then \`DIR/include' will be added to"
13404 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13410 if test "$with_gles" = yes; then
13412 $as_echo "#define HAVE_JWZGLES 1" >>confdefs.h
13414 JWZGLES_OBJS="jwzgles.o"
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OpenGL ES compatiblity shim" >&5
13416 $as_echo "using OpenGL ES compatiblity shim" >&6; }
13417 elif test "$with_gles" != no; then
13418 echo "error: must be yes or no: --with-gles=$with_xpm"
13422 # May want to phase out glBitmap even in a non-GLES world.
13424 if test "$have_gles" = yes; then
13425 GLFPS_OBJS="fps-gl.o glxfonts.o texfont.o"
13428 $as_echo "#define HAVE_GLBITMAP 1" >>confdefs.h
13430 GLFPS_OBJS="fps-gl.o glxfonts.o"
13431 GLFONT_OBJS="texfont.o"
13435 ###############################################################################
13437 # Check for -lgdk_pixbuf.
13438 # These tests are for gdk_pixbuf usage of the hacks,
13439 # not xscreensaver-demo (thus we have to test again to get
13440 # the libraries right: don't want to pull in all of GTK
13443 ###############################################################################
13446 with_gdk_pixbuf_req=unspecified
13448 # Check whether --with-pixbuf was given.
13449 if test "${with_pixbuf+set}" = set; then :
13450 withval=$with_pixbuf; with_gdk_pixbuf="$withval"; with_gdk_pixbuf_req="$withval"
13452 with_gdk_pixbuf=yes
13456 # if --with-pixbuf=/directory/ was specified, remember that directory so that
13457 # we can also look for the `gdk-pixbuf-config' program in that directory.
13458 case "$with_gdk_pixbuf" in
13460 gdk_pixbuf_dir="$with_gdk_pixbuf"
13468 case "$with_gdk_pixbuf" in
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDK_PIXBUF headers" >&5
13474 $as_echo_n "checking for GDK_PIXBUF headers... " >&6; }
13475 d=$with_gdk_pixbuf/include
13476 if test -d $d; then
13477 X_CFLAGS="-I$d $X_CFLAGS"
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13479 $as_echo "$d" >&6; }
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13482 $as_echo "not found ($d: no such directory)" >&6; }
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDK_PIXBUF libs" >&5
13486 $as_echo_n "checking for GDK_PIXBUF libs... " >&6; }
13487 d=$with_gdk_pixbuf/lib
13488 if test -d $d; then
13489 X_LIBS="-L$d $X_LIBS"
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13491 $as_echo "$d" >&6; }
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13494 $as_echo "not found ($d: no such directory)" >&6; }
13497 # replace the directory string with "yes".
13498 with_gdk_pixbuf_req="yes"
13499 with_gdk_pixbuf=$with_gdk_pixbuf_req
13504 echo "error: argument to --with-pixbuf must be \"yes\", \"no\", or a directory."
13505 echo " If it is a directory, then \`DIR/include' will be added to"
13506 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13512 if test "$with_gdk_pixbuf" != yes -a "$with_gdk_pixbuf" != no ; then
13513 echo "error: must be yes or no: --with-pixbuf=$with_gdk_pixbuf"
13517 if test "$with_gdk_pixbuf" = yes; then
13523 pkg_check_version gdk-pixbuf-2.0 2.0.0
13524 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
13525 have_gdk_pixbuf="$ok"
13527 if test "$have_gdk_pixbuf" = yes; then
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf includes" >&5
13529 $as_echo_n "checking for gdk-pixbuf includes... " >&6; }
13530 if ${ac_cv_gdk_pixbuf_config_cflags+:} false; then :
13531 $as_echo_n "(cached) " >&6
13533 ac_cv_gdk_pixbuf_config_cflags=`$pkg_config --cflags $pkgs`
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
13536 $as_echo "$ac_cv_gdk_pixbuf_config_cflags" >&6; }
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf libs" >&5
13538 $as_echo_n "checking for gdk-pixbuf libs... " >&6; }
13539 if ${ac_cv_gdk_pixbuf_config_libs+:} false; then :
13540 $as_echo_n "(cached) " >&6
13542 ac_cv_gdk_pixbuf_config_libs=`$pkg_config --libs $pkgs`
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gdk_pixbuf_config_libs" >&5
13545 $as_echo "$ac_cv_gdk_pixbuf_config_libs" >&6; }
13548 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
13549 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
13552 if test "$have_gdk_pixbuf" = yes; then
13554 # we appear to have pixbuf; check for headers/libs to be sure.
13556 ac_save_gdk_pixbuf_CPPFLAGS="$CPPFLAGS"
13557 CPPFLAGS="$CPPFLAGS $ac_gdk_pixbuf_config_cflags"
13561 # check for header A...
13563 ac_save_CPPFLAGS="$CPPFLAGS"
13564 if test \! -z "$includedir" ; then
13565 CPPFLAGS="$CPPFLAGS -I$includedir"
13567 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13568 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13569 ac_fn_c_check_header_mongrel "$LINENO" "gdk-pixbuf/gdk-pixbuf.h" "ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" "$ac_includes_default"
13570 if test "x$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" = xyes; then :
13571 have_gdk_pixbuf=yes
13575 CPPFLAGS="$ac_save_CPPFLAGS"
13577 # if that worked, check for header B...
13578 if test "$have_gdk_pixbuf" = yes; then
13580 gdk_pixbuf_halfassed=yes
13582 ac_save_CPPFLAGS="$CPPFLAGS"
13583 if test \! -z "$includedir" ; then
13584 CPPFLAGS="$CPPFLAGS -I$includedir"
13586 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13587 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13588 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"
13589 if test "x$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" = xyes; then :
13590 have_gdk_pixbuf=yes
13591 gdk_pixbuf_halfassed=no
13595 CPPFLAGS="$ac_save_CPPFLAGS"
13597 # yay, it has a new name in Gtk 2.x...
13598 if test "$have_gdk_pixbuf" = no; then
13600 gdk_pixbuf_halfassed=yes
13602 ac_save_CPPFLAGS="$CPPFLAGS"
13603 if test \! -z "$includedir" ; then
13604 CPPFLAGS="$CPPFLAGS -I$includedir"
13606 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13607 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13608 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"
13609 if test "x$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" = xyes; then :
13610 have_gdk_pixbuf=yes
13611 gdk_pixbuf_halfassed=no
13615 CPPFLAGS="$ac_save_CPPFLAGS"
13618 CPPFLAGS="$ac_save_gdk_pixbuf_CPPFLAGS"
13621 if test "$have_gdk_pixbuf" = yes; then
13622 # we have the headers, now check for the libraries
13624 gdk_pixbuf_halfassed=yes
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for gdk_pixbuf usability..." >&5
13627 $as_echo "checking for gdk_pixbuf usability..." >&6; }
13631 ac_save_CPPFLAGS="$CPPFLAGS"
13632 ac_save_LDFLAGS="$LDFLAGS"
13633 # ac_save_LIBS="$LIBS"
13635 if test \! -z "$includedir" ; then
13636 CPPFLAGS="$CPPFLAGS -I$includedir"
13638 # note: $X_CFLAGS includes $x_includes
13639 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13641 if test \! -z "$libdir" ; then
13642 LDFLAGS="$LDFLAGS -L$libdir"
13644 # note: $X_LIBS includes $x_libraries
13645 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13647 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13648 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk_pixbuf_new_from_file in -lc" >&5
13650 $as_echo_n "checking for gdk_pixbuf_new_from_file in -lc... " >&6; }
13651 if ${ac_cv_lib_c_gdk_pixbuf_new_from_file+:} false; then :
13652 $as_echo_n "(cached) " >&6
13654 ac_check_lib_save_LIBS=$LIBS
13655 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
13656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13657 /* end confdefs.h. */
13659 /* Override any GCC internal prototype to avoid an error.
13660 Use char because int might match the return type of a GCC
13661 builtin and then its argument prototype would still apply. */
13665 char gdk_pixbuf_new_from_file ();
13669 return gdk_pixbuf_new_from_file ();
13674 if ac_fn_c_try_link "$LINENO"; then :
13675 ac_cv_lib_c_gdk_pixbuf_new_from_file=yes
13677 ac_cv_lib_c_gdk_pixbuf_new_from_file=no
13679 rm -f core conftest.err conftest.$ac_objext \
13680 conftest$ac_exeext conftest.$ac_ext
13681 LIBS=$ac_check_lib_save_LIBS
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gdk_pixbuf_new_from_file" >&5
13684 $as_echo "$ac_cv_lib_c_gdk_pixbuf_new_from_file" >&6; }
13685 if test "x$ac_cv_lib_c_gdk_pixbuf_new_from_file" = xyes; then :
13686 have_gdk_pixbuf=yes
13689 CPPFLAGS="$ac_save_CPPFLAGS"
13690 LDFLAGS="$ac_save_LDFLAGS"
13691 # LIBS="$ac_save_LIBS"
13694 if test "$have_gdk_pixbuf" = yes; then
13697 ac_save_CPPFLAGS="$CPPFLAGS"
13698 ac_save_LDFLAGS="$LDFLAGS"
13699 # ac_save_LIBS="$LIBS"
13701 if test \! -z "$includedir" ; then
13702 CPPFLAGS="$CPPFLAGS -I$includedir"
13704 # note: $X_CFLAGS includes $x_includes
13705 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13707 if test \! -z "$libdir" ; then
13708 LDFLAGS="$LDFLAGS -L$libdir"
13710 # note: $X_LIBS includes $x_libraries
13711 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13713 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13714 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk_pixbuf_xlib_init in -lc" >&5
13716 $as_echo_n "checking for gdk_pixbuf_xlib_init in -lc... " >&6; }
13717 if ${ac_cv_lib_c_gdk_pixbuf_xlib_init+:} false; then :
13718 $as_echo_n "(cached) " >&6
13720 ac_check_lib_save_LIBS=$LIBS
13721 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
13722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13723 /* end confdefs.h. */
13725 /* Override any GCC internal prototype to avoid an error.
13726 Use char because int might match the return type of a GCC
13727 builtin and then its argument prototype would still apply. */
13731 char gdk_pixbuf_xlib_init ();
13735 return gdk_pixbuf_xlib_init ();
13740 if ac_fn_c_try_link "$LINENO"; then :
13741 ac_cv_lib_c_gdk_pixbuf_xlib_init=yes
13743 ac_cv_lib_c_gdk_pixbuf_xlib_init=no
13745 rm -f core conftest.err conftest.$ac_objext \
13746 conftest$ac_exeext conftest.$ac_ext
13747 LIBS=$ac_check_lib_save_LIBS
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gdk_pixbuf_xlib_init" >&5
13750 $as_echo "$ac_cv_lib_c_gdk_pixbuf_xlib_init" >&6; }
13751 if test "x$ac_cv_lib_c_gdk_pixbuf_xlib_init" = xyes; then :
13752 have_gdk_pixbuf=yes
13753 gdk_pixbuf_halfassed=no
13756 CPPFLAGS="$ac_save_CPPFLAGS"
13757 LDFLAGS="$ac_save_LDFLAGS"
13758 # LIBS="$ac_save_LIBS"
13763 if test "$have_gdk_pixbuf" = yes; then
13764 INCLUDES="$INCLUDES $ac_gdk_pixbuf_config_cflags"
13765 XPM_LIBS="$ac_gdk_pixbuf_config_libs"
13766 $as_echo "#define HAVE_GDK_PIXBUF 1" >>confdefs.h
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for gdk_pixbuf usability... no" >&5
13770 $as_echo "checking for gdk_pixbuf usability... no" >&6; }
13773 if test "$have_gdk_pixbuf" = yes; then
13775 ac_save_CPPFLAGS="$CPPFLAGS"
13776 ac_save_LDFLAGS="$LDFLAGS"
13777 # ac_save_LIBS="$LIBS"
13779 if test \! -z "$includedir" ; then
13780 CPPFLAGS="$CPPFLAGS -I$includedir"
13782 # note: $X_CFLAGS includes $x_includes
13783 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13785 if test \! -z "$libdir" ; then
13786 LDFLAGS="$LDFLAGS -L$libdir"
13788 # note: $X_LIBS includes $x_libraries
13789 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13791 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13792 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk_pixbuf_apply_embedded_orientation in -lc" >&5
13794 $as_echo_n "checking for gdk_pixbuf_apply_embedded_orientation in -lc... " >&6; }
13795 if ${ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation+:} false; then :
13796 $as_echo_n "(cached) " >&6
13798 ac_check_lib_save_LIBS=$LIBS
13799 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
13800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13801 /* end confdefs.h. */
13803 /* Override any GCC internal prototype to avoid an error.
13804 Use char because int might match the return type of a GCC
13805 builtin and then its argument prototype would still apply. */
13809 char gdk_pixbuf_apply_embedded_orientation ();
13813 return gdk_pixbuf_apply_embedded_orientation ();
13818 if ac_fn_c_try_link "$LINENO"; then :
13819 ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation=yes
13821 ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation=no
13823 rm -f core conftest.err conftest.$ac_objext \
13824 conftest$ac_exeext conftest.$ac_ext
13825 LIBS=$ac_check_lib_save_LIBS
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation" >&5
13828 $as_echo "$ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation" >&6; }
13829 if test "x$ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation" = xyes; then :
13830 $as_echo "#define HAVE_GDK_PIXBUF_APPLY_EMBEDDED_ORIENTATION 1" >>confdefs.h
13834 CPPFLAGS="$ac_save_CPPFLAGS"
13835 LDFLAGS="$ac_save_LDFLAGS"
13836 # LIBS="$ac_save_LIBS"
13842 ###############################################################################
13846 ###############################################################################
13849 with_xpm_req=unspecified
13851 # Check whether --with-xpm was given.
13852 if test "${with_xpm+set}" = set; then :
13853 withval=$with_xpm; with_xpm="$withval"; with_xpm_req="$withval"
13860 case "$with_xpm" in
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPM headers" >&5
13866 $as_echo_n "checking for XPM headers... " >&6; }
13867 d=$with_xpm/include
13868 if test -d $d; then
13869 X_CFLAGS="-I$d $X_CFLAGS"
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13871 $as_echo "$d" >&6; }
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13874 $as_echo "not found ($d: no such directory)" >&6; }
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPM libs" >&5
13878 $as_echo_n "checking for XPM libs... " >&6; }
13880 if test -d $d; then
13881 X_LIBS="-L$d $X_LIBS"
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13883 $as_echo "$d" >&6; }
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13886 $as_echo "not found ($d: no such directory)" >&6; }
13889 # replace the directory string with "yes".
13891 with_xpm=$with_xpm_req
13896 echo "error: argument to --with-xpm must be \"yes\", \"no\", or a directory."
13897 echo " If it is a directory, then \`DIR/include' will be added to"
13898 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13904 if test "$with_xpm" = yes; then
13906 ac_save_CPPFLAGS="$CPPFLAGS"
13907 if test \! -z "$includedir" ; then
13908 CPPFLAGS="$CPPFLAGS -I$includedir"
13910 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13911 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13912 ac_fn_c_check_header_compile "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "#include <X11/Xlib.h>
13914 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
13916 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13918 XPM_LIBS="-lXpm $XPM_LIBS"
13922 CPPFLAGS="$ac_save_CPPFLAGS"
13923 elif test "$with_xpm" != no; then
13924 echo "error: must be yes or no: --with-xpm=$with_xpm"
13928 # See comment near $motif_requires_xpm, above.
13929 # Need to do this here, after both Motif and XPM have been checked for.
13931 if test "$have_motif" = yes -a "$have_xpm" = yes ; then
13932 if test "$motif_requires_xpm" = yes ; then
13933 MOTIF_LIBS="$MOTIF_LIBS $XPM_LIBS"
13937 if test "$XPM_LIBS" = "" ; then
13938 XPM_LIBS=$(MINIXPM)
13942 ###############################################################################
13946 ###############################################################################
13949 with_jpeg_req=unspecified
13952 # Check whether --with-jpeg was given.
13953 if test "${with_jpeg+set}" = set; then :
13954 withval=$with_jpeg; with_jpeg="$withval"; with_jpeg_req="$withval"
13961 case "$with_jpeg" in
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG headers" >&5
13967 $as_echo_n "checking for JPEG headers... " >&6; }
13968 d=$with_jpeg/include
13969 if test -d $d; then
13970 X_CFLAGS="-I$d $X_CFLAGS"
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13972 $as_echo "$d" >&6; }
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13975 $as_echo "not found ($d: no such directory)" >&6; }
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG libs" >&5
13979 $as_echo_n "checking for JPEG libs... " >&6; }
13981 if test -d $d; then
13982 X_LIBS="-L$d $X_LIBS"
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13984 $as_echo "$d" >&6; }
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13987 $as_echo "not found ($d: no such directory)" >&6; }
13990 # replace the directory string with "yes".
13991 with_jpeg_req="yes"
13992 with_jpeg=$with_jpeg_req
13997 echo "error: argument to --with-jpeg must be \"yes\", \"no\", or a directory."
13998 echo " If it is a directory, then \`DIR/include' will be added to"
13999 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14005 if test "$with_jpeg" != yes -a "$with_jpeg" != no ; then
14006 echo "error: must be yes or no: --with-jpeg=$with_jpeg"
14010 if test "$with_jpeg" = yes; then
14014 ac_save_CPPFLAGS="$CPPFLAGS"
14015 if test \! -z "$includedir" ; then
14016 CPPFLAGS="$CPPFLAGS -I$includedir"
14018 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14019 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14020 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
14021 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
14026 CPPFLAGS="$ac_save_CPPFLAGS"
14028 if test "$have_jpeg" = yes; then
14029 # we have the header, now check for the library
14033 ac_save_CPPFLAGS="$CPPFLAGS"
14034 ac_save_LDFLAGS="$LDFLAGS"
14035 # ac_save_LIBS="$LIBS"
14037 if test \! -z "$includedir" ; then
14038 CPPFLAGS="$CPPFLAGS -I$includedir"
14040 # note: $X_CFLAGS includes $x_includes
14041 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14043 if test \! -z "$libdir" ; then
14044 LDFLAGS="$LDFLAGS -L$libdir"
14046 # note: $X_LIBS includes $x_libraries
14047 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14049 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14050 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_start_compress in -ljpeg" >&5
14052 $as_echo_n "checking for jpeg_start_compress in -ljpeg... " >&6; }
14053 if ${ac_cv_lib_jpeg_jpeg_start_compress+:} false; then :
14054 $as_echo_n "(cached) " >&6
14056 ac_check_lib_save_LIBS=$LIBS
14057 LIBS="-ljpeg $LIBS"
14058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14059 /* end confdefs.h. */
14061 /* Override any GCC internal prototype to avoid an error.
14062 Use char because int might match the return type of a GCC
14063 builtin and then its argument prototype would still apply. */
14067 char jpeg_start_compress ();
14071 return jpeg_start_compress ();
14076 if ac_fn_c_try_link "$LINENO"; then :
14077 ac_cv_lib_jpeg_jpeg_start_compress=yes
14079 ac_cv_lib_jpeg_jpeg_start_compress=no
14081 rm -f core conftest.err conftest.$ac_objext \
14082 conftest$ac_exeext conftest.$ac_ext
14083 LIBS=$ac_check_lib_save_LIBS
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5
14086 $as_echo "$ac_cv_lib_jpeg_jpeg_start_compress" >&6; }
14087 if test "x$ac_cv_lib_jpeg_jpeg_start_compress" = xyes; then :
14091 $as_echo "#define HAVE_JPEGLIB 1" >>confdefs.h
14095 CPPFLAGS="$ac_save_CPPFLAGS"
14096 LDFLAGS="$ac_save_LDFLAGS"
14097 # LIBS="$ac_save_LIBS"
14103 ###############################################################################
14105 # Check for pty support: this allows 'phosphor' and 'apple2'
14106 # to run curses-based programs, or be used as terminal windows.
14108 ###############################################################################
14111 for ac_header in pty.h util.h
14113 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14114 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14115 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14116 cat >>confdefs.h <<_ACEOF
14117 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14125 ac_save_CPPFLAGS="$CPPFLAGS"
14126 ac_save_LDFLAGS="$LDFLAGS"
14127 # ac_save_LIBS="$LIBS"
14129 if test \! -z "$includedir" ; then
14130 CPPFLAGS="$CPPFLAGS -I$includedir"
14132 # note: $X_CFLAGS includes $x_includes
14133 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14135 if test \! -z "$libdir" ; then
14136 LDFLAGS="$LDFLAGS -L$libdir"
14138 # note: $X_LIBS includes $x_libraries
14139 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14141 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14142 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
14144 $as_echo_n "checking for forkpty in -lutil... " >&6; }
14145 if ${ac_cv_lib_util_forkpty+:} false; then :
14146 $as_echo_n "(cached) " >&6
14148 ac_check_lib_save_LIBS=$LIBS
14149 LIBS="-lutil $LIBS"
14150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14151 /* end confdefs.h. */
14153 /* Override any GCC internal prototype to avoid an error.
14154 Use char because int might match the return type of a GCC
14155 builtin and then its argument prototype would still apply. */
14168 if ac_fn_c_try_link "$LINENO"; then :
14169 ac_cv_lib_util_forkpty=yes
14171 ac_cv_lib_util_forkpty=no
14173 rm -f core conftest.err conftest.$ac_objext \
14174 conftest$ac_exeext conftest.$ac_ext
14175 LIBS=$ac_check_lib_save_LIBS
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
14178 $as_echo "$ac_cv_lib_util_forkpty" >&6; }
14179 if test "x$ac_cv_lib_util_forkpty" = xyes; then :
14181 ac_have_forkpty=yes
14182 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
14186 CPPFLAGS="$ac_save_CPPFLAGS"
14187 LDFLAGS="$ac_save_LDFLAGS"
14188 # LIBS="$ac_save_LIBS"
14191 if test "$ac_have_forkpty" != yes ; then
14192 # we don't need (or have) -lutil on MacOS 10.4.2...
14194 ac_save_CPPFLAGS="$CPPFLAGS"
14195 ac_save_LDFLAGS="$LDFLAGS"
14196 # ac_save_LIBS="$LIBS"
14198 if test \! -z "$includedir" ; then
14199 CPPFLAGS="$CPPFLAGS -I$includedir"
14201 # note: $X_CFLAGS includes $x_includes
14202 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14204 if test \! -z "$libdir" ; then
14205 LDFLAGS="$LDFLAGS -L$libdir"
14207 # note: $X_LIBS includes $x_libraries
14208 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14210 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14211 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lc" >&5
14213 $as_echo_n "checking for forkpty in -lc... " >&6; }
14214 if ${ac_cv_lib_c_forkpty+:} false; then :
14215 $as_echo_n "(cached) " >&6
14217 ac_check_lib_save_LIBS=$LIBS
14219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220 /* end confdefs.h. */
14222 /* Override any GCC internal prototype to avoid an error.
14223 Use char because int might match the return type of a GCC
14224 builtin and then its argument prototype would still apply. */
14237 if ac_fn_c_try_link "$LINENO"; then :
14238 ac_cv_lib_c_forkpty=yes
14240 ac_cv_lib_c_forkpty=no
14242 rm -f core conftest.err conftest.$ac_objext \
14243 conftest$ac_exeext conftest.$ac_ext
14244 LIBS=$ac_check_lib_save_LIBS
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_forkpty" >&5
14247 $as_echo "$ac_cv_lib_c_forkpty" >&6; }
14248 if test "x$ac_cv_lib_c_forkpty" = xyes; then :
14250 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
14254 CPPFLAGS="$ac_save_CPPFLAGS"
14255 LDFLAGS="$ac_save_LDFLAGS"
14256 # LIBS="$ac_save_LIBS"
14260 ###############################################################################
14262 # Check for the XSHM server extension.
14264 ###############################################################################
14267 with_xshm_req=unspecified
14269 # Check whether --with-xshm-ext was given.
14270 if test "${with_xshm_ext+set}" = set; then :
14271 withval=$with_xshm_ext; with_xshm="$withval"; with_xshm_req="$withval"
14278 case "$with_xshm" in
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSHM headers" >&5
14284 $as_echo_n "checking for XSHM headers... " >&6; }
14285 d=$with_xshm/include
14286 if test -d $d; then
14287 X_CFLAGS="-I$d $X_CFLAGS"
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14289 $as_echo "$d" >&6; }
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14292 $as_echo "not found ($d: no such directory)" >&6; }
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSHM libs" >&5
14296 $as_echo_n "checking for XSHM libs... " >&6; }
14298 if test -d $d; then
14299 X_LIBS="-L$d $X_LIBS"
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14301 $as_echo "$d" >&6; }
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14304 $as_echo "not found ($d: no such directory)" >&6; }
14307 # replace the directory string with "yes".
14308 with_xshm_req="yes"
14309 with_xshm=$with_xshm_req
14314 echo "error: argument to --with-xshm-ext must be \"yes\", \"no\", or a directory."
14315 echo " If it is a directory, then \`DIR/include' will be added to"
14316 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14322 if test "$with_xshm" = yes; then
14324 # first check for Xshm.h.
14326 ac_save_CPPFLAGS="$CPPFLAGS"
14327 if test \! -z "$includedir" ; then
14328 CPPFLAGS="$CPPFLAGS -I$includedir"
14330 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14331 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14332 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XShm.h" "ac_cv_header_X11_extensions_XShm_h" "#include <X11/Xlib.h>
14334 if test "x$ac_cv_header_X11_extensions_XShm_h" = xyes; then :
14339 CPPFLAGS="$ac_save_CPPFLAGS"
14341 # if that succeeded, then check for sys/ipc.h.
14342 if test "$have_xshm" = yes; then
14345 ac_save_CPPFLAGS="$CPPFLAGS"
14346 if test \! -z "$includedir" ; then
14347 CPPFLAGS="$CPPFLAGS -I$includedir"
14349 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14350 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14351 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
14352 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
14357 CPPFLAGS="$ac_save_CPPFLAGS"
14360 # if that succeeded, then check for sys/shm.h.
14361 if test "$have_xshm" = yes; then
14364 ac_save_CPPFLAGS="$CPPFLAGS"
14365 if test \! -z "$includedir" ; then
14366 CPPFLAGS="$CPPFLAGS -I$includedir"
14368 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14369 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14370 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
14371 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
14376 CPPFLAGS="$ac_save_CPPFLAGS"
14379 # AIX is pathological, as usual: apparently it's normal for the Xshm headers
14380 # to exist, but the library code to not exist. And even better, the library
14381 # code is in its own library: libXextSam.a. So, if we're on AIX, and that
14382 # lib doesn't exist, give up. (This lib gets added to X_EXTRA_LIBS, and
14383 # that's not quite right, but close enough.)
14387 if `uname -v` -eq 3 ; then
14390 ac_save_CPPFLAGS="$CPPFLAGS"
14391 ac_save_LDFLAGS="$LDFLAGS"
14392 # ac_save_LIBS="$LIBS"
14394 if test \! -z "$includedir" ; then
14395 CPPFLAGS="$CPPFLAGS -I$includedir"
14397 # note: $X_CFLAGS includes $x_includes
14398 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14400 if test \! -z "$libdir" ; then
14401 LDFLAGS="$LDFLAGS -L$libdir"
14403 # note: $X_LIBS includes $x_libraries
14404 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14406 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14407 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXextSam" >&5
14409 $as_echo_n "checking for XShmQueryExtension in -lXextSam... " >&6; }
14410 if ${ac_cv_lib_XextSam_XShmQueryExtension+:} false; then :
14411 $as_echo_n "(cached) " >&6
14413 ac_check_lib_save_LIBS=$LIBS
14414 LIBS="-lXextSam -lX11 -lXext -lm $LIBS"
14415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14416 /* end confdefs.h. */
14418 /* Override any GCC internal prototype to avoid an error.
14419 Use char because int might match the return type of a GCC
14420 builtin and then its argument prototype would still apply. */
14424 char XShmQueryExtension ();
14428 return XShmQueryExtension ();
14433 if ac_fn_c_try_link "$LINENO"; then :
14434 ac_cv_lib_XextSam_XShmQueryExtension=yes
14436 ac_cv_lib_XextSam_XShmQueryExtension=no
14438 rm -f core conftest.err conftest.$ac_objext \
14439 conftest$ac_exeext conftest.$ac_ext
14440 LIBS=$ac_check_lib_save_LIBS
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XextSam_XShmQueryExtension" >&5
14443 $as_echo "$ac_cv_lib_XextSam_XShmQueryExtension" >&6; }
14444 if test "x$ac_cv_lib_XextSam_XShmQueryExtension" = xyes; then :
14445 have_xshm=yes; X_EXTRA_LIBS="$X_EXTRA_LIBS -lXextSam"
14450 CPPFLAGS="$ac_save_CPPFLAGS"
14451 LDFLAGS="$ac_save_LDFLAGS"
14452 # LIBS="$ac_save_LIBS"
14458 # if that succeeded, then we've really got it.
14459 if test "$have_xshm" = yes; then
14460 $as_echo "#define HAVE_XSHM_EXTENSION 1" >>confdefs.h
14464 elif test "$with_xshm" != no; then
14465 echo "error: must be yes or no: --with-xshm-ext=$with_xshm"
14470 ###############################################################################
14472 # Check for the DOUBLE-BUFFER server extension.
14474 ###############################################################################
14477 with_xdbe_req=unspecified
14479 # Check whether --with-xdbe-ext was given.
14480 if test "${with_xdbe_ext+set}" = set; then :
14481 withval=$with_xdbe_ext; with_xdbe="$withval"; with_xdbe_req="$withval"
14488 case "$with_xdbe" in
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOUBLE-BUFFER headers" >&5
14494 $as_echo_n "checking for DOUBLE-BUFFER headers... " >&6; }
14495 d=$with_xdbe/include
14496 if test -d $d; then
14497 X_CFLAGS="-I$d $X_CFLAGS"
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14499 $as_echo "$d" >&6; }
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14502 $as_echo "not found ($d: no such directory)" >&6; }
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOUBLE-BUFFER libs" >&5
14506 $as_echo_n "checking for DOUBLE-BUFFER libs... " >&6; }
14508 if test -d $d; then
14509 X_LIBS="-L$d $X_LIBS"
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14511 $as_echo "$d" >&6; }
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14514 $as_echo "not found ($d: no such directory)" >&6; }
14517 # replace the directory string with "yes".
14518 with_xdbe_req="yes"
14519 with_xdbe=$with_xdbe_req
14524 echo "error: argument to --with-xdbe-ext must be \"yes\", \"no\", or a directory."
14525 echo " If it is a directory, then \`DIR/include' will be added to"
14526 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14532 if test "$with_xdbe" = yes; then
14535 ac_save_CPPFLAGS="$CPPFLAGS"
14536 if test \! -z "$includedir" ; then
14537 CPPFLAGS="$CPPFLAGS -I$includedir"
14539 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14540 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14541 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
14543 if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
14548 CPPFLAGS="$ac_save_CPPFLAGS"
14549 if test "$have_xdbe" = yes; then
14550 $as_echo "#define HAVE_DOUBLE_BUFFER_EXTENSION 1" >>confdefs.h
14554 elif test "$with_xdbe" != no; then
14555 echo "error: must be yes or no: --with-xdbe-ext=$with_xshm"
14560 ###############################################################################
14562 # Check for the SGI XReadDisplay server extension.
14564 # Note: this has to be down here, rather than up with the other server
14565 # extension tests, so that the output of `configure --help' is in the
14566 # right order. Arrgh!
14568 ###############################################################################
14570 have_readdisplay=no
14571 with_readdisplay_req=unspecified
14573 # Check whether --with-readdisplay was given.
14574 if test "${with_readdisplay+set}" = set; then :
14575 withval=$with_readdisplay; with_readdisplay="$withval"; with_readdisplay_req="$withval"
14577 with_readdisplay=yes
14582 case "$with_readdisplay" in
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XReadDisplay headers" >&5
14588 $as_echo_n "checking for XReadDisplay headers... " >&6; }
14589 d=$with_readdisplay/include
14590 if test -d $d; then
14591 X_CFLAGS="-I$d $X_CFLAGS"
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14593 $as_echo "$d" >&6; }
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14596 $as_echo "not found ($d: no such directory)" >&6; }
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XReadDisplay libs" >&5
14600 $as_echo_n "checking for XReadDisplay libs... " >&6; }
14601 d=$with_readdisplay/lib
14602 if test -d $d; then
14603 X_LIBS="-L$d $X_LIBS"
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14605 $as_echo "$d" >&6; }
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14608 $as_echo "not found ($d: no such directory)" >&6; }
14611 # replace the directory string with "yes".
14612 with_readdisplay_req="yes"
14613 with_readdisplay=$with_readdisplay_req
14618 echo "error: argument to --with-readdisplay must be \"yes\", \"no\", or a directory."
14619 echo " If it is a directory, then \`DIR/include' will be added to"
14620 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14626 if test "$with_readdisplay" = yes; then
14628 ac_save_CPPFLAGS="$CPPFLAGS"
14629 if test \! -z "$includedir" ; then
14630 CPPFLAGS="$CPPFLAGS -I$includedir"
14632 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14633 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14634 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/readdisplay.h" "ac_cv_header_X11_extensions_readdisplay_h" "#include <X11/Xlib.h>
14636 if test "x$ac_cv_header_X11_extensions_readdisplay_h" = xyes; then :
14637 $as_echo "#define HAVE_READ_DISPLAY_EXTENSION 1" >>confdefs.h
14642 CPPFLAGS="$ac_save_CPPFLAGS"
14643 elif test "$with_readdisplay" != no; then
14644 echo "error: must be yes or no: --with-readdisplay=$with_readdisplay"
14649 ###############################################################################
14651 # Check for a directory full of images to use as the default value
14652 # of the "imageDirectory" preference.
14654 ###############################################################################
14657 with_imagedir_req=unspecified
14660 # Check whether --with-image-directory was given.
14661 if test "${with_image_directory+set}" = set; then :
14662 withval=$with_image_directory; with_imagedir="$withval"; with_imagedir_req="$withval"
14667 # no HANDLE_X_PATH_ARG for this one
14669 case "$with_imagedir" in
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for image directory $with_imagedir" >&5
14673 $as_echo_n "checking for image directory $with_imagedir... " >&6; }
14674 if test -d "$with_imagedir" ; then
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14676 $as_echo "yes" >&6; }
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14679 $as_echo "no" >&6; }
14686 #### Could use some more defaults here...
14688 "/usr/share/backgrounds/images/" \
14689 "/usr/share/wallpapers/" \
14690 "/Library/Desktop Pictures/" \
14692 if test -z "$with_imagedir"; then
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for image directory $dd" >&5
14694 $as_echo_n "checking for image directory $dd... " >&6; }
14695 if test -d "$dd" ; then
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14697 $as_echo "yes" >&6; }
14698 with_imagedir="$dd"
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14701 $as_echo "no" >&6; }
14712 echo "error: must be an absolute path: --with-image-directory=$with_imagedir_req"
14716 ac_cv_imagedir="$with_imagedir"
14718 DEFAULT_IMAGES_P='True'
14719 DEFAULT_IMAGE_DIRECTORY="$ac_cv_imagedir"
14721 if test -z "$DEFAULT_IMAGE_DIRECTORY" ; then
14722 DEFAULT_IMAGES_P='False'
14726 ###############################################################################
14728 # Pick a text file to use as the default of the "textFile" preference.
14729 # Any old file will do, but preferably one that will make interesting
14730 # shapes when displayed by "starwars" and "fontglide".
14732 ###############################################################################
14735 with_textfile_req=unspecified
14738 # Check whether --with-text-file was given.
14739 if test "${with_text_file+set}" = set; then :
14740 withval=$with_text_file; with_textfile="$withval"; with_textfile_req="$withval"
14745 # no HANDLE_X_PATH_ARG for this one
14747 case "$with_textfile" in
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for text file $with_textfile" >&5
14751 $as_echo_n "checking for text file $with_textfile... " >&6; }
14752 if test -f "$with_textfile" ; then
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14754 $as_echo "yes" >&6; }
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14757 $as_echo "no" >&6; }
14764 #### Could use some more defaults here...
14766 "/usr/X11R6/lib/X11/doc/README" \
14767 "/usr/share/doc/xserver-common/copyright" \
14768 "/usr/share/doc/xserver-xorg-core/copyright" \
14769 "/usr/X11R6/README" \
14770 "/usr/share/doc/libX11*/COPYING" \
14771 "/usr/X11/share/X11/doc/README*" \
14772 "/usr/share/doc/debian/debian-manifesto" \
14774 if test -z "$with_textfile"; then
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for text file $f" >&5
14776 $as_echo_n "checking for text file $f... " >&6; }
14777 f=`/bin/ls $f 2>&- | head -1`
14778 if test -f "$f" ; then
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14780 $as_echo "yes" >&6; }
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14784 $as_echo "no" >&6; }
14795 echo "error: must be an absolute path: --with-text-file=$with_textfile_req"
14799 ac_cv_textfile="$with_textfile"
14801 DEFAULT_TEXT_FILE="$ac_cv_textfile"
14804 ###############################################################################
14806 # Check the browser to see help URL
14808 ###############################################################################
14811 with_browser_req=unspecified
14814 # Check whether --with-browser was given.
14815 if test "${with_browser+set}" = set; then :
14816 withval=$with_browser; with_browser="$withval"; with_browser_req="$withval"
14821 # no HANDLE_X_PATH_ARG for this one
14823 case "$with_browser" in
14827 WITH_BROWSER=$with_browser
14828 gnome_open_program=$with_browser
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for browser $with_browser" >&5
14830 $as_echo_n "checking for browser $with_browser... " >&6; }
14831 with_browser_fullpath=`which $with_browser 2>/dev/null`
14832 case $with_browser_fullpath in
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14835 $as_echo "yes" >&6; }
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14840 $as_echo "no" >&6; }
14841 # Only warning: we don't want to install all packages for the
14842 # dependency of the browser in building stage...
14843 echo "WARNING: browser not found: --with-browser=$with_browser"
14848 ac_cv_browser="$with_browser"
14850 ###############################################################################
14852 # Check whether it's ok to install some hacks as setuid (e.g., "sonar")
14853 # This should be safe, but let's give people the option.
14855 ###############################################################################
14857 setuid_hacks_default=no
14858 setuid_hacks="$setuid_hacks_default"
14860 # Check whether --with-setuid-hacks was given.
14861 if test "${with_setuid_hacks+set}" = set; then :
14862 withval=$with_setuid_hacks; setuid_hacks="$withval"
14864 setuid_hacks="$setuid_hacks_default"
14869 case "$setuid_hacks" in
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setuid hacks headers" >&5
14875 $as_echo_n "checking for setuid hacks headers... " >&6; }
14876 d=$setuid_hacks/include
14877 if test -d $d; then
14878 X_CFLAGS="-I$d $X_CFLAGS"
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14880 $as_echo "$d" >&6; }
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14883 $as_echo "not found ($d: no such directory)" >&6; }
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setuid hacks libs" >&5
14887 $as_echo_n "checking for setuid hacks libs... " >&6; }
14888 d=$setuid_hacks/lib
14889 if test -d $d; then
14890 X_LIBS="-L$d $X_LIBS"
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14892 $as_echo "$d" >&6; }
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14895 $as_echo "not found ($d: no such directory)" >&6; }
14898 # replace the directory string with "yes".
14899 setuid_hacks_req="yes"
14900 setuid_hacks=$setuid_hacks_req
14905 echo "error: argument to --with-setuid-hacks must be \"yes\", \"no\", or a directory."
14906 echo " If it is a directory, then \`DIR/include' will be added to"
14907 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14913 if test "$setuid_hacks" = yes; then
14915 elif test "$setuid_hacks" != no; then
14916 echo "error: must be yes or no: --with-setuid-hacks=$setuid_hacks"
14921 ###############################################################################
14923 # Done testing. Now, set up the various -I and -L variables,
14924 # and decide which GUI program to build by default.
14926 ###############################################################################
14933 if test \! -z "$includedir" ; then
14934 INCLUDES="$INCLUDES -I$includedir"
14937 if test \! -z "$libdir" ; then
14938 LDFLAGS="$LDFLAGS -L$libdir"
14942 PREFERRED_DEMO_PROGRAM=''
14944 if test "$have_motif" = yes; then
14945 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Xm
14946 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
14948 if test "$have_gtk" = yes; then
14949 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Gtk
14950 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
14954 if test "$have_kerberos" = yes; then
14955 PASSWD_SRCS="$PASSWD_SRCS \$(KERBEROS_SRCS)"
14956 PASSWD_OBJS="$PASSWD_OBJS \$(KERBEROS_OBJS)"
14958 if test "$have_pam" = yes; then
14959 PASSWD_SRCS="$PASSWD_SRCS \$(PAM_SRCS)"
14960 PASSWD_OBJS="$PASSWD_OBJS \$(PAM_OBJS)"
14961 INSTALL_PAM="install-pam"
14963 if test "$enable_pam_check_account_type" = yes; then
14964 COMMENT_PAM_CHECK_ACCOUNT=""
14966 COMMENT_PAM_CHECK_ACCOUNT="#"
14968 if test "$have_passwd_helper" = yes; then
14969 PASSWD_SRCS="$PASSWD_SRCS \$(PWHELPER_SRCS)"
14970 PASSWD_OBJS="$PASSWD_OBJS \$(PWHELPER_OBJS)"
14972 PASSWD_SRCS="$PASSWD_SRCS \$(PWENT_SRCS)"
14973 PASSWD_OBJS="$PASSWD_OBJS \$(PWENT_OBJS)"
14976 if test "$enable_locking" = yes; then
14977 LOCK_SRCS='$(LOCK_SRCS_1) $(PASSWD_SRCS)'
14978 LOCK_OBJS='$(LOCK_OBJS_1) $(PASSWD_OBJS)'
14980 LOCK_SRCS='$(NOLOCK_SRCS_1)'
14981 LOCK_OBJS='$(NOLOCK_OBJS_1)'
14984 if test "$ac_macosx" = yes; then
14985 EXES_OSX='$(EXES_OSX)'
14986 SCRIPTS_OSX='$(SCRIPTS_OSX)'
14987 MEN_OSX='$(MEN_OSX)'
14995 INSTALL_SETUID='$(INSTALL_PROGRAM) $(SUID_FLAGS)'
14997 if test "$need_setuid" = yes; then
15003 if test "$setuid_hacks" = yes; then
15010 if test "$have_gl" = yes; then
15011 GL_EXES='$(GL_EXES)'
15012 SUID_EXES='$(SUID_EXES)'
15013 RETIRED_GL_EXES='$(RETIRED_GL_EXES)'
15014 GL_UTIL_EXES='$(GL_UTIL_EXES)'
15021 if test "$have_gle" = yes; then
15022 GLE_EXES='$(GLE_EXES)'
15028 if test "$have_jpeg" = yes -a "$have_gdk_pixbuf" = yes; then
15029 JPEG_EXES='$(JPEG_EXES)'
15033 # Another substitution in the XScreenSaver.ad.in file:
15035 if test "$gnome_open_program" != ''; then
15039 elif test "$gnome_url_show_program" != ''; then
15050 # Set PO_DATADIR to something sensible.
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale directory" >&5
15053 $as_echo_n "checking for locale directory... " >&6; }
15054 if test -n "$GTK_DATADIR" ; then
15055 PO_DATADIR="$GTK_DATADIR"
15056 elif test "$have_gtk" = yes; then
15057 PO_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
15058 PO_DATADIR="$PO_DATADIR/share"
15061 if test -z "$PO_DATADIR" ; then
15063 # #### Total fucking kludge --
15064 # Map /build/prefix/usr/X11R6/share/ to /build/prefix/usr/share/
15065 # but of course we need to expand all the nested variables to do that...
15067 dd=`eval eval eval eval eval eval eval eval eval eval eval echo $datadir`
15068 PO_DATADIR=`echo $dd | sed 's@/X11R6/@/@'`
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PO_DATADIR/locale" >&5
15072 $as_echo "$PO_DATADIR/locale" >&6; }
15075 # canonicalize slashes.
15076 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
15078 # gcc 3.0 likes to issue this warning for every file:
15080 # cc1: warning: changing search order for system directory "/usr/local/include"
15081 # cc1: warning: as it has already been specified as a non-system directory
15083 # Yay. We can only avoid that by deleting "-I${prefix}/include" from the list.
15084 # Which *should* be totally redundant, and thus an ok thing to delete?
15086 INCLUDES=`echo "$INCLUDES" | sed 's@ -I${prefix}/include@@g;'`
15089 ###############################################################################
15091 # Perform substitutions and write Makefiles.
15093 ###############################################################################
15163 APPDEFAULTS=$ac_x_app_defaults
15171 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"
15173 cat >confcache <<\_ACEOF
15174 # This file is a shell script that caches the results of configure
15175 # tests run on this system so they can be shared between configure
15176 # scripts and configure runs, see configure's option --config-cache.
15177 # It is not useful on other systems. If it contains results you don't
15178 # want to keep, you may remove or edit it.
15180 # config.status only pays attention to the cache file if you give it
15181 # the --recheck option to rerun configure.
15183 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15184 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15185 # following values.
15189 # The following way of writing the cache mishandles newlines in values,
15190 # but we know of no workaround that is simple, portable, and efficient.
15191 # So, we kill variables containing newlines.
15192 # Ultrix sh set writes to stderr and can't be redirected directly,
15193 # and sets the high bit in the cache file unless we assign to the vars.
15195 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15196 eval ac_val=\$$ac_var
15200 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15201 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15204 _ | IFS | as_nl) ;; #(
15205 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15206 *) { eval $ac_var=; unset $ac_var;} ;;
15212 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15213 *${as_nl}ac_space=\ *)
15214 # `set' does not quote correctly, so add quotes: double-quote
15215 # substitution turns \\\\ into \\, and sed turns \\ into \.
15218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15221 # `set' quotes correctly as required by POSIX, so do not add quotes.
15222 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15231 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15233 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15235 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15236 if test -w "$cache_file"; then
15237 if test "x$cache_file" != "x/dev/null"; then
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15239 $as_echo "$as_me: updating cache $cache_file" >&6;}
15240 if test ! -f "$cache_file" || test -h "$cache_file"; then
15241 cat confcache >"$cache_file"
15243 case $cache_file in #(
15245 mv -f confcache "$cache_file"$$ &&
15246 mv -f "$cache_file"$$ "$cache_file" ;; #(
15248 mv -f confcache "$cache_file" ;;
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15254 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15259 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15260 # Let make expand exec_prefix.
15261 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15263 DEFS=-DHAVE_CONFIG_H
15268 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15269 # 1. Remove the extension, and $U if already installed.
15270 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15271 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15272 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15273 # will be set to the directory where LIBOBJS objects are built.
15274 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15275 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15277 LIBOBJS=$ac_libobjs
15279 LTLIBOBJS=$ac_ltlibobjs
15283 : "${CONFIG_STATUS=./config.status}"
15285 ac_clean_files_save=$ac_clean_files
15286 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15288 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15290 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15292 # Generated by $as_me.
15293 # Run this file to recreate the current configuration.
15294 # Compiler output produced by configure, useful for debugging
15295 # configure, is in config.log if it exists.
15298 ac_cs_recheck=false
15301 SHELL=\${CONFIG_SHELL-$SHELL}
15304 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15305 ## -------------------- ##
15306 ## M4sh Initialization. ##
15307 ## -------------------- ##
15309 # Be more Bourne compatible
15310 DUALCASE=1; export DUALCASE # for MKS sh
15311 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15314 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15315 # is contrary to our usage. Disable this feature.
15316 alias -g '${1+"$@"}'='"$@"'
15317 setopt NO_GLOB_SUBST
15319 case `(set -o) 2>/dev/null` in #(
15331 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15332 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15333 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15334 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15335 # Prefer a ksh shell builtin over an external printf program on Solaris,
15336 # but without wasting forks for bash or zsh.
15337 if test -z "$BASH_VERSION$ZSH_VERSION" \
15338 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15339 as_echo='print -r --'
15340 as_echo_n='print -rn --'
15341 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15342 as_echo='printf %s\n'
15343 as_echo_n='printf %s'
15345 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15346 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15347 as_echo_n='/usr/ucb/echo -n'
15349 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15350 as_echo_n_body='eval
15354 expr "X$arg" : "X\\(.*\\)$as_nl";
15355 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15357 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15359 export as_echo_n_body
15360 as_echo_n='sh -c $as_echo_n_body as_echo'
15362 export as_echo_body
15363 as_echo='sh -c $as_echo_body as_echo'
15366 # The user is always right.
15367 if test "${PATH_SEPARATOR+set}" != set; then
15369 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15370 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15377 # We need space, tab and new line, in precisely that order. Quoting is
15378 # there to prevent editors from complaining about space-tab.
15379 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15380 # splitting by setting IFS to empty value.)
15383 # Find who we are. Look in the path if we contain no directory separator.
15386 *[\\/]* ) as_myself=$0 ;;
15387 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15388 for as_dir in $PATH
15391 test -z "$as_dir" && as_dir=.
15392 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15398 # We did not find ourselves, most probably we were run as `sh COMMAND'
15399 # in which case we are not to be found in the path.
15400 if test "x$as_myself" = x; then
15403 if test ! -f "$as_myself"; then
15404 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15408 # Unset variables that we do not need and which cause bugs (e.g. in
15409 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15410 # suppresses any "Segmentation fault" message there. '((' could
15411 # trigger a bug in pdksh 5.2.14.
15412 for as_var in BASH_ENV ENV MAIL MAILPATH
15413 do eval test x\${$as_var+set} = xset \
15414 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15427 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15430 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15431 # ----------------------------------------
15432 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15433 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15434 # script with STATUS, using 1 if that was 0.
15437 as_status=$1; test $as_status -eq 0 && as_status=1
15439 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15440 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15442 $as_echo "$as_me: error: $2" >&2
15443 as_fn_exit $as_status
15447 # as_fn_set_status STATUS
15448 # -----------------------
15449 # Set $? to STATUS, without forking.
15450 as_fn_set_status ()
15453 } # as_fn_set_status
15455 # as_fn_exit STATUS
15456 # -----------------
15457 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15461 as_fn_set_status $1
15467 # Portably unset VAR.
15470 { eval $1=; unset $1;}
15472 as_unset=as_fn_unset
15473 # as_fn_append VAR VALUE
15474 # ----------------------
15475 # Append the text in VALUE to the end of the definition contained in VAR. Take
15476 # advantage of any shell optimizations that allow amortized linear growth over
15477 # repeated appends, instead of the typical quadratic growth present in naive
15479 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15480 eval 'as_fn_append ()
15491 # as_fn_arith ARG...
15492 # ------------------
15493 # Perform arithmetic evaluation on the ARGs, and store the result in the
15494 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15495 # must be portable across $(()) and expr.
15496 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15497 eval 'as_fn_arith ()
15504 as_val=`expr "$@" || test $? -eq 1`
15509 if expr a : '\(a\)' >/dev/null 2>&1 &&
15510 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15516 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15517 as_basename=basename
15522 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15528 as_me=`$as_basename -- "$0" ||
15529 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15530 X"$0" : 'X\(//\)$' \| \
15531 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15533 sed '/^.*\/\([^/][^/]*\)\/*$/{
15547 # Avoid depending upon Character Ranges.
15548 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15549 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15550 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15551 as_cr_digits='0123456789'
15552 as_cr_alnum=$as_cr_Letters$as_cr_digits
15554 ECHO_C= ECHO_N= ECHO_T=
15555 case `echo -n x` in #(((((
15557 case `echo 'xy\c'` in
15558 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15560 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15567 rm -f conf$$ conf$$.exe conf$$.file
15568 if test -d conf$$.dir; then
15569 rm -f conf$$.dir/conf$$.file
15572 mkdir conf$$.dir 2>/dev/null
15574 if (echo >conf$$.file) 2>/dev/null; then
15575 if ln -s conf$$.file conf$$ 2>/dev/null; then
15577 # ... but there are two gotchas:
15578 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15579 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15580 # In both cases, we have to default to `cp -pR'.
15581 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15583 elif ln conf$$.file conf$$ 2>/dev/null; then
15591 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15592 rmdir conf$$.dir 2>/dev/null
15597 # Create "$as_dir" as a directory, including parents if necessary.
15602 -*) as_dir=./$as_dir;;
15604 test -d "$as_dir" || eval $as_mkdir_p || {
15608 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15609 *) as_qdir=$as_dir;;
15611 as_dirs="'$as_qdir' $as_dirs"
15612 as_dir=`$as_dirname -- "$as_dir" ||
15613 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15614 X"$as_dir" : 'X\(//\)[^/]' \| \
15615 X"$as_dir" : 'X\(//\)$' \| \
15616 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15617 $as_echo X"$as_dir" |
15618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15622 /^X\(\/\/\)[^/].*/{
15635 test -d "$as_dir" && break
15637 test -z "$as_dirs" || eval "mkdir $as_dirs"
15638 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15642 if mkdir -p . 2>/dev/null; then
15643 as_mkdir_p='mkdir -p "$as_dir"'
15645 test -d ./-p && rmdir ./-p
15650 # as_fn_executable_p FILE
15651 # -----------------------
15652 # Test if FILE is an executable regular file.
15653 as_fn_executable_p ()
15655 test -f "$1" && test -x "$1"
15656 } # as_fn_executable_p
15657 as_test_x='test -x'
15658 as_executable_p=as_fn_executable_p
15660 # Sed expression to map a string onto a valid CPP name.
15661 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15663 # Sed expression to map a string onto a valid variable name.
15664 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15668 ## ----------------------------------- ##
15669 ## Main body of $CONFIG_STATUS script. ##
15670 ## ----------------------------------- ##
15672 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15675 # Save the log message, to keep $0 and so on meaningful, and to
15676 # report actual input values of CONFIG_FILES etc. instead of their
15677 # values after options handling.
15679 This file was extended by $as_me, which was
15680 generated by GNU Autoconf 2.69. Invocation command line was
15682 CONFIG_FILES = $CONFIG_FILES
15683 CONFIG_HEADERS = $CONFIG_HEADERS
15684 CONFIG_LINKS = $CONFIG_LINKS
15685 CONFIG_COMMANDS = $CONFIG_COMMANDS
15688 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15693 case $ac_config_files in *"
15694 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15697 case $ac_config_headers in *"
15698 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15703 # Files that config.status was made for.
15704 config_files="$ac_config_files"
15705 config_headers="$ac_config_headers"
15706 config_commands="$ac_config_commands"
15710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15712 \`$as_me' instantiates files and other configuration actions
15713 from templates according to the current configuration. Unless the files
15714 and actions are specified as TAGs, all are instantiated by default.
15716 Usage: $0 [OPTION]... [TAG]...
15718 -h, --help print this help, then exit
15719 -V, --version print version number and configuration settings, then exit
15720 --config print configuration, then exit
15721 -q, --quiet, --silent
15722 do not print progress messages
15723 -d, --debug don't remove temporary files
15724 --recheck update $as_me by reconfiguring in the same conditions
15725 --file=FILE[:TEMPLATE]
15726 instantiate the configuration file FILE
15727 --header=FILE[:TEMPLATE]
15728 instantiate the configuration header FILE
15730 Configuration files:
15733 Configuration headers:
15736 Configuration commands:
15739 Report bugs to the package provider."
15742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15743 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15746 configured by $0, generated by GNU Autoconf 2.69,
15747 with options \\"\$ac_cs_config\\"
15749 Copyright (C) 2012 Free Software Foundation, Inc.
15750 This config.status script is free software; the Free Software Foundation
15751 gives unlimited permission to copy, distribute and modify it."
15756 test -n "\$AWK" || AWK=awk
15759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15760 # The default lists apply if the user does not specify any file.
15766 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15767 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15771 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15783 # Handling of the options.
15784 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15786 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15787 $as_echo "$ac_cs_version"; exit ;;
15788 --config | --confi | --conf | --con | --co | --c )
15789 $as_echo "$ac_cs_config"; exit ;;
15790 --debug | --debu | --deb | --de | --d | -d )
15792 --file | --fil | --fi | --f )
15795 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15796 '') as_fn_error $? "missing file argument" ;;
15798 as_fn_append CONFIG_FILES " '$ac_optarg'"
15799 ac_need_defaults=false;;
15800 --header | --heade | --head | --hea )
15803 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15805 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15806 ac_need_defaults=false;;
15808 # Conflict between --help and --header
15809 as_fn_error $? "ambiguous option: \`$1'
15810 Try \`$0 --help' for more information.";;
15811 --help | --hel | -h )
15812 $as_echo "$ac_cs_usage"; exit ;;
15813 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15814 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15817 # This is an error.
15818 -*) as_fn_error $? "unrecognized option: \`$1'
15819 Try \`$0 --help' for more information." ;;
15821 *) as_fn_append ac_config_targets " $1"
15822 ac_need_defaults=false ;;
15828 ac_configure_extra_args=
15830 if $ac_cs_silent; then
15832 ac_configure_extra_args="$ac_configure_extra_args --silent"
15836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15837 if \$ac_cs_recheck; then
15838 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15840 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15841 CONFIG_SHELL='$SHELL'
15842 export CONFIG_SHELL
15847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15851 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15852 ## Running $as_me. ##
15858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15868 # Handling of arguments.
15869 for ac_config_target in $ac_config_targets
15871 case $ac_config_target in
15872 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15873 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15874 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15875 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
15876 "driver/Makefile") CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;;
15877 "driver/xscreensaver.pam") CONFIG_FILES="$CONFIG_FILES driver/xscreensaver.pam" ;;
15878 "hacks/Makefile") CONFIG_FILES="$CONFIG_FILES hacks/Makefile" ;;
15879 "hacks/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hacks/glx/Makefile" ;;
15880 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15881 "driver/XScreenSaver.ad") CONFIG_FILES="$CONFIG_FILES driver/XScreenSaver.ad" ;;
15883 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15888 # If the user did not use the arguments to specify the items to instantiate,
15889 # then the envvar interface is used. Set only those that are not.
15890 # We use the long form for the default assignment because of an extremely
15891 # bizarre bug on SunOS 4.1.3.
15892 if $ac_need_defaults; then
15893 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15894 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15895 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15898 # Have a temporary directory for convenience. Make it in the build tree
15899 # simply because there is no reason against having it here, and in addition,
15900 # creating and moving files from /tmp can sometimes cause problems.
15901 # Hook for its removal unless debugging.
15902 # Note that there is a small window in which the directory will not be cleaned:
15903 # after its creation but before its name has been assigned to `$tmp'.
15907 trap 'exit_status=$?
15908 : "${ac_tmp:=$tmp}"
15909 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15911 trap 'as_fn_exit 1' 1 2 13 15
15913 # Create a (secure) tmp directory for tmp files.
15916 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15920 tmp=./conf$$-$RANDOM
15921 (umask 077 && mkdir "$tmp")
15922 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15925 # Set up the scripts for CONFIG_FILES section.
15926 # No need to generate them if there are no CONFIG_FILES.
15927 # This happens for instance with `./config.status config.h'.
15928 if test -n "$CONFIG_FILES"; then
15931 ac_cr=`echo X | tr X '\015'`
15932 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15933 # But we know of no other shell where ac_cr would be empty at this
15934 # point, so we can use a bashism as a fallback.
15935 if test "x$ac_cr" = x; then
15936 eval ac_cr=\$\'\\r\'
15938 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15939 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15942 ac_cs_awk_cr=$ac_cr
15945 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15950 echo "cat >conf$$subs.awk <<_ACEOF" &&
15951 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15953 } >conf$$subs.sh ||
15954 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15955 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15957 for ac_last_try in false false false false false :; do
15958 . ./conf$$subs.sh ||
15959 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15961 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15962 if test $ac_delim_n = $ac_delim_num; then
15964 elif $ac_last_try; then
15965 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15967 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15970 rm -f conf$$subs.sh
15972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15973 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15977 s/^/S["/; s/!.*/"]=/
15987 s/\(.\{148\}\)..*/\1/
15989 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15994 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16001 s/\(.\{148\}\)..*/\1/
16003 s/["\\]/\\&/g; s/^/"/; s/$/"/
16007 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16012 ' <conf$$subs.awk | sed '
16017 ' >>$CONFIG_STATUS || ac_write_fail=1
16018 rm -f conf$$subs.awk
16019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16021 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16022 for (key in S) S_is_set[key] = 1
16028 nfields = split(line, field, "@")
16030 len = length(field[1])
16031 for (i = 2; i < nfields; i++) {
16033 keylen = length(key)
16034 if (S_is_set[key]) {
16036 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16037 len += length(value) + length(field[++i])
16048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16049 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16050 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16053 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16054 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16057 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16058 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16059 # trailing colons and then remove the whole line if VPATH becomes empty
16060 # (actually we leave an empty line to preserve line numbers).
16061 if test "x$srcdir" = x.; then
16062 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16081 fi # test -n "$CONFIG_FILES"
16083 # Set up the scripts for CONFIG_HEADERS section.
16084 # No need to generate them if there are no CONFIG_HEADERS.
16085 # This happens for instance with `./config.status Makefile'.
16086 if test -n "$CONFIG_HEADERS"; then
16087 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16091 # Transform confdefs.h into an awk script `defines.awk', embedded as
16092 # here-document in config.status, that substitutes the proper values into
16093 # config.h.in to produce config.h.
16095 # Create a delimiter string that does not exist in confdefs.h, to ease
16096 # handling of long lines.
16098 for ac_last_try in false false :; do
16099 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16100 if test -z "$ac_tt"; then
16102 elif $ac_last_try; then
16103 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16105 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16109 # For the awk script, D is an array of macro values keyed by name,
16110 # likewise P contains macro parameters if any. Preserve backslash
16111 # newline sequences.
16113 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16115 s/.\{148\}/&'"$ac_delim"'/g
16118 s/^[ ]*#[ ]*define[ ][ ]*/ /
16125 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16127 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16131 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16132 D["\1"]=" \3\\\\\\n"\\/p
16134 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16139 s/.\{148\}/&'"$ac_delim"'/g
16144 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16147 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16149 ' <confdefs.h | sed '
16150 s/'"$ac_delim"'/"\\\
16151 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16154 for (key in D) D_is_set[key] = 1
16157 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16159 split(line, arg, " ")
16160 if (arg[1] == "#") {
16164 defundef = substr(arg[1], 2)
16167 split(mac1, mac2, "(") #)
16169 prefix = substr(line, 1, index(line, defundef) - 1)
16170 if (D_is_set[macro]) {
16171 # Preserve the white space surrounding the "#".
16172 print prefix "define", macro P[macro] D[macro]
16175 # Replace #undef with comments. This is necessary, for example,
16176 # in the case of _POSIX_SOURCE, which is predefined and required
16177 # on some systems where configure will not decide to define it.
16178 if (defundef == "undef") {
16179 print "/*", prefix defundef, macro, "*/"
16187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16188 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16189 fi # test -n "$CONFIG_HEADERS"
16192 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16197 :[FHLC]) ac_mode=$ac_tag; continue;;
16199 case $ac_mode$ac_tag in
16201 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16202 :[FH]-) ac_tag=-:-;;
16203 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16220 -) ac_f="$ac_tmp/stdin";;
16221 *) # Look for the file first in the build tree, then in the source tree
16222 # (if the path is not absolute). The absolute path cannot be DOS-style,
16223 # because $ac_f cannot contain `:'.
16227 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16229 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16231 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16232 as_fn_append ac_file_inputs " '$ac_f'"
16235 # Let's still pretend it is `configure' which instantiates (i.e., don't
16236 # use $as_me), people would be surprised to read:
16237 # /* config.h. Generated by config.status. */
16238 configure_input='Generated from '`
16239 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16241 if test x"$ac_file" != x-; then
16242 configure_input="$ac_file. $configure_input"
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16244 $as_echo "$as_me: creating $ac_file" >&6;}
16246 # Neutralize special characters interpreted by sed in replacement strings.
16247 case $configure_input in #(
16248 *\&* | *\|* | *\\* )
16249 ac_sed_conf_input=`$as_echo "$configure_input" |
16250 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16251 *) ac_sed_conf_input=$configure_input;;
16255 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16256 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16261 ac_dir=`$as_dirname -- "$ac_file" ||
16262 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16263 X"$ac_file" : 'X\(//\)[^/]' \| \
16264 X"$ac_file" : 'X\(//\)$' \| \
16265 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16266 $as_echo X"$ac_file" |
16267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16271 /^X\(\/\/\)[^/].*/{
16284 as_dir="$ac_dir"; as_fn_mkdir_p
16288 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16290 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16291 # A ".." for each directory in $ac_dir_suffix.
16292 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16293 case $ac_top_builddir_sub in
16294 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16295 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16298 ac_abs_top_builddir=$ac_pwd
16299 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16300 # for backward compatibility:
16301 ac_top_builddir=$ac_top_build_prefix
16304 .) # We are building in place.
16306 ac_top_srcdir=$ac_top_builddir_sub
16307 ac_abs_top_srcdir=$ac_pwd ;;
16308 [\\/]* | ?:[\\/]* ) # Absolute name.
16309 ac_srcdir=$srcdir$ac_dir_suffix;
16310 ac_top_srcdir=$srcdir
16311 ac_abs_top_srcdir=$srcdir ;;
16312 *) # Relative name.
16313 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16314 ac_top_srcdir=$ac_top_build_prefix$srcdir
16315 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16317 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16327 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16328 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16333 # If the template does not know about datarootdir, expand it.
16334 # FIXME: This hack should be removed a few years after 2.60.
16335 ac_datarootdir_hack=; ac_datarootdir_seen=
16346 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16347 *datarootdir*) ac_datarootdir_seen=yes;;
16348 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16350 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16353 ac_datarootdir_hack='
16354 s&@datadir@&$datadir&g
16355 s&@docdir@&$docdir&g
16356 s&@infodir@&$infodir&g
16357 s&@localedir@&$localedir&g
16358 s&@mandir@&$mandir&g
16359 s&\\\${datarootdir}&$datarootdir&g' ;;
16363 # Neutralize VPATH when `$srcdir' = `.'.
16364 # Shell code in configure.ac might set extrasub.
16365 # FIXME: do we really want to maintain this feature?
16366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16367 ac_sed_extra="$ac_vpsub
16370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16372 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16373 s|@configure_input@|$ac_sed_conf_input|;t t
16374 s&@top_builddir@&$ac_top_builddir_sub&;t t
16375 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16376 s&@srcdir@&$ac_srcdir&;t t
16377 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16378 s&@top_srcdir@&$ac_top_srcdir&;t t
16379 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16380 s&@builddir@&$ac_builddir&;t t
16381 s&@abs_builddir@&$ac_abs_builddir&;t t
16382 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16383 s&@INSTALL@&$ac_INSTALL&;t t
16384 $ac_datarootdir_hack
16386 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16387 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16389 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16390 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16391 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16392 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16394 which seems to be undefined. Please make sure it is defined" >&5
16395 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16396 which seems to be undefined. Please make sure it is defined" >&2;}
16398 rm -f "$ac_tmp/stdin"
16400 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16401 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16403 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16409 if test x"$ac_file" != x-; then
16411 $as_echo "/* $configure_input */" \
16412 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16413 } >"$ac_tmp/config.h" \
16414 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16415 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16417 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16420 mv "$ac_tmp/config.h" "$ac_file" \
16421 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16424 $as_echo "/* $configure_input */" \
16425 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16426 || as_fn_error $? "could not create -" "$LINENO" 5
16430 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16431 $as_echo "$as_me: executing $ac_file commands" >&6;}
16436 case $ac_file$ac_mode in
16437 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
16438 rm -f po/stamp-it po/stamp-it.tmp
16440 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
16441 mv po/stamp-it.tmp po/stamp-it
16450 ac_clean_files=$ac_clean_files_save
16452 test $ac_write_fail = 0 ||
16453 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16456 # configure is writing to config.log, and then calls config.status.
16457 # config.status does its own redirection, appending to config.log.
16458 # Unfortunately, on DOS this fails, as config.log is still kept open
16459 # by configure, so config.status won't be able to write to it; its
16460 # output is simply discarded. So we exec the FD to /dev/null,
16461 # effectively closing config.log, so it can be properly (re)opened and
16462 # appended to by config.status. When coming back to configure, we
16463 # need to make the FD available again.
16464 if test "$no_create" != yes; then
16466 ac_config_status_args=
16467 test "$silent" = yes &&
16468 ac_config_status_args="$ac_config_status_args --quiet"
16470 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16472 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16473 # would make configure fail if this is the last instruction.
16474 $ac_cs_success || as_fn_exit 1
16476 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16478 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16482 ###############################################################################
16484 # Print some warnings at the end.
16486 ###############################################################################
16488 warn_prefix_1=" Warning:"
16489 warn_prefix_2=" Note:"
16490 warn_prefix="$warn_prefix_1"
16493 warnsep=' #################################################################'
16496 if test "$warning" = no ; then
16497 echo '' ; echo "$warnsep" ; echo ''
16504 if test "$warning" = long ; then echo '' ; fi
16507 echo "$warn_prefix $rest"
16514 if test "$was" != no ; then echo '' ; fi
16516 echo "$warn_prefix $rest"
16526 warn_prefix="$warn_prefix_2"
16528 warn_prefix="$warn_prefix_1"
16532 warn_prefix="$warn_prefix_2"
16534 warn_prefix="$warn_prefix_1"
16538 # ac_prog_cc_no_pthread normally only happens on AIX, because according
16539 # to AX_PTHREAD, AIX needs CC=xlc_r or CC=cc_r to do threads.
16540 # If CC is specified, it takes precedence over --with-pthread.
16541 if test "$ac_prog_cc_no_pthread" ; then
16542 warnL "You requested $ac_original_cc for the C compiler, but it doesn't"
16543 warn2 "support POSIX threads."
16545 warn2 "If you have multiple CPU cores, try CC=$PTHREAD_CC."
16546 elif test "$with_pthread_req" = yes -a "$have_pthread" = no ; then
16547 warn 'POSIX threads were requested, but were not found.'
16550 if test "$with_sgi_req" = yes -a "$have_sgi" = no ; then
16551 warn 'The SGI saver extension was requested, but was not found.'
16554 if test "$with_xidle_req" = yes -a "$have_xidle" = no ; then
16555 warn 'The XIdle extension was requested, but was not found.'
16558 if test "$with_xshm_req" = yes -a "$have_xshm" = no ; then
16559 warn 'The XSHM extension was requested, but was not found.'
16562 if test "$with_xdbe_req" = yes -a "$have_xdbe" = no ; then
16563 warn 'The DOUBLE-BUFFER extension was requested, but was not found.'
16566 if test "$with_sgivc_req" = yes -a "$have_sgivc" = no ; then
16567 warn 'The SGI-VIDEO-CONTROL extension was requested, but was not found.'
16570 if test "$with_dpms_req" = yes -a "$have_dpms" = no ; then
16571 warn 'The DPMS extension was requested, but was not found.'
16574 if test "$with_xinerama_req" = yes -a "$have_xinerama" = no ; then
16575 warn 'The Xinerama extension was requested, but was not found.'
16578 if test "$with_xf86vmode_req" = yes -a "$have_xf86vmode" = no ; then
16579 warn 'The XF86VMODE extension was requested, but was not found.'
16582 if test "$with_randr_req" = yes -a "$have_randr" = no ; then
16583 warn 'The RANDR extension was requested, but was not found.'
16586 if test "$with_proc_interrupts_req" = yes -a "$have_proc_interrupts" = no; then
16587 warn "Checking of /proc/interrupts was requested, but it's bogus."
16590 if test "$pkg_config" = false ; then
16591 warnL 'The "pkg-config" program was not found. Without that,'
16592 warn2 "detection of the various GTK libraries won't work."
16594 pkgerr=`$pkg_config --list-all 2>&1 >/dev/null`
16595 if test "x$pkgerr" != "x" ; then
16596 warnL 'The "pkg-config" program produces errors. This often causes'
16597 warn2 "detection of the various GTK libraries to malfunction."
16598 warn2 "The errors are:"
16600 echo "$pkgerr" | sed 's/^/ > /g'
16604 if test "$gtk_halfassed" != no ; then
16605 warnL "GTK version $gtk_halfassed was found, but at least one supporting"
16606 warn2 "library ($gtk_halfassed_lib) was not, so GTK can't be used."
16607 warn2 "Perhaps some of the development packages are not installed?"
16608 if test "$have_gtk" = yes ; then
16609 v="$ac_gtk_version_string"
16610 warn2 "GTK $v is also installed, so it will be used instead."
16611 warn2 "Please read the above output and the \`config.log' file"
16612 warn2 "for more details."
16617 warn2 'Though the Motif front-end to xscreensaver is still'
16618 warn2 'maintained, it is no longer being updated with new'
16619 warn2 'features: all new development on the xscreensaver-demo'
16620 warn2 'program is happening in the GTK version, and not in the'
16621 warn2 'Motif version. It is recommended that you build against'
16622 warn2 'GTK instead of Motif. See <http://www.gtk.org/>.'
16625 if test "$have_motif" = no -a "$have_gtk" = no; then
16627 if test "$with_motif" = yes; then
16628 warnL "Neither the GTK nor Motif libraries were found; the"
16629 warn2 "\`xscreensaver-demo' program requires one of these."
16633 warnL "The GTK libraries do not seem to be available; the"
16634 warn2 "\`xscreensaver-demo' program requires them."
16636 # warn2 'You can use Motif or Lesstif instead of GTK (use the'
16637 # warn2 "\`--with-motif' option) but that is NOT recommended."
16641 elif test "$with_motif_req" = yes -a "$have_motif" = no ; then
16642 warnL "Use of Motif was requested, but it wasn't found;"
16643 warn2 "Gtk will be used instead."
16645 elif test "$jurassic_gtk" = yes ; then
16649 v="$ac_gtk_version_string"
16650 if test "$with_gtk_req" = yes -a "$ac_gtk_version" = "unknown" ; then
16651 warnL "Use of Gtk was requested, but its version number is unknown;"
16652 elif test "$with_gtk_req" = yes ; then
16653 warnL "Use of Gtk was requested, but it is version $v;"
16655 warnL "Gtk was found on this system, but it is version $v;"
16658 warn2 "Gtk $pref_gtk or newer is required."
16660 elif test "$with_gtk_req" = yes -a "$have_gtk" = no ; then
16661 warnL "Use of Gtk was requested, but it wasn't found."
16665 if test "$have_gtk" = yes -a "$have_gdk_pixbuf" = no ; then
16666 warn "GTK is being used, but the GDK-Pixbuf library and/or"
16667 warn2 "headers were not found. That can't be good. Please"
16668 warn2 "install the GDK-Pixbuf development kit and re-configure."
16671 if test "$have_motif" = yes -a "$have_lesstif" = yes ; then
16673 preferred_lesstif=0.92
16675 if test "$lesstif_version" = unknown; then
16676 warnL "Unable to determine the LessTif version number!"
16677 warn2 "Make sure you are using version $preferred_lesstif or newer."
16678 warn2 "See <http://www.lesstif.org/>."
16680 elif test \! $lesstif_version -gt 82; then
16681 warnL "LessTif version $lesstif_version_string is being used."
16682 warn2 "LessTif versions 0.82 and earlier are too buggy to"
16683 warn2 "use with XScreenSaver; it is strongly recommended"
16684 warn2 "that you upgrade to at least version $preferred_lesstif!"
16685 warn2 "See <http://www.lesstif.org/>."
16690 if test "$have_motif" = yes -a "$have_gtk" = no ; then
16691 warn 'Motif is being used, and GTK is not.'
16697 if test "$with_xpm_req" = yes -a "$have_xpm" = no; then
16698 warnL 'Use of XPM was requested, but it was not found.'
16701 if test "$with_gdk_pixbuf_req" = yes -a "$have_gdk_pixbuf" = no; then
16702 warnL 'Use of GDK-Pixbuf was requested, but it was not found.'
16705 if test "$have_gdk_pixbuf" = no -o "$gdk_pixbuf_halfassed" = yes || \
16706 test "$have_gdk_pixbuf" = no -a "$have_xpm" = no ; then
16708 if test "$with_gdk_pixbuf_req" = yes ; then
16710 elif test "$with_gdk_pixbuf_req" = no ; then
16711 warnL 'The GDK-Pixbuf library is not being used.'
16713 warnL 'The GDK-Pixbuf library was not found.'
16716 if test "$with_xpm_req" = yes -o "$have_xpm" = yes ; then
16718 elif test "$with_xpm_req" = no ; then
16719 warnL 'The XPM library is not being used.'
16721 warnL 'The XPM library was not found.'
16724 if test "$have_gdk_pixbuf" = no -a "$have_xpm" = yes ; then
16725 warn2 'The XPM library is being used instead.'
16728 if test "$gdk_pixbuf_halfassed" = yes ; then
16730 warn2 'More specifically, we found the headers, but not the'
16731 warn2 'libraries; so either GDK-Pixbuf is half-installed on this'
16732 warn2 "system, or something else went wrong. The \`config.log'"
16733 warn2 'file might contain some clues.'
16737 warn2 'Some of the demos will not use images as much as they could.'
16738 warn2 'You should consider installing GDK-Pixbuf and re-running'
16739 warn2 'configure. (GDK-Pixbuf is recommended over XPM, as it'
16740 warn2 'provides support for more image formats.)'
16744 if test "$have_jpeg" = no ; then
16745 if test "$with_jpeg_req" = yes ; then
16746 warnL 'Use of libjpeg was requested, but it was not found.'
16747 elif test "$with_jpeg_req" = no ; then
16748 noteL 'The JPEG library is not being used.'
16750 noteL 'The JPEG library was not found.'
16753 if test "$jpeg_halfassed" = yes ; then
16755 warn2 'More specifically, we found the headers, but not the'
16756 warn2 'library; so either JPEG is half-installed on this'
16757 warn2 "system, or something else went wrong. The \`config.log'"
16758 warn2 'file might contain some clues.'
16762 if test "$have_gdk_pixbuf" = no ; then
16763 warn2 "This means that it won't be possible for the image-manipulating"
16764 warn2 "display modes to load files from disk; and it also means that"
16765 warn2 "the \`webcollage' program will be much slower."
16767 warn2 "This means the \`webcollage' program will be much slower."
16772 if test "$have_gl" = yes -a "$ac_have_mesa_gl" = yes ; then
16773 preferred_mesagl=3.4
16774 mgv="$ac_mesagl_version_string"
16775 pgl="$preferred_mesagl"
16777 if test "$ac_mesagl_version" = unknown; then
16779 # warnL "Unable to determine the MesaGL version number!"
16780 # warn2 "Make sure you are using version $preferred_mesagl or newer."
16782 elif test \! "$ac_mesagl_version" -gt 2006; then
16783 warnL "MesaGL version number is $mgv --"
16784 warn2 "MesaGL 2.6 and earlier have a security bug. It is strongly"
16785 warn2 "recommended that you upgrade to at least version $preferred_mesagl."
16787 elif test \! "$ac_mesagl_version" -gt 3003; then
16788 warnL "MesaGL version number is $mgv --"
16789 warn2 "MesaGL 3.3 and earlier have some bugs; it is recommended"
16790 warn2 "that you upgrade to $pgl or newer."
16794 if test "$have_gl" = no ; then
16795 if test "$with_gl_req" = yes ; then
16796 warnL 'Use of GL was requested, but it was not found.'
16797 elif test "$with_gl_req" = no ; then
16798 noteL 'The OpenGL 3D library is not being used.'
16800 noteL 'The OpenGL 3D library was not found.'
16803 if test "$gl_halfassed" = yes ; then
16805 warn2 'More specifically, we found the headers, but not the'
16806 warn2 'libraries; so either GL is half-installed on this'
16807 warn2 "system, or something else went wrong. The \`config.log'"
16808 warn2 'file might contain some clues.'
16812 warn2 'Those demos which use 3D will not be built or installed.'
16813 warn2 'You might want to consider installing OpenGL and'
16814 warn2 "re-running configure. If your vendor doesn't ship"
16815 warn2 'their own implementation of OpenGL, you can get a free'
16816 warn2 'version at <http://www.mesa3d.org/>. For general OpenGL'
16817 warn2 'info, see <http://www.opengl.org/>.'
16822 if test "$have_gl" = yes -a "$have_gle" = no ; then
16824 # nobody cares about this; don't print the warning unless it was
16825 # requested and not found, or halfway-found.
16826 if test "$with_gle_req" = yes -o "$gle_halfassed" = yes ; then
16828 if test "$with_gle_req" = yes ; then
16829 noteL 'Use of the GLE (GL Extrusion) library was requested, but'
16830 warn2 'it was not found (though the OpenGL library was found, and'
16831 warn2 'is being used.)'
16832 elif test "$with_gle_req" = no ; then
16833 noteL 'The OpenGL Library is being used, but the GLE (GL Extrusion)'
16834 warn2 'library is not.'
16836 noteL 'The OpenGL Library was found, but the GLE (GL Extrusion)'
16840 if test "$gle_halfassed" = yes ; then
16842 warn2 'More specifically, we found the headers, but not the'
16843 warn2 'libraries; so either GLE is half-installed on this'
16844 warn2 "system, or something else went wrong. The \`config.log'"
16845 warn2 'file might contain some clues.'
16849 warn2 'Some of the OpenGL (3D) demos (those that depend on GLE)'
16850 warn2 'will not be built or installed. You might want to consider'
16851 warn2 'installing GLE and re-running configure. You can find the'
16852 warn2 'GLE library at <http://www.linas.org/gle/>. For general'
16853 warn2 'OpenGL info, see <http://www.opengl.org/>.'
16859 if test "$with_readdisplay_req" = yes -a "$have_readdisplay" = no ; then
16860 warn 'Use of XReadDisplay was requested, but it was not found.'
16863 if test "$with_kerberos_req" = yes -a "$have_kerberos" = no ; then
16864 warn 'Use of Kerberos was requested, but it was not found.'
16867 if test "$with_pam_req" = yes -a "$have_pam" = no ; then
16868 warn 'Use of PAM was requested, but it was not found.'
16871 if test "$with_shadow_req" = yes -a "$have_shadow" = no ; then
16872 warn 'Use of shadow passwords was requested, but they were not found.'
16875 if test "$ac_macosx" = yes ; then
16876 if test "$enable_locking" = yes ; then
16877 warn "You have specified --enable-locking on MacOS X."
16878 warn2 "THIS DOES NOT WORK! Don't do this!"
16883 # You are in a twisty maze of namespaces and syntaxes, all alike.
16884 # Fuck the skull of Unix.
16886 bindir=`eval eval eval eval eval eval eval echo $bindir`
16887 HACKDIR=`eval eval eval eval eval eval eval echo $HACKDIR`
16888 HACK_CONF_DIR=`eval eval eval eval eval eval eval echo $HACK_CONF_DIR`
16890 # canonicalize slashes.
16891 bindir=`echo "${bindir}" | sed 's@/$@@;s@//*@/@g'`
16892 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
16893 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
16896 # Sanity check the hackdir
16897 for bad_choice in xscreensaver xscreensaver-demo xscreensaver-command ; do
16898 if test "${HACKDIR}" = "${bindir}/${bad_choice}" ; then
16900 as_fn_error $? "\"--with-hackdir=${bindir}/${bad_choice}\" won't work.
16901 There will be an executable installed with that name, so
16902 that can't be the name of a directory as well. Please
16903 re-configure with a different directory name." "$LINENO" 5
16910 # Now let's warn if there's a previous RPM version already installed.
16911 # But don't bother with this test if we are currently *building* an RPM.
16913 if test -z "$RPM_PACKAGE_VERSION" ; then
16915 rpmnames="xscreensaver xscreensaver-base xscreensaver-extras"
16919 rpmv=`(rpm -qv $rpmnames) 2>/dev/null | \
16920 sed -n 's/^[-a-z]*-\([0-9][0-9]*[.][0-9][0-9a-z]*\)-.*$/\1/p' | \
16924 if test \! -z "$rpmv" ; then
16925 rpmbdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/xscreensaver-demo$@\1@p'`
16926 rpmhdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/popsquares$@\1@p'`
16929 warnL "There is already an installed RPM of xscreensaver $rpmv"
16930 warn2 'on this system. You might want to remove it ("rpm -ve")'
16931 warn2 'before running "make install" in this directory.'
16933 warn2 "Alternately, you could build this version of xscreensaver"
16934 warn2 'as an RPM, and then install that. An "xscreensaver.spec"'
16935 warn2 'file is included. Try "rpmbuild -v -ba xscreensaver.spec".'
16936 warn2 "See the RPM documentation for more info."
16939 if test "$rpmbdir" = "$rpmhdir" ; then
16940 warn2 "The RPM version was installed in $rpmbdir/."
16943 warn2 "The RPM version was installed in $rpmbdir/,"
16944 warn2 "with demos in $rpmhdir/."
16949 # Also warn if there's a Debian package installed.
16951 debnames="xscreensaver xscreensaver-data xscreensaver-data-extra"
16953 for dpkg in $debnames ; do
16954 if test -z "$debv"; then
16955 debv=`dpkg -s $dpkg 2>/dev/null | sed -n 's/^Version: \(.*\)$/\1/p'`
16959 if test \! -z "$debv" ; then
16960 debbdir=`dpkg -L $debnames 2>/dev/null | \
16961 sed -n 's@^\(.*/bin/\)xscreensaver$@\1@p'`
16962 debhdir=`dpkg -L $debnames 2>/dev/null | \
16963 sed -n 's@^\(.*/\)popsquares$@\1@p'`
16964 if test -z "$debbdir" ; then debbdir='???'; fi
16965 if test -z "$debhdir" ; then debhdir='???'; fi
16968 warnL "There is already an installed dpkg of xscreensaver"
16969 warn2 "version \"$debv\" on this system."
16971 warn2 "The dpkg was installed in $debbdir,"
16972 warn2 "with demos in $debhdir."
16976 if test "${bindir}" = "${HACKDIR}" ; then
16980 if test "$do_dir_warning" = yes; then
16984 echo ' When you run "make install", the "xscreensaver",'
16985 echo ' "xscreensaver-demo", and "xscreensaver-command" executables'
16986 echo " will be installed in ${bindir}/."
16988 echo " The various graphics demos (190+ different executables) will"
16989 echo " be installed in ${HACKDIR}/."
16991 echo " If you would prefer the demos to be installed elsewhere,"
16992 echo " you should re-run configure with the --with-hackdir=DIR"
16993 echo " option. For more information, run \`./configure --help'."
16997 if test "$warning" != no; then
16998 echo '' ; echo "$warnsep" ; echo ''
17001 if test "$do_dir_warning" = no; then
17002 if test "$warning" = no; then
17005 echo "User programs will be installed in ${bindir}/"
17006 echo "Screen savers will be installed in ${HACKDIR}/"
17007 echo "Configuration dialogs will be installed in ${HACK_CONF_DIR}/"
17008 echo "System-wide default settings will be installed in ${APPDEFAULTS}/"