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 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='${prefix}/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: `EPREFIX/lib/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-kerberos Include support for Kerberos authentication.
890 --with-shadow Include support for shadow password authentication.
891 --with-passwd-helper Include support for an external password
892 verification helper program.
893 --with-login-manager Put a "New Login" button on the unlock dialog that
894 runs a login manager such as gdmflexiserver.
896 User interface options:
898 --with-gtk Use the Gtk toolkit for the user interface.
899 --with-motif Use the Motif toolkit for the user interface
904 --with-gl Build those demos which depend on OpenGL.
905 --with-gle Build those demos which depend on GLE
906 (the OpenGL "extrusion" library.)
907 --with-pixbuf Include support for the GDK-Pixbuf library in some
908 demos, which will make it possible for them to read
909 GIF, JPEG, and PNG files as well.
910 --with-xpm Include support for XPM files in some demos.
911 (Not needed if Pixbuf is used.)
912 --with-jpeg Include support for the JPEG library.
913 --with-xshm-ext Include support for the Shared Memory extension.
914 --with-xdbe-ext Include support for the DOUBLE-BUFFER extension.
915 --with-readdisplay Include support for the XReadDisplay extension.
916 --with-image-directory=DIR By default, some screen savers may load
917 random images out of this directory.
918 --with-setuid-hacks Allow some demos to be installed `setuid root'
919 (which is needed in order to ping other hosts.)
922 Some influential environment variables:
923 CC C compiler command
924 CFLAGS C compiler flags
925 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
926 nonstandard directory <lib dir>
927 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
928 headers in a nonstandard directory <include dir>
931 Use these variables to override the choices made by `configure' or to help
932 it to find libraries and programs with nonstandard names/locations.
937 if test "$ac_init_help" = "recursive"; then
938 # If there are subdirs, report their specific --help.
940 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
941 test -d $ac_dir || continue
944 if test "$ac_dir" != .; then
945 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
946 # A "../" for each directory in $ac_dir_suffix.
947 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
949 ac_dir_suffix= ac_top_builddir=
953 .) # No --srcdir option. We are building in place.
955 if test -z "$ac_top_builddir"; then
958 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
960 [\\/]* | ?:[\\/]* ) # Absolute path.
961 ac_srcdir=$srcdir$ac_dir_suffix;
962 ac_top_srcdir=$srcdir ;;
964 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
965 ac_top_srcdir=$ac_top_builddir$srcdir ;;
968 # Do not use `cd foo && pwd` to compute absolute paths, because
969 # the directories may not exist.
971 .) ac_abs_builddir="$ac_dir";;
974 .) ac_abs_builddir=`pwd`;;
975 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
976 *) ac_abs_builddir=`pwd`/"$ac_dir";;
979 case $ac_abs_builddir in
980 .) ac_abs_top_builddir=${ac_top_builddir}.;;
982 case ${ac_top_builddir}. in
983 .) ac_abs_top_builddir=$ac_abs_builddir;;
984 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
985 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
988 case $ac_abs_builddir in
989 .) ac_abs_srcdir=$ac_srcdir;;
992 .) ac_abs_srcdir=$ac_abs_builddir;;
993 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
994 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
997 case $ac_abs_builddir in
998 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1000 case $ac_top_srcdir in
1001 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1002 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1003 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1008 # Check for guested configure; otherwise get Cygnus style configure.
1009 if test -f $ac_srcdir/configure.gnu; then
1011 $SHELL $ac_srcdir/configure.gnu --help=recursive
1012 elif test -f $ac_srcdir/configure; then
1014 $SHELL $ac_srcdir/configure --help=recursive
1015 elif test -f $ac_srcdir/configure.ac ||
1016 test -f $ac_srcdir/configure.in; then
1018 $ac_configure --help
1020 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1026 test -n "$ac_init_help" && exit 0
1027 if $ac_init_version; then
1030 Copyright (C) 2003 Free Software Foundation, Inc.
1031 This configure script is free software; the Free Software Foundation
1032 gives unlimited permission to copy, distribute and modify it.
1038 This file contains any messages produced by compilers while
1039 running configure, to aid debugging if configure makes a mistake.
1041 It was created by $as_me, which was
1042 generated by GNU Autoconf 2.59. Invocation command line was
1053 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1054 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1055 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1056 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1057 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1059 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1060 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1062 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1063 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1064 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1065 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1066 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1067 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1068 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1076 test -z "$as_dir" && as_dir=.
1077 echo "PATH: $as_dir"
1092 # Keep a trace of the command line.
1093 # Strip out --no-create and --no-recursion so they do not pile up.
1094 # Strip out --silent because we don't want to record it for future runs.
1095 # Also quote any args containing shell meta-characters.
1096 # Make two passes to allow for proper duplicate-argument suppression.
1101 ac_must_keep_next=false
1107 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1109 | -silent | --silent | --silen | --sile | --sil)
1111 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1112 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1115 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1117 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1118 if test $ac_must_keep_next = true; then
1119 ac_must_keep_next=false # Got value, back to normal.
1122 *=* | --config-cache | -C | -disable-* | --disable-* \
1123 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1124 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1125 | -with-* | --with-* | -without-* | --without-* | --x)
1126 case "$ac_configure_args0 " in
1127 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1130 -* ) ac_must_keep_next=true ;;
1133 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1134 # Get rid of the leading space.
1140 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1141 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1143 # When interrupted or exit'd, cleanup temporary files, and complete
1144 # config.log. We remove comments because anyway the quotes in there
1145 # would cause problems or look ugly.
1146 # WARNING: Be sure not to use single quotes in there, as some shells,
1147 # such as our DU 5.0 friend, will then `close' the trap.
1148 trap 'exit_status=$?
1149 # Save into config.log some information that might help in debugging.
1154 ## ---------------- ##
1155 ## Cache variables. ##
1156 ## ---------------- ##
1159 # The following way of writing the cache mishandles newlines in values,
1162 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1165 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1166 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1170 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1177 ## ----------------- ##
1178 ## Output variables. ##
1179 ## ----------------- ##
1182 for ac_var in $ac_subst_vars
1184 eval ac_val=$`echo $ac_var`
1185 echo "$ac_var='"'"'$ac_val'"'"'"
1189 if test -n "$ac_subst_files"; then
1196 for ac_var in $ac_subst_files
1198 eval ac_val=$`echo $ac_var`
1199 echo "$ac_var='"'"'$ac_val'"'"'"
1204 if test -s confdefs.h; then
1211 sed "/^$/d" confdefs.h | sort
1214 test "$ac_signal" != 0 &&
1215 echo "$as_me: caught signal $ac_signal"
1216 echo "$as_me: exit $exit_status"
1218 rm -f core *.core &&
1219 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1222 for ac_signal in 1 2 13 15; do
1223 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1227 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1228 rm -rf conftest* confdefs.h
1229 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1232 # Predefined preprocessor variables.
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_NAME "$PACKAGE_NAME"
1239 cat >>confdefs.h <<_ACEOF
1240 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1244 cat >>confdefs.h <<_ACEOF
1245 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1249 cat >>confdefs.h <<_ACEOF
1250 #define PACKAGE_STRING "$PACKAGE_STRING"
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1259 # Let the site file select an alternate cache file if it wants to.
1260 # Prefer explicitly selected file to automatically selected ones.
1261 if test -z "$CONFIG_SITE"; then
1262 if test "x$prefix" != xNONE; then
1263 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1265 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1268 for ac_site_file in $CONFIG_SITE; do
1269 if test -r "$ac_site_file"; then
1270 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1271 echo "$as_me: loading site script $ac_site_file" >&6;}
1272 sed 's/^/| /' "$ac_site_file" >&5
1277 if test -r "$cache_file"; then
1278 # Some versions of bash will fail to source /dev/null (special
1279 # files actually), so we avoid doing that.
1280 if test -f "$cache_file"; then
1281 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1282 echo "$as_me: loading cache $cache_file" >&6;}
1284 [\\/]* | ?:[\\/]* ) . $cache_file;;
1285 *) . ./$cache_file;;
1289 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1290 echo "$as_me: creating cache $cache_file" >&6;}
1294 # Check that the precious variables saved in the cache have kept the same
1296 ac_cache_corrupted=false
1297 for ac_var in `(set) 2>&1 |
1298 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1299 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1300 eval ac_new_set=\$ac_env_${ac_var}_set
1301 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1302 eval ac_new_val="\$ac_env_${ac_var}_value"
1303 case $ac_old_set,$ac_new_set in
1305 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1306 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1307 ac_cache_corrupted=: ;;
1309 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1310 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1311 ac_cache_corrupted=: ;;
1314 if test "x$ac_old_val" != "x$ac_new_val"; then
1315 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1316 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1317 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1318 echo "$as_me: former value: $ac_old_val" >&2;}
1319 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1320 echo "$as_me: current value: $ac_new_val" >&2;}
1321 ac_cache_corrupted=:
1324 # Pass precious variables to config.status.
1325 if test "$ac_new_set" = set; then
1327 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1328 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1329 *) ac_arg=$ac_var=$ac_new_val ;;
1331 case " $ac_configure_args " in
1332 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1333 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1337 if $ac_cache_corrupted; then
1338 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1339 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1340 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1341 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1342 { (exit 1); exit 1; }; }
1346 ac_cpp='$CPP $CPPFLAGS'
1347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1369 ac_config_headers="$ac_config_headers config.h"
1372 echo "current directory: `pwd`"
1373 echo "command line was: $0 $@"
1376 # After checking to see that --srcdir is correct (which AC_INIT does)
1377 # check for some random other files that come later in the tar file,
1378 # to make sure everything is here.
1380 for d in driver utils hacks hacks/glx ; do
1381 f=$srcdir/$d/Makefile.in
1382 if test \! -r $f ; then
1384 echo "ERROR: The package is incomplete: $f does not exist."
1385 echo " This probably means that your download was truncated."
1391 ###############################################################################
1393 # Function to figure out how to run the compiler.
1395 ###############################################################################
1400 ###############################################################################
1402 # Functions to figure out how to disable // comments in ANSI C code.
1404 # (With recent gcc, this is done with "-std=c89". With older gcc, this
1405 # is done by passing "-lang-c89" to cpp, by passing "-Wp,-lang-c89" to
1406 # gcc. Old gcc doesn't support -std, and new gcc doesn't support -lang.
1407 # so much for compatibility!)
1409 # UPDATE: apparently there is NO WAY to tell gcc 3.2.2 to require that
1410 # declarations preceed statements, without resorting to "-pedantic".
1411 # This means that there is no way to get gcc3 to issue warnings that
1412 # ensure that your code complies with the ANSI/ISO C89 standard, without
1413 # also drowning in totally useless warnings. Thank you master may I
1416 # So, I give up, let's just use -pedantic.
1418 ###############################################################################
1425 ###############################################################################
1427 # Function to figure out how to turn off Objective C on MacOS X.
1428 # (We have to do this to work around an Apple-specific gcc bug.)
1430 ###############################################################################
1437 ###############################################################################
1439 # Function to figure out how to create directory trees.
1441 ###############################################################################
1446 ###############################################################################
1448 # Function to check whether gettimeofday() exists, and how to call it.
1449 # This may define HAVE_GETTIMEOFDAY and GETTIMEOFDAY_TWO_ARGS.
1451 ###############################################################################
1456 ###############################################################################
1458 # Function to find perl5 (defines PERL and PERL_VERSION.)
1460 ###############################################################################
1462 # M4 sucks!! perl sucks too!!
1464 perl_version_cmd='print $]'
1470 ###############################################################################
1472 # Function to demand "bc". Losers.
1474 ###############################################################################
1478 ###############################################################################
1480 # Functions to check how to do ICMP PING requests.
1482 ###############################################################################
1489 ###############################################################################
1491 # Functions to check for various X11 crap.
1493 ###############################################################################
1495 # Try and find the app-defaults directory.
1496 # It sucks that autoconf doesn't do this already...
1508 # Random special-cases for X on certain pathological OSes.
1509 # You know who you are.
1515 ###############################################################################
1517 # Some utility functions to make checking for X things easier.
1519 ###############################################################################
1521 # Like AC_CHECK_HEADER, but it uses the already-computed -I directories.
1525 # Like AC_EGREP_HEADER, but it uses the already-computed -I directories.
1529 # Like AC_TRY_COMPILE, but it uses the already-computed -I directories.
1534 # Like AC_CHECK_LIB, but it uses the already-computed -I and -L directories.
1535 # Use this sparingly; it probably doesn't work very well on X programs.
1539 # Like AC_TRY_RUN, but it uses the already-computed -I directories.
1540 # (But not the -L directories!)
1546 # Usage: HANDLE_X_PATH_ARG([variable_name],
1547 # [--command-line-option],
1548 # [descriptive string])
1550 # All of the --with options take three forms:
1552 # --with-foo (or --with-foo=yes)
1553 # --without-foo (or --with-foo=no)
1556 # This function, HANDLE_X_PATH_ARG, deals with the /DIR case. When it sees
1557 # a directory (string beginning with a slash) it checks to see whether
1558 # /DIR/include and /DIR/lib exist, and adds them to $X_CFLAGS and $X_LIBS
1565 ###############################################################################
1566 ###############################################################################
1568 # End of function definitions. Now start actually executing stuff.
1570 ###############################################################################
1571 ###############################################################################
1573 # random compiler setup
1575 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1576 if test -f $ac_dir/install-sh; then
1578 ac_install_sh="$ac_aux_dir/install-sh -c"
1580 elif test -f $ac_dir/install.sh; then
1582 ac_install_sh="$ac_aux_dir/install.sh -c"
1584 elif test -f $ac_dir/shtool; then
1586 ac_install_sh="$ac_aux_dir/shtool install -c"
1590 if test -z "$ac_aux_dir"; then
1591 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1592 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1593 { (exit 1); exit 1; }; }
1595 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1596 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1597 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1599 # Make sure we can run config.sub.
1600 $ac_config_sub sun4 >/dev/null 2>&1 ||
1601 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1602 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1603 { (exit 1); exit 1; }; }
1605 echo "$as_me:$LINENO: checking build system type" >&5
1606 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1607 if test "${ac_cv_build+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1610 ac_cv_build_alias=$build_alias
1611 test -z "$ac_cv_build_alias" &&
1612 ac_cv_build_alias=`$ac_config_guess`
1613 test -z "$ac_cv_build_alias" &&
1614 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1615 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1616 { (exit 1); exit 1; }; }
1617 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1618 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1619 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1620 { (exit 1); exit 1; }; }
1623 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1624 echo "${ECHO_T}$ac_cv_build" >&6
1626 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1627 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1628 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1631 echo "$as_me:$LINENO: checking host system type" >&5
1632 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1633 if test "${ac_cv_host+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1636 ac_cv_host_alias=$host_alias
1637 test -z "$ac_cv_host_alias" &&
1638 ac_cv_host_alias=$ac_cv_build_alias
1639 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1640 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1641 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1642 { (exit 1); exit 1; }; }
1645 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1646 echo "${ECHO_T}$ac_cv_host" >&6
1648 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1649 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1650 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1655 ac_cpp='$CPP $CPPFLAGS'
1656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1659 if test -n "$ac_tool_prefix"; then
1660 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1661 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1662 echo "$as_me:$LINENO: checking for $ac_word" >&5
1663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1664 if test "${ac_cv_prog_CC+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 if test -n "$CC"; then
1668 ac_cv_prog_CC="$CC" # Let the user override the test.
1670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 test -z "$as_dir" && as_dir=.
1675 for ac_exec_ext in '' $ac_executable_extensions; do
1676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1677 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1687 if test -n "$CC"; then
1688 echo "$as_me:$LINENO: result: $CC" >&5
1689 echo "${ECHO_T}$CC" >&6
1691 echo "$as_me:$LINENO: result: no" >&5
1692 echo "${ECHO_T}no" >&6
1696 if test -z "$ac_cv_prog_CC"; then
1698 # Extract the first word of "gcc", so it can be a program name with args.
1699 set dummy gcc; ac_word=$2
1700 echo "$as_me:$LINENO: checking for $ac_word" >&5
1701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1705 if test -n "$ac_ct_CC"; then
1706 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 test -z "$as_dir" && as_dir=.
1713 for ac_exec_ext in '' $ac_executable_extensions; do
1714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1715 ac_cv_prog_ac_ct_CC="gcc"
1716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1725 if test -n "$ac_ct_CC"; then
1726 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1727 echo "${ECHO_T}$ac_ct_CC" >&6
1729 echo "$as_me:$LINENO: result: no" >&5
1730 echo "${ECHO_T}no" >&6
1738 if test -z "$CC"; then
1739 if test -n "$ac_tool_prefix"; then
1740 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1741 set dummy ${ac_tool_prefix}cc; ac_word=$2
1742 echo "$as_me:$LINENO: checking for $ac_word" >&5
1743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1744 if test "${ac_cv_prog_CC+set}" = set; then
1745 echo $ECHO_N "(cached) $ECHO_C" >&6
1747 if test -n "$CC"; then
1748 ac_cv_prog_CC="$CC" # Let the user override the test.
1750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1754 test -z "$as_dir" && as_dir=.
1755 for ac_exec_ext in '' $ac_executable_extensions; do
1756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1757 ac_cv_prog_CC="${ac_tool_prefix}cc"
1758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1767 if test -n "$CC"; then
1768 echo "$as_me:$LINENO: result: $CC" >&5
1769 echo "${ECHO_T}$CC" >&6
1771 echo "$as_me:$LINENO: result: no" >&5
1772 echo "${ECHO_T}no" >&6
1776 if test -z "$ac_cv_prog_CC"; then
1778 # Extract the first word of "cc", so it can be a program name with args.
1779 set dummy cc; ac_word=$2
1780 echo "$as_me:$LINENO: checking for $ac_word" >&5
1781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1782 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
1785 if test -n "$ac_ct_CC"; then
1786 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1792 test -z "$as_dir" && as_dir=.
1793 for ac_exec_ext in '' $ac_executable_extensions; do
1794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1795 ac_cv_prog_ac_ct_CC="cc"
1796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1805 if test -n "$ac_ct_CC"; then
1806 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1807 echo "${ECHO_T}$ac_ct_CC" >&6
1809 echo "$as_me:$LINENO: result: no" >&5
1810 echo "${ECHO_T}no" >&6
1819 if test -z "$CC"; then
1820 # Extract the first word of "cc", so it can be a program name with args.
1821 set dummy cc; ac_word=$2
1822 echo "$as_me:$LINENO: checking for $ac_word" >&5
1823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824 if test "${ac_cv_prog_CC+set}" = set; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
1827 if test -n "$CC"; then
1828 ac_cv_prog_CC="$CC" # Let the user override the test.
1831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835 test -z "$as_dir" && as_dir=.
1836 for ac_exec_ext in '' $ac_executable_extensions; do
1837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1839 ac_prog_rejected=yes
1843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1849 if test $ac_prog_rejected = yes; then
1850 # We found a bogon in the path, so make sure we never use it.
1851 set dummy $ac_cv_prog_CC
1853 if test $# != 0; then
1854 # We chose a different compiler from the bogus one.
1855 # However, it has the same basename, so the bogon will be chosen
1856 # first if we set CC to just the basename; use the full file name.
1858 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1864 if test -n "$CC"; then
1865 echo "$as_me:$LINENO: result: $CC" >&5
1866 echo "${ECHO_T}$CC" >&6
1868 echo "$as_me:$LINENO: result: no" >&5
1869 echo "${ECHO_T}no" >&6
1873 if test -z "$CC"; then
1874 if test -n "$ac_tool_prefix"; then
1877 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1878 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_CC+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 if test -n "$CC"; then
1885 ac_cv_prog_CC="$CC" # Let the user override the test.
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 test -z "$as_dir" && as_dir=.
1892 for ac_exec_ext in '' $ac_executable_extensions; do
1893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 if test -n "$CC"; then
1905 echo "$as_me:$LINENO: result: $CC" >&5
1906 echo "${ECHO_T}$CC" >&6
1908 echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1912 test -n "$CC" && break
1915 if test -z "$CC"; then
1919 # Extract the first word of "$ac_prog", so it can be a program name with args.
1920 set dummy $ac_prog; ac_word=$2
1921 echo "$as_me:$LINENO: checking for $ac_word" >&5
1922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1923 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1924 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 if test -n "$ac_ct_CC"; then
1927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933 test -z "$as_dir" && as_dir=.
1934 for ac_exec_ext in '' $ac_executable_extensions; do
1935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936 ac_cv_prog_ac_ct_CC="$ac_prog"
1937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1946 if test -n "$ac_ct_CC"; then
1947 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1948 echo "${ECHO_T}$ac_ct_CC" >&6
1950 echo "$as_me:$LINENO: result: no" >&5
1951 echo "${ECHO_T}no" >&6
1954 test -n "$ac_ct_CC" && break
1963 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1964 See \`config.log' for more details." >&5
1965 echo "$as_me: error: no acceptable C compiler found in \$PATH
1966 See \`config.log' for more details." >&2;}
1967 { (exit 1); exit 1; }; }
1969 # Provide some information about the compiler.
1970 echo "$as_me:$LINENO:" \
1971 "checking for C compiler version" >&5
1972 ac_compiler=`set X $ac_compile; echo $2`
1973 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1974 (eval $ac_compiler --version </dev/null >&5) 2>&5
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 (exit $ac_status); }
1978 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1979 (eval $ac_compiler -v </dev/null >&5) 2>&5
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); }
1983 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1984 (eval $ac_compiler -V </dev/null >&5) 2>&5
1986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987 (exit $ac_status); }
1989 cat >conftest.$ac_ext <<_ACEOF
1992 cat confdefs.h >>conftest.$ac_ext
1993 cat >>conftest.$ac_ext <<_ACEOF
1994 /* end confdefs.h. */
2004 ac_clean_files_save=$ac_clean_files
2005 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2006 # Try to create an executable without -o first, disregard a.out.
2007 # It will help us diagnose broken compilers, and finding out an intuition
2009 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2010 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2011 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2012 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2013 (eval $ac_link_default) 2>&5
2015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016 (exit $ac_status); }; then
2017 # Find the output, starting from the most likely. This scheme is
2018 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2021 # Be careful to initialize this variable, since it used to be cached.
2022 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2024 # b.out is created by i960 compilers.
2025 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2027 test -f "$ac_file" || continue
2029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2032 # This is the source file.
2035 # We found the default executable, but exeext='' is most
2039 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2040 # FIXME: I believe we export ac_cv_exeext for Libtool,
2041 # but it would be cool to find out if it's true. Does anybody
2042 # maintain Libtool? --akim.
2050 echo "$as_me: failed program was:" >&5
2051 sed 's/^/| /' conftest.$ac_ext >&5
2053 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2054 See \`config.log' for more details." >&5
2055 echo "$as_me: error: C compiler cannot create executables
2056 See \`config.log' for more details." >&2;}
2057 { (exit 77); exit 77; }; }
2060 ac_exeext=$ac_cv_exeext
2061 echo "$as_me:$LINENO: result: $ac_file" >&5
2062 echo "${ECHO_T}$ac_file" >&6
2064 # Check the compiler produces executables we can run. If not, either
2065 # the compiler is broken, or we cross compile.
2066 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2067 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2068 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2069 # If not cross compiling, check that we can run a simple program.
2070 if test "$cross_compiling" != yes; then
2071 if { ac_try='./$ac_file'
2072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); }; }; then
2079 if test "$cross_compiling" = maybe; then
2082 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2083 If you meant to cross compile, use \`--host'.
2084 See \`config.log' for more details." >&5
2085 echo "$as_me: error: cannot run C compiled programs.
2086 If you meant to cross compile, use \`--host'.
2087 See \`config.log' for more details." >&2;}
2088 { (exit 1); exit 1; }; }
2092 echo "$as_me:$LINENO: result: yes" >&5
2093 echo "${ECHO_T}yes" >&6
2095 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2096 ac_clean_files=$ac_clean_files_save
2097 # Check the compiler produces executables we can run. If not, either
2098 # the compiler is broken, or we cross compile.
2099 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2100 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2101 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2102 echo "${ECHO_T}$cross_compiling" >&6
2104 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2105 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2107 (eval $ac_link) 2>&5
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }; then
2111 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2112 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2113 # work properly (i.e., refer to `conftest.exe'), while it won't with
2115 for ac_file in conftest.exe conftest conftest.*; do
2116 test -f "$ac_file" || continue
2118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2119 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2126 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2127 See \`config.log' for more details." >&5
2128 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2129 See \`config.log' for more details." >&2;}
2130 { (exit 1); exit 1; }; }
2133 rm -f conftest$ac_cv_exeext
2134 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2135 echo "${ECHO_T}$ac_cv_exeext" >&6
2137 rm -f conftest.$ac_ext
2138 EXEEXT=$ac_cv_exeext
2140 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2141 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2142 if test "${ac_cv_objext+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 cat >conftest.$ac_ext <<_ACEOF
2148 cat confdefs.h >>conftest.$ac_ext
2149 cat >>conftest.$ac_ext <<_ACEOF
2150 /* end confdefs.h. */
2160 rm -f conftest.o conftest.obj
2161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2162 (eval $ac_compile) 2>&5
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; then
2166 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2169 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2174 echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2177 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2178 See \`config.log' for more details." >&5
2179 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2180 See \`config.log' for more details." >&2;}
2181 { (exit 1); exit 1; }; }
2184 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2186 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2187 echo "${ECHO_T}$ac_cv_objext" >&6
2188 OBJEXT=$ac_cv_objext
2190 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2191 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2192 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2195 cat >conftest.$ac_ext <<_ACEOF
2198 cat confdefs.h >>conftest.$ac_ext
2199 cat >>conftest.$ac_ext <<_ACEOF
2200 /* end confdefs.h. */
2213 rm -f conftest.$ac_objext
2214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2215 (eval $ac_compile) 2>conftest.er1
2217 grep -v '^ *+' conftest.er1 >conftest.err
2219 cat conftest.err >&5
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); } &&
2222 { ac_try='test -z "$ac_c_werror_flag"
2223 || test ! -s conftest.err'
2224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; } &&
2229 { ac_try='test -s conftest.$ac_objext'
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; }; then
2237 echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2243 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2246 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2247 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2248 GCC=`test $ac_compiler_gnu = yes && echo yes`
2249 ac_test_CFLAGS=${CFLAGS+set}
2250 ac_save_CFLAGS=$CFLAGS
2252 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2253 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2254 if test "${ac_cv_prog_cc_g+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 cat >conftest.$ac_ext <<_ACEOF
2260 cat confdefs.h >>conftest.$ac_ext
2261 cat >>conftest.$ac_ext <<_ACEOF
2262 /* end confdefs.h. */
2272 rm -f conftest.$ac_objext
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>conftest.er1
2276 grep -v '^ *+' conftest.er1 >conftest.err
2278 cat conftest.err >&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); } &&
2281 { ac_try='test -z "$ac_c_werror_flag"
2282 || test ! -s conftest.err'
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; } &&
2288 { ac_try='test -s conftest.$ac_objext'
2289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; }; then
2296 echo "$as_me: failed program was:" >&5
2297 sed 's/^/| /' conftest.$ac_ext >&5
2301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2303 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2304 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2305 if test "$ac_test_CFLAGS" = set; then
2306 CFLAGS=$ac_save_CFLAGS
2307 elif test $ac_cv_prog_cc_g = yes; then
2308 if test "$GCC" = yes; then
2314 if test "$GCC" = yes; then
2320 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2321 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2322 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 ac_cv_prog_cc_stdc=no
2327 cat >conftest.$ac_ext <<_ACEOF
2330 cat confdefs.h >>conftest.$ac_ext
2331 cat >>conftest.$ac_ext <<_ACEOF
2332 /* end confdefs.h. */
2335 #include <sys/types.h>
2336 #include <sys/stat.h>
2337 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2338 struct buf { int x; };
2339 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2340 static char *e (p, i)
2346 static char *f (char * (*g) (char **, int), char **p, ...)
2351 s = g (p, va_arg (v,int));
2356 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2357 function prototypes and stuff, but not '\xHH' hex character constants.
2358 These don't provoke an error unfortunately, instead are silently treated
2359 as 'x'. The following induces an error, until -std1 is added to get
2360 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2361 array size at least. It's necessary to write '\x00'==0 to get something
2362 that's true only with -std1. */
2363 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2365 int test (int i, double x);
2366 struct s1 {int (*f) (int a);};
2367 struct s2 {int (*f) (double a);};
2368 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2374 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2379 # Don't try gcc -ansi; that turns off useful extensions and
2380 # breaks some systems' header files.
2381 # AIX -qlanglvl=ansi
2382 # Ultrix and OSF/1 -std1
2383 # HP-UX 10.20 and later -Ae
2384 # HP-UX older versions -Aa -D_HPUX_SOURCE
2385 # SVR4 -Xc -D__EXTENSIONS__
2386 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2388 CC="$ac_save_CC $ac_arg"
2389 rm -f conftest.$ac_objext
2390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391 (eval $ac_compile) 2>conftest.er1
2393 grep -v '^ *+' conftest.er1 >conftest.err
2395 cat conftest.err >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
2398 { ac_try='test -z "$ac_c_werror_flag"
2399 || test ! -s conftest.err'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try='test -s conftest.$ac_objext'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2411 ac_cv_prog_cc_stdc=$ac_arg
2414 echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2418 rm -f conftest.err conftest.$ac_objext
2420 rm -f conftest.$ac_ext conftest.$ac_objext
2425 case "x$ac_cv_prog_cc_stdc" in
2427 echo "$as_me:$LINENO: result: none needed" >&5
2428 echo "${ECHO_T}none needed" >&6 ;;
2430 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2431 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2432 CC="$CC $ac_cv_prog_cc_stdc" ;;
2435 # Some people use a C++ compiler to compile C. Since we use `exit',
2436 # in C++ we need to declare it. In case someone uses the same compiler
2437 # for both compiling C and C++ we need to have the C++ compiler decide
2438 # the declaration of exit, since it's the most demanding environment.
2439 cat >conftest.$ac_ext <<_ACEOF
2444 rm -f conftest.$ac_objext
2445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2446 (eval $ac_compile) 2>conftest.er1
2448 grep -v '^ *+' conftest.er1 >conftest.err
2450 cat conftest.err >&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); } &&
2453 { ac_try='test -z "$ac_c_werror_flag"
2454 || test ! -s conftest.err'
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; } &&
2460 { ac_try='test -s conftest.$ac_objext'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; }; then
2466 for ac_declaration in \
2468 'extern "C" void std::exit (int) throw (); using std::exit;' \
2469 'extern "C" void std::exit (int); using std::exit;' \
2470 'extern "C" void exit (int) throw ();' \
2471 'extern "C" void exit (int);' \
2474 cat >conftest.$ac_ext <<_ACEOF
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h. */
2490 rm -f conftest.$ac_objext
2491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2492 (eval $ac_compile) 2>conftest.er1
2494 grep -v '^ *+' conftest.er1 >conftest.err
2496 cat conftest.err >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); } &&
2499 { ac_try='test -z "$ac_c_werror_flag"
2500 || test ! -s conftest.err'
2501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; } &&
2506 { ac_try='test -s conftest.$ac_objext'
2507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; }; then
2514 echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2520 cat >conftest.$ac_ext <<_ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2535 rm -f conftest.$ac_objext
2536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2537 (eval $ac_compile) 2>conftest.er1
2539 grep -v '^ *+' conftest.er1 >conftest.err
2541 cat conftest.err >&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); } &&
2544 { ac_try='test -z "$ac_c_werror_flag"
2545 || test ! -s conftest.err'
2546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }; } &&
2551 { ac_try='test -s conftest.$ac_objext'
2552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; }; then
2559 echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2566 if test -n "$ac_declaration"; then
2567 echo '#ifdef __cplusplus' >>confdefs.h
2568 echo $ac_declaration >>confdefs.h
2569 echo '#endif' >>confdefs.h
2573 echo "$as_me: failed program was:" >&5
2574 sed 's/^/| /' conftest.$ac_ext >&5
2577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2579 ac_cpp='$CPP $CPPFLAGS'
2580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2585 if test -z "$GCC"; then
2587 echo "$as_me:$LINENO: checking how to request ANSI compilation" >&5
2588 echo $ECHO_N "checking how to request ANSI compilation... $ECHO_C" >&6
2591 echo "$as_me:$LINENO: result: HPUX: adding -Ae" >&5
2592 echo "${ECHO_T}HPUX: adding -Ae" >&6
2596 echo "$as_me:$LINENO: result: AIX: adding -qlanglvl=ansi -qhalt=e" >&5
2597 echo "${ECHO_T}AIX: adding -qlanglvl=ansi -qhalt=e" >&6
2598 CC="$CC -qlanglvl=ansi -qhalt=e"
2601 echo "$as_me:$LINENO: result: DEC: adding -std1 -ieee" >&5
2602 echo "${ECHO_T}DEC: adding -std1 -ieee" >&6
2606 echo "$as_me:$LINENO: result: no idea" >&5
2607 echo "${ECHO_T}no idea" >&6
2614 echo "$as_me:$LINENO: result: Solaris: adding -D__EXTENSIONS__" >&5
2615 echo "${ECHO_T}Solaris: adding -D__EXTENSIONS__" >&6
2616 CC="$CC -D__EXTENSIONS__"
2623 echo "$as_me:$LINENO: checking whether the compiler works on ANSI C" >&5
2624 echo $ECHO_N "checking whether the compiler works on ANSI C... $ECHO_C" >&6
2625 if test "$cross_compiling" = yes; then
2626 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
2627 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
2628 { (exit 1); exit 1; }; }
2630 cat >conftest.$ac_ext <<_ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h. */
2636 main(int ac, char **av) { return 0; }
2638 rm -f conftest$ac_exeext
2639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2640 (eval $ac_link) 2>&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2649 echo "$as_me:$LINENO: result: yes" >&5
2650 echo "${ECHO_T}yes" >&6
2652 echo "$as_me: program exited with status $ac_status" >&5
2653 echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2657 echo "$as_me:$LINENO: result: no" >&5
2658 echo "${ECHO_T}no" >&6
2659 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
2660 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
2661 { (exit 1); exit 1; }; }
2663 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2666 if test -n "$GCC"; then
2667 echo "$as_me:$LINENO: result: Turning on gcc compiler warnings." >&5
2668 echo "${ECHO_T}Turning on gcc compiler warnings." >&6
2669 CC="$CC -pedantic -Wall -Wstrict-prototypes -Wnested-externs"
2670 OBJCC="$OBJCC -Wall"
2671 # supposedly gcc 3.4 will have "-Wdeclaration-after-statement"
2672 # and then perhaps we can do without -pedantic?
2675 *-irix5* |*-irix6.0-3* )
2676 echo "$as_me:$LINENO: result: Turning on SGI compiler warnings." >&5
2677 echo "${ECHO_T}Turning on SGI compiler warnings." >&6
2678 CC="$CC -fullwarn -use_readonly_const -rdata_shared -g3"
2681 # if test -z "$GCC"; then
2682 # AC_MSG_RESULT(Turning on DEC C compiler warnings.)
2683 # CC="$CC -migrate -w0 -verbose -warnprotos"
2689 if test -n "$GCC"; then
2690 if test -n "$GCC"; then
2691 echo "$as_me:$LINENO: checking whether gcc accepts -std" >&5
2692 echo $ECHO_N "checking whether gcc accepts -std... $ECHO_C" >&6
2693 if test "${ac_cv_gcc_accepts_std+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2696 if ( ( gcc -E -std=c89 - </dev/null >/dev/null ) 2>&1 | \
2697 grep unrecognized >/dev/null ); then
2698 ac_cv_gcc_accepts_std=no
2700 ac_cv_gcc_accepts_std=yes
2703 echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_std" >&5
2704 echo "${ECHO_T}$ac_cv_gcc_accepts_std" >&6
2705 ac_gcc_accepts_std="$ac_cv_gcc_accepts_std"
2708 echo "$as_me:$LINENO: result: Disabling C++ comments in ANSI C code." >&5
2709 echo "${ECHO_T}Disabling C++ comments in ANSI C code." >&6
2711 # The reason that // comments are banned from xscreensaver is that gcc is
2712 # basically the only compiler in the world that supports them in C code.
2713 # All other vendors support them only in their C++ compilers, not in their
2714 # ANSI C compilers. This means that it's a portability problem: every time
2715 # these comments have snuck into the xscreensaver source code, I've gotten
2716 # complaints about it the next day. So we turn off support for them in gcc
2717 # as well to prevent them from accidentially slipping in.
2719 if test "$ac_gcc_accepts_std" = yes ; then
2721 # -std=c89 defines __STRICT_ANSI__, which we don't want.
2722 # (That appears to be the only additional preprocessor symbol
2723 # it defines, in addition to the syntax changes it makes.)
2725 # -std=gnu89 is no good, because // comments were a GNU extension
2726 # before they were in the ANSI C 99 spec... (gcc 2.96 permits //
2727 # with -std=gnu89 but not with -std=c89.)
2729 CC="$CC -std=c89 -U__STRICT_ANSI__"
2732 CC="$CC -Wp,-lang-c89"
2736 if test -n "$GCC"; then
2737 if test -n "$GCC"; then
2738 echo "$as_me:$LINENO: checking whether gcc accepts -no-cpp-precomp" >&5
2739 echo $ECHO_N "checking whether gcc accepts -no-cpp-precomp... $ECHO_C" >&6
2740 if test "${ac_cv_gcc_accepts_no_cpp_precomp+set}" = set; then
2741 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 if ( ( gcc -E -no-cpp-precomp - </dev/null >/dev/null ) 2>&1 | \
2744 grep unrecognized >/dev/null ); then
2745 ac_cv_gcc_accepts_no_cpp_precomp=no
2747 ac_cv_gcc_accepts_no_cpp_precomp=yes
2750 echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_no_cpp_precomp" >&5
2751 echo "${ECHO_T}$ac_cv_gcc_accepts_no_cpp_precomp" >&6
2752 ac_gcc_accepts_no_cpp_precomp="$ac_cv_gcc_accepts_no_cpp_precomp"
2755 if test "$ac_gcc_accepts_no_cpp_precomp" = yes ; then
2756 echo "$as_me:$LINENO: result: Disabling Objective C extensions in ANSI C code." >&5
2757 echo "${ECHO_T}Disabling Objective C extensions in ANSI C code." >&6
2758 CC="$CC -no-cpp-precomp"
2763 ac_cpp='$CPP $CPPFLAGS'
2764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2767 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2768 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2769 # On Suns, sometimes $CPP names a directory.
2770 if test -n "$CPP" && test -d "$CPP"; then
2773 if test -z "$CPP"; then
2774 if test "${ac_cv_prog_CPP+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 # Double quotes because CPP needs to be expanded
2778 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2781 for ac_c_preproc_warn_flag in '' yes
2783 # Use a header file that comes with gcc, so configuring glibc
2784 # with a fresh cross-compiler works.
2785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2786 # <limits.h> exists even on freestanding compilers.
2787 # On the NeXT, cc -E runs the code through the compiler's parser,
2788 # not just through cpp. "Syntax error" is here to catch this case.
2789 cat >conftest.$ac_ext <<_ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2796 # include <limits.h>
2798 # include <assert.h>
2802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2805 grep -v '^ *+' conftest.er1 >conftest.err
2807 cat conftest.err >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); } >/dev/null; then
2810 if test -s conftest.err; then
2811 ac_cpp_err=$ac_c_preproc_warn_flag
2812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2819 if test -z "$ac_cpp_err"; then
2822 echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2825 # Broken: fails on valid input.
2828 rm -f conftest.err conftest.$ac_ext
2830 # OK, works on sane cases. Now check whether non-existent headers
2831 # can be detected and how.
2832 cat >conftest.$ac_ext <<_ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h. */
2838 #include <ac_nonexistent.h>
2840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2843 grep -v '^ *+' conftest.er1 >conftest.err
2845 cat conftest.err >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); } >/dev/null; then
2848 if test -s conftest.err; then
2849 ac_cpp_err=$ac_c_preproc_warn_flag
2850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2857 if test -z "$ac_cpp_err"; then
2858 # Broken: success on invalid input.
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2864 # Passes both tests.
2868 rm -f conftest.err conftest.$ac_ext
2871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2872 rm -f conftest.err conftest.$ac_ext
2873 if $ac_preproc_ok; then
2885 echo "$as_me:$LINENO: result: $CPP" >&5
2886 echo "${ECHO_T}$CPP" >&6
2888 for ac_c_preproc_warn_flag in '' yes
2890 # Use a header file that comes with gcc, so configuring glibc
2891 # with a fresh cross-compiler works.
2892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2893 # <limits.h> exists even on freestanding compilers.
2894 # On the NeXT, cc -E runs the code through the compiler's parser,
2895 # not just through cpp. "Syntax error" is here to catch this case.
2896 cat >conftest.$ac_ext <<_ACEOF
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h. */
2903 # include <limits.h>
2905 # include <assert.h>
2909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2912 grep -v '^ *+' conftest.er1 >conftest.err
2914 cat conftest.err >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); } >/dev/null; then
2917 if test -s conftest.err; then
2918 ac_cpp_err=$ac_c_preproc_warn_flag
2919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2926 if test -z "$ac_cpp_err"; then
2929 echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2932 # Broken: fails on valid input.
2935 rm -f conftest.err conftest.$ac_ext
2937 # OK, works on sane cases. Now check whether non-existent headers
2938 # can be detected and how.
2939 cat >conftest.$ac_ext <<_ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2945 #include <ac_nonexistent.h>
2947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2950 grep -v '^ *+' conftest.er1 >conftest.err
2952 cat conftest.err >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } >/dev/null; then
2955 if test -s conftest.err; then
2956 ac_cpp_err=$ac_c_preproc_warn_flag
2957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2964 if test -z "$ac_cpp_err"; then
2965 # Broken: success on invalid input.
2968 echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2971 # Passes both tests.
2975 rm -f conftest.err conftest.$ac_ext
2978 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2979 rm -f conftest.err conftest.$ac_ext
2980 if $ac_preproc_ok; then
2983 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2984 See \`config.log' for more details." >&5
2985 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2986 See \`config.log' for more details." >&2;}
2987 { (exit 1); exit 1; }; }
2991 ac_cpp='$CPP $CPPFLAGS'
2992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2996 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2997 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2998 if test "${ac_cv_c_const+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 cat >conftest.$ac_ext <<_ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3011 /* FIXME: Include the comments suggested by Paul. */
3013 /* Ultrix mips cc rejects this. */
3014 typedef int charset[2];
3016 /* SunOS 4.1.1 cc rejects this. */
3017 char const *const *ccp;
3019 /* NEC SVR4.0.2 mips cc rejects this. */
3020 struct point {int x, y;};
3021 static struct point const zero = {0,0};
3022 /* AIX XL C 1.02.0.0 rejects this.
3023 It does not let you subtract one const X* pointer from another in
3024 an arm of an if-expression whose if-part is not a constant
3026 const char *g = "string";
3027 ccp = &g + (g ? g-g : 0);
3028 /* HPUX 7.0 cc rejects these. */
3031 ccp = (char const *const *) p;
3032 { /* SCO 3.2v4 cc rejects this. */
3034 char const *s = 0 ? (char *) 0 : (char const *) 0;
3038 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3040 const int *foo = &x[0];
3043 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3044 typedef const int *iptr;
3048 { /* AIX XL C 1.02.0.0 rejects this saying
3049 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3050 struct s { int j; const int *ap[3]; };
3051 struct s *b; b->j = 5;
3053 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3062 rm -f conftest.$ac_objext
3063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3064 (eval $ac_compile) 2>conftest.er1
3066 grep -v '^ *+' conftest.er1 >conftest.err
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try='test -z "$ac_c_werror_flag"
3072 || test ! -s conftest.err'
3073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; } &&
3078 { ac_try='test -s conftest.$ac_objext'
3079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; }; then
3086 echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3093 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3094 echo "${ECHO_T}$ac_cv_c_const" >&6
3095 if test $ac_cv_c_const = no; then
3097 cat >>confdefs.h <<\_ACEOF
3103 echo "$as_me:$LINENO: checking for inline" >&5
3104 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3105 if test "${ac_cv_c_inline+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 for ac_kw in inline __inline__ __inline; do
3110 cat >conftest.$ac_ext <<_ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3118 static $ac_kw foo_t static_foo () {return 0; }
3119 $ac_kw foo_t foo () {return 0; }
3123 rm -f conftest.$ac_objext
3124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3125 (eval $ac_compile) 2>conftest.er1
3127 grep -v '^ *+' conftest.er1 >conftest.err
3129 cat conftest.err >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } &&
3132 { ac_try='test -z "$ac_c_werror_flag"
3133 || test ! -s conftest.err'
3134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; } &&
3139 { ac_try='test -s conftest.$ac_objext'
3140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; }; then
3145 ac_cv_c_inline=$ac_kw; break
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3155 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3156 echo "${ECHO_T}$ac_cv_c_inline" >&6
3159 case $ac_cv_c_inline in
3162 case $ac_cv_c_inline in
3164 *) ac_val=$ac_cv_c_inline;;
3166 cat >>confdefs.h <<_ACEOF
3168 #define inline $ac_val
3175 ac_bc_result=`echo 6+9 | bc 2>/dev/null`
3176 echo "$as_me:$LINENO: checking for bc" >&5
3177 echo $ECHO_N "checking for bc... $ECHO_C" >&6
3178 if test "$ac_bc_result" = "15" ; then
3179 echo "$as_me:$LINENO: result: yes" >&5
3180 echo "${ECHO_T}yes" >&6
3182 echo "$as_me:$LINENO: result: no" >&5
3183 echo "${ECHO_T}no" >&6
3185 { { echo "$as_me:$LINENO: error: Your system doesn't have \"bc\", which has been a standard
3186 part of Unix since the 1970s. Come back when your vendor
3187 has grown a clue." >&5
3188 echo "$as_me: error: Your system doesn't have \"bc\", which has been a standard
3189 part of Unix since the 1970s. Come back when your vendor
3190 has grown a clue." >&2;}
3191 { (exit 1); exit 1; }; }
3195 # stuff for Makefiles
3196 # Find a good install program. We prefer a C program (faster),
3197 # so one script is as good as another. But avoid the broken or
3198 # incompatible versions:
3199 # SysV /etc/install, /usr/sbin/install
3200 # SunOS /usr/etc/install
3201 # IRIX /sbin/install
3203 # AmigaOS /C/install, which installs bootblocks on floppy discs
3204 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3205 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3206 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3207 # OS/2's system install, which has a completely different semantic
3208 # ./install, which can be erroneously created by make from ./install.sh.
3209 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3210 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3211 if test -z "$INSTALL"; then
3212 if test "${ac_cv_path_install+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 test -z "$as_dir" && as_dir=.
3220 # Account for people who put trailing slashes in PATH elements.
3222 ./ | .// | /cC/* | \
3223 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3224 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3227 # OSF1 and SCO ODT 3.0 have their own names for install.
3228 # Don't use installbsd from OSF since it installs stuff as root
3230 for ac_prog in ginstall scoinst install; do
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3233 if test $ac_prog = install &&
3234 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3235 # AIX install. It has an incompatible calling convention.
3237 elif test $ac_prog = install &&
3238 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3239 # program-specific install script used by HP pwplus--don't use.
3242 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3254 if test "${ac_cv_path_install+set}" = set; then
3255 INSTALL=$ac_cv_path_install
3257 # As a last resort, use the slow shell script. We don't cache a
3258 # path for INSTALL within a source directory, because that will
3259 # break other packages using the cache if that directory is
3260 # removed, or if the path is relative.
3261 INSTALL=$ac_install_sh
3264 echo "$as_me:$LINENO: result: $INSTALL" >&5
3265 echo "${ECHO_T}$INSTALL" >&6
3267 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3268 # It thinks the first close brace ends the variable substitution.
3269 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3271 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3273 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3275 echo "$as_me:$LINENO: checking whether \"\${INSTALL} -d\" creates intermediate directories" >&5
3276 echo $ECHO_N "checking whether \"\${INSTALL} -d\" creates intermediate directories... $ECHO_C" >&6
3277 if test "${ac_cv_install_d_creates_dirs+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 ac_cv_install_d_creates_dirs=no
3282 if mkdir conftestdir; then
3283 cd conftestdir 2>/dev/null
3284 ${INSTALL} -d `pwd`/dir1/dir2 >/dev/null 2>&1
3285 if test -d dir1/dir2/. ; then
3286 ac_cv_install_d_creates_dirs=yes
3293 echo "$as_me:$LINENO: result: $ac_cv_install_d_creates_dirs" >&5
3294 echo "${ECHO_T}$ac_cv_install_d_creates_dirs" >&6
3296 if test "$ac_cv_install_d_creates_dirs" = no ; then
3297 echo "$as_me:$LINENO: checking whether \"mkdir -p\" creates intermediate directories" >&5
3298 echo $ECHO_N "checking whether \"mkdir -p\" creates intermediate directories... $ECHO_C" >&6
3299 if test "${ac_cv_mkdir_p_creates_dirs+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 ac_cv_mkdir_p_creates_dirs=no
3304 if mkdir conftestdir; then
3305 cd conftestdir 2>/dev/null
3306 mkdir -p dir1/dir2 >/dev/null 2>&1
3307 if test -d dir1/dir2/. ; then
3308 ac_cv_mkdir_p_creates_dirs=yes
3315 echo "$as_me:$LINENO: result: $ac_cv_mkdir_p_creates_dirs" >&5
3316 echo "${ECHO_T}$ac_cv_mkdir_p_creates_dirs" >&6
3319 if test "$ac_cv_install_d_creates_dirs" = yes ; then
3320 INSTALL_DIRS='${INSTALL} -d'
3321 elif test "$ac_cv_mkdir_p_creates_dirs" = yes ; then
3322 INSTALL_DIRS='mkdir -p'
3325 INSTALL_DIRS='${INSTALL} -d'
3328 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3329 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3330 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3331 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3332 echo $ECHO_N "(cached) $ECHO_C" >&6
3334 cat >conftest.make <<\_ACEOF
3336 @echo 'ac_maketemp="$(MAKE)"'
3338 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3339 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3340 if test -n "$ac_maketemp"; then
3341 eval ac_cv_prog_make_${ac_make}_set=yes
3343 eval ac_cv_prog_make_${ac_make}_set=no
3347 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3348 echo "$as_me:$LINENO: result: yes" >&5
3349 echo "${ECHO_T}yes" >&6
3352 echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6
3354 SET_MAKE="MAKE=${MAKE-make}"
3358 # By default, autoconf sets INSTALL_SCRIPT to '${INSTALL_PROGRAM}'.
3359 # That's wrong: it should be set to '${INSTALL}', so that one can
3360 # implement the "install-strip" target properly (strip executables,
3361 # but do not try to strip scripts.)
3363 INSTALL_SCRIPT='${INSTALL}'
3367 echo "$as_me:$LINENO: checking for egrep" >&5
3368 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3369 if test "${ac_cv_prog_egrep+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3373 then ac_cv_prog_egrep='grep -E'
3374 else ac_cv_prog_egrep='egrep'
3377 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3378 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3379 EGREP=$ac_cv_prog_egrep
3382 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3383 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3384 if test "${ac_cv_header_stdc+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 cat >conftest.$ac_ext <<_ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3406 rm -f conftest.$ac_objext
3407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3408 (eval $ac_compile) 2>conftest.er1
3410 grep -v '^ *+' conftest.er1 >conftest.err
3412 cat conftest.err >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } &&
3415 { ac_try='test -z "$ac_c_werror_flag"
3416 || test ! -s conftest.err'
3417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; } &&
3422 { ac_try='test -s conftest.$ac_objext'
3423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }; }; then
3428 ac_cv_header_stdc=yes
3430 echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3433 ac_cv_header_stdc=no
3435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3437 if test $ac_cv_header_stdc = yes; then
3438 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3439 cat >conftest.$ac_ext <<_ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h. */
3448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3449 $EGREP "memchr" >/dev/null 2>&1; then
3452 ac_cv_header_stdc=no
3458 if test $ac_cv_header_stdc = yes; then
3459 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3460 cat >conftest.$ac_ext <<_ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3470 $EGREP "free" >/dev/null 2>&1; then
3473 ac_cv_header_stdc=no
3479 if test $ac_cv_header_stdc = yes; then
3480 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3481 if test "$cross_compiling" = yes; then
3484 cat >conftest.$ac_ext <<_ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3491 #if ((' ' & 0x0FF) == 0x020)
3492 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3493 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3495 # define ISLOWER(c) \
3496 (('a' <= (c) && (c) <= 'i') \
3497 || ('j' <= (c) && (c) <= 'r') \
3498 || ('s' <= (c) && (c) <= 'z'))
3499 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3502 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3507 for (i = 0; i < 256; i++)
3508 if (XOR (islower (i), ISLOWER (i))
3509 || toupper (i) != TOUPPER (i))
3514 rm -f conftest$ac_exeext
3515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3516 (eval $ac_link) 2>&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; }; then
3527 echo "$as_me: program exited with status $ac_status" >&5
3528 echo "$as_me: failed program was:" >&5
3529 sed 's/^/| /' conftest.$ac_ext >&5
3532 ac_cv_header_stdc=no
3534 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3538 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3539 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3540 if test $ac_cv_header_stdc = yes; then
3542 cat >>confdefs.h <<\_ACEOF
3543 #define STDC_HEADERS 1
3548 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3558 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3559 inttypes.h stdint.h unistd.h
3561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3562 echo "$as_me:$LINENO: checking for $ac_header" >&5
3563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 cat >conftest.$ac_ext <<_ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h. */
3573 $ac_includes_default
3575 #include <$ac_header>
3577 rm -f conftest.$ac_objext
3578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3579 (eval $ac_compile) 2>conftest.er1
3581 grep -v '^ *+' conftest.er1 >conftest.err
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } &&
3586 { ac_try='test -z "$ac_c_werror_flag"
3587 || test ! -s conftest.err'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; } &&
3593 { ac_try='test -s conftest.$ac_objext'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3599 eval "$as_ac_Header=yes"
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3604 eval "$as_ac_Header=no"
3606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3611 cat >>confdefs.h <<_ACEOF
3612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3621 for ac_header in unistd.h
3623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3625 echo "$as_me:$LINENO: checking for $ac_header" >&5
3626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3633 # Is the header compilable?
3634 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3636 cat >conftest.$ac_ext <<_ACEOF
3639 cat confdefs.h >>conftest.$ac_ext
3640 cat >>conftest.$ac_ext <<_ACEOF
3641 /* end confdefs.h. */
3642 $ac_includes_default
3643 #include <$ac_header>
3645 rm -f conftest.$ac_objext
3646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3647 (eval $ac_compile) 2>conftest.er1
3649 grep -v '^ *+' conftest.er1 >conftest.err
3651 cat conftest.err >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } &&
3654 { ac_try='test -z "$ac_c_werror_flag"
3655 || test ! -s conftest.err'
3656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; } &&
3661 { ac_try='test -s conftest.$ac_objext'
3662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; }; then
3667 ac_header_compiler=yes
3669 echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3672 ac_header_compiler=no
3674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3675 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3676 echo "${ECHO_T}$ac_header_compiler" >&6
3678 # Is the header present?
3679 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3681 cat >conftest.$ac_ext <<_ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h. */
3687 #include <$ac_header>
3689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3692 grep -v '^ *+' conftest.er1 >conftest.err
3694 cat conftest.err >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } >/dev/null; then
3697 if test -s conftest.err; then
3698 ac_cpp_err=$ac_c_preproc_warn_flag
3699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3706 if test -z "$ac_cpp_err"; then
3707 ac_header_preproc=yes
3709 echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3712 ac_header_preproc=no
3714 rm -f conftest.err conftest.$ac_ext
3715 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3716 echo "${ECHO_T}$ac_header_preproc" >&6
3718 # So? What about this header?
3719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3721 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3725 ac_header_preproc=yes
3728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3731 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3732 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3733 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3734 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3735 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3738 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3739 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3742 ## ------------------------------------------ ##
3743 ## Report this to the AC_PACKAGE_NAME lists. ##
3744 ## ------------------------------------------ ##
3747 sed "s/^/$as_me: WARNING: /" >&2
3750 echo "$as_me:$LINENO: checking for $ac_header" >&5
3751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 eval "$as_ac_Header=\$ac_header_preproc"
3757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3762 cat >>confdefs.h <<_ACEOF
3763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3770 echo "$as_me:$LINENO: checking for mode_t" >&5
3771 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
3772 if test "${ac_cv_type_mode_t+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 cat >conftest.$ac_ext <<_ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3781 $ac_includes_default
3787 if (sizeof (mode_t))
3793 rm -f conftest.$ac_objext
3794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3795 (eval $ac_compile) 2>conftest.er1
3797 grep -v '^ *+' conftest.er1 >conftest.err
3799 cat conftest.err >&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); } &&
3802 { ac_try='test -z "$ac_c_werror_flag"
3803 || test ! -s conftest.err'
3804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); }; } &&
3809 { ac_try='test -s conftest.$ac_objext'
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; }; then
3815 ac_cv_type_mode_t=yes
3817 echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3820 ac_cv_type_mode_t=no
3822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3824 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
3825 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
3826 if test $ac_cv_type_mode_t = yes; then
3830 cat >>confdefs.h <<_ACEOF
3836 echo "$as_me:$LINENO: checking for pid_t" >&5
3837 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3838 if test "${ac_cv_type_pid_t+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 cat >conftest.$ac_ext <<_ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3847 $ac_includes_default
3859 rm -f conftest.$ac_objext
3860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861 (eval $ac_compile) 2>conftest.er1
3863 grep -v '^ *+' conftest.er1 >conftest.err
3865 cat conftest.err >&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } &&
3868 { ac_try='test -z "$ac_c_werror_flag"
3869 || test ! -s conftest.err'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; } &&
3875 { ac_try='test -s conftest.$ac_objext'
3876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then
3881 ac_cv_type_pid_t=yes
3883 echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3890 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3891 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3892 if test $ac_cv_type_pid_t = yes; then
3896 cat >>confdefs.h <<_ACEOF
3902 echo "$as_me:$LINENO: checking for size_t" >&5
3903 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3904 if test "${ac_cv_type_size_t+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 cat >conftest.$ac_ext <<_ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3913 $ac_includes_default
3919 if (sizeof (size_t))
3925 rm -f conftest.$ac_objext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3927 (eval $ac_compile) 2>conftest.er1
3929 grep -v '^ *+' conftest.er1 >conftest.err
3931 cat conftest.err >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } &&
3934 { ac_try='test -z "$ac_c_werror_flag"
3935 || test ! -s conftest.err'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; } &&
3941 { ac_try='test -s conftest.$ac_objext'
3942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; }; then
3947 ac_cv_type_size_t=yes
3949 echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3952 ac_cv_type_size_t=no
3954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3956 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3957 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3958 if test $ac_cv_type_size_t = yes; then
3962 cat >>confdefs.h <<_ACEOF
3963 #define size_t unsigned
3968 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3969 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3970 if test "${ac_cv_type_signal+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 cat >conftest.$ac_ext <<_ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3979 #include <sys/types.h>
3985 extern "C" void (*signal (int, void (*)(int)))(int);
3987 void (*signal ()) ();
3998 rm -f conftest.$ac_objext
3999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4000 (eval $ac_compile) 2>conftest.er1
4002 grep -v '^ *+' conftest.er1 >conftest.err
4004 cat conftest.err >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } &&
4007 { ac_try='test -z "$ac_c_werror_flag"
4008 || test ! -s conftest.err'
4009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; } &&
4014 { ac_try='test -s conftest.$ac_objext'
4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; }; then
4020 ac_cv_type_signal=void
4022 echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4025 ac_cv_type_signal=int
4027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4029 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4030 echo "${ECHO_T}$ac_cv_type_signal" >&6
4032 cat >>confdefs.h <<_ACEOF
4033 #define RETSIGTYPE $ac_cv_type_signal
4037 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4038 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4039 if test "${ac_cv_header_time+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 cat >conftest.$ac_ext <<_ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4048 #include <sys/types.h>
4049 #include <sys/time.h>
4055 if ((struct tm *) 0)
4061 rm -f conftest.$ac_objext
4062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4063 (eval $ac_compile) 2>conftest.er1
4065 grep -v '^ *+' conftest.er1 >conftest.err
4067 cat conftest.err >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } &&
4070 { ac_try='test -z "$ac_c_werror_flag"
4071 || test ! -s conftest.err'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; } &&
4077 { ac_try='test -s conftest.$ac_objext'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4083 ac_cv_header_time=yes
4085 echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4088 ac_cv_header_time=no
4090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4092 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4093 echo "${ECHO_T}$ac_cv_header_time" >&6
4094 if test $ac_cv_header_time = yes; then
4096 cat >>confdefs.h <<\_ACEOF
4097 #define TIME_WITH_SYS_TIME 1
4102 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4103 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4104 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4107 cat >conftest.$ac_ext <<_ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h. */
4113 #include <sys/types.h>
4114 #include <sys/wait.h>
4116 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4119 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4127 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4132 rm -f conftest.$ac_objext
4133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4134 (eval $ac_compile) 2>conftest.er1
4136 grep -v '^ *+' conftest.er1 >conftest.err
4138 cat conftest.err >&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); } &&
4141 { ac_try='test -z "$ac_c_werror_flag"
4142 || test ! -s conftest.err'
4143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; } &&
4148 { ac_try='test -s conftest.$ac_objext'
4149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; }; then
4154 ac_cv_header_sys_wait_h=yes
4156 echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4159 ac_cv_header_sys_wait_h=no
4161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4163 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4164 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4165 if test $ac_cv_header_sys_wait_h = yes; then
4167 cat >>confdefs.h <<\_ACEOF
4168 #define HAVE_SYS_WAIT_H 1
4179 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4180 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4181 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4182 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 cat >conftest.$ac_ext <<_ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4192 #include <sys/types.h>
4204 rm -f conftest.$ac_objext
4205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4206 (eval $ac_compile) 2>conftest.er1
4208 grep -v '^ *+' conftest.er1 >conftest.err
4210 cat conftest.err >&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); } &&
4213 { ac_try='test -z "$ac_c_werror_flag"
4214 || test ! -s conftest.err'
4215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }; } &&
4220 { ac_try='test -s conftest.$ac_objext'
4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; }; then
4226 eval "$as_ac_Header=yes"
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4231 eval "$as_ac_Header=no"
4233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4238 cat >>confdefs.h <<_ACEOF
4239 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4242 ac_header_dirent=$ac_hdr; break
4246 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4247 if test $ac_header_dirent = dirent.h; then
4248 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4249 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4250 if test "${ac_cv_search_opendir+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 ac_func_search_save_LIBS=$LIBS
4254 ac_cv_search_opendir=no
4255 cat >conftest.$ac_ext <<_ACEOF
4258 cat confdefs.h >>conftest.$ac_ext
4259 cat >>conftest.$ac_ext <<_ACEOF
4260 /* end confdefs.h. */
4262 /* Override any gcc2 internal prototype to avoid an error. */
4266 /* We use char because int might match the return type of a gcc2
4267 builtin and then its argument prototype would still apply. */
4277 rm -f conftest.$ac_objext conftest$ac_exeext
4278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4279 (eval $ac_link) 2>conftest.er1
4281 grep -v '^ *+' conftest.er1 >conftest.err
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } &&
4286 { ac_try='test -z "$ac_c_werror_flag"
4287 || test ! -s conftest.err'
4288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; } &&
4293 { ac_try='test -s conftest$ac_exeext'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; }; then
4299 ac_cv_search_opendir="none required"
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4305 rm -f conftest.err conftest.$ac_objext \
4306 conftest$ac_exeext conftest.$ac_ext
4307 if test "$ac_cv_search_opendir" = no; then
4308 for ac_lib in dir; do
4309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4310 cat >conftest.$ac_ext <<_ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4317 /* Override any gcc2 internal prototype to avoid an error. */
4321 /* We use char because int might match the return type of a gcc2
4322 builtin and then its argument prototype would still apply. */
4332 rm -f conftest.$ac_objext conftest$ac_exeext
4333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4334 (eval $ac_link) 2>conftest.er1
4336 grep -v '^ *+' conftest.er1 >conftest.err
4338 cat conftest.err >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); } &&
4341 { ac_try='test -z "$ac_c_werror_flag"
4342 || test ! -s conftest.err'
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; } &&
4348 { ac_try='test -s conftest$ac_exeext'
4349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; }; then
4354 ac_cv_search_opendir="-l$ac_lib"
4357 echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4361 rm -f conftest.err conftest.$ac_objext \
4362 conftest$ac_exeext conftest.$ac_ext
4365 LIBS=$ac_func_search_save_LIBS
4367 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4368 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4369 if test "$ac_cv_search_opendir" != no; then
4370 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4375 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4376 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4377 if test "${ac_cv_search_opendir+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 ac_func_search_save_LIBS=$LIBS
4381 ac_cv_search_opendir=no
4382 cat >conftest.$ac_ext <<_ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4389 /* Override any gcc2 internal prototype to avoid an error. */
4393 /* We use char because int might match the return type of a gcc2
4394 builtin and then its argument prototype would still apply. */
4404 rm -f conftest.$ac_objext conftest$ac_exeext
4405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4406 (eval $ac_link) 2>conftest.er1
4408 grep -v '^ *+' conftest.er1 >conftest.err
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } &&
4413 { ac_try='test -z "$ac_c_werror_flag"
4414 || test ! -s conftest.err'
4415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; } &&
4420 { ac_try='test -s conftest$ac_exeext'
4421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; }; then
4426 ac_cv_search_opendir="none required"
4428 echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4432 rm -f conftest.err conftest.$ac_objext \
4433 conftest$ac_exeext conftest.$ac_ext
4434 if test "$ac_cv_search_opendir" = no; then
4436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4437 cat >conftest.$ac_ext <<_ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4444 /* Override any gcc2 internal prototype to avoid an error. */
4448 /* We use char because int might match the return type of a gcc2
4449 builtin and then its argument prototype would still apply. */
4459 rm -f conftest.$ac_objext conftest$ac_exeext
4460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4461 (eval $ac_link) 2>conftest.er1
4463 grep -v '^ *+' conftest.er1 >conftest.err
4465 cat conftest.err >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } &&
4468 { ac_try='test -z "$ac_c_werror_flag"
4469 || test ! -s conftest.err'
4470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; } &&
4475 { ac_try='test -s conftest$ac_exeext'
4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
4481 ac_cv_search_opendir="-l$ac_lib"
4484 echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4488 rm -f conftest.err conftest.$ac_objext \
4489 conftest$ac_exeext conftest.$ac_ext
4492 LIBS=$ac_func_search_save_LIBS
4494 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4495 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4496 if test "$ac_cv_search_opendir" != no; then
4497 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4503 echo "$as_me:$LINENO: checking how to call gettimeofday" >&5
4504 echo $ECHO_N "checking how to call gettimeofday... $ECHO_C" >&6
4505 if test "${ac_cv_gettimeofday_args+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 cat >conftest.$ac_ext <<_ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4515 #include <sys/time.h>
4519 struct timeval tv; struct timezone tzp;
4520 gettimeofday(&tv, &tzp);
4525 rm -f conftest.$ac_objext
4526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4527 (eval $ac_compile) 2>conftest.er1
4529 grep -v '^ *+' conftest.er1 >conftest.err
4531 cat conftest.err >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } &&
4534 { ac_try='test -z "$ac_c_werror_flag"
4535 || test ! -s conftest.err'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; } &&
4541 { ac_try='test -s conftest.$ac_objext'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; }; then
4547 ac_gettimeofday_args=2
4549 echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4552 cat >conftest.$ac_ext <<_ACEOF
4555 cat confdefs.h >>conftest.$ac_ext
4556 cat >>conftest.$ac_ext <<_ACEOF
4557 /* end confdefs.h. */
4559 #include <sys/time.h>
4563 struct timeval tv; gettimeofday(&tv);
4568 rm -f conftest.$ac_objext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570 (eval $ac_compile) 2>conftest.er1
4572 grep -v '^ *+' conftest.er1 >conftest.err
4574 cat conftest.err >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); } &&
4577 { ac_try='test -z "$ac_c_werror_flag"
4578 || test ! -s conftest.err'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; } &&
4584 { ac_try='test -s conftest.$ac_objext'
4585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }; }; then
4590 ac_gettimeofday_args=1
4592 echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4595 ac_gettimeofday_args=0
4597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4600 ac_cv_gettimeofday_args=$ac_gettimeofday_args
4603 ac_gettimeofday_args=$ac_cv_gettimeofday_args
4604 if test "$ac_gettimeofday_args" = 1 ; then
4605 cat >>confdefs.h <<\_ACEOF
4606 #define HAVE_GETTIMEOFDAY 1
4609 echo "$as_me:$LINENO: result: one argument" >&5
4610 echo "${ECHO_T}one argument" >&6
4611 elif test "$ac_gettimeofday_args" = 2 ; then
4612 cat >>confdefs.h <<\_ACEOF
4613 #define HAVE_GETTIMEOFDAY 1
4616 cat >>confdefs.h <<\_ACEOF
4617 #define GETTIMEOFDAY_TWO_ARGS 1
4620 echo "$as_me:$LINENO: result: two arguments" >&5
4621 echo "${ECHO_T}two arguments" >&6
4623 echo "$as_me:$LINENO: result: unknown" >&5
4624 echo "${ECHO_T}unknown" >&6
4636 for ac_func in select fcntl uname nice setpriority getcwd getwd putenv sbrk
4638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4639 echo "$as_me:$LINENO: checking for $ac_func" >&5
4640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4641 if eval "test \"\${$as_ac_var+set}\" = set"; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 cat >conftest.$ac_ext <<_ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4652 #define $ac_func innocuous_$ac_func
4654 /* System header to define __stub macros and hopefully few prototypes,
4655 which can conflict with char $ac_func (); below.
4656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4657 <limits.h> exists even on freestanding compilers. */
4660 # include <limits.h>
4662 # include <assert.h>
4667 /* Override any gcc2 internal prototype to avoid an error. */
4672 /* We use char because int might match the return type of a gcc2
4673 builtin and then its argument prototype would still apply. */
4675 /* The GNU C library defines this for functions which it implements
4676 to always fail with ENOSYS. Some functions are actually named
4677 something starting with __ and the normal name is an alias. */
4678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4681 char (*f) () = $ac_func;
4690 return f != $ac_func;
4695 rm -f conftest.$ac_objext conftest$ac_exeext
4696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4697 (eval $ac_link) 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_exeext'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; }; then
4717 eval "$as_ac_var=yes"
4719 echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4722 eval "$as_ac_var=no"
4724 rm -f conftest.err conftest.$ac_objext \
4725 conftest$ac_exeext conftest.$ac_ext
4727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4729 if test `eval echo '${'$as_ac_var'}'` = yes; then
4730 cat >>confdefs.h <<_ACEOF
4731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4741 for ac_func in sigaction syslog realpath setrlimit
4743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4744 echo "$as_me:$LINENO: checking for $ac_func" >&5
4745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4746 if eval "test \"\${$as_ac_var+set}\" = set"; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 cat >conftest.$ac_ext <<_ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4757 #define $ac_func innocuous_$ac_func
4759 /* System header to define __stub macros and hopefully few prototypes,
4760 which can conflict with char $ac_func (); below.
4761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4762 <limits.h> exists even on freestanding compilers. */
4765 # include <limits.h>
4767 # include <assert.h>
4772 /* Override any gcc2 internal prototype to avoid an error. */
4777 /* We use char because int might match the return type of a gcc2
4778 builtin and then its argument prototype would still apply. */
4780 /* The GNU C library defines this for functions which it implements
4781 to always fail with ENOSYS. Some functions are actually named
4782 something starting with __ and the normal name is an alias. */
4783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4786 char (*f) () = $ac_func;
4795 return f != $ac_func;
4800 rm -f conftest.$ac_objext conftest$ac_exeext
4801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4802 (eval $ac_link) 2>conftest.er1
4804 grep -v '^ *+' conftest.er1 >conftest.err
4806 cat conftest.err >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } &&
4809 { ac_try='test -z "$ac_c_werror_flag"
4810 || test ! -s conftest.err'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; } &&
4816 { ac_try='test -s conftest$ac_exeext'
4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4822 eval "$as_ac_var=yes"
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4827 eval "$as_ac_var=no"
4829 rm -f conftest.err conftest.$ac_objext \
4830 conftest$ac_exeext conftest.$ac_ext
4832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4833 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4834 if test `eval echo '${'$as_ac_var'}'` = yes; then
4835 cat >>confdefs.h <<_ACEOF
4836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4842 echo "$as_me:$LINENO: checking for struct icmp" >&5
4843 echo $ECHO_N "checking for struct icmp... $ECHO_C" >&6
4844 if test "${ac_cv_have_icmp+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 cat >conftest.$ac_ext <<_ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4860 #include <sys/types.h>
4861 #include <sys/time.h>
4862 #include <sys/ipc.h>
4863 #include <sys/shm.h>
4864 #include <sys/socket.h>
4865 #include <netinet/in_systm.h>
4866 #include <netinet/in.h>
4867 #include <netinet/ip.h>
4868 #include <netinet/ip_icmp.h>
4869 #include <netinet/udp.h>
4870 #include <arpa/inet.h>
4877 struct sockaddr_in si;
4879 i.icmp_type = ICMP_ECHO;
4884 si.sin_family = AF_INET;
4885 #if defined(__DECC) || defined(_IP_VHL)
4895 rm -f conftest.$ac_objext
4896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4897 (eval $ac_compile) 2>conftest.er1
4899 grep -v '^ *+' conftest.er1 >conftest.err
4901 cat conftest.err >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } &&
4904 { ac_try='test -z "$ac_c_werror_flag"
4905 || test ! -s conftest.err'
4906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; } &&
4911 { ac_try='test -s conftest.$ac_objext'
4912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; }; then
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4926 echo "$as_me:$LINENO: result: $ac_cv_have_icmp" >&5
4927 echo "${ECHO_T}$ac_cv_have_icmp" >&6
4928 if test "$ac_cv_have_icmp" = yes ; then
4929 cat >>confdefs.h <<\_ACEOF
4934 echo "$as_me:$LINENO: checking for struct icmphdr" >&5
4935 echo $ECHO_N "checking for struct icmphdr... $ECHO_C" >&6
4936 if test "${ac_cv_have_icmphdr+set}" = set; then
4937 echo $ECHO_N "(cached) $ECHO_C" >&6
4939 cat >conftest.$ac_ext <<_ACEOF
4942 cat confdefs.h >>conftest.$ac_ext
4943 cat >>conftest.$ac_ext <<_ACEOF
4944 /* end confdefs.h. */
4952 #include <sys/types.h>
4953 #include <sys/time.h>
4954 #include <sys/ipc.h>
4955 #include <sys/shm.h>
4956 #include <sys/socket.h>
4957 #include <netinet/in_systm.h>
4958 #include <netinet/in.h>
4959 #include <netinet/ip.h>
4960 #include <netinet/ip_icmp.h>
4961 #include <netinet/udp.h>
4962 #include <arpa/inet.h>
4969 struct sockaddr_in si;
4975 i.un.echo.sequence = 0;
4976 si.sin_family = AF_INET;
4982 rm -f conftest.$ac_objext
4983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984 (eval $ac_compile) 2>conftest.er1
4986 grep -v '^ *+' conftest.er1 >conftest.err
4988 cat conftest.err >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } &&
4991 { ac_try='test -z "$ac_c_werror_flag"
4992 || test ! -s conftest.err'
4993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; } &&
4998 { ac_try='test -s conftest.$ac_objext'
4999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; }; then
5004 ac_cv_have_icmphdr=yes
5006 echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5009 ac_cv_have_icmphdr=no
5011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5013 echo "$as_me:$LINENO: result: $ac_cv_have_icmphdr" >&5
5014 echo "${ECHO_T}$ac_cv_have_icmphdr" >&6
5015 if test "$ac_cv_have_icmphdr" = yes ; then
5016 cat >>confdefs.h <<\_ACEOF
5017 #define HAVE_ICMPHDR 1
5023 for ac_header in crypt.h sys/select.h
5025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5027 echo "$as_me:$LINENO: checking for $ac_header" >&5
5028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5035 # Is the header compilable?
5036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5038 cat >conftest.$ac_ext <<_ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5044 $ac_includes_default
5045 #include <$ac_header>
5047 rm -f conftest.$ac_objext
5048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5049 (eval $ac_compile) 2>conftest.er1
5051 grep -v '^ *+' conftest.er1 >conftest.err
5053 cat conftest.err >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } &&
5056 { ac_try='test -z "$ac_c_werror_flag"
5057 || test ! -s conftest.err'
5058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }; } &&
5063 { ac_try='test -s conftest.$ac_objext'
5064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }; }; then
5069 ac_header_compiler=yes
5071 echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5074 ac_header_compiler=no
5076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5077 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5078 echo "${ECHO_T}$ac_header_compiler" >&6
5080 # Is the header present?
5081 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5083 cat >conftest.$ac_ext <<_ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h. */
5089 #include <$ac_header>
5091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5094 grep -v '^ *+' conftest.er1 >conftest.err
5096 cat conftest.err >&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } >/dev/null; then
5099 if test -s conftest.err; then
5100 ac_cpp_err=$ac_c_preproc_warn_flag
5101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5108 if test -z "$ac_cpp_err"; then
5109 ac_header_preproc=yes
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5114 ac_header_preproc=no
5116 rm -f conftest.err conftest.$ac_ext
5117 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5118 echo "${ECHO_T}$ac_header_preproc" >&6
5120 # So? What about this header?
5121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5127 ac_header_preproc=yes
5130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5137 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5144 ## ------------------------------------------ ##
5145 ## Report this to the AC_PACKAGE_NAME lists. ##
5146 ## ------------------------------------------ ##
5149 sed "s/^/$as_me: WARNING: /" >&2
5152 echo "$as_me:$LINENO: checking for $ac_header" >&5
5153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 eval "$as_ac_Header=\$ac_header_preproc"
5159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5164 cat >>confdefs.h <<_ACEOF
5165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5172 for ac_prog in perl5 perl
5174 # Extract the first word of "$ac_prog", so it can be a program name with args.
5175 set dummy $ac_prog; ac_word=$2
5176 echo "$as_me:$LINENO: checking for $ac_word" >&5
5177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5178 if test "${ac_cv_path_PERL+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5193 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 PERL=$ac_cv_path_PERL
5205 if test -n "$PERL"; then
5206 echo "$as_me:$LINENO: result: $PERL" >&5
5207 echo "${ECHO_T}$PERL" >&6
5209 echo "$as_me:$LINENO: result: no" >&5
5210 echo "${ECHO_T}no" >&6
5213 test -n "$PERL" && break
5216 if test -z "$PERL" ; then
5219 echo "$as_me:$LINENO: checking perl version" >&5
5220 echo $ECHO_N "checking perl version... $ECHO_C" >&6
5221 if test "${ac_cv_perl_version+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 ac_cv_perl_version=`$PERL -e "$perl_version_cmd"`
5226 echo "$as_me:$LINENO: result: $ac_cv_perl_version" >&5
5227 echo "${ECHO_T}$ac_cv_perl_version" >&6
5228 PERL_VERSION=$ac_cv_perl_version
5232 if test -z "$PERL" ; then
5233 # don't let it be blank...
5237 echo "$as_me:$LINENO: checking for X" >&5
5238 echo $ECHO_N "checking for X... $ECHO_C" >&6
5241 # Check whether --with-x or --without-x was given.
5242 if test "${with_x+set}" = set; then
5246 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5247 if test "x$with_x" = xno; then
5248 # The user explicitly disabled X.
5251 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5252 # Both variables are already set.
5255 if test "${ac_cv_have_x+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 # One or both of the vars are not set, and there is no cached value.
5259 ac_x_includes=no ac_x_libraries=no
5261 if mkdir conftest.dir; then
5263 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5264 cat >Imakefile <<'_ACEOF'
5266 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5268 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5269 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5270 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5271 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5272 for ac_extension in a so sl; do
5273 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5274 test -f $ac_im_libdir/libX11.$ac_extension; then
5275 ac_im_usrlibdir=$ac_im_libdir; break
5278 # Screen out bogus values from the imake configuration. They are
5279 # bogus both because they are the default anyway, and because
5280 # using them would break gcc on systems where it needs fixed includes.
5281 case $ac_im_incroot in
5283 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5285 case $ac_im_usrlibdir in
5287 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5294 # Standard set of common directories for X headers.
5295 # Check X11 before X11Rn because it is often a symlink to the current release.
5307 /usr/local/X11/include
5308 /usr/local/X11R6/include
5309 /usr/local/X11R5/include
5310 /usr/local/X11R4/include
5312 /usr/local/include/X11
5313 /usr/local/include/X11R6
5314 /usr/local/include/X11R5
5315 /usr/local/include/X11R4
5319 /usr/XFree86/include/X11
5323 /usr/unsupported/include
5325 /usr/local/x11r5/include
5326 /usr/lpp/Xamples/include
5328 /usr/openwin/include
5329 /usr/openwin/share/include'
5331 if test "$ac_x_includes" = no; then
5332 # Guess where to find include files, by looking for Intrinsic.h.
5333 # First, try using that file with no special directory specified.
5334 cat >conftest.$ac_ext <<_ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h. */
5340 #include <X11/Intrinsic.h>
5342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5345 grep -v '^ *+' conftest.er1 >conftest.err
5347 cat conftest.err >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } >/dev/null; then
5350 if test -s conftest.err; then
5351 ac_cpp_err=$ac_c_preproc_warn_flag
5352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5359 if test -z "$ac_cpp_err"; then
5360 # We can compile using X headers with no special include directory.
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5366 for ac_dir in $ac_x_header_dirs; do
5367 if test -r "$ac_dir/X11/Intrinsic.h"; then
5368 ac_x_includes=$ac_dir
5373 rm -f conftest.err conftest.$ac_ext
5374 fi # $ac_x_includes = no
5376 if test "$ac_x_libraries" = no; then
5377 # Check for the libraries.
5378 # See if we find them without any special options.
5379 # Don't add to $LIBS permanently.
5382 cat >conftest.$ac_ext <<_ACEOF
5385 cat confdefs.h >>conftest.$ac_ext
5386 cat >>conftest.$ac_ext <<_ACEOF
5387 /* end confdefs.h. */
5388 #include <X11/Intrinsic.h>
5397 rm -f conftest.$ac_objext conftest$ac_exeext
5398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5399 (eval $ac_link) 2>conftest.er1
5401 grep -v '^ *+' conftest.er1 >conftest.err
5403 cat conftest.err >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } &&
5406 { ac_try='test -z "$ac_c_werror_flag"
5407 || test ! -s conftest.err'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; } &&
5413 { ac_try='test -s conftest$ac_exeext'
5414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }; }; then
5420 # We can link X programs with no special library path.
5423 echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5427 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5429 # Don't even attempt the hair of trying to link an X program!
5430 for ac_extension in a so sl; do
5431 if test -r $ac_dir/libXt.$ac_extension; then
5432 ac_x_libraries=$ac_dir
5438 rm -f conftest.err conftest.$ac_objext \
5439 conftest$ac_exeext conftest.$ac_ext
5440 fi # $ac_x_libraries = no
5442 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5443 # Didn't find X anywhere. Cache the known absence of X.
5444 ac_cv_have_x="have_x=no"
5446 # Record where we found X for the cache.
5447 ac_cv_have_x="have_x=yes \
5448 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5453 eval "$ac_cv_have_x"
5456 if test "$have_x" != yes; then
5457 echo "$as_me:$LINENO: result: $have_x" >&5
5458 echo "${ECHO_T}$have_x" >&6
5461 # If each of the values was on the command line, it overrides each guess.
5462 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5463 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5464 # Update the cache value to reflect the command line values.
5465 ac_cv_have_x="have_x=yes \
5466 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5467 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5468 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5471 if test "$no_x" = yes; then
5472 # Not all programs may use this symbol, but it does not hurt to define it.
5474 cat >>confdefs.h <<\_ACEOF
5475 #define X_DISPLAY_MISSING 1
5478 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5480 if test -n "$x_includes"; then
5481 X_CFLAGS="$X_CFLAGS -I$x_includes"
5484 # It would also be nice to do this for all -L options, not just this one.
5485 if test -n "$x_libraries"; then
5486 X_LIBS="$X_LIBS -L$x_libraries"
5487 # For Solaris; some versions of Sun CC require a space after -R and
5488 # others require no space. Words are not sufficient . . . .
5489 case `(uname -sr) 2>/dev/null` in
5491 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5492 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5493 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5494 cat >conftest.$ac_ext <<_ACEOF
5497 cat confdefs.h >>conftest.$ac_ext
5498 cat >>conftest.$ac_ext <<_ACEOF
5499 /* end confdefs.h. */
5509 rm -f conftest.$ac_objext conftest$ac_exeext
5510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5511 (eval $ac_link) 2>conftest.er1
5513 grep -v '^ *+' conftest.er1 >conftest.err
5515 cat conftest.err >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } &&
5518 { ac_try='test -z "$ac_c_werror_flag"
5519 || test ! -s conftest.err'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; } &&
5525 { ac_try='test -s conftest$ac_exeext'
5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; }; then
5533 echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5538 rm -f conftest.err conftest.$ac_objext \
5539 conftest$ac_exeext conftest.$ac_ext
5540 if test $ac_R_nospace = yes; then
5541 echo "$as_me:$LINENO: result: no" >&5
5542 echo "${ECHO_T}no" >&6
5543 X_LIBS="$X_LIBS -R$x_libraries"
5545 LIBS="$ac_xsave_LIBS -R $x_libraries"
5546 cat >conftest.$ac_ext <<_ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5561 rm -f conftest.$ac_objext conftest$ac_exeext
5562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5563 (eval $ac_link) 2>conftest.er1
5565 grep -v '^ *+' conftest.er1 >conftest.err
5567 cat conftest.err >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } &&
5570 { ac_try='test -z "$ac_c_werror_flag"
5571 || test ! -s conftest.err'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; } &&
5577 { ac_try='test -s conftest$ac_exeext'
5578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); }; }; then
5585 echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5590 rm -f conftest.err conftest.$ac_objext \
5591 conftest$ac_exeext conftest.$ac_ext
5592 if test $ac_R_space = yes; then
5593 echo "$as_me:$LINENO: result: yes" >&5
5594 echo "${ECHO_T}yes" >&6
5595 X_LIBS="$X_LIBS -R $x_libraries"
5597 echo "$as_me:$LINENO: result: neither works" >&5
5598 echo "${ECHO_T}neither works" >&6
5605 # Check for system-dependent libraries X programs must link with.
5606 # Do this before checking for the system-independent R6 libraries
5607 # (-lICE), since we may need -lsocket or whatever for X linking.
5609 if test "$ISC" = yes; then
5610 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5612 # Martyn Johnson says this is needed for Ultrix, if the X
5613 # libraries were built with DECnet support. And Karl Berry says
5614 # the Alpha needs dnet_stub (dnet does not exist).
5615 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5616 cat >conftest.$ac_ext <<_ACEOF
5619 cat confdefs.h >>conftest.$ac_ext
5620 cat >>conftest.$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5623 /* Override any gcc2 internal prototype to avoid an error. */
5627 /* We use char because int might match the return type of a gcc2
5628 builtin and then its argument prototype would still apply. */
5629 char XOpenDisplay ();
5638 rm -f conftest.$ac_objext conftest$ac_exeext
5639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5640 (eval $ac_link) 2>conftest.er1
5642 grep -v '^ *+' conftest.er1 >conftest.err
5644 cat conftest.err >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); } &&
5647 { ac_try='test -z "$ac_c_werror_flag"
5648 || test ! -s conftest.err'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; } &&
5654 { ac_try='test -s conftest$ac_exeext'
5655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }; }; then
5662 echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5665 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5666 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5667 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 ac_check_lib_save_LIBS=$LIBS
5672 cat >conftest.$ac_ext <<_ACEOF
5675 cat confdefs.h >>conftest.$ac_ext
5676 cat >>conftest.$ac_ext <<_ACEOF
5677 /* end confdefs.h. */
5679 /* Override any gcc2 internal prototype to avoid an error. */
5683 /* We use char because int might match the return type of a gcc2
5684 builtin and then its argument prototype would still apply. */
5694 rm -f conftest.$ac_objext conftest$ac_exeext
5695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5696 (eval $ac_link) 2>conftest.er1
5698 grep -v '^ *+' conftest.er1 >conftest.err
5700 cat conftest.err >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } &&
5703 { ac_try='test -z "$ac_c_werror_flag"
5704 || test ! -s conftest.err'
5705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); }; } &&
5710 { ac_try='test -s conftest$ac_exeext'
5711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); }; }; then
5716 ac_cv_lib_dnet_dnet_ntoa=yes
5718 echo "$as_me: failed program was:" >&5
5719 sed 's/^/| /' conftest.$ac_ext >&5
5721 ac_cv_lib_dnet_dnet_ntoa=no
5723 rm -f conftest.err conftest.$ac_objext \
5724 conftest$ac_exeext conftest.$ac_ext
5725 LIBS=$ac_check_lib_save_LIBS
5727 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5728 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5729 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5730 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5733 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5734 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5735 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5736 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5739 ac_check_lib_save_LIBS=$LIBS
5740 LIBS="-ldnet_stub $LIBS"
5741 cat >conftest.$ac_ext <<_ACEOF
5744 cat confdefs.h >>conftest.$ac_ext
5745 cat >>conftest.$ac_ext <<_ACEOF
5746 /* end confdefs.h. */
5748 /* Override any gcc2 internal prototype to avoid an error. */
5752 /* We use char because int might match the return type of a gcc2
5753 builtin and then its argument prototype would still apply. */
5763 rm -f conftest.$ac_objext conftest$ac_exeext
5764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5765 (eval $ac_link) 2>conftest.er1
5767 grep -v '^ *+' conftest.er1 >conftest.err
5769 cat conftest.err >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } &&
5772 { ac_try='test -z "$ac_c_werror_flag"
5773 || test ! -s conftest.err'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; } &&
5779 { ac_try='test -s conftest$ac_exeext'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; }; then
5785 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5790 ac_cv_lib_dnet_stub_dnet_ntoa=no
5792 rm -f conftest.err conftest.$ac_objext \
5793 conftest$ac_exeext conftest.$ac_ext
5794 LIBS=$ac_check_lib_save_LIBS
5796 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5797 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5798 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5799 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5804 rm -f conftest.err conftest.$ac_objext \
5805 conftest$ac_exeext conftest.$ac_ext
5806 LIBS="$ac_xsave_LIBS"
5808 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5809 # to get the SysV transport functions.
5810 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5812 # The nsl library prevents programs from opening the X display
5813 # on Irix 5.2, according to T.E. Dickey.
5814 # The functions gethostbyname, getservbyname, and inet_addr are
5815 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5816 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5817 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5818 if test "${ac_cv_func_gethostbyname+set}" = set; then
5819 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 cat >conftest.$ac_ext <<_ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5827 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5829 #define gethostbyname innocuous_gethostbyname
5831 /* System header to define __stub macros and hopefully few prototypes,
5832 which can conflict with char gethostbyname (); below.
5833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5834 <limits.h> exists even on freestanding compilers. */
5837 # include <limits.h>
5839 # include <assert.h>
5842 #undef gethostbyname
5844 /* Override any gcc2 internal prototype to avoid an error. */
5849 /* We use char because int might match the return type of a gcc2
5850 builtin and then its argument prototype would still apply. */
5851 char gethostbyname ();
5852 /* The GNU C library defines this for functions which it implements
5853 to always fail with ENOSYS. Some functions are actually named
5854 something starting with __ and the normal name is an alias. */
5855 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5858 char (*f) () = gethostbyname;
5867 return f != gethostbyname;
5872 rm -f conftest.$ac_objext conftest$ac_exeext
5873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5874 (eval $ac_link) 2>conftest.er1
5876 grep -v '^ *+' conftest.er1 >conftest.err
5878 cat conftest.err >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } &&
5881 { ac_try='test -z "$ac_c_werror_flag"
5882 || test ! -s conftest.err'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; } &&
5888 { ac_try='test -s conftest$ac_exeext'
5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; }; then
5894 ac_cv_func_gethostbyname=yes
5896 echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.$ac_ext >&5
5899 ac_cv_func_gethostbyname=no
5901 rm -f conftest.err conftest.$ac_objext \
5902 conftest$ac_exeext conftest.$ac_ext
5904 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5905 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5907 if test $ac_cv_func_gethostbyname = no; then
5908 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5909 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5910 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 ac_check_lib_save_LIBS=$LIBS
5915 cat >conftest.$ac_ext <<_ACEOF
5918 cat confdefs.h >>conftest.$ac_ext
5919 cat >>conftest.$ac_ext <<_ACEOF
5920 /* end confdefs.h. */
5922 /* Override any gcc2 internal prototype to avoid an error. */
5926 /* We use char because int might match the return type of a gcc2
5927 builtin and then its argument prototype would still apply. */
5928 char gethostbyname ();
5937 rm -f conftest.$ac_objext conftest$ac_exeext
5938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5939 (eval $ac_link) 2>conftest.er1
5941 grep -v '^ *+' conftest.er1 >conftest.err
5943 cat conftest.err >&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } &&
5946 { ac_try='test -z "$ac_c_werror_flag"
5947 || test ! -s conftest.err'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; } &&
5953 { ac_try='test -s conftest$ac_exeext'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; }; then
5959 ac_cv_lib_nsl_gethostbyname=yes
5961 echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.$ac_ext >&5
5964 ac_cv_lib_nsl_gethostbyname=no
5966 rm -f conftest.err conftest.$ac_objext \
5967 conftest$ac_exeext conftest.$ac_ext
5968 LIBS=$ac_check_lib_save_LIBS
5970 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5971 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5972 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5973 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5976 if test $ac_cv_lib_nsl_gethostbyname = no; then
5977 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5978 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5979 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 ac_check_lib_save_LIBS=$LIBS
5984 cat >conftest.$ac_ext <<_ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5991 /* Override any gcc2 internal prototype to avoid an error. */
5995 /* We use char because int might match the return type of a gcc2
5996 builtin and then its argument prototype would still apply. */
5997 char gethostbyname ();
6006 rm -f conftest.$ac_objext conftest$ac_exeext
6007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6008 (eval $ac_link) 2>conftest.er1
6010 grep -v '^ *+' conftest.er1 >conftest.err
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } &&
6015 { ac_try='test -z "$ac_c_werror_flag"
6016 || test ! -s conftest.err'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; } &&
6022 { ac_try='test -s conftest$ac_exeext'
6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; }; then
6028 ac_cv_lib_bsd_gethostbyname=yes
6030 echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6033 ac_cv_lib_bsd_gethostbyname=no
6035 rm -f conftest.err conftest.$ac_objext \
6036 conftest$ac_exeext conftest.$ac_ext
6037 LIBS=$ac_check_lib_save_LIBS
6039 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6040 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6041 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6042 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6048 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6049 # socket/setsockopt and other routines are undefined under SCO ODT
6050 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6051 # on later versions), says Simon Leinen: it contains gethostby*
6052 # variants that don't use the name server (or something). -lsocket
6053 # must be given before -lnsl if both are needed. We assume that
6054 # if connect needs -lnsl, so does gethostbyname.
6055 echo "$as_me:$LINENO: checking for connect" >&5
6056 echo $ECHO_N "checking for connect... $ECHO_C" >&6
6057 if test "${ac_cv_func_connect+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 cat >conftest.$ac_ext <<_ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6066 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6068 #define connect innocuous_connect
6070 /* System header to define __stub macros and hopefully few prototypes,
6071 which can conflict with char connect (); below.
6072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6073 <limits.h> exists even on freestanding compilers. */
6076 # include <limits.h>
6078 # include <assert.h>
6083 /* Override any gcc2 internal prototype to avoid an error. */
6088 /* We use char because int might match the return type of a gcc2
6089 builtin and then its argument prototype would still apply. */
6091 /* The GNU C library defines this for functions which it implements
6092 to always fail with ENOSYS. Some functions are actually named
6093 something starting with __ and the normal name is an alias. */
6094 #if defined (__stub_connect) || defined (__stub___connect)
6097 char (*f) () = connect;
6106 return f != connect;
6111 rm -f conftest.$ac_objext conftest$ac_exeext
6112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6113 (eval $ac_link) 2>conftest.er1
6115 grep -v '^ *+' conftest.er1 >conftest.err
6117 cat conftest.err >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); } &&
6120 { ac_try='test -z "$ac_c_werror_flag"
6121 || test ! -s conftest.err'
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; } &&
6127 { ac_try='test -s conftest$ac_exeext'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; }; then
6133 ac_cv_func_connect=yes
6135 echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6138 ac_cv_func_connect=no
6140 rm -f conftest.err conftest.$ac_objext \
6141 conftest$ac_exeext conftest.$ac_ext
6143 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6144 echo "${ECHO_T}$ac_cv_func_connect" >&6
6146 if test $ac_cv_func_connect = no; then
6147 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6148 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6149 if test "${ac_cv_lib_socket_connect+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6152 ac_check_lib_save_LIBS=$LIBS
6153 LIBS="-lsocket $X_EXTRA_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. */
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_socket_connect=yes
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6203 ac_cv_lib_socket_connect=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_socket_connect" >&5
6210 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6211 if test $ac_cv_lib_socket_connect = yes; then
6212 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6217 # Guillermo Gomez says -lposix is necessary on A/UX.
6218 echo "$as_me:$LINENO: checking for remove" >&5
6219 echo $ECHO_N "checking for remove... $ECHO_C" >&6
6220 if test "${ac_cv_func_remove+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 cat >conftest.$ac_ext <<_ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6229 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6231 #define remove innocuous_remove
6233 /* System header to define __stub macros and hopefully few prototypes,
6234 which can conflict with char remove (); below.
6235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6236 <limits.h> exists even on freestanding compilers. */
6239 # include <limits.h>
6241 # include <assert.h>
6246 /* Override any gcc2 internal prototype to avoid an error. */
6251 /* We use char because int might match the return type of a gcc2
6252 builtin and then its argument prototype would still apply. */
6254 /* The GNU C library defines this for functions which it implements
6255 to always fail with ENOSYS. Some functions are actually named
6256 something starting with __ and the normal name is an alias. */
6257 #if defined (__stub_remove) || defined (__stub___remove)
6260 char (*f) () = remove;
6274 rm -f conftest.$ac_objext conftest$ac_exeext
6275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6276 (eval $ac_link) 2>conftest.er1
6278 grep -v '^ *+' conftest.er1 >conftest.err
6280 cat conftest.err >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); } &&
6283 { ac_try='test -z "$ac_c_werror_flag"
6284 || test ! -s conftest.err'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; } &&
6290 { ac_try='test -s conftest$ac_exeext'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; }; then
6296 ac_cv_func_remove=yes
6298 echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6301 ac_cv_func_remove=no
6303 rm -f conftest.err conftest.$ac_objext \
6304 conftest$ac_exeext conftest.$ac_ext
6306 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6307 echo "${ECHO_T}$ac_cv_func_remove" >&6
6309 if test $ac_cv_func_remove = no; then
6310 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6311 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6312 if test "${ac_cv_lib_posix_remove+set}" = set; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6315 ac_check_lib_save_LIBS=$LIBS
6316 LIBS="-lposix $LIBS"
6317 cat >conftest.$ac_ext <<_ACEOF
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6324 /* Override any gcc2 internal prototype to avoid an error. */
6328 /* We use char because int might match the return type of a gcc2
6329 builtin and then its argument prototype would still apply. */
6339 rm -f conftest.$ac_objext conftest$ac_exeext
6340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6341 (eval $ac_link) 2>conftest.er1
6343 grep -v '^ *+' conftest.er1 >conftest.err
6345 cat conftest.err >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } &&
6348 { ac_try='test -z "$ac_c_werror_flag"
6349 || test ! -s conftest.err'
6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; } &&
6355 { ac_try='test -s conftest$ac_exeext'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; }; then
6361 ac_cv_lib_posix_remove=yes
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6366 ac_cv_lib_posix_remove=no
6368 rm -f conftest.err conftest.$ac_objext \
6369 conftest$ac_exeext conftest.$ac_ext
6370 LIBS=$ac_check_lib_save_LIBS
6372 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6373 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6374 if test $ac_cv_lib_posix_remove = yes; then
6375 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6380 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6381 echo "$as_me:$LINENO: checking for shmat" >&5
6382 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6383 if test "${ac_cv_func_shmat+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 cat >conftest.$ac_ext <<_ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h. */
6392 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6394 #define shmat innocuous_shmat
6396 /* System header to define __stub macros and hopefully few prototypes,
6397 which can conflict with char shmat (); below.
6398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6399 <limits.h> exists even on freestanding compilers. */
6402 # include <limits.h>
6404 # include <assert.h>
6409 /* Override any gcc2 internal prototype to avoid an error. */
6414 /* We use char because int might match the return type of a gcc2
6415 builtin and then its argument prototype would still apply. */
6417 /* The GNU C library defines this for functions which it implements
6418 to always fail with ENOSYS. Some functions are actually named
6419 something starting with __ and the normal name is an alias. */
6420 #if defined (__stub_shmat) || defined (__stub___shmat)
6423 char (*f) () = shmat;
6437 rm -f conftest.$ac_objext conftest$ac_exeext
6438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6439 (eval $ac_link) 2>conftest.er1
6441 grep -v '^ *+' conftest.er1 >conftest.err
6443 cat conftest.err >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } &&
6446 { ac_try='test -z "$ac_c_werror_flag"
6447 || test ! -s conftest.err'
6448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; } &&
6453 { ac_try='test -s conftest$ac_exeext'
6454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; }; then
6459 ac_cv_func_shmat=yes
6461 echo "$as_me: failed program was:" >&5
6462 sed 's/^/| /' conftest.$ac_ext >&5
6466 rm -f conftest.err conftest.$ac_objext \
6467 conftest$ac_exeext conftest.$ac_ext
6469 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6470 echo "${ECHO_T}$ac_cv_func_shmat" >&6
6472 if test $ac_cv_func_shmat = no; then
6473 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6474 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6475 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 ac_check_lib_save_LIBS=$LIBS
6480 cat >conftest.$ac_ext <<_ACEOF
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h. */
6487 /* Override any gcc2 internal prototype to avoid an error. */
6491 /* We use char because int might match the return type of a gcc2
6492 builtin and then its argument prototype would still apply. */
6502 rm -f conftest.$ac_objext conftest$ac_exeext
6503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6504 (eval $ac_link) 2>conftest.er1
6506 grep -v '^ *+' conftest.er1 >conftest.err
6508 cat conftest.err >&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); } &&
6511 { ac_try='test -z "$ac_c_werror_flag"
6512 || test ! -s conftest.err'
6513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; } &&
6518 { ac_try='test -s conftest$ac_exeext'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; }; then
6524 ac_cv_lib_ipc_shmat=yes
6526 echo "$as_me: failed program was:" >&5
6527 sed 's/^/| /' conftest.$ac_ext >&5
6529 ac_cv_lib_ipc_shmat=no
6531 rm -f conftest.err conftest.$ac_objext \
6532 conftest$ac_exeext conftest.$ac_ext
6533 LIBS=$ac_check_lib_save_LIBS
6535 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6536 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6537 if test $ac_cv_lib_ipc_shmat = yes; then
6538 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6544 # Check for libraries that X11R6 Xt/Xaw programs need.
6545 ac_save_LDFLAGS=$LDFLAGS
6546 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6547 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6548 # check for ICE first), but we must link in the order -lSM -lICE or
6549 # we get undefined symbols. So assume we have SM if we have ICE.
6550 # These have to be linked with before -lX11, unlike the other
6551 # libraries we check for below, so use a different variable.
6552 # John Interrante, Karl Berry
6553 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6554 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6555 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 ac_check_lib_save_LIBS=$LIBS
6559 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6560 cat >conftest.$ac_ext <<_ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6567 /* Override any gcc2 internal prototype to avoid an error. */
6571 /* We use char because int might match the return type of a gcc2
6572 builtin and then its argument prototype would still apply. */
6573 char IceConnectionNumber ();
6577 IceConnectionNumber ();
6582 rm -f conftest.$ac_objext conftest$ac_exeext
6583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6584 (eval $ac_link) 2>conftest.er1
6586 grep -v '^ *+' conftest.er1 >conftest.err
6588 cat conftest.err >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } &&
6591 { ac_try='test -z "$ac_c_werror_flag"
6592 || test ! -s conftest.err'
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; } &&
6598 { ac_try='test -s conftest$ac_exeext'
6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; }; then
6604 ac_cv_lib_ICE_IceConnectionNumber=yes
6606 echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6609 ac_cv_lib_ICE_IceConnectionNumber=no
6611 rm -f conftest.err conftest.$ac_objext \
6612 conftest$ac_exeext conftest.$ac_ext
6613 LIBS=$ac_check_lib_save_LIBS
6615 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6616 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6617 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6618 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6621 LDFLAGS=$ac_save_LDFLAGS
6626 if test "$have_x" != yes; then
6627 { { echo "$as_me:$LINENO: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&5
6628 echo "$as_me: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&2;}
6629 { (exit 1); exit 1; }; }
6633 echo "$as_me:$LINENO: checking for X app-defaults directory" >&5
6634 echo $ECHO_N "checking for X app-defaults directory... $ECHO_C" >&6
6635 if test "${ac_cv_x_app_defaults+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 if mkdir conftestdir; then
6641 cd conftestdir 2>/dev/null
6642 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6643 cat > Imakefile <<'EOF'
6645 @echo 'ac_x_app_defaults="${XAPPLOADDIR}"'
6647 if (xmkmf) >/dev/null 2>&1 && test -f Makefile; then
6648 # GNU make sometimes prints "make[1]: Entering...", which'd confuse us.
6649 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6654 if test x"$ac_x_app_defaults" = x; then
6656 # Look for the directory under a standard set of common directories.
6657 # Check X11 before X11Rn because it's often a symlink to the current release.
6659 /usr/X11/lib/app-defaults \
6660 /usr/X11R6/lib/app-defaults \
6661 /usr/X11R6/lib/X11/app-defaults \
6662 /usr/X11R5/lib/app-defaults \
6663 /usr/X11R5/lib/X11/app-defaults \
6664 /usr/X11R4/lib/app-defaults \
6665 /usr/X11R4/lib/X11/app-defaults \
6667 /usr/lib/X11/app-defaults \
6668 /usr/lib/X11R6/app-defaults \
6669 /usr/lib/X11R5/app-defaults \
6670 /usr/lib/X11R4/app-defaults \
6672 /usr/local/X11/lib/app-defaults \
6673 /usr/local/X11R6/lib/app-defaults \
6674 /usr/local/X11R5/lib/app-defaults \
6675 /usr/local/X11R4/lib/app-defaults \
6677 /usr/local/lib/X11/app-defaults \
6678 /usr/local/lib/X11R6/app-defaults \
6679 /usr/local/lib/X11R6/X11/app-defaults \
6680 /usr/local/lib/X11R5/app-defaults \
6681 /usr/local/lib/X11R5/X11/app-defaults \
6682 /usr/local/lib/X11R4/app-defaults \
6683 /usr/local/lib/X11R4/X11/app-defaults \
6685 /usr/X386/lib/X11/app-defaults \
6686 /usr/x386/lib/X11/app-defaults \
6687 /usr/XFree86/lib/X11/app-defaults \
6689 /usr/lib/X11/app-defaults \
6690 /usr/local/lib/X11/app-defaults \
6691 /usr/unsupported/lib/X11/app-defaults \
6692 /usr/athena/lib/X11/app-defaults \
6693 /usr/local/x11r5/lib/X11/app-defaults \
6694 /usr/lpp/Xamples/lib/X11/app-defaults \
6695 /lib/usr/lib/X11/app-defaults \
6697 /usr/openwin/lib/app-defaults \
6698 /usr/openwin/lib/X11/app-defaults \
6699 /usr/openwin/share/lib/app-defaults \
6700 /usr/openwin/share/lib/X11/app-defaults \
6702 /X11R6/lib/app-defaults \
6703 /X11R5/lib/app-defaults \
6704 /X11R4/lib/app-defaults \
6707 if test -d "$ac_dir"; then
6708 ac_x_app_defaults=$ac_dir
6714 if test x"$ac_x_app_defaults" = x; then
6715 ac_cv_x_app_defaults="/usr/lib/X11/app-defaults"
6717 # Record where we found app-defaults for the cache.
6718 ac_cv_x_app_defaults="$ac_x_app_defaults"
6721 echo "$as_me:$LINENO: result: $ac_cv_x_app_defaults" >&5
6722 echo "${ECHO_T}$ac_cv_x_app_defaults" >&6
6723 eval ac_x_app_defaults="$ac_cv_x_app_defaults"
6727 # The following arcana was gleaned from conversations with
6728 # Eric Schwartz <erics@col.hp.com>:
6730 # On HPUX 10.x, the parts of X that HP considers "standard" live in
6731 # /usr/{include,lib}/X11R6/. The parts that HP doesn't consider
6732 # "standard", notably, Xaw and Xmu, live in /usr/contrib/X11R6/.
6733 # Yet /usr/contrib/X11R6/ comes preinstalled on all HPUX systems.
6734 # Also, there are symlinks from /usr/include/ and /usr/lib/ into
6735 # /usr/{include,lib}/X11R6/, so that (if you don't use Xmu at all)
6736 # you don't need any -I or -L arguments.
6738 # On HPUX 9.x, /usr/{include,lib}/X11R5/ and /usr/contrib/X11R5/
6739 # are the same division as 10.x. However, there are no symlinks to
6740 # the X stuff from /usr/include/ and /usr/lib/, so -I and -L
6741 # arguments are always necessary.
6743 # However, X11R6 was available on HPUX 9.x as a patch: if that
6744 # patch was installed, then all of X11R6 went in to
6745 # /usr/contrib/X11R6/ (there was no /usr/{include,lib}/X11R6/.)
6747 # HPUX 8.x was the same as 9.x, but was X11R4 instead (I don't know
6748 # whether R5 was available as a patch; R6 undoubtedly was not.)
6750 # So. We try and use the highest numbered pair of
6751 # /usr/{include,lib}/X11R?/ and /usr/contrib/X11R?/{include,lib}/
6752 # that are available. We do not mix and match different versions
6755 # Question I still don't know the answer to: (do you?)
6757 # * On HPUX 9.x, where /usr/include/X11R5/ was standard, and
6758 # /usr/contrib/X11R6/ could be installed as a patch, what was in
6759 # that contrib directory? Did it contain so-called "standard"
6760 # X11R6, or did it include Xaw and Xmu as well? If the former,
6761 # where did one find Xaw and Xmu on 9.x R6 systems? Would this
6762 # be a situation where one had to reach into the R5 headers and
6763 # libs to find Xmu? That is, must both R6 and R5 directories
6764 # be on the -I and -L lists in that case?
6766 for version in X11R6 X11R5 X11R4 ; do
6767 # if either pair of directories exists...
6768 if test -d /usr/include/$version || test -d /usr/contrib/$version/include
6770 # if contrib exists, use it...
6771 if test -d /usr/contrib/$version/include ; then
6772 X_CFLAGS="$X_CFLAGS -I/usr/contrib/$version/include"
6773 X_LIBS="$X_LIBS -L/usr/contrib/$version/lib"
6775 # if the "standard" one exists, use it.
6776 if test -d /usr/include/$version ; then
6777 X_CFLAGS="$X_CFLAGS -I/usr/include/$version"
6778 X_LIBS="$X_LIBS -L/usr/lib/$version"
6780 # since at least one of the pair exists, go no farther.
6785 # Now find Motif. Thanks for not making xmkmf find this by
6786 # default, you losers.
6788 if test -d /usr/include/Motif2.1 ; then
6789 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif2.1"
6790 X_LIBS="$X_LIBS -L/usr/lib/Motif2.1"
6791 elif test -d /usr/include/Motif1.2 ; then
6792 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.2"
6793 X_LIBS="$X_LIBS -L/usr/lib/Motif1.2"
6794 elif test -d /usr/include/Motif1.1 ; then
6795 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.1"
6796 X_LIBS="$X_LIBS -L/usr/lib/Motif1.1"
6799 # Now let's check for the pseudo-standard locations for OpenGL and XPM.
6801 if test -d /opt/graphics/OpenGL/include ; then
6802 # HP-UX 10.20 puts it here
6803 X_CFLAGS="-I/opt/graphics/OpenGL/include $X_CFLAGS"
6804 X_LIBS="-L/opt/graphics/OpenGL/lib $X_LIBS"
6805 elif test -d /opt/Mesa/lib ; then
6806 X_CFLAGS="-I/opt/Mesa/include $X_CFLAGS"
6807 X_LIBS="-L/opt/Mesa/lib $X_LIBS"
6811 if test -d /opt/xpm/lib/X11 ; then
6812 X_CFLAGS="-I/opt/xpm/include $X_CFLAGS"
6813 X_LIBS="-L/opt/xpm/lib/X11 $X_LIBS"
6816 # On HPUX, default to installing in /opt/xscreensaver/ instead of
6817 # in /usr/local/, unless there is already an xscreensaver in
6818 # /usr/local/bin/. This can be overridden with the --prefix arg
6819 # to configure. I'm not sure this is the right thing to do, but
6820 # Richard Lloyd says so...
6822 if test \! -x /usr/local/bin/xscreensaver ; then
6823 ac_default_prefix=/opt/xscreensaver
6829 # Thanks for not making xmkmf find this by default, pinheads.
6830 # And thanks for moving things around again, too. Is this
6831 # really the standard location now? What happened to the
6832 # joke that this kind of thing went in /opt?
6833 # cthomp says "answer: CDE (Common Disorganized Environment)"
6835 if test -f /usr/dt/include/Xm/Xm.h ; then
6836 X_CFLAGS="$X_CFLAGS -I/usr/dt/include"
6837 MOTIF_LIBS="$MOTIF_LIBS -L/usr/dt/lib -R/usr/dt/lib"
6839 # Some versions of Slowlaris Motif require -lgen. But not all. Why?
6840 echo "$as_me:$LINENO: checking for regcmp in -lgen" >&5
6841 echo $ECHO_N "checking for regcmp in -lgen... $ECHO_C" >&6
6842 if test "${ac_cv_lib_gen_regcmp+set}" = set; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
6845 ac_check_lib_save_LIBS=$LIBS
6847 cat >conftest.$ac_ext <<_ACEOF
6850 cat confdefs.h >>conftest.$ac_ext
6851 cat >>conftest.$ac_ext <<_ACEOF
6852 /* end confdefs.h. */
6854 /* Override any gcc2 internal prototype to avoid an error. */
6858 /* We use char because int might match the return type of a gcc2
6859 builtin and then its argument prototype would still apply. */
6869 rm -f conftest.$ac_objext conftest$ac_exeext
6870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6871 (eval $ac_link) 2>conftest.er1
6873 grep -v '^ *+' conftest.er1 >conftest.err
6875 cat conftest.err >&5
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); } &&
6878 { ac_try='test -z "$ac_c_werror_flag"
6879 || test ! -s conftest.err'
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; } &&
6885 { ac_try='test -s conftest$ac_exeext'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; }; then
6891 ac_cv_lib_gen_regcmp=yes
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6896 ac_cv_lib_gen_regcmp=no
6898 rm -f conftest.err conftest.$ac_objext \
6899 conftest$ac_exeext conftest.$ac_ext
6900 LIBS=$ac_check_lib_save_LIBS
6902 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_regcmp" >&5
6903 echo "${ECHO_T}$ac_cv_lib_gen_regcmp" >&6
6904 if test $ac_cv_lib_gen_regcmp = yes; then
6905 MOTIF_LIBS="$MOTIF_LIBS -lgen"
6913 # On MacOS X (10.x with "fink"), many things are under /sw/.
6915 if test -d /sw/include ; then
6916 X_CFLAGS="-I/sw/include $X_CFLAGS"
6917 X_LIBS="-L/sw/lib $X_LIBS"
6921 echo "$as_me:$LINENO: checking for XPointer" >&5
6922 echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
6923 if test "${ac_cv_xpointer+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 ac_save_CPPFLAGS="$CPPFLAGS"
6928 if test \! -z "$includedir" ; then
6929 CPPFLAGS="$CPPFLAGS -I$includedir"
6931 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6932 cat >conftest.$ac_ext <<_ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6938 #include <X11/Xlib.h>
6942 XPointer foo = (XPointer) 0;
6947 rm -f conftest.$ac_objext
6948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6949 (eval $ac_compile) 2>conftest.er1
6951 grep -v '^ *+' conftest.er1 >conftest.err
6953 cat conftest.err >&5
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); } &&
6956 { ac_try='test -z "$ac_c_werror_flag"
6957 || test ! -s conftest.err'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; } &&
6963 { ac_try='test -s conftest.$ac_objext'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; }; then
6971 echo "$as_me: failed program was:" >&5
6972 sed 's/^/| /' conftest.$ac_ext >&5
6976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6977 CPPFLAGS="$ac_save_CPPFLAGS"
6979 echo "$as_me:$LINENO: result: $ac_cv_xpointer" >&5
6980 echo "${ECHO_T}$ac_cv_xpointer" >&6
6981 if test "$ac_cv_xpointer" != yes; then
6982 cat >>confdefs.h <<\_ACEOF
6983 #define XPointer char*
6988 echo "$as_me:$LINENO: checking whether this is MacOS X" >&5
6989 echo $ECHO_N "checking whether this is MacOS X... $ECHO_C" >&6
6996 echo "$as_me:$LINENO: result: $ac_macosx" >&5
6997 echo "${ECHO_T}$ac_macosx" >&6
7001 ###############################################################################
7005 ###############################################################################
7010 echo "$as_me:$LINENO: checking for intltool >= " >&5
7011 echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6
7013 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
7014 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }' < intltool-update.in`
7016 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < intltool-update.in`
7019 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
7020 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
7021 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
7023 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&5
7024 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&6
7029 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'
7030 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'
7031 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'
7032 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -p'
7033 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'
7034 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'
7035 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'
7036 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'
7037 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'
7038 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'
7039 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'
7053 # Use the tools built into the package, not the ones that are installed.
7055 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
7056 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
7057 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
7063 # Extract the first word of "perl", so it can be a program name with args.
7064 set dummy perl; ac_word=$2
7065 echo "$as_me:$LINENO: checking for $ac_word" >&5
7066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7067 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7070 case $INTLTOOL_PERL in
7072 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 test -z "$as_dir" && as_dir=.
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7082 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
7083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
7094 if test -n "$INTLTOOL_PERL"; then
7095 echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
7096 echo "${ECHO_T}$INTLTOOL_PERL" >&6
7098 echo "$as_me:$LINENO: result: no" >&5
7099 echo "${ECHO_T}no" >&6
7102 if test -z "$INTLTOOL_PERL"; then
7103 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
7104 echo "$as_me: error: perl not found; required for intltool" >&2;}
7105 { (exit 1); exit 1; }; }
7107 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
7108 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
7109 echo "$as_me: error: perl 5.x required for intltool" >&2;}
7110 { (exit 1); exit 1; }; }
7113 # Remove file type tags (using []) from po/POTFILES.
7121 # Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
7123 ac_config_commands="$ac_config_commands default-1"
7127 GETTEXT_PACKAGE=xscreensaver
7128 cat >>confdefs.h <<_ACEOF
7129 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
7132 cat >>confdefs.h <<_ACEOF
7133 #define PACKAGE "$GETTEXT_PACKAGE"
7138 ALL_LINGUAS="ca da de es et fi fr hu it ja ko nl no pl pt pt_BR ru sk sv vi wa zh_CN zh_TW"
7139 if test -n "$ac_tool_prefix"; then
7140 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7141 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7142 echo "$as_me:$LINENO: checking for $ac_word" >&5
7143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7144 if test "${ac_cv_prog_RANLIB+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 if test -n "$RANLIB"; then
7148 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7157 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7166 RANLIB=$ac_cv_prog_RANLIB
7167 if test -n "$RANLIB"; then
7168 echo "$as_me:$LINENO: result: $RANLIB" >&5
7169 echo "${ECHO_T}$RANLIB" >&6
7171 echo "$as_me:$LINENO: result: no" >&5
7172 echo "${ECHO_T}no" >&6
7176 if test -z "$ac_cv_prog_RANLIB"; then
7177 ac_ct_RANLIB=$RANLIB
7178 # Extract the first word of "ranlib", so it can be a program name with args.
7179 set dummy ranlib; ac_word=$2
7180 echo "$as_me:$LINENO: checking for $ac_word" >&5
7181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7182 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7185 if test -n "$ac_ct_RANLIB"; then
7186 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7195 ac_cv_prog_ac_ct_RANLIB="ranlib"
7196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7205 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7206 if test -n "$ac_ct_RANLIB"; then
7207 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7208 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7210 echo "$as_me:$LINENO: result: no" >&5
7211 echo "${ECHO_T}no" >&6
7214 RANLIB=$ac_ct_RANLIB
7216 RANLIB="$ac_cv_prog_RANLIB"
7219 echo "$as_me:$LINENO: checking for off_t" >&5
7220 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7221 if test "${ac_cv_type_off_t+set}" = set; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 cat >conftest.$ac_ext <<_ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h. */
7230 $ac_includes_default
7242 rm -f conftest.$ac_objext
7243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7244 (eval $ac_compile) 2>conftest.er1
7246 grep -v '^ *+' conftest.er1 >conftest.err
7248 cat conftest.err >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); } &&
7251 { ac_try='test -z "$ac_c_werror_flag"
7252 || test ! -s conftest.err'
7253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); }; } &&
7258 { ac_try='test -s conftest.$ac_objext'
7259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); }; }; then
7264 ac_cv_type_off_t=yes
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7273 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7274 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7275 if test $ac_cv_type_off_t = yes; then
7279 cat >>confdefs.h <<_ACEOF
7285 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7286 # for constant arguments. Useless!
7287 echo "$as_me:$LINENO: checking for working alloca.h" >&5
7288 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7289 if test "${ac_cv_working_alloca_h+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7292 cat >conftest.$ac_ext <<_ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h. */
7302 char *p = (char *) alloca (2 * sizeof (int));
7307 rm -f conftest.$ac_objext conftest$ac_exeext
7308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7309 (eval $ac_link) 2>conftest.er1
7311 grep -v '^ *+' conftest.er1 >conftest.err
7313 cat conftest.err >&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } &&
7316 { ac_try='test -z "$ac_c_werror_flag"
7317 || test ! -s conftest.err'
7318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); }; } &&
7323 { ac_try='test -s conftest$ac_exeext'
7324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); }; }; then
7329 ac_cv_working_alloca_h=yes
7331 echo "$as_me: failed program was:" >&5
7332 sed 's/^/| /' conftest.$ac_ext >&5
7334 ac_cv_working_alloca_h=no
7336 rm -f conftest.err conftest.$ac_objext \
7337 conftest$ac_exeext conftest.$ac_ext
7339 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7340 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7341 if test $ac_cv_working_alloca_h = yes; then
7343 cat >>confdefs.h <<\_ACEOF
7344 #define HAVE_ALLOCA_H 1
7349 echo "$as_me:$LINENO: checking for alloca" >&5
7350 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7351 if test "${ac_cv_func_alloca_works+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7354 cat >conftest.$ac_ext <<_ACEOF
7357 cat confdefs.h >>conftest.$ac_ext
7358 cat >>conftest.$ac_ext <<_ACEOF
7359 /* end confdefs.h. */
7361 # define alloca __builtin_alloca
7364 # include <malloc.h>
7365 # define alloca _alloca
7368 # include <alloca.h>
7373 # ifndef alloca /* predefined by HP cc +Olibcalls */
7384 char *p = (char *) alloca (1);
7389 rm -f conftest.$ac_objext conftest$ac_exeext
7390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7391 (eval $ac_link) 2>conftest.er1
7393 grep -v '^ *+' conftest.er1 >conftest.err
7395 cat conftest.err >&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } &&
7398 { ac_try='test -z "$ac_c_werror_flag"
7399 || test ! -s conftest.err'
7400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); }; } &&
7405 { ac_try='test -s conftest$ac_exeext'
7406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }; }; then
7411 ac_cv_func_alloca_works=yes
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7416 ac_cv_func_alloca_works=no
7418 rm -f conftest.err conftest.$ac_objext \
7419 conftest$ac_exeext conftest.$ac_ext
7421 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7422 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7424 if test $ac_cv_func_alloca_works = yes; then
7426 cat >>confdefs.h <<\_ACEOF
7427 #define HAVE_ALLOCA 1
7431 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7432 # that cause trouble. Some versions do not even contain alloca or
7433 # contain a buggy version. If you still want to use their alloca,
7434 # use ar to extract alloca.o from them instead of compiling alloca.c.
7436 ALLOCA=alloca.$ac_objext
7438 cat >>confdefs.h <<\_ACEOF
7443 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7444 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7445 if test "${ac_cv_os_cray+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7448 cat >conftest.$ac_ext <<_ACEOF
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h. */
7454 #if defined(CRAY) && ! defined(CRAY2)
7461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7462 $EGREP "webecray" >/dev/null 2>&1; then
7470 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7471 echo "${ECHO_T}$ac_cv_os_cray" >&6
7472 if test $ac_cv_os_cray = yes; then
7473 for ac_func in _getb67 GETB67 getb67; do
7474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7475 echo "$as_me:$LINENO: checking for $ac_func" >&5
7476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7477 if eval "test \"\${$as_ac_var+set}\" = set"; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 cat >conftest.$ac_ext <<_ACEOF
7483 cat confdefs.h >>conftest.$ac_ext
7484 cat >>conftest.$ac_ext <<_ACEOF
7485 /* end confdefs.h. */
7486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7488 #define $ac_func innocuous_$ac_func
7490 /* System header to define __stub macros and hopefully few prototypes,
7491 which can conflict with char $ac_func (); below.
7492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7493 <limits.h> exists even on freestanding compilers. */
7496 # include <limits.h>
7498 # include <assert.h>
7503 /* Override any gcc2 internal prototype to avoid an error. */
7508 /* We use char because int might match the return type of a gcc2
7509 builtin and then its argument prototype would still apply. */
7511 /* The GNU C library defines this for functions which it implements
7512 to always fail with ENOSYS. Some functions are actually named
7513 something starting with __ and the normal name is an alias. */
7514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7517 char (*f) () = $ac_func;
7526 return f != $ac_func;
7531 rm -f conftest.$ac_objext conftest$ac_exeext
7532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7533 (eval $ac_link) 2>conftest.er1
7535 grep -v '^ *+' conftest.er1 >conftest.err
7537 cat conftest.err >&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } &&
7540 { ac_try='test -z "$ac_c_werror_flag"
7541 || test ! -s conftest.err'
7542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }; } &&
7547 { ac_try='test -s conftest$ac_exeext'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; }; then
7553 eval "$as_ac_var=yes"
7555 echo "$as_me: failed program was:" >&5
7556 sed 's/^/| /' conftest.$ac_ext >&5
7558 eval "$as_ac_var=no"
7560 rm -f conftest.err conftest.$ac_objext \
7561 conftest$ac_exeext conftest.$ac_ext
7563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7564 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7565 if test `eval echo '${'$as_ac_var'}'` = yes; then
7567 cat >>confdefs.h <<_ACEOF
7568 #define CRAY_STACKSEG_END $ac_func
7577 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7578 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7579 if test "${ac_cv_c_stack_direction+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7582 if test "$cross_compiling" = yes; then
7583 ac_cv_c_stack_direction=0
7585 cat >conftest.$ac_ext <<_ACEOF
7588 cat confdefs.h >>conftest.$ac_ext
7589 cat >>conftest.$ac_ext <<_ACEOF
7590 /* end confdefs.h. */
7592 find_stack_direction ()
7594 static char *addr = 0;
7599 return find_stack_direction ();
7602 return (&dummy > addr) ? 1 : -1;
7608 exit (find_stack_direction () < 0);
7611 rm -f conftest$ac_exeext
7612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7613 (eval $ac_link) 2>&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); }; }; then
7622 ac_cv_c_stack_direction=1
7624 echo "$as_me: program exited with status $ac_status" >&5
7625 echo "$as_me: failed program was:" >&5
7626 sed 's/^/| /' conftest.$ac_ext >&5
7629 ac_cv_c_stack_direction=-1
7631 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7634 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7635 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7637 cat >>confdefs.h <<_ACEOF
7638 #define STACK_DIRECTION $ac_cv_c_stack_direction
7646 for ac_header in stdlib.h unistd.h
7648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7650 echo "$as_me:$LINENO: checking for $ac_header" >&5
7651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7658 # Is the header compilable?
7659 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7661 cat >conftest.$ac_ext <<_ACEOF
7664 cat confdefs.h >>conftest.$ac_ext
7665 cat >>conftest.$ac_ext <<_ACEOF
7666 /* end confdefs.h. */
7667 $ac_includes_default
7668 #include <$ac_header>
7670 rm -f conftest.$ac_objext
7671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7672 (eval $ac_compile) 2>conftest.er1
7674 grep -v '^ *+' conftest.er1 >conftest.err
7676 cat conftest.err >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } &&
7679 { ac_try='test -z "$ac_c_werror_flag"
7680 || test ! -s conftest.err'
7681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); }; } &&
7686 { ac_try='test -s conftest.$ac_objext'
7687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; }; then
7692 ac_header_compiler=yes
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7697 ac_header_compiler=no
7699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7700 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7701 echo "${ECHO_T}$ac_header_compiler" >&6
7703 # Is the header present?
7704 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7705 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7706 cat >conftest.$ac_ext <<_ACEOF
7709 cat confdefs.h >>conftest.$ac_ext
7710 cat >>conftest.$ac_ext <<_ACEOF
7711 /* end confdefs.h. */
7712 #include <$ac_header>
7714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7717 grep -v '^ *+' conftest.er1 >conftest.err
7719 cat conftest.err >&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); } >/dev/null; then
7722 if test -s conftest.err; then
7723 ac_cpp_err=$ac_c_preproc_warn_flag
7724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7731 if test -z "$ac_cpp_err"; then
7732 ac_header_preproc=yes
7734 echo "$as_me: failed program was:" >&5
7735 sed 's/^/| /' conftest.$ac_ext >&5
7737 ac_header_preproc=no
7739 rm -f conftest.err conftest.$ac_ext
7740 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7741 echo "${ECHO_T}$ac_header_preproc" >&6
7743 # So? What about this header?
7744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7746 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7749 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7750 ac_header_preproc=yes
7753 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7755 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7756 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7757 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7758 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7759 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7760 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7763 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7764 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7767 ## ------------------------------------------ ##
7768 ## Report this to the AC_PACKAGE_NAME lists. ##
7769 ## ------------------------------------------ ##
7772 sed "s/^/$as_me: WARNING: /" >&2
7775 echo "$as_me:$LINENO: checking for $ac_header" >&5
7776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7780 eval "$as_ac_Header=\$ac_header_preproc"
7782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7787 cat >>confdefs.h <<_ACEOF
7788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7796 for ac_func in getpagesize
7798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7799 echo "$as_me:$LINENO: checking for $ac_func" >&5
7800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7801 if eval "test \"\${$as_ac_var+set}\" = set"; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 cat >conftest.$ac_ext <<_ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h. */
7810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7812 #define $ac_func innocuous_$ac_func
7814 /* System header to define __stub macros and hopefully few prototypes,
7815 which can conflict with char $ac_func (); below.
7816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7817 <limits.h> exists even on freestanding compilers. */
7820 # include <limits.h>
7822 # include <assert.h>
7827 /* Override any gcc2 internal prototype to avoid an error. */
7832 /* We use char because int might match the return type of a gcc2
7833 builtin and then its argument prototype would still apply. */
7835 /* The GNU C library defines this for functions which it implements
7836 to always fail with ENOSYS. Some functions are actually named
7837 something starting with __ and the normal name is an alias. */
7838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7841 char (*f) () = $ac_func;
7850 return f != $ac_func;
7855 rm -f conftest.$ac_objext conftest$ac_exeext
7856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7857 (eval $ac_link) 2>conftest.er1
7859 grep -v '^ *+' conftest.er1 >conftest.err
7861 cat conftest.err >&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); } &&
7864 { ac_try='test -z "$ac_c_werror_flag"
7865 || test ! -s conftest.err'
7866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); }; } &&
7871 { ac_try='test -s conftest$ac_exeext'
7872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; }; then
7877 eval "$as_ac_var=yes"
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7882 eval "$as_ac_var=no"
7884 rm -f conftest.err conftest.$ac_objext \
7885 conftest$ac_exeext conftest.$ac_ext
7887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7889 if test `eval echo '${'$as_ac_var'}'` = yes; then
7890 cat >>confdefs.h <<_ACEOF
7891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7897 echo "$as_me:$LINENO: checking for working mmap" >&5
7898 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7899 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7902 if test "$cross_compiling" = yes; then
7903 ac_cv_func_mmap_fixed_mapped=no
7905 cat >conftest.$ac_ext <<_ACEOF
7908 cat confdefs.h >>conftest.$ac_ext
7909 cat >>conftest.$ac_ext <<_ACEOF
7910 /* end confdefs.h. */
7911 $ac_includes_default
7912 /* malloc might have been renamed as rpl_malloc. */
7915 /* Thanks to Mike Haertel and Jim Avera for this test.
7916 Here is a matrix of mmap possibilities:
7917 mmap private not fixed
7918 mmap private fixed at somewhere currently unmapped
7919 mmap private fixed at somewhere already mapped
7920 mmap shared not fixed
7921 mmap shared fixed at somewhere currently unmapped
7922 mmap shared fixed at somewhere already mapped
7923 For private mappings, we should verify that changes cannot be read()
7924 back from the file, nor mmap's back from the file at a different
7925 address. (There have been systems where private was not correctly
7926 implemented like the infamous i386 svr4.0, and systems where the
7927 VM page cache was not coherent with the file system buffer cache
7928 like early versions of FreeBSD and possibly contemporary NetBSD.)
7929 For shared mappings, we should conversely verify that changes get
7930 propagated back to all the places they're supposed to be.
7932 Grep wants private fixed already mapped.
7933 The main things grep needs to know about mmap are:
7934 * does it exist and is it safe to write into the mmap'd area
7935 * how to use it (BSD variants) */
7938 #include <sys/mman.h>
7940 #if !STDC_HEADERS && !HAVE_STDLIB_H
7944 /* This mess was copied from the GNU getpagesize.h. */
7945 #if !HAVE_GETPAGESIZE
7946 /* Assume that all systems that can run configure have sys/param.h. */
7947 # if !HAVE_SYS_PARAM_H
7948 # define HAVE_SYS_PARAM_H 1
7951 # ifdef _SC_PAGESIZE
7952 # define getpagesize() sysconf(_SC_PAGESIZE)
7953 # else /* no _SC_PAGESIZE */
7954 # if HAVE_SYS_PARAM_H
7955 # include <sys/param.h>
7956 # ifdef EXEC_PAGESIZE
7957 # define getpagesize() EXEC_PAGESIZE
7958 # else /* no EXEC_PAGESIZE */
7960 # define getpagesize() NBPG * CLSIZE
7963 # endif /* no CLSIZE */
7964 # else /* no NBPG */
7966 # define getpagesize() NBPC
7967 # else /* no NBPC */
7969 # define getpagesize() PAGESIZE
7970 # endif /* PAGESIZE */
7971 # endif /* no NBPC */
7972 # endif /* no NBPG */
7973 # endif /* no EXEC_PAGESIZE */
7974 # else /* no HAVE_SYS_PARAM_H */
7975 # define getpagesize() 8192 /* punt totally */
7976 # endif /* no HAVE_SYS_PARAM_H */
7977 # endif /* no _SC_PAGESIZE */
7979 #endif /* no HAVE_GETPAGESIZE */
7984 char *data, *data2, *data3;
7988 pagesize = getpagesize ();
7990 /* First, make a file with some known garbage in it. */
7991 data = (char *) malloc (pagesize);
7994 for (i = 0; i < pagesize; ++i)
7995 *(data + i) = rand ();
7997 fd = creat ("conftest.mmap", 0600);
8000 if (write (fd, data, pagesize) != pagesize)
8004 /* Next, try to mmap the file at a fixed address which already has
8005 something else allocated at it. If we can, also make sure that
8006 we see the same garbage. */
8007 fd = open ("conftest.mmap", O_RDWR);
8010 data2 = (char *) malloc (2 * pagesize);
8013 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8014 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8015 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8017 for (i = 0; i < pagesize; ++i)
8018 if (*(data + i) != *(data2 + i))
8021 /* Finally, make sure that changes to the mapped area do not
8022 percolate back to the file as seen by read(). (This is a bug on
8023 some variants of i386 svr4.0.) */
8024 for (i = 0; i < pagesize; ++i)
8025 *(data2 + i) = *(data2 + i) + 1;
8026 data3 = (char *) malloc (pagesize);
8029 if (read (fd, data3, pagesize) != pagesize)
8031 for (i = 0; i < pagesize; ++i)
8032 if (*(data + i) != *(data3 + i))
8038 rm -f conftest$ac_exeext
8039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8040 (eval $ac_link) 2>&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); } && { ac_try='./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 ac_cv_func_mmap_fixed_mapped=yes
8051 echo "$as_me: program exited with status $ac_status" >&5
8052 echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8056 ac_cv_func_mmap_fixed_mapped=no
8058 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8061 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8062 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8063 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8065 cat >>confdefs.h <<\_ACEOF
8081 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
8082 unistd.h sys/param.h
8084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8086 echo "$as_me:$LINENO: checking for $ac_header" >&5
8087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8094 # Is the header compilable?
8095 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8097 cat >conftest.$ac_ext <<_ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 $ac_includes_default
8104 #include <$ac_header>
8106 rm -f conftest.$ac_objext
8107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8108 (eval $ac_compile) 2>conftest.er1
8110 grep -v '^ *+' conftest.er1 >conftest.err
8112 cat conftest.err >&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); } &&
8115 { ac_try='test -z "$ac_c_werror_flag"
8116 || test ! -s conftest.err'
8117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; } &&
8122 { ac_try='test -s conftest.$ac_objext'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; }; then
8128 ac_header_compiler=yes
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8133 ac_header_compiler=no
8135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8136 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8137 echo "${ECHO_T}$ac_header_compiler" >&6
8139 # Is the header present?
8140 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8142 cat >conftest.$ac_ext <<_ACEOF
8145 cat confdefs.h >>conftest.$ac_ext
8146 cat >>conftest.$ac_ext <<_ACEOF
8147 /* end confdefs.h. */
8148 #include <$ac_header>
8150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8153 grep -v '^ *+' conftest.er1 >conftest.err
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } >/dev/null; then
8158 if test -s conftest.err; then
8159 ac_cpp_err=$ac_c_preproc_warn_flag
8160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8167 if test -z "$ac_cpp_err"; then
8168 ac_header_preproc=yes
8170 echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8173 ac_header_preproc=no
8175 rm -f conftest.err conftest.$ac_ext
8176 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8177 echo "${ECHO_T}$ac_header_preproc" >&6
8179 # So? What about this header?
8180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8182 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8183 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8185 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8186 ac_header_preproc=yes
8189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8193 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8194 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8195 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8196 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8199 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8200 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8203 ## ------------------------------------------ ##
8204 ## Report this to the AC_PACKAGE_NAME lists. ##
8205 ## ------------------------------------------ ##
8208 sed "s/^/$as_me: WARNING: /" >&2
8211 echo "$as_me:$LINENO: checking for $ac_header" >&5
8212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
8216 eval "$as_ac_Header=\$ac_header_preproc"
8218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8223 cat >>confdefs.h <<_ACEOF
8224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8242 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
8243 strdup __argz_count __argz_stringify __argz_next
8245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8246 echo "$as_me:$LINENO: checking for $ac_func" >&5
8247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8248 if eval "test \"\${$as_ac_var+set}\" = set"; then
8249 echo $ECHO_N "(cached) $ECHO_C" >&6
8251 cat >conftest.$ac_ext <<_ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h. */
8257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8259 #define $ac_func innocuous_$ac_func
8261 /* System header to define __stub macros and hopefully few prototypes,
8262 which can conflict with char $ac_func (); below.
8263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8264 <limits.h> exists even on freestanding compilers. */
8267 # include <limits.h>
8269 # include <assert.h>
8274 /* Override any gcc2 internal prototype to avoid an error. */
8279 /* We use char because int might match the return type of a gcc2
8280 builtin and then its argument prototype would still apply. */
8282 /* The GNU C library defines this for functions which it implements
8283 to always fail with ENOSYS. Some functions are actually named
8284 something starting with __ and the normal name is an alias. */
8285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8288 char (*f) () = $ac_func;
8297 return f != $ac_func;
8302 rm -f conftest.$ac_objext conftest$ac_exeext
8303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8304 (eval $ac_link) 2>conftest.er1
8306 grep -v '^ *+' conftest.er1 >conftest.err
8308 cat conftest.err >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } &&
8311 { ac_try='test -z "$ac_c_werror_flag"
8312 || test ! -s conftest.err'
8313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; } &&
8318 { ac_try='test -s conftest$ac_exeext'
8319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; }; then
8324 eval "$as_ac_var=yes"
8326 echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8329 eval "$as_ac_var=no"
8331 rm -f conftest.err conftest.$ac_objext \
8332 conftest$ac_exeext conftest.$ac_ext
8334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8336 if test `eval echo '${'$as_ac_var'}'` = yes; then
8337 cat >>confdefs.h <<_ACEOF
8338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8345 if test $ac_cv_header_locale_h = yes; then
8346 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8347 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8348 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 cat >conftest.$ac_ext <<_ACEOF
8354 cat confdefs.h >>conftest.$ac_ext
8355 cat >>conftest.$ac_ext <<_ACEOF
8356 /* end confdefs.h. */
8366 rm -f conftest.$ac_objext conftest$ac_exeext
8367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8368 (eval $ac_link) 2>conftest.er1
8370 grep -v '^ *+' conftest.er1 >conftest.err
8372 cat conftest.err >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); } &&
8375 { ac_try='test -z "$ac_c_werror_flag"
8376 || test ! -s conftest.err'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; } &&
8382 { ac_try='test -s conftest$ac_exeext'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
8388 am_cv_val_LC_MESSAGES=yes
8390 echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8393 am_cv_val_LC_MESSAGES=no
8395 rm -f conftest.err conftest.$ac_objext \
8396 conftest$ac_exeext conftest.$ac_ext
8398 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8399 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8400 if test $am_cv_val_LC_MESSAGES = yes; then
8402 cat >>confdefs.h <<\_ACEOF
8403 #define HAVE_LC_MESSAGES 1
8411 nls_cv_force_use_gnu_gettext="no"
8413 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8414 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8416 nls_cv_header_libgt=
8419 if test "${ac_cv_header_libintl_h+set}" = set; then
8420 echo "$as_me:$LINENO: checking for libintl.h" >&5
8421 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8422 if test "${ac_cv_header_libintl_h+set}" = set; then
8423 echo $ECHO_N "(cached) $ECHO_C" >&6
8425 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8426 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8428 # Is the header compilable?
8429 echo "$as_me:$LINENO: checking libintl.h usability" >&5
8430 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
8431 cat >conftest.$ac_ext <<_ACEOF
8434 cat confdefs.h >>conftest.$ac_ext
8435 cat >>conftest.$ac_ext <<_ACEOF
8436 /* end confdefs.h. */
8437 $ac_includes_default
8438 #include <libintl.h>
8440 rm -f conftest.$ac_objext
8441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8442 (eval $ac_compile) 2>conftest.er1
8444 grep -v '^ *+' conftest.er1 >conftest.err
8446 cat conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } &&
8449 { ac_try='test -z "$ac_c_werror_flag"
8450 || test ! -s conftest.err'
8451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; } &&
8456 { ac_try='test -s conftest.$ac_objext'
8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; }; then
8462 ac_header_compiler=yes
8464 echo "$as_me: failed program was:" >&5
8465 sed 's/^/| /' conftest.$ac_ext >&5
8467 ac_header_compiler=no
8469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8471 echo "${ECHO_T}$ac_header_compiler" >&6
8473 # Is the header present?
8474 echo "$as_me:$LINENO: checking libintl.h presence" >&5
8475 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
8476 cat >conftest.$ac_ext <<_ACEOF
8479 cat confdefs.h >>conftest.$ac_ext
8480 cat >>conftest.$ac_ext <<_ACEOF
8481 /* end confdefs.h. */
8482 #include <libintl.h>
8484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8487 grep -v '^ *+' conftest.er1 >conftest.err
8489 cat conftest.err >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } >/dev/null; then
8492 if test -s conftest.err; then
8493 ac_cpp_err=$ac_c_preproc_warn_flag
8494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8501 if test -z "$ac_cpp_err"; then
8502 ac_header_preproc=yes
8504 echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8507 ac_header_preproc=no
8509 rm -f conftest.err conftest.$ac_ext
8510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8511 echo "${ECHO_T}$ac_header_preproc" >&6
8513 # So? What about this header?
8514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8516 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8517 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8518 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
8519 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
8520 ac_header_preproc=yes
8523 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
8524 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
8525 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8526 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8527 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
8528 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
8529 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
8530 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
8531 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8532 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
8533 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
8534 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
8537 ## ------------------------------------------ ##
8538 ## Report this to the AC_PACKAGE_NAME lists. ##
8539 ## ------------------------------------------ ##
8542 sed "s/^/$as_me: WARNING: /" >&2
8545 echo "$as_me:$LINENO: checking for libintl.h" >&5
8546 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8547 if test "${ac_cv_header_libintl_h+set}" = set; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 ac_cv_header_libintl_h=$ac_header_preproc
8552 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8553 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8556 if test $ac_cv_header_libintl_h = yes; then
8557 echo "$as_me:$LINENO: checking for dgettext in libc" >&5
8558 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
8559 if test "${gt_cv_func_dgettext_libc+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 cat >conftest.$ac_ext <<_ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h. */
8568 #include <libintl.h>
8572 return (int) dgettext ("","")
8577 rm -f conftest.$ac_objext conftest$ac_exeext
8578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8579 (eval $ac_link) 2>conftest.er1
8581 grep -v '^ *+' conftest.er1 >conftest.err
8583 cat conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } &&
8586 { ac_try='test -z "$ac_c_werror_flag"
8587 || test ! -s conftest.err'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; } &&
8593 { ac_try='test -s conftest$ac_exeext'
8594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; }; then
8599 gt_cv_func_dgettext_libc=yes
8601 echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8604 gt_cv_func_dgettext_libc=no
8606 rm -f conftest.err conftest.$ac_objext \
8607 conftest$ac_exeext conftest.$ac_ext
8609 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
8610 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
8612 if test "$gt_cv_func_dgettext_libc" != "yes"; then
8613 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
8614 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
8615 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
8618 ac_check_lib_save_LIBS=$LIBS
8620 cat >conftest.$ac_ext <<_ACEOF
8623 cat confdefs.h >>conftest.$ac_ext
8624 cat >>conftest.$ac_ext <<_ACEOF
8625 /* end confdefs.h. */
8627 /* Override any gcc2 internal prototype to avoid an error. */
8631 /* We use char because int might match the return type of a gcc2
8632 builtin and then its argument prototype would still apply. */
8633 char bindtextdomain ();
8642 rm -f conftest.$ac_objext conftest$ac_exeext
8643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8644 (eval $ac_link) 2>conftest.er1
8646 grep -v '^ *+' conftest.er1 >conftest.err
8648 cat conftest.err >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } &&
8651 { ac_try='test -z "$ac_c_werror_flag"
8652 || test ! -s conftest.err'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; } &&
8658 { ac_try='test -s conftest$ac_exeext'
8659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; }; then
8664 ac_cv_lib_intl_bindtextdomain=yes
8666 echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.$ac_ext >&5
8669 ac_cv_lib_intl_bindtextdomain=no
8671 rm -f conftest.err conftest.$ac_objext \
8672 conftest$ac_exeext conftest.$ac_ext
8673 LIBS=$ac_check_lib_save_LIBS
8675 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8676 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
8677 if test $ac_cv_lib_intl_bindtextdomain = yes; then
8678 echo "$as_me:$LINENO: checking for dgettext in libintl" >&5
8679 echo $ECHO_N "checking for dgettext in libintl... $ECHO_C" >&6
8680 if test "${gt_cv_func_dgettext_libintl+set}" = set; then
8681 echo $ECHO_N "(cached) $ECHO_C" >&6
8683 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
8684 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
8685 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
8686 echo $ECHO_N "(cached) $ECHO_C" >&6
8688 ac_check_lib_save_LIBS=$LIBS
8690 cat >conftest.$ac_ext <<_ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h. */
8697 /* Override any gcc2 internal prototype to avoid an error. */
8701 /* We use char because int might match the return type of a gcc2
8702 builtin and then its argument prototype would still apply. */
8712 rm -f conftest.$ac_objext conftest$ac_exeext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8714 (eval $ac_link) 2>conftest.er1
8716 grep -v '^ *+' conftest.er1 >conftest.err
8718 cat conftest.err >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } &&
8721 { ac_try='test -z "$ac_c_werror_flag"
8722 || test ! -s conftest.err'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; } &&
8728 { ac_try='test -s conftest$ac_exeext'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; }; then
8734 ac_cv_lib_intl_dgettext=yes
8736 echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8739 ac_cv_lib_intl_dgettext=no
8741 rm -f conftest.err conftest.$ac_objext \
8742 conftest$ac_exeext conftest.$ac_ext
8743 LIBS=$ac_check_lib_save_LIBS
8745 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
8746 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
8747 if test $ac_cv_lib_intl_dgettext = yes; then
8748 gt_cv_func_dgettext_libintl=yes
8750 gt_cv_func_dgettext_libintl=no
8754 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libintl" >&5
8755 echo "${ECHO_T}$gt_cv_func_dgettext_libintl" >&6
8760 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
8761 LIBS="$LIBS -lintl";
8764 if test "$gt_cv_func_dgettext_libc" = "yes" \
8765 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
8767 cat >>confdefs.h <<\_ACEOF
8768 #define HAVE_GETTEXT 1
8771 # Extract the first word of "msgfmt", so it can be a program name with args.
8772 set dummy msgfmt; ac_word=$2
8773 echo "$as_me:$LINENO: checking for $ac_word" >&5
8774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8775 if test "${ac_cv_path_MSGFMT+set}" = set; then
8776 echo $ECHO_N "(cached) $ECHO_C" >&6
8780 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8784 for ac_dir in $PATH; do
8785 test -z "$ac_dir" && ac_dir=.
8786 if test -f $ac_dir/$ac_word; then
8787 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8788 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8794 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8798 MSGFMT="$ac_cv_path_MSGFMT"
8799 if test -n "$MSGFMT"; then
8800 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8801 echo "${ECHO_T}$MSGFMT" >&6
8803 echo "$as_me:$LINENO: result: no" >&5
8804 echo "${ECHO_T}no" >&6
8806 if test "$MSGFMT" != "no"; then
8808 for ac_func in dcgettext
8810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8811 echo "$as_me:$LINENO: checking for $ac_func" >&5
8812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8813 if eval "test \"\${$as_ac_var+set}\" = set"; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8816 cat >conftest.$ac_ext <<_ACEOF
8819 cat confdefs.h >>conftest.$ac_ext
8820 cat >>conftest.$ac_ext <<_ACEOF
8821 /* end confdefs.h. */
8822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8824 #define $ac_func innocuous_$ac_func
8826 /* System header to define __stub macros and hopefully few prototypes,
8827 which can conflict with char $ac_func (); below.
8828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8829 <limits.h> exists even on freestanding compilers. */
8832 # include <limits.h>
8834 # include <assert.h>
8839 /* Override any gcc2 internal prototype to avoid an error. */
8844 /* We use char because int might match the return type of a gcc2
8845 builtin and then its argument prototype would still apply. */
8847 /* The GNU C library defines this for functions which it implements
8848 to always fail with ENOSYS. Some functions are actually named
8849 something starting with __ and the normal name is an alias. */
8850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8853 char (*f) () = $ac_func;
8862 return f != $ac_func;
8867 rm -f conftest.$ac_objext conftest$ac_exeext
8868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8869 (eval $ac_link) 2>conftest.er1
8871 grep -v '^ *+' conftest.er1 >conftest.err
8873 cat conftest.err >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } &&
8876 { ac_try='test -z "$ac_c_werror_flag"
8877 || test ! -s conftest.err'
8878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; } &&
8883 { ac_try='test -s conftest$ac_exeext'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; }; then
8889 eval "$as_ac_var=yes"
8891 echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.$ac_ext >&5
8894 eval "$as_ac_var=no"
8896 rm -f conftest.err conftest.$ac_objext \
8897 conftest$ac_exeext conftest.$ac_ext
8899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8900 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8901 if test `eval echo '${'$as_ac_var'}'` = yes; then
8902 cat >>confdefs.h <<_ACEOF
8903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8909 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8910 set dummy gmsgfmt; ac_word=$2
8911 echo "$as_me:$LINENO: checking for $ac_word" >&5
8912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8913 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8914 echo $ECHO_N "(cached) $ECHO_C" >&6
8918 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8925 test -z "$as_dir" && as_dir=.
8926 for ac_exec_ext in '' $ac_executable_extensions; do
8927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8928 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8935 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8939 GMSGFMT=$ac_cv_path_GMSGFMT
8941 if test -n "$GMSGFMT"; then
8942 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8943 echo "${ECHO_T}$GMSGFMT" >&6
8945 echo "$as_me:$LINENO: result: no" >&5
8946 echo "${ECHO_T}no" >&6
8949 # Extract the first word of "xgettext", so it can be a program name with args.
8950 set dummy xgettext; ac_word=$2
8951 echo "$as_me:$LINENO: checking for $ac_word" >&5
8952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8953 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8954 echo $ECHO_N "(cached) $ECHO_C" >&6
8958 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8961 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8962 for ac_dir in $PATH; do
8963 test -z "$ac_dir" && ac_dir=.
8964 if test -f $ac_dir/$ac_word; then
8965 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8966 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8972 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8976 XGETTEXT="$ac_cv_path_XGETTEXT"
8977 if test -n "$XGETTEXT"; then
8978 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8979 echo "${ECHO_T}$XGETTEXT" >&6
8981 echo "$as_me:$LINENO: result: no" >&5
8982 echo "${ECHO_T}no" >&6
8985 cat >conftest.$ac_ext <<_ACEOF
8988 cat confdefs.h >>conftest.$ac_ext
8989 cat >>conftest.$ac_ext <<_ACEOF
8990 /* end confdefs.h. */
8995 extern int _nl_msg_cat_cntr;
8996 return _nl_msg_cat_cntr
9001 rm -f conftest.$ac_objext conftest$ac_exeext
9002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9003 (eval $ac_link) 2>conftest.er1
9005 grep -v '^ *+' conftest.er1 >conftest.err
9007 cat conftest.err >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); } &&
9010 { ac_try='test -z "$ac_c_werror_flag"
9011 || test ! -s conftest.err'
9012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; } &&
9017 { ac_try='test -s conftest$ac_exeext'
9018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); }; }; then
9026 echo "$as_me: failed program was:" >&5
9027 sed 's/^/| /' conftest.$ac_ext >&5
9032 rm -f conftest.err conftest.$ac_objext \
9033 conftest$ac_exeext conftest.$ac_ext
9038 # Added by Martin Baulig 12/15/98 for libc5 systems
9039 if test "$gt_cv_func_dgettext_libc" != "yes" \
9040 && test "$gt_cv_func_dgettext_libintl" = "yes"; then
9042 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
9049 if test "$CATOBJEXT" = "NONE"; then
9050 nls_cv_use_gnu_gettext=yes
9054 if test "$nls_cv_use_gnu_gettext" != "yes"; then
9056 cat >>confdefs.h <<\_ACEOF
9057 #define ENABLE_NLS 1
9064 if test "$XGETTEXT" != ":"; then
9065 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
9068 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
9069 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
9074 # We need to process the po/ directory.
9077 ac_config_commands="$ac_config_commands default-2"
9080 for lang in $ALL_LINGUAS; do
9081 GMOFILES="$GMOFILES $lang.gmo"
9082 POFILES="$POFILES $lang.po"
9097 if test "x$CATOBJEXT" != "x"; then
9098 if test "x$ALL_LINGUAS" = "x"; then
9101 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9102 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9104 for lang in ${LINGUAS=$ALL_LINGUAS}; do
9105 case "$ALL_LINGUAS" in
9106 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
9109 LINGUAS=$NEW_LINGUAS
9110 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9111 echo "${ECHO_T}$LINGUAS" >&6
9114 if test -n "$LINGUAS"; then
9115 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
9119 test -d po || mkdir po
9120 if test "$CATOBJEXT" = ".cat"; then
9121 if test "${ac_cv_header_linux_version_h+set}" = set; then
9122 echo "$as_me:$LINENO: checking for linux/version.h" >&5
9123 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9124 if test "${ac_cv_header_linux_version_h+set}" = set; then
9125 echo $ECHO_N "(cached) $ECHO_C" >&6
9127 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9128 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9130 # Is the header compilable?
9131 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
9132 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
9133 cat >conftest.$ac_ext <<_ACEOF
9136 cat confdefs.h >>conftest.$ac_ext
9137 cat >>conftest.$ac_ext <<_ACEOF
9138 /* end confdefs.h. */
9139 $ac_includes_default
9140 #include <linux/version.h>
9142 rm -f conftest.$ac_objext
9143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9144 (eval $ac_compile) 2>conftest.er1
9146 grep -v '^ *+' conftest.er1 >conftest.err
9148 cat conftest.err >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); } &&
9151 { ac_try='test -z "$ac_c_werror_flag"
9152 || test ! -s conftest.err'
9153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); }; } &&
9158 { ac_try='test -s conftest.$ac_objext'
9159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; }; then
9164 ac_header_compiler=yes
9166 echo "$as_me: failed program was:" >&5
9167 sed 's/^/| /' conftest.$ac_ext >&5
9169 ac_header_compiler=no
9171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9172 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9173 echo "${ECHO_T}$ac_header_compiler" >&6
9175 # Is the header present?
9176 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
9177 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
9178 cat >conftest.$ac_ext <<_ACEOF
9181 cat confdefs.h >>conftest.$ac_ext
9182 cat >>conftest.$ac_ext <<_ACEOF
9183 /* end confdefs.h. */
9184 #include <linux/version.h>
9186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9189 grep -v '^ *+' conftest.er1 >conftest.err
9191 cat conftest.err >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); } >/dev/null; then
9194 if test -s conftest.err; then
9195 ac_cpp_err=$ac_c_preproc_warn_flag
9196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9203 if test -z "$ac_cpp_err"; then
9204 ac_header_preproc=yes
9206 echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.$ac_ext >&5
9209 ac_header_preproc=no
9211 rm -f conftest.err conftest.$ac_ext
9212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9213 echo "${ECHO_T}$ac_header_preproc" >&6
9215 # So? What about this header?
9216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9218 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
9219 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9220 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
9221 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
9222 ac_header_preproc=yes
9225 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
9226 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
9227 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
9228 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
9229 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
9230 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
9231 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
9232 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
9233 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
9234 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
9235 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
9236 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
9239 ## ------------------------------------------ ##
9240 ## Report this to the AC_PACKAGE_NAME lists. ##
9241 ## ------------------------------------------ ##
9244 sed "s/^/$as_me: WARNING: /" >&2
9247 echo "$as_me:$LINENO: checking for linux/version.h" >&5
9248 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9249 if test "${ac_cv_header_linux_version_h+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9252 ac_cv_header_linux_version_h=$ac_header_preproc
9254 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9255 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9258 if test $ac_cv_header_linux_version_h = yes; then
9266 sed -e '/^#/d' $srcdir/po/$msgformat-msg.sed > po/po2msg.sed
9271 # jwz: fuck this! it puts hardcoded pathnames into the generated Makefiles!
9273 # if test -n "$ac_aux_dir"; then
9274 # MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
9276 if test -z "$MKINSTALLDIRS"; then
9277 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
9280 # jwz: you know what, screw it. Let's just use the version that I
9281 # already computed in configure.in, instead of this version that came
9282 # with the i18n crud, ok?
9283 MKINSTALLDIRS="$INSTALL_DIRS"
9288 test -d po || mkdir po
9289 if test "x$srcdir" != "x."; then
9290 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
9291 posrcprefix="$srcdir/"
9293 posrcprefix="../$srcdir/"
9299 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
9300 < $srcdir/po/POTFILES.in > po/POTFILES
9302 MKINSTALLDIRS="$INSTALL_DIRS"
9305 ###############################################################################
9307 # Check for -lXmu (some fucked up vendors don't ship it...)
9309 ###############################################################################
9313 ac_save_CPPFLAGS="$CPPFLAGS"
9314 if test \! -z "$includedir" ; then
9315 CPPFLAGS="$CPPFLAGS -I$includedir"
9317 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9318 echo "$as_me:$LINENO: checking for X11/Xmu/Error.h" >&5
9319 echo $ECHO_N "checking for X11/Xmu/Error.h... $ECHO_C" >&6
9320 if test "${ac_cv_header_X11_Xmu_Error_h+set}" = set; then
9321 echo $ECHO_N "(cached) $ECHO_C" >&6
9323 cat >conftest.$ac_ext <<_ACEOF
9326 cat confdefs.h >>conftest.$ac_ext
9327 cat >>conftest.$ac_ext <<_ACEOF
9328 /* end confdefs.h. */
9331 #include <X11/Intrinsic.h>
9333 #include <X11/Xmu/Error.h>
9335 rm -f conftest.$ac_objext
9336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9337 (eval $ac_compile) 2>conftest.er1
9339 grep -v '^ *+' conftest.er1 >conftest.err
9341 cat conftest.err >&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); } &&
9344 { ac_try='test -z "$ac_c_werror_flag"
9345 || test ! -s conftest.err'
9346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }; } &&
9351 { ac_try='test -s conftest.$ac_objext'
9352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; }; then
9357 ac_cv_header_X11_Xmu_Error_h=yes
9359 echo "$as_me: failed program was:" >&5
9360 sed 's/^/| /' conftest.$ac_ext >&5
9362 ac_cv_header_X11_Xmu_Error_h=no
9364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9366 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xmu_Error_h" >&5
9367 echo "${ECHO_T}$ac_cv_header_X11_Xmu_Error_h" >&6
9368 if test $ac_cv_header_X11_Xmu_Error_h = yes; then
9373 CPPFLAGS="$ac_save_CPPFLAGS"
9374 if test "$have_xmu" = no ; then
9375 XMU_SRCS='$(UTILS_SRC)/xmu.c'
9376 XMU_OBJS='$(UTILS_BIN)/xmu.o'
9382 cat >>confdefs.h <<\_ACEOF
9389 ###############################################################################
9391 # Check for the SunOS 4.1.x _get_wmShellWidgetClass bug.
9392 # See comp.windows.x FAQ question 124. The right fix is to
9393 # get OpenWindows 3.0 patches 100512-02 and 100573-03.
9395 ###############################################################################
9397 if test "$have_xmu" = yes ; then
9400 echo "$as_me:$LINENO: checking for the SunOS 4.1.x _get_wmShellWidgetClass bug" >&5
9401 echo $ECHO_N "checking for the SunOS 4.1.x _get_wmShellWidgetClass bug... $ECHO_C" >&6
9402 if test "${ac_cv_sunos_xmu_bug+set}" = set; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
9405 ac_save_LDFLAGS="$LDFLAGS"
9406 if test \! -z "$x_libraries" ; then
9407 LDFLAGS="$LDFLAGS -L$x_libraries"
9409 # Note: this trick never works! (Generally.)
9410 # We're only getting away with using AC_TRY_LINK
9411 # with X libraries because we know it's SunOS.
9412 LDFLAGS="$LDFLAGS -lXmu -lXt -lX11 -lXext -lm"
9413 cat >conftest.$ac_ext <<_ACEOF
9416 cat confdefs.h >>conftest.$ac_ext
9417 cat >>conftest.$ac_ext <<_ACEOF
9418 /* end confdefs.h. */
9428 rm -f conftest.$ac_objext conftest$ac_exeext
9429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9430 (eval $ac_link) 2>conftest.er1
9432 grep -v '^ *+' conftest.er1 >conftest.err
9434 cat conftest.err >&5
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } &&
9437 { ac_try='test -z "$ac_c_werror_flag"
9438 || test ! -s conftest.err'
9439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); }; } &&
9444 { ac_try='test -s conftest$ac_exeext'
9445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); }; }; then
9450 ac_cv_sunos_xmu_bug=no
9452 echo "$as_me: failed program was:" >&5
9453 sed 's/^/| /' conftest.$ac_ext >&5
9455 ac_cv_sunos_xmu_bug=yes
9457 rm -f conftest.err conftest.$ac_objext \
9458 conftest$ac_exeext conftest.$ac_ext
9459 LDFLAGS="$ac_save_LDFLAGS"
9461 echo "$as_me:$LINENO: result: $ac_cv_sunos_xmu_bug" >&5
9462 echo "${ECHO_T}$ac_cv_sunos_xmu_bug" >&6
9463 if test "$ac_cv_sunos_xmu_bug" = yes ; then
9464 echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
9465 echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
9466 if test "${ac_cv_ld_static+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9469 ac_save_LDFLAGS="$LDFLAGS"
9470 LDFLAGS="$LDFLAGS -static"
9471 cat >conftest.$ac_ext <<_ACEOF
9474 cat confdefs.h >>conftest.$ac_ext
9475 cat >>conftest.$ac_ext <<_ACEOF
9476 /* end confdefs.h. */
9486 rm -f conftest.$ac_objext conftest$ac_exeext
9487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9488 (eval $ac_link) 2>conftest.er1
9490 grep -v '^ *+' conftest.er1 >conftest.err
9492 cat conftest.err >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } &&
9495 { ac_try='test -z "$ac_c_werror_flag"
9496 || test ! -s conftest.err'
9497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; } &&
9502 { ac_try='test -s conftest$ac_exeext'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; }; then
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9515 rm -f conftest.err conftest.$ac_objext \
9516 conftest$ac_exeext conftest.$ac_ext
9517 LDFLAGS="$ac_save_LDFLAGS"
9519 echo "$as_me:$LINENO: result: $ac_cv_ld_static" >&5
9520 echo "${ECHO_T}$ac_cv_ld_static" >&6
9521 if test "$ac_cv_ld_static" = yes ; then
9522 LDFLAGS="$LDFLAGS -static"
9524 LDFLAGS="$LDFLAGS -Bstatic"
9532 ###############################################################################
9534 # Handle the --with-hackdir option
9536 ###############################################################################
9539 with_hackdir_req=unspecified
9541 # Check whether --with-hackdir or --without-hackdir was given.
9542 if test "${with_hackdir+set}" = set; then
9543 withval="$with_hackdir"
9544 with_hackdir="$withval"; with_hackdir_req="$withval"
9549 if test x"$with_hackdir" = xyes; then
9550 HACKDIR='${libexecdir}/xscreensaver'
9551 elif test x"$with_hackdir" = xno; then
9554 HACKDIR=$with_hackdir
9557 # canonicalize slashes.
9558 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
9560 # This option used to be called --enable-subdir; make sure that is no longer
9561 # used, since configure brain-damagedly ignores unknown --enable options.
9564 # Check whether --enable-subdir or --disable-subdir was given.
9565 if test "${enable_subdir+set}" = set; then
9566 enableval="$enable_subdir"
9569 if test -n "$obsolete_enable"; then
9570 echo "error: the --enable-subdir option has been replaced with"
9571 echo " the new --with-hackdir option; see \`configure --help'"
9572 echo " for more information."
9577 ###############################################################################
9579 # Handle the --with-configdir option
9581 ###############################################################################
9584 with_configdir_req=unspecified
9586 # Check whether --with-configdir or --without-configdir was given.
9587 if test "${with_configdir+set}" = set; then
9588 withval="$with_configdir"
9589 with_configdir="$withval"; with_configdir_req="$withval"
9594 if test x"$with_configdir" = xyes; then
9595 HACK_CONF_DIR='${datadir}/xscreensaver/config'
9596 elif test x"$with_configdir" = xno; then
9597 echo "error: must be yes, or a pathname: --with-configdir=$with_configdir"
9600 # there must be a better way than this...
9601 if test -z "`echo $with_configdir | sed 's@^/.*@@'`" ; then
9603 HACK_CONF_DIR=$with_configdir
9606 HACK_CONF_DIR="\${exec_prefix}$with_configdir"
9613 ###############################################################################
9615 # Check for the SGI SCREEN_SAVER server extension.
9617 ###############################################################################
9620 with_sgi_req=unspecified
9622 # Check whether --with-sgi-ext or --without-sgi-ext was given.
9623 if test "${with_sgi_ext+set}" = set; then
9624 withval="$with_sgi_ext"
9625 with_sgi="$withval"; with_sgi_req="$withval"
9636 echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER headers" >&5
9637 echo $ECHO_N "checking for SGI SCREEN_SAVER headers... $ECHO_C" >&6
9640 X_CFLAGS="-I$d $X_CFLAGS"
9641 echo "$as_me:$LINENO: result: $d" >&5
9642 echo "${ECHO_T}$d" >&6
9644 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9645 echo "${ECHO_T}not found ($d: no such directory)" >&6
9648 echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER libs" >&5
9649 echo $ECHO_N "checking for SGI SCREEN_SAVER libs... $ECHO_C" >&6
9652 X_LIBS="-L$d $X_LIBS"
9653 echo "$as_me:$LINENO: result: $d" >&5
9654 echo "${ECHO_T}$d" >&6
9656 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9657 echo "${ECHO_T}not found ($d: no such directory)" >&6
9660 # replace the directory string with "yes".
9662 with_sgi=$with_sgi_req
9667 echo "error: argument to --with-sgi-ext must be \"yes\", \"no\", or a directory."
9668 echo " If it is a directory, then \`DIR/include' will be added to"
9669 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9675 if test "$with_sgi" = yes; then
9677 ac_save_CPPFLAGS="$CPPFLAGS"
9678 if test \! -z "$includedir" ; then
9679 CPPFLAGS="$CPPFLAGS -I$includedir"
9681 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9682 echo "$as_me:$LINENO: checking for X11/extensions/XScreenSaver.h" >&5
9683 echo $ECHO_N "checking for X11/extensions/XScreenSaver.h... $ECHO_C" >&6
9684 if test "${ac_cv_header_X11_extensions_XScreenSaver_h+set}" = set; then
9685 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 cat >conftest.$ac_ext <<_ACEOF
9690 cat confdefs.h >>conftest.$ac_ext
9691 cat >>conftest.$ac_ext <<_ACEOF
9692 /* end confdefs.h. */
9693 #include <X11/Xlib.h>
9695 #include <X11/extensions/XScreenSaver.h>
9697 rm -f conftest.$ac_objext
9698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9699 (eval $ac_compile) 2>conftest.er1
9701 grep -v '^ *+' conftest.er1 >conftest.err
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } &&
9706 { ac_try='test -z "$ac_c_werror_flag"
9707 || test ! -s conftest.err'
9708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); }; } &&
9713 { ac_try='test -s conftest.$ac_objext'
9714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; }; then
9719 ac_cv_header_X11_extensions_XScreenSaver_h=yes
9721 echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9724 ac_cv_header_X11_extensions_XScreenSaver_h=no
9726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9728 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XScreenSaver_h" >&5
9729 echo "${ECHO_T}$ac_cv_header_X11_extensions_XScreenSaver_h" >&6
9730 if test $ac_cv_header_X11_extensions_XScreenSaver_h = yes; then
9732 cat >>confdefs.h <<\_ACEOF
9733 #define HAVE_SGI_SAVER_EXTENSION 1
9739 CPPFLAGS="$ac_save_CPPFLAGS"
9741 elif test "$with_sgi" != no; then
9742 echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
9747 ###############################################################################
9749 # Check for the XIDLE server extension.
9751 ###############################################################################
9754 with_xidle_req=unspecified
9756 # Check whether --with-xidle-ext or --without-xidle-ext was given.
9757 if test "${with_xidle_ext+set}" = set; then
9758 withval="$with_xidle_ext"
9759 with_xidle="$withval"; with_xidle_req="$withval"
9765 case "$with_xidle" in
9770 echo "$as_me:$LINENO: checking for XIDLE headers" >&5
9771 echo $ECHO_N "checking for XIDLE headers... $ECHO_C" >&6
9772 d=$with_xidle/include
9774 X_CFLAGS="-I$d $X_CFLAGS"
9775 echo "$as_me:$LINENO: result: $d" >&5
9776 echo "${ECHO_T}$d" >&6
9778 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9779 echo "${ECHO_T}not found ($d: no such directory)" >&6
9782 echo "$as_me:$LINENO: checking for XIDLE libs" >&5
9783 echo $ECHO_N "checking for XIDLE libs... $ECHO_C" >&6
9786 X_LIBS="-L$d $X_LIBS"
9787 echo "$as_me:$LINENO: result: $d" >&5
9788 echo "${ECHO_T}$d" >&6
9790 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9791 echo "${ECHO_T}not found ($d: no such directory)" >&6
9794 # replace the directory string with "yes".
9795 with_xidle_req="yes"
9796 with_xidle=$with_xidle_req
9801 echo "error: argument to --with-xidle-ext must be \"yes\", \"no\", or a directory."
9802 echo " If it is a directory, then \`DIR/include' will be added to"
9803 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9809 if test "$with_xidle" = yes; then
9811 ac_save_CPPFLAGS="$CPPFLAGS"
9812 if test \! -z "$includedir" ; then
9813 CPPFLAGS="$CPPFLAGS -I$includedir"
9815 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9816 echo "$as_me:$LINENO: checking for X11/extensions/xidle.h" >&5
9817 echo $ECHO_N "checking for X11/extensions/xidle.h... $ECHO_C" >&6
9818 if test "${ac_cv_header_X11_extensions_xidle_h+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 cat >conftest.$ac_ext <<_ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9827 #include <X11/Xlib.h>
9829 #include <X11/extensions/xidle.h>
9831 rm -f conftest.$ac_objext
9832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9833 (eval $ac_compile) 2>conftest.er1
9835 grep -v '^ *+' conftest.er1 >conftest.err
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
9840 { ac_try='test -z "$ac_c_werror_flag"
9841 || test ! -s conftest.err'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; } &&
9847 { ac_try='test -s conftest.$ac_objext'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
9853 ac_cv_header_X11_extensions_xidle_h=yes
9855 echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9858 ac_cv_header_X11_extensions_xidle_h=no
9860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9862 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xidle_h" >&5
9863 echo "${ECHO_T}$ac_cv_header_X11_extensions_xidle_h" >&6
9864 if test $ac_cv_header_X11_extensions_xidle_h = yes; then
9866 cat >>confdefs.h <<\_ACEOF
9867 #define HAVE_XIDLE_EXTENSION 1
9873 CPPFLAGS="$ac_save_CPPFLAGS"
9874 elif test "$with_xidle" != no; then
9875 echo "error: must be yes or no: --with-xidle-ext=$with_xidle"
9880 ###############################################################################
9882 # Check for the SGI-VIDEO-CONTROL server extension.
9884 ###############################################################################
9887 with_sgivc_req=unspecified
9889 # Check whether --with-sgivc-ext or --without-sgivc-ext was given.
9890 if test "${with_sgivc_ext+set}" = set; then
9891 withval="$with_sgivc_ext"
9892 with_sgivc="$withval"; with_sgivc_req="$withval"
9898 case "$with_sgivc" in
9903 echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL headers" >&5
9904 echo $ECHO_N "checking for SGI-VIDEO-CONTROL headers... $ECHO_C" >&6
9905 d=$with_sgivc/include
9907 X_CFLAGS="-I$d $X_CFLAGS"
9908 echo "$as_me:$LINENO: result: $d" >&5
9909 echo "${ECHO_T}$d" >&6
9911 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9912 echo "${ECHO_T}not found ($d: no such directory)" >&6
9915 echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL libs" >&5
9916 echo $ECHO_N "checking for SGI-VIDEO-CONTROL libs... $ECHO_C" >&6
9919 X_LIBS="-L$d $X_LIBS"
9920 echo "$as_me:$LINENO: result: $d" >&5
9921 echo "${ECHO_T}$d" >&6
9923 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9924 echo "${ECHO_T}not found ($d: no such directory)" >&6
9927 # replace the directory string with "yes".
9928 with_sgivc_req="yes"
9929 with_sgivc=$with_sgivc_req
9934 echo "error: argument to --with-sgivc-ext must be \"yes\", \"no\", or a directory."
9935 echo " If it is a directory, then \`DIR/include' will be added to"
9936 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9942 if test "$with_sgivc" = yes; then
9944 # first check for XSGIvc.h
9946 ac_save_CPPFLAGS="$CPPFLAGS"
9947 if test \! -z "$includedir" ; then
9948 CPPFLAGS="$CPPFLAGS -I$includedir"
9950 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9951 echo "$as_me:$LINENO: checking for X11/extensions/XSGIvc.h" >&5
9952 echo $ECHO_N "checking for X11/extensions/XSGIvc.h... $ECHO_C" >&6
9953 if test "${ac_cv_header_X11_extensions_XSGIvc_h+set}" = set; then
9954 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 cat >conftest.$ac_ext <<_ACEOF
9959 cat confdefs.h >>conftest.$ac_ext
9960 cat >>conftest.$ac_ext <<_ACEOF
9961 /* end confdefs.h. */
9962 #include <X11/Xlib.h>
9964 #include <X11/extensions/XSGIvc.h>
9966 rm -f conftest.$ac_objext
9967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9968 (eval $ac_compile) 2>conftest.er1
9970 grep -v '^ *+' conftest.er1 >conftest.err
9972 cat conftest.err >&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); } &&
9975 { ac_try='test -z "$ac_c_werror_flag"
9976 || test ! -s conftest.err'
9977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; } &&
9982 { ac_try='test -s conftest.$ac_objext'
9983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; }; then
9988 ac_cv_header_X11_extensions_XSGIvc_h=yes
9990 echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9993 ac_cv_header_X11_extensions_XSGIvc_h=no
9995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9997 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XSGIvc_h" >&5
9998 echo "${ECHO_T}$ac_cv_header_X11_extensions_XSGIvc_h" >&6
9999 if test $ac_cv_header_X11_extensions_XSGIvc_h = yes; then
10004 CPPFLAGS="$ac_save_CPPFLAGS"
10006 # if that succeeded, then check for the -lXsgivc
10007 if test "$have_sgivc" = yes; then
10010 ac_save_CPPFLAGS="$CPPFLAGS"
10011 ac_save_LDFLAGS="$LDFLAGS"
10012 # ac_save_LIBS="$LIBS"
10014 if test \! -z "$includedir" ; then
10015 CPPFLAGS="$CPPFLAGS -I$includedir"
10017 # note: $X_CFLAGS includes $x_includes
10018 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10020 if test \! -z "$libdir" ; then
10021 LDFLAGS="$LDFLAGS -L$libdir"
10023 # note: $X_LIBS includes $x_libraries
10024 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10026 echo "$as_me:$LINENO: checking for XSGIvcQueryGammaMap in -lXsgivc" >&5
10027 echo $ECHO_N "checking for XSGIvcQueryGammaMap in -lXsgivc... $ECHO_C" >&6
10028 if test "${ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10031 ac_check_lib_save_LIBS=$LIBS
10032 LIBS="-lXsgivc -lXext -lX11 $LIBS"
10033 cat >conftest.$ac_ext <<_ACEOF
10036 cat confdefs.h >>conftest.$ac_ext
10037 cat >>conftest.$ac_ext <<_ACEOF
10038 /* end confdefs.h. */
10040 /* Override any gcc2 internal prototype to avoid an error. */
10044 /* We use char because int might match the return type of a gcc2
10045 builtin and then its argument prototype would still apply. */
10046 char XSGIvcQueryGammaMap ();
10050 XSGIvcQueryGammaMap ();
10055 rm -f conftest.$ac_objext conftest$ac_exeext
10056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10057 (eval $ac_link) 2>conftest.er1
10059 grep -v '^ *+' conftest.er1 >conftest.err
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } &&
10064 { ac_try='test -z "$ac_c_werror_flag"
10065 || test ! -s conftest.err'
10066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067 (eval $ac_try) 2>&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; } &&
10071 { ac_try='test -s conftest$ac_exeext'
10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073 (eval $ac_try) 2>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; }; then
10077 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=yes
10079 echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10082 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=no
10084 rm -f conftest.err conftest.$ac_objext \
10085 conftest$ac_exeext conftest.$ac_ext
10086 LIBS=$ac_check_lib_save_LIBS
10088 echo "$as_me:$LINENO: result: $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&5
10089 echo "${ECHO_T}$ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&6
10090 if test $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap = yes; then
10091 have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"
10096 CPPFLAGS="$ac_save_CPPFLAGS"
10097 LDFLAGS="$ac_save_LDFLAGS"
10098 # LIBS="$ac_save_LIBS"
10102 # if that succeeded, then we've really got it.
10103 if test "$have_sgivc" = yes; then
10104 cat >>confdefs.h <<\_ACEOF
10105 #define HAVE_SGI_VC_EXTENSION 1
10110 elif test "$with_sgivc" != no; then
10111 echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
10116 ###############################################################################
10118 # Check for the DPMS server extension.
10120 ###############################################################################
10123 with_dpms_req=unspecified
10125 # Check whether --with-dpms-ext or --without-dpms-ext was given.
10126 if test "${with_dpms_ext+set}" = set; then
10127 withval="$with_dpms_ext"
10128 with_dpms="$withval"; with_dpms_req="$withval"
10134 case "$with_dpms" in
10139 echo "$as_me:$LINENO: checking for DPMS headers" >&5
10140 echo $ECHO_N "checking for DPMS headers... $ECHO_C" >&6
10141 d=$with_dpms/include
10142 if test -d $d; then
10143 X_CFLAGS="-I$d $X_CFLAGS"
10144 echo "$as_me:$LINENO: result: $d" >&5
10145 echo "${ECHO_T}$d" >&6
10147 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10148 echo "${ECHO_T}not found ($d: no such directory)" >&6
10151 echo "$as_me:$LINENO: checking for DPMS libs" >&5
10152 echo $ECHO_N "checking for DPMS libs... $ECHO_C" >&6
10154 if test -d $d; then
10155 X_LIBS="-L$d $X_LIBS"
10156 echo "$as_me:$LINENO: result: $d" >&5
10157 echo "${ECHO_T}$d" >&6
10159 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10160 echo "${ECHO_T}not found ($d: no such directory)" >&6
10163 # replace the directory string with "yes".
10164 with_dpms_req="yes"
10165 with_dpms=$with_dpms_req
10170 echo "error: argument to --with-dpms-ext must be \"yes\", \"no\", or a directory."
10171 echo " If it is a directory, then \`DIR/include' will be added to"
10172 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10178 if test "$with_dpms" = yes; then
10180 # first check for dpms.h
10182 ac_save_CPPFLAGS="$CPPFLAGS"
10183 if test \! -z "$includedir" ; then
10184 CPPFLAGS="$CPPFLAGS -I$includedir"
10186 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10187 echo "$as_me:$LINENO: checking for X11/extensions/dpms.h" >&5
10188 echo $ECHO_N "checking for X11/extensions/dpms.h... $ECHO_C" >&6
10189 if test "${ac_cv_header_X11_extensions_dpms_h+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10192 cat >conftest.$ac_ext <<_ACEOF
10195 cat confdefs.h >>conftest.$ac_ext
10196 cat >>conftest.$ac_ext <<_ACEOF
10197 /* end confdefs.h. */
10198 #include <X11/Xlib.h>
10199 #include <X11/Xmd.h>
10201 #include <X11/extensions/dpms.h>
10203 rm -f conftest.$ac_objext
10204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10205 (eval $ac_compile) 2>conftest.er1
10207 grep -v '^ *+' conftest.er1 >conftest.err
10209 cat conftest.err >&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); } &&
10212 { ac_try='test -z "$ac_c_werror_flag"
10213 || test ! -s conftest.err'
10214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215 (eval $ac_try) 2>&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); }; } &&
10219 { ac_try='test -s conftest.$ac_objext'
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; }; then
10225 ac_cv_header_X11_extensions_dpms_h=yes
10227 echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10230 ac_cv_header_X11_extensions_dpms_h=no
10232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10234 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_dpms_h" >&5
10235 echo "${ECHO_T}$ac_cv_header_X11_extensions_dpms_h" >&6
10236 if test $ac_cv_header_X11_extensions_dpms_h = yes; then
10241 CPPFLAGS="$ac_save_CPPFLAGS"
10243 # if that succeeded, then check for the DPMS code in the libraries
10244 if test "$have_dpms" = yes; then
10246 # first look in -lXext (this is where it is with XFree86 4.0)
10249 ac_save_CPPFLAGS="$CPPFLAGS"
10250 ac_save_LDFLAGS="$LDFLAGS"
10251 # ac_save_LIBS="$LIBS"
10253 if test \! -z "$includedir" ; then
10254 CPPFLAGS="$CPPFLAGS -I$includedir"
10256 # note: $X_CFLAGS includes $x_includes
10257 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10259 if test \! -z "$libdir" ; then
10260 LDFLAGS="$LDFLAGS -L$libdir"
10262 # note: $X_LIBS includes $x_libraries
10263 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10265 echo "$as_me:$LINENO: checking for DPMSInfo in -lXext" >&5
10266 echo $ECHO_N "checking for DPMSInfo in -lXext... $ECHO_C" >&6
10267 if test "${ac_cv_lib_Xext_DPMSInfo+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 ac_check_lib_save_LIBS=$LIBS
10271 LIBS="-lXext -lXext -lX11 $LIBS"
10272 cat >conftest.$ac_ext <<_ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10279 /* Override any gcc2 internal prototype to avoid an error. */
10283 /* We use char because int might match the return type of a gcc2
10284 builtin and then its argument prototype would still apply. */
10294 rm -f conftest.$ac_objext conftest$ac_exeext
10295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10296 (eval $ac_link) 2>conftest.er1
10298 grep -v '^ *+' conftest.er1 >conftest.err
10300 cat conftest.err >&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } &&
10303 { ac_try='test -z "$ac_c_werror_flag"
10304 || test ! -s conftest.err'
10305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306 (eval $ac_try) 2>&5
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); }; } &&
10310 { ac_try='test -s conftest$ac_exeext'
10311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312 (eval $ac_try) 2>&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); }; }; then
10316 ac_cv_lib_Xext_DPMSInfo=yes
10318 echo "$as_me: failed program was:" >&5
10319 sed 's/^/| /' conftest.$ac_ext >&5
10321 ac_cv_lib_Xext_DPMSInfo=no
10323 rm -f conftest.err conftest.$ac_objext \
10324 conftest$ac_exeext conftest.$ac_ext
10325 LIBS=$ac_check_lib_save_LIBS
10327 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_DPMSInfo" >&5
10328 echo "${ECHO_T}$ac_cv_lib_Xext_DPMSInfo" >&6
10329 if test $ac_cv_lib_Xext_DPMSInfo = yes; then
10335 CPPFLAGS="$ac_save_CPPFLAGS"
10336 LDFLAGS="$ac_save_LDFLAGS"
10337 # LIBS="$ac_save_LIBS"
10340 # if that failed, look in -lXdpms (this is where it was in XFree86 3.x)
10341 if test "$have_dpms" = no; then
10343 ac_save_CPPFLAGS="$CPPFLAGS"
10344 ac_save_LDFLAGS="$LDFLAGS"
10345 # ac_save_LIBS="$LIBS"
10347 if test \! -z "$includedir" ; then
10348 CPPFLAGS="$CPPFLAGS -I$includedir"
10350 # note: $X_CFLAGS includes $x_includes
10351 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10353 if test \! -z "$libdir" ; then
10354 LDFLAGS="$LDFLAGS -L$libdir"
10356 # note: $X_LIBS includes $x_libraries
10357 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10359 echo "$as_me:$LINENO: checking for DPMSInfo in -lXdpms" >&5
10360 echo $ECHO_N "checking for DPMSInfo in -lXdpms... $ECHO_C" >&6
10361 if test "${ac_cv_lib_Xdpms_DPMSInfo+set}" = set; then
10362 echo $ECHO_N "(cached) $ECHO_C" >&6
10364 ac_check_lib_save_LIBS=$LIBS
10365 LIBS="-lXdpms -lXext -lX11 $LIBS"
10366 cat >conftest.$ac_ext <<_ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h. */
10373 /* Override any gcc2 internal prototype to avoid an error. */
10377 /* We use char because int might match the return type of a gcc2
10378 builtin and then its argument prototype would still apply. */
10388 rm -f conftest.$ac_objext conftest$ac_exeext
10389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10390 (eval $ac_link) 2>conftest.er1
10392 grep -v '^ *+' conftest.er1 >conftest.err
10394 cat conftest.err >&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } &&
10397 { ac_try='test -z "$ac_c_werror_flag"
10398 || test ! -s conftest.err'
10399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10400 (eval $ac_try) 2>&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); }; } &&
10404 { ac_try='test -s conftest$ac_exeext'
10405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406 (eval $ac_try) 2>&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; }; then
10410 ac_cv_lib_Xdpms_DPMSInfo=yes
10412 echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10415 ac_cv_lib_Xdpms_DPMSInfo=no
10417 rm -f conftest.err conftest.$ac_objext \
10418 conftest$ac_exeext conftest.$ac_ext
10419 LIBS=$ac_check_lib_save_LIBS
10421 echo "$as_me:$LINENO: result: $ac_cv_lib_Xdpms_DPMSInfo" >&5
10422 echo "${ECHO_T}$ac_cv_lib_Xdpms_DPMSInfo" >&6
10423 if test $ac_cv_lib_Xdpms_DPMSInfo = yes; then
10424 have_dpms=yes; XDPMS_LIBS="-lXdpms"
10429 CPPFLAGS="$ac_save_CPPFLAGS"
10430 LDFLAGS="$ac_save_LDFLAGS"
10431 # LIBS="$ac_save_LIBS"
10437 # if that succeeded, then we've really got it.
10438 if test "$have_dpms" = yes; then
10439 cat >>confdefs.h <<\_ACEOF
10440 #define HAVE_DPMS_EXTENSION 1
10445 elif test "$with_dpms" != no; then
10446 echo "error: must be yes or no: --with-dpms-ext=$with_dpms"
10451 ###############################################################################
10453 # Check for the XINERAMA server extension.
10455 ###############################################################################
10458 with_xinerama_req=unspecified
10460 # Check whether --with-xinerama-ext or --without-xinerama-ext was given.
10461 if test "${with_xinerama_ext+set}" = set; then
10462 withval="$with_xinerama_ext"
10463 with_xinerama="$withval"; with_xinerama_req="$withval"
10469 case "$with_xinerama" in
10474 echo "$as_me:$LINENO: checking for XINERAMA headers" >&5
10475 echo $ECHO_N "checking for XINERAMA headers... $ECHO_C" >&6
10476 d=$with_xinerama/include
10477 if test -d $d; then
10478 X_CFLAGS="-I$d $X_CFLAGS"
10479 echo "$as_me:$LINENO: result: $d" >&5
10480 echo "${ECHO_T}$d" >&6
10482 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10483 echo "${ECHO_T}not found ($d: no such directory)" >&6
10486 echo "$as_me:$LINENO: checking for XINERAMA libs" >&5
10487 echo $ECHO_N "checking for XINERAMA libs... $ECHO_C" >&6
10488 d=$with_xinerama/lib
10489 if test -d $d; then
10490 X_LIBS="-L$d $X_LIBS"
10491 echo "$as_me:$LINENO: result: $d" >&5
10492 echo "${ECHO_T}$d" >&6
10494 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10495 echo "${ECHO_T}not found ($d: no such directory)" >&6
10498 # replace the directory string with "yes".
10499 with_xinerama_req="yes"
10500 with_xinerama=$with_xinerama_req
10505 echo "error: argument to --with-xinerama-ext must be \"yes\", \"no\", or a directory."
10506 echo " If it is a directory, then \`DIR/include' will be added to"
10507 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10513 if test "$with_xinerama" = yes; then
10515 # first check for Xinerama.h
10517 ac_save_CPPFLAGS="$CPPFLAGS"
10518 if test \! -z "$includedir" ; then
10519 CPPFLAGS="$CPPFLAGS -I$includedir"
10521 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10522 echo "$as_me:$LINENO: checking for X11/extensions/Xinerama.h" >&5
10523 echo $ECHO_N "checking for X11/extensions/Xinerama.h... $ECHO_C" >&6
10524 if test "${ac_cv_header_X11_extensions_Xinerama_h+set}" = set; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10527 cat >conftest.$ac_ext <<_ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 #include <X11/Xlib.h>
10535 #include <X11/extensions/Xinerama.h>
10537 rm -f conftest.$ac_objext
10538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10539 (eval $ac_compile) 2>conftest.er1
10541 grep -v '^ *+' conftest.er1 >conftest.err
10543 cat conftest.err >&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } &&
10546 { ac_try='test -z "$ac_c_werror_flag"
10547 || test ! -s conftest.err'
10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; } &&
10553 { ac_try='test -s conftest.$ac_objext'
10554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555 (eval $ac_try) 2>&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; }; then
10559 ac_cv_header_X11_extensions_Xinerama_h=yes
10561 echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10564 ac_cv_header_X11_extensions_Xinerama_h=no
10566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10568 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xinerama_h" >&5
10569 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xinerama_h" >&6
10570 if test $ac_cv_header_X11_extensions_Xinerama_h = yes; then
10575 CPPFLAGS="$ac_save_CPPFLAGS"
10577 # if that succeeded, then check for the XINERAMA code in the libraries
10578 if test "$have_xinerama" = yes; then
10580 # first look in -lXext
10583 ac_save_CPPFLAGS="$CPPFLAGS"
10584 ac_save_LDFLAGS="$LDFLAGS"
10585 # ac_save_LIBS="$LIBS"
10587 if test \! -z "$includedir" ; then
10588 CPPFLAGS="$CPPFLAGS -I$includedir"
10590 # note: $X_CFLAGS includes $x_includes
10591 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10593 if test \! -z "$libdir" ; then
10594 LDFLAGS="$LDFLAGS -L$libdir"
10596 # note: $X_LIBS includes $x_libraries
10597 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10599 echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXext" >&5
10600 echo $ECHO_N "checking for XineramaQueryScreens in -lXext... $ECHO_C" >&6
10601 if test "${ac_cv_lib_Xext_XineramaQueryScreens+set}" = set; then
10602 echo $ECHO_N "(cached) $ECHO_C" >&6
10604 ac_check_lib_save_LIBS=$LIBS
10605 LIBS="-lXext -lXext -lX11 $LIBS"
10606 cat >conftest.$ac_ext <<_ACEOF
10609 cat confdefs.h >>conftest.$ac_ext
10610 cat >>conftest.$ac_ext <<_ACEOF
10611 /* end confdefs.h. */
10613 /* Override any gcc2 internal prototype to avoid an error. */
10617 /* We use char because int might match the return type of a gcc2
10618 builtin and then its argument prototype would still apply. */
10619 char XineramaQueryScreens ();
10623 XineramaQueryScreens ();
10628 rm -f conftest.$ac_objext conftest$ac_exeext
10629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10630 (eval $ac_link) 2>conftest.er1
10632 grep -v '^ *+' conftest.er1 >conftest.err
10634 cat conftest.err >&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); } &&
10637 { ac_try='test -z "$ac_c_werror_flag"
10638 || test ! -s conftest.err'
10639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640 (eval $ac_try) 2>&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; } &&
10644 { ac_try='test -s conftest$ac_exeext'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; }; then
10650 ac_cv_lib_Xext_XineramaQueryScreens=yes
10652 echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10655 ac_cv_lib_Xext_XineramaQueryScreens=no
10657 rm -f conftest.err conftest.$ac_objext \
10658 conftest$ac_exeext conftest.$ac_ext
10659 LIBS=$ac_check_lib_save_LIBS
10661 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XineramaQueryScreens" >&5
10662 echo "${ECHO_T}$ac_cv_lib_Xext_XineramaQueryScreens" >&6
10663 if test $ac_cv_lib_Xext_XineramaQueryScreens = yes; then
10669 CPPFLAGS="$ac_save_CPPFLAGS"
10670 LDFLAGS="$ac_save_LDFLAGS"
10671 # LIBS="$ac_save_LIBS"
10674 # if that failed, look in -lXinerama (this is where it is in XFree86 4.1.)
10675 if test "$have_xinerama" = no; then
10677 ac_save_CPPFLAGS="$CPPFLAGS"
10678 ac_save_LDFLAGS="$LDFLAGS"
10679 # ac_save_LIBS="$LIBS"
10681 if test \! -z "$includedir" ; then
10682 CPPFLAGS="$CPPFLAGS -I$includedir"
10684 # note: $X_CFLAGS includes $x_includes
10685 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10687 if test \! -z "$libdir" ; then
10688 LDFLAGS="$LDFLAGS -L$libdir"
10690 # note: $X_LIBS includes $x_libraries
10691 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10693 echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
10694 echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6
10695 if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
10698 ac_check_lib_save_LIBS=$LIBS
10699 LIBS="-lXinerama -lXext -lX11 $LIBS"
10700 cat >conftest.$ac_ext <<_ACEOF
10703 cat confdefs.h >>conftest.$ac_ext
10704 cat >>conftest.$ac_ext <<_ACEOF
10705 /* end confdefs.h. */
10707 /* Override any gcc2 internal prototype to avoid an error. */
10711 /* We use char because int might match the return type of a gcc2
10712 builtin and then its argument prototype would still apply. */
10713 char XineramaQueryScreens ();
10717 XineramaQueryScreens ();
10722 rm -f conftest.$ac_objext conftest$ac_exeext
10723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10724 (eval $ac_link) 2>conftest.er1
10726 grep -v '^ *+' conftest.er1 >conftest.err
10728 cat conftest.err >&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } &&
10731 { ac_try='test -z "$ac_c_werror_flag"
10732 || test ! -s conftest.err'
10733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734 (eval $ac_try) 2>&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; } &&
10738 { ac_try='test -s conftest$ac_exeext'
10739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740 (eval $ac_try) 2>&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); }; }; then
10744 ac_cv_lib_Xinerama_XineramaQueryScreens=yes
10746 echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10749 ac_cv_lib_Xinerama_XineramaQueryScreens=no
10751 rm -f conftest.err conftest.$ac_objext \
10752 conftest$ac_exeext conftest.$ac_ext
10753 LIBS=$ac_check_lib_save_LIBS
10755 echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
10756 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6
10757 if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then
10758 have_xinerama=yes; XINERAMA_LIBS="-lXinerama"
10763 CPPFLAGS="$ac_save_CPPFLAGS"
10764 LDFLAGS="$ac_save_LDFLAGS"
10765 # LIBS="$ac_save_LIBS"
10770 # if that succeeded, then we've really got it.
10771 if test "$have_xinerama" = yes; then
10772 cat >>confdefs.h <<\_ACEOF
10773 #define HAVE_XINERAMA 1
10778 elif test "$with_xinerama" != no; then
10779 echo "error: must be yes or no: --with-xinerama-ext=$with_xinerama"
10784 ###############################################################################
10786 # Check for the XF86VMODE server extension (for virtual screens.)
10788 ###############################################################################
10791 with_xf86vmode_req=unspecified
10793 # Check whether --with-xf86vmode-ext or --without-xf86vmode-ext was given.
10794 if test "${with_xf86vmode_ext+set}" = set; then
10795 withval="$with_xf86vmode_ext"
10796 with_xf86vmode="$withval"; with_xf86vmode_req="$withval"
10802 case "$with_xf86vmode" in
10807 echo "$as_me:$LINENO: checking for xf86vmode headers" >&5
10808 echo $ECHO_N "checking for xf86vmode headers... $ECHO_C" >&6
10809 d=$with_xf86vmode/include
10810 if test -d $d; then
10811 X_CFLAGS="-I$d $X_CFLAGS"
10812 echo "$as_me:$LINENO: result: $d" >&5
10813 echo "${ECHO_T}$d" >&6
10815 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10816 echo "${ECHO_T}not found ($d: no such directory)" >&6
10819 echo "$as_me:$LINENO: checking for xf86vmode libs" >&5
10820 echo $ECHO_N "checking for xf86vmode libs... $ECHO_C" >&6
10821 d=$with_xf86vmode/lib
10822 if test -d $d; then
10823 X_LIBS="-L$d $X_LIBS"
10824 echo "$as_me:$LINENO: result: $d" >&5
10825 echo "${ECHO_T}$d" >&6
10827 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10828 echo "${ECHO_T}not found ($d: no such directory)" >&6
10831 # replace the directory string with "yes".
10832 with_xf86vmode_req="yes"
10833 with_xf86vmode=$with_xf86vmode_req
10838 echo "error: argument to --with-xf86vmode-ext must be \"yes\", \"no\", or a directory."
10839 echo " If it is a directory, then \`DIR/include' will be added to"
10840 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10848 if test "$with_xf86vmode" = yes; then
10850 # first check for xf86vmode.h
10852 ac_save_CPPFLAGS="$CPPFLAGS"
10853 if test \! -z "$includedir" ; then
10854 CPPFLAGS="$CPPFLAGS -I$includedir"
10856 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10857 echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
10858 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6
10859 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 cat >conftest.$ac_ext <<_ACEOF
10865 cat confdefs.h >>conftest.$ac_ext
10866 cat >>conftest.$ac_ext <<_ACEOF
10867 /* end confdefs.h. */
10868 #include <X11/Xlib.h>
10870 #include <X11/extensions/xf86vmode.h>
10872 rm -f conftest.$ac_objext
10873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10874 (eval $ac_compile) 2>conftest.er1
10876 grep -v '^ *+' conftest.er1 >conftest.err
10878 cat conftest.err >&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); } &&
10881 { ac_try='test -z "$ac_c_werror_flag"
10882 || test ! -s conftest.err'
10883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10884 (eval $ac_try) 2>&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; } &&
10888 { ac_try='test -s conftest.$ac_objext'
10889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890 (eval $ac_try) 2>&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; }; then
10894 ac_cv_header_X11_extensions_xf86vmode_h=yes
10896 echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10899 ac_cv_header_X11_extensions_xf86vmode_h=no
10901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10903 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
10904 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6
10905 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
10910 CPPFLAGS="$ac_save_CPPFLAGS"
10912 # if that succeeded, then check for the -lXxf86vm
10913 if test "$have_xf86vmode" = yes; then
10916 ac_save_CPPFLAGS="$CPPFLAGS"
10917 ac_save_LDFLAGS="$LDFLAGS"
10918 # ac_save_LIBS="$LIBS"
10920 if test \! -z "$includedir" ; then
10921 CPPFLAGS="$CPPFLAGS -I$includedir"
10923 # note: $X_CFLAGS includes $x_includes
10924 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10926 if test \! -z "$libdir" ; then
10927 LDFLAGS="$LDFLAGS -L$libdir"
10929 # note: $X_LIBS includes $x_libraries
10930 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10932 echo "$as_me:$LINENO: checking for XF86VidModeGetViewPort in -lXxf86vm" >&5
10933 echo $ECHO_N "checking for XF86VidModeGetViewPort in -lXxf86vm... $ECHO_C" >&6
10934 if test "${ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10937 ac_check_lib_save_LIBS=$LIBS
10938 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
10939 cat >conftest.$ac_ext <<_ACEOF
10942 cat confdefs.h >>conftest.$ac_ext
10943 cat >>conftest.$ac_ext <<_ACEOF
10944 /* end confdefs.h. */
10946 /* Override any gcc2 internal prototype to avoid an error. */
10950 /* We use char because int might match the return type of a gcc2
10951 builtin and then its argument prototype would still apply. */
10952 char XF86VidModeGetViewPort ();
10956 XF86VidModeGetViewPort ();
10961 rm -f conftest.$ac_objext conftest$ac_exeext
10962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10963 (eval $ac_link) 2>conftest.er1
10965 grep -v '^ *+' conftest.er1 >conftest.err
10967 cat conftest.err >&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); } &&
10970 { ac_try='test -z "$ac_c_werror_flag"
10971 || test ! -s conftest.err'
10972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10973 (eval $ac_try) 2>&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; } &&
10977 { ac_try='test -s conftest$ac_exeext'
10978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979 (eval $ac_try) 2>&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; }; then
10983 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=yes
10985 echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.$ac_ext >&5
10988 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=no
10990 rm -f conftest.err conftest.$ac_objext \
10991 conftest$ac_exeext conftest.$ac_ext
10992 LIBS=$ac_check_lib_save_LIBS
10994 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&5
10995 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&6
10996 if test $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort = yes; then
10997 have_xf86vmode=yes;
10998 VIDMODE_LIBS="-lXxf86vm";
10999 SAVER_LIBS="$SAVER_LIBS $VIDMODE_LIBS"
11004 CPPFLAGS="$ac_save_CPPFLAGS"
11005 LDFLAGS="$ac_save_LDFLAGS"
11006 # LIBS="$ac_save_LIBS"
11010 # if that succeeded, then we've really got it.
11011 if test "$have_xf86vmode" = yes; then
11012 cat >>confdefs.h <<\_ACEOF
11013 #define HAVE_XF86VMODE 1
11018 elif test "$with_xf86vmode" != no; then
11019 echo "error: must be yes or no: --with-xf86vmode-ext=$with_xf86vmode"
11024 ###############################################################################
11026 # Check for the XF86VMODE server extension (for gamma fading.)
11028 ###############################################################################
11031 have_xf86gamma_ramp=no
11032 with_xf86gamma_req=unspecified
11034 # Check whether --with-xf86gamma-ext or --without-xf86gamma-ext was given.
11035 if test "${with_xf86gamma_ext+set}" = set; then
11036 withval="$with_xf86gamma_ext"
11037 with_xf86gamma="$withval"; with_xf86gamma_req="$withval"
11043 case "$with_xf86gamma" in
11048 echo "$as_me:$LINENO: checking for xf86gamma headers" >&5
11049 echo $ECHO_N "checking for xf86gamma headers... $ECHO_C" >&6
11050 d=$with_xf86gamma/include
11051 if test -d $d; then
11052 X_CFLAGS="-I$d $X_CFLAGS"
11053 echo "$as_me:$LINENO: result: $d" >&5
11054 echo "${ECHO_T}$d" >&6
11056 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11057 echo "${ECHO_T}not found ($d: no such directory)" >&6
11060 echo "$as_me:$LINENO: checking for xf86gamma libs" >&5
11061 echo $ECHO_N "checking for xf86gamma libs... $ECHO_C" >&6
11062 d=$with_xf86gamma/lib
11063 if test -d $d; then
11064 X_LIBS="-L$d $X_LIBS"
11065 echo "$as_me:$LINENO: result: $d" >&5
11066 echo "${ECHO_T}$d" >&6
11068 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11069 echo "${ECHO_T}not found ($d: no such directory)" >&6
11072 # replace the directory string with "yes".
11073 with_xf86gamma_req="yes"
11074 with_xf86gamma=$with_xf86gamma_req
11079 echo "error: argument to --with-xf86gamma-ext must be \"yes\", \"no\", or a directory."
11080 echo " If it is a directory, then \`DIR/include' will be added to"
11081 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11087 if test "$with_xf86gamma" = yes; then
11089 # first check for xf86vmode.h, if we haven't already
11090 if test "$have_xf86vmode" = yes; then
11094 ac_save_CPPFLAGS="$CPPFLAGS"
11095 if test \! -z "$includedir" ; then
11096 CPPFLAGS="$CPPFLAGS -I$includedir"
11098 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11099 echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
11100 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6
11101 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
11104 cat >conftest.$ac_ext <<_ACEOF
11107 cat confdefs.h >>conftest.$ac_ext
11108 cat >>conftest.$ac_ext <<_ACEOF
11109 /* end confdefs.h. */
11110 #include <X11/Xlib.h>
11112 #include <X11/extensions/xf86vmode.h>
11114 rm -f conftest.$ac_objext
11115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11116 (eval $ac_compile) 2>conftest.er1
11118 grep -v '^ *+' conftest.er1 >conftest.err
11120 cat conftest.err >&5
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); } &&
11123 { ac_try='test -z "$ac_c_werror_flag"
11124 || test ! -s conftest.err'
11125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11126 (eval $ac_try) 2>&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); }; } &&
11130 { ac_try='test -s conftest.$ac_objext'
11131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11132 (eval $ac_try) 2>&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); }; }; then
11136 ac_cv_header_X11_extensions_xf86vmode_h=yes
11138 echo "$as_me: failed program was:" >&5
11139 sed 's/^/| /' conftest.$ac_ext >&5
11141 ac_cv_header_X11_extensions_xf86vmode_h=no
11143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11145 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
11146 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6
11147 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
11152 CPPFLAGS="$ac_save_CPPFLAGS"
11155 # if that succeeded, then check for the -lXxf86vm
11156 if test "$have_xf86gamma" = yes; then
11159 ac_save_CPPFLAGS="$CPPFLAGS"
11160 ac_save_LDFLAGS="$LDFLAGS"
11161 # ac_save_LIBS="$LIBS"
11163 if test \! -z "$includedir" ; then
11164 CPPFLAGS="$CPPFLAGS -I$includedir"
11166 # note: $X_CFLAGS includes $x_includes
11167 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11169 if test \! -z "$libdir" ; then
11170 LDFLAGS="$LDFLAGS -L$libdir"
11172 # note: $X_LIBS includes $x_libraries
11173 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11175 echo "$as_me:$LINENO: checking for XF86VidModeSetGamma in -lXxf86vm" >&5
11176 echo $ECHO_N "checking for XF86VidModeSetGamma in -lXxf86vm... $ECHO_C" >&6
11177 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGamma+set}" = set; then
11178 echo $ECHO_N "(cached) $ECHO_C" >&6
11180 ac_check_lib_save_LIBS=$LIBS
11181 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
11182 cat >conftest.$ac_ext <<_ACEOF
11185 cat confdefs.h >>conftest.$ac_ext
11186 cat >>conftest.$ac_ext <<_ACEOF
11187 /* end confdefs.h. */
11189 /* Override any gcc2 internal prototype to avoid an error. */
11193 /* We use char because int might match the return type of a gcc2
11194 builtin and then its argument prototype would still apply. */
11195 char XF86VidModeSetGamma ();
11199 XF86VidModeSetGamma ();
11204 rm -f conftest.$ac_objext conftest$ac_exeext
11205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11206 (eval $ac_link) 2>conftest.er1
11208 grep -v '^ *+' conftest.er1 >conftest.err
11210 cat conftest.err >&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); } &&
11213 { ac_try='test -z "$ac_c_werror_flag"
11214 || test ! -s conftest.err'
11215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11216 (eval $ac_try) 2>&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); }; } &&
11220 { ac_try='test -s conftest$ac_exeext'
11221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222 (eval $ac_try) 2>&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); }; }; then
11226 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=yes
11228 echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11231 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=no
11233 rm -f conftest.err conftest.$ac_objext \
11234 conftest$ac_exeext conftest.$ac_ext
11235 LIBS=$ac_check_lib_save_LIBS
11237 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&5
11238 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&6
11239 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma = yes; then
11245 CPPFLAGS="$ac_save_CPPFLAGS"
11246 LDFLAGS="$ac_save_LDFLAGS"
11247 # LIBS="$ac_save_LIBS"
11251 # check for the Ramp versions of the functions too.
11252 if test "$have_xf86gamma" = yes; then
11253 have_xf86gamma_ramp=no
11255 ac_save_CPPFLAGS="$CPPFLAGS"
11256 ac_save_LDFLAGS="$LDFLAGS"
11257 # ac_save_LIBS="$LIBS"
11259 if test \! -z "$includedir" ; then
11260 CPPFLAGS="$CPPFLAGS -I$includedir"
11262 # note: $X_CFLAGS includes $x_includes
11263 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11265 if test \! -z "$libdir" ; then
11266 LDFLAGS="$LDFLAGS -L$libdir"
11268 # note: $X_LIBS includes $x_libraries
11269 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11271 echo "$as_me:$LINENO: checking for XF86VidModeSetGammaRamp in -lXxf86vm" >&5
11272 echo $ECHO_N "checking for XF86VidModeSetGammaRamp in -lXxf86vm... $ECHO_C" >&6
11273 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp+set}" = set; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 ac_check_lib_save_LIBS=$LIBS
11277 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
11278 cat >conftest.$ac_ext <<_ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11285 /* Override any gcc2 internal prototype to avoid an error. */
11289 /* We use char because int might match the return type of a gcc2
11290 builtin and then its argument prototype would still apply. */
11291 char XF86VidModeSetGammaRamp ();
11295 XF86VidModeSetGammaRamp ();
11300 rm -f conftest.$ac_objext conftest$ac_exeext
11301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11302 (eval $ac_link) 2>conftest.er1
11304 grep -v '^ *+' conftest.er1 >conftest.err
11306 cat conftest.err >&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } &&
11309 { ac_try='test -z "$ac_c_werror_flag"
11310 || test ! -s conftest.err'
11311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11312 (eval $ac_try) 2>&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); }; } &&
11316 { ac_try='test -s conftest$ac_exeext'
11317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318 (eval $ac_try) 2>&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; }; then
11322 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=yes
11324 echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11327 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=no
11329 rm -f conftest.err conftest.$ac_objext \
11330 conftest$ac_exeext conftest.$ac_ext
11331 LIBS=$ac_check_lib_save_LIBS
11333 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&5
11334 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&6
11335 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp = yes; then
11336 have_xf86gamma_ramp=yes
11341 CPPFLAGS="$ac_save_CPPFLAGS"
11342 LDFLAGS="$ac_save_LDFLAGS"
11343 # LIBS="$ac_save_LIBS"
11347 # if those tests succeeded, then we've really got the functions.
11348 if test "$have_xf86gamma" = yes; then
11349 cat >>confdefs.h <<\_ACEOF
11350 #define HAVE_XF86VMODE_GAMMA 1
11355 if test "$have_xf86gamma_ramp" = yes; then
11356 cat >>confdefs.h <<\_ACEOF
11357 #define HAVE_XF86VMODE_GAMMA_RAMP 1
11362 # pull in the lib, if we haven't already
11363 if test "$have_xf86gamma" = yes -a "$have_xf86vmode" = no; then
11364 SAVER_LIBS="$SAVER_LIBS -lXxf86vm"
11367 elif test "$with_xf86gamma" != no; then
11368 echo "error: must be yes or no: --with-xf86gamma-ext=$with_xf86vmode"
11373 ###############################################################################
11375 # Check for the RANDR (Resize and Rotate) server extension.
11377 # We need this to detect when the resolution of the desktop
11378 # has changed out from under us (this is a newer, different
11379 # mechanism than the XF86VMODE virtual viewports.)
11381 ###############################################################################
11384 with_randr_req=unspecified
11386 # Check whether --with-randr-ext or --without-randr-ext was given.
11387 if test "${with_randr_ext+set}" = set; then
11388 withval="$with_randr_ext"
11389 with_randr="$withval"; with_randr_req="$withval"
11395 case "$with_randr" in
11400 echo "$as_me:$LINENO: checking for RANDR headers" >&5
11401 echo $ECHO_N "checking for RANDR headers... $ECHO_C" >&6
11402 d=$with_randr/include
11403 if test -d $d; then
11404 X_CFLAGS="-I$d $X_CFLAGS"
11405 echo "$as_me:$LINENO: result: $d" >&5
11406 echo "${ECHO_T}$d" >&6
11408 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11409 echo "${ECHO_T}not found ($d: no such directory)" >&6
11412 echo "$as_me:$LINENO: checking for RANDR libs" >&5
11413 echo $ECHO_N "checking for RANDR libs... $ECHO_C" >&6
11415 if test -d $d; then
11416 X_LIBS="-L$d $X_LIBS"
11417 echo "$as_me:$LINENO: result: $d" >&5
11418 echo "${ECHO_T}$d" >&6
11420 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11421 echo "${ECHO_T}not found ($d: no such directory)" >&6
11424 # replace the directory string with "yes".
11425 with_randr_req="yes"
11426 with_randr=$with_randr_req
11431 echo "error: argument to --with-randr-ext must be \"yes\", \"no\", or a directory."
11432 echo " If it is a directory, then \`DIR/include' will be added to"
11433 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11439 if test "$with_randr" = yes; then
11441 # first check for Randr.h
11443 ac_save_CPPFLAGS="$CPPFLAGS"
11444 if test \! -z "$includedir" ; then
11445 CPPFLAGS="$CPPFLAGS -I$includedir"
11447 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11448 echo "$as_me:$LINENO: checking for X11/extensions/Xrandr.h" >&5
11449 echo $ECHO_N "checking for X11/extensions/Xrandr.h... $ECHO_C" >&6
11450 if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
11451 echo $ECHO_N "(cached) $ECHO_C" >&6
11453 cat >conftest.$ac_ext <<_ACEOF
11456 cat confdefs.h >>conftest.$ac_ext
11457 cat >>conftest.$ac_ext <<_ACEOF
11458 /* end confdefs.h. */
11459 #include <X11/Xlib.h>
11461 #include <X11/extensions/Xrandr.h>
11463 rm -f conftest.$ac_objext
11464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11465 (eval $ac_compile) 2>conftest.er1
11467 grep -v '^ *+' conftest.er1 >conftest.err
11469 cat conftest.err >&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } &&
11472 { ac_try='test -z "$ac_c_werror_flag"
11473 || test ! -s conftest.err'
11474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475 (eval $ac_try) 2>&5
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; } &&
11479 { ac_try='test -s conftest.$ac_objext'
11480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11481 (eval $ac_try) 2>&5
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); }; }; then
11485 ac_cv_header_X11_extensions_Xrandr_h=yes
11487 echo "$as_me: failed program was:" >&5
11488 sed 's/^/| /' conftest.$ac_ext >&5
11490 ac_cv_header_X11_extensions_Xrandr_h=no
11492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11494 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrandr_h" >&5
11495 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xrandr_h" >&6
11496 if test $ac_cv_header_X11_extensions_Xrandr_h = yes; then
11501 CPPFLAGS="$ac_save_CPPFLAGS"
11503 # if that succeeded, then check for the XRR code in the libraries
11504 if test "$have_randr" = yes; then
11506 # RANDR probably needs -lXrender
11509 ac_save_CPPFLAGS="$CPPFLAGS"
11510 ac_save_LDFLAGS="$LDFLAGS"
11511 # ac_save_LIBS="$LIBS"
11513 if test \! -z "$includedir" ; then
11514 CPPFLAGS="$CPPFLAGS -I$includedir"
11516 # note: $X_CFLAGS includes $x_includes
11517 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11519 if test \! -z "$libdir" ; then
11520 LDFLAGS="$LDFLAGS -L$libdir"
11522 # note: $X_LIBS includes $x_libraries
11523 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11525 echo "$as_me:$LINENO: checking for XRenderSetSubpixelOrder in -lXrender" >&5
11526 echo $ECHO_N "checking for XRenderSetSubpixelOrder in -lXrender... $ECHO_C" >&6
11527 if test "${ac_cv_lib_Xrender_XRenderSetSubpixelOrder+set}" = set; then
11528 echo $ECHO_N "(cached) $ECHO_C" >&6
11530 ac_check_lib_save_LIBS=$LIBS
11531 LIBS="-lXrender -lXext -lX11 $LIBS"
11532 cat >conftest.$ac_ext <<_ACEOF
11535 cat confdefs.h >>conftest.$ac_ext
11536 cat >>conftest.$ac_ext <<_ACEOF
11537 /* end confdefs.h. */
11539 /* Override any gcc2 internal prototype to avoid an error. */
11543 /* We use char because int might match the return type of a gcc2
11544 builtin and then its argument prototype would still apply. */
11545 char XRenderSetSubpixelOrder ();
11549 XRenderSetSubpixelOrder ();
11554 rm -f conftest.$ac_objext conftest$ac_exeext
11555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11556 (eval $ac_link) 2>conftest.er1
11558 grep -v '^ *+' conftest.er1 >conftest.err
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } &&
11563 { ac_try='test -z "$ac_c_werror_flag"
11564 || test ! -s conftest.err'
11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; } &&
11570 { ac_try='test -s conftest$ac_exeext'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=yes
11578 echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11581 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=no
11583 rm -f conftest.err conftest.$ac_objext \
11584 conftest$ac_exeext conftest.$ac_ext
11585 LIBS=$ac_check_lib_save_LIBS
11587 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&5
11588 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&6
11589 if test $ac_cv_lib_Xrender_XRenderSetSubpixelOrder = yes; then
11590 xrender_libs="-lXrender"
11595 CPPFLAGS="$ac_save_CPPFLAGS"
11596 LDFLAGS="$ac_save_LDFLAGS"
11597 # LIBS="$ac_save_LIBS"
11600 # first look for RANDR in -lXext
11603 ac_save_CPPFLAGS="$CPPFLAGS"
11604 ac_save_LDFLAGS="$LDFLAGS"
11605 # ac_save_LIBS="$LIBS"
11607 if test \! -z "$includedir" ; then
11608 CPPFLAGS="$CPPFLAGS -I$includedir"
11610 # note: $X_CFLAGS includes $x_includes
11611 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11613 if test \! -z "$libdir" ; then
11614 LDFLAGS="$LDFLAGS -L$libdir"
11616 # note: $X_LIBS includes $x_libraries
11617 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11619 echo "$as_me:$LINENO: checking for XRRGetScreenInfo in -lXext" >&5
11620 echo $ECHO_N "checking for XRRGetScreenInfo in -lXext... $ECHO_C" >&6
11621 if test "${ac_cv_lib_Xext_XRRGetScreenInfo+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11624 ac_check_lib_save_LIBS=$LIBS
11625 LIBS="-lXext $xrender_libs -lXext -lX11 $LIBS"
11626 cat >conftest.$ac_ext <<_ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11633 /* Override any gcc2 internal prototype to avoid an error. */
11637 /* We use char because int might match the return type of a gcc2
11638 builtin and then its argument prototype would still apply. */
11639 char XRRGetScreenInfo ();
11643 XRRGetScreenInfo ();
11648 rm -f conftest.$ac_objext conftest$ac_exeext
11649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11650 (eval $ac_link) 2>conftest.er1
11652 grep -v '^ *+' conftest.er1 >conftest.err
11654 cat conftest.err >&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } &&
11657 { ac_try='test -z "$ac_c_werror_flag"
11658 || test ! -s conftest.err'
11659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660 (eval $ac_try) 2>&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; } &&
11664 { ac_try='test -s conftest$ac_exeext'
11665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11666 (eval $ac_try) 2>&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); }; }; then
11670 ac_cv_lib_Xext_XRRGetScreenInfo=yes
11672 echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.$ac_ext >&5
11675 ac_cv_lib_Xext_XRRGetScreenInfo=no
11677 rm -f conftest.err conftest.$ac_objext \
11678 conftest$ac_exeext conftest.$ac_ext
11679 LIBS=$ac_check_lib_save_LIBS
11681 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XRRGetScreenInfo" >&5
11682 echo "${ECHO_T}$ac_cv_lib_Xext_XRRGetScreenInfo" >&6
11683 if test $ac_cv_lib_Xext_XRRGetScreenInfo = yes; then
11684 have_randr=yes; SAVER_LIBS="$SAVER_LIBS $xrender_libs"
11689 CPPFLAGS="$ac_save_CPPFLAGS"
11690 LDFLAGS="$ac_save_LDFLAGS"
11691 # LIBS="$ac_save_LIBS"
11694 # if that failed, look in -lXrandr
11695 if test "$have_randr" = no; then
11697 ac_save_CPPFLAGS="$CPPFLAGS"
11698 ac_save_LDFLAGS="$LDFLAGS"
11699 # ac_save_LIBS="$LIBS"
11701 if test \! -z "$includedir" ; then
11702 CPPFLAGS="$CPPFLAGS -I$includedir"
11704 # note: $X_CFLAGS includes $x_includes
11705 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11707 if test \! -z "$libdir" ; then
11708 LDFLAGS="$LDFLAGS -L$libdir"
11710 # note: $X_LIBS includes $x_libraries
11711 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11713 echo "$as_me:$LINENO: checking for XRRGetScreenInfo in -lXrandr" >&5
11714 echo $ECHO_N "checking for XRRGetScreenInfo in -lXrandr... $ECHO_C" >&6
11715 if test "${ac_cv_lib_Xrandr_XRRGetScreenInfo+set}" = set; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11718 ac_check_lib_save_LIBS=$LIBS
11719 LIBS="-lXrandr $xrender_libs -lXext -lX11 $LIBS"
11720 cat >conftest.$ac_ext <<_ACEOF
11723 cat confdefs.h >>conftest.$ac_ext
11724 cat >>conftest.$ac_ext <<_ACEOF
11725 /* end confdefs.h. */
11727 /* Override any gcc2 internal prototype to avoid an error. */
11731 /* We use char because int might match the return type of a gcc2
11732 builtin and then its argument prototype would still apply. */
11733 char XRRGetScreenInfo ();
11737 XRRGetScreenInfo ();
11742 rm -f conftest.$ac_objext conftest$ac_exeext
11743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11744 (eval $ac_link) 2>conftest.er1
11746 grep -v '^ *+' conftest.er1 >conftest.err
11748 cat conftest.err >&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } &&
11751 { ac_try='test -z "$ac_c_werror_flag"
11752 || test ! -s conftest.err'
11753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11754 (eval $ac_try) 2>&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; } &&
11758 { ac_try='test -s conftest$ac_exeext'
11759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760 (eval $ac_try) 2>&5
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); }; }; then
11764 ac_cv_lib_Xrandr_XRRGetScreenInfo=yes
11766 echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.$ac_ext >&5
11769 ac_cv_lib_Xrandr_XRRGetScreenInfo=no
11771 rm -f conftest.err conftest.$ac_objext \
11772 conftest$ac_exeext conftest.$ac_ext
11773 LIBS=$ac_check_lib_save_LIBS
11775 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRGetScreenInfo" >&5
11776 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRGetScreenInfo" >&6
11777 if test $ac_cv_lib_Xrandr_XRRGetScreenInfo = yes; then
11778 have_randr=yes; SAVER_LIBS="$SAVER_LIBS -lXrandr $xrender_libs"
11783 CPPFLAGS="$ac_save_CPPFLAGS"
11784 LDFLAGS="$ac_save_LDFLAGS"
11785 # LIBS="$ac_save_LIBS"
11790 # if that succeeded, then we've really got it.
11791 if test "$have_randr" = yes; then
11792 cat >>confdefs.h <<\_ACEOF
11793 #define HAVE_RANDR 1
11798 elif test "$with_randr" != no; then
11799 echo "error: must be yes or no: --with-randr-ext=$with_randr"
11804 ###############################################################################
11806 # Check for XF86MiscSetGrabKeysState (but only bother if we are already
11807 # using other XF86 stuff.)
11809 ###############################################################################
11811 have_xf86miscsetgrabkeysstate=no
11812 if test "$have_xf86gamma" = yes -o "$have_xf86vmode" = yes; then
11814 ac_save_CPPFLAGS="$CPPFLAGS"
11815 ac_save_LDFLAGS="$LDFLAGS"
11816 # ac_save_LIBS="$LIBS"
11818 if test \! -z "$includedir" ; then
11819 CPPFLAGS="$CPPFLAGS -I$includedir"
11821 # note: $X_CFLAGS includes $x_includes
11822 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11824 if test \! -z "$libdir" ; then
11825 LDFLAGS="$LDFLAGS -L$libdir"
11827 # note: $X_LIBS includes $x_libraries
11828 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11830 echo "$as_me:$LINENO: checking for XF86MiscSetGrabKeysState in -lXxf86misc" >&5
11831 echo $ECHO_N "checking for XF86MiscSetGrabKeysState in -lXxf86misc... $ECHO_C" >&6
11832 if test "${ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState+set}" = set; then
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11835 ac_check_lib_save_LIBS=$LIBS
11836 LIBS="-lXxf86misc -lXext -lX11 $LIBS"
11837 cat >conftest.$ac_ext <<_ACEOF
11840 cat confdefs.h >>conftest.$ac_ext
11841 cat >>conftest.$ac_ext <<_ACEOF
11842 /* end confdefs.h. */
11844 /* Override any gcc2 internal prototype to avoid an error. */
11848 /* We use char because int might match the return type of a gcc2
11849 builtin and then its argument prototype would still apply. */
11850 char XF86MiscSetGrabKeysState ();
11854 XF86MiscSetGrabKeysState ();
11859 rm -f conftest.$ac_objext conftest$ac_exeext
11860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11861 (eval $ac_link) 2>conftest.er1
11863 grep -v '^ *+' conftest.er1 >conftest.err
11865 cat conftest.err >&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } &&
11868 { ac_try='test -z "$ac_c_werror_flag"
11869 || test ! -s conftest.err'
11870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871 (eval $ac_try) 2>&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; } &&
11875 { ac_try='test -s conftest$ac_exeext'
11876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11877 (eval $ac_try) 2>&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); }; }; then
11881 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=yes
11883 echo "$as_me: failed program was:" >&5
11884 sed 's/^/| /' conftest.$ac_ext >&5
11886 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=no
11888 rm -f conftest.err conftest.$ac_objext \
11889 conftest$ac_exeext conftest.$ac_ext
11890 LIBS=$ac_check_lib_save_LIBS
11892 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&5
11893 echo "${ECHO_T}$ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&6
11894 if test $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState = yes; then
11895 have_xf86miscsetgrabkeysstate=yes
11900 CPPFLAGS="$ac_save_CPPFLAGS"
11901 LDFLAGS="$ac_save_LDFLAGS"
11902 # LIBS="$ac_save_LIBS"
11904 if test "$have_xf86miscsetgrabkeysstate" = yes ; then
11905 SAVER_LIBS="$SAVER_LIBS -lXxf86misc"
11906 cat >>confdefs.h <<\_ACEOF
11907 #define HAVE_XF86MISCSETGRABKEYSSTATE 1
11914 ###############################################################################
11916 # Check for HP XHPDisableReset and XHPEnableReset.
11918 ###############################################################################
11920 echo "$as_me:$LINENO: checking for XHPDisableReset in X11/XHPlib.h" >&5
11921 echo $ECHO_N "checking for XHPDisableReset in X11/XHPlib.h... $ECHO_C" >&6
11923 ac_save_CPPFLAGS="$CPPFLAGS"
11924 if test \! -z "$includedir" ; then
11925 CPPFLAGS="$CPPFLAGS -I$includedir"
11927 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11928 cat >conftest.$ac_ext <<_ACEOF
11931 cat confdefs.h >>conftest.$ac_ext
11932 cat >>conftest.$ac_ext <<_ACEOF
11933 /* end confdefs.h. */
11934 #include <X11/XHPlib.h>
11937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11938 $EGREP "XHPDisableReset" >/dev/null 2>&1; then
11939 cat >>confdefs.h <<\_ACEOF
11940 #define HAVE_XHPDISABLERESET 1
11943 SAVER_LIBS="-lXhp11 $SAVER_LIBS"
11944 echo "$as_me:$LINENO: result: yes" >&5
11945 echo "${ECHO_T}yes" >&6
11947 echo "$as_me:$LINENO: result: no" >&5
11948 echo "${ECHO_T}no" >&6
11952 CPPFLAGS="$ac_save_CPPFLAGS"
11955 ###############################################################################
11957 # Check for /proc/interrupts.
11959 ###############################################################################
11961 have_proc_interrupts=no
11962 with_proc_interrupts_req=unspecified
11964 # Check whether --with-proc-interrupts or --without-proc-interrupts was given.
11965 if test "${with_proc_interrupts+set}" = set; then
11966 withval="$with_proc_interrupts"
11967 with_proc_interrupts="$withval"; with_proc_interrupts_req="$withval"
11969 with_proc_interrupts=yes
11972 if test "$with_proc_interrupts" = yes; then
11974 echo "$as_me:$LINENO: checking whether /proc/interrupts contains keyboard data" >&5
11975 echo $ECHO_N "checking whether /proc/interrupts contains keyboard data... $ECHO_C" >&6
11976 if test "${ac_cv_have_proc_interrupts+set}" = set; then
11977 echo $ECHO_N "(cached) $ECHO_C" >&6
11979 ac_cv_have_proc_interrupts=no
11980 if grep 'keyboard\|i8042' /proc/interrupts >/dev/null 2>&1 ; then
11981 ac_cv_have_proc_interrupts=yes
11985 echo "$as_me:$LINENO: result: $ac_cv_have_proc_interrupts" >&5
11986 echo "${ECHO_T}$ac_cv_have_proc_interrupts" >&6
11987 have_proc_interrupts=$ac_cv_have_proc_interrupts
11989 if test "$have_proc_interrupts" = yes; then
11990 cat >>confdefs.h <<\_ACEOF
11991 #define HAVE_PROC_INTERRUPTS 1
11996 elif test "$with_proc_interrupts" != no; then
11997 echo "error: must be yes or no: --with-proc-interrupts=$with_proc_interrupts"
12002 ###############################################################################
12004 # The --enable-locking option
12006 ###############################################################################
12008 # Check whether --enable-locking or --disable-locking was given.
12009 if test "${enable_locking+set}" = set; then
12010 enableval="$enable_locking"
12011 enable_locking="$enableval"
12015 if test "$enable_locking" = yes; then
12017 elif test "$enable_locking" = no; then
12018 cat >>confdefs.h <<\_ACEOF
12019 #define NO_LOCKING 1
12023 echo "error: must be yes or no: --enable-locking=$enable_locking"
12027 # We can't lock on MacOS X, so don't even bother compiling in support for it.
12029 if test "$ac_macosx" = yes; then
12030 if test "$enable_locking" = yes; then
12031 echo "$as_me:$LINENO: result: locking disabled: it doesn't work on MacOS X" >&5
12032 echo "${ECHO_T}locking disabled: it doesn't work on MacOS X" >&6
12034 cat >>confdefs.h <<\_ACEOF
12035 #define NO_LOCKING 1
12042 ###############################################################################
12044 # The --enable-vt-locking option
12046 ###############################################################################
12048 #ac_vt_lockswitch=no
12049 #AC_ARG_ENABLE(vt-locking,[
12050 # --enable-vt-locking Compile in support for locking Virtual Terminals.
12051 # This is the default if the system supports it, and
12052 # if locking support is included (--enable-locking.)
12053 # --disable-vt-locking Do not allow locking of VTs, even if locking is
12055 # [enable_vt_locking="$enableval"],[enable_vt_locking=yes])
12056 #if test "$enable_vt_locking" = yes; then
12058 # AC_CACHE_CHECK([for the VT_LOCKSWITCH ioctl], ac_cv_vt_lockswitch,
12059 # [AC_TRY_COMPILE([#include <fcntl.h>
12060 # #include <sys/ioctl.h>
12061 # #include <sys/vt.h>],
12062 # [int x = VT_LOCKSWITCH; int y = VT_UNLOCKSWITCH;],
12063 # [ac_cv_vt_lockswitch=yes],
12064 # [ac_cv_vt_lockswitch=no])])
12065 # ac_vt_lockswitch=$ac_cv_vt_lockswitch
12067 #elif test "$enable_vt_locking" = no; then
12070 # echo "error: must be yes or no: --enable-vt-locking=$enable_vt_locking"
12074 #if test "$ac_vt_lockswitch" = yes; then
12075 # AC_DEFINE(HAVE_VT_LOCKSWITCH)
12076 # # the VT_LOCKSWITCH ioctl can only be used when running as root.
12077 # # #### but it doesn't work yet, so don't worry about that for now.
12082 ###############################################################################
12086 ###############################################################################
12090 # Solaris systems tend to come with PAM misconfigured.
12091 # Don't build it by default, even if the headers exist.
12092 with_pam_default=no
12095 # Default to building PAM support on all other systems, if it exists.
12096 with_pam_default=yes
12101 with_pam_req=unspecified
12104 # Check whether --with-pam or --without-pam was given.
12105 if test "${with_pam+set}" = set; then
12106 withval="$with_pam"
12107 with_pam="$withval"; with_pam_req="$withval"
12109 with_pam=$with_pam_default
12113 case "$with_pam" in
12118 echo "$as_me:$LINENO: checking for PAM headers" >&5
12119 echo $ECHO_N "checking for PAM headers... $ECHO_C" >&6
12120 d=$with_pam/include
12121 if test -d $d; then
12122 X_CFLAGS="-I$d $X_CFLAGS"
12123 echo "$as_me:$LINENO: result: $d" >&5
12124 echo "${ECHO_T}$d" >&6
12126 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12127 echo "${ECHO_T}not found ($d: no such directory)" >&6
12130 echo "$as_me:$LINENO: checking for PAM libs" >&5
12131 echo $ECHO_N "checking for PAM libs... $ECHO_C" >&6
12133 if test -d $d; then
12134 X_LIBS="-L$d $X_LIBS"
12135 echo "$as_me:$LINENO: result: $d" >&5
12136 echo "${ECHO_T}$d" >&6
12138 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12139 echo "${ECHO_T}not found ($d: no such directory)" >&6
12142 # replace the directory string with "yes".
12144 with_pam=$with_pam_req
12149 echo "error: argument to --with-pam must be \"yes\", \"no\", or a directory."
12150 echo " If it is a directory, then \`DIR/include' will be added to"
12151 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12157 if test "$enable_locking" = yes -a "$with_pam" = yes; then
12158 echo "$as_me:$LINENO: checking for PAM" >&5
12159 echo $ECHO_N "checking for PAM... $ECHO_C" >&6
12160 if test "${ac_cv_pam+set}" = set; then
12161 echo $ECHO_N "(cached) $ECHO_C" >&6
12164 ac_save_CPPFLAGS="$CPPFLAGS"
12165 if test \! -z "$includedir" ; then
12166 CPPFLAGS="$CPPFLAGS -I$includedir"
12168 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12169 cat >conftest.$ac_ext <<_ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12175 #include <security/pam_appl.h>
12184 rm -f conftest.$ac_objext
12185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12186 (eval $ac_compile) 2>conftest.er1
12188 grep -v '^ *+' conftest.er1 >conftest.err
12190 cat conftest.err >&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); } &&
12193 { ac_try='test -z "$ac_c_werror_flag"
12194 || test ! -s conftest.err'
12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 (eval $ac_try) 2>&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; } &&
12200 { ac_try='test -s conftest.$ac_objext'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; }; then
12208 echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12214 CPPFLAGS="$ac_save_CPPFLAGS"
12216 echo "$as_me:$LINENO: result: $ac_cv_pam" >&5
12217 echo "${ECHO_T}$ac_cv_pam" >&6
12218 if test "$ac_cv_pam" = yes ; then
12220 cat >>confdefs.h <<\_ACEOF
12224 PASSWD_LIBS="${PASSWD_LIBS} -lpam"
12226 # libpam typically requires dlopen and dlsym. On FreeBSD,
12227 # those are in libc. On Linux and Solaris, they're in libdl.
12228 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12229 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12230 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 ac_check_lib_save_LIBS=$LIBS
12235 cat >conftest.$ac_ext <<_ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h. */
12242 /* Override any gcc2 internal prototype to avoid an error. */
12246 /* We use char because int might match the return type of a gcc2
12247 builtin and then its argument prototype would still apply. */
12257 rm -f conftest.$ac_objext conftest$ac_exeext
12258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12259 (eval $ac_link) 2>conftest.er1
12261 grep -v '^ *+' conftest.er1 >conftest.err
12263 cat conftest.err >&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } &&
12266 { ac_try='test -z "$ac_c_werror_flag"
12267 || test ! -s conftest.err'
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; } &&
12273 { ac_try='test -s conftest$ac_exeext'
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; }; then
12279 ac_cv_lib_dl_dlopen=yes
12281 echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12284 ac_cv_lib_dl_dlopen=no
12286 rm -f conftest.err conftest.$ac_objext \
12287 conftest$ac_exeext conftest.$ac_ext
12288 LIBS=$ac_check_lib_save_LIBS
12290 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12291 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12292 if test $ac_cv_lib_dl_dlopen = yes; then
12293 PASSWD_LIBS="${PASSWD_LIBS} -ldl"
12297 # On Linux, sigtimedwait() is in libc; on Solaris, it's in librt.
12299 echo "$as_me:$LINENO: checking for sigtimedwait in -lc" >&5
12300 echo $ECHO_N "checking for sigtimedwait in -lc... $ECHO_C" >&6
12301 if test "${ac_cv_lib_c_sigtimedwait+set}" = set; then
12302 echo $ECHO_N "(cached) $ECHO_C" >&6
12304 ac_check_lib_save_LIBS=$LIBS
12306 cat >conftest.$ac_ext <<_ACEOF
12309 cat confdefs.h >>conftest.$ac_ext
12310 cat >>conftest.$ac_ext <<_ACEOF
12311 /* end confdefs.h. */
12313 /* Override any gcc2 internal prototype to avoid an error. */
12317 /* We use char because int might match the return type of a gcc2
12318 builtin and then its argument prototype would still apply. */
12319 char sigtimedwait ();
12328 rm -f conftest.$ac_objext conftest$ac_exeext
12329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12330 (eval $ac_link) 2>conftest.er1
12332 grep -v '^ *+' conftest.er1 >conftest.err
12334 cat conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } &&
12337 { ac_try='test -z "$ac_c_werror_flag"
12338 || test ! -s conftest.err'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; } &&
12344 { ac_try='test -s conftest$ac_exeext'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; }; then
12350 ac_cv_lib_c_sigtimedwait=yes
12352 echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12355 ac_cv_lib_c_sigtimedwait=no
12357 rm -f conftest.err conftest.$ac_objext \
12358 conftest$ac_exeext conftest.$ac_ext
12359 LIBS=$ac_check_lib_save_LIBS
12361 echo "$as_me:$LINENO: result: $ac_cv_lib_c_sigtimedwait" >&5
12362 echo "${ECHO_T}$ac_cv_lib_c_sigtimedwait" >&6
12363 if test $ac_cv_lib_c_sigtimedwait = yes; then
12367 if test "$have_timedwait" = no ; then
12368 echo "$as_me:$LINENO: checking for sigtimedwait in -lrt" >&5
12369 echo $ECHO_N "checking for sigtimedwait in -lrt... $ECHO_C" >&6
12370 if test "${ac_cv_lib_rt_sigtimedwait+set}" = set; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12373 ac_check_lib_save_LIBS=$LIBS
12375 cat >conftest.$ac_ext <<_ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h. */
12382 /* Override any gcc2 internal prototype to avoid an error. */
12386 /* We use char because int might match the return type of a gcc2
12387 builtin and then its argument prototype would still apply. */
12388 char sigtimedwait ();
12397 rm -f conftest.$ac_objext conftest$ac_exeext
12398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12399 (eval $ac_link) 2>conftest.er1
12401 grep -v '^ *+' conftest.er1 >conftest.err
12403 cat conftest.err >&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); } &&
12406 { ac_try='test -z "$ac_c_werror_flag"
12407 || test ! -s conftest.err'
12408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409 (eval $ac_try) 2>&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }; } &&
12413 { ac_try='test -s conftest$ac_exeext'
12414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415 (eval $ac_try) 2>&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; }; then
12419 ac_cv_lib_rt_sigtimedwait=yes
12421 echo "$as_me: failed program was:" >&5
12422 sed 's/^/| /' conftest.$ac_ext >&5
12424 ac_cv_lib_rt_sigtimedwait=no
12426 rm -f conftest.err conftest.$ac_objext \
12427 conftest$ac_exeext conftest.$ac_ext
12428 LIBS=$ac_check_lib_save_LIBS
12430 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sigtimedwait" >&5
12431 echo "${ECHO_T}$ac_cv_lib_rt_sigtimedwait" >&6
12432 if test $ac_cv_lib_rt_sigtimedwait = yes; then
12433 PASSWD_LIBS="${PASSWD_LIBS} -lrt"
12438 echo "$as_me:$LINENO: checking how to call pam_strerror" >&5
12439 echo $ECHO_N "checking how to call pam_strerror... $ECHO_C" >&6
12440 if test "${ac_cv_pam_strerror_args+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 cat >conftest.$ac_ext <<_ACEOF
12446 cat confdefs.h >>conftest.$ac_ext
12447 cat >>conftest.$ac_ext <<_ACEOF
12448 /* end confdefs.h. */
12450 #include <stdlib.h>
12451 #include <security/pam_appl.h>
12455 pam_handle_t *pamh = 0;
12456 char *s = pam_strerror(pamh, PAM_SUCCESS);
12461 rm -f conftest.$ac_objext
12462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12463 (eval $ac_compile) 2>conftest.er1
12465 grep -v '^ *+' conftest.er1 >conftest.err
12467 cat conftest.err >&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); } &&
12470 { ac_try='test -z "$ac_c_werror_flag"
12471 || test ! -s conftest.err'
12472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473 (eval $ac_try) 2>&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); }; } &&
12477 { ac_try='test -s conftest.$ac_objext'
12478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12479 (eval $ac_try) 2>&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; }; then
12483 ac_pam_strerror_args=2
12485 echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12488 cat >conftest.$ac_ext <<_ACEOF
12491 cat confdefs.h >>conftest.$ac_ext
12492 cat >>conftest.$ac_ext <<_ACEOF
12493 /* end confdefs.h. */
12495 #include <stdlib.h>
12496 #include <security/pam_appl.h>
12501 pam_strerror(PAM_SUCCESS);
12506 rm -f conftest.$ac_objext
12507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12508 (eval $ac_compile) 2>conftest.er1
12510 grep -v '^ *+' conftest.er1 >conftest.err
12512 cat conftest.err >&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } &&
12515 { ac_try='test -z "$ac_c_werror_flag"
12516 || test ! -s conftest.err'
12517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; } &&
12522 { ac_try='test -s conftest.$ac_objext'
12523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524 (eval $ac_try) 2>&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; }; then
12528 ac_pam_strerror_args=1
12530 echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12533 ac_pam_strerror_args=0
12535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12538 ac_cv_pam_strerror_args=$ac_pam_strerror_args
12541 ac_pam_strerror_args=$ac_cv_pam_strerror_args
12542 if test "$ac_pam_strerror_args" = 1 ; then
12543 echo "$as_me:$LINENO: result: one argument" >&5
12544 echo "${ECHO_T}one argument" >&6
12545 elif test "$ac_pam_strerror_args" = 2 ; then
12546 cat >>confdefs.h <<\_ACEOF
12547 #define PAM_STRERROR_TWO_ARGS 1
12550 echo "$as_me:$LINENO: result: two arguments" >&5
12551 echo "${ECHO_T}two arguments" >&6
12553 echo "$as_me:$LINENO: result: unknown" >&5
12554 echo "${ECHO_T}unknown" >&6
12560 ###############################################################################
12562 # Check for Kerberos.
12564 ###############################################################################
12568 with_kerberos_req=unspecified
12571 # Check whether --with-kerberos or --without-kerberos was given.
12572 if test "${with_kerberos+set}" = set; then
12573 withval="$with_kerberos"
12574 with_kerberos="$withval"; with_kerberos_req="$withval"
12580 case "$with_kerberos" in
12585 echo "$as_me:$LINENO: checking for Kerberos headers" >&5
12586 echo $ECHO_N "checking for Kerberos headers... $ECHO_C" >&6
12587 d=$with_kerberos/include
12588 if test -d $d; then
12589 X_CFLAGS="-I$d $X_CFLAGS"
12590 echo "$as_me:$LINENO: result: $d" >&5
12591 echo "${ECHO_T}$d" >&6
12593 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12594 echo "${ECHO_T}not found ($d: no such directory)" >&6
12597 echo "$as_me:$LINENO: checking for Kerberos libs" >&5
12598 echo $ECHO_N "checking for Kerberos libs... $ECHO_C" >&6
12599 d=$with_kerberos/lib
12600 if test -d $d; then
12601 X_LIBS="-L$d $X_LIBS"
12602 echo "$as_me:$LINENO: result: $d" >&5
12603 echo "${ECHO_T}$d" >&6
12605 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12606 echo "${ECHO_T}not found ($d: no such directory)" >&6
12609 # replace the directory string with "yes".
12610 with_kerberos_req="yes"
12611 with_kerberos=$with_kerberos_req
12616 echo "error: argument to --with-kerberos must be \"yes\", \"no\", or a directory."
12617 echo " If it is a directory, then \`DIR/include' will be added to"
12618 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12624 if test "$enable_locking" = yes -a "$with_kerberos" = yes; then
12625 echo "$as_me:$LINENO: checking for Kerberos 4" >&5
12626 echo $ECHO_N "checking for Kerberos 4... $ECHO_C" >&6
12627 if test "${ac_cv_kerberos+set}" = set; then
12628 echo $ECHO_N "(cached) $ECHO_C" >&6
12631 ac_save_CPPFLAGS="$CPPFLAGS"
12632 if test \! -z "$includedir" ; then
12633 CPPFLAGS="$CPPFLAGS -I$includedir"
12635 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12636 cat >conftest.$ac_ext <<_ACEOF
12639 cat confdefs.h >>conftest.$ac_ext
12640 cat >>conftest.$ac_ext <<_ACEOF
12641 /* end confdefs.h. */
12651 rm -f conftest.$ac_objext
12652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12653 (eval $ac_compile) 2>conftest.er1
12655 grep -v '^ *+' conftest.er1 >conftest.err
12657 cat conftest.err >&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } &&
12660 { ac_try='test -z "$ac_c_werror_flag"
12661 || test ! -s conftest.err'
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; } &&
12667 { ac_try='test -s conftest.$ac_objext'
12668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669 (eval $ac_try) 2>&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; }; then
12675 echo "$as_me: failed program was:" >&5
12676 sed 's/^/| /' conftest.$ac_ext >&5
12680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12681 CPPFLAGS="$ac_save_CPPFLAGS"
12683 echo "$as_me:$LINENO: result: $ac_cv_kerberos" >&5
12684 echo "${ECHO_T}$ac_cv_kerberos" >&6
12685 echo "$as_me:$LINENO: checking for Kerberos 5" >&5
12686 echo $ECHO_N "checking for Kerberos 5... $ECHO_C" >&6
12687 if test "${ac_cv_kerberos5+set}" = set; then
12688 echo $ECHO_N "(cached) $ECHO_C" >&6
12691 ac_save_CPPFLAGS="$CPPFLAGS"
12692 if test \! -z "$includedir" ; then
12693 CPPFLAGS="$CPPFLAGS -I$includedir"
12695 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12696 cat >conftest.$ac_ext <<_ACEOF
12699 cat confdefs.h >>conftest.$ac_ext
12700 cat >>conftest.$ac_ext <<_ACEOF
12701 /* end confdefs.h. */
12702 #include <kerberosIV/krb.h>
12711 rm -f conftest.$ac_objext
12712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12713 (eval $ac_compile) 2>conftest.er1
12715 grep -v '^ *+' conftest.er1 >conftest.err
12717 cat conftest.err >&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } &&
12720 { ac_try='test -z "$ac_c_werror_flag"
12721 || test ! -s conftest.err'
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; } &&
12727 { ac_try='test -s conftest.$ac_objext'
12728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729 (eval $ac_try) 2>&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; }; then
12733 ac_cv_kerberos5=yes
12735 echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12741 CPPFLAGS="$ac_save_CPPFLAGS"
12743 echo "$as_me:$LINENO: result: $ac_cv_kerberos5" >&5
12744 echo "${ECHO_T}$ac_cv_kerberos5" >&6
12746 if test "$ac_cv_kerberos" = yes ; then
12748 cat >>confdefs.h <<\_ACEOF
12749 #define HAVE_KERBEROS 1
12754 if test "$ac_cv_kerberos5" = yes ; then
12756 # Andrew Snare <ajs@pigpond.com> wrote:
12758 # You were assuming that if kerberosV (krb5) was found, then kerberosIV
12759 # (krb4) was also available. This turns out not to be the case with
12760 # mit-krb-1.2.7; apparently backwards-compatibility with KerberosIV
12763 # So, disable kerberosV support if libkrb4 can't be found.
12764 # This is not the best solution, but it makes the compile not fail.
12767 ac_save_CPPFLAGS="$CPPFLAGS"
12768 ac_save_LDFLAGS="$LDFLAGS"
12769 # ac_save_LIBS="$LIBS"
12771 if test \! -z "$includedir" ; then
12772 CPPFLAGS="$CPPFLAGS -I$includedir"
12774 # note: $X_CFLAGS includes $x_includes
12775 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12777 if test \! -z "$libdir" ; then
12778 LDFLAGS="$LDFLAGS -L$libdir"
12780 # note: $X_LIBS includes $x_libraries
12781 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12783 echo "$as_me:$LINENO: checking for krb_get_tf_realm in -lkrb4" >&5
12784 echo $ECHO_N "checking for krb_get_tf_realm in -lkrb4... $ECHO_C" >&6
12785 if test "${ac_cv_lib_krb4_krb_get_tf_realm+set}" = set; then
12786 echo $ECHO_N "(cached) $ECHO_C" >&6
12788 ac_check_lib_save_LIBS=$LIBS
12789 LIBS="-lkrb4 $LIBS"
12790 cat >conftest.$ac_ext <<_ACEOF
12793 cat confdefs.h >>conftest.$ac_ext
12794 cat >>conftest.$ac_ext <<_ACEOF
12795 /* end confdefs.h. */
12797 /* Override any gcc2 internal prototype to avoid an error. */
12801 /* We use char because int might match the return type of a gcc2
12802 builtin and then its argument prototype would still apply. */
12803 char krb_get_tf_realm ();
12807 krb_get_tf_realm ();
12812 rm -f conftest.$ac_objext conftest$ac_exeext
12813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12814 (eval $ac_link) 2>conftest.er1
12816 grep -v '^ *+' conftest.er1 >conftest.err
12818 cat conftest.err >&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); } &&
12821 { ac_try='test -z "$ac_c_werror_flag"
12822 || test ! -s conftest.err'
12823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12824 (eval $ac_try) 2>&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); }; } &&
12828 { ac_try='test -s conftest$ac_exeext'
12829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830 (eval $ac_try) 2>&5
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); }; }; then
12834 ac_cv_lib_krb4_krb_get_tf_realm=yes
12836 echo "$as_me: failed program was:" >&5
12837 sed 's/^/| /' conftest.$ac_ext >&5
12839 ac_cv_lib_krb4_krb_get_tf_realm=no
12841 rm -f conftest.err conftest.$ac_objext \
12842 conftest$ac_exeext conftest.$ac_ext
12843 LIBS=$ac_check_lib_save_LIBS
12845 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_tf_realm" >&5
12846 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_tf_realm" >&6
12847 if test $ac_cv_lib_krb4_krb_get_tf_realm = yes; then
12853 CPPFLAGS="$ac_save_CPPFLAGS"
12854 LDFLAGS="$ac_save_LDFLAGS"
12855 # LIBS="$ac_save_LIBS"
12857 if test "$have_kerberos" = yes ; then
12859 cat >>confdefs.h <<\_ACEOF
12860 #define HAVE_KERBEROS 1
12863 cat >>confdefs.h <<\_ACEOF
12864 #define HAVE_KERBEROS5 1
12869 { echo "$as_me:$LINENO: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&5
12870 echo "$as_me: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&2;}
12875 if test "$have_kerberos5" = yes ; then
12876 # from Matt Knopp <mhat@infocalypse.netlag.com>
12877 # (who got it from amu@mit.edu)
12879 PASSWD_LIBS="$PASSWD_LIBS -lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
12881 # jwz: MacOS X uses -lkrb5, but not -lcrypt
12883 ac_save_CPPFLAGS="$CPPFLAGS"
12884 ac_save_LDFLAGS="$LDFLAGS"
12885 # ac_save_LIBS="$LIBS"
12887 if test \! -z "$includedir" ; then
12888 CPPFLAGS="$CPPFLAGS -I$includedir"
12890 # note: $X_CFLAGS includes $x_includes
12891 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12893 if test \! -z "$libdir" ; then
12894 LDFLAGS="$LDFLAGS -L$libdir"
12896 # note: $X_LIBS includes $x_libraries
12897 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12899 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
12900 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
12901 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12904 ac_check_lib_save_LIBS=$LIBS
12905 LIBS="-lcrypt $LIBS"
12906 cat >conftest.$ac_ext <<_ACEOF
12909 cat confdefs.h >>conftest.$ac_ext
12910 cat >>conftest.$ac_ext <<_ACEOF
12911 /* end confdefs.h. */
12913 /* Override any gcc2 internal prototype to avoid an error. */
12917 /* We use char because int might match the return type of a gcc2
12918 builtin and then its argument prototype would still apply. */
12928 rm -f conftest.$ac_objext conftest$ac_exeext
12929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12930 (eval $ac_link) 2>conftest.er1
12932 grep -v '^ *+' conftest.er1 >conftest.err
12934 cat conftest.err >&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } &&
12937 { ac_try='test -z "$ac_c_werror_flag"
12938 || test ! -s conftest.err'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; } &&
12944 { ac_try='test -s conftest$ac_exeext'
12945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946 (eval $ac_try) 2>&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; }; then
12950 ac_cv_lib_crypt_crypt=yes
12952 echo "$as_me: failed program was:" >&5
12953 sed 's/^/| /' conftest.$ac_ext >&5
12955 ac_cv_lib_crypt_crypt=no
12957 rm -f conftest.err conftest.$ac_objext \
12958 conftest$ac_exeext conftest.$ac_ext
12959 LIBS=$ac_check_lib_save_LIBS
12961 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
12962 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
12963 if test $ac_cv_lib_crypt_crypt = yes; then
12964 PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
12967 CPPFLAGS="$ac_save_CPPFLAGS"
12968 LDFLAGS="$ac_save_LDFLAGS"
12969 # LIBS="$ac_save_LIBS"
12972 elif test "$have_kerberos" = yes ; then
12973 # from Tim Showalter <tjs@psaux.com> for FreeBSD 4.2
12974 PASSWD_LIBS="$PASSWD_LIBS -lkrb -ldes -lcom_err"
12977 if test "$have_kerberos" = yes ; then
12978 echo "$as_me:$LINENO: checking for res_search" >&5
12979 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
12980 if test "${ac_cv_func_res_search+set}" = set; then
12981 echo $ECHO_N "(cached) $ECHO_C" >&6
12983 cat >conftest.$ac_ext <<_ACEOF
12986 cat confdefs.h >>conftest.$ac_ext
12987 cat >>conftest.$ac_ext <<_ACEOF
12988 /* end confdefs.h. */
12989 /* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
12990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12991 #define res_search innocuous_res_search
12993 /* System header to define __stub macros and hopefully few prototypes,
12994 which can conflict with char res_search (); below.
12995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12996 <limits.h> exists even on freestanding compilers. */
12999 # include <limits.h>
13001 # include <assert.h>
13006 /* Override any gcc2 internal prototype to avoid an error. */
13011 /* We use char because int might match the return type of a gcc2
13012 builtin and then its argument prototype would still apply. */
13013 char res_search ();
13014 /* The GNU C library defines this for functions which it implements
13015 to always fail with ENOSYS. Some functions are actually named
13016 something starting with __ and the normal name is an alias. */
13017 #if defined (__stub_res_search) || defined (__stub___res_search)
13020 char (*f) () = res_search;
13029 return f != res_search;
13034 rm -f conftest.$ac_objext conftest$ac_exeext
13035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13036 (eval $ac_link) 2>conftest.er1
13038 grep -v '^ *+' conftest.er1 >conftest.err
13040 cat conftest.err >&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); } &&
13043 { ac_try='test -z "$ac_c_werror_flag"
13044 || test ! -s conftest.err'
13045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13046 (eval $ac_try) 2>&5
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); }; } &&
13050 { ac_try='test -s conftest$ac_exeext'
13051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052 (eval $ac_try) 2>&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; }; then
13056 ac_cv_func_res_search=yes
13058 echo "$as_me: failed program was:" >&5
13059 sed 's/^/| /' conftest.$ac_ext >&5
13061 ac_cv_func_res_search=no
13063 rm -f conftest.err conftest.$ac_objext \
13064 conftest$ac_exeext conftest.$ac_ext
13066 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
13067 echo "${ECHO_T}$ac_cv_func_res_search" >&6
13068 if test $ac_cv_func_res_search = yes; then
13071 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
13072 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
13073 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
13074 echo $ECHO_N "(cached) $ECHO_C" >&6
13076 ac_check_lib_save_LIBS=$LIBS
13077 LIBS="-lresolv $LIBS"
13078 cat >conftest.$ac_ext <<_ACEOF
13081 cat confdefs.h >>conftest.$ac_ext
13082 cat >>conftest.$ac_ext <<_ACEOF
13083 /* end confdefs.h. */
13085 /* Override any gcc2 internal prototype to avoid an error. */
13089 /* We use char because int might match the return type of a gcc2
13090 builtin and then its argument prototype would still apply. */
13091 char res_search ();
13100 rm -f conftest.$ac_objext conftest$ac_exeext
13101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13102 (eval $ac_link) 2>conftest.er1
13104 grep -v '^ *+' conftest.er1 >conftest.err
13106 cat conftest.err >&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); } &&
13109 { ac_try='test -z "$ac_c_werror_flag"
13110 || test ! -s conftest.err'
13111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13112 (eval $ac_try) 2>&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); }; } &&
13116 { ac_try='test -s conftest$ac_exeext'
13117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118 (eval $ac_try) 2>&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; }; then
13122 ac_cv_lib_resolv_res_search=yes
13124 echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13127 ac_cv_lib_resolv_res_search=no
13129 rm -f conftest.err conftest.$ac_objext \
13130 conftest$ac_exeext conftest.$ac_ext
13131 LIBS=$ac_check_lib_save_LIBS
13133 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
13134 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
13135 if test $ac_cv_lib_resolv_res_search = yes; then
13136 PASSWD_LIBS="${PASSWD_LIBS} -lresolv"
13138 { echo "$as_me:$LINENO: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&5
13139 echo "$as_me: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&2;}
13149 ###############################################################################
13151 # Check for the nine billion variants of shadow passwords...
13153 ###############################################################################
13158 with_shadow_req=unspecified
13161 # Check whether --with-shadow or --without-shadow was given.
13162 if test "${with_shadow+set}" = set; then
13163 withval="$with_shadow"
13164 with_shadow="$withval"; with_shadow_req="$withval"
13170 case "$with_shadow" in
13175 echo "$as_me:$LINENO: checking for shadow password headers" >&5
13176 echo $ECHO_N "checking for shadow password headers... $ECHO_C" >&6
13177 d=$with_shadow/include
13178 if test -d $d; then
13179 X_CFLAGS="-I$d $X_CFLAGS"
13180 echo "$as_me:$LINENO: result: $d" >&5
13181 echo "${ECHO_T}$d" >&6
13183 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13184 echo "${ECHO_T}not found ($d: no such directory)" >&6
13187 echo "$as_me:$LINENO: checking for shadow password libs" >&5
13188 echo $ECHO_N "checking for shadow password libs... $ECHO_C" >&6
13190 if test -d $d; then
13191 X_LIBS="-L$d $X_LIBS"
13192 echo "$as_me:$LINENO: result: $d" >&5
13193 echo "${ECHO_T}$d" >&6
13195 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13196 echo "${ECHO_T}not found ($d: no such directory)" >&6
13199 # replace the directory string with "yes".
13200 with_shadow_req="yes"
13201 with_shadow=$with_shadow_req
13206 echo "error: argument to --with-shadow must be \"yes\", \"no\", or a directory."
13207 echo " If it is a directory, then \`DIR/include' will be added to"
13208 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13214 if test "$enable_locking" = no ; then
13220 ###############################################################################
13222 # Check for Sun "adjunct" passwords.
13224 ###############################################################################
13226 if test "$with_shadow" = yes ; then
13227 echo "$as_me:$LINENO: checking for Sun-style shadow passwords" >&5
13228 echo $ECHO_N "checking for Sun-style shadow passwords... $ECHO_C" >&6
13229 if test "${ac_cv_sun_adjunct+set}" = set; then
13230 echo $ECHO_N "(cached) $ECHO_C" >&6
13233 ac_save_CPPFLAGS="$CPPFLAGS"
13234 if test \! -z "$includedir" ; then
13235 CPPFLAGS="$CPPFLAGS -I$includedir"
13237 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13238 cat >conftest.$ac_ext <<_ACEOF
13241 cat confdefs.h >>conftest.$ac_ext
13242 cat >>conftest.$ac_ext <<_ACEOF
13243 /* end confdefs.h. */
13244 #include <stdlib.h>
13245 #include <unistd.h>
13246 #include <sys/types.h>
13247 #include <sys/label.h>
13248 #include <sys/audit.h>
13249 #include <pwdadj.h>
13253 struct passwd_adjunct *p = getpwanam("nobody");
13254 const char *pw = p->pwa_passwd;
13259 rm -f conftest.$ac_objext
13260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13261 (eval $ac_compile) 2>conftest.er1
13263 grep -v '^ *+' conftest.er1 >conftest.err
13265 cat conftest.err >&5
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); } &&
13268 { ac_try='test -z "$ac_c_werror_flag"
13269 || test ! -s conftest.err'
13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; } &&
13275 { ac_try='test -s conftest.$ac_objext'
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; }; then
13281 ac_cv_sun_adjunct=yes
13283 echo "$as_me: failed program was:" >&5
13284 sed 's/^/| /' conftest.$ac_ext >&5
13286 ac_cv_sun_adjunct=no
13288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13289 CPPFLAGS="$ac_save_CPPFLAGS"
13291 echo "$as_me:$LINENO: result: $ac_cv_sun_adjunct" >&5
13292 echo "${ECHO_T}$ac_cv_sun_adjunct" >&6
13293 if test "$ac_cv_sun_adjunct" = yes; then
13294 have_shadow_adjunct=yes
13301 ###############################################################################
13303 # Check for DEC and SCO so-called "enhanced" security.
13305 ###############################################################################
13307 if test "$with_shadow" = yes ; then
13308 echo "$as_me:$LINENO: checking for DEC-style shadow passwords" >&5
13309 echo $ECHO_N "checking for DEC-style shadow passwords... $ECHO_C" >&6
13310 if test "${ac_cv_enhanced_passwd+set}" = set; then
13311 echo $ECHO_N "(cached) $ECHO_C" >&6
13314 ac_save_CPPFLAGS="$CPPFLAGS"
13315 if test \! -z "$includedir" ; then
13316 CPPFLAGS="$CPPFLAGS -I$includedir"
13318 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13319 cat >conftest.$ac_ext <<_ACEOF
13322 cat confdefs.h >>conftest.$ac_ext
13323 cat >>conftest.$ac_ext <<_ACEOF
13324 /* end confdefs.h. */
13325 #include <stdlib.h>
13326 #include <unistd.h>
13327 #include <sys/types.h>
13329 #include <sys/security.h>
13334 struct pr_passwd *p;
13336 set_auth_parameters(0, 0);
13337 check_auth_parameters();
13338 p = getprpwnam("nobody");
13339 pw = p->ufld.fd_encrypt;
13344 rm -f conftest.$ac_objext
13345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13346 (eval $ac_compile) 2>conftest.er1
13348 grep -v '^ *+' conftest.er1 >conftest.err
13350 cat conftest.err >&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } &&
13353 { ac_try='test -z "$ac_c_werror_flag"
13354 || test ! -s conftest.err'
13355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13356 (eval $ac_try) 2>&5
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); }; } &&
13360 { ac_try='test -s conftest.$ac_objext'
13361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13362 (eval $ac_try) 2>&5
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); }; }; then
13366 ac_cv_enhanced_passwd=yes
13368 echo "$as_me: failed program was:" >&5
13369 sed 's/^/| /' conftest.$ac_ext >&5
13371 ac_cv_enhanced_passwd=no
13373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13374 CPPFLAGS="$ac_save_CPPFLAGS"
13376 echo "$as_me:$LINENO: result: $ac_cv_enhanced_passwd" >&5
13377 echo "${ECHO_T}$ac_cv_enhanced_passwd" >&6
13378 if test $ac_cv_enhanced_passwd = yes; then
13379 have_shadow_enhanced=yes
13383 # On SCO, getprpwnam() is in -lprot (which uses nap() from -lx)
13384 # (I'm told it needs -lcurses too, but I don't understand why.)
13385 # But on DEC, it's in -lsecurity.
13387 echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
13388 echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
13389 if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13392 ac_check_lib_save_LIBS=$LIBS
13393 LIBS="-lprot -lx $LIBS"
13394 cat >conftest.$ac_ext <<_ACEOF
13397 cat confdefs.h >>conftest.$ac_ext
13398 cat >>conftest.$ac_ext <<_ACEOF
13399 /* end confdefs.h. */
13401 /* Override any gcc2 internal prototype to avoid an error. */
13405 /* We use char because int might match the return type of a gcc2
13406 builtin and then its argument prototype would still apply. */
13407 char getprpwnam ();
13416 rm -f conftest.$ac_objext conftest$ac_exeext
13417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13418 (eval $ac_link) 2>conftest.er1
13420 grep -v '^ *+' conftest.er1 >conftest.err
13422 cat conftest.err >&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } &&
13425 { ac_try='test -z "$ac_c_werror_flag"
13426 || test ! -s conftest.err'
13427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13428 (eval $ac_try) 2>&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; } &&
13432 { ac_try='test -s conftest$ac_exeext'
13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434 (eval $ac_try) 2>&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; }; then
13438 ac_cv_lib_prot_getprpwnam=yes
13440 echo "$as_me: failed program was:" >&5
13441 sed 's/^/| /' conftest.$ac_ext >&5
13443 ac_cv_lib_prot_getprpwnam=no
13445 rm -f conftest.err conftest.$ac_objext \
13446 conftest$ac_exeext conftest.$ac_ext
13447 LIBS=$ac_check_lib_save_LIBS
13449 echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
13450 echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6
13451 if test $ac_cv_lib_prot_getprpwnam = yes; then
13452 PASSWD_LIBS="$PASSWD_LIBS -lprot -lcurses -lx"
13454 echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
13455 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
13456 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13459 ac_check_lib_save_LIBS=$LIBS
13460 LIBS="-lsecurity $LIBS"
13461 cat >conftest.$ac_ext <<_ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h. */
13468 /* Override any gcc2 internal prototype to avoid an error. */
13472 /* We use char because int might match the return type of a gcc2
13473 builtin and then its argument prototype would still apply. */
13474 char getprpwnam ();
13483 rm -f conftest.$ac_objext conftest$ac_exeext
13484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13485 (eval $ac_link) 2>conftest.er1
13487 grep -v '^ *+' conftest.er1 >conftest.err
13489 cat conftest.err >&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } &&
13492 { ac_try='test -z "$ac_c_werror_flag"
13493 || test ! -s conftest.err'
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; } &&
13499 { ac_try='test -s conftest$ac_exeext'
13500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13501 (eval $ac_try) 2>&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); }; }; then
13505 ac_cv_lib_security_getprpwnam=yes
13507 echo "$as_me: failed program was:" >&5
13508 sed 's/^/| /' conftest.$ac_ext >&5
13510 ac_cv_lib_security_getprpwnam=no
13512 rm -f conftest.err conftest.$ac_objext \
13513 conftest$ac_exeext conftest.$ac_ext
13514 LIBS=$ac_check_lib_save_LIBS
13516 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
13517 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
13518 if test $ac_cv_lib_security_getprpwnam = yes; then
13519 PASSWD_LIBS="$PASSWD_LIBS -lsecurity"
13527 ###############################################################################
13529 # Check for HP's entry in the "Not Invented Here" Sweepstakes.
13531 ###############################################################################
13533 if test "$with_shadow" = yes ; then
13534 echo "$as_me:$LINENO: checking for HP-style shadow passwords" >&5
13535 echo $ECHO_N "checking for HP-style shadow passwords... $ECHO_C" >&6
13536 if test "${ac_cv_hpux_passwd+set}" = set; then
13537 echo $ECHO_N "(cached) $ECHO_C" >&6
13540 ac_save_CPPFLAGS="$CPPFLAGS"
13541 if test \! -z "$includedir" ; then
13542 CPPFLAGS="$CPPFLAGS -I$includedir"
13544 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13545 cat >conftest.$ac_ext <<_ACEOF
13548 cat confdefs.h >>conftest.$ac_ext
13549 cat >>conftest.$ac_ext <<_ACEOF
13550 /* end confdefs.h. */
13551 #include <stdlib.h>
13552 #include <unistd.h>
13553 #include <sys/types.h>
13555 #include <hpsecurity.h>
13560 struct s_passwd *p = getspwnam("nobody");
13561 const char *pw = p->pw_passwd;
13566 rm -f conftest.$ac_objext
13567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13568 (eval $ac_compile) 2>conftest.er1
13570 grep -v '^ *+' conftest.er1 >conftest.err
13572 cat conftest.err >&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } &&
13575 { ac_try='test -z "$ac_c_werror_flag"
13576 || test ! -s conftest.err'
13577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578 (eval $ac_try) 2>&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; } &&
13582 { ac_try='test -s conftest.$ac_objext'
13583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584 (eval $ac_try) 2>&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }; }; then
13588 ac_cv_hpux_passwd=yes
13590 echo "$as_me: failed program was:" >&5
13591 sed 's/^/| /' conftest.$ac_ext >&5
13593 ac_cv_hpux_passwd=no
13595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13596 CPPFLAGS="$ac_save_CPPFLAGS"
13598 echo "$as_me:$LINENO: result: $ac_cv_hpux_passwd" >&5
13599 echo "${ECHO_T}$ac_cv_hpux_passwd" >&6
13600 if test "$ac_cv_hpux_passwd" = yes; then
13601 have_shadow_hpux=yes
13605 # on HPUX, bigcrypt is in -lsec
13606 echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
13607 echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6
13608 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13611 ac_check_lib_save_LIBS=$LIBS
13613 cat >conftest.$ac_ext <<_ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h. */
13620 /* Override any gcc2 internal prototype to avoid an error. */
13624 /* We use char because int might match the return type of a gcc2
13625 builtin and then its argument prototype would still apply. */
13635 rm -f conftest.$ac_objext conftest$ac_exeext
13636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13637 (eval $ac_link) 2>conftest.er1
13639 grep -v '^ *+' conftest.er1 >conftest.err
13641 cat conftest.err >&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } &&
13644 { ac_try='test -z "$ac_c_werror_flag"
13645 || test ! -s conftest.err'
13646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13647 (eval $ac_try) 2>&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); }; } &&
13651 { ac_try='test -s conftest$ac_exeext'
13652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653 (eval $ac_try) 2>&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; }; then
13657 ac_cv_lib_sec_bigcrypt=yes
13659 echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.$ac_ext >&5
13662 ac_cv_lib_sec_bigcrypt=no
13664 rm -f conftest.err conftest.$ac_objext \
13665 conftest$ac_exeext conftest.$ac_ext
13666 LIBS=$ac_check_lib_save_LIBS
13668 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
13669 echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6
13670 if test $ac_cv_lib_sec_bigcrypt = yes; then
13671 PASSWD_LIBS="$PASSWD_LIBS -lsec"
13678 ###############################################################################
13680 # Check for FreeBSD-style shadow passwords.
13682 # On FreeBSD, getpwnam() and friends work just like on non-shadow-
13683 # password systems -- except you only get stuff in the pw_passwd field
13684 # if the running program is setuid. So, guess that we've got this
13685 # lossage to contend with if /etc/master.passwd exists, and default to
13686 # a setuid installation.
13688 ###############################################################################
13690 if test "$with_shadow" = yes ; then
13691 echo "$as_me:$LINENO: checking for FreeBSD-style shadow passwords" >&5
13692 echo $ECHO_N "checking for FreeBSD-style shadow passwords... $ECHO_C" >&6
13693 if test "${ac_cv_master_passwd+set}" = set; then
13694 echo $ECHO_N "(cached) $ECHO_C" >&6
13696 if test -f /etc/master.passwd ; then
13697 ac_cv_master_passwd=yes
13699 ac_cv_master_passwd=no
13702 echo "$as_me:$LINENO: result: $ac_cv_master_passwd" >&5
13703 echo "${ECHO_T}$ac_cv_master_passwd" >&6
13704 if test "$ac_cv_master_passwd" = yes; then
13710 ###############################################################################
13712 # Check for traditional (ha!) shadow passwords.
13714 ###############################################################################
13716 if test "$with_shadow" = yes ; then
13717 echo "$as_me:$LINENO: checking for generic shadow passwords" >&5
13718 echo $ECHO_N "checking for generic shadow passwords... $ECHO_C" >&6
13719 if test "${ac_cv_shadow+set}" = set; then
13720 echo $ECHO_N "(cached) $ECHO_C" >&6
13723 ac_save_CPPFLAGS="$CPPFLAGS"
13724 if test \! -z "$includedir" ; then
13725 CPPFLAGS="$CPPFLAGS -I$includedir"
13727 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13728 cat >conftest.$ac_ext <<_ACEOF
13731 cat confdefs.h >>conftest.$ac_ext
13732 cat >>conftest.$ac_ext <<_ACEOF
13733 /* end confdefs.h. */
13734 #include <stdlib.h>
13735 #include <unistd.h>
13736 #include <sys/types.h>
13738 #include <shadow.h>
13742 struct spwd *p = getspnam("nobody");
13743 const char *pw = p->sp_pwdp;
13748 rm -f conftest.$ac_objext
13749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13750 (eval $ac_compile) 2>conftest.er1
13752 grep -v '^ *+' conftest.er1 >conftest.err
13754 cat conftest.err >&5
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); } &&
13757 { ac_try='test -z "$ac_c_werror_flag"
13758 || test ! -s conftest.err'
13759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760 (eval $ac_try) 2>&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; } &&
13764 { ac_try='test -s conftest.$ac_objext'
13765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13766 (eval $ac_try) 2>&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; }; then
13772 echo "$as_me: failed program was:" >&5
13773 sed 's/^/| /' conftest.$ac_ext >&5
13777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13778 CPPFLAGS="$ac_save_CPPFLAGS"
13780 echo "$as_me:$LINENO: result: $ac_cv_shadow" >&5
13781 echo "${ECHO_T}$ac_cv_shadow" >&6
13782 if test "$ac_cv_shadow" = yes; then
13786 # On some systems (UnixWare 2.1), getspnam() is in -lgen instead of -lc.
13788 echo "$as_me:$LINENO: checking for getspnam in -lc" >&5
13789 echo $ECHO_N "checking for getspnam in -lc... $ECHO_C" >&6
13790 if test "${ac_cv_lib_c_getspnam+set}" = set; then
13791 echo $ECHO_N "(cached) $ECHO_C" >&6
13793 ac_check_lib_save_LIBS=$LIBS
13795 cat >conftest.$ac_ext <<_ACEOF
13798 cat confdefs.h >>conftest.$ac_ext
13799 cat >>conftest.$ac_ext <<_ACEOF
13800 /* end confdefs.h. */
13802 /* Override any gcc2 internal prototype to avoid an error. */
13806 /* We use char because int might match the return type of a gcc2
13807 builtin and then its argument prototype would still apply. */
13817 rm -f conftest.$ac_objext conftest$ac_exeext
13818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13819 (eval $ac_link) 2>conftest.er1
13821 grep -v '^ *+' conftest.er1 >conftest.err
13823 cat conftest.err >&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } &&
13826 { ac_try='test -z "$ac_c_werror_flag"
13827 || test ! -s conftest.err'
13828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13829 (eval $ac_try) 2>&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); }; } &&
13833 { ac_try='test -s conftest$ac_exeext'
13834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13835 (eval $ac_try) 2>&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); }; }; then
13839 ac_cv_lib_c_getspnam=yes
13841 echo "$as_me: failed program was:" >&5
13842 sed 's/^/| /' conftest.$ac_ext >&5
13844 ac_cv_lib_c_getspnam=no
13846 rm -f conftest.err conftest.$ac_objext \
13847 conftest$ac_exeext conftest.$ac_ext
13848 LIBS=$ac_check_lib_save_LIBS
13850 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getspnam" >&5
13851 echo "${ECHO_T}$ac_cv_lib_c_getspnam" >&6
13852 if test $ac_cv_lib_c_getspnam = yes; then
13856 if test "$have_getspnam" = no ; then
13857 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
13858 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
13859 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
13860 echo $ECHO_N "(cached) $ECHO_C" >&6
13862 ac_check_lib_save_LIBS=$LIBS
13864 cat >conftest.$ac_ext <<_ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h. */
13871 /* Override any gcc2 internal prototype to avoid an error. */
13875 /* We use char because int might match the return type of a gcc2
13876 builtin and then its argument prototype would still apply. */
13886 rm -f conftest.$ac_objext conftest$ac_exeext
13887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13888 (eval $ac_link) 2>conftest.er1
13890 grep -v '^ *+' conftest.er1 >conftest.err
13892 cat conftest.err >&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } &&
13895 { ac_try='test -z "$ac_c_werror_flag"
13896 || test ! -s conftest.err'
13897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898 (eval $ac_try) 2>&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; } &&
13902 { ac_try='test -s conftest$ac_exeext'
13903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13904 (eval $ac_try) 2>&5
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; }; then
13908 ac_cv_lib_gen_getspnam=yes
13910 echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13913 ac_cv_lib_gen_getspnam=no
13915 rm -f conftest.err conftest.$ac_objext \
13916 conftest$ac_exeext conftest.$ac_ext
13917 LIBS=$ac_check_lib_save_LIBS
13919 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
13920 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
13921 if test $ac_cv_lib_gen_getspnam = yes; then
13922 have_getspnam=yes; PASSWD_LIBS="$PASSWD_LIBS -lgen"
13930 ###############################################################################
13932 # Check for other libraries needed for non-shadow passwords.
13934 ###############################################################################
13936 if test "$enable_locking" = yes ; then
13938 # On some systems (UnixWare 2.1), crypt() is in -lcrypt instead of -lc.
13940 echo "$as_me:$LINENO: checking for crypt in -lc" >&5
13941 echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6
13942 if test "${ac_cv_lib_c_crypt+set}" = set; then
13943 echo $ECHO_N "(cached) $ECHO_C" >&6
13945 ac_check_lib_save_LIBS=$LIBS
13947 cat >conftest.$ac_ext <<_ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h. */
13954 /* Override any gcc2 internal prototype to avoid an error. */
13958 /* We use char because int might match the return type of a gcc2
13959 builtin and then its argument prototype would still apply. */
13969 rm -f conftest.$ac_objext conftest$ac_exeext
13970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13971 (eval $ac_link) 2>conftest.er1
13973 grep -v '^ *+' conftest.er1 >conftest.err
13975 cat conftest.err >&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } &&
13978 { ac_try='test -z "$ac_c_werror_flag"
13979 || test ! -s conftest.err'
13980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13981 (eval $ac_try) 2>&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); }; } &&
13985 { ac_try='test -s conftest$ac_exeext'
13986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13987 (eval $ac_try) 2>&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); }; }; then
13991 ac_cv_lib_c_crypt=yes
13993 echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13996 ac_cv_lib_c_crypt=no
13998 rm -f conftest.err conftest.$ac_objext \
13999 conftest$ac_exeext conftest.$ac_ext
14000 LIBS=$ac_check_lib_save_LIBS
14002 echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
14003 echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6
14004 if test $ac_cv_lib_c_crypt = yes; then
14008 if test "$have_crypt" = no ; then
14009 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
14010 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
14011 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
14012 echo $ECHO_N "(cached) $ECHO_C" >&6
14014 ac_check_lib_save_LIBS=$LIBS
14015 LIBS="-lcrypt $LIBS"
14016 cat >conftest.$ac_ext <<_ACEOF
14019 cat confdefs.h >>conftest.$ac_ext
14020 cat >>conftest.$ac_ext <<_ACEOF
14021 /* end confdefs.h. */
14023 /* Override any gcc2 internal prototype to avoid an error. */
14027 /* We use char because int might match the return type of a gcc2
14028 builtin and then its argument prototype would still apply. */
14038 rm -f conftest.$ac_objext conftest$ac_exeext
14039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14040 (eval $ac_link) 2>conftest.er1
14042 grep -v '^ *+' conftest.er1 >conftest.err
14044 cat conftest.err >&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } &&
14047 { ac_try='test -z "$ac_c_werror_flag"
14048 || test ! -s conftest.err'
14049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14050 (eval $ac_try) 2>&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); }; } &&
14054 { ac_try='test -s conftest$ac_exeext'
14055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056 (eval $ac_try) 2>&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }; }; then
14060 ac_cv_lib_crypt_crypt=yes
14062 echo "$as_me: failed program was:" >&5
14063 sed 's/^/| /' conftest.$ac_ext >&5
14065 ac_cv_lib_crypt_crypt=no
14067 rm -f conftest.err conftest.$ac_objext \
14068 conftest$ac_exeext conftest.$ac_ext
14069 LIBS=$ac_check_lib_save_LIBS
14071 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
14072 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
14073 if test $ac_cv_lib_crypt_crypt = yes; then
14074 have_crypt=yes; PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
14081 # Most of the above shadow mechanisms will have set need_setuid to yes,
14082 # if they were found. But, on some systems, we need setuid even when
14083 # using plain old vanilla passwords.
14085 if test "$enable_locking" = yes ; then
14087 *-hpux* | *-aix* | *-netbsd* | *-freebsd* | *-openbsd* )
14094 if test "$have_shadow_adjunct" = yes ; then
14095 cat >>confdefs.h <<\_ACEOF
14096 #define HAVE_ADJUNCT_PASSWD 1
14099 elif test "$have_shadow_enhanced" = yes ; then
14100 cat >>confdefs.h <<\_ACEOF
14101 #define HAVE_ENHANCED_PASSWD 1
14104 elif test "$have_shadow_hpux" = yes ; then
14105 cat >>confdefs.h <<\_ACEOF
14106 #define HAVE_HPUX_PASSWD 1
14109 elif test "$have_shadow" = yes ; then
14110 cat >>confdefs.h <<\_ACEOF
14111 #define HAVE_SHADOW_PASSWD 1
14117 ###############################################################################
14119 # Check for external password helper
14120 # On SuSE, instead of having xscreensaver be a setuid program, they
14121 # fork an external program that takes the password on stdin, and
14122 # returns true if that password is a valid one. Then only that
14123 # smaller program needs to be setuid.
14125 # (Note that this external program is not a GUI: the GUI is still
14126 # all in xscreensaver itself; the external program just does auth.)
14128 ###############################################################################
14130 have_passwd_helper=no
14131 with_passwd_helper_req=unspecified
14134 # Check whether --with-passwd-helper or --without-passwd-helper was given.
14135 if test "${with_passwd_helper+set}" = set; then
14136 withval="$with_passwd_helper"
14137 with_passwd_helper="$withval"; with_passwd_helper_req="$withval"
14139 with_passwd_helper=no
14141 # no HANDLE_X_PATH_ARG for this one
14143 if test "$enable_locking" = no ; then
14144 with_passwd_helper_req=no
14145 with_passwd_helper=no
14148 case "$with_passwd_helper" in
14151 cat >>confdefs.h <<_ACEOF
14152 #define PASSWD_HELPER_PROGRAM "$with_passwd_helper"
14155 have_passwd_helper=yes;;
14157 echo "error: --with-passwd-helper needs full pathname of helper (not '$with_passwd_helper')." >&2
14162 ###############################################################################
14164 # Check for a login manager for a "New Login" button on the lock dialog.
14165 # Usually this will be "/usr/bin/gdmflexiserver".
14167 ###############################################################################
14169 have_login_manager=no
14170 with_login_manager_req=unspecified
14171 default_login_manager='gdmflexiserver -l'
14174 # Check whether --with-login-manager or --without-login-manager was given.
14175 if test "${with_login_manager+set}" = set; then
14176 withval="$with_login_manager"
14177 with_login_manager="$withval"; with_login_manager_req="$withval"
14179 with_login_manager=no
14181 # no HANDLE_X_PATH_ARG for this one
14183 if test "$enable_locking" = no ; then
14184 with_login_manager_req=no
14185 with_login_manager=no
14188 if test -n "$with_login_manager_req" ; then
14189 ac_cv_login_manager_program=""
14191 if test "$with_login_manager_req" = "yes" ; then
14192 with_login_manager_req=$default_login_manager
14195 case "$with_login_manager_req" in
14198 set dummy $with_login_manager_req ; login_manager_tmp=$2
14199 echo "$as_me:$LINENO: checking for $login_manager_tmp" >&5
14200 echo $ECHO_N "checking for $login_manager_tmp... $ECHO_C" >&6
14201 if test -x "$login_manager_tmp" ; then
14202 echo "$as_me:$LINENO: result: yes" >&5
14203 echo "${ECHO_T}yes" >&6
14204 with_login_manager="$login_manager_tmp"
14206 echo "$as_me:$LINENO: result: no" >&5
14207 echo "${ECHO_T}no" >&6
14208 with_login_manager=""
14213 set dummy $with_login_manager_req ; login_manager_tmp=$2
14215 unset ac_cv_path_login_manager_tmp
14216 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
14217 set dummy $login_manager_tmp; ac_word=$2
14218 echo "$as_me:$LINENO: checking for $ac_word" >&5
14219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14220 if test "${ac_cv_path_login_manager_tmp+set}" = set; then
14221 echo $ECHO_N "(cached) $ECHO_C" >&6
14223 case $login_manager_tmp in
14225 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
14228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14229 for as_dir in $PATH
14232 test -z "$as_dir" && as_dir=.
14233 for ac_exec_ext in '' $ac_executable_extensions; do
14234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14235 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
14236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14245 login_manager_tmp=$ac_cv_path_login_manager_tmp
14247 if test -n "$login_manager_tmp"; then
14248 echo "$as_me:$LINENO: result: $login_manager_tmp" >&5
14249 echo "${ECHO_T}$login_manager_tmp" >&6
14251 echo "$as_me:$LINENO: result: no" >&5
14252 echo "${ECHO_T}no" >&6
14255 if test -z "$login_manager_tmp" ; then
14256 with_login_manager=""
14258 with_login_manager="$login_manager_tmp"
14262 ac_cv_login_manager_program="$with_login_manager"
14264 elif test -n "$ac_cv_login_manager_program"; then
14265 echo "$as_me:$LINENO: result: checking for login_manager... (cached) $ac_cv_login_manager_program" >&5
14266 echo "${ECHO_T}checking for login_manager... (cached) $ac_cv_login_manager_program" >&6
14269 NEW_LOGIN_COMMAND_P=''
14270 NEW_LOGIN_COMMAND="$ac_cv_login_manager_program"
14272 if test -z "$NEW_LOGIN_COMMAND" ; then
14273 NEW_LOGIN_COMMAND="$default_login_manager"
14274 NEW_LOGIN_COMMAND_P='! '
14279 ###############################################################################
14281 # Check for -lgtk (and Gnome stuff)
14283 ###############################################################################
14286 with_gtk_req=unspecified
14288 # Check whether --with-gtk or --without-gtk was given.
14289 if test "${with_gtk+set}" = set; then
14290 withval="$with_gtk"
14291 with_gtk="$withval"; with_gtk_req="$withval"
14296 # if --with-gtk=/directory/ was specified, remember that directory so that
14297 # we can also look for the `gtk-config' program in that directory.
14298 case "$with_gtk" in
14300 gtk_dir="$with_gtk"
14308 case "$with_gtk" in
14313 echo "$as_me:$LINENO: checking for Gtk headers" >&5
14314 echo $ECHO_N "checking for Gtk headers... $ECHO_C" >&6
14315 d=$with_gtk/include
14316 if test -d $d; then
14317 X_CFLAGS="-I$d $X_CFLAGS"
14318 echo "$as_me:$LINENO: result: $d" >&5
14319 echo "${ECHO_T}$d" >&6
14321 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14322 echo "${ECHO_T}not found ($d: no such directory)" >&6
14325 echo "$as_me:$LINENO: checking for Gtk libs" >&5
14326 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
14328 if test -d $d; then
14329 X_LIBS="-L$d $X_LIBS"
14330 echo "$as_me:$LINENO: result: $d" >&5
14331 echo "${ECHO_T}$d" >&6
14333 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14334 echo "${ECHO_T}not found ($d: no such directory)" >&6
14337 # replace the directory string with "yes".
14339 with_gtk=$with_gtk_req
14344 echo "error: argument to --with-gtk must be \"yes\", \"no\", or a directory."
14345 echo " If it is a directory, then \`DIR/include' will be added to"
14346 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14352 if test "$with_gtk" != yes -a "$with_gtk" != no ; then
14353 echo "error: must be yes or no: --with-gtk=$with_gtk"
14358 parse_gtk_version_string() {
14361 maj=`echo $ac_gtk_version_string | sed -n 's/\..*//p'`
14362 min=`echo $ac_gtk_version_string | sed -n 's/[^.]*\.\([^.]*\).*/\1/p'`
14364 ac_gtk_version=`echo "$maj * 1000 + $min" | bc`
14365 if test -z "$ac_gtk_version"; then
14366 ac_gtk_version=unknown
14367 ac_gtk_version_string=unknown
14371 # Find pkg-config... (need this for both gtk and gdk_pixbuf.)
14372 # if the user specified --with-gtk=/foo/ then look there.
14375 if test ! -z "$gtk_dir"; then
14376 # canonicalize slashes.
14377 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
14378 gtk_path="$foo:$gtk_path"
14381 for ac_prog in pkg-config
14383 # Extract the first word of "$ac_prog", so it can be a program name with args.
14384 set dummy $ac_prog; ac_word=$2
14385 echo "$as_me:$LINENO: checking for $ac_word" >&5
14386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14387 if test "${ac_cv_path_pkg_config+set}" = set; then
14388 echo $ECHO_N "(cached) $ECHO_C" >&6
14390 case $pkg_config in
14392 ac_cv_path_pkg_config="$pkg_config" # Let the user override the test with a path.
14395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14396 for as_dir in $gtk_path
14399 test -z "$as_dir" && as_dir=.
14400 for ac_exec_ext in '' $ac_executable_extensions; do
14401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14402 ac_cv_path_pkg_config="$as_dir/$ac_word$ac_exec_ext"
14403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14412 pkg_config=$ac_cv_path_pkg_config
14414 if test -n "$pkg_config"; then
14415 echo "$as_me:$LINENO: result: $pkg_config" >&5
14416 echo "${ECHO_T}$pkg_config" >&6
14418 echo "$as_me:$LINENO: result: no" >&5
14419 echo "${ECHO_T}no" >&6
14422 test -n "$pkg_config" && break
14426 if test -z "$pkg_config" ; then
14427 { echo "$as_me:$LINENO: WARNING: pkg-config not found!" >&5
14428 echo "$as_me: WARNING: pkg-config not found!" >&2;}
14433 # Utility function for running pkg-config-based tests...
14436 pkg_check_version() {
14437 if test "$ok" = yes ; then
14440 echo "$as_me:$LINENO: checking for $req" >&5
14441 echo $ECHO_N "checking for $req... $ECHO_C" >&6
14442 if $pkg_config --exists "$req" ; then
14443 vers=`$pkg_config --modversion "$req"`
14444 if $pkg_config --exists "$req >= $min" ; then
14445 echo "$as_me:$LINENO: result: $vers" >&5
14446 echo "${ECHO_T}$vers" >&6
14450 echo "$as_me:$LINENO: result: $vers (wanted >= $min)" >&5
14451 echo "${ECHO_T}$vers (wanted >= $min)" >&6
14456 echo "$as_me:$LINENO: result: no" >&5
14457 echo "${ECHO_T}no" >&6
14468 if test "$with_gtk" = yes; then
14472 pkg_check_version gtk+-2.0 2.0.1 ; ac_gtk_version_string="$vers"
14473 pkg_check_version gmodule-2.0 2.0.0
14474 pkg_check_version libxml-2.0 2.4.6
14475 pkg_check_version libglade-2.0 1.99.0
14476 pkg_check_version gdk-pixbuf-2.0 2.0.0
14477 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
14480 if test "$have_gtk" = no; then
14481 if test -n "$ac_gtk_version_string" ; then
14482 gtk_halfassed="$ac_gtk_version_string"
14483 gtk_halfassed_lib="$req"
14487 if test "$have_gtk" = yes; then
14488 parse_gtk_version_string
14492 if test "$have_gtk" = yes; then
14493 echo "$as_me:$LINENO: checking for Gtk includes" >&5
14494 echo $ECHO_N "checking for Gtk includes... $ECHO_C" >&6
14495 if test "${ac_cv_gtk_config_cflags+set}" = set; then
14496 echo $ECHO_N "(cached) $ECHO_C" >&6
14498 ac_cv_gtk_config_cflags=`$pkg_config --cflags $pkgs`
14500 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_cflags" >&5
14501 echo "${ECHO_T}$ac_cv_gtk_config_cflags" >&6
14502 echo "$as_me:$LINENO: checking for Gtk libs" >&5
14503 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
14504 if test "${ac_cv_gtk_config_libs+set}" = set; then
14505 echo $ECHO_N "(cached) $ECHO_C" >&6
14507 ac_cv_gtk_config_libs=`$pkg_config --libs $pkgs`
14509 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_libs" >&5
14510 echo "${ECHO_T}$ac_cv_gtk_config_libs" >&6
14512 ac_gtk_config_cflags=$ac_cv_gtk_config_cflags
14513 ac_gtk_config_libs=$ac_cv_gtk_config_libs
14517 if test "$have_gtk" = yes; then
14518 GTK_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
14519 GTK_DATADIR="$GTK_DATADIR/share"
14522 if test "$have_gtk" = yes; then
14523 INCLUDES="$INCLUDES $ac_gtk_config_cflags"
14524 GTK_LIBS="$GTK_LIBS $ac_gtk_config_libs"
14525 cat >>confdefs.h <<\_ACEOF
14529 cat >>confdefs.h <<\_ACEOF
14530 #define HAVE_GTK2 1
14533 cat >>confdefs.h <<\_ACEOF
14542 # Check for the various Gnome help and URL loading programs.
14544 if test "$have_gtk" = yes; then
14545 for ac_prog in gnome-open
14547 # Extract the first word of "$ac_prog", so it can be a program name with args.
14548 set dummy $ac_prog; ac_word=$2
14549 echo "$as_me:$LINENO: checking for $ac_word" >&5
14550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14551 if test "${ac_cv_prog_gnome_open_program+set}" = set; then
14552 echo $ECHO_N "(cached) $ECHO_C" >&6
14554 if test -n "$gnome_open_program"; then
14555 ac_cv_prog_gnome_open_program="$gnome_open_program" # Let the user override the test.
14557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14558 for as_dir in $PATH
14561 test -z "$as_dir" && as_dir=.
14562 for ac_exec_ext in '' $ac_executable_extensions; do
14563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14564 ac_cv_prog_gnome_open_program="$ac_prog"
14565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14573 gnome_open_program=$ac_cv_prog_gnome_open_program
14574 if test -n "$gnome_open_program"; then
14575 echo "$as_me:$LINENO: result: $gnome_open_program" >&5
14576 echo "${ECHO_T}$gnome_open_program" >&6
14578 echo "$as_me:$LINENO: result: no" >&5
14579 echo "${ECHO_T}no" >&6
14582 test -n "$gnome_open_program" && break
14585 for ac_prog in gnome-url-show
14587 # Extract the first word of "$ac_prog", so it can be a program name with args.
14588 set dummy $ac_prog; ac_word=$2
14589 echo "$as_me:$LINENO: checking for $ac_word" >&5
14590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14591 if test "${ac_cv_prog_gnome_url_show_program+set}" = set; then
14592 echo $ECHO_N "(cached) $ECHO_C" >&6
14594 if test -n "$gnome_url_show_program"; then
14595 ac_cv_prog_gnome_url_show_program="$gnome_url_show_program" # Let the user override the test.
14597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14598 for as_dir in $PATH
14601 test -z "$as_dir" && as_dir=.
14602 for ac_exec_ext in '' $ac_executable_extensions; do
14603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14604 ac_cv_prog_gnome_url_show_program="$ac_prog"
14605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14613 gnome_url_show_program=$ac_cv_prog_gnome_url_show_program
14614 if test -n "$gnome_url_show_program"; then
14615 echo "$as_me:$LINENO: result: $gnome_url_show_program" >&5
14616 echo "${ECHO_T}$gnome_url_show_program" >&6
14618 echo "$as_me:$LINENO: result: no" >&5
14619 echo "${ECHO_T}no" >&6
14622 test -n "$gnome_url_show_program" && break
14628 ###############################################################################
14632 ###############################################################################
14635 with_motif_req=unspecified
14637 # Check whether --with-motif or --without-motif was given.
14638 if test "${with_motif+set}" = set; then
14639 withval="$with_motif"
14640 with_motif="$withval"; with_motif_req="$withval"
14646 case "$with_motif" in
14651 echo "$as_me:$LINENO: checking for Motif headers" >&5
14652 echo $ECHO_N "checking for Motif headers... $ECHO_C" >&6
14653 d=$with_motif/include
14654 if test -d $d; then
14655 X_CFLAGS="-I$d $X_CFLAGS"
14656 echo "$as_me:$LINENO: result: $d" >&5
14657 echo "${ECHO_T}$d" >&6
14659 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14660 echo "${ECHO_T}not found ($d: no such directory)" >&6
14663 echo "$as_me:$LINENO: checking for Motif libs" >&5
14664 echo $ECHO_N "checking for Motif libs... $ECHO_C" >&6
14666 if test -d $d; then
14667 X_LIBS="-L$d $X_LIBS"
14668 echo "$as_me:$LINENO: result: $d" >&5
14669 echo "${ECHO_T}$d" >&6
14671 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14672 echo "${ECHO_T}not found ($d: no such directory)" >&6
14675 # replace the directory string with "yes".
14676 with_motif_req="yes"
14677 with_motif=$with_motif_req
14682 echo "error: argument to --with-motif must be \"yes\", \"no\", or a directory."
14683 echo " If it is a directory, then \`DIR/include' will be added to"
14684 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14690 if test "$with_motif" != yes -a "$with_motif" != no ; then
14691 echo "error: must be yes or no: --with-motif=$with_motif"
14695 if test "$with_motif" = yes; then
14698 ac_save_CPPFLAGS="$CPPFLAGS"
14699 if test \! -z "$includedir" ; then
14700 CPPFLAGS="$CPPFLAGS -I$includedir"
14702 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14703 echo "$as_me:$LINENO: checking for Xm/Xm.h" >&5
14704 echo $ECHO_N "checking for Xm/Xm.h... $ECHO_C" >&6
14705 if test "${ac_cv_header_Xm_Xm_h+set}" = set; then
14706 echo $ECHO_N "(cached) $ECHO_C" >&6
14708 cat >conftest.$ac_ext <<_ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h. */
14714 #include <stdlib.h>
14716 #include <X11/Intrinsic.h>
14720 rm -f conftest.$ac_objext
14721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14722 (eval $ac_compile) 2>conftest.er1
14724 grep -v '^ *+' conftest.er1 >conftest.err
14726 cat conftest.err >&5
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); } &&
14729 { ac_try='test -z "$ac_c_werror_flag"
14730 || test ! -s conftest.err'
14731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732 (eval $ac_try) 2>&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; } &&
14736 { ac_try='test -s conftest.$ac_objext'
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; }; then
14742 ac_cv_header_Xm_Xm_h=yes
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14747 ac_cv_header_Xm_Xm_h=no
14749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14751 echo "$as_me:$LINENO: result: $ac_cv_header_Xm_Xm_h" >&5
14752 echo "${ECHO_T}$ac_cv_header_Xm_Xm_h" >&6
14753 if test $ac_cv_header_Xm_Xm_h = yes; then
14755 cat >>confdefs.h <<\_ACEOF
14756 #define HAVE_MOTIF 1
14759 MOTIF_LIBS="$MOTIF_LIBS -lXm"
14763 CPPFLAGS="$ac_save_CPPFLAGS"
14767 if test "$have_motif" = yes; then
14769 ac_save_CPPFLAGS="$CPPFLAGS"
14770 if test \! -z "$includedir" ; then
14771 CPPFLAGS="$CPPFLAGS -I$includedir"
14773 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14774 echo "$as_me:$LINENO: checking for Xm/ComboBox.h" >&5
14775 echo $ECHO_N "checking for Xm/ComboBox.h... $ECHO_C" >&6
14776 if test "${ac_cv_header_Xm_ComboBox_h+set}" = set; then
14777 echo $ECHO_N "(cached) $ECHO_C" >&6
14779 cat >conftest.$ac_ext <<_ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h. */
14785 #include <stdlib.h>
14787 #include <X11/Intrinsic.h>
14789 #include <Xm/ComboBox.h>
14791 rm -f conftest.$ac_objext
14792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14793 (eval $ac_compile) 2>conftest.er1
14795 grep -v '^ *+' conftest.er1 >conftest.err
14797 cat conftest.err >&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); } &&
14800 { ac_try='test -z "$ac_c_werror_flag"
14801 || test ! -s conftest.err'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; } &&
14807 { ac_try='test -s conftest.$ac_objext'
14808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809 (eval $ac_try) 2>&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; }; then
14813 ac_cv_header_Xm_ComboBox_h=yes
14815 echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14818 ac_cv_header_Xm_ComboBox_h=no
14820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14822 echo "$as_me:$LINENO: result: $ac_cv_header_Xm_ComboBox_h" >&5
14823 echo "${ECHO_T}$ac_cv_header_Xm_ComboBox_h" >&6
14824 if test $ac_cv_header_Xm_ComboBox_h = yes; then
14825 cat >>confdefs.h <<\_ACEOF
14826 #define HAVE_XMCOMBOBOX 1
14832 CPPFLAGS="$ac_save_CPPFLAGS"
14836 ###############################################################################
14838 # Checking whether Motif is really Lesstif.
14840 ###############################################################################
14843 if test "$have_motif" = yes ; then
14844 echo "$as_me:$LINENO: checking whether Motif is really LessTif" >&5
14845 echo $ECHO_N "checking whether Motif is really LessTif... $ECHO_C" >&6
14846 if test "${ac_cv_have_lesstif+set}" = set; then
14847 echo $ECHO_N "(cached) $ECHO_C" >&6
14850 ac_save_CPPFLAGS="$CPPFLAGS"
14851 if test \! -z "$includedir" ; then
14852 CPPFLAGS="$CPPFLAGS -I$includedir"
14854 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14855 cat >conftest.$ac_ext <<_ACEOF
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h. */
14865 long vers = LesstifVersion;
14870 rm -f conftest.$ac_objext
14871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14872 (eval $ac_compile) 2>conftest.er1
14874 grep -v '^ *+' conftest.er1 >conftest.err
14876 cat conftest.err >&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } &&
14879 { ac_try='test -z "$ac_c_werror_flag"
14880 || test ! -s conftest.err'
14881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882 (eval $ac_try) 2>&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; } &&
14886 { ac_try='test -s conftest.$ac_objext'
14887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14888 (eval $ac_try) 2>&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); }; }; then
14892 ac_cv_have_lesstif=yes
14894 echo "$as_me: failed program was:" >&5
14895 sed 's/^/| /' conftest.$ac_ext >&5
14897 ac_cv_have_lesstif=no
14899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14900 CPPFLAGS="$ac_save_CPPFLAGS"
14902 echo "$as_me:$LINENO: result: $ac_cv_have_lesstif" >&5
14903 echo "${ECHO_T}$ac_cv_have_lesstif" >&6
14904 have_lesstif=$ac_cv_have_lesstif
14908 lesstif_version=unknown
14909 lesstif_version_string=unknown
14911 if test "$have_lesstif" = yes ; then
14913 echo unknown > conftest-lt
14914 echo "$as_me:$LINENO: checking LessTif version number" >&5
14915 echo $ECHO_N "checking LessTif version number... $ECHO_C" >&6
14916 if test "${ac_cv_lesstif_version_string+set}" = set; then
14917 echo $ECHO_N "(cached) $ECHO_C" >&6
14920 ac_save_CPPFLAGS="$CPPFLAGS"
14921 if test \! -z "$includedir" ; then
14922 CPPFLAGS="$CPPFLAGS -I$includedir"
14924 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14925 if test "$cross_compiling" = yes; then
14926 ac_cv_lesstif_version=unknown
14927 ac_cv_lesstif_version_string=unknown
14929 cat >conftest.$ac_ext <<_ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h. */
14938 FILE *f = fopen("conftest-lt", "w");
14940 fprintf(f, "%d %d.%d\n", LesstifVersion,
14941 LESSTIF_VERSION, LESSTIF_REVISION);
14946 rm -f conftest$ac_exeext
14947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14948 (eval $ac_link) 2>&5
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14953 (eval $ac_try) 2>&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); }; }; then
14957 ltv=`cat conftest-lt`
14958 ac_cv_lesstif_version=`echo $ltv | sed 's/ .*//'`
14959 ac_cv_lesstif_version_string=`echo $ltv | sed 's/.* //'`
14961 echo "$as_me: program exited with status $ac_status" >&5
14962 echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.$ac_ext >&5
14965 ( exit $ac_status )
14966 ac_cv_lesstif_version=unknown
14967 ac_cv_lesstif_version_string=unknown
14969 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14971 CPPFLAGS="$ac_save_CPPFLAGS"
14973 echo "$as_me:$LINENO: result: $ac_cv_lesstif_version_string" >&5
14974 echo "${ECHO_T}$ac_cv_lesstif_version_string" >&6
14976 lesstif_version=$ac_cv_lesstif_version
14977 lesstif_version_string=$ac_cv_lesstif_version_string
14982 if test "$have_motif" = yes ; then
14984 echo unknown > conftest-mt
14985 echo "$as_me:$LINENO: checking Motif version number" >&5
14986 echo $ECHO_N "checking Motif version number... $ECHO_C" >&6
14987 if test "${ac_cv_motif_version_string+set}" = set; then
14988 echo $ECHO_N "(cached) $ECHO_C" >&6
14991 ac_save_CPPFLAGS="$CPPFLAGS"
14992 if test \! -z "$includedir" ; then
14993 CPPFLAGS="$CPPFLAGS -I$includedir"
14995 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14996 if test "$cross_compiling" = yes; then
14997 ac_cv_motif_version=unknown
14998 ac_cv_motif_version_string=unknown
15000 cat >conftest.$ac_ext <<_ACEOF
15003 cat confdefs.h >>conftest.$ac_ext
15004 cat >>conftest.$ac_ext <<_ACEOF
15005 /* end confdefs.h. */
15009 FILE *f = fopen("conftest-mt", "w");
15011 fprintf(f, "%d %d.%d\n", XmVersion,
15012 XmVERSION, XmREVISION);
15017 rm -f conftest$ac_exeext
15018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15019 (eval $ac_link) 2>&5
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15024 (eval $ac_try) 2>&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); }; }; then
15028 mtv=`cat conftest-mt`
15029 ac_cv_motif_version=`echo $mtv | sed 's/ .*//'`
15030 ac_cv_motif_version_string=`echo $mtv | sed 's/.* //'`
15032 echo "$as_me: program exited with status $ac_status" >&5
15033 echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15036 ( exit $ac_status )
15037 ac_cv_motif_version=unknown
15038 ac_cv_motif_version_string=unknown
15040 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15042 CPPFLAGS="$ac_save_CPPFLAGS"
15044 echo "$as_me:$LINENO: result: $ac_cv_motif_version_string" >&5
15045 echo "${ECHO_T}$ac_cv_motif_version_string" >&6
15047 motif_version=$ac_cv_motif_version
15048 motif_version_string=$ac_cv_motif_version_string
15053 ###############################################################################
15055 # Checking whether Motif requires -lXpm.
15057 # If this is Motif 2.x, and we have XPM, then link against XPM as well.
15058 # The deal is, Motif 2.x requires XPM -- but it's a compilation option
15059 # of the library whether to build the XPM code into libXm, or whether
15060 # to rely on an external libXm. So the only way to tell whether XPM is
15061 # a link-time requirement is to examine libXm.a, which is very
15062 # difficult to do in an autoconf script. So... if it's Motif 2.x, we
15063 # always link against XPM if the XPM lib exists (and this will be a
15064 # no-op if libXm happens to already have the XPM code in it.)
15066 ###############################################################################
15068 motif_requires_xpm=no
15069 if test "$have_motif" = yes ; then
15070 echo "$as_me:$LINENO: checking whether Motif requires XPM" >&5
15071 echo $ECHO_N "checking whether Motif requires XPM... $ECHO_C" >&6
15072 if test "$motif_version" = "unknown" || test "$motif_version" -ge 2000
15074 motif_requires_xpm=yes
15075 echo "$as_me:$LINENO: result: maybe" >&5
15076 echo "${ECHO_T}maybe" >&6
15078 echo "$as_me:$LINENO: result: no" >&5
15079 echo "${ECHO_T}no" >&6
15084 ###############################################################################
15086 # Checking whether Motif requires -lXp.
15088 # Some versions of Motif (2.1.0, at least) require -lXp, the "X Printing
15089 # Extension". Why this extension isn't in -lXext with all the others,
15092 ###############################################################################
15095 if test "$have_motif" = yes ; then
15098 ac_save_CPPFLAGS="$CPPFLAGS"
15099 ac_save_LDFLAGS="$LDFLAGS"
15100 # ac_save_LIBS="$LIBS"
15102 if test \! -z "$includedir" ; then
15103 CPPFLAGS="$CPPFLAGS -I$includedir"
15105 # note: $X_CFLAGS includes $x_includes
15106 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15108 if test \! -z "$libdir" ; then
15109 LDFLAGS="$LDFLAGS -L$libdir"
15111 # note: $X_LIBS includes $x_libraries
15112 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15114 echo "$as_me:$LINENO: checking for XpQueryExtension in -lXp" >&5
15115 echo $ECHO_N "checking for XpQueryExtension in -lXp... $ECHO_C" >&6
15116 if test "${ac_cv_lib_Xp_XpQueryExtension+set}" = set; then
15117 echo $ECHO_N "(cached) $ECHO_C" >&6
15119 ac_check_lib_save_LIBS=$LIBS
15120 LIBS="-lXp -lX11 -lXext -lm $LIBS"
15121 cat >conftest.$ac_ext <<_ACEOF
15124 cat confdefs.h >>conftest.$ac_ext
15125 cat >>conftest.$ac_ext <<_ACEOF
15126 /* end confdefs.h. */
15128 /* Override any gcc2 internal prototype to avoid an error. */
15132 /* We use char because int might match the return type of a gcc2
15133 builtin and then its argument prototype would still apply. */
15134 char XpQueryExtension ();
15138 XpQueryExtension ();
15143 rm -f conftest.$ac_objext conftest$ac_exeext
15144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15145 (eval $ac_link) 2>conftest.er1
15147 grep -v '^ *+' conftest.er1 >conftest.err
15149 cat conftest.err >&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); } &&
15152 { ac_try='test -z "$ac_c_werror_flag"
15153 || test ! -s conftest.err'
15154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15155 (eval $ac_try) 2>&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }; } &&
15159 { ac_try='test -s conftest$ac_exeext'
15160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161 (eval $ac_try) 2>&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; }; then
15165 ac_cv_lib_Xp_XpQueryExtension=yes
15167 echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15170 ac_cv_lib_Xp_XpQueryExtension=no
15172 rm -f conftest.err conftest.$ac_objext \
15173 conftest$ac_exeext conftest.$ac_ext
15174 LIBS=$ac_check_lib_save_LIBS
15176 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpQueryExtension" >&5
15177 echo "${ECHO_T}$ac_cv_lib_Xp_XpQueryExtension" >&6
15178 if test $ac_cv_lib_Xp_XpQueryExtension = yes; then
15179 have_xp_ext=yes; MOTIF_LIBS="$MOTIF_LIBS -lXp"
15184 CPPFLAGS="$ac_save_CPPFLAGS"
15185 LDFLAGS="$ac_save_LDFLAGS"
15186 # LIBS="$ac_save_LIBS"
15191 ###############################################################################
15193 # Checking whether Motif requires -lXintl (for _Xsetlocale.)
15195 ###############################################################################
15198 if test "$have_motif" = yes ; then
15200 ac_save_CPPFLAGS="$CPPFLAGS"
15201 ac_save_LDFLAGS="$LDFLAGS"
15202 # ac_save_LIBS="$LIBS"
15204 if test \! -z "$includedir" ; then
15205 CPPFLAGS="$CPPFLAGS -I$includedir"
15207 # note: $X_CFLAGS includes $x_includes
15208 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15210 if test \! -z "$libdir" ; then
15211 LDFLAGS="$LDFLAGS -L$libdir"
15213 # note: $X_LIBS includes $x_libraries
15214 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15216 echo "$as_me:$LINENO: checking for _Xsetlocale in -lXintl" >&5
15217 echo $ECHO_N "checking for _Xsetlocale in -lXintl... $ECHO_C" >&6
15218 if test "${ac_cv_lib_Xintl__Xsetlocale+set}" = set; then
15219 echo $ECHO_N "(cached) $ECHO_C" >&6
15221 ac_check_lib_save_LIBS=$LIBS
15222 LIBS="-lXintl -lX11 -lXext -lm $LIBS"
15223 cat >conftest.$ac_ext <<_ACEOF
15226 cat confdefs.h >>conftest.$ac_ext
15227 cat >>conftest.$ac_ext <<_ACEOF
15228 /* end confdefs.h. */
15230 /* Override any gcc2 internal prototype to avoid an error. */
15234 /* We use char because int might match the return type of a gcc2
15235 builtin and then its argument prototype would still apply. */
15236 char _Xsetlocale ();
15245 rm -f conftest.$ac_objext conftest$ac_exeext
15246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15247 (eval $ac_link) 2>conftest.er1
15249 grep -v '^ *+' conftest.er1 >conftest.err
15251 cat conftest.err >&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); } &&
15254 { ac_try='test -z "$ac_c_werror_flag"
15255 || test ! -s conftest.err'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; } &&
15261 { ac_try='test -s conftest$ac_exeext'
15262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15263 (eval $ac_try) 2>&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; }; then
15267 ac_cv_lib_Xintl__Xsetlocale=yes
15269 echo "$as_me: failed program was:" >&5
15270 sed 's/^/| /' conftest.$ac_ext >&5
15272 ac_cv_lib_Xintl__Xsetlocale=no
15274 rm -f conftest.err conftest.$ac_objext \
15275 conftest$ac_exeext conftest.$ac_ext
15276 LIBS=$ac_check_lib_save_LIBS
15278 echo "$as_me:$LINENO: result: $ac_cv_lib_Xintl__Xsetlocale" >&5
15279 echo "${ECHO_T}$ac_cv_lib_Xintl__Xsetlocale" >&6
15280 if test $ac_cv_lib_Xintl__Xsetlocale = yes; then
15286 CPPFLAGS="$ac_save_CPPFLAGS"
15287 LDFLAGS="$ac_save_LDFLAGS"
15288 # LIBS="$ac_save_LIBS"
15290 if test "$have_xintl" = yes; then
15291 MOTIF_LIBS="$MOTIF_LIBS -lXintl"
15296 ###############################################################################
15298 # Check for -lGL or -lMesaGL.
15300 ###############################################################################
15304 with_gl_req=unspecified
15307 # Check whether --with-gl or --without-gl was given.
15308 if test "${with_gl+set}" = set; then
15310 with_gl="$withval"; with_gl_req="$withval"
15321 echo "$as_me:$LINENO: checking for GL headers" >&5
15322 echo $ECHO_N "checking for GL headers... $ECHO_C" >&6
15324 if test -d $d; then
15325 X_CFLAGS="-I$d $X_CFLAGS"
15326 echo "$as_me:$LINENO: result: $d" >&5
15327 echo "${ECHO_T}$d" >&6
15329 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15330 echo "${ECHO_T}not found ($d: no such directory)" >&6
15333 echo "$as_me:$LINENO: checking for GL libs" >&5
15334 echo $ECHO_N "checking for GL libs... $ECHO_C" >&6
15336 if test -d $d; then
15337 X_LIBS="-L$d $X_LIBS"
15338 echo "$as_me:$LINENO: result: $d" >&5
15339 echo "${ECHO_T}$d" >&6
15341 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15342 echo "${ECHO_T}not found ($d: no such directory)" >&6
15345 # replace the directory string with "yes".
15347 with_gl=$with_gl_req
15352 echo "error: argument to --with-gl must be \"yes\", \"no\", or a directory."
15353 echo " If it is a directory, then \`DIR/include' will be added to"
15354 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15360 ac_mesagl_version=unknown
15361 ac_mesagl_version_string=unknown
15363 if test "$with_gl" = yes; then
15365 ac_save_CPPFLAGS="$CPPFLAGS"
15366 if test \! -z "$includedir" ; then
15367 CPPFLAGS="$CPPFLAGS -I$includedir"
15369 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15370 if test "${ac_cv_header_GL_gl_h+set}" = set; then
15371 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
15372 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
15373 if test "${ac_cv_header_GL_gl_h+set}" = set; then
15374 echo $ECHO_N "(cached) $ECHO_C" >&6
15376 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
15377 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
15379 # Is the header compilable?
15380 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
15381 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
15382 cat >conftest.$ac_ext <<_ACEOF
15385 cat confdefs.h >>conftest.$ac_ext
15386 cat >>conftest.$ac_ext <<_ACEOF
15387 /* end confdefs.h. */
15388 $ac_includes_default
15391 rm -f conftest.$ac_objext
15392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15393 (eval $ac_compile) 2>conftest.er1
15395 grep -v '^ *+' conftest.er1 >conftest.err
15397 cat conftest.err >&5
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); } &&
15400 { ac_try='test -z "$ac_c_werror_flag"
15401 || test ! -s conftest.err'
15402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403 (eval $ac_try) 2>&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; } &&
15407 { ac_try='test -s conftest.$ac_objext'
15408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15409 (eval $ac_try) 2>&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); }; }; then
15413 ac_header_compiler=yes
15415 echo "$as_me: failed program was:" >&5
15416 sed 's/^/| /' conftest.$ac_ext >&5
15418 ac_header_compiler=no
15420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15421 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15422 echo "${ECHO_T}$ac_header_compiler" >&6
15424 # Is the header present?
15425 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
15426 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
15427 cat >conftest.$ac_ext <<_ACEOF
15430 cat confdefs.h >>conftest.$ac_ext
15431 cat >>conftest.$ac_ext <<_ACEOF
15432 /* end confdefs.h. */
15435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15438 grep -v '^ *+' conftest.er1 >conftest.err
15440 cat conftest.err >&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); } >/dev/null; then
15443 if test -s conftest.err; then
15444 ac_cpp_err=$ac_c_preproc_warn_flag
15445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15452 if test -z "$ac_cpp_err"; then
15453 ac_header_preproc=yes
15455 echo "$as_me: failed program was:" >&5
15456 sed 's/^/| /' conftest.$ac_ext >&5
15458 ac_header_preproc=no
15460 rm -f conftest.err conftest.$ac_ext
15461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15462 echo "${ECHO_T}$ac_header_preproc" >&6
15464 # So? What about this header?
15465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15467 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15468 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15469 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
15470 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
15471 ac_header_preproc=yes
15474 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
15475 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
15476 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
15477 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
15478 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
15479 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
15480 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
15481 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
15482 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
15483 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
15484 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
15485 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
15488 ## ------------------------------------------ ##
15489 ## Report this to the AC_PACKAGE_NAME lists. ##
15490 ## ------------------------------------------ ##
15493 sed "s/^/$as_me: WARNING: /" >&2
15496 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
15497 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
15498 if test "${ac_cv_header_GL_gl_h+set}" = set; then
15499 echo $ECHO_N "(cached) $ECHO_C" >&6
15501 ac_cv_header_GL_gl_h=$ac_header_preproc
15503 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
15504 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
15507 if test $ac_cv_header_GL_gl_h = yes; then
15514 CPPFLAGS="$ac_save_CPPFLAGS"
15515 if test "$have_gl" = yes ; then
15517 ac_save_CPPFLAGS="$CPPFLAGS"
15518 if test \! -z "$includedir" ; then
15519 CPPFLAGS="$CPPFLAGS -I$includedir"
15521 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15522 echo "$as_me:$LINENO: checking for GL/glx.h" >&5
15523 echo $ECHO_N "checking for GL/glx.h... $ECHO_C" >&6
15524 if test "${ac_cv_header_GL_glx_h+set}" = set; then
15525 echo $ECHO_N "(cached) $ECHO_C" >&6
15527 cat >conftest.$ac_ext <<_ACEOF
15530 cat confdefs.h >>conftest.$ac_ext
15531 cat >>conftest.$ac_ext <<_ACEOF
15532 /* end confdefs.h. */
15535 #include <GL/glx.h>
15537 rm -f conftest.$ac_objext
15538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15539 (eval $ac_compile) 2>conftest.er1
15541 grep -v '^ *+' conftest.er1 >conftest.err
15543 cat conftest.err >&5
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } &&
15546 { ac_try='test -z "$ac_c_werror_flag"
15547 || test ! -s conftest.err'
15548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549 (eval $ac_try) 2>&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); }; } &&
15553 { ac_try='test -s conftest.$ac_objext'
15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555 (eval $ac_try) 2>&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; }; then
15559 ac_cv_header_GL_glx_h=yes
15561 echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.$ac_ext >&5
15564 ac_cv_header_GL_glx_h=no
15566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15568 echo "$as_me:$LINENO: result: $ac_cv_header_GL_glx_h" >&5
15569 echo "${ECHO_T}$ac_cv_header_GL_glx_h" >&6
15570 if test $ac_cv_header_GL_glx_h = yes; then
15577 CPPFLAGS="$ac_save_CPPFLAGS"
15580 # If we have the headers, try and figure out which vendor it's from.
15582 if test "$have_gl" = yes ; then
15584 # We need to know whether it's MesaGL so that we know which libraries
15587 echo "$as_me:$LINENO: checking whether GL is really MesaGL" >&5
15588 echo $ECHO_N "checking whether GL is really MesaGL... $ECHO_C" >&6
15589 if test "${ac_cv_have_mesa_gl+set}" = set; then
15590 echo $ECHO_N "(cached) $ECHO_C" >&6
15592 ac_cv_have_mesa_gl=no
15594 ac_save_CPPFLAGS="$CPPFLAGS"
15595 if test \! -z "$includedir" ; then
15596 CPPFLAGS="$CPPFLAGS -I$includedir"
15598 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15599 cat >conftest.$ac_ext <<_ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h. */
15605 #include <GL/glx.h>
15608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15609 $EGREP "Mesa|MESA" >/dev/null 2>&1; then
15610 ac_cv_have_mesa_gl=yes
15614 CPPFLAGS="$ac_save_CPPFLAGS"
15617 echo "$as_me:$LINENO: result: $ac_cv_have_mesa_gl" >&5
15618 echo "${ECHO_T}$ac_cv_have_mesa_gl" >&6
15619 ac_have_mesa_gl=$ac_cv_have_mesa_gl
15626 # Some versions of MesaGL are compiled to require -lpthread.
15627 # So if the Mesa headers exist, and -lpthread exists, then always
15628 # link -lpthread after the Mesa libs (be they named -lGL or -lMesaGL.)
15630 if test "$ac_have_mesa_gl" = yes; then
15631 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
15632 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
15633 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
15634 echo $ECHO_N "(cached) $ECHO_C" >&6
15636 ac_check_lib_save_LIBS=$LIBS
15637 LIBS="-lpthread $LIBS"
15638 cat >conftest.$ac_ext <<_ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15645 /* Override any gcc2 internal prototype to avoid an error. */
15649 /* We use char because int might match the return type of a gcc2
15650 builtin and then its argument prototype would still apply. */
15651 char pthread_create ();
15660 rm -f conftest.$ac_objext conftest$ac_exeext
15661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15662 (eval $ac_link) 2>conftest.er1
15664 grep -v '^ *+' conftest.er1 >conftest.err
15666 cat conftest.err >&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } &&
15669 { ac_try='test -z "$ac_c_werror_flag"
15670 || test ! -s conftest.err'
15671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15672 (eval $ac_try) 2>&5
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); }; } &&
15676 { ac_try='test -s conftest$ac_exeext'
15677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678 (eval $ac_try) 2>&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); }; }; then
15682 ac_cv_lib_pthread_pthread_create=yes
15684 echo "$as_me: failed program was:" >&5
15685 sed 's/^/| /' conftest.$ac_ext >&5
15687 ac_cv_lib_pthread_pthread_create=no
15689 rm -f conftest.err conftest.$ac_objext \
15690 conftest$ac_exeext conftest.$ac_ext
15691 LIBS=$ac_check_lib_save_LIBS
15693 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
15694 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
15695 if test $ac_cv_lib_pthread_pthread_create = yes; then
15696 GL_LIBS="-lpthread"
15702 # If we have Mesa headers, check to see if we can link against -lMesaGL.
15703 # If we don't have Mesa headers, or we don't have -lMesaGL, try -lGL.
15704 # Else, warn that GL is busted. (We have the headers, but no libs.)
15707 if test "$ac_have_mesa_gl" = yes ; then
15709 ac_save_CPPFLAGS="$CPPFLAGS"
15710 ac_save_LDFLAGS="$LDFLAGS"
15711 # ac_save_LIBS="$LIBS"
15713 if test \! -z "$includedir" ; then
15714 CPPFLAGS="$CPPFLAGS -I$includedir"
15716 # note: $X_CFLAGS includes $x_includes
15717 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15719 if test \! -z "$libdir" ; then
15720 LDFLAGS="$LDFLAGS -L$libdir"
15722 # note: $X_LIBS includes $x_libraries
15723 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15725 echo "$as_me:$LINENO: checking for glXCreateContext in -lMesaGL" >&5
15726 echo $ECHO_N "checking for glXCreateContext in -lMesaGL... $ECHO_C" >&6
15727 if test "${ac_cv_lib_MesaGL_glXCreateContext+set}" = set; then
15728 echo $ECHO_N "(cached) $ECHO_C" >&6
15730 ac_check_lib_save_LIBS=$LIBS
15731 LIBS="-lMesaGL -lMesaGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
15732 cat >conftest.$ac_ext <<_ACEOF
15735 cat confdefs.h >>conftest.$ac_ext
15736 cat >>conftest.$ac_ext <<_ACEOF
15737 /* end confdefs.h. */
15739 /* Override any gcc2 internal prototype to avoid an error. */
15743 /* We use char because int might match the return type of a gcc2
15744 builtin and then its argument prototype would still apply. */
15745 char glXCreateContext ();
15749 glXCreateContext ();
15754 rm -f conftest.$ac_objext conftest$ac_exeext
15755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15756 (eval $ac_link) 2>conftest.er1
15758 grep -v '^ *+' conftest.er1 >conftest.err
15760 cat conftest.err >&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } &&
15763 { ac_try='test -z "$ac_c_werror_flag"
15764 || test ! -s conftest.err'
15765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15766 (eval $ac_try) 2>&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); }; } &&
15770 { ac_try='test -s conftest$ac_exeext'
15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; }; then
15776 ac_cv_lib_MesaGL_glXCreateContext=yes
15778 echo "$as_me: failed program was:" >&5
15779 sed 's/^/| /' conftest.$ac_ext >&5
15781 ac_cv_lib_MesaGL_glXCreateContext=no
15783 rm -f conftest.err conftest.$ac_objext \
15784 conftest$ac_exeext conftest.$ac_ext
15785 LIBS=$ac_check_lib_save_LIBS
15787 echo "$as_me:$LINENO: result: $ac_cv_lib_MesaGL_glXCreateContext" >&5
15788 echo "${ECHO_T}$ac_cv_lib_MesaGL_glXCreateContext" >&6
15789 if test $ac_cv_lib_MesaGL_glXCreateContext = yes; then
15791 GL_LIBS="-lMesaGL -lMesaGLU $VIDMODE_LIBS $GL_LIBS"
15794 CPPFLAGS="$ac_save_CPPFLAGS"
15795 LDFLAGS="$ac_save_LDFLAGS"
15796 # LIBS="$ac_save_LIBS"
15800 if test "$gl_lib_1" = "" ; then
15802 ac_save_CPPFLAGS="$CPPFLAGS"
15803 ac_save_LDFLAGS="$LDFLAGS"
15804 # ac_save_LIBS="$LIBS"
15806 if test \! -z "$includedir" ; then
15807 CPPFLAGS="$CPPFLAGS -I$includedir"
15809 # note: $X_CFLAGS includes $x_includes
15810 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15812 if test \! -z "$libdir" ; then
15813 LDFLAGS="$LDFLAGS -L$libdir"
15815 # note: $X_LIBS includes $x_libraries
15816 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15818 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
15819 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
15820 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
15821 echo $ECHO_N "(cached) $ECHO_C" >&6
15823 ac_check_lib_save_LIBS=$LIBS
15824 LIBS="-lGL -lGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
15825 cat >conftest.$ac_ext <<_ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h. */
15832 /* Override any gcc2 internal prototype to avoid an error. */
15836 /* We use char because int might match the return type of a gcc2
15837 builtin and then its argument prototype would still apply. */
15838 char glXCreateContext ();
15842 glXCreateContext ();
15847 rm -f conftest.$ac_objext conftest$ac_exeext
15848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15849 (eval $ac_link) 2>conftest.er1
15851 grep -v '^ *+' conftest.er1 >conftest.err
15853 cat conftest.err >&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); } &&
15856 { ac_try='test -z "$ac_c_werror_flag"
15857 || test ! -s conftest.err'
15858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859 (eval $ac_try) 2>&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; } &&
15863 { ac_try='test -s conftest$ac_exeext'
15864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865 (eval $ac_try) 2>&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; }; then
15869 ac_cv_lib_GL_glXCreateContext=yes
15871 echo "$as_me: failed program was:" >&5
15872 sed 's/^/| /' conftest.$ac_ext >&5
15874 ac_cv_lib_GL_glXCreateContext=no
15876 rm -f conftest.err conftest.$ac_objext \
15877 conftest$ac_exeext conftest.$ac_ext
15878 LIBS=$ac_check_lib_save_LIBS
15880 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
15881 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
15882 if test $ac_cv_lib_GL_glXCreateContext = yes; then
15884 GL_LIBS="-lGL -lGLU $VIDMODE_LIBS $GL_LIBS"
15887 CPPFLAGS="$ac_save_CPPFLAGS"
15888 LDFLAGS="$ac_save_LDFLAGS"
15889 # LIBS="$ac_save_LIBS"
15893 if test "$gl_lib_1" = "" ; then
15894 # we have headers, but no libs -- bail.
15899 # linking works -- we can build the GL hacks.
15900 cat >>confdefs.h <<\_ACEOF
15904 if test "$ac_have_mesa_gl" = yes ; then
15905 cat >>confdefs.h <<\_ACEOF
15906 #define HAVE_MESA_GL 1
15914 # Now that we know we have GL headers and libs, do some more GL testing.
15917 if test "$have_gl" = yes ; then
15918 # If it's MesaGL, we'd like to issue a warning if the version number
15919 # is less than or equal to 2.6, because that version had a security bug.
15921 if test "$ac_have_mesa_gl" = yes; then
15923 echo "$as_me:$LINENO: checking MesaGL version number" >&5
15924 echo $ECHO_N "checking MesaGL version number... $ECHO_C" >&6
15925 if test "${ac_cv_mesagl_version_string+set}" = set; then
15926 echo $ECHO_N "(cached) $ECHO_C" >&6
15928 cat > conftest.$ac_ext <<EOF
15929 #line 15933 "configure"
15930 #include "confdefs.h"
15932 #ifndef MESA_MAJOR_VERSION
15933 # include <GL/xmesa.h>
15934 # ifdef XMESA_MAJOR_VERSION
15935 /* Around Mesa 3.2, they took out the Mesa version number, so instead,
15936 we have to check the XMesa version number (the number of the X protocol
15937 support, which seems to be the same as the Mesa version number.)
15939 # define MESA_MAJOR_VERSION XMESA_MAJOR_VERSION
15940 # define MESA_MINOR_VERSION XMESA_MINOR_VERSION
15942 /* Oh great. Some time after 3.4, they took out the xmesa.h header file,
15943 so we have no way of telling what version of Mesa this is at all.
15944 So, we'll guess that the osmesa version (the "offscreen protocol")
15945 is less than or equal to the real mesa version number. Except that
15946 if OSmesa is 3.3, assume at least Mesa 3.4, since OSmesa was 3.3 in
15947 Mesa 3.4. And Mesa 3.3 had xmesa.h. What a complete load of shit!
15949 # include <GL/osmesa.h>
15950 # define MESA_MAJOR_VERSION OSMESA_MAJOR_VERSION
15951 # define MESA_MINOR_VERSION OSMESA_MINOR_VERSION or newer, probably?
15952 # if OSMESA_MAJOR_VERSION == 3 && OSMESA_MINOR_VERSION == 3
15953 # undef MESA_MINOR_VERSION
15954 # define MESA_MINOR_VERSION 4 or newer, probably?
15958 configure: MESA_MAJOR_VERSION MESA_MINOR_VERSION
15961 ac_save_CPPFLAGS="$CPPFLAGS"
15962 if test \! -z "$includedir" ; then
15963 CPPFLAGS="$CPPFLAGS -I$includedir"
15965 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15967 mglv=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | grep configure:`
15971 mglv=`echo "$mglv" | sed -n \
15972 's/^configure: *\([0-9][0-9]*\) *\([0-9].*\)$/\1.\2/p'`
15975 rm -f conftest.$ac_ext
15977 CPPFLAGS="$ac_save_CPPFLAGS"
15979 if test "$mglv" = ""; then
15980 ac_mesagl_version=unknown
15981 ac_mesagl_version_string=unknown
15983 ac_mesagl_version_string="$mglv"
15986 maj=`echo "$mglv" | sed -n 's/^\([0-9][0-9]*\)\..*$/\1/p'`
15987 min=`echo "$mglv" | sed -n 's/^.*\.\([0-9][0-9]*\).*$/\1/p'`
15989 ac_mesagl_version=`echo "$maj * 1000 + $min" | bc`
15990 if test -z "$ac_mesagl_version"; then
15991 ac_mesagl_version=unknown
15992 ac_mesagl_version_string=unknown
15995 ac_cv_mesagl_version=$ac_mesagl_version
15996 ac_cv_mesagl_version_string=$ac_mesagl_version_string
15999 echo "$as_me:$LINENO: result: $ac_cv_mesagl_version_string" >&5
16000 echo "${ECHO_T}$ac_cv_mesagl_version_string" >&6
16001 ac_mesagl_version=$ac_cv_mesagl_version
16002 ac_mesagl_version_string=$ac_cv_mesagl_version_string
16006 # Check for OpenGL 1.1 features.
16009 ac_save_CPPFLAGS="$CPPFLAGS"
16010 ac_save_LDFLAGS="$LDFLAGS"
16011 # ac_save_LIBS="$LIBS"
16013 if test \! -z "$includedir" ; then
16014 CPPFLAGS="$CPPFLAGS -I$includedir"
16016 # note: $X_CFLAGS includes $x_includes
16017 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16019 if test \! -z "$libdir" ; then
16020 LDFLAGS="$LDFLAGS -L$libdir"
16022 # note: $X_LIBS includes $x_libraries
16023 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16025 as_ac_Lib=`echo "ac_cv_lib_$gl_lib_1''_glBindTexture" | $as_tr_sh`
16026 echo "$as_me:$LINENO: checking for glBindTexture in -l$gl_lib_1" >&5
16027 echo $ECHO_N "checking for glBindTexture in -l$gl_lib_1... $ECHO_C" >&6
16028 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16029 echo $ECHO_N "(cached) $ECHO_C" >&6
16031 ac_check_lib_save_LIBS=$LIBS
16032 LIBS="-l$gl_lib_1 $GL_LIBS -lX11 -lXext -lm $LIBS"
16033 cat >conftest.$ac_ext <<_ACEOF
16036 cat confdefs.h >>conftest.$ac_ext
16037 cat >>conftest.$ac_ext <<_ACEOF
16038 /* end confdefs.h. */
16040 /* Override any gcc2 internal prototype to avoid an error. */
16044 /* We use char because int might match the return type of a gcc2
16045 builtin and then its argument prototype would still apply. */
16046 char glBindTexture ();
16055 rm -f conftest.$ac_objext conftest$ac_exeext
16056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16057 (eval $ac_link) 2>conftest.er1
16059 grep -v '^ *+' conftest.er1 >conftest.err
16061 cat conftest.err >&5
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); } &&
16064 { ac_try='test -z "$ac_c_werror_flag"
16065 || test ! -s conftest.err'
16066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067 (eval $ac_try) 2>&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); }; } &&
16071 { ac_try='test -s conftest$ac_exeext'
16072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16073 (eval $ac_try) 2>&5
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); }; }; then
16077 eval "$as_ac_Lib=yes"
16079 echo "$as_me: failed program was:" >&5
16080 sed 's/^/| /' conftest.$ac_ext >&5
16082 eval "$as_ac_Lib=no"
16084 rm -f conftest.err conftest.$ac_objext \
16085 conftest$ac_exeext conftest.$ac_ext
16086 LIBS=$ac_check_lib_save_LIBS
16088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16089 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16090 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16091 cat >>confdefs.h <<\_ACEOF
16092 #define HAVE_GLBINDTEXTURE 1
16099 CPPFLAGS="$ac_save_CPPFLAGS"
16100 LDFLAGS="$ac_save_LDFLAGS"
16101 # LIBS="$ac_save_LIBS"
16105 elif test "$with_gl" != no; then
16106 echo "error: must be yes or no: --with-gl=$with_gl"
16111 ###############################################################################
16115 ###############################################################################
16118 with_gle_req=unspecified
16121 # Check whether --with-gle or --without-gle was given.
16122 if test "${with_gle+set}" = set; then
16123 withval="$with_gle"
16124 with_gle="$withval"; with_gle_req="$withval"
16130 case "$with_gle" in
16135 echo "$as_me:$LINENO: checking for GLE headers" >&5
16136 echo $ECHO_N "checking for GLE headers... $ECHO_C" >&6
16137 d=$with_gle/include
16138 if test -d $d; then
16139 X_CFLAGS="-I$d $X_CFLAGS"
16140 echo "$as_me:$LINENO: result: $d" >&5
16141 echo "${ECHO_T}$d" >&6
16143 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16144 echo "${ECHO_T}not found ($d: no such directory)" >&6
16147 echo "$as_me:$LINENO: checking for GLE libs" >&5
16148 echo $ECHO_N "checking for GLE libs... $ECHO_C" >&6
16150 if test -d $d; then
16151 X_LIBS="-L$d $X_LIBS"
16152 echo "$as_me:$LINENO: result: $d" >&5
16153 echo "${ECHO_T}$d" >&6
16155 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16156 echo "${ECHO_T}not found ($d: no such directory)" >&6
16159 # replace the directory string with "yes".
16161 with_gle=$with_gle_req
16166 echo "error: argument to --with-gle must be \"yes\", \"no\", or a directory."
16167 echo " If it is a directory, then \`DIR/include' will be added to"
16168 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16176 if test "$have_gl" = no ; then
16178 elif test "$with_gle" = yes; then
16181 ac_save_CPPFLAGS="$CPPFLAGS"
16182 if test \! -z "$includedir" ; then
16183 CPPFLAGS="$CPPFLAGS -I$includedir"
16185 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16186 echo "$as_me:$LINENO: checking for GL/gle.h" >&5
16187 echo $ECHO_N "checking for GL/gle.h... $ECHO_C" >&6
16188 if test "${ac_cv_header_GL_gle_h+set}" = set; then
16189 echo $ECHO_N "(cached) $ECHO_C" >&6
16191 cat >conftest.$ac_ext <<_ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h. */
16199 #include <GL/gle.h>
16201 rm -f conftest.$ac_objext
16202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16203 (eval $ac_compile) 2>conftest.er1
16205 grep -v '^ *+' conftest.er1 >conftest.err
16207 cat conftest.err >&5
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); } &&
16210 { ac_try='test -z "$ac_c_werror_flag"
16211 || test ! -s conftest.err'
16212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16213 (eval $ac_try) 2>&5
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); }; } &&
16217 { ac_try='test -s conftest.$ac_objext'
16218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16219 (eval $ac_try) 2>&5
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); }; }; then
16223 ac_cv_header_GL_gle_h=yes
16225 echo "$as_me: failed program was:" >&5
16226 sed 's/^/| /' conftest.$ac_ext >&5
16228 ac_cv_header_GL_gle_h=no
16230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16232 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gle_h" >&5
16233 echo "${ECHO_T}$ac_cv_header_GL_gle_h" >&6
16234 if test $ac_cv_header_GL_gle_h = yes; then
16241 CPPFLAGS="$ac_save_CPPFLAGS"
16242 if test "$have_gle3" = yes ; then
16246 ac_save_CPPFLAGS="$CPPFLAGS"
16247 if test \! -z "$includedir" ; then
16248 CPPFLAGS="$CPPFLAGS -I$includedir"
16250 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16251 echo "$as_me:$LINENO: checking for GL/gutil.h" >&5
16252 echo $ECHO_N "checking for GL/gutil.h... $ECHO_C" >&6
16253 if test "${ac_cv_header_GL_gutil_h+set}" = set; then
16254 echo $ECHO_N "(cached) $ECHO_C" >&6
16256 cat >conftest.$ac_ext <<_ACEOF
16259 cat confdefs.h >>conftest.$ac_ext
16260 cat >>conftest.$ac_ext <<_ACEOF
16261 /* end confdefs.h. */
16264 #include <GL/gutil.h>
16266 rm -f conftest.$ac_objext
16267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16268 (eval $ac_compile) 2>conftest.er1
16270 grep -v '^ *+' conftest.er1 >conftest.err
16272 cat conftest.err >&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } &&
16275 { ac_try='test -z "$ac_c_werror_flag"
16276 || test ! -s conftest.err'
16277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16278 (eval $ac_try) 2>&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); }; } &&
16282 { ac_try='test -s conftest.$ac_objext'
16283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284 (eval $ac_try) 2>&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; }; then
16288 ac_cv_header_GL_gutil_h=yes
16290 echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16293 ac_cv_header_GL_gutil_h=no
16295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16297 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gutil_h" >&5
16298 echo "${ECHO_T}$ac_cv_header_GL_gutil_h" >&6
16299 if test $ac_cv_header_GL_gutil_h = yes; then
16306 CPPFLAGS="$ac_save_CPPFLAGS"
16307 if test "$have_gle" = yes ; then
16309 ac_save_CPPFLAGS="$CPPFLAGS"
16310 if test \! -z "$includedir" ; then
16311 CPPFLAGS="$CPPFLAGS -I$includedir"
16313 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16314 echo "$as_me:$LINENO: checking for GL/tube.h" >&5
16315 echo $ECHO_N "checking for GL/tube.h... $ECHO_C" >&6
16316 if test "${ac_cv_header_GL_tube_h+set}" = set; then
16317 echo $ECHO_N "(cached) $ECHO_C" >&6
16319 cat >conftest.$ac_ext <<_ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h. */
16327 #include <GL/tube.h>
16329 rm -f conftest.$ac_objext
16330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16331 (eval $ac_compile) 2>conftest.er1
16333 grep -v '^ *+' conftest.er1 >conftest.err
16335 cat conftest.err >&5
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); } &&
16338 { ac_try='test -z "$ac_c_werror_flag"
16339 || test ! -s conftest.err'
16340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16341 (eval $ac_try) 2>&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); }; } &&
16345 { ac_try='test -s conftest.$ac_objext'
16346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347 (eval $ac_try) 2>&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; }; then
16351 ac_cv_header_GL_tube_h=yes
16353 echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16356 ac_cv_header_GL_tube_h=no
16358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16360 echo "$as_me:$LINENO: result: $ac_cv_header_GL_tube_h" >&5
16361 echo "${ECHO_T}$ac_cv_header_GL_tube_h" >&6
16362 if test $ac_cv_header_GL_tube_h = yes; then
16369 CPPFLAGS="$ac_save_CPPFLAGS"
16373 if test "$have_gle" = yes ; then
16377 ac_save_CPPFLAGS="$CPPFLAGS"
16378 ac_save_LDFLAGS="$LDFLAGS"
16379 # ac_save_LIBS="$LIBS"
16381 if test \! -z "$includedir" ; then
16382 CPPFLAGS="$CPPFLAGS -I$includedir"
16384 # note: $X_CFLAGS includes $x_includes
16385 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16387 if test \! -z "$libdir" ; then
16388 LDFLAGS="$LDFLAGS -L$libdir"
16390 # note: $X_LIBS includes $x_libraries
16391 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16393 echo "$as_me:$LINENO: checking for gleCreateGC in -lgle" >&5
16394 echo $ECHO_N "checking for gleCreateGC in -lgle... $ECHO_C" >&6
16395 if test "${ac_cv_lib_gle_gleCreateGC+set}" = set; then
16396 echo $ECHO_N "(cached) $ECHO_C" >&6
16398 ac_check_lib_save_LIBS=$LIBS
16399 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
16400 cat >conftest.$ac_ext <<_ACEOF
16403 cat confdefs.h >>conftest.$ac_ext
16404 cat >>conftest.$ac_ext <<_ACEOF
16405 /* end confdefs.h. */
16407 /* Override any gcc2 internal prototype to avoid an error. */
16411 /* We use char because int might match the return type of a gcc2
16412 builtin and then its argument prototype would still apply. */
16413 char gleCreateGC ();
16422 rm -f conftest.$ac_objext conftest$ac_exeext
16423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16424 (eval $ac_link) 2>conftest.er1
16426 grep -v '^ *+' conftest.er1 >conftest.err
16428 cat conftest.err >&5
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); } &&
16431 { ac_try='test -z "$ac_c_werror_flag"
16432 || test ! -s conftest.err'
16433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434 (eval $ac_try) 2>&5
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; } &&
16438 { ac_try='test -s conftest$ac_exeext'
16439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440 (eval $ac_try) 2>&5
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }; }; then
16444 ac_cv_lib_gle_gleCreateGC=yes
16446 echo "$as_me: failed program was:" >&5
16447 sed 's/^/| /' conftest.$ac_ext >&5
16449 ac_cv_lib_gle_gleCreateGC=no
16451 rm -f conftest.err conftest.$ac_objext \
16452 conftest$ac_exeext conftest.$ac_ext
16453 LIBS=$ac_check_lib_save_LIBS
16455 echo "$as_me:$LINENO: result: $ac_cv_lib_gle_gleCreateGC" >&5
16456 echo "${ECHO_T}$ac_cv_lib_gle_gleCreateGC" >&6
16457 if test $ac_cv_lib_gle_gleCreateGC = yes; then
16458 have_gle=yes; gle_halfassed=no; GLE_LIBS="-lgle"
16461 CPPFLAGS="$ac_save_CPPFLAGS"
16462 LDFLAGS="$ac_save_LDFLAGS"
16463 # LIBS="$ac_save_LIBS"
16466 if test "$have_gle" = yes ; then
16470 # sometimes the libmatrix stuff is included in libgle. look there first.
16472 # I don't get it. For some reason, this test passes on SGI, as if
16473 # uview_direction_d() was in libgle -- but it's not, it's in libmatrix.
16474 # Yet the link is succeeding. Why???
16476 # AC_CHECK_X_LIB(gle, uview_direction_d,
16477 # [have_gle=yes; gle_halfassed=no],
16478 # [], $GL_LIBS -lX11 -lXext -lm)
16480 # As of GLE 3 this is in libgle, and has changed name to uview_direction!
16482 if test "$have_gle3" = yes ; then
16484 ac_save_CPPFLAGS="$CPPFLAGS"
16485 ac_save_LDFLAGS="$LDFLAGS"
16486 # ac_save_LIBS="$LIBS"
16488 if test \! -z "$includedir" ; then
16489 CPPFLAGS="$CPPFLAGS -I$includedir"
16491 # note: $X_CFLAGS includes $x_includes
16492 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16494 if test \! -z "$libdir" ; then
16495 LDFLAGS="$LDFLAGS -L$libdir"
16497 # note: $X_LIBS includes $x_libraries
16498 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16500 echo "$as_me:$LINENO: checking for uview_direction in -lgle" >&5
16501 echo $ECHO_N "checking for uview_direction in -lgle... $ECHO_C" >&6
16502 if test "${ac_cv_lib_gle_uview_direction+set}" = set; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16505 ac_check_lib_save_LIBS=$LIBS
16506 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
16507 cat >conftest.$ac_ext <<_ACEOF
16510 cat confdefs.h >>conftest.$ac_ext
16511 cat >>conftest.$ac_ext <<_ACEOF
16512 /* end confdefs.h. */
16514 /* Override any gcc2 internal prototype to avoid an error. */
16518 /* We use char because int might match the return type of a gcc2
16519 builtin and then its argument prototype would still apply. */
16520 char uview_direction ();
16524 uview_direction ();
16529 rm -f conftest.$ac_objext conftest$ac_exeext
16530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16531 (eval $ac_link) 2>conftest.er1
16533 grep -v '^ *+' conftest.er1 >conftest.err
16535 cat conftest.err >&5
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); } &&
16538 { ac_try='test -z "$ac_c_werror_flag"
16539 || test ! -s conftest.err'
16540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16541 (eval $ac_try) 2>&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; } &&
16545 { ac_try='test -s conftest$ac_exeext'
16546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16547 (eval $ac_try) 2>&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); }; }; then
16551 ac_cv_lib_gle_uview_direction=yes
16553 echo "$as_me: failed program was:" >&5
16554 sed 's/^/| /' conftest.$ac_ext >&5
16556 ac_cv_lib_gle_uview_direction=no
16558 rm -f conftest.err conftest.$ac_objext \
16559 conftest$ac_exeext conftest.$ac_ext
16560 LIBS=$ac_check_lib_save_LIBS
16562 echo "$as_me:$LINENO: result: $ac_cv_lib_gle_uview_direction" >&5
16563 echo "${ECHO_T}$ac_cv_lib_gle_uview_direction" >&6
16564 if test $ac_cv_lib_gle_uview_direction = yes; then
16565 have_gle=yes; gle_halfassed=no
16568 CPPFLAGS="$ac_save_CPPFLAGS"
16569 LDFLAGS="$ac_save_LDFLAGS"
16570 # LIBS="$ac_save_LIBS"
16573 # if it wasn't in libgle, then look in libmatrix.
16574 if test "$have_gle" = no ; then
16576 ac_save_CPPFLAGS="$CPPFLAGS"
16577 ac_save_LDFLAGS="$LDFLAGS"
16578 # ac_save_LIBS="$LIBS"
16580 if test \! -z "$includedir" ; then
16581 CPPFLAGS="$CPPFLAGS -I$includedir"
16583 # note: $X_CFLAGS includes $x_includes
16584 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16586 if test \! -z "$libdir" ; then
16587 LDFLAGS="$LDFLAGS -L$libdir"
16589 # note: $X_LIBS includes $x_libraries
16590 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16592 echo "$as_me:$LINENO: checking for uview_direction_d in -lmatrix" >&5
16593 echo $ECHO_N "checking for uview_direction_d in -lmatrix... $ECHO_C" >&6
16594 if test "${ac_cv_lib_matrix_uview_direction_d+set}" = set; then
16595 echo $ECHO_N "(cached) $ECHO_C" >&6
16597 ac_check_lib_save_LIBS=$LIBS
16598 LIBS="-lmatrix $GL_LIBS -lX11 -lXext -lm $LIBS"
16599 cat >conftest.$ac_ext <<_ACEOF
16602 cat confdefs.h >>conftest.$ac_ext
16603 cat >>conftest.$ac_ext <<_ACEOF
16604 /* end confdefs.h. */
16606 /* Override any gcc2 internal prototype to avoid an error. */
16610 /* We use char because int might match the return type of a gcc2
16611 builtin and then its argument prototype would still apply. */
16612 char uview_direction_d ();
16616 uview_direction_d ();
16621 rm -f conftest.$ac_objext conftest$ac_exeext
16622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16623 (eval $ac_link) 2>conftest.er1
16625 grep -v '^ *+' conftest.er1 >conftest.err
16627 cat conftest.err >&5
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); } &&
16630 { ac_try='test -z "$ac_c_werror_flag"
16631 || test ! -s conftest.err'
16632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16633 (eval $ac_try) 2>&5
16635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636 (exit $ac_status); }; } &&
16637 { ac_try='test -s conftest$ac_exeext'
16638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16639 (eval $ac_try) 2>&5
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); }; }; then
16643 ac_cv_lib_matrix_uview_direction_d=yes
16645 echo "$as_me: failed program was:" >&5
16646 sed 's/^/| /' conftest.$ac_ext >&5
16648 ac_cv_lib_matrix_uview_direction_d=no
16650 rm -f conftest.err conftest.$ac_objext \
16651 conftest$ac_exeext conftest.$ac_ext
16652 LIBS=$ac_check_lib_save_LIBS
16654 echo "$as_me:$LINENO: result: $ac_cv_lib_matrix_uview_direction_d" >&5
16655 echo "${ECHO_T}$ac_cv_lib_matrix_uview_direction_d" >&6
16656 if test $ac_cv_lib_matrix_uview_direction_d = yes; then
16657 have_gle=yes; gle_halfassed=no;
16658 GLE_LIBS="$GLE_LIBS -lmatrix"
16661 CPPFLAGS="$ac_save_CPPFLAGS"
16662 LDFLAGS="$ac_save_LDFLAGS"
16663 # LIBS="$ac_save_LIBS"
16668 if test "$have_gle" = yes ; then
16669 cat >>confdefs.h <<\_ACEOF
16673 if test "$have_gle3" = yes ; then
16674 cat >>confdefs.h <<\_ACEOF
16675 #define HAVE_GLE3 1
16681 elif test "$with_gle" != no; then
16682 echo "error: must be yes or no: --with-gle=$with_gle"
16688 ###############################################################################
16690 # Check for -lgdk_pixbuf.
16691 # These tests are for gdk_pixbuf usage of the hacks,
16692 # not xscreensaver-demo (thus we have to test again to get
16693 # the libraries right: don't want to pull in all of GTK
16696 ###############################################################################
16699 with_gdk_pixbuf_req=unspecified
16701 # Check whether --with-pixbuf or --without-pixbuf was given.
16702 if test "${with_pixbuf+set}" = set; then
16703 withval="$with_pixbuf"
16704 with_gdk_pixbuf="$withval"; with_gdk_pixbuf_req="$withval"
16706 with_gdk_pixbuf=yes
16709 # if --with-pixbuf=/directory/ was specified, remember that directory so that
16710 # we can also look for the `gdk-pixbuf-config' program in that directory.
16711 case "$with_gdk_pixbuf" in
16713 gdk_pixbuf_dir="$with_gdk_pixbuf"
16721 case "$with_gdk_pixbuf" in
16726 echo "$as_me:$LINENO: checking for GDK_PIXBUF headers" >&5
16727 echo $ECHO_N "checking for GDK_PIXBUF headers... $ECHO_C" >&6
16728 d=$with_gdk_pixbuf/include
16729 if test -d $d; then
16730 X_CFLAGS="-I$d $X_CFLAGS"
16731 echo "$as_me:$LINENO: result: $d" >&5
16732 echo "${ECHO_T}$d" >&6
16734 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16735 echo "${ECHO_T}not found ($d: no such directory)" >&6
16738 echo "$as_me:$LINENO: checking for GDK_PIXBUF libs" >&5
16739 echo $ECHO_N "checking for GDK_PIXBUF libs... $ECHO_C" >&6
16740 d=$with_gdk_pixbuf/lib
16741 if test -d $d; then
16742 X_LIBS="-L$d $X_LIBS"
16743 echo "$as_me:$LINENO: result: $d" >&5
16744 echo "${ECHO_T}$d" >&6
16746 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16747 echo "${ECHO_T}not found ($d: no such directory)" >&6
16750 # replace the directory string with "yes".
16751 with_gdk_pixbuf_req="yes"
16752 with_gdk_pixbuf=$with_gdk_pixbuf_req
16757 echo "error: argument to --with-pixbuf must be \"yes\", \"no\", or a directory."
16758 echo " If it is a directory, then \`DIR/include' will be added to"
16759 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16765 if test "$with_gdk_pixbuf" != yes -a "$with_gdk_pixbuf" != no ; then
16766 echo "error: must be yes or no: --with-pixbuf=$with_gdk_pixbuf"
16770 if test "$with_gdk_pixbuf" = yes; then
16776 pkg_check_version gdk-pixbuf-2.0 2.0.0
16777 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
16778 have_gdk_pixbuf="$ok"
16780 if test "$have_gdk_pixbuf" = yes; then
16781 echo "$as_me:$LINENO: checking for gdk-pixbuf includes" >&5
16782 echo $ECHO_N "checking for gdk-pixbuf includes... $ECHO_C" >&6
16783 if test "${ac_cv_gdk_pixbuf_config_cflags+set}" = set; then
16784 echo $ECHO_N "(cached) $ECHO_C" >&6
16786 ac_cv_gdk_pixbuf_config_cflags=`$pkg_config --cflags $pkgs`
16788 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
16789 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_cflags" >&6
16790 echo "$as_me:$LINENO: checking for gdk-pixbuf libs" >&5
16791 echo $ECHO_N "checking for gdk-pixbuf libs... $ECHO_C" >&6
16792 if test "${ac_cv_gdk_pixbuf_config_libs+set}" = set; then
16793 echo $ECHO_N "(cached) $ECHO_C" >&6
16795 ac_cv_gdk_pixbuf_config_libs=`$pkg_config --libs $pkgs`
16797 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_libs" >&5
16798 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_libs" >&6
16800 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
16801 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
16804 if test "$have_gdk_pixbuf" = yes; then
16806 # we appear to have pixbuf; check for headers/libs to be sure.
16808 ac_save_gdk_pixbuf_CPPFLAGS="$CPPFLAGS"
16809 CPPFLAGS="$CPPFLAGS $ac_gdk_pixbuf_config_cflags"
16813 # check for header A...
16815 ac_save_CPPFLAGS="$CPPFLAGS"
16816 if test \! -z "$includedir" ; then
16817 CPPFLAGS="$CPPFLAGS -I$includedir"
16819 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16820 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
16821 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
16822 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6
16823 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16826 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
16827 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6
16829 # Is the header compilable?
16830 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h usability" >&5
16831 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h usability... $ECHO_C" >&6
16832 cat >conftest.$ac_ext <<_ACEOF
16835 cat confdefs.h >>conftest.$ac_ext
16836 cat >>conftest.$ac_ext <<_ACEOF
16837 /* end confdefs.h. */
16838 $ac_includes_default
16839 #include <gdk-pixbuf/gdk-pixbuf.h>
16841 rm -f conftest.$ac_objext
16842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16843 (eval $ac_compile) 2>conftest.er1
16845 grep -v '^ *+' conftest.er1 >conftest.err
16847 cat conftest.err >&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); } &&
16850 { ac_try='test -z "$ac_c_werror_flag"
16851 || test ! -s conftest.err'
16852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16853 (eval $ac_try) 2>&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); }; } &&
16857 { ac_try='test -s conftest.$ac_objext'
16858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16859 (eval $ac_try) 2>&5
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }; }; then
16863 ac_header_compiler=yes
16865 echo "$as_me: failed program was:" >&5
16866 sed 's/^/| /' conftest.$ac_ext >&5
16868 ac_header_compiler=no
16870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16872 echo "${ECHO_T}$ac_header_compiler" >&6
16874 # Is the header present?
16875 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h presence" >&5
16876 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h presence... $ECHO_C" >&6
16877 cat >conftest.$ac_ext <<_ACEOF
16880 cat confdefs.h >>conftest.$ac_ext
16881 cat >>conftest.$ac_ext <<_ACEOF
16882 /* end confdefs.h. */
16883 #include <gdk-pixbuf/gdk-pixbuf.h>
16885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16888 grep -v '^ *+' conftest.er1 >conftest.err
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } >/dev/null; then
16893 if test -s conftest.err; then
16894 ac_cpp_err=$ac_c_preproc_warn_flag
16895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16902 if test -z "$ac_cpp_err"; then
16903 ac_header_preproc=yes
16905 echo "$as_me: failed program was:" >&5
16906 sed 's/^/| /' conftest.$ac_ext >&5
16908 ac_header_preproc=no
16910 rm -f conftest.err conftest.$ac_ext
16911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16912 echo "${ECHO_T}$ac_header_preproc" >&6
16914 # So? What about this header?
16915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16917 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&5
16918 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16919 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the compiler's result" >&5
16920 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the compiler's result" >&2;}
16921 ac_header_preproc=yes
16924 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&5
16925 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&2;}
16926 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&5
16927 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&2;}
16928 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: see the Autoconf documentation" >&5
16929 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: see the Autoconf documentation" >&2;}
16930 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: section \"Present But Cannot Be Compiled\"" >&5
16931 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: section \"Present But Cannot Be Compiled\"" >&2;}
16932 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&5
16933 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&2;}
16934 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: in the future, the compiler will take precedence" >&5
16935 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: in the future, the compiler will take precedence" >&2;}
16938 ## ------------------------------------------ ##
16939 ## Report this to the AC_PACKAGE_NAME lists. ##
16940 ## ------------------------------------------ ##
16943 sed "s/^/$as_me: WARNING: /" >&2
16946 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
16947 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6
16948 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
16949 echo $ECHO_N "(cached) $ECHO_C" >&6
16951 ac_cv_header_gdk_pixbuf_gdk_pixbuf_h=$ac_header_preproc
16953 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
16954 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6
16957 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h = yes; then
16958 have_gdk_pixbuf=yes
16962 CPPFLAGS="$ac_save_CPPFLAGS"
16964 # if that worked, check for header B...
16965 if test "$have_gdk_pixbuf" = yes; then
16967 gdk_pixbuf_halfassed=yes
16969 ac_save_CPPFLAGS="$CPPFLAGS"
16970 if test \! -z "$includedir" ; then
16971 CPPFLAGS="$CPPFLAGS -I$includedir"
16973 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16974 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
16975 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
16976 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6
16977 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
16978 echo $ECHO_N "(cached) $ECHO_C" >&6
16980 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
16981 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6
16983 # Is the header compilable?
16984 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h usability" >&5
16985 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6
16986 cat >conftest.$ac_ext <<_ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h. */
16992 $ac_includes_default
16993 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
16995 rm -f conftest.$ac_objext
16996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16997 (eval $ac_compile) 2>conftest.er1
16999 grep -v '^ *+' conftest.er1 >conftest.err
17001 cat conftest.err >&5
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); } &&
17004 { ac_try='test -z "$ac_c_werror_flag"
17005 || test ! -s conftest.err'
17006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17007 (eval $ac_try) 2>&5
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); }; } &&
17011 { ac_try='test -s conftest.$ac_objext'
17012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17013 (eval $ac_try) 2>&5
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); }; }; then
17017 ac_header_compiler=yes
17019 echo "$as_me: failed program was:" >&5
17020 sed 's/^/| /' conftest.$ac_ext >&5
17022 ac_header_compiler=no
17024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17025 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17026 echo "${ECHO_T}$ac_header_compiler" >&6
17028 # Is the header present?
17029 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h presence" >&5
17030 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6
17031 cat >conftest.$ac_ext <<_ACEOF
17034 cat confdefs.h >>conftest.$ac_ext
17035 cat >>conftest.$ac_ext <<_ACEOF
17036 /* end confdefs.h. */
17037 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
17039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17042 grep -v '^ *+' conftest.er1 >conftest.err
17044 cat conftest.err >&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } >/dev/null; then
17047 if test -s conftest.err; then
17048 ac_cpp_err=$ac_c_preproc_warn_flag
17049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17056 if test -z "$ac_cpp_err"; then
17057 ac_header_preproc=yes
17059 echo "$as_me: failed program was:" >&5
17060 sed 's/^/| /' conftest.$ac_ext >&5
17062 ac_header_preproc=no
17064 rm -f conftest.err conftest.$ac_ext
17065 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17066 echo "${ECHO_T}$ac_header_preproc" >&6
17068 # So? What about this header?
17069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17071 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17072 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17073 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&5
17074 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&2;}
17075 ac_header_preproc=yes
17078 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
17079 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
17080 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
17081 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
17082 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&5
17083 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&2;}
17084 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&5
17085 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17086 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
17087 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
17088 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&5
17089 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&2;}
17092 ## ------------------------------------------ ##
17093 ## Report this to the AC_PACKAGE_NAME lists. ##
17094 ## ------------------------------------------ ##
17097 sed "s/^/$as_me: WARNING: /" >&2
17100 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
17101 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6
17102 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
17103 echo $ECHO_N "(cached) $ECHO_C" >&6
17105 ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h=$ac_header_preproc
17107 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
17108 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6
17111 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h = yes; then
17112 have_gdk_pixbuf=yes
17113 gdk_pixbuf_halfassed=no
17117 CPPFLAGS="$ac_save_CPPFLAGS"
17119 # yay, it has a new name in Gtk 2.x...
17120 if test "$have_gdk_pixbuf" = no; then
17122 gdk_pixbuf_halfassed=yes
17124 ac_save_CPPFLAGS="$CPPFLAGS"
17125 if test \! -z "$includedir" ; then
17126 CPPFLAGS="$CPPFLAGS -I$includedir"
17128 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17129 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
17130 echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
17131 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6
17132 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
17133 echo $ECHO_N "(cached) $ECHO_C" >&6
17135 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
17136 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6
17138 # Is the header compilable?
17139 echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability" >&5
17140 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6
17141 cat >conftest.$ac_ext <<_ACEOF
17144 cat confdefs.h >>conftest.$ac_ext
17145 cat >>conftest.$ac_ext <<_ACEOF
17146 /* end confdefs.h. */
17147 $ac_includes_default
17148 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
17150 rm -f conftest.$ac_objext
17151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17152 (eval $ac_compile) 2>conftest.er1
17154 grep -v '^ *+' conftest.er1 >conftest.err
17156 cat conftest.err >&5
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); } &&
17159 { ac_try='test -z "$ac_c_werror_flag"
17160 || test ! -s conftest.err'
17161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17162 (eval $ac_try) 2>&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); }; } &&
17166 { ac_try='test -s conftest.$ac_objext'
17167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17168 (eval $ac_try) 2>&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; }; then
17172 ac_header_compiler=yes
17174 echo "$as_me: failed program was:" >&5
17175 sed 's/^/| /' conftest.$ac_ext >&5
17177 ac_header_compiler=no
17179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17181 echo "${ECHO_T}$ac_header_compiler" >&6
17183 # Is the header present?
17184 echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence" >&5
17185 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6
17186 cat >conftest.$ac_ext <<_ACEOF
17189 cat confdefs.h >>conftest.$ac_ext
17190 cat >>conftest.$ac_ext <<_ACEOF
17191 /* end confdefs.h. */
17192 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
17194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17197 grep -v '^ *+' conftest.er1 >conftest.err
17199 cat conftest.err >&5
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); } >/dev/null; then
17202 if test -s conftest.err; then
17203 ac_cpp_err=$ac_c_preproc_warn_flag
17204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17211 if test -z "$ac_cpp_err"; then
17212 ac_header_preproc=yes
17214 echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17217 ac_header_preproc=no
17219 rm -f conftest.err conftest.$ac_ext
17220 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17221 echo "${ECHO_T}$ac_header_preproc" >&6
17223 # So? What about this header?
17224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17226 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17227 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17228 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&5
17229 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&2;}
17230 ac_header_preproc=yes
17233 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
17234 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
17235 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
17236 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
17237 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&5
17238 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&2;}
17239 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&5
17240 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17241 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
17242 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
17243 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&5
17244 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&2;}
17247 ## ------------------------------------------ ##
17248 ## Report this to the AC_PACKAGE_NAME lists. ##
17249 ## ------------------------------------------ ##
17252 sed "s/^/$as_me: WARNING: /" >&2
17255 echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
17256 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6
17257 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
17258 echo $ECHO_N "(cached) $ECHO_C" >&6
17260 ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h=$ac_header_preproc
17262 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
17263 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6
17266 if test $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h = yes; then
17267 have_gdk_pixbuf=yes
17268 gdk_pixbuf_halfassed=no
17272 CPPFLAGS="$ac_save_CPPFLAGS"
17275 CPPFLAGS="$ac_save_gdk_pixbuf_CPPFLAGS"
17278 if test "$have_gdk_pixbuf" = yes; then
17279 # we have the headers, now check for the libraries
17281 gdk_pixbuf_halfassed=yes
17283 echo "$as_me:$LINENO: result: checking for gdk_pixbuf usability..." >&5
17284 echo "${ECHO_T}checking for gdk_pixbuf usability..." >&6
17288 ac_save_CPPFLAGS="$CPPFLAGS"
17289 ac_save_LDFLAGS="$LDFLAGS"
17290 # ac_save_LIBS="$LIBS"
17292 if test \! -z "$includedir" ; then
17293 CPPFLAGS="$CPPFLAGS -I$includedir"
17295 # note: $X_CFLAGS includes $x_includes
17296 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17298 if test \! -z "$libdir" ; then
17299 LDFLAGS="$LDFLAGS -L$libdir"
17301 # note: $X_LIBS includes $x_libraries
17302 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17304 echo "$as_me:$LINENO: checking for gdk_pixbuf_new_from_file in -lc" >&5
17305 echo $ECHO_N "checking for gdk_pixbuf_new_from_file in -lc... $ECHO_C" >&6
17306 if test "${ac_cv_lib_c_gdk_pixbuf_new_from_file+set}" = set; then
17307 echo $ECHO_N "(cached) $ECHO_C" >&6
17309 ac_check_lib_save_LIBS=$LIBS
17310 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
17311 cat >conftest.$ac_ext <<_ACEOF
17314 cat confdefs.h >>conftest.$ac_ext
17315 cat >>conftest.$ac_ext <<_ACEOF
17316 /* end confdefs.h. */
17318 /* Override any gcc2 internal prototype to avoid an error. */
17322 /* We use char because int might match the return type of a gcc2
17323 builtin and then its argument prototype would still apply. */
17324 char gdk_pixbuf_new_from_file ();
17328 gdk_pixbuf_new_from_file ();
17333 rm -f conftest.$ac_objext conftest$ac_exeext
17334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17335 (eval $ac_link) 2>conftest.er1
17337 grep -v '^ *+' conftest.er1 >conftest.err
17339 cat conftest.err >&5
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); } &&
17342 { ac_try='test -z "$ac_c_werror_flag"
17343 || test ! -s conftest.err'
17344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17345 (eval $ac_try) 2>&5
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); }; } &&
17349 { ac_try='test -s conftest$ac_exeext'
17350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17351 (eval $ac_try) 2>&5
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); }; }; then
17355 ac_cv_lib_c_gdk_pixbuf_new_from_file=yes
17357 echo "$as_me: failed program was:" >&5
17358 sed 's/^/| /' conftest.$ac_ext >&5
17360 ac_cv_lib_c_gdk_pixbuf_new_from_file=no
17362 rm -f conftest.err conftest.$ac_objext \
17363 conftest$ac_exeext conftest.$ac_ext
17364 LIBS=$ac_check_lib_save_LIBS
17366 echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_new_from_file" >&5
17367 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_new_from_file" >&6
17368 if test $ac_cv_lib_c_gdk_pixbuf_new_from_file = yes; then
17369 have_gdk_pixbuf=yes
17372 CPPFLAGS="$ac_save_CPPFLAGS"
17373 LDFLAGS="$ac_save_LDFLAGS"
17374 # LIBS="$ac_save_LIBS"
17377 if test "$have_gdk_pixbuf" = yes; then
17380 ac_save_CPPFLAGS="$CPPFLAGS"
17381 ac_save_LDFLAGS="$LDFLAGS"
17382 # ac_save_LIBS="$LIBS"
17384 if test \! -z "$includedir" ; then
17385 CPPFLAGS="$CPPFLAGS -I$includedir"
17387 # note: $X_CFLAGS includes $x_includes
17388 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17390 if test \! -z "$libdir" ; then
17391 LDFLAGS="$LDFLAGS -L$libdir"
17393 # note: $X_LIBS includes $x_libraries
17394 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17396 echo "$as_me:$LINENO: checking for gdk_pixbuf_xlib_init in -lc" >&5
17397 echo $ECHO_N "checking for gdk_pixbuf_xlib_init in -lc... $ECHO_C" >&6
17398 if test "${ac_cv_lib_c_gdk_pixbuf_xlib_init+set}" = set; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17401 ac_check_lib_save_LIBS=$LIBS
17402 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
17403 cat >conftest.$ac_ext <<_ACEOF
17406 cat confdefs.h >>conftest.$ac_ext
17407 cat >>conftest.$ac_ext <<_ACEOF
17408 /* end confdefs.h. */
17410 /* Override any gcc2 internal prototype to avoid an error. */
17414 /* We use char because int might match the return type of a gcc2
17415 builtin and then its argument prototype would still apply. */
17416 char gdk_pixbuf_xlib_init ();
17420 gdk_pixbuf_xlib_init ();
17425 rm -f conftest.$ac_objext conftest$ac_exeext
17426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17427 (eval $ac_link) 2>conftest.er1
17429 grep -v '^ *+' conftest.er1 >conftest.err
17431 cat conftest.err >&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } &&
17434 { ac_try='test -z "$ac_c_werror_flag"
17435 || test ! -s conftest.err'
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; } &&
17441 { ac_try='test -s conftest$ac_exeext'
17442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17443 (eval $ac_try) 2>&5
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; }; then
17447 ac_cv_lib_c_gdk_pixbuf_xlib_init=yes
17449 echo "$as_me: failed program was:" >&5
17450 sed 's/^/| /' conftest.$ac_ext >&5
17452 ac_cv_lib_c_gdk_pixbuf_xlib_init=no
17454 rm -f conftest.err conftest.$ac_objext \
17455 conftest$ac_exeext conftest.$ac_ext
17456 LIBS=$ac_check_lib_save_LIBS
17458 echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_xlib_init" >&5
17459 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_xlib_init" >&6
17460 if test $ac_cv_lib_c_gdk_pixbuf_xlib_init = yes; then
17461 have_gdk_pixbuf=yes
17462 gdk_pixbuf_halfassed=no
17465 CPPFLAGS="$ac_save_CPPFLAGS"
17466 LDFLAGS="$ac_save_LDFLAGS"
17467 # LIBS="$ac_save_LIBS"
17472 if test "$have_gdk_pixbuf" = yes; then
17473 INCLUDES="$INCLUDES $ac_gdk_pixbuf_config_cflags"
17474 XPM_LIBS="$ac_gdk_pixbuf_config_libs"
17475 cat >>confdefs.h <<\_ACEOF
17476 #define HAVE_GDK_PIXBUF 1
17480 echo "$as_me:$LINENO: result: checking for gdk_pixbuf usability... no" >&5
17481 echo "${ECHO_T}checking for gdk_pixbuf usability... no" >&6
17486 ###############################################################################
17490 ###############################################################################
17493 with_xpm_req=unspecified
17495 # Check whether --with-xpm or --without-xpm was given.
17496 if test "${with_xpm+set}" = set; then
17497 withval="$with_xpm"
17498 with_xpm="$withval"; with_xpm_req="$withval"
17504 case "$with_xpm" in
17509 echo "$as_me:$LINENO: checking for XPM headers" >&5
17510 echo $ECHO_N "checking for XPM headers... $ECHO_C" >&6
17511 d=$with_xpm/include
17512 if test -d $d; then
17513 X_CFLAGS="-I$d $X_CFLAGS"
17514 echo "$as_me:$LINENO: result: $d" >&5
17515 echo "${ECHO_T}$d" >&6
17517 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17518 echo "${ECHO_T}not found ($d: no such directory)" >&6
17521 echo "$as_me:$LINENO: checking for XPM libs" >&5
17522 echo $ECHO_N "checking for XPM libs... $ECHO_C" >&6
17524 if test -d $d; then
17525 X_LIBS="-L$d $X_LIBS"
17526 echo "$as_me:$LINENO: result: $d" >&5
17527 echo "${ECHO_T}$d" >&6
17529 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17530 echo "${ECHO_T}not found ($d: no such directory)" >&6
17533 # replace the directory string with "yes".
17535 with_xpm=$with_xpm_req
17540 echo "error: argument to --with-xpm must be \"yes\", \"no\", or a directory."
17541 echo " If it is a directory, then \`DIR/include' will be added to"
17542 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17548 if test "$with_xpm" = yes; then
17550 ac_save_CPPFLAGS="$CPPFLAGS"
17551 if test \! -z "$includedir" ; then
17552 CPPFLAGS="$CPPFLAGS -I$includedir"
17554 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17555 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
17556 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
17557 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17558 echo $ECHO_N "(cached) $ECHO_C" >&6
17560 cat >conftest.$ac_ext <<_ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h. */
17566 #include <X11/Xlib.h>
17568 #include <X11/xpm.h>
17570 rm -f conftest.$ac_objext
17571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17572 (eval $ac_compile) 2>conftest.er1
17574 grep -v '^ *+' conftest.er1 >conftest.err
17576 cat conftest.err >&5
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); } &&
17579 { ac_try='test -z "$ac_c_werror_flag"
17580 || test ! -s conftest.err'
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; } &&
17586 { ac_try='test -s conftest.$ac_objext'
17587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588 (eval $ac_try) 2>&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; }; then
17592 ac_cv_header_X11_xpm_h=yes
17594 echo "$as_me: failed program was:" >&5
17595 sed 's/^/| /' conftest.$ac_ext >&5
17597 ac_cv_header_X11_xpm_h=no
17599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17601 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
17602 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
17603 if test $ac_cv_header_X11_xpm_h = yes; then
17605 cat >>confdefs.h <<\_ACEOF
17609 XPM_LIBS="-lXpm $XPM_LIBS"
17613 CPPFLAGS="$ac_save_CPPFLAGS"
17614 elif test "$with_xpm" != no; then
17615 echo "error: must be yes or no: --with-xpm=$with_xpm"
17619 # See comment near $motif_requires_xpm, above.
17620 # Need to do this here, after both Motif and XPM have been checked for.
17622 if test "$have_motif" = yes -a "$have_xpm" = yes ; then
17623 if test "$motif_requires_xpm" = yes ; then
17624 MOTIF_LIBS="$MOTIF_LIBS $XPM_LIBS"
17629 ###############################################################################
17633 ###############################################################################
17636 with_jpeg_req=unspecified
17639 # Check whether --with-jpeg or --without-jpeg was given.
17640 if test "${with_jpeg+set}" = set; then
17641 withval="$with_jpeg"
17642 with_jpeg="$withval"; with_jpeg_req="$withval"
17648 case "$with_jpeg" in
17653 echo "$as_me:$LINENO: checking for JPEG headers" >&5
17654 echo $ECHO_N "checking for JPEG headers... $ECHO_C" >&6
17655 d=$with_jpeg/include
17656 if test -d $d; then
17657 X_CFLAGS="-I$d $X_CFLAGS"
17658 echo "$as_me:$LINENO: result: $d" >&5
17659 echo "${ECHO_T}$d" >&6
17661 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17662 echo "${ECHO_T}not found ($d: no such directory)" >&6
17665 echo "$as_me:$LINENO: checking for JPEG libs" >&5
17666 echo $ECHO_N "checking for JPEG libs... $ECHO_C" >&6
17668 if test -d $d; then
17669 X_LIBS="-L$d $X_LIBS"
17670 echo "$as_me:$LINENO: result: $d" >&5
17671 echo "${ECHO_T}$d" >&6
17673 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17674 echo "${ECHO_T}not found ($d: no such directory)" >&6
17677 # replace the directory string with "yes".
17678 with_jpeg_req="yes"
17679 with_jpeg=$with_jpeg_req
17684 echo "error: argument to --with-jpeg must be \"yes\", \"no\", or a directory."
17685 echo " If it is a directory, then \`DIR/include' will be added to"
17686 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17692 if test "$with_jpeg" != yes -a "$with_jpeg" != no ; then
17693 echo "error: must be yes or no: --with-jpeg=$with_jpeg"
17697 if test "$with_jpeg" = yes; then
17701 ac_save_CPPFLAGS="$CPPFLAGS"
17702 if test \! -z "$includedir" ; then
17703 CPPFLAGS="$CPPFLAGS -I$includedir"
17705 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17706 if test "${ac_cv_header_jpeglib_h+set}" = set; then
17707 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
17708 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
17709 if test "${ac_cv_header_jpeglib_h+set}" = set; then
17710 echo $ECHO_N "(cached) $ECHO_C" >&6
17712 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
17713 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
17715 # Is the header compilable?
17716 echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
17717 echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6
17718 cat >conftest.$ac_ext <<_ACEOF
17721 cat confdefs.h >>conftest.$ac_ext
17722 cat >>conftest.$ac_ext <<_ACEOF
17723 /* end confdefs.h. */
17724 $ac_includes_default
17725 #include <jpeglib.h>
17727 rm -f conftest.$ac_objext
17728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17729 (eval $ac_compile) 2>conftest.er1
17731 grep -v '^ *+' conftest.er1 >conftest.err
17733 cat conftest.err >&5
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); } &&
17736 { ac_try='test -z "$ac_c_werror_flag"
17737 || test ! -s conftest.err'
17738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17739 (eval $ac_try) 2>&5
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); }; } &&
17743 { ac_try='test -s conftest.$ac_objext'
17744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745 (eval $ac_try) 2>&5
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; }; then
17749 ac_header_compiler=yes
17751 echo "$as_me: failed program was:" >&5
17752 sed 's/^/| /' conftest.$ac_ext >&5
17754 ac_header_compiler=no
17756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17757 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17758 echo "${ECHO_T}$ac_header_compiler" >&6
17760 # Is the header present?
17761 echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
17762 echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6
17763 cat >conftest.$ac_ext <<_ACEOF
17766 cat confdefs.h >>conftest.$ac_ext
17767 cat >>conftest.$ac_ext <<_ACEOF
17768 /* end confdefs.h. */
17769 #include <jpeglib.h>
17771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17774 grep -v '^ *+' conftest.er1 >conftest.err
17776 cat conftest.err >&5
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); } >/dev/null; then
17779 if test -s conftest.err; then
17780 ac_cpp_err=$ac_c_preproc_warn_flag
17781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17788 if test -z "$ac_cpp_err"; then
17789 ac_header_preproc=yes
17791 echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.$ac_ext >&5
17794 ac_header_preproc=no
17796 rm -f conftest.err conftest.$ac_ext
17797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17798 echo "${ECHO_T}$ac_header_preproc" >&6
17800 # So? What about this header?
17801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17803 { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17804 echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17805 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
17806 echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
17807 ac_header_preproc=yes
17810 { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
17811 echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
17812 { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
17813 echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
17814 { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
17815 echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
17816 { echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
17817 echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17818 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
17819 echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
17820 { echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
17821 echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
17824 ## ------------------------------------------ ##
17825 ## Report this to the AC_PACKAGE_NAME lists. ##
17826 ## ------------------------------------------ ##
17829 sed "s/^/$as_me: WARNING: /" >&2
17832 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
17833 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
17834 if test "${ac_cv_header_jpeglib_h+set}" = set; then
17835 echo $ECHO_N "(cached) $ECHO_C" >&6
17837 ac_cv_header_jpeglib_h=$ac_header_preproc
17839 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
17840 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
17843 if test $ac_cv_header_jpeglib_h = yes; then
17848 CPPFLAGS="$ac_save_CPPFLAGS"
17850 if test "$have_jpeg" = yes; then
17851 # we have the header, now check for the library
17855 ac_save_CPPFLAGS="$CPPFLAGS"
17856 ac_save_LDFLAGS="$LDFLAGS"
17857 # ac_save_LIBS="$LIBS"
17859 if test \! -z "$includedir" ; then
17860 CPPFLAGS="$CPPFLAGS -I$includedir"
17862 # note: $X_CFLAGS includes $x_includes
17863 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17865 if test \! -z "$libdir" ; then
17866 LDFLAGS="$LDFLAGS -L$libdir"
17868 # note: $X_LIBS includes $x_libraries
17869 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17871 echo "$as_me:$LINENO: checking for jpeg_start_compress in -ljpeg" >&5
17872 echo $ECHO_N "checking for jpeg_start_compress in -ljpeg... $ECHO_C" >&6
17873 if test "${ac_cv_lib_jpeg_jpeg_start_compress+set}" = set; then
17874 echo $ECHO_N "(cached) $ECHO_C" >&6
17876 ac_check_lib_save_LIBS=$LIBS
17877 LIBS="-ljpeg $LIBS"
17878 cat >conftest.$ac_ext <<_ACEOF
17881 cat confdefs.h >>conftest.$ac_ext
17882 cat >>conftest.$ac_ext <<_ACEOF
17883 /* end confdefs.h. */
17885 /* Override any gcc2 internal prototype to avoid an error. */
17889 /* We use char because int might match the return type of a gcc2
17890 builtin and then its argument prototype would still apply. */
17891 char jpeg_start_compress ();
17895 jpeg_start_compress ();
17900 rm -f conftest.$ac_objext conftest$ac_exeext
17901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17902 (eval $ac_link) 2>conftest.er1
17904 grep -v '^ *+' conftest.er1 >conftest.err
17906 cat conftest.err >&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } &&
17909 { ac_try='test -z "$ac_c_werror_flag"
17910 || test ! -s conftest.err'
17911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17912 (eval $ac_try) 2>&5
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; } &&
17916 { ac_try='test -s conftest$ac_exeext'
17917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918 (eval $ac_try) 2>&5
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; }; then
17922 ac_cv_lib_jpeg_jpeg_start_compress=yes
17924 echo "$as_me: failed program was:" >&5
17925 sed 's/^/| /' conftest.$ac_ext >&5
17927 ac_cv_lib_jpeg_jpeg_start_compress=no
17929 rm -f conftest.err conftest.$ac_objext \
17930 conftest$ac_exeext conftest.$ac_ext
17931 LIBS=$ac_check_lib_save_LIBS
17933 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5
17934 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_compress" >&6
17935 if test $ac_cv_lib_jpeg_jpeg_start_compress = yes; then
17939 cat >>confdefs.h <<\_ACEOF
17940 #define HAVE_JPEGLIB 1
17945 CPPFLAGS="$ac_save_CPPFLAGS"
17946 LDFLAGS="$ac_save_LDFLAGS"
17947 # LIBS="$ac_save_LIBS"
17953 ###############################################################################
17955 # Check for pty support for 'phosphor'
17957 ###############################################################################
17962 for ac_header in pty.h util.h
17964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17966 echo "$as_me:$LINENO: checking for $ac_header" >&5
17967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17969 echo $ECHO_N "(cached) $ECHO_C" >&6
17971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17974 # Is the header compilable?
17975 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17977 cat >conftest.$ac_ext <<_ACEOF
17980 cat confdefs.h >>conftest.$ac_ext
17981 cat >>conftest.$ac_ext <<_ACEOF
17982 /* end confdefs.h. */
17983 $ac_includes_default
17984 #include <$ac_header>
17986 rm -f conftest.$ac_objext
17987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17988 (eval $ac_compile) 2>conftest.er1
17990 grep -v '^ *+' conftest.er1 >conftest.err
17992 cat conftest.err >&5
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); } &&
17995 { ac_try='test -z "$ac_c_werror_flag"
17996 || test ! -s conftest.err'
17997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17998 (eval $ac_try) 2>&5
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); }; } &&
18002 { ac_try='test -s conftest.$ac_objext'
18003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18004 (eval $ac_try) 2>&5
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); }; }; then
18008 ac_header_compiler=yes
18010 echo "$as_me: failed program was:" >&5
18011 sed 's/^/| /' conftest.$ac_ext >&5
18013 ac_header_compiler=no
18015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18016 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18017 echo "${ECHO_T}$ac_header_compiler" >&6
18019 # Is the header present?
18020 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18022 cat >conftest.$ac_ext <<_ACEOF
18025 cat confdefs.h >>conftest.$ac_ext
18026 cat >>conftest.$ac_ext <<_ACEOF
18027 /* end confdefs.h. */
18028 #include <$ac_header>
18030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18033 grep -v '^ *+' conftest.er1 >conftest.err
18035 cat conftest.err >&5
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); } >/dev/null; then
18038 if test -s conftest.err; then
18039 ac_cpp_err=$ac_c_preproc_warn_flag
18040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18047 if test -z "$ac_cpp_err"; then
18048 ac_header_preproc=yes
18050 echo "$as_me: failed program was:" >&5
18051 sed 's/^/| /' conftest.$ac_ext >&5
18053 ac_header_preproc=no
18055 rm -f conftest.err conftest.$ac_ext
18056 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18057 echo "${ECHO_T}$ac_header_preproc" >&6
18059 # So? What about this header?
18060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18062 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18063 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18065 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18066 ac_header_preproc=yes
18069 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18071 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18072 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18073 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18074 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18075 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18076 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18079 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18080 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18083 ## ------------------------------------------ ##
18084 ## Report this to the AC_PACKAGE_NAME lists. ##
18085 ## ------------------------------------------ ##
18088 sed "s/^/$as_me: WARNING: /" >&2
18091 echo "$as_me:$LINENO: checking for $ac_header" >&5
18092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18094 echo $ECHO_N "(cached) $ECHO_C" >&6
18096 eval "$as_ac_Header=\$ac_header_preproc"
18098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18103 cat >>confdefs.h <<_ACEOF
18104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18112 ac_save_CPPFLAGS="$CPPFLAGS"
18113 ac_save_LDFLAGS="$LDFLAGS"
18114 # ac_save_LIBS="$LIBS"
18116 if test \! -z "$includedir" ; then
18117 CPPFLAGS="$CPPFLAGS -I$includedir"
18119 # note: $X_CFLAGS includes $x_includes
18120 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18122 if test \! -z "$libdir" ; then
18123 LDFLAGS="$LDFLAGS -L$libdir"
18125 # note: $X_LIBS includes $x_libraries
18126 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18128 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18129 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
18130 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18131 echo $ECHO_N "(cached) $ECHO_C" >&6
18133 ac_check_lib_save_LIBS=$LIBS
18134 LIBS="-lutil $LIBS"
18135 cat >conftest.$ac_ext <<_ACEOF
18138 cat confdefs.h >>conftest.$ac_ext
18139 cat >>conftest.$ac_ext <<_ACEOF
18140 /* end confdefs.h. */
18142 /* Override any gcc2 internal prototype to avoid an error. */
18146 /* We use char because int might match the return type of a gcc2
18147 builtin and then its argument prototype would still apply. */
18157 rm -f conftest.$ac_objext conftest$ac_exeext
18158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18159 (eval $ac_link) 2>conftest.er1
18161 grep -v '^ *+' conftest.er1 >conftest.err
18163 cat conftest.err >&5
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); } &&
18166 { ac_try='test -z "$ac_c_werror_flag"
18167 || test ! -s conftest.err'
18168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18169 (eval $ac_try) 2>&5
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); }; } &&
18173 { ac_try='test -s conftest$ac_exeext'
18174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18175 (eval $ac_try) 2>&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; }; then
18179 ac_cv_lib_util_forkpty=yes
18181 echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.$ac_ext >&5
18184 ac_cv_lib_util_forkpty=no
18186 rm -f conftest.err conftest.$ac_objext \
18187 conftest$ac_exeext conftest.$ac_ext
18188 LIBS=$ac_check_lib_save_LIBS
18190 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18191 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
18192 if test $ac_cv_lib_util_forkpty = yes; then
18194 cat >>confdefs.h <<\_ACEOF
18195 #define HAVE_FORKPTY 1
18200 CPPFLAGS="$ac_save_CPPFLAGS"
18201 LDFLAGS="$ac_save_LDFLAGS"
18202 # LIBS="$ac_save_LIBS"
18206 ###############################################################################
18208 # Check for the XSHM server extension.
18210 ###############################################################################
18213 with_xshm_req=unspecified
18215 # Check whether --with-xshm-ext or --without-xshm-ext was given.
18216 if test "${with_xshm_ext+set}" = set; then
18217 withval="$with_xshm_ext"
18218 with_xshm="$withval"; with_xshm_req="$withval"
18224 case "$with_xshm" in
18229 echo "$as_me:$LINENO: checking for XSHM headers" >&5
18230 echo $ECHO_N "checking for XSHM headers... $ECHO_C" >&6
18231 d=$with_xshm/include
18232 if test -d $d; then
18233 X_CFLAGS="-I$d $X_CFLAGS"
18234 echo "$as_me:$LINENO: result: $d" >&5
18235 echo "${ECHO_T}$d" >&6
18237 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18238 echo "${ECHO_T}not found ($d: no such directory)" >&6
18241 echo "$as_me:$LINENO: checking for XSHM libs" >&5
18242 echo $ECHO_N "checking for XSHM libs... $ECHO_C" >&6
18244 if test -d $d; then
18245 X_LIBS="-L$d $X_LIBS"
18246 echo "$as_me:$LINENO: result: $d" >&5
18247 echo "${ECHO_T}$d" >&6
18249 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18250 echo "${ECHO_T}not found ($d: no such directory)" >&6
18253 # replace the directory string with "yes".
18254 with_xshm_req="yes"
18255 with_xshm=$with_xshm_req
18260 echo "error: argument to --with-xshm-ext must be \"yes\", \"no\", or a directory."
18261 echo " If it is a directory, then \`DIR/include' will be added to"
18262 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18268 if test "$with_xshm" = yes; then
18270 # first check for Xshm.h.
18272 ac_save_CPPFLAGS="$CPPFLAGS"
18273 if test \! -z "$includedir" ; then
18274 CPPFLAGS="$CPPFLAGS -I$includedir"
18276 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18277 echo "$as_me:$LINENO: checking for X11/extensions/XShm.h" >&5
18278 echo $ECHO_N "checking for X11/extensions/XShm.h... $ECHO_C" >&6
18279 if test "${ac_cv_header_X11_extensions_XShm_h+set}" = set; then
18280 echo $ECHO_N "(cached) $ECHO_C" >&6
18282 cat >conftest.$ac_ext <<_ACEOF
18285 cat confdefs.h >>conftest.$ac_ext
18286 cat >>conftest.$ac_ext <<_ACEOF
18287 /* end confdefs.h. */
18288 #include <X11/Xlib.h>
18290 #include <X11/extensions/XShm.h>
18292 rm -f conftest.$ac_objext
18293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18294 (eval $ac_compile) 2>conftest.er1
18296 grep -v '^ *+' conftest.er1 >conftest.err
18298 cat conftest.err >&5
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); } &&
18301 { ac_try='test -z "$ac_c_werror_flag"
18302 || test ! -s conftest.err'
18303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18304 (eval $ac_try) 2>&5
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); }; } &&
18308 { ac_try='test -s conftest.$ac_objext'
18309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18310 (eval $ac_try) 2>&5
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); }; }; then
18314 ac_cv_header_X11_extensions_XShm_h=yes
18316 echo "$as_me: failed program was:" >&5
18317 sed 's/^/| /' conftest.$ac_ext >&5
18319 ac_cv_header_X11_extensions_XShm_h=no
18321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18323 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XShm_h" >&5
18324 echo "${ECHO_T}$ac_cv_header_X11_extensions_XShm_h" >&6
18325 if test $ac_cv_header_X11_extensions_XShm_h = yes; then
18330 CPPFLAGS="$ac_save_CPPFLAGS"
18332 # if that succeeded, then check for sys/ipc.h.
18333 if test "$have_xshm" = yes; then
18336 ac_save_CPPFLAGS="$CPPFLAGS"
18337 if test \! -z "$includedir" ; then
18338 CPPFLAGS="$CPPFLAGS -I$includedir"
18340 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18341 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
18342 echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
18343 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
18344 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
18345 echo $ECHO_N "(cached) $ECHO_C" >&6
18347 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
18348 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
18350 # Is the header compilable?
18351 echo "$as_me:$LINENO: checking sys/ipc.h usability" >&5
18352 echo $ECHO_N "checking sys/ipc.h usability... $ECHO_C" >&6
18353 cat >conftest.$ac_ext <<_ACEOF
18356 cat confdefs.h >>conftest.$ac_ext
18357 cat >>conftest.$ac_ext <<_ACEOF
18358 /* end confdefs.h. */
18359 $ac_includes_default
18360 #include <sys/ipc.h>
18362 rm -f conftest.$ac_objext
18363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18364 (eval $ac_compile) 2>conftest.er1
18366 grep -v '^ *+' conftest.er1 >conftest.err
18368 cat conftest.err >&5
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); } &&
18371 { ac_try='test -z "$ac_c_werror_flag"
18372 || test ! -s conftest.err'
18373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18374 (eval $ac_try) 2>&5
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); }; } &&
18378 { ac_try='test -s conftest.$ac_objext'
18379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18380 (eval $ac_try) 2>&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; }; then
18384 ac_header_compiler=yes
18386 echo "$as_me: failed program was:" >&5
18387 sed 's/^/| /' conftest.$ac_ext >&5
18389 ac_header_compiler=no
18391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18392 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18393 echo "${ECHO_T}$ac_header_compiler" >&6
18395 # Is the header present?
18396 echo "$as_me:$LINENO: checking sys/ipc.h presence" >&5
18397 echo $ECHO_N "checking sys/ipc.h presence... $ECHO_C" >&6
18398 cat >conftest.$ac_ext <<_ACEOF
18401 cat confdefs.h >>conftest.$ac_ext
18402 cat >>conftest.$ac_ext <<_ACEOF
18403 /* end confdefs.h. */
18404 #include <sys/ipc.h>
18406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18409 grep -v '^ *+' conftest.er1 >conftest.err
18411 cat conftest.err >&5
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); } >/dev/null; then
18414 if test -s conftest.err; then
18415 ac_cpp_err=$ac_c_preproc_warn_flag
18416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18423 if test -z "$ac_cpp_err"; then
18424 ac_header_preproc=yes
18426 echo "$as_me: failed program was:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18429 ac_header_preproc=no
18431 rm -f conftest.err conftest.$ac_ext
18432 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18433 echo "${ECHO_T}$ac_header_preproc" >&6
18435 # So? What about this header?
18436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18438 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&5
18439 echo "$as_me: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18440 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the compiler's result" >&5
18441 echo "$as_me: WARNING: sys/ipc.h: proceeding with the compiler's result" >&2;}
18442 ac_header_preproc=yes
18445 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: present but cannot be compiled" >&5
18446 echo "$as_me: WARNING: sys/ipc.h: present but cannot be compiled" >&2;}
18447 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&5
18448 echo "$as_me: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&2;}
18449 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: see the Autoconf documentation" >&5
18450 echo "$as_me: WARNING: sys/ipc.h: see the Autoconf documentation" >&2;}
18451 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&5
18452 echo "$as_me: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&2;}
18453 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
18454 echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;}
18455 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&5
18456 echo "$as_me: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&2;}
18459 ## ------------------------------------------ ##
18460 ## Report this to the AC_PACKAGE_NAME lists. ##
18461 ## ------------------------------------------ ##
18464 sed "s/^/$as_me: WARNING: /" >&2
18467 echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
18468 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
18469 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
18470 echo $ECHO_N "(cached) $ECHO_C" >&6
18472 ac_cv_header_sys_ipc_h=$ac_header_preproc
18474 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
18475 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
18478 if test $ac_cv_header_sys_ipc_h = yes; then
18483 CPPFLAGS="$ac_save_CPPFLAGS"
18486 # if that succeeded, then check for sys/shm.h.
18487 if test "$have_xshm" = yes; then
18490 ac_save_CPPFLAGS="$CPPFLAGS"
18491 if test \! -z "$includedir" ; then
18492 CPPFLAGS="$CPPFLAGS -I$includedir"
18494 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18495 if test "${ac_cv_header_sys_shm_h+set}" = set; then
18496 echo "$as_me:$LINENO: checking for sys/shm.h" >&5
18497 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
18498 if test "${ac_cv_header_sys_shm_h+set}" = set; then
18499 echo $ECHO_N "(cached) $ECHO_C" >&6
18501 echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
18502 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
18504 # Is the header compilable?
18505 echo "$as_me:$LINENO: checking sys/shm.h usability" >&5
18506 echo $ECHO_N "checking sys/shm.h usability... $ECHO_C" >&6
18507 cat >conftest.$ac_ext <<_ACEOF
18510 cat confdefs.h >>conftest.$ac_ext
18511 cat >>conftest.$ac_ext <<_ACEOF
18512 /* end confdefs.h. */
18513 $ac_includes_default
18514 #include <sys/shm.h>
18516 rm -f conftest.$ac_objext
18517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18518 (eval $ac_compile) 2>conftest.er1
18520 grep -v '^ *+' conftest.er1 >conftest.err
18522 cat conftest.err >&5
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); } &&
18525 { ac_try='test -z "$ac_c_werror_flag"
18526 || test ! -s conftest.err'
18527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18528 (eval $ac_try) 2>&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; } &&
18532 { ac_try='test -s conftest.$ac_objext'
18533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18534 (eval $ac_try) 2>&5
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); }; }; then
18538 ac_header_compiler=yes
18540 echo "$as_me: failed program was:" >&5
18541 sed 's/^/| /' conftest.$ac_ext >&5
18543 ac_header_compiler=no
18545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18547 echo "${ECHO_T}$ac_header_compiler" >&6
18549 # Is the header present?
18550 echo "$as_me:$LINENO: checking sys/shm.h presence" >&5
18551 echo $ECHO_N "checking sys/shm.h presence... $ECHO_C" >&6
18552 cat >conftest.$ac_ext <<_ACEOF
18555 cat confdefs.h >>conftest.$ac_ext
18556 cat >>conftest.$ac_ext <<_ACEOF
18557 /* end confdefs.h. */
18558 #include <sys/shm.h>
18560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18563 grep -v '^ *+' conftest.er1 >conftest.err
18565 cat conftest.err >&5
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); } >/dev/null; then
18568 if test -s conftest.err; then
18569 ac_cpp_err=$ac_c_preproc_warn_flag
18570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18577 if test -z "$ac_cpp_err"; then
18578 ac_header_preproc=yes
18580 echo "$as_me: failed program was:" >&5
18581 sed 's/^/| /' conftest.$ac_ext >&5
18583 ac_header_preproc=no
18585 rm -f conftest.err conftest.$ac_ext
18586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18587 echo "${ECHO_T}$ac_header_preproc" >&6
18589 # So? What about this header?
18590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18592 { echo "$as_me:$LINENO: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18593 echo "$as_me: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18594 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the compiler's result" >&5
18595 echo "$as_me: WARNING: sys/shm.h: proceeding with the compiler's result" >&2;}
18596 ac_header_preproc=yes
18599 { echo "$as_me:$LINENO: WARNING: sys/shm.h: present but cannot be compiled" >&5
18600 echo "$as_me: WARNING: sys/shm.h: present but cannot be compiled" >&2;}
18601 { echo "$as_me:$LINENO: WARNING: sys/shm.h: check for missing prerequisite headers?" >&5
18602 echo "$as_me: WARNING: sys/shm.h: check for missing prerequisite headers?" >&2;}
18603 { echo "$as_me:$LINENO: WARNING: sys/shm.h: see the Autoconf documentation" >&5
18604 echo "$as_me: WARNING: sys/shm.h: see the Autoconf documentation" >&2;}
18605 { echo "$as_me:$LINENO: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&5
18606 echo "$as_me: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&2;}
18607 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
18608 echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;}
18609 { echo "$as_me:$LINENO: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&5
18610 echo "$as_me: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&2;}
18613 ## ------------------------------------------ ##
18614 ## Report this to the AC_PACKAGE_NAME lists. ##
18615 ## ------------------------------------------ ##
18618 sed "s/^/$as_me: WARNING: /" >&2
18621 echo "$as_me:$LINENO: checking for sys/shm.h" >&5
18622 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
18623 if test "${ac_cv_header_sys_shm_h+set}" = set; then
18624 echo $ECHO_N "(cached) $ECHO_C" >&6
18626 ac_cv_header_sys_shm_h=$ac_header_preproc
18628 echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
18629 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
18632 if test $ac_cv_header_sys_shm_h = yes; then
18637 CPPFLAGS="$ac_save_CPPFLAGS"
18640 # AIX is pathological, as usual: apparently it's normal for the Xshm headers
18641 # to exist, but the library code to not exist. And even better, the library
18642 # code is in its own library: libXextSam.a. So, if we're on AIX, and that
18643 # lib doesn't exist, give up. (This lib gets added to X_EXTRA_LIBS, and
18644 # that's not quite right, but close enough.)
18648 if `uname -v` -eq 3 ; then
18651 ac_save_CPPFLAGS="$CPPFLAGS"
18652 ac_save_LDFLAGS="$LDFLAGS"
18653 # ac_save_LIBS="$LIBS"
18655 if test \! -z "$includedir" ; then
18656 CPPFLAGS="$CPPFLAGS -I$includedir"
18658 # note: $X_CFLAGS includes $x_includes
18659 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18661 if test \! -z "$libdir" ; then
18662 LDFLAGS="$LDFLAGS -L$libdir"
18664 # note: $X_LIBS includes $x_libraries
18665 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18667 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXextSam" >&5
18668 echo $ECHO_N "checking for XShmQueryExtension in -lXextSam... $ECHO_C" >&6
18669 if test "${ac_cv_lib_XextSam_XShmQueryExtension+set}" = set; then
18670 echo $ECHO_N "(cached) $ECHO_C" >&6
18672 ac_check_lib_save_LIBS=$LIBS
18673 LIBS="-lXextSam -lX11 -lXext -lm $LIBS"
18674 cat >conftest.$ac_ext <<_ACEOF
18677 cat confdefs.h >>conftest.$ac_ext
18678 cat >>conftest.$ac_ext <<_ACEOF
18679 /* end confdefs.h. */
18681 /* Override any gcc2 internal prototype to avoid an error. */
18685 /* We use char because int might match the return type of a gcc2
18686 builtin and then its argument prototype would still apply. */
18687 char XShmQueryExtension ();
18691 XShmQueryExtension ();
18696 rm -f conftest.$ac_objext conftest$ac_exeext
18697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18698 (eval $ac_link) 2>conftest.er1
18700 grep -v '^ *+' conftest.er1 >conftest.err
18702 cat conftest.err >&5
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); } &&
18705 { ac_try='test -z "$ac_c_werror_flag"
18706 || test ! -s conftest.err'
18707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18708 (eval $ac_try) 2>&5
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); }; } &&
18712 { ac_try='test -s conftest$ac_exeext'
18713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18714 (eval $ac_try) 2>&5
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); }; }; then
18718 ac_cv_lib_XextSam_XShmQueryExtension=yes
18720 echo "$as_me: failed program was:" >&5
18721 sed 's/^/| /' conftest.$ac_ext >&5
18723 ac_cv_lib_XextSam_XShmQueryExtension=no
18725 rm -f conftest.err conftest.$ac_objext \
18726 conftest$ac_exeext conftest.$ac_ext
18727 LIBS=$ac_check_lib_save_LIBS
18729 echo "$as_me:$LINENO: result: $ac_cv_lib_XextSam_XShmQueryExtension" >&5
18730 echo "${ECHO_T}$ac_cv_lib_XextSam_XShmQueryExtension" >&6
18731 if test $ac_cv_lib_XextSam_XShmQueryExtension = yes; then
18732 have_xshm=yes; X_EXTRA_LIBS="$X_EXTRA_LIBS -lXextSam"
18737 CPPFLAGS="$ac_save_CPPFLAGS"
18738 LDFLAGS="$ac_save_LDFLAGS"
18739 # LIBS="$ac_save_LIBS"
18745 # if that succeeded, then we've really got it.
18746 if test "$have_xshm" = yes; then
18747 cat >>confdefs.h <<\_ACEOF
18748 #define HAVE_XSHM_EXTENSION 1
18753 elif test "$with_xshm" != no; then
18754 echo "error: must be yes or no: --with-xshm-ext=$with_xshm"
18759 ###############################################################################
18761 # Check for the DOUBLE-BUFFER server extension.
18763 ###############################################################################
18766 with_xdbe_req=unspecified
18768 # Check whether --with-xdbe-ext or --without-xdbe-ext was given.
18769 if test "${with_xdbe_ext+set}" = set; then
18770 withval="$with_xdbe_ext"
18771 with_xdbe="$withval"; with_xdbe_req="$withval"
18777 case "$with_xdbe" in
18782 echo "$as_me:$LINENO: checking for DOUBLE-BUFFER headers" >&5
18783 echo $ECHO_N "checking for DOUBLE-BUFFER headers... $ECHO_C" >&6
18784 d=$with_xdbe/include
18785 if test -d $d; then
18786 X_CFLAGS="-I$d $X_CFLAGS"
18787 echo "$as_me:$LINENO: result: $d" >&5
18788 echo "${ECHO_T}$d" >&6
18790 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18791 echo "${ECHO_T}not found ($d: no such directory)" >&6
18794 echo "$as_me:$LINENO: checking for DOUBLE-BUFFER libs" >&5
18795 echo $ECHO_N "checking for DOUBLE-BUFFER libs... $ECHO_C" >&6
18797 if test -d $d; then
18798 X_LIBS="-L$d $X_LIBS"
18799 echo "$as_me:$LINENO: result: $d" >&5
18800 echo "${ECHO_T}$d" >&6
18802 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18803 echo "${ECHO_T}not found ($d: no such directory)" >&6
18806 # replace the directory string with "yes".
18807 with_xdbe_req="yes"
18808 with_xdbe=$with_xdbe_req
18813 echo "error: argument to --with-xdbe-ext must be \"yes\", \"no\", or a directory."
18814 echo " If it is a directory, then \`DIR/include' will be added to"
18815 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18821 if test "$with_xdbe" = yes; then
18824 ac_save_CPPFLAGS="$CPPFLAGS"
18825 if test \! -z "$includedir" ; then
18826 CPPFLAGS="$CPPFLAGS -I$includedir"
18828 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18829 echo "$as_me:$LINENO: checking for X11/extensions/Xdbe.h" >&5
18830 echo $ECHO_N "checking for X11/extensions/Xdbe.h... $ECHO_C" >&6
18831 if test "${ac_cv_header_X11_extensions_Xdbe_h+set}" = set; then
18832 echo $ECHO_N "(cached) $ECHO_C" >&6
18834 cat >conftest.$ac_ext <<_ACEOF
18837 cat confdefs.h >>conftest.$ac_ext
18838 cat >>conftest.$ac_ext <<_ACEOF
18839 /* end confdefs.h. */
18840 #include <X11/Xlib.h>
18842 #include <X11/extensions/Xdbe.h>
18844 rm -f conftest.$ac_objext
18845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18846 (eval $ac_compile) 2>conftest.er1
18848 grep -v '^ *+' conftest.er1 >conftest.err
18850 cat conftest.err >&5
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); } &&
18853 { ac_try='test -z "$ac_c_werror_flag"
18854 || test ! -s conftest.err'
18855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18856 (eval $ac_try) 2>&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; } &&
18860 { ac_try='test -s conftest.$ac_objext'
18861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18862 (eval $ac_try) 2>&5
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); }; }; then
18866 ac_cv_header_X11_extensions_Xdbe_h=yes
18868 echo "$as_me: failed program was:" >&5
18869 sed 's/^/| /' conftest.$ac_ext >&5
18871 ac_cv_header_X11_extensions_Xdbe_h=no
18873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18875 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xdbe_h" >&5
18876 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xdbe_h" >&6
18877 if test $ac_cv_header_X11_extensions_Xdbe_h = yes; then
18882 CPPFLAGS="$ac_save_CPPFLAGS"
18883 if test "$have_xdbe" = yes; then
18884 cat >>confdefs.h <<\_ACEOF
18885 #define HAVE_DOUBLE_BUFFER_EXTENSION 1
18890 elif test "$with_xdbe" != no; then
18891 echo "error: must be yes or no: --with-xdbe-ext=$with_xshm"
18896 ###############################################################################
18898 # Check for the SGI XReadDisplay server extension.
18900 # Note: this has to be down here, rather than up with the other server
18901 # extension tests, so that the output of `configure --help' is in the
18902 # right order. Arrgh!
18904 ###############################################################################
18906 have_readdisplay=no
18907 with_readdisplay_req=unspecified
18909 # Check whether --with-readdisplay or --without-readdisplay was given.
18910 if test "${with_readdisplay+set}" = set; then
18911 withval="$with_readdisplay"
18912 with_readdisplay="$withval"; with_readdisplay_req="$withval"
18914 with_readdisplay=yes
18918 case "$with_readdisplay" in
18923 echo "$as_me:$LINENO: checking for XReadDisplay headers" >&5
18924 echo $ECHO_N "checking for XReadDisplay headers... $ECHO_C" >&6
18925 d=$with_readdisplay/include
18926 if test -d $d; then
18927 X_CFLAGS="-I$d $X_CFLAGS"
18928 echo "$as_me:$LINENO: result: $d" >&5
18929 echo "${ECHO_T}$d" >&6
18931 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18932 echo "${ECHO_T}not found ($d: no such directory)" >&6
18935 echo "$as_me:$LINENO: checking for XReadDisplay libs" >&5
18936 echo $ECHO_N "checking for XReadDisplay libs... $ECHO_C" >&6
18937 d=$with_readdisplay/lib
18938 if test -d $d; then
18939 X_LIBS="-L$d $X_LIBS"
18940 echo "$as_me:$LINENO: result: $d" >&5
18941 echo "${ECHO_T}$d" >&6
18943 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18944 echo "${ECHO_T}not found ($d: no such directory)" >&6
18947 # replace the directory string with "yes".
18948 with_readdisplay_req="yes"
18949 with_readdisplay=$with_readdisplay_req
18954 echo "error: argument to --with-readdisplay must be \"yes\", \"no\", or a directory."
18955 echo " If it is a directory, then \`DIR/include' will be added to"
18956 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18962 if test "$with_readdisplay" = yes; then
18964 ac_save_CPPFLAGS="$CPPFLAGS"
18965 if test \! -z "$includedir" ; then
18966 CPPFLAGS="$CPPFLAGS -I$includedir"
18968 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18969 echo "$as_me:$LINENO: checking for X11/extensions/readdisplay.h" >&5
18970 echo $ECHO_N "checking for X11/extensions/readdisplay.h... $ECHO_C" >&6
18971 if test "${ac_cv_header_X11_extensions_readdisplay_h+set}" = set; then
18972 echo $ECHO_N "(cached) $ECHO_C" >&6
18974 cat >conftest.$ac_ext <<_ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h. */
18980 #include <X11/Xlib.h>
18982 #include <X11/extensions/readdisplay.h>
18984 rm -f conftest.$ac_objext
18985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18986 (eval $ac_compile) 2>conftest.er1
18988 grep -v '^ *+' conftest.er1 >conftest.err
18990 cat conftest.err >&5
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); } &&
18993 { ac_try='test -z "$ac_c_werror_flag"
18994 || test ! -s conftest.err'
18995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18996 (eval $ac_try) 2>&5
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); }; } &&
19000 { ac_try='test -s conftest.$ac_objext'
19001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19002 (eval $ac_try) 2>&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); }; }; then
19006 ac_cv_header_X11_extensions_readdisplay_h=yes
19008 echo "$as_me: failed program was:" >&5
19009 sed 's/^/| /' conftest.$ac_ext >&5
19011 ac_cv_header_X11_extensions_readdisplay_h=no
19013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19015 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_readdisplay_h" >&5
19016 echo "${ECHO_T}$ac_cv_header_X11_extensions_readdisplay_h" >&6
19017 if test $ac_cv_header_X11_extensions_readdisplay_h = yes; then
19018 cat >>confdefs.h <<\_ACEOF
19019 #define HAVE_READ_DISPLAY_EXTENSION 1
19025 CPPFLAGS="$ac_save_CPPFLAGS"
19026 elif test "$with_readdisplay" != no; then
19027 echo "error: must be yes or no: --with-readdisplay=$with_readdisplay"
19032 ###############################################################################
19034 # Check for a directory full of images to use as the default value
19035 # of the "imageDirectory" preference.
19037 ###############################################################################
19040 with_imagedir_req=unspecified
19043 # Check whether --with-image-directory or --without-image-directory was given.
19044 if test "${with_image_directory+set}" = set; then
19045 withval="$with_image_directory"
19046 with_imagedir="$withval"; with_imagedir_req="$withval"
19050 # no HANDLE_X_PATH_ARG for this one
19052 case "$with_imagedir" in
19055 echo "$as_me:$LINENO: checking for image directory $with_imagedir" >&5
19056 echo $ECHO_N "checking for image directory $with_imagedir... $ECHO_C" >&6
19057 if test -d "$with_imagedir" ; then
19058 echo "$as_me:$LINENO: result: yes" >&5
19059 echo "${ECHO_T}yes" >&6
19061 echo "$as_me:$LINENO: result: no" >&5
19062 echo "${ECHO_T}no" >&6
19069 #### Could use some more defaults here...
19071 "/usr/share/backgrounds/images/" \
19072 "/usr/share/wallpapers/" \
19073 "/Library/Desktop Pictures/" \
19075 if test -z "$with_imagedir"; then
19076 echo "$as_me:$LINENO: checking for image directory $dd" >&5
19077 echo $ECHO_N "checking for image directory $dd... $ECHO_C" >&6
19078 if test -d "$dd" ; then
19079 echo "$as_me:$LINENO: result: yes" >&5
19080 echo "${ECHO_T}yes" >&6
19081 with_imagedir="$dd"
19083 echo "$as_me:$LINENO: result: no" >&5
19084 echo "${ECHO_T}no" >&6
19095 echo "error: must be an absolute path: --with-image-directory=$with_imagedir_req"
19099 ac_cv_imagedir="$with_imagedir"
19101 DEFAULT_IMAGES_P='True'
19102 DEFAULT_IMAGE_DIRECTORY="$ac_cv_imagedir"
19104 if test -z "$DEFAULT_IMAGE_DIRECTORY" ; then
19105 DEFAULT_IMAGES_P='False'
19109 ###############################################################################
19111 # Check whether it's ok to install some hacks as setuid (e.g., "sonar")
19112 # This should be safe, but let's give people the option.
19114 ###############################################################################
19116 setuid_hacks_default=no
19117 setuid_hacks="$setuid_hacks_default"
19119 # Check whether --with-setuid-hacks or --without-setuid-hacks was given.
19120 if test "${with_setuid_hacks+set}" = set; then
19121 withval="$with_setuid_hacks"
19122 setuid_hacks="$withval"
19124 setuid_hacks="$setuid_hacks_default"
19128 case "$setuid_hacks" in
19133 echo "$as_me:$LINENO: checking for setuid hacks headers" >&5
19134 echo $ECHO_N "checking for setuid hacks headers... $ECHO_C" >&6
19135 d=$setuid_hacks/include
19136 if test -d $d; then
19137 X_CFLAGS="-I$d $X_CFLAGS"
19138 echo "$as_me:$LINENO: result: $d" >&5
19139 echo "${ECHO_T}$d" >&6
19141 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19142 echo "${ECHO_T}not found ($d: no such directory)" >&6
19145 echo "$as_me:$LINENO: checking for setuid hacks libs" >&5
19146 echo $ECHO_N "checking for setuid hacks libs... $ECHO_C" >&6
19147 d=$setuid_hacks/lib
19148 if test -d $d; then
19149 X_LIBS="-L$d $X_LIBS"
19150 echo "$as_me:$LINENO: result: $d" >&5
19151 echo "${ECHO_T}$d" >&6
19153 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19154 echo "${ECHO_T}not found ($d: no such directory)" >&6
19157 # replace the directory string with "yes".
19158 setuid_hacks_req="yes"
19159 setuid_hacks=$setuid_hacks_req
19164 echo "error: argument to --with-setuid-hacks must be \"yes\", \"no\", or a directory."
19165 echo " If it is a directory, then \`DIR/include' will be added to"
19166 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19172 if test "$setuid_hacks" = yes; then
19174 elif test "$setuid_hacks" != no; then
19175 echo "error: must be yes or no: --with-setuid-hacks=$setuid_hacks"
19180 ###############################################################################
19182 # Done testing. Now, set up the various -I and -L variables,
19183 # and decide which GUI program to build by default.
19185 ###############################################################################
19192 if test \! -z "$includedir" ; then
19193 INCLUDES="$INCLUDES -I$includedir"
19196 if test \! -z "$libdir" ; then
19197 LDFLAGS="$LDFLAGS -L$libdir"
19201 PREFERRED_DEMO_PROGRAM=''
19203 if test "$have_motif" = yes; then
19204 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Xm
19205 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
19207 if test "$have_gtk" = yes; then
19208 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Gtk
19209 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
19213 if test "$have_kerberos" = yes; then
19214 PASSWD_SRCS="$PASSWD_SRCS \$(KERBEROS_SRCS)"
19215 PASSWD_OBJS="$PASSWD_OBJS \$(KERBEROS_OBJS)"
19217 if test "$have_pam" = yes; then
19218 PASSWD_SRCS="$PASSWD_SRCS \$(PAM_SRCS)"
19219 PASSWD_OBJS="$PASSWD_OBJS \$(PAM_OBJS)"
19220 INSTALL_PAM="install-pam"
19222 if test "$have_passwd_helper" = yes; then
19223 PASSWD_SRCS="$PASSWD_SRCS \$(PWHELPER_SRCS)"
19224 PASSWD_OBJS="$PASSWD_OBJS \$(PWHELPER_OBJS)"
19226 PASSWD_SRCS="$PASSWD_SRCS \$(PWENT_SRCS)"
19227 PASSWD_OBJS="$PASSWD_OBJS \$(PWENT_OBJS)"
19230 if test "$enable_locking" = yes; then
19231 LOCK_SRCS='$(LOCK_SRCS_1) $(PASSWD_SRCS)'
19232 LOCK_OBJS='$(LOCK_OBJS_1) $(PASSWD_OBJS)'
19234 LOCK_SRCS='$(NOLOCK_SRCS_1)'
19235 LOCK_OBJS='$(NOLOCK_OBJS_1)'
19238 if test "$ac_macosx" = yes; then
19239 EXES_OSX='$(EXES_OSX)'
19240 SCRIPTS_OSX='$(SCRIPTS_OSX)'
19241 MEN_OSX='$(MEN_OSX)'
19249 INSTALL_SETUID='$(INSTALL_PROGRAM) $(SUID_FLAGS)'
19251 if test "$need_setuid" = yes; then
19257 if test "$setuid_hacks" = yes; then
19264 if test "$have_gl" = yes; then
19265 GL_EXES='$(GL_EXES)'
19266 GL_UTIL_EXES='$(GL_UTIL_EXES)'
19268 GL_KLUDGE="${tab} "
19270 GL_KLUDGE="-${tab} "
19273 if test "$have_gle" = yes; then
19274 GLE_EXES='$(GLE_EXES)'
19275 GLE_KLUDGE="${tab} "
19277 GLE_KLUDGE="-${tab} "
19280 if test "$have_jpeg" = yes -a "$have_gdk_pixbuf" = yes; then
19281 JPEG_EXES='$(JPEG_EXES)'
19285 # Another substitution in the XScreenSaver.ad.in file:
19287 if test "$gnome_open_program" != ''; then
19291 elif test "$gnome_url_show_program" != ''; then
19302 # Set PO_DATADIR to something sensible.
19304 echo "$as_me:$LINENO: checking for locale directory" >&5
19305 echo $ECHO_N "checking for locale directory... $ECHO_C" >&6
19306 if test -n "$GTK_DATADIR" ; then
19307 PO_DATADIR="$GTK_DATADIR"
19308 elif test "$have_gtk" = yes; then
19309 PO_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
19310 PO_DATADIR="$PO_DATADIR/share"
19313 if test -z "$PO_DATADIR" ; then
19315 # #### Total fucking kludge --
19316 # Map /build/prefix/usr/X11R6/share/ to /build/prefix/usr/share/
19317 # but of course we need to expand all the nested variables to do that...
19325 PO_DATADIR=`echo $dd | sed 's@/X11R6/@/@'`
19328 echo "$as_me:$LINENO: result: $PO_DATADIR/locale" >&5
19329 echo "${ECHO_T}$PO_DATADIR/locale" >&6
19332 # canonicalize slashes.
19333 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
19335 # gcc 3.0 likes to issue this warning for every file:
19337 # cc1: warning: changing search order for system directory "/usr/local/include"
19338 # cc1: warning: as it has already been specified as a non-system directory
19340 # Yay. We can only avoid that by deleting "-I${prefix}/include" from the list.
19341 # Which *should* be totally redundant, and thus an ok thing to delete?
19343 INCLUDES=`echo "$INCLUDES" | sed 's@ -I${prefix}/include@@g;'`
19346 ###############################################################################
19348 # Perform substitutions and write Makefiles.
19350 ###############################################################################
19410 APPDEFAULTS=$ac_x_app_defaults
19418 ac_config_files="$ac_config_files Makefile utils/Makefile driver/Makefile hacks/Makefile hacks/glx/Makefile po/Makefile.in driver/XScreenSaver.ad"
19419 cat >confcache <<\_ACEOF
19420 # This file is a shell script that caches the results of configure
19421 # tests run on this system so they can be shared between configure
19422 # scripts and configure runs, see configure's option --config-cache.
19423 # It is not useful on other systems. If it contains results you don't
19424 # want to keep, you may remove or edit it.
19426 # config.status only pays attention to the cache file if you give it
19427 # the --recheck option to rerun configure.
19429 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19430 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19431 # following values.
19435 # The following way of writing the cache mishandles newlines in values,
19436 # but we know of no workaround that is simple, portable, and efficient.
19437 # So, don't put newlines in cache variables' values.
19438 # Ultrix sh set writes to stderr and can't be redirected directly,
19439 # and sets the high bit in the cache file unless we assign to the vars.
19442 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19444 # `set' does not quote correctly, so add quotes (double-quote
19445 # substitution turns \\\\ into \\, and sed turns \\ into \).
19448 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19451 # `set' quotes correctly as required by POSIX, so do not add quotes.
19453 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19460 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19462 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19464 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19465 if test -w $cache_file; then
19466 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19467 cat confcache >$cache_file
19469 echo "not updating unwritable cache $cache_file"
19474 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19475 # Let make expand exec_prefix.
19476 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19478 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19479 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19480 # trailing colons and then remove the whole line if VPATH becomes empty
19481 # (actually we leave an empty line to preserve line numbers).
19482 if test "x$srcdir" = x.; then
19483 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19484 s/:*\$(srcdir):*/:/;
19485 s/:*\${srcdir}:*/:/;
19487 s/^\([^=]*=[ ]*\):*/\1/;
19493 DEFS=-DHAVE_CONFIG_H
19497 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19498 # 1. Remove the extension, and $U if already installed.
19499 ac_i=`echo "$ac_i" |
19500 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19502 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19503 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19505 LIBOBJS=$ac_libobjs
19507 LTLIBOBJS=$ac_ltlibobjs
19512 mv -f po/POTFILES po/POTFILES.tmp
19513 sed -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
19514 rm -f po/POTFILES.tmp
19518 : ${CONFIG_STATUS=./config.status}
19519 ac_clean_files_save=$ac_clean_files
19520 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19521 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19522 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19523 cat >$CONFIG_STATUS <<_ACEOF
19525 # Generated by $as_me.
19526 # Run this file to recreate the current configuration.
19527 # Compiler output produced by configure, useful for debugging
19528 # configure, is in config.log if it exists.
19531 ac_cs_recheck=false
19533 SHELL=\${CONFIG_SHELL-$SHELL}
19536 cat >>$CONFIG_STATUS <<\_ACEOF
19537 ## --------------------- ##
19538 ## M4sh Initialization. ##
19539 ## --------------------- ##
19541 # Be Bourne compatible
19542 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19545 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19546 # is contrary to our usage. Disable this feature.
19547 alias -g '${1+"$@"}'='"$@"'
19548 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19551 DUALCASE=1; export DUALCASE # for MKS sh
19553 # Support unset when possible.
19554 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19561 # Work around bugs in pre-3.0 UWIN ksh.
19562 $as_unset ENV MAIL MAILPATH
19569 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19570 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19571 LC_TELEPHONE LC_TIME
19573 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19574 eval $as_var=C; export $as_var
19580 # Required to use basename.
19581 if expr a : '\(a\)' >/dev/null 2>&1; then
19587 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19588 as_basename=basename
19594 # Name of the executable.
19595 as_me=`$as_basename "$0" ||
19596 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19597 X"$0" : 'X\(//\)$' \| \
19598 X"$0" : 'X\(/\)$' \| \
19599 . : '\(.\)' 2>/dev/null ||
19601 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19602 /^X\/\(\/\/\)$/{ s//\1/; q; }
19603 /^X\/\(\/\).*/{ s//\1/; q; }
19607 # PATH needs CR, and LINENO needs CR and PATH.
19608 # Avoid depending upon Character Ranges.
19609 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19610 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19611 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19612 as_cr_digits='0123456789'
19613 as_cr_alnum=$as_cr_Letters$as_cr_digits
19615 # The user is always right.
19616 if test "${PATH_SEPARATOR+set}" != set; then
19617 echo "#! /bin/sh" >conf$$.sh
19618 echo "exit 0" >>conf$$.sh
19620 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19629 as_lineno_1=$LINENO
19630 as_lineno_2=$LINENO
19631 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19632 test "x$as_lineno_1" != "x$as_lineno_2" &&
19633 test "x$as_lineno_3" = "x$as_lineno_2" || {
19634 # Find who we are. Look in the path if we contain no path at all
19637 *[\\/]* ) as_myself=$0 ;;
19638 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19639 for as_dir in $PATH
19642 test -z "$as_dir" && as_dir=.
19643 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19648 # We did not find ourselves, most probably we were run as `sh COMMAND'
19649 # in which case we are not to be found in the path.
19650 if test "x$as_myself" = x; then
19653 if test ! -f "$as_myself"; then
19654 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19655 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19656 { (exit 1); exit 1; }; }
19658 case $CONFIG_SHELL in
19660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19661 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19664 test -z "$as_dir" && as_dir=.
19665 for as_base in sh bash ksh sh5; do
19668 if ("$as_dir/$as_base" -c '
19669 as_lineno_1=$LINENO
19670 as_lineno_2=$LINENO
19671 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19672 test "x$as_lineno_1" != "x$as_lineno_2" &&
19673 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19674 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19675 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19676 CONFIG_SHELL=$as_dir/$as_base
19677 export CONFIG_SHELL
19678 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19686 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19687 # uniformly replaced by the line number. The first 'sed' inserts a
19688 # line-number line before each line; the second 'sed' does the real
19689 # work. The second script uses 'N' to pair each line-number line
19690 # with the numbered line, and appends trailing '-' during
19691 # substitution so that $LINENO is not a special case at line end.
19692 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19693 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19694 sed '=' <$as_myself |
19699 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19702 s,^['$as_cr_digits']*\n,,
19703 ' >$as_me.lineno &&
19704 chmod +x $as_me.lineno ||
19705 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19706 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19707 { (exit 1); exit 1; }; }
19709 # Don't try to exec as it changes $[0], causing all sort of problems
19710 # (the dirname of $[0] is not the place where we might find the
19711 # original and so on. Autoconf is especially sensible to this).
19713 # Exit status is that of the last command.
19718 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19719 *c*,-n*) ECHO_N= ECHO_C='
19721 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19722 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19725 if expr a : '\(a\)' >/dev/null 2>&1; then
19731 rm -f conf$$ conf$$.exe conf$$.file
19733 if ln -s conf$$.file conf$$ 2>/dev/null; then
19734 # We could just check for DJGPP; but this test a) works b) is more generic
19735 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19736 if test -f conf$$.exe; then
19737 # Don't use ln at all; we don't have any links
19742 elif ln conf$$.file conf$$ 2>/dev/null; then
19747 rm -f conf$$ conf$$.exe conf$$.file
19749 if mkdir -p . 2>/dev/null; then
19752 test -d ./-p && rmdir ./-p
19756 as_executable_p="test -f"
19758 # Sed expression to map a string onto a valid CPP name.
19759 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19761 # Sed expression to map a string onto a valid variable name.
19762 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19766 # We need space, tab and new line, in precisely that order.
19776 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19777 # report actual input values of CONFIG_FILES etc. instead of their
19778 # values after options handling. Logging --version etc. is OK.
19782 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19783 ## Running $as_me. ##
19788 This file was extended by $as_me, which was
19789 generated by GNU Autoconf 2.59. Invocation command line was
19791 CONFIG_FILES = $CONFIG_FILES
19792 CONFIG_HEADERS = $CONFIG_HEADERS
19793 CONFIG_LINKS = $CONFIG_LINKS
19794 CONFIG_COMMANDS = $CONFIG_COMMANDS
19798 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19802 # Files that config.status was made for.
19803 if test -n "$ac_config_files"; then
19804 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19807 if test -n "$ac_config_headers"; then
19808 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19811 if test -n "$ac_config_links"; then
19812 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19815 if test -n "$ac_config_commands"; then
19816 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19819 cat >>$CONFIG_STATUS <<\_ACEOF
19822 \`$as_me' instantiates files from templates according to the
19823 current configuration.
19825 Usage: $0 [OPTIONS] [FILE]...
19827 -h, --help print this help, then exit
19828 -V, --version print version number, then exit
19829 -q, --quiet do not print progress messages
19830 -d, --debug don't remove temporary files
19831 --recheck update $as_me by reconfiguring in the same conditions
19832 --file=FILE[:TEMPLATE]
19833 instantiate the configuration file FILE
19834 --header=FILE[:TEMPLATE]
19835 instantiate the configuration header FILE
19837 Configuration files:
19840 Configuration headers:
19843 Configuration commands:
19846 Report bugs to <bug-autoconf@gnu.org>."
19849 cat >>$CONFIG_STATUS <<_ACEOF
19852 configured by $0, generated by GNU Autoconf 2.59,
19853 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19855 Copyright (C) 2003 Free Software Foundation, Inc.
19856 This config.status script is free software; the Free Software Foundation
19857 gives unlimited permission to copy, distribute and modify it."
19862 cat >>$CONFIG_STATUS <<\_ACEOF
19863 # If no file are specified by the user, then we need to provide default
19864 # value. By we need to know if files were specified by the user.
19870 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19871 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19879 *) # This is not an option, so the user has probably given explicit
19882 ac_need_defaults=false;;
19886 # Handling of the options.
19888 cat >>$CONFIG_STATUS <<\_ACEOF
19889 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19891 --version | --vers* | -V )
19892 echo "$ac_cs_version"; exit 0 ;;
19894 # Conflict between --help and --header
19895 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19896 Try \`$0 --help' for more information." >&5
19897 echo "$as_me: error: ambiguous option: $1
19898 Try \`$0 --help' for more information." >&2;}
19899 { (exit 1); exit 1; }; };;
19900 --help | --hel | -h )
19901 echo "$ac_cs_usage"; exit 0 ;;
19902 --debug | --d* | -d )
19904 --file | --fil | --fi | --f )
19906 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19907 ac_need_defaults=false;;
19908 --header | --heade | --head | --hea )
19910 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19911 ac_need_defaults=false;;
19912 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19913 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19916 # This is an error.
19917 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19918 Try \`$0 --help' for more information." >&5
19919 echo "$as_me: error: unrecognized option: $1
19920 Try \`$0 --help' for more information." >&2;}
19921 { (exit 1); exit 1; }; } ;;
19923 *) ac_config_targets="$ac_config_targets $1" ;;
19929 ac_configure_extra_args=
19931 if $ac_cs_silent; then
19933 ac_configure_extra_args="$ac_configure_extra_args --silent"
19937 cat >>$CONFIG_STATUS <<_ACEOF
19938 if \$ac_cs_recheck; then
19939 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19940 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19945 cat >>$CONFIG_STATUS <<_ACEOF
19947 # INIT-COMMANDS section.
19950 INTLTOOL_PERL=${INTLTOOL_PERL}
19957 cat >>$CONFIG_STATUS <<\_ACEOF
19958 for ac_config_target in $ac_config_targets
19960 case "$ac_config_target" in
19961 # Handling of arguments.
19962 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19963 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
19964 "driver/Makefile" ) CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;;
19965 "hacks/Makefile" ) CONFIG_FILES="$CONFIG_FILES hacks/Makefile" ;;
19966 "hacks/glx/Makefile" ) CONFIG_FILES="$CONFIG_FILES hacks/glx/Makefile" ;;
19967 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19968 "driver/XScreenSaver.ad" ) CONFIG_FILES="$CONFIG_FILES driver/XScreenSaver.ad" ;;
19969 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19970 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
19971 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19972 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19973 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19974 { (exit 1); exit 1; }; };;
19978 # If the user did not use the arguments to specify the items to instantiate,
19979 # then the envvar interface is used. Set only those that are not.
19980 # We use the long form for the default assignment because of an extremely
19981 # bizarre bug on SunOS 4.1.3.
19982 if $ac_need_defaults; then
19983 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19984 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19985 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19988 # Have a temporary directory for convenience. Make it in the build tree
19989 # simply because there is no reason to put it here, and in addition,
19990 # creating and moving files from /tmp can sometimes cause problems.
19991 # Create a temporary directory, and hook for its removal unless debugging.
19994 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19995 trap '{ (exit 1); exit 1; }' 1 2 13 15
19998 # Create a (secure) tmp directory for tmp files.
20001 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20002 test -n "$tmp" && test -d "$tmp"
20005 tmp=./confstat$$-$RANDOM
20006 (umask 077 && mkdir $tmp)
20009 echo "$me: cannot create a temporary directory in ." >&2
20010 { (exit 1); exit 1; }
20015 cat >>$CONFIG_STATUS <<_ACEOF
20018 # CONFIG_FILES section.
20021 # No need to generate the scripts if there are no CONFIG_FILES.
20022 # This happens for instance when ./config.status config.h
20023 if test -n "\$CONFIG_FILES"; then
20024 # Protect against being on the right side of a sed subst in config.status.
20025 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20026 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20027 s,@SHELL@,$SHELL,;t t
20028 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20029 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20030 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20031 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20032 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20033 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20034 s,@exec_prefix@,$exec_prefix,;t t
20035 s,@prefix@,$prefix,;t t
20036 s,@program_transform_name@,$program_transform_name,;t t
20037 s,@bindir@,$bindir,;t t
20038 s,@sbindir@,$sbindir,;t t
20039 s,@libexecdir@,$libexecdir,;t t
20040 s,@datadir@,$datadir,;t t
20041 s,@sysconfdir@,$sysconfdir,;t t
20042 s,@sharedstatedir@,$sharedstatedir,;t t
20043 s,@localstatedir@,$localstatedir,;t t
20044 s,@libdir@,$libdir,;t t
20045 s,@includedir@,$includedir,;t t
20046 s,@oldincludedir@,$oldincludedir,;t t
20047 s,@infodir@,$infodir,;t t
20048 s,@mandir@,$mandir,;t t
20049 s,@build_alias@,$build_alias,;t t
20050 s,@host_alias@,$host_alias,;t t
20051 s,@target_alias@,$target_alias,;t t
20052 s,@DEFS@,$DEFS,;t t
20053 s,@ECHO_C@,$ECHO_C,;t t
20054 s,@ECHO_N@,$ECHO_N,;t t
20055 s,@ECHO_T@,$ECHO_T,;t t
20056 s,@LIBS@,$LIBS,;t t
20057 s,@build@,$build,;t t
20058 s,@build_cpu@,$build_cpu,;t t
20059 s,@build_vendor@,$build_vendor,;t t
20060 s,@build_os@,$build_os,;t t
20061 s,@host@,$host,;t t
20062 s,@host_cpu@,$host_cpu,;t t
20063 s,@host_vendor@,$host_vendor,;t t
20064 s,@host_os@,$host_os,;t t
20066 s,@CFLAGS@,$CFLAGS,;t t
20067 s,@LDFLAGS@,$LDFLAGS,;t t
20068 s,@CPPFLAGS@,$CPPFLAGS,;t t
20069 s,@ac_ct_CC@,$ac_ct_CC,;t t
20070 s,@EXEEXT@,$EXEEXT,;t t
20071 s,@OBJEXT@,$OBJEXT,;t t
20073 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20074 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20075 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20076 s,@SET_MAKE@,$SET_MAKE,;t t
20077 s,@EGREP@,$EGREP,;t t
20078 s,@PERL@,$PERL,;t t
20079 s,@X_CFLAGS@,$X_CFLAGS,;t t
20080 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20081 s,@X_LIBS@,$X_LIBS,;t t
20082 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20083 s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
20084 s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
20085 s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
20086 s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
20087 s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
20088 s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
20089 s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
20090 s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
20091 s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
20092 s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
20093 s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
20094 s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
20095 s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
20096 s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
20097 s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
20098 s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
20099 s,@RANLIB@,$RANLIB,;t t
20100 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20101 s,@ALLOCA@,$ALLOCA,;t t
20102 s,@USE_NLS@,$USE_NLS,;t t
20103 s,@MSGFMT@,$MSGFMT,;t t
20104 s,@GMSGFMT@,$GMSGFMT,;t t
20105 s,@XGETTEXT@,$XGETTEXT,;t t
20106 s,@CATALOGS@,$CATALOGS,;t t
20107 s,@CATOBJEXT@,$CATOBJEXT,;t t
20108 s,@DATADIRNAME@,$DATADIRNAME,;t t
20109 s,@GMOFILES@,$GMOFILES,;t t
20110 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20111 s,@INTLDEPS@,$INTLDEPS,;t t
20112 s,@INTLLIBS@,$INTLLIBS,;t t
20113 s,@INTLOBJS@,$INTLOBJS,;t t
20114 s,@POFILES@,$POFILES,;t t
20115 s,@POSUB@,$POSUB,;t t
20116 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20117 s,@login_manager_tmp@,$login_manager_tmp,;t t
20118 s,@pkg_config@,$pkg_config,;t t
20119 s,@gnome_open_program@,$gnome_open_program,;t t
20120 s,@gnome_url_show_program@,$gnome_url_show_program,;t t
20121 s,@INCLUDES@,$INCLUDES,;t t
20122 s,@PREFERRED_DEMO_PROGRAM@,$PREFERRED_DEMO_PROGRAM,;t t
20123 s,@ALL_DEMO_PROGRAMS@,$ALL_DEMO_PROGRAMS,;t t
20124 s,@SAVER_LIBS@,$SAVER_LIBS,;t t
20125 s,@MOTIF_LIBS@,$MOTIF_LIBS,;t t
20126 s,@GTK_LIBS@,$GTK_LIBS,;t t
20127 s,@XML_LIBS@,$XML_LIBS,;t t
20128 s,@JPEG_LIBS@,$JPEG_LIBS,;t t
20129 s,@HACK_LIBS@,$HACK_LIBS,;t t
20130 s,@XPM_LIBS@,$XPM_LIBS,;t t
20131 s,@PTY_LIBS@,$PTY_LIBS,;t t
20132 s,@GL_LIBS@,$GL_LIBS,;t t
20133 s,@GLE_LIBS@,$GLE_LIBS,;t t
20134 s,@XDPMS_LIBS@,$XDPMS_LIBS,;t t
20135 s,@XINERAMA_LIBS@,$XINERAMA_LIBS,;t t
20136 s,@PASSWD_LIBS@,$PASSWD_LIBS,;t t
20137 s,@INSTALL_SETUID@,$INSTALL_SETUID,;t t
20138 s,@SETUID_HACKS@,$SETUID_HACKS,;t t
20139 s,@INSTALL_DIRS@,$INSTALL_DIRS,;t t
20140 s,@NEED_SETUID@,$NEED_SETUID,;t t
20141 s,@INSTALL_PAM@,$INSTALL_PAM,;t t
20142 s,@NEW_LOGIN_COMMAND@,$NEW_LOGIN_COMMAND,;t t
20143 s,@NEW_LOGIN_COMMAND_P@,$NEW_LOGIN_COMMAND_P,;t t
20144 s,@DEFAULT_IMAGES_P@,$DEFAULT_IMAGES_P,;t t
20145 s,@DEFAULT_IMAGE_DIRECTORY@,$DEFAULT_IMAGE_DIRECTORY,;t t
20146 s,@OBJCC@,$OBJCC,;t t
20147 s,@EXES_OSX@,$EXES_OSX,;t t
20148 s,@SCRIPTS_OSX@,$SCRIPTS_OSX,;t t
20149 s,@MEN_OSX@,$MEN_OSX,;t t
20150 s,@PASSWD_SRCS@,$PASSWD_SRCS,;t t
20151 s,@PASSWD_OBJS@,$PASSWD_OBJS,;t t
20152 s,@XMU_SRCS@,$XMU_SRCS,;t t
20153 s,@XMU_OBJS@,$XMU_OBJS,;t t
20154 s,@XMU_LIBS@,$XMU_LIBS,;t t
20155 s,@SAVER_GL_SRCS@,$SAVER_GL_SRCS,;t t
20156 s,@SAVER_GL_OBJS@,$SAVER_GL_OBJS,;t t
20157 s,@SAVER_GL_LIBS@,$SAVER_GL_LIBS,;t t
20158 s,@LOCK_SRCS@,$LOCK_SRCS,;t t
20159 s,@LOCK_OBJS@,$LOCK_OBJS,;t t
20160 s,@JPEG_EXES@,$JPEG_EXES,;t t
20161 s,@GL_EXES@,$GL_EXES,;t t
20162 s,@GL_UTIL_EXES@,$GL_UTIL_EXES,;t t
20163 s,@GL_MEN@,$GL_MEN,;t t
20164 s,@GL_KLUDGE@,$GL_KLUDGE,;t t
20165 s,@GLE_EXES@,$GLE_EXES,;t t
20166 s,@GLE_KLUDGE@,$GLE_KLUDGE,;t t
20167 s,@GNOME24@,$GNOME24,;t t
20168 s,@GNOME22@,$GNOME22,;t t
20169 s,@NOGNOME@,$NOGNOME,;t t
20170 s,@HACKDIR@,$HACKDIR,;t t
20171 s,@GTK_DATADIR@,$GTK_DATADIR,;t t
20172 s,@PO_DATADIR@,$PO_DATADIR,;t t
20173 s,@HACK_CONF_DIR@,$HACK_CONF_DIR,;t t
20174 s,@GTK_EXTRA_OBJS@,$GTK_EXTRA_OBJS,;t t
20175 s,@APPDEFAULTS@,$APPDEFAULTS,;t t
20176 s,@DEPEND@,$DEPEND,;t t
20177 s,@DEPEND_FLAGS@,$DEPEND_FLAGS,;t t
20178 s,@DEPEND_DEFINES@,$DEPEND_DEFINES,;t t
20179 s,@LIBOBJS@,$LIBOBJS,;t t
20180 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20185 cat >>$CONFIG_STATUS <<\_ACEOF
20186 # Split the substitutions into bite-sized pieces for seds with
20187 # small command number limits, like on Digital OSF/1 and HP-UX.
20188 ac_max_sed_lines=48
20189 ac_sed_frag=1 # Number of current file.
20190 ac_beg=1 # First line for current file.
20191 ac_end=$ac_max_sed_lines # Line after last line for current file.
20194 while $ac_more_lines; do
20195 if test $ac_beg -gt 1; then
20196 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20198 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20200 if test ! -s $tmp/subs.frag; then
20201 ac_more_lines=false
20203 # The purpose of the label and of the branching condition is to
20204 # speed up the sed processing (if there are no `@' at all, there
20205 # is no need to browse any of the substitutions).
20206 # These are the two extra sed commands mentioned above.
20208 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20209 if test -z "$ac_sed_cmds"; then
20210 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20212 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20214 ac_sed_frag=`expr $ac_sed_frag + 1`
20216 ac_end=`expr $ac_end + $ac_max_sed_lines`
20219 if test -z "$ac_sed_cmds"; then
20222 fi # test -n "$CONFIG_FILES"
20225 cat >>$CONFIG_STATUS <<\_ACEOF
20226 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20227 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20229 - | *:- | *:-:* ) # input from stdin
20231 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20232 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20233 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20234 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20235 * ) ac_file_in=$ac_file.in ;;
20238 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20239 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20240 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20241 X"$ac_file" : 'X\(//\)[^/]' \| \
20242 X"$ac_file" : 'X\(//\)$' \| \
20243 X"$ac_file" : 'X\(/\)' \| \
20244 . : '\(.\)' 2>/dev/null ||
20246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20247 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20248 /^X\(\/\/\)$/{ s//\1/; q; }
20249 /^X\(\/\).*/{ s//\1/; q; }
20251 { if $as_mkdir_p; then
20256 while test ! -d "$as_dir"; do
20257 as_dirs="$as_dir $as_dirs"
20258 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20259 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20260 X"$as_dir" : 'X\(//\)[^/]' \| \
20261 X"$as_dir" : 'X\(//\)$' \| \
20262 X"$as_dir" : 'X\(/\)' \| \
20263 . : '\(.\)' 2>/dev/null ||
20265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20266 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20267 /^X\(\/\/\)$/{ s//\1/; q; }
20268 /^X\(\/\).*/{ s//\1/; q; }
20271 test ! -n "$as_dirs" || mkdir $as_dirs
20272 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20273 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20274 { (exit 1); exit 1; }; }; }
20278 if test "$ac_dir" != .; then
20279 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20280 # A "../" for each directory in $ac_dir_suffix.
20281 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20283 ac_dir_suffix= ac_top_builddir=
20287 .) # No --srcdir option. We are building in place.
20289 if test -z "$ac_top_builddir"; then
20292 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20294 [\\/]* | ?:[\\/]* ) # Absolute path.
20295 ac_srcdir=$srcdir$ac_dir_suffix;
20296 ac_top_srcdir=$srcdir ;;
20297 *) # Relative path.
20298 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20299 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20302 # Do not use `cd foo && pwd` to compute absolute paths, because
20303 # the directories may not exist.
20305 .) ac_abs_builddir="$ac_dir";;
20308 .) ac_abs_builddir=`pwd`;;
20309 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20310 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20313 case $ac_abs_builddir in
20314 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20316 case ${ac_top_builddir}. in
20317 .) ac_abs_top_builddir=$ac_abs_builddir;;
20318 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20319 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20322 case $ac_abs_builddir in
20323 .) ac_abs_srcdir=$ac_srcdir;;
20326 .) ac_abs_srcdir=$ac_abs_builddir;;
20327 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20328 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20331 case $ac_abs_builddir in
20332 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20334 case $ac_top_srcdir in
20335 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20336 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20337 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20343 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20344 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20347 if test x"$ac_file" != x-; then
20348 { echo "$as_me:$LINENO: creating $ac_file" >&5
20349 echo "$as_me: creating $ac_file" >&6;}
20352 # Let's still pretend it is `configure' which instantiates (i.e., don't
20353 # use $as_me), people would be surprised to read:
20354 # /* config.h. Generated by config.status. */
20355 if test x"$ac_file" = x-; then
20358 configure_input="$ac_file. "
20360 configure_input=$configure_input"Generated from `echo $ac_file_in |
20361 sed 's,.*/,,'` by configure."
20363 # First look for the input files in the build tree, otherwise in the
20365 ac_file_inputs=`IFS=:
20366 for f in $ac_file_in; do
20368 -) echo $tmp/stdin ;;
20370 # Absolute (can't be DOS-style, as IFS=:)
20371 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20372 echo "$as_me: error: cannot find input file: $f" >&2;}
20373 { (exit 1); exit 1; }; }
20376 if test -f "$f"; then
20379 elif test -f "$srcdir/$f"; then
20384 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20385 echo "$as_me: error: cannot find input file: $f" >&2;}
20386 { (exit 1); exit 1; }; }
20389 done` || { (exit 1); exit 1; }
20391 cat >>$CONFIG_STATUS <<_ACEOF
20395 cat >>$CONFIG_STATUS <<\_ACEOF
20397 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20398 s,@configure_input@,$configure_input,;t t
20399 s,@srcdir@,$ac_srcdir,;t t
20400 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20401 s,@top_srcdir@,$ac_top_srcdir,;t t
20402 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20403 s,@builddir@,$ac_builddir,;t t
20404 s,@abs_builddir@,$ac_abs_builddir,;t t
20405 s,@top_builddir@,$ac_top_builddir,;t t
20406 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20407 s,@INSTALL@,$ac_INSTALL,;t t
20408 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20410 if test x"$ac_file" != x-; then
20411 mv $tmp/out $ac_file
20419 cat >>$CONFIG_STATUS <<\_ACEOF
20422 # CONFIG_HEADER section.
20425 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20426 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20428 # ac_d sets the value in "#define NAME VALUE" lines.
20429 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20430 ac_dB='[ ].*$,\1#\2'
20433 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20434 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20435 ac_uB='$,\1#\2define\3'
20439 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20440 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20442 - | *:- | *:-:* ) # input from stdin
20444 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20445 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20446 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20447 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20448 * ) ac_file_in=$ac_file.in ;;
20451 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20452 echo "$as_me: creating $ac_file" >&6;}
20454 # First look for the input files in the build tree, otherwise in the
20456 ac_file_inputs=`IFS=:
20457 for f in $ac_file_in; do
20459 -) echo $tmp/stdin ;;
20461 # Absolute (can't be DOS-style, as IFS=:)
20462 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20463 echo "$as_me: error: cannot find input file: $f" >&2;}
20464 { (exit 1); exit 1; }; }
20465 # Do quote $f, to prevent DOS paths from being IFS'd.
20468 if test -f "$f"; then
20471 elif test -f "$srcdir/$f"; then
20476 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20477 echo "$as_me: error: cannot find input file: $f" >&2;}
20478 { (exit 1); exit 1; }; }
20481 done` || { (exit 1); exit 1; }
20482 # Remove the trailing spaces.
20483 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20487 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20488 # `conftest.undefs', that substitutes the proper values into
20489 # config.h.in to produce config.h. The first handles `#define'
20490 # templates, and the second `#undef' templates.
20491 # And first: Protect against being on the right side of a sed subst in
20492 # config.status. Protect against being in an unquoted here document
20493 # in config.status.
20494 rm -f conftest.defines conftest.undefs
20495 # Using a here document instead of a string reduces the quoting nightmare.
20496 # Putting comments in sed scripts is not portable.
20498 # `end' is used to avoid that the second main sed command (meant for
20499 # 0-ary CPP macros) applies to n-ary macro definitions.
20500 # See the Autoconf documentation for `clear'.
20501 cat >confdef2sed.sed <<\_ACEOF
20506 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20508 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20511 # If some macros were called several times there might be several times
20512 # the same #defines, which is useless. Nevertheless, we may not want to
20513 # sort them, since we want the *last* AC-DEFINE to be honored.
20514 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20515 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20516 rm -f confdef2sed.sed
20518 # This sed command replaces #undef with comments. This is necessary, for
20519 # example, in the case of _POSIX_SOURCE, which is predefined and required
20520 # on some systems where configure will not decide to define it.
20521 cat >>conftest.undefs <<\_ACEOF
20522 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20525 # Break up conftest.defines because some shells have a limit on the size
20526 # of here documents, and old seds have small limits too (100 cmds).
20527 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20528 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20529 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20530 echo ' :' >>$CONFIG_STATUS
20531 rm -f conftest.tail
20532 while grep . conftest.defines >/dev/null
20534 # Write a limited-size here document to $tmp/defines.sed.
20535 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20536 # Speed up: don't consider the non `#define' lines.
20537 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20538 # Work around the forget-to-reset-the-flag bug.
20539 echo 't clr' >>$CONFIG_STATUS
20540 echo ': clr' >>$CONFIG_STATUS
20541 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20543 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20545 mv $tmp/out $tmp/in
20547 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20548 rm -f conftest.defines
20549 mv conftest.tail conftest.defines
20551 rm -f conftest.defines
20552 echo ' fi # grep' >>$CONFIG_STATUS
20553 echo >>$CONFIG_STATUS
20555 # Break up conftest.undefs because some shells have a limit on the size
20556 # of here documents, and old seds have small limits too (100 cmds).
20557 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20558 rm -f conftest.tail
20559 while grep . conftest.undefs >/dev/null
20561 # Write a limited-size here document to $tmp/undefs.sed.
20562 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20563 # Speed up: don't consider the non `#undef'
20564 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20565 # Work around the forget-to-reset-the-flag bug.
20566 echo 't clr' >>$CONFIG_STATUS
20567 echo ': clr' >>$CONFIG_STATUS
20568 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20570 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20572 mv $tmp/out $tmp/in
20574 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20575 rm -f conftest.undefs
20576 mv conftest.tail conftest.undefs
20578 rm -f conftest.undefs
20580 cat >>$CONFIG_STATUS <<\_ACEOF
20581 # Let's still pretend it is `configure' which instantiates (i.e., don't
20582 # use $as_me), people would be surprised to read:
20583 # /* config.h. Generated by config.status. */
20584 if test x"$ac_file" = x-; then
20585 echo "/* Generated by configure. */" >$tmp/config.h
20587 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20589 cat $tmp/in >>$tmp/config.h
20591 if test x"$ac_file" != x-; then
20592 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20593 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20594 echo "$as_me: $ac_file is unchanged" >&6;}
20596 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20597 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20598 X"$ac_file" : 'X\(//\)[^/]' \| \
20599 X"$ac_file" : 'X\(//\)$' \| \
20600 X"$ac_file" : 'X\(/\)' \| \
20601 . : '\(.\)' 2>/dev/null ||
20603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20604 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20605 /^X\(\/\/\)$/{ s//\1/; q; }
20606 /^X\(\/\).*/{ s//\1/; q; }
20608 { if $as_mkdir_p; then
20613 while test ! -d "$as_dir"; do
20614 as_dirs="$as_dir $as_dirs"
20615 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20616 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20617 X"$as_dir" : 'X\(//\)[^/]' \| \
20618 X"$as_dir" : 'X\(//\)$' \| \
20619 X"$as_dir" : 'X\(/\)' \| \
20620 . : '\(.\)' 2>/dev/null ||
20622 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20623 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20624 /^X\(\/\/\)$/{ s//\1/; q; }
20625 /^X\(\/\).*/{ s//\1/; q; }
20628 test ! -n "$as_dirs" || mkdir $as_dirs
20629 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20630 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20631 { (exit 1); exit 1; }; }; }
20634 mv $tmp/config.h $ac_file
20638 rm -f $tmp/config.h
20642 cat >>$CONFIG_STATUS <<\_ACEOF
20645 # CONFIG_COMMANDS section.
20647 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20648 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20649 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20650 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20651 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20652 X"$ac_dest" : 'X\(//\)[^/]' \| \
20653 X"$ac_dest" : 'X\(//\)$' \| \
20654 X"$ac_dest" : 'X\(/\)' \| \
20655 . : '\(.\)' 2>/dev/null ||
20657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20658 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20659 /^X\(\/\/\)$/{ s//\1/; q; }
20660 /^X\(\/\).*/{ s//\1/; q; }
20662 { if $as_mkdir_p; then
20667 while test ! -d "$as_dir"; do
20668 as_dirs="$as_dir $as_dirs"
20669 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20670 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20671 X"$as_dir" : 'X\(//\)[^/]' \| \
20672 X"$as_dir" : 'X\(//\)$' \| \
20673 X"$as_dir" : 'X\(/\)' \| \
20674 . : '\(.\)' 2>/dev/null ||
20676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20677 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20678 /^X\(\/\/\)$/{ s//\1/; q; }
20679 /^X\(\/\).*/{ s//\1/; q; }
20682 test ! -n "$as_dirs" || mkdir $as_dirs
20683 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20684 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20685 { (exit 1); exit 1; }; }; }
20689 if test "$ac_dir" != .; then
20690 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20691 # A "../" for each directory in $ac_dir_suffix.
20692 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20694 ac_dir_suffix= ac_top_builddir=
20698 .) # No --srcdir option. We are building in place.
20700 if test -z "$ac_top_builddir"; then
20703 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20705 [\\/]* | ?:[\\/]* ) # Absolute path.
20706 ac_srcdir=$srcdir$ac_dir_suffix;
20707 ac_top_srcdir=$srcdir ;;
20708 *) # Relative path.
20709 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20710 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20713 # Do not use `cd foo && pwd` to compute absolute paths, because
20714 # the directories may not exist.
20716 .) ac_abs_builddir="$ac_dir";;
20719 .) ac_abs_builddir=`pwd`;;
20720 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20721 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20724 case $ac_abs_builddir in
20725 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20727 case ${ac_top_builddir}. in
20728 .) ac_abs_top_builddir=$ac_abs_builddir;;
20729 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20730 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20733 case $ac_abs_builddir in
20734 .) ac_abs_srcdir=$ac_srcdir;;
20737 .) ac_abs_srcdir=$ac_abs_builddir;;
20738 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20739 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20742 case $ac_abs_builddir in
20743 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20745 case $ac_top_srcdir in
20746 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20747 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20748 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20753 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20754 echo "$as_me: executing $ac_dest commands" >&6;}
20758 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-extract.in > intltool-extract.out
20759 if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
20760 rm -f intltool-extract.out
20762 mv -f intltool-extract.out intltool-extract
20764 chmod ugo+x intltool-extract
20765 chmod u+w intltool-extract
20767 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-merge.in > intltool-merge.out
20768 if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
20769 rm -f intltool-merge.out
20771 mv -f intltool-merge.out intltool-merge
20773 chmod ugo+x intltool-merge
20774 chmod u+w intltool-merge
20776 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-update.in > intltool-update.out
20777 if cmp -s intltool-update intltool-update.out 2>/dev/null; then
20778 rm -f intltool-update.out
20780 mv -f intltool-update.out intltool-update
20782 chmod ugo+x intltool-update
20783 chmod u+w intltool-update
20786 default-2 ) case "$CONFIG_FILES" in *po/Makefile.in*)
20787 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
20793 cat >>$CONFIG_STATUS <<\_ACEOF
20795 { (exit 0); exit 0; }
20797 chmod +x $CONFIG_STATUS
20798 ac_clean_files=$ac_clean_files_save
20801 # configure is writing to config.log, and then calls config.status.
20802 # config.status does its own redirection, appending to config.log.
20803 # Unfortunately, on DOS this fails, as config.log is still kept open
20804 # by configure, so config.status won't be able to write to it; its
20805 # output is simply discarded. So we exec the FD to /dev/null,
20806 # effectively closing config.log, so it can be properly (re)opened and
20807 # appended to by config.status. When coming back to configure, we
20808 # need to make the FD available again.
20809 if test "$no_create" != yes; then
20811 ac_config_status_args=
20812 test "$silent" = yes &&
20813 ac_config_status_args="$ac_config_status_args --quiet"
20815 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20817 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20818 # would make configure fail if this is the last instruction.
20819 $ac_cs_success || { (exit 1); exit 1; }
20823 ###############################################################################
20825 # Print some warnings at the end.
20827 ###############################################################################
20829 warn_prefix_1=" Warning:"
20830 warn_prefix_2=" Note:"
20831 warn_prefix="$warn_prefix_1"
20834 warnsep=' #################################################################'
20837 if test "$warning" = no ; then
20838 echo '' ; echo "$warnsep" ; echo ''
20845 if test "$warning" = long ; then echo '' ; fi
20848 echo "$warn_prefix $rest"
20855 if test "$was" != no ; then echo '' ; fi
20857 echo "$warn_prefix $rest"
20867 warn_prefix="$warn_prefix_2"
20869 warn_prefix="$warn_prefix_1"
20873 warn_prefix="$warn_prefix_2"
20875 warn_prefix="$warn_prefix_1"
20879 if test "$with_sgi_req" = yes -a "$have_sgi" = no ; then
20880 warn 'The SGI saver extension was requested, but was not found.'
20883 if test "$with_xidle_req" = yes -a "$have_xidle" = no ; then
20884 warn 'The XIdle extension was requested, but was not found.'
20887 if test "$with_xshm_req" = yes -a "$have_xshm" = no ; then
20888 warn 'The XSHM extension was requested, but was not found.'
20891 if test "$with_xdbe_req" = yes -a "$have_xdbe" = no ; then
20892 warn 'The DOUBLE-BUFFER extension was requested, but was not found.'
20895 if test "$with_sgivc_req" = yes -a "$have_sgivc" = no ; then
20896 warn 'The SGI-VIDEO-CONTROL extension was requested, but was not found.'
20899 if test "$with_dpms_req" = yes -a "$have_dpms" = no ; then
20900 warn 'The DPMS extension was requested, but was not found.'
20903 if test "$with_xinerama_req" = yes -a "$have_xinerama" = no ; then
20904 warn 'The Xinerama extension was requested, but was not found.'
20907 if test "$with_xf86vmode_req" = yes -a "$have_xf86vmode" = no ; then
20908 warn 'The XF86VMODE extension was requested, but was not found.'
20911 if test "$with_randr_req" = yes -a "$have_randr" = no ; then
20912 warn 'The RANDR extension was requested, but was not found.'
20915 if test "$with_proc_interrupts_req" = yes -a "$have_proc_interrupts" = no; then
20916 warn "Checking of /proc/interrupts was requested, but it's bogus."
20919 if test "$pkg_config" = false ; then
20920 warnL 'The "pkg-config" program was not found. Without that,'
20921 warn2 "detection of the various GTK libraries won't work."
20923 pkgerr=`$pkg_config --list-all 2>&1 >/dev/null`
20924 if test "x$pkgerr" != "x" ; then
20925 warnL 'The "pkg-config" program produces errors. This often causes'
20926 warn2 "detection of the various GTK libraries to malfunction."
20927 warn2 "The errors are:"
20929 echo "$pkgerr" | sed 's/^/ > /g'
20933 if test "$gtk_halfassed" != no ; then
20934 warnL "GTK version $gtk_halfassed was found, but at least one supporting"
20935 warn2 "library ($gtk_halfassed_lib) was not, so GTK can't be used."
20936 warn2 "Perhaps some of the development packages are not installed?"
20937 if test "$have_gtk" = yes ; then
20938 v="$ac_gtk_version_string"
20939 warn2 "GTK $v is also installed, so it will be used instead."
20940 warn2 "Please read the above output and the \`config.log' file"
20941 warn2 "for more details."
20946 warn2 'Though the Motif front-end to xscreensaver is still'
20947 warn2 'maintained, it is no longer being updated with new'
20948 warn2 'features: all new development on the xscreensaver-demo'
20949 warn2 'program is happening in the GTK version, and not in the'
20950 warn2 'Motif version. It is recommended that you build against'
20951 warn2 'GTK instead of Motif. See <http://www.gtk.org/>.'
20954 if test "$have_motif" = no -a "$have_gtk" = no; then
20956 if test "$with_motif" = yes; then
20957 warnL "Neither the GTK nor Motif libraries were found; the"
20958 warn2 "\`xscreensaver-demo' program requires one of these."
20962 warnL "The GTK libraries do not seem to be available; the"
20963 warn2 "\`xscreensaver-demo' program requires them."
20965 # warn2 'You can use Motif or Lesstif instead of GTK (use the'
20966 # warn2 "\`--with-motif' option) but that is NOT recommended."
20970 elif test "$with_motif_req" = yes -a "$have_motif" = no ; then
20971 warnL "Use of Motif was requested, but it wasn't found;"
20972 warn2 "Gtk will be used instead."
20974 elif test "$jurassic_gtk" = yes ; then
20978 v="$ac_gtk_version_string"
20979 if test "$with_gtk_req" = yes -a "$ac_gtk_version" = "unknown" ; then
20980 warnL "Use of Gtk was requested, but its version number is unknown;"
20981 elif test "$with_gtk_req" = yes ; then
20982 warnL "Use of Gtk was requested, but it is version $v;"
20984 warnL "Gtk was found on this system, but it is version $v;"
20987 warn2 "Gtk $pref_gtk or newer is required."
20989 elif test "$with_gtk_req" = yes -a "$have_gtk" = no ; then
20990 warnL "Use of Gtk was requested, but it wasn't found."
20994 if test "$have_gtk" = yes -a "$have_gdk_pixbuf" = no ; then
20995 warn "GTK is being used, but the GDK-Pixbuf library and/or"
20996 warn2 "headers were not found. That can't be good. Please"
20997 warn2 "install the GDK-Pixbuf development kit and re-configure."
21000 if test "$have_motif" = yes -a "$have_lesstif" = yes ; then
21002 preferred_lesstif=0.92
21004 if test "$lesstif_version" = unknown; then
21005 warnL "Unable to determine the LessTif version number!"
21006 warn2 "Make sure you are using version $preferred_lesstif or newer."
21007 warn2 "See <http://www.lesstif.org/>."
21009 elif test \! $lesstif_version -gt 82; then
21010 warnL "LessTif version $lesstif_version_string is being used."
21011 warn2 "LessTif versions 0.82 and earlier are too buggy to"
21012 warn2 "use with XScreenSaver; it is strongly recommended"
21013 warn2 "that you upgrade to at least version $preferred_lesstif!"
21014 warn2 "See <http://www.lesstif.org/>."
21019 if test "$have_motif" = yes -a "$have_gtk" = no ; then
21020 warn 'Motif is being used, and GTK is not.'
21026 if test "$with_xpm_req" = yes -a "$have_xpm" = no; then
21027 warnL 'Use of XPM was requested, but it was not found.'
21030 if test "$with_gdk_pixbuf_req" = yes -a "$have_gdk_pixbuf" = no; then
21031 warnL 'Use of GDK-Pixbuf was requested, but it was not found.'
21034 if test "$have_gdk_pixbuf" = no -o "$gdk_pixbuf_halfassed" = yes || \
21035 test "$have_gdk_pixbuf" = no -a "$have_xpm" = no ; then
21037 if test "$with_gdk_pixbuf_req" = yes ; then
21039 elif test "$with_gdk_pixbuf_req" = no ; then
21040 warnL 'The GDK-Pixbuf library is not being used.'
21042 warnL 'The GDK-Pixbuf library was not found.'
21045 if test "$with_xpm_req" = yes -o "$have_xpm" = yes ; then
21047 elif test "$with_xpm_req" = no ; then
21048 warnL 'The XPM library is not being used.'
21050 warnL 'The XPM library was not found.'
21053 if test "$have_gdk_pixbuf" = no -a "$have_xpm" = yes ; then
21054 warn2 'The XPM library is being used instead.'
21057 if test "$gdk_pixbuf_halfassed" = yes ; then
21059 warn2 'More specifically, we found the headers, but not the'
21060 warn2 'libraries; so either GDK-Pixbuf is half-installed on this'
21061 warn2 "system, or something else went wrong. The \`config.log'"
21062 warn2 'file might contain some clues.'
21066 warn2 'Some of the demos will not use images as much as they could.'
21067 warn2 'You should consider installing GDK-Pixbuf and re-running'
21068 warn2 'configure. (GDK-Pixbuf is recommended over XPM, as it'
21069 warn2 'provides support for more image formats.)'
21073 if test "$have_jpeg" = no ; then
21074 if test "$with_jpeg_req" = yes ; then
21075 warnL 'Use of libjpeg was requested, but it was not found.'
21076 elif test "$with_jpeg_req" = no ; then
21077 noteL 'The JPEG library is not being used.'
21079 noteL 'The JPEG library was not found.'
21082 if test "$jpeg_halfassed" = yes ; then
21084 warn2 'More specifically, we found the headers, but not the'
21085 warn2 'library; so either JPEG is half-installed on this'
21086 warn2 "system, or something else went wrong. The \`config.log'"
21087 warn2 'file might contain some clues.'
21091 if test "$have_gdk_pixbuf" = no ; then
21092 warn2 "This means that it won't be possible for the image-manipulating"
21093 warn2 "display modes to load files from disk; and it also means that"
21094 warn2 "the \`webcollage' program will be much slower."
21096 warn2 "This means the \`webcollage' program will be much slower."
21101 if test "$have_gl" = yes -a "$ac_have_mesa_gl" = yes ; then
21102 preferred_mesagl=3.4
21103 mgv="$ac_mesagl_version_string"
21104 pgl="$preferred_mesagl"
21106 if test "$ac_mesagl_version" = unknown; then
21107 warnL "Unable to determine the MesaGL version number!"
21108 warn2 "Make sure you are using version $preferred_mesagl or newer."
21110 elif test \! "$ac_mesagl_version" -gt 2006; then
21111 warnL "MesaGL version number is $mgv --"
21112 warn2 "MesaGL 2.6 and earlier have a security bug. It is strongly"
21113 warn2 "recommended that you upgrade to at least version $preferred_mesagl."
21115 elif test \! "$ac_mesagl_version" -gt 3003; then
21116 warnL "MesaGL version number is $mgv --"
21117 warn2 "MesaGL 3.3 and earlier have some bugs; it is recommended"
21118 warn2 "that you upgrade to $pgl or newer."
21122 if test "$have_gl" = no ; then
21123 if test "$with_gl_req" = yes ; then
21124 warnL 'Use of GL was requested, but it was not found.'
21125 elif test "$with_gl_req" = no ; then
21126 noteL 'The OpenGL 3D library is not being used.'
21128 noteL 'The OpenGL 3D library was not found.'
21131 if test "$gl_halfassed" = yes ; then
21133 warn2 'More specifically, we found the headers, but not the'
21134 warn2 'libraries; so either GL is half-installed on this'
21135 warn2 "system, or something else went wrong. The \`config.log'"
21136 warn2 'file might contain some clues.'
21140 warn2 'Those demos which use 3D will not be built or installed.'
21141 warn2 'You might want to consider installing OpenGL and'
21142 warn2 "re-running configure. If your vendor doesn't ship"
21143 warn2 'their own implementation of OpenGL, you can get a free'
21144 warn2 'version at <http://www.mesa3d.org/>. For general OpenGL'
21145 warn2 'info, see <http://www.opengl.org/>.'
21150 if test "$have_gl" = yes -a "$have_gle" = no ; then
21152 # nobody cares about this; don't print the warning unless it was
21153 # requested and not found, or halfway-found.
21154 if test "$with_gle_req" = yes -o "$gle_halfassed" = yes ; then
21156 if test "$with_gle_req" = yes ; then
21157 noteL 'Use of the GLE (GL Extrusion) library was requested, but'
21158 warn2 'it was not found (though the OpenGL library was found, and'
21159 warn2 'is being used.)'
21160 elif test "$with_gle_req" = no ; then
21161 noteL 'The OpenGL Library is being used, but the GLE (GL Extrusion)'
21162 warn2 'library is not.'
21164 noteL 'The OpenGL Library was found, but the GLE (GL Extrusion)'
21168 if test "$gle_halfassed" = yes ; then
21170 warn2 'More specifically, we found the headers, but not the'
21171 warn2 'libraries; so either GLE is half-installed on this'
21172 warn2 "system, or something else went wrong. The \`config.log'"
21173 warn2 'file might contain some clues.'
21177 warn2 'Some of the OpenGL (3D) demos (those that depend on GLE)'
21178 warn2 'will not be built or installed. You might want to consider'
21179 warn2 'installing GLE and re-running configure. You can find the'
21180 warn2 'GLE library at <http://www.linas.org/gle/>. For general'
21181 warn2 'OpenGL info, see <http://www.opengl.org/>.'
21187 if test "$with_readdisplay_req" = yes -a "$have_readdisplay" = no ; then
21188 warn 'Use of XReadDisplay was requested, but it was not found.'
21191 if test "$with_kerberos_req" = yes -a "$have_kerberos" = no ; then
21192 warn 'Use of Kerberos was requested, but it was not found.'
21195 if test "$with_pam_req" = yes -a "$have_pam" = no ; then
21196 warn 'Use of PAM was requested, but it was not found.'
21199 if test "$with_shadow_req" = yes -a "$have_shadow" = no ; then
21200 warn 'Use of shadow passwords was requested, but they were not found.'
21204 # You are in a twisty maze of namespaces and syntaxes, all alike.
21205 # Fuck the skull of Unix.
21207 eval bindir=${bindir}
21208 eval bindir=${bindir}
21209 eval bindir=${bindir}
21210 eval bindir=${bindir}
21211 eval bindir=${bindir}
21212 eval bindir=${bindir}
21213 eval HACKDIR=${HACKDIR}
21214 eval HACKDIR=${HACKDIR}
21215 eval HACKDIR=${HACKDIR}
21216 eval HACKDIR=${HACKDIR}
21217 eval HACKDIR=${HACKDIR}
21218 eval HACKDIR=${HACKDIR}
21219 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21220 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21221 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21222 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21223 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21224 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21226 # canonicalize slashes.
21227 bindir=`echo "${bindir}" | sed 's@/$@@;s@//*@/@g'`
21228 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
21229 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
21232 # Sanity check the hackdir
21233 for bad_choice in xscreensaver xscreensaver-demo xscreensaver-command ; do
21234 if test "${HACKDIR}" = "${bindir}/${bad_choice}" ; then
21236 { { echo "$as_me:$LINENO: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
21237 There will be an executable installed with that name, so
21238 that can't be the name of a directory as well. Please
21239 re-configure with a different directory name." >&5
21240 echo "$as_me: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
21241 There will be an executable installed with that name, so
21242 that can't be the name of a directory as well. Please
21243 re-configure with a different directory name." >&2;}
21244 { (exit 1); exit 1; }; }
21251 # Now let's warn if there's a previous RPM version already installed.
21252 # But don't bother with this test if we are currently *building* an RPM.
21254 if test -z "$RPM_PACKAGE_VERSION" ; then
21256 rpmnames="xscreensaver xscreensaver-base xscreensaver-extras"
21260 rpmv=`(rpm -qv $rpmnames) 2>/dev/null | \
21261 sed -n 's/^[-a-z]*-\([0-9][0-9]*[.][0-9][0-9a-z]*\)-.*$/\1/p' | \
21265 if test \! -z "$rpmv" ; then
21266 rpmbdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/xscreensaver-demo$@\1@p'`
21267 rpmhdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/attraction$@\1@p'`
21270 warnL "There is already an installed RPM of xscreensaver $rpmv"
21271 warn2 'on this system. You might want to remove it ("rpm -ve")'
21272 warn2 'before running "make install" in this directory.'
21274 warn2 "Alternately, you could build this version of xscreensaver"
21275 warn2 'as an RPM, and then install that. An "xscreensaver.spec"'
21276 warn2 'file is included. Try "rpmbuild -v -ba xscreensaver.spec".'
21277 warn2 "See the RPM documentation for more info."
21280 if test "$rpmbdir" = "$rpmhdir" ; then
21281 warn2 "The RPM version was installed in $rpmbdir/."
21284 warn2 "The RPM version was installed in $rpmbdir/,"
21285 warn2 "with demos in $rpmhdir/."
21290 if test "${bindir}" = "${HACKDIR}" ; then
21294 if test "$do_dir_warning" = yes; then
21298 echo ' When you run "make install", the "xscreensaver",'
21299 echo ' "xscreensaver-demo", and "xscreensaver-command" executables'
21300 echo " will be installed in ${bindir}/."
21302 echo " The various graphics demos (190+ different executables) will"
21303 echo " be installed in ${HACKDIR}/."
21305 echo " If you would prefer the demos to be installed elsewhere,"
21306 echo " you should re-run configure with the --with-hackdir=DIR"
21307 echo " option. For more information, run \`./configure --help'."
21311 if test "$warning" != no; then
21312 echo '' ; echo "$warnsep" ; echo ''
21315 if test "$do_dir_warning" = no; then
21316 if test "$warning" = no; then
21319 echo "User programs will be installed in ${bindir}/"
21320 echo "Screen savers will be installed in ${HACKDIR}/"
21321 echo "Configuration will be installed in ${HACK_CONF_DIR}/"