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>
622 ac_subst_vars='LTLIBOBJS
666 COMMENT_DEMO_GLADE2_GTK_2_22_TAIL
667 COMMENT_DEMO_GLADE2_GTK_2_22_HEAD
670 DEFAULT_IMAGE_DIRECTORY
674 COMMENT_PAM_CHECK_ACCOUNT
695 PREFERRED_DEMO_PROGRAM
697 gnome_url_show_program
720 INTLTOOL_SERVICE_RULE
722 INTLTOOL_SCHEMAS_RULE
724 INTLTOOL_XML_NOMERGE_RULE
729 INTLTOOL_SOUNDLIST_RULE
736 INTLTOOL_DIRECTORY_RULE
737 INTLTOOL_DESKTOP_RULE
738 intltool__v_merge_options_0
739 intltool__v_merge_options_
740 INTLTOOL_V_MERGE_OPTIONS
808 program_transform_name
821 enable_option_checking
840 with_pam_service_name
841 enable_pam_check_account_type
862 with_record_animation
864 ac_precious_vars='build_alias
876 # Initialize some variables set by options.
878 ac_init_version=false
879 ac_unrecognized_opts=
881 # The variables have the same names as the options, with
882 # dashes changed to underlines.
890 program_transform_name=s,x,x,
898 # Installation directory options.
899 # These are left unexpanded so users can "make install exec_prefix=/foo"
900 # and all the variables that are supposed to be based on exec_prefix
901 # by default will actually change.
902 # Use braces instead of parens because sh, perl, etc. also accept them.
903 # (The list follows the same order as the GNU Coding Standards.)
904 bindir='${exec_prefix}/bin'
905 sbindir='${exec_prefix}/sbin'
906 libexecdir='${exec_prefix}/libexec'
907 datarootdir='${prefix}/share'
908 datadir='${datarootdir}'
909 sysconfdir='${prefix}/etc'
910 sharedstatedir='${prefix}/com'
911 localstatedir='${prefix}/var'
912 includedir='${prefix}/include'
913 oldincludedir='/usr/include'
914 docdir='${datarootdir}/doc/${PACKAGE}'
915 infodir='${datarootdir}/info'
920 libdir='${exec_prefix}/lib'
921 localedir='${datarootdir}/locale'
922 mandir='${datarootdir}/man'
928 # If the previous option needs an argument, assign it.
929 if test -n "$ac_prev"; then
930 eval $ac_prev=\$ac_option
936 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
941 # Accept the important Cygnus configure options, so we can diagnose typos.
943 case $ac_dashdash$ac_option in
947 -bindir | --bindir | --bindi | --bind | --bin | --bi)
949 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
952 -build | --build | --buil | --bui | --bu)
953 ac_prev=build_alias ;;
954 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
955 build_alias=$ac_optarg ;;
957 -cache-file | --cache-file | --cache-fil | --cache-fi \
958 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
959 ac_prev=cache_file ;;
960 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
961 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
962 cache_file=$ac_optarg ;;
965 cache_file=config.cache ;;
967 -datadir | --datadir | --datadi | --datad)
969 -datadir=* | --datadir=* | --datadi=* | --datad=*)
970 datadir=$ac_optarg ;;
972 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
973 | --dataroo | --dataro | --datar)
974 ac_prev=datarootdir ;;
975 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
976 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
977 datarootdir=$ac_optarg ;;
979 -disable-* | --disable-*)
980 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983 as_fn_error $? "invalid feature name: $ac_useropt"
984 ac_useropt_orig=$ac_useropt
985 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
986 case $ac_user_opts in
990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
991 ac_unrecognized_sep=', ';;
993 eval enable_$ac_useropt=no ;;
995 -docdir | --docdir | --docdi | --doc | --do)
997 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1000 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1002 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1003 dvidir=$ac_optarg ;;
1005 -enable-* | --enable-*)
1006 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009 as_fn_error $? "invalid feature name: $ac_useropt"
1010 ac_useropt_orig=$ac_useropt
1011 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012 case $ac_user_opts in
1014 "enable_$ac_useropt"
1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1017 ac_unrecognized_sep=', ';;
1019 eval enable_$ac_useropt=\$ac_optarg ;;
1021 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1022 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1023 | --exec | --exe | --ex)
1024 ac_prev=exec_prefix ;;
1025 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1026 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1027 | --exec=* | --exe=* | --ex=*)
1028 exec_prefix=$ac_optarg ;;
1030 -gas | --gas | --ga | --g)
1031 # Obsolete; use --with-gas.
1034 -help | --help | --hel | --he | -h)
1035 ac_init_help=long ;;
1036 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1037 ac_init_help=recursive ;;
1038 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1039 ac_init_help=short ;;
1041 -host | --host | --hos | --ho)
1042 ac_prev=host_alias ;;
1043 -host=* | --host=* | --hos=* | --ho=*)
1044 host_alias=$ac_optarg ;;
1046 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050 htmldir=$ac_optarg ;;
1052 -includedir | --includedir | --includedi | --included | --include \
1053 | --includ | --inclu | --incl | --inc)
1054 ac_prev=includedir ;;
1055 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1056 | --includ=* | --inclu=* | --incl=* | --inc=*)
1057 includedir=$ac_optarg ;;
1059 -infodir | --infodir | --infodi | --infod | --info | --inf)
1061 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1062 infodir=$ac_optarg ;;
1064 -libdir | --libdir | --libdi | --libd)
1066 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1067 libdir=$ac_optarg ;;
1069 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1070 | --libexe | --libex | --libe)
1071 ac_prev=libexecdir ;;
1072 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1073 | --libexe=* | --libex=* | --libe=*)
1074 libexecdir=$ac_optarg ;;
1076 -localedir | --localedir | --localedi | --localed | --locale)
1077 ac_prev=localedir ;;
1078 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1079 localedir=$ac_optarg ;;
1081 -localstatedir | --localstatedir | --localstatedi | --localstated \
1082 | --localstate | --localstat | --localsta | --localst | --locals)
1083 ac_prev=localstatedir ;;
1084 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1085 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1086 localstatedir=$ac_optarg ;;
1088 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1091 mandir=$ac_optarg ;;
1093 -nfp | --nfp | --nf)
1094 # Obsolete; use --without-fp.
1097 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1098 | --no-cr | --no-c | -n)
1101 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1102 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1106 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1107 | --oldin | --oldi | --old | --ol | --o)
1108 ac_prev=oldincludedir ;;
1109 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1110 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1111 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1112 oldincludedir=$ac_optarg ;;
1114 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1117 prefix=$ac_optarg ;;
1119 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1120 | --program-pre | --program-pr | --program-p)
1121 ac_prev=program_prefix ;;
1122 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1123 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1124 program_prefix=$ac_optarg ;;
1126 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1127 | --program-suf | --program-su | --program-s)
1128 ac_prev=program_suffix ;;
1129 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1130 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1131 program_suffix=$ac_optarg ;;
1133 -program-transform-name | --program-transform-name \
1134 | --program-transform-nam | --program-transform-na \
1135 | --program-transform-n | --program-transform- \
1136 | --program-transform | --program-transfor \
1137 | --program-transfo | --program-transf \
1138 | --program-trans | --program-tran \
1139 | --progr-tra | --program-tr | --program-t)
1140 ac_prev=program_transform_name ;;
1141 -program-transform-name=* | --program-transform-name=* \
1142 | --program-transform-nam=* | --program-transform-na=* \
1143 | --program-transform-n=* | --program-transform-=* \
1144 | --program-transform=* | --program-transfor=* \
1145 | --program-transfo=* | --program-transf=* \
1146 | --program-trans=* | --program-tran=* \
1147 | --progr-tra=* | --program-tr=* | --program-t=*)
1148 program_transform_name=$ac_optarg ;;
1150 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1153 pdfdir=$ac_optarg ;;
1155 -psdir | --psdir | --psdi | --psd | --ps)
1157 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161 | -silent | --silent | --silen | --sile | --sil)
1164 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168 sbindir=$ac_optarg ;;
1170 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172 | --sharedst | --shareds | --shared | --share | --shar \
1174 ac_prev=sharedstatedir ;;
1175 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179 sharedstatedir=$ac_optarg ;;
1181 -site | --site | --sit)
1183 -site=* | --site=* | --sit=*)
1186 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189 srcdir=$ac_optarg ;;
1191 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192 | --syscon | --sysco | --sysc | --sys | --sy)
1193 ac_prev=sysconfdir ;;
1194 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196 sysconfdir=$ac_optarg ;;
1198 -target | --target | --targe | --targ | --tar | --ta | --t)
1199 ac_prev=target_alias ;;
1200 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201 target_alias=$ac_optarg ;;
1203 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206 -version | --version | --versio | --versi | --vers | -V)
1207 ac_init_version=: ;;
1210 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: $ac_useropt"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1223 eval with_$ac_useropt=\$ac_optarg ;;
1225 -without-* | --without-*)
1226 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1227 # Reject names that are not valid shell variable names.
1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229 as_fn_error $? "invalid package name: $ac_useropt"
1230 ac_useropt_orig=$ac_useropt
1231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 case $ac_user_opts in
1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
1239 eval with_$ac_useropt=no ;;
1242 # Obsolete; use --with-x.
1245 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246 | --x-incl | --x-inc | --x-in | --x-i)
1247 ac_prev=x_includes ;;
1248 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250 x_includes=$ac_optarg ;;
1252 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254 ac_prev=x_libraries ;;
1255 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257 x_libraries=$ac_optarg ;;
1259 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1260 Try \`$0 --help' for more information"
1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265 # Reject names that are not valid shell variable names.
1266 case $ac_envvar in #(
1267 '' | [0-9]* | *[!_$as_cr_alnum]* )
1268 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1270 eval $ac_envvar=\$ac_optarg
1271 export $ac_envvar ;;
1274 # FIXME: should be removed in autoconf 3.0.
1275 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1276 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1278 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1284 if test -n "$ac_prev"; then
1285 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286 as_fn_error $? "missing argument to $ac_option"
1289 if test -n "$ac_unrecognized_opts"; then
1290 case $enable_option_checking in
1292 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1293 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297 # Check all directory arguments for consistency.
1298 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299 datadir sysconfdir sharedstatedir localstatedir includedir \
1300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301 libdir localedir mandir
1303 eval ac_val=\$$ac_var
1304 # Remove trailing slashes.
1307 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1308 eval $ac_var=\$ac_val;;
1310 # Be sure to have absolute directory names.
1312 [\\/$]* | ?:[\\/]* ) continue;;
1313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1318 # There might be people who depend on the old broken behavior: `$host'
1319 # used to hold the argument of --host etc.
1320 # FIXME: To remove some day.
1323 target=$target_alias
1325 # FIXME: To remove some day.
1326 if test "x$host_alias" != x; then
1327 if test "x$build_alias" = x; then
1328 cross_compiling=maybe
1329 elif test "x$build_alias" != "x$host_alias"; then
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1337 test "$silent" = yes && exec 6>/dev/null
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343 as_fn_error $? "working directory cannot be determined"
1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345 as_fn_error $? "pwd does not report name of working directory"
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350 ac_srcdir_defaulted=yes
1351 # Try the directory containing this script, then the parent directory.
1352 ac_confdir=`$as_dirname -- "$as_myself" ||
1353 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354 X"$as_myself" : 'X\(//\)[^/]' \| \
1355 X"$as_myself" : 'X\(//\)$' \| \
1356 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1357 $as_echo X"$as_myself" |
1358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1380 ac_srcdir_defaulted=no
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 for ac_var in $ac_precious_vars; do
1401 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_env_${ac_var}_value=\$${ac_var}
1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408 # Report the --help message.
1410 if test "$ac_init_help" = "long"; then
1411 # Omit some internal or obsolete options to make the list less imposing.
1412 # This message is too long to be a string in the A/UX 3.1 sh.
1414 \`configure' configures this package to adapt to many kinds of systems.
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE. See below for descriptions of some of the useful variables.
1421 Defaults for the options are specified in brackets.
1426 -h, --help display this help and exit
1427 --help=short display options specific to this package
1428 --help=recursive display the short help of all the included packages
1429 -V, --version display version information and exit
1430 -q, --quiet, --silent do not print \`checking ...' messages
1431 --cache-file=FILE cache test results in FILE [disabled]
1432 -C, --config-cache alias for \`--cache-file=config.cache'
1433 -n, --no-create do not create output files
1434 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1436 Installation directories:
1437 --prefix=PREFIX install architecture-independent files in PREFIX
1438 [$ac_default_prefix]
1439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1442 By default, \`make install' will install all the files in
1443 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1444 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445 for instance \`--prefix=\$HOME'.
1447 For better control, use the options below.
1449 Fine tuning of the installation directories:
1450 --bindir=DIR user executables [EPREFIX/bin]
1451 --libexecdir=DIR program executables [EPREFIX/libexec]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --x-includes=DIR X include files are in DIR
1455 --x-libraries=DIR X library files are in DIR
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1461 --htmldir=DIR html documentation [DOCDIR]
1462 --dvidir=DIR dvi documentation [DOCDIR]
1463 --pdfdir=DIR pdf documentation [DOCDIR]
1464 --psdir=DIR ps documentation [DOCDIR]
1470 --x-includes=DIR X include files are in DIR
1471 --x-libraries=DIR X library files are in DIR
1474 --build=BUILD configure for building on BUILD [guessed]
1475 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1479 if test -n "$ac_init_help"; then
1484 --disable-option-checking ignore unrecognized --enable/--with options
1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1487 --disable-largefile omit support for large files
1488 --disable-nls do not use Native Language Support
1490 Screen locking options:
1491 --enable-locking Compile in support for locking the display.
1492 --disable-locking Do not allow locking at all.
1494 --enable-root-passwd Allow root passwd to unlock screen.
1495 --disable-root-passwd Do not allow that.
1496 --enable-pam-check-account-type
1497 Whether PAM should check the result of account
1498 modules when authenticating. Only do this if you
1499 have account configured properly on your system.
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1505 --with-pthread Enables POSIX threads, for SMP support.
1507 Installation options:
1508 --with-hackdir=DIR Where to install the hundreds of demo executables.
1509 Default: `PREFIX/libexec/xscreensaver/'
1510 --with-configdir=DIR Where to install the data files that describe each
1511 of the display modes to the GUI.
1512 Default: `PREFIX/share/xscreensaver/config/'
1513 --with-x-app-defaults=DIR
1514 Where to install xscreensaver configuration file.
1516 --with-dpms-ext Include support for the DPMS extension.
1517 --with-xinerama-ext Include support for the XINERAMA extension.
1518 --with-xinput-ext Include support for the XInput extension.
1519 --with-xf86vmode-ext Include support for XFree86 virtual screens.
1520 --with-xf86gamma-ext Include support for XFree86 gamma fading.
1521 --with-randr-ext Include support for the X Resize+Rotate extension.
1522 --with-proc-interrupts Include support for consulting the /proc/interrupts
1523 file to notice keyboard activity.
1524 --with-pam Include support for PAM (Pluggable Auth Modules.)
1525 --with-pam-service-name NAME arg is the name of the PAM service that
1526 xscreensaver will authenticate as.
1527 --with-kerberos Include support for Kerberos authentication.
1528 --with-shadow Include support for shadow password authentication.
1529 --with-passwd-helper Include support for an external password
1530 verification helper program.
1531 --with-login-manager Put a "New Login" button on the unlock dialog that
1532 runs a login manager like gdmflexiserver or kdmctl.
1534 User interface options:
1536 --with-gtk Use the Gtk toolkit for the user interface.
1537 --with-motif Use the Motif toolkit for the user interface
1538 (no longer supported.)
1542 --with-gl Build those demos which depend on OpenGL.
1543 --with-gle Build those demos which depend on GLE
1544 (the OpenGL "extrusion" library.)
1545 --with-gles Target OpenGL ES 1.x API instead of OpenGL 1.3.
1546 --with-pixbuf Include support for the GDK-Pixbuf library in some
1547 demos, which will make it possible for them to read
1548 GIF, JPEG, and PNG files as well.
1549 --with-xpm Include support for XPM files in some demos.
1550 (Not needed if Pixbuf is used.)
1551 --with-jpeg Include support for the JPEG library.
1552 --with-xft Include support for the X Freetype library.
1553 --with-xshm-ext Include support for the Shared Memory extension.
1554 --with-xdbe-ext Include support for the DOUBLE-BUFFER extension.
1555 --with-readdisplay Include support for the XReadDisplay extension.
1556 --with-image-directory Arg is the default directory from which some demos
1557 will choose random images to display.
1558 --with-text-file=FILE By default, some demos may display this file.
1559 --with-browser=BROWSER Specify the web browser used to show the help URL.
1560 --with-setuid-hacks Allow some demos to be installed `setuid root'
1561 (which is needed in order to ping other hosts.)
1563 --with-record-animation Include code for generating MP4 videos.
1566 Some influential environment variables:
1567 CC C compiler command
1568 CFLAGS C compiler flags
1569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1570 nonstandard directory <lib dir>
1571 LIBS libraries to pass to the linker, e.g. -l<library>
1572 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1573 you have headers in a nonstandard directory <include dir>
1575 XMKMF Path to xmkmf, Makefile generator for X Window System
1577 Use these variables to override the choices made by `configure' or to help
1578 it to find libraries and programs with nonstandard names/locations.
1580 Report bugs to the package provider.
1585 if test "$ac_init_help" = "recursive"; then
1586 # If there are subdirs, report their specific --help.
1587 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1588 test -d "$ac_dir" ||
1589 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1594 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1597 # A ".." for each directory in $ac_dir_suffix.
1598 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1599 case $ac_top_builddir_sub in
1600 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1604 ac_abs_top_builddir=$ac_pwd
1605 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1606 # for backward compatibility:
1607 ac_top_builddir=$ac_top_build_prefix
1610 .) # We are building in place.
1612 ac_top_srcdir=$ac_top_builddir_sub
1613 ac_abs_top_srcdir=$ac_pwd ;;
1614 [\\/]* | ?:[\\/]* ) # Absolute name.
1615 ac_srcdir=$srcdir$ac_dir_suffix;
1616 ac_top_srcdir=$srcdir
1617 ac_abs_top_srcdir=$srcdir ;;
1619 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1620 ac_top_srcdir=$ac_top_build_prefix$srcdir
1621 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1623 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1625 cd "$ac_dir" || { ac_status=$?; continue; }
1626 # Check for guested configure.
1627 if test -f "$ac_srcdir/configure.gnu"; then
1629 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1630 elif test -f "$ac_srcdir/configure"; then
1632 $SHELL "$ac_srcdir/configure" --help=recursive
1634 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1636 cd "$ac_pwd" || { ac_status=$?; break; }
1640 test -n "$ac_init_help" && exit $ac_status
1641 if $ac_init_version; then
1644 generated by GNU Autoconf 2.69
1646 Copyright (C) 2012 Free Software Foundation, Inc.
1647 This configure script is free software; the Free Software Foundation
1648 gives unlimited permission to copy, distribute and modify it.
1653 ## ------------------------ ##
1654 ## Autoconf initialization. ##
1655 ## ------------------------ ##
1657 # ac_fn_c_try_compile LINENO
1658 # --------------------------
1659 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_c_try_compile ()
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -rf conftest.$ac_objext
1664 if { { ac_try="$ac_compile"
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_compile") 2>conftest.err
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest.$ac_objext; then :
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1693 } # ac_fn_c_try_compile
1695 # ac_fn_c_try_link LINENO
1696 # -----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded.
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 rm -rf conftest.$ac_objext conftest$ac_exeext
1702 if { { ac_try="$ac_link"
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>conftest.err
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && {
1718 test -z "$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 } && test -s conftest$ac_exeext && {
1721 test "$cross_compiling" = yes ||
1722 test -x conftest$ac_exeext
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1731 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733 # interfere with the next link command; also delete a directory that is
1734 # left behind by Apple's compiler. We do this before executing the actions.
1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 as_fn_set_status $ac_retval
1739 } # ac_fn_c_try_link
1741 # ac_fn_c_try_run LINENO
1742 # ----------------------
1743 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1744 # that executables *can* be run.
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 if { { ac_try="$ac_link"
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_link") 2>&5
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1759 { { case "(($ac_try" in
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_try") 2>&5
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; }; }; then :
1771 $as_echo "$as_me: program exited with status $ac_status" >&5
1772 $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1775 ac_retval=$ac_status
1777 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779 as_fn_set_status $ac_retval
1783 # ac_fn_c_try_cpp LINENO
1784 # ----------------------
1785 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 if { { ac_try="$ac_cpp conftest.$ac_ext"
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1798 if test -s conftest.err; then
1799 grep -v '^ *+' conftest.err >conftest.er1
1800 cat conftest.er1 >&5
1801 mv -f conftest.er1 conftest.err
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } > conftest.i && {
1805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1806 test ! -s conftest.err
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816 as_fn_set_status $ac_retval
1820 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1821 # -------------------------------------------------------
1822 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1823 # the include files in INCLUDES and setting the cache variable VAR
1825 ac_fn_c_check_header_mongrel ()
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 if eval \${$3+:} false; then :
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 $as_echo_n "checking for $2... " >&6; }
1831 if eval \${$3+:} false; then :
1832 $as_echo_n "(cached) " >&6
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 $as_echo "$ac_res" >&6; }
1838 # Is the header compilable?
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1840 $as_echo_n "checking $2 usability... " >&6; }
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1846 if ac_fn_c_try_compile "$LINENO"; then :
1847 ac_header_compiler=yes
1849 ac_header_compiler=no
1851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1853 $as_echo "$ac_header_compiler" >&6; }
1855 # Is the header present?
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1857 $as_echo_n "checking $2 presence... " >&6; }
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1862 if ac_fn_c_try_cpp "$LINENO"; then :
1863 ac_header_preproc=yes
1865 ac_header_preproc=no
1867 rm -rf conftest.err conftest.i conftest.$ac_ext
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1869 $as_echo "$ac_header_preproc" >&6; }
1871 # So? What about this header?
1872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1875 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1877 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1881 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1883 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1885 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1887 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1889 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893 $as_echo_n "checking for $2... " >&6; }
1894 if eval \${$3+:} false; then :
1895 $as_echo_n "(cached) " >&6
1897 eval "$3=\$ac_header_compiler"
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 } # ac_fn_c_check_header_mongrel
1907 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1908 # -------------------------------------------------------
1909 # Tests whether HEADER exists and can be compiled using the include files in
1910 # INCLUDES, setting the cache variable VAR accordingly.
1911 ac_fn_c_check_header_compile ()
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if eval \${$3+:} false; then :
1917 $as_echo_n "(cached) " >&6
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1924 if ac_fn_c_try_compile "$LINENO"; then :
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 } # ac_fn_c_check_header_compile
1938 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1939 # -------------------------------------------
1940 # Tests whether TYPE exists after having included INCLUDES, setting cache
1941 # variable VAR accordingly.
1942 ac_fn_c_check_type ()
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if eval \${$3+:} false; then :
1948 $as_echo_n "(cached) " >&6
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1976 if ac_fn_c_try_compile "$LINENO"; then :
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990 } # ac_fn_c_check_type
1992 # ac_fn_c_check_func LINENO FUNC VAR
1993 # ----------------------------------
1994 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1995 ac_fn_c_check_func ()
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999 $as_echo_n "checking for $2... " >&6; }
2000 if eval \${$3+:} false; then :
2001 $as_echo_n "(cached) " >&6
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2005 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2007 #define $2 innocuous_$2
2009 /* System header to define __stub macros and hopefully few prototypes,
2010 which can conflict with char $2 (); below.
2011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2012 <limits.h> exists even on freestanding compilers. */
2015 # include <limits.h>
2017 # include <assert.h>
2022 /* Override any GCC internal prototype to avoid an error.
2023 Use char because int might match the return type of a GCC
2024 builtin and then its argument prototype would still apply. */
2029 /* The GNU C library defines this for functions which it implements
2030 to always fail with ENOSYS. Some functions are actually named
2031 something starting with __ and the normal name is an alias. */
2032 #if defined __stub_$2 || defined __stub___$2
2044 if ac_fn_c_try_link "$LINENO"; then :
2049 rm -f core conftest.err conftest.$ac_objext \
2050 conftest$ac_exeext conftest.$ac_ext
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054 $as_echo "$ac_res" >&6; }
2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057 } # ac_fn_c_check_func
2059 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2060 # ----------------------------------------------------
2061 # Tries to find if the field MEMBER exists in type AGGR, after including
2062 # INCLUDES, setting cache variable VAR accordingly.
2063 ac_fn_c_check_member ()
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2067 $as_echo_n "checking for $2.$3... " >&6; }
2068 if eval \${$4+:} false; then :
2069 $as_echo_n "(cached) " >&6
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2084 if ac_fn_c_try_compile "$LINENO"; then :
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2094 if (sizeof ac_aggr.$3)
2100 if ac_fn_c_try_compile "$LINENO"; then :
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 $as_echo "$ac_res" >&6; }
2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114 } # ac_fn_c_check_member
2115 cat >config.log <<_ACEOF
2116 This file contains any messages produced by compilers while
2117 running configure, to aid debugging if configure makes a mistake.
2119 It was created by $as_me, which was
2120 generated by GNU Autoconf 2.69. Invocation command line was
2132 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2133 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2134 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2135 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2136 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2138 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2139 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2141 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2142 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2143 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2144 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2145 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2146 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2147 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 test -z "$as_dir" && as_dir=.
2156 $as_echo "PATH: $as_dir"
2172 # Keep a trace of the command line.
2173 # Strip out --no-create and --no-recursion so they do not pile up.
2174 # Strip out --silent because we don't want to record it for future runs.
2175 # Also quote any args containing shell meta-characters.
2176 # Make two passes to allow for proper duplicate-argument suppression.
2180 ac_must_keep_next=false
2186 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2188 | -silent | --silent | --silen | --sile | --sil)
2191 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2194 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2196 as_fn_append ac_configure_args1 " '$ac_arg'"
2197 if test $ac_must_keep_next = true; then
2198 ac_must_keep_next=false # Got value, back to normal.
2201 *=* | --config-cache | -C | -disable-* | --disable-* \
2202 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2203 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2204 | -with-* | --with-* | -without-* | --without-* | --x)
2205 case "$ac_configure_args0 " in
2206 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2209 -* ) ac_must_keep_next=true ;;
2212 as_fn_append ac_configure_args " '$ac_arg'"
2217 { ac_configure_args0=; unset ac_configure_args0;}
2218 { ac_configure_args1=; unset ac_configure_args1;}
2220 # When interrupted or exit'd, cleanup temporary files, and complete
2221 # config.log. We remove comments because anyway the quotes in there
2222 # would cause problems or look ugly.
2223 # WARNING: Use '\'' to represent an apostrophe within the trap.
2224 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2225 trap 'exit_status=$?
2226 # Save into config.log some information that might help in debugging.
2230 $as_echo "## ---------------- ##
2231 ## Cache variables. ##
2232 ## ---------------- ##"
2234 # The following way of writing the cache mishandles newlines in values,
2236 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2237 eval ac_val=\$$ac_var
2241 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2242 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2245 _ | IFS | as_nl) ;; #(
2246 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2247 *) { eval $ac_var=; unset $ac_var;} ;;
2252 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2253 *${as_nl}ac_space=\ *)
2255 "s/'\''/'\''\\\\'\'''\''/g;
2256 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2259 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2266 $as_echo "## ----------------- ##
2267 ## Output variables. ##
2268 ## ----------------- ##"
2270 for ac_var in $ac_subst_vars
2272 eval ac_val=\$$ac_var
2274 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2276 $as_echo "$ac_var='\''$ac_val'\''"
2280 if test -n "$ac_subst_files"; then
2281 $as_echo "## ------------------- ##
2282 ## File substitutions. ##
2283 ## ------------------- ##"
2285 for ac_var in $ac_subst_files
2287 eval ac_val=\$$ac_var
2289 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2291 $as_echo "$ac_var='\''$ac_val'\''"
2296 if test -s confdefs.h; then
2297 $as_echo "## ----------- ##
2304 test "$ac_signal" != 0 &&
2305 $as_echo "$as_me: caught signal $ac_signal"
2306 $as_echo "$as_me: exit $exit_status"
2308 rm -f core *.core core.conftest.* &&
2309 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2312 for ac_signal in 1 2 13 15; do
2313 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2317 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2318 rm -f -r conftest* confdefs.h
2320 $as_echo "/* confdefs.h */" > confdefs.h
2322 # Predefined preprocessor variables.
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_NAME "$PACKAGE_NAME"
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_STRING "$PACKAGE_STRING"
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_URL "$PACKAGE_URL"
2349 # Let the site file select an alternate cache file if it wants to.
2350 # Prefer an explicitly selected file to automatically selected ones.
2353 if test -n "$CONFIG_SITE"; then
2354 # We do not want a PATH search for config.site.
2355 case $CONFIG_SITE in #((
2356 -*) ac_site_file1=./$CONFIG_SITE;;
2357 */*) ac_site_file1=$CONFIG_SITE;;
2358 *) ac_site_file1=./$CONFIG_SITE;;
2360 elif test "x$prefix" != xNONE; then
2361 ac_site_file1=$prefix/share/config.site
2362 ac_site_file2=$prefix/etc/config.site
2364 ac_site_file1=$ac_default_prefix/share/config.site
2365 ac_site_file2=$ac_default_prefix/etc/config.site
2367 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2369 test "x$ac_site_file" = xNONE && continue
2370 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2372 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2373 sed 's/^/| /' "$ac_site_file" >&5
2375 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2377 as_fn_error $? "failed to load site script $ac_site_file
2378 See \`config.log' for more details" "$LINENO" 5; }
2382 if test -r "$cache_file"; then
2383 # Some versions of bash will fail to source /dev/null (special files
2384 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2385 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2387 $as_echo "$as_me: loading cache $cache_file" >&6;}
2389 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2390 *) . "./$cache_file";;
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2395 $as_echo "$as_me: creating cache $cache_file" >&6;}
2399 # Check that the precious variables saved in the cache have kept the same
2401 ac_cache_corrupted=false
2402 for ac_var in $ac_precious_vars; do
2403 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2404 eval ac_new_set=\$ac_env_${ac_var}_set
2405 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2406 eval ac_new_val=\$ac_env_${ac_var}_value
2407 case $ac_old_set,$ac_new_set in
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2410 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2411 ac_cache_corrupted=: ;;
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2414 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2415 ac_cache_corrupted=: ;;
2418 if test "x$ac_old_val" != "x$ac_new_val"; then
2419 # differences in whitespace do not lead to failure.
2420 ac_old_val_w=`echo x $ac_old_val`
2421 ac_new_val_w=`echo x $ac_new_val`
2422 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2424 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2425 ac_cache_corrupted=:
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2428 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2429 eval $ac_var=\$ac_old_val
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2432 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2434 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2437 # Pass precious variables to config.status.
2438 if test "$ac_new_set" = set; then
2440 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2441 *) ac_arg=$ac_var=$ac_new_val ;;
2443 case " $ac_configure_args " in
2444 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2445 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2449 if $ac_cache_corrupted; then
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2453 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2454 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2456 ## -------------------- ##
2457 ## Main body of script. ##
2458 ## -------------------- ##
2461 ac_cpp='$CPP $CPPFLAGS'
2462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2467 ac_config_headers="$ac_config_headers config.h"
2470 echo "current directory: `pwd`"
2471 echo "command line was: $0 $@"
2473 ###############################################################################
2477 ###############################################################################
2485 # This only ever existed in X11R4 and X11R5.
2486 #AH_TEMPLATE([HAVE_XIDLE_EXTENSION],
2487 # [Define this if you have the XIDLE extension installed. If you
2488 # have the XIDLE extension, this is recommended. (You have this
2489 # extension if the file /usr/include/X11/extensions/xidle.h
2490 # exists.) Turning on this flag lets XScreenSaver work better with
2491 # servers which support this extension; but it will still work
2492 # with servers which do not suport it, so it's a good idea to
2493 # compile in support for it if you can.])
2495 # Using this extension will crash your X server and make fading not work.
2496 #AH_TEMPLATE([HAVE_MIT_SAVER_EXTENSION],
2497 # [Define this if you have the MIT-SCREEN-SAVER extension
2498 # installed. See the caveats about this extension, above.
2499 # (It's available if /usr/include/X11/extensions/scrnsaver.h
2502 # This only ever existed on SGI hardware.
2503 #AH_TEMPLATE([HAVE_SGI_SAVER_EXTENSION],
2504 # [Define this if you have the SGI SCREEN_SAVER extension. This is
2505 # standard on Irix systems, and not available elsewhere.])
2507 # This only ever existed on SGI hardware.
2508 #AH_TEMPLATE([HAVE_SGI_VC_EXTENSION],
2509 # [Define this if you have the SGI-VIDEO-CONTROL extension. This
2510 # is standard on Irix systems, and not available elsewhere.])
2629 # After checking to see that --srcdir is correct (which AC_INIT does)
2630 # check for some random other files that come later in the tar file,
2631 # to make sure everything is here.
2633 for d in utils jwxyz hacks hacks/glx driver ; do
2634 f=$srcdir/$d/Makefile.in
2635 if test \! -r $f ; then
2637 echo "ERROR: The package is incomplete: $f does not exist."
2638 echo " This probably means that your download was truncated."
2644 ###############################################################################
2646 # Query AX_PTHREAD, and figure out which compiler gets used.
2648 ###############################################################################
2653 ###############################################################################
2655 # Function to figure out how to run the compiler.
2657 ###############################################################################
2662 ###############################################################################
2664 # Check for availability of various gcc command-line options.
2666 ###############################################################################
2674 # Need to disable Objective C extensions in ANSI C on MacOS X to work
2675 # around an Apple-specific gcc bug.
2679 ###############################################################################
2681 # Function to figure out how to disable // comments in ANSI C code.
2683 # (With recent gcc, this is done with "-std=c89". With older gcc, this
2684 # is done by passing "-lang-c89" to cpp, by passing "-Wp,-lang-c89" to
2685 # gcc. Old gcc doesn't support -std, and new gcc doesn't support -lang.
2686 # so much for compatibility!)
2688 # UPDATE: apparently there is NO WAY to tell gcc 3.2.2 to require that
2689 # declarations preceed statements, without resorting to "-pedantic".
2690 # This means that there is no way to get gcc3 to issue warnings that
2691 # ensure that your code complies with the ANSI/ISO C89 standard, without
2692 # also drowning in totally useless warnings. Thank you master may I
2695 # So, I give up, let's just use -pedantic.
2697 ###############################################################################
2704 ###############################################################################
2706 # Function to figure out how to create directory trees.
2708 ###############################################################################
2713 ###############################################################################
2715 # Function to check whether gettimeofday() exists, and how to call it.
2716 # This may define HAVE_GETTIMEOFDAY and GETTIMEOFDAY_TWO_ARGS.
2718 ###############################################################################
2723 ###############################################################################
2725 # Function to find perl5 (defines PERL and PERL_VERSION.)
2727 ###############################################################################
2729 # M4 sucks!! perl sucks too!!
2731 perl_version_cmd='print $]'
2737 ###############################################################################
2739 # Function to demand "bc". Losers.
2741 ###############################################################################
2745 ###############################################################################
2747 # Functions to check how to do ICMP PING requests.
2749 ###############################################################################
2756 ###############################################################################
2758 # Functions to check for various X11 crap.
2760 ###############################################################################
2762 # Try and find the app-defaults directory.
2763 # It sucks that autoconf doesn't do this already...
2767 ###############################################################################
2769 # Handle the --with-x-app-defaults option HERE
2771 ###############################################################################
2774 # Check whether --with-x-app-defaults was given.
2775 if test "${with_x_app_defaults+set}" = set; then :
2776 withval=$with_x_app_defaults; ac_cv_x_app_defaults="$withval"
2778 eval ac_x_app_defaults="$withval"
2791 # Random special-cases for X on certain pathological OSes.
2792 # You know who you are.
2800 ###############################################################################
2802 # Some utility functions to make checking for X things easier.
2804 ###############################################################################
2806 # Like AC_CHECK_HEADER, but it uses the already-computed -I directories.
2810 # Like AC_EGREP_HEADER, but it uses the already-computed -I directories.
2814 # Like AC_TRY_COMPILE, but it uses the already-computed -I directories.
2819 # Like AC_CHECK_LIB, but it uses the already-computed -I and -L directories.
2820 # Use this sparingly; it probably doesn't work very well on X programs.
2824 # Like AC_TRY_RUN, but it uses the already-computed -I directories.
2825 # (But not the -L directories!)
2831 # Usage: HANDLE_X_PATH_ARG([variable_name],
2832 # [--command-line-option],
2833 # [descriptive string])
2835 # All of the --with options take three forms:
2837 # --with-foo (or --with-foo=yes)
2838 # --without-foo (or --with-foo=no)
2841 # This function, HANDLE_X_PATH_ARG, deals with the /DIR case. When it sees
2842 # a directory (string beginning with a slash) it checks to see whether
2843 # /DIR/include and /DIR/lib exist, and adds them to $X_CFLAGS and $X_LIBS
2850 ###############################################################################
2851 ###############################################################################
2853 # End of function definitions. Now start actually executing stuff.
2855 ###############################################################################
2856 ###############################################################################
2858 # WTF! autoconf emits this *way* too late. Do it earlier.
2859 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2860 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2863 # random compiler setup
2865 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2866 if test -f "$ac_dir/install-sh"; then
2868 ac_install_sh="$ac_aux_dir/install-sh -c"
2870 elif test -f "$ac_dir/install.sh"; then
2872 ac_install_sh="$ac_aux_dir/install.sh -c"
2874 elif test -f "$ac_dir/shtool"; then
2876 ac_install_sh="$ac_aux_dir/shtool install -c"
2880 if test -z "$ac_aux_dir"; then
2881 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2884 # These three variables are undocumented and unsupported,
2885 # and are intended to be withdrawn in a future Autoconf release.
2886 # They can cause serious problems if a builder's source tree is in a directory
2887 # whose full name contains unusual characters.
2888 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2889 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2890 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2893 # Make sure we can run config.sub.
2894 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2895 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2898 $as_echo_n "checking build system type... " >&6; }
2899 if ${ac_cv_build+:} false; then :
2900 $as_echo_n "(cached) " >&6
2902 ac_build_alias=$build_alias
2903 test "x$ac_build_alias" = x &&
2904 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2905 test "x$ac_build_alias" = x &&
2906 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2907 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2908 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2912 $as_echo "$ac_cv_build" >&6; }
2913 case $ac_cv_build in
2915 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2918 ac_save_IFS=$IFS; IFS='-'
2924 # Remember, the first character of IFS is used to create $*,
2925 # except with old shells:
2928 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2932 $as_echo_n "checking host system type... " >&6; }
2933 if ${ac_cv_host+:} false; then :
2934 $as_echo_n "(cached) " >&6
2936 if test "x$host_alias" = x; then
2937 ac_cv_host=$ac_cv_build
2939 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2940 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2945 $as_echo "$ac_cv_host" >&6; }
2948 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2951 ac_save_IFS=$IFS; IFS='-'
2957 # Remember, the first character of IFS is used to create $*,
2958 # except with old shells:
2961 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2967 ac_cpp='$CPP $CPPFLAGS'
2968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2971 if test -n "$ac_tool_prefix"; then
2972 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2973 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975 $as_echo_n "checking for $ac_word... " >&6; }
2976 if ${ac_cv_prog_CC+:} false; then :
2977 $as_echo_n "(cached) " >&6
2979 if test -n "$CC"; then
2980 ac_cv_prog_CC="$CC" # Let the user override the test.
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2989 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 if test -n "$CC"; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3002 $as_echo "$CC" >&6; }
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005 $as_echo "no" >&6; }
3010 if test -z "$ac_cv_prog_CC"; then
3012 # Extract the first word of "gcc", so it can be a program name with args.
3013 set dummy gcc; ac_word=$2
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015 $as_echo_n "checking for $ac_word... " >&6; }
3016 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3017 $as_echo_n "(cached) " >&6
3019 if test -n "$ac_ct_CC"; then
3020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 test -z "$as_dir" && as_dir=.
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3029 ac_cv_prog_ac_ct_CC="gcc"
3030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3040 if test -n "$ac_ct_CC"; then
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3042 $as_echo "$ac_ct_CC" >&6; }
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 $as_echo "no" >&6; }
3048 if test "x$ac_ct_CC" = x; then
3051 case $cross_compiling:$ac_tool_warned in
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3055 ac_tool_warned=yes ;;
3063 if test -z "$CC"; then
3064 if test -n "$ac_tool_prefix"; then
3065 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3066 set dummy ${ac_tool_prefix}cc; ac_word=$2
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if ${ac_cv_prog_CC+:} false; then :
3070 $as_echo_n "(cached) " >&6
3072 if test -n "$CC"; then
3073 ac_cv_prog_CC="$CC" # Let the user override the test.
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082 ac_cv_prog_CC="${ac_tool_prefix}cc"
3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 if test -n "$CC"; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3095 $as_echo "$CC" >&6; }
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 $as_echo "no" >&6; }
3104 if test -z "$CC"; then
3105 # Extract the first word of "cc", so it can be a program name with args.
3106 set dummy cc; ac_word=$2
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 $as_echo_n "checking for $ac_word... " >&6; }
3109 if ${ac_cv_prog_CC+:} false; then :
3110 $as_echo_n "(cached) " >&6
3112 if test -n "$CC"; then
3113 ac_cv_prog_CC="$CC" # Let the user override the test.
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 test -z "$as_dir" && as_dir=.
3121 for ac_exec_ext in '' $ac_executable_extensions; do
3122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3123 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3124 ac_prog_rejected=yes
3128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 if test $ac_prog_rejected = yes; then
3136 # We found a bogon in the path, so make sure we never use it.
3137 set dummy $ac_cv_prog_CC
3139 if test $# != 0; then
3140 # We chose a different compiler from the bogus one.
3141 # However, it has the same basename, so the bogon will be chosen
3142 # first if we set CC to just the basename; use the full file name.
3144 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3150 if test -n "$CC"; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3152 $as_echo "$CC" >&6; }
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3160 if test -z "$CC"; then
3161 if test -n "$ac_tool_prefix"; then
3162 for ac_prog in cl.exe
3164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_CC+:} false; then :
3169 $as_echo_n "(cached) " >&6
3171 if test -n "$CC"; then
3172 ac_cv_prog_CC="$CC" # Let the user override the test.
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 if test -n "$CC"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3194 $as_echo "$CC" >&6; }
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3201 test -n "$CC" && break
3204 if test -z "$CC"; then
3206 for ac_prog in cl.exe
3208 # Extract the first word of "$ac_prog", so it can be a program name with args.
3209 set dummy $ac_prog; ac_word=$2
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211 $as_echo_n "checking for $ac_word... " >&6; }
3212 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3213 $as_echo_n "(cached) " >&6
3215 if test -n "$ac_ct_CC"; then
3216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 test -z "$as_dir" && as_dir=.
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3225 ac_cv_prog_ac_ct_CC="$ac_prog"
3226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3236 if test -n "$ac_ct_CC"; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3238 $as_echo "$ac_ct_CC" >&6; }
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 $as_echo "no" >&6; }
3245 test -n "$ac_ct_CC" && break
3248 if test "x$ac_ct_CC" = x; then
3251 case $cross_compiling:$ac_tool_warned in
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3255 ac_tool_warned=yes ;;
3264 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3266 as_fn_error $? "no acceptable C compiler found in \$PATH
3267 See \`config.log' for more details" "$LINENO" 5; }
3269 # Provide some information about the compiler.
3270 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3273 for ac_option in --version -v -V -qversion; do
3274 { { ac_try="$ac_compiler $ac_option >&5"
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280 $as_echo "$ac_try_echo"; } >&5
3281 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3283 if test -s conftest.err; then
3285 ... rest of stderr output deleted ...
3286 10q' conftest.err >conftest.er1
3287 cat conftest.er1 >&5
3289 rm -rf conftest.er1 conftest.err
3290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3291 test $ac_status = 0; }
3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295 /* end confdefs.h. */
3305 ac_clean_files_save=$ac_clean_files
3306 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3307 # Try to create an executable without -o first, disregard a.out.
3308 # It will help us diagnose broken compilers, and finding out an intuition
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3311 $as_echo_n "checking whether the C compiler works... " >&6; }
3312 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3314 # The possible output files:
3315 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3318 for ac_file in $ac_files
3321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3322 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3327 if { { ac_try="$ac_link_default"
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333 $as_echo "$ac_try_echo"; } >&5
3334 (eval "$ac_link_default") 2>&5
3336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3337 test $ac_status = 0; }; then :
3338 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3339 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3340 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3341 # so that the user can short-circuit this test for compilers unknown to
3343 for ac_file in $ac_files ''
3345 test -f "$ac_file" || continue
3347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3350 # We found the default executable, but exeext='' is most
3354 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3356 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3358 # We set ac_cv_exeext here because the later test for it is not
3359 # safe: cross compilers may not add the suffix if given an `-o'
3360 # argument, so we may need to know it at that point already.
3361 # Even if this section looks crufty: it has the advantage of
3368 test "$ac_cv_exeext" = no && ac_cv_exeext=
3373 if test -z "$ac_file"; then :
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3376 $as_echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3381 as_fn_error 77 "C compiler cannot create executables
3382 See \`config.log' for more details" "$LINENO" 5; }
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3385 $as_echo "yes" >&6; }
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3388 $as_echo_n "checking for C compiler default output file name... " >&6; }
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3390 $as_echo "$ac_file" >&6; }
3391 ac_exeext=$ac_cv_exeext
3393 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3394 ac_clean_files=$ac_clean_files_save
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3396 $as_echo_n "checking for suffix of executables... " >&6; }
3397 if { { ac_try="$ac_link"
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3403 $as_echo "$ac_try_echo"; } >&5
3404 (eval "$ac_link") 2>&5
3406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3407 test $ac_status = 0; }; then :
3408 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3409 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3410 # work properly (i.e., refer to `conftest.exe'), while it won't with
3412 for ac_file in conftest.exe conftest conftest.*; do
3413 test -f "$ac_file" || continue
3415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3416 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3424 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3425 See \`config.log' for more details" "$LINENO" 5; }
3427 rm -rf conftest conftest$ac_cv_exeext
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3429 $as_echo "$ac_cv_exeext" >&6; }
3431 rm -rf conftest.$ac_ext
3432 EXEEXT=$ac_cv_exeext
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h. */
3440 FILE *f = fopen ("conftest.out", "w");
3441 return ferror (f) || fclose (f) != 0;
3447 ac_clean_files="$ac_clean_files conftest.out"
3448 # Check that the compiler produces executables we can run. If not, either
3449 # the compiler is broken, or we cross compile.
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3451 $as_echo_n "checking whether we are cross compiling... " >&6; }
3452 if test "$cross_compiling" != yes; then
3453 { { ac_try="$ac_link"
3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456 *) ac_try_echo=$ac_try;;
3458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3459 $as_echo "$ac_try_echo"; } >&5
3460 (eval "$ac_link") 2>&5
3462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3463 test $ac_status = 0; }
3464 if { ac_try='./conftest$ac_cv_exeext'
3465 { { case "(($ac_try" in
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3470 $as_echo "$ac_try_echo"; } >&5
3471 (eval "$ac_try") 2>&5
3473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474 test $ac_status = 0; }; }; then
3477 if test "$cross_compiling" = maybe; then
3480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3482 as_fn_error $? "cannot run C compiled programs.
3483 If you meant to cross compile, use \`--host'.
3484 See \`config.log' for more details" "$LINENO" 5; }
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3489 $as_echo "$cross_compiling" >&6; }
3491 rm -rf conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3492 ac_clean_files=$ac_clean_files_save
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3494 $as_echo_n "checking for suffix of object files... " >&6; }
3495 if ${ac_cv_objext+:} false; then :
3496 $as_echo_n "(cached) " >&6
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3509 rm -rf conftest.o conftest.obj
3510 if { { ac_try="$ac_compile"
3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513 *) ac_try_echo=$ac_try;;
3515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3516 $as_echo "$ac_try_echo"; } >&5
3517 (eval "$ac_compile") 2>&5
3519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3520 test $ac_status = 0; }; then :
3521 for ac_file in conftest.o conftest.obj conftest.*; do
3522 test -f "$ac_file" || continue;
3524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3525 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3530 $as_echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3535 as_fn_error $? "cannot compute suffix of object files: cannot compile
3536 See \`config.log' for more details" "$LINENO" 5; }
3538 rm -rf conftest.$ac_cv_objext conftest.$ac_ext
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3541 $as_echo "$ac_cv_objext" >&6; }
3542 OBJEXT=$ac_cv_objext
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3545 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3546 if ${ac_cv_c_compiler_gnu+:} false; then :
3547 $as_echo_n "(cached) " >&6
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3563 if ac_fn_c_try_compile "$LINENO"; then :
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3573 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3574 if test $ac_compiler_gnu = yes; then
3579 ac_test_CFLAGS=${CFLAGS+set}
3580 ac_save_CFLAGS=$CFLAGS
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3582 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3583 if ${ac_cv_prog_cc_g+:} false; then :
3584 $as_echo_n "(cached) " >&6
3586 ac_save_c_werror_flag=$ac_c_werror_flag
3587 ac_c_werror_flag=yes
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3601 if ac_fn_c_try_compile "$LINENO"; then :
3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h. */
3616 if ac_fn_c_try_compile "$LINENO"; then :
3619 ac_c_werror_flag=$ac_save_c_werror_flag
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3632 if ac_fn_c_try_compile "$LINENO"; then :
3635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640 ac_c_werror_flag=$ac_save_c_werror_flag
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3643 $as_echo "$ac_cv_prog_cc_g" >&6; }
3644 if test "$ac_test_CFLAGS" = set; then
3645 CFLAGS=$ac_save_CFLAGS
3646 elif test $ac_cv_prog_cc_g = yes; then
3647 if test "$GCC" = yes; then
3653 if test "$GCC" = yes; then
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3660 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3661 if ${ac_cv_prog_cc_c89+:} false; then :
3662 $as_echo_n "(cached) " >&6
3664 ac_cv_prog_cc_c89=no
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3671 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3672 struct buf { int x; };
3673 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3674 static char *e (p, i)
3680 static char *f (char * (*g) (char **, int), char **p, ...)
3685 s = g (p, va_arg (v,int));
3690 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3691 function prototypes and stuff, but not '\xHH' hex character constants.
3692 These don't provoke an error unfortunately, instead are silently treated
3693 as 'x'. The following induces an error, until -std is added to get
3694 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3695 array size at least. It's necessary to write '\x00'==0 to get something
3696 that's true only with -std. */
3697 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3699 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3700 inside strings and character constants. */
3702 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3704 int test (int i, double x);
3705 struct s1 {int (*f) (int a);};
3706 struct s2 {int (*f) (double a);};
3707 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3713 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3718 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3719 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3721 CC="$ac_save_CC $ac_arg"
3722 if ac_fn_c_try_compile "$LINENO"; then :
3723 ac_cv_prog_cc_c89=$ac_arg
3725 rm -f core conftest.err conftest.$ac_objext
3726 test "x$ac_cv_prog_cc_c89" != "xno" && break
3728 rm -rf conftest.$ac_ext
3733 case "x$ac_cv_prog_cc_c89" in
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3736 $as_echo "none needed" >&6; } ;;
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3739 $as_echo "unsupported" >&6; } ;;
3741 CC="$CC $ac_cv_prog_cc_c89"
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3743 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3745 if test "x$ac_cv_prog_cc_c89" != xno; then :
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3757 with_pthread_req=unspecified
3759 # AX_PTHREAD is from the GNU Autoconf Archive.
3760 # https://savannah.gnu.org/projects/autoconf-archive/
3761 # ===========================================================================
3762 # http://www.gnu.org/software/autoconf-archive/ax_pthread.html
3763 # ===========================================================================
3767 # AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
3771 # This macro figures out how to build C programs using POSIX threads. It
3772 # sets the PTHREAD_LIBS output variable to the threads library and linker
3773 # flags, and the PTHREAD_CFLAGS output variable to any special C compiler
3774 # flags that are needed. (The user can also force certain compiler
3775 # flags/libs to be tested by setting these environment variables.)
3777 # Also sets PTHREAD_CC to any special C compiler that is needed for
3778 # multi-threaded programs (defaults to the value of CC otherwise). (This
3779 # is necessary on AIX to use the special cc_r compiler alias.)
3781 # NOTE: You are assumed to not only compile your program with these flags,
3782 # but also link it with them as well. e.g. you should link with
3783 # $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
3785 # If you are only building threads programs, you may wish to use these
3786 # variables in your default LIBS, CFLAGS, and CC:
3788 # LIBS="$PTHREAD_LIBS $LIBS"
3789 # CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
3792 # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
3793 # has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name
3794 # (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
3796 # Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the
3797 # PTHREAD_PRIO_INHERIT symbol is defined when compiling with
3800 # ACTION-IF-FOUND is a list of shell commands to run if a threads library
3801 # is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
3802 # is not found. If ACTION-IF-FOUND is not specified, the default action
3803 # will define HAVE_PTHREAD.
3805 # Please let the authors know if this macro fails on any platform, or if
3806 # you have any other suggestions or comments. This macro was based on work
3807 # by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
3808 # from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
3809 # Alejandro Forero Cuervo to the autoconf macro repository. We are also
3810 # grateful for the helpful feedback of numerous users.
3812 # Updated for Autoconf 2.68 by Daniel Richard G.
3816 # Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
3817 # Copyright (c) 2011 Daniel Richard G. <skunk@iSKUNK.ORG>
3819 # This program is free software: you can redistribute it and/or modify it
3820 # under the terms of the GNU General Public License as published by the
3821 # Free Software Foundation, either version 3 of the License, or (at your
3822 # option) any later version.
3824 # This program is distributed in the hope that it will be useful, but
3825 # WITHOUT ANY WARRANTY; without even the implied warranty of
3826 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
3827 # Public License for more details.
3829 # You should have received a copy of the GNU General Public License along
3830 # with this program. If not, see <http://www.gnu.org/licenses/>.
3832 # As a special exception, the respective Autoconf Macro's copyright owner
3833 # gives unlimited permission to copy, distribute and modify the configure
3834 # scripts that are the output of Autoconf when processing the Macro. You
3835 # need not follow the terms of the GNU General Public License when using
3836 # or distributing such scripts, even though portions of the text of the
3837 # Macro appear in them. The GNU General Public License (GPL) does govern
3838 # all other use of the material that constitutes the Autoconf Macro.
3840 # This special exception to the GPL applies to versions of the Autoconf
3841 # Macro released by the Autoconf Archive. When you make and distribute a
3842 # modified version of the Autoconf Macro, you may extend this special
3843 # exception to the GPL to apply to your modified version as well.
3847 # This is what autoupdate's m4 run will expand. It fires
3848 # the warning (with _au_warn_XXX), outputs it into the
3849 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3850 # the replacement expansion.
3853 # This is an auxiliary macro that is also run when
3854 # autoupdate runs m4. It simply calls m4_warning, but
3855 # we need a wrapper so that each warning is emitted only
3856 # once. We break the quoting in m4_warning's argument in
3857 # order to expand this macro's arguments, not AU_DEFUN's.
3860 # Finally, this is the expansion that is picked up by
3861 # autoconf. It tells the user to run autoupdate, and
3862 # then outputs the replacement expansion. We do not care
3863 # about autoupdate's warning because that contains
3864 # information on what to do *after* running autoupdate.
3868 # This affects CC, LIBS, and CFLAGS, instead of defining new variables.
3871 # Check whether --with-pthread was given.
3872 if test "${with_pthread+set}" = set; then :
3873 withval=$with_pthread; with_pthread="$withval"; with_pthread_req="$withval"
3879 if test "$with_pthread" = yes; then
3880 # AX_PTHREAD might want a different compiler.
3884 ac_cpp='$CPP $CPPFLAGS'
3885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3891 # We used to check for pthread.h first, but this fails if pthread.h
3892 # requires special compiler flags (e.g. on True64 or Sequent).
3893 # It gets checked for in the link test anyway.
3895 # First of all, check if the user has set any of the PTHREAD_LIBS,
3896 # etcetera environment variables, and if threads linking works using
3898 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
3899 save_CFLAGS="$CFLAGS"
3900 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
3902 LIBS="$PTHREAD_LIBS $LIBS"
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
3904 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3908 /* Override any GCC internal prototype to avoid an error.
3909 Use char because int might match the return type of a GCC
3910 builtin and then its argument prototype would still apply. */
3914 char pthread_join ();
3918 return pthread_join ();
3923 if ac_fn_c_try_link "$LINENO"; then :
3926 rm -f core conftest.err conftest.$ac_objext \
3927 conftest$ac_exeext conftest.$ac_ext
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
3929 $as_echo "$ax_pthread_ok" >&6; }
3930 if test x"$ax_pthread_ok" = xno; then
3935 CFLAGS="$save_CFLAGS"
3938 # We must check for the threads library under a number of different
3939 # names; the ordering is very important because some systems
3940 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
3941 # libraries is broken (non-POSIX).
3943 # Create a list of thread flags to try. Items starting with a "-" are
3944 # C compiler flags, and other items are library names, except for "none"
3945 # which indicates that we try without any flags at all, and "pthread-config"
3946 # which is a program returning the flags for the Pth emulation library.
3948 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
3950 # The ordering *is* (sometimes) important. Some notes on the
3951 # individual items follow:
3953 # pthreads: AIX (must check this before -lpthread)
3954 # none: in case threads are in libc; should be tried before -Kthread and
3955 # other compiler flags to prevent continual compiler warnings
3956 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
3957 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
3958 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
3959 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
3960 # -pthreads: Solaris/gcc
3961 # -mthreads: Mingw32/gcc, Lynx/gcc
3962 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
3963 # doesn't hurt to check since this sometimes defines pthreads too;
3964 # also defines -D_REENTRANT)
3965 # ... -mt is also the pthreads flag for HP/aCC
3966 # pthread: Linux, etcetera
3967 # --thread-safe: KAI C++
3968 # pthread-config: use pthread-config program (for GNU Pth library)
3973 # On Solaris (at least, for some versions), libc contains stubbed
3974 # (non-functional) versions of the pthreads routines, so link-based
3975 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
3976 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
3977 # a function called by this macro, so we could check for that, but
3978 # who knows whether they'll stub that too in a future libc.) So,
3979 # we'll just look for -pthreads and -lpthread first:
3981 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
3985 ax_pthread_flags="-pthread $ax_pthread_flags"
3989 # Clang doesn't consider unrecognized options an error unless we specify
3990 # -Werror. We throw in some extra Clang-specific options to ensure that
3991 # this doesn't happen for GCC, which also accepts -Werror.
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
3994 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
3995 save_CFLAGS="$CFLAGS"
3996 ax_pthread_extra_flags="-Werror"
3997 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4009 if ac_fn_c_try_compile "$LINENO"; then :
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4011 $as_echo "yes" >&6; }
4013 ax_pthread_extra_flags=
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4015 $as_echo "no" >&6; }
4017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018 CFLAGS="$save_CFLAGS"
4020 if test x"$ax_pthread_ok" = xno; then
4021 for flag in $ax_pthread_flags; do
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
4026 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
4031 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
4032 PTHREAD_CFLAGS="$flag"
4036 # Extract the first word of "pthread-config", so it can be a program name with args.
4037 set dummy pthread-config; ac_word=$2
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4039 $as_echo_n "checking for $ac_word... " >&6; }
4040 if ${ac_cv_prog_ax_pthread_config+:} false; then :
4041 $as_echo_n "(cached) " >&6
4043 if test -n "$ax_pthread_config"; then
4044 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4053 ac_cv_prog_ax_pthread_config="yes"
4054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4061 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
4064 ax_pthread_config=$ac_cv_prog_ax_pthread_config
4065 if test -n "$ax_pthread_config"; then
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
4067 $as_echo "$ax_pthread_config" >&6; }
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070 $as_echo "no" >&6; }
4074 if test x"$ax_pthread_config" = xno; then continue; fi
4075 PTHREAD_CFLAGS="`pthread-config --cflags`"
4076 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
4081 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
4082 PTHREAD_LIBS="-l$flag"
4087 save_CFLAGS="$CFLAGS"
4088 LIBS="$PTHREAD_LIBS $LIBS"
4089 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
4091 # Check for various functions. We must include pthread.h,
4092 # since some functions may be macros. (On the Sequent, we
4093 # need a special flag -Kthread to make this header compile.)
4094 # We check for pthread_join because it is in -lpthread on IRIX
4095 # while pthread_create is in libc. We check for pthread_attr_init
4096 # due to DEC craziness with -lpthreads. We check for
4097 # pthread_cleanup_push because it is one of the few pthread
4098 # functions on Solaris that doesn't have a non-functional libc stub.
4099 # We try pthread_create on general principles.
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4102 #include <pthread.h>
4103 static void routine(void *a) { a = 0; }
4104 static void *start_routine(void *a) { return a; }
4108 pthread_t th; pthread_attr_t attr;
4109 pthread_create(&th, 0, start_routine, 0);
4110 pthread_join(th, 0);
4111 pthread_attr_init(&attr);
4112 pthread_cleanup_push(routine, 0);
4113 pthread_cleanup_pop(0) /* ; */
4118 if ac_fn_c_try_link "$LINENO"; then :
4121 rm -f core conftest.err conftest.$ac_objext \
4122 conftest$ac_exeext conftest.$ac_ext
4125 CFLAGS="$save_CFLAGS"
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
4128 $as_echo "$ax_pthread_ok" >&6; }
4129 if test "x$ax_pthread_ok" = xyes; then
4138 # Various other checks:
4139 if test "x$ax_pthread_ok" = xyes; then
4141 LIBS="$PTHREAD_LIBS $LIBS"
4142 save_CFLAGS="$CFLAGS"
4143 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4145 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
4147 $as_echo_n "checking for joinable pthread attribute... " >&6; }
4149 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4152 #include <pthread.h>
4156 int attr = $attr; return attr /* ; */
4161 if ac_fn_c_try_link "$LINENO"; then :
4162 attr_name=$attr; break
4164 rm -f core conftest.err conftest.$ac_objext \
4165 conftest$ac_exeext conftest.$ac_ext
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
4168 $as_echo "$attr_name" >&6; }
4169 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
4171 cat >>confdefs.h <<_ACEOF
4172 #define PTHREAD_CREATE_JOINABLE $attr_name
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
4178 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
4181 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
4182 osf* | hpux*) flag="-D_REENTRANT";;
4184 if test "$GCC" = "yes"; then
4187 # TODO: What about Clang on Solaris?
4188 flag="-mt -D_REENTRANT"
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
4193 $as_echo "$flag" >&6; }
4194 if test "x$flag" != xno; then
4195 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
4199 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
4200 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
4201 $as_echo_n "(cached) " >&6
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4206 #include <pthread.h>
4210 int i = PTHREAD_PRIO_INHERIT;
4215 if ac_fn_c_try_link "$LINENO"; then :
4216 ax_cv_PTHREAD_PRIO_INHERIT=yes
4218 ax_cv_PTHREAD_PRIO_INHERIT=no
4220 rm -f core conftest.err conftest.$ac_objext \
4221 conftest$ac_exeext conftest.$ac_ext
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
4225 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
4226 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
4228 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
4233 CFLAGS="$save_CFLAGS"
4235 # More AIX lossage: compile with *_r variant
4236 if test "x$GCC" != xyes; then
4240 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
4241 #handle absolute path differently from PATH based program lookup
4244 if as_fn_executable_p ${CC}_r; then :
4245 PTHREAD_CC="${CC}_r"
4248 for ac_prog in ${CC}_r
4250 # Extract the first word of "$ac_prog", so it can be a program name with args.
4251 set dummy $ac_prog; ac_word=$2
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4253 $as_echo_n "checking for $ac_word... " >&6; }
4254 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
4255 $as_echo_n "(cached) " >&6
4257 if test -n "$PTHREAD_CC"; then
4258 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 test -z "$as_dir" && as_dir=.
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4267 ac_cv_prog_PTHREAD_CC="$ac_prog"
4268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4277 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
4278 if test -n "$PTHREAD_CC"; then
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
4280 $as_echo "$PTHREAD_CC" >&6; }
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283 $as_echo "no" >&6; }
4287 test -n "$PTHREAD_CC" && break
4289 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
4300 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
4306 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4307 if test x"$ax_pthread_ok" = xyes; then
4308 if test "$CC" = "$PTHREAD_CC" -o -z "$ac_original_cc"; then
4311 ac_prog_cc_no_pthread=yes
4320 ac_cpp='$CPP $CPPFLAGS'
4321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4327 if test "$have_pthread" = yes; then
4328 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
4333 # Needs ac_original_cc.
4337 if test -z "$GCC"; then
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to request ANSI compilation" >&5
4340 $as_echo_n "checking how to request ANSI compilation... " >&6; }
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HPUX: adding -Ae" >&5
4344 $as_echo "HPUX: adding -Ae" >&6; }
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX: adding -qlanglvl=ansi -qhalt=e" >&5
4349 $as_echo "AIX: adding -qlanglvl=ansi -qhalt=e" >&6; }
4350 CC="$CC -qlanglvl=ansi -qhalt=e"
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DEC: adding -std1 -ieee" >&5
4354 $as_echo "DEC: adding -std1 -ieee" >&6; }
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no idea" >&5
4359 $as_echo "no idea" >&6; }
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris: adding -D__EXTENSIONS__" >&5
4367 $as_echo "Solaris: adding -D__EXTENSIONS__" >&6; }
4368 CC="$CC -D__EXTENSIONS__"
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler works on ANSI C" >&5
4376 $as_echo_n "checking whether the compiler works on ANSI C... " >&6; }
4377 if test "$cross_compiling" = yes; then :
4378 as_fn_error $? "Couldn't build even a trivial ANSI C program: check CC." "$LINENO" 5
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4382 main(int ac, char **av) { return 0; }
4384 if ac_fn_c_try_run "$LINENO"; then :
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4386 $as_echo "yes" >&6; }
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389 $as_echo "no" >&6; }
4390 as_fn_error $? "Couldn't build even a trivial ANSI C program: check CC." "$LINENO" 5
4392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4393 conftest.$ac_objext conftest.beam conftest.$ac_ext
4397 if test -n "$GCC"; then
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Turning on gcc compiler warnings." >&5
4399 $as_echo "Turning on gcc compiler warnings." >&6; }
4400 CC="$CC -pedantic -Wall -Wstrict-prototypes -Wnested-externs -Wmissing-prototypes"
4401 OBJCC="$OBJCC -Wall"
4402 # As of gcc 3.4, we have "-Wdeclaration-after-statement"
4403 # and so perhaps now we can do without -pedantic?
4406 *-irix5* |*-irix6.0-3* )
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Turning on SGI compiler warnings." >&5
4408 $as_echo "Turning on SGI compiler warnings." >&6; }
4409 CC="$CC -fullwarn -use_readonly_const -rdata_shared -g3"
4412 # if test -z "$GCC"; then
4413 # AC_MSG_RESULT(Turning on DEC C compiler warnings.)
4414 # CC="$CC -migrate -w0 -verbose -warnprotos"
4420 if test -n "$GCC"; then
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wno-overlength-strings" >&5
4422 $as_echo_n "checking whether gcc accepts -Wno-overlength-strings... " >&6; }
4423 if ${ac_cv_gcc_accepts_no_overlength+:} false; then :
4424 $as_echo_n "(cached) " >&6
4426 rm -rf conftest.$ac_ext
4427 touch conftest.$ac_ext
4428 if ( ( gcc -c -Wno-overlength-strings conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
4429 grep unrecognized >/dev/null ); then
4430 ac_cv_gcc_accepts_no_overlength=no
4432 ac_cv_gcc_accepts_no_overlength=yes
4433 CC="$CC -Wno-overlength-strings"
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_accepts_no_overlength" >&5
4437 $as_echo "$ac_cv_gcc_accepts_no_overlength" >&6; }
4438 ac_gcc_accepts_no_overlength="$ac_cv_gcc_accepts_no_overlength"
4441 if test -n "$GCC"; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wdeclaration-after-statement" >&5
4443 $as_echo_n "checking whether gcc accepts -Wdeclaration-after-statement... " >&6; }
4444 if ${ac_cv_gcc_accepts_no_decl_after+:} false; then :
4445 $as_echo_n "(cached) " >&6
4447 rm -rf conftest.$ac_ext
4448 touch conftest.$ac_ext
4449 if ( ( gcc -c -Wdeclaration-after-statement conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
4450 grep unrecognized >/dev/null ); then
4451 ac_cv_gcc_accepts_no_decl_after=no
4453 ac_cv_gcc_accepts_no_decl_after=yes
4454 CC="$CC -Wdeclaration-after-statement"
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_accepts_no_decl_after" >&5
4458 $as_echo "$ac_cv_gcc_accepts_no_decl_after" >&6; }
4459 ac_gcc_accepts_no_decl_after="$ac_cv_gcc_accepts_no_decl_after"
4462 if test -n "$GCC"; then
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -no-cpp-precomp" >&5
4464 $as_echo_n "checking whether gcc accepts -no-cpp-precomp... " >&6; }
4465 if ${ac_cv_gcc_accepts_no_cpp_precomp+:} false; then :
4466 $as_echo_n "(cached) " >&6
4468 rm -rf conftest.$ac_ext
4469 touch conftest.$ac_ext
4470 if ( ( gcc -c -no-cpp-precomp conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
4471 grep unrecognized >/dev/null ); then
4472 ac_cv_gcc_accepts_no_cpp_precomp=no
4474 ac_cv_gcc_accepts_no_cpp_precomp=yes
4475 CC="$CC -no-cpp-precomp"
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_accepts_no_cpp_precomp" >&5
4479 $as_echo "$ac_cv_gcc_accepts_no_cpp_precomp" >&6; }
4480 ac_gcc_accepts_no_cpp_precomp="$ac_cv_gcc_accepts_no_cpp_precomp"
4483 if test -n "$GCC"; then
4487 # Fucking Apple let // comments sneak into OpenGL headers, so
4488 # we *must* allow // comments when compiling on Mac OS 10.6! FUCK!
4491 if test -n "$GCC"; then
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -std=c89" >&5
4493 $as_echo_n "checking whether gcc accepts -std=c89... " >&6; }
4494 if ${ac_cv_gcc_accepts_std+:} false; then :
4495 $as_echo_n "(cached) " >&6
4497 rm -rf conftest.$ac_ext
4498 touch conftest.$ac_ext
4499 if ( ( gcc -c -std=c89 conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
4500 grep unrecognized >/dev/null ); then
4501 ac_cv_gcc_accepts_std=no
4503 ac_cv_gcc_accepts_std=yes
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_accepts_std" >&5
4508 $as_echo "$ac_cv_gcc_accepts_std" >&6; }
4509 ac_gcc_accepts_std="$ac_cv_gcc_accepts_std"
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling C++ comments in ANSI C code." >&5
4516 $as_echo "Disabling C++ comments in ANSI C code." >&6; }
4518 # The reason that // comments are banned from xscreensaver is that gcc is
4519 # basically the only compiler in the world that supports them in C code.
4520 # All other vendors support them only in their C++ compilers, not in their
4521 # ANSI C compilers. This means that it's a portability problem: every time
4522 # these comments have snuck into the xscreensaver source code, I've gotten
4523 # complaints about it the next day. So we turn off support for them in gcc
4524 # as well to prevent them from accidentially slipping in.
4526 if test "$ac_gcc_accepts_std" = yes ; then
4528 # -std=c89 defines __STRICT_ANSI__, which we don't want.
4529 # (That appears to be the only additional preprocessor symbol
4530 # it defines, in addition to the syntax changes it makes.)
4532 # -std=gnu89 is no good, because // comments were a GNU extension
4533 # before they were in the ANSI C 99 spec... (gcc 2.96 permits //
4534 # with -std=gnu89 but not with -std=c89.)
4536 # $CC already contains "-std=c89" via AC_GCC_ACCEPTS_STD
4537 CC="$CC -U__STRICT_ANSI__"
4540 # CC="$CC -Wp,-lang-c89"
4545 ac_cpp='$CPP $CPPFLAGS'
4546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4550 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4551 # On Suns, sometimes $CPP names a directory.
4552 if test -n "$CPP" && test -d "$CPP"; then
4555 if test -z "$CPP"; then
4556 if ${ac_cv_prog_CPP+:} false; then :
4557 $as_echo_n "(cached) " >&6
4559 # Double quotes because CPP needs to be expanded
4560 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4563 for ac_c_preproc_warn_flag in '' yes
4565 # Use a header file that comes with gcc, so configuring glibc
4566 # with a fresh cross-compiler works.
4567 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4568 # <limits.h> exists even on freestanding compilers.
4569 # On the NeXT, cc -E runs the code through the compiler's parser,
4570 # not just through cpp. "Syntax error" is here to catch this case.
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4574 # include <limits.h>
4576 # include <assert.h>
4580 if ac_fn_c_try_cpp "$LINENO"; then :
4583 # Broken: fails on valid input.
4586 rm -rf conftest.err conftest.i conftest.$ac_ext
4588 # OK, works on sane cases. Now check whether nonexistent headers
4589 # can be detected and how.
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4592 #include <ac_nonexistent.h>
4594 if ac_fn_c_try_cpp "$LINENO"; then :
4595 # Broken: success on invalid input.
4598 # Passes both tests.
4602 rm -rf conftest.err conftest.i conftest.$ac_ext
4605 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4606 rm -rf conftest.i conftest.err conftest.$ac_ext
4607 if $ac_preproc_ok; then :
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4620 $as_echo "$CPP" >&6; }
4622 for ac_c_preproc_warn_flag in '' yes
4624 # Use a header file that comes with gcc, so configuring glibc
4625 # with a fresh cross-compiler works.
4626 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4627 # <limits.h> exists even on freestanding compilers.
4628 # On the NeXT, cc -E runs the code through the compiler's parser,
4629 # not just through cpp. "Syntax error" is here to catch this case.
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4633 # include <limits.h>
4635 # include <assert.h>
4639 if ac_fn_c_try_cpp "$LINENO"; then :
4642 # Broken: fails on valid input.
4645 rm -rf conftest.err conftest.i conftest.$ac_ext
4647 # OK, works on sane cases. Now check whether nonexistent headers
4648 # can be detected and how.
4649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650 /* end confdefs.h. */
4651 #include <ac_nonexistent.h>
4653 if ac_fn_c_try_cpp "$LINENO"; then :
4654 # Broken: success on invalid input.
4657 # Passes both tests.
4661 rm -rf conftest.err conftest.i conftest.$ac_ext
4664 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4665 rm -rf conftest.i conftest.err conftest.$ac_ext
4666 if $ac_preproc_ok; then :
4669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4671 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4672 See \`config.log' for more details" "$LINENO" 5; }
4676 ac_cpp='$CPP $CPPFLAGS'
4677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4682 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4683 if ${ac_cv_c_const+:} false; then :
4684 $as_echo_n "(cached) " >&6
4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4694 /* Ultrix mips cc rejects this sort of thing. */
4695 typedef int charset[2];
4696 const charset cs = { 0, 0 };
4697 /* SunOS 4.1.1 cc rejects this. */
4698 char const *const *pcpcc;
4700 /* NEC SVR4.0.2 mips cc rejects this. */
4701 struct point {int x, y;};
4702 static struct point const zero = {0,0};
4703 /* AIX XL C 1.02.0.0 rejects this.
4704 It does not let you subtract one const X* pointer from another in
4705 an arm of an if-expression whose if-part is not a constant
4707 const char *g = "string";
4708 pcpcc = &g + (g ? g-g : 0);
4709 /* HPUX 7.0 cc rejects these. */
4711 ppc = (char**) pcpcc;
4712 pcpcc = (char const *const *) ppc;
4713 { /* SCO 3.2v4 cc rejects this sort of thing. */
4716 char const *s = 0 ? (char *) 0 : (char const *) 0;
4721 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4723 const int *foo = &x[0];
4726 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4727 typedef const int *iptr;
4731 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4732 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4733 struct s { int j; const int *ap[3]; } bx;
4734 struct s *b = &bx; b->j = 5;
4736 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4740 return !cs[0] && !zero.x;
4747 if ac_fn_c_try_compile "$LINENO"; then :
4752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4755 $as_echo "$ac_cv_c_const" >&6; }
4756 if test $ac_cv_c_const = no; then
4758 $as_echo "#define const /**/" >>confdefs.h
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4763 $as_echo_n "checking for inline... " >&6; }
4764 if ${ac_cv_c_inline+:} false; then :
4765 $as_echo_n "(cached) " >&6
4768 for ac_kw in inline __inline__ __inline; do
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h. */
4773 static $ac_kw foo_t static_foo () {return 0; }
4774 $ac_kw foo_t foo () {return 0; }
4778 if ac_fn_c_try_compile "$LINENO"; then :
4779 ac_cv_c_inline=$ac_kw
4781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4782 test "$ac_cv_c_inline" != no && break
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4787 $as_echo "$ac_cv_c_inline" >&6; }
4789 case $ac_cv_c_inline in
4792 case $ac_cv_c_inline in
4794 *) ac_val=$ac_cv_c_inline;;
4796 cat >>confdefs.h <<_ACEOF
4798 #define inline $ac_val
4805 ac_bc_result=`echo 6+9 | bc 2>/dev/null`
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bc" >&5
4807 $as_echo_n "checking for bc... " >&6; }
4808 if test "$ac_bc_result" = "15" ; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4810 $as_echo "yes" >&6; }
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4815 as_fn_error $? "Your system doesn't have \"bc\", which has been a standard
4816 part of Unix since the 1970s. Come back when your vendor
4817 has grown a clue." "$LINENO" 5
4821 # stuff for Makefiles
4822 # Find a good install program. We prefer a C program (faster),
4823 # so one script is as good as another. But avoid the broken or
4824 # incompatible versions:
4825 # SysV /etc/install, /usr/sbin/install
4826 # SunOS /usr/etc/install
4827 # IRIX /sbin/install
4829 # AmigaOS /C/install, which installs bootblocks on floppy discs
4830 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4831 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4832 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4833 # OS/2's system install, which has a completely different semantic
4834 # ./install, which can be erroneously created by make from ./install.sh.
4835 # Reject install programs that cannot install multiple files.
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4837 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4838 if test -z "$INSTALL"; then
4839 if ${ac_cv_path_install+:} false; then :
4840 $as_echo_n "(cached) " >&6
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 test -z "$as_dir" && as_dir=.
4847 # Account for people who put trailing slashes in PATH elements.
4848 case $as_dir/ in #((
4849 ./ | .// | /[cC]/* | \
4850 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4851 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4854 # OSF1 and SCO ODT 3.0 have their own names for install.
4855 # Don't use installbsd from OSF since it installs stuff as root
4857 for ac_prog in ginstall scoinst install; do
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4860 if test $ac_prog = install &&
4861 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4862 # AIX install. It has an incompatible calling convention.
4864 elif test $ac_prog = install &&
4865 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4866 # program-specific install script used by HP pwplus--don't use.
4869 rm -rf conftest.one conftest.two conftest.dir
4870 echo one > conftest.one
4871 echo two > conftest.two
4873 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4874 test -s conftest.one && test -s conftest.two &&
4875 test -s conftest.dir/conftest.one &&
4876 test -s conftest.dir/conftest.two
4878 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4891 rm -rf conftest.one conftest.two conftest.dir
4894 if test "${ac_cv_path_install+set}" = set; then
4895 INSTALL=$ac_cv_path_install
4897 # As a last resort, use the slow shell script. Don't cache a
4898 # value for INSTALL within a source directory, because that will
4899 # break other packages using the cache if that directory is
4900 # removed, or if the value is a relative name.
4901 INSTALL=$ac_install_sh
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4905 $as_echo "$INSTALL" >&6; }
4907 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4908 # It thinks the first close brace ends the variable substitution.
4909 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4911 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4913 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \"\${INSTALL} -d\" creates intermediate directories" >&5
4916 $as_echo_n "checking whether \"\${INSTALL} -d\" creates intermediate directories... " >&6; }
4917 if ${ac_cv_install_d_creates_dirs+:} false; then :
4918 $as_echo_n "(cached) " >&6
4920 ac_cv_install_d_creates_dirs=no
4922 if mkdir conftestdir; then
4923 cd conftestdir 2>/dev/null
4924 ${INSTALL} -d `pwd`/dir1/dir2 >/dev/null 2>&1
4925 if test -d dir1/dir2/. ; then
4926 ac_cv_install_d_creates_dirs=yes
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_install_d_creates_dirs" >&5
4934 $as_echo "$ac_cv_install_d_creates_dirs" >&6; }
4936 if test "$ac_cv_install_d_creates_dirs" = no ; then
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \"mkdir -p\" creates intermediate directories" >&5
4938 $as_echo_n "checking whether \"mkdir -p\" creates intermediate directories... " >&6; }
4939 if ${ac_cv_mkdir_p_creates_dirs+:} false; then :
4940 $as_echo_n "(cached) " >&6
4942 ac_cv_mkdir_p_creates_dirs=no
4944 if mkdir conftestdir; then
4945 cd conftestdir 2>/dev/null
4946 mkdir -p dir1/dir2 >/dev/null 2>&1
4947 if test -d dir1/dir2/. ; then
4948 ac_cv_mkdir_p_creates_dirs=yes
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_p_creates_dirs" >&5
4956 $as_echo "$ac_cv_mkdir_p_creates_dirs" >&6; }
4959 if test "$ac_cv_install_d_creates_dirs" = yes ; then
4960 INSTALL_DIRS='${INSTALL} -d'
4961 elif test "$ac_cv_mkdir_p_creates_dirs" = yes ; then
4962 INSTALL_DIRS='mkdir -p'
4965 INSTALL_DIRS='${INSTALL} -d'
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4969 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4971 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4972 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4973 $as_echo_n "(cached) " >&6
4975 cat >conftest.make <<\_ACEOF
4978 @echo '@@@%%%=$(MAKE)=@@@%%%'
4980 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4981 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4983 eval ac_cv_prog_make_${ac_make}_set=yes;;
4985 eval ac_cv_prog_make_${ac_make}_set=no;;
4987 rm -rf conftest.make
4989 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4991 $as_echo "yes" >&6; }
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 $as_echo "no" >&6; }
4996 SET_MAKE="MAKE=${MAKE-make}"
5000 # By default, autoconf sets INSTALL_SCRIPT to '${INSTALL_PROGRAM}'.
5001 # That's wrong: it should be set to '${INSTALL}', so that one can
5002 # implement the "install-strip" target properly (strip executables,
5003 # but do not try to strip scripts.)
5005 INSTALL_SCRIPT='${INSTALL}'
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5010 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5011 if ${ac_cv_path_GREP+:} false; then :
5012 $as_echo_n "(cached) " >&6
5014 if test -z "$GREP"; then
5015 ac_path_GREP_found=false
5016 # Loop through the user's path and test for each of PROGNAME-LIST
5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5021 test -z "$as_dir" && as_dir=.
5022 for ac_prog in grep ggrep; do
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5025 as_fn_executable_p "$ac_path_GREP" || continue
5026 # Check for GNU ac_path_GREP and select it if it is found.
5027 # Check for GNU $ac_path_GREP
5028 case `"$ac_path_GREP" --version 2>&1` in
5030 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5033 $as_echo_n 0123456789 >"conftest.in"
5036 cat "conftest.in" "conftest.in" >"conftest.tmp"
5037 mv "conftest.tmp" "conftest.in"
5038 cp "conftest.in" "conftest.nl"
5039 $as_echo 'GREP' >> "conftest.nl"
5040 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5041 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5042 as_fn_arith $ac_count + 1 && ac_count=$as_val
5043 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5044 # Best one so far, save it but keep looking for a better one
5045 ac_cv_path_GREP="$ac_path_GREP"
5046 ac_path_GREP_max=$ac_count
5048 # 10*(2^10) chars as input seems more than enough
5049 test $ac_count -gt 10 && break
5051 rm -rf conftest.in conftest.tmp conftest.nl conftest.out;;
5054 $ac_path_GREP_found && break 3
5059 if test -z "$ac_cv_path_GREP"; then
5060 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5063 ac_cv_path_GREP=$GREP
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5068 $as_echo "$ac_cv_path_GREP" >&6; }
5069 GREP="$ac_cv_path_GREP"
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5073 $as_echo_n "checking for egrep... " >&6; }
5074 if ${ac_cv_path_EGREP+:} false; then :
5075 $as_echo_n "(cached) " >&6
5077 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5078 then ac_cv_path_EGREP="$GREP -E"
5080 if test -z "$EGREP"; then
5081 ac_path_EGREP_found=false
5082 # Loop through the user's path and test for each of PROGNAME-LIST
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5087 test -z "$as_dir" && as_dir=.
5088 for ac_prog in egrep; do
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5091 as_fn_executable_p "$ac_path_EGREP" || continue
5092 # Check for GNU ac_path_EGREP and select it if it is found.
5093 # Check for GNU $ac_path_EGREP
5094 case `"$ac_path_EGREP" --version 2>&1` in
5096 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5099 $as_echo_n 0123456789 >"conftest.in"
5102 cat "conftest.in" "conftest.in" >"conftest.tmp"
5103 mv "conftest.tmp" "conftest.in"
5104 cp "conftest.in" "conftest.nl"
5105 $as_echo 'EGREP' >> "conftest.nl"
5106 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5107 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5108 as_fn_arith $ac_count + 1 && ac_count=$as_val
5109 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5110 # Best one so far, save it but keep looking for a better one
5111 ac_cv_path_EGREP="$ac_path_EGREP"
5112 ac_path_EGREP_max=$ac_count
5114 # 10*(2^10) chars as input seems more than enough
5115 test $ac_count -gt 10 && break
5117 rm -rf conftest.in conftest.tmp conftest.nl conftest.out;;
5120 $ac_path_EGREP_found && break 3
5125 if test -z "$ac_cv_path_EGREP"; then
5126 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5129 ac_cv_path_EGREP=$EGREP
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5135 $as_echo "$ac_cv_path_EGREP" >&6; }
5136 EGREP="$ac_cv_path_EGREP"
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5140 $as_echo_n "checking for ANSI C header files... " >&6; }
5141 if ${ac_cv_header_stdc+:} false; then :
5142 $as_echo_n "(cached) " >&6
5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145 /* end confdefs.h. */
5159 if ac_fn_c_try_compile "$LINENO"; then :
5160 ac_cv_header_stdc=yes
5162 ac_cv_header_stdc=no
5164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5166 if test $ac_cv_header_stdc = yes; then
5167 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5174 $EGREP "memchr" >/dev/null 2>&1; then :
5177 ac_cv_header_stdc=no
5183 if test $ac_cv_header_stdc = yes; then
5184 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5191 $EGREP "free" >/dev/null 2>&1; then :
5194 ac_cv_header_stdc=no
5200 if test $ac_cv_header_stdc = yes; then
5201 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5202 if test "$cross_compiling" = yes; then :
5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206 /* end confdefs.h. */
5209 #if ((' ' & 0x0FF) == 0x020)
5210 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5211 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5213 # define ISLOWER(c) \
5214 (('a' <= (c) && (c) <= 'i') \
5215 || ('j' <= (c) && (c) <= 'r') \
5216 || ('s' <= (c) && (c) <= 'z'))
5217 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5220 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5225 for (i = 0; i < 256; i++)
5226 if (XOR (islower (i), ISLOWER (i))
5227 || toupper (i) != TOUPPER (i))
5232 if ac_fn_c_try_run "$LINENO"; then :
5235 ac_cv_header_stdc=no
5237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5238 conftest.$ac_objext conftest.beam conftest.$ac_ext
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5244 $as_echo "$ac_cv_header_stdc" >&6; }
5245 if test $ac_cv_header_stdc = yes; then
5247 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5251 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5252 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5253 inttypes.h stdint.h unistd.h
5255 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5256 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5258 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5259 cat >>confdefs.h <<_ACEOF
5260 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5268 for ac_header in unistd.h inttypes.h
5270 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5271 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5272 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5273 cat >>confdefs.h <<_ACEOF
5274 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5281 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5282 if test "x$ac_cv_type_mode_t" = xyes; then :
5286 cat >>confdefs.h <<_ACEOF
5292 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5293 if test "x$ac_cv_type_pid_t" = xyes; then :
5297 cat >>confdefs.h <<_ACEOF
5303 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5304 if test "x$ac_cv_type_size_t" = xyes; then :
5308 cat >>confdefs.h <<_ACEOF
5309 #define size_t unsigned int
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5315 $as_echo_n "checking return type of signal handlers... " >&6; }
5316 if ${ac_cv_type_signal+:} false; then :
5317 $as_echo_n "(cached) " >&6
5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h. */
5321 #include <sys/types.h>
5327 return *(signal (0, 0)) (0) == 1;
5332 if ac_fn_c_try_compile "$LINENO"; then :
5333 ac_cv_type_signal=int
5335 ac_cv_type_signal=void
5337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5340 $as_echo "$ac_cv_type_signal" >&6; }
5342 cat >>confdefs.h <<_ACEOF
5343 #define RETSIGTYPE $ac_cv_type_signal
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5348 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5349 if ${ac_cv_header_time+:} false; then :
5350 $as_echo_n "(cached) " >&6
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5354 #include <sys/types.h>
5355 #include <sys/time.h>
5361 if ((struct tm *) 0)
5367 if ac_fn_c_try_compile "$LINENO"; then :
5368 ac_cv_header_time=yes
5370 ac_cv_header_time=no
5372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5375 $as_echo "$ac_cv_header_time" >&6; }
5376 if test $ac_cv_header_time = yes; then
5378 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5383 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5384 if ${ac_cv_header_sys_wait_h+:} false; then :
5385 $as_echo_n "(cached) " >&6
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5389 #include <sys/types.h>
5390 #include <sys/wait.h>
5392 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5395 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5403 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5408 if ac_fn_c_try_compile "$LINENO"; then :
5409 ac_cv_header_sys_wait_h=yes
5411 ac_cv_header_sys_wait_h=no
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5416 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5417 if test $ac_cv_header_sys_wait_h = yes; then
5419 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5424 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5425 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5427 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5428 if eval \${$as_ac_Header+:} false; then :
5429 $as_echo_n "(cached) " >&6
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h. */
5433 #include <sys/types.h>
5445 if ac_fn_c_try_compile "$LINENO"; then :
5446 eval "$as_ac_Header=yes"
5448 eval "$as_ac_Header=no"
5450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452 eval ac_res=\$$as_ac_Header
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5454 $as_echo "$ac_res" >&6; }
5455 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5456 cat >>confdefs.h <<_ACEOF
5457 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5460 ac_header_dirent=$ac_hdr; break
5464 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5465 if test $ac_header_dirent = dirent.h; then
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5467 $as_echo_n "checking for library containing opendir... " >&6; }
5468 if ${ac_cv_search_opendir+:} false; then :
5469 $as_echo_n "(cached) " >&6
5471 ac_func_search_save_LIBS=$LIBS
5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473 /* end confdefs.h. */
5475 /* Override any GCC internal prototype to avoid an error.
5476 Use char because int might match the return type of a GCC
5477 builtin and then its argument prototype would still apply. */
5490 for ac_lib in '' dir; do
5491 if test -z "$ac_lib"; then
5492 ac_res="none required"
5495 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5497 if ac_fn_c_try_link "$LINENO"; then :
5498 ac_cv_search_opendir=$ac_res
5500 rm -f core conftest.err conftest.$ac_objext \
5502 if ${ac_cv_search_opendir+:} false; then :
5506 if ${ac_cv_search_opendir+:} false; then :
5509 ac_cv_search_opendir=no
5512 LIBS=$ac_func_search_save_LIBS
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5515 $as_echo "$ac_cv_search_opendir" >&6; }
5516 ac_res=$ac_cv_search_opendir
5517 if test "$ac_res" != no; then :
5518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5524 $as_echo_n "checking for library containing opendir... " >&6; }
5525 if ${ac_cv_search_opendir+:} false; then :
5526 $as_echo_n "(cached) " >&6
5528 ac_func_search_save_LIBS=$LIBS
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5532 /* Override any GCC internal prototype to avoid an error.
5533 Use char because int might match the return type of a GCC
5534 builtin and then its argument prototype would still apply. */
5547 for ac_lib in '' x; do
5548 if test -z "$ac_lib"; then
5549 ac_res="none required"
5552 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5554 if ac_fn_c_try_link "$LINENO"; then :
5555 ac_cv_search_opendir=$ac_res
5557 rm -f core conftest.err conftest.$ac_objext \
5559 if ${ac_cv_search_opendir+:} false; then :
5563 if ${ac_cv_search_opendir+:} false; then :
5566 ac_cv_search_opendir=no
5569 LIBS=$ac_func_search_save_LIBS
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5572 $as_echo "$ac_cv_search_opendir" >&6; }
5573 ac_res=$ac_cv_search_opendir
5574 if test "$ac_res" != no; then :
5575 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to call gettimeofday" >&5
5582 $as_echo_n "checking how to call gettimeofday... " >&6; }
5583 if ${ac_cv_gettimeofday_args+:} false; then :
5584 $as_echo_n "(cached) " >&6
5586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587 /* end confdefs.h. */
5589 #include <sys/time.h>
5593 struct timeval tv; struct timezone tzp;
5594 gettimeofday(&tv, &tzp);
5599 if ac_fn_c_try_compile "$LINENO"; then :
5600 ac_gettimeofday_args=2
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5605 #include <sys/time.h>
5609 struct timeval tv; gettimeofday(&tv);
5614 if ac_fn_c_try_compile "$LINENO"; then :
5615 ac_gettimeofday_args=1
5617 ac_gettimeofday_args=0
5619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5622 ac_cv_gettimeofday_args=$ac_gettimeofday_args
5625 ac_gettimeofday_args=$ac_cv_gettimeofday_args
5626 if test "$ac_gettimeofday_args" = 1 ; then
5627 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: one argument" >&5
5630 $as_echo "one argument" >&6; }
5631 elif test "$ac_gettimeofday_args" = 2 ; then
5632 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
5634 $as_echo "#define GETTIMEOFDAY_TWO_ARGS 1" >>confdefs.h
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: two arguments" >&5
5637 $as_echo "two arguments" >&6; }
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
5640 $as_echo "unknown" >&6; }
5643 # Check whether --enable-largefile was given.
5644 if test "${enable_largefile+set}" = set; then :
5645 enableval=$enable_largefile;
5648 if test "$enable_largefile" != no; then
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5651 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5652 if ${ac_cv_sys_largefile_CC+:} false; then :
5653 $as_echo_n "(cached) " >&6
5655 ac_cv_sys_largefile_CC=no
5656 if test "$GCC" != yes; then
5659 # IRIX 6.2 and later do not support large files by default,
5660 # so use the C compiler's -n32 option if that helps.
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5663 #include <sys/types.h>
5664 /* Check that off_t can represent 2**63 - 1 correctly.
5665 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5666 since some C++ compilers masquerading as C compilers
5667 incorrectly reject 9223372036854775807. */
5668 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5669 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5670 && LARGE_OFF_T % 2147483647 == 1)
5680 if ac_fn_c_try_compile "$LINENO"; then :
5683 rm -f core conftest.err conftest.$ac_objext
5685 if ac_fn_c_try_compile "$LINENO"; then :
5686 ac_cv_sys_largefile_CC=' -n32'; break
5688 rm -f core conftest.err conftest.$ac_objext
5692 rm -rf conftest.$ac_ext
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5696 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5697 if test "$ac_cv_sys_largefile_CC" != no; then
5698 CC=$CC$ac_cv_sys_largefile_CC
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5702 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5703 if ${ac_cv_sys_file_offset_bits+:} false; then :
5704 $as_echo_n "(cached) " >&6
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5709 #include <sys/types.h>
5710 /* Check that off_t can represent 2**63 - 1 correctly.
5711 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5712 since some C++ compilers masquerading as C compilers
5713 incorrectly reject 9223372036854775807. */
5714 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5715 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5716 && LARGE_OFF_T % 2147483647 == 1)
5726 if ac_fn_c_try_compile "$LINENO"; then :
5727 ac_cv_sys_file_offset_bits=no; break
5729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5731 /* end confdefs.h. */
5732 #define _FILE_OFFSET_BITS 64
5733 #include <sys/types.h>
5734 /* Check that off_t can represent 2**63 - 1 correctly.
5735 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5736 since some C++ compilers masquerading as C compilers
5737 incorrectly reject 9223372036854775807. */
5738 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5739 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5740 && LARGE_OFF_T % 2147483647 == 1)
5750 if ac_fn_c_try_compile "$LINENO"; then :
5751 ac_cv_sys_file_offset_bits=64; break
5753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5754 ac_cv_sys_file_offset_bits=unknown
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5759 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5760 case $ac_cv_sys_file_offset_bits in #(
5763 cat >>confdefs.h <<_ACEOF
5764 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5769 if test $ac_cv_sys_file_offset_bits = unknown; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5771 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5772 if ${ac_cv_sys_large_files+:} false; then :
5773 $as_echo_n "(cached) " >&6
5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777 /* end confdefs.h. */
5778 #include <sys/types.h>
5779 /* Check that off_t can represent 2**63 - 1 correctly.
5780 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5781 since some C++ compilers masquerading as C compilers
5782 incorrectly reject 9223372036854775807. */
5783 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5784 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5785 && LARGE_OFF_T % 2147483647 == 1)
5795 if ac_fn_c_try_compile "$LINENO"; then :
5796 ac_cv_sys_large_files=no; break
5798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5801 #define _LARGE_FILES 1
5802 #include <sys/types.h>
5803 /* Check that off_t can represent 2**63 - 1 correctly.
5804 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5805 since some C++ compilers masquerading as C compilers
5806 incorrectly reject 9223372036854775807. */
5807 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5808 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5809 && LARGE_OFF_T % 2147483647 == 1)
5819 if ac_fn_c_try_compile "$LINENO"; then :
5820 ac_cv_sys_large_files=1; break
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823 ac_cv_sys_large_files=unknown
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5828 $as_echo "$ac_cv_sys_large_files" >&6; }
5829 case $ac_cv_sys_large_files in #(
5832 cat >>confdefs.h <<_ACEOF
5833 #define _LARGE_FILES $ac_cv_sys_large_files
5843 for ac_func in select fcntl uname nice setpriority getcwd getwd putenv sbrk
5845 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5846 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5847 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5848 cat >>confdefs.h <<_ACEOF
5849 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5855 for ac_func in sigaction syslog realpath setrlimit
5857 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5858 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5859 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5860 cat >>confdefs.h <<_ACEOF
5861 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5867 for ac_func in setlocale sqrtf
5869 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5870 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5871 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5872 cat >>confdefs.h <<_ACEOF
5873 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5879 for ac_func in getaddrinfo
5881 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
5882 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
5883 cat >>confdefs.h <<_ACEOF
5884 #define HAVE_GETADDRINFO 1
5890 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
5892 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
5894 cat >>confdefs.h <<_ACEOF
5895 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct icmp" >&5
5902 $as_echo_n "checking for struct icmp... " >&6; }
5903 if ${ac_cv_have_icmp+:} false; then :
5904 $as_echo_n "(cached) " >&6
5906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907 /* end confdefs.h. */
5915 #include <sys/types.h>
5916 #include <sys/time.h>
5917 #include <sys/ipc.h>
5918 #include <sys/shm.h>
5919 #include <sys/socket.h>
5920 #include <netinet/in_systm.h>
5921 #include <netinet/in.h>
5922 #include <netinet/ip.h>
5923 #include <netinet/ip_icmp.h>
5924 #include <netinet/udp.h>
5925 #include <arpa/inet.h>
5932 struct sockaddr_in si;
5934 i.icmp_type = ICMP_ECHO;
5939 si.sin_family = AF_INET;
5940 #if defined(__DECC) || defined(_IP_VHL)
5950 if ac_fn_c_try_compile "$LINENO"; then :
5955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_icmp" >&5
5958 $as_echo "$ac_cv_have_icmp" >&6; }
5959 if test "$ac_cv_have_icmp" = yes ; then
5960 $as_echo "#define HAVE_ICMP 1" >>confdefs.h
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct icmphdr" >&5
5964 $as_echo_n "checking for struct icmphdr... " >&6; }
5965 if ${ac_cv_have_icmphdr+:} false; then :
5966 $as_echo_n "(cached) " >&6
5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h. */
5977 #include <sys/types.h>
5978 #include <sys/time.h>
5979 #include <sys/ipc.h>
5980 #include <sys/shm.h>
5981 #include <sys/socket.h>
5982 #include <netinet/in_systm.h>
5983 #include <netinet/in.h>
5984 #include <netinet/ip.h>
5985 #include <netinet/ip_icmp.h>
5986 #include <netinet/udp.h>
5987 #include <arpa/inet.h>
5994 struct sockaddr_in si;
6000 i.un.echo.sequence = 0;
6001 si.sin_family = AF_INET;
6007 if ac_fn_c_try_compile "$LINENO"; then :
6008 ac_cv_have_icmphdr=yes
6010 ac_cv_have_icmphdr=no
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_icmphdr" >&5
6015 $as_echo "$ac_cv_have_icmphdr" >&6; }
6016 if test "$ac_cv_have_icmphdr" = yes ; then
6017 $as_echo "#define HAVE_ICMPHDR 1" >>confdefs.h
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getifaddrs" >&5
6021 $as_echo_n "checking for getifaddrs... " >&6; }
6022 if ${ac_cv_have_getifaddrs+:} false; then :
6023 $as_echo_n "(cached) " >&6
6025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026 /* end confdefs.h. */
6029 #include <arpa/inet.h>
6030 #include <ifaddrs.h>
6034 struct ifaddrs *ifa;
6037 ifa->ifa_addr->sa_family = 0;
6042 if ac_fn_c_try_compile "$LINENO"; then :
6043 ac_cv_have_getifaddrs=yes
6045 ac_cv_have_getifaddrs=no
6047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getifaddrs" >&5
6050 $as_echo "$ac_cv_have_getifaddrs" >&6; }
6051 if test "$ac_cv_have_getifaddrs" = yes ; then
6052 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
6056 $as_echo_n "checking for socklen_t... " >&6; }
6057 if ${ac_cv_type_socklen_t+:} false; then :
6058 $as_echo_n "(cached) " >&6
6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061 /* end confdefs.h. */
6063 #include <sys/types.h>
6064 #include <sys/socket.h>
6075 if ac_fn_c_try_compile "$LINENO"; then :
6076 ac_cv_type_socklen_t=yes
6078 ac_cv_type_socklen_t=no
6080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
6083 $as_echo "$ac_cv_type_socklen_t" >&6; }
6084 if test "$ac_cv_type_socklen_t" != yes; then
6086 $as_echo "#define socklen_t int" >>confdefs.h
6089 for ac_header in crypt.h sys/select.h
6091 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6092 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6093 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6094 cat >>confdefs.h <<_ACEOF
6095 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6102 for ac_prog in perl5 perl
6104 # Extract the first word of "$ac_prog", so it can be a program name with args.
6105 set dummy $ac_prog; ac_word=$2
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107 $as_echo_n "checking for $ac_word... " >&6; }
6108 if ${ac_cv_path_PERL+:} false; then :
6109 $as_echo_n "(cached) " >&6
6113 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 test -z "$as_dir" && as_dir=.
6121 for ac_exec_ext in '' $ac_executable_extensions; do
6122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6123 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6134 PERL=$ac_cv_path_PERL
6135 if test -n "$PERL"; then
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
6137 $as_echo "$PERL" >&6; }
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140 $as_echo "no" >&6; }
6144 test -n "$PERL" && break
6147 if test -z "$PERL" ; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
6151 $as_echo_n "checking perl version... " >&6; }
6152 if ${ac_cv_perl_version+:} false; then :
6153 $as_echo_n "(cached) " >&6
6155 ac_cv_perl_version=`$PERL -e "$perl_version_cmd"`
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_perl_version" >&5
6158 $as_echo "$ac_cv_perl_version" >&6; }
6159 PERL_VERSION=$ac_cv_perl_version
6163 if test -z "$PERL" ; then
6164 # don't let it be blank...
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6169 $as_echo_n "checking for X... " >&6; }
6172 # Check whether --with-x was given.
6173 if test "${with_x+set}" = set; then :
6177 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6178 if test "x$with_x" = xno; then
6179 # The user explicitly disabled X.
6182 case $x_includes,$x_libraries in #(
6183 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
6184 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
6185 $as_echo_n "(cached) " >&6
6187 # One or both of the vars are not set, and there is no cached value.
6188 ac_x_includes=no ac_x_libraries=no
6189 rm -f -r conftest.dir
6190 if mkdir conftest.dir; then
6192 cat >Imakefile <<'_ACEOF'
6194 @echo incroot='${INCROOT}'
6196 @echo usrlibdir='${USRLIBDIR}'
6198 @echo libdir='${LIBDIR}'
6200 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6201 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6202 for ac_var in incroot usrlibdir libdir; do
6203 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6205 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6206 for ac_extension in a so sl dylib la dll; do
6207 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6208 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6209 ac_im_usrlibdir=$ac_im_libdir; break
6212 # Screen out bogus values from the imake configuration. They are
6213 # bogus both because they are the default anyway, and because
6214 # using them would break gcc on systems where it needs fixed includes.
6215 case $ac_im_incroot in
6216 /usr/include) ac_x_includes= ;;
6217 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6219 case $ac_im_usrlibdir in
6220 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6221 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6225 rm -f -r conftest.dir
6228 # Standard set of common directories for X headers.
6229 # Check X11 before X11Rn because it is often a symlink to the current release.
6243 /usr/local/X11/include
6244 /usr/local/X11R7/include
6245 /usr/local/X11R6/include
6246 /usr/local/X11R5/include
6247 /usr/local/X11R4/include
6249 /usr/local/include/X11
6250 /usr/local/include/X11R7
6251 /usr/local/include/X11R6
6252 /usr/local/include/X11R5
6253 /usr/local/include/X11R4
6257 /usr/XFree86/include/X11
6261 /usr/unsupported/include
6263 /usr/local/x11r5/include
6264 /usr/lpp/Xamples/include
6266 /usr/openwin/include
6267 /usr/openwin/share/include'
6269 if test "$ac_x_includes" = no; then
6270 # Guess where to find include files, by looking for Xlib.h.
6271 # First, try using that file with no special directory specified.
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6274 #include <X11/Xlib.h>
6276 if ac_fn_c_try_cpp "$LINENO"; then :
6277 # We can compile using X headers with no special include directory.
6280 for ac_dir in $ac_x_header_dirs; do
6281 if test -r "$ac_dir/X11/Xlib.h"; then
6282 ac_x_includes=$ac_dir
6287 rm -rf conftest.err conftest.i conftest.$ac_ext
6288 fi # $ac_x_includes = no
6290 if test "$ac_x_libraries" = no; then
6291 # Check for the libraries.
6292 # See if we find them without any special options.
6293 # Don't add to $LIBS permanently.
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6298 #include <X11/Xlib.h>
6307 if ac_fn_c_try_link "$LINENO"; then :
6309 # We can link X programs with no special library path.
6313 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6315 # Don't even attempt the hair of trying to link an X program!
6316 for ac_extension in a so sl dylib la dll; do
6317 if test -r "$ac_dir/libX11.$ac_extension"; then
6318 ac_x_libraries=$ac_dir
6324 rm -f core conftest.err conftest.$ac_objext \
6325 conftest$ac_exeext conftest.$ac_ext
6326 fi # $ac_x_libraries = no
6328 case $ac_x_includes,$ac_x_libraries in #(
6330 # Didn't find X, or a directory has "'" in its name.
6331 ac_cv_have_x="have_x=no";; #(
6333 # Record where we found X for the cache.
6334 ac_cv_have_x="have_x=yes\
6335 ac_x_includes='$ac_x_includes'\
6336 ac_x_libraries='$ac_x_libraries'"
6342 eval "$ac_cv_have_x"
6345 if test "$have_x" != yes; then
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6347 $as_echo "$have_x" >&6; }
6350 # If each of the values was on the command line, it overrides each guess.
6351 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6352 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6353 # Update the cache value to reflect the command line values.
6354 ac_cv_have_x="have_x=yes\
6355 ac_x_includes='$x_includes'\
6356 ac_x_libraries='$x_libraries'"
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6358 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6361 if test "$no_x" = yes; then
6362 # Not all programs may use this symbol, but it does not hurt to define it.
6364 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
6366 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6368 if test -n "$x_includes"; then
6369 X_CFLAGS="$X_CFLAGS -I$x_includes"
6372 # It would also be nice to do this for all -L options, not just this one.
6373 if test -n "$x_libraries"; then
6374 X_LIBS="$X_LIBS -L$x_libraries"
6375 # For Solaris; some versions of Sun CC require a space after -R and
6376 # others require no space. Words are not sufficient . . . .
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
6378 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6379 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6380 ac_xsave_c_werror_flag=$ac_c_werror_flag
6381 ac_c_werror_flag=yes
6382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383 /* end confdefs.h. */
6393 if ac_fn_c_try_link "$LINENO"; then :
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395 $as_echo "no" >&6; }
6396 X_LIBS="$X_LIBS -R$x_libraries"
6398 LIBS="$ac_xsave_LIBS -R $x_libraries"
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6410 if ac_fn_c_try_link "$LINENO"; then :
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6412 $as_echo "yes" >&6; }
6413 X_LIBS="$X_LIBS -R $x_libraries"
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
6416 $as_echo "neither works" >&6; }
6418 rm -f core conftest.err conftest.$ac_objext \
6419 conftest$ac_exeext conftest.$ac_ext
6421 rm -f core conftest.err conftest.$ac_objext \
6422 conftest$ac_exeext conftest.$ac_ext
6423 ac_c_werror_flag=$ac_xsave_c_werror_flag
6427 # Check for system-dependent libraries X programs must link with.
6428 # Do this before checking for the system-independent R6 libraries
6429 # (-lICE), since we may need -lsocket or whatever for X linking.
6431 if test "$ISC" = yes; then
6432 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6434 # Martyn Johnson says this is needed for Ultrix, if the X
6435 # libraries were built with DECnet support. And Karl Berry says
6436 # the Alpha needs dnet_stub (dnet does not exist).
6437 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439 /* end confdefs.h. */
6441 /* Override any GCC internal prototype to avoid an error.
6442 Use char because int might match the return type of a GCC
6443 builtin and then its argument prototype would still apply. */
6447 char XOpenDisplay ();
6451 return XOpenDisplay ();
6456 if ac_fn_c_try_link "$LINENO"; then :
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
6460 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6461 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
6462 $as_echo_n "(cached) " >&6
6464 ac_check_lib_save_LIBS=$LIBS
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6469 /* Override any GCC internal prototype to avoid an error.
6470 Use char because int might match the return type of a GCC
6471 builtin and then its argument prototype would still apply. */
6479 return dnet_ntoa ();
6484 if ac_fn_c_try_link "$LINENO"; then :
6485 ac_cv_lib_dnet_dnet_ntoa=yes
6487 ac_cv_lib_dnet_dnet_ntoa=no
6489 rm -f core conftest.err conftest.$ac_objext \
6490 conftest$ac_exeext conftest.$ac_ext
6491 LIBS=$ac_check_lib_save_LIBS
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6494 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6495 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
6496 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6499 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
6501 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6502 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
6503 $as_echo_n "(cached) " >&6
6505 ac_check_lib_save_LIBS=$LIBS
6506 LIBS="-ldnet_stub $LIBS"
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6510 /* Override any GCC internal prototype to avoid an error.
6511 Use char because int might match the return type of a GCC
6512 builtin and then its argument prototype would still apply. */
6520 return dnet_ntoa ();
6525 if ac_fn_c_try_link "$LINENO"; then :
6526 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6528 ac_cv_lib_dnet_stub_dnet_ntoa=no
6530 rm -f core conftest.err conftest.$ac_objext \
6531 conftest$ac_exeext conftest.$ac_ext
6532 LIBS=$ac_check_lib_save_LIBS
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6535 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6536 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
6537 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6542 rm -f core conftest.err conftest.$ac_objext \
6543 conftest$ac_exeext conftest.$ac_ext
6544 LIBS="$ac_xsave_LIBS"
6546 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6547 # to get the SysV transport functions.
6548 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6550 # The nsl library prevents programs from opening the X display
6551 # on Irix 5.2, according to T.E. Dickey.
6552 # The functions gethostbyname, getservbyname, and inet_addr are
6553 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6554 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
6555 if test "x$ac_cv_func_gethostbyname" = xyes; then :
6559 if test $ac_cv_func_gethostbyname = no; then
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6561 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6562 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
6563 $as_echo_n "(cached) " >&6
6565 ac_check_lib_save_LIBS=$LIBS
6567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h. */
6570 /* Override any GCC internal prototype to avoid an error.
6571 Use char because int might match the return type of a GCC
6572 builtin and then its argument prototype would still apply. */
6576 char gethostbyname ();
6580 return gethostbyname ();
6585 if ac_fn_c_try_link "$LINENO"; then :
6586 ac_cv_lib_nsl_gethostbyname=yes
6588 ac_cv_lib_nsl_gethostbyname=no
6590 rm -f core conftest.err conftest.$ac_objext \
6591 conftest$ac_exeext conftest.$ac_ext
6592 LIBS=$ac_check_lib_save_LIBS
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6595 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6596 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
6597 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6600 if test $ac_cv_lib_nsl_gethostbyname = no; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
6602 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6603 if ${ac_cv_lib_bsd_gethostbyname+:} 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. */
6617 char gethostbyname ();
6621 return gethostbyname ();
6626 if ac_fn_c_try_link "$LINENO"; then :
6627 ac_cv_lib_bsd_gethostbyname=yes
6629 ac_cv_lib_bsd_gethostbyname=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_bsd_gethostbyname" >&5
6636 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6637 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
6638 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6644 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6645 # socket/setsockopt and other routines are undefined under SCO ODT
6646 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6647 # on later versions), says Simon Leinen: it contains gethostby*
6648 # variants that don't use the name server (or something). -lsocket
6649 # must be given before -lnsl if both are needed. We assume that
6650 # if connect needs -lnsl, so does gethostbyname.
6651 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
6652 if test "x$ac_cv_func_connect" = xyes; then :
6656 if test $ac_cv_func_connect = no; then
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6658 $as_echo_n "checking for connect in -lsocket... " >&6; }
6659 if ${ac_cv_lib_socket_connect+:} false; then :
6660 $as_echo_n "(cached) " >&6
6662 ac_check_lib_save_LIBS=$LIBS
6663 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h. */
6667 /* Override any GCC internal prototype to avoid an error.
6668 Use char because int might match the return type of a GCC
6669 builtin and then its argument prototype would still apply. */
6682 if ac_fn_c_try_link "$LINENO"; then :
6683 ac_cv_lib_socket_connect=yes
6685 ac_cv_lib_socket_connect=no
6687 rm -f core conftest.err conftest.$ac_objext \
6688 conftest$ac_exeext conftest.$ac_ext
6689 LIBS=$ac_check_lib_save_LIBS
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6692 $as_echo "$ac_cv_lib_socket_connect" >&6; }
6693 if test "x$ac_cv_lib_socket_connect" = xyes; then :
6694 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6699 # Guillermo Gomez says -lposix is necessary on A/UX.
6700 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
6701 if test "x$ac_cv_func_remove" = xyes; then :
6705 if test $ac_cv_func_remove = no; then
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6707 $as_echo_n "checking for remove in -lposix... " >&6; }
6708 if ${ac_cv_lib_posix_remove+:} false; then :
6709 $as_echo_n "(cached) " >&6
6711 ac_check_lib_save_LIBS=$LIBS
6712 LIBS="-lposix $LIBS"
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6716 /* Override any GCC internal prototype to avoid an error.
6717 Use char because int might match the return type of a GCC
6718 builtin and then its argument prototype would still apply. */
6731 if ac_fn_c_try_link "$LINENO"; then :
6732 ac_cv_lib_posix_remove=yes
6734 ac_cv_lib_posix_remove=no
6736 rm -f core conftest.err conftest.$ac_objext \
6737 conftest$ac_exeext conftest.$ac_ext
6738 LIBS=$ac_check_lib_save_LIBS
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6741 $as_echo "$ac_cv_lib_posix_remove" >&6; }
6742 if test "x$ac_cv_lib_posix_remove" = xyes; then :
6743 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6748 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6749 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6750 if test "x$ac_cv_func_shmat" = xyes; then :
6754 if test $ac_cv_func_shmat = no; then
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6756 $as_echo_n "checking for shmat in -lipc... " >&6; }
6757 if ${ac_cv_lib_ipc_shmat+:} false; then :
6758 $as_echo_n "(cached) " >&6
6760 ac_check_lib_save_LIBS=$LIBS
6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763 /* end confdefs.h. */
6765 /* Override any GCC internal prototype to avoid an error.
6766 Use char because int might match the return type of a GCC
6767 builtin and then its argument prototype would still apply. */
6780 if ac_fn_c_try_link "$LINENO"; then :
6781 ac_cv_lib_ipc_shmat=yes
6783 ac_cv_lib_ipc_shmat=no
6785 rm -f core conftest.err conftest.$ac_objext \
6786 conftest$ac_exeext conftest.$ac_ext
6787 LIBS=$ac_check_lib_save_LIBS
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6790 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
6791 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
6792 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6798 # Check for libraries that X11R6 Xt/Xaw programs need.
6799 ac_save_LDFLAGS=$LDFLAGS
6800 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6801 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6802 # check for ICE first), but we must link in the order -lSM -lICE or
6803 # we get undefined symbols. So assume we have SM if we have ICE.
6804 # These have to be linked with before -lX11, unlike the other
6805 # libraries we check for below, so use a different variable.
6806 # John Interrante, Karl Berry
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6808 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
6809 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
6810 $as_echo_n "(cached) " >&6
6812 ac_check_lib_save_LIBS=$LIBS
6813 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815 /* end confdefs.h. */
6817 /* Override any GCC internal prototype to avoid an error.
6818 Use char because int might match the return type of a GCC
6819 builtin and then its argument prototype would still apply. */
6823 char IceConnectionNumber ();
6827 return IceConnectionNumber ();
6832 if ac_fn_c_try_link "$LINENO"; then :
6833 ac_cv_lib_ICE_IceConnectionNumber=yes
6835 ac_cv_lib_ICE_IceConnectionNumber=no
6837 rm -f core conftest.err conftest.$ac_objext \
6838 conftest$ac_exeext conftest.$ac_ext
6839 LIBS=$ac_check_lib_save_LIBS
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6842 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6843 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
6844 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6847 LDFLAGS=$ac_save_LDFLAGS
6852 if test "$have_x" != yes; then
6853 as_fn_error $? "Couldn't find X11 headers/libs. Try \`$0 --help'." "$LINENO" 5
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X app-defaults directory" >&5
6858 $as_echo_n "checking for X app-defaults directory... " >&6; }
6859 if ${ac_cv_x_app_defaults+:} false; then :
6860 $as_echo_n "(cached) " >&6
6862 # skip this, it's always wrong these days.
6863 # AC_PATH_X_APP_DEFAULTS_XMKMF
6864 if test x"$ac_x_app_defaults" = x; then
6866 # Look for the directory under a standard set of common directories.
6867 # Check X11 before X11Rn because it's often a symlink to the current release.
6870 /usr/share/X11/app-defaults \
6872 /usr/X11/lib/app-defaults \
6873 /usr/X11R6/lib/app-defaults \
6874 /usr/X11R6/lib/X11/app-defaults \
6875 /usr/X11R5/lib/app-defaults \
6876 /usr/X11R5/lib/X11/app-defaults \
6877 /usr/X11R4/lib/app-defaults \
6878 /usr/X11R4/lib/X11/app-defaults \
6880 /usr/lib/X11/app-defaults \
6881 /usr/lib/X11R6/app-defaults \
6882 /usr/lib/X11R5/app-defaults \
6883 /usr/lib/X11R4/app-defaults \
6885 /etc/X11/app-defaults \
6887 /usr/local/X11/lib/app-defaults \
6888 /usr/local/X11R6/lib/app-defaults \
6889 /usr/local/X11R5/lib/app-defaults \
6890 /usr/local/X11R4/lib/app-defaults \
6892 /usr/local/lib/X11/app-defaults \
6893 /usr/local/lib/X11R6/app-defaults \
6894 /usr/local/lib/X11R6/X11/app-defaults \
6895 /usr/local/lib/X11R5/app-defaults \
6896 /usr/local/lib/X11R5/X11/app-defaults \
6897 /usr/local/lib/X11R4/app-defaults \
6898 /usr/local/lib/X11R4/X11/app-defaults \
6900 /usr/X386/lib/X11/app-defaults \
6901 /usr/x386/lib/X11/app-defaults \
6902 /usr/XFree86/lib/X11/app-defaults \
6904 /usr/lib/X11/app-defaults \
6905 /usr/local/lib/X11/app-defaults \
6906 /usr/unsupported/lib/X11/app-defaults \
6907 /usr/athena/lib/X11/app-defaults \
6908 /usr/local/x11r5/lib/X11/app-defaults \
6909 /usr/lpp/Xamples/lib/X11/app-defaults \
6910 /lib/usr/lib/X11/app-defaults \
6912 /usr/openwin/lib/app-defaults \
6913 /usr/openwin/lib/X11/app-defaults \
6914 /usr/openwin/share/lib/app-defaults \
6915 /usr/openwin/share/lib/X11/app-defaults \
6917 /X11R6/lib/app-defaults \
6918 /X11R5/lib/app-defaults \
6919 /X11R4/lib/app-defaults \
6922 if test -d "$ac_dir"; then
6923 ac_x_app_defaults=$ac_dir
6929 if test x"$ac_x_app_defaults" = x; then
6930 /bin/echo -n 'fallback: '
6931 ac_cv_x_app_defaults="/usr/lib/X11/app-defaults"
6933 # Record where we found app-defaults for the cache.
6934 ac_cv_x_app_defaults="$ac_x_app_defaults"
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x_app_defaults" >&5
6938 $as_echo "$ac_cv_x_app_defaults" >&6; }
6939 eval ac_x_app_defaults="$ac_cv_x_app_defaults"
6943 # The following arcana was gleaned from conversations with
6944 # Eric Schwartz <erics@col.hp.com>:
6946 # On HPUX 10.x, the parts of X that HP considers "standard" live in
6947 # /usr/{include,lib}/X11R6/. The parts that HP doesn't consider
6948 # "standard", notably, Xaw and Xmu, live in /usr/contrib/X11R6/.
6949 # Yet /usr/contrib/X11R6/ comes preinstalled on all HPUX systems.
6950 # Also, there are symlinks from /usr/include/ and /usr/lib/ into
6951 # /usr/{include,lib}/X11R6/, so that (if you don't use Xmu at all)
6952 # you don't need any -I or -L arguments.
6954 # On HPUX 9.x, /usr/{include,lib}/X11R5/ and /usr/contrib/X11R5/
6955 # are the same division as 10.x. However, there are no symlinks to
6956 # the X stuff from /usr/include/ and /usr/lib/, so -I and -L
6957 # arguments are always necessary.
6959 # However, X11R6 was available on HPUX 9.x as a patch: if that
6960 # patch was installed, then all of X11R6 went in to
6961 # /usr/contrib/X11R6/ (there was no /usr/{include,lib}/X11R6/.)
6963 # HPUX 8.x was the same as 9.x, but was X11R4 instead (I don't know
6964 # whether R5 was available as a patch; R6 undoubtedly was not.)
6966 # So. We try and use the highest numbered pair of
6967 # /usr/{include,lib}/X11R?/ and /usr/contrib/X11R?/{include,lib}/
6968 # that are available. We do not mix and match different versions
6971 # Question I still don't know the answer to: (do you?)
6973 # * On HPUX 9.x, where /usr/include/X11R5/ was standard, and
6974 # /usr/contrib/X11R6/ could be installed as a patch, what was in
6975 # that contrib directory? Did it contain so-called "standard"
6976 # X11R6, or did it include Xaw and Xmu as well? If the former,
6977 # where did one find Xaw and Xmu on 9.x R6 systems? Would this
6978 # be a situation where one had to reach into the R5 headers and
6979 # libs to find Xmu? That is, must both R6 and R5 directories
6980 # be on the -I and -L lists in that case?
6982 for version in X11R6 X11R5 X11R4 ; do
6983 # if either pair of directories exists...
6984 if test -d /usr/include/$version || test -d /usr/contrib/$version/include
6986 # if contrib exists, use it...
6987 if test -d /usr/contrib/$version/include ; then
6988 X_CFLAGS="$X_CFLAGS -I/usr/contrib/$version/include"
6989 X_LIBS="$X_LIBS -L/usr/contrib/$version/lib"
6991 # if the "standard" one exists, use it.
6992 if test -d /usr/include/$version ; then
6993 X_CFLAGS="$X_CFLAGS -I/usr/include/$version"
6994 X_LIBS="$X_LIBS -L/usr/lib/$version"
6996 # since at least one of the pair exists, go no farther.
7001 # Now find Motif. Thanks for not making xmkmf find this by
7002 # default, you losers.
7004 if test -d /usr/include/Motif2.1 ; then
7005 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif2.1"
7006 X_LIBS="$X_LIBS -L/usr/lib/Motif2.1"
7007 elif test -d /usr/include/Motif1.2 ; then
7008 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.2"
7009 X_LIBS="$X_LIBS -L/usr/lib/Motif1.2"
7010 elif test -d /usr/include/Motif1.1 ; then
7011 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.1"
7012 X_LIBS="$X_LIBS -L/usr/lib/Motif1.1"
7015 # Now let's check for the pseudo-standard locations for OpenGL and XPM.
7017 if test -d /opt/graphics/OpenGL/include ; then
7018 # HP-UX 10.20 puts it here
7019 X_CFLAGS="-I/opt/graphics/OpenGL/include $X_CFLAGS"
7020 X_LIBS="-L/opt/graphics/OpenGL/lib $X_LIBS"
7021 elif test -d /opt/Mesa/lib ; then
7022 X_CFLAGS="-I/opt/Mesa/include $X_CFLAGS"
7023 X_LIBS="-L/opt/Mesa/lib $X_LIBS"
7027 if test -d /opt/xpm/lib/X11 ; then
7028 X_CFLAGS="-I/opt/xpm/include $X_CFLAGS"
7029 X_LIBS="-L/opt/xpm/lib/X11 $X_LIBS"
7032 # On HPUX, default to installing in /opt/xscreensaver/ instead of
7033 # in /usr/local/, unless there is already an xscreensaver in
7034 # /usr/local/bin/. This can be overridden with the --prefix arg
7035 # to configure. I'm not sure this is the right thing to do, but
7036 # Richard Lloyd says so...
7038 if test \! -x /usr/local/bin/xscreensaver ; then
7039 ac_default_prefix=/opt/xscreensaver
7045 # Thanks for not making xmkmf find this by default, pinheads.
7046 # And thanks for moving things around again, too. Is this
7047 # really the standard location now? What happened to the
7048 # joke that this kind of thing went in /opt?
7049 # cthomp says "answer: CDE (Common Disorganized Environment)"
7051 if test -f /usr/dt/include/Xm/Xm.h ; then
7052 X_CFLAGS="$X_CFLAGS -I/usr/dt/include"
7053 MOTIF_LIBS="$MOTIF_LIBS -L/usr/dt/lib -R/usr/dt/lib"
7055 # Some versions of Slowlaris Motif require -lgen. But not all. Why?
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcmp in -lgen" >&5
7057 $as_echo_n "checking for regcmp in -lgen... " >&6; }
7058 if ${ac_cv_lib_gen_regcmp+:} false; then :
7059 $as_echo_n "(cached) " >&6
7061 ac_check_lib_save_LIBS=$LIBS
7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h. */
7066 /* Override any GCC internal prototype to avoid an error.
7067 Use char because int might match the return type of a GCC
7068 builtin and then its argument prototype would still apply. */
7081 if ac_fn_c_try_link "$LINENO"; then :
7082 ac_cv_lib_gen_regcmp=yes
7084 ac_cv_lib_gen_regcmp=no
7086 rm -f core conftest.err conftest.$ac_objext \
7087 conftest$ac_exeext conftest.$ac_ext
7088 LIBS=$ac_check_lib_save_LIBS
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_regcmp" >&5
7091 $as_echo "$ac_cv_lib_gen_regcmp" >&6; }
7092 if test "x$ac_cv_lib_gen_regcmp" = xyes; then :
7093 MOTIF_LIBS="$MOTIF_LIBS -lgen"
7101 # On MacOS X (10.x with "fink"), many things are under /sw/.
7103 if test -d /sw/include ; then
7104 X_CFLAGS="-I/sw/include $X_CFLAGS"
7105 X_LIBS="-L/sw/lib $X_LIBS"
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPointer" >&5
7110 $as_echo_n "checking for XPointer... " >&6; }
7111 if ${ac_cv_xpointer+:} false; then :
7112 $as_echo_n "(cached) " >&6
7115 ac_save_CPPFLAGS="$CPPFLAGS"
7116 if test \! -z "$includedir" ; then
7117 CPPFLAGS="$CPPFLAGS -I$includedir"
7119 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7120 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
7121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122 /* end confdefs.h. */
7123 #include <X11/Xlib.h>
7127 XPointer foo = (XPointer) 0;
7132 if ac_fn_c_try_compile "$LINENO"; then :
7137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7138 CPPFLAGS="$ac_save_CPPFLAGS"
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xpointer" >&5
7141 $as_echo "$ac_cv_xpointer" >&6; }
7142 if test "$ac_cv_xpointer" != yes; then
7143 $as_echo "#define XPointer char*" >>confdefs.h
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this is MacOS X" >&5
7148 $as_echo_n "checking whether this is MacOS X... " >&6; }
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_macosx" >&5
7156 $as_echo "$ac_macosx" >&6; }
7159 ###############################################################################
7163 ###############################################################################
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7167 $as_echo_n "checking whether NLS is requested... " >&6; }
7168 # Check whether --enable-nls was given.
7169 if test "${enable_nls+set}" = set; then :
7170 enableval=$enable_nls; USE_NLS=$enableval
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7176 $as_echo "$USE_NLS" >&6; }
7181 case "$am__api_version" in
7183 as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
7189 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
7190 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
7191 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= " >&5
7194 $as_echo_n "checking for intltool >= ... " >&6; }
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
7196 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
7197 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
7198 as_fn_error $? "Your intltool is too old. You need intltool or later." "$LINENO" 5
7201 # Extract the first word of "intltool-update", so it can be a program name with args.
7202 set dummy intltool-update; ac_word=$2
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204 $as_echo_n "checking for $ac_word... " >&6; }
7205 if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
7206 $as_echo_n "(cached) " >&6
7208 case $INTLTOOL_UPDATE in
7210 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7220 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
7221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
7232 if test -n "$INTLTOOL_UPDATE"; then
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
7234 $as_echo "$INTLTOOL_UPDATE" >&6; }
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7241 # Extract the first word of "intltool-merge", so it can be a program name with args.
7242 set dummy intltool-merge; ac_word=$2
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244 $as_echo_n "checking for $ac_word... " >&6; }
7245 if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
7246 $as_echo_n "(cached) " >&6
7248 case $INTLTOOL_MERGE in
7250 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7260 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
7261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
7272 if test -n "$INTLTOOL_MERGE"; then
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
7274 $as_echo "$INTLTOOL_MERGE" >&6; }
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277 $as_echo "no" >&6; }
7281 # Extract the first word of "intltool-extract", so it can be a program name with args.
7282 set dummy intltool-extract; ac_word=$2
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284 $as_echo_n "checking for $ac_word... " >&6; }
7285 if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
7286 $as_echo_n "(cached) " >&6
7288 case $INTLTOOL_EXTRACT in
7290 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7300 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
7301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7311 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
7312 if test -n "$INTLTOOL_EXTRACT"; then
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
7314 $as_echo "$INTLTOOL_EXTRACT" >&6; }
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7317 $as_echo "no" >&6; }
7321 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
7322 as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
7325 if test -z "$AM_DEFAULT_VERBOSITY"; then
7326 AM_DEFAULT_VERBOSITY=1
7330 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
7331 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
7332 INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;'
7337 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
7338 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
7339 intltool__v_merge_options_0='-q'
7344 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7345 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7346 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7347 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7348 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@'
7349 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7350 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7351 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7352 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7353 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7354 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7355 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
7356 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@'
7358 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir'
7360 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7361 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7362 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7363 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7364 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7365 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7366 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7464 # Check the gettext tools to make sure they are GNU
7465 # Extract the first word of "xgettext", so it can be a program name with args.
7466 set dummy xgettext; ac_word=$2
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468 $as_echo_n "checking for $ac_word... " >&6; }
7469 if ${ac_cv_path_XGETTEXT+:} false; then :
7470 $as_echo_n "(cached) " >&6
7474 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7484 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
7485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 XGETTEXT=$ac_cv_path_XGETTEXT
7496 if test -n "$XGETTEXT"; then
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7498 $as_echo "$XGETTEXT" >&6; }
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501 $as_echo "no" >&6; }
7505 # Extract the first word of "msgmerge", so it can be a program name with args.
7506 set dummy msgmerge; ac_word=$2
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7508 $as_echo_n "checking for $ac_word... " >&6; }
7509 if ${ac_cv_path_MSGMERGE+:} false; then :
7510 $as_echo_n "(cached) " >&6
7514 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7524 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
7525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 MSGMERGE=$ac_cv_path_MSGMERGE
7536 if test -n "$MSGMERGE"; then
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7538 $as_echo "$MSGMERGE" >&6; }
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541 $as_echo "no" >&6; }
7545 # Extract the first word of "msgfmt", so it can be a program name with args.
7546 set dummy msgfmt; ac_word=$2
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548 $as_echo_n "checking for $ac_word... " >&6; }
7549 if ${ac_cv_path_MSGFMT+:} false; then :
7550 $as_echo_n "(cached) " >&6
7554 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7564 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 MSGFMT=$ac_cv_path_MSGFMT
7576 if test -n "$MSGFMT"; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7578 $as_echo "$MSGFMT" >&6; }
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581 $as_echo "no" >&6; }
7585 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7586 set dummy gmsgfmt; ac_word=$2
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 $as_echo_n "checking for $ac_word... " >&6; }
7589 if ${ac_cv_path_GMSGFMT+:} false; then :
7590 $as_echo_n "(cached) " >&6
7594 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7604 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7616 GMSGFMT=$ac_cv_path_GMSGFMT
7617 if test -n "$GMSGFMT"; then
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7619 $as_echo "$GMSGFMT" >&6; }
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622 $as_echo "no" >&6; }
7626 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
7627 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
7629 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
7630 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
7631 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
7632 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
7633 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
7636 # Substitute ALL_LINGUAS so we can use it in po/Makefile
7642 GETTEXT_PACKAGE=xscreensaver
7644 cat >>confdefs.h <<_ACEOF
7645 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
7649 cat >>confdefs.h <<_ACEOF
7650 #define PACKAGE "$GETTEXT_PACKAGE"
7655 ALL_LINGUAS="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"
7657 for ac_header in locale.h
7659 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
7660 if test "x$ac_cv_header_locale_h" = xyes; then :
7661 cat >>confdefs.h <<_ACEOF
7662 #define HAVE_LOCALE_H 1
7669 if test $ac_cv_header_locale_h = yes; then
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
7671 $as_echo_n "checking for LC_MESSAGES... " >&6; }
7672 if ${am_cv_val_LC_MESSAGES+:} false; then :
7673 $as_echo_n "(cached) " >&6
7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676 /* end confdefs.h. */
7686 if ac_fn_c_try_link "$LINENO"; then :
7687 am_cv_val_LC_MESSAGES=yes
7689 am_cv_val_LC_MESSAGES=no
7691 rm -f core conftest.err conftest.$ac_objext \
7692 conftest$ac_exeext conftest.$ac_ext
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
7695 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
7696 if test $am_cv_val_LC_MESSAGES = yes; then
7698 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
7705 gt_cv_have_gettext=no
7711 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
7712 if test "x$ac_cv_header_libintl_h" = xyes; then :
7713 gt_cv_func_dgettext_libintl="no"
7714 libintl_extra_libs=""
7717 # First check in libc
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
7720 $as_echo_n "checking for ngettext in libc... " >&6; }
7721 if ${gt_cv_func_ngettext_libc+:} false; then :
7722 $as_echo_n "(cached) " >&6
7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h. */
7727 #include <libintl.h>
7732 return !ngettext ("","", 1)
7737 if ac_fn_c_try_link "$LINENO"; then :
7738 gt_cv_func_ngettext_libc=yes
7740 gt_cv_func_ngettext_libc=no
7742 rm -f core conftest.err conftest.$ac_objext \
7743 conftest$ac_exeext conftest.$ac_ext
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
7747 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
7749 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
7751 $as_echo_n "checking for dgettext in libc... " >&6; }
7752 if ${gt_cv_func_dgettext_libc+:} false; then :
7753 $as_echo_n "(cached) " >&6
7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756 /* end confdefs.h. */
7758 #include <libintl.h>
7763 return !dgettext ("","")
7768 if ac_fn_c_try_link "$LINENO"; then :
7769 gt_cv_func_dgettext_libc=yes
7771 gt_cv_func_dgettext_libc=no
7773 rm -f core conftest.err conftest.$ac_objext \
7774 conftest$ac_exeext conftest.$ac_ext
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
7778 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
7781 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
7782 for ac_func in bind_textdomain_codeset
7784 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
7785 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
7786 cat >>confdefs.h <<_ACEOF
7787 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
7796 # If we don't have everything we want, check in libintl
7798 if test "$gt_cv_func_dgettext_libc" != "yes" \
7799 || test "$gt_cv_func_ngettext_libc" != "yes" \
7800 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
7803 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
7804 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
7805 $as_echo_n "(cached) " >&6
7807 ac_check_lib_save_LIBS=$LIBS
7809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810 /* end confdefs.h. */
7812 /* Override any GCC internal prototype to avoid an error.
7813 Use char because int might match the return type of a GCC
7814 builtin and then its argument prototype would still apply. */
7818 char bindtextdomain ();
7822 return bindtextdomain ();
7827 if ac_fn_c_try_link "$LINENO"; then :
7828 ac_cv_lib_intl_bindtextdomain=yes
7830 ac_cv_lib_intl_bindtextdomain=no
7832 rm -f core conftest.err conftest.$ac_objext \
7833 conftest$ac_exeext conftest.$ac_ext
7834 LIBS=$ac_check_lib_save_LIBS
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
7837 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
7838 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
7840 $as_echo_n "checking for ngettext in -lintl... " >&6; }
7841 if ${ac_cv_lib_intl_ngettext+:} false; then :
7842 $as_echo_n "(cached) " >&6
7844 ac_check_lib_save_LIBS=$LIBS
7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7849 /* Override any GCC internal prototype to avoid an error.
7850 Use char because int might match the return type of a GCC
7851 builtin and then its argument prototype would still apply. */
7864 if ac_fn_c_try_link "$LINENO"; then :
7865 ac_cv_lib_intl_ngettext=yes
7867 ac_cv_lib_intl_ngettext=no
7869 rm -f core conftest.err conftest.$ac_objext \
7870 conftest$ac_exeext conftest.$ac_ext
7871 LIBS=$ac_check_lib_save_LIBS
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
7874 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
7875 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
7877 $as_echo_n "checking for dgettext in -lintl... " >&6; }
7878 if ${ac_cv_lib_intl_dgettext+:} false; then :
7879 $as_echo_n "(cached) " >&6
7881 ac_check_lib_save_LIBS=$LIBS
7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h. */
7886 /* Override any GCC internal prototype to avoid an error.
7887 Use char because int might match the return type of a GCC
7888 builtin and then its argument prototype would still apply. */
7901 if ac_fn_c_try_link "$LINENO"; then :
7902 ac_cv_lib_intl_dgettext=yes
7904 ac_cv_lib_intl_dgettext=no
7906 rm -f core conftest.err conftest.$ac_objext \
7907 conftest$ac_exeext conftest.$ac_ext
7908 LIBS=$ac_check_lib_save_LIBS
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
7911 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
7912 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
7913 gt_cv_func_dgettext_libintl=yes
7921 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
7923 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
7927 $as_echo_n "checking for ngettext in -lintl... " >&6; }
7928 if ${ac_cv_lib_intl_ngettext+:} false; then :
7929 $as_echo_n "(cached) " >&6
7931 ac_check_lib_save_LIBS=$LIBS
7932 LIBS="-lintl -liconv $LIBS"
7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7936 /* Override any GCC internal prototype to avoid an error.
7937 Use char because int might match the return type of a GCC
7938 builtin and then its argument prototype would still apply. */
7951 if ac_fn_c_try_link "$LINENO"; then :
7952 ac_cv_lib_intl_ngettext=yes
7954 ac_cv_lib_intl_ngettext=no
7956 rm -f core conftest.err conftest.$ac_objext \
7957 conftest$ac_exeext conftest.$ac_ext
7958 LIBS=$ac_check_lib_save_LIBS
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
7961 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
7962 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
7964 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
7965 if ${ac_cv_lib_intl_dcgettext+:} false; then :
7966 $as_echo_n "(cached) " >&6
7968 ac_check_lib_save_LIBS=$LIBS
7969 LIBS="-lintl -liconv $LIBS"
7970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7971 /* end confdefs.h. */
7973 /* Override any GCC internal prototype to avoid an error.
7974 Use char because int might match the return type of a GCC
7975 builtin and then its argument prototype would still apply. */
7983 return dcgettext ();
7988 if ac_fn_c_try_link "$LINENO"; then :
7989 ac_cv_lib_intl_dcgettext=yes
7991 ac_cv_lib_intl_dcgettext=no
7993 rm -f core conftest.err conftest.$ac_objext \
7994 conftest$ac_exeext conftest.$ac_ext
7995 LIBS=$ac_check_lib_save_LIBS
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
7998 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
7999 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
8000 gt_cv_func_dgettext_libintl=yes
8001 libintl_extra_libs=-liconv
8013 # If we found libintl, then check in it for bind_textdomain_codeset();
8014 # we'll prefer libc if neither have bind_textdomain_codeset(),
8015 # and both have dgettext and ngettext
8017 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
8018 glib_save_LIBS="$LIBS"
8019 LIBS="$LIBS -lintl $libintl_extra_libs"
8020 unset ac_cv_func_bind_textdomain_codeset
8021 for ac_func in bind_textdomain_codeset
8023 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
8024 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
8025 cat >>confdefs.h <<_ACEOF
8026 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
8032 LIBS="$glib_save_LIBS"
8034 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
8035 gt_cv_func_dgettext_libc=no
8037 if test "$gt_cv_func_dgettext_libc" = "yes" \
8038 && test "$gt_cv_func_ngettext_libc" = "yes"; then
8039 gt_cv_func_dgettext_libintl=no
8045 if test "$gt_cv_func_dgettext_libc" = "yes" \
8046 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
8047 gt_cv_have_gettext=yes
8050 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
8051 INTLLIBS="-lintl $libintl_extra_libs"
8054 if test "$gt_cv_have_gettext" = "yes"; then
8056 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8058 # Extract the first word of "msgfmt", so it can be a program name with args.
8059 set dummy msgfmt; ac_word=$2
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8061 $as_echo_n "checking for $ac_word... " >&6; }
8062 if ${ac_cv_path_MSGFMT+:} false; then :
8063 $as_echo_n "(cached) " >&6
8067 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8071 for ac_dir in $PATH; do
8072 test -z "$ac_dir" && ac_dir=.
8073 if test -f $ac_dir/$ac_word; then
8074 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8075 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8081 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8085 MSGFMT="$ac_cv_path_MSGFMT"
8086 if test "$MSGFMT" != "no"; then
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8088 $as_echo "$MSGFMT" >&6; }
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091 $as_echo "no" >&6; }
8093 if test "$MSGFMT" != "no"; then
8094 glib_save_LIBS="$LIBS"
8095 LIBS="$LIBS $INTLLIBS"
8096 for ac_func in dcgettext
8098 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
8099 if test "x$ac_cv_func_dcgettext" = xyes; then :
8100 cat >>confdefs.h <<_ACEOF
8101 #define HAVE_DCGETTEXT 1
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
8109 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
8110 cat >conftest.foo <<_ACEOF
8114 "Content-Type: text/plain; charset=UTF-8\n"
8115 "Project-Id-Version: test 1.0\n"
8116 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
8117 "Last-Translator: test <foo@bar.xx>\n"
8118 "Language-Team: C <LL@li.org>\n"
8119 "MIME-Version: 1.0\n"
8120 "Content-Transfer-Encoding: 8bit\n"
8123 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
8124 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
8126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8127 test $ac_status = 0; }; then
8128 MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8129 $as_echo "yes" >&6; }
8130 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131 $as_echo "no" >&6; }
8132 echo "$as_me: failed input was:" >&5
8133 sed 's/^/| /' conftest.foo >&5
8136 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8137 set dummy gmsgfmt; ac_word=$2
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8139 $as_echo_n "checking for $ac_word... " >&6; }
8140 if ${ac_cv_path_GMSGFMT+:} false; then :
8141 $as_echo_n "(cached) " >&6
8145 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152 test -z "$as_dir" && as_dir=.
8153 for ac_exec_ext in '' $ac_executable_extensions; do
8154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8155 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8163 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8167 GMSGFMT=$ac_cv_path_GMSGFMT
8168 if test -n "$GMSGFMT"; then
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8170 $as_echo "$GMSGFMT" >&6; }
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173 $as_echo "no" >&6; }
8177 # Extract the first word of "xgettext", so it can be a program name with args.
8178 set dummy xgettext; ac_word=$2
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8180 $as_echo_n "checking for $ac_word... " >&6; }
8181 if ${ac_cv_path_XGETTEXT+:} false; then :
8182 $as_echo_n "(cached) " >&6
8186 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8190 for ac_dir in $PATH; do
8191 test -z "$ac_dir" && ac_dir=.
8192 if test -f $ac_dir/$ac_word; then
8193 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8194 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8200 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8204 XGETTEXT="$ac_cv_path_XGETTEXT"
8205 if test "$XGETTEXT" != ":"; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8207 $as_echo "$XGETTEXT" >&6; }
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8210 $as_echo "no" >&6; }
8213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214 /* end confdefs.h. */
8219 extern int _nl_msg_cat_cntr;
8220 return _nl_msg_cat_cntr
8225 if ac_fn_c_try_link "$LINENO"; then :
8231 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
8232 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
8251 rm -f core conftest.err conftest.$ac_objext \
8252 conftest$ac_exeext conftest.$ac_ext
8253 LIBS="$glib_save_LIBS"
8256 gt_cv_have_gettext=no
8264 if test "$gt_cv_have_gettext" = "yes" ; then
8266 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8270 if test "$XGETTEXT" != ":"; then
8271 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
8275 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
8280 # We need to process the po/ directory.
8283 ac_config_commands="$ac_config_commands default-1"
8286 for lang in $ALL_LINGUAS; do
8287 GMOFILES="$GMOFILES $lang.gmo"
8288 POFILES="$POFILES $lang.po"
8303 if test "$gt_cv_have_gettext" = "yes"; then
8304 if test "x$ALL_LINGUAS" = "x"; then
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8308 $as_echo_n "checking for catalogs to be installed... " >&6; }
8310 for presentlang in $ALL_LINGUAS; do
8312 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
8313 desiredlanguages="$LINGUAS"
8315 desiredlanguages="$ALL_LINGUAS"
8317 for desiredlang in $desiredlanguages; do
8318 # Use the presentlang catalog if desiredlang is
8319 # a. equal to presentlang, or
8320 # b. a variant of presentlang (because in this case,
8321 # presentlang can be used as a fallback for messages
8322 # which are not translated in the desiredlang catalog).
8323 case "$desiredlang" in
8324 "$presentlang"*) useit=yes;;
8327 if test $useit = yes; then
8328 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
8331 LINGUAS=$NEW_LINGUAS
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8333 $as_echo "$LINGUAS" >&6; }
8336 if test -n "$LINGUAS"; then
8337 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8342 if test -n "$ac_aux_dir"; then
8343 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8345 if test -z "$MKINSTALLDIRS"; then
8346 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8350 test -d po || mkdir po
8351 if test "x$srcdir" != "x."; then
8352 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8353 posrcprefix="$srcdir/"
8355 posrcprefix="../$srcdir/"
8361 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8362 < $srcdir/po/POTFILES.in > po/POTFILES
8364 MKINSTALLDIRS="$INSTALL_DIRS"
8367 ###############################################################################
8369 # Check for -lXmu (some fucked up vendors don't ship it...)
8371 ###############################################################################
8375 ac_save_CPPFLAGS="$CPPFLAGS"
8376 if test \! -z "$includedir" ; then
8377 CPPFLAGS="$CPPFLAGS -I$includedir"
8379 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8380 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8381 ac_fn_c_check_header_compile "$LINENO" "X11/Xmu/Error.h" "ac_cv_header_X11_Xmu_Error_h" "#include <stdlib.h>
8383 #include <X11/Intrinsic.h>
8385 if test "x$ac_cv_header_X11_Xmu_Error_h" = xyes; then :
8390 CPPFLAGS="$ac_save_CPPFLAGS"
8391 if test "$have_xmu" = no ; then
8392 XMU_SRCS='$(UTILS_SRC)/xmu.c'
8393 XMU_OBJS='$(UTILS_BIN)/xmu.o'
8399 $as_echo "#define HAVE_XMU 1" >>confdefs.h
8404 ###############################################################################
8406 # Check for the SunOS 4.1.x _get_wmShellWidgetClass bug.
8407 # See comp.windows.x FAQ question 124. The right fix is to
8408 # get OpenWindows 3.0 patches 100512-02 and 100573-03.
8410 ###############################################################################
8412 if test "$have_xmu" = yes ; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the SunOS 4.1.x _get_wmShellWidgetClass bug" >&5
8416 $as_echo_n "checking for the SunOS 4.1.x _get_wmShellWidgetClass bug... " >&6; }
8417 if ${ac_cv_sunos_xmu_bug+:} false; then :
8418 $as_echo_n "(cached) " >&6
8420 ac_save_LDFLAGS="$LDFLAGS"
8421 if test \! -z "$x_libraries" ; then
8422 LDFLAGS="$LDFLAGS -L$x_libraries"
8424 # Note: this trick never works! (Generally.)
8425 # We're only getting away with using AC_TRY_LINK
8426 # with X libraries because we know it's SunOS.
8427 LDFLAGS="$LDFLAGS -lXmu -lXt -lX11 -lXext -lm"
8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429 /* end confdefs.h. */
8439 if ac_fn_c_try_link "$LINENO"; then :
8440 ac_cv_sunos_xmu_bug=no
8442 ac_cv_sunos_xmu_bug=yes
8444 rm -f core conftest.err conftest.$ac_objext \
8445 conftest$ac_exeext conftest.$ac_ext
8446 LDFLAGS="$ac_save_LDFLAGS"
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sunos_xmu_bug" >&5
8449 $as_echo "$ac_cv_sunos_xmu_bug" >&6; }
8450 if test "$ac_cv_sunos_xmu_bug" = yes ; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static" >&5
8452 $as_echo_n "checking whether the compiler understands -static... " >&6; }
8453 if ${ac_cv_ld_static+:} false; then :
8454 $as_echo_n "(cached) " >&6
8456 ac_save_LDFLAGS="$LDFLAGS"
8457 LDFLAGS="$LDFLAGS -static"
8458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h. */
8469 if ac_fn_c_try_link "$LINENO"; then :
8474 rm -f core conftest.err conftest.$ac_objext \
8475 conftest$ac_exeext conftest.$ac_ext
8476 LDFLAGS="$ac_save_LDFLAGS"
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ld_static" >&5
8479 $as_echo "$ac_cv_ld_static" >&6; }
8480 if test "$ac_cv_ld_static" = yes ; then
8481 LDFLAGS="$LDFLAGS -static"
8483 LDFLAGS="$LDFLAGS -Bstatic"
8491 ###############################################################################
8493 # Handle the --with-hackdir option
8495 ###############################################################################
8498 with_hackdir_req=unspecified
8500 # Check whether --with-hackdir was given.
8501 if test "${with_hackdir+set}" = set; then :
8502 withval=$with_hackdir; with_hackdir="$withval"; with_hackdir_req="$withval"
8508 if test x"$with_hackdir" = xyes; then
8509 HACKDIR='${libexecdir}/xscreensaver'
8510 elif test x"$with_hackdir" = xno; then
8513 HACKDIR=$with_hackdir
8516 # canonicalize slashes.
8517 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
8519 # Expand HACKDIR as HACKDIR_FULL
8520 HACKDIR_FULL=`eval eval eval eval eval eval eval eval eval echo $HACKDIR`
8522 # This option used to be called --enable-subdir; make sure that is no longer
8523 # used, since configure brain-damagedly ignores unknown --enable options.
8526 # Check whether --enable-subdir was given.
8527 if test "${enable_subdir+set}" = set; then :
8528 enableval=$enable_subdir; obsolete_enable=yes
8531 if test -n "$obsolete_enable"; then
8532 echo "error: the --enable-subdir option has been replaced with"
8533 echo " the new --with-hackdir option; see \`configure --help'"
8534 echo " for more information."
8539 ###############################################################################
8541 # Handle the --with-configdir option
8542 # Help for --with-x-app-defaults option added.
8544 ###############################################################################
8547 with_configdir_req=unspecified
8549 # Check whether --with-configdir was given.
8550 if test "${with_configdir+set}" = set; then :
8551 withval=$with_configdir; with_configdir="$withval"; with_configdir_req="$withval"
8557 if test x"$with_configdir" = xyes; then
8558 HACK_CONF_DIR='${datadir}/xscreensaver/config'
8559 elif test x"$with_configdir" = xno; then
8560 echo "error: must be yes, or a pathname: --with-configdir=$with_configdir"
8563 # there must be a better way than this...
8564 if test -z "`echo $with_configdir | sed 's@^/.*@@'`" ; then
8566 HACK_CONF_DIR=$with_configdir
8569 HACK_CONF_DIR="\${exec_prefix}$with_configdir"
8576 ###############################################################################
8578 # Check for the SGI SCREEN_SAVER server extension.
8580 ###############################################################################
8583 #with_sgi_req=unspecified
8584 #AC_ARG_WITH(sgi-ext,
8585 #[Except where noted, all of the --with options below can also take a
8586 #directory argument: for example, `--with-motif=/opt/Motif'. That would
8587 #cause /opt/Motif/include/ to be added to the -I list, and /opt/Motif/lib/
8588 #to be added to the -L list, assuming those directories exist.
8590 #By default, support for each of these options will be built in, if the
8591 #relevant library routines exist. At run time, they will then be used
8592 #only if the X server being used supports them. Each --with option has
8593 #a corresponding --without option, to override building support for them
8596 #Screen blanking and idle-detection options:
8598 # --with-sgi-ext Include support for the SGI SCREEN_SAVER extension.],
8599 # [with_sgi="$withval"; with_sgi_req="$withval"],[with_sgi=yes])
8601 #HANDLE_X_PATH_ARG(with_sgi, --with-sgi-ext, SGI SCREEN_SAVER)
8603 #if test "$with_sgi" = yes; then
8604 # AC_CHECK_X_HEADER(X11/extensions/XScreenSaver.h,
8606 # AC_DEFINE(HAVE_SGI_SAVER_EXTENSION)],,
8607 # [#include <X11/Xlib.h>])
8609 #elif test "$with_sgi" != no; then
8610 # echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
8615 ###############################################################################
8617 # Check for the XIDLE server extension.
8619 ###############################################################################
8622 #with_xidle_req=unspecified
8623 #AC_ARG_WITH(xidle-ext,
8624 #[ --with-xidle-ext Include support for the XIDLE extension.],
8625 # [with_xidle="$withval"; with_xidle_req="$withval"],[with_xidle=yes])
8627 #HANDLE_X_PATH_ARG(with_xidle, --with-xidle-ext, XIDLE)
8629 #if test "$with_xidle" = yes; then
8630 # AC_CHECK_X_HEADER(X11/extensions/xidle.h,
8632 # AC_DEFINE(HAVE_XIDLE_EXTENSION)],,
8633 # [#include <X11/Xlib.h>])
8634 #elif test "$with_xidle" != no; then
8635 # echo "error: must be yes or no: --with-xidle-ext=$with_xidle"
8640 ###############################################################################
8642 # Check for the SGI-VIDEO-CONTROL server extension.
8644 ###############################################################################
8647 #with_sgivc_req=unspecified
8648 #AC_ARG_WITH(sgivc-ext,
8649 #[ --with-sgivc-ext Include support for the SGI-VIDEO-CONTROL extension.],
8650 # [with_sgivc="$withval"; with_sgivc_req="$withval"],[with_sgivc=yes])
8652 #HANDLE_X_PATH_ARG(with_sgivc, --with-sgivc-ext, SGI-VIDEO-CONTROL)
8654 #if test "$with_sgivc" = yes; then
8656 # # first check for XSGIvc.h
8657 # AC_CHECK_X_HEADER(X11/extensions/XSGIvc.h, [have_sgivc=yes],,
8658 # [#include <X11/Xlib.h>])
8660 # # if that succeeded, then check for the -lXsgivc
8661 # if test "$have_sgivc" = yes; then
8663 # AC_CHECK_X_LIB(Xsgivc, XSGIvcQueryGammaMap,
8664 # [have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"], [true],
8668 # # if that succeeded, then we've really got it.
8669 # if test "$have_sgivc" = yes; then
8670 # AC_DEFINE(HAVE_SGI_VC_EXTENSION)
8673 #elif test "$with_sgivc" != no; then
8674 # echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
8679 ###############################################################################
8681 # Check for the DPMS server extension.
8683 ###############################################################################
8686 with_dpms_req=unspecified
8688 # Check whether --with-dpms-ext was given.
8689 if test "${with_dpms_ext+set}" = set; then :
8690 withval=$with_dpms_ext; with_dpms="$withval"; with_dpms_req="$withval"
8697 case "$with_dpms" in
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPMS headers" >&5
8703 $as_echo_n "checking for DPMS headers... " >&6; }
8704 d=$with_dpms/include
8706 X_CFLAGS="-I$d $X_CFLAGS"
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
8708 $as_echo "$d" >&6; }
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
8711 $as_echo "not found ($d: no such directory)" >&6; }
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPMS libs" >&5
8715 $as_echo_n "checking for DPMS libs... " >&6; }
8718 X_LIBS="-L$d $X_LIBS"
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
8720 $as_echo "$d" >&6; }
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
8723 $as_echo "not found ($d: no such directory)" >&6; }
8726 # replace the directory string with "yes".
8728 with_dpms=$with_dpms_req
8733 echo "error: argument to --with-dpms-ext must be \"yes\", \"no\", or a directory."
8734 echo " If it is a directory, then \`DIR/include' will be added to"
8735 echo " the -I list, and \`DIR/lib' will be added to the -L list."
8741 if test "$with_dpms" = yes; then
8743 # first check for dpms.h
8745 ac_save_CPPFLAGS="$CPPFLAGS"
8746 if test \! -z "$includedir" ; then
8747 CPPFLAGS="$CPPFLAGS -I$includedir"
8749 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8750 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8751 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/dpms.h" "ac_cv_header_X11_extensions_dpms_h" "#include <X11/Xlib.h>
8752 #include <X11/Xmd.h>
8754 if test "x$ac_cv_header_X11_extensions_dpms_h" = xyes; then :
8759 CPPFLAGS="$ac_save_CPPFLAGS"
8761 # if that succeeded, then check for the DPMS code in the libraries
8762 if test "$have_dpms" = yes; then
8764 # first look in -lXext (this is where it is with XFree86 4.0)
8767 ac_save_CPPFLAGS="$CPPFLAGS"
8768 ac_save_LDFLAGS="$LDFLAGS"
8769 # ac_save_LIBS="$LIBS"
8771 if test \! -z "$includedir" ; then
8772 CPPFLAGS="$CPPFLAGS -I$includedir"
8774 # note: $X_CFLAGS includes $x_includes
8775 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8777 if test \! -z "$libdir" ; then
8778 LDFLAGS="$LDFLAGS -L$libdir"
8780 # note: $X_LIBS includes $x_libraries
8781 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
8783 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8784 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPMSInfo in -lXext" >&5
8786 $as_echo_n "checking for DPMSInfo in -lXext... " >&6; }
8787 if ${ac_cv_lib_Xext_DPMSInfo+:} false; then :
8788 $as_echo_n "(cached) " >&6
8790 ac_check_lib_save_LIBS=$LIBS
8791 LIBS="-lXext -lXext -lX11 $LIBS"
8792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793 /* end confdefs.h. */
8795 /* Override any GCC internal prototype to avoid an error.
8796 Use char because int might match the return type of a GCC
8797 builtin and then its argument prototype would still apply. */
8810 if ac_fn_c_try_link "$LINENO"; then :
8811 ac_cv_lib_Xext_DPMSInfo=yes
8813 ac_cv_lib_Xext_DPMSInfo=no
8815 rm -f core conftest.err conftest.$ac_objext \
8816 conftest$ac_exeext conftest.$ac_ext
8817 LIBS=$ac_check_lib_save_LIBS
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_DPMSInfo" >&5
8820 $as_echo "$ac_cv_lib_Xext_DPMSInfo" >&6; }
8821 if test "x$ac_cv_lib_Xext_DPMSInfo" = xyes; then :
8827 CPPFLAGS="$ac_save_CPPFLAGS"
8828 LDFLAGS="$ac_save_LDFLAGS"
8829 # LIBS="$ac_save_LIBS"
8832 # if that failed, look in -lXdpms (this is where it was in XFree86 3.x)
8833 if test "$have_dpms" = no; then
8835 ac_save_CPPFLAGS="$CPPFLAGS"
8836 ac_save_LDFLAGS="$LDFLAGS"
8837 # ac_save_LIBS="$LIBS"
8839 if test \! -z "$includedir" ; then
8840 CPPFLAGS="$CPPFLAGS -I$includedir"
8842 # note: $X_CFLAGS includes $x_includes
8843 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8845 if test \! -z "$libdir" ; then
8846 LDFLAGS="$LDFLAGS -L$libdir"
8848 # note: $X_LIBS includes $x_libraries
8849 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
8851 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8852 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPMSInfo in -lXdpms" >&5
8854 $as_echo_n "checking for DPMSInfo in -lXdpms... " >&6; }
8855 if ${ac_cv_lib_Xdpms_DPMSInfo+:} false; then :
8856 $as_echo_n "(cached) " >&6
8858 ac_check_lib_save_LIBS=$LIBS
8859 LIBS="-lXdpms -lXext -lX11 $LIBS"
8860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861 /* end confdefs.h. */
8863 /* Override any GCC internal prototype to avoid an error.
8864 Use char because int might match the return type of a GCC
8865 builtin and then its argument prototype would still apply. */
8878 if ac_fn_c_try_link "$LINENO"; then :
8879 ac_cv_lib_Xdpms_DPMSInfo=yes
8881 ac_cv_lib_Xdpms_DPMSInfo=no
8883 rm -f core conftest.err conftest.$ac_objext \
8884 conftest$ac_exeext conftest.$ac_ext
8885 LIBS=$ac_check_lib_save_LIBS
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdpms_DPMSInfo" >&5
8888 $as_echo "$ac_cv_lib_Xdpms_DPMSInfo" >&6; }
8889 if test "x$ac_cv_lib_Xdpms_DPMSInfo" = xyes; then :
8890 have_dpms=yes; XDPMS_LIBS="-lXdpms"
8895 CPPFLAGS="$ac_save_CPPFLAGS"
8896 LDFLAGS="$ac_save_LDFLAGS"
8897 # LIBS="$ac_save_LIBS"
8903 # if that succeeded, then we've really got it.
8904 if test "$have_dpms" = yes; then
8905 $as_echo "#define HAVE_DPMS_EXTENSION 1" >>confdefs.h
8909 elif test "$with_dpms" != no; then
8910 echo "error: must be yes or no: --with-dpms-ext=$with_dpms"
8915 ###############################################################################
8917 # Check for the XINERAMA server extension.
8919 ###############################################################################
8922 with_xinerama_req=unspecified
8924 # Check whether --with-xinerama-ext was given.
8925 if test "${with_xinerama_ext+set}" = set; then :
8926 withval=$with_xinerama_ext; with_xinerama="$withval"; with_xinerama_req="$withval"
8933 case "$with_xinerama" in
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINERAMA headers" >&5
8939 $as_echo_n "checking for XINERAMA headers... " >&6; }
8940 d=$with_xinerama/include
8942 X_CFLAGS="-I$d $X_CFLAGS"
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
8944 $as_echo "$d" >&6; }
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
8947 $as_echo "not found ($d: no such directory)" >&6; }
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINERAMA libs" >&5
8951 $as_echo_n "checking for XINERAMA libs... " >&6; }
8952 d=$with_xinerama/lib
8954 X_LIBS="-L$d $X_LIBS"
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
8956 $as_echo "$d" >&6; }
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
8959 $as_echo "not found ($d: no such directory)" >&6; }
8962 # replace the directory string with "yes".
8963 with_xinerama_req="yes"
8964 with_xinerama=$with_xinerama_req
8969 echo "error: argument to --with-xinerama-ext must be \"yes\", \"no\", or a directory."
8970 echo " If it is a directory, then \`DIR/include' will be added to"
8971 echo " the -I list, and \`DIR/lib' will be added to the -L list."
8977 if test "$with_xinerama" = yes; then
8979 # first check for Xinerama.h
8981 ac_save_CPPFLAGS="$CPPFLAGS"
8982 if test \! -z "$includedir" ; then
8983 CPPFLAGS="$CPPFLAGS -I$includedir"
8985 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8986 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8987 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
8989 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
8994 CPPFLAGS="$ac_save_CPPFLAGS"
8996 # if that succeeded, then check for the XINERAMA code in the libraries
8997 if test "$have_xinerama" = yes; then
8999 # first look in -lXext
9002 ac_save_CPPFLAGS="$CPPFLAGS"
9003 ac_save_LDFLAGS="$LDFLAGS"
9004 # ac_save_LIBS="$LIBS"
9006 if test \! -z "$includedir" ; then
9007 CPPFLAGS="$CPPFLAGS -I$includedir"
9009 # note: $X_CFLAGS includes $x_includes
9010 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9012 if test \! -z "$libdir" ; then
9013 LDFLAGS="$LDFLAGS -L$libdir"
9015 # note: $X_LIBS includes $x_libraries
9016 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9018 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9019 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryScreens in -lXext" >&5
9021 $as_echo_n "checking for XineramaQueryScreens in -lXext... " >&6; }
9022 if ${ac_cv_lib_Xext_XineramaQueryScreens+:} false; then :
9023 $as_echo_n "(cached) " >&6
9025 ac_check_lib_save_LIBS=$LIBS
9026 LIBS="-lXext -lXext -lX11 $LIBS"
9027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9030 /* Override any GCC internal prototype to avoid an error.
9031 Use char because int might match the return type of a GCC
9032 builtin and then its argument prototype would still apply. */
9036 char XineramaQueryScreens ();
9040 return XineramaQueryScreens ();
9045 if ac_fn_c_try_link "$LINENO"; then :
9046 ac_cv_lib_Xext_XineramaQueryScreens=yes
9048 ac_cv_lib_Xext_XineramaQueryScreens=no
9050 rm -f core conftest.err conftest.$ac_objext \
9051 conftest$ac_exeext conftest.$ac_ext
9052 LIBS=$ac_check_lib_save_LIBS
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XineramaQueryScreens" >&5
9055 $as_echo "$ac_cv_lib_Xext_XineramaQueryScreens" >&6; }
9056 if test "x$ac_cv_lib_Xext_XineramaQueryScreens" = xyes; then :
9062 CPPFLAGS="$ac_save_CPPFLAGS"
9063 LDFLAGS="$ac_save_LDFLAGS"
9064 # LIBS="$ac_save_LIBS"
9067 # if that failed, look in -lXinerama (this is where it is in XFree86 4.1.)
9068 if test "$have_xinerama" = no; then
9070 ac_save_CPPFLAGS="$CPPFLAGS"
9071 ac_save_LDFLAGS="$LDFLAGS"
9072 # ac_save_LIBS="$LIBS"
9074 if test \! -z "$includedir" ; then
9075 CPPFLAGS="$CPPFLAGS -I$includedir"
9077 # note: $X_CFLAGS includes $x_includes
9078 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9080 if test \! -z "$libdir" ; then
9081 LDFLAGS="$LDFLAGS -L$libdir"
9083 # note: $X_LIBS includes $x_libraries
9084 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9086 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9087 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryScreens in -lXinerama" >&5
9089 $as_echo_n "checking for XineramaQueryScreens in -lXinerama... " >&6; }
9090 if ${ac_cv_lib_Xinerama_XineramaQueryScreens+:} false; then :
9091 $as_echo_n "(cached) " >&6
9093 ac_check_lib_save_LIBS=$LIBS
9094 LIBS="-lXinerama -lXext -lX11 $LIBS"
9095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h. */
9098 /* Override any GCC internal prototype to avoid an error.
9099 Use char because int might match the return type of a GCC
9100 builtin and then its argument prototype would still apply. */
9104 char XineramaQueryScreens ();
9108 return XineramaQueryScreens ();
9113 if ac_fn_c_try_link "$LINENO"; then :
9114 ac_cv_lib_Xinerama_XineramaQueryScreens=yes
9116 ac_cv_lib_Xinerama_XineramaQueryScreens=no
9118 rm -f core conftest.err conftest.$ac_objext \
9119 conftest$ac_exeext conftest.$ac_ext
9120 LIBS=$ac_check_lib_save_LIBS
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
9123 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
9124 if test "x$ac_cv_lib_Xinerama_XineramaQueryScreens" = xyes; then :
9125 have_xinerama=yes; XINERAMA_LIBS="-lXinerama"
9130 CPPFLAGS="$ac_save_CPPFLAGS"
9131 LDFLAGS="$ac_save_LDFLAGS"
9132 # LIBS="$ac_save_LIBS"
9137 # if that succeeded, then we've really got it.
9138 if test "$have_xinerama" = yes; then
9139 $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
9143 elif test "$with_xinerama" != no; then
9144 echo "error: must be yes or no: --with-xinerama-ext=$with_xinerama"
9149 ###############################################################################
9151 # Check for the XINPUT server extension.
9153 ###############################################################################
9156 with_xinput_req=unspecified
9158 # Check whether --with-xinput-ext was given.
9159 if test "${with_xinput_ext+set}" = set; then :
9160 withval=$with_xinput_ext; with_xinput="$withval"; with_xinput_req="$withval"
9167 case "$with_xinput" in
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINPUT headers" >&5
9173 $as_echo_n "checking for XINPUT headers... " >&6; }
9174 d=$with_xinput/include
9176 X_CFLAGS="-I$d $X_CFLAGS"
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
9178 $as_echo "$d" >&6; }
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
9181 $as_echo "not found ($d: no such directory)" >&6; }
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINPUT libs" >&5
9185 $as_echo_n "checking for XINPUT libs... " >&6; }
9188 X_LIBS="-L$d $X_LIBS"
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
9190 $as_echo "$d" >&6; }
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
9193 $as_echo "not found ($d: no such directory)" >&6; }
9196 # replace the directory string with "yes".
9197 with_xinput_req="yes"
9198 with_xinput=$with_xinput_req
9203 echo "error: argument to --with-xinput-ext must be \"yes\", \"no\", or a directory."
9204 echo " If it is a directory, then \`DIR/include' will be added to"
9205 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9211 if test "$with_xinput" = yes; then
9213 # first check for Xinput.h
9215 ac_save_CPPFLAGS="$CPPFLAGS"
9216 if test \! -z "$includedir" ; then
9217 CPPFLAGS="$CPPFLAGS -I$includedir"
9219 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9220 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9221 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput.h" "ac_cv_header_X11_extensions_XInput_h" "#include <X11/Xlib.h>
9223 if test "x$ac_cv_header_X11_extensions_XInput_h" = xyes; then :
9228 CPPFLAGS="$ac_save_CPPFLAGS"
9230 # if that succeeded, then check for libXi
9231 if test "$have_xinput" = yes; then
9234 ac_save_CPPFLAGS="$CPPFLAGS"
9235 ac_save_LDFLAGS="$LDFLAGS"
9236 # ac_save_LIBS="$LIBS"
9238 if test \! -z "$includedir" ; then
9239 CPPFLAGS="$CPPFLAGS -I$includedir"
9241 # note: $X_CFLAGS includes $x_includes
9242 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9244 if test \! -z "$libdir" ; then
9245 LDFLAGS="$LDFLAGS -L$libdir"
9247 # note: $X_LIBS includes $x_libraries
9248 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9250 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9251 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XListInputDevices in -lXi" >&5
9253 $as_echo_n "checking for XListInputDevices in -lXi... " >&6; }
9254 if ${ac_cv_lib_Xi_XListInputDevices+:} false; then :
9255 $as_echo_n "(cached) " >&6
9257 ac_check_lib_save_LIBS=$LIBS
9258 LIBS="-lXi -lXext -lX11 $LIBS"
9259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260 /* end confdefs.h. */
9262 /* Override any GCC internal prototype to avoid an error.
9263 Use char because int might match the return type of a GCC
9264 builtin and then its argument prototype would still apply. */
9268 char XListInputDevices ();
9272 return XListInputDevices ();
9277 if ac_fn_c_try_link "$LINENO"; then :
9278 ac_cv_lib_Xi_XListInputDevices=yes
9280 ac_cv_lib_Xi_XListInputDevices=no
9282 rm -f core conftest.err conftest.$ac_objext \
9283 conftest$ac_exeext conftest.$ac_ext
9284 LIBS=$ac_check_lib_save_LIBS
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XListInputDevices" >&5
9287 $as_echo "$ac_cv_lib_Xi_XListInputDevices" >&6; }
9288 if test "x$ac_cv_lib_Xi_XListInputDevices" = xyes; then :
9289 have_xinput=yes; SAVER_LIBS="$SAVER_LIBS -lXi"
9294 CPPFLAGS="$ac_save_CPPFLAGS"
9295 LDFLAGS="$ac_save_LDFLAGS"
9296 # LIBS="$ac_save_LIBS"
9300 # if that succeeded, then we've really got it.
9301 if test "$have_xinput" = yes; then
9302 $as_echo "#define HAVE_XINPUT 1" >>confdefs.h
9306 elif test "$with_xinput" != no; then
9307 echo "error: must be yes or no: --with-xinput-ext=$with_xinput"
9312 ###############################################################################
9314 # Check for the XF86VMODE server extension (for virtual screens.)
9316 ###############################################################################
9319 with_xf86vmode_req=unspecified
9321 # Check whether --with-xf86vmode-ext was given.
9322 if test "${with_xf86vmode_ext+set}" = set; then :
9323 withval=$with_xf86vmode_ext; with_xf86vmode="$withval"; with_xf86vmode_req="$withval"
9330 case "$with_xf86vmode" in
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xf86vmode headers" >&5
9336 $as_echo_n "checking for xf86vmode headers... " >&6; }
9337 d=$with_xf86vmode/include
9339 X_CFLAGS="-I$d $X_CFLAGS"
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
9341 $as_echo "$d" >&6; }
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
9344 $as_echo "not found ($d: no such directory)" >&6; }
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xf86vmode libs" >&5
9348 $as_echo_n "checking for xf86vmode libs... " >&6; }
9349 d=$with_xf86vmode/lib
9351 X_LIBS="-L$d $X_LIBS"
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
9353 $as_echo "$d" >&6; }
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
9356 $as_echo "not found ($d: no such directory)" >&6; }
9359 # replace the directory string with "yes".
9360 with_xf86vmode_req="yes"
9361 with_xf86vmode=$with_xf86vmode_req
9366 echo "error: argument to --with-xf86vmode-ext must be \"yes\", \"no\", or a directory."
9367 echo " If it is a directory, then \`DIR/include' will be added to"
9368 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9376 if test "$with_xf86vmode" = yes; then
9378 # first check for xf86vmode.h
9380 ac_save_CPPFLAGS="$CPPFLAGS"
9381 if test \! -z "$includedir" ; then
9382 CPPFLAGS="$CPPFLAGS -I$includedir"
9384 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9385 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9386 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
9388 if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
9393 CPPFLAGS="$ac_save_CPPFLAGS"
9395 # if that succeeded, then check for the -lXxf86vm
9396 if test "$have_xf86vmode" = yes; then
9399 ac_save_CPPFLAGS="$CPPFLAGS"
9400 ac_save_LDFLAGS="$LDFLAGS"
9401 # ac_save_LIBS="$LIBS"
9403 if test \! -z "$includedir" ; then
9404 CPPFLAGS="$CPPFLAGS -I$includedir"
9406 # note: $X_CFLAGS includes $x_includes
9407 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9409 if test \! -z "$libdir" ; then
9410 LDFLAGS="$LDFLAGS -L$libdir"
9412 # note: $X_LIBS includes $x_libraries
9413 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9415 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9416 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeGetViewPort in -lXxf86vm" >&5
9418 $as_echo_n "checking for XF86VidModeGetViewPort in -lXxf86vm... " >&6; }
9419 if ${ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort+:} false; then :
9420 $as_echo_n "(cached) " >&6
9422 ac_check_lib_save_LIBS=$LIBS
9423 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */
9427 /* Override any GCC internal prototype to avoid an error.
9428 Use char because int might match the return type of a GCC
9429 builtin and then its argument prototype would still apply. */
9433 char XF86VidModeGetViewPort ();
9437 return XF86VidModeGetViewPort ();
9442 if ac_fn_c_try_link "$LINENO"; then :
9443 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=yes
9445 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=no
9447 rm -f core conftest.err conftest.$ac_objext \
9448 conftest$ac_exeext conftest.$ac_ext
9449 LIBS=$ac_check_lib_save_LIBS
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&5
9452 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&6; }
9453 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" = xyes; then :
9455 VIDMODE_LIBS="-lXxf86vm";
9456 SAVER_LIBS="$SAVER_LIBS $VIDMODE_LIBS"
9461 CPPFLAGS="$ac_save_CPPFLAGS"
9462 LDFLAGS="$ac_save_LDFLAGS"
9463 # LIBS="$ac_save_LIBS"
9467 # if that succeeded, then we've really got it.
9468 if test "$have_xf86vmode" = yes; then
9469 $as_echo "#define HAVE_XF86VMODE 1" >>confdefs.h
9473 elif test "$with_xf86vmode" != no; then
9474 echo "error: must be yes or no: --with-xf86vmode-ext=$with_xf86vmode"
9479 ###############################################################################
9481 # Check for the XF86VMODE server extension (for gamma fading.)
9483 ###############################################################################
9486 have_xf86gamma_ramp=no
9487 with_xf86gamma_req=unspecified
9489 # Check whether --with-xf86gamma-ext was given.
9490 if test "${with_xf86gamma_ext+set}" = set; then :
9491 withval=$with_xf86gamma_ext; with_xf86gamma="$withval"; with_xf86gamma_req="$withval"
9498 case "$with_xf86gamma" in
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xf86gamma headers" >&5
9504 $as_echo_n "checking for xf86gamma headers... " >&6; }
9505 d=$with_xf86gamma/include
9507 X_CFLAGS="-I$d $X_CFLAGS"
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
9509 $as_echo "$d" >&6; }
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
9512 $as_echo "not found ($d: no such directory)" >&6; }
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xf86gamma libs" >&5
9516 $as_echo_n "checking for xf86gamma libs... " >&6; }
9517 d=$with_xf86gamma/lib
9519 X_LIBS="-L$d $X_LIBS"
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
9521 $as_echo "$d" >&6; }
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
9524 $as_echo "not found ($d: no such directory)" >&6; }
9527 # replace the directory string with "yes".
9528 with_xf86gamma_req="yes"
9529 with_xf86gamma=$with_xf86gamma_req
9534 echo "error: argument to --with-xf86gamma-ext must be \"yes\", \"no\", or a directory."
9535 echo " If it is a directory, then \`DIR/include' will be added to"
9536 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9542 if test "$with_xf86gamma" = yes; then
9544 # first check for xf86vmode.h, if we haven't already
9545 if test "$have_xf86vmode" = yes; then
9549 ac_save_CPPFLAGS="$CPPFLAGS"
9550 if test \! -z "$includedir" ; then
9551 CPPFLAGS="$CPPFLAGS -I$includedir"
9553 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9554 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9555 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
9557 if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
9562 CPPFLAGS="$ac_save_CPPFLAGS"
9565 # if that succeeded, then check for the -lXxf86vm
9566 if test "$have_xf86gamma" = yes; then
9569 ac_save_CPPFLAGS="$CPPFLAGS"
9570 ac_save_LDFLAGS="$LDFLAGS"
9571 # ac_save_LIBS="$LIBS"
9573 if test \! -z "$includedir" ; then
9574 CPPFLAGS="$CPPFLAGS -I$includedir"
9576 # note: $X_CFLAGS includes $x_includes
9577 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9579 if test \! -z "$libdir" ; then
9580 LDFLAGS="$LDFLAGS -L$libdir"
9582 # note: $X_LIBS includes $x_libraries
9583 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9585 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9586 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeSetGamma in -lXxf86vm" >&5
9588 $as_echo_n "checking for XF86VidModeSetGamma in -lXxf86vm... " >&6; }
9589 if ${ac_cv_lib_Xxf86vm_XF86VidModeSetGamma+:} false; then :
9590 $as_echo_n "(cached) " >&6
9592 ac_check_lib_save_LIBS=$LIBS
9593 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
9594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9595 /* end confdefs.h. */
9597 /* Override any GCC internal prototype to avoid an error.
9598 Use char because int might match the return type of a GCC
9599 builtin and then its argument prototype would still apply. */
9603 char XF86VidModeSetGamma ();
9607 return XF86VidModeSetGamma ();
9612 if ac_fn_c_try_link "$LINENO"; then :
9613 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=yes
9615 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=no
9617 rm -f core conftest.err conftest.$ac_objext \
9618 conftest$ac_exeext conftest.$ac_ext
9619 LIBS=$ac_check_lib_save_LIBS
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&5
9622 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&6; }
9623 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" = xyes; then :
9629 CPPFLAGS="$ac_save_CPPFLAGS"
9630 LDFLAGS="$ac_save_LDFLAGS"
9631 # LIBS="$ac_save_LIBS"
9635 # check for the Ramp versions of the functions too.
9636 if test "$have_xf86gamma" = yes; then
9637 have_xf86gamma_ramp=no
9639 ac_save_CPPFLAGS="$CPPFLAGS"
9640 ac_save_LDFLAGS="$LDFLAGS"
9641 # ac_save_LIBS="$LIBS"
9643 if test \! -z "$includedir" ; then
9644 CPPFLAGS="$CPPFLAGS -I$includedir"
9646 # note: $X_CFLAGS includes $x_includes
9647 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9649 if test \! -z "$libdir" ; then
9650 LDFLAGS="$LDFLAGS -L$libdir"
9652 # note: $X_LIBS includes $x_libraries
9653 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9655 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9656 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeSetGammaRamp in -lXxf86vm" >&5
9658 $as_echo_n "checking for XF86VidModeSetGammaRamp in -lXxf86vm... " >&6; }
9659 if ${ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp+:} false; then :
9660 $as_echo_n "(cached) " >&6
9662 ac_check_lib_save_LIBS=$LIBS
9663 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
9664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9665 /* end confdefs.h. */
9667 /* Override any GCC internal prototype to avoid an error.
9668 Use char because int might match the return type of a GCC
9669 builtin and then its argument prototype would still apply. */
9673 char XF86VidModeSetGammaRamp ();
9677 return XF86VidModeSetGammaRamp ();
9682 if ac_fn_c_try_link "$LINENO"; then :
9683 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=yes
9685 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=no
9687 rm -f core conftest.err conftest.$ac_objext \
9688 conftest$ac_exeext conftest.$ac_ext
9689 LIBS=$ac_check_lib_save_LIBS
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&5
9692 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&6; }
9693 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" = xyes; then :
9694 have_xf86gamma_ramp=yes
9699 CPPFLAGS="$ac_save_CPPFLAGS"
9700 LDFLAGS="$ac_save_LDFLAGS"
9701 # LIBS="$ac_save_LIBS"
9705 # if those tests succeeded, then we've really got the functions.
9706 if test "$have_xf86gamma" = yes; then
9707 $as_echo "#define HAVE_XF86VMODE_GAMMA 1" >>confdefs.h
9711 if test "$have_xf86gamma_ramp" = yes; then
9712 $as_echo "#define HAVE_XF86VMODE_GAMMA_RAMP 1" >>confdefs.h
9716 # pull in the lib, if we haven't already
9717 if test "$have_xf86gamma" = yes -a "$have_xf86vmode" = no; then
9718 SAVER_LIBS="$SAVER_LIBS -lXxf86vm"
9721 elif test "$with_xf86gamma" != no; then
9722 echo "error: must be yes or no: --with-xf86gamma-ext=$with_xf86vmode"
9727 ###############################################################################
9729 # Check for the RANDR (Resize and Rotate) server extension.
9731 # We need this to detect when the resolution of the desktop
9732 # has changed out from under us (this is a newer, different
9733 # mechanism than the XF86VMODE virtual viewports.)
9735 ###############################################################################
9738 with_randr_req=unspecified
9740 # Check whether --with-randr-ext was given.
9741 if test "${with_randr_ext+set}" = set; then :
9742 withval=$with_randr_ext; with_randr="$withval"; with_randr_req="$withval"
9749 case "$with_randr" in
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RANDR headers" >&5
9755 $as_echo_n "checking for RANDR headers... " >&6; }
9756 d=$with_randr/include
9758 X_CFLAGS="-I$d $X_CFLAGS"
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
9760 $as_echo "$d" >&6; }
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
9763 $as_echo "not found ($d: no such directory)" >&6; }
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RANDR libs" >&5
9767 $as_echo_n "checking for RANDR libs... " >&6; }
9770 X_LIBS="-L$d $X_LIBS"
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
9772 $as_echo "$d" >&6; }
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
9775 $as_echo "not found ($d: no such directory)" >&6; }
9778 # replace the directory string with "yes".
9779 with_randr_req="yes"
9780 with_randr=$with_randr_req
9785 echo "error: argument to --with-randr-ext must be \"yes\", \"no\", or a directory."
9786 echo " If it is a directory, then \`DIR/include' will be added to"
9787 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9793 if test "$with_randr" = yes; then
9795 # first check for Xrandr.h
9797 ac_save_CPPFLAGS="$CPPFLAGS"
9798 if test \! -z "$includedir" ; then
9799 CPPFLAGS="$CPPFLAGS -I$includedir"
9801 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9802 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9803 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "#include <X11/Xlib.h>
9805 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = xyes; then :
9810 CPPFLAGS="$ac_save_CPPFLAGS"
9812 # if that succeeded, then check for the XRR code in the libraries
9813 if test "$have_randr" = yes; then
9815 # RANDR probably needs -lXrender
9818 ac_save_CPPFLAGS="$CPPFLAGS"
9819 ac_save_LDFLAGS="$LDFLAGS"
9820 # ac_save_LIBS="$LIBS"
9822 if test \! -z "$includedir" ; then
9823 CPPFLAGS="$CPPFLAGS -I$includedir"
9825 # note: $X_CFLAGS includes $x_includes
9826 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9828 if test \! -z "$libdir" ; then
9829 LDFLAGS="$LDFLAGS -L$libdir"
9831 # note: $X_LIBS includes $x_libraries
9832 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9834 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9835 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetSubpixelOrder in -lXrender" >&5
9837 $as_echo_n "checking for XRenderSetSubpixelOrder in -lXrender... " >&6; }
9838 if ${ac_cv_lib_Xrender_XRenderSetSubpixelOrder+:} false; then :
9839 $as_echo_n "(cached) " >&6
9841 ac_check_lib_save_LIBS=$LIBS
9842 LIBS="-lXrender -lXext -lX11 $LIBS"
9843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9844 /* end confdefs.h. */
9846 /* Override any GCC internal prototype to avoid an error.
9847 Use char because int might match the return type of a GCC
9848 builtin and then its argument prototype would still apply. */
9852 char XRenderSetSubpixelOrder ();
9856 return XRenderSetSubpixelOrder ();
9861 if ac_fn_c_try_link "$LINENO"; then :
9862 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=yes
9864 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=no
9866 rm -f core conftest.err conftest.$ac_objext \
9867 conftest$ac_exeext conftest.$ac_ext
9868 LIBS=$ac_check_lib_save_LIBS
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&5
9871 $as_echo "$ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&6; }
9872 if test "x$ac_cv_lib_Xrender_XRenderSetSubpixelOrder" = xyes; then :
9873 xrender_libs="-lXrender"
9878 CPPFLAGS="$ac_save_CPPFLAGS"
9879 LDFLAGS="$ac_save_LDFLAGS"
9880 # LIBS="$ac_save_LIBS"
9883 # first look for RANDR in -lXext
9886 ac_save_CPPFLAGS="$CPPFLAGS"
9887 ac_save_LDFLAGS="$LDFLAGS"
9888 # ac_save_LIBS="$LIBS"
9890 if test \! -z "$includedir" ; then
9891 CPPFLAGS="$CPPFLAGS -I$includedir"
9893 # note: $X_CFLAGS includes $x_includes
9894 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9896 if test \! -z "$libdir" ; then
9897 LDFLAGS="$LDFLAGS -L$libdir"
9899 # note: $X_LIBS includes $x_libraries
9900 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9902 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9903 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenInfo in -lXext" >&5
9905 $as_echo_n "checking for XRRGetScreenInfo in -lXext... " >&6; }
9906 if ${ac_cv_lib_Xext_XRRGetScreenInfo+:} false; then :
9907 $as_echo_n "(cached) " >&6
9909 ac_check_lib_save_LIBS=$LIBS
9910 LIBS="-lXext $xrender_libs -lXext -lX11 $LIBS"
9911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912 /* end confdefs.h. */
9914 /* Override any GCC internal prototype to avoid an error.
9915 Use char because int might match the return type of a GCC
9916 builtin and then its argument prototype would still apply. */
9920 char XRRGetScreenInfo ();
9924 return XRRGetScreenInfo ();
9929 if ac_fn_c_try_link "$LINENO"; then :
9930 ac_cv_lib_Xext_XRRGetScreenInfo=yes
9932 ac_cv_lib_Xext_XRRGetScreenInfo=no
9934 rm -f core conftest.err conftest.$ac_objext \
9935 conftest$ac_exeext conftest.$ac_ext
9936 LIBS=$ac_check_lib_save_LIBS
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XRRGetScreenInfo" >&5
9939 $as_echo "$ac_cv_lib_Xext_XRRGetScreenInfo" >&6; }
9940 if test "x$ac_cv_lib_Xext_XRRGetScreenInfo" = xyes; then :
9941 have_randr=yes; SAVER_LIBS="$SAVER_LIBS $xrender_libs"
9946 CPPFLAGS="$ac_save_CPPFLAGS"
9947 LDFLAGS="$ac_save_LDFLAGS"
9948 # LIBS="$ac_save_LIBS"
9951 # if that failed, look in -lXrandr
9952 if test "$have_randr" = no; then
9954 ac_save_CPPFLAGS="$CPPFLAGS"
9955 ac_save_LDFLAGS="$LDFLAGS"
9956 # ac_save_LIBS="$LIBS"
9958 if test \! -z "$includedir" ; then
9959 CPPFLAGS="$CPPFLAGS -I$includedir"
9961 # note: $X_CFLAGS includes $x_includes
9962 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9964 if test \! -z "$libdir" ; then
9965 LDFLAGS="$LDFLAGS -L$libdir"
9967 # note: $X_LIBS includes $x_libraries
9968 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9970 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9971 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenInfo in -lXrandr" >&5
9973 $as_echo_n "checking for XRRGetScreenInfo in -lXrandr... " >&6; }
9974 if ${ac_cv_lib_Xrandr_XRRGetScreenInfo+:} false; then :
9975 $as_echo_n "(cached) " >&6
9977 ac_check_lib_save_LIBS=$LIBS
9978 LIBS="-lXrandr $xrender_libs -lXext -lX11 $LIBS"
9979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9980 /* end confdefs.h. */
9982 /* Override any GCC internal prototype to avoid an error.
9983 Use char because int might match the return type of a GCC
9984 builtin and then its argument prototype would still apply. */
9988 char XRRGetScreenInfo ();
9992 return XRRGetScreenInfo ();
9997 if ac_fn_c_try_link "$LINENO"; then :
9998 ac_cv_lib_Xrandr_XRRGetScreenInfo=yes
10000 ac_cv_lib_Xrandr_XRRGetScreenInfo=no
10002 rm -f core conftest.err conftest.$ac_objext \
10003 conftest$ac_exeext conftest.$ac_ext
10004 LIBS=$ac_check_lib_save_LIBS
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRGetScreenInfo" >&5
10007 $as_echo "$ac_cv_lib_Xrandr_XRRGetScreenInfo" >&6; }
10008 if test "x$ac_cv_lib_Xrandr_XRRGetScreenInfo" = xyes; then :
10009 have_randr=yes; SAVER_LIBS="$SAVER_LIBS -lXrandr $xrender_libs"
10014 CPPFLAGS="$ac_save_CPPFLAGS"
10015 LDFLAGS="$ac_save_LDFLAGS"
10016 # LIBS="$ac_save_LIBS"
10021 # if that succeeded, then we've really got it.
10022 if test "$have_randr" = yes; then
10023 $as_echo "#define HAVE_RANDR 1" >>confdefs.h
10026 # Now check for version 1.2 in the same libs.
10027 # Try to compile, since on MacOS 10.5.7, headers are older than libs!
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenResources" >&5
10029 $as_echo_n "checking for XRRGetScreenResources... " >&6; }
10030 if ${ac_cv_randr_12+:} false; then :
10031 $as_echo_n "(cached) " >&6
10035 ac_save_CPPFLAGS="$CPPFLAGS"
10036 if test \! -z "$includedir" ; then
10037 CPPFLAGS="$CPPFLAGS -I$includedir"
10039 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10040 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10042 /* end confdefs.h. */
10043 #include <stdlib.h>
10044 #include <X11/Xlib.h>
10045 #include <X11/extensions/Xrandr.h>
10049 XRRScreenResources *res =
10050 XRRGetScreenResources (0, 0);
10055 if ac_fn_c_try_compile "$LINENO"; then :
10060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10061 CPPFLAGS="$ac_save_CPPFLAGS"
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_randr_12" >&5
10064 $as_echo "$ac_cv_randr_12" >&6; }
10065 if test "$ac_cv_randr_12" = yes ; then
10066 $as_echo "#define HAVE_RANDR_12 1" >>confdefs.h
10069 # AC_CHECK_X_LIB(c, XRRGetOutputInfo, [AC_DEFINE(HAVE_RANDR_12)],
10070 # [true], $SAVER_LIBS)
10074 elif test "$with_randr" != no; then
10075 echo "error: must be yes or no: --with-randr-ext=$with_randr"
10080 ###############################################################################
10082 # Check for XF86MiscSetGrabKeysState (but only bother if we are already
10083 # using other XF86 stuff.)
10085 ###############################################################################
10087 have_xf86miscsetgrabkeysstate=no
10088 if test "$have_xf86gamma" = yes -o "$have_xf86vmode" = yes; then
10090 ac_save_CPPFLAGS="$CPPFLAGS"
10091 ac_save_LDFLAGS="$LDFLAGS"
10092 # ac_save_LIBS="$LIBS"
10094 if test \! -z "$includedir" ; then
10095 CPPFLAGS="$CPPFLAGS -I$includedir"
10097 # note: $X_CFLAGS includes $x_includes
10098 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10100 if test \! -z "$libdir" ; then
10101 LDFLAGS="$LDFLAGS -L$libdir"
10103 # note: $X_LIBS includes $x_libraries
10104 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10106 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10107 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86MiscSetGrabKeysState in -lXxf86misc" >&5
10109 $as_echo_n "checking for XF86MiscSetGrabKeysState in -lXxf86misc... " >&6; }
10110 if ${ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState+:} false; then :
10111 $as_echo_n "(cached) " >&6
10113 ac_check_lib_save_LIBS=$LIBS
10114 LIBS="-lXxf86misc -lXext -lX11 $LIBS"
10115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10116 /* end confdefs.h. */
10118 /* Override any GCC internal prototype to avoid an error.
10119 Use char because int might match the return type of a GCC
10120 builtin and then its argument prototype would still apply. */
10124 char XF86MiscSetGrabKeysState ();
10128 return XF86MiscSetGrabKeysState ();
10133 if ac_fn_c_try_link "$LINENO"; then :
10134 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=yes
10136 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=no
10138 rm -f core conftest.err conftest.$ac_objext \
10139 conftest$ac_exeext conftest.$ac_ext
10140 LIBS=$ac_check_lib_save_LIBS
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&5
10143 $as_echo "$ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&6; }
10144 if test "x$ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" = xyes; then :
10145 have_xf86miscsetgrabkeysstate=yes
10150 CPPFLAGS="$ac_save_CPPFLAGS"
10151 LDFLAGS="$ac_save_LDFLAGS"
10152 # LIBS="$ac_save_LIBS"
10154 if test "$have_xf86miscsetgrabkeysstate" = yes ; then
10155 SAVER_LIBS="$SAVER_LIBS -lXxf86misc"
10156 $as_echo "#define HAVE_XF86MISCSETGRABKEYSSTATE 1" >>confdefs.h
10162 ###############################################################################
10164 # Check for HP XHPDisableReset and XHPEnableReset.
10166 ###############################################################################
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XHPDisableReset in X11/XHPlib.h" >&5
10169 $as_echo_n "checking for XHPDisableReset in X11/XHPlib.h... " >&6; }
10171 ac_save_CPPFLAGS="$CPPFLAGS"
10172 if test \! -z "$includedir" ; then
10173 CPPFLAGS="$CPPFLAGS -I$includedir"
10175 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10176 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178 /* end confdefs.h. */
10179 #include <X11/XHPlib.h>
10182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10183 $EGREP "XHPDisableReset" >/dev/null 2>&1; then :
10184 $as_echo "#define HAVE_XHPDISABLERESET 1" >>confdefs.h
10186 SAVER_LIBS="-lXhp11 $SAVER_LIBS"
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10188 $as_echo "yes" >&6; }
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10191 $as_echo "no" >&6; }
10195 CPPFLAGS="$ac_save_CPPFLAGS"
10198 ###############################################################################
10200 # Check for /proc/interrupts.
10202 ###############################################################################
10204 have_proc_interrupts=no
10205 with_proc_interrupts_req=unspecified
10207 # Check whether --with-proc-interrupts was given.
10208 if test "${with_proc_interrupts+set}" = set; then :
10209 withval=$with_proc_interrupts; with_proc_interrupts="$withval"; with_proc_interrupts_req="$withval"
10211 with_proc_interrupts=yes
10215 if test "$with_proc_interrupts" = yes; then
10217 # Note that we may be building in an environment (e.g. Debian buildd chroot)
10218 # without a proper /proc filesystem. If /proc/interrupts exists, then we'll
10219 # check that it has the bits we need, but otherwise we'll just go on faith.
10221 have_proc_interrupts=yes
10223 if test -f /proc/interrupts; then
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /proc/interrupts contains keyboard data" >&5
10225 $as_echo_n "checking whether /proc/interrupts contains keyboard data... " >&6; }
10226 if ${ac_cv_have_proc_interrupts+:} false; then :
10227 $as_echo_n "(cached) " >&6
10229 ac_cv_have_proc_interrupts=no
10230 if grep 'keyboard\|i8042' /proc/interrupts >/dev/null 2>&1 ; then
10231 ac_cv_have_proc_interrupts=yes
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_proc_interrupts" >&5
10236 $as_echo "$ac_cv_have_proc_interrupts" >&6; }
10237 have_proc_interrupts=$ac_cv_have_proc_interrupts
10240 if test "$have_proc_interrupts" = yes; then
10241 $as_echo "#define HAVE_PROC_INTERRUPTS 1" >>confdefs.h
10245 elif test "$with_proc_interrupts" != no; then
10246 echo "error: must be yes or no: --with-proc-interrupts=$with_proc_interrupts"
10251 ###############################################################################
10253 # The --enable-locking option
10255 ###############################################################################
10257 # Check whether --enable-locking was given.
10258 if test "${enable_locking+set}" = set; then :
10259 enableval=$enable_locking; enable_locking="$enableval"
10261 if test "$ac_macosx" = yes; then
10262 # We can't lock on MacOS X, so default to not compiling in support for it.
10263 # But allow --enable-locking to override that, so I can debug Linux locking
10271 if test "$enable_locking" = yes; then
10273 elif test "$enable_locking" = no; then
10274 $as_echo "#define NO_LOCKING 1" >>confdefs.h
10277 echo "error: must be yes or no: --enable-locking=$enable_locking"
10282 ###############################################################################
10284 # Whether to allow root password to unblank.
10286 ###############################################################################
10287 # Check whether --enable-root-passwd was given.
10288 if test "${enable_root_passwd+set}" = set; then :
10289 enableval=$enable_root_passwd; enable_root_passwd="$enableval"
10291 enable_root_passwd=yes
10294 if test "$enable_root_passwd" = yes; then
10295 $as_echo "#define ALLOW_ROOT_PASSWD 1" >>confdefs.h
10298 elif test "$enable_root_passwd" != no; then
10299 echo "error: must be yes or no: --enable-root-passwd=$enable_root_passwd"
10303 ###############################################################################
10307 ###############################################################################
10311 # Solaris systems tend to come with PAM misconfigured.
10312 # Don't build it by default, even if the headers exist.
10313 with_pam_default=no
10316 # Default to building PAM support on all other systems, if it exists.
10317 with_pam_default=yes
10322 with_pam_req=unspecified
10325 # Check whether --with-pam was given.
10326 if test "${with_pam+set}" = set; then :
10327 withval=$with_pam; with_pam="$withval"; with_pam_req="$withval"
10329 with_pam=$with_pam_default
10334 # Check whether --with-pam_service_name was given.
10335 if test "${with_pam_service_name+set}" = set; then :
10336 withval=$with_pam_service_name; pam_service_name="$withval"
10338 pam_service_name="xscreensaver"
10342 # Check whether --enable-pam-check-account-type was given.
10343 if test "${enable_pam_check_account_type+set}" = set; then :
10344 enableval=$enable_pam_check_account_type; enable_pam_check_account_type="$enableval"
10346 enable_pam_check_account_type=no
10349 if test "$enable_pam_check_account_type" = yes ; then
10350 $as_echo "#define PAM_CHECK_ACCOUNT_TYPE 1" >>confdefs.h
10353 elif test "$enable_pam_check_account_type" != no ; then
10354 echo "error: must be yes or no: --enable-pam-check-account-type=$enable_pam_check_account_type"
10359 case "$with_pam" in
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAM headers" >&5
10365 $as_echo_n "checking for PAM headers... " >&6; }
10366 d=$with_pam/include
10367 if test -d $d; then
10368 X_CFLAGS="-I$d $X_CFLAGS"
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
10370 $as_echo "$d" >&6; }
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
10373 $as_echo "not found ($d: no such directory)" >&6; }
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAM libs" >&5
10377 $as_echo_n "checking for PAM libs... " >&6; }
10379 if test -d $d; then
10380 X_LIBS="-L$d $X_LIBS"
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
10382 $as_echo "$d" >&6; }
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
10385 $as_echo "not found ($d: no such directory)" >&6; }
10388 # replace the directory string with "yes".
10390 with_pam=$with_pam_req
10395 echo "error: argument to --with-pam must be \"yes\", \"no\", or a directory."
10396 echo " If it is a directory, then \`DIR/include' will be added to"
10397 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10403 if test "$enable_locking" = yes -a "$with_pam" = yes; then
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAM" >&5
10405 $as_echo_n "checking for PAM... " >&6; }
10406 if ${ac_cv_pam+:} false; then :
10407 $as_echo_n "(cached) " >&6
10410 ac_save_CPPFLAGS="$CPPFLAGS"
10411 if test \! -z "$includedir" ; then
10412 CPPFLAGS="$CPPFLAGS -I$includedir"
10414 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10415 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h. */
10418 #include <security/pam_appl.h>
10427 if ac_fn_c_try_compile "$LINENO"; then :
10432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10433 CPPFLAGS="$ac_save_CPPFLAGS"
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pam" >&5
10436 $as_echo "$ac_cv_pam" >&6; }
10437 if test "$ac_cv_pam" = yes ; then
10439 $as_echo "#define HAVE_PAM 1" >>confdefs.h
10441 cat >>confdefs.h <<_ACEOF
10442 #define PAM_SERVICE_NAME "$pam_service_name"
10446 PASSWD_LIBS="${PASSWD_LIBS} -lpam"
10448 # libpam typically requires dlopen and dlsym. On FreeBSD,
10449 # those are in libc. On Linux and Solaris, they're in libdl.
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10451 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10452 if ${ac_cv_lib_dl_dlopen+:} false; then :
10453 $as_echo_n "(cached) " >&6
10455 ac_check_lib_save_LIBS=$LIBS
10457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10458 /* end confdefs.h. */
10460 /* Override any GCC internal prototype to avoid an error.
10461 Use char because int might match the return type of a GCC
10462 builtin and then its argument prototype would still apply. */
10475 if ac_fn_c_try_link "$LINENO"; then :
10476 ac_cv_lib_dl_dlopen=yes
10478 ac_cv_lib_dl_dlopen=no
10480 rm -f core conftest.err conftest.$ac_objext \
10481 conftest$ac_exeext conftest.$ac_ext
10482 LIBS=$ac_check_lib_save_LIBS
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10485 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10486 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10487 PASSWD_LIBS="${PASSWD_LIBS} -ldl"
10491 # On Linux, sigtimedwait() is in libc; on Solaris, it's in librt.
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigtimedwait in -lc" >&5
10494 $as_echo_n "checking for sigtimedwait in -lc... " >&6; }
10495 if ${ac_cv_lib_c_sigtimedwait+:} false; then :
10496 $as_echo_n "(cached) " >&6
10498 ac_check_lib_save_LIBS=$LIBS
10500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10501 /* end confdefs.h. */
10503 /* Override any GCC internal prototype to avoid an error.
10504 Use char because int might match the return type of a GCC
10505 builtin and then its argument prototype would still apply. */
10509 char sigtimedwait ();
10513 return sigtimedwait ();
10518 if ac_fn_c_try_link "$LINENO"; then :
10519 ac_cv_lib_c_sigtimedwait=yes
10521 ac_cv_lib_c_sigtimedwait=no
10523 rm -f core conftest.err conftest.$ac_objext \
10524 conftest$ac_exeext conftest.$ac_ext
10525 LIBS=$ac_check_lib_save_LIBS
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigtimedwait" >&5
10528 $as_echo "$ac_cv_lib_c_sigtimedwait" >&6; }
10529 if test "x$ac_cv_lib_c_sigtimedwait" = xyes; then :
10531 $as_echo "#define HAVE_SIGTIMEDWAIT 1" >>confdefs.h
10535 if test "$have_timedwait" = no ; then
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigtimedwait in -lrt" >&5
10537 $as_echo_n "checking for sigtimedwait in -lrt... " >&6; }
10538 if ${ac_cv_lib_rt_sigtimedwait+:} false; then :
10539 $as_echo_n "(cached) " >&6
10541 ac_check_lib_save_LIBS=$LIBS
10543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544 /* end confdefs.h. */
10546 /* Override any GCC internal prototype to avoid an error.
10547 Use char because int might match the return type of a GCC
10548 builtin and then its argument prototype would still apply. */
10552 char sigtimedwait ();
10556 return sigtimedwait ();
10561 if ac_fn_c_try_link "$LINENO"; then :
10562 ac_cv_lib_rt_sigtimedwait=yes
10564 ac_cv_lib_rt_sigtimedwait=no
10566 rm -f core conftest.err conftest.$ac_objext \
10567 conftest$ac_exeext conftest.$ac_ext
10568 LIBS=$ac_check_lib_save_LIBS
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sigtimedwait" >&5
10571 $as_echo "$ac_cv_lib_rt_sigtimedwait" >&6; }
10572 if test "x$ac_cv_lib_rt_sigtimedwait" = xyes; then :
10574 $as_echo "#define HAVE_SIGTIMEDWAIT 1" >>confdefs.h
10576 PASSWD_LIBS="${PASSWD_LIBS} -lrt"
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to call pam_strerror" >&5
10582 $as_echo_n "checking how to call pam_strerror... " >&6; }
10583 if ${ac_cv_pam_strerror_args+:} false; then :
10584 $as_echo_n "(cached) " >&6
10587 ac_save_CPPFLAGS="$CPPFLAGS"
10588 if test \! -z "$includedir" ; then
10589 CPPFLAGS="$CPPFLAGS -I$includedir"
10591 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10592 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10594 /* end confdefs.h. */
10596 #include <stdlib.h>
10597 #include <security/pam_appl.h>
10601 pam_handle_t *pamh = 0;
10602 char *s = pam_strerror(pamh, PAM_SUCCESS);
10607 if ac_fn_c_try_compile "$LINENO"; then :
10608 ac_pam_strerror_args=2
10611 ac_save_CPPFLAGS="$CPPFLAGS"
10612 if test \! -z "$includedir" ; then
10613 CPPFLAGS="$CPPFLAGS -I$includedir"
10615 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10616 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10618 /* end confdefs.h. */
10620 #include <stdlib.h>
10621 #include <security/pam_appl.h>
10626 pam_strerror(PAM_SUCCESS);
10631 if ac_fn_c_try_compile "$LINENO"; then :
10632 ac_pam_strerror_args=1
10634 ac_pam_strerror_args=0
10636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10637 CPPFLAGS="$ac_save_CPPFLAGS"
10639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10640 CPPFLAGS="$ac_save_CPPFLAGS"
10641 ac_cv_pam_strerror_args=$ac_pam_strerror_args
10644 ac_pam_strerror_args=$ac_cv_pam_strerror_args
10645 if test "$ac_pam_strerror_args" = 1 ; then
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: one argument" >&5
10647 $as_echo "one argument" >&6; }
10648 elif test "$ac_pam_strerror_args" = 2 ; then
10649 $as_echo "#define PAM_STRERROR_TWO_ARGS 1" >>confdefs.h
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: two arguments" >&5
10652 $as_echo "two arguments" >&6; }
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
10655 $as_echo "unknown" >&6; }
10658 # Check pam_fail_delay
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pam_fail_delay in -lpam" >&5
10660 $as_echo_n "checking pam_fail_delay in -lpam... " >&6; }
10661 if ${ac_cv_pam_fail_delay+:} false; then :
10662 $as_echo_n "(cached) " >&6
10664 ac_save_LDFLAGS="$LDFLAGS"
10666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667 /* end confdefs.h. */
10668 #include <security/pam_appl.h>
10672 pam_handle_t *pamh = 0;
10673 unsigned int usec = 1;
10674 int status = pam_fail_delay (pamh, usec);
10679 if ac_fn_c_try_link "$LINENO"; then :
10680 ac_pam_fail_delay=yes
10682 ac_pam_fail_delay=no
10684 rm -f core conftest.err conftest.$ac_objext \
10685 conftest$ac_exeext conftest.$ac_ext
10686 ac_cv_pam_fail_delay=$ac_pam_fail_delay,
10687 LDFLAGS=$ac_save_LDFLAGS
10691 if test "$ac_pam_fail_delay" = yes ; then
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10693 $as_echo "yes" >&6; }
10694 $as_echo "#define HAVE_PAM_FAIL_DELAY 1" >>confdefs.h
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10698 $as_echo "no" >&6; }
10705 ###############################################################################
10707 # Check for Kerberos.
10709 ###############################################################################
10713 with_kerberos_req=unspecified
10716 # Check whether --with-kerberos was given.
10717 if test "${with_kerberos+set}" = set; then :
10718 withval=$with_kerberos; with_kerberos="$withval"; with_kerberos_req="$withval"
10725 case "$with_kerberos" in
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos headers" >&5
10731 $as_echo_n "checking for Kerberos headers... " >&6; }
10732 d=$with_kerberos/include
10733 if test -d $d; then
10734 X_CFLAGS="-I$d $X_CFLAGS"
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
10736 $as_echo "$d" >&6; }
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
10739 $as_echo "not found ($d: no such directory)" >&6; }
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos libs" >&5
10743 $as_echo_n "checking for Kerberos libs... " >&6; }
10744 d=$with_kerberos/lib
10745 if test -d $d; then
10746 X_LIBS="-L$d $X_LIBS"
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
10748 $as_echo "$d" >&6; }
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
10751 $as_echo "not found ($d: no such directory)" >&6; }
10754 # replace the directory string with "yes".
10755 with_kerberos_req="yes"
10756 with_kerberos=$with_kerberos_req
10761 echo "error: argument to --with-kerberos must be \"yes\", \"no\", or a directory."
10762 echo " If it is a directory, then \`DIR/include' will be added to"
10763 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10769 if test "$enable_locking" = yes -a "$with_kerberos" = yes; then
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos 4" >&5
10771 $as_echo_n "checking for Kerberos 4... " >&6; }
10772 if ${ac_cv_kerberos+:} false; then :
10773 $as_echo_n "(cached) " >&6
10776 ac_save_CPPFLAGS="$CPPFLAGS"
10777 if test \! -z "$includedir" ; then
10778 CPPFLAGS="$CPPFLAGS -I$includedir"
10780 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10781 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h. */
10793 if ac_fn_c_try_compile "$LINENO"; then :
10798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10799 CPPFLAGS="$ac_save_CPPFLAGS"
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kerberos" >&5
10802 $as_echo "$ac_cv_kerberos" >&6; }
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos 5" >&5
10804 $as_echo_n "checking for Kerberos 5... " >&6; }
10805 if ${ac_cv_kerberos5+:} false; then :
10806 $as_echo_n "(cached) " >&6
10809 ac_save_CPPFLAGS="$CPPFLAGS"
10810 if test \! -z "$includedir" ; then
10811 CPPFLAGS="$CPPFLAGS -I$includedir"
10813 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10814 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h. */
10817 #include <kerberosIV/krb.h>
10826 if ac_fn_c_try_compile "$LINENO"; then :
10827 ac_cv_kerberos5=yes
10831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10832 CPPFLAGS="$ac_save_CPPFLAGS"
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kerberos5" >&5
10835 $as_echo "$ac_cv_kerberos5" >&6; }
10837 if test "$ac_cv_kerberos" = yes ; then
10839 $as_echo "#define HAVE_KERBEROS 1" >>confdefs.h
10843 if test "$ac_cv_kerberos5" = yes ; then
10845 # Andrew Snare <ajs@pigpond.com> wrote:
10847 # You were assuming that if kerberosV (krb5) was found, then kerberosIV
10848 # (krb4) was also available. This turns out not to be the case with
10849 # mit-krb-1.2.7; apparently backwards-compatibility with KerberosIV
10852 # So, disable kerberosV support if libkrb4 can't be found.
10853 # This is not the best solution, but it makes the compile not fail.
10856 ac_save_CPPFLAGS="$CPPFLAGS"
10857 ac_save_LDFLAGS="$LDFLAGS"
10858 # ac_save_LIBS="$LIBS"
10860 if test \! -z "$includedir" ; then
10861 CPPFLAGS="$CPPFLAGS -I$includedir"
10863 # note: $X_CFLAGS includes $x_includes
10864 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10866 if test \! -z "$libdir" ; then
10867 LDFLAGS="$LDFLAGS -L$libdir"
10869 # note: $X_LIBS includes $x_libraries
10870 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10872 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10873 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_tf_realm in -lkrb4" >&5
10875 $as_echo_n "checking for krb_get_tf_realm in -lkrb4... " >&6; }
10876 if ${ac_cv_lib_krb4_krb_get_tf_realm+:} false; then :
10877 $as_echo_n "(cached) " >&6
10879 ac_check_lib_save_LIBS=$LIBS
10880 LIBS="-lkrb4 $LIBS"
10881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10882 /* end confdefs.h. */
10884 /* Override any GCC internal prototype to avoid an error.
10885 Use char because int might match the return type of a GCC
10886 builtin and then its argument prototype would still apply. */
10890 char krb_get_tf_realm ();
10894 return krb_get_tf_realm ();
10899 if ac_fn_c_try_link "$LINENO"; then :
10900 ac_cv_lib_krb4_krb_get_tf_realm=yes
10902 ac_cv_lib_krb4_krb_get_tf_realm=no
10904 rm -f core conftest.err conftest.$ac_objext \
10905 conftest$ac_exeext conftest.$ac_ext
10906 LIBS=$ac_check_lib_save_LIBS
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_tf_realm" >&5
10909 $as_echo "$ac_cv_lib_krb4_krb_get_tf_realm" >&6; }
10910 if test "x$ac_cv_lib_krb4_krb_get_tf_realm" = xyes; then :
10916 CPPFLAGS="$ac_save_CPPFLAGS"
10917 LDFLAGS="$ac_save_LDFLAGS"
10918 # LIBS="$ac_save_LIBS"
10920 if test "$have_kerberos" = yes ; then
10922 $as_echo "#define HAVE_KERBEROS 1" >>confdefs.h
10924 $as_echo "#define HAVE_KERBEROS5 1" >>confdefs.h
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&5
10929 $as_echo "$as_me: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&2;}
10934 if test "$have_kerberos5" = yes ; then
10935 # from Matt Knopp <mhat@infocalypse.netlag.com>
10936 # (who got it from amu@mit.edu)
10938 PASSWD_LIBS="$PASSWD_LIBS -lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
10940 # jwz: MacOS X uses -lkrb5, but not -lcrypt
10942 ac_save_CPPFLAGS="$CPPFLAGS"
10943 ac_save_LDFLAGS="$LDFLAGS"
10944 # ac_save_LIBS="$LIBS"
10946 if test \! -z "$includedir" ; then
10947 CPPFLAGS="$CPPFLAGS -I$includedir"
10949 # note: $X_CFLAGS includes $x_includes
10950 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10952 if test \! -z "$libdir" ; then
10953 LDFLAGS="$LDFLAGS -L$libdir"
10955 # note: $X_LIBS includes $x_libraries
10956 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10958 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10959 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10961 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
10962 if ${ac_cv_lib_crypt_crypt+:} false; then :
10963 $as_echo_n "(cached) " >&6
10965 ac_check_lib_save_LIBS=$LIBS
10966 LIBS="-lcrypt $LIBS"
10967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h. */
10970 /* Override any GCC internal prototype to avoid an error.
10971 Use char because int might match the return type of a GCC
10972 builtin and then its argument prototype would still apply. */
10985 if ac_fn_c_try_link "$LINENO"; then :
10986 ac_cv_lib_crypt_crypt=yes
10988 ac_cv_lib_crypt_crypt=no
10990 rm -f core conftest.err conftest.$ac_objext \
10991 conftest$ac_exeext conftest.$ac_ext
10992 LIBS=$ac_check_lib_save_LIBS
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10995 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10996 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
10997 PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
11000 CPPFLAGS="$ac_save_CPPFLAGS"
11001 LDFLAGS="$ac_save_LDFLAGS"
11002 # LIBS="$ac_save_LIBS"
11005 elif test "$have_kerberos" = yes ; then
11006 # from Tim Showalter <tjs@psaux.com> for FreeBSD 4.2
11007 PASSWD_LIBS="$PASSWD_LIBS -lkrb -ldes -lcom_err"
11010 if test "$have_kerberos" = yes ; then
11011 ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
11012 if test "x$ac_cv_func_res_search" = xyes; then :
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
11016 $as_echo_n "checking for res_search in -lresolv... " >&6; }
11017 if ${ac_cv_lib_resolv_res_search+:} false; then :
11018 $as_echo_n "(cached) " >&6
11020 ac_check_lib_save_LIBS=$LIBS
11021 LIBS="-lresolv $LIBS"
11022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11023 /* end confdefs.h. */
11025 /* Override any GCC internal prototype to avoid an error.
11026 Use char because int might match the return type of a GCC
11027 builtin and then its argument prototype would still apply. */
11031 char res_search ();
11035 return res_search ();
11040 if ac_fn_c_try_link "$LINENO"; then :
11041 ac_cv_lib_resolv_res_search=yes
11043 ac_cv_lib_resolv_res_search=no
11045 rm -f core conftest.err conftest.$ac_objext \
11046 conftest$ac_exeext conftest.$ac_ext
11047 LIBS=$ac_check_lib_save_LIBS
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
11050 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
11051 if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
11052 PASSWD_LIBS="${PASSWD_LIBS} -lresolv"
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&5
11055 $as_echo "$as_me: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&2;}
11065 ###############################################################################
11067 # Check for the nine billion variants of shadow passwords...
11069 ###############################################################################
11074 with_shadow_req=unspecified
11077 # Check whether --with-shadow was given.
11078 if test "${with_shadow+set}" = set; then :
11079 withval=$with_shadow; with_shadow="$withval"; with_shadow_req="$withval"
11086 case "$with_shadow" in
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shadow password headers" >&5
11092 $as_echo_n "checking for shadow password headers... " >&6; }
11093 d=$with_shadow/include
11094 if test -d $d; then
11095 X_CFLAGS="-I$d $X_CFLAGS"
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
11097 $as_echo "$d" >&6; }
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
11100 $as_echo "not found ($d: no such directory)" >&6; }
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shadow password libs" >&5
11104 $as_echo_n "checking for shadow password libs... " >&6; }
11106 if test -d $d; then
11107 X_LIBS="-L$d $X_LIBS"
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
11109 $as_echo "$d" >&6; }
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
11112 $as_echo "not found ($d: no such directory)" >&6; }
11115 # replace the directory string with "yes".
11116 with_shadow_req="yes"
11117 with_shadow=$with_shadow_req
11122 echo "error: argument to --with-shadow must be \"yes\", \"no\", or a directory."
11123 echo " If it is a directory, then \`DIR/include' will be added to"
11124 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11130 if test "$enable_locking" = no ; then
11136 ###############################################################################
11138 # Check for Sun "adjunct" passwords.
11140 ###############################################################################
11142 if test "$with_shadow" = yes ; then
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Sun-style shadow passwords" >&5
11144 $as_echo_n "checking for Sun-style shadow passwords... " >&6; }
11145 if ${ac_cv_sun_adjunct+:} false; then :
11146 $as_echo_n "(cached) " >&6
11149 ac_save_CPPFLAGS="$CPPFLAGS"
11150 if test \! -z "$includedir" ; then
11151 CPPFLAGS="$CPPFLAGS -I$includedir"
11153 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11154 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11156 /* end confdefs.h. */
11157 #include <stdlib.h>
11158 #include <unistd.h>
11159 #include <sys/types.h>
11160 #include <sys/label.h>
11161 #include <sys/audit.h>
11162 #include <pwdadj.h>
11166 struct passwd_adjunct *p = getpwanam("nobody");
11167 const char *pw = p->pwa_passwd;
11172 if ac_fn_c_try_compile "$LINENO"; then :
11173 ac_cv_sun_adjunct=yes
11175 ac_cv_sun_adjunct=no
11177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11178 CPPFLAGS="$ac_save_CPPFLAGS"
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sun_adjunct" >&5
11181 $as_echo "$ac_cv_sun_adjunct" >&6; }
11182 if test "$ac_cv_sun_adjunct" = yes; then
11183 have_shadow_adjunct=yes
11190 ###############################################################################
11192 # Check for DEC and SCO so-called "enhanced" security.
11194 ###############################################################################
11196 if test "$with_shadow" = yes ; then
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEC-style shadow passwords" >&5
11198 $as_echo_n "checking for DEC-style shadow passwords... " >&6; }
11199 if ${ac_cv_enhanced_passwd+:} false; then :
11200 $as_echo_n "(cached) " >&6
11203 ac_save_CPPFLAGS="$CPPFLAGS"
11204 if test \! -z "$includedir" ; then
11205 CPPFLAGS="$CPPFLAGS -I$includedir"
11207 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11208 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11210 /* end confdefs.h. */
11211 #include <stdlib.h>
11212 #include <unistd.h>
11213 #include <sys/types.h>
11215 #include <sys/security.h>
11220 struct pr_passwd *p;
11222 set_auth_parameters(0, 0);
11223 check_auth_parameters();
11224 p = getprpwnam("nobody");
11225 pw = p->ufld.fd_encrypt;
11230 if ac_fn_c_try_compile "$LINENO"; then :
11231 ac_cv_enhanced_passwd=yes
11233 ac_cv_enhanced_passwd=no
11235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11236 CPPFLAGS="$ac_save_CPPFLAGS"
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enhanced_passwd" >&5
11239 $as_echo "$ac_cv_enhanced_passwd" >&6; }
11240 if test $ac_cv_enhanced_passwd = yes; then
11241 have_shadow_enhanced=yes
11245 # On SCO, getprpwnam() is in -lprot (which uses nap() from -lx)
11246 # (I'm told it needs -lcurses too, but I don't understand why.)
11247 # But on DEC, it's in -lsecurity.
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getprpwnam in -lprot" >&5
11250 $as_echo_n "checking for getprpwnam in -lprot... " >&6; }
11251 if ${ac_cv_lib_prot_getprpwnam+:} false; then :
11252 $as_echo_n "(cached) " >&6
11254 ac_check_lib_save_LIBS=$LIBS
11255 LIBS="-lprot -lx $LIBS"
11256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11257 /* end confdefs.h. */
11259 /* Override any GCC internal prototype to avoid an error.
11260 Use char because int might match the return type of a GCC
11261 builtin and then its argument prototype would still apply. */
11265 char getprpwnam ();
11269 return getprpwnam ();
11274 if ac_fn_c_try_link "$LINENO"; then :
11275 ac_cv_lib_prot_getprpwnam=yes
11277 ac_cv_lib_prot_getprpwnam=no
11279 rm -f core conftest.err conftest.$ac_objext \
11280 conftest$ac_exeext conftest.$ac_ext
11281 LIBS=$ac_check_lib_save_LIBS
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getprpwnam" >&5
11284 $as_echo "$ac_cv_lib_prot_getprpwnam" >&6; }
11285 if test "x$ac_cv_lib_prot_getprpwnam" = xyes; then :
11286 PASSWD_LIBS="$PASSWD_LIBS -lprot -lcurses -lx"
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getprpwnam in -lsecurity" >&5
11289 $as_echo_n "checking for getprpwnam in -lsecurity... " >&6; }
11290 if ${ac_cv_lib_security_getprpwnam+:} false; then :
11291 $as_echo_n "(cached) " >&6
11293 ac_check_lib_save_LIBS=$LIBS
11294 LIBS="-lsecurity $LIBS"
11295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11296 /* end confdefs.h. */
11298 /* Override any GCC internal prototype to avoid an error.
11299 Use char because int might match the return type of a GCC
11300 builtin and then its argument prototype would still apply. */
11304 char getprpwnam ();
11308 return getprpwnam ();
11313 if ac_fn_c_try_link "$LINENO"; then :
11314 ac_cv_lib_security_getprpwnam=yes
11316 ac_cv_lib_security_getprpwnam=no
11318 rm -f core conftest.err conftest.$ac_objext \
11319 conftest$ac_exeext conftest.$ac_ext
11320 LIBS=$ac_check_lib_save_LIBS
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_security_getprpwnam" >&5
11323 $as_echo "$ac_cv_lib_security_getprpwnam" >&6; }
11324 if test "x$ac_cv_lib_security_getprpwnam" = xyes; then :
11325 PASSWD_LIBS="$PASSWD_LIBS -lsecurity"
11333 ###############################################################################
11335 # Check for HP's entry in the "Not Invented Here" Sweepstakes.
11337 ###############################################################################
11339 if test "$with_shadow" = yes ; then
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-style shadow passwords" >&5
11341 $as_echo_n "checking for HP-style shadow passwords... " >&6; }
11342 if ${ac_cv_hpux_passwd+:} false; then :
11343 $as_echo_n "(cached) " >&6
11346 ac_save_CPPFLAGS="$CPPFLAGS"
11347 if test \! -z "$includedir" ; then
11348 CPPFLAGS="$CPPFLAGS -I$includedir"
11350 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11351 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353 /* end confdefs.h. */
11354 #include <stdlib.h>
11355 #include <unistd.h>
11356 #include <sys/types.h>
11358 #include <hpsecurity.h>
11363 struct s_passwd *p = getspwnam("nobody");
11364 const char *pw = p->pw_passwd;
11369 if ac_fn_c_try_compile "$LINENO"; then :
11370 ac_cv_hpux_passwd=yes
11372 ac_cv_hpux_passwd=no
11374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11375 CPPFLAGS="$ac_save_CPPFLAGS"
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hpux_passwd" >&5
11378 $as_echo "$ac_cv_hpux_passwd" >&6; }
11379 if test "$ac_cv_hpux_passwd" = yes; then
11380 have_shadow_hpux=yes
11384 # on HPUX, bigcrypt is in -lsec
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bigcrypt in -lsec" >&5
11386 $as_echo_n "checking for bigcrypt in -lsec... " >&6; }
11387 if ${ac_cv_lib_sec_bigcrypt+:} false; then :
11388 $as_echo_n "(cached) " >&6
11390 ac_check_lib_save_LIBS=$LIBS
11392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393 /* end confdefs.h. */
11395 /* Override any GCC internal prototype to avoid an error.
11396 Use char because int might match the return type of a GCC
11397 builtin and then its argument prototype would still apply. */
11405 return bigcrypt ();
11410 if ac_fn_c_try_link "$LINENO"; then :
11411 ac_cv_lib_sec_bigcrypt=yes
11413 ac_cv_lib_sec_bigcrypt=no
11415 rm -f core conftest.err conftest.$ac_objext \
11416 conftest$ac_exeext conftest.$ac_ext
11417 LIBS=$ac_check_lib_save_LIBS
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_bigcrypt" >&5
11420 $as_echo "$ac_cv_lib_sec_bigcrypt" >&6; }
11421 if test "x$ac_cv_lib_sec_bigcrypt" = xyes; then :
11422 PASSWD_LIBS="$PASSWD_LIBS -lsec"
11429 ###############################################################################
11431 # Check for FreeBSD-style shadow passwords.
11433 # On FreeBSD, getpwnam() and friends work just like on non-shadow-
11434 # password systems -- except you only get stuff in the pw_passwd field
11435 # if the running program is setuid. So, guess that we've got this
11436 # lossage to contend with if /etc/master.passwd exists, and default to
11437 # a setuid installation.
11439 ###############################################################################
11441 if test "$with_shadow" = yes ; then
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD-style shadow passwords" >&5
11443 $as_echo_n "checking for FreeBSD-style shadow passwords... " >&6; }
11444 if ${ac_cv_master_passwd+:} false; then :
11445 $as_echo_n "(cached) " >&6
11447 if test -f /etc/master.passwd ; then
11448 ac_cv_master_passwd=yes
11450 ac_cv_master_passwd=no
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_master_passwd" >&5
11454 $as_echo "$ac_cv_master_passwd" >&6; }
11455 if test "$ac_cv_master_passwd" = yes; then
11461 ###############################################################################
11463 # Check for traditional (ha!) shadow passwords.
11465 ###############################################################################
11467 if test "$with_shadow" = yes ; then
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for generic shadow passwords" >&5
11469 $as_echo_n "checking for generic shadow passwords... " >&6; }
11470 if ${ac_cv_shadow+:} false; then :
11471 $as_echo_n "(cached) " >&6
11474 ac_save_CPPFLAGS="$CPPFLAGS"
11475 if test \! -z "$includedir" ; then
11476 CPPFLAGS="$CPPFLAGS -I$includedir"
11478 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11479 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481 /* end confdefs.h. */
11482 #include <stdlib.h>
11483 #include <unistd.h>
11484 #include <sys/types.h>
11486 #include <shadow.h>
11490 struct spwd *p = getspnam("nobody");
11491 const char *pw = p->sp_pwdp;
11496 if ac_fn_c_try_compile "$LINENO"; then :
11501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11502 CPPFLAGS="$ac_save_CPPFLAGS"
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_shadow" >&5
11505 $as_echo "$ac_cv_shadow" >&6; }
11506 if test "$ac_cv_shadow" = yes; then
11510 # On some systems (UnixWare 2.1), getspnam() is in -lgen instead of -lc.
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lc" >&5
11513 $as_echo_n "checking for getspnam in -lc... " >&6; }
11514 if ${ac_cv_lib_c_getspnam+:} false; then :
11515 $as_echo_n "(cached) " >&6
11517 ac_check_lib_save_LIBS=$LIBS
11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h. */
11522 /* Override any GCC internal prototype to avoid an error.
11523 Use char because int might match the return type of a GCC
11524 builtin and then its argument prototype would still apply. */
11532 return getspnam ();
11537 if ac_fn_c_try_link "$LINENO"; then :
11538 ac_cv_lib_c_getspnam=yes
11540 ac_cv_lib_c_getspnam=no
11542 rm -f core conftest.err conftest.$ac_objext \
11543 conftest$ac_exeext conftest.$ac_ext
11544 LIBS=$ac_check_lib_save_LIBS
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getspnam" >&5
11547 $as_echo "$ac_cv_lib_c_getspnam" >&6; }
11548 if test "x$ac_cv_lib_c_getspnam" = xyes; then :
11552 if test "$have_getspnam" = no ; then
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5
11554 $as_echo_n "checking for getspnam in -lgen... " >&6; }
11555 if ${ac_cv_lib_gen_getspnam+:} false; then :
11556 $as_echo_n "(cached) " >&6
11558 ac_check_lib_save_LIBS=$LIBS
11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h. */
11563 /* Override any GCC internal prototype to avoid an error.
11564 Use char because int might match the return type of a GCC
11565 builtin and then its argument prototype would still apply. */
11573 return getspnam ();
11578 if ac_fn_c_try_link "$LINENO"; then :
11579 ac_cv_lib_gen_getspnam=yes
11581 ac_cv_lib_gen_getspnam=no
11583 rm -f core conftest.err conftest.$ac_objext \
11584 conftest$ac_exeext conftest.$ac_ext
11585 LIBS=$ac_check_lib_save_LIBS
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5
11588 $as_echo "$ac_cv_lib_gen_getspnam" >&6; }
11589 if test "x$ac_cv_lib_gen_getspnam" = xyes; then :
11590 have_getspnam=yes; PASSWD_LIBS="$PASSWD_LIBS -lgen"
11598 ###############################################################################
11600 # Check for other libraries needed for non-shadow passwords.
11602 ###############################################################################
11604 if test "$enable_locking" = yes ; then
11606 # On some systems (UnixWare 2.1), crypt() is in -lcrypt instead of -lc.
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lc" >&5
11609 $as_echo_n "checking for crypt in -lc... " >&6; }
11610 if ${ac_cv_lib_c_crypt+:} false; then :
11611 $as_echo_n "(cached) " >&6
11613 ac_check_lib_save_LIBS=$LIBS
11615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616 /* end confdefs.h. */
11618 /* Override any GCC internal prototype to avoid an error.
11619 Use char because int might match the return type of a GCC
11620 builtin and then its argument prototype would still apply. */
11633 if ac_fn_c_try_link "$LINENO"; then :
11634 ac_cv_lib_c_crypt=yes
11636 ac_cv_lib_c_crypt=no
11638 rm -f core conftest.err conftest.$ac_objext \
11639 conftest$ac_exeext conftest.$ac_ext
11640 LIBS=$ac_check_lib_save_LIBS
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_crypt" >&5
11643 $as_echo "$ac_cv_lib_c_crypt" >&6; }
11644 if test "x$ac_cv_lib_c_crypt" = xyes; then :
11648 if test "$have_crypt" = no ; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
11650 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
11651 if ${ac_cv_lib_crypt_crypt+:} false; then :
11652 $as_echo_n "(cached) " >&6
11654 ac_check_lib_save_LIBS=$LIBS
11655 LIBS="-lcrypt $LIBS"
11656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11657 /* end confdefs.h. */
11659 /* Override any GCC internal prototype to avoid an error.
11660 Use char because int might match the return type of a GCC
11661 builtin and then its argument prototype would still apply. */
11674 if ac_fn_c_try_link "$LINENO"; then :
11675 ac_cv_lib_crypt_crypt=yes
11677 ac_cv_lib_crypt_crypt=no
11679 rm -f core conftest.err conftest.$ac_objext \
11680 conftest$ac_exeext conftest.$ac_ext
11681 LIBS=$ac_check_lib_save_LIBS
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
11684 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
11685 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
11686 have_crypt=yes; PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
11693 # Most of the above shadow mechanisms will have set need_setuid to yes,
11694 # if they were found. But, on some systems, we need setuid even when
11695 # using plain old vanilla passwords.
11697 if test "$enable_locking" = yes ; then
11699 *-hpux* | *-aix* | *-netbsd* | *-freebsd* | *-openbsd* )
11706 if test "$have_shadow_adjunct" = yes ; then
11707 $as_echo "#define HAVE_ADJUNCT_PASSWD 1" >>confdefs.h
11709 elif test "$have_shadow_enhanced" = yes ; then
11710 $as_echo "#define HAVE_ENHANCED_PASSWD 1" >>confdefs.h
11712 elif test "$have_shadow_hpux" = yes ; then
11713 $as_echo "#define HAVE_HPUX_PASSWD 1" >>confdefs.h
11715 elif test "$have_shadow" = yes ; then
11716 $as_echo "#define HAVE_SHADOW_PASSWD 1" >>confdefs.h
11721 ###############################################################################
11723 # Check for external password helper
11724 # On SuSE, instead of having xscreensaver be a setuid program, they
11725 # fork an external program that takes the password on stdin, and
11726 # returns true if that password is a valid one. Then only that
11727 # smaller program needs to be setuid.
11729 # (Note that this external program is not a GUI: the GUI is still
11730 # all in xscreensaver itself; the external program just does auth.)
11732 ###############################################################################
11734 have_passwd_helper=no
11735 with_passwd_helper_req=unspecified
11738 # Check whether --with-passwd-helper was given.
11739 if test "${with_passwd_helper+set}" = set; then :
11740 withval=$with_passwd_helper; with_passwd_helper="$withval"; with_passwd_helper_req="$withval"
11742 with_passwd_helper=no
11745 # no HANDLE_X_PATH_ARG for this one
11747 if test "$enable_locking" = no ; then
11748 with_passwd_helper_req=no
11749 with_passwd_helper=no
11752 case "$with_passwd_helper" in
11755 cat >>confdefs.h <<_ACEOF
11756 #define PASSWD_HELPER_PROGRAM "$with_passwd_helper"
11759 have_passwd_helper=yes;;
11761 echo "error: --with-passwd-helper needs full pathname of helper (not '$with_passwd_helper')." >&2
11766 ###############################################################################
11768 # Check for a login manager for a "New Login" button on the lock dialog.
11769 # Usually this will be "/usr/bin/gdmflexiserver".
11771 ###############################################################################
11773 with_login_manager_req=unspecified
11774 default_login_manager_1='gdmflexiserver -ls'
11775 default_login_manager_2='kdmctl reserve'
11776 default_login_manager_3='lxdm -c USER_SWITCH'
11777 default_login_manager_4='dm-tool switch-to-greeter'
11780 # Check whether --with-login-manager was given.
11781 if test "${with_login_manager+set}" = set; then :
11782 withval=$with_login_manager; with_login_manager="$withval"; with_login_manager_req="$withval"
11784 with_login_manager=yes
11787 # no HANDLE_X_PATH_ARG for this one
11789 if test "$enable_locking" = no ; then
11790 with_login_manager_req=no
11791 with_login_manager=no
11794 case "$with_login_manager_req" in
11796 with_login_manager=""
11800 # Try various defaults, use the first one that exists.
11802 with_login_manager=""
11804 if test -z "$with_login_manager" ; then
11805 set dummy $default_login_manager_1 ; login_manager_tmp=$2
11806 unset ac_cv_path_login_manager_tmp # don't cache
11807 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
11808 set dummy $login_manager_tmp; ac_word=$2
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11810 $as_echo_n "checking for $ac_word... " >&6; }
11811 if ${ac_cv_path_login_manager_tmp+:} false; then :
11812 $as_echo_n "(cached) " >&6
11814 case $login_manager_tmp in
11816 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
11819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11820 for as_dir in $PATH
11823 test -z "$as_dir" && as_dir=.
11824 for ac_exec_ext in '' $ac_executable_extensions; do
11825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11826 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
11827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11837 login_manager_tmp=$ac_cv_path_login_manager_tmp
11838 if test -n "$login_manager_tmp"; then
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $login_manager_tmp" >&5
11840 $as_echo "$login_manager_tmp" >&6; }
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843 $as_echo "no" >&6; }
11847 if test ! -z "$login_manager_tmp" ; then
11848 with_login_manager="$default_login_manager_1"
11852 if test -z "$with_login_manager" ; then
11853 set dummy $default_login_manager_2 ; login_manager_tmp=$2
11854 unset ac_cv_path_login_manager_tmp # don't cache
11855 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
11856 set dummy $login_manager_tmp; ac_word=$2
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11858 $as_echo_n "checking for $ac_word... " >&6; }
11859 if ${ac_cv_path_login_manager_tmp+:} false; then :
11860 $as_echo_n "(cached) " >&6
11862 case $login_manager_tmp in
11864 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
11867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868 for as_dir in $PATH
11871 test -z "$as_dir" && as_dir=.
11872 for ac_exec_ext in '' $ac_executable_extensions; do
11873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11874 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
11875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11885 login_manager_tmp=$ac_cv_path_login_manager_tmp
11886 if test -n "$login_manager_tmp"; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $login_manager_tmp" >&5
11888 $as_echo "$login_manager_tmp" >&6; }
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11895 if test ! -z "$login_manager_tmp" ; then
11896 with_login_manager="$default_login_manager_2"
11900 if test -z "$with_login_manager" ; then
11901 set dummy $default_login_manager_3 ; login_manager_tmp=$2
11902 unset ac_cv_path_login_manager_tmp # don't cache
11903 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
11904 set dummy $login_manager_tmp; ac_word=$2
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11906 $as_echo_n "checking for $ac_word... " >&6; }
11907 if ${ac_cv_path_login_manager_tmp+:} false; then :
11908 $as_echo_n "(cached) " >&6
11910 case $login_manager_tmp in
11912 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
11915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11916 for as_dir in $PATH
11919 test -z "$as_dir" && as_dir=.
11920 for ac_exec_ext in '' $ac_executable_extensions; do
11921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11922 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
11923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11933 login_manager_tmp=$ac_cv_path_login_manager_tmp
11934 if test -n "$login_manager_tmp"; then
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $login_manager_tmp" >&5
11936 $as_echo "$login_manager_tmp" >&6; }
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11939 $as_echo "no" >&6; }
11943 if test ! -z "$login_manager_tmp" ; then
11944 with_login_manager="$default_login_manager_3"
11948 if test -z "$with_login_manager" ; then
11949 set dummy $default_login_manager_4 ; login_manager_tmp=$2
11950 unset ac_cv_path_login_manager_tmp # don't cache
11951 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
11952 set dummy $login_manager_tmp; ac_word=$2
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11954 $as_echo_n "checking for $ac_word... " >&6; }
11955 if ${ac_cv_path_login_manager_tmp+:} false; then :
11956 $as_echo_n "(cached) " >&6
11958 case $login_manager_tmp in
11960 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
11963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11964 for as_dir in $PATH
11967 test -z "$as_dir" && as_dir=.
11968 for ac_exec_ext in '' $ac_executable_extensions; do
11969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11970 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
11971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11981 login_manager_tmp=$ac_cv_path_login_manager_tmp
11982 if test -n "$login_manager_tmp"; then
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $login_manager_tmp" >&5
11984 $as_echo "$login_manager_tmp" >&6; }
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987 $as_echo "no" >&6; }
11991 if test ! -z "$login_manager_tmp" ; then
11992 with_login_manager="$default_login_manager_4"
11999 # absolute path specified on cmd line
12000 set dummy $with_login_manager_req ; login_manager_tmp=$2
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $login_manager_tmp" >&5
12002 $as_echo_n "checking for $login_manager_tmp... " >&6; }
12003 if test -x "$login_manager_tmp" ; then
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12005 $as_echo "yes" >&6; }
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12008 $as_echo "no" >&6; }
12009 with_login_manager=""
12014 # relative path specified on cmd line
12015 set dummy $with_login_manager_req ; login_manager_tmp=$2
12016 unset ac_cv_path_login_manager_tmp # don't cache
12017 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
12018 set dummy $login_manager_tmp; ac_word=$2
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12020 $as_echo_n "checking for $ac_word... " >&6; }
12021 if ${ac_cv_path_login_manager_tmp+:} false; then :
12022 $as_echo_n "(cached) " >&6
12024 case $login_manager_tmp in
12026 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
12029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12030 for as_dir in $PATH
12033 test -z "$as_dir" && as_dir=.
12034 for ac_exec_ext in '' $ac_executable_extensions; do
12035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12036 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
12037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12047 login_manager_tmp=$ac_cv_path_login_manager_tmp
12048 if test -n "$login_manager_tmp"; then
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $login_manager_tmp" >&5
12050 $as_echo "$login_manager_tmp" >&6; }
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12053 $as_echo "no" >&6; }
12057 if test -z "$login_manager_tmp" ; then
12058 with_login_manager=""
12060 with_login_manager="$login_manager_tmp"
12064 ac_cv_login_manager_program="$with_login_manager"
12066 NEW_LOGIN_COMMAND_P=''
12067 NEW_LOGIN_COMMAND="$ac_cv_login_manager_program"
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for login manager" >&5
12070 $as_echo_n "checking for login manager... " >&6; }
12071 if test -z "$NEW_LOGIN_COMMAND" ; then
12072 NEW_LOGIN_COMMAND="$default_login_manager_1"
12073 NEW_LOGIN_COMMAND_P='! '
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NEW_LOGIN_COMMAND (disabled)" >&5
12075 $as_echo "$NEW_LOGIN_COMMAND (disabled)" >&6; }
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NEW_LOGIN_COMMAND" >&5
12078 $as_echo "$NEW_LOGIN_COMMAND" >&6; }
12082 ###############################################################################
12084 # Check for -lgtk (and Gnome stuff)
12086 ###############################################################################
12089 with_gtk_req=unspecified
12091 # Check whether --with-gtk was given.
12092 if test "${with_gtk+set}" = set; then :
12093 withval=$with_gtk; with_gtk="$withval"; with_gtk_req="$withval"
12099 # if --with-gtk=/directory/ was specified, remember that directory so that
12100 # we can also look for the `gtk-config' program in that directory.
12101 case "$with_gtk" in
12103 gtk_dir="$with_gtk"
12111 case "$with_gtk" in
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gtk headers" >&5
12117 $as_echo_n "checking for Gtk headers... " >&6; }
12118 d=$with_gtk/include
12119 if test -d $d; then
12120 X_CFLAGS="-I$d $X_CFLAGS"
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
12122 $as_echo "$d" >&6; }
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
12125 $as_echo "not found ($d: no such directory)" >&6; }
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gtk libs" >&5
12129 $as_echo_n "checking for Gtk libs... " >&6; }
12131 if test -d $d; then
12132 X_LIBS="-L$d $X_LIBS"
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
12134 $as_echo "$d" >&6; }
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
12137 $as_echo "not found ($d: no such directory)" >&6; }
12140 # replace the directory string with "yes".
12142 with_gtk=$with_gtk_req
12147 echo "error: argument to --with-gtk must be \"yes\", \"no\", or a directory."
12148 echo " If it is a directory, then \`DIR/include' will be added to"
12149 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12155 if test "$with_gtk" != yes -a "$with_gtk" != no ; then
12156 echo "error: must be yes or no: --with-gtk=$with_gtk"
12161 parse_gtk_version_string() {
12164 maj=`echo $ac_gtk_version_string | sed -n 's/\..*//p'`
12165 min=`echo $ac_gtk_version_string | sed -n 's/[^.]*\.\([^.]*\).*/\1/p'`
12167 ac_gtk_version=`echo "$maj * 1000 + $min" | bc`
12168 if test -z "$ac_gtk_version"; then
12169 ac_gtk_version=unknown
12170 ac_gtk_version_string=unknown
12174 # Find pkg-config... (need this for both gtk and gdk_pixbuf.)
12175 # if the user specified --with-gtk=/foo/ then look there.
12178 if test ! -z "$gtk_dir"; then
12179 # canonicalize slashes.
12180 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
12181 gtk_path="$foo:$gtk_path"
12184 for ac_prog in pkg-config
12186 # Extract the first word of "$ac_prog", so it can be a program name with args.
12187 set dummy $ac_prog; ac_word=$2
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12189 $as_echo_n "checking for $ac_word... " >&6; }
12190 if ${ac_cv_path_pkg_config+:} false; then :
12191 $as_echo_n "(cached) " >&6
12193 case $pkg_config in
12195 ac_cv_path_pkg_config="$pkg_config" # Let the user override the test with a path.
12198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12199 for as_dir in $gtk_path
12202 test -z "$as_dir" && as_dir=.
12203 for ac_exec_ext in '' $ac_executable_extensions; do
12204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12205 ac_cv_path_pkg_config="$as_dir/$ac_word$ac_exec_ext"
12206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12216 pkg_config=$ac_cv_path_pkg_config
12217 if test -n "$pkg_config"; then
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config" >&5
12219 $as_echo "$pkg_config" >&6; }
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12222 $as_echo "no" >&6; }
12226 test -n "$pkg_config" && break
12230 if test -z "$pkg_config" ; then
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found!" >&5
12232 $as_echo "$as_me: WARNING: pkg-config not found!" >&2;}
12237 # Utility function for running pkg-config-based tests...
12240 pkg_check_version() {
12241 if test "$ok" = yes ; then
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $req" >&5
12245 $as_echo_n "checking for $req... " >&6; }
12246 if $pkg_config --exists "$req" ; then
12247 vers=`$pkg_config --modversion "$req"`
12248 if $pkg_config --exists "$req >= $min" ; then
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vers" >&5
12250 $as_echo "$vers" >&6; }
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vers (wanted >= $min)" >&5
12255 $as_echo "$vers (wanted >= $min)" >&6; }
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261 $as_echo "no" >&6; }
12271 have_gtk_2_22_or_higher=no
12272 COMMENT_DEMO_GLADE2_GTK_2_22_HEAD=""
12273 COMMENT_DEMO_GLADE2_GTK_2_22_TAIL=""
12275 if test "$with_gtk" = yes; then
12279 pkg_check_version gtk+-2.0 2.0.1 ; ac_gtk_version_string="$vers"
12280 pkg_check_version gmodule-2.0 2.0.0
12281 pkg_check_version libxml-2.0 2.4.6
12282 pkg_check_version libglade-2.0 1.99.0
12283 pkg_check_version gdk-pixbuf-2.0 2.0.0
12284 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
12287 if test "$have_gtk" = no; then
12288 if test -n "$ac_gtk_version_string" ; then
12289 gtk_halfassed="$ac_gtk_version_string"
12290 gtk_halfassed_lib="$req"
12294 if test "$have_gtk" = yes; then
12295 parse_gtk_version_string
12299 if test "$have_gtk" = yes; then
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gtk includes" >&5
12301 $as_echo_n "checking for Gtk includes... " >&6; }
12302 if ${ac_cv_gtk_config_cflags+:} false; then :
12303 $as_echo_n "(cached) " >&6
12305 ac_cv_gtk_config_cflags=`$pkg_config --cflags $pkgs`
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gtk_config_cflags" >&5
12308 $as_echo "$ac_cv_gtk_config_cflags" >&6; }
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gtk libs" >&5
12310 $as_echo_n "checking for Gtk libs... " >&6; }
12311 if ${ac_cv_gtk_config_libs+:} false; then :
12312 $as_echo_n "(cached) " >&6
12314 ac_cv_gtk_config_libs=`$pkg_config --libs $pkgs`
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gtk_config_libs" >&5
12317 $as_echo "$ac_cv_gtk_config_libs" >&6; }
12320 ac_gtk_config_cflags=$ac_cv_gtk_config_cflags
12321 ac_gtk_config_libs=$ac_cv_gtk_config_libs
12325 if test "$have_gtk" = yes; then
12326 GTK_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
12327 GTK_DATADIR="$GTK_DATADIR/share"
12330 if test "$have_gtk" = yes; then
12331 INCLUDES="$INCLUDES $ac_gtk_config_cflags"
12332 GTK_LIBS="$GTK_LIBS $ac_gtk_config_libs"
12333 $as_echo "#define HAVE_GTK 1" >>confdefs.h
12335 $as_echo "#define HAVE_GTK2 1" >>confdefs.h
12337 $as_echo "#define HAVE_XML 1" >>confdefs.h
12341 if test "$have_gtk" = yes; then
12343 pkg_check_version gtk+-2.0 2.22
12344 have_gtk_2_22_or_higher="$ok"
12345 if test "$have_gtk_2_22_or_higher" = yes; then
12346 COMMENT_DEMO_GLADE2_GTK_2_22_HEAD="<!-- comment>"
12347 COMMENT_DEMO_GLADE2_GTK_2_22_TAIL="</comment -->"
12353 # Check for the various Gnome help and URL loading programs.
12355 WITH_BROWSER=gnome-open
12356 if test "$have_gtk" = yes; then
12357 for ac_prog in gnome-open
12359 # Extract the first word of "$ac_prog", so it can be a program name with args.
12360 set dummy $ac_prog; ac_word=$2
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12362 $as_echo_n "checking for $ac_word... " >&6; }
12363 if ${ac_cv_prog_gnome_open_program+:} false; then :
12364 $as_echo_n "(cached) " >&6
12366 if test -n "$gnome_open_program"; then
12367 ac_cv_prog_gnome_open_program="$gnome_open_program" # Let the user override the test.
12369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12370 for as_dir in $PATH
12373 test -z "$as_dir" && as_dir=.
12374 for ac_exec_ext in '' $ac_executable_extensions; do
12375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12376 ac_cv_prog_gnome_open_program="$ac_prog"
12377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12386 gnome_open_program=$ac_cv_prog_gnome_open_program
12387 if test -n "$gnome_open_program"; then
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnome_open_program" >&5
12389 $as_echo "$gnome_open_program" >&6; }
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392 $as_echo "no" >&6; }
12396 test -n "$gnome_open_program" && break
12399 for ac_prog in gnome-url-show
12401 # Extract the first word of "$ac_prog", so it can be a program name with args.
12402 set dummy $ac_prog; ac_word=$2
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12404 $as_echo_n "checking for $ac_word... " >&6; }
12405 if ${ac_cv_prog_gnome_url_show_program+:} false; then :
12406 $as_echo_n "(cached) " >&6
12408 if test -n "$gnome_url_show_program"; then
12409 ac_cv_prog_gnome_url_show_program="$gnome_url_show_program" # Let the user override the test.
12411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12412 for as_dir in $PATH
12415 test -z "$as_dir" && as_dir=.
12416 for ac_exec_ext in '' $ac_executable_extensions; do
12417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12418 ac_cv_prog_gnome_url_show_program="$ac_prog"
12419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12428 gnome_url_show_program=$ac_cv_prog_gnome_url_show_program
12429 if test -n "$gnome_url_show_program"; then
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnome_url_show_program" >&5
12431 $as_echo "$gnome_url_show_program" >&6; }
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12434 $as_echo "no" >&6; }
12438 test -n "$gnome_url_show_program" && break
12444 ###############################################################################
12448 ###############################################################################
12451 with_motif_req=unspecified
12453 # Check whether --with-motif was given.
12454 if test "${with_motif+set}" = set; then :
12455 withval=$with_motif; with_motif="$withval"; with_motif_req="$withval"
12462 case "$with_motif" in
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif headers" >&5
12468 $as_echo_n "checking for Motif headers... " >&6; }
12469 d=$with_motif/include
12470 if test -d $d; then
12471 X_CFLAGS="-I$d $X_CFLAGS"
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif libs" >&5
12480 $as_echo_n "checking for Motif libs... " >&6; }
12482 if test -d $d; then
12483 X_LIBS="-L$d $X_LIBS"
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
12485 $as_echo "$d" >&6; }
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
12488 $as_echo "not found ($d: no such directory)" >&6; }
12491 # replace the directory string with "yes".
12492 with_motif_req="yes"
12493 with_motif=$with_motif_req
12498 echo "error: argument to --with-motif must be \"yes\", \"no\", or a directory."
12499 echo " If it is a directory, then \`DIR/include' will be added to"
12500 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12506 if test "$with_motif" != yes -a "$with_motif" != no ; then
12507 echo "error: must be yes or no: --with-motif=$with_motif"
12511 if test "$with_motif" = yes; then
12514 ac_save_CPPFLAGS="$CPPFLAGS"
12515 if test \! -z "$includedir" ; then
12516 CPPFLAGS="$CPPFLAGS -I$includedir"
12518 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12519 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12520 ac_fn_c_check_header_compile "$LINENO" "Xm/Xm.h" "ac_cv_header_Xm_Xm_h" "#include <stdlib.h>
12522 #include <X11/Intrinsic.h>
12524 if test "x$ac_cv_header_Xm_Xm_h" = xyes; then :
12526 $as_echo "#define HAVE_MOTIF 1" >>confdefs.h
12528 MOTIF_LIBS="$MOTIF_LIBS -lXm"
12532 CPPFLAGS="$ac_save_CPPFLAGS"
12536 if test "$have_motif" = yes; then
12538 ac_save_CPPFLAGS="$CPPFLAGS"
12539 if test \! -z "$includedir" ; then
12540 CPPFLAGS="$CPPFLAGS -I$includedir"
12542 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12543 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12544 ac_fn_c_check_header_compile "$LINENO" "Xm/ComboBox.h" "ac_cv_header_Xm_ComboBox_h" "#include <stdlib.h>
12546 #include <X11/Intrinsic.h>
12548 if test "x$ac_cv_header_Xm_ComboBox_h" = xyes; then :
12549 $as_echo "#define HAVE_XMCOMBOBOX 1" >>confdefs.h
12554 CPPFLAGS="$ac_save_CPPFLAGS"
12558 ###############################################################################
12560 # Checking whether Motif is really Lesstif.
12562 ###############################################################################
12565 if test "$have_motif" = yes ; then
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Motif is really LessTif" >&5
12567 $as_echo_n "checking whether Motif is really LessTif... " >&6; }
12568 if ${ac_cv_have_lesstif+:} false; then :
12569 $as_echo_n "(cached) " >&6
12572 ac_save_CPPFLAGS="$CPPFLAGS"
12573 if test \! -z "$includedir" ; then
12574 CPPFLAGS="$CPPFLAGS -I$includedir"
12576 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12577 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12579 /* end confdefs.h. */
12584 long vers = LesstifVersion;
12589 if ac_fn_c_try_compile "$LINENO"; then :
12590 ac_cv_have_lesstif=yes
12592 ac_cv_have_lesstif=no
12594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12595 CPPFLAGS="$ac_save_CPPFLAGS"
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lesstif" >&5
12598 $as_echo "$ac_cv_have_lesstif" >&6; }
12599 have_lesstif=$ac_cv_have_lesstif
12603 lesstif_version=unknown
12604 lesstif_version_string=unknown
12606 if test "$have_lesstif" = yes ; then
12608 echo unknown > conftest-lt
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LessTif version number" >&5
12610 $as_echo_n "checking LessTif version number... " >&6; }
12611 if ${ac_cv_lesstif_version_string+:} false; then :
12612 $as_echo_n "(cached) " >&6
12615 ac_save_CPPFLAGS="$CPPFLAGS"
12616 if test \! -z "$includedir" ; then
12617 CPPFLAGS="$CPPFLAGS -I$includedir"
12619 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12620 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12621 if test "$cross_compiling" = yes; then :
12622 ac_cv_lesstif_version=unknown
12623 ac_cv_lesstif_version_string=unknown
12625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12626 /* end confdefs.h. */
12630 FILE *f = fopen("conftest-lt", "w");
12632 fprintf(f, "%d %d.%d\n", LesstifVersion,
12633 LESSTIF_VERSION, LESSTIF_REVISION);
12638 if ac_fn_c_try_run "$LINENO"; then :
12639 ltv=`cat conftest-lt`
12640 ac_cv_lesstif_version=`echo $ltv | sed 's/ .*//'`
12641 ac_cv_lesstif_version_string=`echo $ltv | sed 's/.* //'`
12643 ac_cv_lesstif_version=unknown
12644 ac_cv_lesstif_version_string=unknown
12646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12647 conftest.$ac_objext conftest.beam conftest.$ac_ext
12650 CPPFLAGS="$ac_save_CPPFLAGS"
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lesstif_version_string" >&5
12653 $as_echo "$ac_cv_lesstif_version_string" >&6; }
12655 lesstif_version=$ac_cv_lesstif_version
12656 lesstif_version_string=$ac_cv_lesstif_version_string
12661 if test "$have_motif" = yes ; then
12663 echo unknown > conftest-mt
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Motif version number" >&5
12665 $as_echo_n "checking Motif version number... " >&6; }
12666 if ${ac_cv_motif_version_string+:} false; then :
12667 $as_echo_n "(cached) " >&6
12670 ac_save_CPPFLAGS="$CPPFLAGS"
12671 if test \! -z "$includedir" ; then
12672 CPPFLAGS="$CPPFLAGS -I$includedir"
12674 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12675 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12676 if test "$cross_compiling" = yes; then :
12677 ac_cv_motif_version=unknown
12678 ac_cv_motif_version_string=unknown
12680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12681 /* end confdefs.h. */
12685 FILE *f = fopen("conftest-mt", "w");
12687 fprintf(f, "%d %d.%d\n", XmVersion,
12688 XmVERSION, XmREVISION);
12693 if ac_fn_c_try_run "$LINENO"; then :
12694 mtv=`cat conftest-mt`
12695 ac_cv_motif_version=`echo $mtv | sed 's/ .*//'`
12696 ac_cv_motif_version_string=`echo $mtv | sed 's/.* //'`
12698 ac_cv_motif_version=unknown
12699 ac_cv_motif_version_string=unknown
12701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12702 conftest.$ac_objext conftest.beam conftest.$ac_ext
12705 CPPFLAGS="$ac_save_CPPFLAGS"
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_motif_version_string" >&5
12708 $as_echo "$ac_cv_motif_version_string" >&6; }
12710 motif_version=$ac_cv_motif_version
12711 motif_version_string=$ac_cv_motif_version_string
12716 ###############################################################################
12718 # Checking whether Motif requires -lXpm.
12720 # If this is Motif 2.x, and we have XPM, then link against XPM as well.
12721 # The deal is, Motif 2.x requires XPM -- but it's a compilation option
12722 # of the library whether to build the XPM code into libXm, or whether
12723 # to rely on an external libXm. So the only way to tell whether XPM is
12724 # a link-time requirement is to examine libXm.a, which is very
12725 # difficult to do in an autoconf script. So... if it's Motif 2.x, we
12726 # always link against XPM if the XPM lib exists (and this will be a
12727 # no-op if libXm happens to already have the XPM code in it.)
12729 ###############################################################################
12731 motif_requires_xpm=no
12732 if test "$have_motif" = yes ; then
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Motif requires XPM" >&5
12734 $as_echo_n "checking whether Motif requires XPM... " >&6; }
12735 if test "$motif_version" = "unknown" || test "$motif_version" -ge 2000
12737 motif_requires_xpm=yes
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
12739 $as_echo "maybe" >&6; }
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12742 $as_echo "no" >&6; }
12747 ###############################################################################
12749 # Checking whether Motif requires -lXp.
12751 # Some versions of Motif (2.1.0, at least) require -lXp, the "X Printing
12752 # Extension". Why this extension isn't in -lXext with all the others,
12755 ###############################################################################
12758 if test "$have_motif" = yes ; then
12761 ac_save_CPPFLAGS="$CPPFLAGS"
12762 ac_save_LDFLAGS="$LDFLAGS"
12763 # ac_save_LIBS="$LIBS"
12765 if test \! -z "$includedir" ; then
12766 CPPFLAGS="$CPPFLAGS -I$includedir"
12768 # note: $X_CFLAGS includes $x_includes
12769 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12771 if test \! -z "$libdir" ; then
12772 LDFLAGS="$LDFLAGS -L$libdir"
12774 # note: $X_LIBS includes $x_libraries
12775 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12777 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12778 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpQueryExtension in -lXp" >&5
12780 $as_echo_n "checking for XpQueryExtension in -lXp... " >&6; }
12781 if ${ac_cv_lib_Xp_XpQueryExtension+:} false; then :
12782 $as_echo_n "(cached) " >&6
12784 ac_check_lib_save_LIBS=$LIBS
12785 LIBS="-lXp -lX11 -lXext -lm $LIBS"
12786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12787 /* end confdefs.h. */
12789 /* Override any GCC internal prototype to avoid an error.
12790 Use char because int might match the return type of a GCC
12791 builtin and then its argument prototype would still apply. */
12795 char XpQueryExtension ();
12799 return XpQueryExtension ();
12804 if ac_fn_c_try_link "$LINENO"; then :
12805 ac_cv_lib_Xp_XpQueryExtension=yes
12807 ac_cv_lib_Xp_XpQueryExtension=no
12809 rm -f core conftest.err conftest.$ac_objext \
12810 conftest$ac_exeext conftest.$ac_ext
12811 LIBS=$ac_check_lib_save_LIBS
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpQueryExtension" >&5
12814 $as_echo "$ac_cv_lib_Xp_XpQueryExtension" >&6; }
12815 if test "x$ac_cv_lib_Xp_XpQueryExtension" = xyes; then :
12816 have_xp_ext=yes; MOTIF_LIBS="$MOTIF_LIBS -lXp"
12821 CPPFLAGS="$ac_save_CPPFLAGS"
12822 LDFLAGS="$ac_save_LDFLAGS"
12823 # LIBS="$ac_save_LIBS"
12828 ###############################################################################
12830 # Checking whether Motif requires -lXintl (for _Xsetlocale.)
12832 ###############################################################################
12835 if test "$have_motif" = yes ; then
12837 ac_save_CPPFLAGS="$CPPFLAGS"
12838 ac_save_LDFLAGS="$LDFLAGS"
12839 # ac_save_LIBS="$LIBS"
12841 if test \! -z "$includedir" ; then
12842 CPPFLAGS="$CPPFLAGS -I$includedir"
12844 # note: $X_CFLAGS includes $x_includes
12845 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12847 if test \! -z "$libdir" ; then
12848 LDFLAGS="$LDFLAGS -L$libdir"
12850 # note: $X_LIBS includes $x_libraries
12851 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12853 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12854 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Xsetlocale in -lXintl" >&5
12856 $as_echo_n "checking for _Xsetlocale in -lXintl... " >&6; }
12857 if ${ac_cv_lib_Xintl__Xsetlocale+:} false; then :
12858 $as_echo_n "(cached) " >&6
12860 ac_check_lib_save_LIBS=$LIBS
12861 LIBS="-lXintl -lX11 -lXext -lm $LIBS"
12862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h. */
12865 /* Override any GCC internal prototype to avoid an error.
12866 Use char because int might match the return type of a GCC
12867 builtin and then its argument prototype would still apply. */
12871 char _Xsetlocale ();
12875 return _Xsetlocale ();
12880 if ac_fn_c_try_link "$LINENO"; then :
12881 ac_cv_lib_Xintl__Xsetlocale=yes
12883 ac_cv_lib_Xintl__Xsetlocale=no
12885 rm -f core conftest.err conftest.$ac_objext \
12886 conftest$ac_exeext conftest.$ac_ext
12887 LIBS=$ac_check_lib_save_LIBS
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xintl__Xsetlocale" >&5
12890 $as_echo "$ac_cv_lib_Xintl__Xsetlocale" >&6; }
12891 if test "x$ac_cv_lib_Xintl__Xsetlocale" = xyes; then :
12897 CPPFLAGS="$ac_save_CPPFLAGS"
12898 LDFLAGS="$ac_save_LDFLAGS"
12899 # LIBS="$ac_save_LIBS"
12901 if test "$have_xintl" = yes; then
12902 MOTIF_LIBS="$MOTIF_LIBS -lXintl"
12907 ###############################################################################
12909 # Check for -lGL or -lMesaGL.
12911 ###############################################################################
12915 with_gl_req=unspecified
12918 # Check whether --with-gl was given.
12919 if test "${with_gl+set}" = set; then :
12920 withval=$with_gl; with_gl="$withval"; with_gl_req="$withval"
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL headers" >&5
12933 $as_echo_n "checking for GL headers... " >&6; }
12935 if test -d $d; then
12936 X_CFLAGS="-I$d $X_CFLAGS"
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
12938 $as_echo "$d" >&6; }
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
12941 $as_echo "not found ($d: no such directory)" >&6; }
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL libs" >&5
12945 $as_echo_n "checking for GL libs... " >&6; }
12947 if test -d $d; then
12948 X_LIBS="-L$d $X_LIBS"
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
12950 $as_echo "$d" >&6; }
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
12953 $as_echo "not found ($d: no such directory)" >&6; }
12956 # replace the directory string with "yes".
12958 with_gl=$with_gl_req
12963 echo "error: argument to --with-gl must be \"yes\", \"no\", or a directory."
12964 echo " If it is a directory, then \`DIR/include' will be added to"
12965 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12971 ac_mesagl_version=unknown
12972 ac_mesagl_version_string=unknown
12974 if test "$with_gl" = yes; then
12976 ac_save_CPPFLAGS="$CPPFLAGS"
12977 if test \! -z "$includedir" ; then
12978 CPPFLAGS="$CPPFLAGS -I$includedir"
12980 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12981 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12982 ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
12983 if test "x$ac_cv_header_GL_gl_h" = xyes; then :
12990 CPPFLAGS="$ac_save_CPPFLAGS"
12991 if test "$have_gl" = yes ; then
12993 ac_save_CPPFLAGS="$CPPFLAGS"
12994 if test \! -z "$includedir" ; then
12995 CPPFLAGS="$CPPFLAGS -I$includedir"
12997 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12998 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12999 ac_fn_c_check_header_compile "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "#include <GL/gl.h>
13001 if test "x$ac_cv_header_GL_glx_h" = xyes; then :
13008 CPPFLAGS="$ac_save_CPPFLAGS"
13011 # If we have the headers, try and figure out which vendor it's from.
13013 if test "$have_gl" = yes ; then
13015 # We need to know whether it's MesaGL so that we know which libraries
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GL is really MesaGL" >&5
13019 $as_echo_n "checking whether GL is really MesaGL... " >&6; }
13020 if ${ac_cv_have_mesa_gl+:} false; then :
13021 $as_echo_n "(cached) " >&6
13023 ac_cv_have_mesa_gl=no
13024 if test "$ac_macosx" = no; then
13025 # WTF! MacOS 10.5.0 ships the Mesa GL headers!
13026 # It's not really Mesa, is it?
13028 ac_save_CPPFLAGS="$CPPFLAGS"
13029 if test \! -z "$includedir" ; then
13030 CPPFLAGS="$CPPFLAGS -I$includedir"
13032 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13033 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13035 /* end confdefs.h. */
13036 #include <GL/glx.h>
13039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13040 $EGREP "Mesa|MESA" >/dev/null 2>&1; then :
13041 ac_cv_have_mesa_gl=yes
13045 CPPFLAGS="$ac_save_CPPFLAGS"
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mesa_gl" >&5
13049 $as_echo "$ac_cv_have_mesa_gl" >&6; }
13050 ac_have_mesa_gl=$ac_cv_have_mesa_gl
13055 if test "$ac_macosx" = yes; then
13057 # Without these, every link against libGL gets a bunch of useless
13060 osx_crud="-bind_at_load -multiply_defined suppress"
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding \"$osx_crud\" to GL_LIBS" >&5
13062 $as_echo "adding \"$osx_crud\" to GL_LIBS" >&6; }
13063 GL_LIBS="$GL_LIBS $osx_crud"
13066 # New lossage in 10.5.0: without this, we get:
13067 # ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib
13069 osx_crud="/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
13070 osx_crud="-Wl,-dylib_file,${osx_crud}:${osx_crud}"
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding \"$osx_crud\" to GL_LIBS" >&5
13073 $as_echo "adding \"$osx_crud\" to GL_LIBS" >&6; }
13074 GL_LIBS="$GL_LIBS $osx_crud"
13077 # New lossage in 10.6.8: we can't allow -L/opt/local/lib to be in the
13078 # link line, or at runtime XQueryExtension gets a segv due to some kind
13079 # of library version skew. Libs must come from /usr/X11/lib even if
13080 # $prefix and/or $exec_prefix are set to /opt/local/.
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: omitting \"$libdir\" from LDFLAGS" >&5
13083 $as_echo "omitting \"$libdir\" from LDFLAGS" >&6; }
13086 # Looks like as of OSX 10.12, gcc can't do ObjC.
13087 OBJCC="clang -Wall"
13092 # Some versions of MesaGL are compiled to require -lpthread.
13093 # So if the Mesa headers exist, and -lpthread exists, then always
13094 # link -lpthread after the Mesa libs (be they named -lGL or -lMesaGL.)
13096 # Oftentimes, AX_PTHREAD will bring in -lpthread as well; but that ends
13097 # up before -l(Mesa)GL, instead of after where it would belong.
13099 if test "$ac_have_mesa_gl" = yes; then
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
13101 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
13102 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
13103 $as_echo_n "(cached) " >&6
13105 ac_check_lib_save_LIBS=$LIBS
13106 LIBS="-lpthread $LIBS"
13107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13108 /* end confdefs.h. */
13110 /* Override any GCC internal prototype to avoid an error.
13111 Use char because int might match the return type of a GCC
13112 builtin and then its argument prototype would still apply. */
13116 char pthread_create ();
13120 return pthread_create ();
13125 if ac_fn_c_try_link "$LINENO"; then :
13126 ac_cv_lib_pthread_pthread_create=yes
13128 ac_cv_lib_pthread_pthread_create=no
13130 rm -f core conftest.err conftest.$ac_objext \
13131 conftest$ac_exeext conftest.$ac_ext
13132 LIBS=$ac_check_lib_save_LIBS
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
13135 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
13136 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
13137 GL_LIBS="-lpthread"
13143 # If we have Mesa headers, check to see if we can link against -lMesaGL.
13144 # If we don't have Mesa headers, or we don't have -lMesaGL, try -lGL.
13145 # Else, warn that GL is busted. (We have the headers, but no libs.)
13148 if test "$ac_have_mesa_gl" = yes ; then
13150 ac_save_CPPFLAGS="$CPPFLAGS"
13151 ac_save_LDFLAGS="$LDFLAGS"
13152 # ac_save_LIBS="$LIBS"
13154 if test \! -z "$includedir" ; then
13155 CPPFLAGS="$CPPFLAGS -I$includedir"
13157 # note: $X_CFLAGS includes $x_includes
13158 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13160 if test \! -z "$libdir" ; then
13161 LDFLAGS="$LDFLAGS -L$libdir"
13163 # note: $X_LIBS includes $x_libraries
13164 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13166 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13167 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXCreateContext in -lMesaGL" >&5
13169 $as_echo_n "checking for glXCreateContext in -lMesaGL... " >&6; }
13170 if ${ac_cv_lib_MesaGL_glXCreateContext+:} false; then :
13171 $as_echo_n "(cached) " >&6
13173 ac_check_lib_save_LIBS=$LIBS
13174 LIBS="-lMesaGL -lMesaGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
13175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13176 /* end confdefs.h. */
13178 /* Override any GCC internal prototype to avoid an error.
13179 Use char because int might match the return type of a GCC
13180 builtin and then its argument prototype would still apply. */
13184 char glXCreateContext ();
13188 return glXCreateContext ();
13193 if ac_fn_c_try_link "$LINENO"; then :
13194 ac_cv_lib_MesaGL_glXCreateContext=yes
13196 ac_cv_lib_MesaGL_glXCreateContext=no
13198 rm -f core conftest.err conftest.$ac_objext \
13199 conftest$ac_exeext conftest.$ac_ext
13200 LIBS=$ac_check_lib_save_LIBS
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_MesaGL_glXCreateContext" >&5
13203 $as_echo "$ac_cv_lib_MesaGL_glXCreateContext" >&6; }
13204 if test "x$ac_cv_lib_MesaGL_glXCreateContext" = xyes; then :
13206 GL_LIBS="-lMesaGL -lMesaGLU $VIDMODE_LIBS $GL_LIBS"
13209 CPPFLAGS="$ac_save_CPPFLAGS"
13210 LDFLAGS="$ac_save_LDFLAGS"
13211 # LIBS="$ac_save_LIBS"
13215 if test "$gl_lib_1" = "" ; then
13217 ac_save_CPPFLAGS="$CPPFLAGS"
13218 ac_save_LDFLAGS="$LDFLAGS"
13219 # ac_save_LIBS="$LIBS"
13221 if test \! -z "$includedir" ; then
13222 CPPFLAGS="$CPPFLAGS -I$includedir"
13224 # note: $X_CFLAGS includes $x_includes
13225 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13227 if test \! -z "$libdir" ; then
13228 LDFLAGS="$LDFLAGS -L$libdir"
13230 # note: $X_LIBS includes $x_libraries
13231 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13233 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13234 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXCreateContext in -lGL" >&5
13236 $as_echo_n "checking for glXCreateContext in -lGL... " >&6; }
13237 if ${ac_cv_lib_GL_glXCreateContext+:} false; then :
13238 $as_echo_n "(cached) " >&6
13240 ac_check_lib_save_LIBS=$LIBS
13241 LIBS="-lGL -lGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
13242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13243 /* end confdefs.h. */
13245 /* Override any GCC internal prototype to avoid an error.
13246 Use char because int might match the return type of a GCC
13247 builtin and then its argument prototype would still apply. */
13251 char glXCreateContext ();
13255 return glXCreateContext ();
13260 if ac_fn_c_try_link "$LINENO"; then :
13261 ac_cv_lib_GL_glXCreateContext=yes
13263 ac_cv_lib_GL_glXCreateContext=no
13265 rm -f core conftest.err conftest.$ac_objext \
13266 conftest$ac_exeext conftest.$ac_ext
13267 LIBS=$ac_check_lib_save_LIBS
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glXCreateContext" >&5
13270 $as_echo "$ac_cv_lib_GL_glXCreateContext" >&6; }
13271 if test "x$ac_cv_lib_GL_glXCreateContext" = xyes; then :
13273 GL_LIBS="-lGL -lGLU $VIDMODE_LIBS $GL_LIBS"
13276 CPPFLAGS="$ac_save_CPPFLAGS"
13277 LDFLAGS="$ac_save_LDFLAGS"
13278 # LIBS="$ac_save_LIBS"
13282 if test "$gl_lib_1" = "" ; then
13283 # we have headers, but no libs -- bail.
13288 # linking works -- we can build the GL hacks.
13289 $as_echo "#define HAVE_GL 1" >>confdefs.h
13291 if test "$ac_have_mesa_gl" = yes ; then
13292 $as_echo "#define HAVE_MESA_GL 1" >>confdefs.h
13299 # Now that we know we have GL headers and libs, do some more GL testing.
13302 if test "$have_gl" = yes ; then
13303 # If it's MesaGL, we'd like to issue a warning if the version number
13304 # is less than or equal to 2.6, because that version had a security bug.
13306 if test "$ac_have_mesa_gl" = yes; then
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MesaGL version number" >&5
13309 $as_echo_n "checking MesaGL version number... " >&6; }
13310 if ${ac_cv_mesagl_version_string+:} false; then :
13311 $as_echo_n "(cached) " >&6
13313 cat > conftest.$ac_ext <<EOF
13314 #line 13318 "configure"
13315 #include "confdefs.h"
13317 #ifndef MESA_MAJOR_VERSION
13318 # include <GL/xmesa.h>
13319 # ifdef XMESA_MAJOR_VERSION
13320 /* Around Mesa 3.2, they took out the Mesa version number, so instead,
13321 we have to check the XMesa version number (the number of the X protocol
13322 support, which seems to be the same as the Mesa version number.)
13324 # define MESA_MAJOR_VERSION XMESA_MAJOR_VERSION
13325 # define MESA_MINOR_VERSION XMESA_MINOR_VERSION
13327 /* Oh great. Some time after 3.4, they took out the xmesa.h header file,
13328 so we have no way of telling what version of Mesa this is at all.
13329 So, we'll guess that the osmesa version (the "offscreen protocol")
13330 is less than or equal to the real mesa version number. Except that
13331 if OSmesa is 3.3, assume at least Mesa 3.4, since OSmesa was 3.3 in
13332 Mesa 3.4. And Mesa 3.3 had xmesa.h. What a complete load of shit!
13334 # include <GL/osmesa.h>
13335 # define MESA_MAJOR_VERSION OSMESA_MAJOR_VERSION
13336 # define MESA_MINOR_VERSION OSMESA_MINOR_VERSION or newer, probably?
13337 # if OSMESA_MAJOR_VERSION == 3 && OSMESA_MINOR_VERSION == 3
13338 # undef MESA_MINOR_VERSION
13339 # define MESA_MINOR_VERSION 4 or newer, probably?
13343 configure: MESA_MAJOR_VERSION MESA_MINOR_VERSION
13346 ac_save_CPPFLAGS="$CPPFLAGS"
13347 if test \! -z "$includedir" ; then
13348 CPPFLAGS="$CPPFLAGS -I$includedir"
13350 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13352 mglv=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | grep configure:`
13356 mglv=`echo "$mglv" | sed -n \
13357 's/^configure: *\([0-9][0-9]*\) *\([0-9].*\)$/\1.\2/p'`
13360 rm -rf conftest.$ac_ext
13362 CPPFLAGS="$ac_save_CPPFLAGS"
13364 if test "$mglv" = ""; then
13365 ac_mesagl_version=unknown
13366 ac_mesagl_version_string=unknown
13368 ac_mesagl_version_string="$mglv"
13371 maj=`echo "$mglv" | sed -n 's/^\([0-9][0-9]*\)\..*$/\1/p'`
13372 min=`echo "$mglv" | sed -n 's/^.*\.\([0-9][0-9]*\).*$/\1/p'`
13374 ac_mesagl_version=`echo "$maj * 1000 + $min" | bc`
13375 if test -z "$ac_mesagl_version"; then
13376 ac_mesagl_version=unknown
13377 ac_mesagl_version_string=unknown
13380 ac_cv_mesagl_version=$ac_mesagl_version
13381 ac_cv_mesagl_version_string=$ac_mesagl_version_string
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mesagl_version_string" >&5
13385 $as_echo "$ac_cv_mesagl_version_string" >&6; }
13386 ac_mesagl_version=$ac_cv_mesagl_version
13387 ac_mesagl_version_string=$ac_cv_mesagl_version_string
13391 # Check for OpenGL 1.1 features.
13394 ac_save_CPPFLAGS="$CPPFLAGS"
13395 ac_save_LDFLAGS="$LDFLAGS"
13396 # ac_save_LIBS="$LIBS"
13398 if test \! -z "$includedir" ; then
13399 CPPFLAGS="$CPPFLAGS -I$includedir"
13401 # note: $X_CFLAGS includes $x_includes
13402 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13404 if test \! -z "$libdir" ; then
13405 LDFLAGS="$LDFLAGS -L$libdir"
13407 # note: $X_LIBS includes $x_libraries
13408 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13410 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13411 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13412 as_ac_Lib=`$as_echo "ac_cv_lib_$gl_lib_1''_glBindTexture" | $as_tr_sh`
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBindTexture in -l$gl_lib_1" >&5
13414 $as_echo_n "checking for glBindTexture in -l$gl_lib_1... " >&6; }
13415 if eval \${$as_ac_Lib+:} false; then :
13416 $as_echo_n "(cached) " >&6
13418 ac_check_lib_save_LIBS=$LIBS
13419 LIBS="-l$gl_lib_1 $GL_LIBS -lX11 -lXext -lm $LIBS"
13420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13421 /* end confdefs.h. */
13423 /* Override any GCC internal prototype to avoid an error.
13424 Use char because int might match the return type of a GCC
13425 builtin and then its argument prototype would still apply. */
13429 char glBindTexture ();
13433 return glBindTexture ();
13438 if ac_fn_c_try_link "$LINENO"; then :
13439 eval "$as_ac_Lib=yes"
13441 eval "$as_ac_Lib=no"
13443 rm -f core conftest.err conftest.$ac_objext \
13444 conftest$ac_exeext conftest.$ac_ext
13445 LIBS=$ac_check_lib_save_LIBS
13447 eval ac_res=\$$as_ac_Lib
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13449 $as_echo "$ac_res" >&6; }
13450 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
13451 $as_echo "#define HAVE_GLBINDTEXTURE 1" >>confdefs.h
13457 CPPFLAGS="$ac_save_CPPFLAGS"
13458 LDFLAGS="$ac_save_LDFLAGS"
13459 # LIBS="$ac_save_LIBS"
13463 elif test "$with_gl" != no; then
13464 echo "error: must be yes or no: --with-gl=$with_gl"
13469 ###############################################################################
13473 ###############################################################################
13476 with_gle_req=unspecified
13479 # Check whether --with-gle was given.
13480 if test "${with_gle+set}" = set; then :
13481 withval=$with_gle; with_gle="$withval"; with_gle_req="$withval"
13488 case "$with_gle" in
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLE headers" >&5
13494 $as_echo_n "checking for GLE headers... " >&6; }
13495 d=$with_gle/include
13496 if test -d $d; then
13497 X_CFLAGS="-I$d $X_CFLAGS"
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13499 $as_echo "$d" >&6; }
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13502 $as_echo "not found ($d: no such directory)" >&6; }
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLE libs" >&5
13506 $as_echo_n "checking for GLE libs... " >&6; }
13508 if test -d $d; then
13509 X_LIBS="-L$d $X_LIBS"
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13511 $as_echo "$d" >&6; }
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13514 $as_echo "not found ($d: no such directory)" >&6; }
13517 # replace the directory string with "yes".
13519 with_gle=$with_gle_req
13524 echo "error: argument to --with-gle must be \"yes\", \"no\", or a directory."
13525 echo " If it is a directory, then \`DIR/include' will be added to"
13526 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13534 if test "$have_gl" = no ; then
13536 elif test "$with_gle" = yes; then
13539 ac_save_CPPFLAGS="$CPPFLAGS"
13540 if test \! -z "$includedir" ; then
13541 CPPFLAGS="$CPPFLAGS -I$includedir"
13543 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13544 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13545 ac_fn_c_check_header_compile "$LINENO" "GL/gle.h" "ac_cv_header_GL_gle_h" "#include <GL/gl.h>
13547 if test "x$ac_cv_header_GL_gle_h" = xyes; then :
13554 CPPFLAGS="$ac_save_CPPFLAGS"
13555 if test "$have_gle3" = yes ; then
13559 ac_save_CPPFLAGS="$CPPFLAGS"
13560 if test \! -z "$includedir" ; then
13561 CPPFLAGS="$CPPFLAGS -I$includedir"
13563 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13564 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13565 ac_fn_c_check_header_compile "$LINENO" "GL/gutil.h" "ac_cv_header_GL_gutil_h" "#include <GL/gl.h>
13567 if test "x$ac_cv_header_GL_gutil_h" = xyes; then :
13574 CPPFLAGS="$ac_save_CPPFLAGS"
13575 if test "$have_gle" = yes ; then
13577 ac_save_CPPFLAGS="$CPPFLAGS"
13578 if test \! -z "$includedir" ; then
13579 CPPFLAGS="$CPPFLAGS -I$includedir"
13581 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13582 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13583 ac_fn_c_check_header_compile "$LINENO" "GL/tube.h" "ac_cv_header_GL_tube_h" "#include <GL/gl.h>
13585 if test "x$ac_cv_header_GL_tube_h" = xyes; then :
13592 CPPFLAGS="$ac_save_CPPFLAGS"
13596 if test "$have_gle" = yes ; then
13600 ac_save_CPPFLAGS="$CPPFLAGS"
13601 ac_save_LDFLAGS="$LDFLAGS"
13602 # ac_save_LIBS="$LIBS"
13604 if test \! -z "$includedir" ; then
13605 CPPFLAGS="$CPPFLAGS -I$includedir"
13607 # note: $X_CFLAGS includes $x_includes
13608 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13610 if test \! -z "$libdir" ; then
13611 LDFLAGS="$LDFLAGS -L$libdir"
13613 # note: $X_LIBS includes $x_libraries
13614 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13616 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13617 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gleCreateGC in -lgle" >&5
13619 $as_echo_n "checking for gleCreateGC in -lgle... " >&6; }
13620 if ${ac_cv_lib_gle_gleCreateGC+:} false; then :
13621 $as_echo_n "(cached) " >&6
13623 ac_check_lib_save_LIBS=$LIBS
13624 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
13625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13626 /* end confdefs.h. */
13628 /* Override any GCC internal prototype to avoid an error.
13629 Use char because int might match the return type of a GCC
13630 builtin and then its argument prototype would still apply. */
13634 char gleCreateGC ();
13638 return gleCreateGC ();
13643 if ac_fn_c_try_link "$LINENO"; then :
13644 ac_cv_lib_gle_gleCreateGC=yes
13646 ac_cv_lib_gle_gleCreateGC=no
13648 rm -f core conftest.err conftest.$ac_objext \
13649 conftest$ac_exeext conftest.$ac_ext
13650 LIBS=$ac_check_lib_save_LIBS
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gle_gleCreateGC" >&5
13653 $as_echo "$ac_cv_lib_gle_gleCreateGC" >&6; }
13654 if test "x$ac_cv_lib_gle_gleCreateGC" = xyes; then :
13655 have_gle=yes; gle_halfassed=no; GLE_LIBS="-lgle"
13658 CPPFLAGS="$ac_save_CPPFLAGS"
13659 LDFLAGS="$ac_save_LDFLAGS"
13660 # LIBS="$ac_save_LIBS"
13663 if test "$have_gle" = yes ; then
13667 # sometimes the libmatrix stuff is included in libgle. look there first.
13669 # I don't get it. For some reason, this test passes on SGI, as if
13670 # uview_direction_d() was in libgle -- but it's not, it's in libmatrix.
13671 # Yet the link is succeeding. Why???
13673 # AC_CHECK_X_LIB(gle, uview_direction_d,
13674 # [have_gle=yes; gle_halfassed=no],
13675 # [], $GL_LIBS -lX11 -lXext -lm)
13677 # As of GLE 3 this is in libgle, and has changed name to uview_direction!
13679 if test "$have_gle3" = yes ; then
13681 ac_save_CPPFLAGS="$CPPFLAGS"
13682 ac_save_LDFLAGS="$LDFLAGS"
13683 # ac_save_LIBS="$LIBS"
13685 if test \! -z "$includedir" ; then
13686 CPPFLAGS="$CPPFLAGS -I$includedir"
13688 # note: $X_CFLAGS includes $x_includes
13689 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13691 if test \! -z "$libdir" ; then
13692 LDFLAGS="$LDFLAGS -L$libdir"
13694 # note: $X_LIBS includes $x_libraries
13695 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13697 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13698 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uview_direction in -lgle" >&5
13700 $as_echo_n "checking for uview_direction in -lgle... " >&6; }
13701 if ${ac_cv_lib_gle_uview_direction+:} false; then :
13702 $as_echo_n "(cached) " >&6
13704 ac_check_lib_save_LIBS=$LIBS
13705 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
13706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13707 /* end confdefs.h. */
13709 /* Override any GCC internal prototype to avoid an error.
13710 Use char because int might match the return type of a GCC
13711 builtin and then its argument prototype would still apply. */
13715 char uview_direction ();
13719 return uview_direction ();
13724 if ac_fn_c_try_link "$LINENO"; then :
13725 ac_cv_lib_gle_uview_direction=yes
13727 ac_cv_lib_gle_uview_direction=no
13729 rm -f core conftest.err conftest.$ac_objext \
13730 conftest$ac_exeext conftest.$ac_ext
13731 LIBS=$ac_check_lib_save_LIBS
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gle_uview_direction" >&5
13734 $as_echo "$ac_cv_lib_gle_uview_direction" >&6; }
13735 if test "x$ac_cv_lib_gle_uview_direction" = xyes; then :
13736 have_gle=yes; gle_halfassed=no
13739 CPPFLAGS="$ac_save_CPPFLAGS"
13740 LDFLAGS="$ac_save_LDFLAGS"
13741 # LIBS="$ac_save_LIBS"
13744 # if it wasn't in libgle, then look in libmatrix.
13745 if test "$have_gle" = no ; then
13747 ac_save_CPPFLAGS="$CPPFLAGS"
13748 ac_save_LDFLAGS="$LDFLAGS"
13749 # ac_save_LIBS="$LIBS"
13751 if test \! -z "$includedir" ; then
13752 CPPFLAGS="$CPPFLAGS -I$includedir"
13754 # note: $X_CFLAGS includes $x_includes
13755 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13757 if test \! -z "$libdir" ; then
13758 LDFLAGS="$LDFLAGS -L$libdir"
13760 # note: $X_LIBS includes $x_libraries
13761 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13763 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13764 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uview_direction_d in -lmatrix" >&5
13766 $as_echo_n "checking for uview_direction_d in -lmatrix... " >&6; }
13767 if ${ac_cv_lib_matrix_uview_direction_d+:} false; then :
13768 $as_echo_n "(cached) " >&6
13770 ac_check_lib_save_LIBS=$LIBS
13771 LIBS="-lmatrix $GL_LIBS -lX11 -lXext -lm $LIBS"
13772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13773 /* end confdefs.h. */
13775 /* Override any GCC internal prototype to avoid an error.
13776 Use char because int might match the return type of a GCC
13777 builtin and then its argument prototype would still apply. */
13781 char uview_direction_d ();
13785 return uview_direction_d ();
13790 if ac_fn_c_try_link "$LINENO"; then :
13791 ac_cv_lib_matrix_uview_direction_d=yes
13793 ac_cv_lib_matrix_uview_direction_d=no
13795 rm -f core conftest.err conftest.$ac_objext \
13796 conftest$ac_exeext conftest.$ac_ext
13797 LIBS=$ac_check_lib_save_LIBS
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_matrix_uview_direction_d" >&5
13800 $as_echo "$ac_cv_lib_matrix_uview_direction_d" >&6; }
13801 if test "x$ac_cv_lib_matrix_uview_direction_d" = xyes; then :
13802 have_gle=yes; gle_halfassed=no;
13803 GLE_LIBS="$GLE_LIBS -lmatrix"
13806 CPPFLAGS="$ac_save_CPPFLAGS"
13807 LDFLAGS="$ac_save_LDFLAGS"
13808 # LIBS="$ac_save_LIBS"
13813 if test "$have_gle" = yes ; then
13814 $as_echo "#define HAVE_GLE 1" >>confdefs.h
13816 if test "$have_gle3" = yes ; then
13817 $as_echo "#define HAVE_GLE3 1" >>confdefs.h
13822 elif test "$with_gle" != no; then
13823 echo "error: must be yes or no: --with-gle=$with_gle"
13829 ###############################################################################
13831 # Handle --with-gles
13833 ###############################################################################
13835 with_gles_req=unspecified
13837 # Check whether --with-gles was given.
13838 if test "${with_gles+set}" = set; then :
13839 withval=$with_gles; with_gles="$withval"; with_gles_req="$withval"
13846 case "$with_gles" in
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JWZGLES headers" >&5
13852 $as_echo_n "checking for JWZGLES headers... " >&6; }
13853 d=$with_gles/include
13854 if test -d $d; then
13855 X_CFLAGS="-I$d $X_CFLAGS"
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13857 $as_echo "$d" >&6; }
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13860 $as_echo "not found ($d: no such directory)" >&6; }
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JWZGLES libs" >&5
13864 $as_echo_n "checking for JWZGLES libs... " >&6; }
13866 if test -d $d; then
13867 X_LIBS="-L$d $X_LIBS"
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13869 $as_echo "$d" >&6; }
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13872 $as_echo "not found ($d: no such directory)" >&6; }
13875 # replace the directory string with "yes".
13876 with_gles_req="yes"
13877 with_gles=$with_gles_req
13882 echo "error: argument to --with-gles must be \"yes\", \"no\", or a directory."
13883 echo " If it is a directory, then \`DIR/include' will be added to"
13884 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13890 if test "$with_gles" = yes; then
13892 $as_echo "#define HAVE_JWZGLES 1" >>confdefs.h
13894 JWZGLES_OBJS='$(JWXYZ_BIN)/jwzgles.o'
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OpenGL ES compatiblity shim" >&5
13896 $as_echo "using OpenGL ES compatiblity shim" >&6; }
13897 elif test "$with_gles" != no; then
13898 echo "error: must be yes or no: --with-gles=$with_xpm"
13902 ###############################################################################
13904 # Check for -lgdk_pixbuf.
13905 # These tests are for gdk_pixbuf usage of the hacks,
13906 # not xscreensaver-demo (thus we have to test again to get
13907 # the libraries right: don't want to pull in all of GTK
13910 ###############################################################################
13913 with_gdk_pixbuf_req=unspecified
13915 # Check whether --with-pixbuf was given.
13916 if test "${with_pixbuf+set}" = set; then :
13917 withval=$with_pixbuf; with_gdk_pixbuf="$withval"; with_gdk_pixbuf_req="$withval"
13919 with_gdk_pixbuf=yes
13923 # if --with-pixbuf=/directory/ was specified, remember that directory so that
13924 # we can also look for the `gdk-pixbuf-config' program in that directory.
13925 case "$with_gdk_pixbuf" in
13927 gdk_pixbuf_dir="$with_gdk_pixbuf"
13935 case "$with_gdk_pixbuf" in
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDK_PIXBUF headers" >&5
13941 $as_echo_n "checking for GDK_PIXBUF headers... " >&6; }
13942 d=$with_gdk_pixbuf/include
13943 if test -d $d; then
13944 X_CFLAGS="-I$d $X_CFLAGS"
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13946 $as_echo "$d" >&6; }
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13949 $as_echo "not found ($d: no such directory)" >&6; }
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDK_PIXBUF libs" >&5
13953 $as_echo_n "checking for GDK_PIXBUF libs... " >&6; }
13954 d=$with_gdk_pixbuf/lib
13955 if test -d $d; then
13956 X_LIBS="-L$d $X_LIBS"
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13958 $as_echo "$d" >&6; }
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13961 $as_echo "not found ($d: no such directory)" >&6; }
13964 # replace the directory string with "yes".
13965 with_gdk_pixbuf_req="yes"
13966 with_gdk_pixbuf=$with_gdk_pixbuf_req
13971 echo "error: argument to --with-pixbuf must be \"yes\", \"no\", or a directory."
13972 echo " If it is a directory, then \`DIR/include' will be added to"
13973 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13979 if test "$with_gdk_pixbuf" != yes -a "$with_gdk_pixbuf" != no ; then
13980 echo "error: must be yes or no: --with-pixbuf=$with_gdk_pixbuf"
13984 if test "$with_gdk_pixbuf" = yes; then
13990 pkg_check_version gdk-pixbuf-2.0 2.0.0
13991 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
13992 have_gdk_pixbuf="$ok"
13994 if test "$have_gdk_pixbuf" = yes; then
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf includes" >&5
13996 $as_echo_n "checking for gdk-pixbuf includes... " >&6; }
13997 if ${ac_cv_gdk_pixbuf_config_cflags+:} false; then :
13998 $as_echo_n "(cached) " >&6
14000 ac_cv_gdk_pixbuf_config_cflags=`$pkg_config --cflags $pkgs`
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
14003 $as_echo "$ac_cv_gdk_pixbuf_config_cflags" >&6; }
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf libs" >&5
14005 $as_echo_n "checking for gdk-pixbuf libs... " >&6; }
14006 if ${ac_cv_gdk_pixbuf_config_libs+:} false; then :
14007 $as_echo_n "(cached) " >&6
14009 ac_cv_gdk_pixbuf_config_libs=`$pkg_config --libs $pkgs`
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gdk_pixbuf_config_libs" >&5
14012 $as_echo "$ac_cv_gdk_pixbuf_config_libs" >&6; }
14015 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
14016 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
14019 if test "$have_gdk_pixbuf" = yes; then
14021 # we appear to have pixbuf; check for headers/libs to be sure.
14023 ac_save_gdk_pixbuf_CPPFLAGS="$CPPFLAGS"
14024 CPPFLAGS="$CPPFLAGS $ac_gdk_pixbuf_config_cflags"
14028 # check for header A...
14030 ac_save_CPPFLAGS="$CPPFLAGS"
14031 if test \! -z "$includedir" ; then
14032 CPPFLAGS="$CPPFLAGS -I$includedir"
14034 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14035 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14036 ac_fn_c_check_header_mongrel "$LINENO" "gdk-pixbuf/gdk-pixbuf.h" "ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" "$ac_includes_default"
14037 if test "x$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" = xyes; then :
14038 have_gdk_pixbuf=yes
14042 CPPFLAGS="$ac_save_CPPFLAGS"
14044 # if that worked, check for header B...
14045 if test "$have_gdk_pixbuf" = yes; then
14047 gdk_pixbuf_halfassed=yes
14049 ac_save_CPPFLAGS="$CPPFLAGS"
14050 if test \! -z "$includedir" ; then
14051 CPPFLAGS="$CPPFLAGS -I$includedir"
14053 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14054 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14055 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"
14056 if test "x$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" = xyes; then :
14057 have_gdk_pixbuf=yes
14058 gdk_pixbuf_halfassed=no
14062 CPPFLAGS="$ac_save_CPPFLAGS"
14064 # yay, it has a new name in Gtk 2.x...
14065 if test "$have_gdk_pixbuf" = no; then
14067 gdk_pixbuf_halfassed=yes
14069 ac_save_CPPFLAGS="$CPPFLAGS"
14070 if test \! -z "$includedir" ; then
14071 CPPFLAGS="$CPPFLAGS -I$includedir"
14073 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14074 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14075 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"
14076 if test "x$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" = xyes; then :
14077 have_gdk_pixbuf=yes
14078 gdk_pixbuf_halfassed=no
14082 CPPFLAGS="$ac_save_CPPFLAGS"
14085 CPPFLAGS="$ac_save_gdk_pixbuf_CPPFLAGS"
14088 if test "$have_gdk_pixbuf" = yes; then
14089 # we have the headers, now check for the libraries
14091 gdk_pixbuf_halfassed=yes
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for gdk_pixbuf usability..." >&5
14094 $as_echo "checking for gdk_pixbuf usability..." >&6; }
14098 ac_save_CPPFLAGS="$CPPFLAGS"
14099 ac_save_LDFLAGS="$LDFLAGS"
14100 # ac_save_LIBS="$LIBS"
14102 if test \! -z "$includedir" ; then
14103 CPPFLAGS="$CPPFLAGS -I$includedir"
14105 # note: $X_CFLAGS includes $x_includes
14106 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14108 if test \! -z "$libdir" ; then
14109 LDFLAGS="$LDFLAGS -L$libdir"
14111 # note: $X_LIBS includes $x_libraries
14112 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14114 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14115 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk_pixbuf_new_from_file in -lc" >&5
14117 $as_echo_n "checking for gdk_pixbuf_new_from_file in -lc... " >&6; }
14118 if ${ac_cv_lib_c_gdk_pixbuf_new_from_file+:} false; then :
14119 $as_echo_n "(cached) " >&6
14121 ac_check_lib_save_LIBS=$LIBS
14122 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
14123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14124 /* end confdefs.h. */
14126 /* Override any GCC internal prototype to avoid an error.
14127 Use char because int might match the return type of a GCC
14128 builtin and then its argument prototype would still apply. */
14132 char gdk_pixbuf_new_from_file ();
14136 return gdk_pixbuf_new_from_file ();
14141 if ac_fn_c_try_link "$LINENO"; then :
14142 ac_cv_lib_c_gdk_pixbuf_new_from_file=yes
14144 ac_cv_lib_c_gdk_pixbuf_new_from_file=no
14146 rm -f core conftest.err conftest.$ac_objext \
14147 conftest$ac_exeext conftest.$ac_ext
14148 LIBS=$ac_check_lib_save_LIBS
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gdk_pixbuf_new_from_file" >&5
14151 $as_echo "$ac_cv_lib_c_gdk_pixbuf_new_from_file" >&6; }
14152 if test "x$ac_cv_lib_c_gdk_pixbuf_new_from_file" = xyes; then :
14153 have_gdk_pixbuf=yes
14156 CPPFLAGS="$ac_save_CPPFLAGS"
14157 LDFLAGS="$ac_save_LDFLAGS"
14158 # LIBS="$ac_save_LIBS"
14161 if test "$have_gdk_pixbuf" = yes; then
14164 ac_save_CPPFLAGS="$CPPFLAGS"
14165 ac_save_LDFLAGS="$LDFLAGS"
14166 # ac_save_LIBS="$LIBS"
14168 if test \! -z "$includedir" ; then
14169 CPPFLAGS="$CPPFLAGS -I$includedir"
14171 # note: $X_CFLAGS includes $x_includes
14172 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14174 if test \! -z "$libdir" ; then
14175 LDFLAGS="$LDFLAGS -L$libdir"
14177 # note: $X_LIBS includes $x_libraries
14178 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14180 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14181 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk_pixbuf_xlib_init in -lc" >&5
14183 $as_echo_n "checking for gdk_pixbuf_xlib_init in -lc... " >&6; }
14184 if ${ac_cv_lib_c_gdk_pixbuf_xlib_init+:} false; then :
14185 $as_echo_n "(cached) " >&6
14187 ac_check_lib_save_LIBS=$LIBS
14188 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
14189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14190 /* end confdefs.h. */
14192 /* Override any GCC internal prototype to avoid an error.
14193 Use char because int might match the return type of a GCC
14194 builtin and then its argument prototype would still apply. */
14198 char gdk_pixbuf_xlib_init ();
14202 return gdk_pixbuf_xlib_init ();
14207 if ac_fn_c_try_link "$LINENO"; then :
14208 ac_cv_lib_c_gdk_pixbuf_xlib_init=yes
14210 ac_cv_lib_c_gdk_pixbuf_xlib_init=no
14212 rm -f core conftest.err conftest.$ac_objext \
14213 conftest$ac_exeext conftest.$ac_ext
14214 LIBS=$ac_check_lib_save_LIBS
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gdk_pixbuf_xlib_init" >&5
14217 $as_echo "$ac_cv_lib_c_gdk_pixbuf_xlib_init" >&6; }
14218 if test "x$ac_cv_lib_c_gdk_pixbuf_xlib_init" = xyes; then :
14219 have_gdk_pixbuf=yes
14220 gdk_pixbuf_halfassed=no
14223 CPPFLAGS="$ac_save_CPPFLAGS"
14224 LDFLAGS="$ac_save_LDFLAGS"
14225 # LIBS="$ac_save_LIBS"
14230 if test "$have_gdk_pixbuf" = yes; then
14231 INCLUDES="$INCLUDES $ac_gdk_pixbuf_config_cflags"
14232 XPM_LIBS="$ac_gdk_pixbuf_config_libs"
14233 $as_echo "#define HAVE_GDK_PIXBUF 1" >>confdefs.h
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for gdk_pixbuf usability... no" >&5
14237 $as_echo "checking for gdk_pixbuf usability... no" >&6; }
14240 if test "$have_gdk_pixbuf" = yes; then
14242 ac_save_CPPFLAGS="$CPPFLAGS"
14243 ac_save_LDFLAGS="$LDFLAGS"
14244 # ac_save_LIBS="$LIBS"
14246 if test \! -z "$includedir" ; then
14247 CPPFLAGS="$CPPFLAGS -I$includedir"
14249 # note: $X_CFLAGS includes $x_includes
14250 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14252 if test \! -z "$libdir" ; then
14253 LDFLAGS="$LDFLAGS -L$libdir"
14255 # note: $X_LIBS includes $x_libraries
14256 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14258 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14259 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk_pixbuf_apply_embedded_orientation in -lc" >&5
14261 $as_echo_n "checking for gdk_pixbuf_apply_embedded_orientation in -lc... " >&6; }
14262 if ${ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation+:} false; then :
14263 $as_echo_n "(cached) " >&6
14265 ac_check_lib_save_LIBS=$LIBS
14266 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
14267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14268 /* end confdefs.h. */
14270 /* Override any GCC internal prototype to avoid an error.
14271 Use char because int might match the return type of a GCC
14272 builtin and then its argument prototype would still apply. */
14276 char gdk_pixbuf_apply_embedded_orientation ();
14280 return gdk_pixbuf_apply_embedded_orientation ();
14285 if ac_fn_c_try_link "$LINENO"; then :
14286 ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation=yes
14288 ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation=no
14290 rm -f core conftest.err conftest.$ac_objext \
14291 conftest$ac_exeext conftest.$ac_ext
14292 LIBS=$ac_check_lib_save_LIBS
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation" >&5
14295 $as_echo "$ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation" >&6; }
14296 if test "x$ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation" = xyes; then :
14297 $as_echo "#define HAVE_GDK_PIXBUF_APPLY_EMBEDDED_ORIENTATION 1" >>confdefs.h
14301 CPPFLAGS="$ac_save_CPPFLAGS"
14302 LDFLAGS="$ac_save_LDFLAGS"
14303 # LIBS="$ac_save_LIBS"
14309 ###############################################################################
14313 ###############################################################################
14316 with_xpm_req=unspecified
14318 # Check whether --with-xpm was given.
14319 if test "${with_xpm+set}" = set; then :
14320 withval=$with_xpm; with_xpm="$withval"; with_xpm_req="$withval"
14327 case "$with_xpm" in
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPM headers" >&5
14333 $as_echo_n "checking for XPM headers... " >&6; }
14334 d=$with_xpm/include
14335 if test -d $d; then
14336 X_CFLAGS="-I$d $X_CFLAGS"
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14338 $as_echo "$d" >&6; }
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14341 $as_echo "not found ($d: no such directory)" >&6; }
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPM libs" >&5
14345 $as_echo_n "checking for XPM libs... " >&6; }
14347 if test -d $d; then
14348 X_LIBS="-L$d $X_LIBS"
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14350 $as_echo "$d" >&6; }
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14353 $as_echo "not found ($d: no such directory)" >&6; }
14356 # replace the directory string with "yes".
14358 with_xpm=$with_xpm_req
14363 echo "error: argument to --with-xpm must be \"yes\", \"no\", or a directory."
14364 echo " If it is a directory, then \`DIR/include' will be added to"
14365 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14371 if test "$with_xpm" = yes; then
14373 ac_save_CPPFLAGS="$CPPFLAGS"
14374 if test \! -z "$includedir" ; then
14375 CPPFLAGS="$CPPFLAGS -I$includedir"
14377 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14378 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14379 ac_fn_c_check_header_compile "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "#include <X11/Xlib.h>
14381 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
14383 $as_echo "#define HAVE_XPM 1" >>confdefs.h
14385 XPM_LIBS="-lXpm $XPM_LIBS"
14389 CPPFLAGS="$ac_save_CPPFLAGS"
14390 elif test "$with_xpm" != no; then
14391 echo "error: must be yes or no: --with-xpm=$with_xpm"
14395 # See comment near $motif_requires_xpm, above.
14396 # Need to do this here, after both Motif and XPM have been checked for.
14398 if test "$have_motif" = yes -a "$have_xpm" = yes ; then
14399 if test "$motif_requires_xpm" = yes ; then
14400 MOTIF_LIBS="$MOTIF_LIBS $XPM_LIBS"
14404 if test "$XPM_LIBS" = "" ; then
14405 XPM_LIBS=$(MINIXPM)
14409 ###############################################################################
14413 ###############################################################################
14416 with_jpeg_req=unspecified
14419 # Check whether --with-jpeg was given.
14420 if test "${with_jpeg+set}" = set; then :
14421 withval=$with_jpeg; with_jpeg="$withval"; with_jpeg_req="$withval"
14428 case "$with_jpeg" in
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG headers" >&5
14434 $as_echo_n "checking for JPEG headers... " >&6; }
14435 d=$with_jpeg/include
14436 if test -d $d; then
14437 X_CFLAGS="-I$d $X_CFLAGS"
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14439 $as_echo "$d" >&6; }
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14442 $as_echo "not found ($d: no such directory)" >&6; }
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG libs" >&5
14446 $as_echo_n "checking for JPEG libs... " >&6; }
14448 if test -d $d; then
14449 X_LIBS="-L$d $X_LIBS"
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14451 $as_echo "$d" >&6; }
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14454 $as_echo "not found ($d: no such directory)" >&6; }
14457 # replace the directory string with "yes".
14458 with_jpeg_req="yes"
14459 with_jpeg=$with_jpeg_req
14464 echo "error: argument to --with-jpeg must be \"yes\", \"no\", or a directory."
14465 echo " If it is a directory, then \`DIR/include' will be added to"
14466 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14472 if test "$with_jpeg" != yes -a "$with_jpeg" != no ; then
14473 echo "error: must be yes or no: --with-jpeg=$with_jpeg"
14477 if test "$with_jpeg" = yes; then
14481 ac_save_CPPFLAGS="$CPPFLAGS"
14482 if test \! -z "$includedir" ; then
14483 CPPFLAGS="$CPPFLAGS -I$includedir"
14485 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14486 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14487 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
14488 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
14493 CPPFLAGS="$ac_save_CPPFLAGS"
14495 if test "$have_jpeg" = yes; then
14496 # we have the header, now check for the library
14500 ac_save_CPPFLAGS="$CPPFLAGS"
14501 ac_save_LDFLAGS="$LDFLAGS"
14502 # ac_save_LIBS="$LIBS"
14504 if test \! -z "$includedir" ; then
14505 CPPFLAGS="$CPPFLAGS -I$includedir"
14507 # note: $X_CFLAGS includes $x_includes
14508 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14510 if test \! -z "$libdir" ; then
14511 LDFLAGS="$LDFLAGS -L$libdir"
14513 # note: $X_LIBS includes $x_libraries
14514 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14516 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14517 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_start_compress in -ljpeg" >&5
14519 $as_echo_n "checking for jpeg_start_compress in -ljpeg... " >&6; }
14520 if ${ac_cv_lib_jpeg_jpeg_start_compress+:} false; then :
14521 $as_echo_n "(cached) " >&6
14523 ac_check_lib_save_LIBS=$LIBS
14524 LIBS="-ljpeg $LIBS"
14525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14526 /* end confdefs.h. */
14528 /* Override any GCC internal prototype to avoid an error.
14529 Use char because int might match the return type of a GCC
14530 builtin and then its argument prototype would still apply. */
14534 char jpeg_start_compress ();
14538 return jpeg_start_compress ();
14543 if ac_fn_c_try_link "$LINENO"; then :
14544 ac_cv_lib_jpeg_jpeg_start_compress=yes
14546 ac_cv_lib_jpeg_jpeg_start_compress=no
14548 rm -f core conftest.err conftest.$ac_objext \
14549 conftest$ac_exeext conftest.$ac_ext
14550 LIBS=$ac_check_lib_save_LIBS
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5
14553 $as_echo "$ac_cv_lib_jpeg_jpeg_start_compress" >&6; }
14554 if test "x$ac_cv_lib_jpeg_jpeg_start_compress" = xyes; then :
14558 $as_echo "#define HAVE_JPEGLIB 1" >>confdefs.h
14562 CPPFLAGS="$ac_save_CPPFLAGS"
14563 LDFLAGS="$ac_save_LDFLAGS"
14564 # LIBS="$ac_save_LIBS"
14570 ###############################################################################
14574 ###############################################################################
14576 have_xutf8drawstring=no
14578 ac_save_CPPFLAGS="$CPPFLAGS"
14579 ac_save_LDFLAGS="$LDFLAGS"
14580 # ac_save_LIBS="$LIBS"
14582 if test \! -z "$includedir" ; then
14583 CPPFLAGS="$CPPFLAGS -I$includedir"
14585 # note: $X_CFLAGS includes $x_includes
14586 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14588 if test \! -z "$libdir" ; then
14589 LDFLAGS="$LDFLAGS -L$libdir"
14591 # note: $X_LIBS includes $x_libraries
14592 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14594 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14595 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xutf8DrawString in -lX11" >&5
14597 $as_echo_n "checking for Xutf8DrawString in -lX11... " >&6; }
14598 if ${ac_cv_lib_X11_Xutf8DrawString+:} false; then :
14599 $as_echo_n "(cached) " >&6
14601 ac_check_lib_save_LIBS=$LIBS
14602 LIBS="-lX11 -lX11 -lXext -lm $LIBS"
14603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14604 /* end confdefs.h. */
14606 /* Override any GCC internal prototype to avoid an error.
14607 Use char because int might match the return type of a GCC
14608 builtin and then its argument prototype would still apply. */
14612 char Xutf8DrawString ();
14616 return Xutf8DrawString ();
14621 if ac_fn_c_try_link "$LINENO"; then :
14622 ac_cv_lib_X11_Xutf8DrawString=yes
14624 ac_cv_lib_X11_Xutf8DrawString=no
14626 rm -f core conftest.err conftest.$ac_objext \
14627 conftest$ac_exeext conftest.$ac_ext
14628 LIBS=$ac_check_lib_save_LIBS
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_Xutf8DrawString" >&5
14631 $as_echo "$ac_cv_lib_X11_Xutf8DrawString" >&6; }
14632 if test "x$ac_cv_lib_X11_Xutf8DrawString" = xyes; then :
14633 have_xutf8drawstring=yes
14638 CPPFLAGS="$ac_save_CPPFLAGS"
14639 LDFLAGS="$ac_save_LDFLAGS"
14640 # LIBS="$ac_save_LIBS"
14642 if test "$have_xutf8drawstring" = yes ; then
14643 $as_echo "#define HAVE_XUTF8DRAWSTRING 1" >>confdefs.h
14649 with_xft_req=unspecified
14652 # Check whether --with-xft was given.
14653 if test "${with_xft+set}" = set; then :
14654 withval=$with_xft; with_xft="$withval"; with_xft_req="$withval"
14661 case "$with_xft" in
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xft headers" >&5
14667 $as_echo_n "checking for Xft headers... " >&6; }
14668 d=$with_xft/include
14669 if test -d $d; then
14670 X_CFLAGS="-I$d $X_CFLAGS"
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14672 $as_echo "$d" >&6; }
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14675 $as_echo "not found ($d: no such directory)" >&6; }
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xft libs" >&5
14679 $as_echo_n "checking for Xft libs... " >&6; }
14681 if test -d $d; then
14682 X_LIBS="-L$d $X_LIBS"
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14684 $as_echo "$d" >&6; }
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14687 $as_echo "not found ($d: no such directory)" >&6; }
14690 # replace the directory string with "yes".
14692 with_xft=$with_xft_req
14697 echo "error: argument to --with-xft must be \"yes\", \"no\", or a directory."
14698 echo " If it is a directory, then \`DIR/include' will be added to"
14699 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14705 if test "$with_xft" != yes -a "$with_xft" != no ; then
14706 echo "error: must be yes or no: --with-xft=$with_xft"
14710 if test "$with_xft" = yes; then
14714 pkg_check_version xft 2.1.0
14717 if test "$have_xft" = yes; then
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xft includes" >&5
14719 $as_echo_n "checking for Xft includes... " >&6; }
14720 if ${ac_cv_xft_config_cflags+:} false; then :
14721 $as_echo_n "(cached) " >&6
14723 ac_cv_xft_config_cflags=`$pkg_config --cflags $pkgs`
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xft_config_cflags" >&5
14726 $as_echo "$ac_cv_xft_config_cflags" >&6; }
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xft libs" >&5
14728 $as_echo_n "checking for Xft libs... " >&6; }
14729 if ${ac_cv_xft_config_libs+:} false; then :
14730 $as_echo_n "(cached) " >&6
14732 ac_cv_xft_config_libs=`$pkg_config --libs $pkgs`
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xft_config_libs" >&5
14735 $as_echo "$ac_cv_xft_config_libs" >&6; }
14738 ac_xft_config_cflags=$ac_cv_xft_config_cflags
14739 ac_xft_config_libs=$ac_cv_xft_config_libs
14741 if test "$have_xft" = yes; then
14743 # we appear to have Xft; check for headers/libs to be sure.
14745 ac_save_xft_CPPFLAGS="$CPPFLAGS"
14746 CPPFLAGS="$CPPFLAGS $ac_xft_config_cflags"
14750 ac_save_CPPFLAGS="$CPPFLAGS"
14751 if test \! -z "$includedir" ; then
14752 CPPFLAGS="$CPPFLAGS -I$includedir"
14754 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14755 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14756 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
14757 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
14762 CPPFLAGS="$ac_save_CPPFLAGS"
14764 CPPFLAGS="$ac_save_xft_CPPFLAGS"
14767 if test "$have_xft" = yes; then
14768 # we have the headers, now check for the libraries
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for Xft usability..." >&5
14773 $as_echo "checking for Xft usability..." >&6; }
14775 ac_save_CPPFLAGS="$CPPFLAGS"
14776 ac_save_LDFLAGS="$LDFLAGS"
14777 # ac_save_LIBS="$LIBS"
14779 if test \! -z "$includedir" ; then
14780 CPPFLAGS="$CPPFLAGS -I$includedir"
14782 # note: $X_CFLAGS includes $x_includes
14783 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14785 if test \! -z "$libdir" ; then
14786 LDFLAGS="$LDFLAGS -L$libdir"
14788 # note: $X_LIBS includes $x_libraries
14789 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14791 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14792 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawStringUtf8 in -lc" >&5
14794 $as_echo_n "checking for XftDrawStringUtf8 in -lc... " >&6; }
14795 if ${ac_cv_lib_c_XftDrawStringUtf8+:} false; then :
14796 $as_echo_n "(cached) " >&6
14798 ac_check_lib_save_LIBS=$LIBS
14799 LIBS="-lc $ac_xft_config_libs -lX11 -lXext -lm $LIBS"
14800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14801 /* end confdefs.h. */
14803 /* Override any GCC internal prototype to avoid an error.
14804 Use char because int might match the return type of a GCC
14805 builtin and then its argument prototype would still apply. */
14809 char XftDrawStringUtf8 ();
14813 return XftDrawStringUtf8 ();
14818 if ac_fn_c_try_link "$LINENO"; then :
14819 ac_cv_lib_c_XftDrawStringUtf8=yes
14821 ac_cv_lib_c_XftDrawStringUtf8=no
14823 rm -f core conftest.err conftest.$ac_objext \
14824 conftest$ac_exeext conftest.$ac_ext
14825 LIBS=$ac_check_lib_save_LIBS
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_XftDrawStringUtf8" >&5
14828 $as_echo "$ac_cv_lib_c_XftDrawStringUtf8" >&6; }
14829 if test "x$ac_cv_lib_c_XftDrawStringUtf8" = xyes; then :
14833 CPPFLAGS="$ac_save_CPPFLAGS"
14834 LDFLAGS="$ac_save_LDFLAGS"
14835 # LIBS="$ac_save_LIBS"
14839 if test "$have_xft" = no; then
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for Xft usability... no" >&5
14841 $as_echo "checking for Xft usability... no" >&6; }
14845 if test "$have_xft" = yes; then
14846 INCLUDES="$INCLUDES $ac_xft_config_cflags"
14847 XFT_LIBS="$ac_xft_config_libs"
14850 $as_echo "#define HAVE_XFT 1" >>confdefs.h
14854 XFT_SRCS='$(UTILS_SRC)/xft.c'
14855 XFT_OBJS='$(UTILS_BIN)/xft.o'
14859 ###############################################################################
14861 # Check for pty support: this allows 'phosphor' and 'apple2'
14862 # to run curses-based programs, or be used as terminal windows.
14864 ###############################################################################
14867 for ac_header in pty.h util.h sys/termios.h
14869 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14870 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14871 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14872 cat >>confdefs.h <<_ACEOF
14873 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14881 ac_save_CPPFLAGS="$CPPFLAGS"
14882 ac_save_LDFLAGS="$LDFLAGS"
14883 # ac_save_LIBS="$LIBS"
14885 if test \! -z "$includedir" ; then
14886 CPPFLAGS="$CPPFLAGS -I$includedir"
14888 # note: $X_CFLAGS includes $x_includes
14889 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14891 if test \! -z "$libdir" ; then
14892 LDFLAGS="$LDFLAGS -L$libdir"
14894 # note: $X_LIBS includes $x_libraries
14895 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14897 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14898 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
14900 $as_echo_n "checking for forkpty in -lutil... " >&6; }
14901 if ${ac_cv_lib_util_forkpty+:} false; then :
14902 $as_echo_n "(cached) " >&6
14904 ac_check_lib_save_LIBS=$LIBS
14905 LIBS="-lutil $LIBS"
14906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h. */
14909 /* Override any GCC internal prototype to avoid an error.
14910 Use char because int might match the return type of a GCC
14911 builtin and then its argument prototype would still apply. */
14924 if ac_fn_c_try_link "$LINENO"; then :
14925 ac_cv_lib_util_forkpty=yes
14927 ac_cv_lib_util_forkpty=no
14929 rm -f core conftest.err conftest.$ac_objext \
14930 conftest$ac_exeext conftest.$ac_ext
14931 LIBS=$ac_check_lib_save_LIBS
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
14934 $as_echo "$ac_cv_lib_util_forkpty" >&6; }
14935 if test "x$ac_cv_lib_util_forkpty" = xyes; then :
14937 ac_have_forkpty=yes
14938 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
14942 CPPFLAGS="$ac_save_CPPFLAGS"
14943 LDFLAGS="$ac_save_LDFLAGS"
14944 # LIBS="$ac_save_LIBS"
14947 if test "$ac_have_forkpty" != yes ; then
14948 # we don't need (or have) -lutil on MacOS 10.4.2...
14950 ac_save_CPPFLAGS="$CPPFLAGS"
14951 ac_save_LDFLAGS="$LDFLAGS"
14952 # ac_save_LIBS="$LIBS"
14954 if test \! -z "$includedir" ; then
14955 CPPFLAGS="$CPPFLAGS -I$includedir"
14957 # note: $X_CFLAGS includes $x_includes
14958 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14960 if test \! -z "$libdir" ; then
14961 LDFLAGS="$LDFLAGS -L$libdir"
14963 # note: $X_LIBS includes $x_libraries
14964 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14966 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14967 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lc" >&5
14969 $as_echo_n "checking for forkpty in -lc... " >&6; }
14970 if ${ac_cv_lib_c_forkpty+:} false; then :
14971 $as_echo_n "(cached) " >&6
14973 ac_check_lib_save_LIBS=$LIBS
14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976 /* end confdefs.h. */
14978 /* Override any GCC internal prototype to avoid an error.
14979 Use char because int might match the return type of a GCC
14980 builtin and then its argument prototype would still apply. */
14993 if ac_fn_c_try_link "$LINENO"; then :
14994 ac_cv_lib_c_forkpty=yes
14996 ac_cv_lib_c_forkpty=no
14998 rm -f core conftest.err conftest.$ac_objext \
14999 conftest$ac_exeext conftest.$ac_ext
15000 LIBS=$ac_check_lib_save_LIBS
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_forkpty" >&5
15003 $as_echo "$ac_cv_lib_c_forkpty" >&6; }
15004 if test "x$ac_cv_lib_c_forkpty" = xyes; then :
15006 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
15010 CPPFLAGS="$ac_save_CPPFLAGS"
15011 LDFLAGS="$ac_save_LDFLAGS"
15012 # LIBS="$ac_save_LIBS"
15016 ###############################################################################
15018 # Check for the XSHM server extension.
15020 ###############################################################################
15023 with_xshm_req=unspecified
15025 # Check whether --with-xshm-ext was given.
15026 if test "${with_xshm_ext+set}" = set; then :
15027 withval=$with_xshm_ext; with_xshm="$withval"; with_xshm_req="$withval"
15034 case "$with_xshm" in
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSHM headers" >&5
15040 $as_echo_n "checking for XSHM headers... " >&6; }
15041 d=$with_xshm/include
15042 if test -d $d; then
15043 X_CFLAGS="-I$d $X_CFLAGS"
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
15045 $as_echo "$d" >&6; }
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
15048 $as_echo "not found ($d: no such directory)" >&6; }
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSHM libs" >&5
15052 $as_echo_n "checking for XSHM libs... " >&6; }
15054 if test -d $d; then
15055 X_LIBS="-L$d $X_LIBS"
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
15057 $as_echo "$d" >&6; }
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
15060 $as_echo "not found ($d: no such directory)" >&6; }
15063 # replace the directory string with "yes".
15064 with_xshm_req="yes"
15065 with_xshm=$with_xshm_req
15070 echo "error: argument to --with-xshm-ext must be \"yes\", \"no\", or a directory."
15071 echo " If it is a directory, then \`DIR/include' will be added to"
15072 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15078 if test "$with_xshm" = yes; then
15080 # first check for Xshm.h.
15082 ac_save_CPPFLAGS="$CPPFLAGS"
15083 if test \! -z "$includedir" ; then
15084 CPPFLAGS="$CPPFLAGS -I$includedir"
15086 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15087 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15088 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XShm.h" "ac_cv_header_X11_extensions_XShm_h" "#include <X11/Xlib.h>
15090 if test "x$ac_cv_header_X11_extensions_XShm_h" = xyes; then :
15095 CPPFLAGS="$ac_save_CPPFLAGS"
15097 # if that succeeded, then check for sys/ipc.h.
15098 if test "$have_xshm" = yes; then
15101 ac_save_CPPFLAGS="$CPPFLAGS"
15102 if test \! -z "$includedir" ; then
15103 CPPFLAGS="$CPPFLAGS -I$includedir"
15105 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15106 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15107 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
15108 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
15113 CPPFLAGS="$ac_save_CPPFLAGS"
15116 # if that succeeded, then check for sys/shm.h.
15117 if test "$have_xshm" = yes; then
15120 ac_save_CPPFLAGS="$CPPFLAGS"
15121 if test \! -z "$includedir" ; then
15122 CPPFLAGS="$CPPFLAGS -I$includedir"
15124 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15125 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15126 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
15127 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
15132 CPPFLAGS="$ac_save_CPPFLAGS"
15135 # AIX is pathological, as usual: apparently it's normal for the Xshm headers
15136 # to exist, but the library code to not exist. And even better, the library
15137 # code is in its own library: libXextSam.a. So, if we're on AIX, and that
15138 # lib doesn't exist, give up. (This lib gets added to X_EXTRA_LIBS, and
15139 # that's not quite right, but close enough.)
15143 if `uname -v` -eq 3 ; then
15146 ac_save_CPPFLAGS="$CPPFLAGS"
15147 ac_save_LDFLAGS="$LDFLAGS"
15148 # ac_save_LIBS="$LIBS"
15150 if test \! -z "$includedir" ; then
15151 CPPFLAGS="$CPPFLAGS -I$includedir"
15153 # note: $X_CFLAGS includes $x_includes
15154 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15156 if test \! -z "$libdir" ; then
15157 LDFLAGS="$LDFLAGS -L$libdir"
15159 # note: $X_LIBS includes $x_libraries
15160 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15162 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15163 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXextSam" >&5
15165 $as_echo_n "checking for XShmQueryExtension in -lXextSam... " >&6; }
15166 if ${ac_cv_lib_XextSam_XShmQueryExtension+:} false; then :
15167 $as_echo_n "(cached) " >&6
15169 ac_check_lib_save_LIBS=$LIBS
15170 LIBS="-lXextSam -lX11 -lXext -lm $LIBS"
15171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15172 /* end confdefs.h. */
15174 /* Override any GCC internal prototype to avoid an error.
15175 Use char because int might match the return type of a GCC
15176 builtin and then its argument prototype would still apply. */
15180 char XShmQueryExtension ();
15184 return XShmQueryExtension ();
15189 if ac_fn_c_try_link "$LINENO"; then :
15190 ac_cv_lib_XextSam_XShmQueryExtension=yes
15192 ac_cv_lib_XextSam_XShmQueryExtension=no
15194 rm -f core conftest.err conftest.$ac_objext \
15195 conftest$ac_exeext conftest.$ac_ext
15196 LIBS=$ac_check_lib_save_LIBS
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XextSam_XShmQueryExtension" >&5
15199 $as_echo "$ac_cv_lib_XextSam_XShmQueryExtension" >&6; }
15200 if test "x$ac_cv_lib_XextSam_XShmQueryExtension" = xyes; then :
15201 have_xshm=yes; X_EXTRA_LIBS="$X_EXTRA_LIBS -lXextSam"
15206 CPPFLAGS="$ac_save_CPPFLAGS"
15207 LDFLAGS="$ac_save_LDFLAGS"
15208 # LIBS="$ac_save_LIBS"
15214 # if that succeeded, then we've really got it.
15215 if test "$have_xshm" = yes; then
15216 $as_echo "#define HAVE_XSHM_EXTENSION 1" >>confdefs.h
15220 elif test "$with_xshm" != no; then
15221 echo "error: must be yes or no: --with-xshm-ext=$with_xshm"
15226 ###############################################################################
15228 # Check for the DOUBLE-BUFFER server extension.
15230 ###############################################################################
15233 with_xdbe_req=unspecified
15235 # Check whether --with-xdbe-ext was given.
15236 if test "${with_xdbe_ext+set}" = set; then :
15237 withval=$with_xdbe_ext; with_xdbe="$withval"; with_xdbe_req="$withval"
15244 case "$with_xdbe" in
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOUBLE-BUFFER headers" >&5
15250 $as_echo_n "checking for DOUBLE-BUFFER headers... " >&6; }
15251 d=$with_xdbe/include
15252 if test -d $d; then
15253 X_CFLAGS="-I$d $X_CFLAGS"
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
15255 $as_echo "$d" >&6; }
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
15258 $as_echo "not found ($d: no such directory)" >&6; }
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOUBLE-BUFFER libs" >&5
15262 $as_echo_n "checking for DOUBLE-BUFFER libs... " >&6; }
15264 if test -d $d; then
15265 X_LIBS="-L$d $X_LIBS"
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
15267 $as_echo "$d" >&6; }
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
15270 $as_echo "not found ($d: no such directory)" >&6; }
15273 # replace the directory string with "yes".
15274 with_xdbe_req="yes"
15275 with_xdbe=$with_xdbe_req
15280 echo "error: argument to --with-xdbe-ext must be \"yes\", \"no\", or a directory."
15281 echo " If it is a directory, then \`DIR/include' will be added to"
15282 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15288 if test "$with_xdbe" = yes; then
15291 ac_save_CPPFLAGS="$CPPFLAGS"
15292 if test \! -z "$includedir" ; then
15293 CPPFLAGS="$CPPFLAGS -I$includedir"
15295 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15296 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15297 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
15299 if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
15304 CPPFLAGS="$ac_save_CPPFLAGS"
15305 if test "$have_xdbe" = yes; then
15306 $as_echo "#define HAVE_DOUBLE_BUFFER_EXTENSION 1" >>confdefs.h
15310 elif test "$with_xdbe" != no; then
15311 echo "error: must be yes or no: --with-xdbe-ext=$with_xshm"
15316 ###############################################################################
15318 # Check for the SGI XReadDisplay server extension.
15320 # Note: this has to be down here, rather than up with the other server
15321 # extension tests, so that the output of `configure --help' is in the
15322 # right order. Arrgh!
15324 ###############################################################################
15326 have_readdisplay=no
15327 with_readdisplay_req=unspecified
15329 # Check whether --with-readdisplay was given.
15330 if test "${with_readdisplay+set}" = set; then :
15331 withval=$with_readdisplay; with_readdisplay="$withval"; with_readdisplay_req="$withval"
15333 with_readdisplay=yes
15338 case "$with_readdisplay" in
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XReadDisplay headers" >&5
15344 $as_echo_n "checking for XReadDisplay headers... " >&6; }
15345 d=$with_readdisplay/include
15346 if test -d $d; then
15347 X_CFLAGS="-I$d $X_CFLAGS"
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
15349 $as_echo "$d" >&6; }
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
15352 $as_echo "not found ($d: no such directory)" >&6; }
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XReadDisplay libs" >&5
15356 $as_echo_n "checking for XReadDisplay libs... " >&6; }
15357 d=$with_readdisplay/lib
15358 if test -d $d; then
15359 X_LIBS="-L$d $X_LIBS"
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
15361 $as_echo "$d" >&6; }
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
15364 $as_echo "not found ($d: no such directory)" >&6; }
15367 # replace the directory string with "yes".
15368 with_readdisplay_req="yes"
15369 with_readdisplay=$with_readdisplay_req
15374 echo "error: argument to --with-readdisplay must be \"yes\", \"no\", or a directory."
15375 echo " If it is a directory, then \`DIR/include' will be added to"
15376 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15382 if test "$with_readdisplay" = yes; then
15384 ac_save_CPPFLAGS="$CPPFLAGS"
15385 if test \! -z "$includedir" ; then
15386 CPPFLAGS="$CPPFLAGS -I$includedir"
15388 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15389 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15390 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/readdisplay.h" "ac_cv_header_X11_extensions_readdisplay_h" "#include <X11/Xlib.h>
15392 if test "x$ac_cv_header_X11_extensions_readdisplay_h" = xyes; then :
15393 $as_echo "#define HAVE_READ_DISPLAY_EXTENSION 1" >>confdefs.h
15398 CPPFLAGS="$ac_save_CPPFLAGS"
15399 elif test "$with_readdisplay" != no; then
15400 echo "error: must be yes or no: --with-readdisplay=$with_readdisplay"
15405 ###############################################################################
15407 # Check for a directory full of images to use as the default value
15408 # of the "imageDirectory" preference.
15410 ###############################################################################
15413 with_imagedir_req=unspecified
15416 # Check whether --with-image-directory was given.
15417 if test "${with_image_directory+set}" = set; then :
15418 withval=$with_image_directory; with_imagedir="$withval"; with_imagedir_req="$withval"
15423 # no HANDLE_X_PATH_ARG for this one
15425 case "$with_imagedir" in
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for image directory $with_imagedir" >&5
15429 $as_echo_n "checking for image directory $with_imagedir... " >&6; }
15430 if test -d "$with_imagedir" ; then
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15432 $as_echo "yes" >&6; }
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15435 $as_echo "no" >&6; }
15442 #### Could use some more defaults here...
15444 "/usr/share/backgrounds/images/" \
15445 "/usr/share/wallpapers/" \
15446 "/Library/Desktop Pictures/" \
15448 if test -z "$with_imagedir"; then
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for image directory $dd" >&5
15450 $as_echo_n "checking for image directory $dd... " >&6; }
15451 if test -d "$dd" ; then
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15453 $as_echo "yes" >&6; }
15454 with_imagedir="$dd"
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15457 $as_echo "no" >&6; }
15468 echo "error: must be an absolute path: --with-image-directory=$with_imagedir_req"
15472 ac_cv_imagedir="$with_imagedir"
15474 DEFAULT_IMAGES_P='True'
15475 DEFAULT_IMAGE_DIRECTORY="$ac_cv_imagedir"
15477 if test -z "$DEFAULT_IMAGE_DIRECTORY" ; then
15478 DEFAULT_IMAGES_P='False'
15482 ###############################################################################
15484 # Pick a text file to use as the default of the "textFile" preference.
15485 # Any old file will do, but preferably one that will make interesting
15486 # shapes when displayed by "starwars" and "fontglide".
15488 ###############################################################################
15491 with_textfile_req=unspecified
15494 # Check whether --with-text-file was given.
15495 if test "${with_text_file+set}" = set; then :
15496 withval=$with_text_file; with_textfile="$withval"; with_textfile_req="$withval"
15501 # no HANDLE_X_PATH_ARG for this one
15503 case "$with_textfile" in
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for text file $with_textfile" >&5
15507 $as_echo_n "checking for text file $with_textfile... " >&6; }
15508 if test -f "$with_textfile" ; then
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15510 $as_echo "yes" >&6; }
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15513 $as_echo "no" >&6; }
15520 #### Could use some more defaults here...
15522 "/usr/X11R6/lib/X11/doc/README" \
15523 "/usr/share/doc/xserver-common/copyright" \
15524 "/usr/share/doc/xserver-xorg-core/copyright" \
15525 "/usr/X11R6/README" \
15526 "/usr/share/doc/libX11*/COPYING" \
15527 "/usr/X11/share/X11/doc/README*" \
15528 "/usr/share/doc/debian/debian-manifesto" \
15530 if test -z "$with_textfile"; then
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for text file $f" >&5
15532 $as_echo_n "checking for text file $f... " >&6; }
15533 f=`/bin/ls $f 2>&- | head -1`
15534 if test -f "$f" ; then
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15536 $as_echo "yes" >&6; }
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15540 $as_echo "no" >&6; }
15551 echo "error: must be an absolute path: --with-text-file=$with_textfile_req"
15555 ac_cv_textfile="$with_textfile"
15557 DEFAULT_TEXT_FILE="$ac_cv_textfile"
15560 ###############################################################################
15562 # Check the browser to see help URL
15564 ###############################################################################
15567 with_browser_req=unspecified
15570 # Check whether --with-browser was given.
15571 if test "${with_browser+set}" = set; then :
15572 withval=$with_browser; with_browser="$withval"; with_browser_req="$withval"
15577 # no HANDLE_X_PATH_ARG for this one
15579 case "$with_browser" in
15583 WITH_BROWSER=$with_browser
15584 gnome_open_program=$with_browser
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for browser $with_browser" >&5
15586 $as_echo_n "checking for browser $with_browser... " >&6; }
15587 with_browser_fullpath=`which $with_browser 2>/dev/null`
15588 case $with_browser_fullpath in
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15591 $as_echo "yes" >&6; }
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15596 $as_echo "no" >&6; }
15597 # Only warning: we don't want to install all packages for the
15598 # dependency of the browser in building stage...
15599 echo "WARNING: browser not found: --with-browser=$with_browser"
15604 ac_cv_browser="$with_browser"
15606 ###############################################################################
15608 # Check whether it's ok to install some hacks as setuid (e.g., "sonar")
15609 # This should be safe, but let's give people the option.
15611 ###############################################################################
15613 setuid_hacks_default=no
15614 setuid_hacks="$setuid_hacks_default"
15616 # Check whether --with-setuid-hacks was given.
15617 if test "${with_setuid_hacks+set}" = set; then :
15618 withval=$with_setuid_hacks; setuid_hacks="$withval"
15620 setuid_hacks="$setuid_hacks_default"
15625 case "$setuid_hacks" in
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setuid hacks headers" >&5
15631 $as_echo_n "checking for setuid hacks headers... " >&6; }
15632 d=$setuid_hacks/include
15633 if test -d $d; then
15634 X_CFLAGS="-I$d $X_CFLAGS"
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
15636 $as_echo "$d" >&6; }
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
15639 $as_echo "not found ($d: no such directory)" >&6; }
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setuid hacks libs" >&5
15643 $as_echo_n "checking for setuid hacks libs... " >&6; }
15644 d=$setuid_hacks/lib
15645 if test -d $d; then
15646 X_LIBS="-L$d $X_LIBS"
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
15648 $as_echo "$d" >&6; }
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
15651 $as_echo "not found ($d: no such directory)" >&6; }
15654 # replace the directory string with "yes".
15655 setuid_hacks_req="yes"
15656 setuid_hacks=$setuid_hacks_req
15661 echo "error: argument to --with-setuid-hacks must be \"yes\", \"no\", or a directory."
15662 echo " If it is a directory, then \`DIR/include' will be added to"
15663 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15669 if test "$setuid_hacks" = yes; then
15671 elif test "$setuid_hacks" != no; then
15672 echo "error: must be yes or no: --with-setuid-hacks=$setuid_hacks"
15677 ###############################################################################
15679 # Check for --with-record-animation
15681 ###############################################################################
15683 record_anim_default=no
15684 record_anim="$record_anim_default"
15686 # Check whether --with-record-animation was given.
15687 if test "${with_record_animation+set}" = set; then :
15688 withval=$with_record_animation; record_anim="$withval"
15690 record_anim="$record_anim_default"
15695 case "$record_anim" in
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for record animation headers" >&5
15701 $as_echo_n "checking for record animation headers... " >&6; }
15702 d=$record_anim/include
15703 if test -d $d; then
15704 X_CFLAGS="-I$d $X_CFLAGS"
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
15706 $as_echo "$d" >&6; }
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
15709 $as_echo "not found ($d: no such directory)" >&6; }
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for record animation libs" >&5
15713 $as_echo_n "checking for record animation libs... " >&6; }
15715 if test -d $d; then
15716 X_LIBS="-L$d $X_LIBS"
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
15718 $as_echo "$d" >&6; }
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
15721 $as_echo "not found ($d: no such directory)" >&6; }
15724 # replace the directory string with "yes".
15725 record_anim_req="yes"
15726 record_anim=$record_anim_req
15731 echo "error: argument to --with-record-animation must be \"yes\", \"no\", or a directory."
15732 echo " If it is a directory, then \`DIR/include' will be added to"
15733 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15739 if test "$record_anim" = yes; then
15741 elif test "$record_anim" != no; then
15742 echo "error: must be yes or no: --with-record-animation=$record_anim"
15746 if test "$record_anim" = yes; then
15747 if test "$have_gdk_pixbuf" != yes; then
15748 as_fn_error $? "--with-record-animation requires GDK-Pixbuf" "$LINENO" 5
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling --with-record-animation" >&5
15751 $as_echo "enabling --with-record-animation" >&6; }
15752 $as_echo "#define HAVE_RECORD_ANIM 1" >>confdefs.h
15754 ANIM_OBJS='$(ANIM_OBJS)'
15755 ANIM_LIBS='$(ANIM_LIBS)'
15759 ###############################################################################
15761 # Done testing. Now, set up the various -I and -L variables,
15762 # and decide which GUI program to build by default.
15764 ###############################################################################
15771 if test \! -z "$includedir" ; then
15772 INCLUDES="$INCLUDES -I$includedir"
15775 if test \! -z "$libdir" ; then
15776 LDFLAGS="$LDFLAGS -L$libdir"
15780 PREFERRED_DEMO_PROGRAM=''
15782 if test "$have_motif" = yes; then
15783 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Xm
15784 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
15786 if test "$have_gtk" = yes; then
15787 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Gtk
15788 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
15792 if test "$have_kerberos" = yes; then
15793 PASSWD_SRCS="$PASSWD_SRCS \$(KERBEROS_SRCS)"
15794 PASSWD_OBJS="$PASSWD_OBJS \$(KERBEROS_OBJS)"
15796 if test "$have_pam" = yes; then
15797 PASSWD_SRCS="$PASSWD_SRCS \$(PAM_SRCS)"
15798 PASSWD_OBJS="$PASSWD_OBJS \$(PAM_OBJS)"
15799 INSTALL_PAM="install-pam"
15801 if test "$enable_pam_check_account_type" = yes; then
15802 COMMENT_PAM_CHECK_ACCOUNT=""
15804 COMMENT_PAM_CHECK_ACCOUNT="#"
15806 if test "$have_passwd_helper" = yes; then
15807 PASSWD_SRCS="$PASSWD_SRCS \$(PWHELPER_SRCS)"
15808 PASSWD_OBJS="$PASSWD_OBJS \$(PWHELPER_OBJS)"
15810 PASSWD_SRCS="$PASSWD_SRCS \$(PWENT_SRCS)"
15811 PASSWD_OBJS="$PASSWD_OBJS \$(PWENT_OBJS)"
15814 if test "$enable_locking" = yes; then
15815 LOCK_SRCS='$(LOCK_SRCS_1) $(PASSWD_SRCS)'
15816 LOCK_OBJS='$(LOCK_OBJS_1) $(PASSWD_OBJS)'
15818 LOCK_SRCS='$(NOLOCK_SRCS_1)'
15819 LOCK_OBJS='$(NOLOCK_OBJS_1)'
15822 if test "$ac_macosx" = yes; then
15823 EXES_OSX='$(EXES_OSX)'
15824 SCRIPTS_OSX='$(SCRIPTS_OSX)'
15825 MEN_OSX='$(MEN_OSX)'
15833 INSTALL_SETUID='$(INSTALL_PROGRAM) $(SUID_FLAGS)'
15835 if test "$need_setuid" = yes; then
15841 if test "$setuid_hacks" = yes; then
15848 if test "$have_gl" = yes; then
15849 GL_EXES='$(GL_EXES)'
15850 SUID_EXES='$(SUID_EXES)'
15851 RETIRED_GL_EXES='$(RETIRED_GL_EXES)'
15852 GL_UTIL_EXES='$(GL_UTIL_EXES)'
15859 if test "$have_gle" = yes; then
15860 GLE_EXES='$(GLE_EXES)'
15866 if test "$have_jpeg" = yes -a "$have_gdk_pixbuf" = yes; then
15867 JPEG_EXES='$(JPEG_EXES)'
15871 # Another substitution in the XScreenSaver.ad.in file:
15873 if test "$gnome_open_program" != ''; then
15877 elif test "$gnome_url_show_program" != ''; then
15888 # Set PO_DATADIR to something sensible.
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale directory" >&5
15891 $as_echo_n "checking for locale directory... " >&6; }
15892 if test -n "$GTK_DATADIR" ; then
15893 PO_DATADIR="$GTK_DATADIR"
15894 elif test "$have_gtk" = yes; then
15895 PO_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
15896 PO_DATADIR="$PO_DATADIR/share"
15899 if test -z "$PO_DATADIR" ; then
15901 # #### Total fucking kludge --
15902 # Map /build/prefix/usr/X11R6/share/ to /build/prefix/usr/share/
15903 # but of course we need to expand all the nested variables to do that...
15905 dd=`eval eval eval eval eval eval eval eval eval eval eval echo $datadir`
15906 PO_DATADIR=`echo $dd | sed 's@/X11R6/@/@'`
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PO_DATADIR/locale" >&5
15910 $as_echo "$PO_DATADIR/locale" >&6; }
15913 # canonicalize slashes.
15914 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
15916 # gcc 3.0 likes to issue this warning for every file:
15918 # cc1: warning: changing search order for system directory "/usr/local/include"
15919 # cc1: warning: as it has already been specified as a non-system directory
15921 # Yay. We can only avoid that by deleting "-I${prefix}/include" from the list.
15922 # Which *should* be totally redundant, and thus an ok thing to delete?
15924 INCLUDES=`echo "$INCLUDES" | sed 's@ -I${prefix}/include@@g;'`
15927 ###############################################################################
15929 # Perform substitutions and write Makefiles.
15931 ###############################################################################
16007 APPDEFAULTS=$ac_x_app_defaults
16015 ac_config_files="$ac_config_files Makefile utils/Makefile jwxyz/Makefile hacks/Makefile hacks/glx/Makefile po/Makefile.in driver/Makefile driver/xscreensaver.pam driver/xscreensaver-demo.glade2 driver/XScreenSaver.ad"
16017 cat >confcache <<\_ACEOF
16018 # This file is a shell script that caches the results of configure
16019 # tests run on this system so they can be shared between configure
16020 # scripts and configure runs, see configure's option --config-cache.
16021 # It is not useful on other systems. If it contains results you don't
16022 # want to keep, you may remove or edit it.
16024 # config.status only pays attention to the cache file if you give it
16025 # the --recheck option to rerun configure.
16027 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16028 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16029 # following values.
16033 # The following way of writing the cache mishandles newlines in values,
16034 # but we know of no workaround that is simple, portable, and efficient.
16035 # So, we kill variables containing newlines.
16036 # Ultrix sh set writes to stderr and can't be redirected directly,
16037 # and sets the high bit in the cache file unless we assign to the vars.
16039 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16040 eval ac_val=\$$ac_var
16044 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16045 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16048 _ | IFS | as_nl) ;; #(
16049 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16050 *) { eval $ac_var=; unset $ac_var;} ;;
16056 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16057 *${as_nl}ac_space=\ *)
16058 # `set' does not quote correctly, so add quotes: double-quote
16059 # substitution turns \\\\ into \\, and sed turns \\ into \.
16062 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16065 # `set' quotes correctly as required by POSIX, so do not add quotes.
16066 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16075 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16077 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16079 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16080 if test -w "$cache_file"; then
16081 if test "x$cache_file" != "x/dev/null"; then
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16083 $as_echo "$as_me: updating cache $cache_file" >&6;}
16084 if test ! -f "$cache_file" || test -h "$cache_file"; then
16085 cat confcache >"$cache_file"
16087 case $cache_file in #(
16089 mv -f confcache "$cache_file"$$ &&
16090 mv -f "$cache_file"$$ "$cache_file" ;; #(
16092 mv -f confcache "$cache_file" ;;
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16098 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16103 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16104 # Let make expand exec_prefix.
16105 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16107 DEFS=-DHAVE_CONFIG_H
16112 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16113 # 1. Remove the extension, and $U if already installed.
16114 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16115 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16116 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16117 # will be set to the directory where LIBOBJS objects are built.
16118 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16119 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16121 LIBOBJS=$ac_libobjs
16123 LTLIBOBJS=$ac_ltlibobjs
16127 ac_config_commands="$ac_config_commands po/stamp-it"
16131 : "${CONFIG_STATUS=./config.status}"
16133 ac_clean_files_save=$ac_clean_files
16134 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16136 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16138 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16140 # Generated by $as_me.
16141 # Run this file to recreate the current configuration.
16142 # Compiler output produced by configure, useful for debugging
16143 # configure, is in config.log if it exists.
16146 ac_cs_recheck=false
16149 SHELL=\${CONFIG_SHELL-$SHELL}
16152 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16153 ## -------------------- ##
16154 ## M4sh Initialization. ##
16155 ## -------------------- ##
16157 # Be more Bourne compatible
16158 DUALCASE=1; export DUALCASE # for MKS sh
16159 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16162 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16163 # is contrary to our usage. Disable this feature.
16164 alias -g '${1+"$@"}'='"$@"'
16165 setopt NO_GLOB_SUBST
16167 case `(set -o) 2>/dev/null` in #(
16179 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16180 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16181 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16182 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16183 # Prefer a ksh shell builtin over an external printf program on Solaris,
16184 # but without wasting forks for bash or zsh.
16185 if test -z "$BASH_VERSION$ZSH_VERSION" \
16186 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16187 as_echo='print -r --'
16188 as_echo_n='print -rn --'
16189 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16190 as_echo='printf %s\n'
16191 as_echo_n='printf %s'
16193 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16194 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16195 as_echo_n='/usr/ucb/echo -n'
16197 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16198 as_echo_n_body='eval
16202 expr "X$arg" : "X\\(.*\\)$as_nl";
16203 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16205 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16207 export as_echo_n_body
16208 as_echo_n='sh -c $as_echo_n_body as_echo'
16210 export as_echo_body
16211 as_echo='sh -c $as_echo_body as_echo'
16214 # The user is always right.
16215 if test "${PATH_SEPARATOR+set}" != set; then
16217 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16218 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16225 # We need space, tab and new line, in precisely that order. Quoting is
16226 # there to prevent editors from complaining about space-tab.
16227 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16228 # splitting by setting IFS to empty value.)
16231 # Find who we are. Look in the path if we contain no directory separator.
16234 *[\\/]* ) as_myself=$0 ;;
16235 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16236 for as_dir in $PATH
16239 test -z "$as_dir" && as_dir=.
16240 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16246 # We did not find ourselves, most probably we were run as `sh COMMAND'
16247 # in which case we are not to be found in the path.
16248 if test "x$as_myself" = x; then
16251 if test ! -f "$as_myself"; then
16252 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16256 # Unset variables that we do not need and which cause bugs (e.g. in
16257 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16258 # suppresses any "Segmentation fault" message there. '((' could
16259 # trigger a bug in pdksh 5.2.14.
16260 for as_var in BASH_ENV ENV MAIL MAILPATH
16261 do eval test x\${$as_var+set} = xset \
16262 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16275 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16278 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16279 # ----------------------------------------
16280 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16281 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16282 # script with STATUS, using 1 if that was 0.
16285 as_status=$1; test $as_status -eq 0 && as_status=1
16287 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16288 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16290 $as_echo "$as_me: error: $2" >&2
16291 as_fn_exit $as_status
16295 # as_fn_set_status STATUS
16296 # -----------------------
16297 # Set $? to STATUS, without forking.
16298 as_fn_set_status ()
16301 } # as_fn_set_status
16303 # as_fn_exit STATUS
16304 # -----------------
16305 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16309 as_fn_set_status $1
16315 # Portably unset VAR.
16318 { eval $1=; unset $1;}
16320 as_unset=as_fn_unset
16321 # as_fn_append VAR VALUE
16322 # ----------------------
16323 # Append the text in VALUE to the end of the definition contained in VAR. Take
16324 # advantage of any shell optimizations that allow amortized linear growth over
16325 # repeated appends, instead of the typical quadratic growth present in naive
16327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16328 eval 'as_fn_append ()
16339 # as_fn_arith ARG...
16340 # ------------------
16341 # Perform arithmetic evaluation on the ARGs, and store the result in the
16342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16343 # must be portable across $(()) and expr.
16344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16345 eval 'as_fn_arith ()
16352 as_val=`expr "$@" || test $? -eq 1`
16357 if expr a : '\(a\)' >/dev/null 2>&1 &&
16358 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16364 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16365 as_basename=basename
16370 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16376 as_me=`$as_basename -- "$0" ||
16377 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16378 X"$0" : 'X\(//\)$' \| \
16379 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16381 sed '/^.*\/\([^/][^/]*\)\/*$/{
16395 # Avoid depending upon Character Ranges.
16396 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16397 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16398 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16399 as_cr_digits='0123456789'
16400 as_cr_alnum=$as_cr_Letters$as_cr_digits
16402 ECHO_C= ECHO_N= ECHO_T=
16403 case `echo -n x` in #(((((
16405 case `echo 'xy\c'` in
16406 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16408 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16415 rm -f conf$$ conf$$.exe conf$$.file
16416 if test -d conf$$.dir; then
16417 rm -f conf$$.dir/conf$$.file
16420 mkdir conf$$.dir 2>/dev/null
16422 if (echo >conf$$.file) 2>/dev/null; then
16423 if ln -s conf$$.file conf$$ 2>/dev/null; then
16425 # ... but there are two gotchas:
16426 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16427 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16428 # In both cases, we have to default to `cp -pR'.
16429 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16431 elif ln conf$$.file conf$$ 2>/dev/null; then
16439 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16440 rmdir conf$$.dir 2>/dev/null
16445 # Create "$as_dir" as a directory, including parents if necessary.
16450 -*) as_dir=./$as_dir;;
16452 test -d "$as_dir" || eval $as_mkdir_p || {
16456 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16457 *) as_qdir=$as_dir;;
16459 as_dirs="'$as_qdir' $as_dirs"
16460 as_dir=`$as_dirname -- "$as_dir" ||
16461 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16462 X"$as_dir" : 'X\(//\)[^/]' \| \
16463 X"$as_dir" : 'X\(//\)$' \| \
16464 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16465 $as_echo X"$as_dir" |
16466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16470 /^X\(\/\/\)[^/].*/{
16483 test -d "$as_dir" && break
16485 test -z "$as_dirs" || eval "mkdir $as_dirs"
16486 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16490 if mkdir -p . 2>/dev/null; then
16491 as_mkdir_p='mkdir -p "$as_dir"'
16493 test -d ./-p && rmdir ./-p
16498 # as_fn_executable_p FILE
16499 # -----------------------
16500 # Test if FILE is an executable regular file.
16501 as_fn_executable_p ()
16503 test -f "$1" && test -x "$1"
16504 } # as_fn_executable_p
16505 as_test_x='test -x'
16506 as_executable_p=as_fn_executable_p
16508 # Sed expression to map a string onto a valid CPP name.
16509 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16511 # Sed expression to map a string onto a valid variable name.
16512 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16516 ## ----------------------------------- ##
16517 ## Main body of $CONFIG_STATUS script. ##
16518 ## ----------------------------------- ##
16520 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16523 # Save the log message, to keep $0 and so on meaningful, and to
16524 # report actual input values of CONFIG_FILES etc. instead of their
16525 # values after options handling.
16527 This file was extended by $as_me, which was
16528 generated by GNU Autoconf 2.69. Invocation command line was
16530 CONFIG_FILES = $CONFIG_FILES
16531 CONFIG_HEADERS = $CONFIG_HEADERS
16532 CONFIG_LINKS = $CONFIG_LINKS
16533 CONFIG_COMMANDS = $CONFIG_COMMANDS
16536 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16541 case $ac_config_files in *"
16542 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16545 case $ac_config_headers in *"
16546 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16551 # Files that config.status was made for.
16552 config_files="$ac_config_files"
16553 config_headers="$ac_config_headers"
16554 config_commands="$ac_config_commands"
16558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16560 \`$as_me' instantiates files and other configuration actions
16561 from templates according to the current configuration. Unless the files
16562 and actions are specified as TAGs, all are instantiated by default.
16564 Usage: $0 [OPTION]... [TAG]...
16566 -h, --help print this help, then exit
16567 -V, --version print version number and configuration settings, then exit
16568 --config print configuration, then exit
16569 -q, --quiet, --silent
16570 do not print progress messages
16571 -d, --debug don't remove temporary files
16572 --recheck update $as_me by reconfiguring in the same conditions
16573 --file=FILE[:TEMPLATE]
16574 instantiate the configuration file FILE
16575 --header=FILE[:TEMPLATE]
16576 instantiate the configuration header FILE
16578 Configuration files:
16581 Configuration headers:
16584 Configuration commands:
16587 Report bugs to the package provider."
16590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16591 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16594 configured by $0, generated by GNU Autoconf 2.69,
16595 with options \\"\$ac_cs_config\\"
16597 Copyright (C) 2012 Free Software Foundation, Inc.
16598 This config.status script is free software; the Free Software Foundation
16599 gives unlimited permission to copy, distribute and modify it."
16604 test -n "\$AWK" || AWK=awk
16607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16608 # The default lists apply if the user does not specify any file.
16614 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16615 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16619 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16631 # Handling of the options.
16632 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16634 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16635 $as_echo "$ac_cs_version"; exit ;;
16636 --config | --confi | --conf | --con | --co | --c )
16637 $as_echo "$ac_cs_config"; exit ;;
16638 --debug | --debu | --deb | --de | --d | -d )
16640 --file | --fil | --fi | --f )
16643 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16644 '') as_fn_error $? "missing file argument" ;;
16646 as_fn_append CONFIG_FILES " '$ac_optarg'"
16647 ac_need_defaults=false;;
16648 --header | --heade | --head | --hea )
16651 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16653 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16654 ac_need_defaults=false;;
16656 # Conflict between --help and --header
16657 as_fn_error $? "ambiguous option: \`$1'
16658 Try \`$0 --help' for more information.";;
16659 --help | --hel | -h )
16660 $as_echo "$ac_cs_usage"; exit ;;
16661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16662 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16665 # This is an error.
16666 -*) as_fn_error $? "unrecognized option: \`$1'
16667 Try \`$0 --help' for more information." ;;
16669 *) as_fn_append ac_config_targets " $1"
16670 ac_need_defaults=false ;;
16676 ac_configure_extra_args=
16678 if $ac_cs_silent; then
16680 ac_configure_extra_args="$ac_configure_extra_args --silent"
16684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16685 if \$ac_cs_recheck; then
16686 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16688 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16689 CONFIG_SHELL='$SHELL'
16690 export CONFIG_SHELL
16695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16699 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16700 ## Running $as_me. ##
16706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16716 # Handling of arguments.
16717 for ac_config_target in $ac_config_targets
16719 case $ac_config_target in
16720 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16721 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16722 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16723 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
16724 "jwxyz/Makefile") CONFIG_FILES="$CONFIG_FILES jwxyz/Makefile" ;;
16725 "hacks/Makefile") CONFIG_FILES="$CONFIG_FILES hacks/Makefile" ;;
16726 "hacks/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hacks/glx/Makefile" ;;
16727 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16728 "driver/Makefile") CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;;
16729 "driver/xscreensaver.pam") CONFIG_FILES="$CONFIG_FILES driver/xscreensaver.pam" ;;
16730 "driver/xscreensaver-demo.glade2") CONFIG_FILES="$CONFIG_FILES driver/xscreensaver-demo.glade2" ;;
16731 "driver/XScreenSaver.ad") CONFIG_FILES="$CONFIG_FILES driver/XScreenSaver.ad" ;;
16732 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
16734 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16739 # If the user did not use the arguments to specify the items to instantiate,
16740 # then the envvar interface is used. Set only those that are not.
16741 # We use the long form for the default assignment because of an extremely
16742 # bizarre bug on SunOS 4.1.3.
16743 if $ac_need_defaults; then
16744 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16745 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16746 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16749 # Have a temporary directory for convenience. Make it in the build tree
16750 # simply because there is no reason against having it here, and in addition,
16751 # creating and moving files from /tmp can sometimes cause problems.
16752 # Hook for its removal unless debugging.
16753 # Note that there is a small window in which the directory will not be cleaned:
16754 # after its creation but before its name has been assigned to `$tmp'.
16758 trap 'exit_status=$?
16759 : "${ac_tmp:=$tmp}"
16760 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16762 trap 'as_fn_exit 1' 1 2 13 15
16764 # Create a (secure) tmp directory for tmp files.
16767 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16771 tmp=./conf$$-$RANDOM
16772 (umask 077 && mkdir "$tmp")
16773 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16776 # Set up the scripts for CONFIG_FILES section.
16777 # No need to generate them if there are no CONFIG_FILES.
16778 # This happens for instance with `./config.status config.h'.
16779 if test -n "$CONFIG_FILES"; then
16782 ac_cr=`echo X | tr X '\015'`
16783 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16784 # But we know of no other shell where ac_cr would be empty at this
16785 # point, so we can use a bashism as a fallback.
16786 if test "x$ac_cr" = x; then
16787 eval ac_cr=\$\'\\r\'
16789 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16790 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16793 ac_cs_awk_cr=$ac_cr
16796 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16801 echo "cat >conf$$subs.awk <<_ACEOF" &&
16802 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16804 } >conf$$subs.sh ||
16805 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16806 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16808 for ac_last_try in false false false false false :; do
16809 . ./conf$$subs.sh ||
16810 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16812 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16813 if test $ac_delim_n = $ac_delim_num; then
16815 elif $ac_last_try; then
16816 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16818 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16821 rm -f conf$$subs.sh
16823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16824 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16828 s/^/S["/; s/!.*/"]=/
16838 s/\(.\{148\}\)..*/\1/
16840 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16845 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16852 s/\(.\{148\}\)..*/\1/
16854 s/["\\]/\\&/g; s/^/"/; s/$/"/
16858 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16863 ' <conf$$subs.awk | sed '
16868 ' >>$CONFIG_STATUS || ac_write_fail=1
16869 rm -f conf$$subs.awk
16870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16872 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16873 for (key in S) S_is_set[key] = 1
16879 nfields = split(line, field, "@")
16881 len = length(field[1])
16882 for (i = 2; i < nfields; i++) {
16884 keylen = length(key)
16885 if (S_is_set[key]) {
16887 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16888 len += length(value) + length(field[++i])
16899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16900 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16901 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16904 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16905 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16908 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16909 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16910 # trailing colons and then remove the whole line if VPATH becomes empty
16911 # (actually we leave an empty line to preserve line numbers).
16912 if test "x$srcdir" = x.; then
16913 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16932 fi # test -n "$CONFIG_FILES"
16934 # Set up the scripts for CONFIG_HEADERS section.
16935 # No need to generate them if there are no CONFIG_HEADERS.
16936 # This happens for instance with `./config.status Makefile'.
16937 if test -n "$CONFIG_HEADERS"; then
16938 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16942 # Transform confdefs.h into an awk script `defines.awk', embedded as
16943 # here-document in config.status, that substitutes the proper values into
16944 # config.h.in to produce config.h.
16946 # Create a delimiter string that does not exist in confdefs.h, to ease
16947 # handling of long lines.
16949 for ac_last_try in false false :; do
16950 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16951 if test -z "$ac_tt"; then
16953 elif $ac_last_try; then
16954 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16956 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16960 # For the awk script, D is an array of macro values keyed by name,
16961 # likewise P contains macro parameters if any. Preserve backslash
16962 # newline sequences.
16964 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16966 s/.\{148\}/&'"$ac_delim"'/g
16969 s/^[ ]*#[ ]*define[ ][ ]*/ /
16976 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16978 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16982 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16983 D["\1"]=" \3\\\\\\n"\\/p
16985 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16990 s/.\{148\}/&'"$ac_delim"'/g
16995 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16998 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17000 ' <confdefs.h | sed '
17001 s/'"$ac_delim"'/"\\\
17002 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17005 for (key in D) D_is_set[key] = 1
17008 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17010 split(line, arg, " ")
17011 if (arg[1] == "#") {
17015 defundef = substr(arg[1], 2)
17018 split(mac1, mac2, "(") #)
17020 prefix = substr(line, 1, index(line, defundef) - 1)
17021 if (D_is_set[macro]) {
17022 # Preserve the white space surrounding the "#".
17023 print prefix "define", macro P[macro] D[macro]
17026 # Replace #undef with comments. This is necessary, for example,
17027 # in the case of _POSIX_SOURCE, which is predefined and required
17028 # on some systems where configure will not decide to define it.
17029 if (defundef == "undef") {
17030 print "/*", prefix defundef, macro, "*/"
17038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17039 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17040 fi # test -n "$CONFIG_HEADERS"
17043 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17048 :[FHLC]) ac_mode=$ac_tag; continue;;
17050 case $ac_mode$ac_tag in
17052 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17053 :[FH]-) ac_tag=-:-;;
17054 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17071 -) ac_f="$ac_tmp/stdin";;
17072 *) # Look for the file first in the build tree, then in the source tree
17073 # (if the path is not absolute). The absolute path cannot be DOS-style,
17074 # because $ac_f cannot contain `:'.
17078 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17080 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17082 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17083 as_fn_append ac_file_inputs " '$ac_f'"
17086 # Let's still pretend it is `configure' which instantiates (i.e., don't
17087 # use $as_me), people would be surprised to read:
17088 # /* config.h. Generated by config.status. */
17089 configure_input='Generated from '`
17090 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17092 if test x"$ac_file" != x-; then
17093 configure_input="$ac_file. $configure_input"
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17095 $as_echo "$as_me: creating $ac_file" >&6;}
17097 # Neutralize special characters interpreted by sed in replacement strings.
17098 case $configure_input in #(
17099 *\&* | *\|* | *\\* )
17100 ac_sed_conf_input=`$as_echo "$configure_input" |
17101 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17102 *) ac_sed_conf_input=$configure_input;;
17106 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17107 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17112 ac_dir=`$as_dirname -- "$ac_file" ||
17113 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17114 X"$ac_file" : 'X\(//\)[^/]' \| \
17115 X"$ac_file" : 'X\(//\)$' \| \
17116 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17117 $as_echo X"$ac_file" |
17118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17122 /^X\(\/\/\)[^/].*/{
17135 as_dir="$ac_dir"; as_fn_mkdir_p
17139 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17141 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17142 # A ".." for each directory in $ac_dir_suffix.
17143 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17144 case $ac_top_builddir_sub in
17145 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17146 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17149 ac_abs_top_builddir=$ac_pwd
17150 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17151 # for backward compatibility:
17152 ac_top_builddir=$ac_top_build_prefix
17155 .) # We are building in place.
17157 ac_top_srcdir=$ac_top_builddir_sub
17158 ac_abs_top_srcdir=$ac_pwd ;;
17159 [\\/]* | ?:[\\/]* ) # Absolute name.
17160 ac_srcdir=$srcdir$ac_dir_suffix;
17161 ac_top_srcdir=$srcdir
17162 ac_abs_top_srcdir=$srcdir ;;
17163 *) # Relative name.
17164 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17165 ac_top_srcdir=$ac_top_build_prefix$srcdir
17166 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17168 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17178 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17179 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17184 # If the template does not know about datarootdir, expand it.
17185 # FIXME: This hack should be removed a few years after 2.60.
17186 ac_datarootdir_hack=; ac_datarootdir_seen=
17197 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17198 *datarootdir*) ac_datarootdir_seen=yes;;
17199 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17201 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17204 ac_datarootdir_hack='
17205 s&@datadir@&$datadir&g
17206 s&@docdir@&$docdir&g
17207 s&@infodir@&$infodir&g
17208 s&@localedir@&$localedir&g
17209 s&@mandir@&$mandir&g
17210 s&\\\${datarootdir}&$datarootdir&g' ;;
17214 # Neutralize VPATH when `$srcdir' = `.'.
17215 # Shell code in configure.ac might set extrasub.
17216 # FIXME: do we really want to maintain this feature?
17217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17218 ac_sed_extra="$ac_vpsub
17221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17223 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17224 s|@configure_input@|$ac_sed_conf_input|;t t
17225 s&@top_builddir@&$ac_top_builddir_sub&;t t
17226 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17227 s&@srcdir@&$ac_srcdir&;t t
17228 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17229 s&@top_srcdir@&$ac_top_srcdir&;t t
17230 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17231 s&@builddir@&$ac_builddir&;t t
17232 s&@abs_builddir@&$ac_abs_builddir&;t t
17233 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17234 s&@INSTALL@&$ac_INSTALL&;t t
17235 $ac_datarootdir_hack
17237 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17238 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17240 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17241 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17242 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17243 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17245 which seems to be undefined. Please make sure it is defined" >&5
17246 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17247 which seems to be undefined. Please make sure it is defined" >&2;}
17249 rm -f "$ac_tmp/stdin"
17251 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17252 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17254 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17260 if test x"$ac_file" != x-; then
17262 $as_echo "/* $configure_input */" \
17263 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17264 } >"$ac_tmp/config.h" \
17265 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17266 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17268 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17271 mv "$ac_tmp/config.h" "$ac_file" \
17272 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17275 $as_echo "/* $configure_input */" \
17276 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17277 || as_fn_error $? "could not create -" "$LINENO" 5
17281 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17282 $as_echo "$as_me: executing $ac_file commands" >&6;}
17287 case $ac_file$ac_mode in
17288 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
17289 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
17292 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
17293 as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
17295 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
17300 '"s|^| $ac_top_srcdir/|" \
17301 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
17303 sed '/^POTFILES =/,/[^\\]$/ {
17307 ' "po/Makefile.in" >"po/Makefile"
17308 rm -f "po/Makefile.tmp"
17309 mv "po/stamp-it.tmp" "po/stamp-it"
17318 ac_clean_files=$ac_clean_files_save
17320 test $ac_write_fail = 0 ||
17321 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17324 # configure is writing to config.log, and then calls config.status.
17325 # config.status does its own redirection, appending to config.log.
17326 # Unfortunately, on DOS this fails, as config.log is still kept open
17327 # by configure, so config.status won't be able to write to it; its
17328 # output is simply discarded. So we exec the FD to /dev/null,
17329 # effectively closing config.log, so it can be properly (re)opened and
17330 # appended to by config.status. When coming back to configure, we
17331 # need to make the FD available again.
17332 if test "$no_create" != yes; then
17334 ac_config_status_args=
17335 test "$silent" = yes &&
17336 ac_config_status_args="$ac_config_status_args --quiet"
17338 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17340 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17341 # would make configure fail if this is the last instruction.
17342 $ac_cs_success || as_fn_exit 1
17344 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17346 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17350 ###############################################################################
17352 # Print some warnings at the end.
17354 ###############################################################################
17356 warn_prefix_1=" Warning:"
17357 warn_prefix_2=" Note:"
17358 warn_prefix="$warn_prefix_1"
17361 warnsep=' #################################################################'
17364 if test "$warning" = no ; then
17365 echo '' ; echo "$warnsep" ; echo ''
17372 if test "$warning" = long ; then echo '' ; fi
17375 echo "$warn_prefix $rest"
17382 if test "$was" != no ; then echo '' ; fi
17384 echo "$warn_prefix $rest"
17394 warn_prefix="$warn_prefix_2"
17396 warn_prefix="$warn_prefix_1"
17400 warn_prefix="$warn_prefix_2"
17402 warn_prefix="$warn_prefix_1"
17406 # ac_prog_cc_no_pthread normally only happens on AIX, because according
17407 # to AX_PTHREAD, AIX needs CC=xlc_r or CC=cc_r to do threads.
17408 # If CC is specified, it takes precedence over --with-pthread.
17409 if test "$ac_prog_cc_no_pthread" ; then
17410 warnL "You requested $ac_original_cc for the C compiler, but it doesn't"
17411 warn2 "support POSIX threads."
17413 warn2 "If you have multiple CPU cores, try CC=$PTHREAD_CC."
17414 elif test "$with_pthread_req" = yes -a "$have_pthread" = no ; then
17415 warn 'POSIX threads were requested, but were not found.'
17418 if test "$with_sgi_req" = yes -a "$have_sgi" = no ; then
17419 warn 'The SGI saver extension was requested, but was not found.'
17422 if test "$with_xidle_req" = yes -a "$have_xidle" = no ; then
17423 warn 'The XIdle extension was requested, but was not found.'
17426 if test "$with_xshm_req" = yes -a "$have_xshm" = no ; then
17427 warn 'The XSHM extension was requested, but was not found.'
17430 if test "$with_xdbe_req" = yes -a "$have_xdbe" = no ; then
17431 warn 'The DOUBLE-BUFFER extension was requested, but was not found.'
17434 if test "$with_sgivc_req" = yes -a "$have_sgivc" = no ; then
17435 warn 'The SGI-VIDEO-CONTROL extension was requested, but was not found.'
17438 if test "$with_dpms_req" = yes -a "$have_dpms" = no ; then
17439 warn 'The DPMS extension was requested, but was not found.'
17442 if test "$with_xinerama_req" = yes -a "$have_xinerama" = no ; then
17443 warn 'The Xinerama extension was requested, but was not found.'
17446 if test "$with_xf86vmode_req" = yes -a "$have_xf86vmode" = no ; then
17447 warn 'The XF86VMODE extension was requested, but was not found.'
17450 if test "$with_randr_req" = yes -a "$have_randr" = no ; then
17451 warn 'The RANDR extension was requested, but was not found.'
17454 if test "$with_proc_interrupts_req" = yes -a "$have_proc_interrupts" = no; then
17455 warn "Checking of /proc/interrupts was requested, but it's bogus."
17458 if test "$pkg_config" = false ; then
17459 warnL 'The "pkg-config" program was not found. Without that,'
17460 warn2 "detection of the various GTK libraries won't work."
17462 pkgerr=`$pkg_config --list-all 2>&1 >/dev/null`
17463 if test "x$pkgerr" != "x" ; then
17464 warnL 'The "pkg-config" program produces errors. This often causes'
17465 warn2 "detection of the various GTK libraries to malfunction."
17466 warn2 "The errors are:"
17468 echo "$pkgerr" | sed 's/^/ > /g'
17472 if test "$gtk_halfassed" != no ; then
17473 warnL "GTK version $gtk_halfassed was found, but at least one supporting"
17474 warn2 "library ($gtk_halfassed_lib) was not, so GTK can't be used."
17475 warn2 "Perhaps some of the development packages are not installed?"
17476 if test "$have_gtk" = yes ; then
17477 v="$ac_gtk_version_string"
17478 warn2 "GTK $v is also installed, so it will be used instead."
17479 warn2 "Please read the above output and the \`config.log' file"
17480 warn2 "for more details."
17485 warn2 'Though the Motif front-end to xscreensaver is still'
17486 warn2 'maintained, it is no longer being updated with new'
17487 warn2 'features: all new development on the xscreensaver-demo'
17488 warn2 'program is happening in the GTK version, and not in the'
17489 warn2 'Motif version. It is recommended that you build against'
17490 warn2 'GTK instead of Motif. See <http://www.gtk.org/>.'
17493 if test "$have_motif" = no -a "$have_gtk" = no; then
17495 if test "$with_motif" = yes; then
17496 warnL "Neither the GTK nor Motif libraries were found; the"
17497 warn2 "\`xscreensaver-demo' program requires one of these."
17501 warnL "The GTK libraries do not seem to be available; the"
17502 warn2 "\`xscreensaver-demo' program requires them."
17504 # warn2 'You can use Motif or Lesstif instead of GTK (use the'
17505 # warn2 "\`--with-motif' option) but that is NOT recommended."
17509 elif test "$with_motif_req" = yes -a "$have_motif" = no ; then
17510 warnL "Use of Motif was requested, but it wasn't found;"
17511 warn2 "Gtk will be used instead."
17513 elif test "$jurassic_gtk" = yes ; then
17517 v="$ac_gtk_version_string"
17518 if test "$with_gtk_req" = yes -a "$ac_gtk_version" = "unknown" ; then
17519 warnL "Use of Gtk was requested, but its version number is unknown;"
17520 elif test "$with_gtk_req" = yes ; then
17521 warnL "Use of Gtk was requested, but it is version $v;"
17523 warnL "Gtk was found on this system, but it is version $v;"
17526 warn2 "Gtk $pref_gtk or newer is required."
17528 elif test "$with_gtk_req" = yes -a "$have_gtk" = no ; then
17529 warnL "Use of Gtk was requested, but it wasn't found."
17533 if test "$have_gtk" = yes -a "$have_gdk_pixbuf" = no ; then
17534 warn "GTK is being used, but the GDK-Pixbuf library and/or"
17535 warn2 "headers were not found. That can't be good. Please"
17536 warn2 "install the GDK-Pixbuf development kit and re-configure."
17539 if test "$have_motif" = yes -a "$have_lesstif" = yes ; then
17541 preferred_lesstif=0.92
17543 if test "$lesstif_version" = unknown; then
17544 warnL "Unable to determine the LessTif version number!"
17545 warn2 "Make sure you are using version $preferred_lesstif or newer."
17546 warn2 "See <http://www.lesstif.org/>."
17548 elif test \! $lesstif_version -gt 82; then
17549 warnL "LessTif version $lesstif_version_string is being used."
17550 warn2 "LessTif versions 0.82 and earlier are too buggy to"
17551 warn2 "use with XScreenSaver; it is strongly recommended"
17552 warn2 "that you upgrade to at least version $preferred_lesstif!"
17553 warn2 "See <http://www.lesstif.org/>."
17558 if test "$have_motif" = yes -a "$have_gtk" = no ; then
17559 warn 'Motif is being used, and GTK is not.'
17565 if test "$with_xpm_req" = yes -a "$have_xpm" = no; then
17566 warnL 'Use of XPM was requested, but it was not found.'
17569 if test "$with_gdk_pixbuf_req" = yes -a "$have_gdk_pixbuf" = no; then
17570 warnL 'Use of GDK-Pixbuf was requested, but it was not found.'
17573 if test "$have_gdk_pixbuf" = no -o "$gdk_pixbuf_halfassed" = yes || \
17574 test "$have_gdk_pixbuf" = no -a "$have_xpm" = no ; then
17576 if test "$with_gdk_pixbuf_req" = yes ; then
17578 elif test "$with_gdk_pixbuf_req" = no ; then
17579 warnL 'The GDK-Pixbuf library is not being used.'
17581 warnL 'The GDK-Pixbuf library was not found.'
17584 if test "$with_xpm_req" = yes -o "$have_xpm" = yes ; then
17586 elif test "$with_xpm_req" = no ; then
17587 warnL 'The XPM library is not being used.'
17589 warnL 'The XPM library was not found.'
17592 if test "$have_gdk_pixbuf" = no -a "$have_xpm" = yes ; then
17593 warn2 'The XPM library is being used instead.'
17596 if test "$gdk_pixbuf_halfassed" = yes ; then
17598 warn2 'More specifically, we found the headers, but not the'
17599 warn2 'libraries; so either GDK-Pixbuf is half-installed on this'
17600 warn2 "system, or something else went wrong. The \`config.log'"
17601 warn2 'file might contain some clues.'
17605 warn2 'Some of the demos will not use images as much as they could.'
17606 warn2 'You should consider installing GDK-Pixbuf and re-running'
17607 warn2 'configure. (GDK-Pixbuf is recommended over XPM, as it'
17608 warn2 'provides support for more image formats.)'
17612 if test "$have_jpeg" = no ; then
17613 if test "$with_jpeg_req" = yes ; then
17614 warnL 'Use of libjpeg was requested, but it was not found.'
17615 elif test "$with_jpeg_req" = no ; then
17616 noteL 'The JPEG library is not being used.'
17618 noteL 'The JPEG library was not found.'
17621 if test "$jpeg_halfassed" = yes ; then
17623 warn2 'More specifically, we found the headers, but not the'
17624 warn2 'library; so either JPEG is half-installed on this'
17625 warn2 "system, or something else went wrong. The \`config.log'"
17626 warn2 'file might contain some clues.'
17630 if test "$have_gdk_pixbuf" = no ; then
17631 warn2 "This means that it won't be possible for the image-manipulating"
17632 warn2 "display modes to load files from disk; and it also means that"
17633 warn2 "the \`webcollage' program will be much slower."
17635 warn2 "This means the \`webcollage' program will be much slower."
17640 if test "$have_xft" = no ; then
17641 if test "$with_xft_req" = yes ; then
17642 warnL "Use of libXft was requested, but it was not found."
17643 elif test "$with_xft_req" = no ; then
17644 noteL 'The Xft library is not being used.'
17646 noteL "The Xft library was not found."
17649 if test "$xft_halfassed" = yes ; then
17651 warn2 'More specifically, we found the headers, but not the'
17652 warn2 'libraries; so either Xft is half-installed on this'
17653 warn2 "system, or something else went wrong. The \`config.log'"
17654 warn2 'file might contain some clues.'
17658 warn2 "This means that fonts won't be anti-aliased."
17662 if test "$have_gl" = yes -a "$ac_have_mesa_gl" = yes ; then
17663 preferred_mesagl=3.4
17664 mgv="$ac_mesagl_version_string"
17665 pgl="$preferred_mesagl"
17667 if test "$ac_mesagl_version" = unknown; then
17669 # warnL "Unable to determine the MesaGL version number!"
17670 # warn2 "Make sure you are using version $preferred_mesagl or newer."
17672 elif test \! "$ac_mesagl_version" -gt 2006; then
17673 warnL "MesaGL version number is $mgv --"
17674 warn2 "MesaGL 2.6 and earlier have a security bug. It is strongly"
17675 warn2 "recommended that you upgrade to at least version $preferred_mesagl."
17677 elif test \! "$ac_mesagl_version" -gt 3003; then
17678 warnL "MesaGL version number is $mgv --"
17679 warn2 "MesaGL 3.3 and earlier have some bugs; it is recommended"
17680 warn2 "that you upgrade to $pgl or newer."
17684 if test "$have_gl" = no ; then
17685 if test "$with_gl_req" = yes ; then
17686 warnL 'Use of GL was requested, but it was not found.'
17687 elif test "$with_gl_req" = no ; then
17688 noteL 'The OpenGL 3D library is not being used.'
17690 noteL 'The OpenGL 3D library was not found.'
17693 if test "$gl_halfassed" = yes ; then
17695 warn2 'More specifically, we found the headers, but not the'
17696 warn2 'libraries; so either GL is half-installed on this'
17697 warn2 "system, or something else went wrong. The \`config.log'"
17698 warn2 'file might contain some clues.'
17702 warn2 'Those demos which use 3D will not be built or installed.'
17703 warn2 'You might want to consider installing OpenGL and'
17704 warn2 're-running configure.'
17709 if test "$have_gl" = yes -a "$have_gle" = no ; then
17711 # nobody cares about this; don't print the warning unless it was
17712 # requested and not found, or halfway-found.
17713 if test "$with_gle_req" = yes -o "$gle_halfassed" = yes ; then
17715 if test "$with_gle_req" = yes ; then
17716 noteL 'Use of the GLE (GL Extrusion) library was requested, but'
17717 warn2 'it was not found (though the OpenGL library was found, and'
17718 warn2 'is being used.)'
17719 elif test "$with_gle_req" = no ; then
17720 noteL 'The OpenGL Library is being used, but the GLE (GL Extrusion)'
17721 warn2 'library is not.'
17723 noteL 'The OpenGL Library was found, but the GLE (GL Extrusion)'
17724 warn2 'library was not.'
17727 if test "$gle_halfassed" = yes ; then
17729 warn2 'More specifically, we found the headers, but not the'
17730 warn2 'libraries; so either GLE is half-installed on this'
17731 warn2 "system, or something else went wrong. The \`config.log'"
17732 warn2 'file might contain some clues.'
17736 warn2 'Some of the OpenGL (3D) demos (those that depend on GLE)'
17737 warn2 'will not be built or installed. You might want to consider'
17738 warn2 'installing GLE and re-running configure. You can find the'
17739 warn2 'GLE library at <http://www.linas.org/gle/>'
17745 if test "$with_readdisplay_req" = yes -a "$have_readdisplay" = no ; then
17746 warn 'Use of XReadDisplay was requested, but it was not found.'
17749 if test "$with_kerberos_req" = yes -a "$have_kerberos" = no ; then
17750 warn 'Use of Kerberos was requested, but it was not found.'
17753 if test "$with_pam_req" = yes -a "$have_pam" = no ; then
17754 warn 'Use of PAM was requested, but it was not found.'
17757 if test "$with_shadow_req" = yes -a "$have_shadow" = no ; then
17758 warn 'Use of shadow passwords was requested, but they were not found.'
17761 if test "$ac_macosx" = yes ; then
17762 if test "$enable_locking" = yes ; then
17763 warn "You have specified --enable-locking on MacOS X."
17764 warn2 "THIS DOES NOT WORK! Don't do this!"
17769 # You are in a twisty maze of namespaces and syntaxes, all alike.
17770 # Fuck the skull of Unix.
17772 bindir=`eval eval eval eval eval eval eval echo $bindir`
17773 HACKDIR=`eval eval eval eval eval eval eval echo $HACKDIR`
17774 HACK_CONF_DIR=`eval eval eval eval eval eval eval echo $HACK_CONF_DIR`
17776 # canonicalize slashes.
17777 bindir=`echo "${bindir}" | sed 's@/$@@;s@//*@/@g'`
17778 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
17779 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
17782 # Sanity check the hackdir
17783 for bad_choice in xscreensaver xscreensaver-demo xscreensaver-command ; do
17784 if test "${HACKDIR}" = "${bindir}/${bad_choice}" ; then
17786 as_fn_error $? "\"--with-hackdir=${bindir}/${bad_choice}\" won't work.
17787 There will be an executable installed with that name, so
17788 that can't be the name of a directory as well. Please
17789 re-configure with a different directory name." "$LINENO" 5
17796 # Now let's warn if there's a previous RPM version already installed.
17797 # But don't bother with this test if we are currently *building* an RPM.
17799 if test -z "$RPM_PACKAGE_VERSION" ; then
17801 rpmnames="xscreensaver xscreensaver-base xscreensaver-extras"
17805 rpmv=`(rpm -qv $rpmnames) 2>/dev/null | \
17806 sed -n 's/^[-a-z]*-\([0-9][0-9]*[.][0-9][0-9a-z]*\)-.*$/\1/p' | \
17810 if test \! -z "$rpmv" ; then
17811 rpmbdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/xscreensaver-demo$@\1@p'`
17812 rpmhdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/popsquares$@\1@p'`
17815 warnL "There is already an installed RPM of xscreensaver $rpmv"
17816 warn2 'on this system. You might want to remove it ("rpm -ve")'
17817 warn2 'before running "make install" in this directory.'
17819 warn2 "Alternately, you could build this version of xscreensaver"
17820 warn2 'as an RPM, and then install that. An "xscreensaver.spec"'
17821 warn2 'file is included. Try "rpmbuild -v -ba xscreensaver.spec".'
17822 warn2 "See the RPM documentation for more info."
17825 if test "$rpmbdir" = "$rpmhdir" ; then
17826 warn2 "The RPM version was installed in $rpmbdir/."
17829 warn2 "The RPM version was installed in $rpmbdir/,"
17830 warn2 "with demos in $rpmhdir/."
17835 # Also warn if there's a Debian package installed.
17837 debnames="xscreensaver xscreensaver-data xscreensaver-data-extra"
17839 for dpkg in $debnames ; do
17840 if test -z "$debv"; then
17841 debv=`dpkg -s $dpkg 2>/dev/null | sed -n 's/^Version: \(.*\)$/\1/p'`
17845 if test \! -z "$debv" ; then
17846 debbdir=`dpkg -L $debnames 2>/dev/null | \
17847 sed -n 's@^\(.*/bin/\)xscreensaver$@\1@p'`
17848 debhdir=`dpkg -L $debnames 2>/dev/null | \
17849 sed -n 's@^\(.*/\)popsquares$@\1@p'`
17850 if test -z "$debbdir" ; then debbdir='???'; fi
17851 if test -z "$debhdir" ; then debhdir='???'; fi
17854 warnL "There is already an installed dpkg of xscreensaver"
17855 warn2 "version \"$debv\" on this system."
17857 warn2 "The dpkg was installed in $debbdir,"
17858 warn2 "with demos in $debhdir."
17862 if test "${bindir}" = "${HACKDIR}" ; then
17866 if test "$do_dir_warning" = yes; then
17870 echo ' When you run "make install", the "xscreensaver",'
17871 echo ' "xscreensaver-demo", and "xscreensaver-command" executables'
17872 echo " will be installed in ${bindir}/."
17874 echo " The various graphics demos (200+ different executables) will"
17875 echo " be installed in ${HACKDIR}/."
17877 echo " If you would prefer the demos to be installed elsewhere,"
17878 echo " you should re-run configure with the --with-hackdir=DIR"
17879 echo " option. For more information, run \`./configure --help'."
17883 if test "$warning" != no; then
17884 echo '' ; echo "$warnsep" ; echo ''
17887 if test "$do_dir_warning" = no; then
17888 if test "$warning" = no; then
17891 echo "User programs will be installed in ${bindir}/"
17892 echo "Screen savers will be installed in ${HACKDIR}/"
17893 echo "Configuration dialogs will be installed in ${HACK_CONF_DIR}/"
17894 echo "System-wide default settings will be installed in ${APPDEFAULTS}/"