2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for PDCurses 3.4.
5 # Report bugs to <wmcbrine@users.sf.net>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 ac_default_prefix=/usr/local
566 ac_config_libobj_dir=.
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
575 PACKAGE_NAME='PDCurses'
576 PACKAGE_TARNAME='PDCurses'
577 PACKAGE_VERSION='3.4'
578 PACKAGE_STRING='PDCurses 3.4'
579 PACKAGE_BUGREPORT='wmcbrine@users.sf.net'
581 ac_unique_file="curspriv.h"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
595 # ifdef HAVE_STDLIB_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
627 program_transform_name
700 ac_precious_vars='build_alias
712 # Initialize some variables set by options.
714 ac_init_version=false
715 # The variables have the same names as the options, with
716 # dashes changed to underlines.
724 program_transform_name=s,x,x,
732 # Installation directory options.
733 # These are left unexpanded so users can "make install exec_prefix=/foo"
734 # and all the variables that are supposed to be based on exec_prefix
735 # by default will actually change.
736 # Use braces instead of parens because sh, perl, etc. also accept them.
737 # (The list follows the same order as the GNU Coding Standards.)
738 bindir='${exec_prefix}/bin'
739 sbindir='${exec_prefix}/sbin'
740 libexecdir='${exec_prefix}/libexec'
741 datarootdir='${prefix}/share'
742 datadir='${datarootdir}'
743 sysconfdir='${prefix}/etc'
744 sharedstatedir='${prefix}/com'
745 localstatedir='${prefix}/var'
746 includedir='${prefix}/include'
747 oldincludedir='/usr/include'
748 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
749 infodir='${datarootdir}/info'
754 libdir='${exec_prefix}/lib'
755 localedir='${datarootdir}/locale'
756 mandir='${datarootdir}/man'
762 # If the previous option needs an argument, assign it.
763 if test -n "$ac_prev"; then
764 eval $ac_prev=\$ac_option
770 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
774 # Accept the important Cygnus configure options, so we can diagnose typos.
776 case $ac_dashdash$ac_option in
780 -bindir | --bindir | --bindi | --bind | --bin | --bi)
782 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
785 -build | --build | --buil | --bui | --bu)
786 ac_prev=build_alias ;;
787 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
788 build_alias=$ac_optarg ;;
790 -cache-file | --cache-file | --cache-fil | --cache-fi \
791 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
792 ac_prev=cache_file ;;
793 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
794 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
795 cache_file=$ac_optarg ;;
798 cache_file=config.cache ;;
800 -datadir | --datadir | --datadi | --datad)
802 -datadir=* | --datadir=* | --datadi=* | --datad=*)
803 datadir=$ac_optarg ;;
805 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
806 | --dataroo | --dataro | --datar)
807 ac_prev=datarootdir ;;
808 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
809 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
810 datarootdir=$ac_optarg ;;
812 -disable-* | --disable-*)
813 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
814 # Reject names that are not valid shell variable names.
815 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
816 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
817 { (exit 1); exit 1; }; }
818 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
819 eval enable_$ac_feature=no ;;
821 -docdir | --docdir | --docdi | --doc | --do)
823 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
826 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
828 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
831 -enable-* | --enable-*)
832 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
833 # Reject names that are not valid shell variable names.
834 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
835 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
836 { (exit 1); exit 1; }; }
837 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
838 eval enable_$ac_feature=\$ac_optarg ;;
840 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
841 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
842 | --exec | --exe | --ex)
843 ac_prev=exec_prefix ;;
844 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
845 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
846 | --exec=* | --exe=* | --ex=*)
847 exec_prefix=$ac_optarg ;;
849 -gas | --gas | --ga | --g)
850 # Obsolete; use --with-gas.
853 -help | --help | --hel | --he | -h)
855 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
856 ac_init_help=recursive ;;
857 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
858 ac_init_help=short ;;
860 -host | --host | --hos | --ho)
861 ac_prev=host_alias ;;
862 -host=* | --host=* | --hos=* | --ho=*)
863 host_alias=$ac_optarg ;;
865 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
867 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
869 htmldir=$ac_optarg ;;
871 -includedir | --includedir | --includedi | --included | --include \
872 | --includ | --inclu | --incl | --inc)
873 ac_prev=includedir ;;
874 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
875 | --includ=* | --inclu=* | --incl=* | --inc=*)
876 includedir=$ac_optarg ;;
878 -infodir | --infodir | --infodi | --infod | --info | --inf)
880 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
881 infodir=$ac_optarg ;;
883 -libdir | --libdir | --libdi | --libd)
885 -libdir=* | --libdir=* | --libdi=* | --libd=*)
888 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
889 | --libexe | --libex | --libe)
890 ac_prev=libexecdir ;;
891 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
892 | --libexe=* | --libex=* | --libe=*)
893 libexecdir=$ac_optarg ;;
895 -localedir | --localedir | --localedi | --localed | --locale)
897 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
898 localedir=$ac_optarg ;;
900 -localstatedir | --localstatedir | --localstatedi | --localstated \
901 | --localstate | --localstat | --localsta | --localst | --locals)
902 ac_prev=localstatedir ;;
903 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
904 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
905 localstatedir=$ac_optarg ;;
907 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
909 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
913 # Obsolete; use --without-fp.
916 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
917 | --no-cr | --no-c | -n)
920 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
921 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
924 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
925 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
926 | --oldin | --oldi | --old | --ol | --o)
927 ac_prev=oldincludedir ;;
928 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
929 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
930 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
931 oldincludedir=$ac_optarg ;;
933 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
935 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
938 -program-prefix | --program-prefix | --program-prefi | --program-pref \
939 | --program-pre | --program-pr | --program-p)
940 ac_prev=program_prefix ;;
941 -program-prefix=* | --program-prefix=* | --program-prefi=* \
942 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
943 program_prefix=$ac_optarg ;;
945 -program-suffix | --program-suffix | --program-suffi | --program-suff \
946 | --program-suf | --program-su | --program-s)
947 ac_prev=program_suffix ;;
948 -program-suffix=* | --program-suffix=* | --program-suffi=* \
949 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
950 program_suffix=$ac_optarg ;;
952 -program-transform-name | --program-transform-name \
953 | --program-transform-nam | --program-transform-na \
954 | --program-transform-n | --program-transform- \
955 | --program-transform | --program-transfor \
956 | --program-transfo | --program-transf \
957 | --program-trans | --program-tran \
958 | --progr-tra | --program-tr | --program-t)
959 ac_prev=program_transform_name ;;
960 -program-transform-name=* | --program-transform-name=* \
961 | --program-transform-nam=* | --program-transform-na=* \
962 | --program-transform-n=* | --program-transform-=* \
963 | --program-transform=* | --program-transfor=* \
964 | --program-transfo=* | --program-transf=* \
965 | --program-trans=* | --program-tran=* \
966 | --progr-tra=* | --program-tr=* | --program-t=*)
967 program_transform_name=$ac_optarg ;;
969 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
971 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
974 -psdir | --psdir | --psdi | --psd | --ps)
976 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
980 | -silent | --silent | --silen | --sile | --sil)
983 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
985 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
987 sbindir=$ac_optarg ;;
989 -sharedstatedir | --sharedstatedir | --sharedstatedi \
990 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
991 | --sharedst | --shareds | --shared | --share | --shar \
993 ac_prev=sharedstatedir ;;
994 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
995 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
996 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
998 sharedstatedir=$ac_optarg ;;
1000 -site | --site | --sit)
1002 -site=* | --site=* | --sit=*)
1005 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1007 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1008 srcdir=$ac_optarg ;;
1010 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1011 | --syscon | --sysco | --sysc | --sys | --sy)
1012 ac_prev=sysconfdir ;;
1013 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1014 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1015 sysconfdir=$ac_optarg ;;
1017 -target | --target | --targe | --targ | --tar | --ta | --t)
1018 ac_prev=target_alias ;;
1019 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1020 target_alias=$ac_optarg ;;
1022 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1025 -version | --version | --versio | --versi | --vers | -V)
1026 ac_init_version=: ;;
1029 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1032 { echo "$as_me: error: invalid package name: $ac_package" >&2
1033 { (exit 1); exit 1; }; }
1034 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1035 eval with_$ac_package=\$ac_optarg ;;
1037 -without-* | --without-*)
1038 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1041 { echo "$as_me: error: invalid package name: $ac_package" >&2
1042 { (exit 1); exit 1; }; }
1043 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1044 eval with_$ac_package=no ;;
1047 # Obsolete; use --with-x.
1050 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1051 | --x-incl | --x-inc | --x-in | --x-i)
1052 ac_prev=x_includes ;;
1053 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1054 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1055 x_includes=$ac_optarg ;;
1057 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1058 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1059 ac_prev=x_libraries ;;
1060 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1061 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1062 x_libraries=$ac_optarg ;;
1064 -*) { echo "$as_me: error: unrecognized option: $ac_option
1065 Try \`$0 --help' for more information." >&2
1066 { (exit 1); exit 1; }; }
1070 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1073 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1074 { (exit 1); exit 1; }; }
1075 eval $ac_envvar=\$ac_optarg
1076 export $ac_envvar ;;
1079 # FIXME: should be removed in autoconf 3.0.
1080 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1081 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1082 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1083 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1089 if test -n "$ac_prev"; then
1090 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1091 { echo "$as_me: error: missing argument to $ac_option" >&2
1092 { (exit 1); exit 1; }; }
1095 # Be sure to have absolute directory names.
1096 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1097 datadir sysconfdir sharedstatedir localstatedir includedir \
1098 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1099 libdir localedir mandir
1101 eval ac_val=\$$ac_var
1103 [\\/$]* | ?:[\\/]* ) continue;;
1104 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1106 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1107 { (exit 1); exit 1; }; }
1110 # There might be people who depend on the old broken behavior: `$host'
1111 # used to hold the argument of --host etc.
1112 # FIXME: To remove some day.
1115 target=$target_alias
1117 # FIXME: To remove some day.
1118 if test "x$host_alias" != x; then
1119 if test "x$build_alias" = x; then
1120 cross_compiling=maybe
1121 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1122 If a cross compiler is detected then cross compile mode will be used." >&2
1123 elif test "x$build_alias" != "x$host_alias"; then
1129 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1131 test "$silent" = yes && exec 6>/dev/null
1134 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1135 ac_ls_di=`ls -di .` &&
1136 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1137 { echo "$as_me: error: Working directory cannot be determined" >&2
1138 { (exit 1); exit 1; }; }
1139 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1140 { echo "$as_me: error: pwd does not report name of working directory" >&2
1141 { (exit 1); exit 1; }; }
1144 # Find the source files, if location was not specified.
1145 if test -z "$srcdir"; then
1146 ac_srcdir_defaulted=yes
1147 # Try the directory containing this script, then the parent directory.
1148 ac_confdir=`$as_dirname -- "$0" ||
1149 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1150 X"$0" : 'X\(//\)[^/]' \| \
1151 X"$0" : 'X\(//\)$' \| \
1152 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1172 if test ! -r "$srcdir/$ac_unique_file"; then
1176 ac_srcdir_defaulted=no
1178 if test ! -r "$srcdir/$ac_unique_file"; then
1179 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1180 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1181 { (exit 1); exit 1; }; }
1183 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1185 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1186 { (exit 1); exit 1; }; }
1188 # When building in place, set srcdir=.
1189 if test "$ac_abs_confdir" = "$ac_pwd"; then
1192 # Remove unnecessary trailing slashes from srcdir.
1193 # Double slashes in file names in object file debugging info
1194 # mess up M-x gdb in Emacs.
1196 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1198 for ac_var in $ac_precious_vars; do
1199 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1200 eval ac_env_${ac_var}_value=\$${ac_var}
1201 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1202 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1206 # Report the --help message.
1208 if test "$ac_init_help" = "long"; then
1209 # Omit some internal or obsolete options to make the list less imposing.
1210 # This message is too long to be a string in the A/UX 3.1 sh.
1212 \`configure' configures PDCurses 3.4 to adapt to many kinds of systems.
1214 Usage: $0 [OPTION]... [VAR=VALUE]...
1216 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1217 VAR=VALUE. See below for descriptions of some of the useful variables.
1219 Defaults for the options are specified in brackets.
1222 -h, --help display this help and exit
1223 --help=short display options specific to this package
1224 --help=recursive display the short help of all the included packages
1225 -V, --version display version information and exit
1226 -q, --quiet, --silent do not print \`checking...' messages
1227 --cache-file=FILE cache test results in FILE [disabled]
1228 -C, --config-cache alias for \`--cache-file=config.cache'
1229 -n, --no-create do not create output files
1230 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1232 Installation directories:
1233 --prefix=PREFIX install architecture-independent files in PREFIX
1234 [$ac_default_prefix]
1235 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1238 By default, \`make install' will install all the files in
1239 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1240 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1241 for instance \`--prefix=\$HOME'.
1243 For better control, use the options below.
1245 Fine tuning of the installation directories:
1246 --bindir=DIR user executables [EPREFIX/bin]
1247 --sbindir=DIR system admin executables [EPREFIX/sbin]
1248 --libexecdir=DIR program executables [EPREFIX/libexec]
1249 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1250 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1251 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1252 --libdir=DIR object code libraries [EPREFIX/lib]
1253 --includedir=DIR C header files [PREFIX/include]
1254 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1255 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1256 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1257 --infodir=DIR info documentation [DATAROOTDIR/info]
1258 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1259 --mandir=DIR man documentation [DATAROOTDIR/man]
1260 --docdir=DIR documentation root [DATAROOTDIR/doc/PDCurses]
1261 --htmldir=DIR html documentation [DOCDIR]
1262 --dvidir=DIR dvi documentation [DOCDIR]
1263 --pdfdir=DIR pdf documentation [DOCDIR]
1264 --psdir=DIR ps documentation [DOCDIR]
1270 --x-includes=DIR X include files are in DIR
1271 --x-libraries=DIR X library files are in DIR
1274 --build=BUILD configure for building on BUILD [guessed]
1275 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1276 --target=TARGET configure for building compilers for TARGET [HOST]
1280 if test -n "$ac_init_help"; then
1281 case $ac_init_help in
1282 short | recursive ) echo "Configuration of PDCurses 3.4:";;
1287 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1288 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1289 --enable-debug turn on debugging
1290 --enable-widec include support for wide characters
1291 --enable-xim include support for XIM
1292 --enable-force-utf8 override locale settings; use UTF-8
1293 --enable-purify link with Purify (TM)
1296 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1297 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1298 --with-x use the X Window System
1299 --with-xaw3d link with Xaw3d
1300 --with-nextaw link with neXtaw
1302 Some influential environment variables:
1303 CC C compiler command
1304 CFLAGS C compiler flags
1305 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1306 nonstandard directory <lib dir>
1307 LIBS libraries to pass to the linker, e.g. -l<library>
1308 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1309 you have headers in a nonstandard directory <include dir>
1311 XMKMF Path to xmkmf, Makefile generator for X Window System
1313 Use these variables to override the choices made by `configure' or to help
1314 it to find libraries and programs with nonstandard names/locations.
1316 Report bugs to <wmcbrine@users.sf.net>.
1321 if test "$ac_init_help" = "recursive"; then
1322 # If there are subdirs, report their specific --help.
1323 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1324 test -d "$ac_dir" || continue
1328 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1330 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1331 # A ".." for each directory in $ac_dir_suffix.
1332 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1333 case $ac_top_builddir_sub in
1334 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1335 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1338 ac_abs_top_builddir=$ac_pwd
1339 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1340 # for backward compatibility:
1341 ac_top_builddir=$ac_top_build_prefix
1344 .) # We are building in place.
1346 ac_top_srcdir=$ac_top_builddir_sub
1347 ac_abs_top_srcdir=$ac_pwd ;;
1348 [\\/]* | ?:[\\/]* ) # Absolute name.
1349 ac_srcdir=$srcdir$ac_dir_suffix;
1350 ac_top_srcdir=$srcdir
1351 ac_abs_top_srcdir=$srcdir ;;
1353 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1354 ac_top_srcdir=$ac_top_build_prefix$srcdir
1355 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1357 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1359 cd "$ac_dir" || { ac_status=$?; continue; }
1360 # Check for guested configure.
1361 if test -f "$ac_srcdir/configure.gnu"; then
1363 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1364 elif test -f "$ac_srcdir/configure"; then
1366 $SHELL "$ac_srcdir/configure" --help=recursive
1368 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1370 cd "$ac_pwd" || { ac_status=$?; break; }
1374 test -n "$ac_init_help" && exit $ac_status
1375 if $ac_init_version; then
1377 PDCurses configure 3.4
1378 generated by GNU Autoconf 2.61
1380 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1381 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1382 This configure script is free software; the Free Software Foundation
1383 gives unlimited permission to copy, distribute and modify it.
1387 cat >config.log <<_ACEOF
1388 This file contains any messages produced by compilers while
1389 running configure, to aid debugging if configure makes a mistake.
1391 It was created by PDCurses $as_me 3.4, which was
1392 generated by GNU Autoconf 2.61. Invocation command line was
1404 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1405 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1406 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1407 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1408 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1410 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1411 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1413 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1414 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1415 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1416 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1417 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1418 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1419 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1427 test -z "$as_dir" && as_dir=.
1428 echo "PATH: $as_dir"
1444 # Keep a trace of the command line.
1445 # Strip out --no-create and --no-recursion so they do not pile up.
1446 # Strip out --silent because we don't want to record it for future runs.
1447 # Also quote any args containing shell meta-characters.
1448 # Make two passes to allow for proper duplicate-argument suppression.
1452 ac_must_keep_next=false
1458 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1459 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1460 | -silent | --silent | --silen | --sile | --sil)
1463 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1466 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1468 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1469 if test $ac_must_keep_next = true; then
1470 ac_must_keep_next=false # Got value, back to normal.
1473 *=* | --config-cache | -C | -disable-* | --disable-* \
1474 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1475 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1476 | -with-* | --with-* | -without-* | --without-* | --x)
1477 case "$ac_configure_args0 " in
1478 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1481 -* ) ac_must_keep_next=true ;;
1484 ac_configure_args="$ac_configure_args '$ac_arg'"
1489 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1490 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1492 # When interrupted or exit'd, cleanup temporary files, and complete
1493 # config.log. We remove comments because anyway the quotes in there
1494 # would cause problems or look ugly.
1495 # WARNING: Use '\'' to represent an apostrophe within the trap.
1496 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1497 trap 'exit_status=$?
1498 # Save into config.log some information that might help in debugging.
1503 ## ---------------- ##
1504 ## Cache variables. ##
1505 ## ---------------- ##
1508 # The following way of writing the cache mishandles newlines in values,
1510 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1511 eval ac_val=\$$ac_var
1515 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1516 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1519 _ | IFS | as_nl) ;; #(
1520 *) $as_unset $ac_var ;;
1525 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1526 *${as_nl}ac_space=\ *)
1528 "s/'\''/'\''\\\\'\'''\''/g;
1529 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1532 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1540 ## ----------------- ##
1541 ## Output variables. ##
1542 ## ----------------- ##
1545 for ac_var in $ac_subst_vars
1547 eval ac_val=\$$ac_var
1549 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1551 echo "$ac_var='\''$ac_val'\''"
1555 if test -n "$ac_subst_files"; then
1557 ## ------------------- ##
1558 ## File substitutions. ##
1559 ## ------------------- ##
1562 for ac_var in $ac_subst_files
1564 eval ac_val=\$$ac_var
1566 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1568 echo "$ac_var='\''$ac_val'\''"
1573 if test -s confdefs.h; then
1583 test "$ac_signal" != 0 &&
1584 echo "$as_me: caught signal $ac_signal"
1585 echo "$as_me: exit $exit_status"
1587 rm -f core *.core core.conftest.* &&
1588 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1591 for ac_signal in 1 2 13 15; do
1592 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1596 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1597 rm -f -r conftest* confdefs.h
1599 # Predefined preprocessor variables.
1601 cat >>confdefs.h <<_ACEOF
1602 #define PACKAGE_NAME "$PACKAGE_NAME"
1606 cat >>confdefs.h <<_ACEOF
1607 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1611 cat >>confdefs.h <<_ACEOF
1612 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1616 cat >>confdefs.h <<_ACEOF
1617 #define PACKAGE_STRING "$PACKAGE_STRING"
1621 cat >>confdefs.h <<_ACEOF
1622 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1626 # Let the site file select an alternate cache file if it wants to.
1627 # Prefer explicitly selected file to automatically selected ones.
1628 if test -n "$CONFIG_SITE"; then
1629 set x "$CONFIG_SITE"
1630 elif test "x$prefix" != xNONE; then
1631 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1633 set x "$ac_default_prefix/share/config.site" \
1634 "$ac_default_prefix/etc/config.site"
1639 if test -r "$ac_site_file"; then
1640 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1641 echo "$as_me: loading site script $ac_site_file" >&6;}
1642 sed 's/^/| /' "$ac_site_file" >&5
1647 if test -r "$cache_file"; then
1648 # Some versions of bash will fail to source /dev/null (special
1649 # files actually), so we avoid doing that.
1650 if test -f "$cache_file"; then
1651 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1652 echo "$as_me: loading cache $cache_file" >&6;}
1654 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1655 *) . "./$cache_file";;
1659 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1660 echo "$as_me: creating cache $cache_file" >&6;}
1664 # Check that the precious variables saved in the cache have kept the same
1666 ac_cache_corrupted=false
1667 for ac_var in $ac_precious_vars; do
1668 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1669 eval ac_new_set=\$ac_env_${ac_var}_set
1670 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1671 eval ac_new_val=\$ac_env_${ac_var}_value
1672 case $ac_old_set,$ac_new_set in
1674 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1675 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1676 ac_cache_corrupted=: ;;
1678 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1679 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1680 ac_cache_corrupted=: ;;
1683 if test "x$ac_old_val" != "x$ac_new_val"; then
1684 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1685 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1686 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1687 echo "$as_me: former value: $ac_old_val" >&2;}
1688 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1689 echo "$as_me: current value: $ac_new_val" >&2;}
1690 ac_cache_corrupted=:
1693 # Pass precious variables to config.status.
1694 if test "$ac_new_set" = set; then
1696 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1697 *) ac_arg=$ac_var=$ac_new_val ;;
1699 case " $ac_configure_args " in
1700 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1701 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1705 if $ac_cache_corrupted; then
1706 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1707 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1708 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1709 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1710 { (exit 1); exit 1; }; }
1738 ac_cpp='$CPP $CPPFLAGS'
1739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1749 ac_cpp='$CPP $CPPFLAGS'
1750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1753 if test -n "$ac_tool_prefix"; then
1754 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1755 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1758 if test "${ac_cv_prog_CC+set}" = set; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1761 if test -n "$CC"; then
1762 ac_cv_prog_CC="$CC" # Let the user override the test.
1764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1768 test -z "$as_dir" && as_dir=.
1769 for ac_exec_ext in '' $ac_executable_extensions; do
1770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1771 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782 if test -n "$CC"; then
1783 { echo "$as_me:$LINENO: result: $CC" >&5
1784 echo "${ECHO_T}$CC" >&6; }
1786 { echo "$as_me:$LINENO: result: no" >&5
1787 echo "${ECHO_T}no" >&6; }
1792 if test -z "$ac_cv_prog_CC"; then
1794 # Extract the first word of "gcc", so it can be a program name with args.
1795 set dummy gcc; ac_word=$2
1796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1798 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 if test -n "$ac_ct_CC"; then
1802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1808 test -z "$as_dir" && as_dir=.
1809 for ac_exec_ext in '' $ac_executable_extensions; do
1810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1811 ac_cv_prog_ac_ct_CC="gcc"
1812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1822 if test -n "$ac_ct_CC"; then
1823 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1824 echo "${ECHO_T}$ac_ct_CC" >&6; }
1826 { echo "$as_me:$LINENO: result: no" >&5
1827 echo "${ECHO_T}no" >&6; }
1830 if test "x$ac_ct_CC" = x; then
1833 case $cross_compiling:$ac_tool_warned in
1835 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1836 whose name does not start with the host triplet. If you think this
1837 configuration is useful to you, please write to autoconf@gnu.org." >&5
1838 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1839 whose name does not start with the host triplet. If you think this
1840 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1841 ac_tool_warned=yes ;;
1849 if test -z "$CC"; then
1850 if test -n "$ac_tool_prefix"; then
1851 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1852 set dummy ${ac_tool_prefix}cc; ac_word=$2
1853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1855 if test "${ac_cv_prog_CC+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 if test -n "$CC"; then
1859 ac_cv_prog_CC="$CC" # Let the user override the test.
1861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865 test -z "$as_dir" && as_dir=.
1866 for ac_exec_ext in '' $ac_executable_extensions; do
1867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1868 ac_cv_prog_CC="${ac_tool_prefix}cc"
1869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 if test -n "$CC"; then
1880 { echo "$as_me:$LINENO: result: $CC" >&5
1881 echo "${ECHO_T}$CC" >&6; }
1883 { echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6; }
1890 if test -z "$CC"; then
1891 # Extract the first word of "cc", so it can be a program name with args.
1892 set dummy cc; ac_word=$2
1893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1895 if test "${ac_cv_prog_CC+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 if test -n "$CC"; then
1899 ac_cv_prog_CC="$CC" # Let the user override the test.
1902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 test -z "$as_dir" && as_dir=.
1907 for ac_exec_ext in '' $ac_executable_extensions; do
1908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1909 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1910 ac_prog_rejected=yes
1914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 if test $ac_prog_rejected = yes; then
1922 # We found a bogon in the path, so make sure we never use it.
1923 set dummy $ac_cv_prog_CC
1925 if test $# != 0; then
1926 # We chose a different compiler from the bogus one.
1927 # However, it has the same basename, so the bogon will be chosen
1928 # first if we set CC to just the basename; use the full file name.
1930 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1936 if test -n "$CC"; then
1937 { echo "$as_me:$LINENO: result: $CC" >&5
1938 echo "${ECHO_T}$CC" >&6; }
1940 { echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6; }
1946 if test -z "$CC"; then
1947 if test -n "$ac_tool_prefix"; then
1948 for ac_prog in cl.exe
1950 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1951 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1954 if test "${ac_cv_prog_CC+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 if test -n "$CC"; then
1958 ac_cv_prog_CC="$CC" # Let the user override the test.
1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 test -z "$as_dir" && as_dir=.
1965 for ac_exec_ext in '' $ac_executable_extensions; do
1966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1967 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978 if test -n "$CC"; then
1979 { echo "$as_me:$LINENO: result: $CC" >&5
1980 echo "${ECHO_T}$CC" >&6; }
1982 { echo "$as_me:$LINENO: result: no" >&5
1983 echo "${ECHO_T}no" >&6; }
1987 test -n "$CC" && break
1990 if test -z "$CC"; then
1992 for ac_prog in cl.exe
1994 # Extract the first word of "$ac_prog", so it can be a program name with args.
1995 set dummy $ac_prog; ac_word=$2
1996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1998 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 if test -n "$ac_ct_CC"; then
2002 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2011 ac_cv_prog_ac_ct_CC="$ac_prog"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2022 if test -n "$ac_ct_CC"; then
2023 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2024 echo "${ECHO_T}$ac_ct_CC" >&6; }
2026 { echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6; }
2031 test -n "$ac_ct_CC" && break
2034 if test "x$ac_ct_CC" = x; then
2037 case $cross_compiling:$ac_tool_warned in
2039 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2040 whose name does not start with the host triplet. If you think this
2041 configuration is useful to you, please write to autoconf@gnu.org." >&5
2042 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2043 whose name does not start with the host triplet. If you think this
2044 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2045 ac_tool_warned=yes ;;
2054 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2055 See \`config.log' for more details." >&5
2056 echo "$as_me: error: no acceptable C compiler found in \$PATH
2057 See \`config.log' for more details." >&2;}
2058 { (exit 1); exit 1; }; }
2060 # Provide some information about the compiler.
2061 echo "$as_me:$LINENO: checking for C compiler version" >&5
2062 ac_compiler=`set X $ac_compile; echo $2`
2063 { (ac_try="$ac_compiler --version >&5"
2065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2066 *) ac_try_echo=$ac_try;;
2068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2069 (eval "$ac_compiler --version >&5") 2>&5
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }
2073 { (ac_try="$ac_compiler -v >&5"
2075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076 *) ac_try_echo=$ac_try;;
2078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2079 (eval "$ac_compiler -v >&5") 2>&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }
2083 { (ac_try="$ac_compiler -V >&5"
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2089 (eval "$ac_compiler -V >&5") 2>&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }
2094 cat >conftest.$ac_ext <<_ACEOF
2097 cat confdefs.h >>conftest.$ac_ext
2098 cat >>conftest.$ac_ext <<_ACEOF
2099 /* end confdefs.h. */
2109 ac_clean_files_save=$ac_clean_files
2110 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2111 # Try to create an executable without -o first, disregard a.out.
2112 # It will help us diagnose broken compilers, and finding out an intuition
2114 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2115 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2116 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2118 # List of possible output files, starting from the most likely.
2119 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2120 # only as a last resort. b.out is created by i960 compilers.
2121 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2123 # The IRIX 6 linker writes into existing files which may not be
2124 # executable, retaining their permissions. Remove them first so a
2125 # subsequent execution test works.
2127 for ac_file in $ac_files
2130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2131 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2136 if { (ac_try="$ac_link_default"
2138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2139 *) ac_try_echo=$ac_try;;
2141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2142 (eval "$ac_link_default") 2>&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }; then
2146 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2147 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2148 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2149 # so that the user can short-circuit this test for compilers unknown to
2151 for ac_file in $ac_files ''
2153 test -f "$ac_file" || continue
2155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2158 # We found the default executable, but exeext='' is most
2162 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2164 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2166 # We set ac_cv_exeext here because the later test for it is not
2167 # safe: cross compilers may not add the suffix if given an `-o'
2168 # argument, so we may need to know it at that point already.
2169 # Even if this section looks crufty: it has the advantage of
2176 test "$ac_cv_exeext" = no && ac_cv_exeext=
2182 { echo "$as_me:$LINENO: result: $ac_file" >&5
2183 echo "${ECHO_T}$ac_file" >&6; }
2184 if test -z "$ac_file"; then
2185 echo "$as_me: failed program was:" >&5
2186 sed 's/^/| /' conftest.$ac_ext >&5
2188 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2189 See \`config.log' for more details." >&5
2190 echo "$as_me: error: C compiler cannot create executables
2191 See \`config.log' for more details." >&2;}
2192 { (exit 77); exit 77; }; }
2195 ac_exeext=$ac_cv_exeext
2197 # Check that the compiler produces executables we can run. If not, either
2198 # the compiler is broken, or we cross compile.
2199 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2200 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2201 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2202 # If not cross compiling, check that we can run a simple program.
2203 if test "$cross_compiling" != yes; then
2204 if { ac_try='./$ac_file'
2205 { (case "(($ac_try" in
2206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2207 *) ac_try_echo=$ac_try;;
2209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2210 (eval "$ac_try") 2>&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; }; then
2216 if test "$cross_compiling" = maybe; then
2219 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2220 If you meant to cross compile, use \`--host'.
2221 See \`config.log' for more details." >&5
2222 echo "$as_me: error: cannot run C compiled programs.
2223 If you meant to cross compile, use \`--host'.
2224 See \`config.log' for more details." >&2;}
2225 { (exit 1); exit 1; }; }
2229 { echo "$as_me:$LINENO: result: yes" >&5
2230 echo "${ECHO_T}yes" >&6; }
2232 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2233 ac_clean_files=$ac_clean_files_save
2234 # Check that the compiler produces executables we can run. If not, either
2235 # the compiler is broken, or we cross compile.
2236 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2237 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2238 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2239 echo "${ECHO_T}$cross_compiling" >&6; }
2241 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2242 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2243 if { (ac_try="$ac_link"
2245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2246 *) ac_try_echo=$ac_try;;
2248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2249 (eval "$ac_link") 2>&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; then
2253 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2254 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2255 # work properly (i.e., refer to `conftest.exe'), while it won't with
2257 for ac_file in conftest.exe conftest conftest.*; do
2258 test -f "$ac_file" || continue
2260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2261 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2267 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2268 See \`config.log' for more details." >&5
2269 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2270 See \`config.log' for more details." >&2;}
2271 { (exit 1); exit 1; }; }
2274 rm -f conftest$ac_cv_exeext
2275 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2276 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2278 rm -f conftest.$ac_ext
2279 EXEEXT=$ac_cv_exeext
2281 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2282 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2283 if test "${ac_cv_objext+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 cat >conftest.$ac_ext <<_ACEOF
2289 cat confdefs.h >>conftest.$ac_ext
2290 cat >>conftest.$ac_ext <<_ACEOF
2291 /* end confdefs.h. */
2301 rm -f conftest.o conftest.obj
2302 if { (ac_try="$ac_compile"
2304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2305 *) ac_try_echo=$ac_try;;
2307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2308 (eval "$ac_compile") 2>&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; then
2312 for ac_file in conftest.o conftest.obj conftest.*; do
2313 test -f "$ac_file" || continue;
2315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2316 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2321 echo "$as_me: failed program was:" >&5
2322 sed 's/^/| /' conftest.$ac_ext >&5
2324 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2325 See \`config.log' for more details." >&5
2326 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2327 See \`config.log' for more details." >&2;}
2328 { (exit 1); exit 1; }; }
2331 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2333 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2334 echo "${ECHO_T}$ac_cv_objext" >&6; }
2335 OBJEXT=$ac_cv_objext
2337 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2338 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2339 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 cat >conftest.$ac_ext <<_ACEOF
2345 cat confdefs.h >>conftest.$ac_ext
2346 cat >>conftest.$ac_ext <<_ACEOF
2347 /* end confdefs.h. */
2360 rm -f conftest.$ac_objext
2361 if { (ac_try="$ac_compile"
2363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2364 *) ac_try_echo=$ac_try;;
2366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2367 (eval "$ac_compile") 2>conftest.er1
2369 grep -v '^ *+' conftest.er1 >conftest.err
2371 cat conftest.err >&5
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); } && {
2374 test -z "$ac_c_werror_flag" ||
2375 test ! -s conftest.err
2376 } && test -s conftest.$ac_objext; then
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2386 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2389 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2390 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2391 GCC=`test $ac_compiler_gnu = yes && echo yes`
2392 ac_test_CFLAGS=${CFLAGS+set}
2393 ac_save_CFLAGS=$CFLAGS
2394 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2395 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2396 if test "${ac_cv_prog_cc_g+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 ac_save_c_werror_flag=$ac_c_werror_flag
2400 ac_c_werror_flag=yes
2403 cat >conftest.$ac_ext <<_ACEOF
2406 cat confdefs.h >>conftest.$ac_ext
2407 cat >>conftest.$ac_ext <<_ACEOF
2408 /* end confdefs.h. */
2418 rm -f conftest.$ac_objext
2419 if { (ac_try="$ac_compile"
2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422 *) ac_try_echo=$ac_try;;
2424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425 (eval "$ac_compile") 2>conftest.er1
2427 grep -v '^ *+' conftest.er1 >conftest.err
2429 cat conftest.err >&5
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); } && {
2432 test -z "$ac_c_werror_flag" ||
2433 test ! -s conftest.err
2434 } && test -s conftest.$ac_objext; then
2437 echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2441 cat >conftest.$ac_ext <<_ACEOF
2444 cat confdefs.h >>conftest.$ac_ext
2445 cat >>conftest.$ac_ext <<_ACEOF
2446 /* end confdefs.h. */
2456 rm -f conftest.$ac_objext
2457 if { (ac_try="$ac_compile"
2459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460 *) ac_try_echo=$ac_try;;
2462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2463 (eval "$ac_compile") 2>conftest.er1
2465 grep -v '^ *+' conftest.er1 >conftest.err
2467 cat conftest.err >&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); } && {
2470 test -z "$ac_c_werror_flag" ||
2471 test ! -s conftest.err
2472 } && test -s conftest.$ac_objext; then
2475 echo "$as_me: failed program was:" >&5
2476 sed 's/^/| /' conftest.$ac_ext >&5
2478 ac_c_werror_flag=$ac_save_c_werror_flag
2480 cat >conftest.$ac_ext <<_ACEOF
2483 cat confdefs.h >>conftest.$ac_ext
2484 cat >>conftest.$ac_ext <<_ACEOF
2485 /* end confdefs.h. */
2495 rm -f conftest.$ac_objext
2496 if { (ac_try="$ac_compile"
2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499 *) ac_try_echo=$ac_try;;
2501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2502 (eval "$ac_compile") 2>conftest.er1
2504 grep -v '^ *+' conftest.er1 >conftest.err
2506 cat conftest.err >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } && {
2509 test -z "$ac_c_werror_flag" ||
2510 test ! -s conftest.err
2511 } && test -s conftest.$ac_objext; then
2514 echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2527 ac_c_werror_flag=$ac_save_c_werror_flag
2529 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2530 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2531 if test "$ac_test_CFLAGS" = set; then
2532 CFLAGS=$ac_save_CFLAGS
2533 elif test $ac_cv_prog_cc_g = yes; then
2534 if test "$GCC" = yes; then
2540 if test "$GCC" = yes; then
2546 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2547 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2548 if test "${ac_cv_prog_cc_c89+set}" = set; then
2549 echo $ECHO_N "(cached) $ECHO_C" >&6
2551 ac_cv_prog_cc_c89=no
2553 cat >conftest.$ac_ext <<_ACEOF
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h. */
2561 #include <sys/types.h>
2562 #include <sys/stat.h>
2563 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2564 struct buf { int x; };
2565 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2566 static char *e (p, i)
2572 static char *f (char * (*g) (char **, int), char **p, ...)
2577 s = g (p, va_arg (v,int));
2582 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2583 function prototypes and stuff, but not '\xHH' hex character constants.
2584 These don't provoke an error unfortunately, instead are silently treated
2585 as 'x'. The following induces an error, until -std is added to get
2586 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2587 array size at least. It's necessary to write '\x00'==0 to get something
2588 that's true only with -std. */
2589 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2591 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2592 inside strings and character constants. */
2594 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2596 int test (int i, double x);
2597 struct s1 {int (*f) (int a);};
2598 struct s2 {int (*f) (double a);};
2599 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2605 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2610 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2611 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2613 CC="$ac_save_CC $ac_arg"
2614 rm -f conftest.$ac_objext
2615 if { (ac_try="$ac_compile"
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_compile") 2>conftest.er1
2623 grep -v '^ *+' conftest.er1 >conftest.err
2625 cat conftest.err >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } && {
2628 test -z "$ac_c_werror_flag" ||
2629 test ! -s conftest.err
2630 } && test -s conftest.$ac_objext; then
2631 ac_cv_prog_cc_c89=$ac_arg
2633 echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2639 rm -f core conftest.err conftest.$ac_objext
2640 test "x$ac_cv_prog_cc_c89" != "xno" && break
2642 rm -f conftest.$ac_ext
2647 case "x$ac_cv_prog_cc_c89" in
2649 { echo "$as_me:$LINENO: result: none needed" >&5
2650 echo "${ECHO_T}none needed" >&6; } ;;
2652 { echo "$as_me:$LINENO: result: unsupported" >&5
2653 echo "${ECHO_T}unsupported" >&6; } ;;
2655 CC="$CC $ac_cv_prog_cc_c89"
2656 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2657 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2662 ac_cpp='$CPP $CPPFLAGS'
2663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2668 ac_config_headers="$ac_config_headers config.h"
2671 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2672 if test -f "$ac_dir/install-sh"; then
2674 ac_install_sh="$ac_aux_dir/install-sh -c"
2676 elif test -f "$ac_dir/install.sh"; then
2678 ac_install_sh="$ac_aux_dir/install.sh -c"
2680 elif test -f "$ac_dir/shtool"; then
2682 ac_install_sh="$ac_aux_dir/shtool install -c"
2686 if test -z "$ac_aux_dir"; then
2687 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2688 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2689 { (exit 1); exit 1; }; }
2692 # These three variables are undocumented and unsupported,
2693 # and are intended to be withdrawn in a future Autoconf release.
2694 # They can cause serious problems if a builder's source tree is in a directory
2695 # whose full name contains unusual characters.
2696 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2697 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2698 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2701 # Make sure we can run config.sub.
2702 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2703 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2704 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2705 { (exit 1); exit 1; }; }
2707 { echo "$as_me:$LINENO: checking build system type" >&5
2708 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2709 if test "${ac_cv_build+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2712 ac_build_alias=$build_alias
2713 test "x$ac_build_alias" = x &&
2714 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2715 test "x$ac_build_alias" = x &&
2716 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2717 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2718 { (exit 1); exit 1; }; }
2719 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2720 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2721 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2722 { (exit 1); exit 1; }; }
2725 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2726 echo "${ECHO_T}$ac_cv_build" >&6; }
2727 case $ac_cv_build in
2729 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2730 echo "$as_me: error: invalid value of canonical build" >&2;}
2731 { (exit 1); exit 1; }; };;
2734 ac_save_IFS=$IFS; IFS='-'
2740 # Remember, the first character of IFS is used to create $*,
2741 # except with old shells:
2744 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2747 { echo "$as_me:$LINENO: checking host system type" >&5
2748 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2749 if test "${ac_cv_host+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 if test "x$host_alias" = x; then
2753 ac_cv_host=$ac_cv_build
2755 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2756 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2757 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2758 { (exit 1); exit 1; }; }
2762 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2763 echo "${ECHO_T}$ac_cv_host" >&6; }
2766 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2767 echo "$as_me: error: invalid value of canonical host" >&2;}
2768 { (exit 1); exit 1; }; };;
2771 ac_save_IFS=$IFS; IFS='-'
2777 # Remember, the first character of IFS is used to create $*,
2778 # except with old shells:
2781 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2784 { echo "$as_me:$LINENO: checking target system type" >&5
2785 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2786 if test "${ac_cv_target+set}" = set; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2789 if test "x$target_alias" = x; then
2790 ac_cv_target=$ac_cv_host
2792 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2793 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2794 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2795 { (exit 1); exit 1; }; }
2799 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2800 echo "${ECHO_T}$ac_cv_target" >&6; }
2801 case $ac_cv_target in
2803 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2804 echo "$as_me: error: invalid value of canonical target" >&2;}
2805 { (exit 1); exit 1; }; };;
2807 target=$ac_cv_target
2808 ac_save_IFS=$IFS; IFS='-'
2814 # Remember, the first character of IFS is used to create $*,
2815 # except with old shells:
2818 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2821 # The aliases save the names the user supplied, while $host etc.
2822 # will get canonicalized.
2823 test -n "$target_alias" &&
2824 test "$program_prefix$program_suffix$program_transform_name" = \
2826 program_prefix=${target_alias}-
2828 mymakefile="Makefile"
2832 SYS_DEFS="-D_HPUX_SOURCE"
2835 SYS_DEFS="-D_ALL_SOURCE"
2836 mymakefile="Makefile.aix"
2839 SYS_DEFS="-D_XOPEN_SOURCE_EXTENDED"
2842 SYS_DEFS="-UM_XENIX -b elf"
2854 save_CPPFLAGS="$CPPFLAGS"
2855 CPPFLAGS="$CPPFLAGS $SYS_DEFS"
2856 { echo "$as_me:$LINENO: checking for maximum signal specifier:" >&5
2857 echo $ECHO_N "checking for maximum signal specifier:... $ECHO_C" >&6; }
2858 if test "${mh_cv_max_signals+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 for mh_sigs in NSIG __sys_nsig; do
2864 cat >conftest.$ac_ext <<_ACEOF
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h. */
2879 rm -f conftest.$ac_objext
2880 if { (ac_try="$ac_compile"
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886 (eval "$ac_compile") 2>conftest.er1
2888 grep -v '^ *+' conftest.er1 >conftest.err
2890 cat conftest.err >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } && {
2893 test -z "$ac_c_werror_flag" ||
2894 test ! -s conftest.err
2895 } && test -s conftest.$ac_objext; then
2896 mh_found="yes"; mh_cv_max_signals="$mh_sigs"
2898 echo "$as_me: failed program was:" >&5
2899 sed 's/^/| /' conftest.$ac_ext >&5
2904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2905 if test "$mh_found" = "yes"; then
2911 CPPFLAGS="$save_CPPFLAGS"
2912 if test "$mh_found" = "no"; then
2913 { { echo "$as_me:$LINENO: error: Cannot find a system limit for number of signals. PDCurses cannot be configured on this machine." >&5
2914 echo "$as_me: error: Cannot find a system limit for number of signals. PDCurses cannot be configured on this machine." >&2;}
2915 { (exit 1); exit 1; }; }
2917 cat >>confdefs.h <<_ACEOF
2918 #define PDC_MAX_SIGNALS $mh_cv_max_signals
2921 { echo "$as_me:$LINENO: result: $mh_cv_max_signals" >&5
2922 echo "${ECHO_T}$mh_cv_max_signals" >&6; }
2926 if test -n "$ac_tool_prefix"; then
2927 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2928 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2931 if test "${ac_cv_prog_RANLIB+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2934 if test -n "$RANLIB"; then
2935 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2944 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 RANLIB=$ac_cv_prog_RANLIB
2955 if test -n "$RANLIB"; then
2956 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2957 echo "${ECHO_T}$RANLIB" >&6; }
2959 { echo "$as_me:$LINENO: result: no" >&5
2960 echo "${ECHO_T}no" >&6; }
2965 if test -z "$ac_cv_prog_RANLIB"; then
2966 ac_ct_RANLIB=$RANLIB
2967 # Extract the first word of "ranlib", so it can be a program name with args.
2968 set dummy ranlib; ac_word=$2
2969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2971 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2974 if test -n "$ac_ct_RANLIB"; then
2975 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984 ac_cv_prog_ac_ct_RANLIB="ranlib"
2985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2995 if test -n "$ac_ct_RANLIB"; then
2996 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2997 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2999 { echo "$as_me:$LINENO: result: no" >&5
3000 echo "${ECHO_T}no" >&6; }
3003 if test "x$ac_ct_RANLIB" = x; then
3006 case $cross_compiling:$ac_tool_warned in
3008 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3009 whose name does not start with the host triplet. If you think this
3010 configuration is useful to you, please write to autoconf@gnu.org." >&5
3011 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3012 whose name does not start with the host triplet. If you think this
3013 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3014 ac_tool_warned=yes ;;
3016 RANLIB=$ac_ct_RANLIB
3019 RANLIB="$ac_cv_prog_RANLIB"
3022 # Find a good install program. We prefer a C program (faster),
3023 # so one script is as good as another. But avoid the broken or
3024 # incompatible versions:
3025 # SysV /etc/install, /usr/sbin/install
3026 # SunOS /usr/etc/install
3027 # IRIX /sbin/install
3029 # AmigaOS /C/install, which installs bootblocks on floppy discs
3030 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3031 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3032 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3033 # OS/2's system install, which has a completely different semantic
3034 # ./install, which can be erroneously created by make from ./install.sh.
3035 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3036 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3037 if test -z "$INSTALL"; then
3038 if test "${ac_cv_path_install+set}" = set; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 test -z "$as_dir" && as_dir=.
3046 # Account for people who put trailing slashes in PATH elements.
3048 ./ | .// | /cC/* | \
3049 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3050 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3053 # OSF1 and SCO ODT 3.0 have their own names for install.
3054 # Don't use installbsd from OSF since it installs stuff as root
3056 for ac_prog in ginstall scoinst install; do
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3059 if test $ac_prog = install &&
3060 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3061 # AIX install. It has an incompatible calling convention.
3063 elif test $ac_prog = install &&
3064 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3065 # program-specific install script used by HP pwplus--don't use.
3068 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3081 if test "${ac_cv_path_install+set}" = set; then
3082 INSTALL=$ac_cv_path_install
3084 # As a last resort, use the slow shell script. Don't cache a
3085 # value for INSTALL within a source directory, because that will
3086 # break other packages using the cache if that directory is
3087 # removed, or if the value is a relative name.
3088 INSTALL=$ac_install_sh
3091 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3092 echo "${ECHO_T}$INSTALL" >&6; }
3094 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3095 # It thinks the first close brace ends the variable substitution.
3096 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3098 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3100 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3102 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3103 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3104 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3105 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 cat >conftest.make <<\_ACEOF
3111 @echo '@@@%%%=$(MAKE)=@@@%%%'
3113 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3114 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3116 eval ac_cv_prog_make_${ac_make}_set=yes;;
3118 eval ac_cv_prog_make_${ac_make}_set=no;;
3122 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3123 { echo "$as_me:$LINENO: result: yes" >&5
3124 echo "${ECHO_T}yes" >&6; }
3127 { echo "$as_me:$LINENO: result: no" >&5
3128 echo "${ECHO_T}no" >&6; }
3129 SET_MAKE="MAKE=${MAKE-make}"
3134 ac_cpp='$CPP $CPPFLAGS'
3135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3138 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3139 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3140 # On Suns, sometimes $CPP names a directory.
3141 if test -n "$CPP" && test -d "$CPP"; then
3144 if test -z "$CPP"; then
3145 if test "${ac_cv_prog_CPP+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3148 # Double quotes because CPP needs to be expanded
3149 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3152 for ac_c_preproc_warn_flag in '' yes
3154 # Use a header file that comes with gcc, so configuring glibc
3155 # with a fresh cross-compiler works.
3156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3157 # <limits.h> exists even on freestanding compilers.
3158 # On the NeXT, cc -E runs the code through the compiler's parser,
3159 # not just through cpp. "Syntax error" is here to catch this case.
3160 cat >conftest.$ac_ext <<_ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h. */
3167 # include <limits.h>
3169 # include <assert.h>
3173 if { (ac_try="$ac_cpp conftest.$ac_ext"
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3181 grep -v '^ *+' conftest.er1 >conftest.err
3183 cat conftest.err >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } >/dev/null && {
3186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3187 test ! -s conftest.err
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3194 # Broken: fails on valid input.
3198 rm -f conftest.err conftest.$ac_ext
3200 # OK, works on sane cases. Now check whether nonexistent headers
3201 # can be detected and how.
3202 cat >conftest.$ac_ext <<_ACEOF
3205 cat confdefs.h >>conftest.$ac_ext
3206 cat >>conftest.$ac_ext <<_ACEOF
3207 /* end confdefs.h. */
3208 #include <ac_nonexistent.h>
3210 if { (ac_try="$ac_cpp conftest.$ac_ext"
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3218 grep -v '^ *+' conftest.er1 >conftest.err
3220 cat conftest.err >&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); } >/dev/null && {
3223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3224 test ! -s conftest.err
3226 # Broken: success on invalid input.
3229 echo "$as_me: failed program was:" >&5
3230 sed 's/^/| /' conftest.$ac_ext >&5
3232 # Passes both tests.
3237 rm -f conftest.err conftest.$ac_ext
3240 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3241 rm -f conftest.err conftest.$ac_ext
3242 if $ac_preproc_ok; then
3254 { echo "$as_me:$LINENO: result: $CPP" >&5
3255 echo "${ECHO_T}$CPP" >&6; }
3257 for ac_c_preproc_warn_flag in '' yes
3259 # Use a header file that comes with gcc, so configuring glibc
3260 # with a fresh cross-compiler works.
3261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3262 # <limits.h> exists even on freestanding compilers.
3263 # On the NeXT, cc -E runs the code through the compiler's parser,
3264 # not just through cpp. "Syntax error" is here to catch this case.
3265 cat >conftest.$ac_ext <<_ACEOF
3268 cat confdefs.h >>conftest.$ac_ext
3269 cat >>conftest.$ac_ext <<_ACEOF
3270 /* end confdefs.h. */
3272 # include <limits.h>
3274 # include <assert.h>
3278 if { (ac_try="$ac_cpp conftest.$ac_ext"
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3286 grep -v '^ *+' conftest.er1 >conftest.err
3288 cat conftest.err >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); } >/dev/null && {
3291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3292 test ! -s conftest.err
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3299 # Broken: fails on valid input.
3303 rm -f conftest.err conftest.$ac_ext
3305 # OK, works on sane cases. Now check whether nonexistent headers
3306 # can be detected and how.
3307 cat >conftest.$ac_ext <<_ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3313 #include <ac_nonexistent.h>
3315 if { (ac_try="$ac_cpp conftest.$ac_ext"
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3323 grep -v '^ *+' conftest.er1 >conftest.err
3325 cat conftest.err >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } >/dev/null && {
3328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3329 test ! -s conftest.err
3331 # Broken: success on invalid input.
3334 echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3337 # Passes both tests.
3342 rm -f conftest.err conftest.$ac_ext
3345 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3346 rm -f conftest.err conftest.$ac_ext
3347 if $ac_preproc_ok; then
3350 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3351 See \`config.log' for more details." >&5
3352 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3353 See \`config.log' for more details." >&2;}
3354 { (exit 1); exit 1; }; }
3358 ac_cpp='$CPP $CPPFLAGS'
3359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3364 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3365 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3366 if test "${ac_cv_path_GREP+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 # Extract the first word of "grep ggrep" to use in msg output
3370 if test -z "$GREP"; then
3371 set dummy grep ggrep; ac_prog_name=$2
3372 if test "${ac_cv_path_GREP+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 ac_path_GREP_found=false
3376 # Loop through the user's path and test for each of PROGNAME-LIST
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3381 test -z "$as_dir" && as_dir=.
3382 for ac_prog in grep ggrep; do
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3385 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3386 # Check for GNU ac_path_GREP and select it if it is found.
3387 # Check for GNU $ac_path_GREP
3388 case `"$ac_path_GREP" --version 2>&1` in
3390 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3393 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3396 cat "conftest.in" "conftest.in" >"conftest.tmp"
3397 mv "conftest.tmp" "conftest.in"
3398 cp "conftest.in" "conftest.nl"
3399 echo 'GREP' >> "conftest.nl"
3400 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3401 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3402 ac_count=`expr $ac_count + 1`
3403 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3404 # Best one so far, save it but keep looking for a better one
3405 ac_cv_path_GREP="$ac_path_GREP"
3406 ac_path_GREP_max=$ac_count
3408 # 10*(2^10) chars as input seems more than enough
3409 test $ac_count -gt 10 && break
3411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3415 $ac_path_GREP_found && break 3
3425 GREP="$ac_cv_path_GREP"
3426 if test -z "$GREP"; then
3427 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3428 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3429 { (exit 1); exit 1; }; }
3433 ac_cv_path_GREP=$GREP
3438 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3439 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3440 GREP="$ac_cv_path_GREP"
3443 { echo "$as_me:$LINENO: checking for egrep" >&5
3444 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3445 if test "${ac_cv_path_EGREP+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3449 then ac_cv_path_EGREP="$GREP -E"
3451 # Extract the first word of "egrep" to use in msg output
3452 if test -z "$EGREP"; then
3453 set dummy egrep; ac_prog_name=$2
3454 if test "${ac_cv_path_EGREP+set}" = set; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 ac_path_EGREP_found=false
3458 # Loop through the user's path and test for each of PROGNAME-LIST
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3463 test -z "$as_dir" && as_dir=.
3464 for ac_prog in egrep; do
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3467 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3468 # Check for GNU ac_path_EGREP and select it if it is found.
3469 # Check for GNU $ac_path_EGREP
3470 case `"$ac_path_EGREP" --version 2>&1` in
3472 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3475 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3478 cat "conftest.in" "conftest.in" >"conftest.tmp"
3479 mv "conftest.tmp" "conftest.in"
3480 cp "conftest.in" "conftest.nl"
3481 echo 'EGREP' >> "conftest.nl"
3482 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3483 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3484 ac_count=`expr $ac_count + 1`
3485 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3486 # Best one so far, save it but keep looking for a better one
3487 ac_cv_path_EGREP="$ac_path_EGREP"
3488 ac_path_EGREP_max=$ac_count
3490 # 10*(2^10) chars as input seems more than enough
3491 test $ac_count -gt 10 && break
3493 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3497 $ac_path_EGREP_found && break 3
3507 EGREP="$ac_cv_path_EGREP"
3508 if test -z "$EGREP"; then
3509 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3510 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3511 { (exit 1); exit 1; }; }
3515 ac_cv_path_EGREP=$EGREP
3521 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3522 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3523 EGREP="$ac_cv_path_EGREP"
3526 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3527 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3528 if test "${ac_cv_header_stdc+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 cat >conftest.$ac_ext <<_ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h. */
3550 rm -f conftest.$ac_objext
3551 if { (ac_try="$ac_compile"
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_compile") 2>conftest.er1
3559 grep -v '^ *+' conftest.er1 >conftest.err
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } && {
3564 test -z "$ac_c_werror_flag" ||
3565 test ! -s conftest.err
3566 } && test -s conftest.$ac_objext; then
3567 ac_cv_header_stdc=yes
3569 echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3572 ac_cv_header_stdc=no
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 if test $ac_cv_header_stdc = yes; then
3578 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3579 cat >conftest.$ac_ext <<_ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3589 $EGREP "memchr" >/dev/null 2>&1; then
3592 ac_cv_header_stdc=no
3598 if test $ac_cv_header_stdc = yes; then
3599 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3600 cat >conftest.$ac_ext <<_ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3610 $EGREP "free" >/dev/null 2>&1; then
3613 ac_cv_header_stdc=no
3619 if test $ac_cv_header_stdc = yes; then
3620 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3621 if test "$cross_compiling" = yes; then
3624 cat >conftest.$ac_ext <<_ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h. */
3632 #if ((' ' & 0x0FF) == 0x020)
3633 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3634 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3636 # define ISLOWER(c) \
3637 (('a' <= (c) && (c) <= 'i') \
3638 || ('j' <= (c) && (c) <= 'r') \
3639 || ('s' <= (c) && (c) <= 'z'))
3640 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3643 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3648 for (i = 0; i < 256; i++)
3649 if (XOR (islower (i), ISLOWER (i))
3650 || toupper (i) != TOUPPER (i))
3655 rm -f conftest$ac_exeext
3656 if { (ac_try="$ac_link"
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662 (eval "$ac_link") 2>&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3666 { (case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671 (eval "$ac_try") 2>&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; }; then
3677 echo "$as_me: program exited with status $ac_status" >&5
3678 echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3682 ac_cv_header_stdc=no
3684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3690 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3691 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3692 if test $ac_cv_header_stdc = yes; then
3694 cat >>confdefs.h <<\_ACEOF
3695 #define STDC_HEADERS 1
3700 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3710 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3711 inttypes.h stdint.h unistd.h
3713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 cat >conftest.$ac_ext <<_ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h. */
3725 $ac_includes_default
3727 #include <$ac_header>
3729 rm -f conftest.$ac_objext
3730 if { (ac_try="$ac_compile"
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736 (eval "$ac_compile") 2>conftest.er1
3738 grep -v '^ *+' conftest.er1 >conftest.err
3740 cat conftest.err >&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } && {
3743 test -z "$ac_c_werror_flag" ||
3744 test ! -s conftest.err
3745 } && test -s conftest.$ac_objext; then
3746 eval "$as_ac_Header=yes"
3748 echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3751 eval "$as_ac_Header=no"
3754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756 ac_res=`eval echo '${'$as_ac_Header'}'`
3757 { echo "$as_me:$LINENO: result: $ac_res" >&5
3758 echo "${ECHO_T}$ac_res" >&6; }
3759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3760 cat >>confdefs.h <<_ACEOF
3761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3770 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
3771 { echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
3772 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6; }
3773 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
3777 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6; }
3779 # Is the header compilable?
3780 { echo "$as_me:$LINENO: checking sys/ipc.h usability" >&5
3781 echo $ECHO_N "checking sys/ipc.h usability... $ECHO_C" >&6; }
3782 cat >conftest.$ac_ext <<_ACEOF
3785 cat confdefs.h >>conftest.$ac_ext
3786 cat >>conftest.$ac_ext <<_ACEOF
3787 /* end confdefs.h. */
3788 $ac_includes_default
3789 #include <sys/ipc.h>
3791 rm -f conftest.$ac_objext
3792 if { (ac_try="$ac_compile"
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3798 (eval "$ac_compile") 2>conftest.er1
3800 grep -v '^ *+' conftest.er1 >conftest.err
3802 cat conftest.err >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); } && {
3805 test -z "$ac_c_werror_flag" ||
3806 test ! -s conftest.err
3807 } && test -s conftest.$ac_objext; then
3808 ac_header_compiler=yes
3810 echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3813 ac_header_compiler=no
3816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3818 echo "${ECHO_T}$ac_header_compiler" >&6; }
3820 # Is the header present?
3821 { echo "$as_me:$LINENO: checking sys/ipc.h presence" >&5
3822 echo $ECHO_N "checking sys/ipc.h presence... $ECHO_C" >&6; }
3823 cat >conftest.$ac_ext <<_ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h. */
3829 #include <sys/ipc.h>
3831 if { (ac_try="$ac_cpp conftest.$ac_ext"
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3839 grep -v '^ *+' conftest.er1 >conftest.err
3841 cat conftest.err >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); } >/dev/null && {
3844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3845 test ! -s conftest.err
3847 ac_header_preproc=yes
3849 echo "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3852 ac_header_preproc=no
3855 rm -f conftest.err conftest.$ac_ext
3856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3857 echo "${ECHO_T}$ac_header_preproc" >&6; }
3859 # So? What about this header?
3860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3862 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&5
3863 echo "$as_me: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3864 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the compiler's result" >&5
3865 echo "$as_me: WARNING: sys/ipc.h: proceeding with the compiler's result" >&2;}
3866 ac_header_preproc=yes
3869 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: present but cannot be compiled" >&5
3870 echo "$as_me: WARNING: sys/ipc.h: present but cannot be compiled" >&2;}
3871 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&5
3872 echo "$as_me: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&2;}
3873 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: see the Autoconf documentation" >&5
3874 echo "$as_me: WARNING: sys/ipc.h: see the Autoconf documentation" >&2;}
3875 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&5
3876 echo "$as_me: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&2;}
3877 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
3878 echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;}
3879 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&5
3880 echo "$as_me: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&2;}
3882 ## ------------------------------------ ##
3883 ## Report this to wmcbrine@users.sf.net ##
3884 ## ------------------------------------ ##
3886 ) | sed "s/^/$as_me: WARNING: /" >&2
3889 { echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
3890 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6; }
3891 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 ac_cv_header_sys_ipc_h=$ac_header_preproc
3896 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
3897 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6; }
3902 if test $ac_cv_header_sys_ipc_h = no; then
3903 { { echo "$as_me:$LINENO: error: Cannot find required header file sys/ipc.h; PDCurses cannot be configured" >&5
3904 echo "$as_me: error: Cannot find required header file sys/ipc.h; PDCurses cannot be configured" >&2;}
3905 { (exit 1); exit 1; }; }
3909 if test $ac_cv_header_stdc != yes; then
3910 { { echo "$as_me:$LINENO: error: Need ANSI C headers" >&5
3911 echo "$as_me: error: Need ANSI C headers" >&2;}
3912 { (exit 1); exit 1; }; }
3921 for ac_header in fcntl.h \
3928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 ac_res=`eval echo '${'$as_ac_Header'}'`
3936 { echo "$as_me:$LINENO: result: $ac_res" >&5
3937 echo "${ECHO_T}$ac_res" >&6; }
3939 # Is the header compilable?
3940 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3942 cat >conftest.$ac_ext <<_ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3948 $ac_includes_default
3949 #include <$ac_header>
3951 rm -f conftest.$ac_objext
3952 if { (ac_try="$ac_compile"
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3958 (eval "$ac_compile") 2>conftest.er1
3960 grep -v '^ *+' conftest.er1 >conftest.err
3962 cat conftest.err >&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } && {
3965 test -z "$ac_c_werror_flag" ||
3966 test ! -s conftest.err
3967 } && test -s conftest.$ac_objext; then
3968 ac_header_compiler=yes
3970 echo "$as_me: failed program was:" >&5
3971 sed 's/^/| /' conftest.$ac_ext >&5
3973 ac_header_compiler=no
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3978 echo "${ECHO_T}$ac_header_compiler" >&6; }
3980 # Is the header present?
3981 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3983 cat >conftest.$ac_ext <<_ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h. */
3989 #include <$ac_header>
3991 if { (ac_try="$ac_cpp conftest.$ac_ext"
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3999 grep -v '^ *+' conftest.er1 >conftest.err
4001 cat conftest.err >&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } >/dev/null && {
4004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4005 test ! -s conftest.err
4007 ac_header_preproc=yes
4009 echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4012 ac_header_preproc=no
4015 rm -f conftest.err conftest.$ac_ext
4016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4017 echo "${ECHO_T}$ac_header_preproc" >&6; }
4019 # So? What about this header?
4020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4026 ac_header_preproc=yes
4029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4032 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4036 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4042 ## ------------------------------------ ##
4043 ## Report this to wmcbrine@users.sf.net ##
4044 ## ------------------------------------ ##
4046 ) | sed "s/^/$as_me: WARNING: /" >&2
4049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 eval "$as_ac_Header=\$ac_header_preproc"
4056 ac_res=`eval echo '${'$as_ac_Header'}'`
4057 { echo "$as_me:$LINENO: result: $ac_res" >&5
4058 echo "${ECHO_T}$ac_res" >&6; }
4061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4062 cat >>confdefs.h <<_ACEOF
4063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4071 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4072 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4073 if test "${ac_cv_header_time+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 cat >conftest.$ac_ext <<_ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4082 #include <sys/types.h>
4083 #include <sys/time.h>
4089 if ((struct tm *) 0)
4095 rm -f conftest.$ac_objext
4096 if { (ac_try="$ac_compile"
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102 (eval "$ac_compile") 2>conftest.er1
4104 grep -v '^ *+' conftest.er1 >conftest.err
4106 cat conftest.err >&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); } && {
4109 test -z "$ac_c_werror_flag" ||
4110 test ! -s conftest.err
4111 } && test -s conftest.$ac_objext; then
4112 ac_cv_header_time=yes
4114 echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4117 ac_cv_header_time=no
4120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4122 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4123 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4124 if test $ac_cv_header_time = yes; then
4126 cat >>confdefs.h <<\_ACEOF
4127 #define TIME_WITH_SYS_TIME 1
4134 for mh_lib in socket nls; do
4135 if test "$on_qnx" = yes; then
4136 { echo "$as_me:$LINENO: checking for library -l${mh_lib}" >&5
4137 echo $ECHO_N "checking for library -l${mh_lib}... $ECHO_C" >&6; }
4138 if test -r /usr/lib/${mh_lib}3r.lib; then
4139 { echo "$as_me:$LINENO: result: found" >&5
4140 echo "${ECHO_T}found" >&6; }
4141 MH_EXTRA_LIBS="${MH_EXTRA_LIBS} -l${mh_lib}"
4143 { echo "$as_me:$LINENO: result: not found" >&5
4144 echo "${ECHO_T}not found" >&6; }
4147 as_ac_Lib=`echo "ac_cv_lib_$mh_lib''_main" | $as_tr_sh`
4148 { echo "$as_me:$LINENO: checking for main in -l$mh_lib" >&5
4149 echo $ECHO_N "checking for main in -l$mh_lib... $ECHO_C" >&6; }
4150 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 ac_check_lib_save_LIBS=$LIBS
4154 LIBS="-l$mh_lib $LIBS"
4155 cat >conftest.$ac_ext <<_ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4171 rm -f conftest.$ac_objext conftest$ac_exeext
4172 if { (ac_try="$ac_link"
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_link") 2>conftest.er1
4180 grep -v '^ *+' conftest.er1 >conftest.err
4182 cat conftest.err >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } && {
4185 test -z "$ac_c_werror_flag" ||
4186 test ! -s conftest.err
4187 } && test -s conftest$ac_exeext &&
4188 $as_test_x conftest$ac_exeext; then
4189 eval "$as_ac_Lib=yes"
4191 echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4194 eval "$as_ac_Lib=no"
4197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4198 conftest$ac_exeext conftest.$ac_ext
4199 LIBS=$ac_check_lib_save_LIBS
4201 ac_res=`eval echo '${'$as_ac_Lib'}'`
4202 { echo "$as_me:$LINENO: result: $ac_res" >&5
4203 echo "${ECHO_T}$ac_res" >&6; }
4204 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4210 if test "$mh_lib_found" = yes; then
4211 MH_EXTRA_LIBS="${MH_EXTRA_LIBS} -l${mh_lib}"
4218 { echo "$as_me:$LINENO: checking whether $CC understand -c and -o together" >&5
4219 echo $ECHO_N "checking whether $CC understand -c and -o together... $ECHO_C" >&6; }
4220 set dummy $CC; ac_cc="`echo $2 |
4221 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
4222 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4223 echo $ECHO_N "(cached) $ECHO_C" >&6
4225 echo 'foo(){}' > conftest.c
4226 # We do the test twice because some compilers refuse to overwrite an
4227 # existing .o file with -o, though they will create one.
4228 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4229 ac_try='${CC-cc} -c conftest.c -o conftest.ooo 1>&5'
4230 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } && test -f conftest.ooo && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); };
4240 ac_try='${CC-cc} -c conftest.c -o conftest.ooo 1>&5'
4241 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } && test -f conftest.ooo && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); };
4251 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4257 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
4261 { echo "$as_me:$LINENO: result: yes" >&5
4262 echo "${ECHO_T}yes" >&6; }
4264 O2SAVE="-mv \`basename "$'@'" .sho\`.o \`basename "$'@'" .sho\`.o.save;"
4265 SAVE2O="-mv \`basename "$'@'" .sho\`.o "$'@'"; mv \`basename "$'@'" .sho\`.o.save \`basename "$'@'" .sho\`.o"
4267 { echo "$as_me:$LINENO: result: no" >&5
4268 echo "${ECHO_T}no" >&6; }
4272 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4273 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
4274 if test "${ac_cv_type_signal+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 cat >conftest.$ac_ext <<_ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h. */
4283 #include <sys/types.h>
4289 return *(signal (0, 0)) (0) == 1;
4294 rm -f conftest.$ac_objext
4295 if { (ac_try="$ac_compile"
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_compile") 2>conftest.er1
4303 grep -v '^ *+' conftest.er1 >conftest.err
4305 cat conftest.err >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } && {
4308 test -z "$ac_c_werror_flag" ||
4309 test ! -s conftest.err
4310 } && test -s conftest.$ac_objext; then
4311 ac_cv_type_signal=int
4313 echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4316 ac_cv_type_signal=void
4319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4321 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4322 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
4324 cat >>confdefs.h <<_ACEOF
4325 #define RETSIGTYPE $ac_cv_type_signal
4333 for ac_func in vsscanf usleep poll vsnprintf
4335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4336 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 cat >conftest.$ac_ext <<_ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4349 #define $ac_func innocuous_$ac_func
4351 /* System header to define __stub macros and hopefully few prototypes,
4352 which can conflict with char $ac_func (); below.
4353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4354 <limits.h> exists even on freestanding compilers. */
4357 # include <limits.h>
4359 # include <assert.h>
4364 /* Override any GCC internal prototype to avoid an error.
4365 Use char because int might match the return type of a GCC
4366 builtin and then its argument prototype would still apply. */
4371 /* The GNU C library defines this for functions which it implements
4372 to always fail with ENOSYS. Some functions are actually named
4373 something starting with __ and the normal name is an alias. */
4374 #if defined __stub_$ac_func || defined __stub___$ac_func
4386 rm -f conftest.$ac_objext conftest$ac_exeext
4387 if { (ac_try="$ac_link"
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_link") 2>conftest.er1
4395 grep -v '^ *+' conftest.er1 >conftest.err
4397 cat conftest.err >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } && {
4400 test -z "$ac_c_werror_flag" ||
4401 test ! -s conftest.err
4402 } && test -s conftest$ac_exeext &&
4403 $as_test_x conftest$ac_exeext; then
4404 eval "$as_ac_var=yes"
4406 echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4409 eval "$as_ac_var=no"
4412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4413 conftest$ac_exeext conftest.$ac_ext
4415 ac_res=`eval echo '${'$as_ac_var'}'`
4416 { echo "$as_me:$LINENO: result: $ac_res" >&5
4417 echo "${ECHO_T}$ac_res" >&6; }
4418 if test `eval echo '${'$as_ac_var'}'` = yes; then
4419 cat >>confdefs.h <<_ACEOF
4420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4427 { echo "$as_me:$LINENO: checking for X" >&5
4428 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4431 # Check whether --with-x was given.
4432 if test "${with_x+set}" = set; then
4436 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4437 if test "x$with_x" = xno; then
4438 # The user explicitly disabled X.
4441 case $x_includes,$x_libraries in #(
4442 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
4443 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
4444 { (exit 1); exit 1; }; };; #(
4445 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 # One or both of the vars are not set, and there is no cached value.
4449 ac_x_includes=no ac_x_libraries=no
4450 rm -f -r conftest.dir
4451 if mkdir conftest.dir; then
4453 cat >Imakefile <<'_ACEOF'
4455 @echo incroot='${INCROOT}'
4457 @echo usrlibdir='${USRLIBDIR}'
4459 @echo libdir='${LIBDIR}'
4461 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4462 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4463 for ac_var in incroot usrlibdir libdir; do
4464 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4466 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4467 for ac_extension in a so sl; do
4468 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4469 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4470 ac_im_usrlibdir=$ac_im_libdir; break
4473 # Screen out bogus values from the imake configuration. They are
4474 # bogus both because they are the default anyway, and because
4475 # using them would break gcc on systems where it needs fixed includes.
4476 case $ac_im_incroot in
4477 /usr/include) ac_x_includes= ;;
4478 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4480 case $ac_im_usrlibdir in
4482 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4486 rm -f -r conftest.dir
4489 # Standard set of common directories for X headers.
4490 # Check X11 before X11Rn because it is often a symlink to the current release.
4502 /usr/local/X11/include
4503 /usr/local/X11R6/include
4504 /usr/local/X11R5/include
4505 /usr/local/X11R4/include
4507 /usr/local/include/X11
4508 /usr/local/include/X11R6
4509 /usr/local/include/X11R5
4510 /usr/local/include/X11R4
4514 /usr/XFree86/include/X11
4518 /usr/unsupported/include
4520 /usr/local/x11r5/include
4521 /usr/lpp/Xamples/include
4523 /usr/openwin/include
4524 /usr/openwin/share/include'
4526 if test "$ac_x_includes" = no; then
4527 # Guess where to find include files, by looking for Xlib.h.
4528 # First, try using that file with no special directory specified.
4529 cat >conftest.$ac_ext <<_ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4535 #include <X11/Xlib.h>
4537 if { (ac_try="$ac_cpp conftest.$ac_ext"
4539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540 *) ac_try_echo=$ac_try;;
4542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4545 grep -v '^ *+' conftest.er1 >conftest.err
4547 cat conftest.err >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } >/dev/null && {
4550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4551 test ! -s conftest.err
4553 # We can compile using X headers with no special include directory.
4556 echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4559 for ac_dir in $ac_x_header_dirs; do
4560 if test -r "$ac_dir/X11/Xlib.h"; then
4561 ac_x_includes=$ac_dir
4567 rm -f conftest.err conftest.$ac_ext
4568 fi # $ac_x_includes = no
4570 if test "$ac_x_libraries" = no; then
4571 # Check for the libraries.
4572 # See if we find them without any special options.
4573 # Don't add to $LIBS permanently.
4576 cat >conftest.$ac_ext <<_ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4582 #include <X11/Xlib.h>
4591 rm -f conftest.$ac_objext conftest$ac_exeext
4592 if { (ac_try="$ac_link"
4594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4595 *) ac_try_echo=$ac_try;;
4597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4598 (eval "$ac_link") 2>conftest.er1
4600 grep -v '^ *+' conftest.er1 >conftest.err
4602 cat conftest.err >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } && {
4605 test -z "$ac_c_werror_flag" ||
4606 test ! -s conftest.err
4607 } && test -s conftest$ac_exeext &&
4608 $as_test_x conftest$ac_exeext; then
4610 # We can link X programs with no special library path.
4613 echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4617 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4619 # Don't even attempt the hair of trying to link an X program!
4620 for ac_extension in a so sl; do
4621 if test -r "$ac_dir/libX11.$ac_extension"; then
4622 ac_x_libraries=$ac_dir
4629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4630 conftest$ac_exeext conftest.$ac_ext
4631 fi # $ac_x_libraries = no
4633 case $ac_x_includes,$ac_x_libraries in #(
4635 # Didn't find X, or a directory has "'" in its name.
4636 ac_cv_have_x="have_x=no";; #(
4638 # Record where we found X for the cache.
4639 ac_cv_have_x="have_x=yes\
4640 ac_x_includes='$ac_x_includes'\
4641 ac_x_libraries='$ac_x_libraries'"
4647 eval "$ac_cv_have_x"
4650 if test "$have_x" != yes; then
4651 { echo "$as_me:$LINENO: result: $have_x" >&5
4652 echo "${ECHO_T}$have_x" >&6; }
4655 # If each of the values was on the command line, it overrides each guess.
4656 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4657 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4658 # Update the cache value to reflect the command line values.
4659 ac_cv_have_x="have_x=yes\
4660 ac_x_includes='$x_includes'\
4661 ac_x_libraries='$x_libraries'"
4662 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4663 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4670 mh_inc_dirs="$ac_x_header_dirs"
4673 if test "x$x_includes" != xNONE ; then
4674 mh_inc_dirs="$x_includes $mh_inc_dirs"
4678 for ac_dir in $mh_inc_dirs ; do
4679 if test -r $ac_dir/Intrinsic.h; then
4683 if test -r $ac_dir/X11/Intrinsic.h; then
4684 mh_x11_dir="$ac_dir/X11"
4690 if test "$with_xaw3d" = yes; then
4693 if test "$with_nextaw" = yes; then
4699 for ac_dir in $mh_inc_dirs ; do
4700 if test -r $ac_dir/$mh_xaw_dir/Box.h; then
4701 mh_x11_xaw_dir=$ac_dir
4704 if test -r $ac_dir/X11/$mh_xaw_dir/Box.h; then
4705 mh_x11_xaw_dir="$ac_dir/X11"
4710 if test "x$mh_x11_dir" != "x" ; then
4711 mh_x11_dir_no_x11=`echo $mh_x11_dir | sed 's/\/X11$//'`
4713 if test "$mh_x11_dir_no_x11" != "$mh_x11_dir" ; then
4714 MH_XINC_DIR="-I$mh_x11_dir -I$mh_x11_dir_no_x11"
4716 MH_XINC_DIR="-I$mh_x11_dir"
4719 { { echo "$as_me:$LINENO: error: Cannot find required header file Intrinsic.h; PDCurses cannot be configured" >&5
4720 echo "$as_me: error: Cannot find required header file Intrinsic.h; PDCurses cannot be configured" >&2;}
4721 { (exit 1); exit 1; }; }
4724 if test "x$mh_x11_xaw_dir" != "x"; then
4725 if test "$mh_x11_xaw_dir" != "$mh_x11_dir" ; then
4726 MH_XINC_DIR="-I$mh_x11_xaw_dir $MH_XINC_DIR"
4729 { { echo "$as_me:$LINENO: error: Cannot find required Xaw header file Box.h; PDCurses cannot be configured" >&5
4730 echo "$as_me: error: Cannot find required Xaw header file Box.h; PDCurses cannot be configured" >&2;}
4731 { (exit 1); exit 1; }; }
4751 if test "$ac_cv_prog_CC" = "gcc" ; then
4752 extra_ld_flags="-Wl,-Bstatic"
4753 extra_ld_flags2="-Wl,-Bdynamic"
4755 extra_ld_flags="-Bstatic"
4756 extra_ld_flags2="-Bdynamic"
4764 if test "$with_xaw3d" = yes; then
4765 MH_X11_LIBS="Xaw3d Xmu Xt X11"
4767 if test "$with_nextaw" = yes; then
4768 MH_X11_LIBS="neXtaw Xmu Xt X11"
4770 MH_X11_LIBS="Xaw Xmu Xt X11"
4773 MH_X11R6_LIBS="SM ICE Xext"
4776 mh_lib_dirs="$x_libraries `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`"
4778 for ac_dir in $mh_lib_dirs ; do
4779 for mh_xsm in libSM.a libSM.so libSM.sl libSM.dylib; do
4780 if test -r $ac_dir/$mh_xsm; then
4787 if test "$mh_x11r6" = yes ; then
4788 mh_libs="$MH_X11_LIBS $MH_X11R6_LIBS"
4790 mh_libs="$MH_X11_LIBS $extra_x_libs"
4797 mh_where_found_dirs=""
4799 for mh_lib in $mh_libs; do
4801 for ac_dir in $mh_lib_dirs ; do
4802 for mh_ext in a so sl dll.a dylib; do
4803 if test -r $ac_dir/lib$mh_lib.$mh_ext; then
4804 if test "x$mh_prev_dir" != "x$ac_dir" ; then
4805 if test "x$mh_prev_dir" = "x" ; then
4806 mh_where_found="$mh_where_found found in $ac_dir"
4808 mh_where_found="$mh_where_found and in $ac_dir"
4811 mh_where_found_dirs="$mh_where_found_dirs $ac_dir"
4812 MH_XLIBS="$MH_XLIBS -L$ac_dir"
4813 mh_solaris_path="${mh_solaris_path}:$ac_dir"
4815 MH_XLIBS="$MH_XLIBS -l$mh_lib"
4821 if test "$mh_lib_found" = no; then
4822 { { echo "$as_me:$LINENO: error: Cannot find required X library; lib$mh_lib. PDCurses cannot be configured" >&5
4823 echo "$as_me: error: Cannot find required X library; lib$mh_lib. PDCurses cannot be configured" >&2;}
4824 { (exit 1); exit 1; }; }
4828 mh_solaris_path=`echo $mh_solaris_path | sed 's/^://'`
4829 if test "$mh_solaris_flag" = yes ; then
4830 MH_XLIBS="-R$mh_solaris_path $extra_ld_flags $MH_XLIBS $extra_libs $extra_ld_flags2"
4832 MH_XLIBS="$extra_ld_flags $MH_XLIBS $extra_libs $extra_ld_flags2"
4834 if test "$mh_hpux9_flag" = yes ; then
4835 grep -q XtSetLanguageProc $mh_x11_dir/Intrinsic.h
4836 if test $? -eq 0 ; then
4837 mh_found_xtshellstrings=no
4838 for mh_acdir in $mh_where_found_dirs ; do
4839 for mh_xaw in `ls $mh_acdir/libXaw.*` ; do
4840 nm $mh_xaw | grep XtShellStrings | grep -qv extern
4841 if test $? -eq 0 ; then
4842 mh_found_xtshellstrings=yes
4846 if test "$mh_found_xtshellstrings" = no ; then
4847 { echo "$as_me:$LINENO: WARNING: The X11 development environment has not been installed correctly." >&5
4848 echo "$as_me: WARNING: The X11 development environment has not been installed correctly." >&2;}
4849 { echo "$as_me:$LINENO: WARNING: The header file; Intrinsic.h" >&5
4850 echo "$as_me: WARNING: The header file; Intrinsic.h" >&2;}
4851 { echo "$as_me:$LINENO: WARNING: Set library; libXaw is for X11R4. This is a common problem with" >&5
4852 echo "$as_me: WARNING: Set library; libXaw is for X11R4. This is a common problem with" >&2;}
4853 { echo "$as_me:$LINENO: WARNING: HP-UX 9.x." >&5
4854 echo "$as_me: WARNING: HP-UX 9.x." >&2;}
4855 { { echo "$as_me:$LINENO: error: X11 installation incomplete; cannot continue" >&5
4856 echo "$as_me: error: X11 installation incomplete; cannot continue" >&2;}
4857 { (exit 1); exit 1; }; }
4866 save_CPPFLAGS="$CPPFLAGS"
4867 CPPFLAGS="$CPPFLAGS $MH_XINC_DIR"
4868 for mh_header in DECkeysym.h Sunkeysym.h xpm.h; do
4870 for ac_header in $mh_header
4872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4874 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 ac_res=`eval echo '${'$as_ac_Header'}'`
4880 { echo "$as_me:$LINENO: result: $ac_res" >&5
4881 echo "${ECHO_T}$ac_res" >&6; }
4883 # Is the header compilable?
4884 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4885 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4886 cat >conftest.$ac_ext <<_ACEOF
4889 cat confdefs.h >>conftest.$ac_ext
4890 cat >>conftest.$ac_ext <<_ACEOF
4891 /* end confdefs.h. */
4892 $ac_includes_default
4893 #include <$ac_header>
4895 rm -f conftest.$ac_objext
4896 if { (ac_try="$ac_compile"
4898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899 *) ac_try_echo=$ac_try;;
4901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4902 (eval "$ac_compile") 2>conftest.er1
4904 grep -v '^ *+' conftest.er1 >conftest.err
4906 cat conftest.err >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } && {
4909 test -z "$ac_c_werror_flag" ||
4910 test ! -s conftest.err
4911 } && test -s conftest.$ac_objext; then
4912 ac_header_compiler=yes
4914 echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4917 ac_header_compiler=no
4920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4921 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4922 echo "${ECHO_T}$ac_header_compiler" >&6; }
4924 # Is the header present?
4925 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4926 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4927 cat >conftest.$ac_ext <<_ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4933 #include <$ac_header>
4935 if { (ac_try="$ac_cpp conftest.$ac_ext"
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4943 grep -v '^ *+' conftest.er1 >conftest.err
4945 cat conftest.err >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } >/dev/null && {
4948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4949 test ! -s conftest.err
4951 ac_header_preproc=yes
4953 echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4956 ac_header_preproc=no
4959 rm -f conftest.err conftest.$ac_ext
4960 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4961 echo "${ECHO_T}$ac_header_preproc" >&6; }
4963 # So? What about this header?
4964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4966 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4967 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4969 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4970 ac_header_preproc=yes
4973 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4974 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4975 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4976 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4977 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4978 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4979 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4980 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4982 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4983 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4984 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4986 ## ------------------------------------ ##
4987 ## Report this to wmcbrine@users.sf.net ##
4988 ## ------------------------------------ ##
4990 ) | sed "s/^/$as_me: WARNING: /" >&2
4993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 eval "$as_ac_Header=\$ac_header_preproc"
5000 ac_res=`eval echo '${'$as_ac_Header'}'`
5001 { echo "$as_me:$LINENO: result: $ac_res" >&5
5002 echo "${ECHO_T}$ac_res" >&6; }
5005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5006 cat >>confdefs.h <<_ACEOF
5007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5015 CPPFLAGS="$save_CPPFLAGS"
5018 save_CPPFLAGS="$CPPFLAGS"
5019 CPPFLAGS="$CPPFLAGS $MH_XINC_DIR"
5020 for mh_keydef in XK_KP_Delete XK_KP_Insert XK_KP_End XK_KP_Down XK_KP_Next \
5021 XK_KP_Left XK_KP_Right XK_KP_Home XK_KP_Up XK_KP_Prior XK_KP_Begin; do
5022 { echo "$as_me:$LINENO: checking for $mh_keydef in keysym.h" >&5
5023 echo $ECHO_N "checking for $mh_keydef in keysym.h... $ECHO_C" >&6; }
5024 mh_upper_name="HAVE_`echo $mh_keydef | tr 'a-z' 'A-Z'`"
5025 cat >conftest.$ac_ext <<_ACEOF
5028 cat confdefs.h >>conftest.$ac_ext
5029 cat >>conftest.$ac_ext <<_ACEOF
5030 /* end confdefs.h. */
5040 rm -f conftest.$ac_objext
5041 if { (ac_try="$ac_compile"
5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5047 (eval "$ac_compile") 2>conftest.er1
5049 grep -v '^ *+' conftest.er1 >conftest.err
5051 cat conftest.err >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } && {
5054 test -z "$ac_c_werror_flag" ||
5055 test ! -s conftest.err
5056 } && test -s conftest.$ac_objext; then
5057 mh_have_key=yes; cat >>confdefs.h <<_ACEOF
5058 #define $mh_upper_name 1
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5069 { echo "$as_me:$LINENO: result: $mh_have_key" >&5
5070 echo "${ECHO_T}$mh_have_key" >&6; }
5072 CPPFLAGS="$save_CPPFLAGS"
5075 save_CPPFLAGS="$CPPFLAGS"
5076 CPPFLAGS="$CPPFLAGS $SYS_DEFS $MH_XINC_DIR"
5077 for td in XPointer ; do
5078 { echo "$as_me:$LINENO: checking if $td is typedefed:" >&5
5079 echo $ECHO_N "checking if $td is typedefed:... $ECHO_C" >&6; }
5080 cat >conftest.$ac_ext <<_ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h. */
5086 #include "X11/Xlib.h"
5095 rm -f conftest.$ac_objext
5096 if { (ac_try="$ac_compile"
5098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099 *) ac_try_echo=$ac_try;;
5101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102 (eval "$ac_compile") 2>conftest.er1
5104 grep -v '^ *+' conftest.er1 >conftest.err
5106 cat conftest.err >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } && {
5109 test -z "$ac_c_werror_flag" ||
5110 test ! -s conftest.err
5111 } && test -s conftest.$ac_objext; then
5114 echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5122 if test "$mh_td" = yes ; then
5123 TD_upper=`echo $td | tr a-z A-Z`
5124 cat >>confdefs.h <<_ACEOF
5125 #define ${TD_upper}_TYPEDEFED 1
5129 { echo "$as_me:$LINENO: result: $mh_td" >&5
5130 echo "${ECHO_T}$mh_td" >&6; }
5132 CPPFLAGS="$save_CPPFLAGS"
5134 if test $ac_cv_header_xpm_h = yes; then
5135 MH_XLIBS="$MH_XLIBS -lXpm"
5137 # Check whether --enable-debug was given.
5138 if test "${enable_debug+set}" = set; then
5139 enableval=$enable_debug; with_debug=$enableval
5144 cflags_g="`echo $CFLAGS | grep -c '\-g'`"
5145 cflags_O="`echo $CFLAGS | grep -c '\-O'`"
5147 if test "$with_debug" = yes; then
5148 if test "$cflags_g" = "0"; then
5149 CFLAGS="${CFLAGS} -g"
5151 if test "$cflags_O" != "0"; then
5152 CFLAGS="`echo ${CFLAGS} | sed -e s/-O.//`"
5154 CFLAGS="${CFLAGS} -DPDCDEBUG"
5156 if test "$cflags_O" = "0"; then
5157 CFLAGS="${CFLAGS} -O"
5159 if test "$cflags_g" != "0"; then
5160 CFLAGS="`echo ${CFLAGS} | sed -e s/-g//`"
5163 if test "$ac_cv_prog_CC" = "gcc"; then
5164 if test "$with_debug" = yes; then
5165 CFLAGS="${CFLAGS} -Wall"
5167 CFLAGS="-O2 -Wall -fomit-frame-pointer"
5170 if test "$on_qnx" = yes; then
5171 if test "$with_debug" = yes; then
5178 # Check whether --enable-widec was given.
5179 if test "${enable_widec+set}" = set; then
5180 enableval=$enable_widec; with_widec=$enableval
5185 if test "$with_widec" = yes; then
5186 SYS_DEFS="$SYS_DEFS -DPDC_WIDE"
5189 # Check whether --enable-xim was given.
5190 if test "${enable_xim+set}" = set; then
5191 enableval=$enable_xim; with_xim=$enableval
5196 if test "$with_xim" = yes; then
5197 SYS_DEFS="$SYS_DEFS -DPDC_XIM"
5200 # Check whether --enable-force-utf8 was given.
5201 if test "${enable_force_utf8+set}" = set; then
5202 enableval=$enable_force_utf8; force_utf8=$enableval
5207 if test "$force_utf8" = yes; then
5208 SYS_DEFS="$SYS_DEFS -DPDC_FORCE_UTF8"
5211 # Check whether --enable-purify was given.
5212 if test "${enable_purify+set}" = set; then
5213 enableval=$enable_purify; with_purify=$enableval
5218 if test "$with_purify" = yes; then
5226 # Check whether --with-xaw3d was given.
5227 if test "${with_xaw3d+set}" = set; then
5228 withval=$with_xaw3d; with_xaw3d=$withval
5233 if test "$with_xaw3d" = yes; then
5235 cat >>confdefs.h <<\_ACEOF
5242 # Check whether --with-nextaw was given.
5243 if test "${with_nextaw+set}" = set; then
5244 withval=$with_nextaw; with_nextaw=$withval
5249 if test "$with_nextaw" = yes; then
5251 cat >>confdefs.h <<\_ACEOF
5252 #define USE_NEXTAW 1
5258 { echo "$as_me:$LINENO: checking shared library extension" >&5
5259 echo $ECHO_N "checking shared library extension... $ECHO_C" >&6; }
5280 { echo "$as_me:$LINENO: result: $SHLPST" >&5
5281 echo "${ECHO_T}$SHLPST" >&6; }
5296 SYS_DEFS="-D_HPUX_SOURCE"
5297 LD_RXLIB1="ld -b -q -n"
5300 SYS_DEFS="-D_ALL_SOURCE -DAIX"
5302 DYN_COMP="-DDYNAMIC"
5303 LD_RXLIB1="ld -bnoentry -bM:SRE"
5304 RXPACKEXPORTS="-bE:$SHLFILE.exp"
5305 RXPACKEXP="$SHLFILE.exp"
5308 if test "$ac_cv_prog_CC" = "gcc"; then
5309 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE"
5311 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE -Olimit 800"
5313 LD_RXLIB1="ld -shared"
5315 *sequent-dynix*|*esix*|*dgux*)
5319 if test "$ac_cv_prog_CC" = "gcc"; then
5320 LD_RXLIB1="gcc -shared"
5326 SYS_DEFS="-DSUNOS -DSUNOS_STRTOD_BUG"
5329 *linux*|*atheos*|*nto-qnx*)
5330 LD_RXLIB1="${CC} -shared"
5333 LD_RXLIB1="ld -Bdynamic -Bshareable"
5336 LD_RXLIB1="ld -dy -G"
5339 LD_RXLIB1="${CC} -Wl,-shared -nostart -Xlinker -soname=\$(@)"
5344 DYN_COMP="-Q" # force no check for dynamic loading
5349 DYN_COMP="-DDYNAMIC"
5350 LD_RXLIB1="dllwrap --def \$(srcdir)/../win32/pdcurses.def --target i386-cygwin32 --dllname \$(@)"
5351 # cygwininstall target MUST install the shared library itself because
5352 # it puts it into $(bindir) not $(libdir) as all other platforms
5355 DYN_COMP="-fno-common"
5356 LD_RXLIB1="${CC} -flat_namespace -undefined suppress -dynamiclib -install_name=\$(@)"
5363 if test "$DYN_COMP" = ""; then
5364 { echo "$as_me:$LINENO: checking compiler flags for a dynamic object" >&5
5365 echo $ECHO_N "checking compiler flags for a dynamic object... $ECHO_C" >&6; }
5367 cat > conftest.$ac_ext <<EOF
5368 #line 5368 "configure"
5374 save_cflags="$CFLAGS"
5375 mh_cv_flags="-fPIC -KPIC +Z"
5376 for a in $mh_cv_flags; do
5379 mh_compile='${CC-cc} -c $CFLAGS conftest.$ac_ext > conftest.tmp 2>&1'
5380 if { (eval echo "$as_me:$LINENO: \"$mh_compile\"") >&5
5381 (eval $mh_compile) 2>&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; then
5388 mh_dyncomp="`egrep -c $slash$a conftest.tmp`"
5389 if test "$mh_dyncomp" = "0"; then
5390 DYN_COMP="$a -DDYNAMIC"
5391 { echo "$as_me:$LINENO: result: $a" >&5
5392 echo "${ECHO_T}$a" >&6; }
5399 if test "$DYN_COMP" = ""; then
5400 { echo "$as_me:$LINENO: result: none of $mh_cv_flags supported" >&5
5401 echo "${ECHO_T}none of $mh_cv_flags supported" >&6; }
5403 if test "$LD_RXLIB1" = ""; then
5405 mh_compile='${CC-cc} -c $DYN_COMP conftest.$ac_ext 1>&5'
5406 cat > conftest.$ac_ext <<EOF
5407 #line 5407 "configure"
5413 if { (eval echo "$as_me:$LINENO: \"$mh_compile\"") >&5
5414 (eval $mh_compile) 2>&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } && test -s conftest.o; then
5418 mh_dyn_link='ld -shared -o conftest.rxlib conftest.o -lc 1>&5'
5419 # mh_dyn_link='${CC} -Wl,-shared -o conftest.rxlib conftest.o -lc 1>&AC_FD_CC'
5420 if { (eval echo "$as_me:$LINENO: \"$mh_dyn_link\"") >&5
5421 (eval $mh_dyn_link) 2>&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } && test -s conftest.rxlib; then
5425 LD_RXLIB1="ld -shared"
5426 # LD_RXLIB1="${CC} -Wl,-shared"
5430 mh_dyn_link='ld -G -o conftest.rxlib conftest.o 1>&5'
5431 # mh_dyn_link='${CC} -Wl,-G -o conftest.rxlib conftest.o 1>&AC_FD_CC'
5432 if { (eval echo "$as_me:$LINENO: \"$mh_dyn_link\"") >&5
5433 (eval $mh_dyn_link) 2>&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); } && test -s conftest.rxlib; then
5438 # LD_RXLIB1="${CC} -Wl,-G"
5458 if test "$AIX_DYN" = "yes"; then
5459 aix_exports="config.exports.aix"
5460 echo "" > $aix_exports
5463 if test "$ac_cv_header_dl_h" = "yes" -o "$ac_cv_header_dlfcn_h" = "yes" -o "$AIX_DYN" = "yes" -o "$BEOS_DYN" = "yes" -o "$DLFCNINCDIR" != "" -o "$DLFCNLIBDIR" != ""; then
5464 EXPS="1,2,3,4,5,6,7,8,9"
5467 SHL_TARGETS="${SHL_TARGETS} ${SHLPRE}${a}${SHLPST}"
5468 this=`echo $EXPS | cut -d, -f1`
5469 EXPS=`echo $EXPS | cut -d, -f2-`
5470 if test "$AIX_DYN" = "yes"; then
5471 echo "RXPACKEXP$this=$a.exp" >> $aix_exports
5472 echo "RXPACKEXPORTS$this=-bE:$a.exp" >> $aix_exports
5489 ac_config_files="$ac_config_files Makefile x11/$mymakefile x11/xcurses-config"
5491 cat >confcache <<\_ACEOF
5492 # This file is a shell script that caches the results of configure
5493 # tests run on this system so they can be shared between configure
5494 # scripts and configure runs, see configure's option --config-cache.
5495 # It is not useful on other systems. If it contains results you don't
5496 # want to keep, you may remove or edit it.
5498 # config.status only pays attention to the cache file if you give it
5499 # the --recheck option to rerun configure.
5501 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5502 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5507 # The following way of writing the cache mishandles newlines in values,
5508 # but we know of no workaround that is simple, portable, and efficient.
5509 # So, we kill variables containing newlines.
5510 # Ultrix sh set writes to stderr and can't be redirected directly,
5511 # and sets the high bit in the cache file unless we assign to the vars.
5513 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5514 eval ac_val=\$$ac_var
5518 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5519 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5522 _ | IFS | as_nl) ;; #(
5523 *) $as_unset $ac_var ;;
5529 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5530 *${as_nl}ac_space=\ *)
5531 # `set' does not quote correctly, so add quotes (double-quote
5532 # substitution turns \\\\ into \\, and sed turns \\ into \).
5535 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5538 # `set' quotes correctly as required by POSIX, so do not add quotes.
5539 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5548 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5550 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5552 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5553 if test -w "$cache_file"; then
5554 test "x$cache_file" != "x/dev/null" &&
5555 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5556 echo "$as_me: updating cache $cache_file" >&6;}
5557 cat confcache >$cache_file
5559 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5560 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5565 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5566 # Let make expand exec_prefix.
5567 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5569 DEFS=-DHAVE_CONFIG_H
5573 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5574 # 1. Remove the extension, and $U if already installed.
5575 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5576 ac_i=`echo "$ac_i" | sed "$ac_script"`
5577 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5578 # will be set to the directory where LIBOBJS objects are built.
5579 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5580 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5584 LTLIBOBJS=$ac_ltlibobjs
5588 : ${CONFIG_STATUS=./config.status}
5589 ac_clean_files_save=$ac_clean_files
5590 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5591 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5592 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5593 cat >$CONFIG_STATUS <<_ACEOF
5595 # Generated by $as_me.
5596 # Run this file to recreate the current configuration.
5597 # Compiler output produced by configure, useful for debugging
5598 # configure, is in config.log if it exists.
5603 SHELL=\${CONFIG_SHELL-$SHELL}
5606 cat >>$CONFIG_STATUS <<\_ACEOF
5607 ## --------------------- ##
5608 ## M4sh Initialization. ##
5609 ## --------------------- ##
5611 # Be more Bourne compatible
5612 DUALCASE=1; export DUALCASE # for MKS sh
5613 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5616 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5617 # is contrary to our usage. Disable this feature.
5618 alias -g '${1+"$@"}'='"$@"'
5619 setopt NO_GLOB_SUBST
5621 case `(set -o) 2>/dev/null` in
5622 *posix*) set -o posix ;;
5631 # Avoid depending upon Character Ranges.
5632 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5633 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5634 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5635 as_cr_digits='0123456789'
5636 as_cr_alnum=$as_cr_Letters$as_cr_digits
5638 # The user is always right.
5639 if test "${PATH_SEPARATOR+set}" != set; then
5640 echo "#! /bin/sh" >conf$$.sh
5641 echo "exit 0" >>conf$$.sh
5643 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5651 # Support unset when possible.
5652 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5660 # We need space, tab and new line, in precisely that order. Quoting is
5661 # there to prevent editors from complaining about space-tab.
5662 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5663 # splitting by setting IFS to empty value.)
5668 # Find who we are. Look in the path if we contain no directory separator.
5670 *[\\/]* ) as_myself=$0 ;;
5671 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675 test -z "$as_dir" && as_dir=.
5676 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5682 # We did not find ourselves, most probably we were run as `sh COMMAND'
5683 # in which case we are not to be found in the path.
5684 if test "x$as_myself" = x; then
5687 if test ! -f "$as_myself"; then
5688 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5689 { (exit 1); exit 1; }
5692 # Work around bugs in pre-3.0 UWIN ksh.
5693 for as_var in ENV MAIL MAILPATH
5694 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5702 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5703 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5704 LC_TELEPHONE LC_TIME
5706 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5707 eval $as_var=C; export $as_var
5709 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5713 # Required to use basename.
5714 if expr a : '\(a\)' >/dev/null 2>&1 &&
5715 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5721 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5722 as_basename=basename
5728 # Name of the executable.
5729 as_me=`$as_basename -- "$0" ||
5730 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5731 X"$0" : 'X\(//\)$' \| \
5732 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5734 sed '/^.*\/\([^/][^/]*\)\/*$/{
5755 test "x$as_lineno_1" != "x$as_lineno_2" &&
5756 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5758 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5759 # uniformly replaced by the line number. The first 'sed' inserts a
5760 # line-number line after each line using $LINENO; the second 'sed'
5761 # does the real work. The second script uses 'N' to pair each
5762 # line-number line with the line containing $LINENO, and appends
5763 # trailing '-' during substitution so that $LINENO is not a special
5765 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5766 # scripts with optimization help from Paolo Bonzini. Blame Lee
5767 # E. McMahon (1931-1989) for sed's syntax. :-)
5779 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5783 chmod +x "$as_me.lineno" ||
5784 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5785 { (exit 1); exit 1; }; }
5787 # Don't try to exec as it changes $[0], causing all sort of problems
5788 # (the dirname of $[0] is not the place where we might find the
5789 # original and so on. Autoconf is especially sensitive to this).
5791 # Exit status is that of the last command.
5796 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5802 ECHO_C= ECHO_N= ECHO_T=
5805 case `echo 'x\c'` in
5806 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5813 if expr a : '\(a\)' >/dev/null 2>&1 &&
5814 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5820 rm -f conf$$ conf$$.exe conf$$.file
5821 if test -d conf$$.dir; then
5822 rm -f conf$$.dir/conf$$.file
5828 if ln -s conf$$.file conf$$ 2>/dev/null; then
5830 # ... but there are two gotchas:
5831 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5832 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5833 # In both cases, we have to default to `cp -p'.
5834 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5836 elif ln conf$$.file conf$$ 2>/dev/null; then
5841 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5842 rmdir conf$$.dir 2>/dev/null
5844 if mkdir -p . 2>/dev/null; then
5847 test -d ./-p && rmdir ./-p
5851 if test -x / >/dev/null 2>&1; then
5854 if ls -dL / >/dev/null 2>&1; then
5861 if test -d "$1"; then
5867 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5868 ???[sx]*):;;*)false;;esac;fi
5872 as_executable_p=$as_test_x
5874 # Sed expression to map a string onto a valid CPP name.
5875 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5877 # Sed expression to map a string onto a valid variable name.
5878 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5883 # Save the log message, to keep $[0] and so on meaningful, and to
5884 # report actual input values of CONFIG_FILES etc. instead of their
5885 # values after options handling.
5887 This file was extended by PDCurses $as_me 3.4, which was
5888 generated by GNU Autoconf 2.61. Invocation command line was
5890 CONFIG_FILES = $CONFIG_FILES
5891 CONFIG_HEADERS = $CONFIG_HEADERS
5892 CONFIG_LINKS = $CONFIG_LINKS
5893 CONFIG_COMMANDS = $CONFIG_COMMANDS
5896 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5901 cat >>$CONFIG_STATUS <<_ACEOF
5902 # Files that config.status was made for.
5903 config_files="$ac_config_files"
5904 config_headers="$ac_config_headers"
5908 cat >>$CONFIG_STATUS <<\_ACEOF
5910 \`$as_me' instantiates files from templates according to the
5911 current configuration.
5913 Usage: $0 [OPTIONS] [FILE]...
5915 -h, --help print this help, then exit
5916 -V, --version print version number and configuration settings, then exit
5917 -q, --quiet do not print progress messages
5918 -d, --debug don't remove temporary files
5919 --recheck update $as_me by reconfiguring in the same conditions
5920 --file=FILE[:TEMPLATE]
5921 instantiate the configuration file FILE
5922 --header=FILE[:TEMPLATE]
5923 instantiate the configuration header FILE
5925 Configuration files:
5928 Configuration headers:
5931 Report bugs to <bug-autoconf@gnu.org>."
5934 cat >>$CONFIG_STATUS <<_ACEOF
5936 PDCurses config.status 3.4
5937 configured by $0, generated by GNU Autoconf 2.61,
5938 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5940 Copyright (C) 2006 Free Software Foundation, Inc.
5941 This config.status script is free software; the Free Software Foundation
5942 gives unlimited permission to copy, distribute and modify it."
5949 cat >>$CONFIG_STATUS <<\_ACEOF
5950 # If no file are specified by the user, then we need to provide default
5951 # value. By we need to know if files were specified by the user.
5957 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5958 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5969 # Handling of the options.
5970 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5972 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5973 echo "$ac_cs_version"; exit ;;
5974 --debug | --debu | --deb | --de | --d | -d )
5976 --file | --fil | --fi | --f )
5978 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5979 ac_need_defaults=false;;
5980 --header | --heade | --head | --hea )
5982 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5983 ac_need_defaults=false;;
5985 # Conflict between --help and --header
5986 { echo "$as_me: error: ambiguous option: $1
5987 Try \`$0 --help' for more information." >&2
5988 { (exit 1); exit 1; }; };;
5989 --help | --hel | -h )
5990 echo "$ac_cs_usage"; exit ;;
5991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5992 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5996 -*) { echo "$as_me: error: unrecognized option: $1
5997 Try \`$0 --help' for more information." >&2
5998 { (exit 1); exit 1; }; } ;;
6000 *) ac_config_targets="$ac_config_targets $1"
6001 ac_need_defaults=false ;;
6007 ac_configure_extra_args=
6009 if $ac_cs_silent; then
6011 ac_configure_extra_args="$ac_configure_extra_args --silent"
6015 cat >>$CONFIG_STATUS <<_ACEOF
6016 if \$ac_cs_recheck; then
6017 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6020 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6024 cat >>$CONFIG_STATUS <<\_ACEOF
6028 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6029 ## Running $as_me. ##
6035 cat >>$CONFIG_STATUS <<_ACEOF
6038 cat >>$CONFIG_STATUS <<\_ACEOF
6040 # Handling of arguments.
6041 for ac_config_target in $ac_config_targets
6043 case $ac_config_target in
6044 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6045 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6046 "x11/$mymakefile") CONFIG_FILES="$CONFIG_FILES x11/$mymakefile" ;;
6047 "x11/xcurses-config") CONFIG_FILES="$CONFIG_FILES x11/xcurses-config" ;;
6049 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6050 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6051 { (exit 1); exit 1; }; };;
6056 # If the user did not use the arguments to specify the items to instantiate,
6057 # then the envvar interface is used. Set only those that are not.
6058 # We use the long form for the default assignment because of an extremely
6059 # bizarre bug on SunOS 4.1.3.
6060 if $ac_need_defaults; then
6061 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6062 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6065 # Have a temporary directory for convenience. Make it in the build tree
6066 # simply because there is no reason against having it here, and in addition,
6067 # creating and moving files from /tmp can sometimes cause problems.
6068 # Hook for its removal unless debugging.
6069 # Note that there is a small window in which the directory will not be cleaned:
6070 # after its creation but before its name has been assigned to `$tmp'.
6074 trap 'exit_status=$?
6075 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6077 trap '{ (exit 1); exit 1; }' 1 2 13 15
6079 # Create a (secure) tmp directory for tmp files.
6082 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6083 test -n "$tmp" && test -d "$tmp"
6086 tmp=./conf$$-$RANDOM
6087 (umask 077 && mkdir "$tmp")
6090 echo "$me: cannot create a temporary directory in ." >&2
6091 { (exit 1); exit 1; }
6095 # Set up the sed scripts for CONFIG_FILES section.
6098 # No need to generate the scripts if there are no CONFIG_FILES.
6099 # This happens for instance when ./config.status config.h
6100 if test -n "$CONFIG_FILES"; then
6107 for ac_last_try in false false false false false :; do
6108 cat >conf$$subs.sed <<_ACEOF
6109 SHELL!$SHELL$ac_delim
6110 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6111 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6112 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6113 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6114 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6115 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6116 exec_prefix!$exec_prefix$ac_delim
6117 prefix!$prefix$ac_delim
6118 program_transform_name!$program_transform_name$ac_delim
6119 bindir!$bindir$ac_delim
6120 sbindir!$sbindir$ac_delim
6121 libexecdir!$libexecdir$ac_delim
6122 datarootdir!$datarootdir$ac_delim
6123 datadir!$datadir$ac_delim
6124 sysconfdir!$sysconfdir$ac_delim
6125 sharedstatedir!$sharedstatedir$ac_delim
6126 localstatedir!$localstatedir$ac_delim
6127 includedir!$includedir$ac_delim
6128 oldincludedir!$oldincludedir$ac_delim
6129 docdir!$docdir$ac_delim
6130 infodir!$infodir$ac_delim
6131 htmldir!$htmldir$ac_delim
6132 dvidir!$dvidir$ac_delim
6133 pdfdir!$pdfdir$ac_delim
6134 psdir!$psdir$ac_delim
6135 libdir!$libdir$ac_delim
6136 localedir!$localedir$ac_delim
6137 mandir!$mandir$ac_delim
6139 ECHO_C!$ECHO_C$ac_delim
6140 ECHO_N!$ECHO_N$ac_delim
6141 ECHO_T!$ECHO_T$ac_delim
6143 build_alias!$build_alias$ac_delim
6144 host_alias!$host_alias$ac_delim
6145 target_alias!$target_alias$ac_delim
6147 CFLAGS!$CFLAGS$ac_delim
6148 LDFLAGS!$LDFLAGS$ac_delim
6149 CPPFLAGS!$CPPFLAGS$ac_delim
6150 ac_ct_CC!$ac_ct_CC$ac_delim
6151 EXEEXT!$EXEEXT$ac_delim
6152 OBJEXT!$OBJEXT$ac_delim
6153 build!$build$ac_delim
6154 build_cpu!$build_cpu$ac_delim
6155 build_vendor!$build_vendor$ac_delim
6156 build_os!$build_os$ac_delim
6158 host_cpu!$host_cpu$ac_delim
6159 host_vendor!$host_vendor$ac_delim
6160 host_os!$host_os$ac_delim
6161 target!$target$ac_delim
6162 target_cpu!$target_cpu$ac_delim
6163 target_vendor!$target_vendor$ac_delim
6164 target_os!$target_os$ac_delim
6165 SYS_DEFS!$SYS_DEFS$ac_delim
6166 RANLIB!$RANLIB$ac_delim
6167 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
6168 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
6169 INSTALL_DATA!$INSTALL_DATA$ac_delim
6170 SET_MAKE!$SET_MAKE$ac_delim
6173 EGREP!$EGREP$ac_delim
6174 MH_EXTRA_LIBS!$MH_EXTRA_LIBS$ac_delim
6175 XMKMF!$XMKMF$ac_delim
6176 MH_XINC_DIR!$MH_XINC_DIR$ac_delim
6177 MH_XLIBS!$MH_XLIBS$ac_delim
6178 PURIFY!$PURIFY$ac_delim
6179 SHLPST!$SHLPST$ac_delim
6180 DYN_COMP!$DYN_COMP$ac_delim
6181 LD_RXLIB1!$LD_RXLIB1$ac_delim
6182 SHLPRE!$SHLPRE$ac_delim
6183 SHL_TARGETS!$SHL_TARGETS$ac_delim
6184 O2SAVE!$O2SAVE$ac_delim
6186 SAVE2O!$SAVE2O$ac_delim
6187 RXPACKEXPORTS!$RXPACKEXPORTS$ac_delim
6188 LIBOBJS!$LIBOBJS$ac_delim
6189 LTLIBOBJS!$LTLIBOBJS$ac_delim
6192 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then
6194 elif $ac_last_try; then
6195 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6196 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6197 { (exit 1); exit 1; }; }
6199 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6203 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6204 if test -n "$ac_eof"; then
6205 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6206 ac_eof=`expr $ac_eof + 1`
6209 cat >>$CONFIG_STATUS <<_ACEOF
6210 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6211 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6214 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6215 s/^/s,@/; s/!/@,|#_!!_#|/
6218 s/'"$ac_delim"'$/,g/; t
6220 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6221 ' >>$CONFIG_STATUS <conf$$subs.sed
6222 rm -f conf$$subs.sed
6223 cat >>$CONFIG_STATUS <<_ACEOF
6230 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6231 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6232 # trailing colons and then remove the whole line if VPATH becomes empty
6233 # (actually we leave an empty line to preserve line numbers).
6234 if test "x$srcdir" = x.; then
6235 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6239 s/^\([^=]*=[ ]*\):*/\1/
6245 cat >>$CONFIG_STATUS <<\_ACEOF
6246 fi # test -n "$CONFIG_FILES"
6249 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
6252 :[FHLC]) ac_mode=$ac_tag; continue;;
6254 case $ac_mode$ac_tag in
6256 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6257 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6258 { (exit 1); exit 1; }; };;
6259 :[FH]-) ac_tag=-:-;;
6260 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6277 -) ac_f="$tmp/stdin";;
6278 *) # Look for the file first in the build tree, then in the source tree
6279 # (if the path is not absolute). The absolute path cannot be DOS-style,
6280 # because $ac_f cannot contain `:'.
6284 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6286 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6287 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6288 { (exit 1); exit 1; }; };;
6290 ac_file_inputs="$ac_file_inputs $ac_f"
6293 # Let's still pretend it is `configure' which instantiates (i.e., don't
6294 # use $as_me), people would be surprised to read:
6295 # /* config.h. Generated by config.status. */
6296 configure_input="Generated from "`IFS=:
6297 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6298 if test x"$ac_file" != x-; then
6299 configure_input="$ac_file. $configure_input"
6300 { echo "$as_me:$LINENO: creating $ac_file" >&5
6301 echo "$as_me: creating $ac_file" >&6;}
6305 *:-:* | *:-) cat >"$tmp/stdin";;
6310 ac_dir=`$as_dirname -- "$ac_file" ||
6311 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6312 X"$ac_file" : 'X\(//\)[^/]' \| \
6313 X"$ac_file" : 'X\(//\)$' \| \
6314 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6335 -*) as_dir=./$as_dir;;
6337 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6341 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6342 *) as_qdir=$as_dir;;
6344 as_dirs="'$as_qdir' $as_dirs"
6345 as_dir=`$as_dirname -- "$as_dir" ||
6346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6347 X"$as_dir" : 'X\(//\)[^/]' \| \
6348 X"$as_dir" : 'X\(//\)$' \| \
6349 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6368 test -d "$as_dir" && break
6370 test -z "$as_dirs" || eval "mkdir $as_dirs"
6371 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6372 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6373 { (exit 1); exit 1; }; }; }
6377 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6379 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6380 # A ".." for each directory in $ac_dir_suffix.
6381 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6382 case $ac_top_builddir_sub in
6383 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6384 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6387 ac_abs_top_builddir=$ac_pwd
6388 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6389 # for backward compatibility:
6390 ac_top_builddir=$ac_top_build_prefix
6393 .) # We are building in place.
6395 ac_top_srcdir=$ac_top_builddir_sub
6396 ac_abs_top_srcdir=$ac_pwd ;;
6397 [\\/]* | ?:[\\/]* ) # Absolute name.
6398 ac_srcdir=$srcdir$ac_dir_suffix;
6399 ac_top_srcdir=$srcdir
6400 ac_abs_top_srcdir=$srcdir ;;
6402 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6403 ac_top_srcdir=$ac_top_build_prefix$srcdir
6404 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6406 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6416 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6417 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6421 cat >>$CONFIG_STATUS <<\_ACEOF
6422 # If the template does not know about datarootdir, expand it.
6423 # FIXME: This hack should be removed a few years after 2.60.
6424 ac_datarootdir_hack=; ac_datarootdir_seen=
6426 case `sed -n '/datarootdir/ {
6435 ' $ac_file_inputs` in
6436 *datarootdir*) ac_datarootdir_seen=yes;;
6437 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6438 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6439 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6441 cat >>$CONFIG_STATUS <<_ACEOF
6442 ac_datarootdir_hack='
6443 s&@datadir@&$datadir&g
6444 s&@docdir@&$docdir&g
6445 s&@infodir@&$infodir&g
6446 s&@localedir@&$localedir&g
6447 s&@mandir@&$mandir&g
6448 s&\\\${datarootdir}&$datarootdir&g' ;;
6452 # Neutralize VPATH when `$srcdir' = `.'.
6453 # Shell code in configure.ac might set extrasub.
6454 # FIXME: do we really want to maintain this feature?
6455 cat >>$CONFIG_STATUS <<_ACEOF
6459 cat >>$CONFIG_STATUS <<\_ACEOF
6461 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6462 s&@configure_input@&$configure_input&;t t
6463 s&@top_builddir@&$ac_top_builddir_sub&;t t
6464 s&@srcdir@&$ac_srcdir&;t t
6465 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6466 s&@top_srcdir@&$ac_top_srcdir&;t t
6467 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6468 s&@builddir@&$ac_builddir&;t t
6469 s&@abs_builddir@&$ac_abs_builddir&;t t
6470 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6471 s&@INSTALL@&$ac_INSTALL&;t t
6472 $ac_datarootdir_hack
6473 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
6475 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6476 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6477 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6478 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6479 which seems to be undefined. Please make sure it is defined." >&5
6480 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6481 which seems to be undefined. Please make sure it is defined." >&2;}
6485 -) cat "$tmp/out"; rm -f "$tmp/out";;
6486 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6495 # Transform confdefs.h into a sed script `conftest.defines', that
6496 # substitutes the proper values into config.h.in to produce config.h.
6497 rm -f conftest.defines conftest.tail
6498 # First, append a space to every undef/define line, to ease matching.
6499 echo 's/$/ /' >conftest.defines
6500 # Then, protect against being on the right side of a sed subst, or in
6501 # an unquoted here document, in config.status. If some macros were
6502 # called several times there might be several #defines for the same
6503 # symbol, which is useless. But do not sort them, since the last
6504 # AC_DEFINE must be honored.
6505 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6506 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
6507 # NAME is the cpp macro being defined, VALUE is the value it is being given.
6508 # PARAMS is the parameter list in the macro definition--in most cases, it's
6509 # just an empty string.
6510 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
6511 ac_dB='\\)[ (].*,\\1define\\2'
6519 s/^[ ]*#[ ]*define[ ][ ]*//
6524 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
6525 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
6526 ' >>conftest.defines
6528 # Remove the space that was appended to ease matching.
6529 # Then replace #undef with comments. This is necessary, for
6530 # example, in the case of _POSIX_SOURCE, which is predefined and required
6531 # on some systems where configure will not decide to define it.
6532 # (The regexp can be short, since the line contains either #define or #undef.)
6534 s,^[ #]*u.*,/* & */,' >>conftest.defines
6536 # Break up conftest.defines:
6539 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
6540 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
6541 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
6543 ac_in='$ac_file_inputs'
6544 ac_out='"$tmp/out1"'
6545 ac_nxt='"$tmp/out2"'
6549 # Write a here document:
6550 cat >>$CONFIG_STATUS <<_ACEOF
6551 # First, check the format of the line:
6552 cat >"\$tmp/defines.sed" <<\\CEOF
6553 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
6554 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
6558 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
6560 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
6561 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
6562 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
6563 grep . conftest.tail >/dev/null || break
6564 rm -f conftest.defines
6565 mv conftest.tail conftest.defines
6567 rm -f conftest.defines conftest.tail
6569 echo "ac_result=$ac_in" >>$CONFIG_STATUS
6570 cat >>$CONFIG_STATUS <<\_ACEOF
6571 if test x"$ac_file" != x-; then
6572 echo "/* $configure_input */" >"$tmp/config.h"
6573 cat "$ac_result" >>"$tmp/config.h"
6574 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
6575 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6576 echo "$as_me: $ac_file is unchanged" >&6;}
6579 mv "$tmp/config.h" $ac_file
6582 echo "/* $configure_input */"
6594 { (exit 0); exit 0; }
6596 chmod +x $CONFIG_STATUS
6597 ac_clean_files=$ac_clean_files_save
6600 # configure is writing to config.log, and then calls config.status.
6601 # config.status does its own redirection, appending to config.log.
6602 # Unfortunately, on DOS this fails, as config.log is still kept open
6603 # by configure, so config.status won't be able to write to it; its
6604 # output is simply discarded. So we exec the FD to /dev/null,
6605 # effectively closing config.log, so it can be properly (re)opened and
6606 # appended to by config.status. When coming back to configure, we
6607 # need to make the FD available again.
6608 if test "$no_create" != yes; then
6610 ac_config_status_args=
6611 test "$silent" = yes &&
6612 ac_config_status_args="$ac_config_status_args --quiet"
6614 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6616 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6617 # would make configure fail if this is the last instruction.
6618 $ac_cs_success || { (exit 1); exit 1; }
6624 mv x11/Makefile.aix x11/Makefile
6625 { echo "$as_me:$LINENO: result: renaming x11/Makefile.aix to x11/Makefile" >&5
6626 echo "${ECHO_T}renaming x11/Makefile.aix to x11/Makefile" >&6; }
6633 cat >>confdefs.h <<\_ACEOF
6634 #define PDC_MAX_SIGNALS
6639 cat >>confdefs.h <<\_ACEOF
6640 #define HAVE_DECKEYSYM_H
6645 cat >>confdefs.h <<\_ACEOF
6646 #define HAVE_SUNKEYSYM_H
6651 cat >>confdefs.h <<\_ACEOF
6657 cat >>confdefs.h <<\_ACEOF
6658 #define HAVE_XK_KP_DELETE
6663 cat >>confdefs.h <<\_ACEOF
6664 #define HAVE_XK_KP_INSERT
6669 cat >>confdefs.h <<\_ACEOF
6670 #define HAVE_XK_KP_END
6675 cat >>confdefs.h <<\_ACEOF
6676 #define HAVE_XK_KP_DOWN
6681 cat >>confdefs.h <<\_ACEOF
6682 #define HAVE_XK_KP_NEXT
6687 cat >>confdefs.h <<\_ACEOF
6688 #define HAVE_XK_KP_LEFT
6693 cat >>confdefs.h <<\_ACEOF
6694 #define HAVE_XK_KP_RIGHT
6699 cat >>confdefs.h <<\_ACEOF
6700 #define HAVE_XK_KP_HOME
6705 cat >>confdefs.h <<\_ACEOF
6706 #define HAVE_XK_KP_UP
6711 cat >>confdefs.h <<\_ACEOF
6712 #define HAVE_XK_KP_PRIOR
6717 cat >>confdefs.h <<\_ACEOF
6718 #define HAVE_XK_KP_BEGIN
6723 cat >>confdefs.h <<\_ACEOF
6729 cat >>confdefs.h <<\_ACEOF
6735 cat >>confdefs.h <<\_ACEOF
6736 #define XPOINTER_TYPEDEFED