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 driver utils hacks hacks/glx ; 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.
2799 ###############################################################################
2801 # Some utility functions to make checking for X things easier.
2803 ###############################################################################
2805 # Like AC_CHECK_HEADER, but it uses the already-computed -I directories.
2809 # Like AC_EGREP_HEADER, but it uses the already-computed -I directories.
2813 # Like AC_TRY_COMPILE, but it uses the already-computed -I directories.
2818 # Like AC_CHECK_LIB, but it uses the already-computed -I and -L directories.
2819 # Use this sparingly; it probably doesn't work very well on X programs.
2823 # Like AC_TRY_RUN, but it uses the already-computed -I directories.
2824 # (But not the -L directories!)
2830 # Usage: HANDLE_X_PATH_ARG([variable_name],
2831 # [--command-line-option],
2832 # [descriptive string])
2834 # All of the --with options take three forms:
2836 # --with-foo (or --with-foo=yes)
2837 # --without-foo (or --with-foo=no)
2840 # This function, HANDLE_X_PATH_ARG, deals with the /DIR case. When it sees
2841 # a directory (string beginning with a slash) it checks to see whether
2842 # /DIR/include and /DIR/lib exist, and adds them to $X_CFLAGS and $X_LIBS
2849 ###############################################################################
2850 ###############################################################################
2852 # End of function definitions. Now start actually executing stuff.
2854 ###############################################################################
2855 ###############################################################################
2857 # WTF! autoconf emits this *way* too late. Do it earlier.
2858 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2859 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2862 # random compiler setup
2864 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2865 if test -f "$ac_dir/install-sh"; then
2867 ac_install_sh="$ac_aux_dir/install-sh -c"
2869 elif test -f "$ac_dir/install.sh"; then
2871 ac_install_sh="$ac_aux_dir/install.sh -c"
2873 elif test -f "$ac_dir/shtool"; then
2875 ac_install_sh="$ac_aux_dir/shtool install -c"
2879 if test -z "$ac_aux_dir"; then
2880 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2883 # These three variables are undocumented and unsupported,
2884 # and are intended to be withdrawn in a future Autoconf release.
2885 # They can cause serious problems if a builder's source tree is in a directory
2886 # whose full name contains unusual characters.
2887 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2888 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2889 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2892 # Make sure we can run config.sub.
2893 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2894 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2897 $as_echo_n "checking build system type... " >&6; }
2898 if ${ac_cv_build+:} false; then :
2899 $as_echo_n "(cached) " >&6
2901 ac_build_alias=$build_alias
2902 test "x$ac_build_alias" = x &&
2903 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2904 test "x$ac_build_alias" = x &&
2905 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2906 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2907 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2911 $as_echo "$ac_cv_build" >&6; }
2912 case $ac_cv_build in
2914 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2917 ac_save_IFS=$IFS; IFS='-'
2923 # Remember, the first character of IFS is used to create $*,
2924 # except with old shells:
2927 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2931 $as_echo_n "checking host system type... " >&6; }
2932 if ${ac_cv_host+:} false; then :
2933 $as_echo_n "(cached) " >&6
2935 if test "x$host_alias" = x; then
2936 ac_cv_host=$ac_cv_build
2938 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2939 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2944 $as_echo "$ac_cv_host" >&6; }
2947 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2950 ac_save_IFS=$IFS; IFS='-'
2956 # Remember, the first character of IFS is used to create $*,
2957 # except with old shells:
2960 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2966 ac_cpp='$CPP $CPPFLAGS'
2967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2970 if test -n "$ac_tool_prefix"; then
2971 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2972 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if ${ac_cv_prog_CC+:} false; then :
2976 $as_echo_n "(cached) " >&6
2978 if test -n "$CC"; then
2979 ac_cv_prog_CC="$CC" # Let the user override the test.
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2988 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 if test -n "$CC"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3001 $as_echo "$CC" >&6; }
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3009 if test -z "$ac_cv_prog_CC"; then
3011 # Extract the first word of "gcc", so it can be a program name with args.
3012 set dummy gcc; ac_word=$2
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014 $as_echo_n "checking for $ac_word... " >&6; }
3015 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3016 $as_echo_n "(cached) " >&6
3018 if test -n "$ac_ct_CC"; then
3019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 test -z "$as_dir" && as_dir=.
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3028 ac_cv_prog_ac_ct_CC="gcc"
3029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3039 if test -n "$ac_ct_CC"; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3041 $as_echo "$ac_ct_CC" >&6; }
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044 $as_echo "no" >&6; }
3047 if test "x$ac_ct_CC" = x; then
3050 case $cross_compiling:$ac_tool_warned in
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3054 ac_tool_warned=yes ;;
3062 if test -z "$CC"; then
3063 if test -n "$ac_tool_prefix"; then
3064 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3065 set dummy ${ac_tool_prefix}cc; ac_word=$2
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3067 $as_echo_n "checking for $ac_word... " >&6; }
3068 if ${ac_cv_prog_CC+:} false; then :
3069 $as_echo_n "(cached) " >&6
3071 if test -n "$CC"; then
3072 ac_cv_prog_CC="$CC" # Let the user override the test.
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_CC="${ac_tool_prefix}cc"
3082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 if test -n "$CC"; then
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3094 $as_echo "$CC" >&6; }
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097 $as_echo "no" >&6; }
3103 if test -z "$CC"; then
3104 # Extract the first word of "cc", so it can be a program name with args.
3105 set dummy cc; ac_word=$2
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107 $as_echo_n "checking for $ac_word... " >&6; }
3108 if ${ac_cv_prog_CC+:} false; then :
3109 $as_echo_n "(cached) " >&6
3111 if test -n "$CC"; then
3112 ac_cv_prog_CC="$CC" # Let the user override the test.
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3123 ac_prog_rejected=yes
3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 if test $ac_prog_rejected = yes; then
3135 # We found a bogon in the path, so make sure we never use it.
3136 set dummy $ac_cv_prog_CC
3138 if test $# != 0; then
3139 # We chose a different compiler from the bogus one.
3140 # However, it has the same basename, so the bogon will be chosen
3141 # first if we set CC to just the basename; use the full file name.
3143 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3149 if test -n "$CC"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3151 $as_echo "$CC" >&6; }
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3159 if test -z "$CC"; then
3160 if test -n "$ac_tool_prefix"; then
3161 for ac_prog in cl.exe
3163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3164 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_CC+:} false; then :
3168 $as_echo_n "(cached) " >&6
3170 if test -n "$CC"; then
3171 ac_cv_prog_CC="$CC" # Let the user override the test.
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 if test -n "$CC"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3193 $as_echo "$CC" >&6; }
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3200 test -n "$CC" && break
3203 if test -z "$CC"; then
3205 for ac_prog in cl.exe
3207 # Extract the first word of "$ac_prog", so it can be a program name with args.
3208 set dummy $ac_prog; ac_word=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3212 $as_echo_n "(cached) " >&6
3214 if test -n "$ac_ct_CC"; then
3215 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 test -z "$as_dir" && as_dir=.
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3224 ac_cv_prog_ac_ct_CC="$ac_prog"
3225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3235 if test -n "$ac_ct_CC"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3237 $as_echo "$ac_ct_CC" >&6; }
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3244 test -n "$ac_ct_CC" && break
3247 if test "x$ac_ct_CC" = x; then
3250 case $cross_compiling:$ac_tool_warned in
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3254 ac_tool_warned=yes ;;
3263 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3265 as_fn_error $? "no acceptable C compiler found in \$PATH
3266 See \`config.log' for more details" "$LINENO" 5; }
3268 # Provide some information about the compiler.
3269 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3272 for ac_option in --version -v -V -qversion; do
3273 { { ac_try="$ac_compiler $ac_option >&5"
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279 $as_echo "$ac_try_echo"; } >&5
3280 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3282 if test -s conftest.err; then
3284 ... rest of stderr output deleted ...
3285 10q' conftest.err >conftest.er1
3286 cat conftest.er1 >&5
3288 rm -rf conftest.er1 conftest.err
3289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290 test $ac_status = 0; }
3293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294 /* end confdefs.h. */
3304 ac_clean_files_save=$ac_clean_files
3305 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3306 # Try to create an executable without -o first, disregard a.out.
3307 # It will help us diagnose broken compilers, and finding out an intuition
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3310 $as_echo_n "checking whether the C compiler works... " >&6; }
3311 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3313 # The possible output files:
3314 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3317 for ac_file in $ac_files
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3321 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3326 if { { ac_try="$ac_link_default"
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332 $as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_link_default") 2>&5
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }; then :
3337 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3338 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3339 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3340 # so that the user can short-circuit this test for compilers unknown to
3342 for ac_file in $ac_files ''
3344 test -f "$ac_file" || continue
3346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3349 # We found the default executable, but exeext='' is most
3353 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3355 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3357 # We set ac_cv_exeext here because the later test for it is not
3358 # safe: cross compilers may not add the suffix if given an `-o'
3359 # argument, so we may need to know it at that point already.
3360 # Even if this section looks crufty: it has the advantage of
3367 test "$ac_cv_exeext" = no && ac_cv_exeext=
3372 if test -z "$ac_file"; then :
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374 $as_echo "no" >&6; }
3375 $as_echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3380 as_fn_error 77 "C compiler cannot create executables
3381 See \`config.log' for more details" "$LINENO" 5; }
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3384 $as_echo "yes" >&6; }
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3387 $as_echo_n "checking for C compiler default output file name... " >&6; }
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3389 $as_echo "$ac_file" >&6; }
3390 ac_exeext=$ac_cv_exeext
3392 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3393 ac_clean_files=$ac_clean_files_save
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3395 $as_echo_n "checking for suffix of executables... " >&6; }
3396 if { { ac_try="$ac_link"
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402 $as_echo "$ac_try_echo"; } >&5
3403 (eval "$ac_link") 2>&5
3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }; then :
3407 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3408 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3409 # work properly (i.e., refer to `conftest.exe'), while it won't with
3411 for ac_file in conftest.exe conftest conftest.*; do
3412 test -f "$ac_file" || continue
3414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3415 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3423 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3424 See \`config.log' for more details" "$LINENO" 5; }
3426 rm -rf conftest conftest$ac_cv_exeext
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3428 $as_echo "$ac_cv_exeext" >&6; }
3430 rm -rf conftest.$ac_ext
3431 EXEEXT=$ac_cv_exeext
3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434 /* end confdefs.h. */
3439 FILE *f = fopen ("conftest.out", "w");
3440 return ferror (f) || fclose (f) != 0;
3446 ac_clean_files="$ac_clean_files conftest.out"
3447 # Check that the compiler produces executables we can run. If not, either
3448 # the compiler is broken, or we cross compile.
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3450 $as_echo_n "checking whether we are cross compiling... " >&6; }
3451 if test "$cross_compiling" != yes; then
3452 { { ac_try="$ac_link"
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458 $as_echo "$ac_try_echo"; } >&5
3459 (eval "$ac_link") 2>&5
3461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3462 test $ac_status = 0; }
3463 if { ac_try='./conftest$ac_cv_exeext'
3464 { { case "(($ac_try" in
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3469 $as_echo "$ac_try_echo"; } >&5
3470 (eval "$ac_try") 2>&5
3472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473 test $ac_status = 0; }; }; then
3476 if test "$cross_compiling" = maybe; then
3479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481 as_fn_error $? "cannot run C compiled programs.
3482 If you meant to cross compile, use \`--host'.
3483 See \`config.log' for more details" "$LINENO" 5; }
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3488 $as_echo "$cross_compiling" >&6; }
3490 rm -rf conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3491 ac_clean_files=$ac_clean_files_save
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3493 $as_echo_n "checking for suffix of object files... " >&6; }
3494 if ${ac_cv_objext+:} false; then :
3495 $as_echo_n "(cached) " >&6
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3508 rm -rf conftest.o conftest.obj
3509 if { { ac_try="$ac_compile"
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515 $as_echo "$ac_try_echo"; } >&5
3516 (eval "$ac_compile") 2>&5
3518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519 test $ac_status = 0; }; then :
3520 for ac_file in conftest.o conftest.obj conftest.*; do
3521 test -f "$ac_file" || continue;
3523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3524 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3529 $as_echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534 as_fn_error $? "cannot compute suffix of object files: cannot compile
3535 See \`config.log' for more details" "$LINENO" 5; }
3537 rm -rf conftest.$ac_cv_objext conftest.$ac_ext
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3540 $as_echo "$ac_cv_objext" >&6; }
3541 OBJEXT=$ac_cv_objext
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3544 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3545 if ${ac_cv_c_compiler_gnu+:} false; then :
3546 $as_echo_n "(cached) " >&6
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3562 if ac_fn_c_try_compile "$LINENO"; then :
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3572 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3573 if test $ac_compiler_gnu = yes; then
3578 ac_test_CFLAGS=${CFLAGS+set}
3579 ac_save_CFLAGS=$CFLAGS
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3581 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3582 if ${ac_cv_prog_cc_g+:} false; then :
3583 $as_echo_n "(cached) " >&6
3585 ac_save_c_werror_flag=$ac_c_werror_flag
3586 ac_c_werror_flag=yes
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3600 if ac_fn_c_try_compile "$LINENO"; then :
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3615 if ac_fn_c_try_compile "$LINENO"; then :
3618 ac_c_werror_flag=$ac_save_c_werror_flag
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3631 if ac_fn_c_try_compile "$LINENO"; then :
3634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 ac_c_werror_flag=$ac_save_c_werror_flag
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3642 $as_echo "$ac_cv_prog_cc_g" >&6; }
3643 if test "$ac_test_CFLAGS" = set; then
3644 CFLAGS=$ac_save_CFLAGS
3645 elif test $ac_cv_prog_cc_g = yes; then
3646 if test "$GCC" = yes; then
3652 if test "$GCC" = yes; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3659 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3660 if ${ac_cv_prog_cc_c89+:} false; then :
3661 $as_echo_n "(cached) " >&6
3663 ac_cv_prog_cc_c89=no
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3670 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3671 struct buf { int x; };
3672 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3673 static char *e (p, i)
3679 static char *f (char * (*g) (char **, int), char **p, ...)
3684 s = g (p, va_arg (v,int));
3689 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3690 function prototypes and stuff, but not '\xHH' hex character constants.
3691 These don't provoke an error unfortunately, instead are silently treated
3692 as 'x'. The following induces an error, until -std is added to get
3693 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3694 array size at least. It's necessary to write '\x00'==0 to get something
3695 that's true only with -std. */
3696 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3698 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3699 inside strings and character constants. */
3701 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3703 int test (int i, double x);
3704 struct s1 {int (*f) (int a);};
3705 struct s2 {int (*f) (double a);};
3706 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3712 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3717 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3718 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3720 CC="$ac_save_CC $ac_arg"
3721 if ac_fn_c_try_compile "$LINENO"; then :
3722 ac_cv_prog_cc_c89=$ac_arg
3724 rm -f core conftest.err conftest.$ac_objext
3725 test "x$ac_cv_prog_cc_c89" != "xno" && break
3727 rm -rf conftest.$ac_ext
3732 case "x$ac_cv_prog_cc_c89" in
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3735 $as_echo "none needed" >&6; } ;;
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3738 $as_echo "unsupported" >&6; } ;;
3740 CC="$CC $ac_cv_prog_cc_c89"
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3742 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3744 if test "x$ac_cv_prog_cc_c89" != xno; then :
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756 with_pthread_req=unspecified
3758 # AX_PTHREAD is from the GNU Autoconf Archive.
3759 # https://savannah.gnu.org/projects/autoconf-archive/
3760 # ===========================================================================
3761 # http://www.gnu.org/software/autoconf-archive/ax_pthread.html
3762 # ===========================================================================
3766 # AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
3770 # This macro figures out how to build C programs using POSIX threads. It
3771 # sets the PTHREAD_LIBS output variable to the threads library and linker
3772 # flags, and the PTHREAD_CFLAGS output variable to any special C compiler
3773 # flags that are needed. (The user can also force certain compiler
3774 # flags/libs to be tested by setting these environment variables.)
3776 # Also sets PTHREAD_CC to any special C compiler that is needed for
3777 # multi-threaded programs (defaults to the value of CC otherwise). (This
3778 # is necessary on AIX to use the special cc_r compiler alias.)
3780 # NOTE: You are assumed to not only compile your program with these flags,
3781 # but also link it with them as well. e.g. you should link with
3782 # $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
3784 # If you are only building threads programs, you may wish to use these
3785 # variables in your default LIBS, CFLAGS, and CC:
3787 # LIBS="$PTHREAD_LIBS $LIBS"
3788 # CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
3791 # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
3792 # has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name
3793 # (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
3795 # Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the
3796 # PTHREAD_PRIO_INHERIT symbol is defined when compiling with
3799 # ACTION-IF-FOUND is a list of shell commands to run if a threads library
3800 # is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
3801 # is not found. If ACTION-IF-FOUND is not specified, the default action
3802 # will define HAVE_PTHREAD.
3804 # Please let the authors know if this macro fails on any platform, or if
3805 # you have any other suggestions or comments. This macro was based on work
3806 # by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
3807 # from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
3808 # Alejandro Forero Cuervo to the autoconf macro repository. We are also
3809 # grateful for the helpful feedback of numerous users.
3811 # Updated for Autoconf 2.68 by Daniel Richard G.
3815 # Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
3816 # Copyright (c) 2011 Daniel Richard G. <skunk@iSKUNK.ORG>
3818 # This program is free software: you can redistribute it and/or modify it
3819 # under the terms of the GNU General Public License as published by the
3820 # Free Software Foundation, either version 3 of the License, or (at your
3821 # option) any later version.
3823 # This program is distributed in the hope that it will be useful, but
3824 # WITHOUT ANY WARRANTY; without even the implied warranty of
3825 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
3826 # Public License for more details.
3828 # You should have received a copy of the GNU General Public License along
3829 # with this program. If not, see <http://www.gnu.org/licenses/>.
3831 # As a special exception, the respective Autoconf Macro's copyright owner
3832 # gives unlimited permission to copy, distribute and modify the configure
3833 # scripts that are the output of Autoconf when processing the Macro. You
3834 # need not follow the terms of the GNU General Public License when using
3835 # or distributing such scripts, even though portions of the text of the
3836 # Macro appear in them. The GNU General Public License (GPL) does govern
3837 # all other use of the material that constitutes the Autoconf Macro.
3839 # This special exception to the GPL applies to versions of the Autoconf
3840 # Macro released by the Autoconf Archive. When you make and distribute a
3841 # modified version of the Autoconf Macro, you may extend this special
3842 # exception to the GPL to apply to your modified version as well.
3846 # This is what autoupdate's m4 run will expand. It fires
3847 # the warning (with _au_warn_XXX), outputs it into the
3848 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3849 # the replacement expansion.
3852 # This is an auxiliary macro that is also run when
3853 # autoupdate runs m4. It simply calls m4_warning, but
3854 # we need a wrapper so that each warning is emitted only
3855 # once. We break the quoting in m4_warning's argument in
3856 # order to expand this macro's arguments, not AU_DEFUN's.
3859 # Finally, this is the expansion that is picked up by
3860 # autoconf. It tells the user to run autoupdate, and
3861 # then outputs the replacement expansion. We do not care
3862 # about autoupdate's warning because that contains
3863 # information on what to do *after* running autoupdate.
3867 # This affects CC, LIBS, and CFLAGS, instead of defining new variables.
3870 # Check whether --with-pthread was given.
3871 if test "${with_pthread+set}" = set; then :
3872 withval=$with_pthread; with_pthread="$withval"; with_pthread_req="$withval"
3878 if test "$with_pthread" = yes; then
3879 # AX_PTHREAD might want a different compiler.
3883 ac_cpp='$CPP $CPPFLAGS'
3884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3890 # We used to check for pthread.h first, but this fails if pthread.h
3891 # requires special compiler flags (e.g. on True64 or Sequent).
3892 # It gets checked for in the link test anyway.
3894 # First of all, check if the user has set any of the PTHREAD_LIBS,
3895 # etcetera environment variables, and if threads linking works using
3897 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
3898 save_CFLAGS="$CFLAGS"
3899 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
3901 LIBS="$PTHREAD_LIBS $LIBS"
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
3903 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3907 /* Override any GCC internal prototype to avoid an error.
3908 Use char because int might match the return type of a GCC
3909 builtin and then its argument prototype would still apply. */
3913 char pthread_join ();
3917 return pthread_join ();
3922 if ac_fn_c_try_link "$LINENO"; then :
3925 rm -f core conftest.err conftest.$ac_objext \
3926 conftest$ac_exeext conftest.$ac_ext
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
3928 $as_echo "$ax_pthread_ok" >&6; }
3929 if test x"$ax_pthread_ok" = xno; then
3934 CFLAGS="$save_CFLAGS"
3937 # We must check for the threads library under a number of different
3938 # names; the ordering is very important because some systems
3939 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
3940 # libraries is broken (non-POSIX).
3942 # Create a list of thread flags to try. Items starting with a "-" are
3943 # C compiler flags, and other items are library names, except for "none"
3944 # which indicates that we try without any flags at all, and "pthread-config"
3945 # which is a program returning the flags for the Pth emulation library.
3947 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
3949 # The ordering *is* (sometimes) important. Some notes on the
3950 # individual items follow:
3952 # pthreads: AIX (must check this before -lpthread)
3953 # none: in case threads are in libc; should be tried before -Kthread and
3954 # other compiler flags to prevent continual compiler warnings
3955 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
3956 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
3957 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
3958 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
3959 # -pthreads: Solaris/gcc
3960 # -mthreads: Mingw32/gcc, Lynx/gcc
3961 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
3962 # doesn't hurt to check since this sometimes defines pthreads too;
3963 # also defines -D_REENTRANT)
3964 # ... -mt is also the pthreads flag for HP/aCC
3965 # pthread: Linux, etcetera
3966 # --thread-safe: KAI C++
3967 # pthread-config: use pthread-config program (for GNU Pth library)
3972 # On Solaris (at least, for some versions), libc contains stubbed
3973 # (non-functional) versions of the pthreads routines, so link-based
3974 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
3975 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
3976 # a function called by this macro, so we could check for that, but
3977 # who knows whether they'll stub that too in a future libc.) So,
3978 # we'll just look for -pthreads and -lpthread first:
3980 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
3984 ax_pthread_flags="-pthread $ax_pthread_flags"
3988 # Clang doesn't consider unrecognized options an error unless we specify
3989 # -Werror. We throw in some extra Clang-specific options to ensure that
3990 # this doesn't happen for GCC, which also accepts -Werror.
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
3993 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
3994 save_CFLAGS="$CFLAGS"
3995 ax_pthread_extra_flags="-Werror"
3996 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
4008 if ac_fn_c_try_compile "$LINENO"; then :
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4010 $as_echo "yes" >&6; }
4012 ax_pthread_extra_flags=
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017 CFLAGS="$save_CFLAGS"
4019 if test x"$ax_pthread_ok" = xno; then
4020 for flag in $ax_pthread_flags; do
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
4025 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
4030 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
4031 PTHREAD_CFLAGS="$flag"
4035 # Extract the first word of "pthread-config", so it can be a program name with args.
4036 set dummy pthread-config; ac_word=$2
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038 $as_echo_n "checking for $ac_word... " >&6; }
4039 if ${ac_cv_prog_ax_pthread_config+:} false; then :
4040 $as_echo_n "(cached) " >&6
4042 if test -n "$ax_pthread_config"; then
4043 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4052 ac_cv_prog_ax_pthread_config="yes"
4053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4060 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
4063 ax_pthread_config=$ac_cv_prog_ax_pthread_config
4064 if test -n "$ax_pthread_config"; then
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
4066 $as_echo "$ax_pthread_config" >&6; }
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069 $as_echo "no" >&6; }
4073 if test x"$ax_pthread_config" = xno; then continue; fi
4074 PTHREAD_CFLAGS="`pthread-config --cflags`"
4075 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
4080 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
4081 PTHREAD_LIBS="-l$flag"
4086 save_CFLAGS="$CFLAGS"
4087 LIBS="$PTHREAD_LIBS $LIBS"
4088 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
4090 # Check for various functions. We must include pthread.h,
4091 # since some functions may be macros. (On the Sequent, we
4092 # need a special flag -Kthread to make this header compile.)
4093 # We check for pthread_join because it is in -lpthread on IRIX
4094 # while pthread_create is in libc. We check for pthread_attr_init
4095 # due to DEC craziness with -lpthreads. We check for
4096 # pthread_cleanup_push because it is one of the few pthread
4097 # functions on Solaris that doesn't have a non-functional libc stub.
4098 # We try pthread_create on general principles.
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4101 #include <pthread.h>
4102 static void routine(void *a) { a = 0; }
4103 static void *start_routine(void *a) { return a; }
4107 pthread_t th; pthread_attr_t attr;
4108 pthread_create(&th, 0, start_routine, 0);
4109 pthread_join(th, 0);
4110 pthread_attr_init(&attr);
4111 pthread_cleanup_push(routine, 0);
4112 pthread_cleanup_pop(0) /* ; */
4117 if ac_fn_c_try_link "$LINENO"; then :
4120 rm -f core conftest.err conftest.$ac_objext \
4121 conftest$ac_exeext conftest.$ac_ext
4124 CFLAGS="$save_CFLAGS"
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
4127 $as_echo "$ax_pthread_ok" >&6; }
4128 if test "x$ax_pthread_ok" = xyes; then
4137 # Various other checks:
4138 if test "x$ax_pthread_ok" = xyes; then
4140 LIBS="$PTHREAD_LIBS $LIBS"
4141 save_CFLAGS="$CFLAGS"
4142 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4144 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
4146 $as_echo_n "checking for joinable pthread attribute... " >&6; }
4148 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h. */
4151 #include <pthread.h>
4155 int attr = $attr; return attr /* ; */
4160 if ac_fn_c_try_link "$LINENO"; then :
4161 attr_name=$attr; break
4163 rm -f core conftest.err conftest.$ac_objext \
4164 conftest$ac_exeext conftest.$ac_ext
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
4167 $as_echo "$attr_name" >&6; }
4168 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
4170 cat >>confdefs.h <<_ACEOF
4171 #define PTHREAD_CREATE_JOINABLE $attr_name
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
4177 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
4180 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
4181 osf* | hpux*) flag="-D_REENTRANT";;
4183 if test "$GCC" = "yes"; then
4186 # TODO: What about Clang on Solaris?
4187 flag="-mt -D_REENTRANT"
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
4192 $as_echo "$flag" >&6; }
4193 if test "x$flag" != xno; then
4194 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
4198 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
4199 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
4200 $as_echo_n "(cached) " >&6
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4205 #include <pthread.h>
4209 int i = PTHREAD_PRIO_INHERIT;
4214 if ac_fn_c_try_link "$LINENO"; then :
4215 ax_cv_PTHREAD_PRIO_INHERIT=yes
4217 ax_cv_PTHREAD_PRIO_INHERIT=no
4219 rm -f core conftest.err conftest.$ac_objext \
4220 conftest$ac_exeext conftest.$ac_ext
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
4224 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
4225 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
4227 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
4232 CFLAGS="$save_CFLAGS"
4234 # More AIX lossage: compile with *_r variant
4235 if test "x$GCC" != xyes; then
4239 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
4240 #handle absolute path differently from PATH based program lookup
4243 if as_fn_executable_p ${CC}_r; then :
4244 PTHREAD_CC="${CC}_r"
4247 for ac_prog in ${CC}_r
4249 # Extract the first word of "$ac_prog", so it can be a program name with args.
4250 set dummy $ac_prog; ac_word=$2
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4252 $as_echo_n "checking for $ac_word... " >&6; }
4253 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
4254 $as_echo_n "(cached) " >&6
4256 if test -n "$PTHREAD_CC"; then
4257 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 test -z "$as_dir" && as_dir=.
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4266 ac_cv_prog_PTHREAD_CC="$ac_prog"
4267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4276 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
4277 if test -n "$PTHREAD_CC"; then
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
4279 $as_echo "$PTHREAD_CC" >&6; }
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282 $as_echo "no" >&6; }
4286 test -n "$PTHREAD_CC" && break
4288 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
4299 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
4305 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4306 if test x"$ax_pthread_ok" = xyes; then
4307 if test "$CC" = "$PTHREAD_CC" -o -z "$ac_original_cc"; then
4310 ac_prog_cc_no_pthread=yes
4319 ac_cpp='$CPP $CPPFLAGS'
4320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326 if test "$have_pthread" = yes; then
4327 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
4332 # Needs ac_original_cc.
4336 if test -z "$GCC"; then
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to request ANSI compilation" >&5
4339 $as_echo_n "checking how to request ANSI compilation... " >&6; }
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HPUX: adding -Ae" >&5
4343 $as_echo "HPUX: adding -Ae" >&6; }
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX: adding -qlanglvl=ansi -qhalt=e" >&5
4348 $as_echo "AIX: adding -qlanglvl=ansi -qhalt=e" >&6; }
4349 CC="$CC -qlanglvl=ansi -qhalt=e"
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DEC: adding -std1 -ieee" >&5
4353 $as_echo "DEC: adding -std1 -ieee" >&6; }
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no idea" >&5
4358 $as_echo "no idea" >&6; }
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris: adding -D__EXTENSIONS__" >&5
4366 $as_echo "Solaris: adding -D__EXTENSIONS__" >&6; }
4367 CC="$CC -D__EXTENSIONS__"
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler works on ANSI C" >&5
4375 $as_echo_n "checking whether the compiler works on ANSI C... " >&6; }
4376 if test "$cross_compiling" = yes; then :
4377 as_fn_error $? "Couldn't build even a trivial ANSI C program: check CC." "$LINENO" 5
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4381 main(int ac, char **av) { return 0; }
4383 if ac_fn_c_try_run "$LINENO"; then :
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4385 $as_echo "yes" >&6; }
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 $as_echo "no" >&6; }
4389 as_fn_error $? "Couldn't build even a trivial ANSI C program: check CC." "$LINENO" 5
4391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4392 conftest.$ac_objext conftest.beam conftest.$ac_ext
4396 if test -n "$GCC"; then
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Turning on gcc compiler warnings." >&5
4398 $as_echo "Turning on gcc compiler warnings." >&6; }
4399 CC="$CC -pedantic -Wall -Wstrict-prototypes -Wnested-externs -Wmissing-prototypes"
4400 OBJCC="$OBJCC -Wall"
4401 # As of gcc 3.4, we have "-Wdeclaration-after-statement"
4402 # and so perhaps now we can do without -pedantic?
4405 *-irix5* |*-irix6.0-3* )
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Turning on SGI compiler warnings." >&5
4407 $as_echo "Turning on SGI compiler warnings." >&6; }
4408 CC="$CC -fullwarn -use_readonly_const -rdata_shared -g3"
4411 # if test -z "$GCC"; then
4412 # AC_MSG_RESULT(Turning on DEC C compiler warnings.)
4413 # CC="$CC -migrate -w0 -verbose -warnprotos"
4419 if test -n "$GCC"; then
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wno-overlength-strings" >&5
4421 $as_echo_n "checking whether gcc accepts -Wno-overlength-strings... " >&6; }
4422 if ${ac_cv_gcc_accepts_no_overlength+:} false; then :
4423 $as_echo_n "(cached) " >&6
4425 rm -rf conftest.$ac_ext
4426 touch conftest.$ac_ext
4427 if ( ( gcc -c -Wno-overlength-strings conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
4428 grep unrecognized >/dev/null ); then
4429 ac_cv_gcc_accepts_no_overlength=no
4431 ac_cv_gcc_accepts_no_overlength=yes
4432 CC="$CC -Wno-overlength-strings"
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_accepts_no_overlength" >&5
4436 $as_echo "$ac_cv_gcc_accepts_no_overlength" >&6; }
4437 ac_gcc_accepts_no_overlength="$ac_cv_gcc_accepts_no_overlength"
4440 if test -n "$GCC"; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -Wdeclaration-after-statement" >&5
4442 $as_echo_n "checking whether gcc accepts -Wdeclaration-after-statement... " >&6; }
4443 if ${ac_cv_gcc_accepts_no_decl_after+:} false; then :
4444 $as_echo_n "(cached) " >&6
4446 rm -rf conftest.$ac_ext
4447 touch conftest.$ac_ext
4448 if ( ( gcc -c -Wdeclaration-after-statement conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
4449 grep unrecognized >/dev/null ); then
4450 ac_cv_gcc_accepts_no_decl_after=no
4452 ac_cv_gcc_accepts_no_decl_after=yes
4453 CC="$CC -Wdeclaration-after-statement"
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_accepts_no_decl_after" >&5
4457 $as_echo "$ac_cv_gcc_accepts_no_decl_after" >&6; }
4458 ac_gcc_accepts_no_decl_after="$ac_cv_gcc_accepts_no_decl_after"
4461 if test -n "$GCC"; then
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -no-cpp-precomp" >&5
4463 $as_echo_n "checking whether gcc accepts -no-cpp-precomp... " >&6; }
4464 if ${ac_cv_gcc_accepts_no_cpp_precomp+:} false; then :
4465 $as_echo_n "(cached) " >&6
4467 rm -rf conftest.$ac_ext
4468 touch conftest.$ac_ext
4469 if ( ( gcc -c -no-cpp-precomp conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
4470 grep unrecognized >/dev/null ); then
4471 ac_cv_gcc_accepts_no_cpp_precomp=no
4473 ac_cv_gcc_accepts_no_cpp_precomp=yes
4474 CC="$CC -no-cpp-precomp"
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_accepts_no_cpp_precomp" >&5
4478 $as_echo "$ac_cv_gcc_accepts_no_cpp_precomp" >&6; }
4479 ac_gcc_accepts_no_cpp_precomp="$ac_cv_gcc_accepts_no_cpp_precomp"
4482 if test -n "$GCC"; then
4486 # Fucking Apple let // comments sneak into OpenGL headers, so
4487 # we *must* allow // comments when compiling on Mac OS 10.6! FUCK!
4490 if test -n "$GCC"; then
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts -std=c89" >&5
4492 $as_echo_n "checking whether gcc accepts -std=c89... " >&6; }
4493 if ${ac_cv_gcc_accepts_std+:} false; then :
4494 $as_echo_n "(cached) " >&6
4496 rm -rf conftest.$ac_ext
4497 touch conftest.$ac_ext
4498 if ( ( gcc -c -std=c89 conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
4499 grep unrecognized >/dev/null ); then
4500 ac_cv_gcc_accepts_std=no
4502 ac_cv_gcc_accepts_std=yes
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_accepts_std" >&5
4507 $as_echo "$ac_cv_gcc_accepts_std" >&6; }
4508 ac_gcc_accepts_std="$ac_cv_gcc_accepts_std"
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling C++ comments in ANSI C code." >&5
4515 $as_echo "Disabling C++ comments in ANSI C code." >&6; }
4517 # The reason that // comments are banned from xscreensaver is that gcc is
4518 # basically the only compiler in the world that supports them in C code.
4519 # All other vendors support them only in their C++ compilers, not in their
4520 # ANSI C compilers. This means that it's a portability problem: every time
4521 # these comments have snuck into the xscreensaver source code, I've gotten
4522 # complaints about it the next day. So we turn off support for them in gcc
4523 # as well to prevent them from accidentially slipping in.
4525 if test "$ac_gcc_accepts_std" = yes ; then
4527 # -std=c89 defines __STRICT_ANSI__, which we don't want.
4528 # (That appears to be the only additional preprocessor symbol
4529 # it defines, in addition to the syntax changes it makes.)
4531 # -std=gnu89 is no good, because // comments were a GNU extension
4532 # before they were in the ANSI C 99 spec... (gcc 2.96 permits //
4533 # with -std=gnu89 but not with -std=c89.)
4535 # $CC already contains "-std=c89" via AC_GCC_ACCEPTS_STD
4536 CC="$CC -U__STRICT_ANSI__"
4539 # CC="$CC -Wp,-lang-c89"
4544 ac_cpp='$CPP $CPPFLAGS'
4545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4549 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4550 # On Suns, sometimes $CPP names a directory.
4551 if test -n "$CPP" && test -d "$CPP"; then
4554 if test -z "$CPP"; then
4555 if ${ac_cv_prog_CPP+:} false; then :
4556 $as_echo_n "(cached) " >&6
4558 # Double quotes because CPP needs to be expanded
4559 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4562 for ac_c_preproc_warn_flag in '' yes
4564 # Use a header file that comes with gcc, so configuring glibc
4565 # with a fresh cross-compiler works.
4566 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4567 # <limits.h> exists even on freestanding compilers.
4568 # On the NeXT, cc -E runs the code through the compiler's parser,
4569 # not just through cpp. "Syntax error" is here to catch this case.
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h. */
4573 # include <limits.h>
4575 # include <assert.h>
4579 if ac_fn_c_try_cpp "$LINENO"; then :
4582 # Broken: fails on valid input.
4585 rm -rf conftest.err conftest.i conftest.$ac_ext
4587 # OK, works on sane cases. Now check whether nonexistent headers
4588 # can be detected and how.
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4591 #include <ac_nonexistent.h>
4593 if ac_fn_c_try_cpp "$LINENO"; then :
4594 # Broken: success on invalid input.
4597 # Passes both tests.
4601 rm -rf conftest.err conftest.i conftest.$ac_ext
4604 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4605 rm -rf conftest.i conftest.err conftest.$ac_ext
4606 if $ac_preproc_ok; then :
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4619 $as_echo "$CPP" >&6; }
4621 for ac_c_preproc_warn_flag in '' yes
4623 # Use a header file that comes with gcc, so configuring glibc
4624 # with a fresh cross-compiler works.
4625 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4626 # <limits.h> exists even on freestanding compilers.
4627 # On the NeXT, cc -E runs the code through the compiler's parser,
4628 # not just through cpp. "Syntax error" is here to catch this case.
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4632 # include <limits.h>
4634 # include <assert.h>
4638 if ac_fn_c_try_cpp "$LINENO"; then :
4641 # Broken: fails on valid input.
4644 rm -rf conftest.err conftest.i conftest.$ac_ext
4646 # OK, works on sane cases. Now check whether nonexistent headers
4647 # can be detected and how.
4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h. */
4650 #include <ac_nonexistent.h>
4652 if ac_fn_c_try_cpp "$LINENO"; then :
4653 # Broken: success on invalid input.
4656 # Passes both tests.
4660 rm -rf conftest.err conftest.i conftest.$ac_ext
4663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4664 rm -rf conftest.i conftest.err conftest.$ac_ext
4665 if $ac_preproc_ok; then :
4668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4670 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4671 See \`config.log' for more details" "$LINENO" 5; }
4675 ac_cpp='$CPP $CPPFLAGS'
4676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4681 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4682 if ${ac_cv_c_const+:} false; then :
4683 $as_echo_n "(cached) " >&6
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4693 /* Ultrix mips cc rejects this sort of thing. */
4694 typedef int charset[2];
4695 const charset cs = { 0, 0 };
4696 /* SunOS 4.1.1 cc rejects this. */
4697 char const *const *pcpcc;
4699 /* NEC SVR4.0.2 mips cc rejects this. */
4700 struct point {int x, y;};
4701 static struct point const zero = {0,0};
4702 /* AIX XL C 1.02.0.0 rejects this.
4703 It does not let you subtract one const X* pointer from another in
4704 an arm of an if-expression whose if-part is not a constant
4706 const char *g = "string";
4707 pcpcc = &g + (g ? g-g : 0);
4708 /* HPUX 7.0 cc rejects these. */
4710 ppc = (char**) pcpcc;
4711 pcpcc = (char const *const *) ppc;
4712 { /* SCO 3.2v4 cc rejects this sort of thing. */
4715 char const *s = 0 ? (char *) 0 : (char const *) 0;
4720 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4722 const int *foo = &x[0];
4725 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4726 typedef const int *iptr;
4730 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4731 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4732 struct s { int j; const int *ap[3]; } bx;
4733 struct s *b = &bx; b->j = 5;
4735 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4739 return !cs[0] && !zero.x;
4746 if ac_fn_c_try_compile "$LINENO"; then :
4751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4754 $as_echo "$ac_cv_c_const" >&6; }
4755 if test $ac_cv_c_const = no; then
4757 $as_echo "#define const /**/" >>confdefs.h
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4762 $as_echo_n "checking for inline... " >&6; }
4763 if ${ac_cv_c_inline+:} false; then :
4764 $as_echo_n "(cached) " >&6
4767 for ac_kw in inline __inline__ __inline; do
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4772 static $ac_kw foo_t static_foo () {return 0; }
4773 $ac_kw foo_t foo () {return 0; }
4777 if ac_fn_c_try_compile "$LINENO"; then :
4778 ac_cv_c_inline=$ac_kw
4780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4781 test "$ac_cv_c_inline" != no && break
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4786 $as_echo "$ac_cv_c_inline" >&6; }
4788 case $ac_cv_c_inline in
4791 case $ac_cv_c_inline in
4793 *) ac_val=$ac_cv_c_inline;;
4795 cat >>confdefs.h <<_ACEOF
4797 #define inline $ac_val
4804 ac_bc_result=`echo 6+9 | bc 2>/dev/null`
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bc" >&5
4806 $as_echo_n "checking for bc... " >&6; }
4807 if test "$ac_bc_result" = "15" ; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4809 $as_echo "yes" >&6; }
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4814 as_fn_error $? "Your system doesn't have \"bc\", which has been a standard
4815 part of Unix since the 1970s. Come back when your vendor
4816 has grown a clue." "$LINENO" 5
4820 # stuff for Makefiles
4821 # Find a good install program. We prefer a C program (faster),
4822 # so one script is as good as another. But avoid the broken or
4823 # incompatible versions:
4824 # SysV /etc/install, /usr/sbin/install
4825 # SunOS /usr/etc/install
4826 # IRIX /sbin/install
4828 # AmigaOS /C/install, which installs bootblocks on floppy discs
4829 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4830 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4831 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4832 # OS/2's system install, which has a completely different semantic
4833 # ./install, which can be erroneously created by make from ./install.sh.
4834 # Reject install programs that cannot install multiple files.
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4836 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4837 if test -z "$INSTALL"; then
4838 if ${ac_cv_path_install+:} false; then :
4839 $as_echo_n "(cached) " >&6
4841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845 test -z "$as_dir" && as_dir=.
4846 # Account for people who put trailing slashes in PATH elements.
4847 case $as_dir/ in #((
4848 ./ | .// | /[cC]/* | \
4849 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4850 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4853 # OSF1 and SCO ODT 3.0 have their own names for install.
4854 # Don't use installbsd from OSF since it installs stuff as root
4856 for ac_prog in ginstall scoinst install; do
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4859 if test $ac_prog = install &&
4860 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4861 # AIX install. It has an incompatible calling convention.
4863 elif test $ac_prog = install &&
4864 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4865 # program-specific install script used by HP pwplus--don't use.
4868 rm -rf conftest.one conftest.two conftest.dir
4869 echo one > conftest.one
4870 echo two > conftest.two
4872 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4873 test -s conftest.one && test -s conftest.two &&
4874 test -s conftest.dir/conftest.one &&
4875 test -s conftest.dir/conftest.two
4877 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4890 rm -rf conftest.one conftest.two conftest.dir
4893 if test "${ac_cv_path_install+set}" = set; then
4894 INSTALL=$ac_cv_path_install
4896 # As a last resort, use the slow shell script. Don't cache a
4897 # value for INSTALL within a source directory, because that will
4898 # break other packages using the cache if that directory is
4899 # removed, or if the value is a relative name.
4900 INSTALL=$ac_install_sh
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4904 $as_echo "$INSTALL" >&6; }
4906 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4907 # It thinks the first close brace ends the variable substitution.
4908 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4910 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4912 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \"\${INSTALL} -d\" creates intermediate directories" >&5
4915 $as_echo_n "checking whether \"\${INSTALL} -d\" creates intermediate directories... " >&6; }
4916 if ${ac_cv_install_d_creates_dirs+:} false; then :
4917 $as_echo_n "(cached) " >&6
4919 ac_cv_install_d_creates_dirs=no
4921 if mkdir conftestdir; then
4922 cd conftestdir 2>/dev/null
4923 ${INSTALL} -d `pwd`/dir1/dir2 >/dev/null 2>&1
4924 if test -d dir1/dir2/. ; then
4925 ac_cv_install_d_creates_dirs=yes
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_install_d_creates_dirs" >&5
4933 $as_echo "$ac_cv_install_d_creates_dirs" >&6; }
4935 if test "$ac_cv_install_d_creates_dirs" = no ; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \"mkdir -p\" creates intermediate directories" >&5
4937 $as_echo_n "checking whether \"mkdir -p\" creates intermediate directories... " >&6; }
4938 if ${ac_cv_mkdir_p_creates_dirs+:} false; then :
4939 $as_echo_n "(cached) " >&6
4941 ac_cv_mkdir_p_creates_dirs=no
4943 if mkdir conftestdir; then
4944 cd conftestdir 2>/dev/null
4945 mkdir -p dir1/dir2 >/dev/null 2>&1
4946 if test -d dir1/dir2/. ; then
4947 ac_cv_mkdir_p_creates_dirs=yes
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_p_creates_dirs" >&5
4955 $as_echo "$ac_cv_mkdir_p_creates_dirs" >&6; }
4958 if test "$ac_cv_install_d_creates_dirs" = yes ; then
4959 INSTALL_DIRS='${INSTALL} -d'
4960 elif test "$ac_cv_mkdir_p_creates_dirs" = yes ; then
4961 INSTALL_DIRS='mkdir -p'
4964 INSTALL_DIRS='${INSTALL} -d'
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4968 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4970 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4971 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4972 $as_echo_n "(cached) " >&6
4974 cat >conftest.make <<\_ACEOF
4977 @echo '@@@%%%=$(MAKE)=@@@%%%'
4979 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4980 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4982 eval ac_cv_prog_make_${ac_make}_set=yes;;
4984 eval ac_cv_prog_make_${ac_make}_set=no;;
4986 rm -rf conftest.make
4988 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4990 $as_echo "yes" >&6; }
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994 $as_echo "no" >&6; }
4995 SET_MAKE="MAKE=${MAKE-make}"
4999 # By default, autoconf sets INSTALL_SCRIPT to '${INSTALL_PROGRAM}'.
5000 # That's wrong: it should be set to '${INSTALL}', so that one can
5001 # implement the "install-strip" target properly (strip executables,
5002 # but do not try to strip scripts.)
5004 INSTALL_SCRIPT='${INSTALL}'
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5009 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5010 if ${ac_cv_path_GREP+:} false; then :
5011 $as_echo_n "(cached) " >&6
5013 if test -z "$GREP"; then
5014 ac_path_GREP_found=false
5015 # Loop through the user's path and test for each of PROGNAME-LIST
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5020 test -z "$as_dir" && as_dir=.
5021 for ac_prog in grep ggrep; do
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5024 as_fn_executable_p "$ac_path_GREP" || continue
5025 # Check for GNU ac_path_GREP and select it if it is found.
5026 # Check for GNU $ac_path_GREP
5027 case `"$ac_path_GREP" --version 2>&1` in
5029 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5032 $as_echo_n 0123456789 >"conftest.in"
5035 cat "conftest.in" "conftest.in" >"conftest.tmp"
5036 mv "conftest.tmp" "conftest.in"
5037 cp "conftest.in" "conftest.nl"
5038 $as_echo 'GREP' >> "conftest.nl"
5039 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5040 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5041 as_fn_arith $ac_count + 1 && ac_count=$as_val
5042 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5043 # Best one so far, save it but keep looking for a better one
5044 ac_cv_path_GREP="$ac_path_GREP"
5045 ac_path_GREP_max=$ac_count
5047 # 10*(2^10) chars as input seems more than enough
5048 test $ac_count -gt 10 && break
5050 rm -rf conftest.in conftest.tmp conftest.nl conftest.out;;
5053 $ac_path_GREP_found && break 3
5058 if test -z "$ac_cv_path_GREP"; then
5059 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5062 ac_cv_path_GREP=$GREP
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5067 $as_echo "$ac_cv_path_GREP" >&6; }
5068 GREP="$ac_cv_path_GREP"
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5072 $as_echo_n "checking for egrep... " >&6; }
5073 if ${ac_cv_path_EGREP+:} false; then :
5074 $as_echo_n "(cached) " >&6
5076 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5077 then ac_cv_path_EGREP="$GREP -E"
5079 if test -z "$EGREP"; then
5080 ac_path_EGREP_found=false
5081 # Loop through the user's path and test for each of PROGNAME-LIST
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5086 test -z "$as_dir" && as_dir=.
5087 for ac_prog in egrep; do
5088 for ac_exec_ext in '' $ac_executable_extensions; do
5089 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5090 as_fn_executable_p "$ac_path_EGREP" || continue
5091 # Check for GNU ac_path_EGREP and select it if it is found.
5092 # Check for GNU $ac_path_EGREP
5093 case `"$ac_path_EGREP" --version 2>&1` in
5095 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5098 $as_echo_n 0123456789 >"conftest.in"
5101 cat "conftest.in" "conftest.in" >"conftest.tmp"
5102 mv "conftest.tmp" "conftest.in"
5103 cp "conftest.in" "conftest.nl"
5104 $as_echo 'EGREP' >> "conftest.nl"
5105 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5106 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5107 as_fn_arith $ac_count + 1 && ac_count=$as_val
5108 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5109 # Best one so far, save it but keep looking for a better one
5110 ac_cv_path_EGREP="$ac_path_EGREP"
5111 ac_path_EGREP_max=$ac_count
5113 # 10*(2^10) chars as input seems more than enough
5114 test $ac_count -gt 10 && break
5116 rm -rf conftest.in conftest.tmp conftest.nl conftest.out;;
5119 $ac_path_EGREP_found && break 3
5124 if test -z "$ac_cv_path_EGREP"; then
5125 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5128 ac_cv_path_EGREP=$EGREP
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5134 $as_echo "$ac_cv_path_EGREP" >&6; }
5135 EGREP="$ac_cv_path_EGREP"
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5139 $as_echo_n "checking for ANSI C header files... " >&6; }
5140 if ${ac_cv_header_stdc+:} false; then :
5141 $as_echo_n "(cached) " >&6
5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144 /* end confdefs.h. */
5158 if ac_fn_c_try_compile "$LINENO"; then :
5159 ac_cv_header_stdc=yes
5161 ac_cv_header_stdc=no
5163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5165 if test $ac_cv_header_stdc = yes; then
5166 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168 /* end confdefs.h. */
5172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5173 $EGREP "memchr" >/dev/null 2>&1; then :
5176 ac_cv_header_stdc=no
5182 if test $ac_cv_header_stdc = yes; then
5183 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5190 $EGREP "free" >/dev/null 2>&1; then :
5193 ac_cv_header_stdc=no
5199 if test $ac_cv_header_stdc = yes; then
5200 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5201 if test "$cross_compiling" = yes; then :
5204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205 /* end confdefs.h. */
5208 #if ((' ' & 0x0FF) == 0x020)
5209 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5210 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5212 # define ISLOWER(c) \
5213 (('a' <= (c) && (c) <= 'i') \
5214 || ('j' <= (c) && (c) <= 'r') \
5215 || ('s' <= (c) && (c) <= 'z'))
5216 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5219 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5224 for (i = 0; i < 256; i++)
5225 if (XOR (islower (i), ISLOWER (i))
5226 || toupper (i) != TOUPPER (i))
5231 if ac_fn_c_try_run "$LINENO"; then :
5234 ac_cv_header_stdc=no
5236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5237 conftest.$ac_objext conftest.beam conftest.$ac_ext
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5243 $as_echo "$ac_cv_header_stdc" >&6; }
5244 if test $ac_cv_header_stdc = yes; then
5246 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5250 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5251 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5252 inttypes.h stdint.h unistd.h
5254 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5255 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5257 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5258 cat >>confdefs.h <<_ACEOF
5259 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5267 for ac_header in unistd.h
5269 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5270 if test "x$ac_cv_header_unistd_h" = xyes; then :
5271 cat >>confdefs.h <<_ACEOF
5272 #define HAVE_UNISTD_H 1
5279 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5280 if test "x$ac_cv_type_mode_t" = xyes; then :
5284 cat >>confdefs.h <<_ACEOF
5290 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5291 if test "x$ac_cv_type_pid_t" = xyes; then :
5295 cat >>confdefs.h <<_ACEOF
5301 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5302 if test "x$ac_cv_type_size_t" = xyes; then :
5306 cat >>confdefs.h <<_ACEOF
5307 #define size_t unsigned int
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5313 $as_echo_n "checking return type of signal handlers... " >&6; }
5314 if ${ac_cv_type_signal+:} false; then :
5315 $as_echo_n "(cached) " >&6
5317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318 /* end confdefs.h. */
5319 #include <sys/types.h>
5325 return *(signal (0, 0)) (0) == 1;
5330 if ac_fn_c_try_compile "$LINENO"; then :
5331 ac_cv_type_signal=int
5333 ac_cv_type_signal=void
5335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5338 $as_echo "$ac_cv_type_signal" >&6; }
5340 cat >>confdefs.h <<_ACEOF
5341 #define RETSIGTYPE $ac_cv_type_signal
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5346 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5347 if ${ac_cv_header_time+:} false; then :
5348 $as_echo_n "(cached) " >&6
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5352 #include <sys/types.h>
5353 #include <sys/time.h>
5359 if ((struct tm *) 0)
5365 if ac_fn_c_try_compile "$LINENO"; then :
5366 ac_cv_header_time=yes
5368 ac_cv_header_time=no
5370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5373 $as_echo "$ac_cv_header_time" >&6; }
5374 if test $ac_cv_header_time = yes; then
5376 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5381 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5382 if ${ac_cv_header_sys_wait_h+:} false; then :
5383 $as_echo_n "(cached) " >&6
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5387 #include <sys/types.h>
5388 #include <sys/wait.h>
5390 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5393 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5401 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5406 if ac_fn_c_try_compile "$LINENO"; then :
5407 ac_cv_header_sys_wait_h=yes
5409 ac_cv_header_sys_wait_h=no
5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5414 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5415 if test $ac_cv_header_sys_wait_h = yes; then
5417 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5422 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5423 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5425 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5426 if eval \${$as_ac_Header+:} false; then :
5427 $as_echo_n "(cached) " >&6
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5431 #include <sys/types.h>
5443 if ac_fn_c_try_compile "$LINENO"; then :
5444 eval "$as_ac_Header=yes"
5446 eval "$as_ac_Header=no"
5448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5450 eval ac_res=\$$as_ac_Header
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5452 $as_echo "$ac_res" >&6; }
5453 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5454 cat >>confdefs.h <<_ACEOF
5455 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5458 ac_header_dirent=$ac_hdr; break
5462 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5463 if test $ac_header_dirent = dirent.h; then
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5465 $as_echo_n "checking for library containing opendir... " >&6; }
5466 if ${ac_cv_search_opendir+:} false; then :
5467 $as_echo_n "(cached) " >&6
5469 ac_func_search_save_LIBS=$LIBS
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5473 /* Override any GCC internal prototype to avoid an error.
5474 Use char because int might match the return type of a GCC
5475 builtin and then its argument prototype would still apply. */
5488 for ac_lib in '' dir; do
5489 if test -z "$ac_lib"; then
5490 ac_res="none required"
5493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5495 if ac_fn_c_try_link "$LINENO"; then :
5496 ac_cv_search_opendir=$ac_res
5498 rm -f core conftest.err conftest.$ac_objext \
5500 if ${ac_cv_search_opendir+:} false; then :
5504 if ${ac_cv_search_opendir+:} false; then :
5507 ac_cv_search_opendir=no
5510 LIBS=$ac_func_search_save_LIBS
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5513 $as_echo "$ac_cv_search_opendir" >&6; }
5514 ac_res=$ac_cv_search_opendir
5515 if test "$ac_res" != no; then :
5516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5522 $as_echo_n "checking for library containing opendir... " >&6; }
5523 if ${ac_cv_search_opendir+:} false; then :
5524 $as_echo_n "(cached) " >&6
5526 ac_func_search_save_LIBS=$LIBS
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5530 /* Override any GCC internal prototype to avoid an error.
5531 Use char because int might match the return type of a GCC
5532 builtin and then its argument prototype would still apply. */
5545 for ac_lib in '' x; do
5546 if test -z "$ac_lib"; then
5547 ac_res="none required"
5550 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5552 if ac_fn_c_try_link "$LINENO"; then :
5553 ac_cv_search_opendir=$ac_res
5555 rm -f core conftest.err conftest.$ac_objext \
5557 if ${ac_cv_search_opendir+:} false; then :
5561 if ${ac_cv_search_opendir+:} false; then :
5564 ac_cv_search_opendir=no
5567 LIBS=$ac_func_search_save_LIBS
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5570 $as_echo "$ac_cv_search_opendir" >&6; }
5571 ac_res=$ac_cv_search_opendir
5572 if test "$ac_res" != no; then :
5573 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to call gettimeofday" >&5
5580 $as_echo_n "checking how to call gettimeofday... " >&6; }
5581 if ${ac_cv_gettimeofday_args+:} false; then :
5582 $as_echo_n "(cached) " >&6
5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5587 #include <sys/time.h>
5591 struct timeval tv; struct timezone tzp;
5592 gettimeofday(&tv, &tzp);
5597 if ac_fn_c_try_compile "$LINENO"; then :
5598 ac_gettimeofday_args=2
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h. */
5603 #include <sys/time.h>
5607 struct timeval tv; gettimeofday(&tv);
5612 if ac_fn_c_try_compile "$LINENO"; then :
5613 ac_gettimeofday_args=1
5615 ac_gettimeofday_args=0
5617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5620 ac_cv_gettimeofday_args=$ac_gettimeofday_args
5623 ac_gettimeofday_args=$ac_cv_gettimeofday_args
5624 if test "$ac_gettimeofday_args" = 1 ; then
5625 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: one argument" >&5
5628 $as_echo "one argument" >&6; }
5629 elif test "$ac_gettimeofday_args" = 2 ; then
5630 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
5632 $as_echo "#define GETTIMEOFDAY_TWO_ARGS 1" >>confdefs.h
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: two arguments" >&5
5635 $as_echo "two arguments" >&6; }
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
5638 $as_echo "unknown" >&6; }
5641 # Check whether --enable-largefile was given.
5642 if test "${enable_largefile+set}" = set; then :
5643 enableval=$enable_largefile;
5646 if test "$enable_largefile" != no; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5649 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5650 if ${ac_cv_sys_largefile_CC+:} false; then :
5651 $as_echo_n "(cached) " >&6
5653 ac_cv_sys_largefile_CC=no
5654 if test "$GCC" != yes; then
5657 # IRIX 6.2 and later do not support large files by default,
5658 # so use the C compiler's -n32 option if that helps.
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661 #include <sys/types.h>
5662 /* Check that off_t can represent 2**63 - 1 correctly.
5663 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5664 since some C++ compilers masquerading as C compilers
5665 incorrectly reject 9223372036854775807. */
5666 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5667 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5668 && LARGE_OFF_T % 2147483647 == 1)
5678 if ac_fn_c_try_compile "$LINENO"; then :
5681 rm -f core conftest.err conftest.$ac_objext
5683 if ac_fn_c_try_compile "$LINENO"; then :
5684 ac_cv_sys_largefile_CC=' -n32'; break
5686 rm -f core conftest.err conftest.$ac_objext
5690 rm -rf conftest.$ac_ext
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5694 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5695 if test "$ac_cv_sys_largefile_CC" != no; then
5696 CC=$CC$ac_cv_sys_largefile_CC
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5700 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5701 if ${ac_cv_sys_file_offset_bits+:} false; then :
5702 $as_echo_n "(cached) " >&6
5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h. */
5707 #include <sys/types.h>
5708 /* Check that off_t can represent 2**63 - 1 correctly.
5709 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5710 since some C++ compilers masquerading as C compilers
5711 incorrectly reject 9223372036854775807. */
5712 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5713 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5714 && LARGE_OFF_T % 2147483647 == 1)
5724 if ac_fn_c_try_compile "$LINENO"; then :
5725 ac_cv_sys_file_offset_bits=no; break
5727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5729 /* end confdefs.h. */
5730 #define _FILE_OFFSET_BITS 64
5731 #include <sys/types.h>
5732 /* Check that off_t can represent 2**63 - 1 correctly.
5733 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5734 since some C++ compilers masquerading as C compilers
5735 incorrectly reject 9223372036854775807. */
5736 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5737 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5738 && LARGE_OFF_T % 2147483647 == 1)
5748 if ac_fn_c_try_compile "$LINENO"; then :
5749 ac_cv_sys_file_offset_bits=64; break
5751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5752 ac_cv_sys_file_offset_bits=unknown
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5757 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5758 case $ac_cv_sys_file_offset_bits in #(
5761 cat >>confdefs.h <<_ACEOF
5762 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5767 if test $ac_cv_sys_file_offset_bits = unknown; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5769 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5770 if ${ac_cv_sys_large_files+:} false; then :
5771 $as_echo_n "(cached) " >&6
5774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5775 /* end confdefs.h. */
5776 #include <sys/types.h>
5777 /* Check that off_t can represent 2**63 - 1 correctly.
5778 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5779 since some C++ compilers masquerading as C compilers
5780 incorrectly reject 9223372036854775807. */
5781 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5782 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5783 && LARGE_OFF_T % 2147483647 == 1)
5793 if ac_fn_c_try_compile "$LINENO"; then :
5794 ac_cv_sys_large_files=no; break
5796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798 /* end confdefs.h. */
5799 #define _LARGE_FILES 1
5800 #include <sys/types.h>
5801 /* Check that off_t can represent 2**63 - 1 correctly.
5802 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5803 since some C++ compilers masquerading as C compilers
5804 incorrectly reject 9223372036854775807. */
5805 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5806 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5807 && LARGE_OFF_T % 2147483647 == 1)
5817 if ac_fn_c_try_compile "$LINENO"; then :
5818 ac_cv_sys_large_files=1; break
5820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821 ac_cv_sys_large_files=unknown
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5826 $as_echo "$ac_cv_sys_large_files" >&6; }
5827 case $ac_cv_sys_large_files in #(
5830 cat >>confdefs.h <<_ACEOF
5831 #define _LARGE_FILES $ac_cv_sys_large_files
5841 for ac_func in select fcntl uname nice setpriority getcwd getwd putenv sbrk
5843 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5844 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5845 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5846 cat >>confdefs.h <<_ACEOF
5847 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5853 for ac_func in sigaction syslog realpath setrlimit
5855 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5856 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5857 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5858 cat >>confdefs.h <<_ACEOF
5859 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5865 for ac_func in setlocale
5867 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
5868 if test "x$ac_cv_func_setlocale" = xyes; then :
5869 cat >>confdefs.h <<_ACEOF
5870 #define HAVE_SETLOCALE 1
5876 for ac_func in getaddrinfo
5878 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
5879 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
5880 cat >>confdefs.h <<_ACEOF
5881 #define HAVE_GETADDRINFO 1
5887 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
5889 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
5891 cat >>confdefs.h <<_ACEOF
5892 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct icmp" >&5
5899 $as_echo_n "checking for struct icmp... " >&6; }
5900 if ${ac_cv_have_icmp+:} false; then :
5901 $as_echo_n "(cached) " >&6
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5912 #include <sys/types.h>
5913 #include <sys/time.h>
5914 #include <sys/ipc.h>
5915 #include <sys/shm.h>
5916 #include <sys/socket.h>
5917 #include <netinet/in_systm.h>
5918 #include <netinet/in.h>
5919 #include <netinet/ip.h>
5920 #include <netinet/ip_icmp.h>
5921 #include <netinet/udp.h>
5922 #include <arpa/inet.h>
5929 struct sockaddr_in si;
5931 i.icmp_type = ICMP_ECHO;
5936 si.sin_family = AF_INET;
5937 #if defined(__DECC) || defined(_IP_VHL)
5947 if ac_fn_c_try_compile "$LINENO"; then :
5952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_icmp" >&5
5955 $as_echo "$ac_cv_have_icmp" >&6; }
5956 if test "$ac_cv_have_icmp" = yes ; then
5957 $as_echo "#define HAVE_ICMP 1" >>confdefs.h
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct icmphdr" >&5
5961 $as_echo_n "checking for struct icmphdr... " >&6; }
5962 if ${ac_cv_have_icmphdr+:} false; then :
5963 $as_echo_n "(cached) " >&6
5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h. */
5974 #include <sys/types.h>
5975 #include <sys/time.h>
5976 #include <sys/ipc.h>
5977 #include <sys/shm.h>
5978 #include <sys/socket.h>
5979 #include <netinet/in_systm.h>
5980 #include <netinet/in.h>
5981 #include <netinet/ip.h>
5982 #include <netinet/ip_icmp.h>
5983 #include <netinet/udp.h>
5984 #include <arpa/inet.h>
5991 struct sockaddr_in si;
5997 i.un.echo.sequence = 0;
5998 si.sin_family = AF_INET;
6004 if ac_fn_c_try_compile "$LINENO"; then :
6005 ac_cv_have_icmphdr=yes
6007 ac_cv_have_icmphdr=no
6009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_icmphdr" >&5
6012 $as_echo "$ac_cv_have_icmphdr" >&6; }
6013 if test "$ac_cv_have_icmphdr" = yes ; then
6014 $as_echo "#define HAVE_ICMPHDR 1" >>confdefs.h
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getifaddrs" >&5
6018 $as_echo_n "checking for getifaddrs... " >&6; }
6019 if ${ac_cv_have_getifaddrs+:} false; then :
6020 $as_echo_n "(cached) " >&6
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6026 #include <arpa/inet.h>
6027 #include <ifaddrs.h>
6031 struct ifaddrs *ifa;
6034 ifa->ifa_addr->sa_family = 0;
6039 if ac_fn_c_try_compile "$LINENO"; then :
6040 ac_cv_have_getifaddrs=yes
6042 ac_cv_have_getifaddrs=no
6044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getifaddrs" >&5
6047 $as_echo "$ac_cv_have_getifaddrs" >&6; }
6048 if test "$ac_cv_have_getifaddrs" = yes ; then
6049 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
6052 for ac_header in crypt.h sys/select.h
6054 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6055 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6056 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6057 cat >>confdefs.h <<_ACEOF
6058 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6065 for ac_prog in perl5 perl
6067 # Extract the first word of "$ac_prog", so it can be a program name with args.
6068 set dummy $ac_prog; ac_word=$2
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070 $as_echo_n "checking for $ac_word... " >&6; }
6071 if ${ac_cv_path_PERL+:} false; then :
6072 $as_echo_n "(cached) " >&6
6076 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 test -z "$as_dir" && as_dir=.
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6086 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 PERL=$ac_cv_path_PERL
6098 if test -n "$PERL"; then
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
6100 $as_echo "$PERL" >&6; }
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6103 $as_echo "no" >&6; }
6107 test -n "$PERL" && break
6110 if test -z "$PERL" ; then
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5
6114 $as_echo_n "checking perl version... " >&6; }
6115 if ${ac_cv_perl_version+:} false; then :
6116 $as_echo_n "(cached) " >&6
6118 ac_cv_perl_version=`$PERL -e "$perl_version_cmd"`
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_perl_version" >&5
6121 $as_echo "$ac_cv_perl_version" >&6; }
6122 PERL_VERSION=$ac_cv_perl_version
6126 if test -z "$PERL" ; then
6127 # don't let it be blank...
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6132 $as_echo_n "checking for X... " >&6; }
6135 # Check whether --with-x was given.
6136 if test "${with_x+set}" = set; then :
6140 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6141 if test "x$with_x" = xno; then
6142 # The user explicitly disabled X.
6145 case $x_includes,$x_libraries in #(
6146 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
6147 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
6148 $as_echo_n "(cached) " >&6
6150 # One or both of the vars are not set, and there is no cached value.
6151 ac_x_includes=no ac_x_libraries=no
6152 rm -f -r conftest.dir
6153 if mkdir conftest.dir; then
6155 cat >Imakefile <<'_ACEOF'
6157 @echo incroot='${INCROOT}'
6159 @echo usrlibdir='${USRLIBDIR}'
6161 @echo libdir='${LIBDIR}'
6163 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6164 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6165 for ac_var in incroot usrlibdir libdir; do
6166 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6168 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6169 for ac_extension in a so sl dylib la dll; do
6170 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6171 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6172 ac_im_usrlibdir=$ac_im_libdir; break
6175 # Screen out bogus values from the imake configuration. They are
6176 # bogus both because they are the default anyway, and because
6177 # using them would break gcc on systems where it needs fixed includes.
6178 case $ac_im_incroot in
6179 /usr/include) ac_x_includes= ;;
6180 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6182 case $ac_im_usrlibdir in
6183 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6184 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6188 rm -f -r conftest.dir
6191 # Standard set of common directories for X headers.
6192 # Check X11 before X11Rn because it is often a symlink to the current release.
6206 /usr/local/X11/include
6207 /usr/local/X11R7/include
6208 /usr/local/X11R6/include
6209 /usr/local/X11R5/include
6210 /usr/local/X11R4/include
6212 /usr/local/include/X11
6213 /usr/local/include/X11R7
6214 /usr/local/include/X11R6
6215 /usr/local/include/X11R5
6216 /usr/local/include/X11R4
6220 /usr/XFree86/include/X11
6224 /usr/unsupported/include
6226 /usr/local/x11r5/include
6227 /usr/lpp/Xamples/include
6229 /usr/openwin/include
6230 /usr/openwin/share/include'
6232 if test "$ac_x_includes" = no; then
6233 # Guess where to find include files, by looking for Xlib.h.
6234 # First, try using that file with no special directory specified.
6235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236 /* end confdefs.h. */
6237 #include <X11/Xlib.h>
6239 if ac_fn_c_try_cpp "$LINENO"; then :
6240 # We can compile using X headers with no special include directory.
6243 for ac_dir in $ac_x_header_dirs; do
6244 if test -r "$ac_dir/X11/Xlib.h"; then
6245 ac_x_includes=$ac_dir
6250 rm -rf conftest.err conftest.i conftest.$ac_ext
6251 fi # $ac_x_includes = no
6253 if test "$ac_x_libraries" = no; then
6254 # Check for the libraries.
6255 # See if we find them without any special options.
6256 # Don't add to $LIBS permanently.
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6261 #include <X11/Xlib.h>
6270 if ac_fn_c_try_link "$LINENO"; then :
6272 # We can link X programs with no special library path.
6276 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6278 # Don't even attempt the hair of trying to link an X program!
6279 for ac_extension in a so sl dylib la dll; do
6280 if test -r "$ac_dir/libX11.$ac_extension"; then
6281 ac_x_libraries=$ac_dir
6287 rm -f core conftest.err conftest.$ac_objext \
6288 conftest$ac_exeext conftest.$ac_ext
6289 fi # $ac_x_libraries = no
6291 case $ac_x_includes,$ac_x_libraries in #(
6293 # Didn't find X, or a directory has "'" in its name.
6294 ac_cv_have_x="have_x=no";; #(
6296 # Record where we found X for the cache.
6297 ac_cv_have_x="have_x=yes\
6298 ac_x_includes='$ac_x_includes'\
6299 ac_x_libraries='$ac_x_libraries'"
6305 eval "$ac_cv_have_x"
6308 if test "$have_x" != yes; then
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6310 $as_echo "$have_x" >&6; }
6313 # If each of the values was on the command line, it overrides each guess.
6314 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6315 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6316 # Update the cache value to reflect the command line values.
6317 ac_cv_have_x="have_x=yes\
6318 ac_x_includes='$x_includes'\
6319 ac_x_libraries='$x_libraries'"
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6321 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6324 if test "$no_x" = yes; then
6325 # Not all programs may use this symbol, but it does not hurt to define it.
6327 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
6329 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6331 if test -n "$x_includes"; then
6332 X_CFLAGS="$X_CFLAGS -I$x_includes"
6335 # It would also be nice to do this for all -L options, not just this one.
6336 if test -n "$x_libraries"; then
6337 X_LIBS="$X_LIBS -L$x_libraries"
6338 # For Solaris; some versions of Sun CC require a space after -R and
6339 # others require no space. Words are not sufficient . . . .
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
6341 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6342 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6343 ac_xsave_c_werror_flag=$ac_c_werror_flag
6344 ac_c_werror_flag=yes
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6356 if ac_fn_c_try_link "$LINENO"; then :
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358 $as_echo "no" >&6; }
6359 X_LIBS="$X_LIBS -R$x_libraries"
6361 LIBS="$ac_xsave_LIBS -R $x_libraries"
6362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h. */
6373 if ac_fn_c_try_link "$LINENO"; then :
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6375 $as_echo "yes" >&6; }
6376 X_LIBS="$X_LIBS -R $x_libraries"
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
6379 $as_echo "neither works" >&6; }
6381 rm -f core conftest.err conftest.$ac_objext \
6382 conftest$ac_exeext conftest.$ac_ext
6384 rm -f core conftest.err conftest.$ac_objext \
6385 conftest$ac_exeext conftest.$ac_ext
6386 ac_c_werror_flag=$ac_xsave_c_werror_flag
6390 # Check for system-dependent libraries X programs must link with.
6391 # Do this before checking for the system-independent R6 libraries
6392 # (-lICE), since we may need -lsocket or whatever for X linking.
6394 if test "$ISC" = yes; then
6395 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6397 # Martyn Johnson says this is needed for Ultrix, if the X
6398 # libraries were built with DECnet support. And Karl Berry says
6399 # the Alpha needs dnet_stub (dnet does not exist).
6400 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402 /* end confdefs.h. */
6404 /* Override any GCC internal prototype to avoid an error.
6405 Use char because int might match the return type of a GCC
6406 builtin and then its argument prototype would still apply. */
6410 char XOpenDisplay ();
6414 return XOpenDisplay ();
6419 if ac_fn_c_try_link "$LINENO"; then :
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
6423 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6424 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
6425 $as_echo_n "(cached) " >&6
6427 ac_check_lib_save_LIBS=$LIBS
6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430 /* end confdefs.h. */
6432 /* Override any GCC internal prototype to avoid an error.
6433 Use char because int might match the return type of a GCC
6434 builtin and then its argument prototype would still apply. */
6442 return dnet_ntoa ();
6447 if ac_fn_c_try_link "$LINENO"; then :
6448 ac_cv_lib_dnet_dnet_ntoa=yes
6450 ac_cv_lib_dnet_dnet_ntoa=no
6452 rm -f core conftest.err conftest.$ac_objext \
6453 conftest$ac_exeext conftest.$ac_ext
6454 LIBS=$ac_check_lib_save_LIBS
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6457 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6458 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
6459 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6462 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
6464 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6465 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
6466 $as_echo_n "(cached) " >&6
6468 ac_check_lib_save_LIBS=$LIBS
6469 LIBS="-ldnet_stub $LIBS"
6470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6471 /* end confdefs.h. */
6473 /* Override any GCC internal prototype to avoid an error.
6474 Use char because int might match the return type of a GCC
6475 builtin and then its argument prototype would still apply. */
6483 return dnet_ntoa ();
6488 if ac_fn_c_try_link "$LINENO"; then :
6489 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6491 ac_cv_lib_dnet_stub_dnet_ntoa=no
6493 rm -f core conftest.err conftest.$ac_objext \
6494 conftest$ac_exeext conftest.$ac_ext
6495 LIBS=$ac_check_lib_save_LIBS
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6498 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6499 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
6500 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6505 rm -f core conftest.err conftest.$ac_objext \
6506 conftest$ac_exeext conftest.$ac_ext
6507 LIBS="$ac_xsave_LIBS"
6509 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6510 # to get the SysV transport functions.
6511 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6513 # The nsl library prevents programs from opening the X display
6514 # on Irix 5.2, according to T.E. Dickey.
6515 # The functions gethostbyname, getservbyname, and inet_addr are
6516 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6517 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
6518 if test "x$ac_cv_func_gethostbyname" = xyes; then :
6522 if test $ac_cv_func_gethostbyname = no; then
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6524 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6525 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
6526 $as_echo_n "(cached) " >&6
6528 ac_check_lib_save_LIBS=$LIBS
6530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531 /* end confdefs.h. */
6533 /* Override any GCC internal prototype to avoid an error.
6534 Use char because int might match the return type of a GCC
6535 builtin and then its argument prototype would still apply. */
6539 char gethostbyname ();
6543 return gethostbyname ();
6548 if ac_fn_c_try_link "$LINENO"; then :
6549 ac_cv_lib_nsl_gethostbyname=yes
6551 ac_cv_lib_nsl_gethostbyname=no
6553 rm -f core conftest.err conftest.$ac_objext \
6554 conftest$ac_exeext conftest.$ac_ext
6555 LIBS=$ac_check_lib_save_LIBS
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6558 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6559 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
6560 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6563 if test $ac_cv_lib_nsl_gethostbyname = no; then
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
6565 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6566 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
6567 $as_echo_n "(cached) " >&6
6569 ac_check_lib_save_LIBS=$LIBS
6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6574 /* Override any GCC internal prototype to avoid an error.
6575 Use char because int might match the return type of a GCC
6576 builtin and then its argument prototype would still apply. */
6580 char gethostbyname ();
6584 return gethostbyname ();
6589 if ac_fn_c_try_link "$LINENO"; then :
6590 ac_cv_lib_bsd_gethostbyname=yes
6592 ac_cv_lib_bsd_gethostbyname=no
6594 rm -f core conftest.err conftest.$ac_objext \
6595 conftest$ac_exeext conftest.$ac_ext
6596 LIBS=$ac_check_lib_save_LIBS
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6599 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6600 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
6601 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6607 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6608 # socket/setsockopt and other routines are undefined under SCO ODT
6609 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6610 # on later versions), says Simon Leinen: it contains gethostby*
6611 # variants that don't use the name server (or something). -lsocket
6612 # must be given before -lnsl if both are needed. We assume that
6613 # if connect needs -lnsl, so does gethostbyname.
6614 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
6615 if test "x$ac_cv_func_connect" = xyes; then :
6619 if test $ac_cv_func_connect = no; then
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6621 $as_echo_n "checking for connect in -lsocket... " >&6; }
6622 if ${ac_cv_lib_socket_connect+:} false; then :
6623 $as_echo_n "(cached) " >&6
6625 ac_check_lib_save_LIBS=$LIBS
6626 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628 /* end confdefs.h. */
6630 /* Override any GCC internal prototype to avoid an error.
6631 Use char because int might match the return type of a GCC
6632 builtin and then its argument prototype would still apply. */
6645 if ac_fn_c_try_link "$LINENO"; then :
6646 ac_cv_lib_socket_connect=yes
6648 ac_cv_lib_socket_connect=no
6650 rm -f core conftest.err conftest.$ac_objext \
6651 conftest$ac_exeext conftest.$ac_ext
6652 LIBS=$ac_check_lib_save_LIBS
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6655 $as_echo "$ac_cv_lib_socket_connect" >&6; }
6656 if test "x$ac_cv_lib_socket_connect" = xyes; then :
6657 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6662 # Guillermo Gomez says -lposix is necessary on A/UX.
6663 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
6664 if test "x$ac_cv_func_remove" = xyes; then :
6668 if test $ac_cv_func_remove = no; then
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6670 $as_echo_n "checking for remove in -lposix... " >&6; }
6671 if ${ac_cv_lib_posix_remove+:} false; then :
6672 $as_echo_n "(cached) " >&6
6674 ac_check_lib_save_LIBS=$LIBS
6675 LIBS="-lposix $LIBS"
6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677 /* end confdefs.h. */
6679 /* Override any GCC internal prototype to avoid an error.
6680 Use char because int might match the return type of a GCC
6681 builtin and then its argument prototype would still apply. */
6694 if ac_fn_c_try_link "$LINENO"; then :
6695 ac_cv_lib_posix_remove=yes
6697 ac_cv_lib_posix_remove=no
6699 rm -f core conftest.err conftest.$ac_objext \
6700 conftest$ac_exeext conftest.$ac_ext
6701 LIBS=$ac_check_lib_save_LIBS
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6704 $as_echo "$ac_cv_lib_posix_remove" >&6; }
6705 if test "x$ac_cv_lib_posix_remove" = xyes; then :
6706 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6711 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6712 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6713 if test "x$ac_cv_func_shmat" = xyes; then :
6717 if test $ac_cv_func_shmat = no; then
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6719 $as_echo_n "checking for shmat in -lipc... " >&6; }
6720 if ${ac_cv_lib_ipc_shmat+:} false; then :
6721 $as_echo_n "(cached) " >&6
6723 ac_check_lib_save_LIBS=$LIBS
6725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726 /* end confdefs.h. */
6728 /* Override any GCC internal prototype to avoid an error.
6729 Use char because int might match the return type of a GCC
6730 builtin and then its argument prototype would still apply. */
6743 if ac_fn_c_try_link "$LINENO"; then :
6744 ac_cv_lib_ipc_shmat=yes
6746 ac_cv_lib_ipc_shmat=no
6748 rm -f core conftest.err conftest.$ac_objext \
6749 conftest$ac_exeext conftest.$ac_ext
6750 LIBS=$ac_check_lib_save_LIBS
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6753 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
6754 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
6755 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6761 # Check for libraries that X11R6 Xt/Xaw programs need.
6762 ac_save_LDFLAGS=$LDFLAGS
6763 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6764 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6765 # check for ICE first), but we must link in the order -lSM -lICE or
6766 # we get undefined symbols. So assume we have SM if we have ICE.
6767 # These have to be linked with before -lX11, unlike the other
6768 # libraries we check for below, so use a different variable.
6769 # John Interrante, Karl Berry
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6771 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
6772 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
6773 $as_echo_n "(cached) " >&6
6775 ac_check_lib_save_LIBS=$LIBS
6776 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6780 /* Override any GCC internal prototype to avoid an error.
6781 Use char because int might match the return type of a GCC
6782 builtin and then its argument prototype would still apply. */
6786 char IceConnectionNumber ();
6790 return IceConnectionNumber ();
6795 if ac_fn_c_try_link "$LINENO"; then :
6796 ac_cv_lib_ICE_IceConnectionNumber=yes
6798 ac_cv_lib_ICE_IceConnectionNumber=no
6800 rm -f core conftest.err conftest.$ac_objext \
6801 conftest$ac_exeext conftest.$ac_ext
6802 LIBS=$ac_check_lib_save_LIBS
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6805 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6806 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
6807 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6810 LDFLAGS=$ac_save_LDFLAGS
6815 if test "$have_x" != yes; then
6816 as_fn_error $? "Couldn't find X11 headers/libs. Try \`$0 --help'." "$LINENO" 5
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X app-defaults directory" >&5
6821 $as_echo_n "checking for X app-defaults directory... " >&6; }
6822 if ${ac_cv_x_app_defaults+:} false; then :
6823 $as_echo_n "(cached) " >&6
6825 # skip this, it's always wrong these days.
6826 # AC_PATH_X_APP_DEFAULTS_XMKMF
6827 if test x"$ac_x_app_defaults" = x; then
6829 # Look for the directory under a standard set of common directories.
6830 # Check X11 before X11Rn because it's often a symlink to the current release.
6832 /usr/X11/lib/app-defaults \
6833 /usr/X11R6/lib/app-defaults \
6834 /usr/X11R6/lib/X11/app-defaults \
6835 /usr/X11R5/lib/app-defaults \
6836 /usr/X11R5/lib/X11/app-defaults \
6837 /usr/X11R4/lib/app-defaults \
6838 /usr/X11R4/lib/X11/app-defaults \
6840 /usr/lib/X11/app-defaults \
6841 /usr/lib/X11R6/app-defaults \
6842 /usr/lib/X11R5/app-defaults \
6843 /usr/lib/X11R4/app-defaults \
6845 /etc/X11/app-defaults \
6847 /usr/local/X11/lib/app-defaults \
6848 /usr/local/X11R6/lib/app-defaults \
6849 /usr/local/X11R5/lib/app-defaults \
6850 /usr/local/X11R4/lib/app-defaults \
6852 /usr/local/lib/X11/app-defaults \
6853 /usr/local/lib/X11R6/app-defaults \
6854 /usr/local/lib/X11R6/X11/app-defaults \
6855 /usr/local/lib/X11R5/app-defaults \
6856 /usr/local/lib/X11R5/X11/app-defaults \
6857 /usr/local/lib/X11R4/app-defaults \
6858 /usr/local/lib/X11R4/X11/app-defaults \
6860 /usr/X386/lib/X11/app-defaults \
6861 /usr/x386/lib/X11/app-defaults \
6862 /usr/XFree86/lib/X11/app-defaults \
6864 /usr/lib/X11/app-defaults \
6865 /usr/local/lib/X11/app-defaults \
6866 /usr/unsupported/lib/X11/app-defaults \
6867 /usr/athena/lib/X11/app-defaults \
6868 /usr/local/x11r5/lib/X11/app-defaults \
6869 /usr/lpp/Xamples/lib/X11/app-defaults \
6870 /lib/usr/lib/X11/app-defaults \
6872 /usr/openwin/lib/app-defaults \
6873 /usr/openwin/lib/X11/app-defaults \
6874 /usr/openwin/share/lib/app-defaults \
6875 /usr/openwin/share/lib/X11/app-defaults \
6877 /X11R6/lib/app-defaults \
6878 /X11R5/lib/app-defaults \
6879 /X11R4/lib/app-defaults \
6882 if test -d "$ac_dir"; then
6883 ac_x_app_defaults=$ac_dir
6889 if test x"$ac_x_app_defaults" = x; then
6890 /bin/echo -n 'fallback: '
6891 ac_cv_x_app_defaults="/usr/lib/X11/app-defaults"
6893 # Record where we found app-defaults for the cache.
6894 ac_cv_x_app_defaults="$ac_x_app_defaults"
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x_app_defaults" >&5
6898 $as_echo "$ac_cv_x_app_defaults" >&6; }
6899 eval ac_x_app_defaults="$ac_cv_x_app_defaults"
6903 # The following arcana was gleaned from conversations with
6904 # Eric Schwartz <erics@col.hp.com>:
6906 # On HPUX 10.x, the parts of X that HP considers "standard" live in
6907 # /usr/{include,lib}/X11R6/. The parts that HP doesn't consider
6908 # "standard", notably, Xaw and Xmu, live in /usr/contrib/X11R6/.
6909 # Yet /usr/contrib/X11R6/ comes preinstalled on all HPUX systems.
6910 # Also, there are symlinks from /usr/include/ and /usr/lib/ into
6911 # /usr/{include,lib}/X11R6/, so that (if you don't use Xmu at all)
6912 # you don't need any -I or -L arguments.
6914 # On HPUX 9.x, /usr/{include,lib}/X11R5/ and /usr/contrib/X11R5/
6915 # are the same division as 10.x. However, there are no symlinks to
6916 # the X stuff from /usr/include/ and /usr/lib/, so -I and -L
6917 # arguments are always necessary.
6919 # However, X11R6 was available on HPUX 9.x as a patch: if that
6920 # patch was installed, then all of X11R6 went in to
6921 # /usr/contrib/X11R6/ (there was no /usr/{include,lib}/X11R6/.)
6923 # HPUX 8.x was the same as 9.x, but was X11R4 instead (I don't know
6924 # whether R5 was available as a patch; R6 undoubtedly was not.)
6926 # So. We try and use the highest numbered pair of
6927 # /usr/{include,lib}/X11R?/ and /usr/contrib/X11R?/{include,lib}/
6928 # that are available. We do not mix and match different versions
6931 # Question I still don't know the answer to: (do you?)
6933 # * On HPUX 9.x, where /usr/include/X11R5/ was standard, and
6934 # /usr/contrib/X11R6/ could be installed as a patch, what was in
6935 # that contrib directory? Did it contain so-called "standard"
6936 # X11R6, or did it include Xaw and Xmu as well? If the former,
6937 # where did one find Xaw and Xmu on 9.x R6 systems? Would this
6938 # be a situation where one had to reach into the R5 headers and
6939 # libs to find Xmu? That is, must both R6 and R5 directories
6940 # be on the -I and -L lists in that case?
6942 for version in X11R6 X11R5 X11R4 ; do
6943 # if either pair of directories exists...
6944 if test -d /usr/include/$version || test -d /usr/contrib/$version/include
6946 # if contrib exists, use it...
6947 if test -d /usr/contrib/$version/include ; then
6948 X_CFLAGS="$X_CFLAGS -I/usr/contrib/$version/include"
6949 X_LIBS="$X_LIBS -L/usr/contrib/$version/lib"
6951 # if the "standard" one exists, use it.
6952 if test -d /usr/include/$version ; then
6953 X_CFLAGS="$X_CFLAGS -I/usr/include/$version"
6954 X_LIBS="$X_LIBS -L/usr/lib/$version"
6956 # since at least one of the pair exists, go no farther.
6961 # Now find Motif. Thanks for not making xmkmf find this by
6962 # default, you losers.
6964 if test -d /usr/include/Motif2.1 ; then
6965 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif2.1"
6966 X_LIBS="$X_LIBS -L/usr/lib/Motif2.1"
6967 elif test -d /usr/include/Motif1.2 ; then
6968 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.2"
6969 X_LIBS="$X_LIBS -L/usr/lib/Motif1.2"
6970 elif test -d /usr/include/Motif1.1 ; then
6971 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.1"
6972 X_LIBS="$X_LIBS -L/usr/lib/Motif1.1"
6975 # Now let's check for the pseudo-standard locations for OpenGL and XPM.
6977 if test -d /opt/graphics/OpenGL/include ; then
6978 # HP-UX 10.20 puts it here
6979 X_CFLAGS="-I/opt/graphics/OpenGL/include $X_CFLAGS"
6980 X_LIBS="-L/opt/graphics/OpenGL/lib $X_LIBS"
6981 elif test -d /opt/Mesa/lib ; then
6982 X_CFLAGS="-I/opt/Mesa/include $X_CFLAGS"
6983 X_LIBS="-L/opt/Mesa/lib $X_LIBS"
6987 if test -d /opt/xpm/lib/X11 ; then
6988 X_CFLAGS="-I/opt/xpm/include $X_CFLAGS"
6989 X_LIBS="-L/opt/xpm/lib/X11 $X_LIBS"
6992 # On HPUX, default to installing in /opt/xscreensaver/ instead of
6993 # in /usr/local/, unless there is already an xscreensaver in
6994 # /usr/local/bin/. This can be overridden with the --prefix arg
6995 # to configure. I'm not sure this is the right thing to do, but
6996 # Richard Lloyd says so...
6998 if test \! -x /usr/local/bin/xscreensaver ; then
6999 ac_default_prefix=/opt/xscreensaver
7005 # Thanks for not making xmkmf find this by default, pinheads.
7006 # And thanks for moving things around again, too. Is this
7007 # really the standard location now? What happened to the
7008 # joke that this kind of thing went in /opt?
7009 # cthomp says "answer: CDE (Common Disorganized Environment)"
7011 if test -f /usr/dt/include/Xm/Xm.h ; then
7012 X_CFLAGS="$X_CFLAGS -I/usr/dt/include"
7013 MOTIF_LIBS="$MOTIF_LIBS -L/usr/dt/lib -R/usr/dt/lib"
7015 # Some versions of Slowlaris Motif require -lgen. But not all. Why?
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcmp in -lgen" >&5
7017 $as_echo_n "checking for regcmp in -lgen... " >&6; }
7018 if ${ac_cv_lib_gen_regcmp+:} false; then :
7019 $as_echo_n "(cached) " >&6
7021 ac_check_lib_save_LIBS=$LIBS
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7026 /* Override any GCC internal prototype to avoid an error.
7027 Use char because int might match the return type of a GCC
7028 builtin and then its argument prototype would still apply. */
7041 if ac_fn_c_try_link "$LINENO"; then :
7042 ac_cv_lib_gen_regcmp=yes
7044 ac_cv_lib_gen_regcmp=no
7046 rm -f core conftest.err conftest.$ac_objext \
7047 conftest$ac_exeext conftest.$ac_ext
7048 LIBS=$ac_check_lib_save_LIBS
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_regcmp" >&5
7051 $as_echo "$ac_cv_lib_gen_regcmp" >&6; }
7052 if test "x$ac_cv_lib_gen_regcmp" = xyes; then :
7053 MOTIF_LIBS="$MOTIF_LIBS -lgen"
7061 # On MacOS X (10.x with "fink"), many things are under /sw/.
7063 if test -d /sw/include ; then
7064 X_CFLAGS="-I/sw/include $X_CFLAGS"
7065 X_LIBS="-L/sw/lib $X_LIBS"
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPointer" >&5
7070 $as_echo_n "checking for XPointer... " >&6; }
7071 if ${ac_cv_xpointer+:} false; then :
7072 $as_echo_n "(cached) " >&6
7075 ac_save_CPPFLAGS="$CPPFLAGS"
7076 if test \! -z "$includedir" ; then
7077 CPPFLAGS="$CPPFLAGS -I$includedir"
7079 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7080 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
7081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082 /* end confdefs.h. */
7083 #include <X11/Xlib.h>
7087 XPointer foo = (XPointer) 0;
7092 if ac_fn_c_try_compile "$LINENO"; then :
7097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7098 CPPFLAGS="$ac_save_CPPFLAGS"
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xpointer" >&5
7101 $as_echo "$ac_cv_xpointer" >&6; }
7102 if test "$ac_cv_xpointer" != yes; then
7103 $as_echo "#define XPointer char*" >>confdefs.h
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this is MacOS X" >&5
7108 $as_echo_n "checking whether this is MacOS X... " >&6; }
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_macosx" >&5
7116 $as_echo "$ac_macosx" >&6; }
7119 ###############################################################################
7123 ###############################################################################
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7127 $as_echo_n "checking whether NLS is requested... " >&6; }
7128 # Check whether --enable-nls was given.
7129 if test "${enable_nls+set}" = set; then :
7130 enableval=$enable_nls; USE_NLS=$enableval
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7136 $as_echo "$USE_NLS" >&6; }
7141 case "$am__api_version" in
7143 as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
7149 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
7150 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
7151 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= " >&5
7154 $as_echo_n "checking for intltool >= ... " >&6; }
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
7156 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
7157 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
7158 as_fn_error $? "Your intltool is too old. You need intltool or later." "$LINENO" 5
7161 # Extract the first word of "intltool-update", so it can be a program name with args.
7162 set dummy intltool-update; ac_word=$2
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164 $as_echo_n "checking for $ac_word... " >&6; }
7165 if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
7166 $as_echo_n "(cached) " >&6
7168 case $INTLTOOL_UPDATE in
7170 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7180 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
7181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
7192 if test -n "$INTLTOOL_UPDATE"; then
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
7194 $as_echo "$INTLTOOL_UPDATE" >&6; }
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197 $as_echo "no" >&6; }
7201 # Extract the first word of "intltool-merge", so it can be a program name with args.
7202 set dummy intltool-merge; 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_MERGE+:} false; then :
7206 $as_echo_n "(cached) " >&6
7208 case $INTLTOOL_MERGE in
7210 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # 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_MERGE="$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_MERGE=$ac_cv_path_INTLTOOL_MERGE
7232 if test -n "$INTLTOOL_MERGE"; then
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
7234 $as_echo "$INTLTOOL_MERGE" >&6; }
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7241 # Extract the first word of "intltool-extract", so it can be a program name with args.
7242 set dummy intltool-extract; 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_EXTRACT+:} false; then :
7246 $as_echo_n "(cached) " >&6
7248 case $INTLTOOL_EXTRACT in
7250 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # 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_EXTRACT="$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_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
7272 if test -n "$INTLTOOL_EXTRACT"; then
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
7274 $as_echo "$INTLTOOL_EXTRACT" >&6; }
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277 $as_echo "no" >&6; }
7281 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
7282 as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
7285 if test -z "$AM_DEFAULT_VERBOSITY"; then
7286 AM_DEFAULT_VERBOSITY=1
7290 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
7291 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
7292 INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;'
7297 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
7298 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
7299 intltool__v_merge_options_0='-q'
7304 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 $< $@'
7305 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 $< $@'
7306 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 $< $@'
7307 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 $< $@'
7308 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 $< $@'
7309 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 $< $@'
7310 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 $< $@'
7311 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 $< $@'
7312 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 $< $@'
7313 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 $< $@'
7314 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 $< $@'
7315 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
7316 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 $< $@'
7318 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'
7320 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 $< $@'
7321 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 $< $@'
7322 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 $< $@'
7323 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 $< $@'
7324 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 $< $@'
7325 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 $< $@'
7326 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 $< $@'
7424 # Check the gettext tools to make sure they are GNU
7425 # Extract the first word of "xgettext", so it can be a program name with args.
7426 set dummy xgettext; ac_word=$2
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 $as_echo_n "checking for $ac_word... " >&6; }
7429 if ${ac_cv_path_XGETTEXT+:} false; then :
7430 $as_echo_n "(cached) " >&6
7434 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 test -z "$as_dir" && as_dir=.
7442 for ac_exec_ext in '' $ac_executable_extensions; do
7443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7444 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
7445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7455 XGETTEXT=$ac_cv_path_XGETTEXT
7456 if test -n "$XGETTEXT"; then
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7458 $as_echo "$XGETTEXT" >&6; }
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461 $as_echo "no" >&6; }
7465 # Extract the first word of "msgmerge", so it can be a program name with args.
7466 set dummy msgmerge; 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_MSGMERGE+:} false; then :
7470 $as_echo_n "(cached) " >&6
7474 ac_cv_path_MSGMERGE="$MSGMERGE" # 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_MSGMERGE="$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 MSGMERGE=$ac_cv_path_MSGMERGE
7496 if test -n "$MSGMERGE"; then
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7498 $as_echo "$MSGMERGE" >&6; }
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501 $as_echo "no" >&6; }
7505 # Extract the first word of "msgfmt", so it can be a program name with args.
7506 set dummy msgfmt; 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_MSGFMT+:} false; then :
7510 $as_echo_n "(cached) " >&6
7514 ac_cv_path_MSGFMT="$MSGFMT" # 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_MSGFMT="$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 MSGFMT=$ac_cv_path_MSGFMT
7536 if test -n "$MSGFMT"; then
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7538 $as_echo "$MSGFMT" >&6; }
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541 $as_echo "no" >&6; }
7545 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7546 set dummy gmsgfmt; 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_GMSGFMT+:} false; then :
7550 $as_echo_n "(cached) " >&6
7554 ac_cv_path_GMSGFMT="$GMSGFMT" # 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_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7576 GMSGFMT=$ac_cv_path_GMSGFMT
7577 if test -n "$GMSGFMT"; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7579 $as_echo "$GMSGFMT" >&6; }
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7586 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
7587 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
7589 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
7590 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
7591 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
7592 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
7593 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
7596 # Substitute ALL_LINGUAS so we can use it in po/Makefile
7599 # Set DATADIRNAME correctly if it is not set yet
7600 # (copied from glib-gettext.m4)
7601 if test -z "$DATADIRNAME"; then
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7608 extern int _nl_msg_cat_cntr;
7609 return _nl_msg_cat_cntr
7614 if ac_fn_c_try_link "$LINENO"; then :
7619 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
7620 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
7632 rm -f core conftest.err conftest.$ac_objext \
7633 conftest$ac_exeext conftest.$ac_ext
7640 GETTEXT_PACKAGE=xscreensaver
7642 cat >>confdefs.h <<_ACEOF
7643 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
7647 cat >>confdefs.h <<_ACEOF
7648 #define PACKAGE "$GETTEXT_PACKAGE"
7653 ALL_LINGUAS="ca da de es et fi fr hu it ja ko nb nl pl pt pt_BR ru sk sv vi wa zh_CN zh_TW"
7655 for ac_header in locale.h
7657 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
7658 if test "x$ac_cv_header_locale_h" = xyes; then :
7659 cat >>confdefs.h <<_ACEOF
7660 #define HAVE_LOCALE_H 1
7667 if test $ac_cv_header_locale_h = yes; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
7669 $as_echo_n "checking for LC_MESSAGES... " >&6; }
7670 if ${am_cv_val_LC_MESSAGES+:} false; then :
7671 $as_echo_n "(cached) " >&6
7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674 /* end confdefs.h. */
7684 if ac_fn_c_try_link "$LINENO"; then :
7685 am_cv_val_LC_MESSAGES=yes
7687 am_cv_val_LC_MESSAGES=no
7689 rm -f core conftest.err conftest.$ac_objext \
7690 conftest$ac_exeext conftest.$ac_ext
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
7693 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
7694 if test $am_cv_val_LC_MESSAGES = yes; then
7696 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
7703 gt_cv_have_gettext=no
7709 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
7710 if test "x$ac_cv_header_libintl_h" = xyes; then :
7711 gt_cv_func_dgettext_libintl="no"
7712 libintl_extra_libs=""
7715 # First check in libc
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
7718 $as_echo_n "checking for ngettext in libc... " >&6; }
7719 if ${gt_cv_func_ngettext_libc+:} false; then :
7720 $as_echo_n "(cached) " >&6
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7725 #include <libintl.h>
7730 return !ngettext ("","", 1)
7735 if ac_fn_c_try_link "$LINENO"; then :
7736 gt_cv_func_ngettext_libc=yes
7738 gt_cv_func_ngettext_libc=no
7740 rm -f core conftest.err conftest.$ac_objext \
7741 conftest$ac_exeext conftest.$ac_ext
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
7745 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
7747 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
7749 $as_echo_n "checking for dgettext in libc... " >&6; }
7750 if ${gt_cv_func_dgettext_libc+:} false; then :
7751 $as_echo_n "(cached) " >&6
7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7754 /* end confdefs.h. */
7756 #include <libintl.h>
7761 return !dgettext ("","")
7766 if ac_fn_c_try_link "$LINENO"; then :
7767 gt_cv_func_dgettext_libc=yes
7769 gt_cv_func_dgettext_libc=no
7771 rm -f core conftest.err conftest.$ac_objext \
7772 conftest$ac_exeext conftest.$ac_ext
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
7776 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
7779 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
7780 for ac_func in bind_textdomain_codeset
7782 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
7783 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
7784 cat >>confdefs.h <<_ACEOF
7785 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
7794 # If we don't have everything we want, check in libintl
7796 if test "$gt_cv_func_dgettext_libc" != "yes" \
7797 || test "$gt_cv_func_ngettext_libc" != "yes" \
7798 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
7801 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
7802 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
7803 $as_echo_n "(cached) " >&6
7805 ac_check_lib_save_LIBS=$LIBS
7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7810 /* Override any GCC internal prototype to avoid an error.
7811 Use char because int might match the return type of a GCC
7812 builtin and then its argument prototype would still apply. */
7816 char bindtextdomain ();
7820 return bindtextdomain ();
7825 if ac_fn_c_try_link "$LINENO"; then :
7826 ac_cv_lib_intl_bindtextdomain=yes
7828 ac_cv_lib_intl_bindtextdomain=no
7830 rm -f core conftest.err conftest.$ac_objext \
7831 conftest$ac_exeext conftest.$ac_ext
7832 LIBS=$ac_check_lib_save_LIBS
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
7835 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
7836 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
7838 $as_echo_n "checking for ngettext in -lintl... " >&6; }
7839 if ${ac_cv_lib_intl_ngettext+:} false; then :
7840 $as_echo_n "(cached) " >&6
7842 ac_check_lib_save_LIBS=$LIBS
7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h. */
7847 /* Override any GCC internal prototype to avoid an error.
7848 Use char because int might match the return type of a GCC
7849 builtin and then its argument prototype would still apply. */
7862 if ac_fn_c_try_link "$LINENO"; then :
7863 ac_cv_lib_intl_ngettext=yes
7865 ac_cv_lib_intl_ngettext=no
7867 rm -f core conftest.err conftest.$ac_objext \
7868 conftest$ac_exeext conftest.$ac_ext
7869 LIBS=$ac_check_lib_save_LIBS
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
7872 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
7873 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
7875 $as_echo_n "checking for dgettext in -lintl... " >&6; }
7876 if ${ac_cv_lib_intl_dgettext+:} false; then :
7877 $as_echo_n "(cached) " >&6
7879 ac_check_lib_save_LIBS=$LIBS
7881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882 /* end confdefs.h. */
7884 /* Override any GCC internal prototype to avoid an error.
7885 Use char because int might match the return type of a GCC
7886 builtin and then its argument prototype would still apply. */
7899 if ac_fn_c_try_link "$LINENO"; then :
7900 ac_cv_lib_intl_dgettext=yes
7902 ac_cv_lib_intl_dgettext=no
7904 rm -f core conftest.err conftest.$ac_objext \
7905 conftest$ac_exeext conftest.$ac_ext
7906 LIBS=$ac_check_lib_save_LIBS
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
7909 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
7910 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
7911 gt_cv_func_dgettext_libintl=yes
7919 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
7921 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
7925 $as_echo_n "checking for ngettext in -lintl... " >&6; }
7926 if ${ac_cv_lib_intl_ngettext+:} false; then :
7927 $as_echo_n "(cached) " >&6
7929 ac_check_lib_save_LIBS=$LIBS
7930 LIBS="-lintl -liconv $LIBS"
7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h. */
7934 /* Override any GCC internal prototype to avoid an error.
7935 Use char because int might match the return type of a GCC
7936 builtin and then its argument prototype would still apply. */
7949 if ac_fn_c_try_link "$LINENO"; then :
7950 ac_cv_lib_intl_ngettext=yes
7952 ac_cv_lib_intl_ngettext=no
7954 rm -f core conftest.err conftest.$ac_objext \
7955 conftest$ac_exeext conftest.$ac_ext
7956 LIBS=$ac_check_lib_save_LIBS
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
7959 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
7960 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
7962 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
7963 if ${ac_cv_lib_intl_dcgettext+:} false; then :
7964 $as_echo_n "(cached) " >&6
7966 ac_check_lib_save_LIBS=$LIBS
7967 LIBS="-lintl -liconv $LIBS"
7968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969 /* end confdefs.h. */
7971 /* Override any GCC internal prototype to avoid an error.
7972 Use char because int might match the return type of a GCC
7973 builtin and then its argument prototype would still apply. */
7981 return dcgettext ();
7986 if ac_fn_c_try_link "$LINENO"; then :
7987 ac_cv_lib_intl_dcgettext=yes
7989 ac_cv_lib_intl_dcgettext=no
7991 rm -f core conftest.err conftest.$ac_objext \
7992 conftest$ac_exeext conftest.$ac_ext
7993 LIBS=$ac_check_lib_save_LIBS
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
7996 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
7997 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
7998 gt_cv_func_dgettext_libintl=yes
7999 libintl_extra_libs=-liconv
8011 # If we found libintl, then check in it for bind_textdomain_codeset();
8012 # we'll prefer libc if neither have bind_textdomain_codeset(),
8013 # and both have dgettext and ngettext
8015 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
8016 glib_save_LIBS="$LIBS"
8017 LIBS="$LIBS -lintl $libintl_extra_libs"
8018 unset ac_cv_func_bind_textdomain_codeset
8019 for ac_func in bind_textdomain_codeset
8021 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
8022 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
8023 cat >>confdefs.h <<_ACEOF
8024 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
8030 LIBS="$glib_save_LIBS"
8032 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
8033 gt_cv_func_dgettext_libc=no
8035 if test "$gt_cv_func_dgettext_libc" = "yes" \
8036 && test "$gt_cv_func_ngettext_libc" = "yes"; then
8037 gt_cv_func_dgettext_libintl=no
8043 if test "$gt_cv_func_dgettext_libc" = "yes" \
8044 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
8045 gt_cv_have_gettext=yes
8048 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
8049 INTLLIBS="-lintl $libintl_extra_libs"
8052 if test "$gt_cv_have_gettext" = "yes"; then
8054 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8056 # Extract the first word of "msgfmt", so it can be a program name with args.
8057 set dummy msgfmt; ac_word=$2
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059 $as_echo_n "checking for $ac_word... " >&6; }
8060 if ${ac_cv_path_MSGFMT+:} false; then :
8061 $as_echo_n "(cached) " >&6
8065 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8069 for ac_dir in $PATH; do
8070 test -z "$ac_dir" && ac_dir=.
8071 if test -f $ac_dir/$ac_word; then
8072 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8073 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8079 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8083 MSGFMT="$ac_cv_path_MSGFMT"
8084 if test "$MSGFMT" != "no"; then
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8086 $as_echo "$MSGFMT" >&6; }
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089 $as_echo "no" >&6; }
8091 if test "$MSGFMT" != "no"; then
8092 glib_save_LIBS="$LIBS"
8093 LIBS="$LIBS $INTLLIBS"
8094 for ac_func in dcgettext
8096 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
8097 if test "x$ac_cv_func_dcgettext" = xyes; then :
8098 cat >>confdefs.h <<_ACEOF
8099 #define HAVE_DCGETTEXT 1
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
8107 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
8108 cat >conftest.foo <<_ACEOF
8112 "Content-Type: text/plain; charset=UTF-8\n"
8113 "Project-Id-Version: test 1.0\n"
8114 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
8115 "Last-Translator: test <foo@bar.xx>\n"
8116 "Language-Team: C <LL@li.org>\n"
8117 "MIME-Version: 1.0\n"
8118 "Content-Transfer-Encoding: 8bit\n"
8121 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
8122 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
8124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8125 test $ac_status = 0; }; then
8126 MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8127 $as_echo "yes" >&6; }
8128 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129 $as_echo "no" >&6; }
8130 echo "$as_me: failed input was:" >&5
8131 sed 's/^/| /' conftest.foo >&5
8134 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8135 set dummy gmsgfmt; ac_word=$2
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8137 $as_echo_n "checking for $ac_word... " >&6; }
8138 if ${ac_cv_path_GMSGFMT+:} false; then :
8139 $as_echo_n "(cached) " >&6
8143 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 test -z "$as_dir" && as_dir=.
8151 for ac_exec_ext in '' $ac_executable_extensions; do
8152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8153 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8161 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8165 GMSGFMT=$ac_cv_path_GMSGFMT
8166 if test -n "$GMSGFMT"; then
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8168 $as_echo "$GMSGFMT" >&6; }
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8171 $as_echo "no" >&6; }
8175 # Extract the first word of "xgettext", so it can be a program name with args.
8176 set dummy xgettext; ac_word=$2
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8178 $as_echo_n "checking for $ac_word... " >&6; }
8179 if ${ac_cv_path_XGETTEXT+:} false; then :
8180 $as_echo_n "(cached) " >&6
8184 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8187 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8188 for ac_dir in $PATH; do
8189 test -z "$ac_dir" && ac_dir=.
8190 if test -f $ac_dir/$ac_word; then
8191 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8192 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8198 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8202 XGETTEXT="$ac_cv_path_XGETTEXT"
8203 if test "$XGETTEXT" != ":"; then
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8205 $as_echo "$XGETTEXT" >&6; }
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8208 $as_echo "no" >&6; }
8211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8212 /* end confdefs.h. */
8217 extern int _nl_msg_cat_cntr;
8218 return _nl_msg_cat_cntr
8223 if ac_fn_c_try_link "$LINENO"; then :
8229 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
8230 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
8249 rm -f core conftest.err conftest.$ac_objext \
8250 conftest$ac_exeext conftest.$ac_ext
8251 LIBS="$glib_save_LIBS"
8254 gt_cv_have_gettext=no
8262 if test "$gt_cv_have_gettext" = "yes" ; then
8264 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8268 if test "$XGETTEXT" != ":"; then
8269 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
8273 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
8278 # We need to process the po/ directory.
8281 ac_config_commands="$ac_config_commands default-1"
8284 for lang in $ALL_LINGUAS; do
8285 GMOFILES="$GMOFILES $lang.gmo"
8286 POFILES="$POFILES $lang.po"
8301 if test "$gt_cv_have_gettext" = "yes"; then
8302 if test "x$ALL_LINGUAS" = "x"; then
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8306 $as_echo_n "checking for catalogs to be installed... " >&6; }
8308 for presentlang in $ALL_LINGUAS; do
8310 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
8311 desiredlanguages="$LINGUAS"
8313 desiredlanguages="$ALL_LINGUAS"
8315 for desiredlang in $desiredlanguages; do
8316 # Use the presentlang catalog if desiredlang is
8317 # a. equal to presentlang, or
8318 # b. a variant of presentlang (because in this case,
8319 # presentlang can be used as a fallback for messages
8320 # which are not translated in the desiredlang catalog).
8321 case "$desiredlang" in
8322 "$presentlang"*) useit=yes;;
8325 if test $useit = yes; then
8326 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
8329 LINGUAS=$NEW_LINGUAS
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8331 $as_echo "$LINGUAS" >&6; }
8334 if test -n "$LINGUAS"; then
8335 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8340 if test -n "$ac_aux_dir"; then
8341 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8343 if test -z "$MKINSTALLDIRS"; then
8344 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8348 test -d po || mkdir po
8349 if test "x$srcdir" != "x."; then
8350 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8351 posrcprefix="$srcdir/"
8353 posrcprefix="../$srcdir/"
8359 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8360 < $srcdir/po/POTFILES.in > po/POTFILES
8362 MKINSTALLDIRS="$INSTALL_DIRS"
8365 ###############################################################################
8367 # Check for -lXmu (some fucked up vendors don't ship it...)
8369 ###############################################################################
8373 ac_save_CPPFLAGS="$CPPFLAGS"
8374 if test \! -z "$includedir" ; then
8375 CPPFLAGS="$CPPFLAGS -I$includedir"
8377 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8378 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8379 ac_fn_c_check_header_compile "$LINENO" "X11/Xmu/Error.h" "ac_cv_header_X11_Xmu_Error_h" "#include <stdlib.h>
8381 #include <X11/Intrinsic.h>
8383 if test "x$ac_cv_header_X11_Xmu_Error_h" = xyes; then :
8388 CPPFLAGS="$ac_save_CPPFLAGS"
8389 if test "$have_xmu" = no ; then
8390 XMU_SRCS='$(UTILS_SRC)/xmu.c'
8391 XMU_OBJS='$(UTILS_BIN)/xmu.o'
8397 $as_echo "#define HAVE_XMU 1" >>confdefs.h
8402 ###############################################################################
8404 # Check for the SunOS 4.1.x _get_wmShellWidgetClass bug.
8405 # See comp.windows.x FAQ question 124. The right fix is to
8406 # get OpenWindows 3.0 patches 100512-02 and 100573-03.
8408 ###############################################################################
8410 if test "$have_xmu" = yes ; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the SunOS 4.1.x _get_wmShellWidgetClass bug" >&5
8414 $as_echo_n "checking for the SunOS 4.1.x _get_wmShellWidgetClass bug... " >&6; }
8415 if ${ac_cv_sunos_xmu_bug+:} false; then :
8416 $as_echo_n "(cached) " >&6
8418 ac_save_LDFLAGS="$LDFLAGS"
8419 if test \! -z "$x_libraries" ; then
8420 LDFLAGS="$LDFLAGS -L$x_libraries"
8422 # Note: this trick never works! (Generally.)
8423 # We're only getting away with using AC_TRY_LINK
8424 # with X libraries because we know it's SunOS.
8425 LDFLAGS="$LDFLAGS -lXmu -lXt -lX11 -lXext -lm"
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h. */
8437 if ac_fn_c_try_link "$LINENO"; then :
8438 ac_cv_sunos_xmu_bug=no
8440 ac_cv_sunos_xmu_bug=yes
8442 rm -f core conftest.err conftest.$ac_objext \
8443 conftest$ac_exeext conftest.$ac_ext
8444 LDFLAGS="$ac_save_LDFLAGS"
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sunos_xmu_bug" >&5
8447 $as_echo "$ac_cv_sunos_xmu_bug" >&6; }
8448 if test "$ac_cv_sunos_xmu_bug" = yes ; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static" >&5
8450 $as_echo_n "checking whether the compiler understands -static... " >&6; }
8451 if ${ac_cv_ld_static+:} false; then :
8452 $as_echo_n "(cached) " >&6
8454 ac_save_LDFLAGS="$LDFLAGS"
8455 LDFLAGS="$LDFLAGS -static"
8456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457 /* end confdefs.h. */
8467 if ac_fn_c_try_link "$LINENO"; then :
8472 rm -f core conftest.err conftest.$ac_objext \
8473 conftest$ac_exeext conftest.$ac_ext
8474 LDFLAGS="$ac_save_LDFLAGS"
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ld_static" >&5
8477 $as_echo "$ac_cv_ld_static" >&6; }
8478 if test "$ac_cv_ld_static" = yes ; then
8479 LDFLAGS="$LDFLAGS -static"
8481 LDFLAGS="$LDFLAGS -Bstatic"
8489 ###############################################################################
8491 # Handle the --with-hackdir option
8493 ###############################################################################
8496 with_hackdir_req=unspecified
8498 # Check whether --with-hackdir was given.
8499 if test "${with_hackdir+set}" = set; then :
8500 withval=$with_hackdir; with_hackdir="$withval"; with_hackdir_req="$withval"
8506 if test x"$with_hackdir" = xyes; then
8507 HACKDIR='${libexecdir}/xscreensaver'
8508 elif test x"$with_hackdir" = xno; then
8511 HACKDIR=$with_hackdir
8514 # canonicalize slashes.
8515 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
8517 # Expand HACKDIR as HACKDIR_FULL
8518 HACKDIR_FULL=`eval eval eval eval eval eval eval eval eval echo $HACKDIR`
8520 # This option used to be called --enable-subdir; make sure that is no longer
8521 # used, since configure brain-damagedly ignores unknown --enable options.
8524 # Check whether --enable-subdir was given.
8525 if test "${enable_subdir+set}" = set; then :
8526 enableval=$enable_subdir; obsolete_enable=yes
8529 if test -n "$obsolete_enable"; then
8530 echo "error: the --enable-subdir option has been replaced with"
8531 echo " the new --with-hackdir option; see \`configure --help'"
8532 echo " for more information."
8537 ###############################################################################
8539 # Handle the --with-configdir option
8540 # Help for --with-x-app-defaults option added.
8542 ###############################################################################
8545 with_configdir_req=unspecified
8547 # Check whether --with-configdir was given.
8548 if test "${with_configdir+set}" = set; then :
8549 withval=$with_configdir; with_configdir="$withval"; with_configdir_req="$withval"
8555 if test x"$with_configdir" = xyes; then
8556 HACK_CONF_DIR='${datadir}/xscreensaver/config'
8557 elif test x"$with_configdir" = xno; then
8558 echo "error: must be yes, or a pathname: --with-configdir=$with_configdir"
8561 # there must be a better way than this...
8562 if test -z "`echo $with_configdir | sed 's@^/.*@@'`" ; then
8564 HACK_CONF_DIR=$with_configdir
8567 HACK_CONF_DIR="\${exec_prefix}$with_configdir"
8574 ###############################################################################
8576 # Check for the SGI SCREEN_SAVER server extension.
8578 ###############################################################################
8581 #with_sgi_req=unspecified
8582 #AC_ARG_WITH(sgi-ext,
8583 #[Except where noted, all of the --with options below can also take a
8584 #directory argument: for example, `--with-motif=/opt/Motif'. That would
8585 #cause /opt/Motif/include/ to be added to the -I list, and /opt/Motif/lib/
8586 #to be added to the -L list, assuming those directories exist.
8588 #By default, support for each of these options will be built in, if the
8589 #relevant library routines exist. At run time, they will then be used
8590 #only if the X server being used supports them. Each --with option has
8591 #a corresponding --without option, to override building support for them
8594 #Screen blanking and idle-detection options:
8596 # --with-sgi-ext Include support for the SGI SCREEN_SAVER extension.],
8597 # [with_sgi="$withval"; with_sgi_req="$withval"],[with_sgi=yes])
8599 #HANDLE_X_PATH_ARG(with_sgi, --with-sgi-ext, SGI SCREEN_SAVER)
8601 #if test "$with_sgi" = yes; then
8602 # AC_CHECK_X_HEADER(X11/extensions/XScreenSaver.h,
8604 # AC_DEFINE(HAVE_SGI_SAVER_EXTENSION)],,
8605 # [#include <X11/Xlib.h>])
8607 #elif test "$with_sgi" != no; then
8608 # echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
8613 ###############################################################################
8615 # Check for the XIDLE server extension.
8617 ###############################################################################
8620 #with_xidle_req=unspecified
8621 #AC_ARG_WITH(xidle-ext,
8622 #[ --with-xidle-ext Include support for the XIDLE extension.],
8623 # [with_xidle="$withval"; with_xidle_req="$withval"],[with_xidle=yes])
8625 #HANDLE_X_PATH_ARG(with_xidle, --with-xidle-ext, XIDLE)
8627 #if test "$with_xidle" = yes; then
8628 # AC_CHECK_X_HEADER(X11/extensions/xidle.h,
8630 # AC_DEFINE(HAVE_XIDLE_EXTENSION)],,
8631 # [#include <X11/Xlib.h>])
8632 #elif test "$with_xidle" != no; then
8633 # echo "error: must be yes or no: --with-xidle-ext=$with_xidle"
8638 ###############################################################################
8640 # Check for the SGI-VIDEO-CONTROL server extension.
8642 ###############################################################################
8645 #with_sgivc_req=unspecified
8646 #AC_ARG_WITH(sgivc-ext,
8647 #[ --with-sgivc-ext Include support for the SGI-VIDEO-CONTROL extension.],
8648 # [with_sgivc="$withval"; with_sgivc_req="$withval"],[with_sgivc=yes])
8650 #HANDLE_X_PATH_ARG(with_sgivc, --with-sgivc-ext, SGI-VIDEO-CONTROL)
8652 #if test "$with_sgivc" = yes; then
8654 # # first check for XSGIvc.h
8655 # AC_CHECK_X_HEADER(X11/extensions/XSGIvc.h, [have_sgivc=yes],,
8656 # [#include <X11/Xlib.h>])
8658 # # if that succeeded, then check for the -lXsgivc
8659 # if test "$have_sgivc" = yes; then
8661 # AC_CHECK_X_LIB(Xsgivc, XSGIvcQueryGammaMap,
8662 # [have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"], [true],
8666 # # if that succeeded, then we've really got it.
8667 # if test "$have_sgivc" = yes; then
8668 # AC_DEFINE(HAVE_SGI_VC_EXTENSION)
8671 #elif test "$with_sgivc" != no; then
8672 # echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
8677 ###############################################################################
8679 # Check for the DPMS server extension.
8681 ###############################################################################
8684 with_dpms_req=unspecified
8686 # Check whether --with-dpms-ext was given.
8687 if test "${with_dpms_ext+set}" = set; then :
8688 withval=$with_dpms_ext; with_dpms="$withval"; with_dpms_req="$withval"
8695 case "$with_dpms" in
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPMS headers" >&5
8701 $as_echo_n "checking for DPMS headers... " >&6; }
8702 d=$with_dpms/include
8704 X_CFLAGS="-I$d $X_CFLAGS"
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
8706 $as_echo "$d" >&6; }
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
8709 $as_echo "not found ($d: no such directory)" >&6; }
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPMS libs" >&5
8713 $as_echo_n "checking for DPMS libs... " >&6; }
8716 X_LIBS="-L$d $X_LIBS"
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
8718 $as_echo "$d" >&6; }
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
8721 $as_echo "not found ($d: no such directory)" >&6; }
8724 # replace the directory string with "yes".
8726 with_dpms=$with_dpms_req
8731 echo "error: argument to --with-dpms-ext must be \"yes\", \"no\", or a directory."
8732 echo " If it is a directory, then \`DIR/include' will be added to"
8733 echo " the -I list, and \`DIR/lib' will be added to the -L list."
8739 if test "$with_dpms" = yes; then
8741 # first check for dpms.h
8743 ac_save_CPPFLAGS="$CPPFLAGS"
8744 if test \! -z "$includedir" ; then
8745 CPPFLAGS="$CPPFLAGS -I$includedir"
8747 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8748 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8749 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/dpms.h" "ac_cv_header_X11_extensions_dpms_h" "#include <X11/Xlib.h>
8750 #include <X11/Xmd.h>
8752 if test "x$ac_cv_header_X11_extensions_dpms_h" = xyes; then :
8757 CPPFLAGS="$ac_save_CPPFLAGS"
8759 # if that succeeded, then check for the DPMS code in the libraries
8760 if test "$have_dpms" = yes; then
8762 # first look in -lXext (this is where it is with XFree86 4.0)
8765 ac_save_CPPFLAGS="$CPPFLAGS"
8766 ac_save_LDFLAGS="$LDFLAGS"
8767 # ac_save_LIBS="$LIBS"
8769 if test \! -z "$includedir" ; then
8770 CPPFLAGS="$CPPFLAGS -I$includedir"
8772 # note: $X_CFLAGS includes $x_includes
8773 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8775 if test \! -z "$libdir" ; then
8776 LDFLAGS="$LDFLAGS -L$libdir"
8778 # note: $X_LIBS includes $x_libraries
8779 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
8781 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8782 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPMSInfo in -lXext" >&5
8784 $as_echo_n "checking for DPMSInfo in -lXext... " >&6; }
8785 if ${ac_cv_lib_Xext_DPMSInfo+:} false; then :
8786 $as_echo_n "(cached) " >&6
8788 ac_check_lib_save_LIBS=$LIBS
8789 LIBS="-lXext -lXext -lX11 $LIBS"
8790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8791 /* end confdefs.h. */
8793 /* Override any GCC internal prototype to avoid an error.
8794 Use char because int might match the return type of a GCC
8795 builtin and then its argument prototype would still apply. */
8808 if ac_fn_c_try_link "$LINENO"; then :
8809 ac_cv_lib_Xext_DPMSInfo=yes
8811 ac_cv_lib_Xext_DPMSInfo=no
8813 rm -f core conftest.err conftest.$ac_objext \
8814 conftest$ac_exeext conftest.$ac_ext
8815 LIBS=$ac_check_lib_save_LIBS
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_DPMSInfo" >&5
8818 $as_echo "$ac_cv_lib_Xext_DPMSInfo" >&6; }
8819 if test "x$ac_cv_lib_Xext_DPMSInfo" = xyes; then :
8825 CPPFLAGS="$ac_save_CPPFLAGS"
8826 LDFLAGS="$ac_save_LDFLAGS"
8827 # LIBS="$ac_save_LIBS"
8830 # if that failed, look in -lXdpms (this is where it was in XFree86 3.x)
8831 if test "$have_dpms" = no; then
8833 ac_save_CPPFLAGS="$CPPFLAGS"
8834 ac_save_LDFLAGS="$LDFLAGS"
8835 # ac_save_LIBS="$LIBS"
8837 if test \! -z "$includedir" ; then
8838 CPPFLAGS="$CPPFLAGS -I$includedir"
8840 # note: $X_CFLAGS includes $x_includes
8841 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8843 if test \! -z "$libdir" ; then
8844 LDFLAGS="$LDFLAGS -L$libdir"
8846 # note: $X_LIBS includes $x_libraries
8847 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
8849 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8850 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPMSInfo in -lXdpms" >&5
8852 $as_echo_n "checking for DPMSInfo in -lXdpms... " >&6; }
8853 if ${ac_cv_lib_Xdpms_DPMSInfo+:} false; then :
8854 $as_echo_n "(cached) " >&6
8856 ac_check_lib_save_LIBS=$LIBS
8857 LIBS="-lXdpms -lXext -lX11 $LIBS"
8858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859 /* end confdefs.h. */
8861 /* Override any GCC internal prototype to avoid an error.
8862 Use char because int might match the return type of a GCC
8863 builtin and then its argument prototype would still apply. */
8876 if ac_fn_c_try_link "$LINENO"; then :
8877 ac_cv_lib_Xdpms_DPMSInfo=yes
8879 ac_cv_lib_Xdpms_DPMSInfo=no
8881 rm -f core conftest.err conftest.$ac_objext \
8882 conftest$ac_exeext conftest.$ac_ext
8883 LIBS=$ac_check_lib_save_LIBS
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdpms_DPMSInfo" >&5
8886 $as_echo "$ac_cv_lib_Xdpms_DPMSInfo" >&6; }
8887 if test "x$ac_cv_lib_Xdpms_DPMSInfo" = xyes; then :
8888 have_dpms=yes; XDPMS_LIBS="-lXdpms"
8893 CPPFLAGS="$ac_save_CPPFLAGS"
8894 LDFLAGS="$ac_save_LDFLAGS"
8895 # LIBS="$ac_save_LIBS"
8901 # if that succeeded, then we've really got it.
8902 if test "$have_dpms" = yes; then
8903 $as_echo "#define HAVE_DPMS_EXTENSION 1" >>confdefs.h
8907 elif test "$with_dpms" != no; then
8908 echo "error: must be yes or no: --with-dpms-ext=$with_dpms"
8913 ###############################################################################
8915 # Check for the XINERAMA server extension.
8917 ###############################################################################
8920 with_xinerama_req=unspecified
8922 # Check whether --with-xinerama-ext was given.
8923 if test "${with_xinerama_ext+set}" = set; then :
8924 withval=$with_xinerama_ext; with_xinerama="$withval"; with_xinerama_req="$withval"
8931 case "$with_xinerama" in
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINERAMA headers" >&5
8937 $as_echo_n "checking for XINERAMA headers... " >&6; }
8938 d=$with_xinerama/include
8940 X_CFLAGS="-I$d $X_CFLAGS"
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
8942 $as_echo "$d" >&6; }
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
8945 $as_echo "not found ($d: no such directory)" >&6; }
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINERAMA libs" >&5
8949 $as_echo_n "checking for XINERAMA libs... " >&6; }
8950 d=$with_xinerama/lib
8952 X_LIBS="-L$d $X_LIBS"
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
8954 $as_echo "$d" >&6; }
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
8957 $as_echo "not found ($d: no such directory)" >&6; }
8960 # replace the directory string with "yes".
8961 with_xinerama_req="yes"
8962 with_xinerama=$with_xinerama_req
8967 echo "error: argument to --with-xinerama-ext must be \"yes\", \"no\", or a directory."
8968 echo " If it is a directory, then \`DIR/include' will be added to"
8969 echo " the -I list, and \`DIR/lib' will be added to the -L list."
8975 if test "$with_xinerama" = yes; then
8977 # first check for Xinerama.h
8979 ac_save_CPPFLAGS="$CPPFLAGS"
8980 if test \! -z "$includedir" ; then
8981 CPPFLAGS="$CPPFLAGS -I$includedir"
8983 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8984 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8985 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
8987 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
8992 CPPFLAGS="$ac_save_CPPFLAGS"
8994 # if that succeeded, then check for the XINERAMA code in the libraries
8995 if test "$have_xinerama" = yes; then
8997 # first look in -lXext
9000 ac_save_CPPFLAGS="$CPPFLAGS"
9001 ac_save_LDFLAGS="$LDFLAGS"
9002 # ac_save_LIBS="$LIBS"
9004 if test \! -z "$includedir" ; then
9005 CPPFLAGS="$CPPFLAGS -I$includedir"
9007 # note: $X_CFLAGS includes $x_includes
9008 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9010 if test \! -z "$libdir" ; then
9011 LDFLAGS="$LDFLAGS -L$libdir"
9013 # note: $X_LIBS includes $x_libraries
9014 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9016 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9017 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryScreens in -lXext" >&5
9019 $as_echo_n "checking for XineramaQueryScreens in -lXext... " >&6; }
9020 if ${ac_cv_lib_Xext_XineramaQueryScreens+:} false; then :
9021 $as_echo_n "(cached) " >&6
9023 ac_check_lib_save_LIBS=$LIBS
9024 LIBS="-lXext -lXext -lX11 $LIBS"
9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h. */
9028 /* Override any GCC internal prototype to avoid an error.
9029 Use char because int might match the return type of a GCC
9030 builtin and then its argument prototype would still apply. */
9034 char XineramaQueryScreens ();
9038 return XineramaQueryScreens ();
9043 if ac_fn_c_try_link "$LINENO"; then :
9044 ac_cv_lib_Xext_XineramaQueryScreens=yes
9046 ac_cv_lib_Xext_XineramaQueryScreens=no
9048 rm -f core conftest.err conftest.$ac_objext \
9049 conftest$ac_exeext conftest.$ac_ext
9050 LIBS=$ac_check_lib_save_LIBS
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XineramaQueryScreens" >&5
9053 $as_echo "$ac_cv_lib_Xext_XineramaQueryScreens" >&6; }
9054 if test "x$ac_cv_lib_Xext_XineramaQueryScreens" = xyes; then :
9060 CPPFLAGS="$ac_save_CPPFLAGS"
9061 LDFLAGS="$ac_save_LDFLAGS"
9062 # LIBS="$ac_save_LIBS"
9065 # if that failed, look in -lXinerama (this is where it is in XFree86 4.1.)
9066 if test "$have_xinerama" = no; then
9068 ac_save_CPPFLAGS="$CPPFLAGS"
9069 ac_save_LDFLAGS="$LDFLAGS"
9070 # ac_save_LIBS="$LIBS"
9072 if test \! -z "$includedir" ; then
9073 CPPFLAGS="$CPPFLAGS -I$includedir"
9075 # note: $X_CFLAGS includes $x_includes
9076 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9078 if test \! -z "$libdir" ; then
9079 LDFLAGS="$LDFLAGS -L$libdir"
9081 # note: $X_LIBS includes $x_libraries
9082 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9084 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9085 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryScreens in -lXinerama" >&5
9087 $as_echo_n "checking for XineramaQueryScreens in -lXinerama... " >&6; }
9088 if ${ac_cv_lib_Xinerama_XineramaQueryScreens+:} false; then :
9089 $as_echo_n "(cached) " >&6
9091 ac_check_lib_save_LIBS=$LIBS
9092 LIBS="-lXinerama -lXext -lX11 $LIBS"
9093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9094 /* end confdefs.h. */
9096 /* Override any GCC internal prototype to avoid an error.
9097 Use char because int might match the return type of a GCC
9098 builtin and then its argument prototype would still apply. */
9102 char XineramaQueryScreens ();
9106 return XineramaQueryScreens ();
9111 if ac_fn_c_try_link "$LINENO"; then :
9112 ac_cv_lib_Xinerama_XineramaQueryScreens=yes
9114 ac_cv_lib_Xinerama_XineramaQueryScreens=no
9116 rm -f core conftest.err conftest.$ac_objext \
9117 conftest$ac_exeext conftest.$ac_ext
9118 LIBS=$ac_check_lib_save_LIBS
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
9121 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
9122 if test "x$ac_cv_lib_Xinerama_XineramaQueryScreens" = xyes; then :
9123 have_xinerama=yes; XINERAMA_LIBS="-lXinerama"
9128 CPPFLAGS="$ac_save_CPPFLAGS"
9129 LDFLAGS="$ac_save_LDFLAGS"
9130 # LIBS="$ac_save_LIBS"
9135 # if that succeeded, then we've really got it.
9136 if test "$have_xinerama" = yes; then
9137 $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
9141 elif test "$with_xinerama" != no; then
9142 echo "error: must be yes or no: --with-xinerama-ext=$with_xinerama"
9147 ###############################################################################
9149 # Check for the XINPUT server extension.
9151 ###############################################################################
9154 with_xinput_req=unspecified
9156 # Check whether --with-xinput-ext was given.
9157 if test "${with_xinput_ext+set}" = set; then :
9158 withval=$with_xinput_ext; with_xinput="$withval"; with_xinput_req="$withval"
9165 case "$with_xinput" in
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINPUT headers" >&5
9171 $as_echo_n "checking for XINPUT headers... " >&6; }
9172 d=$with_xinput/include
9174 X_CFLAGS="-I$d $X_CFLAGS"
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
9176 $as_echo "$d" >&6; }
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
9179 $as_echo "not found ($d: no such directory)" >&6; }
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINPUT libs" >&5
9183 $as_echo_n "checking for XINPUT libs... " >&6; }
9186 X_LIBS="-L$d $X_LIBS"
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
9188 $as_echo "$d" >&6; }
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
9191 $as_echo "not found ($d: no such directory)" >&6; }
9194 # replace the directory string with "yes".
9195 with_xinput_req="yes"
9196 with_xinput=$with_xinput_req
9201 echo "error: argument to --with-xinput-ext must be \"yes\", \"no\", or a directory."
9202 echo " If it is a directory, then \`DIR/include' will be added to"
9203 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9209 if test "$with_xinput" = yes; then
9211 # first check for Xinput.h
9213 ac_save_CPPFLAGS="$CPPFLAGS"
9214 if test \! -z "$includedir" ; then
9215 CPPFLAGS="$CPPFLAGS -I$includedir"
9217 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9218 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9219 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput.h" "ac_cv_header_X11_extensions_XInput_h" "#include <X11/Xlib.h>
9221 if test "x$ac_cv_header_X11_extensions_XInput_h" = xyes; then :
9226 CPPFLAGS="$ac_save_CPPFLAGS"
9228 # if that succeeded, then check for libXi
9229 if test "$have_xinput" = yes; then
9232 ac_save_CPPFLAGS="$CPPFLAGS"
9233 ac_save_LDFLAGS="$LDFLAGS"
9234 # ac_save_LIBS="$LIBS"
9236 if test \! -z "$includedir" ; then
9237 CPPFLAGS="$CPPFLAGS -I$includedir"
9239 # note: $X_CFLAGS includes $x_includes
9240 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9242 if test \! -z "$libdir" ; then
9243 LDFLAGS="$LDFLAGS -L$libdir"
9245 # note: $X_LIBS includes $x_libraries
9246 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9248 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9249 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XListInputDevices in -lXi" >&5
9251 $as_echo_n "checking for XListInputDevices in -lXi... " >&6; }
9252 if ${ac_cv_lib_Xi_XListInputDevices+:} false; then :
9253 $as_echo_n "(cached) " >&6
9255 ac_check_lib_save_LIBS=$LIBS
9256 LIBS="-lXi -lXext -lX11 $LIBS"
9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258 /* end confdefs.h. */
9260 /* Override any GCC internal prototype to avoid an error.
9261 Use char because int might match the return type of a GCC
9262 builtin and then its argument prototype would still apply. */
9266 char XListInputDevices ();
9270 return XListInputDevices ();
9275 if ac_fn_c_try_link "$LINENO"; then :
9276 ac_cv_lib_Xi_XListInputDevices=yes
9278 ac_cv_lib_Xi_XListInputDevices=no
9280 rm -f core conftest.err conftest.$ac_objext \
9281 conftest$ac_exeext conftest.$ac_ext
9282 LIBS=$ac_check_lib_save_LIBS
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XListInputDevices" >&5
9285 $as_echo "$ac_cv_lib_Xi_XListInputDevices" >&6; }
9286 if test "x$ac_cv_lib_Xi_XListInputDevices" = xyes; then :
9287 have_xinput=yes; SAVER_LIBS="$SAVER_LIBS -lXi"
9292 CPPFLAGS="$ac_save_CPPFLAGS"
9293 LDFLAGS="$ac_save_LDFLAGS"
9294 # LIBS="$ac_save_LIBS"
9298 # if that succeeded, then we've really got it.
9299 if test "$have_xinput" = yes; then
9300 $as_echo "#define HAVE_XINPUT 1" >>confdefs.h
9304 elif test "$with_xinput" != no; then
9305 echo "error: must be yes or no: --with-xinput-ext=$with_xinput"
9310 ###############################################################################
9312 # Check for the XF86VMODE server extension (for virtual screens.)
9314 ###############################################################################
9317 with_xf86vmode_req=unspecified
9319 # Check whether --with-xf86vmode-ext was given.
9320 if test "${with_xf86vmode_ext+set}" = set; then :
9321 withval=$with_xf86vmode_ext; with_xf86vmode="$withval"; with_xf86vmode_req="$withval"
9328 case "$with_xf86vmode" in
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xf86vmode headers" >&5
9334 $as_echo_n "checking for xf86vmode headers... " >&6; }
9335 d=$with_xf86vmode/include
9337 X_CFLAGS="-I$d $X_CFLAGS"
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
9339 $as_echo "$d" >&6; }
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
9342 $as_echo "not found ($d: no such directory)" >&6; }
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xf86vmode libs" >&5
9346 $as_echo_n "checking for xf86vmode libs... " >&6; }
9347 d=$with_xf86vmode/lib
9349 X_LIBS="-L$d $X_LIBS"
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
9351 $as_echo "$d" >&6; }
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
9354 $as_echo "not found ($d: no such directory)" >&6; }
9357 # replace the directory string with "yes".
9358 with_xf86vmode_req="yes"
9359 with_xf86vmode=$with_xf86vmode_req
9364 echo "error: argument to --with-xf86vmode-ext must be \"yes\", \"no\", or a directory."
9365 echo " If it is a directory, then \`DIR/include' will be added to"
9366 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9374 if test "$with_xf86vmode" = yes; then
9376 # first check for xf86vmode.h
9378 ac_save_CPPFLAGS="$CPPFLAGS"
9379 if test \! -z "$includedir" ; then
9380 CPPFLAGS="$CPPFLAGS -I$includedir"
9382 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9383 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9384 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
9386 if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
9391 CPPFLAGS="$ac_save_CPPFLAGS"
9393 # if that succeeded, then check for the -lXxf86vm
9394 if test "$have_xf86vmode" = yes; then
9397 ac_save_CPPFLAGS="$CPPFLAGS"
9398 ac_save_LDFLAGS="$LDFLAGS"
9399 # ac_save_LIBS="$LIBS"
9401 if test \! -z "$includedir" ; then
9402 CPPFLAGS="$CPPFLAGS -I$includedir"
9404 # note: $X_CFLAGS includes $x_includes
9405 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9407 if test \! -z "$libdir" ; then
9408 LDFLAGS="$LDFLAGS -L$libdir"
9410 # note: $X_LIBS includes $x_libraries
9411 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9413 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9414 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeGetViewPort in -lXxf86vm" >&5
9416 $as_echo_n "checking for XF86VidModeGetViewPort in -lXxf86vm... " >&6; }
9417 if ${ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort+:} false; then :
9418 $as_echo_n "(cached) " >&6
9420 ac_check_lib_save_LIBS=$LIBS
9421 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
9422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9423 /* end confdefs.h. */
9425 /* Override any GCC internal prototype to avoid an error.
9426 Use char because int might match the return type of a GCC
9427 builtin and then its argument prototype would still apply. */
9431 char XF86VidModeGetViewPort ();
9435 return XF86VidModeGetViewPort ();
9440 if ac_fn_c_try_link "$LINENO"; then :
9441 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=yes
9443 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=no
9445 rm -f core conftest.err conftest.$ac_objext \
9446 conftest$ac_exeext conftest.$ac_ext
9447 LIBS=$ac_check_lib_save_LIBS
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&5
9450 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&6; }
9451 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" = xyes; then :
9453 VIDMODE_LIBS="-lXxf86vm";
9454 SAVER_LIBS="$SAVER_LIBS $VIDMODE_LIBS"
9459 CPPFLAGS="$ac_save_CPPFLAGS"
9460 LDFLAGS="$ac_save_LDFLAGS"
9461 # LIBS="$ac_save_LIBS"
9465 # if that succeeded, then we've really got it.
9466 if test "$have_xf86vmode" = yes; then
9467 $as_echo "#define HAVE_XF86VMODE 1" >>confdefs.h
9471 elif test "$with_xf86vmode" != no; then
9472 echo "error: must be yes or no: --with-xf86vmode-ext=$with_xf86vmode"
9477 ###############################################################################
9479 # Check for the XF86VMODE server extension (for gamma fading.)
9481 ###############################################################################
9484 have_xf86gamma_ramp=no
9485 with_xf86gamma_req=unspecified
9487 # Check whether --with-xf86gamma-ext was given.
9488 if test "${with_xf86gamma_ext+set}" = set; then :
9489 withval=$with_xf86gamma_ext; with_xf86gamma="$withval"; with_xf86gamma_req="$withval"
9496 case "$with_xf86gamma" in
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xf86gamma headers" >&5
9502 $as_echo_n "checking for xf86gamma headers... " >&6; }
9503 d=$with_xf86gamma/include
9505 X_CFLAGS="-I$d $X_CFLAGS"
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
9507 $as_echo "$d" >&6; }
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
9510 $as_echo "not found ($d: no such directory)" >&6; }
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xf86gamma libs" >&5
9514 $as_echo_n "checking for xf86gamma libs... " >&6; }
9515 d=$with_xf86gamma/lib
9517 X_LIBS="-L$d $X_LIBS"
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
9519 $as_echo "$d" >&6; }
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
9522 $as_echo "not found ($d: no such directory)" >&6; }
9525 # replace the directory string with "yes".
9526 with_xf86gamma_req="yes"
9527 with_xf86gamma=$with_xf86gamma_req
9532 echo "error: argument to --with-xf86gamma-ext must be \"yes\", \"no\", or a directory."
9533 echo " If it is a directory, then \`DIR/include' will be added to"
9534 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9540 if test "$with_xf86gamma" = yes; then
9542 # first check for xf86vmode.h, if we haven't already
9543 if test "$have_xf86vmode" = yes; then
9547 ac_save_CPPFLAGS="$CPPFLAGS"
9548 if test \! -z "$includedir" ; then
9549 CPPFLAGS="$CPPFLAGS -I$includedir"
9551 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9552 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9553 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
9555 if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
9560 CPPFLAGS="$ac_save_CPPFLAGS"
9563 # if that succeeded, then check for the -lXxf86vm
9564 if test "$have_xf86gamma" = yes; then
9567 ac_save_CPPFLAGS="$CPPFLAGS"
9568 ac_save_LDFLAGS="$LDFLAGS"
9569 # ac_save_LIBS="$LIBS"
9571 if test \! -z "$includedir" ; then
9572 CPPFLAGS="$CPPFLAGS -I$includedir"
9574 # note: $X_CFLAGS includes $x_includes
9575 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9577 if test \! -z "$libdir" ; then
9578 LDFLAGS="$LDFLAGS -L$libdir"
9580 # note: $X_LIBS includes $x_libraries
9581 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9583 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9584 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeSetGamma in -lXxf86vm" >&5
9586 $as_echo_n "checking for XF86VidModeSetGamma in -lXxf86vm... " >&6; }
9587 if ${ac_cv_lib_Xxf86vm_XF86VidModeSetGamma+:} false; then :
9588 $as_echo_n "(cached) " >&6
9590 ac_check_lib_save_LIBS=$LIBS
9591 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593 /* end confdefs.h. */
9595 /* Override any GCC internal prototype to avoid an error.
9596 Use char because int might match the return type of a GCC
9597 builtin and then its argument prototype would still apply. */
9601 char XF86VidModeSetGamma ();
9605 return XF86VidModeSetGamma ();
9610 if ac_fn_c_try_link "$LINENO"; then :
9611 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=yes
9613 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=no
9615 rm -f core conftest.err conftest.$ac_objext \
9616 conftest$ac_exeext conftest.$ac_ext
9617 LIBS=$ac_check_lib_save_LIBS
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&5
9620 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&6; }
9621 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" = xyes; then :
9627 CPPFLAGS="$ac_save_CPPFLAGS"
9628 LDFLAGS="$ac_save_LDFLAGS"
9629 # LIBS="$ac_save_LIBS"
9633 # check for the Ramp versions of the functions too.
9634 if test "$have_xf86gamma" = yes; then
9635 have_xf86gamma_ramp=no
9637 ac_save_CPPFLAGS="$CPPFLAGS"
9638 ac_save_LDFLAGS="$LDFLAGS"
9639 # ac_save_LIBS="$LIBS"
9641 if test \! -z "$includedir" ; then
9642 CPPFLAGS="$CPPFLAGS -I$includedir"
9644 # note: $X_CFLAGS includes $x_includes
9645 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9647 if test \! -z "$libdir" ; then
9648 LDFLAGS="$LDFLAGS -L$libdir"
9650 # note: $X_LIBS includes $x_libraries
9651 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9653 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9654 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeSetGammaRamp in -lXxf86vm" >&5
9656 $as_echo_n "checking for XF86VidModeSetGammaRamp in -lXxf86vm... " >&6; }
9657 if ${ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp+:} false; then :
9658 $as_echo_n "(cached) " >&6
9660 ac_check_lib_save_LIBS=$LIBS
9661 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
9662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9663 /* end confdefs.h. */
9665 /* Override any GCC internal prototype to avoid an error.
9666 Use char because int might match the return type of a GCC
9667 builtin and then its argument prototype would still apply. */
9671 char XF86VidModeSetGammaRamp ();
9675 return XF86VidModeSetGammaRamp ();
9680 if ac_fn_c_try_link "$LINENO"; then :
9681 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=yes
9683 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=no
9685 rm -f core conftest.err conftest.$ac_objext \
9686 conftest$ac_exeext conftest.$ac_ext
9687 LIBS=$ac_check_lib_save_LIBS
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&5
9690 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&6; }
9691 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" = xyes; then :
9692 have_xf86gamma_ramp=yes
9697 CPPFLAGS="$ac_save_CPPFLAGS"
9698 LDFLAGS="$ac_save_LDFLAGS"
9699 # LIBS="$ac_save_LIBS"
9703 # if those tests succeeded, then we've really got the functions.
9704 if test "$have_xf86gamma" = yes; then
9705 $as_echo "#define HAVE_XF86VMODE_GAMMA 1" >>confdefs.h
9709 if test "$have_xf86gamma_ramp" = yes; then
9710 $as_echo "#define HAVE_XF86VMODE_GAMMA_RAMP 1" >>confdefs.h
9714 # pull in the lib, if we haven't already
9715 if test "$have_xf86gamma" = yes -a "$have_xf86vmode" = no; then
9716 SAVER_LIBS="$SAVER_LIBS -lXxf86vm"
9719 elif test "$with_xf86gamma" != no; then
9720 echo "error: must be yes or no: --with-xf86gamma-ext=$with_xf86vmode"
9725 ###############################################################################
9727 # Check for the RANDR (Resize and Rotate) server extension.
9729 # We need this to detect when the resolution of the desktop
9730 # has changed out from under us (this is a newer, different
9731 # mechanism than the XF86VMODE virtual viewports.)
9733 ###############################################################################
9736 with_randr_req=unspecified
9738 # Check whether --with-randr-ext was given.
9739 if test "${with_randr_ext+set}" = set; then :
9740 withval=$with_randr_ext; with_randr="$withval"; with_randr_req="$withval"
9747 case "$with_randr" in
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RANDR headers" >&5
9753 $as_echo_n "checking for RANDR headers... " >&6; }
9754 d=$with_randr/include
9756 X_CFLAGS="-I$d $X_CFLAGS"
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
9758 $as_echo "$d" >&6; }
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
9761 $as_echo "not found ($d: no such directory)" >&6; }
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RANDR libs" >&5
9765 $as_echo_n "checking for RANDR libs... " >&6; }
9768 X_LIBS="-L$d $X_LIBS"
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
9770 $as_echo "$d" >&6; }
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
9773 $as_echo "not found ($d: no such directory)" >&6; }
9776 # replace the directory string with "yes".
9777 with_randr_req="yes"
9778 with_randr=$with_randr_req
9783 echo "error: argument to --with-randr-ext must be \"yes\", \"no\", or a directory."
9784 echo " If it is a directory, then \`DIR/include' will be added to"
9785 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9791 if test "$with_randr" = yes; then
9793 # first check for Xrandr.h
9795 ac_save_CPPFLAGS="$CPPFLAGS"
9796 if test \! -z "$includedir" ; then
9797 CPPFLAGS="$CPPFLAGS -I$includedir"
9799 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9800 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9801 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "#include <X11/Xlib.h>
9803 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = xyes; then :
9808 CPPFLAGS="$ac_save_CPPFLAGS"
9810 # if that succeeded, then check for the XRR code in the libraries
9811 if test "$have_randr" = yes; then
9813 # RANDR probably needs -lXrender
9816 ac_save_CPPFLAGS="$CPPFLAGS"
9817 ac_save_LDFLAGS="$LDFLAGS"
9818 # ac_save_LIBS="$LIBS"
9820 if test \! -z "$includedir" ; then
9821 CPPFLAGS="$CPPFLAGS -I$includedir"
9823 # note: $X_CFLAGS includes $x_includes
9824 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9826 if test \! -z "$libdir" ; then
9827 LDFLAGS="$LDFLAGS -L$libdir"
9829 # note: $X_LIBS includes $x_libraries
9830 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9832 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9833 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetSubpixelOrder in -lXrender" >&5
9835 $as_echo_n "checking for XRenderSetSubpixelOrder in -lXrender... " >&6; }
9836 if ${ac_cv_lib_Xrender_XRenderSetSubpixelOrder+:} false; then :
9837 $as_echo_n "(cached) " >&6
9839 ac_check_lib_save_LIBS=$LIBS
9840 LIBS="-lXrender -lXext -lX11 $LIBS"
9841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9842 /* end confdefs.h. */
9844 /* Override any GCC internal prototype to avoid an error.
9845 Use char because int might match the return type of a GCC
9846 builtin and then its argument prototype would still apply. */
9850 char XRenderSetSubpixelOrder ();
9854 return XRenderSetSubpixelOrder ();
9859 if ac_fn_c_try_link "$LINENO"; then :
9860 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=yes
9862 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=no
9864 rm -f core conftest.err conftest.$ac_objext \
9865 conftest$ac_exeext conftest.$ac_ext
9866 LIBS=$ac_check_lib_save_LIBS
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&5
9869 $as_echo "$ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&6; }
9870 if test "x$ac_cv_lib_Xrender_XRenderSetSubpixelOrder" = xyes; then :
9871 xrender_libs="-lXrender"
9876 CPPFLAGS="$ac_save_CPPFLAGS"
9877 LDFLAGS="$ac_save_LDFLAGS"
9878 # LIBS="$ac_save_LIBS"
9881 # first look for RANDR in -lXext
9884 ac_save_CPPFLAGS="$CPPFLAGS"
9885 ac_save_LDFLAGS="$LDFLAGS"
9886 # ac_save_LIBS="$LIBS"
9888 if test \! -z "$includedir" ; then
9889 CPPFLAGS="$CPPFLAGS -I$includedir"
9891 # note: $X_CFLAGS includes $x_includes
9892 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9894 if test \! -z "$libdir" ; then
9895 LDFLAGS="$LDFLAGS -L$libdir"
9897 # note: $X_LIBS includes $x_libraries
9898 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9900 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9901 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenInfo in -lXext" >&5
9903 $as_echo_n "checking for XRRGetScreenInfo in -lXext... " >&6; }
9904 if ${ac_cv_lib_Xext_XRRGetScreenInfo+:} false; then :
9905 $as_echo_n "(cached) " >&6
9907 ac_check_lib_save_LIBS=$LIBS
9908 LIBS="-lXext $xrender_libs -lXext -lX11 $LIBS"
9909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9910 /* end confdefs.h. */
9912 /* Override any GCC internal prototype to avoid an error.
9913 Use char because int might match the return type of a GCC
9914 builtin and then its argument prototype would still apply. */
9918 char XRRGetScreenInfo ();
9922 return XRRGetScreenInfo ();
9927 if ac_fn_c_try_link "$LINENO"; then :
9928 ac_cv_lib_Xext_XRRGetScreenInfo=yes
9930 ac_cv_lib_Xext_XRRGetScreenInfo=no
9932 rm -f core conftest.err conftest.$ac_objext \
9933 conftest$ac_exeext conftest.$ac_ext
9934 LIBS=$ac_check_lib_save_LIBS
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XRRGetScreenInfo" >&5
9937 $as_echo "$ac_cv_lib_Xext_XRRGetScreenInfo" >&6; }
9938 if test "x$ac_cv_lib_Xext_XRRGetScreenInfo" = xyes; then :
9939 have_randr=yes; SAVER_LIBS="$SAVER_LIBS $xrender_libs"
9944 CPPFLAGS="$ac_save_CPPFLAGS"
9945 LDFLAGS="$ac_save_LDFLAGS"
9946 # LIBS="$ac_save_LIBS"
9949 # if that failed, look in -lXrandr
9950 if test "$have_randr" = no; then
9952 ac_save_CPPFLAGS="$CPPFLAGS"
9953 ac_save_LDFLAGS="$LDFLAGS"
9954 # ac_save_LIBS="$LIBS"
9956 if test \! -z "$includedir" ; then
9957 CPPFLAGS="$CPPFLAGS -I$includedir"
9959 # note: $X_CFLAGS includes $x_includes
9960 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9962 if test \! -z "$libdir" ; then
9963 LDFLAGS="$LDFLAGS -L$libdir"
9965 # note: $X_LIBS includes $x_libraries
9966 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9968 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
9969 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenInfo in -lXrandr" >&5
9971 $as_echo_n "checking for XRRGetScreenInfo in -lXrandr... " >&6; }
9972 if ${ac_cv_lib_Xrandr_XRRGetScreenInfo+:} false; then :
9973 $as_echo_n "(cached) " >&6
9975 ac_check_lib_save_LIBS=$LIBS
9976 LIBS="-lXrandr $xrender_libs -lXext -lX11 $LIBS"
9977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978 /* end confdefs.h. */
9980 /* Override any GCC internal prototype to avoid an error.
9981 Use char because int might match the return type of a GCC
9982 builtin and then its argument prototype would still apply. */
9986 char XRRGetScreenInfo ();
9990 return XRRGetScreenInfo ();
9995 if ac_fn_c_try_link "$LINENO"; then :
9996 ac_cv_lib_Xrandr_XRRGetScreenInfo=yes
9998 ac_cv_lib_Xrandr_XRRGetScreenInfo=no
10000 rm -f core conftest.err conftest.$ac_objext \
10001 conftest$ac_exeext conftest.$ac_ext
10002 LIBS=$ac_check_lib_save_LIBS
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRGetScreenInfo" >&5
10005 $as_echo "$ac_cv_lib_Xrandr_XRRGetScreenInfo" >&6; }
10006 if test "x$ac_cv_lib_Xrandr_XRRGetScreenInfo" = xyes; then :
10007 have_randr=yes; SAVER_LIBS="$SAVER_LIBS -lXrandr $xrender_libs"
10012 CPPFLAGS="$ac_save_CPPFLAGS"
10013 LDFLAGS="$ac_save_LDFLAGS"
10014 # LIBS="$ac_save_LIBS"
10019 # if that succeeded, then we've really got it.
10020 if test "$have_randr" = yes; then
10021 $as_echo "#define HAVE_RANDR 1" >>confdefs.h
10024 # Now check for version 1.2 in the same libs.
10025 # Try to compile, since on MacOS 10.5.7, headers are older than libs!
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenResources" >&5
10027 $as_echo_n "checking for XRRGetScreenResources... " >&6; }
10028 if ${ac_cv_randr_12+:} false; then :
10029 $as_echo_n "(cached) " >&6
10033 ac_save_CPPFLAGS="$CPPFLAGS"
10034 if test \! -z "$includedir" ; then
10035 CPPFLAGS="$CPPFLAGS -I$includedir"
10037 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10038 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10040 /* end confdefs.h. */
10041 #include <stdlib.h>
10042 #include <X11/Xlib.h>
10043 #include <X11/extensions/Xrandr.h>
10047 XRRScreenResources *res =
10048 XRRGetScreenResources (0, 0);
10053 if ac_fn_c_try_compile "$LINENO"; then :
10058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10059 CPPFLAGS="$ac_save_CPPFLAGS"
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_randr_12" >&5
10062 $as_echo "$ac_cv_randr_12" >&6; }
10063 if test "$ac_cv_randr_12" = yes ; then
10064 $as_echo "#define HAVE_RANDR_12 1" >>confdefs.h
10067 # AC_CHECK_X_LIB(c, XRRGetOutputInfo, [AC_DEFINE(HAVE_RANDR_12)],
10068 # [true], $SAVER_LIBS)
10072 elif test "$with_randr" != no; then
10073 echo "error: must be yes or no: --with-randr-ext=$with_randr"
10078 ###############################################################################
10080 # Check for XF86MiscSetGrabKeysState (but only bother if we are already
10081 # using other XF86 stuff.)
10083 ###############################################################################
10085 have_xf86miscsetgrabkeysstate=no
10086 if test "$have_xf86gamma" = yes -o "$have_xf86vmode" = yes; then
10088 ac_save_CPPFLAGS="$CPPFLAGS"
10089 ac_save_LDFLAGS="$LDFLAGS"
10090 # ac_save_LIBS="$LIBS"
10092 if test \! -z "$includedir" ; then
10093 CPPFLAGS="$CPPFLAGS -I$includedir"
10095 # note: $X_CFLAGS includes $x_includes
10096 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10098 if test \! -z "$libdir" ; then
10099 LDFLAGS="$LDFLAGS -L$libdir"
10101 # note: $X_LIBS includes $x_libraries
10102 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10104 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10105 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86MiscSetGrabKeysState in -lXxf86misc" >&5
10107 $as_echo_n "checking for XF86MiscSetGrabKeysState in -lXxf86misc... " >&6; }
10108 if ${ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState+:} false; then :
10109 $as_echo_n "(cached) " >&6
10111 ac_check_lib_save_LIBS=$LIBS
10112 LIBS="-lXxf86misc -lXext -lX11 $LIBS"
10113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10114 /* end confdefs.h. */
10116 /* Override any GCC internal prototype to avoid an error.
10117 Use char because int might match the return type of a GCC
10118 builtin and then its argument prototype would still apply. */
10122 char XF86MiscSetGrabKeysState ();
10126 return XF86MiscSetGrabKeysState ();
10131 if ac_fn_c_try_link "$LINENO"; then :
10132 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=yes
10134 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=no
10136 rm -f core conftest.err conftest.$ac_objext \
10137 conftest$ac_exeext conftest.$ac_ext
10138 LIBS=$ac_check_lib_save_LIBS
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&5
10141 $as_echo "$ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&6; }
10142 if test "x$ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" = xyes; then :
10143 have_xf86miscsetgrabkeysstate=yes
10148 CPPFLAGS="$ac_save_CPPFLAGS"
10149 LDFLAGS="$ac_save_LDFLAGS"
10150 # LIBS="$ac_save_LIBS"
10152 if test "$have_xf86miscsetgrabkeysstate" = yes ; then
10153 SAVER_LIBS="$SAVER_LIBS -lXxf86misc"
10154 $as_echo "#define HAVE_XF86MISCSETGRABKEYSSTATE 1" >>confdefs.h
10160 ###############################################################################
10162 # Check for HP XHPDisableReset and XHPEnableReset.
10164 ###############################################################################
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XHPDisableReset in X11/XHPlib.h" >&5
10167 $as_echo_n "checking for XHPDisableReset in X11/XHPlib.h... " >&6; }
10169 ac_save_CPPFLAGS="$CPPFLAGS"
10170 if test \! -z "$includedir" ; then
10171 CPPFLAGS="$CPPFLAGS -I$includedir"
10173 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10174 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10176 /* end confdefs.h. */
10177 #include <X11/XHPlib.h>
10180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10181 $EGREP "XHPDisableReset" >/dev/null 2>&1; then :
10182 $as_echo "#define HAVE_XHPDISABLERESET 1" >>confdefs.h
10184 SAVER_LIBS="-lXhp11 $SAVER_LIBS"
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10186 $as_echo "yes" >&6; }
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10189 $as_echo "no" >&6; }
10193 CPPFLAGS="$ac_save_CPPFLAGS"
10196 ###############################################################################
10198 # Check for /proc/interrupts.
10200 ###############################################################################
10202 have_proc_interrupts=no
10203 with_proc_interrupts_req=unspecified
10205 # Check whether --with-proc-interrupts was given.
10206 if test "${with_proc_interrupts+set}" = set; then :
10207 withval=$with_proc_interrupts; with_proc_interrupts="$withval"; with_proc_interrupts_req="$withval"
10209 with_proc_interrupts=yes
10213 if test "$with_proc_interrupts" = yes; then
10215 # Note that we may be building in an environment (e.g. Debian buildd chroot)
10216 # without a proper /proc filesystem. If /proc/interrupts exists, then we'll
10217 # check that it has the bits we need, but otherwise we'll just go on faith.
10219 have_proc_interrupts=yes
10221 if test -f /proc/interrupts; then
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /proc/interrupts contains keyboard data" >&5
10223 $as_echo_n "checking whether /proc/interrupts contains keyboard data... " >&6; }
10224 if ${ac_cv_have_proc_interrupts+:} false; then :
10225 $as_echo_n "(cached) " >&6
10227 ac_cv_have_proc_interrupts=no
10228 if grep 'keyboard\|i8042' /proc/interrupts >/dev/null 2>&1 ; then
10229 ac_cv_have_proc_interrupts=yes
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_proc_interrupts" >&5
10234 $as_echo "$ac_cv_have_proc_interrupts" >&6; }
10235 have_proc_interrupts=$ac_cv_have_proc_interrupts
10238 if test "$have_proc_interrupts" = yes; then
10239 $as_echo "#define HAVE_PROC_INTERRUPTS 1" >>confdefs.h
10243 elif test "$with_proc_interrupts" != no; then
10244 echo "error: must be yes or no: --with-proc-interrupts=$with_proc_interrupts"
10249 ###############################################################################
10251 # The --enable-locking option
10253 ###############################################################################
10255 # Check whether --enable-locking was given.
10256 if test "${enable_locking+set}" = set; then :
10257 enableval=$enable_locking; enable_locking="$enableval"
10259 if test "$ac_macosx" = yes; then
10260 # We can't lock on MacOS X, so default to not compiling in support for it.
10261 # But allow --enable-locking to override that, so I can debug Linux locking
10269 if test "$enable_locking" = yes; then
10271 elif test "$enable_locking" = no; then
10272 $as_echo "#define NO_LOCKING 1" >>confdefs.h
10275 echo "error: must be yes or no: --enable-locking=$enable_locking"
10280 ###############################################################################
10282 # Whether to allow root password to unblank.
10284 ###############################################################################
10285 # Check whether --enable-root-passwd was given.
10286 if test "${enable_root_passwd+set}" = set; then :
10287 enableval=$enable_root_passwd; enable_root_passwd="$enableval"
10289 enable_root_passwd=yes
10292 if test "$enable_root_passwd" = yes; then
10293 $as_echo "#define ALLOW_ROOT_PASSWD 1" >>confdefs.h
10296 elif test "$enable_root_passwd" != no; then
10297 echo "error: must be yes or no: --enable-root-passwd=$enable_root_passwd"
10301 ###############################################################################
10305 ###############################################################################
10309 # Solaris systems tend to come with PAM misconfigured.
10310 # Don't build it by default, even if the headers exist.
10311 with_pam_default=no
10314 # Default to building PAM support on all other systems, if it exists.
10315 with_pam_default=yes
10320 with_pam_req=unspecified
10323 # Check whether --with-pam was given.
10324 if test "${with_pam+set}" = set; then :
10325 withval=$with_pam; with_pam="$withval"; with_pam_req="$withval"
10327 with_pam=$with_pam_default
10332 # Check whether --with-pam_service_name was given.
10333 if test "${with_pam_service_name+set}" = set; then :
10334 withval=$with_pam_service_name; pam_service_name="$withval"
10336 pam_service_name="xscreensaver"
10340 # Check whether --enable-pam-check-account-type was given.
10341 if test "${enable_pam_check_account_type+set}" = set; then :
10342 enableval=$enable_pam_check_account_type; enable_pam_check_account_type="$enableval"
10344 enable_pam_check_account_type=no
10347 if test "$enable_pam_check_account_type" = yes ; then
10348 $as_echo "#define PAM_CHECK_ACCOUNT_TYPE 1" >>confdefs.h
10351 elif test "$enable_pam_check_account_type" != no ; then
10352 echo "error: must be yes or no: --enable-pam-check-account-type=$enable_pam_check_account_type"
10357 case "$with_pam" in
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAM headers" >&5
10363 $as_echo_n "checking for PAM headers... " >&6; }
10364 d=$with_pam/include
10365 if test -d $d; then
10366 X_CFLAGS="-I$d $X_CFLAGS"
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
10368 $as_echo "$d" >&6; }
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
10371 $as_echo "not found ($d: no such directory)" >&6; }
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAM libs" >&5
10375 $as_echo_n "checking for PAM libs... " >&6; }
10377 if test -d $d; then
10378 X_LIBS="-L$d $X_LIBS"
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
10380 $as_echo "$d" >&6; }
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
10383 $as_echo "not found ($d: no such directory)" >&6; }
10386 # replace the directory string with "yes".
10388 with_pam=$with_pam_req
10393 echo "error: argument to --with-pam must be \"yes\", \"no\", or a directory."
10394 echo " If it is a directory, then \`DIR/include' will be added to"
10395 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10401 if test "$enable_locking" = yes -a "$with_pam" = yes; then
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAM" >&5
10403 $as_echo_n "checking for PAM... " >&6; }
10404 if ${ac_cv_pam+:} false; then :
10405 $as_echo_n "(cached) " >&6
10408 ac_save_CPPFLAGS="$CPPFLAGS"
10409 if test \! -z "$includedir" ; then
10410 CPPFLAGS="$CPPFLAGS -I$includedir"
10412 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10413 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10415 /* end confdefs.h. */
10416 #include <security/pam_appl.h>
10425 if ac_fn_c_try_compile "$LINENO"; then :
10430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10431 CPPFLAGS="$ac_save_CPPFLAGS"
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pam" >&5
10434 $as_echo "$ac_cv_pam" >&6; }
10435 if test "$ac_cv_pam" = yes ; then
10437 $as_echo "#define HAVE_PAM 1" >>confdefs.h
10439 cat >>confdefs.h <<_ACEOF
10440 #define PAM_SERVICE_NAME "$pam_service_name"
10444 PASSWD_LIBS="${PASSWD_LIBS} -lpam"
10446 # libpam typically requires dlopen and dlsym. On FreeBSD,
10447 # those are in libc. On Linux and Solaris, they're in libdl.
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10449 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10450 if ${ac_cv_lib_dl_dlopen+:} false; then :
10451 $as_echo_n "(cached) " >&6
10453 ac_check_lib_save_LIBS=$LIBS
10455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10456 /* end confdefs.h. */
10458 /* Override any GCC internal prototype to avoid an error.
10459 Use char because int might match the return type of a GCC
10460 builtin and then its argument prototype would still apply. */
10473 if ac_fn_c_try_link "$LINENO"; then :
10474 ac_cv_lib_dl_dlopen=yes
10476 ac_cv_lib_dl_dlopen=no
10478 rm -f core conftest.err conftest.$ac_objext \
10479 conftest$ac_exeext conftest.$ac_ext
10480 LIBS=$ac_check_lib_save_LIBS
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10483 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10484 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10485 PASSWD_LIBS="${PASSWD_LIBS} -ldl"
10489 # On Linux, sigtimedwait() is in libc; on Solaris, it's in librt.
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigtimedwait in -lc" >&5
10492 $as_echo_n "checking for sigtimedwait in -lc... " >&6; }
10493 if ${ac_cv_lib_c_sigtimedwait+:} false; then :
10494 $as_echo_n "(cached) " >&6
10496 ac_check_lib_save_LIBS=$LIBS
10498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10499 /* end confdefs.h. */
10501 /* Override any GCC internal prototype to avoid an error.
10502 Use char because int might match the return type of a GCC
10503 builtin and then its argument prototype would still apply. */
10507 char sigtimedwait ();
10511 return sigtimedwait ();
10516 if ac_fn_c_try_link "$LINENO"; then :
10517 ac_cv_lib_c_sigtimedwait=yes
10519 ac_cv_lib_c_sigtimedwait=no
10521 rm -f core conftest.err conftest.$ac_objext \
10522 conftest$ac_exeext conftest.$ac_ext
10523 LIBS=$ac_check_lib_save_LIBS
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigtimedwait" >&5
10526 $as_echo "$ac_cv_lib_c_sigtimedwait" >&6; }
10527 if test "x$ac_cv_lib_c_sigtimedwait" = xyes; then :
10529 $as_echo "#define HAVE_SIGTIMEDWAIT 1" >>confdefs.h
10533 if test "$have_timedwait" = no ; then
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigtimedwait in -lrt" >&5
10535 $as_echo_n "checking for sigtimedwait in -lrt... " >&6; }
10536 if ${ac_cv_lib_rt_sigtimedwait+:} false; then :
10537 $as_echo_n "(cached) " >&6
10539 ac_check_lib_save_LIBS=$LIBS
10541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10542 /* end confdefs.h. */
10544 /* Override any GCC internal prototype to avoid an error.
10545 Use char because int might match the return type of a GCC
10546 builtin and then its argument prototype would still apply. */
10550 char sigtimedwait ();
10554 return sigtimedwait ();
10559 if ac_fn_c_try_link "$LINENO"; then :
10560 ac_cv_lib_rt_sigtimedwait=yes
10562 ac_cv_lib_rt_sigtimedwait=no
10564 rm -f core conftest.err conftest.$ac_objext \
10565 conftest$ac_exeext conftest.$ac_ext
10566 LIBS=$ac_check_lib_save_LIBS
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sigtimedwait" >&5
10569 $as_echo "$ac_cv_lib_rt_sigtimedwait" >&6; }
10570 if test "x$ac_cv_lib_rt_sigtimedwait" = xyes; then :
10572 $as_echo "#define HAVE_SIGTIMEDWAIT 1" >>confdefs.h
10574 PASSWD_LIBS="${PASSWD_LIBS} -lrt"
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to call pam_strerror" >&5
10580 $as_echo_n "checking how to call pam_strerror... " >&6; }
10581 if ${ac_cv_pam_strerror_args+:} false; then :
10582 $as_echo_n "(cached) " >&6
10585 ac_save_CPPFLAGS="$CPPFLAGS"
10586 if test \! -z "$includedir" ; then
10587 CPPFLAGS="$CPPFLAGS -I$includedir"
10589 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10590 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h. */
10594 #include <stdlib.h>
10595 #include <security/pam_appl.h>
10599 pam_handle_t *pamh = 0;
10600 char *s = pam_strerror(pamh, PAM_SUCCESS);
10605 if ac_fn_c_try_compile "$LINENO"; then :
10606 ac_pam_strerror_args=2
10609 ac_save_CPPFLAGS="$CPPFLAGS"
10610 if test \! -z "$includedir" ; then
10611 CPPFLAGS="$CPPFLAGS -I$includedir"
10613 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10614 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10616 /* end confdefs.h. */
10618 #include <stdlib.h>
10619 #include <security/pam_appl.h>
10624 pam_strerror(PAM_SUCCESS);
10629 if ac_fn_c_try_compile "$LINENO"; then :
10630 ac_pam_strerror_args=1
10632 ac_pam_strerror_args=0
10634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10635 CPPFLAGS="$ac_save_CPPFLAGS"
10637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10638 CPPFLAGS="$ac_save_CPPFLAGS"
10639 ac_cv_pam_strerror_args=$ac_pam_strerror_args
10642 ac_pam_strerror_args=$ac_cv_pam_strerror_args
10643 if test "$ac_pam_strerror_args" = 1 ; then
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: one argument" >&5
10645 $as_echo "one argument" >&6; }
10646 elif test "$ac_pam_strerror_args" = 2 ; then
10647 $as_echo "#define PAM_STRERROR_TWO_ARGS 1" >>confdefs.h
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: two arguments" >&5
10650 $as_echo "two arguments" >&6; }
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
10653 $as_echo "unknown" >&6; }
10656 # Check pam_fail_delay
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pam_fail_delay in -lpam" >&5
10658 $as_echo_n "checking pam_fail_delay in -lpam... " >&6; }
10659 if ${ac_cv_pam_fail_delay+:} false; then :
10660 $as_echo_n "(cached) " >&6
10662 ac_save_LDFLAGS="$LDFLAGS"
10664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10665 /* end confdefs.h. */
10666 #include <security/pam_appl.h>
10670 pam_handle_t *pamh = 0;
10671 unsigned int usec = 1;
10672 int status = pam_fail_delay (pamh, usec);
10677 if ac_fn_c_try_link "$LINENO"; then :
10678 ac_pam_fail_delay=yes
10680 ac_pam_fail_delay=no
10682 rm -f core conftest.err conftest.$ac_objext \
10683 conftest$ac_exeext conftest.$ac_ext
10684 ac_cv_pam_fail_delay=$ac_pam_fail_delay,
10685 LDFLAGS=$ac_save_LDFLAGS
10689 if test "$ac_pam_fail_delay" = yes ; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10691 $as_echo "yes" >&6; }
10692 $as_echo "#define HAVE_PAM_FAIL_DELAY 1" >>confdefs.h
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10696 $as_echo "no" >&6; }
10703 ###############################################################################
10705 # Check for Kerberos.
10707 ###############################################################################
10711 with_kerberos_req=unspecified
10714 # Check whether --with-kerberos was given.
10715 if test "${with_kerberos+set}" = set; then :
10716 withval=$with_kerberos; with_kerberos="$withval"; with_kerberos_req="$withval"
10723 case "$with_kerberos" in
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos headers" >&5
10729 $as_echo_n "checking for Kerberos headers... " >&6; }
10730 d=$with_kerberos/include
10731 if test -d $d; then
10732 X_CFLAGS="-I$d $X_CFLAGS"
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
10734 $as_echo "$d" >&6; }
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
10737 $as_echo "not found ($d: no such directory)" >&6; }
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos libs" >&5
10741 $as_echo_n "checking for Kerberos libs... " >&6; }
10742 d=$with_kerberos/lib
10743 if test -d $d; then
10744 X_LIBS="-L$d $X_LIBS"
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
10746 $as_echo "$d" >&6; }
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
10749 $as_echo "not found ($d: no such directory)" >&6; }
10752 # replace the directory string with "yes".
10753 with_kerberos_req="yes"
10754 with_kerberos=$with_kerberos_req
10759 echo "error: argument to --with-kerberos must be \"yes\", \"no\", or a directory."
10760 echo " If it is a directory, then \`DIR/include' will be added to"
10761 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10767 if test "$enable_locking" = yes -a "$with_kerberos" = yes; then
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos 4" >&5
10769 $as_echo_n "checking for Kerberos 4... " >&6; }
10770 if ${ac_cv_kerberos+:} false; then :
10771 $as_echo_n "(cached) " >&6
10774 ac_save_CPPFLAGS="$CPPFLAGS"
10775 if test \! -z "$includedir" ; then
10776 CPPFLAGS="$CPPFLAGS -I$includedir"
10778 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10779 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10781 /* end confdefs.h. */
10791 if ac_fn_c_try_compile "$LINENO"; then :
10796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10797 CPPFLAGS="$ac_save_CPPFLAGS"
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kerberos" >&5
10800 $as_echo "$ac_cv_kerberos" >&6; }
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos 5" >&5
10802 $as_echo_n "checking for Kerberos 5... " >&6; }
10803 if ${ac_cv_kerberos5+:} false; then :
10804 $as_echo_n "(cached) " >&6
10807 ac_save_CPPFLAGS="$CPPFLAGS"
10808 if test \! -z "$includedir" ; then
10809 CPPFLAGS="$CPPFLAGS -I$includedir"
10811 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10812 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814 /* end confdefs.h. */
10815 #include <kerberosIV/krb.h>
10824 if ac_fn_c_try_compile "$LINENO"; then :
10825 ac_cv_kerberos5=yes
10829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10830 CPPFLAGS="$ac_save_CPPFLAGS"
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kerberos5" >&5
10833 $as_echo "$ac_cv_kerberos5" >&6; }
10835 if test "$ac_cv_kerberos" = yes ; then
10837 $as_echo "#define HAVE_KERBEROS 1" >>confdefs.h
10841 if test "$ac_cv_kerberos5" = yes ; then
10843 # Andrew Snare <ajs@pigpond.com> wrote:
10845 # You were assuming that if kerberosV (krb5) was found, then kerberosIV
10846 # (krb4) was also available. This turns out not to be the case with
10847 # mit-krb-1.2.7; apparently backwards-compatibility with KerberosIV
10850 # So, disable kerberosV support if libkrb4 can't be found.
10851 # This is not the best solution, but it makes the compile not fail.
10854 ac_save_CPPFLAGS="$CPPFLAGS"
10855 ac_save_LDFLAGS="$LDFLAGS"
10856 # ac_save_LIBS="$LIBS"
10858 if test \! -z "$includedir" ; then
10859 CPPFLAGS="$CPPFLAGS -I$includedir"
10861 # note: $X_CFLAGS includes $x_includes
10862 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10864 if test \! -z "$libdir" ; then
10865 LDFLAGS="$LDFLAGS -L$libdir"
10867 # note: $X_LIBS includes $x_libraries
10868 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10870 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10871 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_tf_realm in -lkrb4" >&5
10873 $as_echo_n "checking for krb_get_tf_realm in -lkrb4... " >&6; }
10874 if ${ac_cv_lib_krb4_krb_get_tf_realm+:} false; then :
10875 $as_echo_n "(cached) " >&6
10877 ac_check_lib_save_LIBS=$LIBS
10878 LIBS="-lkrb4 $LIBS"
10879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10880 /* end confdefs.h. */
10882 /* Override any GCC internal prototype to avoid an error.
10883 Use char because int might match the return type of a GCC
10884 builtin and then its argument prototype would still apply. */
10888 char krb_get_tf_realm ();
10892 return krb_get_tf_realm ();
10897 if ac_fn_c_try_link "$LINENO"; then :
10898 ac_cv_lib_krb4_krb_get_tf_realm=yes
10900 ac_cv_lib_krb4_krb_get_tf_realm=no
10902 rm -f core conftest.err conftest.$ac_objext \
10903 conftest$ac_exeext conftest.$ac_ext
10904 LIBS=$ac_check_lib_save_LIBS
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_tf_realm" >&5
10907 $as_echo "$ac_cv_lib_krb4_krb_get_tf_realm" >&6; }
10908 if test "x$ac_cv_lib_krb4_krb_get_tf_realm" = xyes; then :
10914 CPPFLAGS="$ac_save_CPPFLAGS"
10915 LDFLAGS="$ac_save_LDFLAGS"
10916 # LIBS="$ac_save_LIBS"
10918 if test "$have_kerberos" = yes ; then
10920 $as_echo "#define HAVE_KERBEROS 1" >>confdefs.h
10922 $as_echo "#define HAVE_KERBEROS5 1" >>confdefs.h
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&5
10927 $as_echo "$as_me: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&2;}
10932 if test "$have_kerberos5" = yes ; then
10933 # from Matt Knopp <mhat@infocalypse.netlag.com>
10934 # (who got it from amu@mit.edu)
10936 PASSWD_LIBS="$PASSWD_LIBS -lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
10938 # jwz: MacOS X uses -lkrb5, but not -lcrypt
10940 ac_save_CPPFLAGS="$CPPFLAGS"
10941 ac_save_LDFLAGS="$LDFLAGS"
10942 # ac_save_LIBS="$LIBS"
10944 if test \! -z "$includedir" ; then
10945 CPPFLAGS="$CPPFLAGS -I$includedir"
10947 # note: $X_CFLAGS includes $x_includes
10948 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10950 if test \! -z "$libdir" ; then
10951 LDFLAGS="$LDFLAGS -L$libdir"
10953 # note: $X_LIBS includes $x_libraries
10954 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10956 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10957 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10959 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
10960 if ${ac_cv_lib_crypt_crypt+:} false; then :
10961 $as_echo_n "(cached) " >&6
10963 ac_check_lib_save_LIBS=$LIBS
10964 LIBS="-lcrypt $LIBS"
10965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966 /* end confdefs.h. */
10968 /* Override any GCC internal prototype to avoid an error.
10969 Use char because int might match the return type of a GCC
10970 builtin and then its argument prototype would still apply. */
10983 if ac_fn_c_try_link "$LINENO"; then :
10984 ac_cv_lib_crypt_crypt=yes
10986 ac_cv_lib_crypt_crypt=no
10988 rm -f core conftest.err conftest.$ac_objext \
10989 conftest$ac_exeext conftest.$ac_ext
10990 LIBS=$ac_check_lib_save_LIBS
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10993 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10994 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
10995 PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
10998 CPPFLAGS="$ac_save_CPPFLAGS"
10999 LDFLAGS="$ac_save_LDFLAGS"
11000 # LIBS="$ac_save_LIBS"
11003 elif test "$have_kerberos" = yes ; then
11004 # from Tim Showalter <tjs@psaux.com> for FreeBSD 4.2
11005 PASSWD_LIBS="$PASSWD_LIBS -lkrb -ldes -lcom_err"
11008 if test "$have_kerberos" = yes ; then
11009 ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
11010 if test "x$ac_cv_func_res_search" = xyes; then :
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
11014 $as_echo_n "checking for res_search in -lresolv... " >&6; }
11015 if ${ac_cv_lib_resolv_res_search+:} false; then :
11016 $as_echo_n "(cached) " >&6
11018 ac_check_lib_save_LIBS=$LIBS
11019 LIBS="-lresolv $LIBS"
11020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11021 /* end confdefs.h. */
11023 /* Override any GCC internal prototype to avoid an error.
11024 Use char because int might match the return type of a GCC
11025 builtin and then its argument prototype would still apply. */
11029 char res_search ();
11033 return res_search ();
11038 if ac_fn_c_try_link "$LINENO"; then :
11039 ac_cv_lib_resolv_res_search=yes
11041 ac_cv_lib_resolv_res_search=no
11043 rm -f core conftest.err conftest.$ac_objext \
11044 conftest$ac_exeext conftest.$ac_ext
11045 LIBS=$ac_check_lib_save_LIBS
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
11048 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
11049 if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
11050 PASSWD_LIBS="${PASSWD_LIBS} -lresolv"
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&5
11053 $as_echo "$as_me: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&2;}
11063 ###############################################################################
11065 # Check for the nine billion variants of shadow passwords...
11067 ###############################################################################
11072 with_shadow_req=unspecified
11075 # Check whether --with-shadow was given.
11076 if test "${with_shadow+set}" = set; then :
11077 withval=$with_shadow; with_shadow="$withval"; with_shadow_req="$withval"
11084 case "$with_shadow" in
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shadow password headers" >&5
11090 $as_echo_n "checking for shadow password headers... " >&6; }
11091 d=$with_shadow/include
11092 if test -d $d; then
11093 X_CFLAGS="-I$d $X_CFLAGS"
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
11095 $as_echo "$d" >&6; }
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
11098 $as_echo "not found ($d: no such directory)" >&6; }
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shadow password libs" >&5
11102 $as_echo_n "checking for shadow password libs... " >&6; }
11104 if test -d $d; then
11105 X_LIBS="-L$d $X_LIBS"
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
11107 $as_echo "$d" >&6; }
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
11110 $as_echo "not found ($d: no such directory)" >&6; }
11113 # replace the directory string with "yes".
11114 with_shadow_req="yes"
11115 with_shadow=$with_shadow_req
11120 echo "error: argument to --with-shadow must be \"yes\", \"no\", or a directory."
11121 echo " If it is a directory, then \`DIR/include' will be added to"
11122 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11128 if test "$enable_locking" = no ; then
11134 ###############################################################################
11136 # Check for Sun "adjunct" passwords.
11138 ###############################################################################
11140 if test "$with_shadow" = yes ; then
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Sun-style shadow passwords" >&5
11142 $as_echo_n "checking for Sun-style shadow passwords... " >&6; }
11143 if ${ac_cv_sun_adjunct+:} false; then :
11144 $as_echo_n "(cached) " >&6
11147 ac_save_CPPFLAGS="$CPPFLAGS"
11148 if test \! -z "$includedir" ; then
11149 CPPFLAGS="$CPPFLAGS -I$includedir"
11151 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11152 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154 /* end confdefs.h. */
11155 #include <stdlib.h>
11156 #include <unistd.h>
11157 #include <sys/types.h>
11158 #include <sys/label.h>
11159 #include <sys/audit.h>
11160 #include <pwdadj.h>
11164 struct passwd_adjunct *p = getpwanam("nobody");
11165 const char *pw = p->pwa_passwd;
11170 if ac_fn_c_try_compile "$LINENO"; then :
11171 ac_cv_sun_adjunct=yes
11173 ac_cv_sun_adjunct=no
11175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11176 CPPFLAGS="$ac_save_CPPFLAGS"
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sun_adjunct" >&5
11179 $as_echo "$ac_cv_sun_adjunct" >&6; }
11180 if test "$ac_cv_sun_adjunct" = yes; then
11181 have_shadow_adjunct=yes
11188 ###############################################################################
11190 # Check for DEC and SCO so-called "enhanced" security.
11192 ###############################################################################
11194 if test "$with_shadow" = yes ; then
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEC-style shadow passwords" >&5
11196 $as_echo_n "checking for DEC-style shadow passwords... " >&6; }
11197 if ${ac_cv_enhanced_passwd+:} false; then :
11198 $as_echo_n "(cached) " >&6
11201 ac_save_CPPFLAGS="$CPPFLAGS"
11202 if test \! -z "$includedir" ; then
11203 CPPFLAGS="$CPPFLAGS -I$includedir"
11205 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11206 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11208 /* end confdefs.h. */
11209 #include <stdlib.h>
11210 #include <unistd.h>
11211 #include <sys/types.h>
11213 #include <sys/security.h>
11218 struct pr_passwd *p;
11220 set_auth_parameters(0, 0);
11221 check_auth_parameters();
11222 p = getprpwnam("nobody");
11223 pw = p->ufld.fd_encrypt;
11228 if ac_fn_c_try_compile "$LINENO"; then :
11229 ac_cv_enhanced_passwd=yes
11231 ac_cv_enhanced_passwd=no
11233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11234 CPPFLAGS="$ac_save_CPPFLAGS"
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enhanced_passwd" >&5
11237 $as_echo "$ac_cv_enhanced_passwd" >&6; }
11238 if test $ac_cv_enhanced_passwd = yes; then
11239 have_shadow_enhanced=yes
11243 # On SCO, getprpwnam() is in -lprot (which uses nap() from -lx)
11244 # (I'm told it needs -lcurses too, but I don't understand why.)
11245 # But on DEC, it's in -lsecurity.
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getprpwnam in -lprot" >&5
11248 $as_echo_n "checking for getprpwnam in -lprot... " >&6; }
11249 if ${ac_cv_lib_prot_getprpwnam+:} false; then :
11250 $as_echo_n "(cached) " >&6
11252 ac_check_lib_save_LIBS=$LIBS
11253 LIBS="-lprot -lx $LIBS"
11254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11255 /* end confdefs.h. */
11257 /* Override any GCC internal prototype to avoid an error.
11258 Use char because int might match the return type of a GCC
11259 builtin and then its argument prototype would still apply. */
11263 char getprpwnam ();
11267 return getprpwnam ();
11272 if ac_fn_c_try_link "$LINENO"; then :
11273 ac_cv_lib_prot_getprpwnam=yes
11275 ac_cv_lib_prot_getprpwnam=no
11277 rm -f core conftest.err conftest.$ac_objext \
11278 conftest$ac_exeext conftest.$ac_ext
11279 LIBS=$ac_check_lib_save_LIBS
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getprpwnam" >&5
11282 $as_echo "$ac_cv_lib_prot_getprpwnam" >&6; }
11283 if test "x$ac_cv_lib_prot_getprpwnam" = xyes; then :
11284 PASSWD_LIBS="$PASSWD_LIBS -lprot -lcurses -lx"
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getprpwnam in -lsecurity" >&5
11287 $as_echo_n "checking for getprpwnam in -lsecurity... " >&6; }
11288 if ${ac_cv_lib_security_getprpwnam+:} false; then :
11289 $as_echo_n "(cached) " >&6
11291 ac_check_lib_save_LIBS=$LIBS
11292 LIBS="-lsecurity $LIBS"
11293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11294 /* end confdefs.h. */
11296 /* Override any GCC internal prototype to avoid an error.
11297 Use char because int might match the return type of a GCC
11298 builtin and then its argument prototype would still apply. */
11302 char getprpwnam ();
11306 return getprpwnam ();
11311 if ac_fn_c_try_link "$LINENO"; then :
11312 ac_cv_lib_security_getprpwnam=yes
11314 ac_cv_lib_security_getprpwnam=no
11316 rm -f core conftest.err conftest.$ac_objext \
11317 conftest$ac_exeext conftest.$ac_ext
11318 LIBS=$ac_check_lib_save_LIBS
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_security_getprpwnam" >&5
11321 $as_echo "$ac_cv_lib_security_getprpwnam" >&6; }
11322 if test "x$ac_cv_lib_security_getprpwnam" = xyes; then :
11323 PASSWD_LIBS="$PASSWD_LIBS -lsecurity"
11331 ###############################################################################
11333 # Check for HP's entry in the "Not Invented Here" Sweepstakes.
11335 ###############################################################################
11337 if test "$with_shadow" = yes ; then
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-style shadow passwords" >&5
11339 $as_echo_n "checking for HP-style shadow passwords... " >&6; }
11340 if ${ac_cv_hpux_passwd+:} false; then :
11341 $as_echo_n "(cached) " >&6
11344 ac_save_CPPFLAGS="$CPPFLAGS"
11345 if test \! -z "$includedir" ; then
11346 CPPFLAGS="$CPPFLAGS -I$includedir"
11348 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11349 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11351 /* end confdefs.h. */
11352 #include <stdlib.h>
11353 #include <unistd.h>
11354 #include <sys/types.h>
11356 #include <hpsecurity.h>
11361 struct s_passwd *p = getspwnam("nobody");
11362 const char *pw = p->pw_passwd;
11367 if ac_fn_c_try_compile "$LINENO"; then :
11368 ac_cv_hpux_passwd=yes
11370 ac_cv_hpux_passwd=no
11372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11373 CPPFLAGS="$ac_save_CPPFLAGS"
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hpux_passwd" >&5
11376 $as_echo "$ac_cv_hpux_passwd" >&6; }
11377 if test "$ac_cv_hpux_passwd" = yes; then
11378 have_shadow_hpux=yes
11382 # on HPUX, bigcrypt is in -lsec
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bigcrypt in -lsec" >&5
11384 $as_echo_n "checking for bigcrypt in -lsec... " >&6; }
11385 if ${ac_cv_lib_sec_bigcrypt+:} false; then :
11386 $as_echo_n "(cached) " >&6
11388 ac_check_lib_save_LIBS=$LIBS
11390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11391 /* end confdefs.h. */
11393 /* Override any GCC internal prototype to avoid an error.
11394 Use char because int might match the return type of a GCC
11395 builtin and then its argument prototype would still apply. */
11403 return bigcrypt ();
11408 if ac_fn_c_try_link "$LINENO"; then :
11409 ac_cv_lib_sec_bigcrypt=yes
11411 ac_cv_lib_sec_bigcrypt=no
11413 rm -f core conftest.err conftest.$ac_objext \
11414 conftest$ac_exeext conftest.$ac_ext
11415 LIBS=$ac_check_lib_save_LIBS
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_bigcrypt" >&5
11418 $as_echo "$ac_cv_lib_sec_bigcrypt" >&6; }
11419 if test "x$ac_cv_lib_sec_bigcrypt" = xyes; then :
11420 PASSWD_LIBS="$PASSWD_LIBS -lsec"
11427 ###############################################################################
11429 # Check for FreeBSD-style shadow passwords.
11431 # On FreeBSD, getpwnam() and friends work just like on non-shadow-
11432 # password systems -- except you only get stuff in the pw_passwd field
11433 # if the running program is setuid. So, guess that we've got this
11434 # lossage to contend with if /etc/master.passwd exists, and default to
11435 # a setuid installation.
11437 ###############################################################################
11439 if test "$with_shadow" = yes ; then
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD-style shadow passwords" >&5
11441 $as_echo_n "checking for FreeBSD-style shadow passwords... " >&6; }
11442 if ${ac_cv_master_passwd+:} false; then :
11443 $as_echo_n "(cached) " >&6
11445 if test -f /etc/master.passwd ; then
11446 ac_cv_master_passwd=yes
11448 ac_cv_master_passwd=no
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_master_passwd" >&5
11452 $as_echo "$ac_cv_master_passwd" >&6; }
11453 if test "$ac_cv_master_passwd" = yes; then
11459 ###############################################################################
11461 # Check for traditional (ha!) shadow passwords.
11463 ###############################################################################
11465 if test "$with_shadow" = yes ; then
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for generic shadow passwords" >&5
11467 $as_echo_n "checking for generic shadow passwords... " >&6; }
11468 if ${ac_cv_shadow+:} false; then :
11469 $as_echo_n "(cached) " >&6
11472 ac_save_CPPFLAGS="$CPPFLAGS"
11473 if test \! -z "$includedir" ; then
11474 CPPFLAGS="$CPPFLAGS -I$includedir"
11476 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11477 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479 /* end confdefs.h. */
11480 #include <stdlib.h>
11481 #include <unistd.h>
11482 #include <sys/types.h>
11484 #include <shadow.h>
11488 struct spwd *p = getspnam("nobody");
11489 const char *pw = p->sp_pwdp;
11494 if ac_fn_c_try_compile "$LINENO"; then :
11499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11500 CPPFLAGS="$ac_save_CPPFLAGS"
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_shadow" >&5
11503 $as_echo "$ac_cv_shadow" >&6; }
11504 if test "$ac_cv_shadow" = yes; then
11508 # On some systems (UnixWare 2.1), getspnam() is in -lgen instead of -lc.
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lc" >&5
11511 $as_echo_n "checking for getspnam in -lc... " >&6; }
11512 if ${ac_cv_lib_c_getspnam+:} false; then :
11513 $as_echo_n "(cached) " >&6
11515 ac_check_lib_save_LIBS=$LIBS
11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h. */
11520 /* Override any GCC internal prototype to avoid an error.
11521 Use char because int might match the return type of a GCC
11522 builtin and then its argument prototype would still apply. */
11530 return getspnam ();
11535 if ac_fn_c_try_link "$LINENO"; then :
11536 ac_cv_lib_c_getspnam=yes
11538 ac_cv_lib_c_getspnam=no
11540 rm -f core conftest.err conftest.$ac_objext \
11541 conftest$ac_exeext conftest.$ac_ext
11542 LIBS=$ac_check_lib_save_LIBS
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getspnam" >&5
11545 $as_echo "$ac_cv_lib_c_getspnam" >&6; }
11546 if test "x$ac_cv_lib_c_getspnam" = xyes; then :
11550 if test "$have_getspnam" = no ; then
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5
11552 $as_echo_n "checking for getspnam in -lgen... " >&6; }
11553 if ${ac_cv_lib_gen_getspnam+:} false; then :
11554 $as_echo_n "(cached) " >&6
11556 ac_check_lib_save_LIBS=$LIBS
11558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h. */
11561 /* Override any GCC internal prototype to avoid an error.
11562 Use char because int might match the return type of a GCC
11563 builtin and then its argument prototype would still apply. */
11571 return getspnam ();
11576 if ac_fn_c_try_link "$LINENO"; then :
11577 ac_cv_lib_gen_getspnam=yes
11579 ac_cv_lib_gen_getspnam=no
11581 rm -f core conftest.err conftest.$ac_objext \
11582 conftest$ac_exeext conftest.$ac_ext
11583 LIBS=$ac_check_lib_save_LIBS
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5
11586 $as_echo "$ac_cv_lib_gen_getspnam" >&6; }
11587 if test "x$ac_cv_lib_gen_getspnam" = xyes; then :
11588 have_getspnam=yes; PASSWD_LIBS="$PASSWD_LIBS -lgen"
11596 ###############################################################################
11598 # Check for other libraries needed for non-shadow passwords.
11600 ###############################################################################
11602 if test "$enable_locking" = yes ; then
11604 # On some systems (UnixWare 2.1), crypt() is in -lcrypt instead of -lc.
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lc" >&5
11607 $as_echo_n "checking for crypt in -lc... " >&6; }
11608 if ${ac_cv_lib_c_crypt+:} false; then :
11609 $as_echo_n "(cached) " >&6
11611 ac_check_lib_save_LIBS=$LIBS
11613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11614 /* end confdefs.h. */
11616 /* Override any GCC internal prototype to avoid an error.
11617 Use char because int might match the return type of a GCC
11618 builtin and then its argument prototype would still apply. */
11631 if ac_fn_c_try_link "$LINENO"; then :
11632 ac_cv_lib_c_crypt=yes
11634 ac_cv_lib_c_crypt=no
11636 rm -f core conftest.err conftest.$ac_objext \
11637 conftest$ac_exeext conftest.$ac_ext
11638 LIBS=$ac_check_lib_save_LIBS
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_crypt" >&5
11641 $as_echo "$ac_cv_lib_c_crypt" >&6; }
11642 if test "x$ac_cv_lib_c_crypt" = xyes; then :
11646 if test "$have_crypt" = no ; then
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
11648 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
11649 if ${ac_cv_lib_crypt_crypt+:} false; then :
11650 $as_echo_n "(cached) " >&6
11652 ac_check_lib_save_LIBS=$LIBS
11653 LIBS="-lcrypt $LIBS"
11654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655 /* end confdefs.h. */
11657 /* Override any GCC internal prototype to avoid an error.
11658 Use char because int might match the return type of a GCC
11659 builtin and then its argument prototype would still apply. */
11672 if ac_fn_c_try_link "$LINENO"; then :
11673 ac_cv_lib_crypt_crypt=yes
11675 ac_cv_lib_crypt_crypt=no
11677 rm -f core conftest.err conftest.$ac_objext \
11678 conftest$ac_exeext conftest.$ac_ext
11679 LIBS=$ac_check_lib_save_LIBS
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
11682 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
11683 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
11684 have_crypt=yes; PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
11691 # Most of the above shadow mechanisms will have set need_setuid to yes,
11692 # if they were found. But, on some systems, we need setuid even when
11693 # using plain old vanilla passwords.
11695 if test "$enable_locking" = yes ; then
11697 *-hpux* | *-aix* | *-netbsd* | *-freebsd* | *-openbsd* )
11704 if test "$have_shadow_adjunct" = yes ; then
11705 $as_echo "#define HAVE_ADJUNCT_PASSWD 1" >>confdefs.h
11707 elif test "$have_shadow_enhanced" = yes ; then
11708 $as_echo "#define HAVE_ENHANCED_PASSWD 1" >>confdefs.h
11710 elif test "$have_shadow_hpux" = yes ; then
11711 $as_echo "#define HAVE_HPUX_PASSWD 1" >>confdefs.h
11713 elif test "$have_shadow" = yes ; then
11714 $as_echo "#define HAVE_SHADOW_PASSWD 1" >>confdefs.h
11719 ###############################################################################
11721 # Check for external password helper
11722 # On SuSE, instead of having xscreensaver be a setuid program, they
11723 # fork an external program that takes the password on stdin, and
11724 # returns true if that password is a valid one. Then only that
11725 # smaller program needs to be setuid.
11727 # (Note that this external program is not a GUI: the GUI is still
11728 # all in xscreensaver itself; the external program just does auth.)
11730 ###############################################################################
11732 have_passwd_helper=no
11733 with_passwd_helper_req=unspecified
11736 # Check whether --with-passwd-helper was given.
11737 if test "${with_passwd_helper+set}" = set; then :
11738 withval=$with_passwd_helper; with_passwd_helper="$withval"; with_passwd_helper_req="$withval"
11740 with_passwd_helper=no
11743 # no HANDLE_X_PATH_ARG for this one
11745 if test "$enable_locking" = no ; then
11746 with_passwd_helper_req=no
11747 with_passwd_helper=no
11750 case "$with_passwd_helper" in
11753 cat >>confdefs.h <<_ACEOF
11754 #define PASSWD_HELPER_PROGRAM "$with_passwd_helper"
11757 have_passwd_helper=yes;;
11759 echo "error: --with-passwd-helper needs full pathname of helper (not '$with_passwd_helper')." >&2
11764 ###############################################################################
11766 # Check for a login manager for a "New Login" button on the lock dialog.
11767 # Usually this will be "/usr/bin/gdmflexiserver".
11769 ###############################################################################
11771 with_login_manager_req=unspecified
11772 default_login_manager_1='gdmflexiserver -ls'
11773 default_login_manager_2='kdmctl reserve'
11776 # Check whether --with-login-manager was given.
11777 if test "${with_login_manager+set}" = set; then :
11778 withval=$with_login_manager; with_login_manager="$withval"; with_login_manager_req="$withval"
11780 with_login_manager=yes
11783 # no HANDLE_X_PATH_ARG for this one
11785 if test "$enable_locking" = no ; then
11786 with_login_manager_req=no
11787 with_login_manager=no
11790 case "$with_login_manager_req" in
11792 with_login_manager=""
11796 # Try both defaults, use the one that exists.
11798 set dummy $default_login_manager_1 ; login_manager_tmp=$2
11799 unset ac_cv_path_login_manager_tmp # don't cache
11800 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
11801 set dummy $login_manager_tmp; ac_word=$2
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11803 $as_echo_n "checking for $ac_word... " >&6; }
11804 if ${ac_cv_path_login_manager_tmp+:} false; then :
11805 $as_echo_n "(cached) " >&6
11807 case $login_manager_tmp in
11809 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
11812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11813 for as_dir in $PATH
11816 test -z "$as_dir" && as_dir=.
11817 for ac_exec_ext in '' $ac_executable_extensions; do
11818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11819 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
11820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11830 login_manager_tmp=$ac_cv_path_login_manager_tmp
11831 if test -n "$login_manager_tmp"; then
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $login_manager_tmp" >&5
11833 $as_echo "$login_manager_tmp" >&6; }
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836 $as_echo "no" >&6; }
11840 if test ! -z "$login_manager_tmp" ; then
11841 with_login_manager="$default_login_manager_1"
11843 set dummy $default_login_manager_2 ; login_manager_tmp=$2
11844 unset ac_cv_path_login_manager_tmp # don't cache
11845 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
11846 set dummy $login_manager_tmp; ac_word=$2
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11848 $as_echo_n "checking for $ac_word... " >&6; }
11849 if ${ac_cv_path_login_manager_tmp+:} false; then :
11850 $as_echo_n "(cached) " >&6
11852 case $login_manager_tmp in
11854 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
11857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11858 for as_dir in $PATH
11861 test -z "$as_dir" && as_dir=.
11862 for ac_exec_ext in '' $ac_executable_extensions; do
11863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11864 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
11865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11875 login_manager_tmp=$ac_cv_path_login_manager_tmp
11876 if test -n "$login_manager_tmp"; then
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $login_manager_tmp" >&5
11878 $as_echo "$login_manager_tmp" >&6; }
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881 $as_echo "no" >&6; }
11885 if test ! -z "$login_manager_tmp" ; then
11886 with_login_manager="$default_login_manager_2"
11888 with_login_manager=""
11894 # absolute path specified on cmd line
11895 set dummy $with_login_manager_req ; login_manager_tmp=$2
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $login_manager_tmp" >&5
11897 $as_echo_n "checking for $login_manager_tmp... " >&6; }
11898 if test -x "$login_manager_tmp" ; then
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11900 $as_echo "yes" >&6; }
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11903 $as_echo "no" >&6; }
11904 with_login_manager=""
11909 # relative path specified on cmd line
11910 set dummy $with_login_manager_req ; login_manager_tmp=$2
11911 unset ac_cv_path_login_manager_tmp # don't cache
11912 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
11913 set dummy $login_manager_tmp; ac_word=$2
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11915 $as_echo_n "checking for $ac_word... " >&6; }
11916 if ${ac_cv_path_login_manager_tmp+:} false; then :
11917 $as_echo_n "(cached) " >&6
11919 case $login_manager_tmp in
11921 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
11924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11925 for as_dir in $PATH
11928 test -z "$as_dir" && as_dir=.
11929 for ac_exec_ext in '' $ac_executable_extensions; do
11930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11931 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
11932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11942 login_manager_tmp=$ac_cv_path_login_manager_tmp
11943 if test -n "$login_manager_tmp"; then
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $login_manager_tmp" >&5
11945 $as_echo "$login_manager_tmp" >&6; }
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11948 $as_echo "no" >&6; }
11952 if test -z "$login_manager_tmp" ; then
11953 with_login_manager=""
11955 with_login_manager="$login_manager_tmp"
11959 ac_cv_login_manager_program="$with_login_manager"
11961 NEW_LOGIN_COMMAND_P=''
11962 NEW_LOGIN_COMMAND="$ac_cv_login_manager_program"
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for login manager" >&5
11965 $as_echo_n "checking for login manager... " >&6; }
11966 if test -z "$NEW_LOGIN_COMMAND" ; then
11967 NEW_LOGIN_COMMAND="$default_login_manager_1"
11968 NEW_LOGIN_COMMAND_P='! '
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NEW_LOGIN_COMMAND (disabled)" >&5
11970 $as_echo "$NEW_LOGIN_COMMAND (disabled)" >&6; }
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NEW_LOGIN_COMMAND" >&5
11973 $as_echo "$NEW_LOGIN_COMMAND" >&6; }
11977 ###############################################################################
11979 # Check for -lgtk (and Gnome stuff)
11981 ###############################################################################
11984 with_gtk_req=unspecified
11986 # Check whether --with-gtk was given.
11987 if test "${with_gtk+set}" = set; then :
11988 withval=$with_gtk; with_gtk="$withval"; with_gtk_req="$withval"
11994 # if --with-gtk=/directory/ was specified, remember that directory so that
11995 # we can also look for the `gtk-config' program in that directory.
11996 case "$with_gtk" in
11998 gtk_dir="$with_gtk"
12006 case "$with_gtk" in
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gtk headers" >&5
12012 $as_echo_n "checking for Gtk headers... " >&6; }
12013 d=$with_gtk/include
12014 if test -d $d; then
12015 X_CFLAGS="-I$d $X_CFLAGS"
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
12017 $as_echo "$d" >&6; }
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
12020 $as_echo "not found ($d: no such directory)" >&6; }
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gtk libs" >&5
12024 $as_echo_n "checking for Gtk libs... " >&6; }
12026 if test -d $d; then
12027 X_LIBS="-L$d $X_LIBS"
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
12029 $as_echo "$d" >&6; }
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
12032 $as_echo "not found ($d: no such directory)" >&6; }
12035 # replace the directory string with "yes".
12037 with_gtk=$with_gtk_req
12042 echo "error: argument to --with-gtk must be \"yes\", \"no\", or a directory."
12043 echo " If it is a directory, then \`DIR/include' will be added to"
12044 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12050 if test "$with_gtk" != yes -a "$with_gtk" != no ; then
12051 echo "error: must be yes or no: --with-gtk=$with_gtk"
12056 parse_gtk_version_string() {
12059 maj=`echo $ac_gtk_version_string | sed -n 's/\..*//p'`
12060 min=`echo $ac_gtk_version_string | sed -n 's/[^.]*\.\([^.]*\).*/\1/p'`
12062 ac_gtk_version=`echo "$maj * 1000 + $min" | bc`
12063 if test -z "$ac_gtk_version"; then
12064 ac_gtk_version=unknown
12065 ac_gtk_version_string=unknown
12069 # Find pkg-config... (need this for both gtk and gdk_pixbuf.)
12070 # if the user specified --with-gtk=/foo/ then look there.
12073 if test ! -z "$gtk_dir"; then
12074 # canonicalize slashes.
12075 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
12076 gtk_path="$foo:$gtk_path"
12079 for ac_prog in pkg-config
12081 # Extract the first word of "$ac_prog", so it can be a program name with args.
12082 set dummy $ac_prog; ac_word=$2
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12084 $as_echo_n "checking for $ac_word... " >&6; }
12085 if ${ac_cv_path_pkg_config+:} false; then :
12086 $as_echo_n "(cached) " >&6
12088 case $pkg_config in
12090 ac_cv_path_pkg_config="$pkg_config" # Let the user override the test with a path.
12093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094 for as_dir in $gtk_path
12097 test -z "$as_dir" && as_dir=.
12098 for ac_exec_ext in '' $ac_executable_extensions; do
12099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12100 ac_cv_path_pkg_config="$as_dir/$ac_word$ac_exec_ext"
12101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12111 pkg_config=$ac_cv_path_pkg_config
12112 if test -n "$pkg_config"; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config" >&5
12114 $as_echo "$pkg_config" >&6; }
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12121 test -n "$pkg_config" && break
12125 if test -z "$pkg_config" ; then
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found!" >&5
12127 $as_echo "$as_me: WARNING: pkg-config not found!" >&2;}
12132 # Utility function for running pkg-config-based tests...
12135 pkg_check_version() {
12136 if test "$ok" = yes ; then
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $req" >&5
12140 $as_echo_n "checking for $req... " >&6; }
12141 if $pkg_config --exists "$req" ; then
12142 vers=`$pkg_config --modversion "$req"`
12143 if $pkg_config --exists "$req >= $min" ; then
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vers" >&5
12145 $as_echo "$vers" >&6; }
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vers (wanted >= $min)" >&5
12150 $as_echo "$vers (wanted >= $min)" >&6; }
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12156 $as_echo "no" >&6; }
12166 have_gtk_2_22_or_higher=no
12167 COMMENT_DEMO_GLADE2_GTK_2_22_HEAD=""
12168 COMMENT_DEMO_GLADE2_GTK_2_22_TAIL=""
12170 if test "$with_gtk" = yes; then
12174 pkg_check_version gtk+-2.0 2.0.1 ; ac_gtk_version_string="$vers"
12175 pkg_check_version gmodule-2.0 2.0.0
12176 pkg_check_version libxml-2.0 2.4.6
12177 pkg_check_version libglade-2.0 1.99.0
12178 pkg_check_version gdk-pixbuf-2.0 2.0.0
12179 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
12182 if test "$have_gtk" = no; then
12183 if test -n "$ac_gtk_version_string" ; then
12184 gtk_halfassed="$ac_gtk_version_string"
12185 gtk_halfassed_lib="$req"
12189 if test "$have_gtk" = yes; then
12190 parse_gtk_version_string
12194 if test "$have_gtk" = yes; then
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gtk includes" >&5
12196 $as_echo_n "checking for Gtk includes... " >&6; }
12197 if ${ac_cv_gtk_config_cflags+:} false; then :
12198 $as_echo_n "(cached) " >&6
12200 ac_cv_gtk_config_cflags=`$pkg_config --cflags $pkgs`
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gtk_config_cflags" >&5
12203 $as_echo "$ac_cv_gtk_config_cflags" >&6; }
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gtk libs" >&5
12205 $as_echo_n "checking for Gtk libs... " >&6; }
12206 if ${ac_cv_gtk_config_libs+:} false; then :
12207 $as_echo_n "(cached) " >&6
12209 ac_cv_gtk_config_libs=`$pkg_config --libs $pkgs`
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gtk_config_libs" >&5
12212 $as_echo "$ac_cv_gtk_config_libs" >&6; }
12215 ac_gtk_config_cflags=$ac_cv_gtk_config_cflags
12216 ac_gtk_config_libs=$ac_cv_gtk_config_libs
12220 if test "$have_gtk" = yes; then
12221 GTK_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
12222 GTK_DATADIR="$GTK_DATADIR/share"
12225 if test "$have_gtk" = yes; then
12226 INCLUDES="$INCLUDES $ac_gtk_config_cflags"
12227 GTK_LIBS="$GTK_LIBS $ac_gtk_config_libs"
12228 $as_echo "#define HAVE_GTK 1" >>confdefs.h
12230 $as_echo "#define HAVE_GTK2 1" >>confdefs.h
12232 $as_echo "#define HAVE_XML 1" >>confdefs.h
12236 if test "$have_gtk" = yes; then
12238 pkg_check_version gtk+-2.0 2.22
12239 have_gtk_2_22_or_higher="$ok"
12240 if test "$have_gtk_2_22_or_higher" = yes; then
12241 COMMENT_DEMO_GLADE2_GTK_2_22_HEAD="<!-- comment>"
12242 COMMENT_DEMO_GLADE2_GTK_2_22_TAIL="</comment -->"
12248 # Check for the various Gnome help and URL loading programs.
12250 WITH_BROWSER=gnome-open
12251 if test "$have_gtk" = yes; then
12252 for ac_prog in gnome-open
12254 # Extract the first word of "$ac_prog", so it can be a program name with args.
12255 set dummy $ac_prog; ac_word=$2
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12257 $as_echo_n "checking for $ac_word... " >&6; }
12258 if ${ac_cv_prog_gnome_open_program+:} false; then :
12259 $as_echo_n "(cached) " >&6
12261 if test -n "$gnome_open_program"; then
12262 ac_cv_prog_gnome_open_program="$gnome_open_program" # Let the user override the test.
12264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12265 for as_dir in $PATH
12268 test -z "$as_dir" && as_dir=.
12269 for ac_exec_ext in '' $ac_executable_extensions; do
12270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12271 ac_cv_prog_gnome_open_program="$ac_prog"
12272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12281 gnome_open_program=$ac_cv_prog_gnome_open_program
12282 if test -n "$gnome_open_program"; then
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnome_open_program" >&5
12284 $as_echo "$gnome_open_program" >&6; }
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12287 $as_echo "no" >&6; }
12291 test -n "$gnome_open_program" && break
12294 for ac_prog in gnome-url-show
12296 # Extract the first word of "$ac_prog", so it can be a program name with args.
12297 set dummy $ac_prog; ac_word=$2
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12299 $as_echo_n "checking for $ac_word... " >&6; }
12300 if ${ac_cv_prog_gnome_url_show_program+:} false; then :
12301 $as_echo_n "(cached) " >&6
12303 if test -n "$gnome_url_show_program"; then
12304 ac_cv_prog_gnome_url_show_program="$gnome_url_show_program" # Let the user override the test.
12306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12307 for as_dir in $PATH
12310 test -z "$as_dir" && as_dir=.
12311 for ac_exec_ext in '' $ac_executable_extensions; do
12312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12313 ac_cv_prog_gnome_url_show_program="$ac_prog"
12314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12323 gnome_url_show_program=$ac_cv_prog_gnome_url_show_program
12324 if test -n "$gnome_url_show_program"; then
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnome_url_show_program" >&5
12326 $as_echo "$gnome_url_show_program" >&6; }
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12329 $as_echo "no" >&6; }
12333 test -n "$gnome_url_show_program" && break
12339 ###############################################################################
12343 ###############################################################################
12346 with_motif_req=unspecified
12348 # Check whether --with-motif was given.
12349 if test "${with_motif+set}" = set; then :
12350 withval=$with_motif; with_motif="$withval"; with_motif_req="$withval"
12357 case "$with_motif" in
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif headers" >&5
12363 $as_echo_n "checking for Motif headers... " >&6; }
12364 d=$with_motif/include
12365 if test -d $d; then
12366 X_CFLAGS="-I$d $X_CFLAGS"
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
12368 $as_echo "$d" >&6; }
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
12371 $as_echo "not found ($d: no such directory)" >&6; }
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif libs" >&5
12375 $as_echo_n "checking for Motif libs... " >&6; }
12377 if test -d $d; then
12378 X_LIBS="-L$d $X_LIBS"
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
12380 $as_echo "$d" >&6; }
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
12383 $as_echo "not found ($d: no such directory)" >&6; }
12386 # replace the directory string with "yes".
12387 with_motif_req="yes"
12388 with_motif=$with_motif_req
12393 echo "error: argument to --with-motif must be \"yes\", \"no\", or a directory."
12394 echo " If it is a directory, then \`DIR/include' will be added to"
12395 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12401 if test "$with_motif" != yes -a "$with_motif" != no ; then
12402 echo "error: must be yes or no: --with-motif=$with_motif"
12406 if test "$with_motif" = yes; then
12409 ac_save_CPPFLAGS="$CPPFLAGS"
12410 if test \! -z "$includedir" ; then
12411 CPPFLAGS="$CPPFLAGS -I$includedir"
12413 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12414 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12415 ac_fn_c_check_header_compile "$LINENO" "Xm/Xm.h" "ac_cv_header_Xm_Xm_h" "#include <stdlib.h>
12417 #include <X11/Intrinsic.h>
12419 if test "x$ac_cv_header_Xm_Xm_h" = xyes; then :
12421 $as_echo "#define HAVE_MOTIF 1" >>confdefs.h
12423 MOTIF_LIBS="$MOTIF_LIBS -lXm"
12427 CPPFLAGS="$ac_save_CPPFLAGS"
12431 if test "$have_motif" = yes; then
12433 ac_save_CPPFLAGS="$CPPFLAGS"
12434 if test \! -z "$includedir" ; then
12435 CPPFLAGS="$CPPFLAGS -I$includedir"
12437 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12438 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12439 ac_fn_c_check_header_compile "$LINENO" "Xm/ComboBox.h" "ac_cv_header_Xm_ComboBox_h" "#include <stdlib.h>
12441 #include <X11/Intrinsic.h>
12443 if test "x$ac_cv_header_Xm_ComboBox_h" = xyes; then :
12444 $as_echo "#define HAVE_XMCOMBOBOX 1" >>confdefs.h
12449 CPPFLAGS="$ac_save_CPPFLAGS"
12453 ###############################################################################
12455 # Checking whether Motif is really Lesstif.
12457 ###############################################################################
12460 if test "$have_motif" = yes ; then
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Motif is really LessTif" >&5
12462 $as_echo_n "checking whether Motif is really LessTif... " >&6; }
12463 if ${ac_cv_have_lesstif+:} false; then :
12464 $as_echo_n "(cached) " >&6
12467 ac_save_CPPFLAGS="$CPPFLAGS"
12468 if test \! -z "$includedir" ; then
12469 CPPFLAGS="$CPPFLAGS -I$includedir"
12471 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12472 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12474 /* end confdefs.h. */
12479 long vers = LesstifVersion;
12484 if ac_fn_c_try_compile "$LINENO"; then :
12485 ac_cv_have_lesstif=yes
12487 ac_cv_have_lesstif=no
12489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12490 CPPFLAGS="$ac_save_CPPFLAGS"
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lesstif" >&5
12493 $as_echo "$ac_cv_have_lesstif" >&6; }
12494 have_lesstif=$ac_cv_have_lesstif
12498 lesstif_version=unknown
12499 lesstif_version_string=unknown
12501 if test "$have_lesstif" = yes ; then
12503 echo unknown > conftest-lt
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LessTif version number" >&5
12505 $as_echo_n "checking LessTif version number... " >&6; }
12506 if ${ac_cv_lesstif_version_string+:} false; then :
12507 $as_echo_n "(cached) " >&6
12510 ac_save_CPPFLAGS="$CPPFLAGS"
12511 if test \! -z "$includedir" ; then
12512 CPPFLAGS="$CPPFLAGS -I$includedir"
12514 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12515 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12516 if test "$cross_compiling" = yes; then :
12517 ac_cv_lesstif_version=unknown
12518 ac_cv_lesstif_version_string=unknown
12520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12521 /* end confdefs.h. */
12525 FILE *f = fopen("conftest-lt", "w");
12527 fprintf(f, "%d %d.%d\n", LesstifVersion,
12528 LESSTIF_VERSION, LESSTIF_REVISION);
12533 if ac_fn_c_try_run "$LINENO"; then :
12534 ltv=`cat conftest-lt`
12535 ac_cv_lesstif_version=`echo $ltv | sed 's/ .*//'`
12536 ac_cv_lesstif_version_string=`echo $ltv | sed 's/.* //'`
12538 ac_cv_lesstif_version=unknown
12539 ac_cv_lesstif_version_string=unknown
12541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12542 conftest.$ac_objext conftest.beam conftest.$ac_ext
12545 CPPFLAGS="$ac_save_CPPFLAGS"
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lesstif_version_string" >&5
12548 $as_echo "$ac_cv_lesstif_version_string" >&6; }
12550 lesstif_version=$ac_cv_lesstif_version
12551 lesstif_version_string=$ac_cv_lesstif_version_string
12556 if test "$have_motif" = yes ; then
12558 echo unknown > conftest-mt
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Motif version number" >&5
12560 $as_echo_n "checking Motif version number... " >&6; }
12561 if ${ac_cv_motif_version_string+:} false; then :
12562 $as_echo_n "(cached) " >&6
12565 ac_save_CPPFLAGS="$CPPFLAGS"
12566 if test \! -z "$includedir" ; then
12567 CPPFLAGS="$CPPFLAGS -I$includedir"
12569 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12570 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12571 if test "$cross_compiling" = yes; then :
12572 ac_cv_motif_version=unknown
12573 ac_cv_motif_version_string=unknown
12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12576 /* end confdefs.h. */
12580 FILE *f = fopen("conftest-mt", "w");
12582 fprintf(f, "%d %d.%d\n", XmVersion,
12583 XmVERSION, XmREVISION);
12588 if ac_fn_c_try_run "$LINENO"; then :
12589 mtv=`cat conftest-mt`
12590 ac_cv_motif_version=`echo $mtv | sed 's/ .*//'`
12591 ac_cv_motif_version_string=`echo $mtv | sed 's/.* //'`
12593 ac_cv_motif_version=unknown
12594 ac_cv_motif_version_string=unknown
12596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12597 conftest.$ac_objext conftest.beam conftest.$ac_ext
12600 CPPFLAGS="$ac_save_CPPFLAGS"
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_motif_version_string" >&5
12603 $as_echo "$ac_cv_motif_version_string" >&6; }
12605 motif_version=$ac_cv_motif_version
12606 motif_version_string=$ac_cv_motif_version_string
12611 ###############################################################################
12613 # Checking whether Motif requires -lXpm.
12615 # If this is Motif 2.x, and we have XPM, then link against XPM as well.
12616 # The deal is, Motif 2.x requires XPM -- but it's a compilation option
12617 # of the library whether to build the XPM code into libXm, or whether
12618 # to rely on an external libXm. So the only way to tell whether XPM is
12619 # a link-time requirement is to examine libXm.a, which is very
12620 # difficult to do in an autoconf script. So... if it's Motif 2.x, we
12621 # always link against XPM if the XPM lib exists (and this will be a
12622 # no-op if libXm happens to already have the XPM code in it.)
12624 ###############################################################################
12626 motif_requires_xpm=no
12627 if test "$have_motif" = yes ; then
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Motif requires XPM" >&5
12629 $as_echo_n "checking whether Motif requires XPM... " >&6; }
12630 if test "$motif_version" = "unknown" || test "$motif_version" -ge 2000
12632 motif_requires_xpm=yes
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
12634 $as_echo "maybe" >&6; }
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12637 $as_echo "no" >&6; }
12642 ###############################################################################
12644 # Checking whether Motif requires -lXp.
12646 # Some versions of Motif (2.1.0, at least) require -lXp, the "X Printing
12647 # Extension". Why this extension isn't in -lXext with all the others,
12650 ###############################################################################
12653 if test "$have_motif" = yes ; then
12656 ac_save_CPPFLAGS="$CPPFLAGS"
12657 ac_save_LDFLAGS="$LDFLAGS"
12658 # ac_save_LIBS="$LIBS"
12660 if test \! -z "$includedir" ; then
12661 CPPFLAGS="$CPPFLAGS -I$includedir"
12663 # note: $X_CFLAGS includes $x_includes
12664 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12666 if test \! -z "$libdir" ; then
12667 LDFLAGS="$LDFLAGS -L$libdir"
12669 # note: $X_LIBS includes $x_libraries
12670 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12672 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12673 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpQueryExtension in -lXp" >&5
12675 $as_echo_n "checking for XpQueryExtension in -lXp... " >&6; }
12676 if ${ac_cv_lib_Xp_XpQueryExtension+:} false; then :
12677 $as_echo_n "(cached) " >&6
12679 ac_check_lib_save_LIBS=$LIBS
12680 LIBS="-lXp -lX11 -lXext -lm $LIBS"
12681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h. */
12684 /* Override any GCC internal prototype to avoid an error.
12685 Use char because int might match the return type of a GCC
12686 builtin and then its argument prototype would still apply. */
12690 char XpQueryExtension ();
12694 return XpQueryExtension ();
12699 if ac_fn_c_try_link "$LINENO"; then :
12700 ac_cv_lib_Xp_XpQueryExtension=yes
12702 ac_cv_lib_Xp_XpQueryExtension=no
12704 rm -f core conftest.err conftest.$ac_objext \
12705 conftest$ac_exeext conftest.$ac_ext
12706 LIBS=$ac_check_lib_save_LIBS
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpQueryExtension" >&5
12709 $as_echo "$ac_cv_lib_Xp_XpQueryExtension" >&6; }
12710 if test "x$ac_cv_lib_Xp_XpQueryExtension" = xyes; then :
12711 have_xp_ext=yes; MOTIF_LIBS="$MOTIF_LIBS -lXp"
12716 CPPFLAGS="$ac_save_CPPFLAGS"
12717 LDFLAGS="$ac_save_LDFLAGS"
12718 # LIBS="$ac_save_LIBS"
12723 ###############################################################################
12725 # Checking whether Motif requires -lXintl (for _Xsetlocale.)
12727 ###############################################################################
12730 if test "$have_motif" = yes ; then
12732 ac_save_CPPFLAGS="$CPPFLAGS"
12733 ac_save_LDFLAGS="$LDFLAGS"
12734 # ac_save_LIBS="$LIBS"
12736 if test \! -z "$includedir" ; then
12737 CPPFLAGS="$CPPFLAGS -I$includedir"
12739 # note: $X_CFLAGS includes $x_includes
12740 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12742 if test \! -z "$libdir" ; then
12743 LDFLAGS="$LDFLAGS -L$libdir"
12745 # note: $X_LIBS includes $x_libraries
12746 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12748 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12749 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Xsetlocale in -lXintl" >&5
12751 $as_echo_n "checking for _Xsetlocale in -lXintl... " >&6; }
12752 if ${ac_cv_lib_Xintl__Xsetlocale+:} false; then :
12753 $as_echo_n "(cached) " >&6
12755 ac_check_lib_save_LIBS=$LIBS
12756 LIBS="-lXintl -lX11 -lXext -lm $LIBS"
12757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12758 /* end confdefs.h. */
12760 /* Override any GCC internal prototype to avoid an error.
12761 Use char because int might match the return type of a GCC
12762 builtin and then its argument prototype would still apply. */
12766 char _Xsetlocale ();
12770 return _Xsetlocale ();
12775 if ac_fn_c_try_link "$LINENO"; then :
12776 ac_cv_lib_Xintl__Xsetlocale=yes
12778 ac_cv_lib_Xintl__Xsetlocale=no
12780 rm -f core conftest.err conftest.$ac_objext \
12781 conftest$ac_exeext conftest.$ac_ext
12782 LIBS=$ac_check_lib_save_LIBS
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xintl__Xsetlocale" >&5
12785 $as_echo "$ac_cv_lib_Xintl__Xsetlocale" >&6; }
12786 if test "x$ac_cv_lib_Xintl__Xsetlocale" = xyes; then :
12792 CPPFLAGS="$ac_save_CPPFLAGS"
12793 LDFLAGS="$ac_save_LDFLAGS"
12794 # LIBS="$ac_save_LIBS"
12796 if test "$have_xintl" = yes; then
12797 MOTIF_LIBS="$MOTIF_LIBS -lXintl"
12802 ###############################################################################
12804 # Check for -lGL or -lMesaGL.
12806 ###############################################################################
12810 with_gl_req=unspecified
12813 # Check whether --with-gl was given.
12814 if test "${with_gl+set}" = set; then :
12815 withval=$with_gl; with_gl="$withval"; with_gl_req="$withval"
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL headers" >&5
12828 $as_echo_n "checking for GL headers... " >&6; }
12830 if test -d $d; then
12831 X_CFLAGS="-I$d $X_CFLAGS"
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
12833 $as_echo "$d" >&6; }
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
12836 $as_echo "not found ($d: no such directory)" >&6; }
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL libs" >&5
12840 $as_echo_n "checking for GL libs... " >&6; }
12842 if test -d $d; then
12843 X_LIBS="-L$d $X_LIBS"
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
12845 $as_echo "$d" >&6; }
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
12848 $as_echo "not found ($d: no such directory)" >&6; }
12851 # replace the directory string with "yes".
12853 with_gl=$with_gl_req
12858 echo "error: argument to --with-gl must be \"yes\", \"no\", or a directory."
12859 echo " If it is a directory, then \`DIR/include' will be added to"
12860 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12866 ac_mesagl_version=unknown
12867 ac_mesagl_version_string=unknown
12869 if test "$with_gl" = yes; then
12871 ac_save_CPPFLAGS="$CPPFLAGS"
12872 if test \! -z "$includedir" ; then
12873 CPPFLAGS="$CPPFLAGS -I$includedir"
12875 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12876 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12877 ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
12878 if test "x$ac_cv_header_GL_gl_h" = xyes; then :
12885 CPPFLAGS="$ac_save_CPPFLAGS"
12886 if test "$have_gl" = yes ; then
12888 ac_save_CPPFLAGS="$CPPFLAGS"
12889 if test \! -z "$includedir" ; then
12890 CPPFLAGS="$CPPFLAGS -I$includedir"
12892 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12893 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12894 ac_fn_c_check_header_compile "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "#include <GL/gl.h>
12896 if test "x$ac_cv_header_GL_glx_h" = xyes; then :
12903 CPPFLAGS="$ac_save_CPPFLAGS"
12906 # If we have the headers, try and figure out which vendor it's from.
12908 if test "$have_gl" = yes ; then
12910 # We need to know whether it's MesaGL so that we know which libraries
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GL is really MesaGL" >&5
12914 $as_echo_n "checking whether GL is really MesaGL... " >&6; }
12915 if ${ac_cv_have_mesa_gl+:} false; then :
12916 $as_echo_n "(cached) " >&6
12918 ac_cv_have_mesa_gl=no
12919 if test "$ac_macosx" = no; then
12920 # WTF! MacOS 10.5.0 ships the Mesa GL headers!
12921 # It's not really Mesa, is it?
12923 ac_save_CPPFLAGS="$CPPFLAGS"
12924 if test \! -z "$includedir" ; then
12925 CPPFLAGS="$CPPFLAGS -I$includedir"
12927 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12928 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h. */
12931 #include <GL/glx.h>
12934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12935 $EGREP "Mesa|MESA" >/dev/null 2>&1; then :
12936 ac_cv_have_mesa_gl=yes
12940 CPPFLAGS="$ac_save_CPPFLAGS"
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mesa_gl" >&5
12944 $as_echo "$ac_cv_have_mesa_gl" >&6; }
12945 ac_have_mesa_gl=$ac_cv_have_mesa_gl
12950 if test "$ac_macosx" = yes; then
12952 # Without these, every link against libGL gets a bunch of useless
12955 osx_crud="-bind_at_load -multiply_defined suppress"
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding \"$osx_crud\" to GL_LIBS" >&5
12957 $as_echo "adding \"$osx_crud\" to GL_LIBS" >&6; }
12958 GL_LIBS="$GL_LIBS $osx_crud"
12961 # New lossage in 10.5.0: without this, we get:
12962 # ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib
12964 osx_crud="/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
12965 osx_crud="-Wl,-dylib_file,${osx_crud}:${osx_crud}"
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding \"$osx_crud\" to GL_LIBS" >&5
12968 $as_echo "adding \"$osx_crud\" to GL_LIBS" >&6; }
12969 GL_LIBS="$GL_LIBS $osx_crud"
12972 # New lossage in 10.6.8: we can't allow -L/opt/local/lib to be in the
12973 # link line, or at runtime XQueryExtension gets a segv due to some kind
12974 # of library version skew. Libs must come from /usr/X11/lib even if
12975 # $prefix and/or $exec_prefix are set to /opt/local/.
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: omitting \"$libdir\" from LDFLAGS" >&5
12978 $as_echo "omitting \"$libdir\" from LDFLAGS" >&6; }
12984 # Some versions of MesaGL are compiled to require -lpthread.
12985 # So if the Mesa headers exist, and -lpthread exists, then always
12986 # link -lpthread after the Mesa libs (be they named -lGL or -lMesaGL.)
12988 # Oftentimes, AX_PTHREAD will bring in -lpthread as well; but that ends
12989 # up before -l(Mesa)GL, instead of after where it would belong.
12991 if test "$ac_have_mesa_gl" = yes; then
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
12993 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
12994 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
12995 $as_echo_n "(cached) " >&6
12997 ac_check_lib_save_LIBS=$LIBS
12998 LIBS="-lpthread $LIBS"
12999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000 /* end confdefs.h. */
13002 /* Override any GCC internal prototype to avoid an error.
13003 Use char because int might match the return type of a GCC
13004 builtin and then its argument prototype would still apply. */
13008 char pthread_create ();
13012 return pthread_create ();
13017 if ac_fn_c_try_link "$LINENO"; then :
13018 ac_cv_lib_pthread_pthread_create=yes
13020 ac_cv_lib_pthread_pthread_create=no
13022 rm -f core conftest.err conftest.$ac_objext \
13023 conftest$ac_exeext conftest.$ac_ext
13024 LIBS=$ac_check_lib_save_LIBS
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
13027 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
13028 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
13029 GL_LIBS="-lpthread"
13035 # If we have Mesa headers, check to see if we can link against -lMesaGL.
13036 # If we don't have Mesa headers, or we don't have -lMesaGL, try -lGL.
13037 # Else, warn that GL is busted. (We have the headers, but no libs.)
13040 if test "$ac_have_mesa_gl" = yes ; then
13042 ac_save_CPPFLAGS="$CPPFLAGS"
13043 ac_save_LDFLAGS="$LDFLAGS"
13044 # ac_save_LIBS="$LIBS"
13046 if test \! -z "$includedir" ; then
13047 CPPFLAGS="$CPPFLAGS -I$includedir"
13049 # note: $X_CFLAGS includes $x_includes
13050 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13052 if test \! -z "$libdir" ; then
13053 LDFLAGS="$LDFLAGS -L$libdir"
13055 # note: $X_LIBS includes $x_libraries
13056 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13058 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13059 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXCreateContext in -lMesaGL" >&5
13061 $as_echo_n "checking for glXCreateContext in -lMesaGL... " >&6; }
13062 if ${ac_cv_lib_MesaGL_glXCreateContext+:} false; then :
13063 $as_echo_n "(cached) " >&6
13065 ac_check_lib_save_LIBS=$LIBS
13066 LIBS="-lMesaGL -lMesaGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
13067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13068 /* end confdefs.h. */
13070 /* Override any GCC internal prototype to avoid an error.
13071 Use char because int might match the return type of a GCC
13072 builtin and then its argument prototype would still apply. */
13076 char glXCreateContext ();
13080 return glXCreateContext ();
13085 if ac_fn_c_try_link "$LINENO"; then :
13086 ac_cv_lib_MesaGL_glXCreateContext=yes
13088 ac_cv_lib_MesaGL_glXCreateContext=no
13090 rm -f core conftest.err conftest.$ac_objext \
13091 conftest$ac_exeext conftest.$ac_ext
13092 LIBS=$ac_check_lib_save_LIBS
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_MesaGL_glXCreateContext" >&5
13095 $as_echo "$ac_cv_lib_MesaGL_glXCreateContext" >&6; }
13096 if test "x$ac_cv_lib_MesaGL_glXCreateContext" = xyes; then :
13098 GL_LIBS="-lMesaGL -lMesaGLU $VIDMODE_LIBS $GL_LIBS"
13101 CPPFLAGS="$ac_save_CPPFLAGS"
13102 LDFLAGS="$ac_save_LDFLAGS"
13103 # LIBS="$ac_save_LIBS"
13107 if test "$gl_lib_1" = "" ; then
13109 ac_save_CPPFLAGS="$CPPFLAGS"
13110 ac_save_LDFLAGS="$LDFLAGS"
13111 # ac_save_LIBS="$LIBS"
13113 if test \! -z "$includedir" ; then
13114 CPPFLAGS="$CPPFLAGS -I$includedir"
13116 # note: $X_CFLAGS includes $x_includes
13117 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13119 if test \! -z "$libdir" ; then
13120 LDFLAGS="$LDFLAGS -L$libdir"
13122 # note: $X_LIBS includes $x_libraries
13123 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13125 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13126 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXCreateContext in -lGL" >&5
13128 $as_echo_n "checking for glXCreateContext in -lGL... " >&6; }
13129 if ${ac_cv_lib_GL_glXCreateContext+:} false; then :
13130 $as_echo_n "(cached) " >&6
13132 ac_check_lib_save_LIBS=$LIBS
13133 LIBS="-lGL -lGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
13134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h. */
13137 /* Override any GCC internal prototype to avoid an error.
13138 Use char because int might match the return type of a GCC
13139 builtin and then its argument prototype would still apply. */
13143 char glXCreateContext ();
13147 return glXCreateContext ();
13152 if ac_fn_c_try_link "$LINENO"; then :
13153 ac_cv_lib_GL_glXCreateContext=yes
13155 ac_cv_lib_GL_glXCreateContext=no
13157 rm -f core conftest.err conftest.$ac_objext \
13158 conftest$ac_exeext conftest.$ac_ext
13159 LIBS=$ac_check_lib_save_LIBS
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glXCreateContext" >&5
13162 $as_echo "$ac_cv_lib_GL_glXCreateContext" >&6; }
13163 if test "x$ac_cv_lib_GL_glXCreateContext" = xyes; then :
13165 GL_LIBS="-lGL -lGLU $VIDMODE_LIBS $GL_LIBS"
13168 CPPFLAGS="$ac_save_CPPFLAGS"
13169 LDFLAGS="$ac_save_LDFLAGS"
13170 # LIBS="$ac_save_LIBS"
13174 if test "$gl_lib_1" = "" ; then
13175 # we have headers, but no libs -- bail.
13180 # linking works -- we can build the GL hacks.
13181 $as_echo "#define HAVE_GL 1" >>confdefs.h
13183 if test "$ac_have_mesa_gl" = yes ; then
13184 $as_echo "#define HAVE_MESA_GL 1" >>confdefs.h
13191 # Now that we know we have GL headers and libs, do some more GL testing.
13194 if test "$have_gl" = yes ; then
13195 # If it's MesaGL, we'd like to issue a warning if the version number
13196 # is less than or equal to 2.6, because that version had a security bug.
13198 if test "$ac_have_mesa_gl" = yes; then
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MesaGL version number" >&5
13201 $as_echo_n "checking MesaGL version number... " >&6; }
13202 if ${ac_cv_mesagl_version_string+:} false; then :
13203 $as_echo_n "(cached) " >&6
13205 cat > conftest.$ac_ext <<EOF
13206 #line 13210 "configure"
13207 #include "confdefs.h"
13209 #ifndef MESA_MAJOR_VERSION
13210 # include <GL/xmesa.h>
13211 # ifdef XMESA_MAJOR_VERSION
13212 /* Around Mesa 3.2, they took out the Mesa version number, so instead,
13213 we have to check the XMesa version number (the number of the X protocol
13214 support, which seems to be the same as the Mesa version number.)
13216 # define MESA_MAJOR_VERSION XMESA_MAJOR_VERSION
13217 # define MESA_MINOR_VERSION XMESA_MINOR_VERSION
13219 /* Oh great. Some time after 3.4, they took out the xmesa.h header file,
13220 so we have no way of telling what version of Mesa this is at all.
13221 So, we'll guess that the osmesa version (the "offscreen protocol")
13222 is less than or equal to the real mesa version number. Except that
13223 if OSmesa is 3.3, assume at least Mesa 3.4, since OSmesa was 3.3 in
13224 Mesa 3.4. And Mesa 3.3 had xmesa.h. What a complete load of shit!
13226 # include <GL/osmesa.h>
13227 # define MESA_MAJOR_VERSION OSMESA_MAJOR_VERSION
13228 # define MESA_MINOR_VERSION OSMESA_MINOR_VERSION or newer, probably?
13229 # if OSMESA_MAJOR_VERSION == 3 && OSMESA_MINOR_VERSION == 3
13230 # undef MESA_MINOR_VERSION
13231 # define MESA_MINOR_VERSION 4 or newer, probably?
13235 configure: MESA_MAJOR_VERSION MESA_MINOR_VERSION
13238 ac_save_CPPFLAGS="$CPPFLAGS"
13239 if test \! -z "$includedir" ; then
13240 CPPFLAGS="$CPPFLAGS -I$includedir"
13242 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13244 mglv=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | grep configure:`
13248 mglv=`echo "$mglv" | sed -n \
13249 's/^configure: *\([0-9][0-9]*\) *\([0-9].*\)$/\1.\2/p'`
13252 rm -rf conftest.$ac_ext
13254 CPPFLAGS="$ac_save_CPPFLAGS"
13256 if test "$mglv" = ""; then
13257 ac_mesagl_version=unknown
13258 ac_mesagl_version_string=unknown
13260 ac_mesagl_version_string="$mglv"
13263 maj=`echo "$mglv" | sed -n 's/^\([0-9][0-9]*\)\..*$/\1/p'`
13264 min=`echo "$mglv" | sed -n 's/^.*\.\([0-9][0-9]*\).*$/\1/p'`
13266 ac_mesagl_version=`echo "$maj * 1000 + $min" | bc`
13267 if test -z "$ac_mesagl_version"; then
13268 ac_mesagl_version=unknown
13269 ac_mesagl_version_string=unknown
13272 ac_cv_mesagl_version=$ac_mesagl_version
13273 ac_cv_mesagl_version_string=$ac_mesagl_version_string
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mesagl_version_string" >&5
13277 $as_echo "$ac_cv_mesagl_version_string" >&6; }
13278 ac_mesagl_version=$ac_cv_mesagl_version
13279 ac_mesagl_version_string=$ac_cv_mesagl_version_string
13283 # Check for OpenGL 1.1 features.
13286 ac_save_CPPFLAGS="$CPPFLAGS"
13287 ac_save_LDFLAGS="$LDFLAGS"
13288 # ac_save_LIBS="$LIBS"
13290 if test \! -z "$includedir" ; then
13291 CPPFLAGS="$CPPFLAGS -I$includedir"
13293 # note: $X_CFLAGS includes $x_includes
13294 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13296 if test \! -z "$libdir" ; then
13297 LDFLAGS="$LDFLAGS -L$libdir"
13299 # note: $X_LIBS includes $x_libraries
13300 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13302 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13303 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13304 as_ac_Lib=`$as_echo "ac_cv_lib_$gl_lib_1''_glBindTexture" | $as_tr_sh`
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBindTexture in -l$gl_lib_1" >&5
13306 $as_echo_n "checking for glBindTexture in -l$gl_lib_1... " >&6; }
13307 if eval \${$as_ac_Lib+:} false; then :
13308 $as_echo_n "(cached) " >&6
13310 ac_check_lib_save_LIBS=$LIBS
13311 LIBS="-l$gl_lib_1 $GL_LIBS -lX11 -lXext -lm $LIBS"
13312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13313 /* end confdefs.h. */
13315 /* Override any GCC internal prototype to avoid an error.
13316 Use char because int might match the return type of a GCC
13317 builtin and then its argument prototype would still apply. */
13321 char glBindTexture ();
13325 return glBindTexture ();
13330 if ac_fn_c_try_link "$LINENO"; then :
13331 eval "$as_ac_Lib=yes"
13333 eval "$as_ac_Lib=no"
13335 rm -f core conftest.err conftest.$ac_objext \
13336 conftest$ac_exeext conftest.$ac_ext
13337 LIBS=$ac_check_lib_save_LIBS
13339 eval ac_res=\$$as_ac_Lib
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13341 $as_echo "$ac_res" >&6; }
13342 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
13343 $as_echo "#define HAVE_GLBINDTEXTURE 1" >>confdefs.h
13349 CPPFLAGS="$ac_save_CPPFLAGS"
13350 LDFLAGS="$ac_save_LDFLAGS"
13351 # LIBS="$ac_save_LIBS"
13355 elif test "$with_gl" != no; then
13356 echo "error: must be yes or no: --with-gl=$with_gl"
13361 ###############################################################################
13365 ###############################################################################
13368 with_gle_req=unspecified
13371 # Check whether --with-gle was given.
13372 if test "${with_gle+set}" = set; then :
13373 withval=$with_gle; with_gle="$withval"; with_gle_req="$withval"
13380 case "$with_gle" in
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLE headers" >&5
13386 $as_echo_n "checking for GLE headers... " >&6; }
13387 d=$with_gle/include
13388 if test -d $d; then
13389 X_CFLAGS="-I$d $X_CFLAGS"
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13391 $as_echo "$d" >&6; }
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13394 $as_echo "not found ($d: no such directory)" >&6; }
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLE libs" >&5
13398 $as_echo_n "checking for GLE libs... " >&6; }
13400 if test -d $d; then
13401 X_LIBS="-L$d $X_LIBS"
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13403 $as_echo "$d" >&6; }
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13406 $as_echo "not found ($d: no such directory)" >&6; }
13409 # replace the directory string with "yes".
13411 with_gle=$with_gle_req
13416 echo "error: argument to --with-gle must be \"yes\", \"no\", or a directory."
13417 echo " If it is a directory, then \`DIR/include' will be added to"
13418 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13426 if test "$have_gl" = no ; then
13428 elif test "$with_gle" = yes; then
13431 ac_save_CPPFLAGS="$CPPFLAGS"
13432 if test \! -z "$includedir" ; then
13433 CPPFLAGS="$CPPFLAGS -I$includedir"
13435 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13436 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13437 ac_fn_c_check_header_compile "$LINENO" "GL/gle.h" "ac_cv_header_GL_gle_h" "#include <GL/gl.h>
13439 if test "x$ac_cv_header_GL_gle_h" = xyes; then :
13446 CPPFLAGS="$ac_save_CPPFLAGS"
13447 if test "$have_gle3" = yes ; then
13451 ac_save_CPPFLAGS="$CPPFLAGS"
13452 if test \! -z "$includedir" ; then
13453 CPPFLAGS="$CPPFLAGS -I$includedir"
13455 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13456 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13457 ac_fn_c_check_header_compile "$LINENO" "GL/gutil.h" "ac_cv_header_GL_gutil_h" "#include <GL/gl.h>
13459 if test "x$ac_cv_header_GL_gutil_h" = xyes; then :
13466 CPPFLAGS="$ac_save_CPPFLAGS"
13467 if test "$have_gle" = yes ; then
13469 ac_save_CPPFLAGS="$CPPFLAGS"
13470 if test \! -z "$includedir" ; then
13471 CPPFLAGS="$CPPFLAGS -I$includedir"
13473 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13474 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13475 ac_fn_c_check_header_compile "$LINENO" "GL/tube.h" "ac_cv_header_GL_tube_h" "#include <GL/gl.h>
13477 if test "x$ac_cv_header_GL_tube_h" = xyes; then :
13484 CPPFLAGS="$ac_save_CPPFLAGS"
13488 if test "$have_gle" = yes ; then
13492 ac_save_CPPFLAGS="$CPPFLAGS"
13493 ac_save_LDFLAGS="$LDFLAGS"
13494 # ac_save_LIBS="$LIBS"
13496 if test \! -z "$includedir" ; then
13497 CPPFLAGS="$CPPFLAGS -I$includedir"
13499 # note: $X_CFLAGS includes $x_includes
13500 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13502 if test \! -z "$libdir" ; then
13503 LDFLAGS="$LDFLAGS -L$libdir"
13505 # note: $X_LIBS includes $x_libraries
13506 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13508 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13509 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gleCreateGC in -lgle" >&5
13511 $as_echo_n "checking for gleCreateGC in -lgle... " >&6; }
13512 if ${ac_cv_lib_gle_gleCreateGC+:} false; then :
13513 $as_echo_n "(cached) " >&6
13515 ac_check_lib_save_LIBS=$LIBS
13516 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
13517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13518 /* end confdefs.h. */
13520 /* Override any GCC internal prototype to avoid an error.
13521 Use char because int might match the return type of a GCC
13522 builtin and then its argument prototype would still apply. */
13526 char gleCreateGC ();
13530 return gleCreateGC ();
13535 if ac_fn_c_try_link "$LINENO"; then :
13536 ac_cv_lib_gle_gleCreateGC=yes
13538 ac_cv_lib_gle_gleCreateGC=no
13540 rm -f core conftest.err conftest.$ac_objext \
13541 conftest$ac_exeext conftest.$ac_ext
13542 LIBS=$ac_check_lib_save_LIBS
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gle_gleCreateGC" >&5
13545 $as_echo "$ac_cv_lib_gle_gleCreateGC" >&6; }
13546 if test "x$ac_cv_lib_gle_gleCreateGC" = xyes; then :
13547 have_gle=yes; gle_halfassed=no; GLE_LIBS="-lgle"
13550 CPPFLAGS="$ac_save_CPPFLAGS"
13551 LDFLAGS="$ac_save_LDFLAGS"
13552 # LIBS="$ac_save_LIBS"
13555 if test "$have_gle" = yes ; then
13559 # sometimes the libmatrix stuff is included in libgle. look there first.
13561 # I don't get it. For some reason, this test passes on SGI, as if
13562 # uview_direction_d() was in libgle -- but it's not, it's in libmatrix.
13563 # Yet the link is succeeding. Why???
13565 # AC_CHECK_X_LIB(gle, uview_direction_d,
13566 # [have_gle=yes; gle_halfassed=no],
13567 # [], $GL_LIBS -lX11 -lXext -lm)
13569 # As of GLE 3 this is in libgle, and has changed name to uview_direction!
13571 if test "$have_gle3" = yes ; then
13573 ac_save_CPPFLAGS="$CPPFLAGS"
13574 ac_save_LDFLAGS="$LDFLAGS"
13575 # ac_save_LIBS="$LIBS"
13577 if test \! -z "$includedir" ; then
13578 CPPFLAGS="$CPPFLAGS -I$includedir"
13580 # note: $X_CFLAGS includes $x_includes
13581 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13583 if test \! -z "$libdir" ; then
13584 LDFLAGS="$LDFLAGS -L$libdir"
13586 # note: $X_LIBS includes $x_libraries
13587 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13589 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13590 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uview_direction in -lgle" >&5
13592 $as_echo_n "checking for uview_direction in -lgle... " >&6; }
13593 if ${ac_cv_lib_gle_uview_direction+:} false; then :
13594 $as_echo_n "(cached) " >&6
13596 ac_check_lib_save_LIBS=$LIBS
13597 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
13598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13599 /* end confdefs.h. */
13601 /* Override any GCC internal prototype to avoid an error.
13602 Use char because int might match the return type of a GCC
13603 builtin and then its argument prototype would still apply. */
13607 char uview_direction ();
13611 return uview_direction ();
13616 if ac_fn_c_try_link "$LINENO"; then :
13617 ac_cv_lib_gle_uview_direction=yes
13619 ac_cv_lib_gle_uview_direction=no
13621 rm -f core conftest.err conftest.$ac_objext \
13622 conftest$ac_exeext conftest.$ac_ext
13623 LIBS=$ac_check_lib_save_LIBS
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gle_uview_direction" >&5
13626 $as_echo "$ac_cv_lib_gle_uview_direction" >&6; }
13627 if test "x$ac_cv_lib_gle_uview_direction" = xyes; then :
13628 have_gle=yes; gle_halfassed=no
13631 CPPFLAGS="$ac_save_CPPFLAGS"
13632 LDFLAGS="$ac_save_LDFLAGS"
13633 # LIBS="$ac_save_LIBS"
13636 # if it wasn't in libgle, then look in libmatrix.
13637 if test "$have_gle" = no ; then
13639 ac_save_CPPFLAGS="$CPPFLAGS"
13640 ac_save_LDFLAGS="$LDFLAGS"
13641 # ac_save_LIBS="$LIBS"
13643 if test \! -z "$includedir" ; then
13644 CPPFLAGS="$CPPFLAGS -I$includedir"
13646 # note: $X_CFLAGS includes $x_includes
13647 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13649 if test \! -z "$libdir" ; then
13650 LDFLAGS="$LDFLAGS -L$libdir"
13652 # note: $X_LIBS includes $x_libraries
13653 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13655 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13656 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uview_direction_d in -lmatrix" >&5
13658 $as_echo_n "checking for uview_direction_d in -lmatrix... " >&6; }
13659 if ${ac_cv_lib_matrix_uview_direction_d+:} false; then :
13660 $as_echo_n "(cached) " >&6
13662 ac_check_lib_save_LIBS=$LIBS
13663 LIBS="-lmatrix $GL_LIBS -lX11 -lXext -lm $LIBS"
13664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13665 /* end confdefs.h. */
13667 /* Override any GCC internal prototype to avoid an error.
13668 Use char because int might match the return type of a GCC
13669 builtin and then its argument prototype would still apply. */
13673 char uview_direction_d ();
13677 return uview_direction_d ();
13682 if ac_fn_c_try_link "$LINENO"; then :
13683 ac_cv_lib_matrix_uview_direction_d=yes
13685 ac_cv_lib_matrix_uview_direction_d=no
13687 rm -f core conftest.err conftest.$ac_objext \
13688 conftest$ac_exeext conftest.$ac_ext
13689 LIBS=$ac_check_lib_save_LIBS
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_matrix_uview_direction_d" >&5
13692 $as_echo "$ac_cv_lib_matrix_uview_direction_d" >&6; }
13693 if test "x$ac_cv_lib_matrix_uview_direction_d" = xyes; then :
13694 have_gle=yes; gle_halfassed=no;
13695 GLE_LIBS="$GLE_LIBS -lmatrix"
13698 CPPFLAGS="$ac_save_CPPFLAGS"
13699 LDFLAGS="$ac_save_LDFLAGS"
13700 # LIBS="$ac_save_LIBS"
13705 if test "$have_gle" = yes ; then
13706 $as_echo "#define HAVE_GLE 1" >>confdefs.h
13708 if test "$have_gle3" = yes ; then
13709 $as_echo "#define HAVE_GLE3 1" >>confdefs.h
13714 elif test "$with_gle" != no; then
13715 echo "error: must be yes or no: --with-gle=$with_gle"
13721 ###############################################################################
13723 # Handle --with-gles
13725 ###############################################################################
13727 with_gles_req=unspecified
13729 # Check whether --with-gles was given.
13730 if test "${with_gles+set}" = set; then :
13731 withval=$with_gles; with_gles="$withval"; with_gles_req="$withval"
13738 case "$with_gles" in
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JWZGLES headers" >&5
13744 $as_echo_n "checking for JWZGLES headers... " >&6; }
13745 d=$with_gles/include
13746 if test -d $d; then
13747 X_CFLAGS="-I$d $X_CFLAGS"
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13749 $as_echo "$d" >&6; }
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13752 $as_echo "not found ($d: no such directory)" >&6; }
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JWZGLES libs" >&5
13756 $as_echo_n "checking for JWZGLES libs... " >&6; }
13758 if test -d $d; then
13759 X_LIBS="-L$d $X_LIBS"
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13761 $as_echo "$d" >&6; }
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13764 $as_echo "not found ($d: no such directory)" >&6; }
13767 # replace the directory string with "yes".
13768 with_gles_req="yes"
13769 with_gles=$with_gles_req
13774 echo "error: argument to --with-gles must be \"yes\", \"no\", or a directory."
13775 echo " If it is a directory, then \`DIR/include' will be added to"
13776 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13782 if test "$with_gles" = yes; then
13784 $as_echo "#define HAVE_JWZGLES 1" >>confdefs.h
13786 JWZGLES_OBJS="jwzgles.o"
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OpenGL ES compatiblity shim" >&5
13788 $as_echo "using OpenGL ES compatiblity shim" >&6; }
13789 elif test "$with_gles" != no; then
13790 echo "error: must be yes or no: --with-gles=$with_xpm"
13794 ###############################################################################
13796 # Check for -lgdk_pixbuf.
13797 # These tests are for gdk_pixbuf usage of the hacks,
13798 # not xscreensaver-demo (thus we have to test again to get
13799 # the libraries right: don't want to pull in all of GTK
13802 ###############################################################################
13805 with_gdk_pixbuf_req=unspecified
13807 # Check whether --with-pixbuf was given.
13808 if test "${with_pixbuf+set}" = set; then :
13809 withval=$with_pixbuf; with_gdk_pixbuf="$withval"; with_gdk_pixbuf_req="$withval"
13811 with_gdk_pixbuf=yes
13815 # if --with-pixbuf=/directory/ was specified, remember that directory so that
13816 # we can also look for the `gdk-pixbuf-config' program in that directory.
13817 case "$with_gdk_pixbuf" in
13819 gdk_pixbuf_dir="$with_gdk_pixbuf"
13827 case "$with_gdk_pixbuf" in
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDK_PIXBUF headers" >&5
13833 $as_echo_n "checking for GDK_PIXBUF headers... " >&6; }
13834 d=$with_gdk_pixbuf/include
13835 if test -d $d; then
13836 X_CFLAGS="-I$d $X_CFLAGS"
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13838 $as_echo "$d" >&6; }
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13841 $as_echo "not found ($d: no such directory)" >&6; }
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDK_PIXBUF libs" >&5
13845 $as_echo_n "checking for GDK_PIXBUF libs... " >&6; }
13846 d=$with_gdk_pixbuf/lib
13847 if test -d $d; then
13848 X_LIBS="-L$d $X_LIBS"
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
13850 $as_echo "$d" >&6; }
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
13853 $as_echo "not found ($d: no such directory)" >&6; }
13856 # replace the directory string with "yes".
13857 with_gdk_pixbuf_req="yes"
13858 with_gdk_pixbuf=$with_gdk_pixbuf_req
13863 echo "error: argument to --with-pixbuf must be \"yes\", \"no\", or a directory."
13864 echo " If it is a directory, then \`DIR/include' will be added to"
13865 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13871 if test "$with_gdk_pixbuf" != yes -a "$with_gdk_pixbuf" != no ; then
13872 echo "error: must be yes or no: --with-pixbuf=$with_gdk_pixbuf"
13876 if test "$with_gdk_pixbuf" = yes; then
13882 pkg_check_version gdk-pixbuf-2.0 2.0.0
13883 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
13884 have_gdk_pixbuf="$ok"
13886 if test "$have_gdk_pixbuf" = yes; then
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf includes" >&5
13888 $as_echo_n "checking for gdk-pixbuf includes... " >&6; }
13889 if ${ac_cv_gdk_pixbuf_config_cflags+:} false; then :
13890 $as_echo_n "(cached) " >&6
13892 ac_cv_gdk_pixbuf_config_cflags=`$pkg_config --cflags $pkgs`
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
13895 $as_echo "$ac_cv_gdk_pixbuf_config_cflags" >&6; }
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf libs" >&5
13897 $as_echo_n "checking for gdk-pixbuf libs... " >&6; }
13898 if ${ac_cv_gdk_pixbuf_config_libs+:} false; then :
13899 $as_echo_n "(cached) " >&6
13901 ac_cv_gdk_pixbuf_config_libs=`$pkg_config --libs $pkgs`
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gdk_pixbuf_config_libs" >&5
13904 $as_echo "$ac_cv_gdk_pixbuf_config_libs" >&6; }
13907 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
13908 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
13911 if test "$have_gdk_pixbuf" = yes; then
13913 # we appear to have pixbuf; check for headers/libs to be sure.
13915 ac_save_gdk_pixbuf_CPPFLAGS="$CPPFLAGS"
13916 CPPFLAGS="$CPPFLAGS $ac_gdk_pixbuf_config_cflags"
13920 # check for header A...
13922 ac_save_CPPFLAGS="$CPPFLAGS"
13923 if test \! -z "$includedir" ; then
13924 CPPFLAGS="$CPPFLAGS -I$includedir"
13926 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13927 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13928 ac_fn_c_check_header_mongrel "$LINENO" "gdk-pixbuf/gdk-pixbuf.h" "ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" "$ac_includes_default"
13929 if test "x$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" = xyes; then :
13930 have_gdk_pixbuf=yes
13934 CPPFLAGS="$ac_save_CPPFLAGS"
13936 # if that worked, check for header B...
13937 if test "$have_gdk_pixbuf" = yes; then
13939 gdk_pixbuf_halfassed=yes
13941 ac_save_CPPFLAGS="$CPPFLAGS"
13942 if test \! -z "$includedir" ; then
13943 CPPFLAGS="$CPPFLAGS -I$includedir"
13945 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13946 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13947 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"
13948 if test "x$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" = xyes; then :
13949 have_gdk_pixbuf=yes
13950 gdk_pixbuf_halfassed=no
13954 CPPFLAGS="$ac_save_CPPFLAGS"
13956 # yay, it has a new name in Gtk 2.x...
13957 if test "$have_gdk_pixbuf" = no; then
13959 gdk_pixbuf_halfassed=yes
13961 ac_save_CPPFLAGS="$CPPFLAGS"
13962 if test \! -z "$includedir" ; then
13963 CPPFLAGS="$CPPFLAGS -I$includedir"
13965 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13966 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13967 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"
13968 if test "x$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" = xyes; then :
13969 have_gdk_pixbuf=yes
13970 gdk_pixbuf_halfassed=no
13974 CPPFLAGS="$ac_save_CPPFLAGS"
13977 CPPFLAGS="$ac_save_gdk_pixbuf_CPPFLAGS"
13980 if test "$have_gdk_pixbuf" = yes; then
13981 # we have the headers, now check for the libraries
13983 gdk_pixbuf_halfassed=yes
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for gdk_pixbuf usability..." >&5
13986 $as_echo "checking for gdk_pixbuf usability..." >&6; }
13990 ac_save_CPPFLAGS="$CPPFLAGS"
13991 ac_save_LDFLAGS="$LDFLAGS"
13992 # ac_save_LIBS="$LIBS"
13994 if test \! -z "$includedir" ; then
13995 CPPFLAGS="$CPPFLAGS -I$includedir"
13997 # note: $X_CFLAGS includes $x_includes
13998 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14000 if test \! -z "$libdir" ; then
14001 LDFLAGS="$LDFLAGS -L$libdir"
14003 # note: $X_LIBS includes $x_libraries
14004 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14006 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14007 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk_pixbuf_new_from_file in -lc" >&5
14009 $as_echo_n "checking for gdk_pixbuf_new_from_file in -lc... " >&6; }
14010 if ${ac_cv_lib_c_gdk_pixbuf_new_from_file+:} false; then :
14011 $as_echo_n "(cached) " >&6
14013 ac_check_lib_save_LIBS=$LIBS
14014 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
14015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14016 /* end confdefs.h. */
14018 /* Override any GCC internal prototype to avoid an error.
14019 Use char because int might match the return type of a GCC
14020 builtin and then its argument prototype would still apply. */
14024 char gdk_pixbuf_new_from_file ();
14028 return gdk_pixbuf_new_from_file ();
14033 if ac_fn_c_try_link "$LINENO"; then :
14034 ac_cv_lib_c_gdk_pixbuf_new_from_file=yes
14036 ac_cv_lib_c_gdk_pixbuf_new_from_file=no
14038 rm -f core conftest.err conftest.$ac_objext \
14039 conftest$ac_exeext conftest.$ac_ext
14040 LIBS=$ac_check_lib_save_LIBS
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gdk_pixbuf_new_from_file" >&5
14043 $as_echo "$ac_cv_lib_c_gdk_pixbuf_new_from_file" >&6; }
14044 if test "x$ac_cv_lib_c_gdk_pixbuf_new_from_file" = xyes; then :
14045 have_gdk_pixbuf=yes
14048 CPPFLAGS="$ac_save_CPPFLAGS"
14049 LDFLAGS="$ac_save_LDFLAGS"
14050 # LIBS="$ac_save_LIBS"
14053 if test "$have_gdk_pixbuf" = yes; then
14056 ac_save_CPPFLAGS="$CPPFLAGS"
14057 ac_save_LDFLAGS="$LDFLAGS"
14058 # ac_save_LIBS="$LIBS"
14060 if test \! -z "$includedir" ; then
14061 CPPFLAGS="$CPPFLAGS -I$includedir"
14063 # note: $X_CFLAGS includes $x_includes
14064 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14066 if test \! -z "$libdir" ; then
14067 LDFLAGS="$LDFLAGS -L$libdir"
14069 # note: $X_LIBS includes $x_libraries
14070 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14072 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14073 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk_pixbuf_xlib_init in -lc" >&5
14075 $as_echo_n "checking for gdk_pixbuf_xlib_init in -lc... " >&6; }
14076 if ${ac_cv_lib_c_gdk_pixbuf_xlib_init+:} false; then :
14077 $as_echo_n "(cached) " >&6
14079 ac_check_lib_save_LIBS=$LIBS
14080 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
14081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14082 /* end confdefs.h. */
14084 /* Override any GCC internal prototype to avoid an error.
14085 Use char because int might match the return type of a GCC
14086 builtin and then its argument prototype would still apply. */
14090 char gdk_pixbuf_xlib_init ();
14094 return gdk_pixbuf_xlib_init ();
14099 if ac_fn_c_try_link "$LINENO"; then :
14100 ac_cv_lib_c_gdk_pixbuf_xlib_init=yes
14102 ac_cv_lib_c_gdk_pixbuf_xlib_init=no
14104 rm -f core conftest.err conftest.$ac_objext \
14105 conftest$ac_exeext conftest.$ac_ext
14106 LIBS=$ac_check_lib_save_LIBS
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gdk_pixbuf_xlib_init" >&5
14109 $as_echo "$ac_cv_lib_c_gdk_pixbuf_xlib_init" >&6; }
14110 if test "x$ac_cv_lib_c_gdk_pixbuf_xlib_init" = xyes; then :
14111 have_gdk_pixbuf=yes
14112 gdk_pixbuf_halfassed=no
14115 CPPFLAGS="$ac_save_CPPFLAGS"
14116 LDFLAGS="$ac_save_LDFLAGS"
14117 # LIBS="$ac_save_LIBS"
14122 if test "$have_gdk_pixbuf" = yes; then
14123 INCLUDES="$INCLUDES $ac_gdk_pixbuf_config_cflags"
14124 XPM_LIBS="$ac_gdk_pixbuf_config_libs"
14125 $as_echo "#define HAVE_GDK_PIXBUF 1" >>confdefs.h
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for gdk_pixbuf usability... no" >&5
14129 $as_echo "checking for gdk_pixbuf usability... no" >&6; }
14132 if test "$have_gdk_pixbuf" = yes; then
14134 ac_save_CPPFLAGS="$CPPFLAGS"
14135 ac_save_LDFLAGS="$LDFLAGS"
14136 # ac_save_LIBS="$LIBS"
14138 if test \! -z "$includedir" ; then
14139 CPPFLAGS="$CPPFLAGS -I$includedir"
14141 # note: $X_CFLAGS includes $x_includes
14142 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14144 if test \! -z "$libdir" ; then
14145 LDFLAGS="$LDFLAGS -L$libdir"
14147 # note: $X_LIBS includes $x_libraries
14148 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14150 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14151 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk_pixbuf_apply_embedded_orientation in -lc" >&5
14153 $as_echo_n "checking for gdk_pixbuf_apply_embedded_orientation in -lc... " >&6; }
14154 if ${ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation+:} false; then :
14155 $as_echo_n "(cached) " >&6
14157 ac_check_lib_save_LIBS=$LIBS
14158 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14162 /* Override any GCC internal prototype to avoid an error.
14163 Use char because int might match the return type of a GCC
14164 builtin and then its argument prototype would still apply. */
14168 char gdk_pixbuf_apply_embedded_orientation ();
14172 return gdk_pixbuf_apply_embedded_orientation ();
14177 if ac_fn_c_try_link "$LINENO"; then :
14178 ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation=yes
14180 ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation=no
14182 rm -f core conftest.err conftest.$ac_objext \
14183 conftest$ac_exeext conftest.$ac_ext
14184 LIBS=$ac_check_lib_save_LIBS
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation" >&5
14187 $as_echo "$ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation" >&6; }
14188 if test "x$ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation" = xyes; then :
14189 $as_echo "#define HAVE_GDK_PIXBUF_APPLY_EMBEDDED_ORIENTATION 1" >>confdefs.h
14193 CPPFLAGS="$ac_save_CPPFLAGS"
14194 LDFLAGS="$ac_save_LDFLAGS"
14195 # LIBS="$ac_save_LIBS"
14201 ###############################################################################
14205 ###############################################################################
14208 with_xpm_req=unspecified
14210 # Check whether --with-xpm was given.
14211 if test "${with_xpm+set}" = set; then :
14212 withval=$with_xpm; with_xpm="$withval"; with_xpm_req="$withval"
14219 case "$with_xpm" in
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPM headers" >&5
14225 $as_echo_n "checking for XPM headers... " >&6; }
14226 d=$with_xpm/include
14227 if test -d $d; then
14228 X_CFLAGS="-I$d $X_CFLAGS"
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14230 $as_echo "$d" >&6; }
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14233 $as_echo "not found ($d: no such directory)" >&6; }
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPM libs" >&5
14237 $as_echo_n "checking for XPM libs... " >&6; }
14239 if test -d $d; then
14240 X_LIBS="-L$d $X_LIBS"
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14242 $as_echo "$d" >&6; }
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14245 $as_echo "not found ($d: no such directory)" >&6; }
14248 # replace the directory string with "yes".
14250 with_xpm=$with_xpm_req
14255 echo "error: argument to --with-xpm must be \"yes\", \"no\", or a directory."
14256 echo " If it is a directory, then \`DIR/include' will be added to"
14257 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14263 if test "$with_xpm" = yes; then
14265 ac_save_CPPFLAGS="$CPPFLAGS"
14266 if test \! -z "$includedir" ; then
14267 CPPFLAGS="$CPPFLAGS -I$includedir"
14269 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14270 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14271 ac_fn_c_check_header_compile "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "#include <X11/Xlib.h>
14273 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
14275 $as_echo "#define HAVE_XPM 1" >>confdefs.h
14277 XPM_LIBS="-lXpm $XPM_LIBS"
14281 CPPFLAGS="$ac_save_CPPFLAGS"
14282 elif test "$with_xpm" != no; then
14283 echo "error: must be yes or no: --with-xpm=$with_xpm"
14287 # See comment near $motif_requires_xpm, above.
14288 # Need to do this here, after both Motif and XPM have been checked for.
14290 if test "$have_motif" = yes -a "$have_xpm" = yes ; then
14291 if test "$motif_requires_xpm" = yes ; then
14292 MOTIF_LIBS="$MOTIF_LIBS $XPM_LIBS"
14296 if test "$XPM_LIBS" = "" ; then
14297 XPM_LIBS=$(MINIXPM)
14301 ###############################################################################
14305 ###############################################################################
14308 with_jpeg_req=unspecified
14311 # Check whether --with-jpeg was given.
14312 if test "${with_jpeg+set}" = set; then :
14313 withval=$with_jpeg; with_jpeg="$withval"; with_jpeg_req="$withval"
14320 case "$with_jpeg" in
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG headers" >&5
14326 $as_echo_n "checking for JPEG headers... " >&6; }
14327 d=$with_jpeg/include
14328 if test -d $d; then
14329 X_CFLAGS="-I$d $X_CFLAGS"
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14331 $as_echo "$d" >&6; }
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14334 $as_echo "not found ($d: no such directory)" >&6; }
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG libs" >&5
14338 $as_echo_n "checking for JPEG libs... " >&6; }
14340 if test -d $d; then
14341 X_LIBS="-L$d $X_LIBS"
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14343 $as_echo "$d" >&6; }
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14346 $as_echo "not found ($d: no such directory)" >&6; }
14349 # replace the directory string with "yes".
14350 with_jpeg_req="yes"
14351 with_jpeg=$with_jpeg_req
14356 echo "error: argument to --with-jpeg must be \"yes\", \"no\", or a directory."
14357 echo " If it is a directory, then \`DIR/include' will be added to"
14358 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14364 if test "$with_jpeg" != yes -a "$with_jpeg" != no ; then
14365 echo "error: must be yes or no: --with-jpeg=$with_jpeg"
14369 if test "$with_jpeg" = 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_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
14380 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
14385 CPPFLAGS="$ac_save_CPPFLAGS"
14387 if test "$have_jpeg" = yes; then
14388 # we have the header, now check for the library
14392 ac_save_CPPFLAGS="$CPPFLAGS"
14393 ac_save_LDFLAGS="$LDFLAGS"
14394 # ac_save_LIBS="$LIBS"
14396 if test \! -z "$includedir" ; then
14397 CPPFLAGS="$CPPFLAGS -I$includedir"
14399 # note: $X_CFLAGS includes $x_includes
14400 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14402 if test \! -z "$libdir" ; then
14403 LDFLAGS="$LDFLAGS -L$libdir"
14405 # note: $X_LIBS includes $x_libraries
14406 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14408 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14409 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_start_compress in -ljpeg" >&5
14411 $as_echo_n "checking for jpeg_start_compress in -ljpeg... " >&6; }
14412 if ${ac_cv_lib_jpeg_jpeg_start_compress+:} false; then :
14413 $as_echo_n "(cached) " >&6
14415 ac_check_lib_save_LIBS=$LIBS
14416 LIBS="-ljpeg $LIBS"
14417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14418 /* end confdefs.h. */
14420 /* Override any GCC internal prototype to avoid an error.
14421 Use char because int might match the return type of a GCC
14422 builtin and then its argument prototype would still apply. */
14426 char jpeg_start_compress ();
14430 return jpeg_start_compress ();
14435 if ac_fn_c_try_link "$LINENO"; then :
14436 ac_cv_lib_jpeg_jpeg_start_compress=yes
14438 ac_cv_lib_jpeg_jpeg_start_compress=no
14440 rm -f core conftest.err conftest.$ac_objext \
14441 conftest$ac_exeext conftest.$ac_ext
14442 LIBS=$ac_check_lib_save_LIBS
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5
14445 $as_echo "$ac_cv_lib_jpeg_jpeg_start_compress" >&6; }
14446 if test "x$ac_cv_lib_jpeg_jpeg_start_compress" = xyes; then :
14450 $as_echo "#define HAVE_JPEGLIB 1" >>confdefs.h
14454 CPPFLAGS="$ac_save_CPPFLAGS"
14455 LDFLAGS="$ac_save_LDFLAGS"
14456 # LIBS="$ac_save_LIBS"
14462 ###############################################################################
14466 ###############################################################################
14468 have_xutf8drawstring=no
14470 ac_save_CPPFLAGS="$CPPFLAGS"
14471 ac_save_LDFLAGS="$LDFLAGS"
14472 # ac_save_LIBS="$LIBS"
14474 if test \! -z "$includedir" ; then
14475 CPPFLAGS="$CPPFLAGS -I$includedir"
14477 # note: $X_CFLAGS includes $x_includes
14478 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14480 if test \! -z "$libdir" ; then
14481 LDFLAGS="$LDFLAGS -L$libdir"
14483 # note: $X_LIBS includes $x_libraries
14484 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14486 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14487 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xutf8DrawString in -lX11" >&5
14489 $as_echo_n "checking for Xutf8DrawString in -lX11... " >&6; }
14490 if ${ac_cv_lib_X11_Xutf8DrawString+:} false; then :
14491 $as_echo_n "(cached) " >&6
14493 ac_check_lib_save_LIBS=$LIBS
14494 LIBS="-lX11 -lX11 -lXext -lm $LIBS"
14495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14496 /* end confdefs.h. */
14498 /* Override any GCC internal prototype to avoid an error.
14499 Use char because int might match the return type of a GCC
14500 builtin and then its argument prototype would still apply. */
14504 char Xutf8DrawString ();
14508 return Xutf8DrawString ();
14513 if ac_fn_c_try_link "$LINENO"; then :
14514 ac_cv_lib_X11_Xutf8DrawString=yes
14516 ac_cv_lib_X11_Xutf8DrawString=no
14518 rm -f core conftest.err conftest.$ac_objext \
14519 conftest$ac_exeext conftest.$ac_ext
14520 LIBS=$ac_check_lib_save_LIBS
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_Xutf8DrawString" >&5
14523 $as_echo "$ac_cv_lib_X11_Xutf8DrawString" >&6; }
14524 if test "x$ac_cv_lib_X11_Xutf8DrawString" = xyes; then :
14525 have_xutf8drawstring=yes
14530 CPPFLAGS="$ac_save_CPPFLAGS"
14531 LDFLAGS="$ac_save_LDFLAGS"
14532 # LIBS="$ac_save_LIBS"
14534 if test "$have_xutf8drawstring" = yes ; then
14535 $as_echo "#define HAVE_XUTF8DRAWSTRING 1" >>confdefs.h
14541 with_xft_req=unspecified
14544 # Check whether --with-xft was given.
14545 if test "${with_xft+set}" = set; then :
14546 withval=$with_xft; with_xft="$withval"; with_xft_req="$withval"
14553 case "$with_xft" in
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xft headers" >&5
14559 $as_echo_n "checking for Xft headers... " >&6; }
14560 d=$with_xft/include
14561 if test -d $d; then
14562 X_CFLAGS="-I$d $X_CFLAGS"
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14564 $as_echo "$d" >&6; }
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14567 $as_echo "not found ($d: no such directory)" >&6; }
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xft libs" >&5
14571 $as_echo_n "checking for Xft libs... " >&6; }
14573 if test -d $d; then
14574 X_LIBS="-L$d $X_LIBS"
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14576 $as_echo "$d" >&6; }
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14579 $as_echo "not found ($d: no such directory)" >&6; }
14582 # replace the directory string with "yes".
14584 with_xft=$with_xft_req
14589 echo "error: argument to --with-xft must be \"yes\", \"no\", or a directory."
14590 echo " If it is a directory, then \`DIR/include' will be added to"
14591 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14597 if test "$with_xft" != yes -a "$with_xft" != no ; then
14598 echo "error: must be yes or no: --with-xft=$with_xft"
14602 if test "$with_xft" = yes; then
14606 pkg_check_version xft 2.1.0
14609 if test "$have_xft" = yes; then
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xft includes" >&5
14611 $as_echo_n "checking for Xft includes... " >&6; }
14612 if ${ac_cv_xft_config_cflags+:} false; then :
14613 $as_echo_n "(cached) " >&6
14615 ac_cv_xft_config_cflags=`$pkg_config --cflags $pkgs`
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xft_config_cflags" >&5
14618 $as_echo "$ac_cv_xft_config_cflags" >&6; }
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xft libs" >&5
14620 $as_echo_n "checking for Xft libs... " >&6; }
14621 if ${ac_cv_xft_config_libs+:} false; then :
14622 $as_echo_n "(cached) " >&6
14624 ac_cv_xft_config_libs=`$pkg_config --libs $pkgs`
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xft_config_libs" >&5
14627 $as_echo "$ac_cv_xft_config_libs" >&6; }
14630 ac_xft_config_cflags=$ac_cv_xft_config_cflags
14631 ac_xft_config_libs=$ac_cv_xft_config_libs
14633 if test "$have_xft" = yes; then
14635 # we appear to have Xft; check for headers/libs to be sure.
14637 ac_save_xft_CPPFLAGS="$CPPFLAGS"
14638 CPPFLAGS="$CPPFLAGS $ac_xft_config_cflags"
14642 ac_save_CPPFLAGS="$CPPFLAGS"
14643 if test \! -z "$includedir" ; then
14644 CPPFLAGS="$CPPFLAGS -I$includedir"
14646 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14647 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14648 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
14649 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
14654 CPPFLAGS="$ac_save_CPPFLAGS"
14656 CPPFLAGS="$ac_save_xft_CPPFLAGS"
14659 if test "$have_xft" = yes; then
14660 # we have the headers, now check for the libraries
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for Xft usability..." >&5
14665 $as_echo "checking for Xft usability..." >&6; }
14667 ac_save_CPPFLAGS="$CPPFLAGS"
14668 ac_save_LDFLAGS="$LDFLAGS"
14669 # ac_save_LIBS="$LIBS"
14671 if test \! -z "$includedir" ; then
14672 CPPFLAGS="$CPPFLAGS -I$includedir"
14674 # note: $X_CFLAGS includes $x_includes
14675 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14677 if test \! -z "$libdir" ; then
14678 LDFLAGS="$LDFLAGS -L$libdir"
14680 # note: $X_LIBS includes $x_libraries
14681 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14683 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14684 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawStringUtf8 in -lc" >&5
14686 $as_echo_n "checking for XftDrawStringUtf8 in -lc... " >&6; }
14687 if ${ac_cv_lib_c_XftDrawStringUtf8+:} false; then :
14688 $as_echo_n "(cached) " >&6
14690 ac_check_lib_save_LIBS=$LIBS
14691 LIBS="-lc $ac_xft_config_libs -lX11 -lXext -lm $LIBS"
14692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14693 /* end confdefs.h. */
14695 /* Override any GCC internal prototype to avoid an error.
14696 Use char because int might match the return type of a GCC
14697 builtin and then its argument prototype would still apply. */
14701 char XftDrawStringUtf8 ();
14705 return XftDrawStringUtf8 ();
14710 if ac_fn_c_try_link "$LINENO"; then :
14711 ac_cv_lib_c_XftDrawStringUtf8=yes
14713 ac_cv_lib_c_XftDrawStringUtf8=no
14715 rm -f core conftest.err conftest.$ac_objext \
14716 conftest$ac_exeext conftest.$ac_ext
14717 LIBS=$ac_check_lib_save_LIBS
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_XftDrawStringUtf8" >&5
14720 $as_echo "$ac_cv_lib_c_XftDrawStringUtf8" >&6; }
14721 if test "x$ac_cv_lib_c_XftDrawStringUtf8" = xyes; then :
14725 CPPFLAGS="$ac_save_CPPFLAGS"
14726 LDFLAGS="$ac_save_LDFLAGS"
14727 # LIBS="$ac_save_LIBS"
14731 if test "$have_xft" = no; then
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for Xft usability... no" >&5
14733 $as_echo "checking for Xft usability... no" >&6; }
14737 if test "$have_xft" = yes; then
14738 INCLUDES="$INCLUDES $ac_xft_config_cflags"
14739 XFT_LIBS="$ac_xft_config_libs"
14742 $as_echo "#define HAVE_XFT 1" >>confdefs.h
14746 XFT_SRCS='$(UTILS_SRC)/xft.c'
14747 XFT_OBJS='$(UTILS_BIN)/xft.o'
14751 ###############################################################################
14753 # Check for pty support: this allows 'phosphor' and 'apple2'
14754 # to run curses-based programs, or be used as terminal windows.
14756 ###############################################################################
14759 for ac_header in pty.h util.h
14761 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14762 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14763 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14764 cat >>confdefs.h <<_ACEOF
14765 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14773 ac_save_CPPFLAGS="$CPPFLAGS"
14774 ac_save_LDFLAGS="$LDFLAGS"
14775 # ac_save_LIBS="$LIBS"
14777 if test \! -z "$includedir" ; then
14778 CPPFLAGS="$CPPFLAGS -I$includedir"
14780 # note: $X_CFLAGS includes $x_includes
14781 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14783 if test \! -z "$libdir" ; then
14784 LDFLAGS="$LDFLAGS -L$libdir"
14786 # note: $X_LIBS includes $x_libraries
14787 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14789 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14790 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
14792 $as_echo_n "checking for forkpty in -lutil... " >&6; }
14793 if ${ac_cv_lib_util_forkpty+:} false; then :
14794 $as_echo_n "(cached) " >&6
14796 ac_check_lib_save_LIBS=$LIBS
14797 LIBS="-lutil $LIBS"
14798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14799 /* end confdefs.h. */
14801 /* Override any GCC internal prototype to avoid an error.
14802 Use char because int might match the return type of a GCC
14803 builtin and then its argument prototype would still apply. */
14816 if ac_fn_c_try_link "$LINENO"; then :
14817 ac_cv_lib_util_forkpty=yes
14819 ac_cv_lib_util_forkpty=no
14821 rm -f core conftest.err conftest.$ac_objext \
14822 conftest$ac_exeext conftest.$ac_ext
14823 LIBS=$ac_check_lib_save_LIBS
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
14826 $as_echo "$ac_cv_lib_util_forkpty" >&6; }
14827 if test "x$ac_cv_lib_util_forkpty" = xyes; then :
14829 ac_have_forkpty=yes
14830 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
14834 CPPFLAGS="$ac_save_CPPFLAGS"
14835 LDFLAGS="$ac_save_LDFLAGS"
14836 # LIBS="$ac_save_LIBS"
14839 if test "$ac_have_forkpty" != yes ; then
14840 # we don't need (or have) -lutil on MacOS 10.4.2...
14842 ac_save_CPPFLAGS="$CPPFLAGS"
14843 ac_save_LDFLAGS="$LDFLAGS"
14844 # ac_save_LIBS="$LIBS"
14846 if test \! -z "$includedir" ; then
14847 CPPFLAGS="$CPPFLAGS -I$includedir"
14849 # note: $X_CFLAGS includes $x_includes
14850 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14852 if test \! -z "$libdir" ; then
14853 LDFLAGS="$LDFLAGS -L$libdir"
14855 # note: $X_LIBS includes $x_libraries
14856 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14858 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14859 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lc" >&5
14861 $as_echo_n "checking for forkpty in -lc... " >&6; }
14862 if ${ac_cv_lib_c_forkpty+:} false; then :
14863 $as_echo_n "(cached) " >&6
14865 ac_check_lib_save_LIBS=$LIBS
14867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14868 /* end confdefs.h. */
14870 /* Override any GCC internal prototype to avoid an error.
14871 Use char because int might match the return type of a GCC
14872 builtin and then its argument prototype would still apply. */
14885 if ac_fn_c_try_link "$LINENO"; then :
14886 ac_cv_lib_c_forkpty=yes
14888 ac_cv_lib_c_forkpty=no
14890 rm -f core conftest.err conftest.$ac_objext \
14891 conftest$ac_exeext conftest.$ac_ext
14892 LIBS=$ac_check_lib_save_LIBS
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_forkpty" >&5
14895 $as_echo "$ac_cv_lib_c_forkpty" >&6; }
14896 if test "x$ac_cv_lib_c_forkpty" = xyes; then :
14898 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
14902 CPPFLAGS="$ac_save_CPPFLAGS"
14903 LDFLAGS="$ac_save_LDFLAGS"
14904 # LIBS="$ac_save_LIBS"
14908 ###############################################################################
14910 # Check for the XSHM server extension.
14912 ###############################################################################
14915 with_xshm_req=unspecified
14917 # Check whether --with-xshm-ext was given.
14918 if test "${with_xshm_ext+set}" = set; then :
14919 withval=$with_xshm_ext; with_xshm="$withval"; with_xshm_req="$withval"
14926 case "$with_xshm" in
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSHM headers" >&5
14932 $as_echo_n "checking for XSHM headers... " >&6; }
14933 d=$with_xshm/include
14934 if test -d $d; then
14935 X_CFLAGS="-I$d $X_CFLAGS"
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14937 $as_echo "$d" >&6; }
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14940 $as_echo "not found ($d: no such directory)" >&6; }
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSHM libs" >&5
14944 $as_echo_n "checking for XSHM libs... " >&6; }
14946 if test -d $d; then
14947 X_LIBS="-L$d $X_LIBS"
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
14949 $as_echo "$d" >&6; }
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
14952 $as_echo "not found ($d: no such directory)" >&6; }
14955 # replace the directory string with "yes".
14956 with_xshm_req="yes"
14957 with_xshm=$with_xshm_req
14962 echo "error: argument to --with-xshm-ext must be \"yes\", \"no\", or a directory."
14963 echo " If it is a directory, then \`DIR/include' will be added to"
14964 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14970 if test "$with_xshm" = yes; then
14972 # first check for Xshm.h.
14974 ac_save_CPPFLAGS="$CPPFLAGS"
14975 if test \! -z "$includedir" ; then
14976 CPPFLAGS="$CPPFLAGS -I$includedir"
14978 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14979 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14980 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XShm.h" "ac_cv_header_X11_extensions_XShm_h" "#include <X11/Xlib.h>
14982 if test "x$ac_cv_header_X11_extensions_XShm_h" = xyes; then :
14987 CPPFLAGS="$ac_save_CPPFLAGS"
14989 # if that succeeded, then check for sys/ipc.h.
14990 if test "$have_xshm" = yes; then
14993 ac_save_CPPFLAGS="$CPPFLAGS"
14994 if test \! -z "$includedir" ; then
14995 CPPFLAGS="$CPPFLAGS -I$includedir"
14997 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14998 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14999 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
15000 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
15005 CPPFLAGS="$ac_save_CPPFLAGS"
15008 # if that succeeded, then check for sys/shm.h.
15009 if test "$have_xshm" = yes; then
15012 ac_save_CPPFLAGS="$CPPFLAGS"
15013 if test \! -z "$includedir" ; then
15014 CPPFLAGS="$CPPFLAGS -I$includedir"
15016 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15017 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15018 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
15019 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
15024 CPPFLAGS="$ac_save_CPPFLAGS"
15027 # AIX is pathological, as usual: apparently it's normal for the Xshm headers
15028 # to exist, but the library code to not exist. And even better, the library
15029 # code is in its own library: libXextSam.a. So, if we're on AIX, and that
15030 # lib doesn't exist, give up. (This lib gets added to X_EXTRA_LIBS, and
15031 # that's not quite right, but close enough.)
15035 if `uname -v` -eq 3 ; then
15038 ac_save_CPPFLAGS="$CPPFLAGS"
15039 ac_save_LDFLAGS="$LDFLAGS"
15040 # ac_save_LIBS="$LIBS"
15042 if test \! -z "$includedir" ; then
15043 CPPFLAGS="$CPPFLAGS -I$includedir"
15045 # note: $X_CFLAGS includes $x_includes
15046 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15048 if test \! -z "$libdir" ; then
15049 LDFLAGS="$LDFLAGS -L$libdir"
15051 # note: $X_LIBS includes $x_libraries
15052 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15054 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15055 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXextSam" >&5
15057 $as_echo_n "checking for XShmQueryExtension in -lXextSam... " >&6; }
15058 if ${ac_cv_lib_XextSam_XShmQueryExtension+:} false; then :
15059 $as_echo_n "(cached) " >&6
15061 ac_check_lib_save_LIBS=$LIBS
15062 LIBS="-lXextSam -lX11 -lXext -lm $LIBS"
15063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15064 /* end confdefs.h. */
15066 /* Override any GCC internal prototype to avoid an error.
15067 Use char because int might match the return type of a GCC
15068 builtin and then its argument prototype would still apply. */
15072 char XShmQueryExtension ();
15076 return XShmQueryExtension ();
15081 if ac_fn_c_try_link "$LINENO"; then :
15082 ac_cv_lib_XextSam_XShmQueryExtension=yes
15084 ac_cv_lib_XextSam_XShmQueryExtension=no
15086 rm -f core conftest.err conftest.$ac_objext \
15087 conftest$ac_exeext conftest.$ac_ext
15088 LIBS=$ac_check_lib_save_LIBS
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XextSam_XShmQueryExtension" >&5
15091 $as_echo "$ac_cv_lib_XextSam_XShmQueryExtension" >&6; }
15092 if test "x$ac_cv_lib_XextSam_XShmQueryExtension" = xyes; then :
15093 have_xshm=yes; X_EXTRA_LIBS="$X_EXTRA_LIBS -lXextSam"
15098 CPPFLAGS="$ac_save_CPPFLAGS"
15099 LDFLAGS="$ac_save_LDFLAGS"
15100 # LIBS="$ac_save_LIBS"
15106 # if that succeeded, then we've really got it.
15107 if test "$have_xshm" = yes; then
15108 $as_echo "#define HAVE_XSHM_EXTENSION 1" >>confdefs.h
15112 elif test "$with_xshm" != no; then
15113 echo "error: must be yes or no: --with-xshm-ext=$with_xshm"
15118 ###############################################################################
15120 # Check for the DOUBLE-BUFFER server extension.
15122 ###############################################################################
15125 with_xdbe_req=unspecified
15127 # Check whether --with-xdbe-ext was given.
15128 if test "${with_xdbe_ext+set}" = set; then :
15129 withval=$with_xdbe_ext; with_xdbe="$withval"; with_xdbe_req="$withval"
15136 case "$with_xdbe" in
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOUBLE-BUFFER headers" >&5
15142 $as_echo_n "checking for DOUBLE-BUFFER headers... " >&6; }
15143 d=$with_xdbe/include
15144 if test -d $d; then
15145 X_CFLAGS="-I$d $X_CFLAGS"
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
15147 $as_echo "$d" >&6; }
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
15150 $as_echo "not found ($d: no such directory)" >&6; }
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOUBLE-BUFFER libs" >&5
15154 $as_echo_n "checking for DOUBLE-BUFFER libs... " >&6; }
15156 if test -d $d; then
15157 X_LIBS="-L$d $X_LIBS"
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
15159 $as_echo "$d" >&6; }
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
15162 $as_echo "not found ($d: no such directory)" >&6; }
15165 # replace the directory string with "yes".
15166 with_xdbe_req="yes"
15167 with_xdbe=$with_xdbe_req
15172 echo "error: argument to --with-xdbe-ext must be \"yes\", \"no\", or a directory."
15173 echo " If it is a directory, then \`DIR/include' will be added to"
15174 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15180 if test "$with_xdbe" = yes; then
15183 ac_save_CPPFLAGS="$CPPFLAGS"
15184 if test \! -z "$includedir" ; then
15185 CPPFLAGS="$CPPFLAGS -I$includedir"
15187 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15188 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15189 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
15191 if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
15196 CPPFLAGS="$ac_save_CPPFLAGS"
15197 if test "$have_xdbe" = yes; then
15198 $as_echo "#define HAVE_DOUBLE_BUFFER_EXTENSION 1" >>confdefs.h
15202 elif test "$with_xdbe" != no; then
15203 echo "error: must be yes or no: --with-xdbe-ext=$with_xshm"
15208 ###############################################################################
15210 # Check for the SGI XReadDisplay server extension.
15212 # Note: this has to be down here, rather than up with the other server
15213 # extension tests, so that the output of `configure --help' is in the
15214 # right order. Arrgh!
15216 ###############################################################################
15218 have_readdisplay=no
15219 with_readdisplay_req=unspecified
15221 # Check whether --with-readdisplay was given.
15222 if test "${with_readdisplay+set}" = set; then :
15223 withval=$with_readdisplay; with_readdisplay="$withval"; with_readdisplay_req="$withval"
15225 with_readdisplay=yes
15230 case "$with_readdisplay" in
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XReadDisplay headers" >&5
15236 $as_echo_n "checking for XReadDisplay headers... " >&6; }
15237 d=$with_readdisplay/include
15238 if test -d $d; then
15239 X_CFLAGS="-I$d $X_CFLAGS"
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
15241 $as_echo "$d" >&6; }
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
15244 $as_echo "not found ($d: no such directory)" >&6; }
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XReadDisplay libs" >&5
15248 $as_echo_n "checking for XReadDisplay libs... " >&6; }
15249 d=$with_readdisplay/lib
15250 if test -d $d; then
15251 X_LIBS="-L$d $X_LIBS"
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
15253 $as_echo "$d" >&6; }
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
15256 $as_echo "not found ($d: no such directory)" >&6; }
15259 # replace the directory string with "yes".
15260 with_readdisplay_req="yes"
15261 with_readdisplay=$with_readdisplay_req
15266 echo "error: argument to --with-readdisplay must be \"yes\", \"no\", or a directory."
15267 echo " If it is a directory, then \`DIR/include' will be added to"
15268 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15274 if test "$with_readdisplay" = yes; then
15276 ac_save_CPPFLAGS="$CPPFLAGS"
15277 if test \! -z "$includedir" ; then
15278 CPPFLAGS="$CPPFLAGS -I$includedir"
15280 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15281 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15282 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/readdisplay.h" "ac_cv_header_X11_extensions_readdisplay_h" "#include <X11/Xlib.h>
15284 if test "x$ac_cv_header_X11_extensions_readdisplay_h" = xyes; then :
15285 $as_echo "#define HAVE_READ_DISPLAY_EXTENSION 1" >>confdefs.h
15290 CPPFLAGS="$ac_save_CPPFLAGS"
15291 elif test "$with_readdisplay" != no; then
15292 echo "error: must be yes or no: --with-readdisplay=$with_readdisplay"
15297 ###############################################################################
15299 # Check for a directory full of images to use as the default value
15300 # of the "imageDirectory" preference.
15302 ###############################################################################
15305 with_imagedir_req=unspecified
15308 # Check whether --with-image-directory was given.
15309 if test "${with_image_directory+set}" = set; then :
15310 withval=$with_image_directory; with_imagedir="$withval"; with_imagedir_req="$withval"
15315 # no HANDLE_X_PATH_ARG for this one
15317 case "$with_imagedir" in
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for image directory $with_imagedir" >&5
15321 $as_echo_n "checking for image directory $with_imagedir... " >&6; }
15322 if test -d "$with_imagedir" ; then
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15324 $as_echo "yes" >&6; }
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15327 $as_echo "no" >&6; }
15334 #### Could use some more defaults here...
15336 "/usr/share/backgrounds/images/" \
15337 "/usr/share/wallpapers/" \
15338 "/Library/Desktop Pictures/" \
15340 if test -z "$with_imagedir"; then
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for image directory $dd" >&5
15342 $as_echo_n "checking for image directory $dd... " >&6; }
15343 if test -d "$dd" ; then
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15345 $as_echo "yes" >&6; }
15346 with_imagedir="$dd"
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15349 $as_echo "no" >&6; }
15360 echo "error: must be an absolute path: --with-image-directory=$with_imagedir_req"
15364 ac_cv_imagedir="$with_imagedir"
15366 DEFAULT_IMAGES_P='True'
15367 DEFAULT_IMAGE_DIRECTORY="$ac_cv_imagedir"
15369 if test -z "$DEFAULT_IMAGE_DIRECTORY" ; then
15370 DEFAULT_IMAGES_P='False'
15374 ###############################################################################
15376 # Pick a text file to use as the default of the "textFile" preference.
15377 # Any old file will do, but preferably one that will make interesting
15378 # shapes when displayed by "starwars" and "fontglide".
15380 ###############################################################################
15383 with_textfile_req=unspecified
15386 # Check whether --with-text-file was given.
15387 if test "${with_text_file+set}" = set; then :
15388 withval=$with_text_file; with_textfile="$withval"; with_textfile_req="$withval"
15393 # no HANDLE_X_PATH_ARG for this one
15395 case "$with_textfile" in
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for text file $with_textfile" >&5
15399 $as_echo_n "checking for text file $with_textfile... " >&6; }
15400 if test -f "$with_textfile" ; then
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15402 $as_echo "yes" >&6; }
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15405 $as_echo "no" >&6; }
15412 #### Could use some more defaults here...
15414 "/usr/X11R6/lib/X11/doc/README" \
15415 "/usr/share/doc/xserver-common/copyright" \
15416 "/usr/share/doc/xserver-xorg-core/copyright" \
15417 "/usr/X11R6/README" \
15418 "/usr/share/doc/libX11*/COPYING" \
15419 "/usr/X11/share/X11/doc/README*" \
15420 "/usr/share/doc/debian/debian-manifesto" \
15422 if test -z "$with_textfile"; then
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for text file $f" >&5
15424 $as_echo_n "checking for text file $f... " >&6; }
15425 f=`/bin/ls $f 2>&- | head -1`
15426 if test -f "$f" ; then
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15428 $as_echo "yes" >&6; }
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15432 $as_echo "no" >&6; }
15443 echo "error: must be an absolute path: --with-text-file=$with_textfile_req"
15447 ac_cv_textfile="$with_textfile"
15449 DEFAULT_TEXT_FILE="$ac_cv_textfile"
15452 ###############################################################################
15454 # Check the browser to see help URL
15456 ###############################################################################
15459 with_browser_req=unspecified
15462 # Check whether --with-browser was given.
15463 if test "${with_browser+set}" = set; then :
15464 withval=$with_browser; with_browser="$withval"; with_browser_req="$withval"
15469 # no HANDLE_X_PATH_ARG for this one
15471 case "$with_browser" in
15475 WITH_BROWSER=$with_browser
15476 gnome_open_program=$with_browser
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for browser $with_browser" >&5
15478 $as_echo_n "checking for browser $with_browser... " >&6; }
15479 with_browser_fullpath=`which $with_browser 2>/dev/null`
15480 case $with_browser_fullpath in
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15483 $as_echo "yes" >&6; }
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15488 $as_echo "no" >&6; }
15489 # Only warning: we don't want to install all packages for the
15490 # dependency of the browser in building stage...
15491 echo "WARNING: browser not found: --with-browser=$with_browser"
15496 ac_cv_browser="$with_browser"
15498 ###############################################################################
15500 # Check whether it's ok to install some hacks as setuid (e.g., "sonar")
15501 # This should be safe, but let's give people the option.
15503 ###############################################################################
15505 setuid_hacks_default=no
15506 setuid_hacks="$setuid_hacks_default"
15508 # Check whether --with-setuid-hacks was given.
15509 if test "${with_setuid_hacks+set}" = set; then :
15510 withval=$with_setuid_hacks; setuid_hacks="$withval"
15512 setuid_hacks="$setuid_hacks_default"
15517 case "$setuid_hacks" in
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setuid hacks headers" >&5
15523 $as_echo_n "checking for setuid hacks headers... " >&6; }
15524 d=$setuid_hacks/include
15525 if test -d $d; then
15526 X_CFLAGS="-I$d $X_CFLAGS"
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
15528 $as_echo "$d" >&6; }
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
15531 $as_echo "not found ($d: no such directory)" >&6; }
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setuid hacks libs" >&5
15535 $as_echo_n "checking for setuid hacks libs... " >&6; }
15536 d=$setuid_hacks/lib
15537 if test -d $d; then
15538 X_LIBS="-L$d $X_LIBS"
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
15540 $as_echo "$d" >&6; }
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
15543 $as_echo "not found ($d: no such directory)" >&6; }
15546 # replace the directory string with "yes".
15547 setuid_hacks_req="yes"
15548 setuid_hacks=$setuid_hacks_req
15553 echo "error: argument to --with-setuid-hacks must be \"yes\", \"no\", or a directory."
15554 echo " If it is a directory, then \`DIR/include' will be added to"
15555 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15561 if test "$setuid_hacks" = yes; then
15563 elif test "$setuid_hacks" != no; then
15564 echo "error: must be yes or no: --with-setuid-hacks=$setuid_hacks"
15569 ###############################################################################
15571 # Check for --with-record-animation
15573 ###############################################################################
15575 record_anim_default=no
15576 record_anim="$record_anim_default"
15578 # Check whether --with-record-animation was given.
15579 if test "${with_record_animation+set}" = set; then :
15580 withval=$with_record_animation; record_anim="$withval"
15582 record_anim="$record_anim_default"
15587 case "$record_anim" in
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for record animation headers" >&5
15593 $as_echo_n "checking for record animation headers... " >&6; }
15594 d=$record_anim/include
15595 if test -d $d; then
15596 X_CFLAGS="-I$d $X_CFLAGS"
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
15598 $as_echo "$d" >&6; }
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
15601 $as_echo "not found ($d: no such directory)" >&6; }
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for record animation libs" >&5
15605 $as_echo_n "checking for record animation libs... " >&6; }
15607 if test -d $d; then
15608 X_LIBS="-L$d $X_LIBS"
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
15610 $as_echo "$d" >&6; }
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ($d: no such directory)" >&5
15613 $as_echo "not found ($d: no such directory)" >&6; }
15616 # replace the directory string with "yes".
15617 record_anim_req="yes"
15618 record_anim=$record_anim_req
15623 echo "error: argument to --with-record-animation must be \"yes\", \"no\", or a directory."
15624 echo " If it is a directory, then \`DIR/include' will be added to"
15625 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15631 if test "$record_anim" = yes; then
15633 elif test "$record_anim" != no; then
15634 echo "error: must be yes or no: --with-record-animation=$record_anim"
15638 if test "$record_anim" = yes; then
15639 if test "$have_gdk_pixbuf" != yes; then
15640 as_fn_error $? "--with-record-animation requires GDK-Pixbuf" "$LINENO" 5
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling --with-record-animation" >&5
15643 $as_echo "enabling --with-record-animation" >&6; }
15644 $as_echo "#define HAVE_RECORD_ANIM 1" >>confdefs.h
15646 ANIM_OBJS='$(ANIM_OBJS)'
15647 ANIM_LIBS='$(ANIM_LIBS)'
15651 ###############################################################################
15653 # Done testing. Now, set up the various -I and -L variables,
15654 # and decide which GUI program to build by default.
15656 ###############################################################################
15663 if test \! -z "$includedir" ; then
15664 INCLUDES="$INCLUDES -I$includedir"
15667 if test \! -z "$libdir" ; then
15668 LDFLAGS="$LDFLAGS -L$libdir"
15672 PREFERRED_DEMO_PROGRAM=''
15674 if test "$have_motif" = yes; then
15675 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Xm
15676 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
15678 if test "$have_gtk" = yes; then
15679 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Gtk
15680 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
15684 if test "$have_kerberos" = yes; then
15685 PASSWD_SRCS="$PASSWD_SRCS \$(KERBEROS_SRCS)"
15686 PASSWD_OBJS="$PASSWD_OBJS \$(KERBEROS_OBJS)"
15688 if test "$have_pam" = yes; then
15689 PASSWD_SRCS="$PASSWD_SRCS \$(PAM_SRCS)"
15690 PASSWD_OBJS="$PASSWD_OBJS \$(PAM_OBJS)"
15691 INSTALL_PAM="install-pam"
15693 if test "$enable_pam_check_account_type" = yes; then
15694 COMMENT_PAM_CHECK_ACCOUNT=""
15696 COMMENT_PAM_CHECK_ACCOUNT="#"
15698 if test "$have_passwd_helper" = yes; then
15699 PASSWD_SRCS="$PASSWD_SRCS \$(PWHELPER_SRCS)"
15700 PASSWD_OBJS="$PASSWD_OBJS \$(PWHELPER_OBJS)"
15702 PASSWD_SRCS="$PASSWD_SRCS \$(PWENT_SRCS)"
15703 PASSWD_OBJS="$PASSWD_OBJS \$(PWENT_OBJS)"
15706 if test "$enable_locking" = yes; then
15707 LOCK_SRCS='$(LOCK_SRCS_1) $(PASSWD_SRCS)'
15708 LOCK_OBJS='$(LOCK_OBJS_1) $(PASSWD_OBJS)'
15710 LOCK_SRCS='$(NOLOCK_SRCS_1)'
15711 LOCK_OBJS='$(NOLOCK_OBJS_1)'
15714 if test "$ac_macosx" = yes; then
15715 EXES_OSX='$(EXES_OSX)'
15716 SCRIPTS_OSX='$(SCRIPTS_OSX)'
15717 MEN_OSX='$(MEN_OSX)'
15725 INSTALL_SETUID='$(INSTALL_PROGRAM) $(SUID_FLAGS)'
15727 if test "$need_setuid" = yes; then
15733 if test "$setuid_hacks" = yes; then
15740 if test "$have_gl" = yes; then
15741 GL_EXES='$(GL_EXES)'
15742 SUID_EXES='$(SUID_EXES)'
15743 RETIRED_GL_EXES='$(RETIRED_GL_EXES)'
15744 GL_UTIL_EXES='$(GL_UTIL_EXES)'
15751 if test "$have_gle" = yes; then
15752 GLE_EXES='$(GLE_EXES)'
15758 if test "$have_jpeg" = yes -a "$have_gdk_pixbuf" = yes; then
15759 JPEG_EXES='$(JPEG_EXES)'
15763 # Another substitution in the XScreenSaver.ad.in file:
15765 if test "$gnome_open_program" != ''; then
15769 elif test "$gnome_url_show_program" != ''; then
15780 # Set PO_DATADIR to something sensible.
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale directory" >&5
15783 $as_echo_n "checking for locale directory... " >&6; }
15784 if test -n "$GTK_DATADIR" ; then
15785 PO_DATADIR="$GTK_DATADIR"
15786 elif test "$have_gtk" = yes; then
15787 PO_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
15788 PO_DATADIR="$PO_DATADIR/share"
15791 if test -z "$PO_DATADIR" ; then
15793 # #### Total fucking kludge --
15794 # Map /build/prefix/usr/X11R6/share/ to /build/prefix/usr/share/
15795 # but of course we need to expand all the nested variables to do that...
15797 dd=`eval eval eval eval eval eval eval eval eval eval eval echo $datadir`
15798 PO_DATADIR=`echo $dd | sed 's@/X11R6/@/@'`
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PO_DATADIR/locale" >&5
15802 $as_echo "$PO_DATADIR/locale" >&6; }
15805 # canonicalize slashes.
15806 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
15808 # gcc 3.0 likes to issue this warning for every file:
15810 # cc1: warning: changing search order for system directory "/usr/local/include"
15811 # cc1: warning: as it has already been specified as a non-system directory
15813 # Yay. We can only avoid that by deleting "-I${prefix}/include" from the list.
15814 # Which *should* be totally redundant, and thus an ok thing to delete?
15816 INCLUDES=`echo "$INCLUDES" | sed 's@ -I${prefix}/include@@g;'`
15819 ###############################################################################
15821 # Perform substitutions and write Makefiles.
15823 ###############################################################################
15899 APPDEFAULTS=$ac_x_app_defaults
15907 ac_config_files="$ac_config_files Makefile utils/Makefile driver/Makefile driver/xscreensaver.pam driver/xscreensaver-demo.glade2 hacks/Makefile hacks/glx/Makefile po/Makefile.in driver/XScreenSaver.ad"
15909 cat >confcache <<\_ACEOF
15910 # This file is a shell script that caches the results of configure
15911 # tests run on this system so they can be shared between configure
15912 # scripts and configure runs, see configure's option --config-cache.
15913 # It is not useful on other systems. If it contains results you don't
15914 # want to keep, you may remove or edit it.
15916 # config.status only pays attention to the cache file if you give it
15917 # the --recheck option to rerun configure.
15919 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15920 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15921 # following values.
15925 # The following way of writing the cache mishandles newlines in values,
15926 # but we know of no workaround that is simple, portable, and efficient.
15927 # So, we kill variables containing newlines.
15928 # Ultrix sh set writes to stderr and can't be redirected directly,
15929 # and sets the high bit in the cache file unless we assign to the vars.
15931 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15932 eval ac_val=\$$ac_var
15936 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15937 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15940 _ | IFS | as_nl) ;; #(
15941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15942 *) { eval $ac_var=; unset $ac_var;} ;;
15948 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15949 *${as_nl}ac_space=\ *)
15950 # `set' does not quote correctly, so add quotes: double-quote
15951 # substitution turns \\\\ into \\, and sed turns \\ into \.
15954 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15957 # `set' quotes correctly as required by POSIX, so do not add quotes.
15958 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15967 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15969 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15971 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15972 if test -w "$cache_file"; then
15973 if test "x$cache_file" != "x/dev/null"; then
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15975 $as_echo "$as_me: updating cache $cache_file" >&6;}
15976 if test ! -f "$cache_file" || test -h "$cache_file"; then
15977 cat confcache >"$cache_file"
15979 case $cache_file in #(
15981 mv -f confcache "$cache_file"$$ &&
15982 mv -f "$cache_file"$$ "$cache_file" ;; #(
15984 mv -f confcache "$cache_file" ;;
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15990 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15995 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15996 # Let make expand exec_prefix.
15997 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15999 DEFS=-DHAVE_CONFIG_H
16004 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16005 # 1. Remove the extension, and $U if already installed.
16006 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16007 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16008 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16009 # will be set to the directory where LIBOBJS objects are built.
16010 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16011 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16013 LIBOBJS=$ac_libobjs
16015 LTLIBOBJS=$ac_ltlibobjs
16019 ac_config_commands="$ac_config_commands po/stamp-it"
16023 : "${CONFIG_STATUS=./config.status}"
16025 ac_clean_files_save=$ac_clean_files
16026 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16028 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16030 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16032 # Generated by $as_me.
16033 # Run this file to recreate the current configuration.
16034 # Compiler output produced by configure, useful for debugging
16035 # configure, is in config.log if it exists.
16038 ac_cs_recheck=false
16041 SHELL=\${CONFIG_SHELL-$SHELL}
16044 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16045 ## -------------------- ##
16046 ## M4sh Initialization. ##
16047 ## -------------------- ##
16049 # Be more Bourne compatible
16050 DUALCASE=1; export DUALCASE # for MKS sh
16051 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16054 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16055 # is contrary to our usage. Disable this feature.
16056 alias -g '${1+"$@"}'='"$@"'
16057 setopt NO_GLOB_SUBST
16059 case `(set -o) 2>/dev/null` in #(
16071 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16072 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16073 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16074 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16075 # Prefer a ksh shell builtin over an external printf program on Solaris,
16076 # but without wasting forks for bash or zsh.
16077 if test -z "$BASH_VERSION$ZSH_VERSION" \
16078 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16079 as_echo='print -r --'
16080 as_echo_n='print -rn --'
16081 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16082 as_echo='printf %s\n'
16083 as_echo_n='printf %s'
16085 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16086 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16087 as_echo_n='/usr/ucb/echo -n'
16089 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16090 as_echo_n_body='eval
16094 expr "X$arg" : "X\\(.*\\)$as_nl";
16095 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16097 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16099 export as_echo_n_body
16100 as_echo_n='sh -c $as_echo_n_body as_echo'
16102 export as_echo_body
16103 as_echo='sh -c $as_echo_body as_echo'
16106 # The user is always right.
16107 if test "${PATH_SEPARATOR+set}" != set; then
16109 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16110 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16117 # We need space, tab and new line, in precisely that order. Quoting is
16118 # there to prevent editors from complaining about space-tab.
16119 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16120 # splitting by setting IFS to empty value.)
16123 # Find who we are. Look in the path if we contain no directory separator.
16126 *[\\/]* ) as_myself=$0 ;;
16127 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16128 for as_dir in $PATH
16131 test -z "$as_dir" && as_dir=.
16132 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16138 # We did not find ourselves, most probably we were run as `sh COMMAND'
16139 # in which case we are not to be found in the path.
16140 if test "x$as_myself" = x; then
16143 if test ! -f "$as_myself"; then
16144 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16148 # Unset variables that we do not need and which cause bugs (e.g. in
16149 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16150 # suppresses any "Segmentation fault" message there. '((' could
16151 # trigger a bug in pdksh 5.2.14.
16152 for as_var in BASH_ENV ENV MAIL MAILPATH
16153 do eval test x\${$as_var+set} = xset \
16154 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16167 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16170 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16171 # ----------------------------------------
16172 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16173 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16174 # script with STATUS, using 1 if that was 0.
16177 as_status=$1; test $as_status -eq 0 && as_status=1
16179 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16180 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16182 $as_echo "$as_me: error: $2" >&2
16183 as_fn_exit $as_status
16187 # as_fn_set_status STATUS
16188 # -----------------------
16189 # Set $? to STATUS, without forking.
16190 as_fn_set_status ()
16193 } # as_fn_set_status
16195 # as_fn_exit STATUS
16196 # -----------------
16197 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16201 as_fn_set_status $1
16207 # Portably unset VAR.
16210 { eval $1=; unset $1;}
16212 as_unset=as_fn_unset
16213 # as_fn_append VAR VALUE
16214 # ----------------------
16215 # Append the text in VALUE to the end of the definition contained in VAR. Take
16216 # advantage of any shell optimizations that allow amortized linear growth over
16217 # repeated appends, instead of the typical quadratic growth present in naive
16219 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16220 eval 'as_fn_append ()
16231 # as_fn_arith ARG...
16232 # ------------------
16233 # Perform arithmetic evaluation on the ARGs, and store the result in the
16234 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16235 # must be portable across $(()) and expr.
16236 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16237 eval 'as_fn_arith ()
16244 as_val=`expr "$@" || test $? -eq 1`
16249 if expr a : '\(a\)' >/dev/null 2>&1 &&
16250 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16256 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16257 as_basename=basename
16262 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16268 as_me=`$as_basename -- "$0" ||
16269 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16270 X"$0" : 'X\(//\)$' \| \
16271 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16273 sed '/^.*\/\([^/][^/]*\)\/*$/{
16287 # Avoid depending upon Character Ranges.
16288 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16289 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16290 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16291 as_cr_digits='0123456789'
16292 as_cr_alnum=$as_cr_Letters$as_cr_digits
16294 ECHO_C= ECHO_N= ECHO_T=
16295 case `echo -n x` in #(((((
16297 case `echo 'xy\c'` in
16298 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16300 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16307 rm -f conf$$ conf$$.exe conf$$.file
16308 if test -d conf$$.dir; then
16309 rm -f conf$$.dir/conf$$.file
16312 mkdir conf$$.dir 2>/dev/null
16314 if (echo >conf$$.file) 2>/dev/null; then
16315 if ln -s conf$$.file conf$$ 2>/dev/null; then
16317 # ... but there are two gotchas:
16318 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16319 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16320 # In both cases, we have to default to `cp -pR'.
16321 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16323 elif ln conf$$.file conf$$ 2>/dev/null; then
16331 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16332 rmdir conf$$.dir 2>/dev/null
16337 # Create "$as_dir" as a directory, including parents if necessary.
16342 -*) as_dir=./$as_dir;;
16344 test -d "$as_dir" || eval $as_mkdir_p || {
16348 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16349 *) as_qdir=$as_dir;;
16351 as_dirs="'$as_qdir' $as_dirs"
16352 as_dir=`$as_dirname -- "$as_dir" ||
16353 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16354 X"$as_dir" : 'X\(//\)[^/]' \| \
16355 X"$as_dir" : 'X\(//\)$' \| \
16356 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16357 $as_echo X"$as_dir" |
16358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16362 /^X\(\/\/\)[^/].*/{
16375 test -d "$as_dir" && break
16377 test -z "$as_dirs" || eval "mkdir $as_dirs"
16378 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16382 if mkdir -p . 2>/dev/null; then
16383 as_mkdir_p='mkdir -p "$as_dir"'
16385 test -d ./-p && rmdir ./-p
16390 # as_fn_executable_p FILE
16391 # -----------------------
16392 # Test if FILE is an executable regular file.
16393 as_fn_executable_p ()
16395 test -f "$1" && test -x "$1"
16396 } # as_fn_executable_p
16397 as_test_x='test -x'
16398 as_executable_p=as_fn_executable_p
16400 # Sed expression to map a string onto a valid CPP name.
16401 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16403 # Sed expression to map a string onto a valid variable name.
16404 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16408 ## ----------------------------------- ##
16409 ## Main body of $CONFIG_STATUS script. ##
16410 ## ----------------------------------- ##
16412 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16415 # Save the log message, to keep $0 and so on meaningful, and to
16416 # report actual input values of CONFIG_FILES etc. instead of their
16417 # values after options handling.
16419 This file was extended by $as_me, which was
16420 generated by GNU Autoconf 2.69. Invocation command line was
16422 CONFIG_FILES = $CONFIG_FILES
16423 CONFIG_HEADERS = $CONFIG_HEADERS
16424 CONFIG_LINKS = $CONFIG_LINKS
16425 CONFIG_COMMANDS = $CONFIG_COMMANDS
16428 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16433 case $ac_config_files in *"
16434 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16437 case $ac_config_headers in *"
16438 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16443 # Files that config.status was made for.
16444 config_files="$ac_config_files"
16445 config_headers="$ac_config_headers"
16446 config_commands="$ac_config_commands"
16450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16452 \`$as_me' instantiates files and other configuration actions
16453 from templates according to the current configuration. Unless the files
16454 and actions are specified as TAGs, all are instantiated by default.
16456 Usage: $0 [OPTION]... [TAG]...
16458 -h, --help print this help, then exit
16459 -V, --version print version number and configuration settings, then exit
16460 --config print configuration, then exit
16461 -q, --quiet, --silent
16462 do not print progress messages
16463 -d, --debug don't remove temporary files
16464 --recheck update $as_me by reconfiguring in the same conditions
16465 --file=FILE[:TEMPLATE]
16466 instantiate the configuration file FILE
16467 --header=FILE[:TEMPLATE]
16468 instantiate the configuration header FILE
16470 Configuration files:
16473 Configuration headers:
16476 Configuration commands:
16479 Report bugs to the package provider."
16482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16483 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16486 configured by $0, generated by GNU Autoconf 2.69,
16487 with options \\"\$ac_cs_config\\"
16489 Copyright (C) 2012 Free Software Foundation, Inc.
16490 This config.status script is free software; the Free Software Foundation
16491 gives unlimited permission to copy, distribute and modify it."
16496 test -n "\$AWK" || AWK=awk
16499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16500 # The default lists apply if the user does not specify any file.
16506 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16507 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16511 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16523 # Handling of the options.
16524 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16526 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16527 $as_echo "$ac_cs_version"; exit ;;
16528 --config | --confi | --conf | --con | --co | --c )
16529 $as_echo "$ac_cs_config"; exit ;;
16530 --debug | --debu | --deb | --de | --d | -d )
16532 --file | --fil | --fi | --f )
16535 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16536 '') as_fn_error $? "missing file argument" ;;
16538 as_fn_append CONFIG_FILES " '$ac_optarg'"
16539 ac_need_defaults=false;;
16540 --header | --heade | --head | --hea )
16543 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16545 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16546 ac_need_defaults=false;;
16548 # Conflict between --help and --header
16549 as_fn_error $? "ambiguous option: \`$1'
16550 Try \`$0 --help' for more information.";;
16551 --help | --hel | -h )
16552 $as_echo "$ac_cs_usage"; exit ;;
16553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16554 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16557 # This is an error.
16558 -*) as_fn_error $? "unrecognized option: \`$1'
16559 Try \`$0 --help' for more information." ;;
16561 *) as_fn_append ac_config_targets " $1"
16562 ac_need_defaults=false ;;
16568 ac_configure_extra_args=
16570 if $ac_cs_silent; then
16572 ac_configure_extra_args="$ac_configure_extra_args --silent"
16576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16577 if \$ac_cs_recheck; then
16578 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16580 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16581 CONFIG_SHELL='$SHELL'
16582 export CONFIG_SHELL
16587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16591 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16592 ## Running $as_me. ##
16598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16608 # Handling of arguments.
16609 for ac_config_target in $ac_config_targets
16611 case $ac_config_target in
16612 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16613 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16614 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16615 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
16616 "driver/Makefile") CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;;
16617 "driver/xscreensaver.pam") CONFIG_FILES="$CONFIG_FILES driver/xscreensaver.pam" ;;
16618 "driver/xscreensaver-demo.glade2") CONFIG_FILES="$CONFIG_FILES driver/xscreensaver-demo.glade2" ;;
16619 "hacks/Makefile") CONFIG_FILES="$CONFIG_FILES hacks/Makefile" ;;
16620 "hacks/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hacks/glx/Makefile" ;;
16621 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16622 "driver/XScreenSaver.ad") CONFIG_FILES="$CONFIG_FILES driver/XScreenSaver.ad" ;;
16623 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
16625 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16630 # If the user did not use the arguments to specify the items to instantiate,
16631 # then the envvar interface is used. Set only those that are not.
16632 # We use the long form for the default assignment because of an extremely
16633 # bizarre bug on SunOS 4.1.3.
16634 if $ac_need_defaults; then
16635 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16636 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16637 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16640 # Have a temporary directory for convenience. Make it in the build tree
16641 # simply because there is no reason against having it here, and in addition,
16642 # creating and moving files from /tmp can sometimes cause problems.
16643 # Hook for its removal unless debugging.
16644 # Note that there is a small window in which the directory will not be cleaned:
16645 # after its creation but before its name has been assigned to `$tmp'.
16649 trap 'exit_status=$?
16650 : "${ac_tmp:=$tmp}"
16651 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16653 trap 'as_fn_exit 1' 1 2 13 15
16655 # Create a (secure) tmp directory for tmp files.
16658 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16662 tmp=./conf$$-$RANDOM
16663 (umask 077 && mkdir "$tmp")
16664 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16667 # Set up the scripts for CONFIG_FILES section.
16668 # No need to generate them if there are no CONFIG_FILES.
16669 # This happens for instance with `./config.status config.h'.
16670 if test -n "$CONFIG_FILES"; then
16673 ac_cr=`echo X | tr X '\015'`
16674 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16675 # But we know of no other shell where ac_cr would be empty at this
16676 # point, so we can use a bashism as a fallback.
16677 if test "x$ac_cr" = x; then
16678 eval ac_cr=\$\'\\r\'
16680 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16681 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16684 ac_cs_awk_cr=$ac_cr
16687 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16692 echo "cat >conf$$subs.awk <<_ACEOF" &&
16693 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16695 } >conf$$subs.sh ||
16696 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16697 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16699 for ac_last_try in false false false false false :; do
16700 . ./conf$$subs.sh ||
16701 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16703 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16704 if test $ac_delim_n = $ac_delim_num; then
16706 elif $ac_last_try; then
16707 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16709 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16712 rm -f conf$$subs.sh
16714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16715 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16719 s/^/S["/; s/!.*/"]=/
16729 s/\(.\{148\}\)..*/\1/
16731 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16736 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16743 s/\(.\{148\}\)..*/\1/
16745 s/["\\]/\\&/g; s/^/"/; s/$/"/
16749 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16754 ' <conf$$subs.awk | sed '
16759 ' >>$CONFIG_STATUS || ac_write_fail=1
16760 rm -f conf$$subs.awk
16761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16763 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16764 for (key in S) S_is_set[key] = 1
16770 nfields = split(line, field, "@")
16772 len = length(field[1])
16773 for (i = 2; i < nfields; i++) {
16775 keylen = length(key)
16776 if (S_is_set[key]) {
16778 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16779 len += length(value) + length(field[++i])
16790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16791 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16792 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16795 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16796 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16799 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16800 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16801 # trailing colons and then remove the whole line if VPATH becomes empty
16802 # (actually we leave an empty line to preserve line numbers).
16803 if test "x$srcdir" = x.; then
16804 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16823 fi # test -n "$CONFIG_FILES"
16825 # Set up the scripts for CONFIG_HEADERS section.
16826 # No need to generate them if there are no CONFIG_HEADERS.
16827 # This happens for instance with `./config.status Makefile'.
16828 if test -n "$CONFIG_HEADERS"; then
16829 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16833 # Transform confdefs.h into an awk script `defines.awk', embedded as
16834 # here-document in config.status, that substitutes the proper values into
16835 # config.h.in to produce config.h.
16837 # Create a delimiter string that does not exist in confdefs.h, to ease
16838 # handling of long lines.
16840 for ac_last_try in false false :; do
16841 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16842 if test -z "$ac_tt"; then
16844 elif $ac_last_try; then
16845 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16847 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16851 # For the awk script, D is an array of macro values keyed by name,
16852 # likewise P contains macro parameters if any. Preserve backslash
16853 # newline sequences.
16855 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16857 s/.\{148\}/&'"$ac_delim"'/g
16860 s/^[ ]*#[ ]*define[ ][ ]*/ /
16867 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16869 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16873 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16874 D["\1"]=" \3\\\\\\n"\\/p
16876 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16881 s/.\{148\}/&'"$ac_delim"'/g
16886 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16889 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16891 ' <confdefs.h | sed '
16892 s/'"$ac_delim"'/"\\\
16893 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16896 for (key in D) D_is_set[key] = 1
16899 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16901 split(line, arg, " ")
16902 if (arg[1] == "#") {
16906 defundef = substr(arg[1], 2)
16909 split(mac1, mac2, "(") #)
16911 prefix = substr(line, 1, index(line, defundef) - 1)
16912 if (D_is_set[macro]) {
16913 # Preserve the white space surrounding the "#".
16914 print prefix "define", macro P[macro] D[macro]
16917 # Replace #undef with comments. This is necessary, for example,
16918 # in the case of _POSIX_SOURCE, which is predefined and required
16919 # on some systems where configure will not decide to define it.
16920 if (defundef == "undef") {
16921 print "/*", prefix defundef, macro, "*/"
16929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16930 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16931 fi # test -n "$CONFIG_HEADERS"
16934 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16939 :[FHLC]) ac_mode=$ac_tag; continue;;
16941 case $ac_mode$ac_tag in
16943 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16944 :[FH]-) ac_tag=-:-;;
16945 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16962 -) ac_f="$ac_tmp/stdin";;
16963 *) # Look for the file first in the build tree, then in the source tree
16964 # (if the path is not absolute). The absolute path cannot be DOS-style,
16965 # because $ac_f cannot contain `:'.
16969 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16971 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16973 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16974 as_fn_append ac_file_inputs " '$ac_f'"
16977 # Let's still pretend it is `configure' which instantiates (i.e., don't
16978 # use $as_me), people would be surprised to read:
16979 # /* config.h. Generated by config.status. */
16980 configure_input='Generated from '`
16981 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16983 if test x"$ac_file" != x-; then
16984 configure_input="$ac_file. $configure_input"
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16986 $as_echo "$as_me: creating $ac_file" >&6;}
16988 # Neutralize special characters interpreted by sed in replacement strings.
16989 case $configure_input in #(
16990 *\&* | *\|* | *\\* )
16991 ac_sed_conf_input=`$as_echo "$configure_input" |
16992 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16993 *) ac_sed_conf_input=$configure_input;;
16997 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16998 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17003 ac_dir=`$as_dirname -- "$ac_file" ||
17004 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17005 X"$ac_file" : 'X\(//\)[^/]' \| \
17006 X"$ac_file" : 'X\(//\)$' \| \
17007 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17008 $as_echo X"$ac_file" |
17009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17013 /^X\(\/\/\)[^/].*/{
17026 as_dir="$ac_dir"; as_fn_mkdir_p
17030 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17032 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17033 # A ".." for each directory in $ac_dir_suffix.
17034 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17035 case $ac_top_builddir_sub in
17036 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17037 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17040 ac_abs_top_builddir=$ac_pwd
17041 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17042 # for backward compatibility:
17043 ac_top_builddir=$ac_top_build_prefix
17046 .) # We are building in place.
17048 ac_top_srcdir=$ac_top_builddir_sub
17049 ac_abs_top_srcdir=$ac_pwd ;;
17050 [\\/]* | ?:[\\/]* ) # Absolute name.
17051 ac_srcdir=$srcdir$ac_dir_suffix;
17052 ac_top_srcdir=$srcdir
17053 ac_abs_top_srcdir=$srcdir ;;
17054 *) # Relative name.
17055 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17056 ac_top_srcdir=$ac_top_build_prefix$srcdir
17057 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17059 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17069 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17070 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17075 # If the template does not know about datarootdir, expand it.
17076 # FIXME: This hack should be removed a few years after 2.60.
17077 ac_datarootdir_hack=; ac_datarootdir_seen=
17088 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17089 *datarootdir*) ac_datarootdir_seen=yes;;
17090 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17092 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17095 ac_datarootdir_hack='
17096 s&@datadir@&$datadir&g
17097 s&@docdir@&$docdir&g
17098 s&@infodir@&$infodir&g
17099 s&@localedir@&$localedir&g
17100 s&@mandir@&$mandir&g
17101 s&\\\${datarootdir}&$datarootdir&g' ;;
17105 # Neutralize VPATH when `$srcdir' = `.'.
17106 # Shell code in configure.ac might set extrasub.
17107 # FIXME: do we really want to maintain this feature?
17108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17109 ac_sed_extra="$ac_vpsub
17112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17114 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17115 s|@configure_input@|$ac_sed_conf_input|;t t
17116 s&@top_builddir@&$ac_top_builddir_sub&;t t
17117 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17118 s&@srcdir@&$ac_srcdir&;t t
17119 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17120 s&@top_srcdir@&$ac_top_srcdir&;t t
17121 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17122 s&@builddir@&$ac_builddir&;t t
17123 s&@abs_builddir@&$ac_abs_builddir&;t t
17124 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17125 s&@INSTALL@&$ac_INSTALL&;t t
17126 $ac_datarootdir_hack
17128 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17129 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17131 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17132 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17133 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17134 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17136 which seems to be undefined. Please make sure it is defined" >&5
17137 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17138 which seems to be undefined. Please make sure it is defined" >&2;}
17140 rm -f "$ac_tmp/stdin"
17142 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17143 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17145 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17151 if test x"$ac_file" != x-; then
17153 $as_echo "/* $configure_input */" \
17154 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17155 } >"$ac_tmp/config.h" \
17156 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17157 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17159 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17162 mv "$ac_tmp/config.h" "$ac_file" \
17163 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17166 $as_echo "/* $configure_input */" \
17167 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17168 || as_fn_error $? "could not create -" "$LINENO" 5
17172 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17173 $as_echo "$as_me: executing $ac_file commands" >&6;}
17178 case $ac_file$ac_mode in
17179 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
17180 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
17183 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
17184 as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
17186 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
17191 '"s|^| $ac_top_srcdir/|" \
17192 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
17194 sed '/^POTFILES =/,/[^\\]$/ {
17198 ' "po/Makefile.in" >"po/Makefile"
17199 rm -f "po/Makefile.tmp"
17200 mv "po/stamp-it.tmp" "po/stamp-it"
17209 ac_clean_files=$ac_clean_files_save
17211 test $ac_write_fail = 0 ||
17212 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17215 # configure is writing to config.log, and then calls config.status.
17216 # config.status does its own redirection, appending to config.log.
17217 # Unfortunately, on DOS this fails, as config.log is still kept open
17218 # by configure, so config.status won't be able to write to it; its
17219 # output is simply discarded. So we exec the FD to /dev/null,
17220 # effectively closing config.log, so it can be properly (re)opened and
17221 # appended to by config.status. When coming back to configure, we
17222 # need to make the FD available again.
17223 if test "$no_create" != yes; then
17225 ac_config_status_args=
17226 test "$silent" = yes &&
17227 ac_config_status_args="$ac_config_status_args --quiet"
17229 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17231 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17232 # would make configure fail if this is the last instruction.
17233 $ac_cs_success || as_fn_exit 1
17235 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17237 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17241 ###############################################################################
17243 # Print some warnings at the end.
17245 ###############################################################################
17247 warn_prefix_1=" Warning:"
17248 warn_prefix_2=" Note:"
17249 warn_prefix="$warn_prefix_1"
17252 warnsep=' #################################################################'
17255 if test "$warning" = no ; then
17256 echo '' ; echo "$warnsep" ; echo ''
17263 if test "$warning" = long ; then echo '' ; fi
17266 echo "$warn_prefix $rest"
17273 if test "$was" != no ; then echo '' ; fi
17275 echo "$warn_prefix $rest"
17285 warn_prefix="$warn_prefix_2"
17287 warn_prefix="$warn_prefix_1"
17291 warn_prefix="$warn_prefix_2"
17293 warn_prefix="$warn_prefix_1"
17297 # ac_prog_cc_no_pthread normally only happens on AIX, because according
17298 # to AX_PTHREAD, AIX needs CC=xlc_r or CC=cc_r to do threads.
17299 # If CC is specified, it takes precedence over --with-pthread.
17300 if test "$ac_prog_cc_no_pthread" ; then
17301 warnL "You requested $ac_original_cc for the C compiler, but it doesn't"
17302 warn2 "support POSIX threads."
17304 warn2 "If you have multiple CPU cores, try CC=$PTHREAD_CC."
17305 elif test "$with_pthread_req" = yes -a "$have_pthread" = no ; then
17306 warn 'POSIX threads were requested, but were not found.'
17309 if test "$with_sgi_req" = yes -a "$have_sgi" = no ; then
17310 warn 'The SGI saver extension was requested, but was not found.'
17313 if test "$with_xidle_req" = yes -a "$have_xidle" = no ; then
17314 warn 'The XIdle extension was requested, but was not found.'
17317 if test "$with_xshm_req" = yes -a "$have_xshm" = no ; then
17318 warn 'The XSHM extension was requested, but was not found.'
17321 if test "$with_xdbe_req" = yes -a "$have_xdbe" = no ; then
17322 warn 'The DOUBLE-BUFFER extension was requested, but was not found.'
17325 if test "$with_sgivc_req" = yes -a "$have_sgivc" = no ; then
17326 warn 'The SGI-VIDEO-CONTROL extension was requested, but was not found.'
17329 if test "$with_dpms_req" = yes -a "$have_dpms" = no ; then
17330 warn 'The DPMS extension was requested, but was not found.'
17333 if test "$with_xinerama_req" = yes -a "$have_xinerama" = no ; then
17334 warn 'The Xinerama extension was requested, but was not found.'
17337 if test "$with_xf86vmode_req" = yes -a "$have_xf86vmode" = no ; then
17338 warn 'The XF86VMODE extension was requested, but was not found.'
17341 if test "$with_randr_req" = yes -a "$have_randr" = no ; then
17342 warn 'The RANDR extension was requested, but was not found.'
17345 if test "$with_proc_interrupts_req" = yes -a "$have_proc_interrupts" = no; then
17346 warn "Checking of /proc/interrupts was requested, but it's bogus."
17349 if test "$pkg_config" = false ; then
17350 warnL 'The "pkg-config" program was not found. Without that,'
17351 warn2 "detection of the various GTK libraries won't work."
17353 pkgerr=`$pkg_config --list-all 2>&1 >/dev/null`
17354 if test "x$pkgerr" != "x" ; then
17355 warnL 'The "pkg-config" program produces errors. This often causes'
17356 warn2 "detection of the various GTK libraries to malfunction."
17357 warn2 "The errors are:"
17359 echo "$pkgerr" | sed 's/^/ > /g'
17363 if test "$gtk_halfassed" != no ; then
17364 warnL "GTK version $gtk_halfassed was found, but at least one supporting"
17365 warn2 "library ($gtk_halfassed_lib) was not, so GTK can't be used."
17366 warn2 "Perhaps some of the development packages are not installed?"
17367 if test "$have_gtk" = yes ; then
17368 v="$ac_gtk_version_string"
17369 warn2 "GTK $v is also installed, so it will be used instead."
17370 warn2 "Please read the above output and the \`config.log' file"
17371 warn2 "for more details."
17376 warn2 'Though the Motif front-end to xscreensaver is still'
17377 warn2 'maintained, it is no longer being updated with new'
17378 warn2 'features: all new development on the xscreensaver-demo'
17379 warn2 'program is happening in the GTK version, and not in the'
17380 warn2 'Motif version. It is recommended that you build against'
17381 warn2 'GTK instead of Motif. See <http://www.gtk.org/>.'
17384 if test "$have_motif" = no -a "$have_gtk" = no; then
17386 if test "$with_motif" = yes; then
17387 warnL "Neither the GTK nor Motif libraries were found; the"
17388 warn2 "\`xscreensaver-demo' program requires one of these."
17392 warnL "The GTK libraries do not seem to be available; the"
17393 warn2 "\`xscreensaver-demo' program requires them."
17395 # warn2 'You can use Motif or Lesstif instead of GTK (use the'
17396 # warn2 "\`--with-motif' option) but that is NOT recommended."
17400 elif test "$with_motif_req" = yes -a "$have_motif" = no ; then
17401 warnL "Use of Motif was requested, but it wasn't found;"
17402 warn2 "Gtk will be used instead."
17404 elif test "$jurassic_gtk" = yes ; then
17408 v="$ac_gtk_version_string"
17409 if test "$with_gtk_req" = yes -a "$ac_gtk_version" = "unknown" ; then
17410 warnL "Use of Gtk was requested, but its version number is unknown;"
17411 elif test "$with_gtk_req" = yes ; then
17412 warnL "Use of Gtk was requested, but it is version $v;"
17414 warnL "Gtk was found on this system, but it is version $v;"
17417 warn2 "Gtk $pref_gtk or newer is required."
17419 elif test "$with_gtk_req" = yes -a "$have_gtk" = no ; then
17420 warnL "Use of Gtk was requested, but it wasn't found."
17424 if test "$have_gtk" = yes -a "$have_gdk_pixbuf" = no ; then
17425 warn "GTK is being used, but the GDK-Pixbuf library and/or"
17426 warn2 "headers were not found. That can't be good. Please"
17427 warn2 "install the GDK-Pixbuf development kit and re-configure."
17430 if test "$have_motif" = yes -a "$have_lesstif" = yes ; then
17432 preferred_lesstif=0.92
17434 if test "$lesstif_version" = unknown; then
17435 warnL "Unable to determine the LessTif version number!"
17436 warn2 "Make sure you are using version $preferred_lesstif or newer."
17437 warn2 "See <http://www.lesstif.org/>."
17439 elif test \! $lesstif_version -gt 82; then
17440 warnL "LessTif version $lesstif_version_string is being used."
17441 warn2 "LessTif versions 0.82 and earlier are too buggy to"
17442 warn2 "use with XScreenSaver; it is strongly recommended"
17443 warn2 "that you upgrade to at least version $preferred_lesstif!"
17444 warn2 "See <http://www.lesstif.org/>."
17449 if test "$have_motif" = yes -a "$have_gtk" = no ; then
17450 warn 'Motif is being used, and GTK is not.'
17456 if test "$with_xpm_req" = yes -a "$have_xpm" = no; then
17457 warnL 'Use of XPM was requested, but it was not found.'
17460 if test "$with_gdk_pixbuf_req" = yes -a "$have_gdk_pixbuf" = no; then
17461 warnL 'Use of GDK-Pixbuf was requested, but it was not found.'
17464 if test "$have_gdk_pixbuf" = no -o "$gdk_pixbuf_halfassed" = yes || \
17465 test "$have_gdk_pixbuf" = no -a "$have_xpm" = no ; then
17467 if test "$with_gdk_pixbuf_req" = yes ; then
17469 elif test "$with_gdk_pixbuf_req" = no ; then
17470 warnL 'The GDK-Pixbuf library is not being used.'
17472 warnL 'The GDK-Pixbuf library was not found.'
17475 if test "$with_xpm_req" = yes -o "$have_xpm" = yes ; then
17477 elif test "$with_xpm_req" = no ; then
17478 warnL 'The XPM library is not being used.'
17480 warnL 'The XPM library was not found.'
17483 if test "$have_gdk_pixbuf" = no -a "$have_xpm" = yes ; then
17484 warn2 'The XPM library is being used instead.'
17487 if test "$gdk_pixbuf_halfassed" = yes ; then
17489 warn2 'More specifically, we found the headers, but not the'
17490 warn2 'libraries; so either GDK-Pixbuf is half-installed on this'
17491 warn2 "system, or something else went wrong. The \`config.log'"
17492 warn2 'file might contain some clues.'
17496 warn2 'Some of the demos will not use images as much as they could.'
17497 warn2 'You should consider installing GDK-Pixbuf and re-running'
17498 warn2 'configure. (GDK-Pixbuf is recommended over XPM, as it'
17499 warn2 'provides support for more image formats.)'
17503 if test "$have_jpeg" = no ; then
17504 if test "$with_jpeg_req" = yes ; then
17505 warnL 'Use of libjpeg was requested, but it was not found.'
17506 elif test "$with_jpeg_req" = no ; then
17507 noteL 'The JPEG library is not being used.'
17509 noteL 'The JPEG library was not found.'
17512 if test "$jpeg_halfassed" = yes ; then
17514 warn2 'More specifically, we found the headers, but not the'
17515 warn2 'library; so either JPEG is half-installed on this'
17516 warn2 "system, or something else went wrong. The \`config.log'"
17517 warn2 'file might contain some clues.'
17521 if test "$have_gdk_pixbuf" = no ; then
17522 warn2 "This means that it won't be possible for the image-manipulating"
17523 warn2 "display modes to load files from disk; and it also means that"
17524 warn2 "the \`webcollage' program will be much slower."
17526 warn2 "This means the \`webcollage' program will be much slower."
17531 if test "$have_xft" = no ; then
17532 if test "$with_xft_req" = yes ; then
17533 warnL "Use of libXft was requested, but it was not found."
17534 elif test "$with_xft_req" = no ; then
17535 noteL 'The Xft library is not being used.'
17537 noteL "The Xft library was not found."
17540 if test "$xft_halfassed" = yes ; then
17542 warn2 'More specifically, we found the headers, but not the'
17543 warn2 'libraries; so either Xft is half-installed on this'
17544 warn2 "system, or something else went wrong. The \`config.log'"
17545 warn2 'file might contain some clues.'
17549 warn2 "This means that fonts won't be anti-aliased."
17553 if test "$have_gl" = yes -a "$ac_have_mesa_gl" = yes ; then
17554 preferred_mesagl=3.4
17555 mgv="$ac_mesagl_version_string"
17556 pgl="$preferred_mesagl"
17558 if test "$ac_mesagl_version" = unknown; then
17560 # warnL "Unable to determine the MesaGL version number!"
17561 # warn2 "Make sure you are using version $preferred_mesagl or newer."
17563 elif test \! "$ac_mesagl_version" -gt 2006; then
17564 warnL "MesaGL version number is $mgv --"
17565 warn2 "MesaGL 2.6 and earlier have a security bug. It is strongly"
17566 warn2 "recommended that you upgrade to at least version $preferred_mesagl."
17568 elif test \! "$ac_mesagl_version" -gt 3003; then
17569 warnL "MesaGL version number is $mgv --"
17570 warn2 "MesaGL 3.3 and earlier have some bugs; it is recommended"
17571 warn2 "that you upgrade to $pgl or newer."
17575 if test "$have_gl" = no ; then
17576 if test "$with_gl_req" = yes ; then
17577 warnL 'Use of GL was requested, but it was not found.'
17578 elif test "$with_gl_req" = no ; then
17579 noteL 'The OpenGL 3D library is not being used.'
17581 noteL 'The OpenGL 3D library was not found.'
17584 if test "$gl_halfassed" = yes ; then
17586 warn2 'More specifically, we found the headers, but not the'
17587 warn2 'libraries; so either GL is half-installed on this'
17588 warn2 "system, or something else went wrong. The \`config.log'"
17589 warn2 'file might contain some clues.'
17593 warn2 'Those demos which use 3D will not be built or installed.'
17594 warn2 'You might want to consider installing OpenGL and'
17595 warn2 're-running configure.'
17600 if test "$have_gl" = yes -a "$have_gle" = no ; then
17602 # nobody cares about this; don't print the warning unless it was
17603 # requested and not found, or halfway-found.
17604 if test "$with_gle_req" = yes -o "$gle_halfassed" = yes ; then
17606 if test "$with_gle_req" = yes ; then
17607 noteL 'Use of the GLE (GL Extrusion) library was requested, but'
17608 warn2 'it was not found (though the OpenGL library was found, and'
17609 warn2 'is being used.)'
17610 elif test "$with_gle_req" = no ; then
17611 noteL 'The OpenGL Library is being used, but the GLE (GL Extrusion)'
17612 warn2 'library is not.'
17614 noteL 'The OpenGL Library was found, but the GLE (GL Extrusion)'
17615 warn2 'library was not.'
17618 if test "$gle_halfassed" = yes ; then
17620 warn2 'More specifically, we found the headers, but not the'
17621 warn2 'libraries; so either GLE is half-installed on this'
17622 warn2 "system, or something else went wrong. The \`config.log'"
17623 warn2 'file might contain some clues.'
17627 warn2 'Some of the OpenGL (3D) demos (those that depend on GLE)'
17628 warn2 'will not be built or installed. You might want to consider'
17629 warn2 'installing GLE and re-running configure. You can find the'
17630 warn2 'GLE library at <http://www.linas.org/gle/>'
17636 if test "$with_readdisplay_req" = yes -a "$have_readdisplay" = no ; then
17637 warn 'Use of XReadDisplay was requested, but it was not found.'
17640 if test "$with_kerberos_req" = yes -a "$have_kerberos" = no ; then
17641 warn 'Use of Kerberos was requested, but it was not found.'
17644 if test "$with_pam_req" = yes -a "$have_pam" = no ; then
17645 warn 'Use of PAM was requested, but it was not found.'
17648 if test "$with_shadow_req" = yes -a "$have_shadow" = no ; then
17649 warn 'Use of shadow passwords was requested, but they were not found.'
17652 if test "$ac_macosx" = yes ; then
17653 if test "$enable_locking" = yes ; then
17654 warn "You have specified --enable-locking on MacOS X."
17655 warn2 "THIS DOES NOT WORK! Don't do this!"
17660 # You are in a twisty maze of namespaces and syntaxes, all alike.
17661 # Fuck the skull of Unix.
17663 bindir=`eval eval eval eval eval eval eval echo $bindir`
17664 HACKDIR=`eval eval eval eval eval eval eval echo $HACKDIR`
17665 HACK_CONF_DIR=`eval eval eval eval eval eval eval echo $HACK_CONF_DIR`
17667 # canonicalize slashes.
17668 bindir=`echo "${bindir}" | sed 's@/$@@;s@//*@/@g'`
17669 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
17670 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
17673 # Sanity check the hackdir
17674 for bad_choice in xscreensaver xscreensaver-demo xscreensaver-command ; do
17675 if test "${HACKDIR}" = "${bindir}/${bad_choice}" ; then
17677 as_fn_error $? "\"--with-hackdir=${bindir}/${bad_choice}\" won't work.
17678 There will be an executable installed with that name, so
17679 that can't be the name of a directory as well. Please
17680 re-configure with a different directory name." "$LINENO" 5
17687 # Now let's warn if there's a previous RPM version already installed.
17688 # But don't bother with this test if we are currently *building* an RPM.
17690 if test -z "$RPM_PACKAGE_VERSION" ; then
17692 rpmnames="xscreensaver xscreensaver-base xscreensaver-extras"
17696 rpmv=`(rpm -qv $rpmnames) 2>/dev/null | \
17697 sed -n 's/^[-a-z]*-\([0-9][0-9]*[.][0-9][0-9a-z]*\)-.*$/\1/p' | \
17701 if test \! -z "$rpmv" ; then
17702 rpmbdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/xscreensaver-demo$@\1@p'`
17703 rpmhdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/popsquares$@\1@p'`
17706 warnL "There is already an installed RPM of xscreensaver $rpmv"
17707 warn2 'on this system. You might want to remove it ("rpm -ve")'
17708 warn2 'before running "make install" in this directory.'
17710 warn2 "Alternately, you could build this version of xscreensaver"
17711 warn2 'as an RPM, and then install that. An "xscreensaver.spec"'
17712 warn2 'file is included. Try "rpmbuild -v -ba xscreensaver.spec".'
17713 warn2 "See the RPM documentation for more info."
17716 if test "$rpmbdir" = "$rpmhdir" ; then
17717 warn2 "The RPM version was installed in $rpmbdir/."
17720 warn2 "The RPM version was installed in $rpmbdir/,"
17721 warn2 "with demos in $rpmhdir/."
17726 # Also warn if there's a Debian package installed.
17728 debnames="xscreensaver xscreensaver-data xscreensaver-data-extra"
17730 for dpkg in $debnames ; do
17731 if test -z "$debv"; then
17732 debv=`dpkg -s $dpkg 2>/dev/null | sed -n 's/^Version: \(.*\)$/\1/p'`
17736 if test \! -z "$debv" ; then
17737 debbdir=`dpkg -L $debnames 2>/dev/null | \
17738 sed -n 's@^\(.*/bin/\)xscreensaver$@\1@p'`
17739 debhdir=`dpkg -L $debnames 2>/dev/null | \
17740 sed -n 's@^\(.*/\)popsquares$@\1@p'`
17741 if test -z "$debbdir" ; then debbdir='???'; fi
17742 if test -z "$debhdir" ; then debhdir='???'; fi
17745 warnL "There is already an installed dpkg of xscreensaver"
17746 warn2 "version \"$debv\" on this system."
17748 warn2 "The dpkg was installed in $debbdir,"
17749 warn2 "with demos in $debhdir."
17753 if test "${bindir}" = "${HACKDIR}" ; then
17757 if test "$do_dir_warning" = yes; then
17761 echo ' When you run "make install", the "xscreensaver",'
17762 echo ' "xscreensaver-demo", and "xscreensaver-command" executables'
17763 echo " will be installed in ${bindir}/."
17765 echo " The various graphics demos (200+ different executables) will"
17766 echo " be installed in ${HACKDIR}/."
17768 echo " If you would prefer the demos to be installed elsewhere,"
17769 echo " you should re-run configure with the --with-hackdir=DIR"
17770 echo " option. For more information, run \`./configure --help'."
17774 if test "$warning" != no; then
17775 echo '' ; echo "$warnsep" ; echo ''
17778 if test "$do_dir_warning" = no; then
17779 if test "$warning" = no; then
17782 echo "User programs will be installed in ${bindir}/"
17783 echo "Screen savers will be installed in ${HACKDIR}/"
17784 echo "Configuration dialogs will be installed in ${HACK_CONF_DIR}/"
17785 echo "System-wide default settings will be installed in ${APPDEFAULTS}/"