2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="driver/subprocs.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE EGREP PERL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS INTLTOOL_DESKTOP_RULE INTLTOOL_DIRECTORY_RULE INTLTOOL_KEYS_RULE INTLTOOL_OAF_RULE INTLTOOL_PONG_RULE INTLTOOL_SERVER_RULE INTLTOOL_SHEET_RULE INTLTOOL_SOUNDLIST_RULE INTLTOOL_UI_RULE INTLTOOL_XML_RULE INTLTOOL_CAVES_RULE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE INTLTOOL_PERL GETTEXT_PACKAGE RANLIB ac_ct_RANLIB ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB MKINSTALLDIRS login_manager_tmp pkg_config gnome_open_program gnome_url_show_program INCLUDES PREFERRED_DEMO_PROGRAM ALL_DEMO_PROGRAMS SAVER_LIBS MOTIF_LIBS GTK_LIBS XML_LIBS JPEG_LIBS HACK_LIBS XPM_LIBS PTY_LIBS GL_LIBS GLE_LIBS XDPMS_LIBS XINERAMA_LIBS PASSWD_LIBS INSTALL_SETUID SETUID_HACKS INSTALL_DIRS NEED_SETUID INSTALL_PAM NEW_LOGIN_COMMAND NEW_LOGIN_COMMAND_P DEFAULT_IMAGES_P DEFAULT_IMAGE_DIRECTORY DEFAULT_TEXT_FILE OBJCC EXES_OSX SCRIPTS_OSX MEN_OSX PASSWD_SRCS PASSWD_OBJS XMU_SRCS XMU_OBJS XMU_LIBS SAVER_GL_SRCS SAVER_GL_OBJS SAVER_GL_LIBS LOCK_SRCS LOCK_OBJS JPEG_EXES GL_EXES GL_UTIL_EXES GL_MEN GL_KLUDGE GLE_EXES GLE_KLUDGE GNOME24 GNOME22 NOGNOME HACKDIR GTK_DATADIR PO_DATADIR HACK_CONF_DIR GTK_EXTRA_OBJS APPDEFAULTS DEPEND DEPEND_FLAGS DEPEND_DEFINES LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir=\${datadir}/man
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --libdir=DIR object code libraries [EPREFIX/lib]
824 --includedir=DIR C header files [PREFIX/include]
825 --x-includes=DIR X include files are in DIR
826 --x-libraries=DIR X library files are in DIR
827 --mandir=DIR man documentation [PREFIX/man]
833 --x-includes=DIR X include files are in DIR
834 --x-libraries=DIR X library files are in DIR
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 if test -n "$ac_init_help"; then
847 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
848 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
850 Screen locking options:
851 --enable-locking Compile in support for locking the display.
852 --disable-locking Do not allow locking at all.
855 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
856 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
858 Installation options:
859 --with-hackdir=DIR Where to install the hundreds of demo executables.
860 Default: `PREFIX/libexec/xscreensaver/'
861 --with-configdir=DIR Where to install the data files that describe each
862 of the display modes to the GUI.
863 Default: `PREFIX/share/xscreensaver/config/'
865 Except where noted, all of the --with options below can also take a
866 directory argument: for example, `--with-motif=/opt/Motif'. That would
867 cause /opt/Motif/include/ to be added to the -I list, and /opt/Motif/lib/
868 to be added to the -L list, assuming those directories exist.
870 By default, support for each of these options will be built in, if the
871 relevant library routines exist. At run time, they will then be used
872 only if the X server being used supports them. Each --with option has
873 a corresponding --without option, to override building support for them
876 Screen blanking and idle-detection options:
878 --with-sgi-ext Include support for the SGI SCREEN_SAVER extension.
879 --with-xidle-ext Include support for the XIDLE extension.
880 --with-sgivc-ext Include support for the SGI-VIDEO-CONTROL extension.
881 --with-dpms-ext Include support for the DPMS extension.
882 --with-xinerama-ext Include support for the XINERAMA extension.
883 --with-xf86vmode-ext Include support for XFree86 virtual screens.
884 --with-xf86gamma-ext Include support for XFree86 gamma fading.
885 --with-randr-ext Include support for the X Resize+Rotate extension.
886 --with-proc-interrupts Include support for consulting the /proc/interrupts
887 file to notice keyboard activity.
888 --with-pam Include support for PAM (Pluggable Auth Modules.)
889 --with-pam-service-name=NAME
890 NAME is the name of the PAM service that
891 xscreensaver will authenticate as.
892 --with-kerberos Include support for Kerberos authentication.
893 --with-shadow Include support for shadow password authentication.
894 --with-passwd-helper Include support for an external password
895 verification helper program.
896 --with-login-manager Put a "New Login" button on the unlock dialog that
897 runs a login manager such as gdmflexiserver.
899 User interface options:
901 --with-gtk Use the Gtk toolkit for the user interface.
902 --with-motif Use the Motif toolkit for the user interface
907 --with-gl Build those demos which depend on OpenGL.
908 --with-gle Build those demos which depend on GLE
909 (the OpenGL "extrusion" library.)
910 --with-pixbuf Include support for the GDK-Pixbuf library in some
911 demos, which will make it possible for them to read
912 GIF, JPEG, and PNG files as well.
913 --with-xpm Include support for XPM files in some demos.
914 (Not needed if Pixbuf is used.)
915 --with-jpeg Include support for the JPEG library.
916 --with-xshm-ext Include support for the Shared Memory extension.
917 --with-xdbe-ext Include support for the DOUBLE-BUFFER extension.
918 --with-readdisplay Include support for the XReadDisplay extension.
919 --with-image-directory=DIR By default, some demos may display random images
921 --with-text-file=FILE By default, some demos may display this file.
922 --with-setuid-hacks Allow some demos to be installed `setuid root'
923 (which is needed in order to ping other hosts.)
926 Some influential environment variables:
927 CC C compiler command
928 CFLAGS C compiler flags
929 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
930 nonstandard directory <lib dir>
931 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
932 headers in a nonstandard directory <include dir>
935 Use these variables to override the choices made by `configure' or to help
936 it to find libraries and programs with nonstandard names/locations.
941 if test "$ac_init_help" = "recursive"; then
942 # If there are subdirs, report their specific --help.
944 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
945 test -d $ac_dir || continue
948 if test "$ac_dir" != .; then
949 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
950 # A "../" for each directory in $ac_dir_suffix.
951 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
953 ac_dir_suffix= ac_top_builddir=
957 .) # No --srcdir option. We are building in place.
959 if test -z "$ac_top_builddir"; then
962 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
964 [\\/]* | ?:[\\/]* ) # Absolute path.
965 ac_srcdir=$srcdir$ac_dir_suffix;
966 ac_top_srcdir=$srcdir ;;
968 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
969 ac_top_srcdir=$ac_top_builddir$srcdir ;;
972 # Do not use `cd foo && pwd` to compute absolute paths, because
973 # the directories may not exist.
975 .) ac_abs_builddir="$ac_dir";;
978 .) ac_abs_builddir=`pwd`;;
979 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
980 *) ac_abs_builddir=`pwd`/"$ac_dir";;
983 case $ac_abs_builddir in
984 .) ac_abs_top_builddir=${ac_top_builddir}.;;
986 case ${ac_top_builddir}. in
987 .) ac_abs_top_builddir=$ac_abs_builddir;;
988 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
989 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
992 case $ac_abs_builddir in
993 .) ac_abs_srcdir=$ac_srcdir;;
996 .) ac_abs_srcdir=$ac_abs_builddir;;
997 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
998 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1001 case $ac_abs_builddir in
1002 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1004 case $ac_top_srcdir in
1005 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1006 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1007 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1012 # Check for guested configure; otherwise get Cygnus style configure.
1013 if test -f $ac_srcdir/configure.gnu; then
1015 $SHELL $ac_srcdir/configure.gnu --help=recursive
1016 elif test -f $ac_srcdir/configure; then
1018 $SHELL $ac_srcdir/configure --help=recursive
1019 elif test -f $ac_srcdir/configure.ac ||
1020 test -f $ac_srcdir/configure.in; then
1022 $ac_configure --help
1024 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1030 test -n "$ac_init_help" && exit 0
1031 if $ac_init_version; then
1034 Copyright (C) 2003 Free Software Foundation, Inc.
1035 This configure script is free software; the Free Software Foundation
1036 gives unlimited permission to copy, distribute and modify it.
1042 This file contains any messages produced by compilers while
1043 running configure, to aid debugging if configure makes a mistake.
1045 It was created by $as_me, which was
1046 generated by GNU Autoconf 2.59. Invocation command line was
1057 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1058 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1059 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1060 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1061 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1063 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1064 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1066 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1067 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1068 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1069 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1070 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1071 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1072 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1080 test -z "$as_dir" && as_dir=.
1081 echo "PATH: $as_dir"
1096 # Keep a trace of the command line.
1097 # Strip out --no-create and --no-recursion so they do not pile up.
1098 # Strip out --silent because we don't want to record it for future runs.
1099 # Also quote any args containing shell meta-characters.
1100 # Make two passes to allow for proper duplicate-argument suppression.
1105 ac_must_keep_next=false
1111 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113 | -silent | --silent | --silen | --sile | --sil)
1115 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1116 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1119 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1121 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1122 if test $ac_must_keep_next = true; then
1123 ac_must_keep_next=false # Got value, back to normal.
1126 *=* | --config-cache | -C | -disable-* | --disable-* \
1127 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1128 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1129 | -with-* | --with-* | -without-* | --without-* | --x)
1130 case "$ac_configure_args0 " in
1131 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1134 -* ) ac_must_keep_next=true ;;
1137 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1138 # Get rid of the leading space.
1144 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1145 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1147 # When interrupted or exit'd, cleanup temporary files, and complete
1148 # config.log. We remove comments because anyway the quotes in there
1149 # would cause problems or look ugly.
1150 # WARNING: Be sure not to use single quotes in there, as some shells,
1151 # such as our DU 5.0 friend, will then `close' the trap.
1152 trap 'exit_status=$?
1153 # Save into config.log some information that might help in debugging.
1158 ## ---------------- ##
1159 ## Cache variables. ##
1160 ## ---------------- ##
1163 # The following way of writing the cache mishandles newlines in values,
1166 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1169 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1170 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1174 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1181 ## ----------------- ##
1182 ## Output variables. ##
1183 ## ----------------- ##
1186 for ac_var in $ac_subst_vars
1188 eval ac_val=$`echo $ac_var`
1189 echo "$ac_var='"'"'$ac_val'"'"'"
1193 if test -n "$ac_subst_files"; then
1200 for ac_var in $ac_subst_files
1202 eval ac_val=$`echo $ac_var`
1203 echo "$ac_var='"'"'$ac_val'"'"'"
1208 if test -s confdefs.h; then
1215 sed "/^$/d" confdefs.h | sort
1218 test "$ac_signal" != 0 &&
1219 echo "$as_me: caught signal $ac_signal"
1220 echo "$as_me: exit $exit_status"
1222 rm -f core *.core &&
1223 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1226 for ac_signal in 1 2 13 15; do
1227 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1231 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1232 rm -rf conftest* confdefs.h
1233 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1236 # Predefined preprocessor variables.
1238 cat >>confdefs.h <<_ACEOF
1239 #define PACKAGE_NAME "$PACKAGE_NAME"
1243 cat >>confdefs.h <<_ACEOF
1244 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_STRING "$PACKAGE_STRING"
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1263 # Let the site file select an alternate cache file if it wants to.
1264 # Prefer explicitly selected file to automatically selected ones.
1265 if test -z "$CONFIG_SITE"; then
1266 if test "x$prefix" != xNONE; then
1267 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1269 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1272 for ac_site_file in $CONFIG_SITE; do
1273 if test -r "$ac_site_file"; then
1274 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1275 echo "$as_me: loading site script $ac_site_file" >&6;}
1276 sed 's/^/| /' "$ac_site_file" >&5
1281 if test -r "$cache_file"; then
1282 # Some versions of bash will fail to source /dev/null (special
1283 # files actually), so we avoid doing that.
1284 if test -f "$cache_file"; then
1285 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1286 echo "$as_me: loading cache $cache_file" >&6;}
1288 [\\/]* | ?:[\\/]* ) . $cache_file;;
1289 *) . ./$cache_file;;
1293 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1294 echo "$as_me: creating cache $cache_file" >&6;}
1298 # Check that the precious variables saved in the cache have kept the same
1300 ac_cache_corrupted=false
1301 for ac_var in `(set) 2>&1 |
1302 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1303 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1304 eval ac_new_set=\$ac_env_${ac_var}_set
1305 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1306 eval ac_new_val="\$ac_env_${ac_var}_value"
1307 case $ac_old_set,$ac_new_set in
1309 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1310 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1311 ac_cache_corrupted=: ;;
1313 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1314 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1315 ac_cache_corrupted=: ;;
1318 if test "x$ac_old_val" != "x$ac_new_val"; then
1319 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1320 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1321 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1322 echo "$as_me: former value: $ac_old_val" >&2;}
1323 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1324 echo "$as_me: current value: $ac_new_val" >&2;}
1325 ac_cache_corrupted=:
1328 # Pass precious variables to config.status.
1329 if test "$ac_new_set" = set; then
1331 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1332 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1333 *) ac_arg=$ac_var=$ac_new_val ;;
1335 case " $ac_configure_args " in
1336 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1337 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1341 if $ac_cache_corrupted; then
1342 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1343 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1344 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1345 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1346 { (exit 1); exit 1; }; }
1350 ac_cpp='$CPP $CPPFLAGS'
1351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1373 ac_config_headers="$ac_config_headers config.h"
1376 echo "current directory: `pwd`"
1377 echo "command line was: $0 $@"
1379 ###############################################################################
1383 ###############################################################################
1546 # After checking to see that --srcdir is correct (which AC_INIT does)
1547 # check for some random other files that come later in the tar file,
1548 # to make sure everything is here.
1550 for d in driver utils hacks hacks/glx ; do
1551 f=$srcdir/$d/Makefile.in
1552 if test \! -r $f ; then
1554 echo "ERROR: The package is incomplete: $f does not exist."
1555 echo " This probably means that your download was truncated."
1561 ###############################################################################
1563 # Function to figure out how to run the compiler.
1565 ###############################################################################
1570 ###############################################################################
1572 # Functions to figure out how to disable // comments in ANSI C code.
1574 # (With recent gcc, this is done with "-std=c89". With older gcc, this
1575 # is done by passing "-lang-c89" to cpp, by passing "-Wp,-lang-c89" to
1576 # gcc. Old gcc doesn't support -std, and new gcc doesn't support -lang.
1577 # so much for compatibility!)
1579 # UPDATE: apparently there is NO WAY to tell gcc 3.2.2 to require that
1580 # declarations preceed statements, without resorting to "-pedantic".
1581 # This means that there is no way to get gcc3 to issue warnings that
1582 # ensure that your code complies with the ANSI/ISO C89 standard, without
1583 # also drowning in totally useless warnings. Thank you master may I
1586 # So, I give up, let's just use -pedantic.
1588 ###############################################################################
1595 ###############################################################################
1597 # Function to figure out how to turn off Objective C on MacOS X.
1598 # (We have to do this to work around an Apple-specific gcc bug.)
1600 ###############################################################################
1607 ###############################################################################
1609 # Function to figure out how to create directory trees.
1611 ###############################################################################
1616 ###############################################################################
1618 # Function to check whether gettimeofday() exists, and how to call it.
1619 # This may define HAVE_GETTIMEOFDAY and GETTIMEOFDAY_TWO_ARGS.
1621 ###############################################################################
1626 ###############################################################################
1628 # Function to find perl5 (defines PERL and PERL_VERSION.)
1630 ###############################################################################
1632 # M4 sucks!! perl sucks too!!
1634 perl_version_cmd='print $]'
1640 ###############################################################################
1642 # Function to demand "bc". Losers.
1644 ###############################################################################
1648 ###############################################################################
1650 # Functions to check how to do ICMP PING requests.
1652 ###############################################################################
1659 ###############################################################################
1661 # Functions to check for various X11 crap.
1663 ###############################################################################
1665 # Try and find the app-defaults directory.
1666 # It sucks that autoconf doesn't do this already...
1678 # Random special-cases for X on certain pathological OSes.
1679 # You know who you are.
1685 ###############################################################################
1687 # Some utility functions to make checking for X things easier.
1689 ###############################################################################
1691 # Like AC_CHECK_HEADER, but it uses the already-computed -I directories.
1695 # Like AC_EGREP_HEADER, but it uses the already-computed -I directories.
1699 # Like AC_TRY_COMPILE, but it uses the already-computed -I directories.
1704 # Like AC_CHECK_LIB, but it uses the already-computed -I and -L directories.
1705 # Use this sparingly; it probably doesn't work very well on X programs.
1709 # Like AC_TRY_RUN, but it uses the already-computed -I directories.
1710 # (But not the -L directories!)
1716 # Usage: HANDLE_X_PATH_ARG([variable_name],
1717 # [--command-line-option],
1718 # [descriptive string])
1720 # All of the --with options take three forms:
1722 # --with-foo (or --with-foo=yes)
1723 # --without-foo (or --with-foo=no)
1726 # This function, HANDLE_X_PATH_ARG, deals with the /DIR case. When it sees
1727 # a directory (string beginning with a slash) it checks to see whether
1728 # /DIR/include and /DIR/lib exist, and adds them to $X_CFLAGS and $X_LIBS
1735 ###############################################################################
1736 ###############################################################################
1738 # End of function definitions. Now start actually executing stuff.
1740 ###############################################################################
1741 ###############################################################################
1743 # random compiler setup
1745 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1746 if test -f $ac_dir/install-sh; then
1748 ac_install_sh="$ac_aux_dir/install-sh -c"
1750 elif test -f $ac_dir/install.sh; then
1752 ac_install_sh="$ac_aux_dir/install.sh -c"
1754 elif test -f $ac_dir/shtool; then
1756 ac_install_sh="$ac_aux_dir/shtool install -c"
1760 if test -z "$ac_aux_dir"; then
1761 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1762 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1763 { (exit 1); exit 1; }; }
1765 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1766 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1767 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1769 # Make sure we can run config.sub.
1770 $ac_config_sub sun4 >/dev/null 2>&1 ||
1771 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1772 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1773 { (exit 1); exit 1; }; }
1775 echo "$as_me:$LINENO: checking build system type" >&5
1776 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1777 if test "${ac_cv_build+set}" = set; then
1778 echo $ECHO_N "(cached) $ECHO_C" >&6
1780 ac_cv_build_alias=$build_alias
1781 test -z "$ac_cv_build_alias" &&
1782 ac_cv_build_alias=`$ac_config_guess`
1783 test -z "$ac_cv_build_alias" &&
1784 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1785 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1786 { (exit 1); exit 1; }; }
1787 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1788 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1789 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1790 { (exit 1); exit 1; }; }
1793 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1794 echo "${ECHO_T}$ac_cv_build" >&6
1796 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1797 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1798 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1801 echo "$as_me:$LINENO: checking host system type" >&5
1802 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1803 if test "${ac_cv_host+set}" = set; then
1804 echo $ECHO_N "(cached) $ECHO_C" >&6
1806 ac_cv_host_alias=$host_alias
1807 test -z "$ac_cv_host_alias" &&
1808 ac_cv_host_alias=$ac_cv_build_alias
1809 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1810 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1811 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1812 { (exit 1); exit 1; }; }
1815 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1816 echo "${ECHO_T}$ac_cv_host" >&6
1818 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1819 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1820 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1825 ac_cpp='$CPP $CPPFLAGS'
1826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1829 if test -n "$ac_tool_prefix"; then
1830 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1831 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1832 echo "$as_me:$LINENO: checking for $ac_word" >&5
1833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1834 if test "${ac_cv_prog_CC+set}" = set; then
1835 echo $ECHO_N "(cached) $ECHO_C" >&6
1837 if test -n "$CC"; then
1838 ac_cv_prog_CC="$CC" # Let the user override the test.
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 test -z "$as_dir" && as_dir=.
1845 for ac_exec_ext in '' $ac_executable_extensions; do
1846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1857 if test -n "$CC"; then
1858 echo "$as_me:$LINENO: result: $CC" >&5
1859 echo "${ECHO_T}$CC" >&6
1861 echo "$as_me:$LINENO: result: no" >&5
1862 echo "${ECHO_T}no" >&6
1866 if test -z "$ac_cv_prog_CC"; then
1868 # Extract the first word of "gcc", so it can be a program name with args.
1869 set dummy gcc; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1873 echo $ECHO_N "(cached) $ECHO_C" >&6
1875 if test -n "$ac_ct_CC"; then
1876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 test -z "$as_dir" && as_dir=.
1883 for ac_exec_ext in '' $ac_executable_extensions; do
1884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885 ac_cv_prog_ac_ct_CC="gcc"
1886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1895 if test -n "$ac_ct_CC"; then
1896 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1897 echo "${ECHO_T}$ac_ct_CC" >&6
1899 echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1908 if test -z "$CC"; then
1909 if test -n "$ac_tool_prefix"; then
1910 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1911 set dummy ${ac_tool_prefix}cc; ac_word=$2
1912 echo "$as_me:$LINENO: checking for $ac_word" >&5
1913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1914 if test "${ac_cv_prog_CC+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 if test -n "$CC"; then
1918 ac_cv_prog_CC="$CC" # Let the user override the test.
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 test -z "$as_dir" && as_dir=.
1925 for ac_exec_ext in '' $ac_executable_extensions; do
1926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927 ac_cv_prog_CC="${ac_tool_prefix}cc"
1928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1937 if test -n "$CC"; then
1938 echo "$as_me:$LINENO: result: $CC" >&5
1939 echo "${ECHO_T}$CC" >&6
1941 echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6
1946 if test -z "$ac_cv_prog_CC"; then
1948 # Extract the first word of "cc", so it can be a program name with args.
1949 set dummy cc; ac_word=$2
1950 echo "$as_me:$LINENO: checking for $ac_word" >&5
1951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1952 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1953 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 if test -n "$ac_ct_CC"; then
1956 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962 test -z "$as_dir" && as_dir=.
1963 for ac_exec_ext in '' $ac_executable_extensions; do
1964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1965 ac_cv_prog_ac_ct_CC="cc"
1966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1974 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1975 if test -n "$ac_ct_CC"; then
1976 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1977 echo "${ECHO_T}$ac_ct_CC" >&6
1979 echo "$as_me:$LINENO: result: no" >&5
1980 echo "${ECHO_T}no" >&6
1989 if test -z "$CC"; then
1990 # Extract the first word of "cc", so it can be a program name with args.
1991 set dummy cc; ac_word=$2
1992 echo "$as_me:$LINENO: checking for $ac_word" >&5
1993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1994 if test "${ac_cv_prog_CC+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
1997 if test -n "$CC"; then
1998 ac_cv_prog_CC="$CC" # Let the user override the test.
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 test -z "$as_dir" && as_dir=.
2006 for ac_exec_ext in '' $ac_executable_extensions; do
2007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2008 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2009 ac_prog_rejected=yes
2013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019 if test $ac_prog_rejected = yes; then
2020 # We found a bogon in the path, so make sure we never use it.
2021 set dummy $ac_cv_prog_CC
2023 if test $# != 0; then
2024 # We chose a different compiler from the bogus one.
2025 # However, it has the same basename, so the bogon will be chosen
2026 # first if we set CC to just the basename; use the full file name.
2028 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2034 if test -n "$CC"; then
2035 echo "$as_me:$LINENO: result: $CC" >&5
2036 echo "${ECHO_T}$CC" >&6
2038 echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6
2043 if test -z "$CC"; then
2044 if test -n "$ac_tool_prefix"; then
2047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2049 echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051 if test "${ac_cv_prog_CC+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 if test -n "$CC"; then
2055 ac_cv_prog_CC="$CC" # Let the user override the test.
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 test -z "$as_dir" && as_dir=.
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074 if test -n "$CC"; then
2075 echo "$as_me:$LINENO: result: $CC" >&5
2076 echo "${ECHO_T}$CC" >&6
2078 echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2082 test -n "$CC" && break
2085 if test -z "$CC"; then
2089 # Extract the first word of "$ac_prog", so it can be a program name with args.
2090 set dummy $ac_prog; ac_word=$2
2091 echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 if test -n "$ac_ct_CC"; then
2097 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 test -z "$as_dir" && as_dir=.
2104 for ac_exec_ext in '' $ac_executable_extensions; do
2105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106 ac_cv_prog_ac_ct_CC="$ac_prog"
2107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2116 if test -n "$ac_ct_CC"; then
2117 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2118 echo "${ECHO_T}$ac_ct_CC" >&6
2120 echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2124 test -n "$ac_ct_CC" && break
2133 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2134 See \`config.log' for more details." >&5
2135 echo "$as_me: error: no acceptable C compiler found in \$PATH
2136 See \`config.log' for more details." >&2;}
2137 { (exit 1); exit 1; }; }
2139 # Provide some information about the compiler.
2140 echo "$as_me:$LINENO:" \
2141 "checking for C compiler version" >&5
2142 ac_compiler=`set X $ac_compile; echo $2`
2143 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2144 (eval $ac_compiler --version </dev/null >&5) 2>&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }
2148 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2149 (eval $ac_compiler -v </dev/null >&5) 2>&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }
2153 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2154 (eval $ac_compiler -V </dev/null >&5) 2>&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }
2159 cat >conftest.$ac_ext <<_ACEOF
2162 cat confdefs.h >>conftest.$ac_ext
2163 cat >>conftest.$ac_ext <<_ACEOF
2164 /* end confdefs.h. */
2174 ac_clean_files_save=$ac_clean_files
2175 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2176 # Try to create an executable without -o first, disregard a.out.
2177 # It will help us diagnose broken compilers, and finding out an intuition
2179 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2180 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2181 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2182 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2183 (eval $ac_link_default) 2>&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; then
2187 # Find the output, starting from the most likely. This scheme is
2188 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2191 # Be careful to initialize this variable, since it used to be cached.
2192 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2194 # b.out is created by i960 compilers.
2195 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2197 test -f "$ac_file" || continue
2199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2202 # This is the source file.
2205 # We found the default executable, but exeext='' is most
2209 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2210 # FIXME: I believe we export ac_cv_exeext for Libtool,
2211 # but it would be cool to find out if it's true. Does anybody
2212 # maintain Libtool? --akim.
2220 echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2223 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2224 See \`config.log' for more details." >&5
2225 echo "$as_me: error: C compiler cannot create executables
2226 See \`config.log' for more details." >&2;}
2227 { (exit 77); exit 77; }; }
2230 ac_exeext=$ac_cv_exeext
2231 echo "$as_me:$LINENO: result: $ac_file" >&5
2232 echo "${ECHO_T}$ac_file" >&6
2234 # Check the compiler produces executables we can run. If not, either
2235 # the compiler is broken, or we cross compile.
2236 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2237 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2238 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2239 # If not cross compiling, check that we can run a simple program.
2240 if test "$cross_compiling" != yes; then
2241 if { ac_try='./$ac_file'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2249 if test "$cross_compiling" = maybe; then
2252 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2253 If you meant to cross compile, use \`--host'.
2254 See \`config.log' for more details." >&5
2255 echo "$as_me: error: cannot run C compiled programs.
2256 If you meant to cross compile, use \`--host'.
2257 See \`config.log' for more details." >&2;}
2258 { (exit 1); exit 1; }; }
2262 echo "$as_me:$LINENO: result: yes" >&5
2263 echo "${ECHO_T}yes" >&6
2265 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2266 ac_clean_files=$ac_clean_files_save
2267 # Check the compiler produces executables we can run. If not, either
2268 # the compiler is broken, or we cross compile.
2269 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2270 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2271 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2272 echo "${ECHO_T}$cross_compiling" >&6
2274 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2275 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2277 (eval $ac_link) 2>&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; then
2281 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2282 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2283 # work properly (i.e., refer to `conftest.exe'), while it won't with
2285 for ac_file in conftest.exe conftest conftest.*; do
2286 test -f "$ac_file" || continue
2288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2289 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2296 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2297 See \`config.log' for more details." >&5
2298 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2299 See \`config.log' for more details." >&2;}
2300 { (exit 1); exit 1; }; }
2303 rm -f conftest$ac_cv_exeext
2304 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2305 echo "${ECHO_T}$ac_cv_exeext" >&6
2307 rm -f conftest.$ac_ext
2308 EXEEXT=$ac_cv_exeext
2310 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2311 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2312 if test "${ac_cv_objext+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 cat >conftest.$ac_ext <<_ACEOF
2318 cat confdefs.h >>conftest.$ac_ext
2319 cat >>conftest.$ac_ext <<_ACEOF
2320 /* end confdefs.h. */
2330 rm -f conftest.o conftest.obj
2331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332 (eval $ac_compile) 2>&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; then
2336 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2339 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2344 echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2347 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2348 See \`config.log' for more details." >&5
2349 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2350 See \`config.log' for more details." >&2;}
2351 { (exit 1); exit 1; }; }
2354 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2356 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2357 echo "${ECHO_T}$ac_cv_objext" >&6
2358 OBJEXT=$ac_cv_objext
2360 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2361 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2362 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 cat >conftest.$ac_ext <<_ACEOF
2368 cat confdefs.h >>conftest.$ac_ext
2369 cat >>conftest.$ac_ext <<_ACEOF
2370 /* end confdefs.h. */
2383 rm -f conftest.$ac_objext
2384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2385 (eval $ac_compile) 2>conftest.er1
2387 grep -v '^ *+' conftest.er1 >conftest.err
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try='test -z "$ac_c_werror_flag"
2393 || test ! -s conftest.err'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; } &&
2399 { ac_try='test -s conftest.$ac_objext'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2407 echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2413 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2416 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2417 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2418 GCC=`test $ac_compiler_gnu = yes && echo yes`
2419 ac_test_CFLAGS=${CFLAGS+set}
2420 ac_save_CFLAGS=$CFLAGS
2422 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2423 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2424 if test "${ac_cv_prog_cc_g+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 cat >conftest.$ac_ext <<_ACEOF
2430 cat confdefs.h >>conftest.$ac_ext
2431 cat >>conftest.$ac_ext <<_ACEOF
2432 /* end confdefs.h. */
2442 rm -f conftest.$ac_objext
2443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444 (eval $ac_compile) 2>conftest.er1
2446 grep -v '^ *+' conftest.er1 >conftest.err
2448 cat conftest.err >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); } &&
2451 { ac_try='test -z "$ac_c_werror_flag"
2452 || test ! -s conftest.err'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; } &&
2458 { ac_try='test -s conftest.$ac_objext'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; }; then
2466 echo "$as_me: failed program was:" >&5
2467 sed 's/^/| /' conftest.$ac_ext >&5
2471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2473 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2474 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2475 if test "$ac_test_CFLAGS" = set; then
2476 CFLAGS=$ac_save_CFLAGS
2477 elif test $ac_cv_prog_cc_g = yes; then
2478 if test "$GCC" = yes; then
2484 if test "$GCC" = yes; then
2490 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2491 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2492 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 ac_cv_prog_cc_stdc=no
2497 cat >conftest.$ac_ext <<_ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h. */
2505 #include <sys/types.h>
2506 #include <sys/stat.h>
2507 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2508 struct buf { int x; };
2509 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2510 static char *e (p, i)
2516 static char *f (char * (*g) (char **, int), char **p, ...)
2521 s = g (p, va_arg (v,int));
2526 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2527 function prototypes and stuff, but not '\xHH' hex character constants.
2528 These don't provoke an error unfortunately, instead are silently treated
2529 as 'x'. The following induces an error, until -std1 is added to get
2530 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2531 array size at least. It's necessary to write '\x00'==0 to get something
2532 that's true only with -std1. */
2533 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2535 int test (int i, double x);
2536 struct s1 {int (*f) (int a);};
2537 struct s2 {int (*f) (double a);};
2538 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2544 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2549 # Don't try gcc -ansi; that turns off useful extensions and
2550 # breaks some systems' header files.
2551 # AIX -qlanglvl=ansi
2552 # Ultrix and OSF/1 -std1
2553 # HP-UX 10.20 and later -Ae
2554 # HP-UX older versions -Aa -D_HPUX_SOURCE
2555 # SVR4 -Xc -D__EXTENSIONS__
2556 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2558 CC="$ac_save_CC $ac_arg"
2559 rm -f conftest.$ac_objext
2560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561 (eval $ac_compile) 2>conftest.er1
2563 grep -v '^ *+' conftest.er1 >conftest.err
2565 cat conftest.err >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); } &&
2568 { ac_try='test -z "$ac_c_werror_flag"
2569 || test ! -s conftest.err'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; } &&
2575 { ac_try='test -s conftest.$ac_objext'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2581 ac_cv_prog_cc_stdc=$ac_arg
2584 echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2588 rm -f conftest.err conftest.$ac_objext
2590 rm -f conftest.$ac_ext conftest.$ac_objext
2595 case "x$ac_cv_prog_cc_stdc" in
2597 echo "$as_me:$LINENO: result: none needed" >&5
2598 echo "${ECHO_T}none needed" >&6 ;;
2600 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2601 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2602 CC="$CC $ac_cv_prog_cc_stdc" ;;
2605 # Some people use a C++ compiler to compile C. Since we use `exit',
2606 # in C++ we need to declare it. In case someone uses the same compiler
2607 # for both compiling C and C++ we need to have the C++ compiler decide
2608 # the declaration of exit, since it's the most demanding environment.
2609 cat >conftest.$ac_ext <<_ACEOF
2614 rm -f conftest.$ac_objext
2615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616 (eval $ac_compile) 2>conftest.er1
2618 grep -v '^ *+' conftest.er1 >conftest.err
2620 cat conftest.err >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); } &&
2623 { ac_try='test -z "$ac_c_werror_flag"
2624 || test ! -s conftest.err'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; } &&
2630 { ac_try='test -s conftest.$ac_objext'
2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; }; then
2636 for ac_declaration in \
2638 'extern "C" void std::exit (int) throw (); using std::exit;' \
2639 'extern "C" void std::exit (int); using std::exit;' \
2640 'extern "C" void exit (int) throw ();' \
2641 'extern "C" void exit (int);' \
2644 cat >conftest.$ac_ext <<_ACEOF
2647 cat confdefs.h >>conftest.$ac_ext
2648 cat >>conftest.$ac_ext <<_ACEOF
2649 /* end confdefs.h. */
2660 rm -f conftest.$ac_objext
2661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2662 (eval $ac_compile) 2>conftest.er1
2664 grep -v '^ *+' conftest.er1 >conftest.err
2666 cat conftest.err >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } &&
2669 { ac_try='test -z "$ac_c_werror_flag"
2670 || test ! -s conftest.err'
2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; } &&
2676 { ac_try='test -s conftest.$ac_objext'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; }; then
2684 echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.$ac_ext >&5
2689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2690 cat >conftest.$ac_ext <<_ACEOF
2693 cat confdefs.h >>conftest.$ac_ext
2694 cat >>conftest.$ac_ext <<_ACEOF
2695 /* end confdefs.h. */
2705 rm -f conftest.$ac_objext
2706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2707 (eval $ac_compile) 2>conftest.er1
2709 grep -v '^ *+' conftest.er1 >conftest.err
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 { ac_try='test -z "$ac_c_werror_flag"
2715 || test ! -s conftest.err'
2716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; } &&
2721 { ac_try='test -s conftest.$ac_objext'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; }; then
2729 echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2736 if test -n "$ac_declaration"; then
2737 echo '#ifdef __cplusplus' >>confdefs.h
2738 echo $ac_declaration >>confdefs.h
2739 echo '#endif' >>confdefs.h
2743 echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2749 ac_cpp='$CPP $CPPFLAGS'
2750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2755 if test -z "$GCC"; then
2757 echo "$as_me:$LINENO: checking how to request ANSI compilation" >&5
2758 echo $ECHO_N "checking how to request ANSI compilation... $ECHO_C" >&6
2761 echo "$as_me:$LINENO: result: HPUX: adding -Ae" >&5
2762 echo "${ECHO_T}HPUX: adding -Ae" >&6
2766 echo "$as_me:$LINENO: result: AIX: adding -qlanglvl=ansi -qhalt=e" >&5
2767 echo "${ECHO_T}AIX: adding -qlanglvl=ansi -qhalt=e" >&6
2768 CC="$CC -qlanglvl=ansi -qhalt=e"
2771 echo "$as_me:$LINENO: result: DEC: adding -std1 -ieee" >&5
2772 echo "${ECHO_T}DEC: adding -std1 -ieee" >&6
2776 echo "$as_me:$LINENO: result: no idea" >&5
2777 echo "${ECHO_T}no idea" >&6
2784 echo "$as_me:$LINENO: result: Solaris: adding -D__EXTENSIONS__" >&5
2785 echo "${ECHO_T}Solaris: adding -D__EXTENSIONS__" >&6
2786 CC="$CC -D__EXTENSIONS__"
2793 echo "$as_me:$LINENO: checking whether the compiler works on ANSI C" >&5
2794 echo $ECHO_N "checking whether the compiler works on ANSI C... $ECHO_C" >&6
2795 if test "$cross_compiling" = yes; then
2796 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
2797 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
2798 { (exit 1); exit 1; }; }
2800 cat >conftest.$ac_ext <<_ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2806 main(int ac, char **av) { return 0; }
2808 rm -f conftest$ac_exeext
2809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2810 (eval $ac_link) 2>&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; }; then
2819 echo "$as_me:$LINENO: result: yes" >&5
2820 echo "${ECHO_T}yes" >&6
2822 echo "$as_me: program exited with status $ac_status" >&5
2823 echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2827 echo "$as_me:$LINENO: result: no" >&5
2828 echo "${ECHO_T}no" >&6
2829 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
2830 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
2831 { (exit 1); exit 1; }; }
2833 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2836 if test -n "$GCC"; then
2837 echo "$as_me:$LINENO: result: Turning on gcc compiler warnings." >&5
2838 echo "${ECHO_T}Turning on gcc compiler warnings." >&6
2839 CC="$CC -pedantic -Wall -Wstrict-prototypes -Wnested-externs"
2840 OBJCC="$OBJCC -Wall"
2841 # supposedly gcc 3.4 will have "-Wdeclaration-after-statement"
2842 # and then perhaps we can do without -pedantic?
2845 *-irix5* |*-irix6.0-3* )
2846 echo "$as_me:$LINENO: result: Turning on SGI compiler warnings." >&5
2847 echo "${ECHO_T}Turning on SGI compiler warnings." >&6
2848 CC="$CC -fullwarn -use_readonly_const -rdata_shared -g3"
2851 # if test -z "$GCC"; then
2852 # AC_MSG_RESULT(Turning on DEC C compiler warnings.)
2853 # CC="$CC -migrate -w0 -verbose -warnprotos"
2859 if test -n "$GCC"; then
2860 if test -n "$GCC"; then
2861 echo "$as_me:$LINENO: checking whether gcc accepts -std" >&5
2862 echo $ECHO_N "checking whether gcc accepts -std... $ECHO_C" >&6
2863 if test "${ac_cv_gcc_accepts_std+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 if ( ( gcc -E -std=c89 - </dev/null >/dev/null ) 2>&1 | \
2867 grep unrecognized >/dev/null ); then
2868 ac_cv_gcc_accepts_std=no
2870 ac_cv_gcc_accepts_std=yes
2873 echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_std" >&5
2874 echo "${ECHO_T}$ac_cv_gcc_accepts_std" >&6
2875 ac_gcc_accepts_std="$ac_cv_gcc_accepts_std"
2878 echo "$as_me:$LINENO: result: Disabling C++ comments in ANSI C code." >&5
2879 echo "${ECHO_T}Disabling C++ comments in ANSI C code." >&6
2881 # The reason that // comments are banned from xscreensaver is that gcc is
2882 # basically the only compiler in the world that supports them in C code.
2883 # All other vendors support them only in their C++ compilers, not in their
2884 # ANSI C compilers. This means that it's a portability problem: every time
2885 # these comments have snuck into the xscreensaver source code, I've gotten
2886 # complaints about it the next day. So we turn off support for them in gcc
2887 # as well to prevent them from accidentially slipping in.
2889 if test "$ac_gcc_accepts_std" = yes ; then
2891 # -std=c89 defines __STRICT_ANSI__, which we don't want.
2892 # (That appears to be the only additional preprocessor symbol
2893 # it defines, in addition to the syntax changes it makes.)
2895 # -std=gnu89 is no good, because // comments were a GNU extension
2896 # before they were in the ANSI C 99 spec... (gcc 2.96 permits //
2897 # with -std=gnu89 but not with -std=c89.)
2899 CC="$CC -std=c89 -U__STRICT_ANSI__"
2902 CC="$CC -Wp,-lang-c89"
2906 if test -n "$GCC"; then
2907 if test -n "$GCC"; then
2908 echo "$as_me:$LINENO: checking whether gcc accepts -no-cpp-precomp" >&5
2909 echo $ECHO_N "checking whether gcc accepts -no-cpp-precomp... $ECHO_C" >&6
2910 if test "${ac_cv_gcc_accepts_no_cpp_precomp+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 if ( ( gcc -E -no-cpp-precomp - </dev/null >/dev/null ) 2>&1 | \
2914 grep unrecognized >/dev/null ); then
2915 ac_cv_gcc_accepts_no_cpp_precomp=no
2917 ac_cv_gcc_accepts_no_cpp_precomp=yes
2920 echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_no_cpp_precomp" >&5
2921 echo "${ECHO_T}$ac_cv_gcc_accepts_no_cpp_precomp" >&6
2922 ac_gcc_accepts_no_cpp_precomp="$ac_cv_gcc_accepts_no_cpp_precomp"
2925 if test "$ac_gcc_accepts_no_cpp_precomp" = yes ; then
2926 echo "$as_me:$LINENO: result: Disabling Objective C extensions in ANSI C code." >&5
2927 echo "${ECHO_T}Disabling Objective C extensions in ANSI C code." >&6
2928 CC="$CC -no-cpp-precomp"
2933 ac_cpp='$CPP $CPPFLAGS'
2934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2937 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2938 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2939 # On Suns, sometimes $CPP names a directory.
2940 if test -n "$CPP" && test -d "$CPP"; then
2943 if test -z "$CPP"; then
2944 if test "${ac_cv_prog_CPP+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 # Double quotes because CPP needs to be expanded
2948 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2951 for ac_c_preproc_warn_flag in '' yes
2953 # Use a header file that comes with gcc, so configuring glibc
2954 # with a fresh cross-compiler works.
2955 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2956 # <limits.h> exists even on freestanding compilers.
2957 # On the NeXT, cc -E runs the code through the compiler's parser,
2958 # not just through cpp. "Syntax error" is here to catch this case.
2959 cat >conftest.$ac_ext <<_ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h. */
2966 # include <limits.h>
2968 # include <assert.h>
2972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2975 grep -v '^ *+' conftest.er1 >conftest.err
2977 cat conftest.err >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); } >/dev/null; then
2980 if test -s conftest.err; then
2981 ac_cpp_err=$ac_c_preproc_warn_flag
2982 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2989 if test -z "$ac_cpp_err"; then
2992 echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2995 # Broken: fails on valid input.
2998 rm -f conftest.err conftest.$ac_ext
3000 # OK, works on sane cases. Now check whether non-existent headers
3001 # can be detected and how.
3002 cat >conftest.$ac_ext <<_ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3008 #include <ac_nonexistent.h>
3010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3013 grep -v '^ *+' conftest.er1 >conftest.err
3015 cat conftest.err >&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); } >/dev/null; then
3018 if test -s conftest.err; then
3019 ac_cpp_err=$ac_c_preproc_warn_flag
3020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3027 if test -z "$ac_cpp_err"; then
3028 # Broken: success on invalid input.
3031 echo "$as_me: failed program was:" >&5
3032 sed 's/^/| /' conftest.$ac_ext >&5
3034 # Passes both tests.
3038 rm -f conftest.err conftest.$ac_ext
3041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3042 rm -f conftest.err conftest.$ac_ext
3043 if $ac_preproc_ok; then
3055 echo "$as_me:$LINENO: result: $CPP" >&5
3056 echo "${ECHO_T}$CPP" >&6
3058 for ac_c_preproc_warn_flag in '' yes
3060 # Use a header file that comes with gcc, so configuring glibc
3061 # with a fresh cross-compiler works.
3062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3063 # <limits.h> exists even on freestanding compilers.
3064 # On the NeXT, cc -E runs the code through the compiler's parser,
3065 # not just through cpp. "Syntax error" is here to catch this case.
3066 cat >conftest.$ac_ext <<_ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h. */
3073 # include <limits.h>
3075 # include <assert.h>
3079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3082 grep -v '^ *+' conftest.er1 >conftest.err
3084 cat conftest.err >&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } >/dev/null; then
3087 if test -s conftest.err; then
3088 ac_cpp_err=$ac_c_preproc_warn_flag
3089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3096 if test -z "$ac_cpp_err"; then
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3102 # Broken: fails on valid input.
3105 rm -f conftest.err conftest.$ac_ext
3107 # OK, works on sane cases. Now check whether non-existent headers
3108 # can be detected and how.
3109 cat >conftest.$ac_ext <<_ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h. */
3115 #include <ac_nonexistent.h>
3117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3120 grep -v '^ *+' conftest.er1 >conftest.err
3122 cat conftest.err >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } >/dev/null; then
3125 if test -s conftest.err; then
3126 ac_cpp_err=$ac_c_preproc_warn_flag
3127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3134 if test -z "$ac_cpp_err"; then
3135 # Broken: success on invalid input.
3138 echo "$as_me: failed program was:" >&5
3139 sed 's/^/| /' conftest.$ac_ext >&5
3141 # Passes both tests.
3145 rm -f conftest.err conftest.$ac_ext
3148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3149 rm -f conftest.err conftest.$ac_ext
3150 if $ac_preproc_ok; then
3153 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3154 See \`config.log' for more details." >&5
3155 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3156 See \`config.log' for more details." >&2;}
3157 { (exit 1); exit 1; }; }
3161 ac_cpp='$CPP $CPPFLAGS'
3162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3166 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3167 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3168 if test "${ac_cv_c_const+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 cat >conftest.$ac_ext <<_ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3181 /* FIXME: Include the comments suggested by Paul. */
3183 /* Ultrix mips cc rejects this. */
3184 typedef int charset[2];
3186 /* SunOS 4.1.1 cc rejects this. */
3187 char const *const *ccp;
3189 /* NEC SVR4.0.2 mips cc rejects this. */
3190 struct point {int x, y;};
3191 static struct point const zero = {0,0};
3192 /* AIX XL C 1.02.0.0 rejects this.
3193 It does not let you subtract one const X* pointer from another in
3194 an arm of an if-expression whose if-part is not a constant
3196 const char *g = "string";
3197 ccp = &g + (g ? g-g : 0);
3198 /* HPUX 7.0 cc rejects these. */
3201 ccp = (char const *const *) p;
3202 { /* SCO 3.2v4 cc rejects this. */
3204 char const *s = 0 ? (char *) 0 : (char const *) 0;
3208 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3210 const int *foo = &x[0];
3213 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3214 typedef const int *iptr;
3218 { /* AIX XL C 1.02.0.0 rejects this saying
3219 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3220 struct s { int j; const int *ap[3]; };
3221 struct s *b; b->j = 5;
3223 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3232 rm -f conftest.$ac_objext
3233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3234 (eval $ac_compile) 2>conftest.er1
3236 grep -v '^ *+' conftest.er1 >conftest.err
3238 cat conftest.err >&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } &&
3241 { ac_try='test -z "$ac_c_werror_flag"
3242 || test ! -s conftest.err'
3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; } &&
3248 { ac_try='test -s conftest.$ac_objext'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; }; then
3256 echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3263 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3264 echo "${ECHO_T}$ac_cv_c_const" >&6
3265 if test $ac_cv_c_const = no; then
3267 cat >>confdefs.h <<\_ACEOF
3273 echo "$as_me:$LINENO: checking for inline" >&5
3274 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3275 if test "${ac_cv_c_inline+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 for ac_kw in inline __inline__ __inline; do
3280 cat >conftest.$ac_ext <<_ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h. */
3288 static $ac_kw foo_t static_foo () {return 0; }
3289 $ac_kw foo_t foo () {return 0; }
3293 rm -f conftest.$ac_objext
3294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3295 (eval $ac_compile) 2>conftest.er1
3297 grep -v '^ *+' conftest.er1 >conftest.err
3299 cat conftest.err >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } &&
3302 { ac_try='test -z "$ac_c_werror_flag"
3303 || test ! -s conftest.err'
3304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; } &&
3309 { ac_try='test -s conftest.$ac_objext'
3310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; }; then
3315 ac_cv_c_inline=$ac_kw; break
3317 echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3325 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3326 echo "${ECHO_T}$ac_cv_c_inline" >&6
3329 case $ac_cv_c_inline in
3332 case $ac_cv_c_inline in
3334 *) ac_val=$ac_cv_c_inline;;
3336 cat >>confdefs.h <<_ACEOF
3338 #define inline $ac_val
3345 ac_bc_result=`echo 6+9 | bc 2>/dev/null`
3346 echo "$as_me:$LINENO: checking for bc" >&5
3347 echo $ECHO_N "checking for bc... $ECHO_C" >&6
3348 if test "$ac_bc_result" = "15" ; then
3349 echo "$as_me:$LINENO: result: yes" >&5
3350 echo "${ECHO_T}yes" >&6
3352 echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6
3355 { { echo "$as_me:$LINENO: error: Your system doesn't have \"bc\", which has been a standard
3356 part of Unix since the 1970s. Come back when your vendor
3357 has grown a clue." >&5
3358 echo "$as_me: error: Your system doesn't have \"bc\", which has been a standard
3359 part of Unix since the 1970s. Come back when your vendor
3360 has grown a clue." >&2;}
3361 { (exit 1); exit 1; }; }
3365 # stuff for Makefiles
3366 # Find a good install program. We prefer a C program (faster),
3367 # so one script is as good as another. But avoid the broken or
3368 # incompatible versions:
3369 # SysV /etc/install, /usr/sbin/install
3370 # SunOS /usr/etc/install
3371 # IRIX /sbin/install
3373 # AmigaOS /C/install, which installs bootblocks on floppy discs
3374 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3375 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3376 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3377 # OS/2's system install, which has a completely different semantic
3378 # ./install, which can be erroneously created by make from ./install.sh.
3379 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3380 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3381 if test -z "$INSTALL"; then
3382 if test "${ac_cv_path_install+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 test -z "$as_dir" && as_dir=.
3390 # Account for people who put trailing slashes in PATH elements.
3392 ./ | .// | /cC/* | \
3393 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3394 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3397 # OSF1 and SCO ODT 3.0 have their own names for install.
3398 # Don't use installbsd from OSF since it installs stuff as root
3400 for ac_prog in ginstall scoinst install; do
3401 for ac_exec_ext in '' $ac_executable_extensions; do
3402 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3403 if test $ac_prog = install &&
3404 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3405 # AIX install. It has an incompatible calling convention.
3407 elif test $ac_prog = install &&
3408 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3409 # program-specific install script used by HP pwplus--don't use.
3412 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3424 if test "${ac_cv_path_install+set}" = set; then
3425 INSTALL=$ac_cv_path_install
3427 # As a last resort, use the slow shell script. We don't cache a
3428 # path for INSTALL within a source directory, because that will
3429 # break other packages using the cache if that directory is
3430 # removed, or if the path is relative.
3431 INSTALL=$ac_install_sh
3434 echo "$as_me:$LINENO: result: $INSTALL" >&5
3435 echo "${ECHO_T}$INSTALL" >&6
3437 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3438 # It thinks the first close brace ends the variable substitution.
3439 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3441 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3443 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3445 echo "$as_me:$LINENO: checking whether \"\${INSTALL} -d\" creates intermediate directories" >&5
3446 echo $ECHO_N "checking whether \"\${INSTALL} -d\" creates intermediate directories... $ECHO_C" >&6
3447 if test "${ac_cv_install_d_creates_dirs+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 ac_cv_install_d_creates_dirs=no
3452 if mkdir conftestdir; then
3453 cd conftestdir 2>/dev/null
3454 ${INSTALL} -d `pwd`/dir1/dir2 >/dev/null 2>&1
3455 if test -d dir1/dir2/. ; then
3456 ac_cv_install_d_creates_dirs=yes
3463 echo "$as_me:$LINENO: result: $ac_cv_install_d_creates_dirs" >&5
3464 echo "${ECHO_T}$ac_cv_install_d_creates_dirs" >&6
3466 if test "$ac_cv_install_d_creates_dirs" = no ; then
3467 echo "$as_me:$LINENO: checking whether \"mkdir -p\" creates intermediate directories" >&5
3468 echo $ECHO_N "checking whether \"mkdir -p\" creates intermediate directories... $ECHO_C" >&6
3469 if test "${ac_cv_mkdir_p_creates_dirs+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 ac_cv_mkdir_p_creates_dirs=no
3474 if mkdir conftestdir; then
3475 cd conftestdir 2>/dev/null
3476 mkdir -p dir1/dir2 >/dev/null 2>&1
3477 if test -d dir1/dir2/. ; then
3478 ac_cv_mkdir_p_creates_dirs=yes
3485 echo "$as_me:$LINENO: result: $ac_cv_mkdir_p_creates_dirs" >&5
3486 echo "${ECHO_T}$ac_cv_mkdir_p_creates_dirs" >&6
3489 if test "$ac_cv_install_d_creates_dirs" = yes ; then
3490 INSTALL_DIRS='${INSTALL} -d'
3491 elif test "$ac_cv_mkdir_p_creates_dirs" = yes ; then
3492 INSTALL_DIRS='mkdir -p'
3495 INSTALL_DIRS='${INSTALL} -d'
3498 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3499 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3500 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3501 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3504 cat >conftest.make <<\_ACEOF
3506 @echo 'ac_maketemp="$(MAKE)"'
3508 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3509 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3510 if test -n "$ac_maketemp"; then
3511 eval ac_cv_prog_make_${ac_make}_set=yes
3513 eval ac_cv_prog_make_${ac_make}_set=no
3517 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3518 echo "$as_me:$LINENO: result: yes" >&5
3519 echo "${ECHO_T}yes" >&6
3522 echo "$as_me:$LINENO: result: no" >&5
3523 echo "${ECHO_T}no" >&6
3524 SET_MAKE="MAKE=${MAKE-make}"
3528 # By default, autoconf sets INSTALL_SCRIPT to '${INSTALL_PROGRAM}'.
3529 # That's wrong: it should be set to '${INSTALL}', so that one can
3530 # implement the "install-strip" target properly (strip executables,
3531 # but do not try to strip scripts.)
3533 INSTALL_SCRIPT='${INSTALL}'
3537 echo "$as_me:$LINENO: checking for egrep" >&5
3538 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3539 if test "${ac_cv_prog_egrep+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3542 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3543 then ac_cv_prog_egrep='grep -E'
3544 else ac_cv_prog_egrep='egrep'
3547 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3548 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3549 EGREP=$ac_cv_prog_egrep
3552 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3553 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3554 if test "${ac_cv_header_stdc+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 cat >conftest.$ac_ext <<_ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h. */
3576 rm -f conftest.$ac_objext
3577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3578 (eval $ac_compile) 2>conftest.er1
3580 grep -v '^ *+' conftest.er1 >conftest.err
3582 cat conftest.err >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); } &&
3585 { ac_try='test -z "$ac_c_werror_flag"
3586 || test ! -s conftest.err'
3587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }; } &&
3592 { ac_try='test -s conftest.$ac_objext'
3593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }; }; then
3598 ac_cv_header_stdc=yes
3600 echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3603 ac_cv_header_stdc=no
3605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3607 if test $ac_cv_header_stdc = yes; then
3608 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3609 cat >conftest.$ac_ext <<_ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3619 $EGREP "memchr" >/dev/null 2>&1; then
3622 ac_cv_header_stdc=no
3628 if test $ac_cv_header_stdc = yes; then
3629 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3630 cat >conftest.$ac_ext <<_ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3640 $EGREP "free" >/dev/null 2>&1; then
3643 ac_cv_header_stdc=no
3649 if test $ac_cv_header_stdc = yes; then
3650 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3651 if test "$cross_compiling" = yes; then
3654 cat >conftest.$ac_ext <<_ACEOF
3657 cat confdefs.h >>conftest.$ac_ext
3658 cat >>conftest.$ac_ext <<_ACEOF
3659 /* end confdefs.h. */
3661 #if ((' ' & 0x0FF) == 0x020)
3662 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3663 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3665 # define ISLOWER(c) \
3666 (('a' <= (c) && (c) <= 'i') \
3667 || ('j' <= (c) && (c) <= 'r') \
3668 || ('s' <= (c) && (c) <= 'z'))
3669 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3672 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3677 for (i = 0; i < 256; i++)
3678 if (XOR (islower (i), ISLOWER (i))
3679 || toupper (i) != TOUPPER (i))
3684 rm -f conftest$ac_exeext
3685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3686 (eval $ac_link) 2>&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; }; then
3697 echo "$as_me: program exited with status $ac_status" >&5
3698 echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3702 ac_cv_header_stdc=no
3704 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3708 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3709 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3710 if test $ac_cv_header_stdc = yes; then
3712 cat >>confdefs.h <<\_ACEOF
3713 #define STDC_HEADERS 1
3718 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3728 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3729 inttypes.h stdint.h unistd.h
3731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3732 echo "$as_me:$LINENO: checking for $ac_header" >&5
3733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 cat >conftest.$ac_ext <<_ACEOF
3740 cat confdefs.h >>conftest.$ac_ext
3741 cat >>conftest.$ac_ext <<_ACEOF
3742 /* end confdefs.h. */
3743 $ac_includes_default
3745 #include <$ac_header>
3747 rm -f conftest.$ac_objext
3748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3749 (eval $ac_compile) 2>conftest.er1
3751 grep -v '^ *+' conftest.er1 >conftest.err
3753 cat conftest.err >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } &&
3756 { ac_try='test -z "$ac_c_werror_flag"
3757 || test ! -s conftest.err'
3758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; } &&
3763 { ac_try='test -s conftest.$ac_objext'
3764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; }; then
3769 eval "$as_ac_Header=yes"
3771 echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3774 eval "$as_ac_Header=no"
3776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3781 cat >>confdefs.h <<_ACEOF
3782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3791 for ac_header in unistd.h
3793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3795 echo "$as_me:$LINENO: checking for $ac_header" >&5
3796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3803 # Is the header compilable?
3804 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3806 cat >conftest.$ac_ext <<_ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3812 $ac_includes_default
3813 #include <$ac_header>
3815 rm -f conftest.$ac_objext
3816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3817 (eval $ac_compile) 2>conftest.er1
3819 grep -v '^ *+' conftest.er1 >conftest.err
3821 cat conftest.err >&5
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); } &&
3824 { ac_try='test -z "$ac_c_werror_flag"
3825 || test ! -s conftest.err'
3826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); }; } &&
3831 { ac_try='test -s conftest.$ac_objext'
3832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; }; then
3837 ac_header_compiler=yes
3839 echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3842 ac_header_compiler=no
3844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3845 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3846 echo "${ECHO_T}$ac_header_compiler" >&6
3848 # Is the header present?
3849 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3851 cat >conftest.$ac_ext <<_ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3857 #include <$ac_header>
3859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3862 grep -v '^ *+' conftest.er1 >conftest.err
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } >/dev/null; then
3867 if test -s conftest.err; then
3868 ac_cpp_err=$ac_c_preproc_warn_flag
3869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3876 if test -z "$ac_cpp_err"; then
3877 ac_header_preproc=yes
3879 echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3882 ac_header_preproc=no
3884 rm -f conftest.err conftest.$ac_ext
3885 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3886 echo "${ECHO_T}$ac_header_preproc" >&6
3888 # So? What about this header?
3889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3891 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3892 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3894 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3895 ac_header_preproc=yes
3898 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3899 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3900 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3901 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3902 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3903 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3904 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3905 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3908 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3909 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3912 ## ------------------------------------------ ##
3913 ## Report this to the AC_PACKAGE_NAME lists. ##
3914 ## ------------------------------------------ ##
3917 sed "s/^/$as_me: WARNING: /" >&2
3920 echo "$as_me:$LINENO: checking for $ac_header" >&5
3921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 eval "$as_ac_Header=\$ac_header_preproc"
3927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3932 cat >>confdefs.h <<_ACEOF
3933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3940 echo "$as_me:$LINENO: checking for mode_t" >&5
3941 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
3942 if test "${ac_cv_type_mode_t+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 cat >conftest.$ac_ext <<_ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3951 $ac_includes_default
3957 if (sizeof (mode_t))
3963 rm -f conftest.$ac_objext
3964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3965 (eval $ac_compile) 2>conftest.er1
3967 grep -v '^ *+' conftest.er1 >conftest.err
3969 cat conftest.err >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } &&
3972 { ac_try='test -z "$ac_c_werror_flag"
3973 || test ! -s conftest.err'
3974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; } &&
3979 { ac_try='test -s conftest.$ac_objext'
3980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }; }; then
3985 ac_cv_type_mode_t=yes
3987 echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3990 ac_cv_type_mode_t=no
3992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3994 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
3995 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
3996 if test $ac_cv_type_mode_t = yes; then
4000 cat >>confdefs.h <<_ACEOF
4006 echo "$as_me:$LINENO: checking for pid_t" >&5
4007 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4008 if test "${ac_cv_type_pid_t+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 cat >conftest.$ac_ext <<_ACEOF
4014 cat confdefs.h >>conftest.$ac_ext
4015 cat >>conftest.$ac_ext <<_ACEOF
4016 /* end confdefs.h. */
4017 $ac_includes_default
4029 rm -f conftest.$ac_objext
4030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4031 (eval $ac_compile) 2>conftest.er1
4033 grep -v '^ *+' conftest.er1 >conftest.err
4035 cat conftest.err >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } &&
4038 { ac_try='test -z "$ac_c_werror_flag"
4039 || test ! -s conftest.err'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; } &&
4045 { ac_try='test -s conftest.$ac_objext'
4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; }; then
4051 ac_cv_type_pid_t=yes
4053 echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4060 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4061 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4062 if test $ac_cv_type_pid_t = yes; then
4066 cat >>confdefs.h <<_ACEOF
4072 echo "$as_me:$LINENO: checking for size_t" >&5
4073 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4074 if test "${ac_cv_type_size_t+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 cat >conftest.$ac_ext <<_ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4083 $ac_includes_default
4089 if (sizeof (size_t))
4095 rm -f conftest.$ac_objext
4096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4097 (eval $ac_compile) 2>conftest.er1
4099 grep -v '^ *+' conftest.er1 >conftest.err
4101 cat conftest.err >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } &&
4104 { ac_try='test -z "$ac_c_werror_flag"
4105 || test ! -s conftest.err'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; } &&
4111 { ac_try='test -s conftest.$ac_objext'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; }; then
4117 ac_cv_type_size_t=yes
4119 echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4122 ac_cv_type_size_t=no
4124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4126 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4127 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4128 if test $ac_cv_type_size_t = yes; then
4132 cat >>confdefs.h <<_ACEOF
4133 #define size_t unsigned
4138 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4139 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4140 if test "${ac_cv_type_signal+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 cat >conftest.$ac_ext <<_ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4149 #include <sys/types.h>
4155 extern "C" void (*signal (int, void (*)(int)))(int);
4157 void (*signal ()) ();
4168 rm -f conftest.$ac_objext
4169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4170 (eval $ac_compile) 2>conftest.er1
4172 grep -v '^ *+' conftest.er1 >conftest.err
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } &&
4177 { ac_try='test -z "$ac_c_werror_flag"
4178 || test ! -s conftest.err'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; } &&
4184 { ac_try='test -s conftest.$ac_objext'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; }; then
4190 ac_cv_type_signal=void
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4195 ac_cv_type_signal=int
4197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4199 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4200 echo "${ECHO_T}$ac_cv_type_signal" >&6
4202 cat >>confdefs.h <<_ACEOF
4203 #define RETSIGTYPE $ac_cv_type_signal
4207 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4208 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4209 if test "${ac_cv_header_time+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 cat >conftest.$ac_ext <<_ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4218 #include <sys/types.h>
4219 #include <sys/time.h>
4225 if ((struct tm *) 0)
4231 rm -f conftest.$ac_objext
4232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4233 (eval $ac_compile) 2>conftest.er1
4235 grep -v '^ *+' conftest.er1 >conftest.err
4237 cat conftest.err >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } &&
4240 { ac_try='test -z "$ac_c_werror_flag"
4241 || test ! -s conftest.err'
4242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); }; } &&
4247 { ac_try='test -s conftest.$ac_objext'
4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; }; then
4253 ac_cv_header_time=yes
4255 echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4258 ac_cv_header_time=no
4260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4262 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4263 echo "${ECHO_T}$ac_cv_header_time" >&6
4264 if test $ac_cv_header_time = yes; then
4266 cat >>confdefs.h <<\_ACEOF
4267 #define TIME_WITH_SYS_TIME 1
4272 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4273 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4274 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 cat >conftest.$ac_ext <<_ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h. */
4283 #include <sys/types.h>
4284 #include <sys/wait.h>
4286 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4289 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4297 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4302 rm -f conftest.$ac_objext
4303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4304 (eval $ac_compile) 2>conftest.er1
4306 grep -v '^ *+' conftest.er1 >conftest.err
4308 cat conftest.err >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } &&
4311 { ac_try='test -z "$ac_c_werror_flag"
4312 || test ! -s conftest.err'
4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; } &&
4318 { ac_try='test -s conftest.$ac_objext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 ac_cv_header_sys_wait_h=yes
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4329 ac_cv_header_sys_wait_h=no
4331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4333 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4334 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4335 if test $ac_cv_header_sys_wait_h = yes; then
4337 cat >>confdefs.h <<\_ACEOF
4338 #define HAVE_SYS_WAIT_H 1
4349 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4350 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4351 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4352 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 cat >conftest.$ac_ext <<_ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4362 #include <sys/types.h>
4374 rm -f conftest.$ac_objext
4375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376 (eval $ac_compile) 2>conftest.er1
4378 grep -v '^ *+' conftest.er1 >conftest.err
4380 cat conftest.err >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } &&
4383 { ac_try='test -z "$ac_c_werror_flag"
4384 || test ! -s conftest.err'
4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; } &&
4390 { ac_try='test -s conftest.$ac_objext'
4391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; }; then
4396 eval "$as_ac_Header=yes"
4398 echo "$as_me: failed program was:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4401 eval "$as_ac_Header=no"
4403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4408 cat >>confdefs.h <<_ACEOF
4409 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4412 ac_header_dirent=$ac_hdr; break
4416 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4417 if test $ac_header_dirent = dirent.h; then
4418 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4419 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4420 if test "${ac_cv_search_opendir+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 ac_func_search_save_LIBS=$LIBS
4424 ac_cv_search_opendir=no
4425 cat >conftest.$ac_ext <<_ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4432 /* Override any gcc2 internal prototype to avoid an error. */
4436 /* We use char because int might match the return type of a gcc2
4437 builtin and then its argument prototype would still apply. */
4447 rm -f conftest.$ac_objext conftest$ac_exeext
4448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4449 (eval $ac_link) 2>conftest.er1
4451 grep -v '^ *+' conftest.er1 >conftest.err
4453 cat conftest.err >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); } &&
4456 { ac_try='test -z "$ac_c_werror_flag"
4457 || test ! -s conftest.err'
4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; } &&
4463 { ac_try='test -s conftest$ac_exeext'
4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; }; then
4469 ac_cv_search_opendir="none required"
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4475 rm -f conftest.err conftest.$ac_objext \
4476 conftest$ac_exeext conftest.$ac_ext
4477 if test "$ac_cv_search_opendir" = no; then
4478 for ac_lib in dir; do
4479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4480 cat >conftest.$ac_ext <<_ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4487 /* Override any gcc2 internal prototype to avoid an error. */
4491 /* We use char because int might match the return type of a gcc2
4492 builtin and then its argument prototype would still apply. */
4502 rm -f conftest.$ac_objext conftest$ac_exeext
4503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4504 (eval $ac_link) 2>conftest.er1
4506 grep -v '^ *+' conftest.er1 >conftest.err
4508 cat conftest.err >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } &&
4511 { ac_try='test -z "$ac_c_werror_flag"
4512 || test ! -s conftest.err'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; } &&
4518 { ac_try='test -s conftest$ac_exeext'
4519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; }; then
4524 ac_cv_search_opendir="-l$ac_lib"
4527 echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4531 rm -f conftest.err conftest.$ac_objext \
4532 conftest$ac_exeext conftest.$ac_ext
4535 LIBS=$ac_func_search_save_LIBS
4537 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4538 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4539 if test "$ac_cv_search_opendir" != no; then
4540 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4545 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4546 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4547 if test "${ac_cv_search_opendir+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 ac_func_search_save_LIBS=$LIBS
4551 ac_cv_search_opendir=no
4552 cat >conftest.$ac_ext <<_ACEOF
4555 cat confdefs.h >>conftest.$ac_ext
4556 cat >>conftest.$ac_ext <<_ACEOF
4557 /* end confdefs.h. */
4559 /* Override any gcc2 internal prototype to avoid an error. */
4563 /* We use char because int might match the return type of a gcc2
4564 builtin and then its argument prototype would still apply. */
4574 rm -f conftest.$ac_objext conftest$ac_exeext
4575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4576 (eval $ac_link) 2>conftest.er1
4578 grep -v '^ *+' conftest.er1 >conftest.err
4580 cat conftest.err >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } &&
4583 { ac_try='test -z "$ac_c_werror_flag"
4584 || test ! -s conftest.err'
4585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }; } &&
4590 { ac_try='test -s conftest$ac_exeext'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; }; then
4596 ac_cv_search_opendir="none required"
4598 echo "$as_me: failed program was:" >&5
4599 sed 's/^/| /' conftest.$ac_ext >&5
4602 rm -f conftest.err conftest.$ac_objext \
4603 conftest$ac_exeext conftest.$ac_ext
4604 if test "$ac_cv_search_opendir" = no; then
4606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4607 cat >conftest.$ac_ext <<_ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4614 /* Override any gcc2 internal prototype to avoid an error. */
4618 /* We use char because int might match the return type of a gcc2
4619 builtin and then its argument prototype would still apply. */
4629 rm -f conftest.$ac_objext conftest$ac_exeext
4630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4631 (eval $ac_link) 2>conftest.er1
4633 grep -v '^ *+' conftest.er1 >conftest.err
4635 cat conftest.err >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } &&
4638 { ac_try='test -z "$ac_c_werror_flag"
4639 || test ! -s conftest.err'
4640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }; } &&
4645 { ac_try='test -s conftest$ac_exeext'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; }; then
4651 ac_cv_search_opendir="-l$ac_lib"
4654 echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4658 rm -f conftest.err conftest.$ac_objext \
4659 conftest$ac_exeext conftest.$ac_ext
4662 LIBS=$ac_func_search_save_LIBS
4664 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4665 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4666 if test "$ac_cv_search_opendir" != no; then
4667 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4673 echo "$as_me:$LINENO: checking how to call gettimeofday" >&5
4674 echo $ECHO_N "checking how to call gettimeofday... $ECHO_C" >&6
4675 if test "${ac_cv_gettimeofday_args+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4678 cat >conftest.$ac_ext <<_ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4685 #include <sys/time.h>
4689 struct timeval tv; struct timezone tzp;
4690 gettimeofday(&tv, &tzp);
4695 rm -f conftest.$ac_objext
4696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4697 (eval $ac_compile) 2>conftest.er1
4699 grep -v '^ *+' conftest.er1 >conftest.err
4701 cat conftest.err >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } &&
4704 { ac_try='test -z "$ac_c_werror_flag"
4705 || test ! -s conftest.err'
4706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; } &&
4711 { ac_try='test -s conftest.$ac_objext'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; }; then
4717 ac_gettimeofday_args=2
4719 echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4722 cat >conftest.$ac_ext <<_ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4729 #include <sys/time.h>
4733 struct timeval tv; gettimeofday(&tv);
4738 rm -f conftest.$ac_objext
4739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4740 (eval $ac_compile) 2>conftest.er1
4742 grep -v '^ *+' conftest.er1 >conftest.err
4744 cat conftest.err >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } &&
4747 { ac_try='test -z "$ac_c_werror_flag"
4748 || test ! -s conftest.err'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; } &&
4754 { ac_try='test -s conftest.$ac_objext'
4755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; }; then
4760 ac_gettimeofday_args=1
4762 echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4765 ac_gettimeofday_args=0
4767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4770 ac_cv_gettimeofday_args=$ac_gettimeofday_args
4773 ac_gettimeofday_args=$ac_cv_gettimeofday_args
4774 if test "$ac_gettimeofday_args" = 1 ; then
4775 cat >>confdefs.h <<\_ACEOF
4776 #define HAVE_GETTIMEOFDAY 1
4779 echo "$as_me:$LINENO: result: one argument" >&5
4780 echo "${ECHO_T}one argument" >&6
4781 elif test "$ac_gettimeofday_args" = 2 ; then
4782 cat >>confdefs.h <<\_ACEOF
4783 #define HAVE_GETTIMEOFDAY 1
4786 cat >>confdefs.h <<\_ACEOF
4787 #define GETTIMEOFDAY_TWO_ARGS 1
4790 echo "$as_me:$LINENO: result: two arguments" >&5
4791 echo "${ECHO_T}two arguments" >&6
4793 echo "$as_me:$LINENO: result: unknown" >&5
4794 echo "${ECHO_T}unknown" >&6
4806 for ac_func in select fcntl uname nice setpriority getcwd getwd putenv sbrk
4808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4809 echo "$as_me:$LINENO: checking for $ac_func" >&5
4810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4811 if eval "test \"\${$as_ac_var+set}\" = set"; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 cat >conftest.$ac_ext <<_ACEOF
4817 cat confdefs.h >>conftest.$ac_ext
4818 cat >>conftest.$ac_ext <<_ACEOF
4819 /* end confdefs.h. */
4820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4822 #define $ac_func innocuous_$ac_func
4824 /* System header to define __stub macros and hopefully few prototypes,
4825 which can conflict with char $ac_func (); below.
4826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4827 <limits.h> exists even on freestanding compilers. */
4830 # include <limits.h>
4832 # include <assert.h>
4837 /* Override any gcc2 internal prototype to avoid an error. */
4842 /* We use char because int might match the return type of a gcc2
4843 builtin and then its argument prototype would still apply. */
4845 /* The GNU C library defines this for functions which it implements
4846 to always fail with ENOSYS. Some functions are actually named
4847 something starting with __ and the normal name is an alias. */
4848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4851 char (*f) () = $ac_func;
4860 return f != $ac_func;
4865 rm -f conftest.$ac_objext conftest$ac_exeext
4866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4867 (eval $ac_link) 2>conftest.er1
4869 grep -v '^ *+' conftest.er1 >conftest.err
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } &&
4874 { ac_try='test -z "$ac_c_werror_flag"
4875 || test ! -s conftest.err'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; } &&
4881 { ac_try='test -s conftest$ac_exeext'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4887 eval "$as_ac_var=yes"
4889 echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4892 eval "$as_ac_var=no"
4894 rm -f conftest.err conftest.$ac_objext \
4895 conftest$ac_exeext conftest.$ac_ext
4897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4898 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4899 if test `eval echo '${'$as_ac_var'}'` = yes; then
4900 cat >>confdefs.h <<_ACEOF
4901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4911 for ac_func in sigaction syslog realpath setrlimit
4913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4914 echo "$as_me:$LINENO: checking for $ac_func" >&5
4915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4916 if eval "test \"\${$as_ac_var+set}\" = set"; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 cat >conftest.$ac_ext <<_ACEOF
4922 cat confdefs.h >>conftest.$ac_ext
4923 cat >>conftest.$ac_ext <<_ACEOF
4924 /* end confdefs.h. */
4925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4927 #define $ac_func innocuous_$ac_func
4929 /* System header to define __stub macros and hopefully few prototypes,
4930 which can conflict with char $ac_func (); below.
4931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4932 <limits.h> exists even on freestanding compilers. */
4935 # include <limits.h>
4937 # include <assert.h>
4942 /* Override any gcc2 internal prototype to avoid an error. */
4947 /* We use char because int might match the return type of a gcc2
4948 builtin and then its argument prototype would still apply. */
4950 /* The GNU C library defines this for functions which it implements
4951 to always fail with ENOSYS. Some functions are actually named
4952 something starting with __ and the normal name is an alias. */
4953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4956 char (*f) () = $ac_func;
4965 return f != $ac_func;
4970 rm -f conftest.$ac_objext conftest$ac_exeext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4972 (eval $ac_link) 2>conftest.er1
4974 grep -v '^ *+' conftest.er1 >conftest.err
4976 cat conftest.err >&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } &&
4979 { ac_try='test -z "$ac_c_werror_flag"
4980 || test ! -s conftest.err'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; } &&
4986 { ac_try='test -s conftest$ac_exeext'
4987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; }; then
4992 eval "$as_ac_var=yes"
4994 echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4997 eval "$as_ac_var=no"
4999 rm -f conftest.err conftest.$ac_objext \
5000 conftest$ac_exeext conftest.$ac_ext
5002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5003 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5004 if test `eval echo '${'$as_ac_var'}'` = yes; then
5005 cat >>confdefs.h <<_ACEOF
5006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5012 echo "$as_me:$LINENO: checking for struct icmp" >&5
5013 echo $ECHO_N "checking for struct icmp... $ECHO_C" >&6
5014 if test "${ac_cv_have_icmp+set}" = set; then
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 cat >conftest.$ac_ext <<_ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h. */
5030 #include <sys/types.h>
5031 #include <sys/time.h>
5032 #include <sys/ipc.h>
5033 #include <sys/shm.h>
5034 #include <sys/socket.h>
5035 #include <netinet/in_systm.h>
5036 #include <netinet/in.h>
5037 #include <netinet/ip.h>
5038 #include <netinet/ip_icmp.h>
5039 #include <netinet/udp.h>
5040 #include <arpa/inet.h>
5047 struct sockaddr_in si;
5049 i.icmp_type = ICMP_ECHO;
5054 si.sin_family = AF_INET;
5055 #if defined(__DECC) || defined(_IP_VHL)
5065 rm -f conftest.$ac_objext
5066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067 (eval $ac_compile) 2>conftest.er1
5069 grep -v '^ *+' conftest.er1 >conftest.err
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } &&
5074 { ac_try='test -z "$ac_c_werror_flag"
5075 || test ! -s conftest.err'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; } &&
5081 { ac_try='test -s conftest.$ac_objext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5096 echo "$as_me:$LINENO: result: $ac_cv_have_icmp" >&5
5097 echo "${ECHO_T}$ac_cv_have_icmp" >&6
5098 if test "$ac_cv_have_icmp" = yes ; then
5099 cat >>confdefs.h <<\_ACEOF
5104 echo "$as_me:$LINENO: checking for struct icmphdr" >&5
5105 echo $ECHO_N "checking for struct icmphdr... $ECHO_C" >&6
5106 if test "${ac_cv_have_icmphdr+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 cat >conftest.$ac_ext <<_ACEOF
5112 cat confdefs.h >>conftest.$ac_ext
5113 cat >>conftest.$ac_ext <<_ACEOF
5114 /* end confdefs.h. */
5122 #include <sys/types.h>
5123 #include <sys/time.h>
5124 #include <sys/ipc.h>
5125 #include <sys/shm.h>
5126 #include <sys/socket.h>
5127 #include <netinet/in_systm.h>
5128 #include <netinet/in.h>
5129 #include <netinet/ip.h>
5130 #include <netinet/ip_icmp.h>
5131 #include <netinet/udp.h>
5132 #include <arpa/inet.h>
5139 struct sockaddr_in si;
5145 i.un.echo.sequence = 0;
5146 si.sin_family = AF_INET;
5152 rm -f conftest.$ac_objext
5153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5154 (eval $ac_compile) 2>conftest.er1
5156 grep -v '^ *+' conftest.er1 >conftest.err
5158 cat conftest.err >&5
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); } &&
5161 { ac_try='test -z "$ac_c_werror_flag"
5162 || test ! -s conftest.err'
5163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }; } &&
5168 { ac_try='test -s conftest.$ac_objext'
5169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }; }; then
5174 ac_cv_have_icmphdr=yes
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5179 ac_cv_have_icmphdr=no
5181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5183 echo "$as_me:$LINENO: result: $ac_cv_have_icmphdr" >&5
5184 echo "${ECHO_T}$ac_cv_have_icmphdr" >&6
5185 if test "$ac_cv_have_icmphdr" = yes ; then
5186 cat >>confdefs.h <<\_ACEOF
5187 #define HAVE_ICMPHDR 1
5193 for ac_header in crypt.h sys/select.h
5195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5197 echo "$as_me:$LINENO: checking for $ac_header" >&5
5198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5200 echo $ECHO_N "(cached) $ECHO_C" >&6
5202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5205 # Is the header compilable?
5206 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5208 cat >conftest.$ac_ext <<_ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5214 $ac_includes_default
5215 #include <$ac_header>
5217 rm -f conftest.$ac_objext
5218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5219 (eval $ac_compile) 2>conftest.er1
5221 grep -v '^ *+' conftest.er1 >conftest.err
5223 cat conftest.err >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); } &&
5226 { ac_try='test -z "$ac_c_werror_flag"
5227 || test ! -s conftest.err'
5228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); }; } &&
5233 { ac_try='test -s conftest.$ac_objext'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; }; then
5239 ac_header_compiler=yes
5241 echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.$ac_ext >&5
5244 ac_header_compiler=no
5246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5248 echo "${ECHO_T}$ac_header_compiler" >&6
5250 # Is the header present?
5251 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5253 cat >conftest.$ac_ext <<_ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h. */
5259 #include <$ac_header>
5261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5264 grep -v '^ *+' conftest.er1 >conftest.err
5266 cat conftest.err >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } >/dev/null; then
5269 if test -s conftest.err; then
5270 ac_cpp_err=$ac_c_preproc_warn_flag
5271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5278 if test -z "$ac_cpp_err"; then
5279 ac_header_preproc=yes
5281 echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5284 ac_header_preproc=no
5286 rm -f conftest.err conftest.$ac_ext
5287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5288 echo "${ECHO_T}$ac_header_preproc" >&6
5290 # So? What about this header?
5291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5297 ac_header_preproc=yes
5300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5303 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5307 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5314 ## ------------------------------------------ ##
5315 ## Report this to the AC_PACKAGE_NAME lists. ##
5316 ## ------------------------------------------ ##
5319 sed "s/^/$as_me: WARNING: /" >&2
5322 echo "$as_me:$LINENO: checking for $ac_header" >&5
5323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5327 eval "$as_ac_Header=\$ac_header_preproc"
5329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5334 cat >>confdefs.h <<_ACEOF
5335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5342 for ac_prog in perl5 perl
5344 # Extract the first word of "$ac_prog", so it can be a program name with args.
5345 set dummy $ac_prog; ac_word=$2
5346 echo "$as_me:$LINENO: checking for $ac_word" >&5
5347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5348 if test "${ac_cv_path_PERL+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5353 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5363 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 PERL=$ac_cv_path_PERL
5375 if test -n "$PERL"; then
5376 echo "$as_me:$LINENO: result: $PERL" >&5
5377 echo "${ECHO_T}$PERL" >&6
5379 echo "$as_me:$LINENO: result: no" >&5
5380 echo "${ECHO_T}no" >&6
5383 test -n "$PERL" && break
5386 if test -z "$PERL" ; then
5389 echo "$as_me:$LINENO: checking perl version" >&5
5390 echo $ECHO_N "checking perl version... $ECHO_C" >&6
5391 if test "${ac_cv_perl_version+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 ac_cv_perl_version=`$PERL -e "$perl_version_cmd"`
5396 echo "$as_me:$LINENO: result: $ac_cv_perl_version" >&5
5397 echo "${ECHO_T}$ac_cv_perl_version" >&6
5398 PERL_VERSION=$ac_cv_perl_version
5402 if test -z "$PERL" ; then
5403 # don't let it be blank...
5407 echo "$as_me:$LINENO: checking for X" >&5
5408 echo $ECHO_N "checking for X... $ECHO_C" >&6
5411 # Check whether --with-x or --without-x was given.
5412 if test "${with_x+set}" = set; then
5416 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5417 if test "x$with_x" = xno; then
5418 # The user explicitly disabled X.
5421 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5422 # Both variables are already set.
5425 if test "${ac_cv_have_x+set}" = set; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 # One or both of the vars are not set, and there is no cached value.
5429 ac_x_includes=no ac_x_libraries=no
5431 if mkdir conftest.dir; then
5433 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5434 cat >Imakefile <<'_ACEOF'
5436 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5438 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5439 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5440 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5441 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5442 for ac_extension in a so sl; do
5443 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5444 test -f $ac_im_libdir/libX11.$ac_extension; then
5445 ac_im_usrlibdir=$ac_im_libdir; break
5448 # Screen out bogus values from the imake configuration. They are
5449 # bogus both because they are the default anyway, and because
5450 # using them would break gcc on systems where it needs fixed includes.
5451 case $ac_im_incroot in
5453 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5455 case $ac_im_usrlibdir in
5457 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5464 # Standard set of common directories for X headers.
5465 # Check X11 before X11Rn because it is often a symlink to the current release.
5477 /usr/local/X11/include
5478 /usr/local/X11R6/include
5479 /usr/local/X11R5/include
5480 /usr/local/X11R4/include
5482 /usr/local/include/X11
5483 /usr/local/include/X11R6
5484 /usr/local/include/X11R5
5485 /usr/local/include/X11R4
5489 /usr/XFree86/include/X11
5493 /usr/unsupported/include
5495 /usr/local/x11r5/include
5496 /usr/lpp/Xamples/include
5498 /usr/openwin/include
5499 /usr/openwin/share/include'
5501 if test "$ac_x_includes" = no; then
5502 # Guess where to find include files, by looking for Intrinsic.h.
5503 # First, try using that file with no special directory specified.
5504 cat >conftest.$ac_ext <<_ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h. */
5510 #include <X11/Intrinsic.h>
5512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5515 grep -v '^ *+' conftest.er1 >conftest.err
5517 cat conftest.err >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); } >/dev/null; then
5520 if test -s conftest.err; then
5521 ac_cpp_err=$ac_c_preproc_warn_flag
5522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5529 if test -z "$ac_cpp_err"; then
5530 # We can compile using X headers with no special include directory.
5533 echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5536 for ac_dir in $ac_x_header_dirs; do
5537 if test -r "$ac_dir/X11/Intrinsic.h"; then
5538 ac_x_includes=$ac_dir
5543 rm -f conftest.err conftest.$ac_ext
5544 fi # $ac_x_includes = no
5546 if test "$ac_x_libraries" = no; then
5547 # Check for the libraries.
5548 # See if we find them without any special options.
5549 # Don't add to $LIBS permanently.
5552 cat >conftest.$ac_ext <<_ACEOF
5555 cat confdefs.h >>conftest.$ac_ext
5556 cat >>conftest.$ac_ext <<_ACEOF
5557 /* end confdefs.h. */
5558 #include <X11/Intrinsic.h>
5567 rm -f conftest.$ac_objext conftest$ac_exeext
5568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5569 (eval $ac_link) 2>conftest.er1
5571 grep -v '^ *+' conftest.er1 >conftest.err
5573 cat conftest.err >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } &&
5576 { ac_try='test -z "$ac_c_werror_flag"
5577 || test ! -s conftest.err'
5578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); }; } &&
5583 { ac_try='test -s conftest$ac_exeext'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; }; then
5590 # We can link X programs with no special library path.
5593 echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5597 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5599 # Don't even attempt the hair of trying to link an X program!
5600 for ac_extension in a so sl; do
5601 if test -r $ac_dir/libXt.$ac_extension; then
5602 ac_x_libraries=$ac_dir
5608 rm -f conftest.err conftest.$ac_objext \
5609 conftest$ac_exeext conftest.$ac_ext
5610 fi # $ac_x_libraries = no
5612 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5613 # Didn't find X anywhere. Cache the known absence of X.
5614 ac_cv_have_x="have_x=no"
5616 # Record where we found X for the cache.
5617 ac_cv_have_x="have_x=yes \
5618 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5623 eval "$ac_cv_have_x"
5626 if test "$have_x" != yes; then
5627 echo "$as_me:$LINENO: result: $have_x" >&5
5628 echo "${ECHO_T}$have_x" >&6
5631 # If each of the values was on the command line, it overrides each guess.
5632 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5633 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5634 # Update the cache value to reflect the command line values.
5635 ac_cv_have_x="have_x=yes \
5636 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5637 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5638 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5641 if test "$no_x" = yes; then
5642 # Not all programs may use this symbol, but it does not hurt to define it.
5644 cat >>confdefs.h <<\_ACEOF
5645 #define X_DISPLAY_MISSING 1
5648 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5650 if test -n "$x_includes"; then
5651 X_CFLAGS="$X_CFLAGS -I$x_includes"
5654 # It would also be nice to do this for all -L options, not just this one.
5655 if test -n "$x_libraries"; then
5656 X_LIBS="$X_LIBS -L$x_libraries"
5657 # For Solaris; some versions of Sun CC require a space after -R and
5658 # others require no space. Words are not sufficient . . . .
5659 case `(uname -sr) 2>/dev/null` in
5661 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5662 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5663 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5664 cat >conftest.$ac_ext <<_ACEOF
5667 cat confdefs.h >>conftest.$ac_ext
5668 cat >>conftest.$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5679 rm -f conftest.$ac_objext conftest$ac_exeext
5680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5681 (eval $ac_link) 2>conftest.er1
5683 grep -v '^ *+' conftest.er1 >conftest.err
5685 cat conftest.err >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } &&
5688 { ac_try='test -z "$ac_c_werror_flag"
5689 || test ! -s conftest.err'
5690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; } &&
5695 { ac_try='test -s conftest$ac_exeext'
5696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; }; then
5703 echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5708 rm -f conftest.err conftest.$ac_objext \
5709 conftest$ac_exeext conftest.$ac_ext
5710 if test $ac_R_nospace = yes; then
5711 echo "$as_me:$LINENO: result: no" >&5
5712 echo "${ECHO_T}no" >&6
5713 X_LIBS="$X_LIBS -R$x_libraries"
5715 LIBS="$ac_xsave_LIBS -R $x_libraries"
5716 cat >conftest.$ac_ext <<_ACEOF
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h. */
5731 rm -f conftest.$ac_objext conftest$ac_exeext
5732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5733 (eval $ac_link) 2>conftest.er1
5735 grep -v '^ *+' conftest.er1 >conftest.err
5737 cat conftest.err >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } &&
5740 { ac_try='test -z "$ac_c_werror_flag"
5741 || test ! -s conftest.err'
5742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; } &&
5747 { ac_try='test -s conftest$ac_exeext'
5748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; }; then
5755 echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5760 rm -f conftest.err conftest.$ac_objext \
5761 conftest$ac_exeext conftest.$ac_ext
5762 if test $ac_R_space = yes; then
5763 echo "$as_me:$LINENO: result: yes" >&5
5764 echo "${ECHO_T}yes" >&6
5765 X_LIBS="$X_LIBS -R $x_libraries"
5767 echo "$as_me:$LINENO: result: neither works" >&5
5768 echo "${ECHO_T}neither works" >&6
5775 # Check for system-dependent libraries X programs must link with.
5776 # Do this before checking for the system-independent R6 libraries
5777 # (-lICE), since we may need -lsocket or whatever for X linking.
5779 if test "$ISC" = yes; then
5780 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5782 # Martyn Johnson says this is needed for Ultrix, if the X
5783 # libraries were built with DECnet support. And Karl Berry says
5784 # the Alpha needs dnet_stub (dnet does not exist).
5785 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5786 cat >conftest.$ac_ext <<_ACEOF
5789 cat confdefs.h >>conftest.$ac_ext
5790 cat >>conftest.$ac_ext <<_ACEOF
5791 /* end confdefs.h. */
5793 /* Override any gcc2 internal prototype to avoid an error. */
5797 /* We use char because int might match the return type of a gcc2
5798 builtin and then its argument prototype would still apply. */
5799 char XOpenDisplay ();
5808 rm -f conftest.$ac_objext conftest$ac_exeext
5809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5810 (eval $ac_link) 2>conftest.er1
5812 grep -v '^ *+' conftest.er1 >conftest.err
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } &&
5817 { ac_try='test -z "$ac_c_werror_flag"
5818 || test ! -s conftest.err'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; } &&
5824 { ac_try='test -s conftest$ac_exeext'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; }; then
5832 echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5835 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5836 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5837 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 ac_check_lib_save_LIBS=$LIBS
5842 cat >conftest.$ac_ext <<_ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5849 /* Override any gcc2 internal prototype to avoid an error. */
5853 /* We use char because int might match the return type of a gcc2
5854 builtin and then its argument prototype would still apply. */
5864 rm -f conftest.$ac_objext conftest$ac_exeext
5865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5866 (eval $ac_link) 2>conftest.er1
5868 grep -v '^ *+' conftest.er1 >conftest.err
5870 cat conftest.err >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try='test -z "$ac_c_werror_flag"
5874 || test ! -s conftest.err'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; } &&
5880 { ac_try='test -s conftest$ac_exeext'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5886 ac_cv_lib_dnet_dnet_ntoa=yes
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5891 ac_cv_lib_dnet_dnet_ntoa=no
5893 rm -f conftest.err conftest.$ac_objext \
5894 conftest$ac_exeext conftest.$ac_ext
5895 LIBS=$ac_check_lib_save_LIBS
5897 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5898 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5899 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5900 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5903 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5904 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5905 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5906 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 ac_check_lib_save_LIBS=$LIBS
5910 LIBS="-ldnet_stub $LIBS"
5911 cat >conftest.$ac_ext <<_ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5918 /* Override any gcc2 internal prototype to avoid an error. */
5922 /* We use char because int might match the return type of a gcc2
5923 builtin and then its argument prototype would still apply. */
5933 rm -f conftest.$ac_objext conftest$ac_exeext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5935 (eval $ac_link) 2>conftest.er1
5937 grep -v '^ *+' conftest.er1 >conftest.err
5939 cat conftest.err >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } &&
5942 { ac_try='test -z "$ac_c_werror_flag"
5943 || test ! -s conftest.err'
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; } &&
5949 { ac_try='test -s conftest$ac_exeext'
5950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; }; then
5955 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5957 echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5960 ac_cv_lib_dnet_stub_dnet_ntoa=no
5962 rm -f conftest.err conftest.$ac_objext \
5963 conftest$ac_exeext conftest.$ac_ext
5964 LIBS=$ac_check_lib_save_LIBS
5966 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5967 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5968 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5969 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5974 rm -f conftest.err conftest.$ac_objext \
5975 conftest$ac_exeext conftest.$ac_ext
5976 LIBS="$ac_xsave_LIBS"
5978 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5979 # to get the SysV transport functions.
5980 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5982 # The nsl library prevents programs from opening the X display
5983 # on Irix 5.2, according to T.E. Dickey.
5984 # The functions gethostbyname, getservbyname, and inet_addr are
5985 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5986 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5987 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5988 if test "${ac_cv_func_gethostbyname+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 cat >conftest.$ac_ext <<_ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
5997 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5999 #define gethostbyname innocuous_gethostbyname
6001 /* System header to define __stub macros and hopefully few prototypes,
6002 which can conflict with char gethostbyname (); below.
6003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6004 <limits.h> exists even on freestanding compilers. */
6007 # include <limits.h>
6009 # include <assert.h>
6012 #undef gethostbyname
6014 /* Override any gcc2 internal prototype to avoid an error. */
6019 /* We use char because int might match the return type of a gcc2
6020 builtin and then its argument prototype would still apply. */
6021 char gethostbyname ();
6022 /* The GNU C library defines this for functions which it implements
6023 to always fail with ENOSYS. Some functions are actually named
6024 something starting with __ and the normal name is an alias. */
6025 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6028 char (*f) () = gethostbyname;
6037 return f != gethostbyname;
6042 rm -f conftest.$ac_objext conftest$ac_exeext
6043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6044 (eval $ac_link) 2>conftest.er1
6046 grep -v '^ *+' conftest.er1 >conftest.err
6048 cat conftest.err >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } &&
6051 { ac_try='test -z "$ac_c_werror_flag"
6052 || test ! -s conftest.err'
6053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); }; } &&
6058 { ac_try='test -s conftest$ac_exeext'
6059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; }; then
6064 ac_cv_func_gethostbyname=yes
6066 echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6069 ac_cv_func_gethostbyname=no
6071 rm -f conftest.err conftest.$ac_objext \
6072 conftest$ac_exeext conftest.$ac_ext
6074 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6075 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6077 if test $ac_cv_func_gethostbyname = no; then
6078 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6079 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6080 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 ac_check_lib_save_LIBS=$LIBS
6085 cat >conftest.$ac_ext <<_ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6092 /* Override any gcc2 internal prototype to avoid an error. */
6096 /* We use char because int might match the return type of a gcc2
6097 builtin and then its argument prototype would still apply. */
6098 char gethostbyname ();
6107 rm -f conftest.$ac_objext conftest$ac_exeext
6108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6109 (eval $ac_link) 2>conftest.er1
6111 grep -v '^ *+' conftest.er1 >conftest.err
6113 cat conftest.err >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } &&
6116 { ac_try='test -z "$ac_c_werror_flag"
6117 || test ! -s conftest.err'
6118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; } &&
6123 { ac_try='test -s conftest$ac_exeext'
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; }; then
6129 ac_cv_lib_nsl_gethostbyname=yes
6131 echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.$ac_ext >&5
6134 ac_cv_lib_nsl_gethostbyname=no
6136 rm -f conftest.err conftest.$ac_objext \
6137 conftest$ac_exeext conftest.$ac_ext
6138 LIBS=$ac_check_lib_save_LIBS
6140 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6141 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6142 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6143 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6146 if test $ac_cv_lib_nsl_gethostbyname = no; then
6147 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6148 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
6149 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6152 ac_check_lib_save_LIBS=$LIBS
6154 cat >conftest.$ac_ext <<_ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h. */
6161 /* Override any gcc2 internal prototype to avoid an error. */
6165 /* We use char because int might match the return type of a gcc2
6166 builtin and then its argument prototype would still apply. */
6167 char gethostbyname ();
6176 rm -f conftest.$ac_objext conftest$ac_exeext
6177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6178 (eval $ac_link) 2>conftest.er1
6180 grep -v '^ *+' conftest.er1 >conftest.err
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } &&
6185 { ac_try='test -z "$ac_c_werror_flag"
6186 || test ! -s conftest.err'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; } &&
6192 { ac_try='test -s conftest$ac_exeext'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6198 ac_cv_lib_bsd_gethostbyname=yes
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6203 ac_cv_lib_bsd_gethostbyname=no
6205 rm -f conftest.err conftest.$ac_objext \
6206 conftest$ac_exeext conftest.$ac_ext
6207 LIBS=$ac_check_lib_save_LIBS
6209 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6210 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6211 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6212 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6218 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6219 # socket/setsockopt and other routines are undefined under SCO ODT
6220 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6221 # on later versions), says Simon Leinen: it contains gethostby*
6222 # variants that don't use the name server (or something). -lsocket
6223 # must be given before -lnsl if both are needed. We assume that
6224 # if connect needs -lnsl, so does gethostbyname.
6225 echo "$as_me:$LINENO: checking for connect" >&5
6226 echo $ECHO_N "checking for connect... $ECHO_C" >&6
6227 if test "${ac_cv_func_connect+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 cat >conftest.$ac_ext <<_ACEOF
6233 cat confdefs.h >>conftest.$ac_ext
6234 cat >>conftest.$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6236 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6238 #define connect innocuous_connect
6240 /* System header to define __stub macros and hopefully few prototypes,
6241 which can conflict with char connect (); below.
6242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6243 <limits.h> exists even on freestanding compilers. */
6246 # include <limits.h>
6248 # include <assert.h>
6253 /* Override any gcc2 internal prototype to avoid an error. */
6258 /* We use char because int might match the return type of a gcc2
6259 builtin and then its argument prototype would still apply. */
6261 /* The GNU C library defines this for functions which it implements
6262 to always fail with ENOSYS. Some functions are actually named
6263 something starting with __ and the normal name is an alias. */
6264 #if defined (__stub_connect) || defined (__stub___connect)
6267 char (*f) () = connect;
6276 return f != connect;
6281 rm -f conftest.$ac_objext conftest$ac_exeext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6283 (eval $ac_link) 2>conftest.er1
6285 grep -v '^ *+' conftest.er1 >conftest.err
6287 cat conftest.err >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } &&
6290 { ac_try='test -z "$ac_c_werror_flag"
6291 || test ! -s conftest.err'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; } &&
6297 { ac_try='test -s conftest$ac_exeext'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6303 ac_cv_func_connect=yes
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.$ac_ext >&5
6308 ac_cv_func_connect=no
6310 rm -f conftest.err conftest.$ac_objext \
6311 conftest$ac_exeext conftest.$ac_ext
6313 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6314 echo "${ECHO_T}$ac_cv_func_connect" >&6
6316 if test $ac_cv_func_connect = no; then
6317 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6318 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6319 if test "${ac_cv_lib_socket_connect+set}" = set; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
6322 ac_check_lib_save_LIBS=$LIBS
6323 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6324 cat >conftest.$ac_ext <<_ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6331 /* Override any gcc2 internal prototype to avoid an error. */
6335 /* We use char because int might match the return type of a gcc2
6336 builtin and then its argument prototype would still apply. */
6346 rm -f conftest.$ac_objext conftest$ac_exeext
6347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6348 (eval $ac_link) 2>conftest.er1
6350 grep -v '^ *+' conftest.er1 >conftest.err
6352 cat conftest.err >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } &&
6355 { ac_try='test -z "$ac_c_werror_flag"
6356 || test ! -s conftest.err'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; } &&
6362 { ac_try='test -s conftest$ac_exeext'
6363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; }; then
6368 ac_cv_lib_socket_connect=yes
6370 echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6373 ac_cv_lib_socket_connect=no
6375 rm -f conftest.err conftest.$ac_objext \
6376 conftest$ac_exeext conftest.$ac_ext
6377 LIBS=$ac_check_lib_save_LIBS
6379 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6380 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6381 if test $ac_cv_lib_socket_connect = yes; then
6382 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6387 # Guillermo Gomez says -lposix is necessary on A/UX.
6388 echo "$as_me:$LINENO: checking for remove" >&5
6389 echo $ECHO_N "checking for remove... $ECHO_C" >&6
6390 if test "${ac_cv_func_remove+set}" = set; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6393 cat >conftest.$ac_ext <<_ACEOF
6396 cat confdefs.h >>conftest.$ac_ext
6397 cat >>conftest.$ac_ext <<_ACEOF
6398 /* end confdefs.h. */
6399 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6401 #define remove innocuous_remove
6403 /* System header to define __stub macros and hopefully few prototypes,
6404 which can conflict with char remove (); below.
6405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6406 <limits.h> exists even on freestanding compilers. */
6409 # include <limits.h>
6411 # include <assert.h>
6416 /* Override any gcc2 internal prototype to avoid an error. */
6421 /* We use char because int might match the return type of a gcc2
6422 builtin and then its argument prototype would still apply. */
6424 /* The GNU C library defines this for functions which it implements
6425 to always fail with ENOSYS. Some functions are actually named
6426 something starting with __ and the normal name is an alias. */
6427 #if defined (__stub_remove) || defined (__stub___remove)
6430 char (*f) () = remove;
6444 rm -f conftest.$ac_objext conftest$ac_exeext
6445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6446 (eval $ac_link) 2>conftest.er1
6448 grep -v '^ *+' conftest.er1 >conftest.err
6450 cat conftest.err >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); } &&
6453 { ac_try='test -z "$ac_c_werror_flag"
6454 || test ! -s conftest.err'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; } &&
6460 { ac_try='test -s conftest$ac_exeext'
6461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }; }; then
6466 ac_cv_func_remove=yes
6468 echo "$as_me: failed program was:" >&5
6469 sed 's/^/| /' conftest.$ac_ext >&5
6471 ac_cv_func_remove=no
6473 rm -f conftest.err conftest.$ac_objext \
6474 conftest$ac_exeext conftest.$ac_ext
6476 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6477 echo "${ECHO_T}$ac_cv_func_remove" >&6
6479 if test $ac_cv_func_remove = no; then
6480 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6481 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6482 if test "${ac_cv_lib_posix_remove+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 ac_check_lib_save_LIBS=$LIBS
6486 LIBS="-lposix $LIBS"
6487 cat >conftest.$ac_ext <<_ACEOF
6490 cat confdefs.h >>conftest.$ac_ext
6491 cat >>conftest.$ac_ext <<_ACEOF
6492 /* end confdefs.h. */
6494 /* Override any gcc2 internal prototype to avoid an error. */
6498 /* We use char because int might match the return type of a gcc2
6499 builtin and then its argument prototype would still apply. */
6509 rm -f conftest.$ac_objext conftest$ac_exeext
6510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6511 (eval $ac_link) 2>conftest.er1
6513 grep -v '^ *+' conftest.er1 >conftest.err
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } &&
6518 { ac_try='test -z "$ac_c_werror_flag"
6519 || test ! -s conftest.err'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; } &&
6525 { ac_try='test -s conftest$ac_exeext'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; }; then
6531 ac_cv_lib_posix_remove=yes
6533 echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6536 ac_cv_lib_posix_remove=no
6538 rm -f conftest.err conftest.$ac_objext \
6539 conftest$ac_exeext conftest.$ac_ext
6540 LIBS=$ac_check_lib_save_LIBS
6542 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6543 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6544 if test $ac_cv_lib_posix_remove = yes; then
6545 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6550 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6551 echo "$as_me:$LINENO: checking for shmat" >&5
6552 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6553 if test "${ac_cv_func_shmat+set}" = set; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 cat >conftest.$ac_ext <<_ACEOF
6559 cat confdefs.h >>conftest.$ac_ext
6560 cat >>conftest.$ac_ext <<_ACEOF
6561 /* end confdefs.h. */
6562 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6564 #define shmat innocuous_shmat
6566 /* System header to define __stub macros and hopefully few prototypes,
6567 which can conflict with char shmat (); below.
6568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6569 <limits.h> exists even on freestanding compilers. */
6572 # include <limits.h>
6574 # include <assert.h>
6579 /* Override any gcc2 internal prototype to avoid an error. */
6584 /* We use char because int might match the return type of a gcc2
6585 builtin and then its argument prototype would still apply. */
6587 /* The GNU C library defines this for functions which it implements
6588 to always fail with ENOSYS. Some functions are actually named
6589 something starting with __ and the normal name is an alias. */
6590 #if defined (__stub_shmat) || defined (__stub___shmat)
6593 char (*f) () = shmat;
6607 rm -f conftest.$ac_objext conftest$ac_exeext
6608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6609 (eval $ac_link) 2>conftest.er1
6611 grep -v '^ *+' conftest.er1 >conftest.err
6613 cat conftest.err >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } &&
6616 { ac_try='test -z "$ac_c_werror_flag"
6617 || test ! -s conftest.err'
6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; } &&
6623 { ac_try='test -s conftest$ac_exeext'
6624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); }; }; then
6629 ac_cv_func_shmat=yes
6631 echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6636 rm -f conftest.err conftest.$ac_objext \
6637 conftest$ac_exeext conftest.$ac_ext
6639 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6640 echo "${ECHO_T}$ac_cv_func_shmat" >&6
6642 if test $ac_cv_func_shmat = no; then
6643 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6644 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6645 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 ac_check_lib_save_LIBS=$LIBS
6650 cat >conftest.$ac_ext <<_ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6657 /* Override any gcc2 internal prototype to avoid an error. */
6661 /* We use char because int might match the return type of a gcc2
6662 builtin and then its argument prototype would still apply. */
6672 rm -f conftest.$ac_objext conftest$ac_exeext
6673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6674 (eval $ac_link) 2>conftest.er1
6676 grep -v '^ *+' conftest.er1 >conftest.err
6678 cat conftest.err >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } &&
6681 { ac_try='test -z "$ac_c_werror_flag"
6682 || test ! -s conftest.err'
6683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); }; } &&
6688 { ac_try='test -s conftest$ac_exeext'
6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); }; }; then
6694 ac_cv_lib_ipc_shmat=yes
6696 echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6699 ac_cv_lib_ipc_shmat=no
6701 rm -f conftest.err conftest.$ac_objext \
6702 conftest$ac_exeext conftest.$ac_ext
6703 LIBS=$ac_check_lib_save_LIBS
6705 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6706 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6707 if test $ac_cv_lib_ipc_shmat = yes; then
6708 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6714 # Check for libraries that X11R6 Xt/Xaw programs need.
6715 ac_save_LDFLAGS=$LDFLAGS
6716 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6717 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6718 # check for ICE first), but we must link in the order -lSM -lICE or
6719 # we get undefined symbols. So assume we have SM if we have ICE.
6720 # These have to be linked with before -lX11, unlike the other
6721 # libraries we check for below, so use a different variable.
6722 # John Interrante, Karl Berry
6723 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6724 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6725 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 ac_check_lib_save_LIBS=$LIBS
6729 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6730 cat >conftest.$ac_ext <<_ACEOF
6733 cat confdefs.h >>conftest.$ac_ext
6734 cat >>conftest.$ac_ext <<_ACEOF
6735 /* end confdefs.h. */
6737 /* Override any gcc2 internal prototype to avoid an error. */
6741 /* We use char because int might match the return type of a gcc2
6742 builtin and then its argument prototype would still apply. */
6743 char IceConnectionNumber ();
6747 IceConnectionNumber ();
6752 rm -f conftest.$ac_objext conftest$ac_exeext
6753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6754 (eval $ac_link) 2>conftest.er1
6756 grep -v '^ *+' conftest.er1 >conftest.err
6758 cat conftest.err >&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } &&
6761 { ac_try='test -z "$ac_c_werror_flag"
6762 || test ! -s conftest.err'
6763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); }; } &&
6768 { ac_try='test -s conftest$ac_exeext'
6769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); }; }; then
6774 ac_cv_lib_ICE_IceConnectionNumber=yes
6776 echo "$as_me: failed program was:" >&5
6777 sed 's/^/| /' conftest.$ac_ext >&5
6779 ac_cv_lib_ICE_IceConnectionNumber=no
6781 rm -f conftest.err conftest.$ac_objext \
6782 conftest$ac_exeext conftest.$ac_ext
6783 LIBS=$ac_check_lib_save_LIBS
6785 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6786 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6787 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6788 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6791 LDFLAGS=$ac_save_LDFLAGS
6796 if test "$have_x" != yes; then
6797 { { echo "$as_me:$LINENO: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&5
6798 echo "$as_me: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&2;}
6799 { (exit 1); exit 1; }; }
6803 echo "$as_me:$LINENO: checking for X app-defaults directory" >&5
6804 echo $ECHO_N "checking for X app-defaults directory... $ECHO_C" >&6
6805 if test "${ac_cv_x_app_defaults+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6810 if mkdir conftestdir; then
6811 cd conftestdir 2>/dev/null
6812 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6813 cat > Imakefile <<'EOF'
6815 @echo 'ac_x_app_defaults="${XAPPLOADDIR}"'
6817 if (xmkmf) >/dev/null 2>&1 && test -f Makefile; then
6818 # GNU make sometimes prints "make[1]: Entering...", which'd confuse us.
6819 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6824 if test x"$ac_x_app_defaults" = x; then
6826 # Look for the directory under a standard set of common directories.
6827 # Check X11 before X11Rn because it's often a symlink to the current release.
6829 /usr/X11/lib/app-defaults \
6830 /usr/X11R6/lib/app-defaults \
6831 /usr/X11R6/lib/X11/app-defaults \
6832 /usr/X11R5/lib/app-defaults \
6833 /usr/X11R5/lib/X11/app-defaults \
6834 /usr/X11R4/lib/app-defaults \
6835 /usr/X11R4/lib/X11/app-defaults \
6837 /usr/lib/X11/app-defaults \
6838 /usr/lib/X11R6/app-defaults \
6839 /usr/lib/X11R5/app-defaults \
6840 /usr/lib/X11R4/app-defaults \
6842 /usr/local/X11/lib/app-defaults \
6843 /usr/local/X11R6/lib/app-defaults \
6844 /usr/local/X11R5/lib/app-defaults \
6845 /usr/local/X11R4/lib/app-defaults \
6847 /usr/local/lib/X11/app-defaults \
6848 /usr/local/lib/X11R6/app-defaults \
6849 /usr/local/lib/X11R6/X11/app-defaults \
6850 /usr/local/lib/X11R5/app-defaults \
6851 /usr/local/lib/X11R5/X11/app-defaults \
6852 /usr/local/lib/X11R4/app-defaults \
6853 /usr/local/lib/X11R4/X11/app-defaults \
6855 /usr/X386/lib/X11/app-defaults \
6856 /usr/x386/lib/X11/app-defaults \
6857 /usr/XFree86/lib/X11/app-defaults \
6859 /usr/lib/X11/app-defaults \
6860 /usr/local/lib/X11/app-defaults \
6861 /usr/unsupported/lib/X11/app-defaults \
6862 /usr/athena/lib/X11/app-defaults \
6863 /usr/local/x11r5/lib/X11/app-defaults \
6864 /usr/lpp/Xamples/lib/X11/app-defaults \
6865 /lib/usr/lib/X11/app-defaults \
6867 /usr/openwin/lib/app-defaults \
6868 /usr/openwin/lib/X11/app-defaults \
6869 /usr/openwin/share/lib/app-defaults \
6870 /usr/openwin/share/lib/X11/app-defaults \
6872 /X11R6/lib/app-defaults \
6873 /X11R5/lib/app-defaults \
6874 /X11R4/lib/app-defaults \
6877 if test -d "$ac_dir"; then
6878 ac_x_app_defaults=$ac_dir
6884 if test x"$ac_x_app_defaults" = x; then
6885 ac_cv_x_app_defaults="/usr/lib/X11/app-defaults"
6887 # Record where we found app-defaults for the cache.
6888 ac_cv_x_app_defaults="$ac_x_app_defaults"
6891 echo "$as_me:$LINENO: result: $ac_cv_x_app_defaults" >&5
6892 echo "${ECHO_T}$ac_cv_x_app_defaults" >&6
6893 eval ac_x_app_defaults="$ac_cv_x_app_defaults"
6897 # The following arcana was gleaned from conversations with
6898 # Eric Schwartz <erics@col.hp.com>:
6900 # On HPUX 10.x, the parts of X that HP considers "standard" live in
6901 # /usr/{include,lib}/X11R6/. The parts that HP doesn't consider
6902 # "standard", notably, Xaw and Xmu, live in /usr/contrib/X11R6/.
6903 # Yet /usr/contrib/X11R6/ comes preinstalled on all HPUX systems.
6904 # Also, there are symlinks from /usr/include/ and /usr/lib/ into
6905 # /usr/{include,lib}/X11R6/, so that (if you don't use Xmu at all)
6906 # you don't need any -I or -L arguments.
6908 # On HPUX 9.x, /usr/{include,lib}/X11R5/ and /usr/contrib/X11R5/
6909 # are the same division as 10.x. However, there are no symlinks to
6910 # the X stuff from /usr/include/ and /usr/lib/, so -I and -L
6911 # arguments are always necessary.
6913 # However, X11R6 was available on HPUX 9.x as a patch: if that
6914 # patch was installed, then all of X11R6 went in to
6915 # /usr/contrib/X11R6/ (there was no /usr/{include,lib}/X11R6/.)
6917 # HPUX 8.x was the same as 9.x, but was X11R4 instead (I don't know
6918 # whether R5 was available as a patch; R6 undoubtedly was not.)
6920 # So. We try and use the highest numbered pair of
6921 # /usr/{include,lib}/X11R?/ and /usr/contrib/X11R?/{include,lib}/
6922 # that are available. We do not mix and match different versions
6925 # Question I still don't know the answer to: (do you?)
6927 # * On HPUX 9.x, where /usr/include/X11R5/ was standard, and
6928 # /usr/contrib/X11R6/ could be installed as a patch, what was in
6929 # that contrib directory? Did it contain so-called "standard"
6930 # X11R6, or did it include Xaw and Xmu as well? If the former,
6931 # where did one find Xaw and Xmu on 9.x R6 systems? Would this
6932 # be a situation where one had to reach into the R5 headers and
6933 # libs to find Xmu? That is, must both R6 and R5 directories
6934 # be on the -I and -L lists in that case?
6936 for version in X11R6 X11R5 X11R4 ; do
6937 # if either pair of directories exists...
6938 if test -d /usr/include/$version || test -d /usr/contrib/$version/include
6940 # if contrib exists, use it...
6941 if test -d /usr/contrib/$version/include ; then
6942 X_CFLAGS="$X_CFLAGS -I/usr/contrib/$version/include"
6943 X_LIBS="$X_LIBS -L/usr/contrib/$version/lib"
6945 # if the "standard" one exists, use it.
6946 if test -d /usr/include/$version ; then
6947 X_CFLAGS="$X_CFLAGS -I/usr/include/$version"
6948 X_LIBS="$X_LIBS -L/usr/lib/$version"
6950 # since at least one of the pair exists, go no farther.
6955 # Now find Motif. Thanks for not making xmkmf find this by
6956 # default, you losers.
6958 if test -d /usr/include/Motif2.1 ; then
6959 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif2.1"
6960 X_LIBS="$X_LIBS -L/usr/lib/Motif2.1"
6961 elif test -d /usr/include/Motif1.2 ; then
6962 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.2"
6963 X_LIBS="$X_LIBS -L/usr/lib/Motif1.2"
6964 elif test -d /usr/include/Motif1.1 ; then
6965 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.1"
6966 X_LIBS="$X_LIBS -L/usr/lib/Motif1.1"
6969 # Now let's check for the pseudo-standard locations for OpenGL and XPM.
6971 if test -d /opt/graphics/OpenGL/include ; then
6972 # HP-UX 10.20 puts it here
6973 X_CFLAGS="-I/opt/graphics/OpenGL/include $X_CFLAGS"
6974 X_LIBS="-L/opt/graphics/OpenGL/lib $X_LIBS"
6975 elif test -d /opt/Mesa/lib ; then
6976 X_CFLAGS="-I/opt/Mesa/include $X_CFLAGS"
6977 X_LIBS="-L/opt/Mesa/lib $X_LIBS"
6981 if test -d /opt/xpm/lib/X11 ; then
6982 X_CFLAGS="-I/opt/xpm/include $X_CFLAGS"
6983 X_LIBS="-L/opt/xpm/lib/X11 $X_LIBS"
6986 # On HPUX, default to installing in /opt/xscreensaver/ instead of
6987 # in /usr/local/, unless there is already an xscreensaver in
6988 # /usr/local/bin/. This can be overridden with the --prefix arg
6989 # to configure. I'm not sure this is the right thing to do, but
6990 # Richard Lloyd says so...
6992 if test \! -x /usr/local/bin/xscreensaver ; then
6993 ac_default_prefix=/opt/xscreensaver
6999 # Thanks for not making xmkmf find this by default, pinheads.
7000 # And thanks for moving things around again, too. Is this
7001 # really the standard location now? What happened to the
7002 # joke that this kind of thing went in /opt?
7003 # cthomp says "answer: CDE (Common Disorganized Environment)"
7005 if test -f /usr/dt/include/Xm/Xm.h ; then
7006 X_CFLAGS="$X_CFLAGS -I/usr/dt/include"
7007 MOTIF_LIBS="$MOTIF_LIBS -L/usr/dt/lib -R/usr/dt/lib"
7009 # Some versions of Slowlaris Motif require -lgen. But not all. Why?
7010 echo "$as_me:$LINENO: checking for regcmp in -lgen" >&5
7011 echo $ECHO_N "checking for regcmp in -lgen... $ECHO_C" >&6
7012 if test "${ac_cv_lib_gen_regcmp+set}" = set; then
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
7015 ac_check_lib_save_LIBS=$LIBS
7017 cat >conftest.$ac_ext <<_ACEOF
7020 cat confdefs.h >>conftest.$ac_ext
7021 cat >>conftest.$ac_ext <<_ACEOF
7022 /* end confdefs.h. */
7024 /* Override any gcc2 internal prototype to avoid an error. */
7028 /* We use char because int might match the return type of a gcc2
7029 builtin and then its argument prototype would still apply. */
7039 rm -f conftest.$ac_objext conftest$ac_exeext
7040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7041 (eval $ac_link) 2>conftest.er1
7043 grep -v '^ *+' conftest.er1 >conftest.err
7045 cat conftest.err >&5
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); } &&
7048 { ac_try='test -z "$ac_c_werror_flag"
7049 || test ! -s conftest.err'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; } &&
7055 { ac_try='test -s conftest$ac_exeext'
7056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); }; }; then
7061 ac_cv_lib_gen_regcmp=yes
7063 echo "$as_me: failed program was:" >&5
7064 sed 's/^/| /' conftest.$ac_ext >&5
7066 ac_cv_lib_gen_regcmp=no
7068 rm -f conftest.err conftest.$ac_objext \
7069 conftest$ac_exeext conftest.$ac_ext
7070 LIBS=$ac_check_lib_save_LIBS
7072 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_regcmp" >&5
7073 echo "${ECHO_T}$ac_cv_lib_gen_regcmp" >&6
7074 if test $ac_cv_lib_gen_regcmp = yes; then
7075 MOTIF_LIBS="$MOTIF_LIBS -lgen"
7083 # On MacOS X (10.x with "fink"), many things are under /sw/.
7085 if test -d /sw/include ; then
7086 X_CFLAGS="-I/sw/include $X_CFLAGS"
7087 X_LIBS="-L/sw/lib $X_LIBS"
7091 echo "$as_me:$LINENO: checking for XPointer" >&5
7092 echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
7093 if test "${ac_cv_xpointer+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7097 ac_save_CPPFLAGS="$CPPFLAGS"
7098 if test \! -z "$includedir" ; then
7099 CPPFLAGS="$CPPFLAGS -I$includedir"
7101 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7102 cat >conftest.$ac_ext <<_ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h. */
7108 #include <X11/Xlib.h>
7112 XPointer foo = (XPointer) 0;
7117 rm -f conftest.$ac_objext
7118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7119 (eval $ac_compile) 2>conftest.er1
7121 grep -v '^ *+' conftest.er1 >conftest.err
7123 cat conftest.err >&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); } &&
7126 { ac_try='test -z "$ac_c_werror_flag"
7127 || test ! -s conftest.err'
7128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); }; } &&
7133 { ac_try='test -s conftest.$ac_objext'
7134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); }; }; then
7141 echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7147 CPPFLAGS="$ac_save_CPPFLAGS"
7149 echo "$as_me:$LINENO: result: $ac_cv_xpointer" >&5
7150 echo "${ECHO_T}$ac_cv_xpointer" >&6
7151 if test "$ac_cv_xpointer" != yes; then
7152 cat >>confdefs.h <<\_ACEOF
7153 #define XPointer char*
7158 echo "$as_me:$LINENO: checking whether this is MacOS X" >&5
7159 echo $ECHO_N "checking whether this is MacOS X... $ECHO_C" >&6
7166 echo "$as_me:$LINENO: result: $ac_macosx" >&5
7167 echo "${ECHO_T}$ac_macosx" >&6
7171 ###############################################################################
7175 ###############################################################################
7180 echo "$as_me:$LINENO: checking for intltool >= " >&5
7181 echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6
7183 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
7184 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }' < intltool-update.in`
7186 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < intltool-update.in`
7189 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
7190 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
7191 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
7193 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&5
7194 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&6
7199 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
7200 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
7201 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -k -u -c $(top_builddir)/po/.intltool-merge-cache'
7202 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -p'
7203 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
7204 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -u -c $(top_builddir)/po/.intltool-merge-cache'
7205 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
7206 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
7207 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
7208 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
7209 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
7223 # Use the tools built into the package, not the ones that are installed.
7225 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
7226 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
7227 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
7233 # Extract the first word of "perl", so it can be a program name with args.
7234 set dummy perl; ac_word=$2
7235 echo "$as_me:$LINENO: checking for $ac_word" >&5
7236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7237 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 case $INTLTOOL_PERL in
7242 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7252 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
7253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
7264 if test -n "$INTLTOOL_PERL"; then
7265 echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
7266 echo "${ECHO_T}$INTLTOOL_PERL" >&6
7268 echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6
7272 if test -z "$INTLTOOL_PERL"; then
7273 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
7274 echo "$as_me: error: perl not found; required for intltool" >&2;}
7275 { (exit 1); exit 1; }; }
7277 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
7278 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
7279 echo "$as_me: error: perl 5.x required for intltool" >&2;}
7280 { (exit 1); exit 1; }; }
7283 # Remove file type tags (using []) from po/POTFILES.
7291 # Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
7293 ac_config_commands="$ac_config_commands default-1"
7297 GETTEXT_PACKAGE=xscreensaver
7299 cat >>confdefs.h <<_ACEOF
7300 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
7304 cat >>confdefs.h <<_ACEOF
7305 #define PACKAGE "$GETTEXT_PACKAGE"
7310 ALL_LINGUAS="ca da de es et fi fr hu it ja ko nb nl no pl pt pt_BR ru sk sv vi wa zh_CN zh_TW"
7311 if test -n "$ac_tool_prefix"; then
7312 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7313 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7314 echo "$as_me:$LINENO: checking for $ac_word" >&5
7315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7316 if test "${ac_cv_prog_RANLIB+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7319 if test -n "$RANLIB"; then
7320 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 test -z "$as_dir" && as_dir=.
7327 for ac_exec_ext in '' $ac_executable_extensions; do
7328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7329 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7338 RANLIB=$ac_cv_prog_RANLIB
7339 if test -n "$RANLIB"; then
7340 echo "$as_me:$LINENO: result: $RANLIB" >&5
7341 echo "${ECHO_T}$RANLIB" >&6
7343 echo "$as_me:$LINENO: result: no" >&5
7344 echo "${ECHO_T}no" >&6
7348 if test -z "$ac_cv_prog_RANLIB"; then
7349 ac_ct_RANLIB=$RANLIB
7350 # Extract the first word of "ranlib", so it can be a program name with args.
7351 set dummy ranlib; ac_word=$2
7352 echo "$as_me:$LINENO: checking for $ac_word" >&5
7353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7354 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7357 if test -n "$ac_ct_RANLIB"; then
7358 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7367 ac_cv_prog_ac_ct_RANLIB="ranlib"
7368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7377 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7378 if test -n "$ac_ct_RANLIB"; then
7379 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7380 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7382 echo "$as_me:$LINENO: result: no" >&5
7383 echo "${ECHO_T}no" >&6
7386 RANLIB=$ac_ct_RANLIB
7388 RANLIB="$ac_cv_prog_RANLIB"
7391 echo "$as_me:$LINENO: checking for off_t" >&5
7392 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7393 if test "${ac_cv_type_off_t+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
7396 cat >conftest.$ac_ext <<_ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h. */
7402 $ac_includes_default
7414 rm -f conftest.$ac_objext
7415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7416 (eval $ac_compile) 2>conftest.er1
7418 grep -v '^ *+' conftest.er1 >conftest.err
7420 cat conftest.err >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } &&
7423 { ac_try='test -z "$ac_c_werror_flag"
7424 || test ! -s conftest.err'
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; } &&
7430 { ac_try='test -s conftest.$ac_objext'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; }; then
7436 ac_cv_type_off_t=yes
7438 echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.$ac_ext >&5
7443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7445 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7446 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7447 if test $ac_cv_type_off_t = yes; then
7451 cat >>confdefs.h <<_ACEOF
7457 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7458 # for constant arguments. Useless!
7459 echo "$as_me:$LINENO: checking for working alloca.h" >&5
7460 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7461 if test "${ac_cv_working_alloca_h+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 cat >conftest.$ac_ext <<_ACEOF
7467 cat confdefs.h >>conftest.$ac_ext
7468 cat >>conftest.$ac_ext <<_ACEOF
7469 /* end confdefs.h. */
7474 char *p = (char *) alloca (2 * sizeof (int));
7479 rm -f conftest.$ac_objext conftest$ac_exeext
7480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7481 (eval $ac_link) 2>conftest.er1
7483 grep -v '^ *+' conftest.er1 >conftest.err
7485 cat conftest.err >&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); } &&
7488 { ac_try='test -z "$ac_c_werror_flag"
7489 || test ! -s conftest.err'
7490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); }; } &&
7495 { ac_try='test -s conftest$ac_exeext'
7496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); }; }; then
7501 ac_cv_working_alloca_h=yes
7503 echo "$as_me: failed program was:" >&5
7504 sed 's/^/| /' conftest.$ac_ext >&5
7506 ac_cv_working_alloca_h=no
7508 rm -f conftest.err conftest.$ac_objext \
7509 conftest$ac_exeext conftest.$ac_ext
7511 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7512 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7513 if test $ac_cv_working_alloca_h = yes; then
7515 cat >>confdefs.h <<\_ACEOF
7516 #define HAVE_ALLOCA_H 1
7521 echo "$as_me:$LINENO: checking for alloca" >&5
7522 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7523 if test "${ac_cv_func_alloca_works+set}" = set; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
7526 cat >conftest.$ac_ext <<_ACEOF
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
7531 /* end confdefs.h. */
7533 # define alloca __builtin_alloca
7536 # include <malloc.h>
7537 # define alloca _alloca
7540 # include <alloca.h>
7545 # ifndef alloca /* predefined by HP cc +Olibcalls */
7556 char *p = (char *) alloca (1);
7561 rm -f conftest.$ac_objext conftest$ac_exeext
7562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7563 (eval $ac_link) 2>conftest.er1
7565 grep -v '^ *+' conftest.er1 >conftest.err
7567 cat conftest.err >&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } &&
7570 { ac_try='test -z "$ac_c_werror_flag"
7571 || test ! -s conftest.err'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; } &&
7577 { ac_try='test -s conftest$ac_exeext'
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; }; then
7583 ac_cv_func_alloca_works=yes
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7588 ac_cv_func_alloca_works=no
7590 rm -f conftest.err conftest.$ac_objext \
7591 conftest$ac_exeext conftest.$ac_ext
7593 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7594 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7596 if test $ac_cv_func_alloca_works = yes; then
7598 cat >>confdefs.h <<\_ACEOF
7599 #define HAVE_ALLOCA 1
7603 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7604 # that cause trouble. Some versions do not even contain alloca or
7605 # contain a buggy version. If you still want to use their alloca,
7606 # use ar to extract alloca.o from them instead of compiling alloca.c.
7608 ALLOCA=alloca.$ac_objext
7610 cat >>confdefs.h <<\_ACEOF
7615 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7616 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7617 if test "${ac_cv_os_cray+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 cat >conftest.$ac_ext <<_ACEOF
7623 cat confdefs.h >>conftest.$ac_ext
7624 cat >>conftest.$ac_ext <<_ACEOF
7625 /* end confdefs.h. */
7626 #if defined(CRAY) && ! defined(CRAY2)
7633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7634 $EGREP "webecray" >/dev/null 2>&1; then
7642 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7643 echo "${ECHO_T}$ac_cv_os_cray" >&6
7644 if test $ac_cv_os_cray = yes; then
7645 for ac_func in _getb67 GETB67 getb67; do
7646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7647 echo "$as_me:$LINENO: checking for $ac_func" >&5
7648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7649 if eval "test \"\${$as_ac_var+set}\" = set"; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 cat >conftest.$ac_ext <<_ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7660 #define $ac_func innocuous_$ac_func
7662 /* System header to define __stub macros and hopefully few prototypes,
7663 which can conflict with char $ac_func (); below.
7664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7665 <limits.h> exists even on freestanding compilers. */
7668 # include <limits.h>
7670 # include <assert.h>
7675 /* Override any gcc2 internal prototype to avoid an error. */
7680 /* We use char because int might match the return type of a gcc2
7681 builtin and then its argument prototype would still apply. */
7683 /* The GNU C library defines this for functions which it implements
7684 to always fail with ENOSYS. Some functions are actually named
7685 something starting with __ and the normal name is an alias. */
7686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7689 char (*f) () = $ac_func;
7698 return f != $ac_func;
7703 rm -f conftest.$ac_objext conftest$ac_exeext
7704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7705 (eval $ac_link) 2>conftest.er1
7707 grep -v '^ *+' conftest.er1 >conftest.err
7709 cat conftest.err >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } &&
7712 { ac_try='test -z "$ac_c_werror_flag"
7713 || test ! -s conftest.err'
7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); }; } &&
7719 { ac_try='test -s conftest$ac_exeext'
7720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); }; }; then
7725 eval "$as_ac_var=yes"
7727 echo "$as_me: failed program was:" >&5
7728 sed 's/^/| /' conftest.$ac_ext >&5
7730 eval "$as_ac_var=no"
7732 rm -f conftest.err conftest.$ac_objext \
7733 conftest$ac_exeext conftest.$ac_ext
7735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7736 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7737 if test `eval echo '${'$as_ac_var'}'` = yes; then
7739 cat >>confdefs.h <<_ACEOF
7740 #define CRAY_STACKSEG_END $ac_func
7749 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7750 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7751 if test "${ac_cv_c_stack_direction+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 if test "$cross_compiling" = yes; then
7755 ac_cv_c_stack_direction=0
7757 cat >conftest.$ac_ext <<_ACEOF
7760 cat confdefs.h >>conftest.$ac_ext
7761 cat >>conftest.$ac_ext <<_ACEOF
7762 /* end confdefs.h. */
7764 find_stack_direction ()
7766 static char *addr = 0;
7771 return find_stack_direction ();
7774 return (&dummy > addr) ? 1 : -1;
7780 exit (find_stack_direction () < 0);
7783 rm -f conftest$ac_exeext
7784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7785 (eval $ac_link) 2>&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; }; then
7794 ac_cv_c_stack_direction=1
7796 echo "$as_me: program exited with status $ac_status" >&5
7797 echo "$as_me: failed program was:" >&5
7798 sed 's/^/| /' conftest.$ac_ext >&5
7801 ac_cv_c_stack_direction=-1
7803 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7806 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7807 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7809 cat >>confdefs.h <<_ACEOF
7810 #define STACK_DIRECTION $ac_cv_c_stack_direction
7818 for ac_header in stdlib.h unistd.h
7820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7822 echo "$as_me:$LINENO: checking for $ac_header" >&5
7823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7830 # Is the header compilable?
7831 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7833 cat >conftest.$ac_ext <<_ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h. */
7839 $ac_includes_default
7840 #include <$ac_header>
7842 rm -f conftest.$ac_objext
7843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7844 (eval $ac_compile) 2>conftest.er1
7846 grep -v '^ *+' conftest.er1 >conftest.err
7848 cat conftest.err >&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } &&
7851 { ac_try='test -z "$ac_c_werror_flag"
7852 || test ! -s conftest.err'
7853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); }; } &&
7858 { ac_try='test -s conftest.$ac_objext'
7859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); }; }; then
7864 ac_header_compiler=yes
7866 echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.$ac_ext >&5
7869 ac_header_compiler=no
7871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7872 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7873 echo "${ECHO_T}$ac_header_compiler" >&6
7875 # Is the header present?
7876 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7878 cat >conftest.$ac_ext <<_ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h. */
7884 #include <$ac_header>
7886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7889 grep -v '^ *+' conftest.er1 >conftest.err
7891 cat conftest.err >&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } >/dev/null; then
7894 if test -s conftest.err; then
7895 ac_cpp_err=$ac_c_preproc_warn_flag
7896 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7903 if test -z "$ac_cpp_err"; then
7904 ac_header_preproc=yes
7906 echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.$ac_ext >&5
7909 ac_header_preproc=no
7911 rm -f conftest.err conftest.$ac_ext
7912 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7913 echo "${ECHO_T}$ac_header_preproc" >&6
7915 # So? What about this header?
7916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7922 ac_header_preproc=yes
7925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7932 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7939 ## ------------------------------------------ ##
7940 ## Report this to the AC_PACKAGE_NAME lists. ##
7941 ## ------------------------------------------ ##
7944 sed "s/^/$as_me: WARNING: /" >&2
7947 echo "$as_me:$LINENO: checking for $ac_header" >&5
7948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 eval "$as_ac_Header=\$ac_header_preproc"
7954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7959 cat >>confdefs.h <<_ACEOF
7960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7968 for ac_func in getpagesize
7970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7971 echo "$as_me:$LINENO: checking for $ac_func" >&5
7972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7973 if eval "test \"\${$as_ac_var+set}\" = set"; then
7974 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 cat >conftest.$ac_ext <<_ACEOF
7979 cat confdefs.h >>conftest.$ac_ext
7980 cat >>conftest.$ac_ext <<_ACEOF
7981 /* end confdefs.h. */
7982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7984 #define $ac_func innocuous_$ac_func
7986 /* System header to define __stub macros and hopefully few prototypes,
7987 which can conflict with char $ac_func (); below.
7988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7989 <limits.h> exists even on freestanding compilers. */
7992 # include <limits.h>
7994 # include <assert.h>
7999 /* Override any gcc2 internal prototype to avoid an error. */
8004 /* We use char because int might match the return type of a gcc2
8005 builtin and then its argument prototype would still apply. */
8007 /* The GNU C library defines this for functions which it implements
8008 to always fail with ENOSYS. Some functions are actually named
8009 something starting with __ and the normal name is an alias. */
8010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8013 char (*f) () = $ac_func;
8022 return f != $ac_func;
8027 rm -f conftest.$ac_objext conftest$ac_exeext
8028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8029 (eval $ac_link) 2>conftest.er1
8031 grep -v '^ *+' conftest.er1 >conftest.err
8033 cat conftest.err >&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } &&
8036 { ac_try='test -z "$ac_c_werror_flag"
8037 || test ! -s conftest.err'
8038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); }; } &&
8043 { ac_try='test -s conftest$ac_exeext'
8044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); }; }; then
8049 eval "$as_ac_var=yes"
8051 echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8054 eval "$as_ac_var=no"
8056 rm -f conftest.err conftest.$ac_objext \
8057 conftest$ac_exeext conftest.$ac_ext
8059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8061 if test `eval echo '${'$as_ac_var'}'` = yes; then
8062 cat >>confdefs.h <<_ACEOF
8063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8069 echo "$as_me:$LINENO: checking for working mmap" >&5
8070 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8071 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8074 if test "$cross_compiling" = yes; then
8075 ac_cv_func_mmap_fixed_mapped=no
8077 cat >conftest.$ac_ext <<_ACEOF
8080 cat confdefs.h >>conftest.$ac_ext
8081 cat >>conftest.$ac_ext <<_ACEOF
8082 /* end confdefs.h. */
8083 $ac_includes_default
8084 /* malloc might have been renamed as rpl_malloc. */
8087 /* Thanks to Mike Haertel and Jim Avera for this test.
8088 Here is a matrix of mmap possibilities:
8089 mmap private not fixed
8090 mmap private fixed at somewhere currently unmapped
8091 mmap private fixed at somewhere already mapped
8092 mmap shared not fixed
8093 mmap shared fixed at somewhere currently unmapped
8094 mmap shared fixed at somewhere already mapped
8095 For private mappings, we should verify that changes cannot be read()
8096 back from the file, nor mmap's back from the file at a different
8097 address. (There have been systems where private was not correctly
8098 implemented like the infamous i386 svr4.0, and systems where the
8099 VM page cache was not coherent with the file system buffer cache
8100 like early versions of FreeBSD and possibly contemporary NetBSD.)
8101 For shared mappings, we should conversely verify that changes get
8102 propagated back to all the places they're supposed to be.
8104 Grep wants private fixed already mapped.
8105 The main things grep needs to know about mmap are:
8106 * does it exist and is it safe to write into the mmap'd area
8107 * how to use it (BSD variants) */
8110 #include <sys/mman.h>
8112 #if !STDC_HEADERS && !HAVE_STDLIB_H
8116 /* This mess was copied from the GNU getpagesize.h. */
8117 #if !HAVE_GETPAGESIZE
8118 /* Assume that all systems that can run configure have sys/param.h. */
8119 # if !HAVE_SYS_PARAM_H
8120 # define HAVE_SYS_PARAM_H 1
8123 # ifdef _SC_PAGESIZE
8124 # define getpagesize() sysconf(_SC_PAGESIZE)
8125 # else /* no _SC_PAGESIZE */
8126 # if HAVE_SYS_PARAM_H
8127 # include <sys/param.h>
8128 # ifdef EXEC_PAGESIZE
8129 # define getpagesize() EXEC_PAGESIZE
8130 # else /* no EXEC_PAGESIZE */
8132 # define getpagesize() NBPG * CLSIZE
8135 # endif /* no CLSIZE */
8136 # else /* no NBPG */
8138 # define getpagesize() NBPC
8139 # else /* no NBPC */
8141 # define getpagesize() PAGESIZE
8142 # endif /* PAGESIZE */
8143 # endif /* no NBPC */
8144 # endif /* no NBPG */
8145 # endif /* no EXEC_PAGESIZE */
8146 # else /* no HAVE_SYS_PARAM_H */
8147 # define getpagesize() 8192 /* punt totally */
8148 # endif /* no HAVE_SYS_PARAM_H */
8149 # endif /* no _SC_PAGESIZE */
8151 #endif /* no HAVE_GETPAGESIZE */
8156 char *data, *data2, *data3;
8160 pagesize = getpagesize ();
8162 /* First, make a file with some known garbage in it. */
8163 data = (char *) malloc (pagesize);
8166 for (i = 0; i < pagesize; ++i)
8167 *(data + i) = rand ();
8169 fd = creat ("conftest.mmap", 0600);
8172 if (write (fd, data, pagesize) != pagesize)
8176 /* Next, try to mmap the file at a fixed address which already has
8177 something else allocated at it. If we can, also make sure that
8178 we see the same garbage. */
8179 fd = open ("conftest.mmap", O_RDWR);
8182 data2 = (char *) malloc (2 * pagesize);
8185 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8186 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8187 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8189 for (i = 0; i < pagesize; ++i)
8190 if (*(data + i) != *(data2 + i))
8193 /* Finally, make sure that changes to the mapped area do not
8194 percolate back to the file as seen by read(). (This is a bug on
8195 some variants of i386 svr4.0.) */
8196 for (i = 0; i < pagesize; ++i)
8197 *(data2 + i) = *(data2 + i) + 1;
8198 data3 = (char *) malloc (pagesize);
8201 if (read (fd, data3, pagesize) != pagesize)
8203 for (i = 0; i < pagesize; ++i)
8204 if (*(data + i) != *(data3 + i))
8210 rm -f conftest$ac_exeext
8211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8212 (eval $ac_link) 2>&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); }; }; then
8221 ac_cv_func_mmap_fixed_mapped=yes
8223 echo "$as_me: program exited with status $ac_status" >&5
8224 echo "$as_me: failed program was:" >&5
8225 sed 's/^/| /' conftest.$ac_ext >&5
8228 ac_cv_func_mmap_fixed_mapped=no
8230 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8233 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8234 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8235 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8237 cat >>confdefs.h <<\_ACEOF
8253 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
8254 unistd.h sys/param.h
8256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8258 echo "$as_me:$LINENO: checking for $ac_header" >&5
8259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8266 # Is the header compilable?
8267 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8269 cat >conftest.$ac_ext <<_ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8275 $ac_includes_default
8276 #include <$ac_header>
8278 rm -f conftest.$ac_objext
8279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8280 (eval $ac_compile) 2>conftest.er1
8282 grep -v '^ *+' conftest.er1 >conftest.err
8284 cat conftest.err >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } &&
8287 { ac_try='test -z "$ac_c_werror_flag"
8288 || test ! -s conftest.err'
8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; } &&
8294 { ac_try='test -s conftest.$ac_objext'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; }; then
8300 ac_header_compiler=yes
8302 echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.$ac_ext >&5
8305 ac_header_compiler=no
8307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8309 echo "${ECHO_T}$ac_header_compiler" >&6
8311 # Is the header present?
8312 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8314 cat >conftest.$ac_ext <<_ACEOF
8317 cat confdefs.h >>conftest.$ac_ext
8318 cat >>conftest.$ac_ext <<_ACEOF
8319 /* end confdefs.h. */
8320 #include <$ac_header>
8322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8325 grep -v '^ *+' conftest.er1 >conftest.err
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } >/dev/null; then
8330 if test -s conftest.err; then
8331 ac_cpp_err=$ac_c_preproc_warn_flag
8332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8339 if test -z "$ac_cpp_err"; then
8340 ac_header_preproc=yes
8342 echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.$ac_ext >&5
8345 ac_header_preproc=no
8347 rm -f conftest.err conftest.$ac_ext
8348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8349 echo "${ECHO_T}$ac_header_preproc" >&6
8351 # So? What about this header?
8352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8358 ac_header_preproc=yes
8361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8364 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8368 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8375 ## ------------------------------------------ ##
8376 ## Report this to the AC_PACKAGE_NAME lists. ##
8377 ## ------------------------------------------ ##
8380 sed "s/^/$as_me: WARNING: /" >&2
8383 echo "$as_me:$LINENO: checking for $ac_header" >&5
8384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8388 eval "$as_ac_Header=\$ac_header_preproc"
8390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8395 cat >>confdefs.h <<_ACEOF
8396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8414 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
8415 strdup __argz_count __argz_stringify __argz_next
8417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8418 echo "$as_me:$LINENO: checking for $ac_func" >&5
8419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8420 if eval "test \"\${$as_ac_var+set}\" = set"; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8423 cat >conftest.$ac_ext <<_ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8431 #define $ac_func innocuous_$ac_func
8433 /* System header to define __stub macros and hopefully few prototypes,
8434 which can conflict with char $ac_func (); below.
8435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8436 <limits.h> exists even on freestanding compilers. */
8439 # include <limits.h>
8441 # include <assert.h>
8446 /* Override any gcc2 internal prototype to avoid an error. */
8451 /* We use char because int might match the return type of a gcc2
8452 builtin and then its argument prototype would still apply. */
8454 /* The GNU C library defines this for functions which it implements
8455 to always fail with ENOSYS. Some functions are actually named
8456 something starting with __ and the normal name is an alias. */
8457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8460 char (*f) () = $ac_func;
8469 return f != $ac_func;
8474 rm -f conftest.$ac_objext conftest$ac_exeext
8475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8476 (eval $ac_link) 2>conftest.er1
8478 grep -v '^ *+' conftest.er1 >conftest.err
8480 cat conftest.err >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } &&
8483 { ac_try='test -z "$ac_c_werror_flag"
8484 || test ! -s conftest.err'
8485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; } &&
8490 { ac_try='test -s conftest$ac_exeext'
8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; }; then
8496 eval "$as_ac_var=yes"
8498 echo "$as_me: failed program was:" >&5
8499 sed 's/^/| /' conftest.$ac_ext >&5
8501 eval "$as_ac_var=no"
8503 rm -f conftest.err conftest.$ac_objext \
8504 conftest$ac_exeext conftest.$ac_ext
8506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8508 if test `eval echo '${'$as_ac_var'}'` = yes; then
8509 cat >>confdefs.h <<_ACEOF
8510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8517 if test $ac_cv_header_locale_h = yes; then
8518 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8519 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8520 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 cat >conftest.$ac_ext <<_ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8538 rm -f conftest.$ac_objext conftest$ac_exeext
8539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8540 (eval $ac_link) 2>conftest.er1
8542 grep -v '^ *+' conftest.er1 >conftest.err
8544 cat conftest.err >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); } &&
8547 { ac_try='test -z "$ac_c_werror_flag"
8548 || test ! -s conftest.err'
8549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; } &&
8554 { ac_try='test -s conftest$ac_exeext'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; }; then
8560 am_cv_val_LC_MESSAGES=yes
8562 echo "$as_me: failed program was:" >&5
8563 sed 's/^/| /' conftest.$ac_ext >&5
8565 am_cv_val_LC_MESSAGES=no
8567 rm -f conftest.err conftest.$ac_objext \
8568 conftest$ac_exeext conftest.$ac_ext
8570 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8571 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8572 if test $am_cv_val_LC_MESSAGES = yes; then
8574 cat >>confdefs.h <<\_ACEOF
8575 #define HAVE_LC_MESSAGES 1
8583 nls_cv_force_use_gnu_gettext="no"
8585 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8586 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8588 nls_cv_header_libgt=
8591 if test "${ac_cv_header_libintl_h+set}" = set; then
8592 echo "$as_me:$LINENO: checking for libintl.h" >&5
8593 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8594 if test "${ac_cv_header_libintl_h+set}" = set; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8597 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8598 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8600 # Is the header compilable?
8601 echo "$as_me:$LINENO: checking libintl.h usability" >&5
8602 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
8603 cat >conftest.$ac_ext <<_ACEOF
8606 cat confdefs.h >>conftest.$ac_ext
8607 cat >>conftest.$ac_ext <<_ACEOF
8608 /* end confdefs.h. */
8609 $ac_includes_default
8610 #include <libintl.h>
8612 rm -f conftest.$ac_objext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8614 (eval $ac_compile) 2>conftest.er1
8616 grep -v '^ *+' conftest.er1 >conftest.err
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } &&
8621 { ac_try='test -z "$ac_c_werror_flag"
8622 || test ! -s conftest.err'
8623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; } &&
8628 { ac_try='test -s conftest.$ac_objext'
8629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; }; then
8634 ac_header_compiler=yes
8636 echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8639 ac_header_compiler=no
8641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8643 echo "${ECHO_T}$ac_header_compiler" >&6
8645 # Is the header present?
8646 echo "$as_me:$LINENO: checking libintl.h presence" >&5
8647 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
8648 cat >conftest.$ac_ext <<_ACEOF
8651 cat confdefs.h >>conftest.$ac_ext
8652 cat >>conftest.$ac_ext <<_ACEOF
8653 /* end confdefs.h. */
8654 #include <libintl.h>
8656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8659 grep -v '^ *+' conftest.er1 >conftest.err
8661 cat conftest.err >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } >/dev/null; then
8664 if test -s conftest.err; then
8665 ac_cpp_err=$ac_c_preproc_warn_flag
8666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8673 if test -z "$ac_cpp_err"; then
8674 ac_header_preproc=yes
8676 echo "$as_me: failed program was:" >&5
8677 sed 's/^/| /' conftest.$ac_ext >&5
8679 ac_header_preproc=no
8681 rm -f conftest.err conftest.$ac_ext
8682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8683 echo "${ECHO_T}$ac_header_preproc" >&6
8685 # So? What about this header?
8686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8688 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8689 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8690 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
8691 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
8692 ac_header_preproc=yes
8695 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
8696 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
8697 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8698 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8699 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
8700 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
8701 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
8702 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
8703 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8704 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
8705 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
8706 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
8709 ## ------------------------------------------ ##
8710 ## Report this to the AC_PACKAGE_NAME lists. ##
8711 ## ------------------------------------------ ##
8714 sed "s/^/$as_me: WARNING: /" >&2
8717 echo "$as_me:$LINENO: checking for libintl.h" >&5
8718 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8719 if test "${ac_cv_header_libintl_h+set}" = set; then
8720 echo $ECHO_N "(cached) $ECHO_C" >&6
8722 ac_cv_header_libintl_h=$ac_header_preproc
8724 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8725 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8728 if test $ac_cv_header_libintl_h = yes; then
8729 echo "$as_me:$LINENO: checking for dgettext in libc" >&5
8730 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
8731 if test "${gt_cv_func_dgettext_libc+set}" = set; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
8734 cat >conftest.$ac_ext <<_ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h. */
8740 #include <libintl.h>
8744 return (int) dgettext ("","")
8749 rm -f conftest.$ac_objext conftest$ac_exeext
8750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8751 (eval $ac_link) 2>conftest.er1
8753 grep -v '^ *+' conftest.er1 >conftest.err
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); } &&
8758 { ac_try='test -z "$ac_c_werror_flag"
8759 || test ! -s conftest.err'
8760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); }; } &&
8765 { ac_try='test -s conftest$ac_exeext'
8766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }; }; then
8771 gt_cv_func_dgettext_libc=yes
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8776 gt_cv_func_dgettext_libc=no
8778 rm -f conftest.err conftest.$ac_objext \
8779 conftest$ac_exeext conftest.$ac_ext
8781 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
8782 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
8784 if test "$gt_cv_func_dgettext_libc" != "yes"; then
8785 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
8786 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
8787 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8790 ac_check_lib_save_LIBS=$LIBS
8792 cat >conftest.$ac_ext <<_ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8799 /* Override any gcc2 internal prototype to avoid an error. */
8803 /* We use char because int might match the return type of a gcc2
8804 builtin and then its argument prototype would still apply. */
8805 char bindtextdomain ();
8814 rm -f conftest.$ac_objext conftest$ac_exeext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816 (eval $ac_link) 2>conftest.er1
8818 grep -v '^ *+' conftest.er1 >conftest.err
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } &&
8823 { ac_try='test -z "$ac_c_werror_flag"
8824 || test ! -s conftest.err'
8825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; } &&
8830 { ac_try='test -s conftest$ac_exeext'
8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; }; then
8836 ac_cv_lib_intl_bindtextdomain=yes
8838 echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.$ac_ext >&5
8841 ac_cv_lib_intl_bindtextdomain=no
8843 rm -f conftest.err conftest.$ac_objext \
8844 conftest$ac_exeext conftest.$ac_ext
8845 LIBS=$ac_check_lib_save_LIBS
8847 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8848 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
8849 if test $ac_cv_lib_intl_bindtextdomain = yes; then
8850 echo "$as_me:$LINENO: checking for dgettext in libintl" >&5
8851 echo $ECHO_N "checking for dgettext in libintl... $ECHO_C" >&6
8852 if test "${gt_cv_func_dgettext_libintl+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
8855 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
8856 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
8857 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
8860 ac_check_lib_save_LIBS=$LIBS
8862 cat >conftest.$ac_ext <<_ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h. */
8869 /* Override any gcc2 internal prototype to avoid an error. */
8873 /* We use char because int might match the return type of a gcc2
8874 builtin and then its argument prototype would still apply. */
8884 rm -f conftest.$ac_objext conftest$ac_exeext
8885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8886 (eval $ac_link) 2>conftest.er1
8888 grep -v '^ *+' conftest.er1 >conftest.err
8890 cat conftest.err >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } &&
8893 { ac_try='test -z "$ac_c_werror_flag"
8894 || test ! -s conftest.err'
8895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); }; } &&
8900 { ac_try='test -s conftest$ac_exeext'
8901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; }; then
8906 ac_cv_lib_intl_dgettext=yes
8908 echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8911 ac_cv_lib_intl_dgettext=no
8913 rm -f conftest.err conftest.$ac_objext \
8914 conftest$ac_exeext conftest.$ac_ext
8915 LIBS=$ac_check_lib_save_LIBS
8917 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
8918 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
8919 if test $ac_cv_lib_intl_dgettext = yes; then
8920 gt_cv_func_dgettext_libintl=yes
8922 gt_cv_func_dgettext_libintl=no
8926 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libintl" >&5
8927 echo "${ECHO_T}$gt_cv_func_dgettext_libintl" >&6
8932 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
8933 LIBS="$LIBS -lintl";
8936 if test "$gt_cv_func_dgettext_libc" = "yes" \
8937 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
8939 cat >>confdefs.h <<\_ACEOF
8940 #define HAVE_GETTEXT 1
8943 # Extract the first word of "msgfmt", so it can be a program name with args.
8944 set dummy msgfmt; ac_word=$2
8945 echo "$as_me:$LINENO: checking for $ac_word" >&5
8946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8947 if test "${ac_cv_path_MSGFMT+set}" = set; then
8948 echo $ECHO_N "(cached) $ECHO_C" >&6
8952 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8955 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8956 for ac_dir in $PATH; do
8957 test -z "$ac_dir" && ac_dir=.
8958 if test -f $ac_dir/$ac_word; then
8959 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8960 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8966 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8970 MSGFMT="$ac_cv_path_MSGFMT"
8971 if test -n "$MSGFMT"; then
8972 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8973 echo "${ECHO_T}$MSGFMT" >&6
8975 echo "$as_me:$LINENO: result: no" >&5
8976 echo "${ECHO_T}no" >&6
8978 if test "$MSGFMT" != "no"; then
8980 for ac_func in dcgettext
8982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8983 echo "$as_me:$LINENO: checking for $ac_func" >&5
8984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8985 if eval "test \"\${$as_ac_var+set}\" = set"; then
8986 echo $ECHO_N "(cached) $ECHO_C" >&6
8988 cat >conftest.$ac_ext <<_ACEOF
8991 cat confdefs.h >>conftest.$ac_ext
8992 cat >>conftest.$ac_ext <<_ACEOF
8993 /* end confdefs.h. */
8994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8996 #define $ac_func innocuous_$ac_func
8998 /* System header to define __stub macros and hopefully few prototypes,
8999 which can conflict with char $ac_func (); below.
9000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9001 <limits.h> exists even on freestanding compilers. */
9004 # include <limits.h>
9006 # include <assert.h>
9011 /* Override any gcc2 internal prototype to avoid an error. */
9016 /* We use char because int might match the return type of a gcc2
9017 builtin and then its argument prototype would still apply. */
9019 /* The GNU C library defines this for functions which it implements
9020 to always fail with ENOSYS. Some functions are actually named
9021 something starting with __ and the normal name is an alias. */
9022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9025 char (*f) () = $ac_func;
9034 return f != $ac_func;
9039 rm -f conftest.$ac_objext conftest$ac_exeext
9040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9041 (eval $ac_link) 2>conftest.er1
9043 grep -v '^ *+' conftest.er1 >conftest.err
9045 cat conftest.err >&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); } &&
9048 { ac_try='test -z "$ac_c_werror_flag"
9049 || test ! -s conftest.err'
9050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); }; } &&
9055 { ac_try='test -s conftest$ac_exeext'
9056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); }; }; then
9061 eval "$as_ac_var=yes"
9063 echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.$ac_ext >&5
9066 eval "$as_ac_var=no"
9068 rm -f conftest.err conftest.$ac_objext \
9069 conftest$ac_exeext conftest.$ac_ext
9071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9073 if test `eval echo '${'$as_ac_var'}'` = yes; then
9074 cat >>confdefs.h <<_ACEOF
9075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9081 # Extract the first word of "gmsgfmt", so it can be a program name with args.
9082 set dummy gmsgfmt; ac_word=$2
9083 echo "$as_me:$LINENO: checking for $ac_word" >&5
9084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9085 if test "${ac_cv_path_GMSGFMT+set}" = set; then
9086 echo $ECHO_N "(cached) $ECHO_C" >&6
9090 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
9093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097 test -z "$as_dir" && as_dir=.
9098 for ac_exec_ext in '' $ac_executable_extensions; do
9099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9100 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
9101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9107 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
9111 GMSGFMT=$ac_cv_path_GMSGFMT
9113 if test -n "$GMSGFMT"; then
9114 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
9115 echo "${ECHO_T}$GMSGFMT" >&6
9117 echo "$as_me:$LINENO: result: no" >&5
9118 echo "${ECHO_T}no" >&6
9121 # Extract the first word of "xgettext", so it can be a program name with args.
9122 set dummy xgettext; ac_word=$2
9123 echo "$as_me:$LINENO: checking for $ac_word" >&5
9124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9125 if test "${ac_cv_path_XGETTEXT+set}" = set; then
9126 echo $ECHO_N "(cached) $ECHO_C" >&6
9130 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
9133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9134 for ac_dir in $PATH; do
9135 test -z "$ac_dir" && ac_dir=.
9136 if test -f $ac_dir/$ac_word; then
9137 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
9138 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
9144 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9148 XGETTEXT="$ac_cv_path_XGETTEXT"
9149 if test -n "$XGETTEXT"; then
9150 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
9151 echo "${ECHO_T}$XGETTEXT" >&6
9153 echo "$as_me:$LINENO: result: no" >&5
9154 echo "${ECHO_T}no" >&6
9157 cat >conftest.$ac_ext <<_ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h. */
9167 extern int _nl_msg_cat_cntr;
9168 return _nl_msg_cat_cntr
9173 rm -f conftest.$ac_objext conftest$ac_exeext
9174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9175 (eval $ac_link) 2>conftest.er1
9177 grep -v '^ *+' conftest.er1 >conftest.err
9179 cat conftest.err >&5
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); } &&
9182 { ac_try='test -z "$ac_c_werror_flag"
9183 || test ! -s conftest.err'
9184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); }; } &&
9189 { ac_try='test -s conftest$ac_exeext'
9190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); }; }; then
9198 echo "$as_me: failed program was:" >&5
9199 sed 's/^/| /' conftest.$ac_ext >&5
9204 rm -f conftest.err conftest.$ac_objext \
9205 conftest$ac_exeext conftest.$ac_ext
9210 # Added by Martin Baulig 12/15/98 for libc5 systems
9211 if test "$gt_cv_func_dgettext_libc" != "yes" \
9212 && test "$gt_cv_func_dgettext_libintl" = "yes"; then
9214 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
9221 if test "$CATOBJEXT" = "NONE"; then
9222 nls_cv_use_gnu_gettext=yes
9226 if test "$nls_cv_use_gnu_gettext" != "yes"; then
9228 cat >>confdefs.h <<\_ACEOF
9229 #define ENABLE_NLS 1
9236 if test "$XGETTEXT" != ":"; then
9237 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
9240 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
9241 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
9246 # We need to process the po/ directory.
9249 ac_config_commands="$ac_config_commands default-2"
9252 for lang in $ALL_LINGUAS; do
9253 GMOFILES="$GMOFILES $lang.gmo"
9254 POFILES="$POFILES $lang.po"
9269 if test "x$CATOBJEXT" != "x"; then
9270 if test "x$ALL_LINGUAS" = "x"; then
9273 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9274 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9276 for lang in ${LINGUAS=$ALL_LINGUAS}; do
9277 case "$ALL_LINGUAS" in
9278 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
9281 LINGUAS=$NEW_LINGUAS
9282 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9283 echo "${ECHO_T}$LINGUAS" >&6
9286 if test -n "$LINGUAS"; then
9287 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
9291 test -d po || mkdir po
9292 if test "$CATOBJEXT" = ".cat"; then
9293 if test "${ac_cv_header_linux_version_h+set}" = set; then
9294 echo "$as_me:$LINENO: checking for linux/version.h" >&5
9295 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9296 if test "${ac_cv_header_linux_version_h+set}" = set; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9299 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9300 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9302 # Is the header compilable?
9303 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
9304 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
9305 cat >conftest.$ac_ext <<_ACEOF
9308 cat confdefs.h >>conftest.$ac_ext
9309 cat >>conftest.$ac_ext <<_ACEOF
9310 /* end confdefs.h. */
9311 $ac_includes_default
9312 #include <linux/version.h>
9314 rm -f conftest.$ac_objext
9315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9316 (eval $ac_compile) 2>conftest.er1
9318 grep -v '^ *+' conftest.er1 >conftest.err
9320 cat conftest.err >&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); } &&
9323 { ac_try='test -z "$ac_c_werror_flag"
9324 || test ! -s conftest.err'
9325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); }; } &&
9330 { ac_try='test -s conftest.$ac_objext'
9331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); }; }; then
9336 ac_header_compiler=yes
9338 echo "$as_me: failed program was:" >&5
9339 sed 's/^/| /' conftest.$ac_ext >&5
9341 ac_header_compiler=no
9343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9345 echo "${ECHO_T}$ac_header_compiler" >&6
9347 # Is the header present?
9348 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
9349 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
9350 cat >conftest.$ac_ext <<_ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h. */
9356 #include <linux/version.h>
9358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9361 grep -v '^ *+' conftest.er1 >conftest.err
9363 cat conftest.err >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); } >/dev/null; then
9366 if test -s conftest.err; then
9367 ac_cpp_err=$ac_c_preproc_warn_flag
9368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9375 if test -z "$ac_cpp_err"; then
9376 ac_header_preproc=yes
9378 echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9381 ac_header_preproc=no
9383 rm -f conftest.err conftest.$ac_ext
9384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9385 echo "${ECHO_T}$ac_header_preproc" >&6
9387 # So? What about this header?
9388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9390 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
9391 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9392 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
9393 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
9394 ac_header_preproc=yes
9397 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
9398 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
9399 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
9400 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
9401 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
9402 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
9403 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
9404 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
9405 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
9406 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
9407 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
9408 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
9411 ## ------------------------------------------ ##
9412 ## Report this to the AC_PACKAGE_NAME lists. ##
9413 ## ------------------------------------------ ##
9416 sed "s/^/$as_me: WARNING: /" >&2
9419 echo "$as_me:$LINENO: checking for linux/version.h" >&5
9420 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9421 if test "${ac_cv_header_linux_version_h+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 ac_cv_header_linux_version_h=$ac_header_preproc
9426 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9427 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9430 if test $ac_cv_header_linux_version_h = yes; then
9438 sed -e '/^#/d' $srcdir/po/$msgformat-msg.sed > po/po2msg.sed
9443 # jwz: fuck this! it puts hardcoded pathnames into the generated Makefiles!
9445 # if test -n "$ac_aux_dir"; then
9446 # MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
9448 if test -z "$MKINSTALLDIRS"; then
9449 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
9452 # jwz: you know what, screw it. Let's just use the version that I
9453 # already computed in configure.in, instead of this version that came
9454 # with the i18n crud, ok?
9455 MKINSTALLDIRS="$INSTALL_DIRS"
9460 test -d po || mkdir po
9461 if test "x$srcdir" != "x."; then
9462 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
9463 posrcprefix="$srcdir/"
9465 posrcprefix="../$srcdir/"
9471 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
9472 < $srcdir/po/POTFILES.in > po/POTFILES
9474 MKINSTALLDIRS="$INSTALL_DIRS"
9477 ###############################################################################
9479 # Check for -lXmu (some fucked up vendors don't ship it...)
9481 ###############################################################################
9485 ac_save_CPPFLAGS="$CPPFLAGS"
9486 if test \! -z "$includedir" ; then
9487 CPPFLAGS="$CPPFLAGS -I$includedir"
9489 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9490 echo "$as_me:$LINENO: checking for X11/Xmu/Error.h" >&5
9491 echo $ECHO_N "checking for X11/Xmu/Error.h... $ECHO_C" >&6
9492 if test "${ac_cv_header_X11_Xmu_Error_h+set}" = set; then
9493 echo $ECHO_N "(cached) $ECHO_C" >&6
9495 cat >conftest.$ac_ext <<_ACEOF
9498 cat confdefs.h >>conftest.$ac_ext
9499 cat >>conftest.$ac_ext <<_ACEOF
9500 /* end confdefs.h. */
9503 #include <X11/Intrinsic.h>
9505 #include <X11/Xmu/Error.h>
9507 rm -f conftest.$ac_objext
9508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9509 (eval $ac_compile) 2>conftest.er1
9511 grep -v '^ *+' conftest.er1 >conftest.err
9513 cat conftest.err >&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); } &&
9516 { ac_try='test -z "$ac_c_werror_flag"
9517 || test ! -s conftest.err'
9518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); }; } &&
9523 { ac_try='test -s conftest.$ac_objext'
9524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); }; }; then
9529 ac_cv_header_X11_Xmu_Error_h=yes
9531 echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9534 ac_cv_header_X11_Xmu_Error_h=no
9536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9538 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xmu_Error_h" >&5
9539 echo "${ECHO_T}$ac_cv_header_X11_Xmu_Error_h" >&6
9540 if test $ac_cv_header_X11_Xmu_Error_h = yes; then
9545 CPPFLAGS="$ac_save_CPPFLAGS"
9546 if test "$have_xmu" = no ; then
9547 XMU_SRCS='$(UTILS_SRC)/xmu.c'
9548 XMU_OBJS='$(UTILS_BIN)/xmu.o'
9554 cat >>confdefs.h <<\_ACEOF
9561 ###############################################################################
9563 # Check for the SunOS 4.1.x _get_wmShellWidgetClass bug.
9564 # See comp.windows.x FAQ question 124. The right fix is to
9565 # get OpenWindows 3.0 patches 100512-02 and 100573-03.
9567 ###############################################################################
9569 if test "$have_xmu" = yes ; then
9572 echo "$as_me:$LINENO: checking for the SunOS 4.1.x _get_wmShellWidgetClass bug" >&5
9573 echo $ECHO_N "checking for the SunOS 4.1.x _get_wmShellWidgetClass bug... $ECHO_C" >&6
9574 if test "${ac_cv_sunos_xmu_bug+set}" = set; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9577 ac_save_LDFLAGS="$LDFLAGS"
9578 if test \! -z "$x_libraries" ; then
9579 LDFLAGS="$LDFLAGS -L$x_libraries"
9581 # Note: this trick never works! (Generally.)
9582 # We're only getting away with using AC_TRY_LINK
9583 # with X libraries because we know it's SunOS.
9584 LDFLAGS="$LDFLAGS -lXmu -lXt -lX11 -lXext -lm"
9585 cat >conftest.$ac_ext <<_ACEOF
9588 cat confdefs.h >>conftest.$ac_ext
9589 cat >>conftest.$ac_ext <<_ACEOF
9590 /* end confdefs.h. */
9600 rm -f conftest.$ac_objext conftest$ac_exeext
9601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9602 (eval $ac_link) 2>conftest.er1
9604 grep -v '^ *+' conftest.er1 >conftest.err
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } &&
9609 { ac_try='test -z "$ac_c_werror_flag"
9610 || test ! -s conftest.err'
9611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); }; } &&
9616 { ac_try='test -s conftest$ac_exeext'
9617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }; }; then
9622 ac_cv_sunos_xmu_bug=no
9624 echo "$as_me: failed program was:" >&5
9625 sed 's/^/| /' conftest.$ac_ext >&5
9627 ac_cv_sunos_xmu_bug=yes
9629 rm -f conftest.err conftest.$ac_objext \
9630 conftest$ac_exeext conftest.$ac_ext
9631 LDFLAGS="$ac_save_LDFLAGS"
9633 echo "$as_me:$LINENO: result: $ac_cv_sunos_xmu_bug" >&5
9634 echo "${ECHO_T}$ac_cv_sunos_xmu_bug" >&6
9635 if test "$ac_cv_sunos_xmu_bug" = yes ; then
9636 echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
9637 echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
9638 if test "${ac_cv_ld_static+set}" = set; then
9639 echo $ECHO_N "(cached) $ECHO_C" >&6
9641 ac_save_LDFLAGS="$LDFLAGS"
9642 LDFLAGS="$LDFLAGS -static"
9643 cat >conftest.$ac_ext <<_ACEOF
9646 cat confdefs.h >>conftest.$ac_ext
9647 cat >>conftest.$ac_ext <<_ACEOF
9648 /* end confdefs.h. */
9658 rm -f conftest.$ac_objext conftest$ac_exeext
9659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9660 (eval $ac_link) 2>conftest.er1
9662 grep -v '^ *+' conftest.er1 >conftest.err
9664 cat conftest.err >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } &&
9667 { ac_try='test -z "$ac_c_werror_flag"
9668 || test ! -s conftest.err'
9669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; } &&
9674 { ac_try='test -s conftest$ac_exeext'
9675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; }; then
9682 echo "$as_me: failed program was:" >&5
9683 sed 's/^/| /' conftest.$ac_ext >&5
9687 rm -f conftest.err conftest.$ac_objext \
9688 conftest$ac_exeext conftest.$ac_ext
9689 LDFLAGS="$ac_save_LDFLAGS"
9691 echo "$as_me:$LINENO: result: $ac_cv_ld_static" >&5
9692 echo "${ECHO_T}$ac_cv_ld_static" >&6
9693 if test "$ac_cv_ld_static" = yes ; then
9694 LDFLAGS="$LDFLAGS -static"
9696 LDFLAGS="$LDFLAGS -Bstatic"
9704 ###############################################################################
9706 # Handle the --with-hackdir option
9708 ###############################################################################
9711 with_hackdir_req=unspecified
9713 # Check whether --with-hackdir or --without-hackdir was given.
9714 if test "${with_hackdir+set}" = set; then
9715 withval="$with_hackdir"
9716 with_hackdir="$withval"; with_hackdir_req="$withval"
9721 if test x"$with_hackdir" = xyes; then
9722 HACKDIR='${libexecdir}/xscreensaver'
9723 elif test x"$with_hackdir" = xno; then
9726 HACKDIR=$with_hackdir
9729 # canonicalize slashes.
9730 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
9732 # This option used to be called --enable-subdir; make sure that is no longer
9733 # used, since configure brain-damagedly ignores unknown --enable options.
9736 # Check whether --enable-subdir or --disable-subdir was given.
9737 if test "${enable_subdir+set}" = set; then
9738 enableval="$enable_subdir"
9741 if test -n "$obsolete_enable"; then
9742 echo "error: the --enable-subdir option has been replaced with"
9743 echo " the new --with-hackdir option; see \`configure --help'"
9744 echo " for more information."
9749 ###############################################################################
9751 # Handle the --with-configdir option
9753 ###############################################################################
9756 with_configdir_req=unspecified
9758 # Check whether --with-configdir or --without-configdir was given.
9759 if test "${with_configdir+set}" = set; then
9760 withval="$with_configdir"
9761 with_configdir="$withval"; with_configdir_req="$withval"
9766 if test x"$with_configdir" = xyes; then
9767 HACK_CONF_DIR='${datadir}/xscreensaver/config'
9768 elif test x"$with_configdir" = xno; then
9769 echo "error: must be yes, or a pathname: --with-configdir=$with_configdir"
9772 # there must be a better way than this...
9773 if test -z "`echo $with_configdir | sed 's@^/.*@@'`" ; then
9775 HACK_CONF_DIR=$with_configdir
9778 HACK_CONF_DIR="\${exec_prefix}$with_configdir"
9785 ###############################################################################
9787 # Check for the SGI SCREEN_SAVER server extension.
9789 ###############################################################################
9792 with_sgi_req=unspecified
9794 # Check whether --with-sgi-ext or --without-sgi-ext was given.
9795 if test "${with_sgi_ext+set}" = set; then
9796 withval="$with_sgi_ext"
9797 with_sgi="$withval"; with_sgi_req="$withval"
9808 echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER headers" >&5
9809 echo $ECHO_N "checking for SGI SCREEN_SAVER headers... $ECHO_C" >&6
9812 X_CFLAGS="-I$d $X_CFLAGS"
9813 echo "$as_me:$LINENO: result: $d" >&5
9814 echo "${ECHO_T}$d" >&6
9816 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9817 echo "${ECHO_T}not found ($d: no such directory)" >&6
9820 echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER libs" >&5
9821 echo $ECHO_N "checking for SGI SCREEN_SAVER libs... $ECHO_C" >&6
9824 X_LIBS="-L$d $X_LIBS"
9825 echo "$as_me:$LINENO: result: $d" >&5
9826 echo "${ECHO_T}$d" >&6
9828 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9829 echo "${ECHO_T}not found ($d: no such directory)" >&6
9832 # replace the directory string with "yes".
9834 with_sgi=$with_sgi_req
9839 echo "error: argument to --with-sgi-ext must be \"yes\", \"no\", or a directory."
9840 echo " If it is a directory, then \`DIR/include' will be added to"
9841 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9847 if test "$with_sgi" = yes; then
9849 ac_save_CPPFLAGS="$CPPFLAGS"
9850 if test \! -z "$includedir" ; then
9851 CPPFLAGS="$CPPFLAGS -I$includedir"
9853 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9854 echo "$as_me:$LINENO: checking for X11/extensions/XScreenSaver.h" >&5
9855 echo $ECHO_N "checking for X11/extensions/XScreenSaver.h... $ECHO_C" >&6
9856 if test "${ac_cv_header_X11_extensions_XScreenSaver_h+set}" = set; then
9857 echo $ECHO_N "(cached) $ECHO_C" >&6
9859 cat >conftest.$ac_ext <<_ACEOF
9862 cat confdefs.h >>conftest.$ac_ext
9863 cat >>conftest.$ac_ext <<_ACEOF
9864 /* end confdefs.h. */
9865 #include <X11/Xlib.h>
9867 #include <X11/extensions/XScreenSaver.h>
9869 rm -f conftest.$ac_objext
9870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9871 (eval $ac_compile) 2>conftest.er1
9873 grep -v '^ *+' conftest.er1 >conftest.err
9875 cat conftest.err >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } &&
9878 { ac_try='test -z "$ac_c_werror_flag"
9879 || test ! -s conftest.err'
9880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; } &&
9885 { ac_try='test -s conftest.$ac_objext'
9886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; }; then
9891 ac_cv_header_X11_extensions_XScreenSaver_h=yes
9893 echo "$as_me: failed program was:" >&5
9894 sed 's/^/| /' conftest.$ac_ext >&5
9896 ac_cv_header_X11_extensions_XScreenSaver_h=no
9898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9900 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XScreenSaver_h" >&5
9901 echo "${ECHO_T}$ac_cv_header_X11_extensions_XScreenSaver_h" >&6
9902 if test $ac_cv_header_X11_extensions_XScreenSaver_h = yes; then
9904 cat >>confdefs.h <<\_ACEOF
9905 #define HAVE_SGI_SAVER_EXTENSION 1
9911 CPPFLAGS="$ac_save_CPPFLAGS"
9913 elif test "$with_sgi" != no; then
9914 echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
9919 ###############################################################################
9921 # Check for the XIDLE server extension.
9923 ###############################################################################
9926 with_xidle_req=unspecified
9928 # Check whether --with-xidle-ext or --without-xidle-ext was given.
9929 if test "${with_xidle_ext+set}" = set; then
9930 withval="$with_xidle_ext"
9931 with_xidle="$withval"; with_xidle_req="$withval"
9937 case "$with_xidle" in
9942 echo "$as_me:$LINENO: checking for XIDLE headers" >&5
9943 echo $ECHO_N "checking for XIDLE headers... $ECHO_C" >&6
9944 d=$with_xidle/include
9946 X_CFLAGS="-I$d $X_CFLAGS"
9947 echo "$as_me:$LINENO: result: $d" >&5
9948 echo "${ECHO_T}$d" >&6
9950 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9951 echo "${ECHO_T}not found ($d: no such directory)" >&6
9954 echo "$as_me:$LINENO: checking for XIDLE libs" >&5
9955 echo $ECHO_N "checking for XIDLE libs... $ECHO_C" >&6
9958 X_LIBS="-L$d $X_LIBS"
9959 echo "$as_me:$LINENO: result: $d" >&5
9960 echo "${ECHO_T}$d" >&6
9962 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9963 echo "${ECHO_T}not found ($d: no such directory)" >&6
9966 # replace the directory string with "yes".
9967 with_xidle_req="yes"
9968 with_xidle=$with_xidle_req
9973 echo "error: argument to --with-xidle-ext must be \"yes\", \"no\", or a directory."
9974 echo " If it is a directory, then \`DIR/include' will be added to"
9975 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9981 if test "$with_xidle" = yes; then
9983 ac_save_CPPFLAGS="$CPPFLAGS"
9984 if test \! -z "$includedir" ; then
9985 CPPFLAGS="$CPPFLAGS -I$includedir"
9987 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9988 echo "$as_me:$LINENO: checking for X11/extensions/xidle.h" >&5
9989 echo $ECHO_N "checking for X11/extensions/xidle.h... $ECHO_C" >&6
9990 if test "${ac_cv_header_X11_extensions_xidle_h+set}" = set; then
9991 echo $ECHO_N "(cached) $ECHO_C" >&6
9993 cat >conftest.$ac_ext <<_ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h. */
9999 #include <X11/Xlib.h>
10001 #include <X11/extensions/xidle.h>
10003 rm -f conftest.$ac_objext
10004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10005 (eval $ac_compile) 2>conftest.er1
10007 grep -v '^ *+' conftest.er1 >conftest.err
10009 cat conftest.err >&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); } &&
10012 { ac_try='test -z "$ac_c_werror_flag"
10013 || test ! -s conftest.err'
10014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10015 (eval $ac_try) 2>&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); }; } &&
10019 { ac_try='test -s conftest.$ac_objext'
10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; }; then
10025 ac_cv_header_X11_extensions_xidle_h=yes
10027 echo "$as_me: failed program was:" >&5
10028 sed 's/^/| /' conftest.$ac_ext >&5
10030 ac_cv_header_X11_extensions_xidle_h=no
10032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10034 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xidle_h" >&5
10035 echo "${ECHO_T}$ac_cv_header_X11_extensions_xidle_h" >&6
10036 if test $ac_cv_header_X11_extensions_xidle_h = yes; then
10038 cat >>confdefs.h <<\_ACEOF
10039 #define HAVE_XIDLE_EXTENSION 1
10045 CPPFLAGS="$ac_save_CPPFLAGS"
10046 elif test "$with_xidle" != no; then
10047 echo "error: must be yes or no: --with-xidle-ext=$with_xidle"
10052 ###############################################################################
10054 # Check for the SGI-VIDEO-CONTROL server extension.
10056 ###############################################################################
10059 with_sgivc_req=unspecified
10061 # Check whether --with-sgivc-ext or --without-sgivc-ext was given.
10062 if test "${with_sgivc_ext+set}" = set; then
10063 withval="$with_sgivc_ext"
10064 with_sgivc="$withval"; with_sgivc_req="$withval"
10070 case "$with_sgivc" in
10075 echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL headers" >&5
10076 echo $ECHO_N "checking for SGI-VIDEO-CONTROL headers... $ECHO_C" >&6
10077 d=$with_sgivc/include
10078 if test -d $d; then
10079 X_CFLAGS="-I$d $X_CFLAGS"
10080 echo "$as_me:$LINENO: result: $d" >&5
10081 echo "${ECHO_T}$d" >&6
10083 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10084 echo "${ECHO_T}not found ($d: no such directory)" >&6
10087 echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL libs" >&5
10088 echo $ECHO_N "checking for SGI-VIDEO-CONTROL libs... $ECHO_C" >&6
10090 if test -d $d; then
10091 X_LIBS="-L$d $X_LIBS"
10092 echo "$as_me:$LINENO: result: $d" >&5
10093 echo "${ECHO_T}$d" >&6
10095 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10096 echo "${ECHO_T}not found ($d: no such directory)" >&6
10099 # replace the directory string with "yes".
10100 with_sgivc_req="yes"
10101 with_sgivc=$with_sgivc_req
10106 echo "error: argument to --with-sgivc-ext must be \"yes\", \"no\", or a directory."
10107 echo " If it is a directory, then \`DIR/include' will be added to"
10108 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10114 if test "$with_sgivc" = yes; then
10116 # first check for XSGIvc.h
10118 ac_save_CPPFLAGS="$CPPFLAGS"
10119 if test \! -z "$includedir" ; then
10120 CPPFLAGS="$CPPFLAGS -I$includedir"
10122 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10123 echo "$as_me:$LINENO: checking for X11/extensions/XSGIvc.h" >&5
10124 echo $ECHO_N "checking for X11/extensions/XSGIvc.h... $ECHO_C" >&6
10125 if test "${ac_cv_header_X11_extensions_XSGIvc_h+set}" = set; then
10126 echo $ECHO_N "(cached) $ECHO_C" >&6
10128 cat >conftest.$ac_ext <<_ACEOF
10131 cat confdefs.h >>conftest.$ac_ext
10132 cat >>conftest.$ac_ext <<_ACEOF
10133 /* end confdefs.h. */
10134 #include <X11/Xlib.h>
10136 #include <X11/extensions/XSGIvc.h>
10138 rm -f conftest.$ac_objext
10139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10140 (eval $ac_compile) 2>conftest.er1
10142 grep -v '^ *+' conftest.er1 >conftest.err
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } &&
10147 { ac_try='test -z "$ac_c_werror_flag"
10148 || test ! -s conftest.err'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; } &&
10154 { ac_try='test -s conftest.$ac_objext'
10155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156 (eval $ac_try) 2>&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; }; then
10160 ac_cv_header_X11_extensions_XSGIvc_h=yes
10162 echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.$ac_ext >&5
10165 ac_cv_header_X11_extensions_XSGIvc_h=no
10167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10169 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XSGIvc_h" >&5
10170 echo "${ECHO_T}$ac_cv_header_X11_extensions_XSGIvc_h" >&6
10171 if test $ac_cv_header_X11_extensions_XSGIvc_h = yes; then
10176 CPPFLAGS="$ac_save_CPPFLAGS"
10178 # if that succeeded, then check for the -lXsgivc
10179 if test "$have_sgivc" = yes; then
10182 ac_save_CPPFLAGS="$CPPFLAGS"
10183 ac_save_LDFLAGS="$LDFLAGS"
10184 # ac_save_LIBS="$LIBS"
10186 if test \! -z "$includedir" ; then
10187 CPPFLAGS="$CPPFLAGS -I$includedir"
10189 # note: $X_CFLAGS includes $x_includes
10190 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10192 if test \! -z "$libdir" ; then
10193 LDFLAGS="$LDFLAGS -L$libdir"
10195 # note: $X_LIBS includes $x_libraries
10196 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10198 echo "$as_me:$LINENO: checking for XSGIvcQueryGammaMap in -lXsgivc" >&5
10199 echo $ECHO_N "checking for XSGIvcQueryGammaMap in -lXsgivc... $ECHO_C" >&6
10200 if test "${ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap+set}" = set; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10203 ac_check_lib_save_LIBS=$LIBS
10204 LIBS="-lXsgivc -lXext -lX11 $LIBS"
10205 cat >conftest.$ac_ext <<_ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h. */
10212 /* Override any gcc2 internal prototype to avoid an error. */
10216 /* We use char because int might match the return type of a gcc2
10217 builtin and then its argument prototype would still apply. */
10218 char XSGIvcQueryGammaMap ();
10222 XSGIvcQueryGammaMap ();
10227 rm -f conftest.$ac_objext conftest$ac_exeext
10228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10229 (eval $ac_link) 2>conftest.er1
10231 grep -v '^ *+' conftest.er1 >conftest.err
10233 cat conftest.err >&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } &&
10236 { ac_try='test -z "$ac_c_werror_flag"
10237 || test ! -s conftest.err'
10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239 (eval $ac_try) 2>&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; } &&
10243 { ac_try='test -s conftest$ac_exeext'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; }; then
10249 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=yes
10251 echo "$as_me: failed program was:" >&5
10252 sed 's/^/| /' conftest.$ac_ext >&5
10254 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=no
10256 rm -f conftest.err conftest.$ac_objext \
10257 conftest$ac_exeext conftest.$ac_ext
10258 LIBS=$ac_check_lib_save_LIBS
10260 echo "$as_me:$LINENO: result: $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&5
10261 echo "${ECHO_T}$ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&6
10262 if test $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap = yes; then
10263 have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"
10268 CPPFLAGS="$ac_save_CPPFLAGS"
10269 LDFLAGS="$ac_save_LDFLAGS"
10270 # LIBS="$ac_save_LIBS"
10274 # if that succeeded, then we've really got it.
10275 if test "$have_sgivc" = yes; then
10276 cat >>confdefs.h <<\_ACEOF
10277 #define HAVE_SGI_VC_EXTENSION 1
10282 elif test "$with_sgivc" != no; then
10283 echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
10288 ###############################################################################
10290 # Check for the DPMS server extension.
10292 ###############################################################################
10295 with_dpms_req=unspecified
10297 # Check whether --with-dpms-ext or --without-dpms-ext was given.
10298 if test "${with_dpms_ext+set}" = set; then
10299 withval="$with_dpms_ext"
10300 with_dpms="$withval"; with_dpms_req="$withval"
10306 case "$with_dpms" in
10311 echo "$as_me:$LINENO: checking for DPMS headers" >&5
10312 echo $ECHO_N "checking for DPMS headers... $ECHO_C" >&6
10313 d=$with_dpms/include
10314 if test -d $d; then
10315 X_CFLAGS="-I$d $X_CFLAGS"
10316 echo "$as_me:$LINENO: result: $d" >&5
10317 echo "${ECHO_T}$d" >&6
10319 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10320 echo "${ECHO_T}not found ($d: no such directory)" >&6
10323 echo "$as_me:$LINENO: checking for DPMS libs" >&5
10324 echo $ECHO_N "checking for DPMS libs... $ECHO_C" >&6
10326 if test -d $d; then
10327 X_LIBS="-L$d $X_LIBS"
10328 echo "$as_me:$LINENO: result: $d" >&5
10329 echo "${ECHO_T}$d" >&6
10331 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10332 echo "${ECHO_T}not found ($d: no such directory)" >&6
10335 # replace the directory string with "yes".
10336 with_dpms_req="yes"
10337 with_dpms=$with_dpms_req
10342 echo "error: argument to --with-dpms-ext must be \"yes\", \"no\", or a directory."
10343 echo " If it is a directory, then \`DIR/include' will be added to"
10344 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10350 if test "$with_dpms" = yes; then
10352 # first check for dpms.h
10354 ac_save_CPPFLAGS="$CPPFLAGS"
10355 if test \! -z "$includedir" ; then
10356 CPPFLAGS="$CPPFLAGS -I$includedir"
10358 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10359 echo "$as_me:$LINENO: checking for X11/extensions/dpms.h" >&5
10360 echo $ECHO_N "checking for X11/extensions/dpms.h... $ECHO_C" >&6
10361 if test "${ac_cv_header_X11_extensions_dpms_h+set}" = set; then
10362 echo $ECHO_N "(cached) $ECHO_C" >&6
10364 cat >conftest.$ac_ext <<_ACEOF
10367 cat confdefs.h >>conftest.$ac_ext
10368 cat >>conftest.$ac_ext <<_ACEOF
10369 /* end confdefs.h. */
10370 #include <X11/Xlib.h>
10371 #include <X11/Xmd.h>
10373 #include <X11/extensions/dpms.h>
10375 rm -f conftest.$ac_objext
10376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10377 (eval $ac_compile) 2>conftest.er1
10379 grep -v '^ *+' conftest.er1 >conftest.err
10381 cat conftest.err >&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } &&
10384 { ac_try='test -z "$ac_c_werror_flag"
10385 || test ! -s conftest.err'
10386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10387 (eval $ac_try) 2>&5
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); }; } &&
10391 { ac_try='test -s conftest.$ac_objext'
10392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10393 (eval $ac_try) 2>&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); }; }; then
10397 ac_cv_header_X11_extensions_dpms_h=yes
10399 echo "$as_me: failed program was:" >&5
10400 sed 's/^/| /' conftest.$ac_ext >&5
10402 ac_cv_header_X11_extensions_dpms_h=no
10404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10406 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_dpms_h" >&5
10407 echo "${ECHO_T}$ac_cv_header_X11_extensions_dpms_h" >&6
10408 if test $ac_cv_header_X11_extensions_dpms_h = yes; then
10413 CPPFLAGS="$ac_save_CPPFLAGS"
10415 # if that succeeded, then check for the DPMS code in the libraries
10416 if test "$have_dpms" = yes; then
10418 # first look in -lXext (this is where it is with XFree86 4.0)
10421 ac_save_CPPFLAGS="$CPPFLAGS"
10422 ac_save_LDFLAGS="$LDFLAGS"
10423 # ac_save_LIBS="$LIBS"
10425 if test \! -z "$includedir" ; then
10426 CPPFLAGS="$CPPFLAGS -I$includedir"
10428 # note: $X_CFLAGS includes $x_includes
10429 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10431 if test \! -z "$libdir" ; then
10432 LDFLAGS="$LDFLAGS -L$libdir"
10434 # note: $X_LIBS includes $x_libraries
10435 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10437 echo "$as_me:$LINENO: checking for DPMSInfo in -lXext" >&5
10438 echo $ECHO_N "checking for DPMSInfo in -lXext... $ECHO_C" >&6
10439 if test "${ac_cv_lib_Xext_DPMSInfo+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10442 ac_check_lib_save_LIBS=$LIBS
10443 LIBS="-lXext -lXext -lX11 $LIBS"
10444 cat >conftest.$ac_ext <<_ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h. */
10451 /* Override any gcc2 internal prototype to avoid an error. */
10455 /* We use char because int might match the return type of a gcc2
10456 builtin and then its argument prototype would still apply. */
10466 rm -f conftest.$ac_objext conftest$ac_exeext
10467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10468 (eval $ac_link) 2>conftest.er1
10470 grep -v '^ *+' conftest.er1 >conftest.err
10472 cat conftest.err >&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); } &&
10475 { ac_try='test -z "$ac_c_werror_flag"
10476 || test ! -s conftest.err'
10477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478 (eval $ac_try) 2>&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); }; } &&
10482 { ac_try='test -s conftest$ac_exeext'
10483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484 (eval $ac_try) 2>&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; }; then
10488 ac_cv_lib_Xext_DPMSInfo=yes
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10493 ac_cv_lib_Xext_DPMSInfo=no
10495 rm -f conftest.err conftest.$ac_objext \
10496 conftest$ac_exeext conftest.$ac_ext
10497 LIBS=$ac_check_lib_save_LIBS
10499 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_DPMSInfo" >&5
10500 echo "${ECHO_T}$ac_cv_lib_Xext_DPMSInfo" >&6
10501 if test $ac_cv_lib_Xext_DPMSInfo = yes; then
10507 CPPFLAGS="$ac_save_CPPFLAGS"
10508 LDFLAGS="$ac_save_LDFLAGS"
10509 # LIBS="$ac_save_LIBS"
10512 # if that failed, look in -lXdpms (this is where it was in XFree86 3.x)
10513 if test "$have_dpms" = no; then
10515 ac_save_CPPFLAGS="$CPPFLAGS"
10516 ac_save_LDFLAGS="$LDFLAGS"
10517 # ac_save_LIBS="$LIBS"
10519 if test \! -z "$includedir" ; then
10520 CPPFLAGS="$CPPFLAGS -I$includedir"
10522 # note: $X_CFLAGS includes $x_includes
10523 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10525 if test \! -z "$libdir" ; then
10526 LDFLAGS="$LDFLAGS -L$libdir"
10528 # note: $X_LIBS includes $x_libraries
10529 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10531 echo "$as_me:$LINENO: checking for DPMSInfo in -lXdpms" >&5
10532 echo $ECHO_N "checking for DPMSInfo in -lXdpms... $ECHO_C" >&6
10533 if test "${ac_cv_lib_Xdpms_DPMSInfo+set}" = set; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10536 ac_check_lib_save_LIBS=$LIBS
10537 LIBS="-lXdpms -lXext -lX11 $LIBS"
10538 cat >conftest.$ac_ext <<_ACEOF
10541 cat confdefs.h >>conftest.$ac_ext
10542 cat >>conftest.$ac_ext <<_ACEOF
10543 /* end confdefs.h. */
10545 /* Override any gcc2 internal prototype to avoid an error. */
10549 /* We use char because int might match the return type of a gcc2
10550 builtin and then its argument prototype would still apply. */
10560 rm -f conftest.$ac_objext conftest$ac_exeext
10561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10562 (eval $ac_link) 2>conftest.er1
10564 grep -v '^ *+' conftest.er1 >conftest.err
10566 cat conftest.err >&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } &&
10569 { ac_try='test -z "$ac_c_werror_flag"
10570 || test ! -s conftest.err'
10571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10572 (eval $ac_try) 2>&5
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); }; } &&
10576 { ac_try='test -s conftest$ac_exeext'
10577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578 (eval $ac_try) 2>&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; }; then
10582 ac_cv_lib_Xdpms_DPMSInfo=yes
10584 echo "$as_me: failed program was:" >&5
10585 sed 's/^/| /' conftest.$ac_ext >&5
10587 ac_cv_lib_Xdpms_DPMSInfo=no
10589 rm -f conftest.err conftest.$ac_objext \
10590 conftest$ac_exeext conftest.$ac_ext
10591 LIBS=$ac_check_lib_save_LIBS
10593 echo "$as_me:$LINENO: result: $ac_cv_lib_Xdpms_DPMSInfo" >&5
10594 echo "${ECHO_T}$ac_cv_lib_Xdpms_DPMSInfo" >&6
10595 if test $ac_cv_lib_Xdpms_DPMSInfo = yes; then
10596 have_dpms=yes; XDPMS_LIBS="-lXdpms"
10601 CPPFLAGS="$ac_save_CPPFLAGS"
10602 LDFLAGS="$ac_save_LDFLAGS"
10603 # LIBS="$ac_save_LIBS"
10609 # if that succeeded, then we've really got it.
10610 if test "$have_dpms" = yes; then
10611 cat >>confdefs.h <<\_ACEOF
10612 #define HAVE_DPMS_EXTENSION 1
10617 elif test "$with_dpms" != no; then
10618 echo "error: must be yes or no: --with-dpms-ext=$with_dpms"
10623 ###############################################################################
10625 # Check for the XINERAMA server extension.
10627 ###############################################################################
10630 with_xinerama_req=unspecified
10632 # Check whether --with-xinerama-ext or --without-xinerama-ext was given.
10633 if test "${with_xinerama_ext+set}" = set; then
10634 withval="$with_xinerama_ext"
10635 with_xinerama="$withval"; with_xinerama_req="$withval"
10641 case "$with_xinerama" in
10646 echo "$as_me:$LINENO: checking for XINERAMA headers" >&5
10647 echo $ECHO_N "checking for XINERAMA headers... $ECHO_C" >&6
10648 d=$with_xinerama/include
10649 if test -d $d; then
10650 X_CFLAGS="-I$d $X_CFLAGS"
10651 echo "$as_me:$LINENO: result: $d" >&5
10652 echo "${ECHO_T}$d" >&6
10654 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10655 echo "${ECHO_T}not found ($d: no such directory)" >&6
10658 echo "$as_me:$LINENO: checking for XINERAMA libs" >&5
10659 echo $ECHO_N "checking for XINERAMA libs... $ECHO_C" >&6
10660 d=$with_xinerama/lib
10661 if test -d $d; then
10662 X_LIBS="-L$d $X_LIBS"
10663 echo "$as_me:$LINENO: result: $d" >&5
10664 echo "${ECHO_T}$d" >&6
10666 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10667 echo "${ECHO_T}not found ($d: no such directory)" >&6
10670 # replace the directory string with "yes".
10671 with_xinerama_req="yes"
10672 with_xinerama=$with_xinerama_req
10677 echo "error: argument to --with-xinerama-ext must be \"yes\", \"no\", or a directory."
10678 echo " If it is a directory, then \`DIR/include' will be added to"
10679 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10685 if test "$with_xinerama" = yes; then
10687 # first check for Xinerama.h
10689 ac_save_CPPFLAGS="$CPPFLAGS"
10690 if test \! -z "$includedir" ; then
10691 CPPFLAGS="$CPPFLAGS -I$includedir"
10693 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10694 echo "$as_me:$LINENO: checking for X11/extensions/Xinerama.h" >&5
10695 echo $ECHO_N "checking for X11/extensions/Xinerama.h... $ECHO_C" >&6
10696 if test "${ac_cv_header_X11_extensions_Xinerama_h+set}" = set; then
10697 echo $ECHO_N "(cached) $ECHO_C" >&6
10699 cat >conftest.$ac_ext <<_ACEOF
10702 cat confdefs.h >>conftest.$ac_ext
10703 cat >>conftest.$ac_ext <<_ACEOF
10704 /* end confdefs.h. */
10705 #include <X11/Xlib.h>
10707 #include <X11/extensions/Xinerama.h>
10709 rm -f conftest.$ac_objext
10710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10711 (eval $ac_compile) 2>conftest.er1
10713 grep -v '^ *+' conftest.er1 >conftest.err
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } &&
10718 { ac_try='test -z "$ac_c_werror_flag"
10719 || test ! -s conftest.err'
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; } &&
10725 { ac_try='test -s conftest.$ac_objext'
10726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10727 (eval $ac_try) 2>&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); }; }; then
10731 ac_cv_header_X11_extensions_Xinerama_h=yes
10733 echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10736 ac_cv_header_X11_extensions_Xinerama_h=no
10738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10740 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xinerama_h" >&5
10741 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xinerama_h" >&6
10742 if test $ac_cv_header_X11_extensions_Xinerama_h = yes; then
10747 CPPFLAGS="$ac_save_CPPFLAGS"
10749 # if that succeeded, then check for the XINERAMA code in the libraries
10750 if test "$have_xinerama" = yes; then
10752 # first look in -lXext
10755 ac_save_CPPFLAGS="$CPPFLAGS"
10756 ac_save_LDFLAGS="$LDFLAGS"
10757 # ac_save_LIBS="$LIBS"
10759 if test \! -z "$includedir" ; then
10760 CPPFLAGS="$CPPFLAGS -I$includedir"
10762 # note: $X_CFLAGS includes $x_includes
10763 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10765 if test \! -z "$libdir" ; then
10766 LDFLAGS="$LDFLAGS -L$libdir"
10768 # note: $X_LIBS includes $x_libraries
10769 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10771 echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXext" >&5
10772 echo $ECHO_N "checking for XineramaQueryScreens in -lXext... $ECHO_C" >&6
10773 if test "${ac_cv_lib_Xext_XineramaQueryScreens+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 ac_check_lib_save_LIBS=$LIBS
10777 LIBS="-lXext -lXext -lX11 $LIBS"
10778 cat >conftest.$ac_ext <<_ACEOF
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h. */
10785 /* Override any gcc2 internal prototype to avoid an error. */
10789 /* We use char because int might match the return type of a gcc2
10790 builtin and then its argument prototype would still apply. */
10791 char XineramaQueryScreens ();
10795 XineramaQueryScreens ();
10800 rm -f conftest.$ac_objext conftest$ac_exeext
10801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10802 (eval $ac_link) 2>conftest.er1
10804 grep -v '^ *+' conftest.er1 >conftest.err
10806 cat conftest.err >&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); } &&
10809 { ac_try='test -z "$ac_c_werror_flag"
10810 || test ! -s conftest.err'
10811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812 (eval $ac_try) 2>&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; } &&
10816 { ac_try='test -s conftest$ac_exeext'
10817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818 (eval $ac_try) 2>&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); }; }; then
10822 ac_cv_lib_Xext_XineramaQueryScreens=yes
10824 echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10827 ac_cv_lib_Xext_XineramaQueryScreens=no
10829 rm -f conftest.err conftest.$ac_objext \
10830 conftest$ac_exeext conftest.$ac_ext
10831 LIBS=$ac_check_lib_save_LIBS
10833 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XineramaQueryScreens" >&5
10834 echo "${ECHO_T}$ac_cv_lib_Xext_XineramaQueryScreens" >&6
10835 if test $ac_cv_lib_Xext_XineramaQueryScreens = yes; then
10841 CPPFLAGS="$ac_save_CPPFLAGS"
10842 LDFLAGS="$ac_save_LDFLAGS"
10843 # LIBS="$ac_save_LIBS"
10846 # if that failed, look in -lXinerama (this is where it is in XFree86 4.1.)
10847 if test "$have_xinerama" = no; then
10849 ac_save_CPPFLAGS="$CPPFLAGS"
10850 ac_save_LDFLAGS="$LDFLAGS"
10851 # ac_save_LIBS="$LIBS"
10853 if test \! -z "$includedir" ; then
10854 CPPFLAGS="$CPPFLAGS -I$includedir"
10856 # note: $X_CFLAGS includes $x_includes
10857 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10859 if test \! -z "$libdir" ; then
10860 LDFLAGS="$LDFLAGS -L$libdir"
10862 # note: $X_LIBS includes $x_libraries
10863 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10865 echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
10866 echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6
10867 if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10870 ac_check_lib_save_LIBS=$LIBS
10871 LIBS="-lXinerama -lXext -lX11 $LIBS"
10872 cat >conftest.$ac_ext <<_ACEOF
10875 cat confdefs.h >>conftest.$ac_ext
10876 cat >>conftest.$ac_ext <<_ACEOF
10877 /* end confdefs.h. */
10879 /* Override any gcc2 internal prototype to avoid an error. */
10883 /* We use char because int might match the return type of a gcc2
10884 builtin and then its argument prototype would still apply. */
10885 char XineramaQueryScreens ();
10889 XineramaQueryScreens ();
10894 rm -f conftest.$ac_objext conftest$ac_exeext
10895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10896 (eval $ac_link) 2>conftest.er1
10898 grep -v '^ *+' conftest.er1 >conftest.err
10900 cat conftest.err >&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } &&
10903 { ac_try='test -z "$ac_c_werror_flag"
10904 || test ! -s conftest.err'
10905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906 (eval $ac_try) 2>&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; } &&
10910 { ac_try='test -s conftest$ac_exeext'
10911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912 (eval $ac_try) 2>&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; }; then
10916 ac_cv_lib_Xinerama_XineramaQueryScreens=yes
10918 echo "$as_me: failed program was:" >&5
10919 sed 's/^/| /' conftest.$ac_ext >&5
10921 ac_cv_lib_Xinerama_XineramaQueryScreens=no
10923 rm -f conftest.err conftest.$ac_objext \
10924 conftest$ac_exeext conftest.$ac_ext
10925 LIBS=$ac_check_lib_save_LIBS
10927 echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
10928 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6
10929 if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then
10930 have_xinerama=yes; XINERAMA_LIBS="-lXinerama"
10935 CPPFLAGS="$ac_save_CPPFLAGS"
10936 LDFLAGS="$ac_save_LDFLAGS"
10937 # LIBS="$ac_save_LIBS"
10942 # if that succeeded, then we've really got it.
10943 if test "$have_xinerama" = yes; then
10944 cat >>confdefs.h <<\_ACEOF
10945 #define HAVE_XINERAMA 1
10950 elif test "$with_xinerama" != no; then
10951 echo "error: must be yes or no: --with-xinerama-ext=$with_xinerama"
10956 ###############################################################################
10958 # Check for the XF86VMODE server extension (for virtual screens.)
10960 ###############################################################################
10963 with_xf86vmode_req=unspecified
10965 # Check whether --with-xf86vmode-ext or --without-xf86vmode-ext was given.
10966 if test "${with_xf86vmode_ext+set}" = set; then
10967 withval="$with_xf86vmode_ext"
10968 with_xf86vmode="$withval"; with_xf86vmode_req="$withval"
10974 case "$with_xf86vmode" in
10979 echo "$as_me:$LINENO: checking for xf86vmode headers" >&5
10980 echo $ECHO_N "checking for xf86vmode headers... $ECHO_C" >&6
10981 d=$with_xf86vmode/include
10982 if test -d $d; then
10983 X_CFLAGS="-I$d $X_CFLAGS"
10984 echo "$as_me:$LINENO: result: $d" >&5
10985 echo "${ECHO_T}$d" >&6
10987 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10988 echo "${ECHO_T}not found ($d: no such directory)" >&6
10991 echo "$as_me:$LINENO: checking for xf86vmode libs" >&5
10992 echo $ECHO_N "checking for xf86vmode libs... $ECHO_C" >&6
10993 d=$with_xf86vmode/lib
10994 if test -d $d; then
10995 X_LIBS="-L$d $X_LIBS"
10996 echo "$as_me:$LINENO: result: $d" >&5
10997 echo "${ECHO_T}$d" >&6
10999 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11000 echo "${ECHO_T}not found ($d: no such directory)" >&6
11003 # replace the directory string with "yes".
11004 with_xf86vmode_req="yes"
11005 with_xf86vmode=$with_xf86vmode_req
11010 echo "error: argument to --with-xf86vmode-ext must be \"yes\", \"no\", or a directory."
11011 echo " If it is a directory, then \`DIR/include' will be added to"
11012 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11020 if test "$with_xf86vmode" = yes; then
11022 # first check for xf86vmode.h
11024 ac_save_CPPFLAGS="$CPPFLAGS"
11025 if test \! -z "$includedir" ; then
11026 CPPFLAGS="$CPPFLAGS -I$includedir"
11028 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11029 echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
11030 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6
11031 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
11032 echo $ECHO_N "(cached) $ECHO_C" >&6
11034 cat >conftest.$ac_ext <<_ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h. */
11040 #include <X11/Xlib.h>
11042 #include <X11/extensions/xf86vmode.h>
11044 rm -f conftest.$ac_objext
11045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11046 (eval $ac_compile) 2>conftest.er1
11048 grep -v '^ *+' conftest.er1 >conftest.err
11050 cat conftest.err >&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); } &&
11053 { ac_try='test -z "$ac_c_werror_flag"
11054 || test ! -s conftest.err'
11055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11056 (eval $ac_try) 2>&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; } &&
11060 { ac_try='test -s conftest.$ac_objext'
11061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11062 (eval $ac_try) 2>&5
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); }; }; then
11066 ac_cv_header_X11_extensions_xf86vmode_h=yes
11068 echo "$as_me: failed program was:" >&5
11069 sed 's/^/| /' conftest.$ac_ext >&5
11071 ac_cv_header_X11_extensions_xf86vmode_h=no
11073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11075 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
11076 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6
11077 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
11082 CPPFLAGS="$ac_save_CPPFLAGS"
11084 # if that succeeded, then check for the -lXxf86vm
11085 if test "$have_xf86vmode" = yes; then
11088 ac_save_CPPFLAGS="$CPPFLAGS"
11089 ac_save_LDFLAGS="$LDFLAGS"
11090 # ac_save_LIBS="$LIBS"
11092 if test \! -z "$includedir" ; then
11093 CPPFLAGS="$CPPFLAGS -I$includedir"
11095 # note: $X_CFLAGS includes $x_includes
11096 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11098 if test \! -z "$libdir" ; then
11099 LDFLAGS="$LDFLAGS -L$libdir"
11101 # note: $X_LIBS includes $x_libraries
11102 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11104 echo "$as_me:$LINENO: checking for XF86VidModeGetViewPort in -lXxf86vm" >&5
11105 echo $ECHO_N "checking for XF86VidModeGetViewPort in -lXxf86vm... $ECHO_C" >&6
11106 if test "${ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort+set}" = set; then
11107 echo $ECHO_N "(cached) $ECHO_C" >&6
11109 ac_check_lib_save_LIBS=$LIBS
11110 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
11111 cat >conftest.$ac_ext <<_ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11118 /* Override any gcc2 internal prototype to avoid an error. */
11122 /* We use char because int might match the return type of a gcc2
11123 builtin and then its argument prototype would still apply. */
11124 char XF86VidModeGetViewPort ();
11128 XF86VidModeGetViewPort ();
11133 rm -f conftest.$ac_objext conftest$ac_exeext
11134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11135 (eval $ac_link) 2>conftest.er1
11137 grep -v '^ *+' conftest.er1 >conftest.err
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } &&
11142 { ac_try='test -z "$ac_c_werror_flag"
11143 || test ! -s conftest.err'
11144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145 (eval $ac_try) 2>&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; } &&
11149 { ac_try='test -s conftest$ac_exeext'
11150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151 (eval $ac_try) 2>&5
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }; then
11155 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=yes
11157 echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11160 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=no
11162 rm -f conftest.err conftest.$ac_objext \
11163 conftest$ac_exeext conftest.$ac_ext
11164 LIBS=$ac_check_lib_save_LIBS
11166 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&5
11167 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&6
11168 if test $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort = yes; then
11169 have_xf86vmode=yes;
11170 VIDMODE_LIBS="-lXxf86vm";
11171 SAVER_LIBS="$SAVER_LIBS $VIDMODE_LIBS"
11176 CPPFLAGS="$ac_save_CPPFLAGS"
11177 LDFLAGS="$ac_save_LDFLAGS"
11178 # LIBS="$ac_save_LIBS"
11182 # if that succeeded, then we've really got it.
11183 if test "$have_xf86vmode" = yes; then
11184 cat >>confdefs.h <<\_ACEOF
11185 #define HAVE_XF86VMODE 1
11190 elif test "$with_xf86vmode" != no; then
11191 echo "error: must be yes or no: --with-xf86vmode-ext=$with_xf86vmode"
11196 ###############################################################################
11198 # Check for the XF86VMODE server extension (for gamma fading.)
11200 ###############################################################################
11203 have_xf86gamma_ramp=no
11204 with_xf86gamma_req=unspecified
11206 # Check whether --with-xf86gamma-ext or --without-xf86gamma-ext was given.
11207 if test "${with_xf86gamma_ext+set}" = set; then
11208 withval="$with_xf86gamma_ext"
11209 with_xf86gamma="$withval"; with_xf86gamma_req="$withval"
11215 case "$with_xf86gamma" in
11220 echo "$as_me:$LINENO: checking for xf86gamma headers" >&5
11221 echo $ECHO_N "checking for xf86gamma headers... $ECHO_C" >&6
11222 d=$with_xf86gamma/include
11223 if test -d $d; then
11224 X_CFLAGS="-I$d $X_CFLAGS"
11225 echo "$as_me:$LINENO: result: $d" >&5
11226 echo "${ECHO_T}$d" >&6
11228 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11229 echo "${ECHO_T}not found ($d: no such directory)" >&6
11232 echo "$as_me:$LINENO: checking for xf86gamma libs" >&5
11233 echo $ECHO_N "checking for xf86gamma libs... $ECHO_C" >&6
11234 d=$with_xf86gamma/lib
11235 if test -d $d; then
11236 X_LIBS="-L$d $X_LIBS"
11237 echo "$as_me:$LINENO: result: $d" >&5
11238 echo "${ECHO_T}$d" >&6
11240 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11241 echo "${ECHO_T}not found ($d: no such directory)" >&6
11244 # replace the directory string with "yes".
11245 with_xf86gamma_req="yes"
11246 with_xf86gamma=$with_xf86gamma_req
11251 echo "error: argument to --with-xf86gamma-ext must be \"yes\", \"no\", or a directory."
11252 echo " If it is a directory, then \`DIR/include' will be added to"
11253 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11259 if test "$with_xf86gamma" = yes; then
11261 # first check for xf86vmode.h, if we haven't already
11262 if test "$have_xf86vmode" = yes; then
11266 ac_save_CPPFLAGS="$CPPFLAGS"
11267 if test \! -z "$includedir" ; then
11268 CPPFLAGS="$CPPFLAGS -I$includedir"
11270 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11271 echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
11272 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6
11273 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 cat >conftest.$ac_ext <<_ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h. */
11282 #include <X11/Xlib.h>
11284 #include <X11/extensions/xf86vmode.h>
11286 rm -f conftest.$ac_objext
11287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11288 (eval $ac_compile) 2>conftest.er1
11290 grep -v '^ *+' conftest.er1 >conftest.err
11292 cat conftest.err >&5
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); } &&
11295 { ac_try='test -z "$ac_c_werror_flag"
11296 || test ! -s conftest.err'
11297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11298 (eval $ac_try) 2>&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }; } &&
11302 { ac_try='test -s conftest.$ac_objext'
11303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11304 (eval $ac_try) 2>&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); }; }; then
11308 ac_cv_header_X11_extensions_xf86vmode_h=yes
11310 echo "$as_me: failed program was:" >&5
11311 sed 's/^/| /' conftest.$ac_ext >&5
11313 ac_cv_header_X11_extensions_xf86vmode_h=no
11315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11317 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
11318 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6
11319 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
11324 CPPFLAGS="$ac_save_CPPFLAGS"
11327 # if that succeeded, then check for the -lXxf86vm
11328 if test "$have_xf86gamma" = yes; then
11331 ac_save_CPPFLAGS="$CPPFLAGS"
11332 ac_save_LDFLAGS="$LDFLAGS"
11333 # ac_save_LIBS="$LIBS"
11335 if test \! -z "$includedir" ; then
11336 CPPFLAGS="$CPPFLAGS -I$includedir"
11338 # note: $X_CFLAGS includes $x_includes
11339 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11341 if test \! -z "$libdir" ; then
11342 LDFLAGS="$LDFLAGS -L$libdir"
11344 # note: $X_LIBS includes $x_libraries
11345 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11347 echo "$as_me:$LINENO: checking for XF86VidModeSetGamma in -lXxf86vm" >&5
11348 echo $ECHO_N "checking for XF86VidModeSetGamma in -lXxf86vm... $ECHO_C" >&6
11349 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGamma+set}" = set; then
11350 echo $ECHO_N "(cached) $ECHO_C" >&6
11352 ac_check_lib_save_LIBS=$LIBS
11353 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
11354 cat >conftest.$ac_ext <<_ACEOF
11357 cat confdefs.h >>conftest.$ac_ext
11358 cat >>conftest.$ac_ext <<_ACEOF
11359 /* end confdefs.h. */
11361 /* Override any gcc2 internal prototype to avoid an error. */
11365 /* We use char because int might match the return type of a gcc2
11366 builtin and then its argument prototype would still apply. */
11367 char XF86VidModeSetGamma ();
11371 XF86VidModeSetGamma ();
11376 rm -f conftest.$ac_objext conftest$ac_exeext
11377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11378 (eval $ac_link) 2>conftest.er1
11380 grep -v '^ *+' conftest.er1 >conftest.err
11382 cat conftest.err >&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); } &&
11385 { ac_try='test -z "$ac_c_werror_flag"
11386 || test ! -s conftest.err'
11387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388 (eval $ac_try) 2>&5
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); }; } &&
11392 { ac_try='test -s conftest$ac_exeext'
11393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11394 (eval $ac_try) 2>&5
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); }; }; then
11398 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=yes
11400 echo "$as_me: failed program was:" >&5
11401 sed 's/^/| /' conftest.$ac_ext >&5
11403 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=no
11405 rm -f conftest.err conftest.$ac_objext \
11406 conftest$ac_exeext conftest.$ac_ext
11407 LIBS=$ac_check_lib_save_LIBS
11409 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&5
11410 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&6
11411 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma = yes; then
11417 CPPFLAGS="$ac_save_CPPFLAGS"
11418 LDFLAGS="$ac_save_LDFLAGS"
11419 # LIBS="$ac_save_LIBS"
11423 # check for the Ramp versions of the functions too.
11424 if test "$have_xf86gamma" = yes; then
11425 have_xf86gamma_ramp=no
11427 ac_save_CPPFLAGS="$CPPFLAGS"
11428 ac_save_LDFLAGS="$LDFLAGS"
11429 # ac_save_LIBS="$LIBS"
11431 if test \! -z "$includedir" ; then
11432 CPPFLAGS="$CPPFLAGS -I$includedir"
11434 # note: $X_CFLAGS includes $x_includes
11435 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11437 if test \! -z "$libdir" ; then
11438 LDFLAGS="$LDFLAGS -L$libdir"
11440 # note: $X_LIBS includes $x_libraries
11441 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11443 echo "$as_me:$LINENO: checking for XF86VidModeSetGammaRamp in -lXxf86vm" >&5
11444 echo $ECHO_N "checking for XF86VidModeSetGammaRamp in -lXxf86vm... $ECHO_C" >&6
11445 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp+set}" = set; then
11446 echo $ECHO_N "(cached) $ECHO_C" >&6
11448 ac_check_lib_save_LIBS=$LIBS
11449 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
11450 cat >conftest.$ac_ext <<_ACEOF
11453 cat confdefs.h >>conftest.$ac_ext
11454 cat >>conftest.$ac_ext <<_ACEOF
11455 /* end confdefs.h. */
11457 /* Override any gcc2 internal prototype to avoid an error. */
11461 /* We use char because int might match the return type of a gcc2
11462 builtin and then its argument prototype would still apply. */
11463 char XF86VidModeSetGammaRamp ();
11467 XF86VidModeSetGammaRamp ();
11472 rm -f conftest.$ac_objext conftest$ac_exeext
11473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11474 (eval $ac_link) 2>conftest.er1
11476 grep -v '^ *+' conftest.er1 >conftest.err
11478 cat conftest.err >&5
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); } &&
11481 { ac_try='test -z "$ac_c_werror_flag"
11482 || test ! -s conftest.err'
11483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484 (eval $ac_try) 2>&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); }; } &&
11488 { ac_try='test -s conftest$ac_exeext'
11489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490 (eval $ac_try) 2>&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; }; then
11494 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=yes
11496 echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.$ac_ext >&5
11499 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=no
11501 rm -f conftest.err conftest.$ac_objext \
11502 conftest$ac_exeext conftest.$ac_ext
11503 LIBS=$ac_check_lib_save_LIBS
11505 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&5
11506 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&6
11507 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp = yes; then
11508 have_xf86gamma_ramp=yes
11513 CPPFLAGS="$ac_save_CPPFLAGS"
11514 LDFLAGS="$ac_save_LDFLAGS"
11515 # LIBS="$ac_save_LIBS"
11519 # if those tests succeeded, then we've really got the functions.
11520 if test "$have_xf86gamma" = yes; then
11521 cat >>confdefs.h <<\_ACEOF
11522 #define HAVE_XF86VMODE_GAMMA 1
11527 if test "$have_xf86gamma_ramp" = yes; then
11528 cat >>confdefs.h <<\_ACEOF
11529 #define HAVE_XF86VMODE_GAMMA_RAMP 1
11534 # pull in the lib, if we haven't already
11535 if test "$have_xf86gamma" = yes -a "$have_xf86vmode" = no; then
11536 SAVER_LIBS="$SAVER_LIBS -lXxf86vm"
11539 elif test "$with_xf86gamma" != no; then
11540 echo "error: must be yes or no: --with-xf86gamma-ext=$with_xf86vmode"
11545 ###############################################################################
11547 # Check for the RANDR (Resize and Rotate) server extension.
11549 # We need this to detect when the resolution of the desktop
11550 # has changed out from under us (this is a newer, different
11551 # mechanism than the XF86VMODE virtual viewports.)
11553 ###############################################################################
11556 with_randr_req=unspecified
11558 # Check whether --with-randr-ext or --without-randr-ext was given.
11559 if test "${with_randr_ext+set}" = set; then
11560 withval="$with_randr_ext"
11561 with_randr="$withval"; with_randr_req="$withval"
11567 case "$with_randr" in
11572 echo "$as_me:$LINENO: checking for RANDR headers" >&5
11573 echo $ECHO_N "checking for RANDR headers... $ECHO_C" >&6
11574 d=$with_randr/include
11575 if test -d $d; then
11576 X_CFLAGS="-I$d $X_CFLAGS"
11577 echo "$as_me:$LINENO: result: $d" >&5
11578 echo "${ECHO_T}$d" >&6
11580 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11581 echo "${ECHO_T}not found ($d: no such directory)" >&6
11584 echo "$as_me:$LINENO: checking for RANDR libs" >&5
11585 echo $ECHO_N "checking for RANDR libs... $ECHO_C" >&6
11587 if test -d $d; then
11588 X_LIBS="-L$d $X_LIBS"
11589 echo "$as_me:$LINENO: result: $d" >&5
11590 echo "${ECHO_T}$d" >&6
11592 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11593 echo "${ECHO_T}not found ($d: no such directory)" >&6
11596 # replace the directory string with "yes".
11597 with_randr_req="yes"
11598 with_randr=$with_randr_req
11603 echo "error: argument to --with-randr-ext must be \"yes\", \"no\", or a directory."
11604 echo " If it is a directory, then \`DIR/include' will be added to"
11605 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11611 if test "$with_randr" = yes; then
11613 # first check for Randr.h
11615 ac_save_CPPFLAGS="$CPPFLAGS"
11616 if test \! -z "$includedir" ; then
11617 CPPFLAGS="$CPPFLAGS -I$includedir"
11619 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11620 echo "$as_me:$LINENO: checking for X11/extensions/Xrandr.h" >&5
11621 echo $ECHO_N "checking for X11/extensions/Xrandr.h... $ECHO_C" >&6
11622 if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11625 cat >conftest.$ac_ext <<_ACEOF
11628 cat confdefs.h >>conftest.$ac_ext
11629 cat >>conftest.$ac_ext <<_ACEOF
11630 /* end confdefs.h. */
11631 #include <X11/Xlib.h>
11633 #include <X11/extensions/Xrandr.h>
11635 rm -f conftest.$ac_objext
11636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11637 (eval $ac_compile) 2>conftest.er1
11639 grep -v '^ *+' conftest.er1 >conftest.err
11641 cat conftest.err >&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); } &&
11644 { ac_try='test -z "$ac_c_werror_flag"
11645 || test ! -s conftest.err'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; } &&
11651 { ac_try='test -s conftest.$ac_objext'
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; }; then
11657 ac_cv_header_X11_extensions_Xrandr_h=yes
11659 echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11662 ac_cv_header_X11_extensions_Xrandr_h=no
11664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11666 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrandr_h" >&5
11667 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xrandr_h" >&6
11668 if test $ac_cv_header_X11_extensions_Xrandr_h = yes; then
11673 CPPFLAGS="$ac_save_CPPFLAGS"
11675 # if that succeeded, then check for the XRR code in the libraries
11676 if test "$have_randr" = yes; then
11678 # RANDR probably needs -lXrender
11681 ac_save_CPPFLAGS="$CPPFLAGS"
11682 ac_save_LDFLAGS="$LDFLAGS"
11683 # ac_save_LIBS="$LIBS"
11685 if test \! -z "$includedir" ; then
11686 CPPFLAGS="$CPPFLAGS -I$includedir"
11688 # note: $X_CFLAGS includes $x_includes
11689 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11691 if test \! -z "$libdir" ; then
11692 LDFLAGS="$LDFLAGS -L$libdir"
11694 # note: $X_LIBS includes $x_libraries
11695 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11697 echo "$as_me:$LINENO: checking for XRenderSetSubpixelOrder in -lXrender" >&5
11698 echo $ECHO_N "checking for XRenderSetSubpixelOrder in -lXrender... $ECHO_C" >&6
11699 if test "${ac_cv_lib_Xrender_XRenderSetSubpixelOrder+set}" = set; then
11700 echo $ECHO_N "(cached) $ECHO_C" >&6
11702 ac_check_lib_save_LIBS=$LIBS
11703 LIBS="-lXrender -lXext -lX11 $LIBS"
11704 cat >conftest.$ac_ext <<_ACEOF
11707 cat confdefs.h >>conftest.$ac_ext
11708 cat >>conftest.$ac_ext <<_ACEOF
11709 /* end confdefs.h. */
11711 /* Override any gcc2 internal prototype to avoid an error. */
11715 /* We use char because int might match the return type of a gcc2
11716 builtin and then its argument prototype would still apply. */
11717 char XRenderSetSubpixelOrder ();
11721 XRenderSetSubpixelOrder ();
11726 rm -f conftest.$ac_objext conftest$ac_exeext
11727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11728 (eval $ac_link) 2>conftest.er1
11730 grep -v '^ *+' conftest.er1 >conftest.err
11732 cat conftest.err >&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } &&
11735 { ac_try='test -z "$ac_c_werror_flag"
11736 || test ! -s conftest.err'
11737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738 (eval $ac_try) 2>&5
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; } &&
11742 { ac_try='test -s conftest$ac_exeext'
11743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744 (eval $ac_try) 2>&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }; }; then
11748 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=yes
11750 echo "$as_me: failed program was:" >&5
11751 sed 's/^/| /' conftest.$ac_ext >&5
11753 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=no
11755 rm -f conftest.err conftest.$ac_objext \
11756 conftest$ac_exeext conftest.$ac_ext
11757 LIBS=$ac_check_lib_save_LIBS
11759 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&5
11760 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&6
11761 if test $ac_cv_lib_Xrender_XRenderSetSubpixelOrder = yes; then
11762 xrender_libs="-lXrender"
11767 CPPFLAGS="$ac_save_CPPFLAGS"
11768 LDFLAGS="$ac_save_LDFLAGS"
11769 # LIBS="$ac_save_LIBS"
11772 # first look for RANDR in -lXext
11775 ac_save_CPPFLAGS="$CPPFLAGS"
11776 ac_save_LDFLAGS="$LDFLAGS"
11777 # ac_save_LIBS="$LIBS"
11779 if test \! -z "$includedir" ; then
11780 CPPFLAGS="$CPPFLAGS -I$includedir"
11782 # note: $X_CFLAGS includes $x_includes
11783 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11785 if test \! -z "$libdir" ; then
11786 LDFLAGS="$LDFLAGS -L$libdir"
11788 # note: $X_LIBS includes $x_libraries
11789 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11791 echo "$as_me:$LINENO: checking for XRRGetScreenInfo in -lXext" >&5
11792 echo $ECHO_N "checking for XRRGetScreenInfo in -lXext... $ECHO_C" >&6
11793 if test "${ac_cv_lib_Xext_XRRGetScreenInfo+set}" = set; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11796 ac_check_lib_save_LIBS=$LIBS
11797 LIBS="-lXext $xrender_libs -lXext -lX11 $LIBS"
11798 cat >conftest.$ac_ext <<_ACEOF
11801 cat confdefs.h >>conftest.$ac_ext
11802 cat >>conftest.$ac_ext <<_ACEOF
11803 /* end confdefs.h. */
11805 /* Override any gcc2 internal prototype to avoid an error. */
11809 /* We use char because int might match the return type of a gcc2
11810 builtin and then its argument prototype would still apply. */
11811 char XRRGetScreenInfo ();
11815 XRRGetScreenInfo ();
11820 rm -f conftest.$ac_objext conftest$ac_exeext
11821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11822 (eval $ac_link) 2>conftest.er1
11824 grep -v '^ *+' conftest.er1 >conftest.err
11826 cat conftest.err >&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); } &&
11829 { ac_try='test -z "$ac_c_werror_flag"
11830 || test ! -s conftest.err'
11831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832 (eval $ac_try) 2>&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); }; } &&
11836 { ac_try='test -s conftest$ac_exeext'
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; }; then
11842 ac_cv_lib_Xext_XRRGetScreenInfo=yes
11844 echo "$as_me: failed program was:" >&5
11845 sed 's/^/| /' conftest.$ac_ext >&5
11847 ac_cv_lib_Xext_XRRGetScreenInfo=no
11849 rm -f conftest.err conftest.$ac_objext \
11850 conftest$ac_exeext conftest.$ac_ext
11851 LIBS=$ac_check_lib_save_LIBS
11853 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XRRGetScreenInfo" >&5
11854 echo "${ECHO_T}$ac_cv_lib_Xext_XRRGetScreenInfo" >&6
11855 if test $ac_cv_lib_Xext_XRRGetScreenInfo = yes; then
11856 have_randr=yes; SAVER_LIBS="$SAVER_LIBS $xrender_libs"
11861 CPPFLAGS="$ac_save_CPPFLAGS"
11862 LDFLAGS="$ac_save_LDFLAGS"
11863 # LIBS="$ac_save_LIBS"
11866 # if that failed, look in -lXrandr
11867 if test "$have_randr" = no; then
11869 ac_save_CPPFLAGS="$CPPFLAGS"
11870 ac_save_LDFLAGS="$LDFLAGS"
11871 # ac_save_LIBS="$LIBS"
11873 if test \! -z "$includedir" ; then
11874 CPPFLAGS="$CPPFLAGS -I$includedir"
11876 # note: $X_CFLAGS includes $x_includes
11877 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11879 if test \! -z "$libdir" ; then
11880 LDFLAGS="$LDFLAGS -L$libdir"
11882 # note: $X_LIBS includes $x_libraries
11883 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11885 echo "$as_me:$LINENO: checking for XRRGetScreenInfo in -lXrandr" >&5
11886 echo $ECHO_N "checking for XRRGetScreenInfo in -lXrandr... $ECHO_C" >&6
11887 if test "${ac_cv_lib_Xrandr_XRRGetScreenInfo+set}" = set; then
11888 echo $ECHO_N "(cached) $ECHO_C" >&6
11890 ac_check_lib_save_LIBS=$LIBS
11891 LIBS="-lXrandr $xrender_libs -lXext -lX11 $LIBS"
11892 cat >conftest.$ac_ext <<_ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11899 /* Override any gcc2 internal prototype to avoid an error. */
11903 /* We use char because int might match the return type of a gcc2
11904 builtin and then its argument prototype would still apply. */
11905 char XRRGetScreenInfo ();
11909 XRRGetScreenInfo ();
11914 rm -f conftest.$ac_objext conftest$ac_exeext
11915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11916 (eval $ac_link) 2>conftest.er1
11918 grep -v '^ *+' conftest.er1 >conftest.err
11920 cat conftest.err >&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); } &&
11923 { ac_try='test -z "$ac_c_werror_flag"
11924 || test ! -s conftest.err'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; } &&
11930 { ac_try='test -s conftest$ac_exeext'
11931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11932 (eval $ac_try) 2>&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; }; then
11936 ac_cv_lib_Xrandr_XRRGetScreenInfo=yes
11938 echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11941 ac_cv_lib_Xrandr_XRRGetScreenInfo=no
11943 rm -f conftest.err conftest.$ac_objext \
11944 conftest$ac_exeext conftest.$ac_ext
11945 LIBS=$ac_check_lib_save_LIBS
11947 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRGetScreenInfo" >&5
11948 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRGetScreenInfo" >&6
11949 if test $ac_cv_lib_Xrandr_XRRGetScreenInfo = yes; then
11950 have_randr=yes; SAVER_LIBS="$SAVER_LIBS -lXrandr $xrender_libs"
11955 CPPFLAGS="$ac_save_CPPFLAGS"
11956 LDFLAGS="$ac_save_LDFLAGS"
11957 # LIBS="$ac_save_LIBS"
11962 # if that succeeded, then we've really got it.
11963 if test "$have_randr" = yes; then
11964 cat >>confdefs.h <<\_ACEOF
11965 #define HAVE_RANDR 1
11970 elif test "$with_randr" != no; then
11971 echo "error: must be yes or no: --with-randr-ext=$with_randr"
11976 ###############################################################################
11978 # Check for XF86MiscSetGrabKeysState (but only bother if we are already
11979 # using other XF86 stuff.)
11981 ###############################################################################
11983 have_xf86miscsetgrabkeysstate=no
11984 if test "$have_xf86gamma" = yes -o "$have_xf86vmode" = yes; then
11986 ac_save_CPPFLAGS="$CPPFLAGS"
11987 ac_save_LDFLAGS="$LDFLAGS"
11988 # ac_save_LIBS="$LIBS"
11990 if test \! -z "$includedir" ; then
11991 CPPFLAGS="$CPPFLAGS -I$includedir"
11993 # note: $X_CFLAGS includes $x_includes
11994 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11996 if test \! -z "$libdir" ; then
11997 LDFLAGS="$LDFLAGS -L$libdir"
11999 # note: $X_LIBS includes $x_libraries
12000 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12002 echo "$as_me:$LINENO: checking for XF86MiscSetGrabKeysState in -lXxf86misc" >&5
12003 echo $ECHO_N "checking for XF86MiscSetGrabKeysState in -lXxf86misc... $ECHO_C" >&6
12004 if test "${ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState+set}" = set; then
12005 echo $ECHO_N "(cached) $ECHO_C" >&6
12007 ac_check_lib_save_LIBS=$LIBS
12008 LIBS="-lXxf86misc -lXext -lX11 $LIBS"
12009 cat >conftest.$ac_ext <<_ACEOF
12012 cat confdefs.h >>conftest.$ac_ext
12013 cat >>conftest.$ac_ext <<_ACEOF
12014 /* end confdefs.h. */
12016 /* Override any gcc2 internal prototype to avoid an error. */
12020 /* We use char because int might match the return type of a gcc2
12021 builtin and then its argument prototype would still apply. */
12022 char XF86MiscSetGrabKeysState ();
12026 XF86MiscSetGrabKeysState ();
12031 rm -f conftest.$ac_objext conftest$ac_exeext
12032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12033 (eval $ac_link) 2>conftest.er1
12035 grep -v '^ *+' conftest.er1 >conftest.err
12037 cat conftest.err >&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } &&
12040 { ac_try='test -z "$ac_c_werror_flag"
12041 || test ! -s conftest.err'
12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; } &&
12047 { ac_try='test -s conftest$ac_exeext'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; }; then
12053 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=yes
12055 echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.$ac_ext >&5
12058 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=no
12060 rm -f conftest.err conftest.$ac_objext \
12061 conftest$ac_exeext conftest.$ac_ext
12062 LIBS=$ac_check_lib_save_LIBS
12064 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&5
12065 echo "${ECHO_T}$ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&6
12066 if test $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState = yes; then
12067 have_xf86miscsetgrabkeysstate=yes
12072 CPPFLAGS="$ac_save_CPPFLAGS"
12073 LDFLAGS="$ac_save_LDFLAGS"
12074 # LIBS="$ac_save_LIBS"
12076 if test "$have_xf86miscsetgrabkeysstate" = yes ; then
12077 SAVER_LIBS="$SAVER_LIBS -lXxf86misc"
12078 cat >>confdefs.h <<\_ACEOF
12079 #define HAVE_XF86MISCSETGRABKEYSSTATE 1
12086 ###############################################################################
12088 # Check for HP XHPDisableReset and XHPEnableReset.
12090 ###############################################################################
12092 echo "$as_me:$LINENO: checking for XHPDisableReset in X11/XHPlib.h" >&5
12093 echo $ECHO_N "checking for XHPDisableReset in X11/XHPlib.h... $ECHO_C" >&6
12095 ac_save_CPPFLAGS="$CPPFLAGS"
12096 if test \! -z "$includedir" ; then
12097 CPPFLAGS="$CPPFLAGS -I$includedir"
12099 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12100 cat >conftest.$ac_ext <<_ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12106 #include <X11/XHPlib.h>
12109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12110 $EGREP "XHPDisableReset" >/dev/null 2>&1; then
12111 cat >>confdefs.h <<\_ACEOF
12112 #define HAVE_XHPDISABLERESET 1
12115 SAVER_LIBS="-lXhp11 $SAVER_LIBS"
12116 echo "$as_me:$LINENO: result: yes" >&5
12117 echo "${ECHO_T}yes" >&6
12119 echo "$as_me:$LINENO: result: no" >&5
12120 echo "${ECHO_T}no" >&6
12124 CPPFLAGS="$ac_save_CPPFLAGS"
12127 ###############################################################################
12129 # Check for /proc/interrupts.
12131 ###############################################################################
12133 have_proc_interrupts=no
12134 with_proc_interrupts_req=unspecified
12136 # Check whether --with-proc-interrupts or --without-proc-interrupts was given.
12137 if test "${with_proc_interrupts+set}" = set; then
12138 withval="$with_proc_interrupts"
12139 with_proc_interrupts="$withval"; with_proc_interrupts_req="$withval"
12141 with_proc_interrupts=yes
12144 if test "$with_proc_interrupts" = yes; then
12146 echo "$as_me:$LINENO: checking whether /proc/interrupts contains keyboard data" >&5
12147 echo $ECHO_N "checking whether /proc/interrupts contains keyboard data... $ECHO_C" >&6
12148 if test "${ac_cv_have_proc_interrupts+set}" = set; then
12149 echo $ECHO_N "(cached) $ECHO_C" >&6
12151 ac_cv_have_proc_interrupts=no
12152 if grep 'keyboard\|i8042' /proc/interrupts >/dev/null 2>&1 ; then
12153 ac_cv_have_proc_interrupts=yes
12157 echo "$as_me:$LINENO: result: $ac_cv_have_proc_interrupts" >&5
12158 echo "${ECHO_T}$ac_cv_have_proc_interrupts" >&6
12159 have_proc_interrupts=$ac_cv_have_proc_interrupts
12161 if test "$have_proc_interrupts" = yes; then
12162 cat >>confdefs.h <<\_ACEOF
12163 #define HAVE_PROC_INTERRUPTS 1
12168 elif test "$with_proc_interrupts" != no; then
12169 echo "error: must be yes or no: --with-proc-interrupts=$with_proc_interrupts"
12174 ###############################################################################
12176 # The --enable-locking option
12178 ###############################################################################
12180 # Check whether --enable-locking or --disable-locking was given.
12181 if test "${enable_locking+set}" = set; then
12182 enableval="$enable_locking"
12183 enable_locking="$enableval"
12187 if test "$enable_locking" = yes; then
12189 elif test "$enable_locking" = no; then
12190 cat >>confdefs.h <<\_ACEOF
12191 #define NO_LOCKING 1
12195 echo "error: must be yes or no: --enable-locking=$enable_locking"
12199 # We can't lock on MacOS X, so don't even bother compiling in support for it.
12201 if test "$ac_macosx" = yes; then
12202 if test "$enable_locking" = yes; then
12203 echo "$as_me:$LINENO: result: locking disabled: it doesn't work on MacOS X" >&5
12204 echo "${ECHO_T}locking disabled: it doesn't work on MacOS X" >&6
12206 cat >>confdefs.h <<\_ACEOF
12207 #define NO_LOCKING 1
12214 ###############################################################################
12216 # The --enable-vt-locking option
12218 ###############################################################################
12220 #ac_vt_lockswitch=no
12221 #AC_ARG_ENABLE(vt-locking,[
12222 # --enable-vt-locking Compile in support for locking Virtual Terminals.
12223 # This is the default if the system supports it, and
12224 # if locking support is included (--enable-locking.)
12225 # --disable-vt-locking Do not allow locking of VTs, even if locking is
12227 # [enable_vt_locking="$enableval"],[enable_vt_locking=yes])
12228 #if test "$enable_vt_locking" = yes; then
12230 # AC_CACHE_CHECK([for the VT_LOCKSWITCH ioctl], ac_cv_vt_lockswitch,
12231 # [AC_TRY_COMPILE([#include <fcntl.h>
12232 # #include <sys/ioctl.h>
12233 # #include <sys/vt.h>],
12234 # [int x = VT_LOCKSWITCH; int y = VT_UNLOCKSWITCH;],
12235 # [ac_cv_vt_lockswitch=yes],
12236 # [ac_cv_vt_lockswitch=no])])
12237 # ac_vt_lockswitch=$ac_cv_vt_lockswitch
12239 #elif test "$enable_vt_locking" = no; then
12242 # echo "error: must be yes or no: --enable-vt-locking=$enable_vt_locking"
12246 #if test "$ac_vt_lockswitch" = yes; then
12247 # AC_DEFINE(HAVE_VT_LOCKSWITCH)
12248 # # the VT_LOCKSWITCH ioctl can only be used when running as root.
12249 # # #### but it doesn't work yet, so don't worry about that for now.
12254 ###############################################################################
12258 ###############################################################################
12262 # Solaris systems tend to come with PAM misconfigured.
12263 # Don't build it by default, even if the headers exist.
12264 with_pam_default=no
12267 # Default to building PAM support on all other systems, if it exists.
12268 with_pam_default=yes
12273 with_pam_req=unspecified
12276 # Check whether --with-pam or --without-pam was given.
12277 if test "${with_pam+set}" = set; then
12278 withval="$with_pam"
12279 with_pam="$withval"; with_pam_req="$withval"
12281 with_pam=$with_pam_default
12285 # Check whether --with-pam_service_name or --without-pam_service_name was given.
12286 if test "${with_pam_service_name+set}" = set; then
12287 withval="$with_pam_service_name"
12288 pam_service_name="$withval"
12290 pam_service_name="xscreensaver"
12294 case "$with_pam" in
12299 echo "$as_me:$LINENO: checking for PAM headers" >&5
12300 echo $ECHO_N "checking for PAM headers... $ECHO_C" >&6
12301 d=$with_pam/include
12302 if test -d $d; then
12303 X_CFLAGS="-I$d $X_CFLAGS"
12304 echo "$as_me:$LINENO: result: $d" >&5
12305 echo "${ECHO_T}$d" >&6
12307 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12308 echo "${ECHO_T}not found ($d: no such directory)" >&6
12311 echo "$as_me:$LINENO: checking for PAM libs" >&5
12312 echo $ECHO_N "checking for PAM libs... $ECHO_C" >&6
12314 if test -d $d; then
12315 X_LIBS="-L$d $X_LIBS"
12316 echo "$as_me:$LINENO: result: $d" >&5
12317 echo "${ECHO_T}$d" >&6
12319 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12320 echo "${ECHO_T}not found ($d: no such directory)" >&6
12323 # replace the directory string with "yes".
12325 with_pam=$with_pam_req
12330 echo "error: argument to --with-pam must be \"yes\", \"no\", or a directory."
12331 echo " If it is a directory, then \`DIR/include' will be added to"
12332 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12338 if test "$enable_locking" = yes -a "$with_pam" = yes; then
12339 echo "$as_me:$LINENO: checking for PAM" >&5
12340 echo $ECHO_N "checking for PAM... $ECHO_C" >&6
12341 if test "${ac_cv_pam+set}" = set; then
12342 echo $ECHO_N "(cached) $ECHO_C" >&6
12345 ac_save_CPPFLAGS="$CPPFLAGS"
12346 if test \! -z "$includedir" ; then
12347 CPPFLAGS="$CPPFLAGS -I$includedir"
12349 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12350 cat >conftest.$ac_ext <<_ACEOF
12353 cat confdefs.h >>conftest.$ac_ext
12354 cat >>conftest.$ac_ext <<_ACEOF
12355 /* end confdefs.h. */
12356 #include <security/pam_appl.h>
12365 rm -f conftest.$ac_objext
12366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12367 (eval $ac_compile) 2>conftest.er1
12369 grep -v '^ *+' conftest.er1 >conftest.err
12371 cat conftest.err >&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } &&
12374 { ac_try='test -z "$ac_c_werror_flag"
12375 || test ! -s conftest.err'
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; } &&
12381 { ac_try='test -s conftest.$ac_objext'
12382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383 (eval $ac_try) 2>&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; }; then
12389 echo "$as_me: failed program was:" >&5
12390 sed 's/^/| /' conftest.$ac_ext >&5
12394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12395 CPPFLAGS="$ac_save_CPPFLAGS"
12397 echo "$as_me:$LINENO: result: $ac_cv_pam" >&5
12398 echo "${ECHO_T}$ac_cv_pam" >&6
12399 if test "$ac_cv_pam" = yes ; then
12401 cat >>confdefs.h <<\_ACEOF
12405 cat >>confdefs.h <<_ACEOF
12406 #define PAM_SERVICE_NAME "$pam_service_name"
12410 PASSWD_LIBS="${PASSWD_LIBS} -lpam"
12412 # libpam typically requires dlopen and dlsym. On FreeBSD,
12413 # those are in libc. On Linux and Solaris, they're in libdl.
12414 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12415 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12416 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12417 echo $ECHO_N "(cached) $ECHO_C" >&6
12419 ac_check_lib_save_LIBS=$LIBS
12421 cat >conftest.$ac_ext <<_ACEOF
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h. */
12428 /* Override any gcc2 internal prototype to avoid an error. */
12432 /* We use char because int might match the return type of a gcc2
12433 builtin and then its argument prototype would still apply. */
12443 rm -f conftest.$ac_objext conftest$ac_exeext
12444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12445 (eval $ac_link) 2>conftest.er1
12447 grep -v '^ *+' conftest.er1 >conftest.err
12449 cat conftest.err >&5
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } &&
12452 { ac_try='test -z "$ac_c_werror_flag"
12453 || test ! -s conftest.err'
12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; } &&
12459 { ac_try='test -s conftest$ac_exeext'
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; }; then
12465 ac_cv_lib_dl_dlopen=yes
12467 echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.$ac_ext >&5
12470 ac_cv_lib_dl_dlopen=no
12472 rm -f conftest.err conftest.$ac_objext \
12473 conftest$ac_exeext conftest.$ac_ext
12474 LIBS=$ac_check_lib_save_LIBS
12476 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12477 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12478 if test $ac_cv_lib_dl_dlopen = yes; then
12479 PASSWD_LIBS="${PASSWD_LIBS} -ldl"
12483 # On Linux, sigtimedwait() is in libc; on Solaris, it's in librt.
12485 echo "$as_me:$LINENO: checking for sigtimedwait in -lc" >&5
12486 echo $ECHO_N "checking for sigtimedwait in -lc... $ECHO_C" >&6
12487 if test "${ac_cv_lib_c_sigtimedwait+set}" = set; then
12488 echo $ECHO_N "(cached) $ECHO_C" >&6
12490 ac_check_lib_save_LIBS=$LIBS
12492 cat >conftest.$ac_ext <<_ACEOF
12495 cat confdefs.h >>conftest.$ac_ext
12496 cat >>conftest.$ac_ext <<_ACEOF
12497 /* end confdefs.h. */
12499 /* Override any gcc2 internal prototype to avoid an error. */
12503 /* We use char because int might match the return type of a gcc2
12504 builtin and then its argument prototype would still apply. */
12505 char sigtimedwait ();
12514 rm -f conftest.$ac_objext conftest$ac_exeext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12516 (eval $ac_link) 2>conftest.er1
12518 grep -v '^ *+' conftest.er1 >conftest.err
12520 cat conftest.err >&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); } &&
12523 { ac_try='test -z "$ac_c_werror_flag"
12524 || test ! -s conftest.err'
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; } &&
12530 { ac_try='test -s conftest$ac_exeext'
12531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532 (eval $ac_try) 2>&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; }; then
12536 ac_cv_lib_c_sigtimedwait=yes
12538 echo "$as_me: failed program was:" >&5
12539 sed 's/^/| /' conftest.$ac_ext >&5
12541 ac_cv_lib_c_sigtimedwait=no
12543 rm -f conftest.err conftest.$ac_objext \
12544 conftest$ac_exeext conftest.$ac_ext
12545 LIBS=$ac_check_lib_save_LIBS
12547 echo "$as_me:$LINENO: result: $ac_cv_lib_c_sigtimedwait" >&5
12548 echo "${ECHO_T}$ac_cv_lib_c_sigtimedwait" >&6
12549 if test $ac_cv_lib_c_sigtimedwait = yes; then
12553 if test "$have_timedwait" = no ; then
12554 echo "$as_me:$LINENO: checking for sigtimedwait in -lrt" >&5
12555 echo $ECHO_N "checking for sigtimedwait in -lrt... $ECHO_C" >&6
12556 if test "${ac_cv_lib_rt_sigtimedwait+set}" = set; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 ac_check_lib_save_LIBS=$LIBS
12561 cat >conftest.$ac_ext <<_ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h. */
12568 /* Override any gcc2 internal prototype to avoid an error. */
12572 /* We use char because int might match the return type of a gcc2
12573 builtin and then its argument prototype would still apply. */
12574 char sigtimedwait ();
12583 rm -f conftest.$ac_objext conftest$ac_exeext
12584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12585 (eval $ac_link) 2>conftest.er1
12587 grep -v '^ *+' conftest.er1 >conftest.err
12589 cat conftest.err >&5
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); } &&
12592 { ac_try='test -z "$ac_c_werror_flag"
12593 || test ! -s conftest.err'
12594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595 (eval $ac_try) 2>&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; } &&
12599 { ac_try='test -s conftest$ac_exeext'
12600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12601 (eval $ac_try) 2>&5
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); }; }; then
12605 ac_cv_lib_rt_sigtimedwait=yes
12607 echo "$as_me: failed program was:" >&5
12608 sed 's/^/| /' conftest.$ac_ext >&5
12610 ac_cv_lib_rt_sigtimedwait=no
12612 rm -f conftest.err conftest.$ac_objext \
12613 conftest$ac_exeext conftest.$ac_ext
12614 LIBS=$ac_check_lib_save_LIBS
12616 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sigtimedwait" >&5
12617 echo "${ECHO_T}$ac_cv_lib_rt_sigtimedwait" >&6
12618 if test $ac_cv_lib_rt_sigtimedwait = yes; then
12619 PASSWD_LIBS="${PASSWD_LIBS} -lrt"
12624 echo "$as_me:$LINENO: checking how to call pam_strerror" >&5
12625 echo $ECHO_N "checking how to call pam_strerror... $ECHO_C" >&6
12626 if test "${ac_cv_pam_strerror_args+set}" = set; then
12627 echo $ECHO_N "(cached) $ECHO_C" >&6
12629 cat >conftest.$ac_ext <<_ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h. */
12636 #include <stdlib.h>
12637 #include <security/pam_appl.h>
12641 pam_handle_t *pamh = 0;
12642 char *s = pam_strerror(pamh, PAM_SUCCESS);
12647 rm -f conftest.$ac_objext
12648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12649 (eval $ac_compile) 2>conftest.er1
12651 grep -v '^ *+' conftest.er1 >conftest.err
12653 cat conftest.err >&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } &&
12656 { ac_try='test -z "$ac_c_werror_flag"
12657 || test ! -s conftest.err'
12658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12659 (eval $ac_try) 2>&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); }; } &&
12663 { ac_try='test -s conftest.$ac_objext'
12664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12665 (eval $ac_try) 2>&5
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; }; then
12669 ac_pam_strerror_args=2
12671 echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.$ac_ext >&5
12674 cat >conftest.$ac_ext <<_ACEOF
12677 cat confdefs.h >>conftest.$ac_ext
12678 cat >>conftest.$ac_ext <<_ACEOF
12679 /* end confdefs.h. */
12681 #include <stdlib.h>
12682 #include <security/pam_appl.h>
12687 pam_strerror(PAM_SUCCESS);
12692 rm -f conftest.$ac_objext
12693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12694 (eval $ac_compile) 2>conftest.er1
12696 grep -v '^ *+' conftest.er1 >conftest.err
12698 cat conftest.err >&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } &&
12701 { ac_try='test -z "$ac_c_werror_flag"
12702 || test ! -s conftest.err'
12703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704 (eval $ac_try) 2>&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; } &&
12708 { ac_try='test -s conftest.$ac_objext'
12709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710 (eval $ac_try) 2>&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; }; then
12714 ac_pam_strerror_args=1
12716 echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12719 ac_pam_strerror_args=0
12721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12724 ac_cv_pam_strerror_args=$ac_pam_strerror_args
12727 ac_pam_strerror_args=$ac_cv_pam_strerror_args
12728 if test "$ac_pam_strerror_args" = 1 ; then
12729 echo "$as_me:$LINENO: result: one argument" >&5
12730 echo "${ECHO_T}one argument" >&6
12731 elif test "$ac_pam_strerror_args" = 2 ; then
12732 cat >>confdefs.h <<\_ACEOF
12733 #define PAM_STRERROR_TWO_ARGS 1
12736 echo "$as_me:$LINENO: result: two arguments" >&5
12737 echo "${ECHO_T}two arguments" >&6
12739 echo "$as_me:$LINENO: result: unknown" >&5
12740 echo "${ECHO_T}unknown" >&6
12746 ###############################################################################
12748 # Check for Kerberos.
12750 ###############################################################################
12754 with_kerberos_req=unspecified
12757 # Check whether --with-kerberos or --without-kerberos was given.
12758 if test "${with_kerberos+set}" = set; then
12759 withval="$with_kerberos"
12760 with_kerberos="$withval"; with_kerberos_req="$withval"
12766 case "$with_kerberos" in
12771 echo "$as_me:$LINENO: checking for Kerberos headers" >&5
12772 echo $ECHO_N "checking for Kerberos headers... $ECHO_C" >&6
12773 d=$with_kerberos/include
12774 if test -d $d; then
12775 X_CFLAGS="-I$d $X_CFLAGS"
12776 echo "$as_me:$LINENO: result: $d" >&5
12777 echo "${ECHO_T}$d" >&6
12779 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12780 echo "${ECHO_T}not found ($d: no such directory)" >&6
12783 echo "$as_me:$LINENO: checking for Kerberos libs" >&5
12784 echo $ECHO_N "checking for Kerberos libs... $ECHO_C" >&6
12785 d=$with_kerberos/lib
12786 if test -d $d; then
12787 X_LIBS="-L$d $X_LIBS"
12788 echo "$as_me:$LINENO: result: $d" >&5
12789 echo "${ECHO_T}$d" >&6
12791 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12792 echo "${ECHO_T}not found ($d: no such directory)" >&6
12795 # replace the directory string with "yes".
12796 with_kerberos_req="yes"
12797 with_kerberos=$with_kerberos_req
12802 echo "error: argument to --with-kerberos must be \"yes\", \"no\", or a directory."
12803 echo " If it is a directory, then \`DIR/include' will be added to"
12804 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12810 if test "$enable_locking" = yes -a "$with_kerberos" = yes; then
12811 echo "$as_me:$LINENO: checking for Kerberos 4" >&5
12812 echo $ECHO_N "checking for Kerberos 4... $ECHO_C" >&6
12813 if test "${ac_cv_kerberos+set}" = set; then
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
12817 ac_save_CPPFLAGS="$CPPFLAGS"
12818 if test \! -z "$includedir" ; then
12819 CPPFLAGS="$CPPFLAGS -I$includedir"
12821 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12822 cat >conftest.$ac_ext <<_ACEOF
12825 cat confdefs.h >>conftest.$ac_ext
12826 cat >>conftest.$ac_ext <<_ACEOF
12827 /* end confdefs.h. */
12837 rm -f conftest.$ac_objext
12838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12839 (eval $ac_compile) 2>conftest.er1
12841 grep -v '^ *+' conftest.er1 >conftest.err
12843 cat conftest.err >&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } &&
12846 { ac_try='test -z "$ac_c_werror_flag"
12847 || test ! -s conftest.err'
12848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849 (eval $ac_try) 2>&5
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); }; } &&
12853 { ac_try='test -s conftest.$ac_objext'
12854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855 (eval $ac_try) 2>&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; }; then
12861 echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12867 CPPFLAGS="$ac_save_CPPFLAGS"
12869 echo "$as_me:$LINENO: result: $ac_cv_kerberos" >&5
12870 echo "${ECHO_T}$ac_cv_kerberos" >&6
12871 echo "$as_me:$LINENO: checking for Kerberos 5" >&5
12872 echo $ECHO_N "checking for Kerberos 5... $ECHO_C" >&6
12873 if test "${ac_cv_kerberos5+set}" = set; then
12874 echo $ECHO_N "(cached) $ECHO_C" >&6
12877 ac_save_CPPFLAGS="$CPPFLAGS"
12878 if test \! -z "$includedir" ; then
12879 CPPFLAGS="$CPPFLAGS -I$includedir"
12881 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12882 cat >conftest.$ac_ext <<_ACEOF
12885 cat confdefs.h >>conftest.$ac_ext
12886 cat >>conftest.$ac_ext <<_ACEOF
12887 /* end confdefs.h. */
12888 #include <kerberosIV/krb.h>
12897 rm -f conftest.$ac_objext
12898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12899 (eval $ac_compile) 2>conftest.er1
12901 grep -v '^ *+' conftest.er1 >conftest.err
12903 cat conftest.err >&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); } &&
12906 { ac_try='test -z "$ac_c_werror_flag"
12907 || test ! -s conftest.err'
12908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12909 (eval $ac_try) 2>&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; } &&
12913 { ac_try='test -s conftest.$ac_objext'
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; }; then
12919 ac_cv_kerberos5=yes
12921 echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12927 CPPFLAGS="$ac_save_CPPFLAGS"
12929 echo "$as_me:$LINENO: result: $ac_cv_kerberos5" >&5
12930 echo "${ECHO_T}$ac_cv_kerberos5" >&6
12932 if test "$ac_cv_kerberos" = yes ; then
12934 cat >>confdefs.h <<\_ACEOF
12935 #define HAVE_KERBEROS 1
12940 if test "$ac_cv_kerberos5" = yes ; then
12942 # Andrew Snare <ajs@pigpond.com> wrote:
12944 # You were assuming that if kerberosV (krb5) was found, then kerberosIV
12945 # (krb4) was also available. This turns out not to be the case with
12946 # mit-krb-1.2.7; apparently backwards-compatibility with KerberosIV
12949 # So, disable kerberosV support if libkrb4 can't be found.
12950 # This is not the best solution, but it makes the compile not fail.
12953 ac_save_CPPFLAGS="$CPPFLAGS"
12954 ac_save_LDFLAGS="$LDFLAGS"
12955 # ac_save_LIBS="$LIBS"
12957 if test \! -z "$includedir" ; then
12958 CPPFLAGS="$CPPFLAGS -I$includedir"
12960 # note: $X_CFLAGS includes $x_includes
12961 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12963 if test \! -z "$libdir" ; then
12964 LDFLAGS="$LDFLAGS -L$libdir"
12966 # note: $X_LIBS includes $x_libraries
12967 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12969 echo "$as_me:$LINENO: checking for krb_get_tf_realm in -lkrb4" >&5
12970 echo $ECHO_N "checking for krb_get_tf_realm in -lkrb4... $ECHO_C" >&6
12971 if test "${ac_cv_lib_krb4_krb_get_tf_realm+set}" = set; then
12972 echo $ECHO_N "(cached) $ECHO_C" >&6
12974 ac_check_lib_save_LIBS=$LIBS
12975 LIBS="-lkrb4 $LIBS"
12976 cat >conftest.$ac_ext <<_ACEOF
12979 cat confdefs.h >>conftest.$ac_ext
12980 cat >>conftest.$ac_ext <<_ACEOF
12981 /* end confdefs.h. */
12983 /* Override any gcc2 internal prototype to avoid an error. */
12987 /* We use char because int might match the return type of a gcc2
12988 builtin and then its argument prototype would still apply. */
12989 char krb_get_tf_realm ();
12993 krb_get_tf_realm ();
12998 rm -f conftest.$ac_objext conftest$ac_exeext
12999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13000 (eval $ac_link) 2>conftest.er1
13002 grep -v '^ *+' conftest.er1 >conftest.err
13004 cat conftest.err >&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); } &&
13007 { ac_try='test -z "$ac_c_werror_flag"
13008 || test ! -s conftest.err'
13009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13010 (eval $ac_try) 2>&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; } &&
13014 { ac_try='test -s conftest$ac_exeext'
13015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016 (eval $ac_try) 2>&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; }; then
13020 ac_cv_lib_krb4_krb_get_tf_realm=yes
13022 echo "$as_me: failed program was:" >&5
13023 sed 's/^/| /' conftest.$ac_ext >&5
13025 ac_cv_lib_krb4_krb_get_tf_realm=no
13027 rm -f conftest.err conftest.$ac_objext \
13028 conftest$ac_exeext conftest.$ac_ext
13029 LIBS=$ac_check_lib_save_LIBS
13031 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_tf_realm" >&5
13032 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_tf_realm" >&6
13033 if test $ac_cv_lib_krb4_krb_get_tf_realm = yes; then
13039 CPPFLAGS="$ac_save_CPPFLAGS"
13040 LDFLAGS="$ac_save_LDFLAGS"
13041 # LIBS="$ac_save_LIBS"
13043 if test "$have_kerberos" = yes ; then
13045 cat >>confdefs.h <<\_ACEOF
13046 #define HAVE_KERBEROS 1
13049 cat >>confdefs.h <<\_ACEOF
13050 #define HAVE_KERBEROS5 1
13055 { echo "$as_me:$LINENO: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&5
13056 echo "$as_me: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&2;}
13061 if test "$have_kerberos5" = yes ; then
13062 # from Matt Knopp <mhat@infocalypse.netlag.com>
13063 # (who got it from amu@mit.edu)
13065 PASSWD_LIBS="$PASSWD_LIBS -lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
13067 # jwz: MacOS X uses -lkrb5, but not -lcrypt
13069 ac_save_CPPFLAGS="$CPPFLAGS"
13070 ac_save_LDFLAGS="$LDFLAGS"
13071 # ac_save_LIBS="$LIBS"
13073 if test \! -z "$includedir" ; then
13074 CPPFLAGS="$CPPFLAGS -I$includedir"
13076 # note: $X_CFLAGS includes $x_includes
13077 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13079 if test \! -z "$libdir" ; then
13080 LDFLAGS="$LDFLAGS -L$libdir"
13082 # note: $X_LIBS includes $x_libraries
13083 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13085 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
13086 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
13087 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
13090 ac_check_lib_save_LIBS=$LIBS
13091 LIBS="-lcrypt $LIBS"
13092 cat >conftest.$ac_ext <<_ACEOF
13095 cat confdefs.h >>conftest.$ac_ext
13096 cat >>conftest.$ac_ext <<_ACEOF
13097 /* end confdefs.h. */
13099 /* Override any gcc2 internal prototype to avoid an error. */
13103 /* We use char because int might match the return type of a gcc2
13104 builtin and then its argument prototype would still apply. */
13114 rm -f conftest.$ac_objext conftest$ac_exeext
13115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13116 (eval $ac_link) 2>conftest.er1
13118 grep -v '^ *+' conftest.er1 >conftest.err
13120 cat conftest.err >&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } &&
13123 { ac_try='test -z "$ac_c_werror_flag"
13124 || test ! -s conftest.err'
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; } &&
13130 { ac_try='test -s conftest$ac_exeext'
13131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132 (eval $ac_try) 2>&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; }; then
13136 ac_cv_lib_crypt_crypt=yes
13138 echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.$ac_ext >&5
13141 ac_cv_lib_crypt_crypt=no
13143 rm -f conftest.err conftest.$ac_objext \
13144 conftest$ac_exeext conftest.$ac_ext
13145 LIBS=$ac_check_lib_save_LIBS
13147 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
13148 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
13149 if test $ac_cv_lib_crypt_crypt = yes; then
13150 PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
13153 CPPFLAGS="$ac_save_CPPFLAGS"
13154 LDFLAGS="$ac_save_LDFLAGS"
13155 # LIBS="$ac_save_LIBS"
13158 elif test "$have_kerberos" = yes ; then
13159 # from Tim Showalter <tjs@psaux.com> for FreeBSD 4.2
13160 PASSWD_LIBS="$PASSWD_LIBS -lkrb -ldes -lcom_err"
13163 if test "$have_kerberos" = yes ; then
13164 echo "$as_me:$LINENO: checking for res_search" >&5
13165 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
13166 if test "${ac_cv_func_res_search+set}" = set; then
13167 echo $ECHO_N "(cached) $ECHO_C" >&6
13169 cat >conftest.$ac_ext <<_ACEOF
13172 cat confdefs.h >>conftest.$ac_ext
13173 cat >>conftest.$ac_ext <<_ACEOF
13174 /* end confdefs.h. */
13175 /* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
13176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13177 #define res_search innocuous_res_search
13179 /* System header to define __stub macros and hopefully few prototypes,
13180 which can conflict with char res_search (); below.
13181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13182 <limits.h> exists even on freestanding compilers. */
13185 # include <limits.h>
13187 # include <assert.h>
13192 /* Override any gcc2 internal prototype to avoid an error. */
13197 /* We use char because int might match the return type of a gcc2
13198 builtin and then its argument prototype would still apply. */
13199 char res_search ();
13200 /* The GNU C library defines this for functions which it implements
13201 to always fail with ENOSYS. Some functions are actually named
13202 something starting with __ and the normal name is an alias. */
13203 #if defined (__stub_res_search) || defined (__stub___res_search)
13206 char (*f) () = res_search;
13215 return f != res_search;
13220 rm -f conftest.$ac_objext conftest$ac_exeext
13221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13222 (eval $ac_link) 2>conftest.er1
13224 grep -v '^ *+' conftest.er1 >conftest.err
13226 cat conftest.err >&5
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); } &&
13229 { ac_try='test -z "$ac_c_werror_flag"
13230 || test ! -s conftest.err'
13231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13232 (eval $ac_try) 2>&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); }; } &&
13236 { ac_try='test -s conftest$ac_exeext'
13237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13238 (eval $ac_try) 2>&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); }; }; then
13242 ac_cv_func_res_search=yes
13244 echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.$ac_ext >&5
13247 ac_cv_func_res_search=no
13249 rm -f conftest.err conftest.$ac_objext \
13250 conftest$ac_exeext conftest.$ac_ext
13252 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
13253 echo "${ECHO_T}$ac_cv_func_res_search" >&6
13254 if test $ac_cv_func_res_search = yes; then
13257 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
13258 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
13259 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
13260 echo $ECHO_N "(cached) $ECHO_C" >&6
13262 ac_check_lib_save_LIBS=$LIBS
13263 LIBS="-lresolv $LIBS"
13264 cat >conftest.$ac_ext <<_ACEOF
13267 cat confdefs.h >>conftest.$ac_ext
13268 cat >>conftest.$ac_ext <<_ACEOF
13269 /* end confdefs.h. */
13271 /* Override any gcc2 internal prototype to avoid an error. */
13275 /* We use char because int might match the return type of a gcc2
13276 builtin and then its argument prototype would still apply. */
13277 char res_search ();
13286 rm -f conftest.$ac_objext conftest$ac_exeext
13287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13288 (eval $ac_link) 2>conftest.er1
13290 grep -v '^ *+' conftest.er1 >conftest.err
13292 cat conftest.err >&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); } &&
13295 { ac_try='test -z "$ac_c_werror_flag"
13296 || test ! -s conftest.err'
13297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13298 (eval $ac_try) 2>&5
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; } &&
13302 { ac_try='test -s conftest$ac_exeext'
13303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13304 (eval $ac_try) 2>&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); }; }; then
13308 ac_cv_lib_resolv_res_search=yes
13310 echo "$as_me: failed program was:" >&5
13311 sed 's/^/| /' conftest.$ac_ext >&5
13313 ac_cv_lib_resolv_res_search=no
13315 rm -f conftest.err conftest.$ac_objext \
13316 conftest$ac_exeext conftest.$ac_ext
13317 LIBS=$ac_check_lib_save_LIBS
13319 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
13320 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
13321 if test $ac_cv_lib_resolv_res_search = yes; then
13322 PASSWD_LIBS="${PASSWD_LIBS} -lresolv"
13324 { echo "$as_me:$LINENO: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&5
13325 echo "$as_me: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&2;}
13335 ###############################################################################
13337 # Check for the nine billion variants of shadow passwords...
13339 ###############################################################################
13344 with_shadow_req=unspecified
13347 # Check whether --with-shadow or --without-shadow was given.
13348 if test "${with_shadow+set}" = set; then
13349 withval="$with_shadow"
13350 with_shadow="$withval"; with_shadow_req="$withval"
13356 case "$with_shadow" in
13361 echo "$as_me:$LINENO: checking for shadow password headers" >&5
13362 echo $ECHO_N "checking for shadow password headers... $ECHO_C" >&6
13363 d=$with_shadow/include
13364 if test -d $d; then
13365 X_CFLAGS="-I$d $X_CFLAGS"
13366 echo "$as_me:$LINENO: result: $d" >&5
13367 echo "${ECHO_T}$d" >&6
13369 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13370 echo "${ECHO_T}not found ($d: no such directory)" >&6
13373 echo "$as_me:$LINENO: checking for shadow password libs" >&5
13374 echo $ECHO_N "checking for shadow password libs... $ECHO_C" >&6
13376 if test -d $d; then
13377 X_LIBS="-L$d $X_LIBS"
13378 echo "$as_me:$LINENO: result: $d" >&5
13379 echo "${ECHO_T}$d" >&6
13381 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13382 echo "${ECHO_T}not found ($d: no such directory)" >&6
13385 # replace the directory string with "yes".
13386 with_shadow_req="yes"
13387 with_shadow=$with_shadow_req
13392 echo "error: argument to --with-shadow must be \"yes\", \"no\", or a directory."
13393 echo " If it is a directory, then \`DIR/include' will be added to"
13394 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13400 if test "$enable_locking" = no ; then
13406 ###############################################################################
13408 # Check for Sun "adjunct" passwords.
13410 ###############################################################################
13412 if test "$with_shadow" = yes ; then
13413 echo "$as_me:$LINENO: checking for Sun-style shadow passwords" >&5
13414 echo $ECHO_N "checking for Sun-style shadow passwords... $ECHO_C" >&6
13415 if test "${ac_cv_sun_adjunct+set}" = set; then
13416 echo $ECHO_N "(cached) $ECHO_C" >&6
13419 ac_save_CPPFLAGS="$CPPFLAGS"
13420 if test \! -z "$includedir" ; then
13421 CPPFLAGS="$CPPFLAGS -I$includedir"
13423 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13424 cat >conftest.$ac_ext <<_ACEOF
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h. */
13430 #include <stdlib.h>
13431 #include <unistd.h>
13432 #include <sys/types.h>
13433 #include <sys/label.h>
13434 #include <sys/audit.h>
13435 #include <pwdadj.h>
13439 struct passwd_adjunct *p = getpwanam("nobody");
13440 const char *pw = p->pwa_passwd;
13445 rm -f conftest.$ac_objext
13446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13447 (eval $ac_compile) 2>conftest.er1
13449 grep -v '^ *+' conftest.er1 >conftest.err
13451 cat conftest.err >&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); } &&
13454 { ac_try='test -z "$ac_c_werror_flag"
13455 || test ! -s conftest.err'
13456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13457 (eval $ac_try) 2>&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; } &&
13461 { ac_try='test -s conftest.$ac_objext'
13462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13463 (eval $ac_try) 2>&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); }; }; then
13467 ac_cv_sun_adjunct=yes
13469 echo "$as_me: failed program was:" >&5
13470 sed 's/^/| /' conftest.$ac_ext >&5
13472 ac_cv_sun_adjunct=no
13474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13475 CPPFLAGS="$ac_save_CPPFLAGS"
13477 echo "$as_me:$LINENO: result: $ac_cv_sun_adjunct" >&5
13478 echo "${ECHO_T}$ac_cv_sun_adjunct" >&6
13479 if test "$ac_cv_sun_adjunct" = yes; then
13480 have_shadow_adjunct=yes
13487 ###############################################################################
13489 # Check for DEC and SCO so-called "enhanced" security.
13491 ###############################################################################
13493 if test "$with_shadow" = yes ; then
13494 echo "$as_me:$LINENO: checking for DEC-style shadow passwords" >&5
13495 echo $ECHO_N "checking for DEC-style shadow passwords... $ECHO_C" >&6
13496 if test "${ac_cv_enhanced_passwd+set}" = set; then
13497 echo $ECHO_N "(cached) $ECHO_C" >&6
13500 ac_save_CPPFLAGS="$CPPFLAGS"
13501 if test \! -z "$includedir" ; then
13502 CPPFLAGS="$CPPFLAGS -I$includedir"
13504 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13505 cat >conftest.$ac_ext <<_ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h. */
13511 #include <stdlib.h>
13512 #include <unistd.h>
13513 #include <sys/types.h>
13515 #include <sys/security.h>
13520 struct pr_passwd *p;
13522 set_auth_parameters(0, 0);
13523 check_auth_parameters();
13524 p = getprpwnam("nobody");
13525 pw = p->ufld.fd_encrypt;
13530 rm -f conftest.$ac_objext
13531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13532 (eval $ac_compile) 2>conftest.er1
13534 grep -v '^ *+' conftest.er1 >conftest.err
13536 cat conftest.err >&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); } &&
13539 { ac_try='test -z "$ac_c_werror_flag"
13540 || test ! -s conftest.err'
13541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542 (eval $ac_try) 2>&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; } &&
13546 { ac_try='test -s conftest.$ac_objext'
13547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548 (eval $ac_try) 2>&5
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); }; }; then
13552 ac_cv_enhanced_passwd=yes
13554 echo "$as_me: failed program was:" >&5
13555 sed 's/^/| /' conftest.$ac_ext >&5
13557 ac_cv_enhanced_passwd=no
13559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13560 CPPFLAGS="$ac_save_CPPFLAGS"
13562 echo "$as_me:$LINENO: result: $ac_cv_enhanced_passwd" >&5
13563 echo "${ECHO_T}$ac_cv_enhanced_passwd" >&6
13564 if test $ac_cv_enhanced_passwd = yes; then
13565 have_shadow_enhanced=yes
13569 # On SCO, getprpwnam() is in -lprot (which uses nap() from -lx)
13570 # (I'm told it needs -lcurses too, but I don't understand why.)
13571 # But on DEC, it's in -lsecurity.
13573 echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
13574 echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
13575 if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
13576 echo $ECHO_N "(cached) $ECHO_C" >&6
13578 ac_check_lib_save_LIBS=$LIBS
13579 LIBS="-lprot -lx $LIBS"
13580 cat >conftest.$ac_ext <<_ACEOF
13583 cat confdefs.h >>conftest.$ac_ext
13584 cat >>conftest.$ac_ext <<_ACEOF
13585 /* end confdefs.h. */
13587 /* Override any gcc2 internal prototype to avoid an error. */
13591 /* We use char because int might match the return type of a gcc2
13592 builtin and then its argument prototype would still apply. */
13593 char getprpwnam ();
13602 rm -f conftest.$ac_objext conftest$ac_exeext
13603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13604 (eval $ac_link) 2>conftest.er1
13606 grep -v '^ *+' conftest.er1 >conftest.err
13608 cat conftest.err >&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } &&
13611 { ac_try='test -z "$ac_c_werror_flag"
13612 || test ! -s conftest.err'
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; } &&
13618 { ac_try='test -s conftest$ac_exeext'
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; }; then
13624 ac_cv_lib_prot_getprpwnam=yes
13626 echo "$as_me: failed program was:" >&5
13627 sed 's/^/| /' conftest.$ac_ext >&5
13629 ac_cv_lib_prot_getprpwnam=no
13631 rm -f conftest.err conftest.$ac_objext \
13632 conftest$ac_exeext conftest.$ac_ext
13633 LIBS=$ac_check_lib_save_LIBS
13635 echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
13636 echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6
13637 if test $ac_cv_lib_prot_getprpwnam = yes; then
13638 PASSWD_LIBS="$PASSWD_LIBS -lprot -lcurses -lx"
13640 echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
13641 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
13642 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
13643 echo $ECHO_N "(cached) $ECHO_C" >&6
13645 ac_check_lib_save_LIBS=$LIBS
13646 LIBS="-lsecurity $LIBS"
13647 cat >conftest.$ac_ext <<_ACEOF
13650 cat confdefs.h >>conftest.$ac_ext
13651 cat >>conftest.$ac_ext <<_ACEOF
13652 /* end confdefs.h. */
13654 /* Override any gcc2 internal prototype to avoid an error. */
13658 /* We use char because int might match the return type of a gcc2
13659 builtin and then its argument prototype would still apply. */
13660 char getprpwnam ();
13669 rm -f conftest.$ac_objext conftest$ac_exeext
13670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13671 (eval $ac_link) 2>conftest.er1
13673 grep -v '^ *+' conftest.er1 >conftest.err
13675 cat conftest.err >&5
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); } &&
13678 { ac_try='test -z "$ac_c_werror_flag"
13679 || test ! -s conftest.err'
13680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681 (eval $ac_try) 2>&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); }; } &&
13685 { ac_try='test -s conftest$ac_exeext'
13686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13687 (eval $ac_try) 2>&5
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); }; }; then
13691 ac_cv_lib_security_getprpwnam=yes
13693 echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13696 ac_cv_lib_security_getprpwnam=no
13698 rm -f conftest.err conftest.$ac_objext \
13699 conftest$ac_exeext conftest.$ac_ext
13700 LIBS=$ac_check_lib_save_LIBS
13702 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
13703 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
13704 if test $ac_cv_lib_security_getprpwnam = yes; then
13705 PASSWD_LIBS="$PASSWD_LIBS -lsecurity"
13713 ###############################################################################
13715 # Check for HP's entry in the "Not Invented Here" Sweepstakes.
13717 ###############################################################################
13719 if test "$with_shadow" = yes ; then
13720 echo "$as_me:$LINENO: checking for HP-style shadow passwords" >&5
13721 echo $ECHO_N "checking for HP-style shadow passwords... $ECHO_C" >&6
13722 if test "${ac_cv_hpux_passwd+set}" = set; then
13723 echo $ECHO_N "(cached) $ECHO_C" >&6
13726 ac_save_CPPFLAGS="$CPPFLAGS"
13727 if test \! -z "$includedir" ; then
13728 CPPFLAGS="$CPPFLAGS -I$includedir"
13730 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13731 cat >conftest.$ac_ext <<_ACEOF
13734 cat confdefs.h >>conftest.$ac_ext
13735 cat >>conftest.$ac_ext <<_ACEOF
13736 /* end confdefs.h. */
13737 #include <stdlib.h>
13738 #include <unistd.h>
13739 #include <sys/types.h>
13741 #include <hpsecurity.h>
13746 struct s_passwd *p = getspwnam("nobody");
13747 const char *pw = p->pw_passwd;
13752 rm -f conftest.$ac_objext
13753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13754 (eval $ac_compile) 2>conftest.er1
13756 grep -v '^ *+' conftest.er1 >conftest.err
13758 cat conftest.err >&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); } &&
13761 { ac_try='test -z "$ac_c_werror_flag"
13762 || test ! -s conftest.err'
13763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764 (eval $ac_try) 2>&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); }; } &&
13768 { ac_try='test -s conftest.$ac_objext'
13769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770 (eval $ac_try) 2>&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; }; then
13774 ac_cv_hpux_passwd=yes
13776 echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13779 ac_cv_hpux_passwd=no
13781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13782 CPPFLAGS="$ac_save_CPPFLAGS"
13784 echo "$as_me:$LINENO: result: $ac_cv_hpux_passwd" >&5
13785 echo "${ECHO_T}$ac_cv_hpux_passwd" >&6
13786 if test "$ac_cv_hpux_passwd" = yes; then
13787 have_shadow_hpux=yes
13791 # on HPUX, bigcrypt is in -lsec
13792 echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
13793 echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6
13794 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13797 ac_check_lib_save_LIBS=$LIBS
13799 cat >conftest.$ac_ext <<_ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h. */
13806 /* Override any gcc2 internal prototype to avoid an error. */
13810 /* We use char because int might match the return type of a gcc2
13811 builtin and then its argument prototype would still apply. */
13821 rm -f conftest.$ac_objext conftest$ac_exeext
13822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13823 (eval $ac_link) 2>conftest.er1
13825 grep -v '^ *+' conftest.er1 >conftest.err
13827 cat conftest.err >&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); } &&
13830 { ac_try='test -z "$ac_c_werror_flag"
13831 || test ! -s conftest.err'
13832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833 (eval $ac_try) 2>&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; } &&
13837 { ac_try='test -s conftest$ac_exeext'
13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; }; then
13843 ac_cv_lib_sec_bigcrypt=yes
13845 echo "$as_me: failed program was:" >&5
13846 sed 's/^/| /' conftest.$ac_ext >&5
13848 ac_cv_lib_sec_bigcrypt=no
13850 rm -f conftest.err conftest.$ac_objext \
13851 conftest$ac_exeext conftest.$ac_ext
13852 LIBS=$ac_check_lib_save_LIBS
13854 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
13855 echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6
13856 if test $ac_cv_lib_sec_bigcrypt = yes; then
13857 PASSWD_LIBS="$PASSWD_LIBS -lsec"
13864 ###############################################################################
13866 # Check for FreeBSD-style shadow passwords.
13868 # On FreeBSD, getpwnam() and friends work just like on non-shadow-
13869 # password systems -- except you only get stuff in the pw_passwd field
13870 # if the running program is setuid. So, guess that we've got this
13871 # lossage to contend with if /etc/master.passwd exists, and default to
13872 # a setuid installation.
13874 ###############################################################################
13876 if test "$with_shadow" = yes ; then
13877 echo "$as_me:$LINENO: checking for FreeBSD-style shadow passwords" >&5
13878 echo $ECHO_N "checking for FreeBSD-style shadow passwords... $ECHO_C" >&6
13879 if test "${ac_cv_master_passwd+set}" = set; then
13880 echo $ECHO_N "(cached) $ECHO_C" >&6
13882 if test -f /etc/master.passwd ; then
13883 ac_cv_master_passwd=yes
13885 ac_cv_master_passwd=no
13888 echo "$as_me:$LINENO: result: $ac_cv_master_passwd" >&5
13889 echo "${ECHO_T}$ac_cv_master_passwd" >&6
13890 if test "$ac_cv_master_passwd" = yes; then
13896 ###############################################################################
13898 # Check for traditional (ha!) shadow passwords.
13900 ###############################################################################
13902 if test "$with_shadow" = yes ; then
13903 echo "$as_me:$LINENO: checking for generic shadow passwords" >&5
13904 echo $ECHO_N "checking for generic shadow passwords... $ECHO_C" >&6
13905 if test "${ac_cv_shadow+set}" = set; then
13906 echo $ECHO_N "(cached) $ECHO_C" >&6
13909 ac_save_CPPFLAGS="$CPPFLAGS"
13910 if test \! -z "$includedir" ; then
13911 CPPFLAGS="$CPPFLAGS -I$includedir"
13913 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13914 cat >conftest.$ac_ext <<_ACEOF
13917 cat confdefs.h >>conftest.$ac_ext
13918 cat >>conftest.$ac_ext <<_ACEOF
13919 /* end confdefs.h. */
13920 #include <stdlib.h>
13921 #include <unistd.h>
13922 #include <sys/types.h>
13924 #include <shadow.h>
13928 struct spwd *p = getspnam("nobody");
13929 const char *pw = p->sp_pwdp;
13934 rm -f conftest.$ac_objext
13935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13936 (eval $ac_compile) 2>conftest.er1
13938 grep -v '^ *+' conftest.er1 >conftest.err
13940 cat conftest.err >&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); } &&
13943 { ac_try='test -z "$ac_c_werror_flag"
13944 || test ! -s conftest.err'
13945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946 (eval $ac_try) 2>&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); }; } &&
13950 { ac_try='test -s conftest.$ac_objext'
13951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13952 (eval $ac_try) 2>&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; }; then
13958 echo "$as_me: failed program was:" >&5
13959 sed 's/^/| /' conftest.$ac_ext >&5
13963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13964 CPPFLAGS="$ac_save_CPPFLAGS"
13966 echo "$as_me:$LINENO: result: $ac_cv_shadow" >&5
13967 echo "${ECHO_T}$ac_cv_shadow" >&6
13968 if test "$ac_cv_shadow" = yes; then
13972 # On some systems (UnixWare 2.1), getspnam() is in -lgen instead of -lc.
13974 echo "$as_me:$LINENO: checking for getspnam in -lc" >&5
13975 echo $ECHO_N "checking for getspnam in -lc... $ECHO_C" >&6
13976 if test "${ac_cv_lib_c_getspnam+set}" = set; then
13977 echo $ECHO_N "(cached) $ECHO_C" >&6
13979 ac_check_lib_save_LIBS=$LIBS
13981 cat >conftest.$ac_ext <<_ACEOF
13984 cat confdefs.h >>conftest.$ac_ext
13985 cat >>conftest.$ac_ext <<_ACEOF
13986 /* end confdefs.h. */
13988 /* Override any gcc2 internal prototype to avoid an error. */
13992 /* We use char because int might match the return type of a gcc2
13993 builtin and then its argument prototype would still apply. */
14003 rm -f conftest.$ac_objext conftest$ac_exeext
14004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14005 (eval $ac_link) 2>conftest.er1
14007 grep -v '^ *+' conftest.er1 >conftest.err
14009 cat conftest.err >&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); } &&
14012 { ac_try='test -z "$ac_c_werror_flag"
14013 || test ! -s conftest.err'
14014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }; } &&
14019 { ac_try='test -s conftest$ac_exeext'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; }; then
14025 ac_cv_lib_c_getspnam=yes
14027 echo "$as_me: failed program was:" >&5
14028 sed 's/^/| /' conftest.$ac_ext >&5
14030 ac_cv_lib_c_getspnam=no
14032 rm -f conftest.err conftest.$ac_objext \
14033 conftest$ac_exeext conftest.$ac_ext
14034 LIBS=$ac_check_lib_save_LIBS
14036 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getspnam" >&5
14037 echo "${ECHO_T}$ac_cv_lib_c_getspnam" >&6
14038 if test $ac_cv_lib_c_getspnam = yes; then
14042 if test "$have_getspnam" = no ; then
14043 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
14044 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
14045 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14048 ac_check_lib_save_LIBS=$LIBS
14050 cat >conftest.$ac_ext <<_ACEOF
14053 cat confdefs.h >>conftest.$ac_ext
14054 cat >>conftest.$ac_ext <<_ACEOF
14055 /* end confdefs.h. */
14057 /* Override any gcc2 internal prototype to avoid an error. */
14061 /* We use char because int might match the return type of a gcc2
14062 builtin and then its argument prototype would still apply. */
14072 rm -f conftest.$ac_objext conftest$ac_exeext
14073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14074 (eval $ac_link) 2>conftest.er1
14076 grep -v '^ *+' conftest.er1 >conftest.err
14078 cat conftest.err >&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); } &&
14081 { ac_try='test -z "$ac_c_werror_flag"
14082 || test ! -s conftest.err'
14083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14084 (eval $ac_try) 2>&5
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); }; } &&
14088 { ac_try='test -s conftest$ac_exeext'
14089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14090 (eval $ac_try) 2>&5
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); }; }; then
14094 ac_cv_lib_gen_getspnam=yes
14096 echo "$as_me: failed program was:" >&5
14097 sed 's/^/| /' conftest.$ac_ext >&5
14099 ac_cv_lib_gen_getspnam=no
14101 rm -f conftest.err conftest.$ac_objext \
14102 conftest$ac_exeext conftest.$ac_ext
14103 LIBS=$ac_check_lib_save_LIBS
14105 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
14106 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
14107 if test $ac_cv_lib_gen_getspnam = yes; then
14108 have_getspnam=yes; PASSWD_LIBS="$PASSWD_LIBS -lgen"
14116 ###############################################################################
14118 # Check for other libraries needed for non-shadow passwords.
14120 ###############################################################################
14122 if test "$enable_locking" = yes ; then
14124 # On some systems (UnixWare 2.1), crypt() is in -lcrypt instead of -lc.
14126 echo "$as_me:$LINENO: checking for crypt in -lc" >&5
14127 echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6
14128 if test "${ac_cv_lib_c_crypt+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14131 ac_check_lib_save_LIBS=$LIBS
14133 cat >conftest.$ac_ext <<_ACEOF
14136 cat confdefs.h >>conftest.$ac_ext
14137 cat >>conftest.$ac_ext <<_ACEOF
14138 /* end confdefs.h. */
14140 /* Override any gcc2 internal prototype to avoid an error. */
14144 /* We use char because int might match the return type of a gcc2
14145 builtin and then its argument prototype would still apply. */
14155 rm -f conftest.$ac_objext conftest$ac_exeext
14156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14157 (eval $ac_link) 2>conftest.er1
14159 grep -v '^ *+' conftest.er1 >conftest.err
14161 cat conftest.err >&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); } &&
14164 { ac_try='test -z "$ac_c_werror_flag"
14165 || test ! -s conftest.err'
14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167 (eval $ac_try) 2>&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; } &&
14171 { ac_try='test -s conftest$ac_exeext'
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; }; then
14177 ac_cv_lib_c_crypt=yes
14179 echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14182 ac_cv_lib_c_crypt=no
14184 rm -f conftest.err conftest.$ac_objext \
14185 conftest$ac_exeext conftest.$ac_ext
14186 LIBS=$ac_check_lib_save_LIBS
14188 echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
14189 echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6
14190 if test $ac_cv_lib_c_crypt = yes; then
14194 if test "$have_crypt" = no ; then
14195 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
14196 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
14197 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
14198 echo $ECHO_N "(cached) $ECHO_C" >&6
14200 ac_check_lib_save_LIBS=$LIBS
14201 LIBS="-lcrypt $LIBS"
14202 cat >conftest.$ac_ext <<_ACEOF
14205 cat confdefs.h >>conftest.$ac_ext
14206 cat >>conftest.$ac_ext <<_ACEOF
14207 /* end confdefs.h. */
14209 /* Override any gcc2 internal prototype to avoid an error. */
14213 /* We use char because int might match the return type of a gcc2
14214 builtin and then its argument prototype would still apply. */
14224 rm -f conftest.$ac_objext conftest$ac_exeext
14225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14226 (eval $ac_link) 2>conftest.er1
14228 grep -v '^ *+' conftest.er1 >conftest.err
14230 cat conftest.err >&5
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); } &&
14233 { ac_try='test -z "$ac_c_werror_flag"
14234 || test ! -s conftest.err'
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; } &&
14240 { ac_try='test -s conftest$ac_exeext'
14241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242 (eval $ac_try) 2>&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; }; then
14246 ac_cv_lib_crypt_crypt=yes
14248 echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14251 ac_cv_lib_crypt_crypt=no
14253 rm -f conftest.err conftest.$ac_objext \
14254 conftest$ac_exeext conftest.$ac_ext
14255 LIBS=$ac_check_lib_save_LIBS
14257 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
14258 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
14259 if test $ac_cv_lib_crypt_crypt = yes; then
14260 have_crypt=yes; PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
14267 # Most of the above shadow mechanisms will have set need_setuid to yes,
14268 # if they were found. But, on some systems, we need setuid even when
14269 # using plain old vanilla passwords.
14271 if test "$enable_locking" = yes ; then
14273 *-hpux* | *-aix* | *-netbsd* | *-freebsd* | *-openbsd* )
14280 if test "$have_shadow_adjunct" = yes ; then
14281 cat >>confdefs.h <<\_ACEOF
14282 #define HAVE_ADJUNCT_PASSWD 1
14285 elif test "$have_shadow_enhanced" = yes ; then
14286 cat >>confdefs.h <<\_ACEOF
14287 #define HAVE_ENHANCED_PASSWD 1
14290 elif test "$have_shadow_hpux" = yes ; then
14291 cat >>confdefs.h <<\_ACEOF
14292 #define HAVE_HPUX_PASSWD 1
14295 elif test "$have_shadow" = yes ; then
14296 cat >>confdefs.h <<\_ACEOF
14297 #define HAVE_SHADOW_PASSWD 1
14303 ###############################################################################
14305 # Check for external password helper
14306 # On SuSE, instead of having xscreensaver be a setuid program, they
14307 # fork an external program that takes the password on stdin, and
14308 # returns true if that password is a valid one. Then only that
14309 # smaller program needs to be setuid.
14311 # (Note that this external program is not a GUI: the GUI is still
14312 # all in xscreensaver itself; the external program just does auth.)
14314 ###############################################################################
14316 have_passwd_helper=no
14317 with_passwd_helper_req=unspecified
14320 # Check whether --with-passwd-helper or --without-passwd-helper was given.
14321 if test "${with_passwd_helper+set}" = set; then
14322 withval="$with_passwd_helper"
14323 with_passwd_helper="$withval"; with_passwd_helper_req="$withval"
14325 with_passwd_helper=no
14327 # no HANDLE_X_PATH_ARG for this one
14329 if test "$enable_locking" = no ; then
14330 with_passwd_helper_req=no
14331 with_passwd_helper=no
14334 case "$with_passwd_helper" in
14337 cat >>confdefs.h <<_ACEOF
14338 #define PASSWD_HELPER_PROGRAM "$with_passwd_helper"
14341 have_passwd_helper=yes;;
14343 echo "error: --with-passwd-helper needs full pathname of helper (not '$with_passwd_helper')." >&2
14348 ###############################################################################
14350 # Check for a login manager for a "New Login" button on the lock dialog.
14351 # Usually this will be "/usr/bin/gdmflexiserver".
14353 ###############################################################################
14355 have_login_manager=no
14356 with_login_manager_req=unspecified
14357 default_login_manager='gdmflexiserver -l'
14360 # Check whether --with-login-manager or --without-login-manager was given.
14361 if test "${with_login_manager+set}" = set; then
14362 withval="$with_login_manager"
14363 with_login_manager="$withval"; with_login_manager_req="$withval"
14365 with_login_manager=no
14367 # no HANDLE_X_PATH_ARG for this one
14369 if test "$enable_locking" = no ; then
14370 with_login_manager_req=no
14371 with_login_manager=no
14374 if test -n "$with_login_manager_req" ; then
14375 ac_cv_login_manager_program=""
14377 if test "$with_login_manager_req" = "yes" ; then
14378 with_login_manager_req=$default_login_manager
14381 case "$with_login_manager_req" in
14384 set dummy $with_login_manager_req ; login_manager_tmp=$2
14385 echo "$as_me:$LINENO: checking for $login_manager_tmp" >&5
14386 echo $ECHO_N "checking for $login_manager_tmp... $ECHO_C" >&6
14387 if test -x "$login_manager_tmp" ; then
14388 echo "$as_me:$LINENO: result: yes" >&5
14389 echo "${ECHO_T}yes" >&6
14390 with_login_manager="$login_manager_tmp"
14392 echo "$as_me:$LINENO: result: no" >&5
14393 echo "${ECHO_T}no" >&6
14394 with_login_manager=""
14399 set dummy $with_login_manager_req ; login_manager_tmp=$2
14401 unset ac_cv_path_login_manager_tmp
14402 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
14403 set dummy $login_manager_tmp; ac_word=$2
14404 echo "$as_me:$LINENO: checking for $ac_word" >&5
14405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14406 if test "${ac_cv_path_login_manager_tmp+set}" = set; then
14407 echo $ECHO_N "(cached) $ECHO_C" >&6
14409 case $login_manager_tmp in
14411 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
14414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14415 for as_dir in $PATH
14418 test -z "$as_dir" && as_dir=.
14419 for ac_exec_ext in '' $ac_executable_extensions; do
14420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14421 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
14422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14431 login_manager_tmp=$ac_cv_path_login_manager_tmp
14433 if test -n "$login_manager_tmp"; then
14434 echo "$as_me:$LINENO: result: $login_manager_tmp" >&5
14435 echo "${ECHO_T}$login_manager_tmp" >&6
14437 echo "$as_me:$LINENO: result: no" >&5
14438 echo "${ECHO_T}no" >&6
14441 if test -z "$login_manager_tmp" ; then
14442 with_login_manager=""
14444 with_login_manager="$login_manager_tmp"
14448 ac_cv_login_manager_program="$with_login_manager"
14450 elif test -n "$ac_cv_login_manager_program"; then
14451 echo "$as_me:$LINENO: result: checking for login_manager... (cached) $ac_cv_login_manager_program" >&5
14452 echo "${ECHO_T}checking for login_manager... (cached) $ac_cv_login_manager_program" >&6
14455 NEW_LOGIN_COMMAND_P=''
14456 NEW_LOGIN_COMMAND="$ac_cv_login_manager_program"
14458 if test -z "$NEW_LOGIN_COMMAND" ; then
14459 NEW_LOGIN_COMMAND="$default_login_manager"
14460 NEW_LOGIN_COMMAND_P='! '
14465 ###############################################################################
14467 # Check for -lgtk (and Gnome stuff)
14469 ###############################################################################
14472 with_gtk_req=unspecified
14474 # Check whether --with-gtk or --without-gtk was given.
14475 if test "${with_gtk+set}" = set; then
14476 withval="$with_gtk"
14477 with_gtk="$withval"; with_gtk_req="$withval"
14482 # if --with-gtk=/directory/ was specified, remember that directory so that
14483 # we can also look for the `gtk-config' program in that directory.
14484 case "$with_gtk" in
14486 gtk_dir="$with_gtk"
14494 case "$with_gtk" in
14499 echo "$as_me:$LINENO: checking for Gtk headers" >&5
14500 echo $ECHO_N "checking for Gtk headers... $ECHO_C" >&6
14501 d=$with_gtk/include
14502 if test -d $d; then
14503 X_CFLAGS="-I$d $X_CFLAGS"
14504 echo "$as_me:$LINENO: result: $d" >&5
14505 echo "${ECHO_T}$d" >&6
14507 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14508 echo "${ECHO_T}not found ($d: no such directory)" >&6
14511 echo "$as_me:$LINENO: checking for Gtk libs" >&5
14512 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
14514 if test -d $d; then
14515 X_LIBS="-L$d $X_LIBS"
14516 echo "$as_me:$LINENO: result: $d" >&5
14517 echo "${ECHO_T}$d" >&6
14519 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14520 echo "${ECHO_T}not found ($d: no such directory)" >&6
14523 # replace the directory string with "yes".
14525 with_gtk=$with_gtk_req
14530 echo "error: argument to --with-gtk must be \"yes\", \"no\", or a directory."
14531 echo " If it is a directory, then \`DIR/include' will be added to"
14532 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14538 if test "$with_gtk" != yes -a "$with_gtk" != no ; then
14539 echo "error: must be yes or no: --with-gtk=$with_gtk"
14544 parse_gtk_version_string() {
14547 maj=`echo $ac_gtk_version_string | sed -n 's/\..*//p'`
14548 min=`echo $ac_gtk_version_string | sed -n 's/[^.]*\.\([^.]*\).*/\1/p'`
14550 ac_gtk_version=`echo "$maj * 1000 + $min" | bc`
14551 if test -z "$ac_gtk_version"; then
14552 ac_gtk_version=unknown
14553 ac_gtk_version_string=unknown
14557 # Find pkg-config... (need this for both gtk and gdk_pixbuf.)
14558 # if the user specified --with-gtk=/foo/ then look there.
14561 if test ! -z "$gtk_dir"; then
14562 # canonicalize slashes.
14563 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
14564 gtk_path="$foo:$gtk_path"
14567 for ac_prog in pkg-config
14569 # Extract the first word of "$ac_prog", so it can be a program name with args.
14570 set dummy $ac_prog; ac_word=$2
14571 echo "$as_me:$LINENO: checking for $ac_word" >&5
14572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14573 if test "${ac_cv_path_pkg_config+set}" = set; then
14574 echo $ECHO_N "(cached) $ECHO_C" >&6
14576 case $pkg_config in
14578 ac_cv_path_pkg_config="$pkg_config" # Let the user override the test with a path.
14581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14582 for as_dir in $gtk_path
14585 test -z "$as_dir" && as_dir=.
14586 for ac_exec_ext in '' $ac_executable_extensions; do
14587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14588 ac_cv_path_pkg_config="$as_dir/$ac_word$ac_exec_ext"
14589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14598 pkg_config=$ac_cv_path_pkg_config
14600 if test -n "$pkg_config"; then
14601 echo "$as_me:$LINENO: result: $pkg_config" >&5
14602 echo "${ECHO_T}$pkg_config" >&6
14604 echo "$as_me:$LINENO: result: no" >&5
14605 echo "${ECHO_T}no" >&6
14608 test -n "$pkg_config" && break
14612 if test -z "$pkg_config" ; then
14613 { echo "$as_me:$LINENO: WARNING: pkg-config not found!" >&5
14614 echo "$as_me: WARNING: pkg-config not found!" >&2;}
14619 # Utility function for running pkg-config-based tests...
14622 pkg_check_version() {
14623 if test "$ok" = yes ; then
14626 echo "$as_me:$LINENO: checking for $req" >&5
14627 echo $ECHO_N "checking for $req... $ECHO_C" >&6
14628 if $pkg_config --exists "$req" ; then
14629 vers=`$pkg_config --modversion "$req"`
14630 if $pkg_config --exists "$req >= $min" ; then
14631 echo "$as_me:$LINENO: result: $vers" >&5
14632 echo "${ECHO_T}$vers" >&6
14636 echo "$as_me:$LINENO: result: $vers (wanted >= $min)" >&5
14637 echo "${ECHO_T}$vers (wanted >= $min)" >&6
14642 echo "$as_me:$LINENO: result: no" >&5
14643 echo "${ECHO_T}no" >&6
14654 if test "$with_gtk" = yes; then
14658 pkg_check_version gtk+-2.0 2.0.1 ; ac_gtk_version_string="$vers"
14659 pkg_check_version gmodule-2.0 2.0.0
14660 pkg_check_version libxml-2.0 2.4.6
14661 pkg_check_version libglade-2.0 1.99.0
14662 pkg_check_version gdk-pixbuf-2.0 2.0.0
14663 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
14666 if test "$have_gtk" = no; then
14667 if test -n "$ac_gtk_version_string" ; then
14668 gtk_halfassed="$ac_gtk_version_string"
14669 gtk_halfassed_lib="$req"
14673 if test "$have_gtk" = yes; then
14674 parse_gtk_version_string
14678 if test "$have_gtk" = yes; then
14679 echo "$as_me:$LINENO: checking for Gtk includes" >&5
14680 echo $ECHO_N "checking for Gtk includes... $ECHO_C" >&6
14681 if test "${ac_cv_gtk_config_cflags+set}" = set; then
14682 echo $ECHO_N "(cached) $ECHO_C" >&6
14684 ac_cv_gtk_config_cflags=`$pkg_config --cflags $pkgs`
14686 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_cflags" >&5
14687 echo "${ECHO_T}$ac_cv_gtk_config_cflags" >&6
14688 echo "$as_me:$LINENO: checking for Gtk libs" >&5
14689 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
14690 if test "${ac_cv_gtk_config_libs+set}" = set; then
14691 echo $ECHO_N "(cached) $ECHO_C" >&6
14693 ac_cv_gtk_config_libs=`$pkg_config --libs $pkgs`
14695 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_libs" >&5
14696 echo "${ECHO_T}$ac_cv_gtk_config_libs" >&6
14698 ac_gtk_config_cflags=$ac_cv_gtk_config_cflags
14699 ac_gtk_config_libs=$ac_cv_gtk_config_libs
14703 if test "$have_gtk" = yes; then
14704 GTK_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
14705 GTK_DATADIR="$GTK_DATADIR/share"
14708 if test "$have_gtk" = yes; then
14709 INCLUDES="$INCLUDES $ac_gtk_config_cflags"
14710 GTK_LIBS="$GTK_LIBS $ac_gtk_config_libs"
14711 cat >>confdefs.h <<\_ACEOF
14715 cat >>confdefs.h <<\_ACEOF
14716 #define HAVE_GTK2 1
14719 cat >>confdefs.h <<\_ACEOF
14728 # Check for the various Gnome help and URL loading programs.
14730 if test "$have_gtk" = yes; then
14731 for ac_prog in gnome-open
14733 # Extract the first word of "$ac_prog", so it can be a program name with args.
14734 set dummy $ac_prog; ac_word=$2
14735 echo "$as_me:$LINENO: checking for $ac_word" >&5
14736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14737 if test "${ac_cv_prog_gnome_open_program+set}" = set; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14740 if test -n "$gnome_open_program"; then
14741 ac_cv_prog_gnome_open_program="$gnome_open_program" # Let the user override the test.
14743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14744 for as_dir in $PATH
14747 test -z "$as_dir" && as_dir=.
14748 for ac_exec_ext in '' $ac_executable_extensions; do
14749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14750 ac_cv_prog_gnome_open_program="$ac_prog"
14751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14759 gnome_open_program=$ac_cv_prog_gnome_open_program
14760 if test -n "$gnome_open_program"; then
14761 echo "$as_me:$LINENO: result: $gnome_open_program" >&5
14762 echo "${ECHO_T}$gnome_open_program" >&6
14764 echo "$as_me:$LINENO: result: no" >&5
14765 echo "${ECHO_T}no" >&6
14768 test -n "$gnome_open_program" && break
14771 for ac_prog in gnome-url-show
14773 # Extract the first word of "$ac_prog", so it can be a program name with args.
14774 set dummy $ac_prog; ac_word=$2
14775 echo "$as_me:$LINENO: checking for $ac_word" >&5
14776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14777 if test "${ac_cv_prog_gnome_url_show_program+set}" = set; then
14778 echo $ECHO_N "(cached) $ECHO_C" >&6
14780 if test -n "$gnome_url_show_program"; then
14781 ac_cv_prog_gnome_url_show_program="$gnome_url_show_program" # Let the user override the test.
14783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14784 for as_dir in $PATH
14787 test -z "$as_dir" && as_dir=.
14788 for ac_exec_ext in '' $ac_executable_extensions; do
14789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14790 ac_cv_prog_gnome_url_show_program="$ac_prog"
14791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14799 gnome_url_show_program=$ac_cv_prog_gnome_url_show_program
14800 if test -n "$gnome_url_show_program"; then
14801 echo "$as_me:$LINENO: result: $gnome_url_show_program" >&5
14802 echo "${ECHO_T}$gnome_url_show_program" >&6
14804 echo "$as_me:$LINENO: result: no" >&5
14805 echo "${ECHO_T}no" >&6
14808 test -n "$gnome_url_show_program" && break
14814 ###############################################################################
14818 ###############################################################################
14821 with_motif_req=unspecified
14823 # Check whether --with-motif or --without-motif was given.
14824 if test "${with_motif+set}" = set; then
14825 withval="$with_motif"
14826 with_motif="$withval"; with_motif_req="$withval"
14832 case "$with_motif" in
14837 echo "$as_me:$LINENO: checking for Motif headers" >&5
14838 echo $ECHO_N "checking for Motif headers... $ECHO_C" >&6
14839 d=$with_motif/include
14840 if test -d $d; then
14841 X_CFLAGS="-I$d $X_CFLAGS"
14842 echo "$as_me:$LINENO: result: $d" >&5
14843 echo "${ECHO_T}$d" >&6
14845 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14846 echo "${ECHO_T}not found ($d: no such directory)" >&6
14849 echo "$as_me:$LINENO: checking for Motif libs" >&5
14850 echo $ECHO_N "checking for Motif libs... $ECHO_C" >&6
14852 if test -d $d; then
14853 X_LIBS="-L$d $X_LIBS"
14854 echo "$as_me:$LINENO: result: $d" >&5
14855 echo "${ECHO_T}$d" >&6
14857 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14858 echo "${ECHO_T}not found ($d: no such directory)" >&6
14861 # replace the directory string with "yes".
14862 with_motif_req="yes"
14863 with_motif=$with_motif_req
14868 echo "error: argument to --with-motif must be \"yes\", \"no\", or a directory."
14869 echo " If it is a directory, then \`DIR/include' will be added to"
14870 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14876 if test "$with_motif" != yes -a "$with_motif" != no ; then
14877 echo "error: must be yes or no: --with-motif=$with_motif"
14881 if test "$with_motif" = yes; then
14884 ac_save_CPPFLAGS="$CPPFLAGS"
14885 if test \! -z "$includedir" ; then
14886 CPPFLAGS="$CPPFLAGS -I$includedir"
14888 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14889 echo "$as_me:$LINENO: checking for Xm/Xm.h" >&5
14890 echo $ECHO_N "checking for Xm/Xm.h... $ECHO_C" >&6
14891 if test "${ac_cv_header_Xm_Xm_h+set}" = set; then
14892 echo $ECHO_N "(cached) $ECHO_C" >&6
14894 cat >conftest.$ac_ext <<_ACEOF
14897 cat confdefs.h >>conftest.$ac_ext
14898 cat >>conftest.$ac_ext <<_ACEOF
14899 /* end confdefs.h. */
14900 #include <stdlib.h>
14902 #include <X11/Intrinsic.h>
14906 rm -f conftest.$ac_objext
14907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14908 (eval $ac_compile) 2>conftest.er1
14910 grep -v '^ *+' conftest.er1 >conftest.err
14912 cat conftest.err >&5
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); } &&
14915 { ac_try='test -z "$ac_c_werror_flag"
14916 || test ! -s conftest.err'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; } &&
14922 { ac_try='test -s conftest.$ac_objext'
14923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924 (eval $ac_try) 2>&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; }; then
14928 ac_cv_header_Xm_Xm_h=yes
14930 echo "$as_me: failed program was:" >&5
14931 sed 's/^/| /' conftest.$ac_ext >&5
14933 ac_cv_header_Xm_Xm_h=no
14935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14937 echo "$as_me:$LINENO: result: $ac_cv_header_Xm_Xm_h" >&5
14938 echo "${ECHO_T}$ac_cv_header_Xm_Xm_h" >&6
14939 if test $ac_cv_header_Xm_Xm_h = yes; then
14941 cat >>confdefs.h <<\_ACEOF
14942 #define HAVE_MOTIF 1
14945 MOTIF_LIBS="$MOTIF_LIBS -lXm"
14949 CPPFLAGS="$ac_save_CPPFLAGS"
14953 if test "$have_motif" = yes; then
14955 ac_save_CPPFLAGS="$CPPFLAGS"
14956 if test \! -z "$includedir" ; then
14957 CPPFLAGS="$CPPFLAGS -I$includedir"
14959 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14960 echo "$as_me:$LINENO: checking for Xm/ComboBox.h" >&5
14961 echo $ECHO_N "checking for Xm/ComboBox.h... $ECHO_C" >&6
14962 if test "${ac_cv_header_Xm_ComboBox_h+set}" = set; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
14965 cat >conftest.$ac_ext <<_ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14971 #include <stdlib.h>
14973 #include <X11/Intrinsic.h>
14975 #include <Xm/ComboBox.h>
14977 rm -f conftest.$ac_objext
14978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14979 (eval $ac_compile) 2>conftest.er1
14981 grep -v '^ *+' conftest.er1 >conftest.err
14983 cat conftest.err >&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } &&
14986 { ac_try='test -z "$ac_c_werror_flag"
14987 || test ! -s conftest.err'
14988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14989 (eval $ac_try) 2>&5
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); }; } &&
14993 { ac_try='test -s conftest.$ac_objext'
14994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14995 (eval $ac_try) 2>&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); }; }; then
14999 ac_cv_header_Xm_ComboBox_h=yes
15001 echo "$as_me: failed program was:" >&5
15002 sed 's/^/| /' conftest.$ac_ext >&5
15004 ac_cv_header_Xm_ComboBox_h=no
15006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15008 echo "$as_me:$LINENO: result: $ac_cv_header_Xm_ComboBox_h" >&5
15009 echo "${ECHO_T}$ac_cv_header_Xm_ComboBox_h" >&6
15010 if test $ac_cv_header_Xm_ComboBox_h = yes; then
15011 cat >>confdefs.h <<\_ACEOF
15012 #define HAVE_XMCOMBOBOX 1
15018 CPPFLAGS="$ac_save_CPPFLAGS"
15022 ###############################################################################
15024 # Checking whether Motif is really Lesstif.
15026 ###############################################################################
15029 if test "$have_motif" = yes ; then
15030 echo "$as_me:$LINENO: checking whether Motif is really LessTif" >&5
15031 echo $ECHO_N "checking whether Motif is really LessTif... $ECHO_C" >&6
15032 if test "${ac_cv_have_lesstif+set}" = set; then
15033 echo $ECHO_N "(cached) $ECHO_C" >&6
15036 ac_save_CPPFLAGS="$CPPFLAGS"
15037 if test \! -z "$includedir" ; then
15038 CPPFLAGS="$CPPFLAGS -I$includedir"
15040 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15041 cat >conftest.$ac_ext <<_ACEOF
15044 cat confdefs.h >>conftest.$ac_ext
15045 cat >>conftest.$ac_ext <<_ACEOF
15046 /* end confdefs.h. */
15051 long vers = LesstifVersion;
15056 rm -f conftest.$ac_objext
15057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15058 (eval $ac_compile) 2>conftest.er1
15060 grep -v '^ *+' conftest.er1 >conftest.err
15062 cat conftest.err >&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } &&
15065 { ac_try='test -z "$ac_c_werror_flag"
15066 || test ! -s conftest.err'
15067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068 (eval $ac_try) 2>&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; } &&
15072 { ac_try='test -s conftest.$ac_objext'
15073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074 (eval $ac_try) 2>&5
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; }; then
15078 ac_cv_have_lesstif=yes
15080 echo "$as_me: failed program was:" >&5
15081 sed 's/^/| /' conftest.$ac_ext >&5
15083 ac_cv_have_lesstif=no
15085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15086 CPPFLAGS="$ac_save_CPPFLAGS"
15088 echo "$as_me:$LINENO: result: $ac_cv_have_lesstif" >&5
15089 echo "${ECHO_T}$ac_cv_have_lesstif" >&6
15090 have_lesstif=$ac_cv_have_lesstif
15094 lesstif_version=unknown
15095 lesstif_version_string=unknown
15097 if test "$have_lesstif" = yes ; then
15099 echo unknown > conftest-lt
15100 echo "$as_me:$LINENO: checking LessTif version number" >&5
15101 echo $ECHO_N "checking LessTif version number... $ECHO_C" >&6
15102 if test "${ac_cv_lesstif_version_string+set}" = set; then
15103 echo $ECHO_N "(cached) $ECHO_C" >&6
15106 ac_save_CPPFLAGS="$CPPFLAGS"
15107 if test \! -z "$includedir" ; then
15108 CPPFLAGS="$CPPFLAGS -I$includedir"
15110 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15111 if test "$cross_compiling" = yes; then
15112 ac_cv_lesstif_version=unknown
15113 ac_cv_lesstif_version_string=unknown
15115 cat >conftest.$ac_ext <<_ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h. */
15124 FILE *f = fopen("conftest-lt", "w");
15126 fprintf(f, "%d %d.%d\n", LesstifVersion,
15127 LESSTIF_VERSION, LESSTIF_REVISION);
15132 rm -f conftest$ac_exeext
15133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15134 (eval $ac_link) 2>&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15139 (eval $ac_try) 2>&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); }; }; then
15143 ltv=`cat conftest-lt`
15144 ac_cv_lesstif_version=`echo $ltv | sed 's/ .*//'`
15145 ac_cv_lesstif_version_string=`echo $ltv | sed 's/.* //'`
15147 echo "$as_me: program exited with status $ac_status" >&5
15148 echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.$ac_ext >&5
15151 ( exit $ac_status )
15152 ac_cv_lesstif_version=unknown
15153 ac_cv_lesstif_version_string=unknown
15155 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15157 CPPFLAGS="$ac_save_CPPFLAGS"
15159 echo "$as_me:$LINENO: result: $ac_cv_lesstif_version_string" >&5
15160 echo "${ECHO_T}$ac_cv_lesstif_version_string" >&6
15162 lesstif_version=$ac_cv_lesstif_version
15163 lesstif_version_string=$ac_cv_lesstif_version_string
15168 if test "$have_motif" = yes ; then
15170 echo unknown > conftest-mt
15171 echo "$as_me:$LINENO: checking Motif version number" >&5
15172 echo $ECHO_N "checking Motif version number... $ECHO_C" >&6
15173 if test "${ac_cv_motif_version_string+set}" = set; then
15174 echo $ECHO_N "(cached) $ECHO_C" >&6
15177 ac_save_CPPFLAGS="$CPPFLAGS"
15178 if test \! -z "$includedir" ; then
15179 CPPFLAGS="$CPPFLAGS -I$includedir"
15181 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15182 if test "$cross_compiling" = yes; then
15183 ac_cv_motif_version=unknown
15184 ac_cv_motif_version_string=unknown
15186 cat >conftest.$ac_ext <<_ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h. */
15195 FILE *f = fopen("conftest-mt", "w");
15197 fprintf(f, "%d %d.%d\n", XmVersion,
15198 XmVERSION, XmREVISION);
15203 rm -f conftest$ac_exeext
15204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15205 (eval $ac_link) 2>&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15210 (eval $ac_try) 2>&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); }; }; then
15214 mtv=`cat conftest-mt`
15215 ac_cv_motif_version=`echo $mtv | sed 's/ .*//'`
15216 ac_cv_motif_version_string=`echo $mtv | sed 's/.* //'`
15218 echo "$as_me: program exited with status $ac_status" >&5
15219 echo "$as_me: failed program was:" >&5
15220 sed 's/^/| /' conftest.$ac_ext >&5
15222 ( exit $ac_status )
15223 ac_cv_motif_version=unknown
15224 ac_cv_motif_version_string=unknown
15226 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15228 CPPFLAGS="$ac_save_CPPFLAGS"
15230 echo "$as_me:$LINENO: result: $ac_cv_motif_version_string" >&5
15231 echo "${ECHO_T}$ac_cv_motif_version_string" >&6
15233 motif_version=$ac_cv_motif_version
15234 motif_version_string=$ac_cv_motif_version_string
15239 ###############################################################################
15241 # Checking whether Motif requires -lXpm.
15243 # If this is Motif 2.x, and we have XPM, then link against XPM as well.
15244 # The deal is, Motif 2.x requires XPM -- but it's a compilation option
15245 # of the library whether to build the XPM code into libXm, or whether
15246 # to rely on an external libXm. So the only way to tell whether XPM is
15247 # a link-time requirement is to examine libXm.a, which is very
15248 # difficult to do in an autoconf script. So... if it's Motif 2.x, we
15249 # always link against XPM if the XPM lib exists (and this will be a
15250 # no-op if libXm happens to already have the XPM code in it.)
15252 ###############################################################################
15254 motif_requires_xpm=no
15255 if test "$have_motif" = yes ; then
15256 echo "$as_me:$LINENO: checking whether Motif requires XPM" >&5
15257 echo $ECHO_N "checking whether Motif requires XPM... $ECHO_C" >&6
15258 if test "$motif_version" = "unknown" || test "$motif_version" -ge 2000
15260 motif_requires_xpm=yes
15261 echo "$as_me:$LINENO: result: maybe" >&5
15262 echo "${ECHO_T}maybe" >&6
15264 echo "$as_me:$LINENO: result: no" >&5
15265 echo "${ECHO_T}no" >&6
15270 ###############################################################################
15272 # Checking whether Motif requires -lXp.
15274 # Some versions of Motif (2.1.0, at least) require -lXp, the "X Printing
15275 # Extension". Why this extension isn't in -lXext with all the others,
15278 ###############################################################################
15281 if test "$have_motif" = yes ; then
15284 ac_save_CPPFLAGS="$CPPFLAGS"
15285 ac_save_LDFLAGS="$LDFLAGS"
15286 # ac_save_LIBS="$LIBS"
15288 if test \! -z "$includedir" ; then
15289 CPPFLAGS="$CPPFLAGS -I$includedir"
15291 # note: $X_CFLAGS includes $x_includes
15292 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15294 if test \! -z "$libdir" ; then
15295 LDFLAGS="$LDFLAGS -L$libdir"
15297 # note: $X_LIBS includes $x_libraries
15298 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15300 echo "$as_me:$LINENO: checking for XpQueryExtension in -lXp" >&5
15301 echo $ECHO_N "checking for XpQueryExtension in -lXp... $ECHO_C" >&6
15302 if test "${ac_cv_lib_Xp_XpQueryExtension+set}" = set; then
15303 echo $ECHO_N "(cached) $ECHO_C" >&6
15305 ac_check_lib_save_LIBS=$LIBS
15306 LIBS="-lXp -lX11 -lXext -lm $LIBS"
15307 cat >conftest.$ac_ext <<_ACEOF
15310 cat confdefs.h >>conftest.$ac_ext
15311 cat >>conftest.$ac_ext <<_ACEOF
15312 /* end confdefs.h. */
15314 /* Override any gcc2 internal prototype to avoid an error. */
15318 /* We use char because int might match the return type of a gcc2
15319 builtin and then its argument prototype would still apply. */
15320 char XpQueryExtension ();
15324 XpQueryExtension ();
15329 rm -f conftest.$ac_objext conftest$ac_exeext
15330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15331 (eval $ac_link) 2>conftest.er1
15333 grep -v '^ *+' conftest.er1 >conftest.err
15335 cat conftest.err >&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); } &&
15338 { ac_try='test -z "$ac_c_werror_flag"
15339 || test ! -s conftest.err'
15340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15341 (eval $ac_try) 2>&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; } &&
15345 { ac_try='test -s conftest$ac_exeext'
15346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15347 (eval $ac_try) 2>&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; }; then
15351 ac_cv_lib_Xp_XpQueryExtension=yes
15353 echo "$as_me: failed program was:" >&5
15354 sed 's/^/| /' conftest.$ac_ext >&5
15356 ac_cv_lib_Xp_XpQueryExtension=no
15358 rm -f conftest.err conftest.$ac_objext \
15359 conftest$ac_exeext conftest.$ac_ext
15360 LIBS=$ac_check_lib_save_LIBS
15362 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpQueryExtension" >&5
15363 echo "${ECHO_T}$ac_cv_lib_Xp_XpQueryExtension" >&6
15364 if test $ac_cv_lib_Xp_XpQueryExtension = yes; then
15365 have_xp_ext=yes; MOTIF_LIBS="$MOTIF_LIBS -lXp"
15370 CPPFLAGS="$ac_save_CPPFLAGS"
15371 LDFLAGS="$ac_save_LDFLAGS"
15372 # LIBS="$ac_save_LIBS"
15377 ###############################################################################
15379 # Checking whether Motif requires -lXintl (for _Xsetlocale.)
15381 ###############################################################################
15384 if test "$have_motif" = yes ; then
15386 ac_save_CPPFLAGS="$CPPFLAGS"
15387 ac_save_LDFLAGS="$LDFLAGS"
15388 # ac_save_LIBS="$LIBS"
15390 if test \! -z "$includedir" ; then
15391 CPPFLAGS="$CPPFLAGS -I$includedir"
15393 # note: $X_CFLAGS includes $x_includes
15394 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15396 if test \! -z "$libdir" ; then
15397 LDFLAGS="$LDFLAGS -L$libdir"
15399 # note: $X_LIBS includes $x_libraries
15400 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15402 echo "$as_me:$LINENO: checking for _Xsetlocale in -lXintl" >&5
15403 echo $ECHO_N "checking for _Xsetlocale in -lXintl... $ECHO_C" >&6
15404 if test "${ac_cv_lib_Xintl__Xsetlocale+set}" = set; then
15405 echo $ECHO_N "(cached) $ECHO_C" >&6
15407 ac_check_lib_save_LIBS=$LIBS
15408 LIBS="-lXintl -lX11 -lXext -lm $LIBS"
15409 cat >conftest.$ac_ext <<_ACEOF
15412 cat confdefs.h >>conftest.$ac_ext
15413 cat >>conftest.$ac_ext <<_ACEOF
15414 /* end confdefs.h. */
15416 /* Override any gcc2 internal prototype to avoid an error. */
15420 /* We use char because int might match the return type of a gcc2
15421 builtin and then its argument prototype would still apply. */
15422 char _Xsetlocale ();
15431 rm -f conftest.$ac_objext conftest$ac_exeext
15432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15433 (eval $ac_link) 2>conftest.er1
15435 grep -v '^ *+' conftest.er1 >conftest.err
15437 cat conftest.err >&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); } &&
15440 { ac_try='test -z "$ac_c_werror_flag"
15441 || test ! -s conftest.err'
15442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443 (eval $ac_try) 2>&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; } &&
15447 { ac_try='test -s conftest$ac_exeext'
15448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15449 (eval $ac_try) 2>&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); }; }; then
15453 ac_cv_lib_Xintl__Xsetlocale=yes
15455 echo "$as_me: failed program was:" >&5
15456 sed 's/^/| /' conftest.$ac_ext >&5
15458 ac_cv_lib_Xintl__Xsetlocale=no
15460 rm -f conftest.err conftest.$ac_objext \
15461 conftest$ac_exeext conftest.$ac_ext
15462 LIBS=$ac_check_lib_save_LIBS
15464 echo "$as_me:$LINENO: result: $ac_cv_lib_Xintl__Xsetlocale" >&5
15465 echo "${ECHO_T}$ac_cv_lib_Xintl__Xsetlocale" >&6
15466 if test $ac_cv_lib_Xintl__Xsetlocale = yes; then
15472 CPPFLAGS="$ac_save_CPPFLAGS"
15473 LDFLAGS="$ac_save_LDFLAGS"
15474 # LIBS="$ac_save_LIBS"
15476 if test "$have_xintl" = yes; then
15477 MOTIF_LIBS="$MOTIF_LIBS -lXintl"
15482 ###############################################################################
15484 # Check for -lGL or -lMesaGL.
15486 ###############################################################################
15490 with_gl_req=unspecified
15493 # Check whether --with-gl or --without-gl was given.
15494 if test "${with_gl+set}" = set; then
15496 with_gl="$withval"; with_gl_req="$withval"
15507 echo "$as_me:$LINENO: checking for GL headers" >&5
15508 echo $ECHO_N "checking for GL headers... $ECHO_C" >&6
15510 if test -d $d; then
15511 X_CFLAGS="-I$d $X_CFLAGS"
15512 echo "$as_me:$LINENO: result: $d" >&5
15513 echo "${ECHO_T}$d" >&6
15515 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15516 echo "${ECHO_T}not found ($d: no such directory)" >&6
15519 echo "$as_me:$LINENO: checking for GL libs" >&5
15520 echo $ECHO_N "checking for GL libs... $ECHO_C" >&6
15522 if test -d $d; then
15523 X_LIBS="-L$d $X_LIBS"
15524 echo "$as_me:$LINENO: result: $d" >&5
15525 echo "${ECHO_T}$d" >&6
15527 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15528 echo "${ECHO_T}not found ($d: no such directory)" >&6
15531 # replace the directory string with "yes".
15533 with_gl=$with_gl_req
15538 echo "error: argument to --with-gl must be \"yes\", \"no\", or a directory."
15539 echo " If it is a directory, then \`DIR/include' will be added to"
15540 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15546 ac_mesagl_version=unknown
15547 ac_mesagl_version_string=unknown
15549 if test "$with_gl" = yes; then
15551 ac_save_CPPFLAGS="$CPPFLAGS"
15552 if test \! -z "$includedir" ; then
15553 CPPFLAGS="$CPPFLAGS -I$includedir"
15555 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15556 if test "${ac_cv_header_GL_gl_h+set}" = set; then
15557 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
15558 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
15559 if test "${ac_cv_header_GL_gl_h+set}" = set; then
15560 echo $ECHO_N "(cached) $ECHO_C" >&6
15562 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
15563 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
15565 # Is the header compilable?
15566 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
15567 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
15568 cat >conftest.$ac_ext <<_ACEOF
15571 cat confdefs.h >>conftest.$ac_ext
15572 cat >>conftest.$ac_ext <<_ACEOF
15573 /* end confdefs.h. */
15574 $ac_includes_default
15577 rm -f conftest.$ac_objext
15578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15579 (eval $ac_compile) 2>conftest.er1
15581 grep -v '^ *+' conftest.er1 >conftest.err
15583 cat conftest.err >&5
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); } &&
15586 { ac_try='test -z "$ac_c_werror_flag"
15587 || test ! -s conftest.err'
15588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589 (eval $ac_try) 2>&5
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; } &&
15593 { ac_try='test -s conftest.$ac_objext'
15594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595 (eval $ac_try) 2>&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; }; then
15599 ac_header_compiler=yes
15601 echo "$as_me: failed program was:" >&5
15602 sed 's/^/| /' conftest.$ac_ext >&5
15604 ac_header_compiler=no
15606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15607 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15608 echo "${ECHO_T}$ac_header_compiler" >&6
15610 # Is the header present?
15611 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
15612 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
15613 cat >conftest.$ac_ext <<_ACEOF
15616 cat confdefs.h >>conftest.$ac_ext
15617 cat >>conftest.$ac_ext <<_ACEOF
15618 /* end confdefs.h. */
15621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15624 grep -v '^ *+' conftest.er1 >conftest.err
15626 cat conftest.err >&5
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); } >/dev/null; then
15629 if test -s conftest.err; then
15630 ac_cpp_err=$ac_c_preproc_warn_flag
15631 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15638 if test -z "$ac_cpp_err"; then
15639 ac_header_preproc=yes
15641 echo "$as_me: failed program was:" >&5
15642 sed 's/^/| /' conftest.$ac_ext >&5
15644 ac_header_preproc=no
15646 rm -f conftest.err conftest.$ac_ext
15647 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15648 echo "${ECHO_T}$ac_header_preproc" >&6
15650 # So? What about this header?
15651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15653 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15654 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15655 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
15656 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
15657 ac_header_preproc=yes
15660 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
15661 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
15662 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
15663 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
15664 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
15665 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
15666 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
15667 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
15668 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
15669 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
15670 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
15671 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
15674 ## ------------------------------------------ ##
15675 ## Report this to the AC_PACKAGE_NAME lists. ##
15676 ## ------------------------------------------ ##
15679 sed "s/^/$as_me: WARNING: /" >&2
15682 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
15683 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
15684 if test "${ac_cv_header_GL_gl_h+set}" = set; then
15685 echo $ECHO_N "(cached) $ECHO_C" >&6
15687 ac_cv_header_GL_gl_h=$ac_header_preproc
15689 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
15690 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
15693 if test $ac_cv_header_GL_gl_h = yes; then
15700 CPPFLAGS="$ac_save_CPPFLAGS"
15701 if test "$have_gl" = yes ; then
15703 ac_save_CPPFLAGS="$CPPFLAGS"
15704 if test \! -z "$includedir" ; then
15705 CPPFLAGS="$CPPFLAGS -I$includedir"
15707 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15708 echo "$as_me:$LINENO: checking for GL/glx.h" >&5
15709 echo $ECHO_N "checking for GL/glx.h... $ECHO_C" >&6
15710 if test "${ac_cv_header_GL_glx_h+set}" = set; then
15711 echo $ECHO_N "(cached) $ECHO_C" >&6
15713 cat >conftest.$ac_ext <<_ACEOF
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h. */
15721 #include <GL/glx.h>
15723 rm -f conftest.$ac_objext
15724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15725 (eval $ac_compile) 2>conftest.er1
15727 grep -v '^ *+' conftest.er1 >conftest.err
15729 cat conftest.err >&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } &&
15732 { ac_try='test -z "$ac_c_werror_flag"
15733 || test ! -s conftest.err'
15734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735 (eval $ac_try) 2>&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; } &&
15739 { ac_try='test -s conftest.$ac_objext'
15740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741 (eval $ac_try) 2>&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; }; then
15745 ac_cv_header_GL_glx_h=yes
15747 echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15750 ac_cv_header_GL_glx_h=no
15752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15754 echo "$as_me:$LINENO: result: $ac_cv_header_GL_glx_h" >&5
15755 echo "${ECHO_T}$ac_cv_header_GL_glx_h" >&6
15756 if test $ac_cv_header_GL_glx_h = yes; then
15763 CPPFLAGS="$ac_save_CPPFLAGS"
15766 # If we have the headers, try and figure out which vendor it's from.
15768 if test "$have_gl" = yes ; then
15770 # We need to know whether it's MesaGL so that we know which libraries
15773 echo "$as_me:$LINENO: checking whether GL is really MesaGL" >&5
15774 echo $ECHO_N "checking whether GL is really MesaGL... $ECHO_C" >&6
15775 if test "${ac_cv_have_mesa_gl+set}" = set; then
15776 echo $ECHO_N "(cached) $ECHO_C" >&6
15778 ac_cv_have_mesa_gl=no
15780 ac_save_CPPFLAGS="$CPPFLAGS"
15781 if test \! -z "$includedir" ; then
15782 CPPFLAGS="$CPPFLAGS -I$includedir"
15784 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15785 cat >conftest.$ac_ext <<_ACEOF
15788 cat confdefs.h >>conftest.$ac_ext
15789 cat >>conftest.$ac_ext <<_ACEOF
15790 /* end confdefs.h. */
15791 #include <GL/glx.h>
15794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15795 $EGREP "Mesa|MESA" >/dev/null 2>&1; then
15796 ac_cv_have_mesa_gl=yes
15800 CPPFLAGS="$ac_save_CPPFLAGS"
15803 echo "$as_me:$LINENO: result: $ac_cv_have_mesa_gl" >&5
15804 echo "${ECHO_T}$ac_cv_have_mesa_gl" >&6
15805 ac_have_mesa_gl=$ac_cv_have_mesa_gl
15812 # Some versions of MesaGL are compiled to require -lpthread.
15813 # So if the Mesa headers exist, and -lpthread exists, then always
15814 # link -lpthread after the Mesa libs (be they named -lGL or -lMesaGL.)
15816 if test "$ac_have_mesa_gl" = yes; then
15817 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
15818 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
15819 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
15820 echo $ECHO_N "(cached) $ECHO_C" >&6
15822 ac_check_lib_save_LIBS=$LIBS
15823 LIBS="-lpthread $LIBS"
15824 cat >conftest.$ac_ext <<_ACEOF
15827 cat confdefs.h >>conftest.$ac_ext
15828 cat >>conftest.$ac_ext <<_ACEOF
15829 /* end confdefs.h. */
15831 /* Override any gcc2 internal prototype to avoid an error. */
15835 /* We use char because int might match the return type of a gcc2
15836 builtin and then its argument prototype would still apply. */
15837 char pthread_create ();
15846 rm -f conftest.$ac_objext conftest$ac_exeext
15847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15848 (eval $ac_link) 2>conftest.er1
15850 grep -v '^ *+' conftest.er1 >conftest.err
15852 cat conftest.err >&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); } &&
15855 { ac_try='test -z "$ac_c_werror_flag"
15856 || test ! -s conftest.err'
15857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858 (eval $ac_try) 2>&5
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); }; } &&
15862 { ac_try='test -s conftest$ac_exeext'
15863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864 (eval $ac_try) 2>&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }; }; then
15868 ac_cv_lib_pthread_pthread_create=yes
15870 echo "$as_me: failed program was:" >&5
15871 sed 's/^/| /' conftest.$ac_ext >&5
15873 ac_cv_lib_pthread_pthread_create=no
15875 rm -f conftest.err conftest.$ac_objext \
15876 conftest$ac_exeext conftest.$ac_ext
15877 LIBS=$ac_check_lib_save_LIBS
15879 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
15880 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
15881 if test $ac_cv_lib_pthread_pthread_create = yes; then
15882 GL_LIBS="-lpthread"
15888 # If we have Mesa headers, check to see if we can link against -lMesaGL.
15889 # If we don't have Mesa headers, or we don't have -lMesaGL, try -lGL.
15890 # Else, warn that GL is busted. (We have the headers, but no libs.)
15893 if test "$ac_have_mesa_gl" = yes ; then
15895 ac_save_CPPFLAGS="$CPPFLAGS"
15896 ac_save_LDFLAGS="$LDFLAGS"
15897 # ac_save_LIBS="$LIBS"
15899 if test \! -z "$includedir" ; then
15900 CPPFLAGS="$CPPFLAGS -I$includedir"
15902 # note: $X_CFLAGS includes $x_includes
15903 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15905 if test \! -z "$libdir" ; then
15906 LDFLAGS="$LDFLAGS -L$libdir"
15908 # note: $X_LIBS includes $x_libraries
15909 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15911 echo "$as_me:$LINENO: checking for glXCreateContext in -lMesaGL" >&5
15912 echo $ECHO_N "checking for glXCreateContext in -lMesaGL... $ECHO_C" >&6
15913 if test "${ac_cv_lib_MesaGL_glXCreateContext+set}" = set; then
15914 echo $ECHO_N "(cached) $ECHO_C" >&6
15916 ac_check_lib_save_LIBS=$LIBS
15917 LIBS="-lMesaGL -lMesaGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
15918 cat >conftest.$ac_ext <<_ACEOF
15921 cat confdefs.h >>conftest.$ac_ext
15922 cat >>conftest.$ac_ext <<_ACEOF
15923 /* end confdefs.h. */
15925 /* Override any gcc2 internal prototype to avoid an error. */
15929 /* We use char because int might match the return type of a gcc2
15930 builtin and then its argument prototype would still apply. */
15931 char glXCreateContext ();
15935 glXCreateContext ();
15940 rm -f conftest.$ac_objext conftest$ac_exeext
15941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15942 (eval $ac_link) 2>conftest.er1
15944 grep -v '^ *+' conftest.er1 >conftest.err
15946 cat conftest.err >&5
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); } &&
15949 { ac_try='test -z "$ac_c_werror_flag"
15950 || test ! -s conftest.err'
15951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952 (eval $ac_try) 2>&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); }; } &&
15956 { ac_try='test -s conftest$ac_exeext'
15957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958 (eval $ac_try) 2>&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }; }; then
15962 ac_cv_lib_MesaGL_glXCreateContext=yes
15964 echo "$as_me: failed program was:" >&5
15965 sed 's/^/| /' conftest.$ac_ext >&5
15967 ac_cv_lib_MesaGL_glXCreateContext=no
15969 rm -f conftest.err conftest.$ac_objext \
15970 conftest$ac_exeext conftest.$ac_ext
15971 LIBS=$ac_check_lib_save_LIBS
15973 echo "$as_me:$LINENO: result: $ac_cv_lib_MesaGL_glXCreateContext" >&5
15974 echo "${ECHO_T}$ac_cv_lib_MesaGL_glXCreateContext" >&6
15975 if test $ac_cv_lib_MesaGL_glXCreateContext = yes; then
15977 GL_LIBS="-lMesaGL -lMesaGLU $VIDMODE_LIBS $GL_LIBS"
15980 CPPFLAGS="$ac_save_CPPFLAGS"
15981 LDFLAGS="$ac_save_LDFLAGS"
15982 # LIBS="$ac_save_LIBS"
15986 if test "$gl_lib_1" = "" ; then
15988 ac_save_CPPFLAGS="$CPPFLAGS"
15989 ac_save_LDFLAGS="$LDFLAGS"
15990 # ac_save_LIBS="$LIBS"
15992 if test \! -z "$includedir" ; then
15993 CPPFLAGS="$CPPFLAGS -I$includedir"
15995 # note: $X_CFLAGS includes $x_includes
15996 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15998 if test \! -z "$libdir" ; then
15999 LDFLAGS="$LDFLAGS -L$libdir"
16001 # note: $X_LIBS includes $x_libraries
16002 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16004 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
16005 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
16006 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16009 ac_check_lib_save_LIBS=$LIBS
16010 LIBS="-lGL -lGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
16011 cat >conftest.$ac_ext <<_ACEOF
16014 cat confdefs.h >>conftest.$ac_ext
16015 cat >>conftest.$ac_ext <<_ACEOF
16016 /* end confdefs.h. */
16018 /* Override any gcc2 internal prototype to avoid an error. */
16022 /* We use char because int might match the return type of a gcc2
16023 builtin and then its argument prototype would still apply. */
16024 char glXCreateContext ();
16028 glXCreateContext ();
16033 rm -f conftest.$ac_objext conftest$ac_exeext
16034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16035 (eval $ac_link) 2>conftest.er1
16037 grep -v '^ *+' conftest.er1 >conftest.err
16039 cat conftest.err >&5
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); } &&
16042 { ac_try='test -z "$ac_c_werror_flag"
16043 || test ! -s conftest.err'
16044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16045 (eval $ac_try) 2>&5
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); }; } &&
16049 { ac_try='test -s conftest$ac_exeext'
16050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16051 (eval $ac_try) 2>&5
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); }; }; then
16055 ac_cv_lib_GL_glXCreateContext=yes
16057 echo "$as_me: failed program was:" >&5
16058 sed 's/^/| /' conftest.$ac_ext >&5
16060 ac_cv_lib_GL_glXCreateContext=no
16062 rm -f conftest.err conftest.$ac_objext \
16063 conftest$ac_exeext conftest.$ac_ext
16064 LIBS=$ac_check_lib_save_LIBS
16066 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
16067 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
16068 if test $ac_cv_lib_GL_glXCreateContext = yes; then
16070 GL_LIBS="-lGL -lGLU $VIDMODE_LIBS $GL_LIBS"
16073 CPPFLAGS="$ac_save_CPPFLAGS"
16074 LDFLAGS="$ac_save_LDFLAGS"
16075 # LIBS="$ac_save_LIBS"
16079 if test "$gl_lib_1" = "" ; then
16080 # we have headers, but no libs -- bail.
16085 # linking works -- we can build the GL hacks.
16086 cat >>confdefs.h <<\_ACEOF
16090 if test "$ac_have_mesa_gl" = yes ; then
16091 cat >>confdefs.h <<\_ACEOF
16092 #define HAVE_MESA_GL 1
16100 # Now that we know we have GL headers and libs, do some more GL testing.
16103 if test "$have_gl" = yes ; then
16104 # If it's MesaGL, we'd like to issue a warning if the version number
16105 # is less than or equal to 2.6, because that version had a security bug.
16107 if test "$ac_have_mesa_gl" = yes; then
16109 echo "$as_me:$LINENO: checking MesaGL version number" >&5
16110 echo $ECHO_N "checking MesaGL version number... $ECHO_C" >&6
16111 if test "${ac_cv_mesagl_version_string+set}" = set; then
16112 echo $ECHO_N "(cached) $ECHO_C" >&6
16114 cat > conftest.$ac_ext <<EOF
16115 #line 16119 "configure"
16116 #include "confdefs.h"
16118 #ifndef MESA_MAJOR_VERSION
16119 # include <GL/xmesa.h>
16120 # ifdef XMESA_MAJOR_VERSION
16121 /* Around Mesa 3.2, they took out the Mesa version number, so instead,
16122 we have to check the XMesa version number (the number of the X protocol
16123 support, which seems to be the same as the Mesa version number.)
16125 # define MESA_MAJOR_VERSION XMESA_MAJOR_VERSION
16126 # define MESA_MINOR_VERSION XMESA_MINOR_VERSION
16128 /* Oh great. Some time after 3.4, they took out the xmesa.h header file,
16129 so we have no way of telling what version of Mesa this is at all.
16130 So, we'll guess that the osmesa version (the "offscreen protocol")
16131 is less than or equal to the real mesa version number. Except that
16132 if OSmesa is 3.3, assume at least Mesa 3.4, since OSmesa was 3.3 in
16133 Mesa 3.4. And Mesa 3.3 had xmesa.h. What a complete load of shit!
16135 # include <GL/osmesa.h>
16136 # define MESA_MAJOR_VERSION OSMESA_MAJOR_VERSION
16137 # define MESA_MINOR_VERSION OSMESA_MINOR_VERSION or newer, probably?
16138 # if OSMESA_MAJOR_VERSION == 3 && OSMESA_MINOR_VERSION == 3
16139 # undef MESA_MINOR_VERSION
16140 # define MESA_MINOR_VERSION 4 or newer, probably?
16144 configure: MESA_MAJOR_VERSION MESA_MINOR_VERSION
16147 ac_save_CPPFLAGS="$CPPFLAGS"
16148 if test \! -z "$includedir" ; then
16149 CPPFLAGS="$CPPFLAGS -I$includedir"
16151 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16153 mglv=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | grep configure:`
16157 mglv=`echo "$mglv" | sed -n \
16158 's/^configure: *\([0-9][0-9]*\) *\([0-9].*\)$/\1.\2/p'`
16161 rm -f conftest.$ac_ext
16163 CPPFLAGS="$ac_save_CPPFLAGS"
16165 if test "$mglv" = ""; then
16166 ac_mesagl_version=unknown
16167 ac_mesagl_version_string=unknown
16169 ac_mesagl_version_string="$mglv"
16172 maj=`echo "$mglv" | sed -n 's/^\([0-9][0-9]*\)\..*$/\1/p'`
16173 min=`echo "$mglv" | sed -n 's/^.*\.\([0-9][0-9]*\).*$/\1/p'`
16175 ac_mesagl_version=`echo "$maj * 1000 + $min" | bc`
16176 if test -z "$ac_mesagl_version"; then
16177 ac_mesagl_version=unknown
16178 ac_mesagl_version_string=unknown
16181 ac_cv_mesagl_version=$ac_mesagl_version
16182 ac_cv_mesagl_version_string=$ac_mesagl_version_string
16185 echo "$as_me:$LINENO: result: $ac_cv_mesagl_version_string" >&5
16186 echo "${ECHO_T}$ac_cv_mesagl_version_string" >&6
16187 ac_mesagl_version=$ac_cv_mesagl_version
16188 ac_mesagl_version_string=$ac_cv_mesagl_version_string
16192 # Check for OpenGL 1.1 features.
16195 ac_save_CPPFLAGS="$CPPFLAGS"
16196 ac_save_LDFLAGS="$LDFLAGS"
16197 # ac_save_LIBS="$LIBS"
16199 if test \! -z "$includedir" ; then
16200 CPPFLAGS="$CPPFLAGS -I$includedir"
16202 # note: $X_CFLAGS includes $x_includes
16203 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16205 if test \! -z "$libdir" ; then
16206 LDFLAGS="$LDFLAGS -L$libdir"
16208 # note: $X_LIBS includes $x_libraries
16209 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16211 as_ac_Lib=`echo "ac_cv_lib_$gl_lib_1''_glBindTexture" | $as_tr_sh`
16212 echo "$as_me:$LINENO: checking for glBindTexture in -l$gl_lib_1" >&5
16213 echo $ECHO_N "checking for glBindTexture in -l$gl_lib_1... $ECHO_C" >&6
16214 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16215 echo $ECHO_N "(cached) $ECHO_C" >&6
16217 ac_check_lib_save_LIBS=$LIBS
16218 LIBS="-l$gl_lib_1 $GL_LIBS -lX11 -lXext -lm $LIBS"
16219 cat >conftest.$ac_ext <<_ACEOF
16222 cat confdefs.h >>conftest.$ac_ext
16223 cat >>conftest.$ac_ext <<_ACEOF
16224 /* end confdefs.h. */
16226 /* Override any gcc2 internal prototype to avoid an error. */
16230 /* We use char because int might match the return type of a gcc2
16231 builtin and then its argument prototype would still apply. */
16232 char glBindTexture ();
16241 rm -f conftest.$ac_objext conftest$ac_exeext
16242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16243 (eval $ac_link) 2>conftest.er1
16245 grep -v '^ *+' conftest.er1 >conftest.err
16247 cat conftest.err >&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } &&
16250 { ac_try='test -z "$ac_c_werror_flag"
16251 || test ! -s conftest.err'
16252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16253 (eval $ac_try) 2>&5
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; } &&
16257 { ac_try='test -s conftest$ac_exeext'
16258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16259 (eval $ac_try) 2>&5
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); }; }; then
16263 eval "$as_ac_Lib=yes"
16265 echo "$as_me: failed program was:" >&5
16266 sed 's/^/| /' conftest.$ac_ext >&5
16268 eval "$as_ac_Lib=no"
16270 rm -f conftest.err conftest.$ac_objext \
16271 conftest$ac_exeext conftest.$ac_ext
16272 LIBS=$ac_check_lib_save_LIBS
16274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16275 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16276 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16277 cat >>confdefs.h <<\_ACEOF
16278 #define HAVE_GLBINDTEXTURE 1
16285 CPPFLAGS="$ac_save_CPPFLAGS"
16286 LDFLAGS="$ac_save_LDFLAGS"
16287 # LIBS="$ac_save_LIBS"
16291 elif test "$with_gl" != no; then
16292 echo "error: must be yes or no: --with-gl=$with_gl"
16297 ###############################################################################
16301 ###############################################################################
16304 with_gle_req=unspecified
16307 # Check whether --with-gle or --without-gle was given.
16308 if test "${with_gle+set}" = set; then
16309 withval="$with_gle"
16310 with_gle="$withval"; with_gle_req="$withval"
16316 case "$with_gle" in
16321 echo "$as_me:$LINENO: checking for GLE headers" >&5
16322 echo $ECHO_N "checking for GLE headers... $ECHO_C" >&6
16323 d=$with_gle/include
16324 if test -d $d; then
16325 X_CFLAGS="-I$d $X_CFLAGS"
16326 echo "$as_me:$LINENO: result: $d" >&5
16327 echo "${ECHO_T}$d" >&6
16329 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16330 echo "${ECHO_T}not found ($d: no such directory)" >&6
16333 echo "$as_me:$LINENO: checking for GLE libs" >&5
16334 echo $ECHO_N "checking for GLE libs... $ECHO_C" >&6
16336 if test -d $d; then
16337 X_LIBS="-L$d $X_LIBS"
16338 echo "$as_me:$LINENO: result: $d" >&5
16339 echo "${ECHO_T}$d" >&6
16341 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16342 echo "${ECHO_T}not found ($d: no such directory)" >&6
16345 # replace the directory string with "yes".
16347 with_gle=$with_gle_req
16352 echo "error: argument to --with-gle must be \"yes\", \"no\", or a directory."
16353 echo " If it is a directory, then \`DIR/include' will be added to"
16354 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16362 if test "$have_gl" = no ; then
16364 elif test "$with_gle" = yes; then
16367 ac_save_CPPFLAGS="$CPPFLAGS"
16368 if test \! -z "$includedir" ; then
16369 CPPFLAGS="$CPPFLAGS -I$includedir"
16371 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16372 echo "$as_me:$LINENO: checking for GL/gle.h" >&5
16373 echo $ECHO_N "checking for GL/gle.h... $ECHO_C" >&6
16374 if test "${ac_cv_header_GL_gle_h+set}" = set; then
16375 echo $ECHO_N "(cached) $ECHO_C" >&6
16377 cat >conftest.$ac_ext <<_ACEOF
16380 cat confdefs.h >>conftest.$ac_ext
16381 cat >>conftest.$ac_ext <<_ACEOF
16382 /* end confdefs.h. */
16385 #include <GL/gle.h>
16387 rm -f conftest.$ac_objext
16388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16389 (eval $ac_compile) 2>conftest.er1
16391 grep -v '^ *+' conftest.er1 >conftest.err
16393 cat conftest.err >&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } &&
16396 { ac_try='test -z "$ac_c_werror_flag"
16397 || test ! -s conftest.err'
16398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16399 (eval $ac_try) 2>&5
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); }; } &&
16403 { ac_try='test -s conftest.$ac_objext'
16404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16405 (eval $ac_try) 2>&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); }; }; then
16409 ac_cv_header_GL_gle_h=yes
16411 echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.$ac_ext >&5
16414 ac_cv_header_GL_gle_h=no
16416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16418 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gle_h" >&5
16419 echo "${ECHO_T}$ac_cv_header_GL_gle_h" >&6
16420 if test $ac_cv_header_GL_gle_h = yes; then
16427 CPPFLAGS="$ac_save_CPPFLAGS"
16428 if test "$have_gle3" = yes ; then
16432 ac_save_CPPFLAGS="$CPPFLAGS"
16433 if test \! -z "$includedir" ; then
16434 CPPFLAGS="$CPPFLAGS -I$includedir"
16436 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16437 echo "$as_me:$LINENO: checking for GL/gutil.h" >&5
16438 echo $ECHO_N "checking for GL/gutil.h... $ECHO_C" >&6
16439 if test "${ac_cv_header_GL_gutil_h+set}" = set; then
16440 echo $ECHO_N "(cached) $ECHO_C" >&6
16442 cat >conftest.$ac_ext <<_ACEOF
16445 cat confdefs.h >>conftest.$ac_ext
16446 cat >>conftest.$ac_ext <<_ACEOF
16447 /* end confdefs.h. */
16450 #include <GL/gutil.h>
16452 rm -f conftest.$ac_objext
16453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16454 (eval $ac_compile) 2>conftest.er1
16456 grep -v '^ *+' conftest.er1 >conftest.err
16458 cat conftest.err >&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); } &&
16461 { ac_try='test -z "$ac_c_werror_flag"
16462 || test ! -s conftest.err'
16463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16464 (eval $ac_try) 2>&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); }; } &&
16468 { ac_try='test -s conftest.$ac_objext'
16469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16470 (eval $ac_try) 2>&5
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); }; }; then
16474 ac_cv_header_GL_gutil_h=yes
16476 echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16479 ac_cv_header_GL_gutil_h=no
16481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16483 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gutil_h" >&5
16484 echo "${ECHO_T}$ac_cv_header_GL_gutil_h" >&6
16485 if test $ac_cv_header_GL_gutil_h = yes; then
16492 CPPFLAGS="$ac_save_CPPFLAGS"
16493 if test "$have_gle" = yes ; then
16495 ac_save_CPPFLAGS="$CPPFLAGS"
16496 if test \! -z "$includedir" ; then
16497 CPPFLAGS="$CPPFLAGS -I$includedir"
16499 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16500 echo "$as_me:$LINENO: checking for GL/tube.h" >&5
16501 echo $ECHO_N "checking for GL/tube.h... $ECHO_C" >&6
16502 if test "${ac_cv_header_GL_tube_h+set}" = set; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16505 cat >conftest.$ac_ext <<_ACEOF
16508 cat confdefs.h >>conftest.$ac_ext
16509 cat >>conftest.$ac_ext <<_ACEOF
16510 /* end confdefs.h. */
16513 #include <GL/tube.h>
16515 rm -f conftest.$ac_objext
16516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16517 (eval $ac_compile) 2>conftest.er1
16519 grep -v '^ *+' conftest.er1 >conftest.err
16521 cat conftest.err >&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); } &&
16524 { ac_try='test -z "$ac_c_werror_flag"
16525 || test ! -s conftest.err'
16526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16527 (eval $ac_try) 2>&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); }; } &&
16531 { ac_try='test -s conftest.$ac_objext'
16532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16533 (eval $ac_try) 2>&5
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); }; }; then
16537 ac_cv_header_GL_tube_h=yes
16539 echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.$ac_ext >&5
16542 ac_cv_header_GL_tube_h=no
16544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16546 echo "$as_me:$LINENO: result: $ac_cv_header_GL_tube_h" >&5
16547 echo "${ECHO_T}$ac_cv_header_GL_tube_h" >&6
16548 if test $ac_cv_header_GL_tube_h = yes; then
16555 CPPFLAGS="$ac_save_CPPFLAGS"
16559 if test "$have_gle" = yes ; then
16563 ac_save_CPPFLAGS="$CPPFLAGS"
16564 ac_save_LDFLAGS="$LDFLAGS"
16565 # ac_save_LIBS="$LIBS"
16567 if test \! -z "$includedir" ; then
16568 CPPFLAGS="$CPPFLAGS -I$includedir"
16570 # note: $X_CFLAGS includes $x_includes
16571 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16573 if test \! -z "$libdir" ; then
16574 LDFLAGS="$LDFLAGS -L$libdir"
16576 # note: $X_LIBS includes $x_libraries
16577 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16579 echo "$as_me:$LINENO: checking for gleCreateGC in -lgle" >&5
16580 echo $ECHO_N "checking for gleCreateGC in -lgle... $ECHO_C" >&6
16581 if test "${ac_cv_lib_gle_gleCreateGC+set}" = set; then
16582 echo $ECHO_N "(cached) $ECHO_C" >&6
16584 ac_check_lib_save_LIBS=$LIBS
16585 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
16586 cat >conftest.$ac_ext <<_ACEOF
16589 cat confdefs.h >>conftest.$ac_ext
16590 cat >>conftest.$ac_ext <<_ACEOF
16591 /* end confdefs.h. */
16593 /* Override any gcc2 internal prototype to avoid an error. */
16597 /* We use char because int might match the return type of a gcc2
16598 builtin and then its argument prototype would still apply. */
16599 char gleCreateGC ();
16608 rm -f conftest.$ac_objext conftest$ac_exeext
16609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16610 (eval $ac_link) 2>conftest.er1
16612 grep -v '^ *+' conftest.er1 >conftest.err
16614 cat conftest.err >&5
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); } &&
16617 { ac_try='test -z "$ac_c_werror_flag"
16618 || test ! -s conftest.err'
16619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16620 (eval $ac_try) 2>&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); }; } &&
16624 { ac_try='test -s conftest$ac_exeext'
16625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16626 (eval $ac_try) 2>&5
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); }; }; then
16630 ac_cv_lib_gle_gleCreateGC=yes
16632 echo "$as_me: failed program was:" >&5
16633 sed 's/^/| /' conftest.$ac_ext >&5
16635 ac_cv_lib_gle_gleCreateGC=no
16637 rm -f conftest.err conftest.$ac_objext \
16638 conftest$ac_exeext conftest.$ac_ext
16639 LIBS=$ac_check_lib_save_LIBS
16641 echo "$as_me:$LINENO: result: $ac_cv_lib_gle_gleCreateGC" >&5
16642 echo "${ECHO_T}$ac_cv_lib_gle_gleCreateGC" >&6
16643 if test $ac_cv_lib_gle_gleCreateGC = yes; then
16644 have_gle=yes; gle_halfassed=no; GLE_LIBS="-lgle"
16647 CPPFLAGS="$ac_save_CPPFLAGS"
16648 LDFLAGS="$ac_save_LDFLAGS"
16649 # LIBS="$ac_save_LIBS"
16652 if test "$have_gle" = yes ; then
16656 # sometimes the libmatrix stuff is included in libgle. look there first.
16658 # I don't get it. For some reason, this test passes on SGI, as if
16659 # uview_direction_d() was in libgle -- but it's not, it's in libmatrix.
16660 # Yet the link is succeeding. Why???
16662 # AC_CHECK_X_LIB(gle, uview_direction_d,
16663 # [have_gle=yes; gle_halfassed=no],
16664 # [], $GL_LIBS -lX11 -lXext -lm)
16666 # As of GLE 3 this is in libgle, and has changed name to uview_direction!
16668 if test "$have_gle3" = yes ; then
16670 ac_save_CPPFLAGS="$CPPFLAGS"
16671 ac_save_LDFLAGS="$LDFLAGS"
16672 # ac_save_LIBS="$LIBS"
16674 if test \! -z "$includedir" ; then
16675 CPPFLAGS="$CPPFLAGS -I$includedir"
16677 # note: $X_CFLAGS includes $x_includes
16678 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16680 if test \! -z "$libdir" ; then
16681 LDFLAGS="$LDFLAGS -L$libdir"
16683 # note: $X_LIBS includes $x_libraries
16684 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16686 echo "$as_me:$LINENO: checking for uview_direction in -lgle" >&5
16687 echo $ECHO_N "checking for uview_direction in -lgle... $ECHO_C" >&6
16688 if test "${ac_cv_lib_gle_uview_direction+set}" = set; then
16689 echo $ECHO_N "(cached) $ECHO_C" >&6
16691 ac_check_lib_save_LIBS=$LIBS
16692 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
16693 cat >conftest.$ac_ext <<_ACEOF
16696 cat confdefs.h >>conftest.$ac_ext
16697 cat >>conftest.$ac_ext <<_ACEOF
16698 /* end confdefs.h. */
16700 /* Override any gcc2 internal prototype to avoid an error. */
16704 /* We use char because int might match the return type of a gcc2
16705 builtin and then its argument prototype would still apply. */
16706 char uview_direction ();
16710 uview_direction ();
16715 rm -f conftest.$ac_objext conftest$ac_exeext
16716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16717 (eval $ac_link) 2>conftest.er1
16719 grep -v '^ *+' conftest.er1 >conftest.err
16721 cat conftest.err >&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); } &&
16724 { ac_try='test -z "$ac_c_werror_flag"
16725 || test ! -s conftest.err'
16726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727 (eval $ac_try) 2>&5
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; } &&
16731 { ac_try='test -s conftest$ac_exeext'
16732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733 (eval $ac_try) 2>&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; }; then
16737 ac_cv_lib_gle_uview_direction=yes
16739 echo "$as_me: failed program was:" >&5
16740 sed 's/^/| /' conftest.$ac_ext >&5
16742 ac_cv_lib_gle_uview_direction=no
16744 rm -f conftest.err conftest.$ac_objext \
16745 conftest$ac_exeext conftest.$ac_ext
16746 LIBS=$ac_check_lib_save_LIBS
16748 echo "$as_me:$LINENO: result: $ac_cv_lib_gle_uview_direction" >&5
16749 echo "${ECHO_T}$ac_cv_lib_gle_uview_direction" >&6
16750 if test $ac_cv_lib_gle_uview_direction = yes; then
16751 have_gle=yes; gle_halfassed=no
16754 CPPFLAGS="$ac_save_CPPFLAGS"
16755 LDFLAGS="$ac_save_LDFLAGS"
16756 # LIBS="$ac_save_LIBS"
16759 # if it wasn't in libgle, then look in libmatrix.
16760 if test "$have_gle" = no ; then
16762 ac_save_CPPFLAGS="$CPPFLAGS"
16763 ac_save_LDFLAGS="$LDFLAGS"
16764 # ac_save_LIBS="$LIBS"
16766 if test \! -z "$includedir" ; then
16767 CPPFLAGS="$CPPFLAGS -I$includedir"
16769 # note: $X_CFLAGS includes $x_includes
16770 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16772 if test \! -z "$libdir" ; then
16773 LDFLAGS="$LDFLAGS -L$libdir"
16775 # note: $X_LIBS includes $x_libraries
16776 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16778 echo "$as_me:$LINENO: checking for uview_direction_d in -lmatrix" >&5
16779 echo $ECHO_N "checking for uview_direction_d in -lmatrix... $ECHO_C" >&6
16780 if test "${ac_cv_lib_matrix_uview_direction_d+set}" = set; then
16781 echo $ECHO_N "(cached) $ECHO_C" >&6
16783 ac_check_lib_save_LIBS=$LIBS
16784 LIBS="-lmatrix $GL_LIBS -lX11 -lXext -lm $LIBS"
16785 cat >conftest.$ac_ext <<_ACEOF
16788 cat confdefs.h >>conftest.$ac_ext
16789 cat >>conftest.$ac_ext <<_ACEOF
16790 /* end confdefs.h. */
16792 /* Override any gcc2 internal prototype to avoid an error. */
16796 /* We use char because int might match the return type of a gcc2
16797 builtin and then its argument prototype would still apply. */
16798 char uview_direction_d ();
16802 uview_direction_d ();
16807 rm -f conftest.$ac_objext conftest$ac_exeext
16808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16809 (eval $ac_link) 2>conftest.er1
16811 grep -v '^ *+' conftest.er1 >conftest.err
16813 cat conftest.err >&5
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); } &&
16816 { ac_try='test -z "$ac_c_werror_flag"
16817 || test ! -s conftest.err'
16818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16819 (eval $ac_try) 2>&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); }; } &&
16823 { ac_try='test -s conftest$ac_exeext'
16824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825 (eval $ac_try) 2>&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; }; then
16829 ac_cv_lib_matrix_uview_direction_d=yes
16831 echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16834 ac_cv_lib_matrix_uview_direction_d=no
16836 rm -f conftest.err conftest.$ac_objext \
16837 conftest$ac_exeext conftest.$ac_ext
16838 LIBS=$ac_check_lib_save_LIBS
16840 echo "$as_me:$LINENO: result: $ac_cv_lib_matrix_uview_direction_d" >&5
16841 echo "${ECHO_T}$ac_cv_lib_matrix_uview_direction_d" >&6
16842 if test $ac_cv_lib_matrix_uview_direction_d = yes; then
16843 have_gle=yes; gle_halfassed=no;
16844 GLE_LIBS="$GLE_LIBS -lmatrix"
16847 CPPFLAGS="$ac_save_CPPFLAGS"
16848 LDFLAGS="$ac_save_LDFLAGS"
16849 # LIBS="$ac_save_LIBS"
16854 if test "$have_gle" = yes ; then
16855 cat >>confdefs.h <<\_ACEOF
16859 if test "$have_gle3" = yes ; then
16860 cat >>confdefs.h <<\_ACEOF
16861 #define HAVE_GLE3 1
16867 elif test "$with_gle" != no; then
16868 echo "error: must be yes or no: --with-gle=$with_gle"
16874 ###############################################################################
16876 # Check for -lgdk_pixbuf.
16877 # These tests are for gdk_pixbuf usage of the hacks,
16878 # not xscreensaver-demo (thus we have to test again to get
16879 # the libraries right: don't want to pull in all of GTK
16882 ###############################################################################
16885 with_gdk_pixbuf_req=unspecified
16887 # Check whether --with-pixbuf or --without-pixbuf was given.
16888 if test "${with_pixbuf+set}" = set; then
16889 withval="$with_pixbuf"
16890 with_gdk_pixbuf="$withval"; with_gdk_pixbuf_req="$withval"
16892 with_gdk_pixbuf=yes
16895 # if --with-pixbuf=/directory/ was specified, remember that directory so that
16896 # we can also look for the `gdk-pixbuf-config' program in that directory.
16897 case "$with_gdk_pixbuf" in
16899 gdk_pixbuf_dir="$with_gdk_pixbuf"
16907 case "$with_gdk_pixbuf" in
16912 echo "$as_me:$LINENO: checking for GDK_PIXBUF headers" >&5
16913 echo $ECHO_N "checking for GDK_PIXBUF headers... $ECHO_C" >&6
16914 d=$with_gdk_pixbuf/include
16915 if test -d $d; then
16916 X_CFLAGS="-I$d $X_CFLAGS"
16917 echo "$as_me:$LINENO: result: $d" >&5
16918 echo "${ECHO_T}$d" >&6
16920 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16921 echo "${ECHO_T}not found ($d: no such directory)" >&6
16924 echo "$as_me:$LINENO: checking for GDK_PIXBUF libs" >&5
16925 echo $ECHO_N "checking for GDK_PIXBUF libs... $ECHO_C" >&6
16926 d=$with_gdk_pixbuf/lib
16927 if test -d $d; then
16928 X_LIBS="-L$d $X_LIBS"
16929 echo "$as_me:$LINENO: result: $d" >&5
16930 echo "${ECHO_T}$d" >&6
16932 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16933 echo "${ECHO_T}not found ($d: no such directory)" >&6
16936 # replace the directory string with "yes".
16937 with_gdk_pixbuf_req="yes"
16938 with_gdk_pixbuf=$with_gdk_pixbuf_req
16943 echo "error: argument to --with-pixbuf must be \"yes\", \"no\", or a directory."
16944 echo " If it is a directory, then \`DIR/include' will be added to"
16945 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16951 if test "$with_gdk_pixbuf" != yes -a "$with_gdk_pixbuf" != no ; then
16952 echo "error: must be yes or no: --with-pixbuf=$with_gdk_pixbuf"
16956 if test "$with_gdk_pixbuf" = yes; then
16962 pkg_check_version gdk-pixbuf-2.0 2.0.0
16963 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
16964 have_gdk_pixbuf="$ok"
16966 if test "$have_gdk_pixbuf" = yes; then
16967 echo "$as_me:$LINENO: checking for gdk-pixbuf includes" >&5
16968 echo $ECHO_N "checking for gdk-pixbuf includes... $ECHO_C" >&6
16969 if test "${ac_cv_gdk_pixbuf_config_cflags+set}" = set; then
16970 echo $ECHO_N "(cached) $ECHO_C" >&6
16972 ac_cv_gdk_pixbuf_config_cflags=`$pkg_config --cflags $pkgs`
16974 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
16975 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_cflags" >&6
16976 echo "$as_me:$LINENO: checking for gdk-pixbuf libs" >&5
16977 echo $ECHO_N "checking for gdk-pixbuf libs... $ECHO_C" >&6
16978 if test "${ac_cv_gdk_pixbuf_config_libs+set}" = set; then
16979 echo $ECHO_N "(cached) $ECHO_C" >&6
16981 ac_cv_gdk_pixbuf_config_libs=`$pkg_config --libs $pkgs`
16983 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_libs" >&5
16984 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_libs" >&6
16986 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
16987 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
16990 if test "$have_gdk_pixbuf" = yes; then
16992 # we appear to have pixbuf; check for headers/libs to be sure.
16994 ac_save_gdk_pixbuf_CPPFLAGS="$CPPFLAGS"
16995 CPPFLAGS="$CPPFLAGS $ac_gdk_pixbuf_config_cflags"
16999 # check for header A...
17001 ac_save_CPPFLAGS="$CPPFLAGS"
17002 if test \! -z "$includedir" ; then
17003 CPPFLAGS="$CPPFLAGS -I$includedir"
17005 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17006 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
17007 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
17008 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6
17009 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
17010 echo $ECHO_N "(cached) $ECHO_C" >&6
17012 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
17013 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6
17015 # Is the header compilable?
17016 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h usability" >&5
17017 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h usability... $ECHO_C" >&6
17018 cat >conftest.$ac_ext <<_ACEOF
17021 cat confdefs.h >>conftest.$ac_ext
17022 cat >>conftest.$ac_ext <<_ACEOF
17023 /* end confdefs.h. */
17024 $ac_includes_default
17025 #include <gdk-pixbuf/gdk-pixbuf.h>
17027 rm -f conftest.$ac_objext
17028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17029 (eval $ac_compile) 2>conftest.er1
17031 grep -v '^ *+' conftest.er1 >conftest.err
17033 cat conftest.err >&5
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); } &&
17036 { ac_try='test -z "$ac_c_werror_flag"
17037 || test ! -s conftest.err'
17038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17039 (eval $ac_try) 2>&5
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); }; } &&
17043 { ac_try='test -s conftest.$ac_objext'
17044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045 (eval $ac_try) 2>&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; }; then
17049 ac_header_compiler=yes
17051 echo "$as_me: failed program was:" >&5
17052 sed 's/^/| /' conftest.$ac_ext >&5
17054 ac_header_compiler=no
17056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17057 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17058 echo "${ECHO_T}$ac_header_compiler" >&6
17060 # Is the header present?
17061 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h presence" >&5
17062 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h presence... $ECHO_C" >&6
17063 cat >conftest.$ac_ext <<_ACEOF
17066 cat confdefs.h >>conftest.$ac_ext
17067 cat >>conftest.$ac_ext <<_ACEOF
17068 /* end confdefs.h. */
17069 #include <gdk-pixbuf/gdk-pixbuf.h>
17071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17074 grep -v '^ *+' conftest.er1 >conftest.err
17076 cat conftest.err >&5
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); } >/dev/null; then
17079 if test -s conftest.err; then
17080 ac_cpp_err=$ac_c_preproc_warn_flag
17081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17088 if test -z "$ac_cpp_err"; then
17089 ac_header_preproc=yes
17091 echo "$as_me: failed program was:" >&5
17092 sed 's/^/| /' conftest.$ac_ext >&5
17094 ac_header_preproc=no
17096 rm -f conftest.err conftest.$ac_ext
17097 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17098 echo "${ECHO_T}$ac_header_preproc" >&6
17100 # So? What about this header?
17101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17103 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&5
17104 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17105 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the compiler's result" >&5
17106 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the compiler's result" >&2;}
17107 ac_header_preproc=yes
17110 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&5
17111 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&2;}
17112 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&5
17113 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&2;}
17114 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: see the Autoconf documentation" >&5
17115 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: see the Autoconf documentation" >&2;}
17116 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: section \"Present But Cannot Be Compiled\"" >&5
17117 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: section \"Present But Cannot Be Compiled\"" >&2;}
17118 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&5
17119 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&2;}
17120 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: in the future, the compiler will take precedence" >&5
17121 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: in the future, the compiler will take precedence" >&2;}
17124 ## ------------------------------------------ ##
17125 ## Report this to the AC_PACKAGE_NAME lists. ##
17126 ## ------------------------------------------ ##
17129 sed "s/^/$as_me: WARNING: /" >&2
17132 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
17133 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6
17134 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
17135 echo $ECHO_N "(cached) $ECHO_C" >&6
17137 ac_cv_header_gdk_pixbuf_gdk_pixbuf_h=$ac_header_preproc
17139 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
17140 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6
17143 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h = yes; then
17144 have_gdk_pixbuf=yes
17148 CPPFLAGS="$ac_save_CPPFLAGS"
17150 # if that worked, check for header B...
17151 if test "$have_gdk_pixbuf" = yes; then
17153 gdk_pixbuf_halfassed=yes
17155 ac_save_CPPFLAGS="$CPPFLAGS"
17156 if test \! -z "$includedir" ; then
17157 CPPFLAGS="$CPPFLAGS -I$includedir"
17159 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17160 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
17161 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
17162 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6
17163 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
17164 echo $ECHO_N "(cached) $ECHO_C" >&6
17166 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
17167 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6
17169 # Is the header compilable?
17170 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h usability" >&5
17171 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6
17172 cat >conftest.$ac_ext <<_ACEOF
17175 cat confdefs.h >>conftest.$ac_ext
17176 cat >>conftest.$ac_ext <<_ACEOF
17177 /* end confdefs.h. */
17178 $ac_includes_default
17179 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
17181 rm -f conftest.$ac_objext
17182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17183 (eval $ac_compile) 2>conftest.er1
17185 grep -v '^ *+' conftest.er1 >conftest.err
17187 cat conftest.err >&5
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); } &&
17190 { ac_try='test -z "$ac_c_werror_flag"
17191 || test ! -s conftest.err'
17192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193 (eval $ac_try) 2>&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); }; } &&
17197 { ac_try='test -s conftest.$ac_objext'
17198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199 (eval $ac_try) 2>&5
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); }; }; then
17203 ac_header_compiler=yes
17205 echo "$as_me: failed program was:" >&5
17206 sed 's/^/| /' conftest.$ac_ext >&5
17208 ac_header_compiler=no
17210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17212 echo "${ECHO_T}$ac_header_compiler" >&6
17214 # Is the header present?
17215 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h presence" >&5
17216 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6
17217 cat >conftest.$ac_ext <<_ACEOF
17220 cat confdefs.h >>conftest.$ac_ext
17221 cat >>conftest.$ac_ext <<_ACEOF
17222 /* end confdefs.h. */
17223 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
17225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17228 grep -v '^ *+' conftest.er1 >conftest.err
17230 cat conftest.err >&5
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); } >/dev/null; then
17233 if test -s conftest.err; then
17234 ac_cpp_err=$ac_c_preproc_warn_flag
17235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17242 if test -z "$ac_cpp_err"; then
17243 ac_header_preproc=yes
17245 echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17248 ac_header_preproc=no
17250 rm -f conftest.err conftest.$ac_ext
17251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17252 echo "${ECHO_T}$ac_header_preproc" >&6
17254 # So? What about this header?
17255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17257 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17258 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17259 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&5
17260 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&2;}
17261 ac_header_preproc=yes
17264 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
17265 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
17266 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
17267 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
17268 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&5
17269 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&2;}
17270 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&5
17271 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17272 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
17273 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
17274 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&5
17275 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&2;}
17278 ## ------------------------------------------ ##
17279 ## Report this to the AC_PACKAGE_NAME lists. ##
17280 ## ------------------------------------------ ##
17283 sed "s/^/$as_me: WARNING: /" >&2
17286 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
17287 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6
17288 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
17289 echo $ECHO_N "(cached) $ECHO_C" >&6
17291 ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h=$ac_header_preproc
17293 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
17294 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6
17297 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h = yes; then
17298 have_gdk_pixbuf=yes
17299 gdk_pixbuf_halfassed=no
17303 CPPFLAGS="$ac_save_CPPFLAGS"
17305 # yay, it has a new name in Gtk 2.x...
17306 if test "$have_gdk_pixbuf" = no; then
17308 gdk_pixbuf_halfassed=yes
17310 ac_save_CPPFLAGS="$CPPFLAGS"
17311 if test \! -z "$includedir" ; then
17312 CPPFLAGS="$CPPFLAGS -I$includedir"
17314 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17315 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
17316 echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
17317 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6
17318 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
17319 echo $ECHO_N "(cached) $ECHO_C" >&6
17321 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
17322 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6
17324 # Is the header compilable?
17325 echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability" >&5
17326 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6
17327 cat >conftest.$ac_ext <<_ACEOF
17330 cat confdefs.h >>conftest.$ac_ext
17331 cat >>conftest.$ac_ext <<_ACEOF
17332 /* end confdefs.h. */
17333 $ac_includes_default
17334 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
17336 rm -f conftest.$ac_objext
17337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17338 (eval $ac_compile) 2>conftest.er1
17340 grep -v '^ *+' conftest.er1 >conftest.err
17342 cat conftest.err >&5
17343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); } &&
17345 { ac_try='test -z "$ac_c_werror_flag"
17346 || test ! -s conftest.err'
17347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17348 (eval $ac_try) 2>&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); }; } &&
17352 { ac_try='test -s conftest.$ac_objext'
17353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17354 (eval $ac_try) 2>&5
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); }; }; then
17358 ac_header_compiler=yes
17360 echo "$as_me: failed program was:" >&5
17361 sed 's/^/| /' conftest.$ac_ext >&5
17363 ac_header_compiler=no
17365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17366 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17367 echo "${ECHO_T}$ac_header_compiler" >&6
17369 # Is the header present?
17370 echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence" >&5
17371 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6
17372 cat >conftest.$ac_ext <<_ACEOF
17375 cat confdefs.h >>conftest.$ac_ext
17376 cat >>conftest.$ac_ext <<_ACEOF
17377 /* end confdefs.h. */
17378 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
17380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17383 grep -v '^ *+' conftest.er1 >conftest.err
17385 cat conftest.err >&5
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); } >/dev/null; then
17388 if test -s conftest.err; then
17389 ac_cpp_err=$ac_c_preproc_warn_flag
17390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17397 if test -z "$ac_cpp_err"; then
17398 ac_header_preproc=yes
17400 echo "$as_me: failed program was:" >&5
17401 sed 's/^/| /' conftest.$ac_ext >&5
17403 ac_header_preproc=no
17405 rm -f conftest.err conftest.$ac_ext
17406 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17407 echo "${ECHO_T}$ac_header_preproc" >&6
17409 # So? What about this header?
17410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17412 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17413 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17414 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&5
17415 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&2;}
17416 ac_header_preproc=yes
17419 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
17420 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
17421 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
17422 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
17423 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&5
17424 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&2;}
17425 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&5
17426 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17427 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
17428 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
17429 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&5
17430 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&2;}
17433 ## ------------------------------------------ ##
17434 ## Report this to the AC_PACKAGE_NAME lists. ##
17435 ## ------------------------------------------ ##
17438 sed "s/^/$as_me: WARNING: /" >&2
17441 echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
17442 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6
17443 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
17444 echo $ECHO_N "(cached) $ECHO_C" >&6
17446 ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h=$ac_header_preproc
17448 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
17449 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6
17452 if test $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h = yes; then
17453 have_gdk_pixbuf=yes
17454 gdk_pixbuf_halfassed=no
17458 CPPFLAGS="$ac_save_CPPFLAGS"
17461 CPPFLAGS="$ac_save_gdk_pixbuf_CPPFLAGS"
17464 if test "$have_gdk_pixbuf" = yes; then
17465 # we have the headers, now check for the libraries
17467 gdk_pixbuf_halfassed=yes
17469 echo "$as_me:$LINENO: result: checking for gdk_pixbuf usability..." >&5
17470 echo "${ECHO_T}checking for gdk_pixbuf usability..." >&6
17474 ac_save_CPPFLAGS="$CPPFLAGS"
17475 ac_save_LDFLAGS="$LDFLAGS"
17476 # ac_save_LIBS="$LIBS"
17478 if test \! -z "$includedir" ; then
17479 CPPFLAGS="$CPPFLAGS -I$includedir"
17481 # note: $X_CFLAGS includes $x_includes
17482 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17484 if test \! -z "$libdir" ; then
17485 LDFLAGS="$LDFLAGS -L$libdir"
17487 # note: $X_LIBS includes $x_libraries
17488 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17490 echo "$as_me:$LINENO: checking for gdk_pixbuf_new_from_file in -lc" >&5
17491 echo $ECHO_N "checking for gdk_pixbuf_new_from_file in -lc... $ECHO_C" >&6
17492 if test "${ac_cv_lib_c_gdk_pixbuf_new_from_file+set}" = set; then
17493 echo $ECHO_N "(cached) $ECHO_C" >&6
17495 ac_check_lib_save_LIBS=$LIBS
17496 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
17497 cat >conftest.$ac_ext <<_ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h. */
17504 /* Override any gcc2 internal prototype to avoid an error. */
17508 /* We use char because int might match the return type of a gcc2
17509 builtin and then its argument prototype would still apply. */
17510 char gdk_pixbuf_new_from_file ();
17514 gdk_pixbuf_new_from_file ();
17519 rm -f conftest.$ac_objext conftest$ac_exeext
17520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17521 (eval $ac_link) 2>conftest.er1
17523 grep -v '^ *+' conftest.er1 >conftest.err
17525 cat conftest.err >&5
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); } &&
17528 { ac_try='test -z "$ac_c_werror_flag"
17529 || test ! -s conftest.err'
17530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17531 (eval $ac_try) 2>&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); }; } &&
17535 { ac_try='test -s conftest$ac_exeext'
17536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537 (eval $ac_try) 2>&5
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; }; then
17541 ac_cv_lib_c_gdk_pixbuf_new_from_file=yes
17543 echo "$as_me: failed program was:" >&5
17544 sed 's/^/| /' conftest.$ac_ext >&5
17546 ac_cv_lib_c_gdk_pixbuf_new_from_file=no
17548 rm -f conftest.err conftest.$ac_objext \
17549 conftest$ac_exeext conftest.$ac_ext
17550 LIBS=$ac_check_lib_save_LIBS
17552 echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_new_from_file" >&5
17553 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_new_from_file" >&6
17554 if test $ac_cv_lib_c_gdk_pixbuf_new_from_file = yes; then
17555 have_gdk_pixbuf=yes
17558 CPPFLAGS="$ac_save_CPPFLAGS"
17559 LDFLAGS="$ac_save_LDFLAGS"
17560 # LIBS="$ac_save_LIBS"
17563 if test "$have_gdk_pixbuf" = yes; then
17566 ac_save_CPPFLAGS="$CPPFLAGS"
17567 ac_save_LDFLAGS="$LDFLAGS"
17568 # ac_save_LIBS="$LIBS"
17570 if test \! -z "$includedir" ; then
17571 CPPFLAGS="$CPPFLAGS -I$includedir"
17573 # note: $X_CFLAGS includes $x_includes
17574 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17576 if test \! -z "$libdir" ; then
17577 LDFLAGS="$LDFLAGS -L$libdir"
17579 # note: $X_LIBS includes $x_libraries
17580 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17582 echo "$as_me:$LINENO: checking for gdk_pixbuf_xlib_init in -lc" >&5
17583 echo $ECHO_N "checking for gdk_pixbuf_xlib_init in -lc... $ECHO_C" >&6
17584 if test "${ac_cv_lib_c_gdk_pixbuf_xlib_init+set}" = set; then
17585 echo $ECHO_N "(cached) $ECHO_C" >&6
17587 ac_check_lib_save_LIBS=$LIBS
17588 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
17589 cat >conftest.$ac_ext <<_ACEOF
17592 cat confdefs.h >>conftest.$ac_ext
17593 cat >>conftest.$ac_ext <<_ACEOF
17594 /* end confdefs.h. */
17596 /* Override any gcc2 internal prototype to avoid an error. */
17600 /* We use char because int might match the return type of a gcc2
17601 builtin and then its argument prototype would still apply. */
17602 char gdk_pixbuf_xlib_init ();
17606 gdk_pixbuf_xlib_init ();
17611 rm -f conftest.$ac_objext conftest$ac_exeext
17612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17613 (eval $ac_link) 2>conftest.er1
17615 grep -v '^ *+' conftest.er1 >conftest.err
17617 cat conftest.err >&5
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); } &&
17620 { ac_try='test -z "$ac_c_werror_flag"
17621 || test ! -s conftest.err'
17622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17623 (eval $ac_try) 2>&5
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); }; } &&
17627 { ac_try='test -s conftest$ac_exeext'
17628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629 (eval $ac_try) 2>&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); }; }; then
17633 ac_cv_lib_c_gdk_pixbuf_xlib_init=yes
17635 echo "$as_me: failed program was:" >&5
17636 sed 's/^/| /' conftest.$ac_ext >&5
17638 ac_cv_lib_c_gdk_pixbuf_xlib_init=no
17640 rm -f conftest.err conftest.$ac_objext \
17641 conftest$ac_exeext conftest.$ac_ext
17642 LIBS=$ac_check_lib_save_LIBS
17644 echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_xlib_init" >&5
17645 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_xlib_init" >&6
17646 if test $ac_cv_lib_c_gdk_pixbuf_xlib_init = yes; then
17647 have_gdk_pixbuf=yes
17648 gdk_pixbuf_halfassed=no
17651 CPPFLAGS="$ac_save_CPPFLAGS"
17652 LDFLAGS="$ac_save_LDFLAGS"
17653 # LIBS="$ac_save_LIBS"
17658 if test "$have_gdk_pixbuf" = yes; then
17659 INCLUDES="$INCLUDES $ac_gdk_pixbuf_config_cflags"
17660 XPM_LIBS="$ac_gdk_pixbuf_config_libs"
17661 cat >>confdefs.h <<\_ACEOF
17662 #define HAVE_GDK_PIXBUF 1
17666 echo "$as_me:$LINENO: result: checking for gdk_pixbuf usability... no" >&5
17667 echo "${ECHO_T}checking for gdk_pixbuf usability... no" >&6
17672 ###############################################################################
17676 ###############################################################################
17679 with_xpm_req=unspecified
17681 # Check whether --with-xpm or --without-xpm was given.
17682 if test "${with_xpm+set}" = set; then
17683 withval="$with_xpm"
17684 with_xpm="$withval"; with_xpm_req="$withval"
17690 case "$with_xpm" in
17695 echo "$as_me:$LINENO: checking for XPM headers" >&5
17696 echo $ECHO_N "checking for XPM headers... $ECHO_C" >&6
17697 d=$with_xpm/include
17698 if test -d $d; then
17699 X_CFLAGS="-I$d $X_CFLAGS"
17700 echo "$as_me:$LINENO: result: $d" >&5
17701 echo "${ECHO_T}$d" >&6
17703 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17704 echo "${ECHO_T}not found ($d: no such directory)" >&6
17707 echo "$as_me:$LINENO: checking for XPM libs" >&5
17708 echo $ECHO_N "checking for XPM libs... $ECHO_C" >&6
17710 if test -d $d; then
17711 X_LIBS="-L$d $X_LIBS"
17712 echo "$as_me:$LINENO: result: $d" >&5
17713 echo "${ECHO_T}$d" >&6
17715 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17716 echo "${ECHO_T}not found ($d: no such directory)" >&6
17719 # replace the directory string with "yes".
17721 with_xpm=$with_xpm_req
17726 echo "error: argument to --with-xpm must be \"yes\", \"no\", or a directory."
17727 echo " If it is a directory, then \`DIR/include' will be added to"
17728 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17734 if test "$with_xpm" = yes; then
17736 ac_save_CPPFLAGS="$CPPFLAGS"
17737 if test \! -z "$includedir" ; then
17738 CPPFLAGS="$CPPFLAGS -I$includedir"
17740 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17741 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
17742 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
17743 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17744 echo $ECHO_N "(cached) $ECHO_C" >&6
17746 cat >conftest.$ac_ext <<_ACEOF
17749 cat confdefs.h >>conftest.$ac_ext
17750 cat >>conftest.$ac_ext <<_ACEOF
17751 /* end confdefs.h. */
17752 #include <X11/Xlib.h>
17754 #include <X11/xpm.h>
17756 rm -f conftest.$ac_objext
17757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17758 (eval $ac_compile) 2>conftest.er1
17760 grep -v '^ *+' conftest.er1 >conftest.err
17762 cat conftest.err >&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } &&
17765 { ac_try='test -z "$ac_c_werror_flag"
17766 || test ! -s conftest.err'
17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768 (eval $ac_try) 2>&5
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; } &&
17772 { ac_try='test -s conftest.$ac_objext'
17773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774 (eval $ac_try) 2>&5
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; }; then
17778 ac_cv_header_X11_xpm_h=yes
17780 echo "$as_me: failed program was:" >&5
17781 sed 's/^/| /' conftest.$ac_ext >&5
17783 ac_cv_header_X11_xpm_h=no
17785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17787 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
17788 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
17789 if test $ac_cv_header_X11_xpm_h = yes; then
17791 cat >>confdefs.h <<\_ACEOF
17795 XPM_LIBS="-lXpm $XPM_LIBS"
17799 CPPFLAGS="$ac_save_CPPFLAGS"
17800 elif test "$with_xpm" != no; then
17801 echo "error: must be yes or no: --with-xpm=$with_xpm"
17805 # See comment near $motif_requires_xpm, above.
17806 # Need to do this here, after both Motif and XPM have been checked for.
17808 if test "$have_motif" = yes -a "$have_xpm" = yes ; then
17809 if test "$motif_requires_xpm" = yes ; then
17810 MOTIF_LIBS="$MOTIF_LIBS $XPM_LIBS"
17815 ###############################################################################
17819 ###############################################################################
17822 with_jpeg_req=unspecified
17825 # Check whether --with-jpeg or --without-jpeg was given.
17826 if test "${with_jpeg+set}" = set; then
17827 withval="$with_jpeg"
17828 with_jpeg="$withval"; with_jpeg_req="$withval"
17834 case "$with_jpeg" in
17839 echo "$as_me:$LINENO: checking for JPEG headers" >&5
17840 echo $ECHO_N "checking for JPEG headers... $ECHO_C" >&6
17841 d=$with_jpeg/include
17842 if test -d $d; then
17843 X_CFLAGS="-I$d $X_CFLAGS"
17844 echo "$as_me:$LINENO: result: $d" >&5
17845 echo "${ECHO_T}$d" >&6
17847 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17848 echo "${ECHO_T}not found ($d: no such directory)" >&6
17851 echo "$as_me:$LINENO: checking for JPEG libs" >&5
17852 echo $ECHO_N "checking for JPEG libs... $ECHO_C" >&6
17854 if test -d $d; then
17855 X_LIBS="-L$d $X_LIBS"
17856 echo "$as_me:$LINENO: result: $d" >&5
17857 echo "${ECHO_T}$d" >&6
17859 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17860 echo "${ECHO_T}not found ($d: no such directory)" >&6
17863 # replace the directory string with "yes".
17864 with_jpeg_req="yes"
17865 with_jpeg=$with_jpeg_req
17870 echo "error: argument to --with-jpeg must be \"yes\", \"no\", or a directory."
17871 echo " If it is a directory, then \`DIR/include' will be added to"
17872 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17878 if test "$with_jpeg" != yes -a "$with_jpeg" != no ; then
17879 echo "error: must be yes or no: --with-jpeg=$with_jpeg"
17883 if test "$with_jpeg" = yes; then
17887 ac_save_CPPFLAGS="$CPPFLAGS"
17888 if test \! -z "$includedir" ; then
17889 CPPFLAGS="$CPPFLAGS -I$includedir"
17891 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17892 if test "${ac_cv_header_jpeglib_h+set}" = set; then
17893 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
17894 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
17895 if test "${ac_cv_header_jpeglib_h+set}" = set; then
17896 echo $ECHO_N "(cached) $ECHO_C" >&6
17898 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
17899 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
17901 # Is the header compilable?
17902 echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
17903 echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6
17904 cat >conftest.$ac_ext <<_ACEOF
17907 cat confdefs.h >>conftest.$ac_ext
17908 cat >>conftest.$ac_ext <<_ACEOF
17909 /* end confdefs.h. */
17910 $ac_includes_default
17911 #include <jpeglib.h>
17913 rm -f conftest.$ac_objext
17914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17915 (eval $ac_compile) 2>conftest.er1
17917 grep -v '^ *+' conftest.er1 >conftest.err
17919 cat conftest.err >&5
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); } &&
17922 { ac_try='test -z "$ac_c_werror_flag"
17923 || test ! -s conftest.err'
17924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17925 (eval $ac_try) 2>&5
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); }; } &&
17929 { ac_try='test -s conftest.$ac_objext'
17930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931 (eval $ac_try) 2>&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; }; then
17935 ac_header_compiler=yes
17937 echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17940 ac_header_compiler=no
17942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17943 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17944 echo "${ECHO_T}$ac_header_compiler" >&6
17946 # Is the header present?
17947 echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
17948 echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6
17949 cat >conftest.$ac_ext <<_ACEOF
17952 cat confdefs.h >>conftest.$ac_ext
17953 cat >>conftest.$ac_ext <<_ACEOF
17954 /* end confdefs.h. */
17955 #include <jpeglib.h>
17957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17960 grep -v '^ *+' conftest.er1 >conftest.err
17962 cat conftest.err >&5
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); } >/dev/null; then
17965 if test -s conftest.err; then
17966 ac_cpp_err=$ac_c_preproc_warn_flag
17967 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17974 if test -z "$ac_cpp_err"; then
17975 ac_header_preproc=yes
17977 echo "$as_me: failed program was:" >&5
17978 sed 's/^/| /' conftest.$ac_ext >&5
17980 ac_header_preproc=no
17982 rm -f conftest.err conftest.$ac_ext
17983 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17984 echo "${ECHO_T}$ac_header_preproc" >&6
17986 # So? What about this header?
17987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17989 { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17990 echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17991 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
17992 echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
17993 ac_header_preproc=yes
17996 { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
17997 echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
17998 { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
17999 echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
18000 { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
18001 echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
18002 { echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
18003 echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18004 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
18005 echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
18006 { echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
18007 echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
18010 ## ------------------------------------------ ##
18011 ## Report this to the AC_PACKAGE_NAME lists. ##
18012 ## ------------------------------------------ ##
18015 sed "s/^/$as_me: WARNING: /" >&2
18018 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18019 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18020 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18021 echo $ECHO_N "(cached) $ECHO_C" >&6
18023 ac_cv_header_jpeglib_h=$ac_header_preproc
18025 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18026 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
18029 if test $ac_cv_header_jpeglib_h = yes; then
18034 CPPFLAGS="$ac_save_CPPFLAGS"
18036 if test "$have_jpeg" = yes; then
18037 # we have the header, now check for the library
18041 ac_save_CPPFLAGS="$CPPFLAGS"
18042 ac_save_LDFLAGS="$LDFLAGS"
18043 # ac_save_LIBS="$LIBS"
18045 if test \! -z "$includedir" ; then
18046 CPPFLAGS="$CPPFLAGS -I$includedir"
18048 # note: $X_CFLAGS includes $x_includes
18049 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18051 if test \! -z "$libdir" ; then
18052 LDFLAGS="$LDFLAGS -L$libdir"
18054 # note: $X_LIBS includes $x_libraries
18055 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18057 echo "$as_me:$LINENO: checking for jpeg_start_compress in -ljpeg" >&5
18058 echo $ECHO_N "checking for jpeg_start_compress in -ljpeg... $ECHO_C" >&6
18059 if test "${ac_cv_lib_jpeg_jpeg_start_compress+set}" = set; then
18060 echo $ECHO_N "(cached) $ECHO_C" >&6
18062 ac_check_lib_save_LIBS=$LIBS
18063 LIBS="-ljpeg $LIBS"
18064 cat >conftest.$ac_ext <<_ACEOF
18067 cat confdefs.h >>conftest.$ac_ext
18068 cat >>conftest.$ac_ext <<_ACEOF
18069 /* end confdefs.h. */
18071 /* Override any gcc2 internal prototype to avoid an error. */
18075 /* We use char because int might match the return type of a gcc2
18076 builtin and then its argument prototype would still apply. */
18077 char jpeg_start_compress ();
18081 jpeg_start_compress ();
18086 rm -f conftest.$ac_objext conftest$ac_exeext
18087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18088 (eval $ac_link) 2>conftest.er1
18090 grep -v '^ *+' conftest.er1 >conftest.err
18092 cat conftest.err >&5
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); } &&
18095 { ac_try='test -z "$ac_c_werror_flag"
18096 || test ! -s conftest.err'
18097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098 (eval $ac_try) 2>&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; } &&
18102 { ac_try='test -s conftest$ac_exeext'
18103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18104 (eval $ac_try) 2>&5
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); }; }; then
18108 ac_cv_lib_jpeg_jpeg_start_compress=yes
18110 echo "$as_me: failed program was:" >&5
18111 sed 's/^/| /' conftest.$ac_ext >&5
18113 ac_cv_lib_jpeg_jpeg_start_compress=no
18115 rm -f conftest.err conftest.$ac_objext \
18116 conftest$ac_exeext conftest.$ac_ext
18117 LIBS=$ac_check_lib_save_LIBS
18119 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5
18120 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_compress" >&6
18121 if test $ac_cv_lib_jpeg_jpeg_start_compress = yes; then
18125 cat >>confdefs.h <<\_ACEOF
18126 #define HAVE_JPEGLIB 1
18131 CPPFLAGS="$ac_save_CPPFLAGS"
18132 LDFLAGS="$ac_save_LDFLAGS"
18133 # LIBS="$ac_save_LIBS"
18139 ###############################################################################
18141 # Check for pty support: this allows 'phosphor' and 'apple2'
18142 # to run curses-based programs, or be used as terminal windows.
18144 ###############################################################################
18149 for ac_header in pty.h util.h
18151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18153 echo "$as_me:$LINENO: checking for $ac_header" >&5
18154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18156 echo $ECHO_N "(cached) $ECHO_C" >&6
18158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18161 # Is the header compilable?
18162 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18163 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18164 cat >conftest.$ac_ext <<_ACEOF
18167 cat confdefs.h >>conftest.$ac_ext
18168 cat >>conftest.$ac_ext <<_ACEOF
18169 /* end confdefs.h. */
18170 $ac_includes_default
18171 #include <$ac_header>
18173 rm -f conftest.$ac_objext
18174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18175 (eval $ac_compile) 2>conftest.er1
18177 grep -v '^ *+' conftest.er1 >conftest.err
18179 cat conftest.err >&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); } &&
18182 { ac_try='test -z "$ac_c_werror_flag"
18183 || test ! -s conftest.err'
18184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185 (eval $ac_try) 2>&5
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; } &&
18189 { ac_try='test -s conftest.$ac_objext'
18190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18191 (eval $ac_try) 2>&5
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); }; }; then
18195 ac_header_compiler=yes
18197 echo "$as_me: failed program was:" >&5
18198 sed 's/^/| /' conftest.$ac_ext >&5
18200 ac_header_compiler=no
18202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18203 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18204 echo "${ECHO_T}$ac_header_compiler" >&6
18206 # Is the header present?
18207 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18209 cat >conftest.$ac_ext <<_ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18215 #include <$ac_header>
18217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18220 grep -v '^ *+' conftest.er1 >conftest.err
18222 cat conftest.err >&5
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); } >/dev/null; then
18225 if test -s conftest.err; then
18226 ac_cpp_err=$ac_c_preproc_warn_flag
18227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18234 if test -z "$ac_cpp_err"; then
18235 ac_header_preproc=yes
18237 echo "$as_me: failed program was:" >&5
18238 sed 's/^/| /' conftest.$ac_ext >&5
18240 ac_header_preproc=no
18242 rm -f conftest.err conftest.$ac_ext
18243 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18244 echo "${ECHO_T}$ac_header_preproc" >&6
18246 # So? What about this header?
18247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18252 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18253 ac_header_preproc=yes
18256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18260 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18261 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18262 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18263 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18266 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18267 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18270 ## ------------------------------------------ ##
18271 ## Report this to the AC_PACKAGE_NAME lists. ##
18272 ## ------------------------------------------ ##
18275 sed "s/^/$as_me: WARNING: /" >&2
18278 echo "$as_me:$LINENO: checking for $ac_header" >&5
18279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18281 echo $ECHO_N "(cached) $ECHO_C" >&6
18283 eval "$as_ac_Header=\$ac_header_preproc"
18285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18290 cat >>confdefs.h <<_ACEOF
18291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18299 ac_save_CPPFLAGS="$CPPFLAGS"
18300 ac_save_LDFLAGS="$LDFLAGS"
18301 # ac_save_LIBS="$LIBS"
18303 if test \! -z "$includedir" ; then
18304 CPPFLAGS="$CPPFLAGS -I$includedir"
18306 # note: $X_CFLAGS includes $x_includes
18307 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18309 if test \! -z "$libdir" ; then
18310 LDFLAGS="$LDFLAGS -L$libdir"
18312 # note: $X_LIBS includes $x_libraries
18313 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18315 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18316 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
18317 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18318 echo $ECHO_N "(cached) $ECHO_C" >&6
18320 ac_check_lib_save_LIBS=$LIBS
18321 LIBS="-lutil $LIBS"
18322 cat >conftest.$ac_ext <<_ACEOF
18325 cat confdefs.h >>conftest.$ac_ext
18326 cat >>conftest.$ac_ext <<_ACEOF
18327 /* end confdefs.h. */
18329 /* Override any gcc2 internal prototype to avoid an error. */
18333 /* We use char because int might match the return type of a gcc2
18334 builtin and then its argument prototype would still apply. */
18344 rm -f conftest.$ac_objext conftest$ac_exeext
18345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18346 (eval $ac_link) 2>conftest.er1
18348 grep -v '^ *+' conftest.er1 >conftest.err
18350 cat conftest.err >&5
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); } &&
18353 { ac_try='test -z "$ac_c_werror_flag"
18354 || test ! -s conftest.err'
18355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18356 (eval $ac_try) 2>&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); }; } &&
18360 { ac_try='test -s conftest$ac_exeext'
18361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362 (eval $ac_try) 2>&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; }; then
18366 ac_cv_lib_util_forkpty=yes
18368 echo "$as_me: failed program was:" >&5
18369 sed 's/^/| /' conftest.$ac_ext >&5
18371 ac_cv_lib_util_forkpty=no
18373 rm -f conftest.err conftest.$ac_objext \
18374 conftest$ac_exeext conftest.$ac_ext
18375 LIBS=$ac_check_lib_save_LIBS
18377 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18378 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
18379 if test $ac_cv_lib_util_forkpty = yes; then
18381 cat >>confdefs.h <<\_ACEOF
18382 #define HAVE_FORKPTY 1
18387 CPPFLAGS="$ac_save_CPPFLAGS"
18388 LDFLAGS="$ac_save_LDFLAGS"
18389 # LIBS="$ac_save_LIBS"
18393 ###############################################################################
18395 # Check for the XSHM server extension.
18397 ###############################################################################
18400 with_xshm_req=unspecified
18402 # Check whether --with-xshm-ext or --without-xshm-ext was given.
18403 if test "${with_xshm_ext+set}" = set; then
18404 withval="$with_xshm_ext"
18405 with_xshm="$withval"; with_xshm_req="$withval"
18411 case "$with_xshm" in
18416 echo "$as_me:$LINENO: checking for XSHM headers" >&5
18417 echo $ECHO_N "checking for XSHM headers... $ECHO_C" >&6
18418 d=$with_xshm/include
18419 if test -d $d; then
18420 X_CFLAGS="-I$d $X_CFLAGS"
18421 echo "$as_me:$LINENO: result: $d" >&5
18422 echo "${ECHO_T}$d" >&6
18424 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18425 echo "${ECHO_T}not found ($d: no such directory)" >&6
18428 echo "$as_me:$LINENO: checking for XSHM libs" >&5
18429 echo $ECHO_N "checking for XSHM libs... $ECHO_C" >&6
18431 if test -d $d; then
18432 X_LIBS="-L$d $X_LIBS"
18433 echo "$as_me:$LINENO: result: $d" >&5
18434 echo "${ECHO_T}$d" >&6
18436 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18437 echo "${ECHO_T}not found ($d: no such directory)" >&6
18440 # replace the directory string with "yes".
18441 with_xshm_req="yes"
18442 with_xshm=$with_xshm_req
18447 echo "error: argument to --with-xshm-ext must be \"yes\", \"no\", or a directory."
18448 echo " If it is a directory, then \`DIR/include' will be added to"
18449 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18455 if test "$with_xshm" = yes; then
18457 # first check for Xshm.h.
18459 ac_save_CPPFLAGS="$CPPFLAGS"
18460 if test \! -z "$includedir" ; then
18461 CPPFLAGS="$CPPFLAGS -I$includedir"
18463 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18464 echo "$as_me:$LINENO: checking for X11/extensions/XShm.h" >&5
18465 echo $ECHO_N "checking for X11/extensions/XShm.h... $ECHO_C" >&6
18466 if test "${ac_cv_header_X11_extensions_XShm_h+set}" = set; then
18467 echo $ECHO_N "(cached) $ECHO_C" >&6
18469 cat >conftest.$ac_ext <<_ACEOF
18472 cat confdefs.h >>conftest.$ac_ext
18473 cat >>conftest.$ac_ext <<_ACEOF
18474 /* end confdefs.h. */
18475 #include <X11/Xlib.h>
18477 #include <X11/extensions/XShm.h>
18479 rm -f conftest.$ac_objext
18480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18481 (eval $ac_compile) 2>conftest.er1
18483 grep -v '^ *+' conftest.er1 >conftest.err
18485 cat conftest.err >&5
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); } &&
18488 { ac_try='test -z "$ac_c_werror_flag"
18489 || test ! -s conftest.err'
18490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18491 (eval $ac_try) 2>&5
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); }; } &&
18495 { ac_try='test -s conftest.$ac_objext'
18496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18497 (eval $ac_try) 2>&5
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); }; }; then
18501 ac_cv_header_X11_extensions_XShm_h=yes
18503 echo "$as_me: failed program was:" >&5
18504 sed 's/^/| /' conftest.$ac_ext >&5
18506 ac_cv_header_X11_extensions_XShm_h=no
18508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18510 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XShm_h" >&5
18511 echo "${ECHO_T}$ac_cv_header_X11_extensions_XShm_h" >&6
18512 if test $ac_cv_header_X11_extensions_XShm_h = yes; then
18517 CPPFLAGS="$ac_save_CPPFLAGS"
18519 # if that succeeded, then check for sys/ipc.h.
18520 if test "$have_xshm" = yes; then
18523 ac_save_CPPFLAGS="$CPPFLAGS"
18524 if test \! -z "$includedir" ; then
18525 CPPFLAGS="$CPPFLAGS -I$includedir"
18527 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18528 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
18529 echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
18530 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
18531 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
18532 echo $ECHO_N "(cached) $ECHO_C" >&6
18534 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
18535 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
18537 # Is the header compilable?
18538 echo "$as_me:$LINENO: checking sys/ipc.h usability" >&5
18539 echo $ECHO_N "checking sys/ipc.h usability... $ECHO_C" >&6
18540 cat >conftest.$ac_ext <<_ACEOF
18543 cat confdefs.h >>conftest.$ac_ext
18544 cat >>conftest.$ac_ext <<_ACEOF
18545 /* end confdefs.h. */
18546 $ac_includes_default
18547 #include <sys/ipc.h>
18549 rm -f conftest.$ac_objext
18550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18551 (eval $ac_compile) 2>conftest.er1
18553 grep -v '^ *+' conftest.er1 >conftest.err
18555 cat conftest.err >&5
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); } &&
18558 { ac_try='test -z "$ac_c_werror_flag"
18559 || test ! -s conftest.err'
18560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18561 (eval $ac_try) 2>&5
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); }; } &&
18565 { ac_try='test -s conftest.$ac_objext'
18566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18567 (eval $ac_try) 2>&5
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; }; then
18571 ac_header_compiler=yes
18573 echo "$as_me: failed program was:" >&5
18574 sed 's/^/| /' conftest.$ac_ext >&5
18576 ac_header_compiler=no
18578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18580 echo "${ECHO_T}$ac_header_compiler" >&6
18582 # Is the header present?
18583 echo "$as_me:$LINENO: checking sys/ipc.h presence" >&5
18584 echo $ECHO_N "checking sys/ipc.h presence... $ECHO_C" >&6
18585 cat >conftest.$ac_ext <<_ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h. */
18591 #include <sys/ipc.h>
18593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18596 grep -v '^ *+' conftest.er1 >conftest.err
18598 cat conftest.err >&5
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); } >/dev/null; then
18601 if test -s conftest.err; then
18602 ac_cpp_err=$ac_c_preproc_warn_flag
18603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18610 if test -z "$ac_cpp_err"; then
18611 ac_header_preproc=yes
18613 echo "$as_me: failed program was:" >&5
18614 sed 's/^/| /' conftest.$ac_ext >&5
18616 ac_header_preproc=no
18618 rm -f conftest.err conftest.$ac_ext
18619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18620 echo "${ECHO_T}$ac_header_preproc" >&6
18622 # So? What about this header?
18623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18625 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&5
18626 echo "$as_me: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18627 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the compiler's result" >&5
18628 echo "$as_me: WARNING: sys/ipc.h: proceeding with the compiler's result" >&2;}
18629 ac_header_preproc=yes
18632 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: present but cannot be compiled" >&5
18633 echo "$as_me: WARNING: sys/ipc.h: present but cannot be compiled" >&2;}
18634 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&5
18635 echo "$as_me: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&2;}
18636 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: see the Autoconf documentation" >&5
18637 echo "$as_me: WARNING: sys/ipc.h: see the Autoconf documentation" >&2;}
18638 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&5
18639 echo "$as_me: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&2;}
18640 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
18641 echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;}
18642 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&5
18643 echo "$as_me: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&2;}
18646 ## ------------------------------------------ ##
18647 ## Report this to the AC_PACKAGE_NAME lists. ##
18648 ## ------------------------------------------ ##
18651 sed "s/^/$as_me: WARNING: /" >&2
18654 echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
18655 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
18656 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
18657 echo $ECHO_N "(cached) $ECHO_C" >&6
18659 ac_cv_header_sys_ipc_h=$ac_header_preproc
18661 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
18662 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
18665 if test $ac_cv_header_sys_ipc_h = yes; then
18670 CPPFLAGS="$ac_save_CPPFLAGS"
18673 # if that succeeded, then check for sys/shm.h.
18674 if test "$have_xshm" = yes; then
18677 ac_save_CPPFLAGS="$CPPFLAGS"
18678 if test \! -z "$includedir" ; then
18679 CPPFLAGS="$CPPFLAGS -I$includedir"
18681 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18682 if test "${ac_cv_header_sys_shm_h+set}" = set; then
18683 echo "$as_me:$LINENO: checking for sys/shm.h" >&5
18684 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
18685 if test "${ac_cv_header_sys_shm_h+set}" = set; then
18686 echo $ECHO_N "(cached) $ECHO_C" >&6
18688 echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
18689 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
18691 # Is the header compilable?
18692 echo "$as_me:$LINENO: checking sys/shm.h usability" >&5
18693 echo $ECHO_N "checking sys/shm.h usability... $ECHO_C" >&6
18694 cat >conftest.$ac_ext <<_ACEOF
18697 cat confdefs.h >>conftest.$ac_ext
18698 cat >>conftest.$ac_ext <<_ACEOF
18699 /* end confdefs.h. */
18700 $ac_includes_default
18701 #include <sys/shm.h>
18703 rm -f conftest.$ac_objext
18704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18705 (eval $ac_compile) 2>conftest.er1
18707 grep -v '^ *+' conftest.er1 >conftest.err
18709 cat conftest.err >&5
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); } &&
18712 { ac_try='test -z "$ac_c_werror_flag"
18713 || test ! -s conftest.err'
18714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18715 (eval $ac_try) 2>&5
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); }; } &&
18719 { ac_try='test -s conftest.$ac_objext'
18720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18721 (eval $ac_try) 2>&5
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; }; then
18725 ac_header_compiler=yes
18727 echo "$as_me: failed program was:" >&5
18728 sed 's/^/| /' conftest.$ac_ext >&5
18730 ac_header_compiler=no
18732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18733 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18734 echo "${ECHO_T}$ac_header_compiler" >&6
18736 # Is the header present?
18737 echo "$as_me:$LINENO: checking sys/shm.h presence" >&5
18738 echo $ECHO_N "checking sys/shm.h presence... $ECHO_C" >&6
18739 cat >conftest.$ac_ext <<_ACEOF
18742 cat confdefs.h >>conftest.$ac_ext
18743 cat >>conftest.$ac_ext <<_ACEOF
18744 /* end confdefs.h. */
18745 #include <sys/shm.h>
18747 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18748 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18750 grep -v '^ *+' conftest.er1 >conftest.err
18752 cat conftest.err >&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); } >/dev/null; then
18755 if test -s conftest.err; then
18756 ac_cpp_err=$ac_c_preproc_warn_flag
18757 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18764 if test -z "$ac_cpp_err"; then
18765 ac_header_preproc=yes
18767 echo "$as_me: failed program was:" >&5
18768 sed 's/^/| /' conftest.$ac_ext >&5
18770 ac_header_preproc=no
18772 rm -f conftest.err conftest.$ac_ext
18773 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18774 echo "${ECHO_T}$ac_header_preproc" >&6
18776 # So? What about this header?
18777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18779 { echo "$as_me:$LINENO: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18780 echo "$as_me: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18781 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the compiler's result" >&5
18782 echo "$as_me: WARNING: sys/shm.h: proceeding with the compiler's result" >&2;}
18783 ac_header_preproc=yes
18786 { echo "$as_me:$LINENO: WARNING: sys/shm.h: present but cannot be compiled" >&5
18787 echo "$as_me: WARNING: sys/shm.h: present but cannot be compiled" >&2;}
18788 { echo "$as_me:$LINENO: WARNING: sys/shm.h: check for missing prerequisite headers?" >&5
18789 echo "$as_me: WARNING: sys/shm.h: check for missing prerequisite headers?" >&2;}
18790 { echo "$as_me:$LINENO: WARNING: sys/shm.h: see the Autoconf documentation" >&5
18791 echo "$as_me: WARNING: sys/shm.h: see the Autoconf documentation" >&2;}
18792 { echo "$as_me:$LINENO: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&5
18793 echo "$as_me: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&2;}
18794 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
18795 echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;}
18796 { echo "$as_me:$LINENO: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&5
18797 echo "$as_me: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&2;}
18800 ## ------------------------------------------ ##
18801 ## Report this to the AC_PACKAGE_NAME lists. ##
18802 ## ------------------------------------------ ##
18805 sed "s/^/$as_me: WARNING: /" >&2
18808 echo "$as_me:$LINENO: checking for sys/shm.h" >&5
18809 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
18810 if test "${ac_cv_header_sys_shm_h+set}" = set; then
18811 echo $ECHO_N "(cached) $ECHO_C" >&6
18813 ac_cv_header_sys_shm_h=$ac_header_preproc
18815 echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
18816 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
18819 if test $ac_cv_header_sys_shm_h = yes; then
18824 CPPFLAGS="$ac_save_CPPFLAGS"
18827 # AIX is pathological, as usual: apparently it's normal for the Xshm headers
18828 # to exist, but the library code to not exist. And even better, the library
18829 # code is in its own library: libXextSam.a. So, if we're on AIX, and that
18830 # lib doesn't exist, give up. (This lib gets added to X_EXTRA_LIBS, and
18831 # that's not quite right, but close enough.)
18835 if `uname -v` -eq 3 ; then
18838 ac_save_CPPFLAGS="$CPPFLAGS"
18839 ac_save_LDFLAGS="$LDFLAGS"
18840 # ac_save_LIBS="$LIBS"
18842 if test \! -z "$includedir" ; then
18843 CPPFLAGS="$CPPFLAGS -I$includedir"
18845 # note: $X_CFLAGS includes $x_includes
18846 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18848 if test \! -z "$libdir" ; then
18849 LDFLAGS="$LDFLAGS -L$libdir"
18851 # note: $X_LIBS includes $x_libraries
18852 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18854 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXextSam" >&5
18855 echo $ECHO_N "checking for XShmQueryExtension in -lXextSam... $ECHO_C" >&6
18856 if test "${ac_cv_lib_XextSam_XShmQueryExtension+set}" = set; then
18857 echo $ECHO_N "(cached) $ECHO_C" >&6
18859 ac_check_lib_save_LIBS=$LIBS
18860 LIBS="-lXextSam -lX11 -lXext -lm $LIBS"
18861 cat >conftest.$ac_ext <<_ACEOF
18864 cat confdefs.h >>conftest.$ac_ext
18865 cat >>conftest.$ac_ext <<_ACEOF
18866 /* end confdefs.h. */
18868 /* Override any gcc2 internal prototype to avoid an error. */
18872 /* We use char because int might match the return type of a gcc2
18873 builtin and then its argument prototype would still apply. */
18874 char XShmQueryExtension ();
18878 XShmQueryExtension ();
18883 rm -f conftest.$ac_objext conftest$ac_exeext
18884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18885 (eval $ac_link) 2>conftest.er1
18887 grep -v '^ *+' conftest.er1 >conftest.err
18889 cat conftest.err >&5
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); } &&
18892 { ac_try='test -z "$ac_c_werror_flag"
18893 || test ! -s conftest.err'
18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895 (eval $ac_try) 2>&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; } &&
18899 { ac_try='test -s conftest$ac_exeext'
18900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18901 (eval $ac_try) 2>&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); }; }; then
18905 ac_cv_lib_XextSam_XShmQueryExtension=yes
18907 echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18910 ac_cv_lib_XextSam_XShmQueryExtension=no
18912 rm -f conftest.err conftest.$ac_objext \
18913 conftest$ac_exeext conftest.$ac_ext
18914 LIBS=$ac_check_lib_save_LIBS
18916 echo "$as_me:$LINENO: result: $ac_cv_lib_XextSam_XShmQueryExtension" >&5
18917 echo "${ECHO_T}$ac_cv_lib_XextSam_XShmQueryExtension" >&6
18918 if test $ac_cv_lib_XextSam_XShmQueryExtension = yes; then
18919 have_xshm=yes; X_EXTRA_LIBS="$X_EXTRA_LIBS -lXextSam"
18924 CPPFLAGS="$ac_save_CPPFLAGS"
18925 LDFLAGS="$ac_save_LDFLAGS"
18926 # LIBS="$ac_save_LIBS"
18932 # if that succeeded, then we've really got it.
18933 if test "$have_xshm" = yes; then
18934 cat >>confdefs.h <<\_ACEOF
18935 #define HAVE_XSHM_EXTENSION 1
18940 elif test "$with_xshm" != no; then
18941 echo "error: must be yes or no: --with-xshm-ext=$with_xshm"
18946 ###############################################################################
18948 # Check for the DOUBLE-BUFFER server extension.
18950 ###############################################################################
18953 with_xdbe_req=unspecified
18955 # Check whether --with-xdbe-ext or --without-xdbe-ext was given.
18956 if test "${with_xdbe_ext+set}" = set; then
18957 withval="$with_xdbe_ext"
18958 with_xdbe="$withval"; with_xdbe_req="$withval"
18964 case "$with_xdbe" in
18969 echo "$as_me:$LINENO: checking for DOUBLE-BUFFER headers" >&5
18970 echo $ECHO_N "checking for DOUBLE-BUFFER headers... $ECHO_C" >&6
18971 d=$with_xdbe/include
18972 if test -d $d; then
18973 X_CFLAGS="-I$d $X_CFLAGS"
18974 echo "$as_me:$LINENO: result: $d" >&5
18975 echo "${ECHO_T}$d" >&6
18977 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18978 echo "${ECHO_T}not found ($d: no such directory)" >&6
18981 echo "$as_me:$LINENO: checking for DOUBLE-BUFFER libs" >&5
18982 echo $ECHO_N "checking for DOUBLE-BUFFER libs... $ECHO_C" >&6
18984 if test -d $d; then
18985 X_LIBS="-L$d $X_LIBS"
18986 echo "$as_me:$LINENO: result: $d" >&5
18987 echo "${ECHO_T}$d" >&6
18989 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18990 echo "${ECHO_T}not found ($d: no such directory)" >&6
18993 # replace the directory string with "yes".
18994 with_xdbe_req="yes"
18995 with_xdbe=$with_xdbe_req
19000 echo "error: argument to --with-xdbe-ext must be \"yes\", \"no\", or a directory."
19001 echo " If it is a directory, then \`DIR/include' will be added to"
19002 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19008 if test "$with_xdbe" = yes; then
19011 ac_save_CPPFLAGS="$CPPFLAGS"
19012 if test \! -z "$includedir" ; then
19013 CPPFLAGS="$CPPFLAGS -I$includedir"
19015 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19016 echo "$as_me:$LINENO: checking for X11/extensions/Xdbe.h" >&5
19017 echo $ECHO_N "checking for X11/extensions/Xdbe.h... $ECHO_C" >&6
19018 if test "${ac_cv_header_X11_extensions_Xdbe_h+set}" = set; then
19019 echo $ECHO_N "(cached) $ECHO_C" >&6
19021 cat >conftest.$ac_ext <<_ACEOF
19024 cat confdefs.h >>conftest.$ac_ext
19025 cat >>conftest.$ac_ext <<_ACEOF
19026 /* end confdefs.h. */
19027 #include <X11/Xlib.h>
19029 #include <X11/extensions/Xdbe.h>
19031 rm -f conftest.$ac_objext
19032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19033 (eval $ac_compile) 2>conftest.er1
19035 grep -v '^ *+' conftest.er1 >conftest.err
19037 cat conftest.err >&5
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); } &&
19040 { ac_try='test -z "$ac_c_werror_flag"
19041 || test ! -s conftest.err'
19042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19043 (eval $ac_try) 2>&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }; } &&
19047 { ac_try='test -s conftest.$ac_objext'
19048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19049 (eval $ac_try) 2>&5
19051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052 (exit $ac_status); }; }; then
19053 ac_cv_header_X11_extensions_Xdbe_h=yes
19055 echo "$as_me: failed program was:" >&5
19056 sed 's/^/| /' conftest.$ac_ext >&5
19058 ac_cv_header_X11_extensions_Xdbe_h=no
19060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19062 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xdbe_h" >&5
19063 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xdbe_h" >&6
19064 if test $ac_cv_header_X11_extensions_Xdbe_h = yes; then
19069 CPPFLAGS="$ac_save_CPPFLAGS"
19070 if test "$have_xdbe" = yes; then
19071 cat >>confdefs.h <<\_ACEOF
19072 #define HAVE_DOUBLE_BUFFER_EXTENSION 1
19077 elif test "$with_xdbe" != no; then
19078 echo "error: must be yes or no: --with-xdbe-ext=$with_xshm"
19083 ###############################################################################
19085 # Check for the SGI XReadDisplay server extension.
19087 # Note: this has to be down here, rather than up with the other server
19088 # extension tests, so that the output of `configure --help' is in the
19089 # right order. Arrgh!
19091 ###############################################################################
19093 have_readdisplay=no
19094 with_readdisplay_req=unspecified
19096 # Check whether --with-readdisplay or --without-readdisplay was given.
19097 if test "${with_readdisplay+set}" = set; then
19098 withval="$with_readdisplay"
19099 with_readdisplay="$withval"; with_readdisplay_req="$withval"
19101 with_readdisplay=yes
19105 case "$with_readdisplay" in
19110 echo "$as_me:$LINENO: checking for XReadDisplay headers" >&5
19111 echo $ECHO_N "checking for XReadDisplay headers... $ECHO_C" >&6
19112 d=$with_readdisplay/include
19113 if test -d $d; then
19114 X_CFLAGS="-I$d $X_CFLAGS"
19115 echo "$as_me:$LINENO: result: $d" >&5
19116 echo "${ECHO_T}$d" >&6
19118 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19119 echo "${ECHO_T}not found ($d: no such directory)" >&6
19122 echo "$as_me:$LINENO: checking for XReadDisplay libs" >&5
19123 echo $ECHO_N "checking for XReadDisplay libs... $ECHO_C" >&6
19124 d=$with_readdisplay/lib
19125 if test -d $d; then
19126 X_LIBS="-L$d $X_LIBS"
19127 echo "$as_me:$LINENO: result: $d" >&5
19128 echo "${ECHO_T}$d" >&6
19130 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19131 echo "${ECHO_T}not found ($d: no such directory)" >&6
19134 # replace the directory string with "yes".
19135 with_readdisplay_req="yes"
19136 with_readdisplay=$with_readdisplay_req
19141 echo "error: argument to --with-readdisplay must be \"yes\", \"no\", or a directory."
19142 echo " If it is a directory, then \`DIR/include' will be added to"
19143 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19149 if test "$with_readdisplay" = yes; then
19151 ac_save_CPPFLAGS="$CPPFLAGS"
19152 if test \! -z "$includedir" ; then
19153 CPPFLAGS="$CPPFLAGS -I$includedir"
19155 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19156 echo "$as_me:$LINENO: checking for X11/extensions/readdisplay.h" >&5
19157 echo $ECHO_N "checking for X11/extensions/readdisplay.h... $ECHO_C" >&6
19158 if test "${ac_cv_header_X11_extensions_readdisplay_h+set}" = set; then
19159 echo $ECHO_N "(cached) $ECHO_C" >&6
19161 cat >conftest.$ac_ext <<_ACEOF
19164 cat confdefs.h >>conftest.$ac_ext
19165 cat >>conftest.$ac_ext <<_ACEOF
19166 /* end confdefs.h. */
19167 #include <X11/Xlib.h>
19169 #include <X11/extensions/readdisplay.h>
19171 rm -f conftest.$ac_objext
19172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19173 (eval $ac_compile) 2>conftest.er1
19175 grep -v '^ *+' conftest.er1 >conftest.err
19177 cat conftest.err >&5
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); } &&
19180 { ac_try='test -z "$ac_c_werror_flag"
19181 || test ! -s conftest.err'
19182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19183 (eval $ac_try) 2>&5
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; } &&
19187 { ac_try='test -s conftest.$ac_objext'
19188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19189 (eval $ac_try) 2>&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); }; }; then
19193 ac_cv_header_X11_extensions_readdisplay_h=yes
19195 echo "$as_me: failed program was:" >&5
19196 sed 's/^/| /' conftest.$ac_ext >&5
19198 ac_cv_header_X11_extensions_readdisplay_h=no
19200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19202 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_readdisplay_h" >&5
19203 echo "${ECHO_T}$ac_cv_header_X11_extensions_readdisplay_h" >&6
19204 if test $ac_cv_header_X11_extensions_readdisplay_h = yes; then
19205 cat >>confdefs.h <<\_ACEOF
19206 #define HAVE_READ_DISPLAY_EXTENSION 1
19212 CPPFLAGS="$ac_save_CPPFLAGS"
19213 elif test "$with_readdisplay" != no; then
19214 echo "error: must be yes or no: --with-readdisplay=$with_readdisplay"
19219 ###############################################################################
19221 # Check for a directory full of images to use as the default value
19222 # of the "imageDirectory" preference.
19224 ###############################################################################
19227 with_imagedir_req=unspecified
19230 # Check whether --with-image-directory or --without-image-directory was given.
19231 if test "${with_image_directory+set}" = set; then
19232 withval="$with_image_directory"
19233 with_imagedir="$withval"; with_imagedir_req="$withval"
19237 # no HANDLE_X_PATH_ARG for this one
19239 case "$with_imagedir" in
19242 echo "$as_me:$LINENO: checking for image directory $with_imagedir" >&5
19243 echo $ECHO_N "checking for image directory $with_imagedir... $ECHO_C" >&6
19244 if test -d "$with_imagedir" ; then
19245 echo "$as_me:$LINENO: result: yes" >&5
19246 echo "${ECHO_T}yes" >&6
19248 echo "$as_me:$LINENO: result: no" >&5
19249 echo "${ECHO_T}no" >&6
19256 #### Could use some more defaults here...
19258 "/usr/share/backgrounds/images/" \
19259 "/usr/share/wallpapers/" \
19260 "/Library/Desktop Pictures/" \
19262 if test -z "$with_imagedir"; then
19263 echo "$as_me:$LINENO: checking for image directory $dd" >&5
19264 echo $ECHO_N "checking for image directory $dd... $ECHO_C" >&6
19265 if test -d "$dd" ; then
19266 echo "$as_me:$LINENO: result: yes" >&5
19267 echo "${ECHO_T}yes" >&6
19268 with_imagedir="$dd"
19270 echo "$as_me:$LINENO: result: no" >&5
19271 echo "${ECHO_T}no" >&6
19282 echo "error: must be an absolute path: --with-image-directory=$with_imagedir_req"
19286 ac_cv_imagedir="$with_imagedir"
19288 DEFAULT_IMAGES_P='True'
19289 DEFAULT_IMAGE_DIRECTORY="$ac_cv_imagedir"
19291 if test -z "$DEFAULT_IMAGE_DIRECTORY" ; then
19292 DEFAULT_IMAGES_P='False'
19296 ###############################################################################
19298 # Pick a text file to use as the default of the "textFile" preference.
19299 # Any old file will do, but preferably one that will make interesting
19300 # shapes when displayed by "starwars" and "fontglide".
19302 ###############################################################################
19305 with_textfile_req=unspecified
19308 # Check whether --with-text-file or --without-text-file was given.
19309 if test "${with_text_file+set}" = set; then
19310 withval="$with_text_file"
19311 with_textfile="$withval"; with_textfile_req="$withval"
19315 # no HANDLE_X_PATH_ARG for this one
19317 case "$with_textfile" in
19320 echo "$as_me:$LINENO: checking for image directory $with_textfile" >&5
19321 echo $ECHO_N "checking for image directory $with_textfile... $ECHO_C" >&6
19322 if test -d "$with_textfile" ; then
19323 echo "$as_me:$LINENO: result: yes" >&5
19324 echo "${ECHO_T}yes" >&6
19326 echo "$as_me:$LINENO: result: no" >&5
19327 echo "${ECHO_T}no" >&6
19334 #### Could use some more defaults here...
19336 "/usr/X11R6/lib/X11/doc/README" \
19337 "/usr/share/doc/xserver-common/copyright" \
19338 "/usr/X11R6/README" \
19340 if test -z "$with_textfile"; then
19341 echo "$as_me:$LINENO: checking for text file $f" >&5
19342 echo $ECHO_N "checking for text file $f... $ECHO_C" >&6
19343 if test -f "$f" ; then
19344 echo "$as_me:$LINENO: result: yes" >&5
19345 echo "${ECHO_T}yes" >&6
19348 echo "$as_me:$LINENO: result: no" >&5
19349 echo "${ECHO_T}no" >&6
19360 echo "error: must be an absolute path: --with-image-directory=$with_textfile_req"
19364 ac_cv_textfile="$with_textfile"
19366 DEFAULT_TEXT_FILE="$ac_cv_textfile"
19369 ###############################################################################
19371 # Check whether it's ok to install some hacks as setuid (e.g., "sonar")
19372 # This should be safe, but let's give people the option.
19374 ###############################################################################
19376 setuid_hacks_default=no
19377 setuid_hacks="$setuid_hacks_default"
19379 # Check whether --with-setuid-hacks or --without-setuid-hacks was given.
19380 if test "${with_setuid_hacks+set}" = set; then
19381 withval="$with_setuid_hacks"
19382 setuid_hacks="$withval"
19384 setuid_hacks="$setuid_hacks_default"
19388 case "$setuid_hacks" in
19393 echo "$as_me:$LINENO: checking for setuid hacks headers" >&5
19394 echo $ECHO_N "checking for setuid hacks headers... $ECHO_C" >&6
19395 d=$setuid_hacks/include
19396 if test -d $d; then
19397 X_CFLAGS="-I$d $X_CFLAGS"
19398 echo "$as_me:$LINENO: result: $d" >&5
19399 echo "${ECHO_T}$d" >&6
19401 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19402 echo "${ECHO_T}not found ($d: no such directory)" >&6
19405 echo "$as_me:$LINENO: checking for setuid hacks libs" >&5
19406 echo $ECHO_N "checking for setuid hacks libs... $ECHO_C" >&6
19407 d=$setuid_hacks/lib
19408 if test -d $d; then
19409 X_LIBS="-L$d $X_LIBS"
19410 echo "$as_me:$LINENO: result: $d" >&5
19411 echo "${ECHO_T}$d" >&6
19413 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19414 echo "${ECHO_T}not found ($d: no such directory)" >&6
19417 # replace the directory string with "yes".
19418 setuid_hacks_req="yes"
19419 setuid_hacks=$setuid_hacks_req
19424 echo "error: argument to --with-setuid-hacks must be \"yes\", \"no\", or a directory."
19425 echo " If it is a directory, then \`DIR/include' will be added to"
19426 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19432 if test "$setuid_hacks" = yes; then
19434 elif test "$setuid_hacks" != no; then
19435 echo "error: must be yes or no: --with-setuid-hacks=$setuid_hacks"
19440 ###############################################################################
19442 # Done testing. Now, set up the various -I and -L variables,
19443 # and decide which GUI program to build by default.
19445 ###############################################################################
19452 if test \! -z "$includedir" ; then
19453 INCLUDES="$INCLUDES -I$includedir"
19456 if test \! -z "$libdir" ; then
19457 LDFLAGS="$LDFLAGS -L$libdir"
19461 PREFERRED_DEMO_PROGRAM=''
19463 if test "$have_motif" = yes; then
19464 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Xm
19465 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
19467 if test "$have_gtk" = yes; then
19468 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Gtk
19469 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
19473 if test "$have_kerberos" = yes; then
19474 PASSWD_SRCS="$PASSWD_SRCS \$(KERBEROS_SRCS)"
19475 PASSWD_OBJS="$PASSWD_OBJS \$(KERBEROS_OBJS)"
19477 if test "$have_pam" = yes; then
19478 PASSWD_SRCS="$PASSWD_SRCS \$(PAM_SRCS)"
19479 PASSWD_OBJS="$PASSWD_OBJS \$(PAM_OBJS)"
19480 INSTALL_PAM="install-pam"
19482 if test "$have_passwd_helper" = yes; then
19483 PASSWD_SRCS="$PASSWD_SRCS \$(PWHELPER_SRCS)"
19484 PASSWD_OBJS="$PASSWD_OBJS \$(PWHELPER_OBJS)"
19486 PASSWD_SRCS="$PASSWD_SRCS \$(PWENT_SRCS)"
19487 PASSWD_OBJS="$PASSWD_OBJS \$(PWENT_OBJS)"
19490 if test "$enable_locking" = yes; then
19491 LOCK_SRCS='$(LOCK_SRCS_1) $(PASSWD_SRCS)'
19492 LOCK_OBJS='$(LOCK_OBJS_1) $(PASSWD_OBJS)'
19494 LOCK_SRCS='$(NOLOCK_SRCS_1)'
19495 LOCK_OBJS='$(NOLOCK_OBJS_1)'
19498 if test "$ac_macosx" = yes; then
19499 EXES_OSX='$(EXES_OSX)'
19500 SCRIPTS_OSX='$(SCRIPTS_OSX)'
19501 MEN_OSX='$(MEN_OSX)'
19509 INSTALL_SETUID='$(INSTALL_PROGRAM) $(SUID_FLAGS)'
19511 if test "$need_setuid" = yes; then
19517 if test "$setuid_hacks" = yes; then
19524 if test "$have_gl" = yes; then
19525 GL_EXES='$(GL_EXES)'
19526 GL_UTIL_EXES='$(GL_UTIL_EXES)'
19528 GL_KLUDGE="${tab} "
19530 GL_KLUDGE="-${tab} "
19533 if test "$have_gle" = yes; then
19534 GLE_EXES='$(GLE_EXES)'
19535 GLE_KLUDGE="${tab} "
19537 GLE_KLUDGE="-${tab} "
19540 if test "$have_jpeg" = yes -a "$have_gdk_pixbuf" = yes; then
19541 JPEG_EXES='$(JPEG_EXES)'
19545 # Another substitution in the XScreenSaver.ad.in file:
19547 if test "$gnome_open_program" != ''; then
19551 elif test "$gnome_url_show_program" != ''; then
19562 # Set PO_DATADIR to something sensible.
19564 echo "$as_me:$LINENO: checking for locale directory" >&5
19565 echo $ECHO_N "checking for locale directory... $ECHO_C" >&6
19566 if test -n "$GTK_DATADIR" ; then
19567 PO_DATADIR="$GTK_DATADIR"
19568 elif test "$have_gtk" = yes; then
19569 PO_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
19570 PO_DATADIR="$PO_DATADIR/share"
19573 if test -z "$PO_DATADIR" ; then
19575 # #### Total fucking kludge --
19576 # Map /build/prefix/usr/X11R6/share/ to /build/prefix/usr/share/
19577 # but of course we need to expand all the nested variables to do that...
19585 PO_DATADIR=`echo $dd | sed 's@/X11R6/@/@'`
19588 echo "$as_me:$LINENO: result: $PO_DATADIR/locale" >&5
19589 echo "${ECHO_T}$PO_DATADIR/locale" >&6
19592 # canonicalize slashes.
19593 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
19595 # gcc 3.0 likes to issue this warning for every file:
19597 # cc1: warning: changing search order for system directory "/usr/local/include"
19598 # cc1: warning: as it has already been specified as a non-system directory
19600 # Yay. We can only avoid that by deleting "-I${prefix}/include" from the list.
19601 # Which *should* be totally redundant, and thus an ok thing to delete?
19603 INCLUDES=`echo "$INCLUDES" | sed 's@ -I${prefix}/include@@g;'`
19606 ###############################################################################
19608 # Perform substitutions and write Makefiles.
19610 ###############################################################################
19671 APPDEFAULTS=$ac_x_app_defaults
19679 ac_config_files="$ac_config_files Makefile utils/Makefile driver/Makefile hacks/Makefile hacks/glx/Makefile po/Makefile.in driver/XScreenSaver.ad"
19680 cat >confcache <<\_ACEOF
19681 # This file is a shell script that caches the results of configure
19682 # tests run on this system so they can be shared between configure
19683 # scripts and configure runs, see configure's option --config-cache.
19684 # It is not useful on other systems. If it contains results you don't
19685 # want to keep, you may remove or edit it.
19687 # config.status only pays attention to the cache file if you give it
19688 # the --recheck option to rerun configure.
19690 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19691 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19692 # following values.
19696 # The following way of writing the cache mishandles newlines in values,
19697 # but we know of no workaround that is simple, portable, and efficient.
19698 # So, don't put newlines in cache variables' values.
19699 # Ultrix sh set writes to stderr and can't be redirected directly,
19700 # and sets the high bit in the cache file unless we assign to the vars.
19703 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19705 # `set' does not quote correctly, so add quotes (double-quote
19706 # substitution turns \\\\ into \\, and sed turns \\ into \).
19709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19712 # `set' quotes correctly as required by POSIX, so do not add quotes.
19714 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19721 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19723 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19725 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19726 if test -w $cache_file; then
19727 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19728 cat confcache >$cache_file
19730 echo "not updating unwritable cache $cache_file"
19735 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19736 # Let make expand exec_prefix.
19737 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19739 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19740 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19741 # trailing colons and then remove the whole line if VPATH becomes empty
19742 # (actually we leave an empty line to preserve line numbers).
19743 if test "x$srcdir" = x.; then
19744 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19745 s/:*\$(srcdir):*/:/;
19746 s/:*\${srcdir}:*/:/;
19748 s/^\([^=]*=[ ]*\):*/\1/;
19754 DEFS=-DHAVE_CONFIG_H
19758 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19759 # 1. Remove the extension, and $U if already installed.
19760 ac_i=`echo "$ac_i" |
19761 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19763 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19764 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19766 LIBOBJS=$ac_libobjs
19768 LTLIBOBJS=$ac_ltlibobjs
19773 mv -f po/POTFILES po/POTFILES.tmp
19774 sed -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
19775 rm -f po/POTFILES.tmp
19779 : ${CONFIG_STATUS=./config.status}
19780 ac_clean_files_save=$ac_clean_files
19781 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19782 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19783 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19784 cat >$CONFIG_STATUS <<_ACEOF
19786 # Generated by $as_me.
19787 # Run this file to recreate the current configuration.
19788 # Compiler output produced by configure, useful for debugging
19789 # configure, is in config.log if it exists.
19792 ac_cs_recheck=false
19794 SHELL=\${CONFIG_SHELL-$SHELL}
19797 cat >>$CONFIG_STATUS <<\_ACEOF
19798 ## --------------------- ##
19799 ## M4sh Initialization. ##
19800 ## --------------------- ##
19802 # Be Bourne compatible
19803 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19806 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19807 # is contrary to our usage. Disable this feature.
19808 alias -g '${1+"$@"}'='"$@"'
19809 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19812 DUALCASE=1; export DUALCASE # for MKS sh
19814 # Support unset when possible.
19815 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19822 # Work around bugs in pre-3.0 UWIN ksh.
19823 $as_unset ENV MAIL MAILPATH
19830 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19831 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19832 LC_TELEPHONE LC_TIME
19834 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19835 eval $as_var=C; export $as_var
19841 # Required to use basename.
19842 if expr a : '\(a\)' >/dev/null 2>&1; then
19848 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19849 as_basename=basename
19855 # Name of the executable.
19856 as_me=`$as_basename "$0" ||
19857 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19858 X"$0" : 'X\(//\)$' \| \
19859 X"$0" : 'X\(/\)$' \| \
19860 . : '\(.\)' 2>/dev/null ||
19862 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19863 /^X\/\(\/\/\)$/{ s//\1/; q; }
19864 /^X\/\(\/\).*/{ s//\1/; q; }
19868 # PATH needs CR, and LINENO needs CR and PATH.
19869 # Avoid depending upon Character Ranges.
19870 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19871 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19872 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19873 as_cr_digits='0123456789'
19874 as_cr_alnum=$as_cr_Letters$as_cr_digits
19876 # The user is always right.
19877 if test "${PATH_SEPARATOR+set}" != set; then
19878 echo "#! /bin/sh" >conf$$.sh
19879 echo "exit 0" >>conf$$.sh
19881 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19890 as_lineno_1=$LINENO
19891 as_lineno_2=$LINENO
19892 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19893 test "x$as_lineno_1" != "x$as_lineno_2" &&
19894 test "x$as_lineno_3" = "x$as_lineno_2" || {
19895 # Find who we are. Look in the path if we contain no path at all
19898 *[\\/]* ) as_myself=$0 ;;
19899 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19900 for as_dir in $PATH
19903 test -z "$as_dir" && as_dir=.
19904 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19909 # We did not find ourselves, most probably we were run as `sh COMMAND'
19910 # in which case we are not to be found in the path.
19911 if test "x$as_myself" = x; then
19914 if test ! -f "$as_myself"; then
19915 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19916 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19917 { (exit 1); exit 1; }; }
19919 case $CONFIG_SHELL in
19921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19922 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19925 test -z "$as_dir" && as_dir=.
19926 for as_base in sh bash ksh sh5; do
19929 if ("$as_dir/$as_base" -c '
19930 as_lineno_1=$LINENO
19931 as_lineno_2=$LINENO
19932 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19933 test "x$as_lineno_1" != "x$as_lineno_2" &&
19934 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19935 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19936 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19937 CONFIG_SHELL=$as_dir/$as_base
19938 export CONFIG_SHELL
19939 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19947 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19948 # uniformly replaced by the line number. The first 'sed' inserts a
19949 # line-number line before each line; the second 'sed' does the real
19950 # work. The second script uses 'N' to pair each line-number line
19951 # with the numbered line, and appends trailing '-' during
19952 # substitution so that $LINENO is not a special case at line end.
19953 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19954 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19955 sed '=' <$as_myself |
19960 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19963 s,^['$as_cr_digits']*\n,,
19964 ' >$as_me.lineno &&
19965 chmod +x $as_me.lineno ||
19966 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19967 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19968 { (exit 1); exit 1; }; }
19970 # Don't try to exec as it changes $[0], causing all sort of problems
19971 # (the dirname of $[0] is not the place where we might find the
19972 # original and so on. Autoconf is especially sensible to this).
19974 # Exit status is that of the last command.
19979 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19980 *c*,-n*) ECHO_N= ECHO_C='
19982 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19983 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19986 if expr a : '\(a\)' >/dev/null 2>&1; then
19992 rm -f conf$$ conf$$.exe conf$$.file
19994 if ln -s conf$$.file conf$$ 2>/dev/null; then
19995 # We could just check for DJGPP; but this test a) works b) is more generic
19996 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19997 if test -f conf$$.exe; then
19998 # Don't use ln at all; we don't have any links
20003 elif ln conf$$.file conf$$ 2>/dev/null; then
20008 rm -f conf$$ conf$$.exe conf$$.file
20010 if mkdir -p . 2>/dev/null; then
20013 test -d ./-p && rmdir ./-p
20017 as_executable_p="test -f"
20019 # Sed expression to map a string onto a valid CPP name.
20020 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20022 # Sed expression to map a string onto a valid variable name.
20023 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20027 # We need space, tab and new line, in precisely that order.
20037 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20038 # report actual input values of CONFIG_FILES etc. instead of their
20039 # values after options handling. Logging --version etc. is OK.
20043 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20044 ## Running $as_me. ##
20049 This file was extended by $as_me, which was
20050 generated by GNU Autoconf 2.59. Invocation command line was
20052 CONFIG_FILES = $CONFIG_FILES
20053 CONFIG_HEADERS = $CONFIG_HEADERS
20054 CONFIG_LINKS = $CONFIG_LINKS
20055 CONFIG_COMMANDS = $CONFIG_COMMANDS
20059 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20063 # Files that config.status was made for.
20064 if test -n "$ac_config_files"; then
20065 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20068 if test -n "$ac_config_headers"; then
20069 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20072 if test -n "$ac_config_links"; then
20073 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20076 if test -n "$ac_config_commands"; then
20077 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20080 cat >>$CONFIG_STATUS <<\_ACEOF
20083 \`$as_me' instantiates files from templates according to the
20084 current configuration.
20086 Usage: $0 [OPTIONS] [FILE]...
20088 -h, --help print this help, then exit
20089 -V, --version print version number, then exit
20090 -q, --quiet do not print progress messages
20091 -d, --debug don't remove temporary files
20092 --recheck update $as_me by reconfiguring in the same conditions
20093 --file=FILE[:TEMPLATE]
20094 instantiate the configuration file FILE
20095 --header=FILE[:TEMPLATE]
20096 instantiate the configuration header FILE
20098 Configuration files:
20101 Configuration headers:
20104 Configuration commands:
20107 Report bugs to <bug-autoconf@gnu.org>."
20110 cat >>$CONFIG_STATUS <<_ACEOF
20113 configured by $0, generated by GNU Autoconf 2.59,
20114 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20116 Copyright (C) 2003 Free Software Foundation, Inc.
20117 This config.status script is free software; the Free Software Foundation
20118 gives unlimited permission to copy, distribute and modify it."
20123 cat >>$CONFIG_STATUS <<\_ACEOF
20124 # If no file are specified by the user, then we need to provide default
20125 # value. By we need to know if files were specified by the user.
20131 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20132 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20140 *) # This is not an option, so the user has probably given explicit
20143 ac_need_defaults=false;;
20147 # Handling of the options.
20149 cat >>$CONFIG_STATUS <<\_ACEOF
20150 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20152 --version | --vers* | -V )
20153 echo "$ac_cs_version"; exit 0 ;;
20155 # Conflict between --help and --header
20156 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20157 Try \`$0 --help' for more information." >&5
20158 echo "$as_me: error: ambiguous option: $1
20159 Try \`$0 --help' for more information." >&2;}
20160 { (exit 1); exit 1; }; };;
20161 --help | --hel | -h )
20162 echo "$ac_cs_usage"; exit 0 ;;
20163 --debug | --d* | -d )
20165 --file | --fil | --fi | --f )
20167 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20168 ac_need_defaults=false;;
20169 --header | --heade | --head | --hea )
20171 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20172 ac_need_defaults=false;;
20173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20174 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20177 # This is an error.
20178 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20179 Try \`$0 --help' for more information." >&5
20180 echo "$as_me: error: unrecognized option: $1
20181 Try \`$0 --help' for more information." >&2;}
20182 { (exit 1); exit 1; }; } ;;
20184 *) ac_config_targets="$ac_config_targets $1" ;;
20190 ac_configure_extra_args=
20192 if $ac_cs_silent; then
20194 ac_configure_extra_args="$ac_configure_extra_args --silent"
20198 cat >>$CONFIG_STATUS <<_ACEOF
20199 if \$ac_cs_recheck; then
20200 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20201 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20206 cat >>$CONFIG_STATUS <<_ACEOF
20208 # INIT-COMMANDS section.
20211 INTLTOOL_PERL=${INTLTOOL_PERL}
20218 cat >>$CONFIG_STATUS <<\_ACEOF
20219 for ac_config_target in $ac_config_targets
20221 case "$ac_config_target" in
20222 # Handling of arguments.
20223 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20224 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
20225 "driver/Makefile" ) CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;;
20226 "hacks/Makefile" ) CONFIG_FILES="$CONFIG_FILES hacks/Makefile" ;;
20227 "hacks/glx/Makefile" ) CONFIG_FILES="$CONFIG_FILES hacks/glx/Makefile" ;;
20228 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20229 "driver/XScreenSaver.ad" ) CONFIG_FILES="$CONFIG_FILES driver/XScreenSaver.ad" ;;
20230 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20231 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
20232 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20233 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20234 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20235 { (exit 1); exit 1; }; };;
20239 # If the user did not use the arguments to specify the items to instantiate,
20240 # then the envvar interface is used. Set only those that are not.
20241 # We use the long form for the default assignment because of an extremely
20242 # bizarre bug on SunOS 4.1.3.
20243 if $ac_need_defaults; then
20244 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20245 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20246 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20249 # Have a temporary directory for convenience. Make it in the build tree
20250 # simply because there is no reason to put it here, and in addition,
20251 # creating and moving files from /tmp can sometimes cause problems.
20252 # Create a temporary directory, and hook for its removal unless debugging.
20255 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20256 trap '{ (exit 1); exit 1; }' 1 2 13 15
20259 # Create a (secure) tmp directory for tmp files.
20262 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20263 test -n "$tmp" && test -d "$tmp"
20266 tmp=./confstat$$-$RANDOM
20267 (umask 077 && mkdir $tmp)
20270 echo "$me: cannot create a temporary directory in ." >&2
20271 { (exit 1); exit 1; }
20276 cat >>$CONFIG_STATUS <<_ACEOF
20279 # CONFIG_FILES section.
20282 # No need to generate the scripts if there are no CONFIG_FILES.
20283 # This happens for instance when ./config.status config.h
20284 if test -n "\$CONFIG_FILES"; then
20285 # Protect against being on the right side of a sed subst in config.status.
20286 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20287 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20288 s,@SHELL@,$SHELL,;t t
20289 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20290 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20291 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20292 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20293 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20294 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20295 s,@exec_prefix@,$exec_prefix,;t t
20296 s,@prefix@,$prefix,;t t
20297 s,@program_transform_name@,$program_transform_name,;t t
20298 s,@bindir@,$bindir,;t t
20299 s,@sbindir@,$sbindir,;t t
20300 s,@libexecdir@,$libexecdir,;t t
20301 s,@datadir@,$datadir,;t t
20302 s,@sysconfdir@,$sysconfdir,;t t
20303 s,@sharedstatedir@,$sharedstatedir,;t t
20304 s,@localstatedir@,$localstatedir,;t t
20305 s,@libdir@,$libdir,;t t
20306 s,@includedir@,$includedir,;t t
20307 s,@oldincludedir@,$oldincludedir,;t t
20308 s,@infodir@,$infodir,;t t
20309 s,@mandir@,$mandir,;t t
20310 s,@build_alias@,$build_alias,;t t
20311 s,@host_alias@,$host_alias,;t t
20312 s,@target_alias@,$target_alias,;t t
20313 s,@DEFS@,$DEFS,;t t
20314 s,@ECHO_C@,$ECHO_C,;t t
20315 s,@ECHO_N@,$ECHO_N,;t t
20316 s,@ECHO_T@,$ECHO_T,;t t
20317 s,@LIBS@,$LIBS,;t t
20318 s,@build@,$build,;t t
20319 s,@build_cpu@,$build_cpu,;t t
20320 s,@build_vendor@,$build_vendor,;t t
20321 s,@build_os@,$build_os,;t t
20322 s,@host@,$host,;t t
20323 s,@host_cpu@,$host_cpu,;t t
20324 s,@host_vendor@,$host_vendor,;t t
20325 s,@host_os@,$host_os,;t t
20327 s,@CFLAGS@,$CFLAGS,;t t
20328 s,@LDFLAGS@,$LDFLAGS,;t t
20329 s,@CPPFLAGS@,$CPPFLAGS,;t t
20330 s,@ac_ct_CC@,$ac_ct_CC,;t t
20331 s,@EXEEXT@,$EXEEXT,;t t
20332 s,@OBJEXT@,$OBJEXT,;t t
20334 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20335 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20336 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20337 s,@SET_MAKE@,$SET_MAKE,;t t
20338 s,@EGREP@,$EGREP,;t t
20339 s,@PERL@,$PERL,;t t
20340 s,@X_CFLAGS@,$X_CFLAGS,;t t
20341 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20342 s,@X_LIBS@,$X_LIBS,;t t
20343 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20344 s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
20345 s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
20346 s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
20347 s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
20348 s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
20349 s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
20350 s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
20351 s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
20352 s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
20353 s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
20354 s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
20355 s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
20356 s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
20357 s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
20358 s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
20359 s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
20360 s,@RANLIB@,$RANLIB,;t t
20361 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20362 s,@ALLOCA@,$ALLOCA,;t t
20363 s,@USE_NLS@,$USE_NLS,;t t
20364 s,@MSGFMT@,$MSGFMT,;t t
20365 s,@GMSGFMT@,$GMSGFMT,;t t
20366 s,@XGETTEXT@,$XGETTEXT,;t t
20367 s,@CATALOGS@,$CATALOGS,;t t
20368 s,@CATOBJEXT@,$CATOBJEXT,;t t
20369 s,@DATADIRNAME@,$DATADIRNAME,;t t
20370 s,@GMOFILES@,$GMOFILES,;t t
20371 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20372 s,@INTLDEPS@,$INTLDEPS,;t t
20373 s,@INTLLIBS@,$INTLLIBS,;t t
20374 s,@INTLOBJS@,$INTLOBJS,;t t
20375 s,@POFILES@,$POFILES,;t t
20376 s,@POSUB@,$POSUB,;t t
20377 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20378 s,@login_manager_tmp@,$login_manager_tmp,;t t
20379 s,@pkg_config@,$pkg_config,;t t
20380 s,@gnome_open_program@,$gnome_open_program,;t t
20381 s,@gnome_url_show_program@,$gnome_url_show_program,;t t
20382 s,@INCLUDES@,$INCLUDES,;t t
20383 s,@PREFERRED_DEMO_PROGRAM@,$PREFERRED_DEMO_PROGRAM,;t t
20384 s,@ALL_DEMO_PROGRAMS@,$ALL_DEMO_PROGRAMS,;t t
20385 s,@SAVER_LIBS@,$SAVER_LIBS,;t t
20386 s,@MOTIF_LIBS@,$MOTIF_LIBS,;t t
20387 s,@GTK_LIBS@,$GTK_LIBS,;t t
20388 s,@XML_LIBS@,$XML_LIBS,;t t
20389 s,@JPEG_LIBS@,$JPEG_LIBS,;t t
20390 s,@HACK_LIBS@,$HACK_LIBS,;t t
20391 s,@XPM_LIBS@,$XPM_LIBS,;t t
20392 s,@PTY_LIBS@,$PTY_LIBS,;t t
20393 s,@GL_LIBS@,$GL_LIBS,;t t
20394 s,@GLE_LIBS@,$GLE_LIBS,;t t
20395 s,@XDPMS_LIBS@,$XDPMS_LIBS,;t t
20396 s,@XINERAMA_LIBS@,$XINERAMA_LIBS,;t t
20397 s,@PASSWD_LIBS@,$PASSWD_LIBS,;t t
20398 s,@INSTALL_SETUID@,$INSTALL_SETUID,;t t
20399 s,@SETUID_HACKS@,$SETUID_HACKS,;t t
20400 s,@INSTALL_DIRS@,$INSTALL_DIRS,;t t
20401 s,@NEED_SETUID@,$NEED_SETUID,;t t
20402 s,@INSTALL_PAM@,$INSTALL_PAM,;t t
20403 s,@NEW_LOGIN_COMMAND@,$NEW_LOGIN_COMMAND,;t t
20404 s,@NEW_LOGIN_COMMAND_P@,$NEW_LOGIN_COMMAND_P,;t t
20405 s,@DEFAULT_IMAGES_P@,$DEFAULT_IMAGES_P,;t t
20406 s,@DEFAULT_IMAGE_DIRECTORY@,$DEFAULT_IMAGE_DIRECTORY,;t t
20407 s,@DEFAULT_TEXT_FILE@,$DEFAULT_TEXT_FILE,;t t
20408 s,@OBJCC@,$OBJCC,;t t
20409 s,@EXES_OSX@,$EXES_OSX,;t t
20410 s,@SCRIPTS_OSX@,$SCRIPTS_OSX,;t t
20411 s,@MEN_OSX@,$MEN_OSX,;t t
20412 s,@PASSWD_SRCS@,$PASSWD_SRCS,;t t
20413 s,@PASSWD_OBJS@,$PASSWD_OBJS,;t t
20414 s,@XMU_SRCS@,$XMU_SRCS,;t t
20415 s,@XMU_OBJS@,$XMU_OBJS,;t t
20416 s,@XMU_LIBS@,$XMU_LIBS,;t t
20417 s,@SAVER_GL_SRCS@,$SAVER_GL_SRCS,;t t
20418 s,@SAVER_GL_OBJS@,$SAVER_GL_OBJS,;t t
20419 s,@SAVER_GL_LIBS@,$SAVER_GL_LIBS,;t t
20420 s,@LOCK_SRCS@,$LOCK_SRCS,;t t
20421 s,@LOCK_OBJS@,$LOCK_OBJS,;t t
20422 s,@JPEG_EXES@,$JPEG_EXES,;t t
20423 s,@GL_EXES@,$GL_EXES,;t t
20424 s,@GL_UTIL_EXES@,$GL_UTIL_EXES,;t t
20425 s,@GL_MEN@,$GL_MEN,;t t
20426 s,@GL_KLUDGE@,$GL_KLUDGE,;t t
20427 s,@GLE_EXES@,$GLE_EXES,;t t
20428 s,@GLE_KLUDGE@,$GLE_KLUDGE,;t t
20429 s,@GNOME24@,$GNOME24,;t t
20430 s,@GNOME22@,$GNOME22,;t t
20431 s,@NOGNOME@,$NOGNOME,;t t
20432 s,@HACKDIR@,$HACKDIR,;t t
20433 s,@GTK_DATADIR@,$GTK_DATADIR,;t t
20434 s,@PO_DATADIR@,$PO_DATADIR,;t t
20435 s,@HACK_CONF_DIR@,$HACK_CONF_DIR,;t t
20436 s,@GTK_EXTRA_OBJS@,$GTK_EXTRA_OBJS,;t t
20437 s,@APPDEFAULTS@,$APPDEFAULTS,;t t
20438 s,@DEPEND@,$DEPEND,;t t
20439 s,@DEPEND_FLAGS@,$DEPEND_FLAGS,;t t
20440 s,@DEPEND_DEFINES@,$DEPEND_DEFINES,;t t
20441 s,@LIBOBJS@,$LIBOBJS,;t t
20442 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20447 cat >>$CONFIG_STATUS <<\_ACEOF
20448 # Split the substitutions into bite-sized pieces for seds with
20449 # small command number limits, like on Digital OSF/1 and HP-UX.
20450 ac_max_sed_lines=48
20451 ac_sed_frag=1 # Number of current file.
20452 ac_beg=1 # First line for current file.
20453 ac_end=$ac_max_sed_lines # Line after last line for current file.
20456 while $ac_more_lines; do
20457 if test $ac_beg -gt 1; then
20458 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20460 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20462 if test ! -s $tmp/subs.frag; then
20463 ac_more_lines=false
20465 # The purpose of the label and of the branching condition is to
20466 # speed up the sed processing (if there are no `@' at all, there
20467 # is no need to browse any of the substitutions).
20468 # These are the two extra sed commands mentioned above.
20470 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20471 if test -z "$ac_sed_cmds"; then
20472 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20474 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20476 ac_sed_frag=`expr $ac_sed_frag + 1`
20478 ac_end=`expr $ac_end + $ac_max_sed_lines`
20481 if test -z "$ac_sed_cmds"; then
20484 fi # test -n "$CONFIG_FILES"
20487 cat >>$CONFIG_STATUS <<\_ACEOF
20488 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20489 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20491 - | *:- | *:-:* ) # input from stdin
20493 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20494 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20495 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20496 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20497 * ) ac_file_in=$ac_file.in ;;
20500 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20501 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20502 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20503 X"$ac_file" : 'X\(//\)[^/]' \| \
20504 X"$ac_file" : 'X\(//\)$' \| \
20505 X"$ac_file" : 'X\(/\)' \| \
20506 . : '\(.\)' 2>/dev/null ||
20508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20509 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20510 /^X\(\/\/\)$/{ s//\1/; q; }
20511 /^X\(\/\).*/{ s//\1/; q; }
20513 { if $as_mkdir_p; then
20518 while test ! -d "$as_dir"; do
20519 as_dirs="$as_dir $as_dirs"
20520 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20521 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20522 X"$as_dir" : 'X\(//\)[^/]' \| \
20523 X"$as_dir" : 'X\(//\)$' \| \
20524 X"$as_dir" : 'X\(/\)' \| \
20525 . : '\(.\)' 2>/dev/null ||
20527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20528 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20529 /^X\(\/\/\)$/{ s//\1/; q; }
20530 /^X\(\/\).*/{ s//\1/; q; }
20533 test ! -n "$as_dirs" || mkdir $as_dirs
20534 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20535 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20536 { (exit 1); exit 1; }; }; }
20540 if test "$ac_dir" != .; then
20541 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20542 # A "../" for each directory in $ac_dir_suffix.
20543 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20545 ac_dir_suffix= ac_top_builddir=
20549 .) # No --srcdir option. We are building in place.
20551 if test -z "$ac_top_builddir"; then
20554 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20556 [\\/]* | ?:[\\/]* ) # Absolute path.
20557 ac_srcdir=$srcdir$ac_dir_suffix;
20558 ac_top_srcdir=$srcdir ;;
20559 *) # Relative path.
20560 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20561 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20564 # Do not use `cd foo && pwd` to compute absolute paths, because
20565 # the directories may not exist.
20567 .) ac_abs_builddir="$ac_dir";;
20570 .) ac_abs_builddir=`pwd`;;
20571 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20572 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20575 case $ac_abs_builddir in
20576 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20578 case ${ac_top_builddir}. in
20579 .) ac_abs_top_builddir=$ac_abs_builddir;;
20580 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20581 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20584 case $ac_abs_builddir in
20585 .) ac_abs_srcdir=$ac_srcdir;;
20588 .) ac_abs_srcdir=$ac_abs_builddir;;
20589 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20590 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20593 case $ac_abs_builddir in
20594 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20596 case $ac_top_srcdir in
20597 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20598 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20599 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20605 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20606 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20609 if test x"$ac_file" != x-; then
20610 { echo "$as_me:$LINENO: creating $ac_file" >&5
20611 echo "$as_me: creating $ac_file" >&6;}
20614 # Let's still pretend it is `configure' which instantiates (i.e., don't
20615 # use $as_me), people would be surprised to read:
20616 # /* config.h. Generated by config.status. */
20617 if test x"$ac_file" = x-; then
20620 configure_input="$ac_file. "
20622 configure_input=$configure_input"Generated from `echo $ac_file_in |
20623 sed 's,.*/,,'` by configure."
20625 # First look for the input files in the build tree, otherwise in the
20627 ac_file_inputs=`IFS=:
20628 for f in $ac_file_in; do
20630 -) echo $tmp/stdin ;;
20632 # Absolute (can't be DOS-style, as IFS=:)
20633 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20634 echo "$as_me: error: cannot find input file: $f" >&2;}
20635 { (exit 1); exit 1; }; }
20638 if test -f "$f"; then
20641 elif test -f "$srcdir/$f"; then
20646 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20647 echo "$as_me: error: cannot find input file: $f" >&2;}
20648 { (exit 1); exit 1; }; }
20651 done` || { (exit 1); exit 1; }
20653 cat >>$CONFIG_STATUS <<_ACEOF
20657 cat >>$CONFIG_STATUS <<\_ACEOF
20659 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20660 s,@configure_input@,$configure_input,;t t
20661 s,@srcdir@,$ac_srcdir,;t t
20662 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20663 s,@top_srcdir@,$ac_top_srcdir,;t t
20664 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20665 s,@builddir@,$ac_builddir,;t t
20666 s,@abs_builddir@,$ac_abs_builddir,;t t
20667 s,@top_builddir@,$ac_top_builddir,;t t
20668 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20669 s,@INSTALL@,$ac_INSTALL,;t t
20670 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20672 if test x"$ac_file" != x-; then
20673 mv $tmp/out $ac_file
20681 cat >>$CONFIG_STATUS <<\_ACEOF
20684 # CONFIG_HEADER section.
20687 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20688 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20690 # ac_d sets the value in "#define NAME VALUE" lines.
20691 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20692 ac_dB='[ ].*$,\1#\2'
20695 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20696 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20697 ac_uB='$,\1#\2define\3'
20701 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20702 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20704 - | *:- | *:-:* ) # input from stdin
20706 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20707 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20708 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20709 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20710 * ) ac_file_in=$ac_file.in ;;
20713 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20714 echo "$as_me: creating $ac_file" >&6;}
20716 # First look for the input files in the build tree, otherwise in the
20718 ac_file_inputs=`IFS=:
20719 for f in $ac_file_in; do
20721 -) echo $tmp/stdin ;;
20723 # Absolute (can't be DOS-style, as IFS=:)
20724 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20725 echo "$as_me: error: cannot find input file: $f" >&2;}
20726 { (exit 1); exit 1; }; }
20727 # Do quote $f, to prevent DOS paths from being IFS'd.
20730 if test -f "$f"; then
20733 elif test -f "$srcdir/$f"; then
20738 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20739 echo "$as_me: error: cannot find input file: $f" >&2;}
20740 { (exit 1); exit 1; }; }
20743 done` || { (exit 1); exit 1; }
20744 # Remove the trailing spaces.
20745 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20749 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20750 # `conftest.undefs', that substitutes the proper values into
20751 # config.h.in to produce config.h. The first handles `#define'
20752 # templates, and the second `#undef' templates.
20753 # And first: Protect against being on the right side of a sed subst in
20754 # config.status. Protect against being in an unquoted here document
20755 # in config.status.
20756 rm -f conftest.defines conftest.undefs
20757 # Using a here document instead of a string reduces the quoting nightmare.
20758 # Putting comments in sed scripts is not portable.
20760 # `end' is used to avoid that the second main sed command (meant for
20761 # 0-ary CPP macros) applies to n-ary macro definitions.
20762 # See the Autoconf documentation for `clear'.
20763 cat >confdef2sed.sed <<\_ACEOF
20768 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20770 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20773 # If some macros were called several times there might be several times
20774 # the same #defines, which is useless. Nevertheless, we may not want to
20775 # sort them, since we want the *last* AC-DEFINE to be honored.
20776 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20777 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20778 rm -f confdef2sed.sed
20780 # This sed command replaces #undef with comments. This is necessary, for
20781 # example, in the case of _POSIX_SOURCE, which is predefined and required
20782 # on some systems where configure will not decide to define it.
20783 cat >>conftest.undefs <<\_ACEOF
20784 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20787 # Break up conftest.defines because some shells have a limit on the size
20788 # of here documents, and old seds have small limits too (100 cmds).
20789 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20790 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20791 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20792 echo ' :' >>$CONFIG_STATUS
20793 rm -f conftest.tail
20794 while grep . conftest.defines >/dev/null
20796 # Write a limited-size here document to $tmp/defines.sed.
20797 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20798 # Speed up: don't consider the non `#define' lines.
20799 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20800 # Work around the forget-to-reset-the-flag bug.
20801 echo 't clr' >>$CONFIG_STATUS
20802 echo ': clr' >>$CONFIG_STATUS
20803 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20805 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20807 mv $tmp/out $tmp/in
20809 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20810 rm -f conftest.defines
20811 mv conftest.tail conftest.defines
20813 rm -f conftest.defines
20814 echo ' fi # grep' >>$CONFIG_STATUS
20815 echo >>$CONFIG_STATUS
20817 # Break up conftest.undefs because some shells have a limit on the size
20818 # of here documents, and old seds have small limits too (100 cmds).
20819 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20820 rm -f conftest.tail
20821 while grep . conftest.undefs >/dev/null
20823 # Write a limited-size here document to $tmp/undefs.sed.
20824 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20825 # Speed up: don't consider the non `#undef'
20826 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20827 # Work around the forget-to-reset-the-flag bug.
20828 echo 't clr' >>$CONFIG_STATUS
20829 echo ': clr' >>$CONFIG_STATUS
20830 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20832 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20834 mv $tmp/out $tmp/in
20836 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20837 rm -f conftest.undefs
20838 mv conftest.tail conftest.undefs
20840 rm -f conftest.undefs
20842 cat >>$CONFIG_STATUS <<\_ACEOF
20843 # Let's still pretend it is `configure' which instantiates (i.e., don't
20844 # use $as_me), people would be surprised to read:
20845 # /* config.h. Generated by config.status. */
20846 if test x"$ac_file" = x-; then
20847 echo "/* Generated by configure. */" >$tmp/config.h
20849 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20851 cat $tmp/in >>$tmp/config.h
20853 if test x"$ac_file" != x-; then
20854 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20855 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20856 echo "$as_me: $ac_file is unchanged" >&6;}
20858 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20859 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20860 X"$ac_file" : 'X\(//\)[^/]' \| \
20861 X"$ac_file" : 'X\(//\)$' \| \
20862 X"$ac_file" : 'X\(/\)' \| \
20863 . : '\(.\)' 2>/dev/null ||
20865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20867 /^X\(\/\/\)$/{ s//\1/; q; }
20868 /^X\(\/\).*/{ s//\1/; q; }
20870 { if $as_mkdir_p; then
20875 while test ! -d "$as_dir"; do
20876 as_dirs="$as_dir $as_dirs"
20877 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20878 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20879 X"$as_dir" : 'X\(//\)[^/]' \| \
20880 X"$as_dir" : 'X\(//\)$' \| \
20881 X"$as_dir" : 'X\(/\)' \| \
20882 . : '\(.\)' 2>/dev/null ||
20884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20886 /^X\(\/\/\)$/{ s//\1/; q; }
20887 /^X\(\/\).*/{ s//\1/; q; }
20890 test ! -n "$as_dirs" || mkdir $as_dirs
20891 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20892 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20893 { (exit 1); exit 1; }; }; }
20896 mv $tmp/config.h $ac_file
20900 rm -f $tmp/config.h
20904 cat >>$CONFIG_STATUS <<\_ACEOF
20907 # CONFIG_COMMANDS section.
20909 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20910 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20911 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20912 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20913 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20914 X"$ac_dest" : 'X\(//\)[^/]' \| \
20915 X"$ac_dest" : 'X\(//\)$' \| \
20916 X"$ac_dest" : 'X\(/\)' \| \
20917 . : '\(.\)' 2>/dev/null ||
20919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20920 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20921 /^X\(\/\/\)$/{ s//\1/; q; }
20922 /^X\(\/\).*/{ s//\1/; q; }
20924 { if $as_mkdir_p; then
20929 while test ! -d "$as_dir"; do
20930 as_dirs="$as_dir $as_dirs"
20931 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20932 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20933 X"$as_dir" : 'X\(//\)[^/]' \| \
20934 X"$as_dir" : 'X\(//\)$' \| \
20935 X"$as_dir" : 'X\(/\)' \| \
20936 . : '\(.\)' 2>/dev/null ||
20938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20939 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20940 /^X\(\/\/\)$/{ s//\1/; q; }
20941 /^X\(\/\).*/{ s//\1/; q; }
20944 test ! -n "$as_dirs" || mkdir $as_dirs
20945 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20946 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20947 { (exit 1); exit 1; }; }; }
20951 if test "$ac_dir" != .; then
20952 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20953 # A "../" for each directory in $ac_dir_suffix.
20954 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20956 ac_dir_suffix= ac_top_builddir=
20960 .) # No --srcdir option. We are building in place.
20962 if test -z "$ac_top_builddir"; then
20965 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20967 [\\/]* | ?:[\\/]* ) # Absolute path.
20968 ac_srcdir=$srcdir$ac_dir_suffix;
20969 ac_top_srcdir=$srcdir ;;
20970 *) # Relative path.
20971 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20972 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20975 # Do not use `cd foo && pwd` to compute absolute paths, because
20976 # the directories may not exist.
20978 .) ac_abs_builddir="$ac_dir";;
20981 .) ac_abs_builddir=`pwd`;;
20982 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20983 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20986 case $ac_abs_builddir in
20987 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20989 case ${ac_top_builddir}. in
20990 .) ac_abs_top_builddir=$ac_abs_builddir;;
20991 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20992 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20995 case $ac_abs_builddir in
20996 .) ac_abs_srcdir=$ac_srcdir;;
20999 .) ac_abs_srcdir=$ac_abs_builddir;;
21000 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21001 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21004 case $ac_abs_builddir in
21005 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21007 case $ac_top_srcdir in
21008 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21009 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21010 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21015 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21016 echo "$as_me: executing $ac_dest commands" >&6;}
21020 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-extract.in > intltool-extract.out
21021 if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
21022 rm -f intltool-extract.out
21024 mv -f intltool-extract.out intltool-extract
21026 chmod ugo+x intltool-extract
21027 chmod u+w intltool-extract
21029 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-merge.in > intltool-merge.out
21030 if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
21031 rm -f intltool-merge.out
21033 mv -f intltool-merge.out intltool-merge
21035 chmod ugo+x intltool-merge
21036 chmod u+w intltool-merge
21038 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-update.in > intltool-update.out
21039 if cmp -s intltool-update intltool-update.out 2>/dev/null; then
21040 rm -f intltool-update.out
21042 mv -f intltool-update.out intltool-update
21044 chmod ugo+x intltool-update
21045 chmod u+w intltool-update
21048 default-2 ) case "$CONFIG_FILES" in *po/Makefile.in*)
21049 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
21055 cat >>$CONFIG_STATUS <<\_ACEOF
21057 { (exit 0); exit 0; }
21059 chmod +x $CONFIG_STATUS
21060 ac_clean_files=$ac_clean_files_save
21063 # configure is writing to config.log, and then calls config.status.
21064 # config.status does its own redirection, appending to config.log.
21065 # Unfortunately, on DOS this fails, as config.log is still kept open
21066 # by configure, so config.status won't be able to write to it; its
21067 # output is simply discarded. So we exec the FD to /dev/null,
21068 # effectively closing config.log, so it can be properly (re)opened and
21069 # appended to by config.status. When coming back to configure, we
21070 # need to make the FD available again.
21071 if test "$no_create" != yes; then
21073 ac_config_status_args=
21074 test "$silent" = yes &&
21075 ac_config_status_args="$ac_config_status_args --quiet"
21077 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21079 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21080 # would make configure fail if this is the last instruction.
21081 $ac_cs_success || { (exit 1); exit 1; }
21085 ###############################################################################
21087 # Print some warnings at the end.
21089 ###############################################################################
21091 warn_prefix_1=" Warning:"
21092 warn_prefix_2=" Note:"
21093 warn_prefix="$warn_prefix_1"
21096 warnsep=' #################################################################'
21099 if test "$warning" = no ; then
21100 echo '' ; echo "$warnsep" ; echo ''
21107 if test "$warning" = long ; then echo '' ; fi
21110 echo "$warn_prefix $rest"
21117 if test "$was" != no ; then echo '' ; fi
21119 echo "$warn_prefix $rest"
21129 warn_prefix="$warn_prefix_2"
21131 warn_prefix="$warn_prefix_1"
21135 warn_prefix="$warn_prefix_2"
21137 warn_prefix="$warn_prefix_1"
21141 if test "$with_sgi_req" = yes -a "$have_sgi" = no ; then
21142 warn 'The SGI saver extension was requested, but was not found.'
21145 if test "$with_xidle_req" = yes -a "$have_xidle" = no ; then
21146 warn 'The XIdle extension was requested, but was not found.'
21149 if test "$with_xshm_req" = yes -a "$have_xshm" = no ; then
21150 warn 'The XSHM extension was requested, but was not found.'
21153 if test "$with_xdbe_req" = yes -a "$have_xdbe" = no ; then
21154 warn 'The DOUBLE-BUFFER extension was requested, but was not found.'
21157 if test "$with_sgivc_req" = yes -a "$have_sgivc" = no ; then
21158 warn 'The SGI-VIDEO-CONTROL extension was requested, but was not found.'
21161 if test "$with_dpms_req" = yes -a "$have_dpms" = no ; then
21162 warn 'The DPMS extension was requested, but was not found.'
21165 if test "$with_xinerama_req" = yes -a "$have_xinerama" = no ; then
21166 warn 'The Xinerama extension was requested, but was not found.'
21169 if test "$with_xf86vmode_req" = yes -a "$have_xf86vmode" = no ; then
21170 warn 'The XF86VMODE extension was requested, but was not found.'
21173 if test "$with_randr_req" = yes -a "$have_randr" = no ; then
21174 warn 'The RANDR extension was requested, but was not found.'
21177 if test "$with_proc_interrupts_req" = yes -a "$have_proc_interrupts" = no; then
21178 warn "Checking of /proc/interrupts was requested, but it's bogus."
21181 if test "$pkg_config" = false ; then
21182 warnL 'The "pkg-config" program was not found. Without that,'
21183 warn2 "detection of the various GTK libraries won't work."
21185 pkgerr=`$pkg_config --list-all 2>&1 >/dev/null`
21186 if test "x$pkgerr" != "x" ; then
21187 warnL 'The "pkg-config" program produces errors. This often causes'
21188 warn2 "detection of the various GTK libraries to malfunction."
21189 warn2 "The errors are:"
21191 echo "$pkgerr" | sed 's/^/ > /g'
21195 if test "$gtk_halfassed" != no ; then
21196 warnL "GTK version $gtk_halfassed was found, but at least one supporting"
21197 warn2 "library ($gtk_halfassed_lib) was not, so GTK can't be used."
21198 warn2 "Perhaps some of the development packages are not installed?"
21199 if test "$have_gtk" = yes ; then
21200 v="$ac_gtk_version_string"
21201 warn2 "GTK $v is also installed, so it will be used instead."
21202 warn2 "Please read the above output and the \`config.log' file"
21203 warn2 "for more details."
21208 warn2 'Though the Motif front-end to xscreensaver is still'
21209 warn2 'maintained, it is no longer being updated with new'
21210 warn2 'features: all new development on the xscreensaver-demo'
21211 warn2 'program is happening in the GTK version, and not in the'
21212 warn2 'Motif version. It is recommended that you build against'
21213 warn2 'GTK instead of Motif. See <http://www.gtk.org/>.'
21216 if test "$have_motif" = no -a "$have_gtk" = no; then
21218 if test "$with_motif" = yes; then
21219 warnL "Neither the GTK nor Motif libraries were found; the"
21220 warn2 "\`xscreensaver-demo' program requires one of these."
21224 warnL "The GTK libraries do not seem to be available; the"
21225 warn2 "\`xscreensaver-demo' program requires them."
21227 # warn2 'You can use Motif or Lesstif instead of GTK (use the'
21228 # warn2 "\`--with-motif' option) but that is NOT recommended."
21232 elif test "$with_motif_req" = yes -a "$have_motif" = no ; then
21233 warnL "Use of Motif was requested, but it wasn't found;"
21234 warn2 "Gtk will be used instead."
21236 elif test "$jurassic_gtk" = yes ; then
21240 v="$ac_gtk_version_string"
21241 if test "$with_gtk_req" = yes -a "$ac_gtk_version" = "unknown" ; then
21242 warnL "Use of Gtk was requested, but its version number is unknown;"
21243 elif test "$with_gtk_req" = yes ; then
21244 warnL "Use of Gtk was requested, but it is version $v;"
21246 warnL "Gtk was found on this system, but it is version $v;"
21249 warn2 "Gtk $pref_gtk or newer is required."
21251 elif test "$with_gtk_req" = yes -a "$have_gtk" = no ; then
21252 warnL "Use of Gtk was requested, but it wasn't found."
21256 if test "$have_gtk" = yes -a "$have_gdk_pixbuf" = no ; then
21257 warn "GTK is being used, but the GDK-Pixbuf library and/or"
21258 warn2 "headers were not found. That can't be good. Please"
21259 warn2 "install the GDK-Pixbuf development kit and re-configure."
21262 if test "$have_motif" = yes -a "$have_lesstif" = yes ; then
21264 preferred_lesstif=0.92
21266 if test "$lesstif_version" = unknown; then
21267 warnL "Unable to determine the LessTif version number!"
21268 warn2 "Make sure you are using version $preferred_lesstif or newer."
21269 warn2 "See <http://www.lesstif.org/>."
21271 elif test \! $lesstif_version -gt 82; then
21272 warnL "LessTif version $lesstif_version_string is being used."
21273 warn2 "LessTif versions 0.82 and earlier are too buggy to"
21274 warn2 "use with XScreenSaver; it is strongly recommended"
21275 warn2 "that you upgrade to at least version $preferred_lesstif!"
21276 warn2 "See <http://www.lesstif.org/>."
21281 if test "$have_motif" = yes -a "$have_gtk" = no ; then
21282 warn 'Motif is being used, and GTK is not.'
21288 if test "$with_xpm_req" = yes -a "$have_xpm" = no; then
21289 warnL 'Use of XPM was requested, but it was not found.'
21292 if test "$with_gdk_pixbuf_req" = yes -a "$have_gdk_pixbuf" = no; then
21293 warnL 'Use of GDK-Pixbuf was requested, but it was not found.'
21296 if test "$have_gdk_pixbuf" = no -o "$gdk_pixbuf_halfassed" = yes || \
21297 test "$have_gdk_pixbuf" = no -a "$have_xpm" = no ; then
21299 if test "$with_gdk_pixbuf_req" = yes ; then
21301 elif test "$with_gdk_pixbuf_req" = no ; then
21302 warnL 'The GDK-Pixbuf library is not being used.'
21304 warnL 'The GDK-Pixbuf library was not found.'
21307 if test "$with_xpm_req" = yes -o "$have_xpm" = yes ; then
21309 elif test "$with_xpm_req" = no ; then
21310 warnL 'The XPM library is not being used.'
21312 warnL 'The XPM library was not found.'
21315 if test "$have_gdk_pixbuf" = no -a "$have_xpm" = yes ; then
21316 warn2 'The XPM library is being used instead.'
21319 if test "$gdk_pixbuf_halfassed" = yes ; then
21321 warn2 'More specifically, we found the headers, but not the'
21322 warn2 'libraries; so either GDK-Pixbuf is half-installed on this'
21323 warn2 "system, or something else went wrong. The \`config.log'"
21324 warn2 'file might contain some clues.'
21328 warn2 'Some of the demos will not use images as much as they could.'
21329 warn2 'You should consider installing GDK-Pixbuf and re-running'
21330 warn2 'configure. (GDK-Pixbuf is recommended over XPM, as it'
21331 warn2 'provides support for more image formats.)'
21335 if test "$have_jpeg" = no ; then
21336 if test "$with_jpeg_req" = yes ; then
21337 warnL 'Use of libjpeg was requested, but it was not found.'
21338 elif test "$with_jpeg_req" = no ; then
21339 noteL 'The JPEG library is not being used.'
21341 noteL 'The JPEG library was not found.'
21344 if test "$jpeg_halfassed" = yes ; then
21346 warn2 'More specifically, we found the headers, but not the'
21347 warn2 'library; so either JPEG is half-installed on this'
21348 warn2 "system, or something else went wrong. The \`config.log'"
21349 warn2 'file might contain some clues.'
21353 if test "$have_gdk_pixbuf" = no ; then
21354 warn2 "This means that it won't be possible for the image-manipulating"
21355 warn2 "display modes to load files from disk; and it also means that"
21356 warn2 "the \`webcollage' program will be much slower."
21358 warn2 "This means the \`webcollage' program will be much slower."
21363 if test "$have_gl" = yes -a "$ac_have_mesa_gl" = yes ; then
21364 preferred_mesagl=3.4
21365 mgv="$ac_mesagl_version_string"
21366 pgl="$preferred_mesagl"
21368 if test "$ac_mesagl_version" = unknown; then
21369 warnL "Unable to determine the MesaGL version number!"
21370 warn2 "Make sure you are using version $preferred_mesagl or newer."
21372 elif test \! "$ac_mesagl_version" -gt 2006; then
21373 warnL "MesaGL version number is $mgv --"
21374 warn2 "MesaGL 2.6 and earlier have a security bug. It is strongly"
21375 warn2 "recommended that you upgrade to at least version $preferred_mesagl."
21377 elif test \! "$ac_mesagl_version" -gt 3003; then
21378 warnL "MesaGL version number is $mgv --"
21379 warn2 "MesaGL 3.3 and earlier have some bugs; it is recommended"
21380 warn2 "that you upgrade to $pgl or newer."
21384 if test "$have_gl" = no ; then
21385 if test "$with_gl_req" = yes ; then
21386 warnL 'Use of GL was requested, but it was not found.'
21387 elif test "$with_gl_req" = no ; then
21388 noteL 'The OpenGL 3D library is not being used.'
21390 noteL 'The OpenGL 3D library was not found.'
21393 if test "$gl_halfassed" = yes ; then
21395 warn2 'More specifically, we found the headers, but not the'
21396 warn2 'libraries; so either GL is half-installed on this'
21397 warn2 "system, or something else went wrong. The \`config.log'"
21398 warn2 'file might contain some clues.'
21402 warn2 'Those demos which use 3D will not be built or installed.'
21403 warn2 'You might want to consider installing OpenGL and'
21404 warn2 "re-running configure. If your vendor doesn't ship"
21405 warn2 'their own implementation of OpenGL, you can get a free'
21406 warn2 'version at <http://www.mesa3d.org/>. For general OpenGL'
21407 warn2 'info, see <http://www.opengl.org/>.'
21412 if test "$have_gl" = yes -a "$have_gle" = no ; then
21414 # nobody cares about this; don't print the warning unless it was
21415 # requested and not found, or halfway-found.
21416 if test "$with_gle_req" = yes -o "$gle_halfassed" = yes ; then
21418 if test "$with_gle_req" = yes ; then
21419 noteL 'Use of the GLE (GL Extrusion) library was requested, but'
21420 warn2 'it was not found (though the OpenGL library was found, and'
21421 warn2 'is being used.)'
21422 elif test "$with_gle_req" = no ; then
21423 noteL 'The OpenGL Library is being used, but the GLE (GL Extrusion)'
21424 warn2 'library is not.'
21426 noteL 'The OpenGL Library was found, but the GLE (GL Extrusion)'
21430 if test "$gle_halfassed" = yes ; then
21432 warn2 'More specifically, we found the headers, but not the'
21433 warn2 'libraries; so either GLE is half-installed on this'
21434 warn2 "system, or something else went wrong. The \`config.log'"
21435 warn2 'file might contain some clues.'
21439 warn2 'Some of the OpenGL (3D) demos (those that depend on GLE)'
21440 warn2 'will not be built or installed. You might want to consider'
21441 warn2 'installing GLE and re-running configure. You can find the'
21442 warn2 'GLE library at <http://www.linas.org/gle/>. For general'
21443 warn2 'OpenGL info, see <http://www.opengl.org/>.'
21449 if test "$with_readdisplay_req" = yes -a "$have_readdisplay" = no ; then
21450 warn 'Use of XReadDisplay was requested, but it was not found.'
21453 if test "$with_kerberos_req" = yes -a "$have_kerberos" = no ; then
21454 warn 'Use of Kerberos was requested, but it was not found.'
21457 if test "$with_pam_req" = yes -a "$have_pam" = no ; then
21458 warn 'Use of PAM was requested, but it was not found.'
21461 if test "$with_shadow_req" = yes -a "$have_shadow" = no ; then
21462 warn 'Use of shadow passwords was requested, but they were not found.'
21466 # You are in a twisty maze of namespaces and syntaxes, all alike.
21467 # Fuck the skull of Unix.
21469 eval bindir=${bindir}
21470 eval bindir=${bindir}
21471 eval bindir=${bindir}
21472 eval bindir=${bindir}
21473 eval bindir=${bindir}
21474 eval bindir=${bindir}
21475 eval HACKDIR=${HACKDIR}
21476 eval HACKDIR=${HACKDIR}
21477 eval HACKDIR=${HACKDIR}
21478 eval HACKDIR=${HACKDIR}
21479 eval HACKDIR=${HACKDIR}
21480 eval HACKDIR=${HACKDIR}
21481 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21482 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21483 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21484 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21485 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21486 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21488 # canonicalize slashes.
21489 bindir=`echo "${bindir}" | sed 's@/$@@;s@//*@/@g'`
21490 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
21491 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
21494 # Sanity check the hackdir
21495 for bad_choice in xscreensaver xscreensaver-demo xscreensaver-command ; do
21496 if test "${HACKDIR}" = "${bindir}/${bad_choice}" ; then
21498 { { echo "$as_me:$LINENO: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
21499 There will be an executable installed with that name, so
21500 that can't be the name of a directory as well. Please
21501 re-configure with a different directory name." >&5
21502 echo "$as_me: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
21503 There will be an executable installed with that name, so
21504 that can't be the name of a directory as well. Please
21505 re-configure with a different directory name." >&2;}
21506 { (exit 1); exit 1; }; }
21513 # Now let's warn if there's a previous RPM version already installed.
21514 # But don't bother with this test if we are currently *building* an RPM.
21516 if test -z "$RPM_PACKAGE_VERSION" ; then
21518 rpmnames="xscreensaver xscreensaver-base xscreensaver-extras"
21522 rpmv=`(rpm -qv $rpmnames) 2>/dev/null | \
21523 sed -n 's/^[-a-z]*-\([0-9][0-9]*[.][0-9][0-9a-z]*\)-.*$/\1/p' | \
21527 if test \! -z "$rpmv" ; then
21528 rpmbdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/xscreensaver-demo$@\1@p'`
21529 rpmhdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/attraction$@\1@p'`
21532 warnL "There is already an installed RPM of xscreensaver $rpmv"
21533 warn2 'on this system. You might want to remove it ("rpm -ve")'
21534 warn2 'before running "make install" in this directory.'
21536 warn2 "Alternately, you could build this version of xscreensaver"
21537 warn2 'as an RPM, and then install that. An "xscreensaver.spec"'
21538 warn2 'file is included. Try "rpmbuild -v -ba xscreensaver.spec".'
21539 warn2 "See the RPM documentation for more info."
21542 if test "$rpmbdir" = "$rpmhdir" ; then
21543 warn2 "The RPM version was installed in $rpmbdir/."
21546 warn2 "The RPM version was installed in $rpmbdir/,"
21547 warn2 "with demos in $rpmhdir/."
21552 if test "${bindir}" = "${HACKDIR}" ; then
21556 if test "$do_dir_warning" = yes; then
21560 echo ' When you run "make install", the "xscreensaver",'
21561 echo ' "xscreensaver-demo", and "xscreensaver-command" executables'
21562 echo " will be installed in ${bindir}/."
21564 echo " The various graphics demos (190+ different executables) will"
21565 echo " be installed in ${HACKDIR}/."
21567 echo " If you would prefer the demos to be installed elsewhere,"
21568 echo " you should re-run configure with the --with-hackdir=DIR"
21569 echo " option. For more information, run \`./configure --help'."
21573 if test "$warning" != no; then
21574 echo '' ; echo "$warnsep" ; echo ''
21577 if test "$do_dir_warning" = no; then
21578 if test "$warning" = no; then
21581 echo "User programs will be installed in ${bindir}/"
21582 echo "Screen savers will be installed in ${HACKDIR}/"
21583 echo "Configuration will be installed in ${HACK_CONF_DIR}/"