1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for PDCurses 3.4.
4#
5# Report bugs to <wmcbrine@gmail.com>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	# Preserve -v and -x to the replacement shell.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	case $- in # ((((
226	  *v*x* | *x*v* ) as_opts=-vx ;;
227	  *v* ) as_opts=-v ;;
228	  *x* ) as_opts=-x ;;
229	  * ) as_opts= ;;
230	esac
231	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and wmcbrine@gmail.com
242$0: about your system, including any error possibly output
243$0: before this message. Then install a modern shell, or
244$0: manually run the script under such a shell if you do
245$0: have one."
246  fi
247  exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265  { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274  return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282  set +e
283  as_fn_set_status $1
284  exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293  case $as_dir in #(
294  -*) as_dir=./$as_dir;;
295  esac
296  test -d "$as_dir" || eval $as_mkdir_p || {
297    as_dirs=
298    while :; do
299      case $as_dir in #(
300      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301      *) as_qdir=$as_dir;;
302      esac
303      as_dirs="'$as_qdir' $as_dirs"
304      as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306	 X"$as_dir" : 'X\(//\)[^/]' \| \
307	 X"$as_dir" : 'X\(//\)$' \| \
308	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\/\)[^/].*/{
315	    s//\1/
316	    q
317	  }
318	  /^X\(\/\/\)$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\).*/{
323	    s//\1/
324	    q
325	  }
326	  s/.*/./; q'`
327      test -d "$as_dir" && break
328    done
329    test -z "$as_dirs" || eval "mkdir $as_dirs"
330  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341  eval 'as_fn_append ()
342  {
343    eval $1+=\$2
344  }'
345else
346  as_fn_append ()
347  {
348    eval $1=\$$1\$2
349  }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358  eval 'as_fn_arith ()
359  {
360    as_val=$(( $* ))
361  }'
362else
363  as_fn_arith ()
364  {
365    as_val=`expr "$@" || test $? -eq 1`
366  }
367fi # as_fn_arith
368
369
370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374# script with STATUS, using 1 if that was 0.
375as_fn_error ()
376{
377  as_status=$1; test $as_status -eq 0 && as_status=1
378  if test "$4"; then
379    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381  fi
382  $as_echo "$as_me: error: $2" >&2
383  as_fn_exit $as_status
384} # as_fn_error
385
386if expr a : '\(a\)' >/dev/null 2>&1 &&
387   test "X`expr 00001 : '.*\(...\)'`" = X001; then
388  as_expr=expr
389else
390  as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394  as_basename=basename
395else
396  as_basename=false
397fi
398
399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400  as_dirname=dirname
401else
402  as_dirname=false
403fi
404
405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407	 X"$0" : 'X\(//\)$' \| \
408	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410    sed '/^.*\/\([^/][^/]*\)\/*$/{
411	    s//\1/
412	    q
413	  }
414	  /^X\/\(\/\/\)$/{
415	    s//\1/
416	    q
417	  }
418	  /^X\/\(\/\).*/{
419	    s//\1/
420	    q
421	  }
422	  s/.*/./; q'`
423
424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432  as_lineno_1=$LINENO as_lineno_1a=$LINENO
433  as_lineno_2=$LINENO as_lineno_2a=$LINENO
434  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437  sed -n '
438    p
439    /[$]LINENO/=
440  ' <$as_myself |
441    sed '
442      s/[$]LINENO.*/&-/
443      t lineno
444      b
445      :lineno
446      N
447      :loop
448      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449      t loop
450      s/-\n.*//
451    ' >$as_me.lineno &&
452  chmod +x "$as_me.lineno" ||
453    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455  # Don't try to exec as it changes $[0], causing all sort of problems
456  # (the dirname of $[0] is not the place where we might find the
457  # original and so on.  Autoconf is especially sensitive to this).
458  . "./$as_me.lineno"
459  # Exit status is that of the last command.
460  exit
461}
462
463ECHO_C= ECHO_N= ECHO_T=
464case `echo -n x` in #(((((
465-n*)
466  case `echo 'xy\c'` in
467  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
468  xy)  ECHO_C='\c';;
469  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470       ECHO_T='	';;
471  esac;;
472*)
473  ECHO_N='-n';;
474esac
475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478  rm -f conf$$.dir/conf$$.file
479else
480  rm -f conf$$.dir
481  mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484  if ln -s conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s='ln -s'
486    # ... but there are two gotchas:
487    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489    # In both cases, we have to default to `cp -p'.
490    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491      as_ln_s='cp -p'
492  elif ln conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s=ln
494  else
495    as_ln_s='cp -p'
496  fi
497else
498  as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
504  as_mkdir_p='mkdir -p "$as_dir"'
505else
506  test -d ./-p && rmdir ./-p
507  as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511  as_test_x='test -x'
512else
513  if ls -dL / >/dev/null 2>&1; then
514    as_ls_L_option=L
515  else
516    as_ls_L_option=
517  fi
518  as_test_x='
519    eval sh -c '\''
520      if test -d "$1"; then
521	test -d "$1/.";
522      else
523	case $1 in #(
524	-*)set "./$1";;
525	esac;
526	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527	???[sx]*):;;*)false;;esac;fi
528    '\'' sh
529  '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540test -n "$DJDIR" || exec 7<&0 </dev/null
541exec 6>&1
542
543# Name of the host.
544# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
552ac_clean_files=
553ac_config_libobj_dir=.
554LIBOBJS=
555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
559
560# Identity of this package.
561PACKAGE_NAME='PDCurses'
562PACKAGE_TARNAME='PDCurses'
563PACKAGE_VERSION='3.4'
564PACKAGE_STRING='PDCurses 3.4'
565PACKAGE_BUGREPORT='wmcbrine@gmail.com'
566PACKAGE_URL=''
567
568ac_unique_file="pdcx11.h"
569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
572#ifdef HAVE_SYS_TYPES_H
573# include <sys/types.h>
574#endif
575#ifdef HAVE_SYS_STAT_H
576# include <sys/stat.h>
577#endif
578#ifdef STDC_HEADERS
579# include <stdlib.h>
580# include <stddef.h>
581#else
582# ifdef HAVE_STDLIB_H
583#  include <stdlib.h>
584# endif
585#endif
586#ifdef HAVE_STRING_H
587# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588#  include <memory.h>
589# endif
590# include <string.h>
591#endif
592#ifdef HAVE_STRINGS_H
593# include <strings.h>
594#endif
595#ifdef HAVE_INTTYPES_H
596# include <inttypes.h>
597#endif
598#ifdef HAVE_STDINT_H
599# include <stdint.h>
600#endif
601#ifdef HAVE_UNISTD_H
602# include <unistd.h>
603#endif"
604
605ac_subst_vars='LTLIBOBJS
606LIBOBJS
607bitflag
608libdir32
609libdir64
610MY_PREFIX
611binarybitprefix
612MACH_ARCH
613MYDISTRO
614lsb_release
615RPMTOPDIR
616mh_rpm_exists
617CAN_USE_ABI
618BASE_BINARY
619OTHER_INSTALLS
620BASE_INSTALL
621RXPACKEXPORTS
622SAVE2O
623CC2O
624O2SAVE
625SHL_TARGETS
626SHLPRE
627LD_RXLIB1
628DYN_COMP
629SHLPST
630PURIFY
631PDC_WIDE
632MH_XLIBS
633MH_XINC_DIR
634XMKMF
635MH_EXTRA_LIBS
636EGREP
637GREP
638CPP
639SET_MAKE
640INSTALL_DATA
641INSTALL_SCRIPT
642INSTALL_PROGRAM
643RANLIB
644LN_S
645EEXTRA
646SYS_DEFS
647valid_arch_flags
648target_os
649target_vendor
650target_cpu
651target
652host_os
653host_vendor
654host_cpu
655host
656build_os
657build_vendor
658build_cpu
659build
660OBJEXT
661EXEEXT
662ac_ct_CC
663CPPFLAGS
664LDFLAGS
665CFLAGS
666CC
667target_alias
668host_alias
669build_alias
670LIBS
671ECHO_T
672ECHO_N
673ECHO_C
674DEFS
675mandir
676localedir
677libdir
678psdir
679pdfdir
680dvidir
681htmldir
682infodir
683docdir
684oldincludedir
685includedir
686localstatedir
687sharedstatedir
688sysconfdir
689datadir
690datarootdir
691libexecdir
692sbindir
693bindir
694program_transform_name
695prefix
696exec_prefix
697PACKAGE_URL
698PACKAGE_BUGREPORT
699PACKAGE_STRING
700PACKAGE_VERSION
701PACKAGE_TARNAME
702PACKAGE_NAME
703PATH_SEPARATOR
704SHELL'
705ac_subst_files=''
706ac_user_opts='
707enable_option_checking
708with_arch
709with_x
710enable_debug
711enable_widec
712enable_xim
713enable_force_utf8
714enable_purify
715with_xaw3d
716with_nextaw
717enable_32bit
718enable_64bit
719enable_libdir_change
720'
721      ac_precious_vars='build_alias
722host_alias
723target_alias
724CC
725CFLAGS
726LDFLAGS
727LIBS
728CPPFLAGS
729CPP
730XMKMF'
731
732
733# Initialize some variables set by options.
734ac_init_help=
735ac_init_version=false
736ac_unrecognized_opts=
737ac_unrecognized_sep=
738# The variables have the same names as the options, with
739# dashes changed to underlines.
740cache_file=/dev/null
741exec_prefix=NONE
742no_create=
743no_recursion=
744prefix=NONE
745program_prefix=NONE
746program_suffix=NONE
747program_transform_name=s,x,x,
748silent=
749site=
750srcdir=
751verbose=
752x_includes=NONE
753x_libraries=NONE
754
755# Installation directory options.
756# These are left unexpanded so users can "make install exec_prefix=/foo"
757# and all the variables that are supposed to be based on exec_prefix
758# by default will actually change.
759# Use braces instead of parens because sh, perl, etc. also accept them.
760# (The list follows the same order as the GNU Coding Standards.)
761bindir='${exec_prefix}/bin'
762sbindir='${exec_prefix}/sbin'
763libexecdir='${exec_prefix}/libexec'
764datarootdir='${prefix}/share'
765datadir='${datarootdir}'
766sysconfdir='${prefix}/etc'
767sharedstatedir='${prefix}/com'
768localstatedir='${prefix}/var'
769includedir='${prefix}/include'
770oldincludedir='/usr/include'
771docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
772infodir='${datarootdir}/info'
773htmldir='${docdir}'
774dvidir='${docdir}'
775pdfdir='${docdir}'
776psdir='${docdir}'
777libdir='${exec_prefix}/lib'
778localedir='${datarootdir}/locale'
779mandir='${datarootdir}/man'
780
781ac_prev=
782ac_dashdash=
783for ac_option
784do
785  # If the previous option needs an argument, assign it.
786  if test -n "$ac_prev"; then
787    eval $ac_prev=\$ac_option
788    ac_prev=
789    continue
790  fi
791
792  case $ac_option in
793  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
794  *=)   ac_optarg= ;;
795  *)    ac_optarg=yes ;;
796  esac
797
798  # Accept the important Cygnus configure options, so we can diagnose typos.
799
800  case $ac_dashdash$ac_option in
801  --)
802    ac_dashdash=yes ;;
803
804  -bindir | --bindir | --bindi | --bind | --bin | --bi)
805    ac_prev=bindir ;;
806  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
807    bindir=$ac_optarg ;;
808
809  -build | --build | --buil | --bui | --bu)
810    ac_prev=build_alias ;;
811  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
812    build_alias=$ac_optarg ;;
813
814  -cache-file | --cache-file | --cache-fil | --cache-fi \
815  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
816    ac_prev=cache_file ;;
817  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
818  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
819    cache_file=$ac_optarg ;;
820
821  --config-cache | -C)
822    cache_file=config.cache ;;
823
824  -datadir | --datadir | --datadi | --datad)
825    ac_prev=datadir ;;
826  -datadir=* | --datadir=* | --datadi=* | --datad=*)
827    datadir=$ac_optarg ;;
828
829  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
830  | --dataroo | --dataro | --datar)
831    ac_prev=datarootdir ;;
832  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
833  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
834    datarootdir=$ac_optarg ;;
835
836  -disable-* | --disable-*)
837    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
838    # Reject names that are not valid shell variable names.
839    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
840      as_fn_error $? "invalid feature name: $ac_useropt"
841    ac_useropt_orig=$ac_useropt
842    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
843    case $ac_user_opts in
844      *"
845"enable_$ac_useropt"
846"*) ;;
847      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
848	 ac_unrecognized_sep=', ';;
849    esac
850    eval enable_$ac_useropt=no ;;
851
852  -docdir | --docdir | --docdi | --doc | --do)
853    ac_prev=docdir ;;
854  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
855    docdir=$ac_optarg ;;
856
857  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
858    ac_prev=dvidir ;;
859  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
860    dvidir=$ac_optarg ;;
861
862  -enable-* | --enable-*)
863    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
864    # Reject names that are not valid shell variable names.
865    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866      as_fn_error $? "invalid feature name: $ac_useropt"
867    ac_useropt_orig=$ac_useropt
868    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869    case $ac_user_opts in
870      *"
871"enable_$ac_useropt"
872"*) ;;
873      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
874	 ac_unrecognized_sep=', ';;
875    esac
876    eval enable_$ac_useropt=\$ac_optarg ;;
877
878  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
879  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
880  | --exec | --exe | --ex)
881    ac_prev=exec_prefix ;;
882  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
883  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
884  | --exec=* | --exe=* | --ex=*)
885    exec_prefix=$ac_optarg ;;
886
887  -gas | --gas | --ga | --g)
888    # Obsolete; use --with-gas.
889    with_gas=yes ;;
890
891  -help | --help | --hel | --he | -h)
892    ac_init_help=long ;;
893  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
894    ac_init_help=recursive ;;
895  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
896    ac_init_help=short ;;
897
898  -host | --host | --hos | --ho)
899    ac_prev=host_alias ;;
900  -host=* | --host=* | --hos=* | --ho=*)
901    host_alias=$ac_optarg ;;
902
903  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
904    ac_prev=htmldir ;;
905  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
906  | --ht=*)
907    htmldir=$ac_optarg ;;
908
909  -includedir | --includedir | --includedi | --included | --include \
910  | --includ | --inclu | --incl | --inc)
911    ac_prev=includedir ;;
912  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
913  | --includ=* | --inclu=* | --incl=* | --inc=*)
914    includedir=$ac_optarg ;;
915
916  -infodir | --infodir | --infodi | --infod | --info | --inf)
917    ac_prev=infodir ;;
918  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
919    infodir=$ac_optarg ;;
920
921  -libdir | --libdir | --libdi | --libd)
922    ac_prev=libdir ;;
923  -libdir=* | --libdir=* | --libdi=* | --libd=*)
924    libdir=$ac_optarg ;;
925
926  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
927  | --libexe | --libex | --libe)
928    ac_prev=libexecdir ;;
929  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
930  | --libexe=* | --libex=* | --libe=*)
931    libexecdir=$ac_optarg ;;
932
933  -localedir | --localedir | --localedi | --localed | --locale)
934    ac_prev=localedir ;;
935  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
936    localedir=$ac_optarg ;;
937
938  -localstatedir | --localstatedir | --localstatedi | --localstated \
939  | --localstate | --localstat | --localsta | --localst | --locals)
940    ac_prev=localstatedir ;;
941  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
942  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
943    localstatedir=$ac_optarg ;;
944
945  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
946    ac_prev=mandir ;;
947  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
948    mandir=$ac_optarg ;;
949
950  -nfp | --nfp | --nf)
951    # Obsolete; use --without-fp.
952    with_fp=no ;;
953
954  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
955  | --no-cr | --no-c | -n)
956    no_create=yes ;;
957
958  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
959  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
960    no_recursion=yes ;;
961
962  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
963  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
964  | --oldin | --oldi | --old | --ol | --o)
965    ac_prev=oldincludedir ;;
966  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
967  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
968  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
969    oldincludedir=$ac_optarg ;;
970
971  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
972    ac_prev=prefix ;;
973  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
974    prefix=$ac_optarg ;;
975
976  -program-prefix | --program-prefix | --program-prefi | --program-pref \
977  | --program-pre | --program-pr | --program-p)
978    ac_prev=program_prefix ;;
979  -program-prefix=* | --program-prefix=* | --program-prefi=* \
980  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
981    program_prefix=$ac_optarg ;;
982
983  -program-suffix | --program-suffix | --program-suffi | --program-suff \
984  | --program-suf | --program-su | --program-s)
985    ac_prev=program_suffix ;;
986  -program-suffix=* | --program-suffix=* | --program-suffi=* \
987  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
988    program_suffix=$ac_optarg ;;
989
990  -program-transform-name | --program-transform-name \
991  | --program-transform-nam | --program-transform-na \
992  | --program-transform-n | --program-transform- \
993  | --program-transform | --program-transfor \
994  | --program-transfo | --program-transf \
995  | --program-trans | --program-tran \
996  | --progr-tra | --program-tr | --program-t)
997    ac_prev=program_transform_name ;;
998  -program-transform-name=* | --program-transform-name=* \
999  | --program-transform-nam=* | --program-transform-na=* \
1000  | --program-transform-n=* | --program-transform-=* \
1001  | --program-transform=* | --program-transfor=* \
1002  | --program-transfo=* | --program-transf=* \
1003  | --program-trans=* | --program-tran=* \
1004  | --progr-tra=* | --program-tr=* | --program-t=*)
1005    program_transform_name=$ac_optarg ;;
1006
1007  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1008    ac_prev=pdfdir ;;
1009  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1010    pdfdir=$ac_optarg ;;
1011
1012  -psdir | --psdir | --psdi | --psd | --ps)
1013    ac_prev=psdir ;;
1014  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1015    psdir=$ac_optarg ;;
1016
1017  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1018  | -silent | --silent | --silen | --sile | --sil)
1019    silent=yes ;;
1020
1021  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1022    ac_prev=sbindir ;;
1023  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1024  | --sbi=* | --sb=*)
1025    sbindir=$ac_optarg ;;
1026
1027  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1028  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1029  | --sharedst | --shareds | --shared | --share | --shar \
1030  | --sha | --sh)
1031    ac_prev=sharedstatedir ;;
1032  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1033  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1034  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1035  | --sha=* | --sh=*)
1036    sharedstatedir=$ac_optarg ;;
1037
1038  -site | --site | --sit)
1039    ac_prev=site ;;
1040  -site=* | --site=* | --sit=*)
1041    site=$ac_optarg ;;
1042
1043  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1044    ac_prev=srcdir ;;
1045  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1046    srcdir=$ac_optarg ;;
1047
1048  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1049  | --syscon | --sysco | --sysc | --sys | --sy)
1050    ac_prev=sysconfdir ;;
1051  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1052  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1053    sysconfdir=$ac_optarg ;;
1054
1055  -target | --target | --targe | --targ | --tar | --ta | --t)
1056    ac_prev=target_alias ;;
1057  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1058    target_alias=$ac_optarg ;;
1059
1060  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1061    verbose=yes ;;
1062
1063  -version | --version | --versio | --versi | --vers | -V)
1064    ac_init_version=: ;;
1065
1066  -with-* | --with-*)
1067    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1068    # Reject names that are not valid shell variable names.
1069    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070      as_fn_error $? "invalid package name: $ac_useropt"
1071    ac_useropt_orig=$ac_useropt
1072    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073    case $ac_user_opts in
1074      *"
1075"with_$ac_useropt"
1076"*) ;;
1077      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1078	 ac_unrecognized_sep=', ';;
1079    esac
1080    eval with_$ac_useropt=\$ac_optarg ;;
1081
1082  -without-* | --without-*)
1083    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1084    # Reject names that are not valid shell variable names.
1085    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086      as_fn_error $? "invalid package name: $ac_useropt"
1087    ac_useropt_orig=$ac_useropt
1088    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089    case $ac_user_opts in
1090      *"
1091"with_$ac_useropt"
1092"*) ;;
1093      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1094	 ac_unrecognized_sep=', ';;
1095    esac
1096    eval with_$ac_useropt=no ;;
1097
1098  --x)
1099    # Obsolete; use --with-x.
1100    with_x=yes ;;
1101
1102  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1103  | --x-incl | --x-inc | --x-in | --x-i)
1104    ac_prev=x_includes ;;
1105  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1106  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1107    x_includes=$ac_optarg ;;
1108
1109  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1110  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1111    ac_prev=x_libraries ;;
1112  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1113  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1114    x_libraries=$ac_optarg ;;
1115
1116  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1117Try \`$0 --help' for more information"
1118    ;;
1119
1120  *=*)
1121    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1122    # Reject names that are not valid shell variable names.
1123    case $ac_envvar in #(
1124      '' | [0-9]* | *[!_$as_cr_alnum]* )
1125      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1126    esac
1127    eval $ac_envvar=\$ac_optarg
1128    export $ac_envvar ;;
1129
1130  *)
1131    # FIXME: should be removed in autoconf 3.0.
1132    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1133    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1134      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1135    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1136    ;;
1137
1138  esac
1139done
1140
1141if test -n "$ac_prev"; then
1142  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1143  as_fn_error $? "missing argument to $ac_option"
1144fi
1145
1146if test -n "$ac_unrecognized_opts"; then
1147  case $enable_option_checking in
1148    no) ;;
1149    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1150    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1151  esac
1152fi
1153
1154# Check all directory arguments for consistency.
1155for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1156		datadir sysconfdir sharedstatedir localstatedir includedir \
1157		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1158		libdir localedir mandir
1159do
1160  eval ac_val=\$$ac_var
1161  # Remove trailing slashes.
1162  case $ac_val in
1163    */ )
1164      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1165      eval $ac_var=\$ac_val;;
1166  esac
1167  # Be sure to have absolute directory names.
1168  case $ac_val in
1169    [\\/$]* | ?:[\\/]* )  continue;;
1170    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1171  esac
1172  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1173done
1174
1175# There might be people who depend on the old broken behavior: `$host'
1176# used to hold the argument of --host etc.
1177# FIXME: To remove some day.
1178build=$build_alias
1179host=$host_alias
1180target=$target_alias
1181
1182# FIXME: To remove some day.
1183if test "x$host_alias" != x; then
1184  if test "x$build_alias" = x; then
1185    cross_compiling=maybe
1186    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1187    If a cross compiler is detected then cross compile mode will be used" >&2
1188  elif test "x$build_alias" != "x$host_alias"; then
1189    cross_compiling=yes
1190  fi
1191fi
1192
1193ac_tool_prefix=
1194test -n "$host_alias" && ac_tool_prefix=$host_alias-
1195
1196test "$silent" = yes && exec 6>/dev/null
1197
1198
1199ac_pwd=`pwd` && test -n "$ac_pwd" &&
1200ac_ls_di=`ls -di .` &&
1201ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1202  as_fn_error $? "working directory cannot be determined"
1203test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1204  as_fn_error $? "pwd does not report name of working directory"
1205
1206
1207# Find the source files, if location was not specified.
1208if test -z "$srcdir"; then
1209  ac_srcdir_defaulted=yes
1210  # Try the directory containing this script, then the parent directory.
1211  ac_confdir=`$as_dirname -- "$as_myself" ||
1212$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1213	 X"$as_myself" : 'X\(//\)[^/]' \| \
1214	 X"$as_myself" : 'X\(//\)$' \| \
1215	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1216$as_echo X"$as_myself" |
1217    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1218	    s//\1/
1219	    q
1220	  }
1221	  /^X\(\/\/\)[^/].*/{
1222	    s//\1/
1223	    q
1224	  }
1225	  /^X\(\/\/\)$/{
1226	    s//\1/
1227	    q
1228	  }
1229	  /^X\(\/\).*/{
1230	    s//\1/
1231	    q
1232	  }
1233	  s/.*/./; q'`
1234  srcdir=$ac_confdir
1235  if test ! -r "$srcdir/$ac_unique_file"; then
1236    srcdir=..
1237  fi
1238else
1239  ac_srcdir_defaulted=no
1240fi
1241if test ! -r "$srcdir/$ac_unique_file"; then
1242  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1243  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1244fi
1245ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1246ac_abs_confdir=`(
1247	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1248	pwd)`
1249# When building in place, set srcdir=.
1250if test "$ac_abs_confdir" = "$ac_pwd"; then
1251  srcdir=.
1252fi
1253# Remove unnecessary trailing slashes from srcdir.
1254# Double slashes in file names in object file debugging info
1255# mess up M-x gdb in Emacs.
1256case $srcdir in
1257*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1258esac
1259for ac_var in $ac_precious_vars; do
1260  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1261  eval ac_env_${ac_var}_value=\$${ac_var}
1262  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1263  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1264done
1265
1266#
1267# Report the --help message.
1268#
1269if test "$ac_init_help" = "long"; then
1270  # Omit some internal or obsolete options to make the list less imposing.
1271  # This message is too long to be a string in the A/UX 3.1 sh.
1272  cat <<_ACEOF
1273\`configure' configures PDCurses 3.4 to adapt to many kinds of systems.
1274
1275Usage: $0 [OPTION]... [VAR=VALUE]...
1276
1277To assign environment variables (e.g., CC, CFLAGS...), specify them as
1278VAR=VALUE.  See below for descriptions of some of the useful variables.
1279
1280Defaults for the options are specified in brackets.
1281
1282Configuration:
1283  -h, --help              display this help and exit
1284      --help=short        display options specific to this package
1285      --help=recursive    display the short help of all the included packages
1286  -V, --version           display version information and exit
1287  -q, --quiet, --silent   do not print \`checking ...' messages
1288      --cache-file=FILE   cache test results in FILE [disabled]
1289  -C, --config-cache      alias for \`--cache-file=config.cache'
1290  -n, --no-create         do not create output files
1291      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1292
1293Installation directories:
1294  --prefix=PREFIX         install architecture-independent files in PREFIX
1295                          [$ac_default_prefix]
1296  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1297                          [PREFIX]
1298
1299By default, \`make install' will install all the files in
1300\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1301an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1302for instance \`--prefix=\$HOME'.
1303
1304For better control, use the options below.
1305
1306Fine tuning of the installation directories:
1307  --bindir=DIR            user executables [EPREFIX/bin]
1308  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1309  --libexecdir=DIR        program executables [EPREFIX/libexec]
1310  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1311  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1312  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1313  --libdir=DIR            object code libraries [EPREFIX/lib]
1314  --includedir=DIR        C header files [PREFIX/include]
1315  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1316  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1317  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1318  --infodir=DIR           info documentation [DATAROOTDIR/info]
1319  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1320  --mandir=DIR            man documentation [DATAROOTDIR/man]
1321  --docdir=DIR            documentation root [DATAROOTDIR/doc/PDCurses]
1322  --htmldir=DIR           html documentation [DOCDIR]
1323  --dvidir=DIR            dvi documentation [DOCDIR]
1324  --pdfdir=DIR            pdf documentation [DOCDIR]
1325  --psdir=DIR             ps documentation [DOCDIR]
1326_ACEOF
1327
1328  cat <<\_ACEOF
1329
1330X features:
1331  --x-includes=DIR    X include files are in DIR
1332  --x-libraries=DIR   X library files are in DIR
1333
1334System types:
1335  --build=BUILD     configure for building on BUILD [guessed]
1336  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1337  --target=TARGET   configure for building compilers for TARGET [HOST]
1338_ACEOF
1339fi
1340
1341if test -n "$ac_init_help"; then
1342  case $ac_init_help in
1343     short | recursive ) echo "Configuration of PDCurses 3.4:";;
1344   esac
1345  cat <<\_ACEOF
1346
1347Optional Features:
1348  --disable-option-checking  ignore unrecognized --enable/--with options
1349  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1350  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1351  --enable-debug          turn on debugging
1352  --enable-widec          include support for wide characters
1353  --enable-xim            include support for XIM
1354  --enable-force-utf8     override locale settings; use UTF-8
1355  --enable-purify         link with Purify (TM)
1356  --enable-32bit          specify if 32bit libraries are to be used
1357  --enable-64bit          specify if 64bit libraries are to be used
1358  --enable-libdir-change  specify --disable-libdir-change if building a .deb
1359
1360Optional Packages:
1361  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1362  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1363  --with-arch=option      build universal binaries on OS X, option: one of "all 32bit 64bit intel ppc ppc64 x86_64 i386"
1364  --with-x                use the X Window System
1365  --with-xaw3d            link with Xaw3d
1366  --with-nextaw           link with neXtaw
1367
1368Some influential environment variables:
1369  CC          C compiler command
1370  CFLAGS      C compiler flags
1371  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1372              nonstandard directory <lib dir>
1373  LIBS        libraries to pass to the linker, e.g. -l<library>
1374  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1375              you have headers in a nonstandard directory <include dir>
1376  CPP         C preprocessor
1377  XMKMF       Path to xmkmf, Makefile generator for X Window System
1378
1379Use these variables to override the choices made by `configure' or to help
1380it to find libraries and programs with nonstandard names/locations.
1381
1382Report bugs to <wmcbrine@gmail.com>.
1383_ACEOF
1384ac_status=$?
1385fi
1386
1387if test "$ac_init_help" = "recursive"; then
1388  # If there are subdirs, report their specific --help.
1389  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1390    test -d "$ac_dir" ||
1391      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1392      continue
1393    ac_builddir=.
1394
1395case "$ac_dir" in
1396.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397*)
1398  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1399  # A ".." for each directory in $ac_dir_suffix.
1400  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1401  case $ac_top_builddir_sub in
1402  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1404  esac ;;
1405esac
1406ac_abs_top_builddir=$ac_pwd
1407ac_abs_builddir=$ac_pwd$ac_dir_suffix
1408# for backward compatibility:
1409ac_top_builddir=$ac_top_build_prefix
1410
1411case $srcdir in
1412  .)  # We are building in place.
1413    ac_srcdir=.
1414    ac_top_srcdir=$ac_top_builddir_sub
1415    ac_abs_top_srcdir=$ac_pwd ;;
1416  [\\/]* | ?:[\\/]* )  # Absolute name.
1417    ac_srcdir=$srcdir$ac_dir_suffix;
1418    ac_top_srcdir=$srcdir
1419    ac_abs_top_srcdir=$srcdir ;;
1420  *) # Relative name.
1421    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1422    ac_top_srcdir=$ac_top_build_prefix$srcdir
1423    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1424esac
1425ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1426
1427    cd "$ac_dir" || { ac_status=$?; continue; }
1428    # Check for guested configure.
1429    if test -f "$ac_srcdir/configure.gnu"; then
1430      echo &&
1431      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1432    elif test -f "$ac_srcdir/configure"; then
1433      echo &&
1434      $SHELL "$ac_srcdir/configure" --help=recursive
1435    else
1436      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1437    fi || ac_status=$?
1438    cd "$ac_pwd" || { ac_status=$?; break; }
1439  done
1440fi
1441
1442test -n "$ac_init_help" && exit $ac_status
1443if $ac_init_version; then
1444  cat <<\_ACEOF
1445PDCurses configure 3.4
1446generated by GNU Autoconf 2.68
1447
1448Copyright (C) 2010 Free Software Foundation, Inc.
1449This configure script is free software; the Free Software Foundation
1450gives unlimited permission to copy, distribute and modify it.
1451_ACEOF
1452  exit
1453fi
1454
1455## ------------------------ ##
1456## Autoconf initialization. ##
1457## ------------------------ ##
1458
1459# ac_fn_c_try_compile LINENO
1460# --------------------------
1461# Try to compile conftest.$ac_ext, and return whether this succeeded.
1462ac_fn_c_try_compile ()
1463{
1464  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1465  rm -f conftest.$ac_objext
1466  if { { ac_try="$ac_compile"
1467case "(($ac_try" in
1468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1469  *) ac_try_echo=$ac_try;;
1470esac
1471eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1472$as_echo "$ac_try_echo"; } >&5
1473  (eval "$ac_compile") 2>conftest.err
1474  ac_status=$?
1475  if test -s conftest.err; then
1476    grep -v '^ *+' conftest.err >conftest.er1
1477    cat conftest.er1 >&5
1478    mv -f conftest.er1 conftest.err
1479  fi
1480  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1481  test $ac_status = 0; } && {
1482	 test -z "$ac_c_werror_flag" ||
1483	 test ! -s conftest.err
1484       } && test -s conftest.$ac_objext; then :
1485  ac_retval=0
1486else
1487  $as_echo "$as_me: failed program was:" >&5
1488sed 's/^/| /' conftest.$ac_ext >&5
1489
1490	ac_retval=1
1491fi
1492  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1493  as_fn_set_status $ac_retval
1494
1495} # ac_fn_c_try_compile
1496
1497# ac_fn_c_try_link LINENO
1498# -----------------------
1499# Try to link conftest.$ac_ext, and return whether this succeeded.
1500ac_fn_c_try_link ()
1501{
1502  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1503  rm -f conftest.$ac_objext conftest$ac_exeext
1504  if { { ac_try="$ac_link"
1505case "(($ac_try" in
1506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1507  *) ac_try_echo=$ac_try;;
1508esac
1509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510$as_echo "$ac_try_echo"; } >&5
1511  (eval "$ac_link") 2>conftest.err
1512  ac_status=$?
1513  if test -s conftest.err; then
1514    grep -v '^ *+' conftest.err >conftest.er1
1515    cat conftest.er1 >&5
1516    mv -f conftest.er1 conftest.err
1517  fi
1518  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1519  test $ac_status = 0; } && {
1520	 test -z "$ac_c_werror_flag" ||
1521	 test ! -s conftest.err
1522       } && test -s conftest$ac_exeext && {
1523	 test "$cross_compiling" = yes ||
1524	 $as_test_x conftest$ac_exeext
1525       }; then :
1526  ac_retval=0
1527else
1528  $as_echo "$as_me: failed program was:" >&5
1529sed 's/^/| /' conftest.$ac_ext >&5
1530
1531	ac_retval=1
1532fi
1533  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1534  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1535  # interfere with the next link command; also delete a directory that is
1536  # left behind by Apple's compiler.  We do this before executing the actions.
1537  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1538  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1539  as_fn_set_status $ac_retval
1540
1541} # ac_fn_c_try_link
1542
1543# ac_fn_c_try_cpp LINENO
1544# ----------------------
1545# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1546ac_fn_c_try_cpp ()
1547{
1548  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549  if { { ac_try="$ac_cpp conftest.$ac_ext"
1550case "(($ac_try" in
1551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552  *) ac_try_echo=$ac_try;;
1553esac
1554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555$as_echo "$ac_try_echo"; } >&5
1556  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1557  ac_status=$?
1558  if test -s conftest.err; then
1559    grep -v '^ *+' conftest.err >conftest.er1
1560    cat conftest.er1 >&5
1561    mv -f conftest.er1 conftest.err
1562  fi
1563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564  test $ac_status = 0; } > conftest.i && {
1565	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1566	 test ! -s conftest.err
1567       }; then :
1568  ac_retval=0
1569else
1570  $as_echo "$as_me: failed program was:" >&5
1571sed 's/^/| /' conftest.$ac_ext >&5
1572
1573    ac_retval=1
1574fi
1575  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576  as_fn_set_status $ac_retval
1577
1578} # ac_fn_c_try_cpp
1579
1580# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1581# -------------------------------------------------------
1582# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1583# the include files in INCLUDES and setting the cache variable VAR
1584# accordingly.
1585ac_fn_c_check_header_mongrel ()
1586{
1587  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588  if eval \${$3+:} false; then :
1589  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1590$as_echo_n "checking for $2... " >&6; }
1591if eval \${$3+:} false; then :
1592  $as_echo_n "(cached) " >&6
1593fi
1594eval ac_res=\$$3
1595	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1596$as_echo "$ac_res" >&6; }
1597else
1598  # Is the header compilable?
1599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1600$as_echo_n "checking $2 usability... " >&6; }
1601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1602/* end confdefs.h.  */
1603$4
1604#include <$2>
1605_ACEOF
1606if ac_fn_c_try_compile "$LINENO"; then :
1607  ac_header_compiler=yes
1608else
1609  ac_header_compiler=no
1610fi
1611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1613$as_echo "$ac_header_compiler" >&6; }
1614
1615# Is the header present?
1616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1617$as_echo_n "checking $2 presence... " >&6; }
1618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619/* end confdefs.h.  */
1620#include <$2>
1621_ACEOF
1622if ac_fn_c_try_cpp "$LINENO"; then :
1623  ac_header_preproc=yes
1624else
1625  ac_header_preproc=no
1626fi
1627rm -f conftest.err conftest.i conftest.$ac_ext
1628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1629$as_echo "$ac_header_preproc" >&6; }
1630
1631# So?  What about this header?
1632case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1633  yes:no: )
1634    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1635$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1636    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1637$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1638    ;;
1639  no:yes:* )
1640    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1641$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1642    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1643$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1644    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1645$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1646    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1647$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1648    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1649$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1650( $as_echo "## --------------------------------- ##
1651## Report this to wmcbrine@gmail.com ##
1652## --------------------------------- ##"
1653     ) | sed "s/^/$as_me: WARNING:     /" >&2
1654    ;;
1655esac
1656  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1657$as_echo_n "checking for $2... " >&6; }
1658if eval \${$3+:} false; then :
1659  $as_echo_n "(cached) " >&6
1660else
1661  eval "$3=\$ac_header_compiler"
1662fi
1663eval ac_res=\$$3
1664	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665$as_echo "$ac_res" >&6; }
1666fi
1667  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668
1669} # ac_fn_c_check_header_mongrel
1670
1671# ac_fn_c_try_run LINENO
1672# ----------------------
1673# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1674# that executables *can* be run.
1675ac_fn_c_try_run ()
1676{
1677  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678  if { { ac_try="$ac_link"
1679case "(($ac_try" in
1680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681  *) ac_try_echo=$ac_try;;
1682esac
1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684$as_echo "$ac_try_echo"; } >&5
1685  (eval "$ac_link") 2>&5
1686  ac_status=$?
1687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1689  { { case "(($ac_try" in
1690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691  *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694$as_echo "$ac_try_echo"; } >&5
1695  (eval "$ac_try") 2>&5
1696  ac_status=$?
1697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698  test $ac_status = 0; }; }; then :
1699  ac_retval=0
1700else
1701  $as_echo "$as_me: program exited with status $ac_status" >&5
1702       $as_echo "$as_me: failed program was:" >&5
1703sed 's/^/| /' conftest.$ac_ext >&5
1704
1705       ac_retval=$ac_status
1706fi
1707  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709  as_fn_set_status $ac_retval
1710
1711} # ac_fn_c_try_run
1712
1713# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1714# -------------------------------------------------------
1715# Tests whether HEADER exists and can be compiled using the include files in
1716# INCLUDES, setting the cache variable VAR accordingly.
1717ac_fn_c_check_header_compile ()
1718{
1719  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721$as_echo_n "checking for $2... " >&6; }
1722if eval \${$3+:} false; then :
1723  $as_echo_n "(cached) " >&6
1724else
1725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726/* end confdefs.h.  */
1727$4
1728#include <$2>
1729_ACEOF
1730if ac_fn_c_try_compile "$LINENO"; then :
1731  eval "$3=yes"
1732else
1733  eval "$3=no"
1734fi
1735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1736fi
1737eval ac_res=\$$3
1738	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739$as_echo "$ac_res" >&6; }
1740  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741
1742} # ac_fn_c_check_header_compile
1743
1744# ac_fn_c_check_func LINENO FUNC VAR
1745# ----------------------------------
1746# Tests whether FUNC exists, setting the cache variable VAR accordingly
1747ac_fn_c_check_func ()
1748{
1749  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751$as_echo_n "checking for $2... " >&6; }
1752if eval \${$3+:} false; then :
1753  $as_echo_n "(cached) " >&6
1754else
1755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756/* end confdefs.h.  */
1757/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1758   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1759#define $2 innocuous_$2
1760
1761/* System header to define __stub macros and hopefully few prototypes,
1762    which can conflict with char $2 (); below.
1763    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1764    <limits.h> exists even on freestanding compilers.  */
1765
1766#ifdef __STDC__
1767# include <limits.h>
1768#else
1769# include <assert.h>
1770#endif
1771
1772#undef $2
1773
1774/* Override any GCC internal prototype to avoid an error.
1775   Use char because int might match the return type of a GCC
1776   builtin and then its argument prototype would still apply.  */
1777#ifdef __cplusplus
1778extern "C"
1779#endif
1780char $2 ();
1781/* The GNU C library defines this for functions which it implements
1782    to always fail with ENOSYS.  Some functions are actually named
1783    something starting with __ and the normal name is an alias.  */
1784#if defined __stub_$2 || defined __stub___$2
1785choke me
1786#endif
1787
1788int
1789main ()
1790{
1791return $2 ();
1792  ;
1793  return 0;
1794}
1795_ACEOF
1796if ac_fn_c_try_link "$LINENO"; then :
1797  eval "$3=yes"
1798else
1799  eval "$3=no"
1800fi
1801rm -f core conftest.err conftest.$ac_objext \
1802    conftest$ac_exeext conftest.$ac_ext
1803fi
1804eval ac_res=\$$3
1805	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806$as_echo "$ac_res" >&6; }
1807  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808
1809} # ac_fn_c_check_func
1810cat >config.log <<_ACEOF
1811This file contains any messages produced by compilers while
1812running configure, to aid debugging if configure makes a mistake.
1813
1814It was created by PDCurses $as_me 3.4, which was
1815generated by GNU Autoconf 2.68.  Invocation command line was
1816
1817  $ $0 $@
1818
1819_ACEOF
1820exec 5>>config.log
1821{
1822cat <<_ASUNAME
1823## --------- ##
1824## Platform. ##
1825## --------- ##
1826
1827hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1828uname -m = `(uname -m) 2>/dev/null || echo unknown`
1829uname -r = `(uname -r) 2>/dev/null || echo unknown`
1830uname -s = `(uname -s) 2>/dev/null || echo unknown`
1831uname -v = `(uname -v) 2>/dev/null || echo unknown`
1832
1833/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1834/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1835
1836/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1837/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1838/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1839/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1840/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1841/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1842/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1843
1844_ASUNAME
1845
1846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847for as_dir in $PATH
1848do
1849  IFS=$as_save_IFS
1850  test -z "$as_dir" && as_dir=.
1851    $as_echo "PATH: $as_dir"
1852  done
1853IFS=$as_save_IFS
1854
1855} >&5
1856
1857cat >&5 <<_ACEOF
1858
1859
1860## ----------- ##
1861## Core tests. ##
1862## ----------- ##
1863
1864_ACEOF
1865
1866
1867# Keep a trace of the command line.
1868# Strip out --no-create and --no-recursion so they do not pile up.
1869# Strip out --silent because we don't want to record it for future runs.
1870# Also quote any args containing shell meta-characters.
1871# Make two passes to allow for proper duplicate-argument suppression.
1872ac_configure_args=
1873ac_configure_args0=
1874ac_configure_args1=
1875ac_must_keep_next=false
1876for ac_pass in 1 2
1877do
1878  for ac_arg
1879  do
1880    case $ac_arg in
1881    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1882    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1883    | -silent | --silent | --silen | --sile | --sil)
1884      continue ;;
1885    *\'*)
1886      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1887    esac
1888    case $ac_pass in
1889    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1890    2)
1891      as_fn_append ac_configure_args1 " '$ac_arg'"
1892      if test $ac_must_keep_next = true; then
1893	ac_must_keep_next=false # Got value, back to normal.
1894      else
1895	case $ac_arg in
1896	  *=* | --config-cache | -C | -disable-* | --disable-* \
1897	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1898	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1899	  | -with-* | --with-* | -without-* | --without-* | --x)
1900	    case "$ac_configure_args0 " in
1901	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1902	    esac
1903	    ;;
1904	  -* ) ac_must_keep_next=true ;;
1905	esac
1906      fi
1907      as_fn_append ac_configure_args " '$ac_arg'"
1908      ;;
1909    esac
1910  done
1911done
1912{ ac_configure_args0=; unset ac_configure_args0;}
1913{ ac_configure_args1=; unset ac_configure_args1;}
1914
1915# When interrupted or exit'd, cleanup temporary files, and complete
1916# config.log.  We remove comments because anyway the quotes in there
1917# would cause problems or look ugly.
1918# WARNING: Use '\'' to represent an apostrophe within the trap.
1919# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1920trap 'exit_status=$?
1921  # Save into config.log some information that might help in debugging.
1922  {
1923    echo
1924
1925    $as_echo "## ---------------- ##
1926## Cache variables. ##
1927## ---------------- ##"
1928    echo
1929    # The following way of writing the cache mishandles newlines in values,
1930(
1931  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1932    eval ac_val=\$$ac_var
1933    case $ac_val in #(
1934    *${as_nl}*)
1935      case $ac_var in #(
1936      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1937$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1938      esac
1939      case $ac_var in #(
1940      _ | IFS | as_nl) ;; #(
1941      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1942      *) { eval $ac_var=; unset $ac_var;} ;;
1943      esac ;;
1944    esac
1945  done
1946  (set) 2>&1 |
1947    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1948    *${as_nl}ac_space=\ *)
1949      sed -n \
1950	"s/'\''/'\''\\\\'\'''\''/g;
1951	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1952      ;; #(
1953    *)
1954      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1955      ;;
1956    esac |
1957    sort
1958)
1959    echo
1960
1961    $as_echo "## ----------------- ##
1962## Output variables. ##
1963## ----------------- ##"
1964    echo
1965    for ac_var in $ac_subst_vars
1966    do
1967      eval ac_val=\$$ac_var
1968      case $ac_val in
1969      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1970      esac
1971      $as_echo "$ac_var='\''$ac_val'\''"
1972    done | sort
1973    echo
1974
1975    if test -n "$ac_subst_files"; then
1976      $as_echo "## ------------------- ##
1977## File substitutions. ##
1978## ------------------- ##"
1979      echo
1980      for ac_var in $ac_subst_files
1981      do
1982	eval ac_val=\$$ac_var
1983	case $ac_val in
1984	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1985	esac
1986	$as_echo "$ac_var='\''$ac_val'\''"
1987      done | sort
1988      echo
1989    fi
1990
1991    if test -s confdefs.h; then
1992      $as_echo "## ----------- ##
1993## confdefs.h. ##
1994## ----------- ##"
1995      echo
1996      cat confdefs.h
1997      echo
1998    fi
1999    test "$ac_signal" != 0 &&
2000      $as_echo "$as_me: caught signal $ac_signal"
2001    $as_echo "$as_me: exit $exit_status"
2002  } >&5
2003  rm -f core *.core core.conftest.* &&
2004    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2005    exit $exit_status
2006' 0
2007for ac_signal in 1 2 13 15; do
2008  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2009done
2010ac_signal=0
2011
2012# confdefs.h avoids OS command line length limits that DEFS can exceed.
2013rm -f -r conftest* confdefs.h
2014
2015$as_echo "/* confdefs.h */" > confdefs.h
2016
2017# Predefined preprocessor variables.
2018
2019cat >>confdefs.h <<_ACEOF
2020#define PACKAGE_NAME "$PACKAGE_NAME"
2021_ACEOF
2022
2023cat >>confdefs.h <<_ACEOF
2024#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2025_ACEOF
2026
2027cat >>confdefs.h <<_ACEOF
2028#define PACKAGE_VERSION "$PACKAGE_VERSION"
2029_ACEOF
2030
2031cat >>confdefs.h <<_ACEOF
2032#define PACKAGE_STRING "$PACKAGE_STRING"
2033_ACEOF
2034
2035cat >>confdefs.h <<_ACEOF
2036#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2037_ACEOF
2038
2039cat >>confdefs.h <<_ACEOF
2040#define PACKAGE_URL "$PACKAGE_URL"
2041_ACEOF
2042
2043
2044# Let the site file select an alternate cache file if it wants to.
2045# Prefer an explicitly selected file to automatically selected ones.
2046ac_site_file1=NONE
2047ac_site_file2=NONE
2048if test -n "$CONFIG_SITE"; then
2049  # We do not want a PATH search for config.site.
2050  case $CONFIG_SITE in #((
2051    -*)  ac_site_file1=./$CONFIG_SITE;;
2052    */*) ac_site_file1=$CONFIG_SITE;;
2053    *)   ac_site_file1=./$CONFIG_SITE;;
2054  esac
2055elif test "x$prefix" != xNONE; then
2056  ac_site_file1=$prefix/share/config.site
2057  ac_site_file2=$prefix/etc/config.site
2058else
2059  ac_site_file1=$ac_default_prefix/share/config.site
2060  ac_site_file2=$ac_default_prefix/etc/config.site
2061fi
2062for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2063do
2064  test "x$ac_site_file" = xNONE && continue
2065  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2066    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2067$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2068    sed 's/^/| /' "$ac_site_file" >&5
2069    . "$ac_site_file" \
2070      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2072as_fn_error $? "failed to load site script $ac_site_file
2073See \`config.log' for more details" "$LINENO" 5; }
2074  fi
2075done
2076
2077if test -r "$cache_file"; then
2078  # Some versions of bash will fail to source /dev/null (special files
2079  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2080  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2081    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2082$as_echo "$as_me: loading cache $cache_file" >&6;}
2083    case $cache_file in
2084      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2085      *)                      . "./$cache_file";;
2086    esac
2087  fi
2088else
2089  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2090$as_echo "$as_me: creating cache $cache_file" >&6;}
2091  >$cache_file
2092fi
2093
2094# Check that the precious variables saved in the cache have kept the same
2095# value.
2096ac_cache_corrupted=false
2097for ac_var in $ac_precious_vars; do
2098  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2099  eval ac_new_set=\$ac_env_${ac_var}_set
2100  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2101  eval ac_new_val=\$ac_env_${ac_var}_value
2102  case $ac_old_set,$ac_new_set in
2103    set,)
2104      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2105$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2106      ac_cache_corrupted=: ;;
2107    ,set)
2108      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2109$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2110      ac_cache_corrupted=: ;;
2111    ,);;
2112    *)
2113      if test "x$ac_old_val" != "x$ac_new_val"; then
2114	# differences in whitespace do not lead to failure.
2115	ac_old_val_w=`echo x $ac_old_val`
2116	ac_new_val_w=`echo x $ac_new_val`
2117	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2118	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2119$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2120	  ac_cache_corrupted=:
2121	else
2122	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2123$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2124	  eval $ac_var=\$ac_old_val
2125	fi
2126	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2127$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2128	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2129$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2130      fi;;
2131  esac
2132  # Pass precious variables to config.status.
2133  if test "$ac_new_set" = set; then
2134    case $ac_new_val in
2135    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2136    *) ac_arg=$ac_var=$ac_new_val ;;
2137    esac
2138    case " $ac_configure_args " in
2139      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2140      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2141    esac
2142  fi
2143done
2144if $ac_cache_corrupted; then
2145  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2147  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2148$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2149  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2150fi
2151## -------------------- ##
2152## Main body of script. ##
2153## -------------------- ##
2154
2155ac_ext=c
2156ac_cpp='$CPP $CPPFLAGS'
2157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2159ac_compiler_gnu=$ac_cv_c_compiler_gnu
2160
2161
2162
2163
2164
2165
2166ac_ext=c
2167ac_cpp='$CPP $CPPFLAGS'
2168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2170ac_compiler_gnu=$ac_cv_c_compiler_gnu
2171if test -n "$ac_tool_prefix"; then
2172  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2173set dummy ${ac_tool_prefix}gcc; ac_word=$2
2174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2175$as_echo_n "checking for $ac_word... " >&6; }
2176if ${ac_cv_prog_CC+:} false; then :
2177  $as_echo_n "(cached) " >&6
2178else
2179  if test -n "$CC"; then
2180  ac_cv_prog_CC="$CC" # Let the user override the test.
2181else
2182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183for as_dir in $PATH
2184do
2185  IFS=$as_save_IFS
2186  test -z "$as_dir" && as_dir=.
2187    for ac_exec_ext in '' $ac_executable_extensions; do
2188  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2189    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2191    break 2
2192  fi
2193done
2194  done
2195IFS=$as_save_IFS
2196
2197fi
2198fi
2199CC=$ac_cv_prog_CC
2200if test -n "$CC"; then
2201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2202$as_echo "$CC" >&6; }
2203else
2204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2205$as_echo "no" >&6; }
2206fi
2207
2208
2209fi
2210if test -z "$ac_cv_prog_CC"; then
2211  ac_ct_CC=$CC
2212  # Extract the first word of "gcc", so it can be a program name with args.
2213set dummy gcc; ac_word=$2
2214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2215$as_echo_n "checking for $ac_word... " >&6; }
2216if ${ac_cv_prog_ac_ct_CC+:} false; then :
2217  $as_echo_n "(cached) " >&6
2218else
2219  if test -n "$ac_ct_CC"; then
2220  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2221else
2222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223for as_dir in $PATH
2224do
2225  IFS=$as_save_IFS
2226  test -z "$as_dir" && as_dir=.
2227    for ac_exec_ext in '' $ac_executable_extensions; do
2228  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2229    ac_cv_prog_ac_ct_CC="gcc"
2230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2231    break 2
2232  fi
2233done
2234  done
2235IFS=$as_save_IFS
2236
2237fi
2238fi
2239ac_ct_CC=$ac_cv_prog_ac_ct_CC
2240if test -n "$ac_ct_CC"; then
2241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2242$as_echo "$ac_ct_CC" >&6; }
2243else
2244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2245$as_echo "no" >&6; }
2246fi
2247
2248  if test "x$ac_ct_CC" = x; then
2249    CC=""
2250  else
2251    case $cross_compiling:$ac_tool_warned in
2252yes:)
2253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2255ac_tool_warned=yes ;;
2256esac
2257    CC=$ac_ct_CC
2258  fi
2259else
2260  CC="$ac_cv_prog_CC"
2261fi
2262
2263if test -z "$CC"; then
2264          if test -n "$ac_tool_prefix"; then
2265    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2266set dummy ${ac_tool_prefix}cc; ac_word=$2
2267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2268$as_echo_n "checking for $ac_word... " >&6; }
2269if ${ac_cv_prog_CC+:} false; then :
2270  $as_echo_n "(cached) " >&6
2271else
2272  if test -n "$CC"; then
2273  ac_cv_prog_CC="$CC" # Let the user override the test.
2274else
2275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276for as_dir in $PATH
2277do
2278  IFS=$as_save_IFS
2279  test -z "$as_dir" && as_dir=.
2280    for ac_exec_ext in '' $ac_executable_extensions; do
2281  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2282    ac_cv_prog_CC="${ac_tool_prefix}cc"
2283    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2284    break 2
2285  fi
2286done
2287  done
2288IFS=$as_save_IFS
2289
2290fi
2291fi
2292CC=$ac_cv_prog_CC
2293if test -n "$CC"; then
2294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2295$as_echo "$CC" >&6; }
2296else
2297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2298$as_echo "no" >&6; }
2299fi
2300
2301
2302  fi
2303fi
2304if test -z "$CC"; then
2305  # Extract the first word of "cc", so it can be a program name with args.
2306set dummy cc; ac_word=$2
2307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2308$as_echo_n "checking for $ac_word... " >&6; }
2309if ${ac_cv_prog_CC+:} false; then :
2310  $as_echo_n "(cached) " >&6
2311else
2312  if test -n "$CC"; then
2313  ac_cv_prog_CC="$CC" # Let the user override the test.
2314else
2315  ac_prog_rejected=no
2316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317for as_dir in $PATH
2318do
2319  IFS=$as_save_IFS
2320  test -z "$as_dir" && as_dir=.
2321    for ac_exec_ext in '' $ac_executable_extensions; do
2322  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2323    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2324       ac_prog_rejected=yes
2325       continue
2326     fi
2327    ac_cv_prog_CC="cc"
2328    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2329    break 2
2330  fi
2331done
2332  done
2333IFS=$as_save_IFS
2334
2335if test $ac_prog_rejected = yes; then
2336  # We found a bogon in the path, so make sure we never use it.
2337  set dummy $ac_cv_prog_CC
2338  shift
2339  if test $# != 0; then
2340    # We chose a different compiler from the bogus one.
2341    # However, it has the same basename, so the bogon will be chosen
2342    # first if we set CC to just the basename; use the full file name.
2343    shift
2344    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2345  fi
2346fi
2347fi
2348fi
2349CC=$ac_cv_prog_CC
2350if test -n "$CC"; then
2351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2352$as_echo "$CC" >&6; }
2353else
2354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2355$as_echo "no" >&6; }
2356fi
2357
2358
2359fi
2360if test -z "$CC"; then
2361  if test -n "$ac_tool_prefix"; then
2362  for ac_prog in cl.exe
2363  do
2364    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2365set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2367$as_echo_n "checking for $ac_word... " >&6; }
2368if ${ac_cv_prog_CC+:} false; then :
2369  $as_echo_n "(cached) " >&6
2370else
2371  if test -n "$CC"; then
2372  ac_cv_prog_CC="$CC" # Let the user override the test.
2373else
2374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375for as_dir in $PATH
2376do
2377  IFS=$as_save_IFS
2378  test -z "$as_dir" && as_dir=.
2379    for ac_exec_ext in '' $ac_executable_extensions; do
2380  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2381    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2383    break 2
2384  fi
2385done
2386  done
2387IFS=$as_save_IFS
2388
2389fi
2390fi
2391CC=$ac_cv_prog_CC
2392if test -n "$CC"; then
2393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2394$as_echo "$CC" >&6; }
2395else
2396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2397$as_echo "no" >&6; }
2398fi
2399
2400
2401    test -n "$CC" && break
2402  done
2403fi
2404if test -z "$CC"; then
2405  ac_ct_CC=$CC
2406  for ac_prog in cl.exe
2407do
2408  # Extract the first word of "$ac_prog", so it can be a program name with args.
2409set dummy $ac_prog; ac_word=$2
2410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2411$as_echo_n "checking for $ac_word... " >&6; }
2412if ${ac_cv_prog_ac_ct_CC+:} false; then :
2413  $as_echo_n "(cached) " >&6
2414else
2415  if test -n "$ac_ct_CC"; then
2416  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2417else
2418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419for as_dir in $PATH
2420do
2421  IFS=$as_save_IFS
2422  test -z "$as_dir" && as_dir=.
2423    for ac_exec_ext in '' $ac_executable_extensions; do
2424  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2425    ac_cv_prog_ac_ct_CC="$ac_prog"
2426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2427    break 2
2428  fi
2429done
2430  done
2431IFS=$as_save_IFS
2432
2433fi
2434fi
2435ac_ct_CC=$ac_cv_prog_ac_ct_CC
2436if test -n "$ac_ct_CC"; then
2437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2438$as_echo "$ac_ct_CC" >&6; }
2439else
2440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2441$as_echo "no" >&6; }
2442fi
2443
2444
2445  test -n "$ac_ct_CC" && break
2446done
2447
2448  if test "x$ac_ct_CC" = x; then
2449    CC=""
2450  else
2451    case $cross_compiling:$ac_tool_warned in
2452yes:)
2453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2455ac_tool_warned=yes ;;
2456esac
2457    CC=$ac_ct_CC
2458  fi
2459fi
2460
2461fi
2462
2463
2464test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2466as_fn_error $? "no acceptable C compiler found in \$PATH
2467See \`config.log' for more details" "$LINENO" 5; }
2468
2469# Provide some information about the compiler.
2470$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2471set X $ac_compile
2472ac_compiler=$2
2473for ac_option in --version -v -V -qversion; do
2474  { { ac_try="$ac_compiler $ac_option >&5"
2475case "(($ac_try" in
2476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477  *) ac_try_echo=$ac_try;;
2478esac
2479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2480$as_echo "$ac_try_echo"; } >&5
2481  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2482  ac_status=$?
2483  if test -s conftest.err; then
2484    sed '10a\
2485... rest of stderr output deleted ...
2486         10q' conftest.err >conftest.er1
2487    cat conftest.er1 >&5
2488  fi
2489  rm -f conftest.er1 conftest.err
2490  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2491  test $ac_status = 0; }
2492done
2493
2494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2495/* end confdefs.h.  */
2496
2497int
2498main ()
2499{
2500
2501  ;
2502  return 0;
2503}
2504_ACEOF
2505ac_clean_files_save=$ac_clean_files
2506ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2507# Try to create an executable without -o first, disregard a.out.
2508# It will help us diagnose broken compilers, and finding out an intuition
2509# of exeext.
2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2511$as_echo_n "checking whether the C compiler works... " >&6; }
2512ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2513
2514# The possible output files:
2515ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2516
2517ac_rmfiles=
2518for ac_file in $ac_files
2519do
2520  case $ac_file in
2521    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2522    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2523  esac
2524done
2525rm -f $ac_rmfiles
2526
2527if { { ac_try="$ac_link_default"
2528case "(($ac_try" in
2529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530  *) ac_try_echo=$ac_try;;
2531esac
2532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2533$as_echo "$ac_try_echo"; } >&5
2534  (eval "$ac_link_default") 2>&5
2535  ac_status=$?
2536  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2537  test $ac_status = 0; }; then :
2538  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2539# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2540# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2541# so that the user can short-circuit this test for compilers unknown to
2542# Autoconf.
2543for ac_file in $ac_files ''
2544do
2545  test -f "$ac_file" || continue
2546  case $ac_file in
2547    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2548	;;
2549    [ab].out )
2550	# We found the default executable, but exeext='' is most
2551	# certainly right.
2552	break;;
2553    *.* )
2554	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2555	then :; else
2556	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2557	fi
2558	# We set ac_cv_exeext here because the later test for it is not
2559	# safe: cross compilers may not add the suffix if given an `-o'
2560	# argument, so we may need to know it at that point already.
2561	# Even if this section looks crufty: it has the advantage of
2562	# actually working.
2563	break;;
2564    * )
2565	break;;
2566  esac
2567done
2568test "$ac_cv_exeext" = no && ac_cv_exeext=
2569
2570else
2571  ac_file=''
2572fi
2573if test -z "$ac_file"; then :
2574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2575$as_echo "no" >&6; }
2576$as_echo "$as_me: failed program was:" >&5
2577sed 's/^/| /' conftest.$ac_ext >&5
2578
2579{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2581as_fn_error 77 "C compiler cannot create executables
2582See \`config.log' for more details" "$LINENO" 5; }
2583else
2584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2585$as_echo "yes" >&6; }
2586fi
2587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2588$as_echo_n "checking for C compiler default output file name... " >&6; }
2589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2590$as_echo "$ac_file" >&6; }
2591ac_exeext=$ac_cv_exeext
2592
2593rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2594ac_clean_files=$ac_clean_files_save
2595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2596$as_echo_n "checking for suffix of executables... " >&6; }
2597if { { ac_try="$ac_link"
2598case "(($ac_try" in
2599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2600  *) ac_try_echo=$ac_try;;
2601esac
2602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2603$as_echo "$ac_try_echo"; } >&5
2604  (eval "$ac_link") 2>&5
2605  ac_status=$?
2606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2607  test $ac_status = 0; }; then :
2608  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2609# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2610# work properly (i.e., refer to `conftest.exe'), while it won't with
2611# `rm'.
2612for ac_file in conftest.exe conftest conftest.*; do
2613  test -f "$ac_file" || continue
2614  case $ac_file in
2615    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2616    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2617	  break;;
2618    * ) break;;
2619  esac
2620done
2621else
2622  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2624as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2625See \`config.log' for more details" "$LINENO" 5; }
2626fi
2627rm -f conftest conftest$ac_cv_exeext
2628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2629$as_echo "$ac_cv_exeext" >&6; }
2630
2631rm -f conftest.$ac_ext
2632EXEEXT=$ac_cv_exeext
2633ac_exeext=$EXEEXT
2634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2635/* end confdefs.h.  */
2636#include <stdio.h>
2637int
2638main ()
2639{
2640FILE *f = fopen ("conftest.out", "w");
2641 return ferror (f) || fclose (f) != 0;
2642
2643  ;
2644  return 0;
2645}
2646_ACEOF
2647ac_clean_files="$ac_clean_files conftest.out"
2648# Check that the compiler produces executables we can run.  If not, either
2649# the compiler is broken, or we cross compile.
2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2651$as_echo_n "checking whether we are cross compiling... " >&6; }
2652if test "$cross_compiling" != yes; then
2653  { { ac_try="$ac_link"
2654case "(($ac_try" in
2655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656  *) ac_try_echo=$ac_try;;
2657esac
2658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2659$as_echo "$ac_try_echo"; } >&5
2660  (eval "$ac_link") 2>&5
2661  ac_status=$?
2662  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2663  test $ac_status = 0; }
2664  if { ac_try='./conftest$ac_cv_exeext'
2665  { { case "(($ac_try" in
2666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667  *) ac_try_echo=$ac_try;;
2668esac
2669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2670$as_echo "$ac_try_echo"; } >&5
2671  (eval "$ac_try") 2>&5
2672  ac_status=$?
2673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2674  test $ac_status = 0; }; }; then
2675    cross_compiling=no
2676  else
2677    if test "$cross_compiling" = maybe; then
2678	cross_compiling=yes
2679    else
2680	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2681$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2682as_fn_error $? "cannot run C compiled programs.
2683If you meant to cross compile, use \`--host'.
2684See \`config.log' for more details" "$LINENO" 5; }
2685    fi
2686  fi
2687fi
2688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2689$as_echo "$cross_compiling" >&6; }
2690
2691rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2692ac_clean_files=$ac_clean_files_save
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2694$as_echo_n "checking for suffix of object files... " >&6; }
2695if ${ac_cv_objext+:} false; then :
2696  $as_echo_n "(cached) " >&6
2697else
2698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2699/* end confdefs.h.  */
2700
2701int
2702main ()
2703{
2704
2705  ;
2706  return 0;
2707}
2708_ACEOF
2709rm -f conftest.o conftest.obj
2710if { { ac_try="$ac_compile"
2711case "(($ac_try" in
2712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713  *) ac_try_echo=$ac_try;;
2714esac
2715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2716$as_echo "$ac_try_echo"; } >&5
2717  (eval "$ac_compile") 2>&5
2718  ac_status=$?
2719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2720  test $ac_status = 0; }; then :
2721  for ac_file in conftest.o conftest.obj conftest.*; do
2722  test -f "$ac_file" || continue;
2723  case $ac_file in
2724    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2725    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2726       break;;
2727  esac
2728done
2729else
2730  $as_echo "$as_me: failed program was:" >&5
2731sed 's/^/| /' conftest.$ac_ext >&5
2732
2733{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2735as_fn_error $? "cannot compute suffix of object files: cannot compile
2736See \`config.log' for more details" "$LINENO" 5; }
2737fi
2738rm -f conftest.$ac_cv_objext conftest.$ac_ext
2739fi
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2741$as_echo "$ac_cv_objext" >&6; }
2742OBJEXT=$ac_cv_objext
2743ac_objext=$OBJEXT
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2745$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2746if ${ac_cv_c_compiler_gnu+:} false; then :
2747  $as_echo_n "(cached) " >&6
2748else
2749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2750/* end confdefs.h.  */
2751
2752int
2753main ()
2754{
2755#ifndef __GNUC__
2756       choke me
2757#endif
2758
2759  ;
2760  return 0;
2761}
2762_ACEOF
2763if ac_fn_c_try_compile "$LINENO"; then :
2764  ac_compiler_gnu=yes
2765else
2766  ac_compiler_gnu=no
2767fi
2768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2769ac_cv_c_compiler_gnu=$ac_compiler_gnu
2770
2771fi
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2773$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2774if test $ac_compiler_gnu = yes; then
2775  GCC=yes
2776else
2777  GCC=
2778fi
2779ac_test_CFLAGS=${CFLAGS+set}
2780ac_save_CFLAGS=$CFLAGS
2781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2782$as_echo_n "checking whether $CC accepts -g... " >&6; }
2783if ${ac_cv_prog_cc_g+:} false; then :
2784  $as_echo_n "(cached) " >&6
2785else
2786  ac_save_c_werror_flag=$ac_c_werror_flag
2787   ac_c_werror_flag=yes
2788   ac_cv_prog_cc_g=no
2789   CFLAGS="-g"
2790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791/* end confdefs.h.  */
2792
2793int
2794main ()
2795{
2796
2797  ;
2798  return 0;
2799}
2800_ACEOF
2801if ac_fn_c_try_compile "$LINENO"; then :
2802  ac_cv_prog_cc_g=yes
2803else
2804  CFLAGS=""
2805      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2806/* end confdefs.h.  */
2807
2808int
2809main ()
2810{
2811
2812  ;
2813  return 0;
2814}
2815_ACEOF
2816if ac_fn_c_try_compile "$LINENO"; then :
2817
2818else
2819  ac_c_werror_flag=$ac_save_c_werror_flag
2820	 CFLAGS="-g"
2821	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822/* end confdefs.h.  */
2823
2824int
2825main ()
2826{
2827
2828  ;
2829  return 0;
2830}
2831_ACEOF
2832if ac_fn_c_try_compile "$LINENO"; then :
2833  ac_cv_prog_cc_g=yes
2834fi
2835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2836fi
2837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2838fi
2839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2840   ac_c_werror_flag=$ac_save_c_werror_flag
2841fi
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2843$as_echo "$ac_cv_prog_cc_g" >&6; }
2844if test "$ac_test_CFLAGS" = set; then
2845  CFLAGS=$ac_save_CFLAGS
2846elif test $ac_cv_prog_cc_g = yes; then
2847  if test "$GCC" = yes; then
2848    CFLAGS="-g -O2"
2849  else
2850    CFLAGS="-g"
2851  fi
2852else
2853  if test "$GCC" = yes; then
2854    CFLAGS="-O2"
2855  else
2856    CFLAGS=
2857  fi
2858fi
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2860$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2861if ${ac_cv_prog_cc_c89+:} false; then :
2862  $as_echo_n "(cached) " >&6
2863else
2864  ac_cv_prog_cc_c89=no
2865ac_save_CC=$CC
2866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2867/* end confdefs.h.  */
2868#include <stdarg.h>
2869#include <stdio.h>
2870#include <sys/types.h>
2871#include <sys/stat.h>
2872/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2873struct buf { int x; };
2874FILE * (*rcsopen) (struct buf *, struct stat *, int);
2875static char *e (p, i)
2876     char **p;
2877     int i;
2878{
2879  return p[i];
2880}
2881static char *f (char * (*g) (char **, int), char **p, ...)
2882{
2883  char *s;
2884  va_list v;
2885  va_start (v,p);
2886  s = g (p, va_arg (v,int));
2887  va_end (v);
2888  return s;
2889}
2890
2891/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2892   function prototypes and stuff, but not '\xHH' hex character constants.
2893   These don't provoke an error unfortunately, instead are silently treated
2894   as 'x'.  The following induces an error, until -std is added to get
2895   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2896   array size at least.  It's necessary to write '\x00'==0 to get something
2897   that's true only with -std.  */
2898int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2899
2900/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2901   inside strings and character constants.  */
2902#define FOO(x) 'x'
2903int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2904
2905int test (int i, double x);
2906struct s1 {int (*f) (int a);};
2907struct s2 {int (*f) (double a);};
2908int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2909int argc;
2910char **argv;
2911int
2912main ()
2913{
2914return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2915  ;
2916  return 0;
2917}
2918_ACEOF
2919for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2920	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2921do
2922  CC="$ac_save_CC $ac_arg"
2923  if ac_fn_c_try_compile "$LINENO"; then :
2924  ac_cv_prog_cc_c89=$ac_arg
2925fi
2926rm -f core conftest.err conftest.$ac_objext
2927  test "x$ac_cv_prog_cc_c89" != "xno" && break
2928done
2929rm -f conftest.$ac_ext
2930CC=$ac_save_CC
2931
2932fi
2933# AC_CACHE_VAL
2934case "x$ac_cv_prog_cc_c89" in
2935  x)
2936    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2937$as_echo "none needed" >&6; } ;;
2938  xno)
2939    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2940$as_echo "unsupported" >&6; } ;;
2941  *)
2942    CC="$CC $ac_cv_prog_cc_c89"
2943    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2944$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2945esac
2946if test "x$ac_cv_prog_cc_c89" != xno; then :
2947
2948fi
2949
2950ac_ext=c
2951ac_cpp='$CPP $CPPFLAGS'
2952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2954ac_compiler_gnu=$ac_cv_c_compiler_gnu
2955
2956
2957ac_config_headers="$ac_config_headers config.h"
2958
2959ac_aux_dir=
2960for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2961  if test -f "$ac_dir/install-sh"; then
2962    ac_aux_dir=$ac_dir
2963    ac_install_sh="$ac_aux_dir/install-sh -c"
2964    break
2965  elif test -f "$ac_dir/install.sh"; then
2966    ac_aux_dir=$ac_dir
2967    ac_install_sh="$ac_aux_dir/install.sh -c"
2968    break
2969  elif test -f "$ac_dir/shtool"; then
2970    ac_aux_dir=$ac_dir
2971    ac_install_sh="$ac_aux_dir/shtool install -c"
2972    break
2973  fi
2974done
2975if test -z "$ac_aux_dir"; then
2976  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2977fi
2978
2979# These three variables are undocumented and unsupported,
2980# and are intended to be withdrawn in a future Autoconf release.
2981# They can cause serious problems if a builder's source tree is in a directory
2982# whose full name contains unusual characters.
2983ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2984ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2985ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2986
2987
2988# Make sure we can run config.sub.
2989$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2990  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2991
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2993$as_echo_n "checking build system type... " >&6; }
2994if ${ac_cv_build+:} false; then :
2995  $as_echo_n "(cached) " >&6
2996else
2997  ac_build_alias=$build_alias
2998test "x$ac_build_alias" = x &&
2999  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3000test "x$ac_build_alias" = x &&
3001  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3002ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3003  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3004
3005fi
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3007$as_echo "$ac_cv_build" >&6; }
3008case $ac_cv_build in
3009*-*-*) ;;
3010*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3011esac
3012build=$ac_cv_build
3013ac_save_IFS=$IFS; IFS='-'
3014set x $ac_cv_build
3015shift
3016build_cpu=$1
3017build_vendor=$2
3018shift; shift
3019# Remember, the first character of IFS is used to create $*,
3020# except with old shells:
3021build_os=$*
3022IFS=$ac_save_IFS
3023case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3024
3025
3026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3027$as_echo_n "checking host system type... " >&6; }
3028if ${ac_cv_host+:} false; then :
3029  $as_echo_n "(cached) " >&6
3030else
3031  if test "x$host_alias" = x; then
3032  ac_cv_host=$ac_cv_build
3033else
3034  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3035    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3036fi
3037
3038fi
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3040$as_echo "$ac_cv_host" >&6; }
3041case $ac_cv_host in
3042*-*-*) ;;
3043*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3044esac
3045host=$ac_cv_host
3046ac_save_IFS=$IFS; IFS='-'
3047set x $ac_cv_host
3048shift
3049host_cpu=$1
3050host_vendor=$2
3051shift; shift
3052# Remember, the first character of IFS is used to create $*,
3053# except with old shells:
3054host_os=$*
3055IFS=$ac_save_IFS
3056case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3057
3058
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3060$as_echo_n "checking target system type... " >&6; }
3061if ${ac_cv_target+:} false; then :
3062  $as_echo_n "(cached) " >&6
3063else
3064  if test "x$target_alias" = x; then
3065  ac_cv_target=$ac_cv_host
3066else
3067  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3068    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3069fi
3070
3071fi
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3073$as_echo "$ac_cv_target" >&6; }
3074case $ac_cv_target in
3075*-*-*) ;;
3076*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3077esac
3078target=$ac_cv_target
3079ac_save_IFS=$IFS; IFS='-'
3080set x $ac_cv_target
3081shift
3082target_cpu=$1
3083target_vendor=$2
3084shift; shift
3085# Remember, the first character of IFS is used to create $*,
3086# except with old shells:
3087target_os=$*
3088IFS=$ac_save_IFS
3089case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3090
3091
3092# The aliases save the names the user supplied, while $host etc.
3093# will get canonicalized.
3094test -n "$target_alias" &&
3095  test "$program_prefix$program_suffix$program_transform_name" = \
3096    NONENONEs,x,x, &&
3097  program_prefix=${target_alias}-
3098
3099
3100on_qnx=no
3101on_osx=no
3102case "$target" in
3103   *hp-hpux*)
3104      SYS_DEFS="-D_HPUX_SOURCE"
3105      ;;
3106   *ibm-aix*)
3107      SYS_DEFS="-D_ALL_SOURCE"
3108      ;;
3109   *dec-osf*)
3110      SYS_DEFS="-D_XOPEN_SOURCE_EXTENDED"
3111      ;;
3112   *pc-sco*)
3113      SYS_DEFS="-UM_XENIX -b elf"
3114      ;;
3115   *qnx*)
3116      on_qnx=yes
3117      SYS_DEFS="-Q"
3118      ;;
3119   *apple-darwin*)
3120      on_osx=yes
3121
3122
3123valid_arch_flags=""
3124found_arch_flags=""
3125
3126# Check whether --with-arch was given.
3127if test "${with_arch+set}" = set; then :
3128  withval=$with_arch; with_arch=$withval
3129else
3130  with_arch=none
3131fi
3132
3133case "$with_arch" in
3134   none)
3135      arch_flags=""
3136      ;;
3137   all)
3138      arch_flags="-arch ppc -arch ppc64 -arch x86_64 -arch i386"
3139      ;;
3140   32bit)
3141      arch_flags="-arch ppc -arch i386"
3142      ;;
3143   64bit)
3144      arch_flags="-arch ppc64 -arch x86_64"
3145      ;;
3146   intel)
3147      arch_flags="-arch i386 -arch x86_64"
3148      ;;
3149   *)
3150      arch_flags="-arch $with_arch"
3151      ;;
3152esac
3153
3154valid_arch_flags=""
3155found_arch_flags=""
3156if test $on_osx = "yes"; then
3157  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which Mac OSX -arch flags are supported for universal binaries" >&5
3158$as_echo_n "checking for which Mac OSX -arch flags are supported for universal binaries... " >&6; }
3159  for a in $arch_flags; do
3160    save_ldflags="$LDFLAGS"
3161    LDFLAGS="$LDFLAGS -arch $a"
3162    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163/* end confdefs.h.  */
3164#include <stdio.h>
3165int
3166main ()
3167{
3168exit(0)
3169  ;
3170  return 0;
3171}
3172_ACEOF
3173if ac_fn_c_try_link "$LINENO"; then :
3174  valid_arch_flags="$valid_arch_flags -arch $a";found_arch_flags="$found_arch_flags $a"
3175else
3176  a="$a"
3177
3178fi
3179rm -f core conftest.err conftest.$ac_objext \
3180    conftest$ac_exeext conftest.$ac_ext
3181    LDFLAGS="$save_ldflags"
3182  done
3183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_arch_flags" >&5
3184$as_echo "$found_arch_flags" >&6; }
3185
3186fi
3187
3188      SYS_DEFS="$valid_arch_flags"
3189      EEXTRA="$valid_arch_flags"
3190      ;;
3191   *)
3192      ;;
3193esac
3194
3195
3196
3197
3198save_CPPFLAGS="$CPPFLAGS"
3199CPPFLAGS="$CPPFLAGS $SYS_DEFS"
3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maximum signal specifier:" >&5
3201$as_echo_n "checking for maximum signal specifier:... " >&6; }
3202if ${mh_cv_max_signals+:} false; then :
3203  $as_echo_n "(cached) " >&6
3204else
3205  mh_found="no"
3206for mh_sigs in NSIG __sys_nsig; do
3207    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3208/* end confdefs.h.  */
3209#include <signal.h>
3210int
3211main ()
3212{
3213return $mh_sigs;
3214  ;
3215  return 0;
3216}
3217_ACEOF
3218if ac_fn_c_try_compile "$LINENO"; then :
3219  mh_found="yes"; mh_cv_max_signals="$mh_sigs"
3220fi
3221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222    if test "$mh_found" = "yes"; then
3223        break;
3224    fi
3225done
3226fi
3227
3228CPPFLAGS="$save_CPPFLAGS"
3229if test "$mh_found" = "no"; then
3230    as_fn_error $? "Cannot find a system limit for number of signals. PDCurses cannot be configured on this machine." "$LINENO" 5
3231else
3232    cat >>confdefs.h <<_ACEOF
3233#define PDC_MAX_SIGNALS $mh_cv_max_signals
3234_ACEOF
3235
3236    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_max_signals" >&5
3237$as_echo "$mh_cv_max_signals" >&6; }
3238fi
3239
3240
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3242$as_echo_n "checking whether ln -s works... " >&6; }
3243LN_S=$as_ln_s
3244if test "$LN_S" = "ln -s"; then
3245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3246$as_echo "yes" >&6; }
3247else
3248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3249$as_echo "no, using $LN_S" >&6; }
3250fi
3251
3252if test -n "$ac_tool_prefix"; then
3253  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3254set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256$as_echo_n "checking for $ac_word... " >&6; }
3257if ${ac_cv_prog_RANLIB+:} false; then :
3258  $as_echo_n "(cached) " >&6
3259else
3260  if test -n "$RANLIB"; then
3261  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3262else
3263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264for as_dir in $PATH
3265do
3266  IFS=$as_save_IFS
3267  test -z "$as_dir" && as_dir=.
3268    for ac_exec_ext in '' $ac_executable_extensions; do
3269  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3270    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3271    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3272    break 2
3273  fi
3274done
3275  done
3276IFS=$as_save_IFS
3277
3278fi
3279fi
3280RANLIB=$ac_cv_prog_RANLIB
3281if test -n "$RANLIB"; then
3282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3283$as_echo "$RANLIB" >&6; }
3284else
3285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286$as_echo "no" >&6; }
3287fi
3288
3289
3290fi
3291if test -z "$ac_cv_prog_RANLIB"; then
3292  ac_ct_RANLIB=$RANLIB
3293  # Extract the first word of "ranlib", so it can be a program name with args.
3294set dummy ranlib; ac_word=$2
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296$as_echo_n "checking for $ac_word... " >&6; }
3297if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3298  $as_echo_n "(cached) " >&6
3299else
3300  if test -n "$ac_ct_RANLIB"; then
3301  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3302else
3303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304for as_dir in $PATH
3305do
3306  IFS=$as_save_IFS
3307  test -z "$as_dir" && as_dir=.
3308    for ac_exec_ext in '' $ac_executable_extensions; do
3309  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3310    ac_cv_prog_ac_ct_RANLIB="ranlib"
3311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3312    break 2
3313  fi
3314done
3315  done
3316IFS=$as_save_IFS
3317
3318fi
3319fi
3320ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3321if test -n "$ac_ct_RANLIB"; then
3322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3323$as_echo "$ac_ct_RANLIB" >&6; }
3324else
3325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326$as_echo "no" >&6; }
3327fi
3328
3329  if test "x$ac_ct_RANLIB" = x; then
3330    RANLIB=":"
3331  else
3332    case $cross_compiling:$ac_tool_warned in
3333yes:)
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3336ac_tool_warned=yes ;;
3337esac
3338    RANLIB=$ac_ct_RANLIB
3339  fi
3340else
3341  RANLIB="$ac_cv_prog_RANLIB"
3342fi
3343
3344# Find a good install program.  We prefer a C program (faster),
3345# so one script is as good as another.  But avoid the broken or
3346# incompatible versions:
3347# SysV /etc/install, /usr/sbin/install
3348# SunOS /usr/etc/install
3349# IRIX /sbin/install
3350# AIX /bin/install
3351# AmigaOS /C/install, which installs bootblocks on floppy discs
3352# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3353# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3354# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3355# OS/2's system install, which has a completely different semantic
3356# ./install, which can be erroneously created by make from ./install.sh.
3357# Reject install programs that cannot install multiple files.
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3359$as_echo_n "checking for a BSD-compatible install... " >&6; }
3360if test -z "$INSTALL"; then
3361if ${ac_cv_path_install+:} false; then :
3362  $as_echo_n "(cached) " >&6
3363else
3364  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365for as_dir in $PATH
3366do
3367  IFS=$as_save_IFS
3368  test -z "$as_dir" && as_dir=.
3369    # Account for people who put trailing slashes in PATH elements.
3370case $as_dir/ in #((
3371  ./ | .// | /[cC]/* | \
3372  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3373  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3374  /usr/ucb/* ) ;;
3375  *)
3376    # OSF1 and SCO ODT 3.0 have their own names for install.
3377    # Don't use installbsd from OSF since it installs stuff as root
3378    # by default.
3379    for ac_prog in ginstall scoinst install; do
3380      for ac_exec_ext in '' $ac_executable_extensions; do
3381	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3382	  if test $ac_prog = install &&
3383	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3384	    # AIX install.  It has an incompatible calling convention.
3385	    :
3386	  elif test $ac_prog = install &&
3387	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3388	    # program-specific install script used by HP pwplus--don't use.
3389	    :
3390	  else
3391	    rm -rf conftest.one conftest.two conftest.dir
3392	    echo one > conftest.one
3393	    echo two > conftest.two
3394	    mkdir conftest.dir
3395	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3396	      test -s conftest.one && test -s conftest.two &&
3397	      test -s conftest.dir/conftest.one &&
3398	      test -s conftest.dir/conftest.two
3399	    then
3400	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3401	      break 3
3402	    fi
3403	  fi
3404	fi
3405      done
3406    done
3407    ;;
3408esac
3409
3410  done
3411IFS=$as_save_IFS
3412
3413rm -rf conftest.one conftest.two conftest.dir
3414
3415fi
3416  if test "${ac_cv_path_install+set}" = set; then
3417    INSTALL=$ac_cv_path_install
3418  else
3419    # As a last resort, use the slow shell script.  Don't cache a
3420    # value for INSTALL within a source directory, because that will
3421    # break other packages using the cache if that directory is
3422    # removed, or if the value is a relative name.
3423    INSTALL=$ac_install_sh
3424  fi
3425fi
3426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3427$as_echo "$INSTALL" >&6; }
3428
3429# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3430# It thinks the first close brace ends the variable substitution.
3431test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3432
3433test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3434
3435test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3436
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3438$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3439set x ${MAKE-make}
3440ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3441if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3442  $as_echo_n "(cached) " >&6
3443else
3444  cat >conftest.make <<\_ACEOF
3445SHELL = /bin/sh
3446all:
3447	@echo '@@@%%%=$(MAKE)=@@@%%%'
3448_ACEOF
3449# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3450case `${MAKE-make} -f conftest.make 2>/dev/null` in
3451  *@@@%%%=?*=@@@%%%*)
3452    eval ac_cv_prog_make_${ac_make}_set=yes;;
3453  *)
3454    eval ac_cv_prog_make_${ac_make}_set=no;;
3455esac
3456rm -f conftest.make
3457fi
3458if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3460$as_echo "yes" >&6; }
3461  SET_MAKE=
3462else
3463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464$as_echo "no" >&6; }
3465  SET_MAKE="MAKE=${MAKE-make}"
3466fi
3467
3468
3469ac_ext=c
3470ac_cpp='$CPP $CPPFLAGS'
3471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3473ac_compiler_gnu=$ac_cv_c_compiler_gnu
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3475$as_echo_n "checking how to run the C preprocessor... " >&6; }
3476# On Suns, sometimes $CPP names a directory.
3477if test -n "$CPP" && test -d "$CPP"; then
3478  CPP=
3479fi
3480if test -z "$CPP"; then
3481  if ${ac_cv_prog_CPP+:} false; then :
3482  $as_echo_n "(cached) " >&6
3483else
3484      # Double quotes because CPP needs to be expanded
3485    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3486    do
3487      ac_preproc_ok=false
3488for ac_c_preproc_warn_flag in '' yes
3489do
3490  # Use a header file that comes with gcc, so configuring glibc
3491  # with a fresh cross-compiler works.
3492  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3493  # <limits.h> exists even on freestanding compilers.
3494  # On the NeXT, cc -E runs the code through the compiler's parser,
3495  # not just through cpp. "Syntax error" is here to catch this case.
3496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497/* end confdefs.h.  */
3498#ifdef __STDC__
3499# include <limits.h>
3500#else
3501# include <assert.h>
3502#endif
3503		     Syntax error
3504_ACEOF
3505if ac_fn_c_try_cpp "$LINENO"; then :
3506
3507else
3508  # Broken: fails on valid input.
3509continue
3510fi
3511rm -f conftest.err conftest.i conftest.$ac_ext
3512
3513  # OK, works on sane cases.  Now check whether nonexistent headers
3514  # can be detected and how.
3515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516/* end confdefs.h.  */
3517#include <ac_nonexistent.h>
3518_ACEOF
3519if ac_fn_c_try_cpp "$LINENO"; then :
3520  # Broken: success on invalid input.
3521continue
3522else
3523  # Passes both tests.
3524ac_preproc_ok=:
3525break
3526fi
3527rm -f conftest.err conftest.i conftest.$ac_ext
3528
3529done
3530# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3531rm -f conftest.i conftest.err conftest.$ac_ext
3532if $ac_preproc_ok; then :
3533  break
3534fi
3535
3536    done
3537    ac_cv_prog_CPP=$CPP
3538
3539fi
3540  CPP=$ac_cv_prog_CPP
3541else
3542  ac_cv_prog_CPP=$CPP
3543fi
3544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3545$as_echo "$CPP" >&6; }
3546ac_preproc_ok=false
3547for ac_c_preproc_warn_flag in '' yes
3548do
3549  # Use a header file that comes with gcc, so configuring glibc
3550  # with a fresh cross-compiler works.
3551  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3552  # <limits.h> exists even on freestanding compilers.
3553  # On the NeXT, cc -E runs the code through the compiler's parser,
3554  # not just through cpp. "Syntax error" is here to catch this case.
3555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556/* end confdefs.h.  */
3557#ifdef __STDC__
3558# include <limits.h>
3559#else
3560# include <assert.h>
3561#endif
3562		     Syntax error
3563_ACEOF
3564if ac_fn_c_try_cpp "$LINENO"; then :
3565
3566else
3567  # Broken: fails on valid input.
3568continue
3569fi
3570rm -f conftest.err conftest.i conftest.$ac_ext
3571
3572  # OK, works on sane cases.  Now check whether nonexistent headers
3573  # can be detected and how.
3574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575/* end confdefs.h.  */
3576#include <ac_nonexistent.h>
3577_ACEOF
3578if ac_fn_c_try_cpp "$LINENO"; then :
3579  # Broken: success on invalid input.
3580continue
3581else
3582  # Passes both tests.
3583ac_preproc_ok=:
3584break
3585fi
3586rm -f conftest.err conftest.i conftest.$ac_ext
3587
3588done
3589# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3590rm -f conftest.i conftest.err conftest.$ac_ext
3591if $ac_preproc_ok; then :
3592
3593else
3594  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3597See \`config.log' for more details" "$LINENO" 5; }
3598fi
3599
3600ac_ext=c
3601ac_cpp='$CPP $CPPFLAGS'
3602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3604ac_compiler_gnu=$ac_cv_c_compiler_gnu
3605
3606
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3608$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3609if ${ac_cv_path_GREP+:} false; then :
3610  $as_echo_n "(cached) " >&6
3611else
3612  if test -z "$GREP"; then
3613  ac_path_GREP_found=false
3614  # Loop through the user's path and test for each of PROGNAME-LIST
3615  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3617do
3618  IFS=$as_save_IFS
3619  test -z "$as_dir" && as_dir=.
3620    for ac_prog in grep ggrep; do
3621    for ac_exec_ext in '' $ac_executable_extensions; do
3622      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3623      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3624# Check for GNU ac_path_GREP and select it if it is found.
3625  # Check for GNU $ac_path_GREP
3626case `"$ac_path_GREP" --version 2>&1` in
3627*GNU*)
3628  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3629*)
3630  ac_count=0
3631  $as_echo_n 0123456789 >"conftest.in"
3632  while :
3633  do
3634    cat "conftest.in" "conftest.in" >"conftest.tmp"
3635    mv "conftest.tmp" "conftest.in"
3636    cp "conftest.in" "conftest.nl"
3637    $as_echo 'GREP' >> "conftest.nl"
3638    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3639    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3640    as_fn_arith $ac_count + 1 && ac_count=$as_val
3641    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3642      # Best one so far, save it but keep looking for a better one
3643      ac_cv_path_GREP="$ac_path_GREP"
3644      ac_path_GREP_max=$ac_count
3645    fi
3646    # 10*(2^10) chars as input seems more than enough
3647    test $ac_count -gt 10 && break
3648  done
3649  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3650esac
3651
3652      $ac_path_GREP_found && break 3
3653    done
3654  done
3655  done
3656IFS=$as_save_IFS
3657  if test -z "$ac_cv_path_GREP"; then
3658    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3659  fi
3660else
3661  ac_cv_path_GREP=$GREP
3662fi
3663
3664fi
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3666$as_echo "$ac_cv_path_GREP" >&6; }
3667 GREP="$ac_cv_path_GREP"
3668
3669
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3671$as_echo_n "checking for egrep... " >&6; }
3672if ${ac_cv_path_EGREP+:} false; then :
3673  $as_echo_n "(cached) " >&6
3674else
3675  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3676   then ac_cv_path_EGREP="$GREP -E"
3677   else
3678     if test -z "$EGREP"; then
3679  ac_path_EGREP_found=false
3680  # Loop through the user's path and test for each of PROGNAME-LIST
3681  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3683do
3684  IFS=$as_save_IFS
3685  test -z "$as_dir" && as_dir=.
3686    for ac_prog in egrep; do
3687    for ac_exec_ext in '' $ac_executable_extensions; do
3688      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3689      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3690# Check for GNU ac_path_EGREP and select it if it is found.
3691  # Check for GNU $ac_path_EGREP
3692case `"$ac_path_EGREP" --version 2>&1` in
3693*GNU*)
3694  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3695*)
3696  ac_count=0
3697  $as_echo_n 0123456789 >"conftest.in"
3698  while :
3699  do
3700    cat "conftest.in" "conftest.in" >"conftest.tmp"
3701    mv "conftest.tmp" "conftest.in"
3702    cp "conftest.in" "conftest.nl"
3703    $as_echo 'EGREP' >> "conftest.nl"
3704    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3705    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3706    as_fn_arith $ac_count + 1 && ac_count=$as_val
3707    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3708      # Best one so far, save it but keep looking for a better one
3709      ac_cv_path_EGREP="$ac_path_EGREP"
3710      ac_path_EGREP_max=$ac_count
3711    fi
3712    # 10*(2^10) chars as input seems more than enough
3713    test $ac_count -gt 10 && break
3714  done
3715  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3716esac
3717
3718      $ac_path_EGREP_found && break 3
3719    done
3720  done
3721  done
3722IFS=$as_save_IFS
3723  if test -z "$ac_cv_path_EGREP"; then
3724    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3725  fi
3726else
3727  ac_cv_path_EGREP=$EGREP
3728fi
3729
3730   fi
3731fi
3732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3733$as_echo "$ac_cv_path_EGREP" >&6; }
3734 EGREP="$ac_cv_path_EGREP"
3735
3736
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3738$as_echo_n "checking for ANSI C header files... " >&6; }
3739if ${ac_cv_header_stdc+:} false; then :
3740  $as_echo_n "(cached) " >&6
3741else
3742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743/* end confdefs.h.  */
3744#include <stdlib.h>
3745#include <stdarg.h>
3746#include <string.h>
3747#include <float.h>
3748
3749int
3750main ()
3751{
3752
3753  ;
3754  return 0;
3755}
3756_ACEOF
3757if ac_fn_c_try_compile "$LINENO"; then :
3758  ac_cv_header_stdc=yes
3759else
3760  ac_cv_header_stdc=no
3761fi
3762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763
3764if test $ac_cv_header_stdc = yes; then
3765  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767/* end confdefs.h.  */
3768#include <string.h>
3769
3770_ACEOF
3771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3772  $EGREP "memchr" >/dev/null 2>&1; then :
3773
3774else
3775  ac_cv_header_stdc=no
3776fi
3777rm -f conftest*
3778
3779fi
3780
3781if test $ac_cv_header_stdc = yes; then
3782  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784/* end confdefs.h.  */
3785#include <stdlib.h>
3786
3787_ACEOF
3788if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3789  $EGREP "free" >/dev/null 2>&1; then :
3790
3791else
3792  ac_cv_header_stdc=no
3793fi
3794rm -f conftest*
3795
3796fi
3797
3798if test $ac_cv_header_stdc = yes; then
3799  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3800  if test "$cross_compiling" = yes; then :
3801  :
3802else
3803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804/* end confdefs.h.  */
3805#include <ctype.h>
3806#include <stdlib.h>
3807#if ((' ' & 0x0FF) == 0x020)
3808# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3809# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3810#else
3811# define ISLOWER(c) \
3812		   (('a' <= (c) && (c) <= 'i') \
3813		     || ('j' <= (c) && (c) <= 'r') \
3814		     || ('s' <= (c) && (c) <= 'z'))
3815# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3816#endif
3817
3818#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3819int
3820main ()
3821{
3822  int i;
3823  for (i = 0; i < 256; i++)
3824    if (XOR (islower (i), ISLOWER (i))
3825	|| toupper (i) != TOUPPER (i))
3826      return 2;
3827  return 0;
3828}
3829_ACEOF
3830if ac_fn_c_try_run "$LINENO"; then :
3831
3832else
3833  ac_cv_header_stdc=no
3834fi
3835rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3836  conftest.$ac_objext conftest.beam conftest.$ac_ext
3837fi
3838
3839fi
3840fi
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3842$as_echo "$ac_cv_header_stdc" >&6; }
3843if test $ac_cv_header_stdc = yes; then
3844
3845$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3846
3847fi
3848
3849# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3850for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3851		  inttypes.h stdint.h unistd.h
3852do :
3853  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3854ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3855"
3856if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3857  cat >>confdefs.h <<_ACEOF
3858#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3859_ACEOF
3860
3861fi
3862
3863done
3864
3865
3866
3867ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
3868if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
3869
3870fi
3871
3872
3873if test $ac_cv_header_sys_ipc_h = no; then
3874    as_fn_error $? "Cannot find required header file sys/ipc.h; PDCurses cannot be configured" "$LINENO" 5
3875fi
3876
3877
3878if test $ac_cv_header_stdc != yes; then
3879   as_fn_error $? "Need ANSI C headers" "$LINENO" 5
3880fi
3881
3882
3883for ac_header in fcntl.h \
3884   sys/time.h \
3885   sys/select.h \
3886   dlfcn.h \
3887   dl.h
3888
3889do :
3890  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3891ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3892if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3893  cat >>confdefs.h <<_ACEOF
3894#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3895_ACEOF
3896
3897fi
3898
3899done
3900
3901
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
3903$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
3904if ${ac_cv_header_time+:} false; then :
3905  $as_echo_n "(cached) " >&6
3906else
3907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908/* end confdefs.h.  */
3909#include <sys/types.h>
3910#include <sys/time.h>
3911#include <time.h>
3912
3913int
3914main ()
3915{
3916if ((struct tm *) 0)
3917return 0;
3918  ;
3919  return 0;
3920}
3921_ACEOF
3922if ac_fn_c_try_compile "$LINENO"; then :
3923  ac_cv_header_time=yes
3924else
3925  ac_cv_header_time=no
3926fi
3927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928fi
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
3930$as_echo "$ac_cv_header_time" >&6; }
3931if test $ac_cv_header_time = yes; then
3932
3933$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
3934
3935fi
3936
3937
3938MH_EXTRA_LIBS=''
3939for mh_lib in socket nls; do
3940    if test "$on_qnx" = yes; then
3941        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library -l${mh_lib}" >&5
3942$as_echo_n "checking for library -l${mh_lib}... " >&6; }
3943        if test -r /usr/lib/${mh_lib}3r.lib; then
3944            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
3945$as_echo "found" >&6; }
3946            MH_EXTRA_LIBS="${MH_EXTRA_LIBS} -l${mh_lib}"
3947        else
3948        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3949$as_echo "not found" >&6; }
3950        fi
3951    else
3952        as_ac_Lib=`$as_echo "ac_cv_lib_$mh_lib''_main" | $as_tr_sh`
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$mh_lib" >&5
3954$as_echo_n "checking for main in -l$mh_lib... " >&6; }
3955if eval \${$as_ac_Lib+:} false; then :
3956  $as_echo_n "(cached) " >&6
3957else
3958  ac_check_lib_save_LIBS=$LIBS
3959LIBS="-l$mh_lib  $LIBS"
3960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961/* end confdefs.h.  */
3962
3963
3964int
3965main ()
3966{
3967return main ();
3968  ;
3969  return 0;
3970}
3971_ACEOF
3972if ac_fn_c_try_link "$LINENO"; then :
3973  eval "$as_ac_Lib=yes"
3974else
3975  eval "$as_ac_Lib=no"
3976fi
3977rm -f core conftest.err conftest.$ac_objext \
3978    conftest$ac_exeext conftest.$ac_ext
3979LIBS=$ac_check_lib_save_LIBS
3980fi
3981eval ac_res=\$$as_ac_Lib
3982	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3983$as_echo "$ac_res" >&6; }
3984if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
3985  mh_lib_found=yes
3986else
3987  mh_lib_found=no
3988fi
3989
3990        if test "$mh_lib_found" = yes; then
3991            MH_EXTRA_LIBS="${MH_EXTRA_LIBS} -l${mh_lib}"
3992        fi
3993    fi
3994done
3995
3996
3997
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understand -c and -o together" >&5
3999$as_echo_n "checking whether $CC understand -c and -o together... " >&6; }
4000set dummy $CC; ac_cc="`echo $2 |
4001               sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
4002if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4003  $as_echo_n "(cached) " >&6
4004else
4005  echo 'foo(){}' > conftest.c
4006# We do the test twice because some compilers refuse to overwrite an
4007# existing .o file with -o, though they will create one.
4008eval ac_cv_prog_cc_${ac_cc}_c_o=no
4009ac_try='${CC-cc} -c conftest.c -o conftest.ooo 1>&5'
4010if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4011  (eval $ac_try) 2>&5
4012  ac_status=$?
4013  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4014  test $ac_status = 0; } && test -f conftest.ooo && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4015  (eval $ac_try) 2>&5
4016  ac_status=$?
4017  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018  test $ac_status = 0; };
4019then
4020  ac_try='${CC-cc} -c conftest.c -o conftest.ooo 1>&5'
4021  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4022  (eval $ac_try) 2>&5
4023  ac_status=$?
4024  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4025  test $ac_status = 0; } && test -f conftest.ooo && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4026  (eval $ac_try) 2>&5
4027  ac_status=$?
4028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029  test $ac_status = 0; };
4030  then
4031    eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4032  fi
4033fi
4034rm -f conftest*
4035
4036fi
4037if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
4038    O2SAVE=""
4039    SAVE2O=""
4040    CC2O="-o $"'@'
4041    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4042$as_echo "yes" >&6; }
4043else
4044    O2SAVE="-mv \`basename "$'@'" .sho\`.o \`basename "$'@'" .sho\`.o.save;"
4045    SAVE2O="-mv \`basename "$'@'" .sho\`.o "$'@'"; mv \`basename "$'@'" .sho\`.o.save \`basename "$'@'" .sho\`.o"
4046    CC2O=""
4047    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048$as_echo "no" >&6; }
4049fi
4050
4051
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4053$as_echo_n "checking return type of signal handlers... " >&6; }
4054if ${ac_cv_type_signal+:} false; then :
4055  $as_echo_n "(cached) " >&6
4056else
4057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058/* end confdefs.h.  */
4059#include <sys/types.h>
4060#include <signal.h>
4061
4062int
4063main ()
4064{
4065return *(signal (0, 0)) (0) == 1;
4066  ;
4067  return 0;
4068}
4069_ACEOF
4070if ac_fn_c_try_compile "$LINENO"; then :
4071  ac_cv_type_signal=int
4072else
4073  ac_cv_type_signal=void
4074fi
4075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076fi
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4078$as_echo "$ac_cv_type_signal" >&6; }
4079
4080cat >>confdefs.h <<_ACEOF
4081#define RETSIGTYPE $ac_cv_type_signal
4082_ACEOF
4083
4084
4085for ac_func in vsscanf usleep poll vsnprintf
4086do :
4087  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4088ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4089if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4090  cat >>confdefs.h <<_ACEOF
4091#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4092_ACEOF
4093
4094fi
4095done
4096
4097
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4099$as_echo_n "checking for X... " >&6; }
4100
4101
4102# Check whether --with-x was given.
4103if test "${with_x+set}" = set; then :
4104  withval=$with_x;
4105fi
4106
4107# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4108if test "x$with_x" = xno; then
4109  # The user explicitly disabled X.
4110  have_x=disabled
4111else
4112  case $x_includes,$x_libraries in #(
4113    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4114    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4115  $as_echo_n "(cached) " >&6
4116else
4117  # One or both of the vars are not set, and there is no cached value.
4118ac_x_includes=no ac_x_libraries=no
4119rm -f -r conftest.dir
4120if mkdir conftest.dir; then
4121  cd conftest.dir
4122  cat >Imakefile <<'_ACEOF'
4123incroot:
4124	@echo incroot='${INCROOT}'
4125usrlibdir:
4126	@echo usrlibdir='${USRLIBDIR}'
4127libdir:
4128	@echo libdir='${LIBDIR}'
4129_ACEOF
4130  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4131    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4132    for ac_var in incroot usrlibdir libdir; do
4133      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4134    done
4135    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4136    for ac_extension in a so sl dylib la dll; do
4137      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4138	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4139	ac_im_usrlibdir=$ac_im_libdir; break
4140      fi
4141    done
4142    # Screen out bogus values from the imake configuration.  They are
4143    # bogus both because they are the default anyway, and because
4144    # using them would break gcc on systems where it needs fixed includes.
4145    case $ac_im_incroot in
4146	/usr/include) ac_x_includes= ;;
4147	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4148    esac
4149    case $ac_im_usrlibdir in
4150	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
4151	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4152    esac
4153  fi
4154  cd ..
4155  rm -f -r conftest.dir
4156fi
4157
4158# Standard set of common directories for X headers.
4159# Check X11 before X11Rn because it is often a symlink to the current release.
4160ac_x_header_dirs='
4161/usr/X11/include
4162/usr/X11R7/include
4163/usr/X11R6/include
4164/usr/X11R5/include
4165/usr/X11R4/include
4166
4167/usr/include/X11
4168/usr/include/X11R7
4169/usr/include/X11R6
4170/usr/include/X11R5
4171/usr/include/X11R4
4172
4173/usr/local/X11/include
4174/usr/local/X11R7/include
4175/usr/local/X11R6/include
4176/usr/local/X11R5/include
4177/usr/local/X11R4/include
4178
4179/usr/local/include/X11
4180/usr/local/include/X11R7
4181/usr/local/include/X11R6
4182/usr/local/include/X11R5
4183/usr/local/include/X11R4
4184
4185/usr/X386/include
4186/usr/x386/include
4187/usr/XFree86/include/X11
4188
4189/usr/include
4190/usr/local/include
4191/usr/unsupported/include
4192/usr/athena/include
4193/usr/local/x11r5/include
4194/usr/lpp/Xamples/include
4195
4196/usr/openwin/include
4197/usr/openwin/share/include'
4198
4199if test "$ac_x_includes" = no; then
4200  # Guess where to find include files, by looking for Xlib.h.
4201  # First, try using that file with no special directory specified.
4202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203/* end confdefs.h.  */
4204#include <X11/Xlib.h>
4205_ACEOF
4206if ac_fn_c_try_cpp "$LINENO"; then :
4207  # We can compile using X headers with no special include directory.
4208ac_x_includes=
4209else
4210  for ac_dir in $ac_x_header_dirs; do
4211  if test -r "$ac_dir/X11/Xlib.h"; then
4212    ac_x_includes=$ac_dir
4213    break
4214  fi
4215done
4216fi
4217rm -f conftest.err conftest.i conftest.$ac_ext
4218fi # $ac_x_includes = no
4219
4220if test "$ac_x_libraries" = no; then
4221  # Check for the libraries.
4222  # See if we find them without any special options.
4223  # Don't add to $LIBS permanently.
4224  ac_save_LIBS=$LIBS
4225  LIBS="-lX11 $LIBS"
4226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227/* end confdefs.h.  */
4228#include <X11/Xlib.h>
4229int
4230main ()
4231{
4232XrmInitialize ()
4233  ;
4234  return 0;
4235}
4236_ACEOF
4237if ac_fn_c_try_link "$LINENO"; then :
4238  LIBS=$ac_save_LIBS
4239# We can link X programs with no special library path.
4240ac_x_libraries=
4241else
4242  LIBS=$ac_save_LIBS
4243for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4244do
4245  # Don't even attempt the hair of trying to link an X program!
4246  for ac_extension in a so sl dylib la dll; do
4247    if test -r "$ac_dir/libX11.$ac_extension"; then
4248      ac_x_libraries=$ac_dir
4249      break 2
4250    fi
4251  done
4252done
4253fi
4254rm -f core conftest.err conftest.$ac_objext \
4255    conftest$ac_exeext conftest.$ac_ext
4256fi # $ac_x_libraries = no
4257
4258case $ac_x_includes,$ac_x_libraries in #(
4259  no,* | *,no | *\'*)
4260    # Didn't find X, or a directory has "'" in its name.
4261    ac_cv_have_x="have_x=no";; #(
4262  *)
4263    # Record where we found X for the cache.
4264    ac_cv_have_x="have_x=yes\
4265	ac_x_includes='$ac_x_includes'\
4266	ac_x_libraries='$ac_x_libraries'"
4267esac
4268fi
4269;; #(
4270    *) have_x=yes;;
4271  esac
4272  eval "$ac_cv_have_x"
4273fi # $with_x != no
4274
4275if test "$have_x" != yes; then
4276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4277$as_echo "$have_x" >&6; }
4278  no_x=yes
4279else
4280  # If each of the values was on the command line, it overrides each guess.
4281  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4282  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4283  # Update the cache value to reflect the command line values.
4284  ac_cv_have_x="have_x=yes\
4285	ac_x_includes='$x_includes'\
4286	ac_x_libraries='$x_libraries'"
4287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4288$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4289fi
4290
4291
4292mh_x11_dir=""
4293mh_x11_xaw_dir=""
4294
4295mh_inc_dirs="$ac_x_header_dirs"
4296
4297
4298if test "x$x_includes" != xNONE ; then
4299    mh_inc_dirs="$x_includes $mh_inc_dirs"
4300fi
4301
4302
4303for ac_dir in $mh_inc_dirs ; do
4304  if test -r $ac_dir/Intrinsic.h; then
4305    mh_x11_dir=$ac_dir
4306    break
4307  fi
4308  if test -r $ac_dir/X11/Intrinsic.h; then
4309    mh_x11_dir="$ac_dir/X11"
4310    break
4311  fi
4312done
4313
4314
4315if test "$with_xaw3d" = yes; then
4316    mh_xaw_dir="Xaw3d"
4317else
4318    if test "$with_nextaw" = yes; then
4319        mh_xaw_dir="neXtaw"
4320    else
4321        mh_xaw_dir="Xaw"
4322    fi
4323fi
4324for ac_dir in $mh_inc_dirs ; do
4325  if test -r $ac_dir/$mh_xaw_dir/Box.h; then
4326    mh_x11_xaw_dir=$ac_dir
4327    break
4328  fi
4329  if test -r $ac_dir/X11/$mh_xaw_dir/Box.h; then
4330    mh_x11_xaw_dir="$ac_dir/X11"
4331    break
4332  fi
4333done
4334
4335if test "x$mh_x11_dir" != "x" ; then
4336    mh_x11_dir_no_x11=`echo $mh_x11_dir | sed 's/\/X11$//'`
4337
4338    if test "$mh_x11_dir_no_x11" != "$mh_x11_dir" ; then
4339        MH_XINC_DIR="-I$mh_x11_dir -I$mh_x11_dir_no_x11"
4340    else
4341        MH_XINC_DIR="-I$mh_x11_dir"
4342    fi
4343else
4344    as_fn_error $? "Cannot find required header file Intrinsic.h; PDCurses cannot be configured" "$LINENO" 5
4345fi
4346
4347if test "x$mh_x11_xaw_dir" != "x"; then
4348    if test "$mh_x11_xaw_dir" != "$mh_x11_dir" ; then
4349        MH_XINC_DIR="-I$mh_x11_xaw_dir $MH_XINC_DIR"
4350    fi
4351else
4352    as_fn_error $? "Cannot find required Xaw header file Box.h; PDCurses cannot be configured" "$LINENO" 5
4353fi
4354
4355
4356
4357
4358
4359
4360mh_solaris_flag=no
4361mh_hpux9_flag=no
4362
4363case "$target" in
4364    *solaris*)
4365        mh_solaris_flag=yes
4366        ;;
4367    *pc-sco*)
4368        extra_x_libs="Xext"
4369        ;;
4370    sparc*sunos*)
4371        extra_x_libs="Xext"
4372        if test "$ac_cv_prog_CC" = "gcc" ; then
4373            extra_ld_flags="-Wl,-Bstatic"
4374            extra_ld_flags2="-Wl,-Bdynamic"
4375        else
4376            extra_ld_flags="-Bstatic"
4377            extra_ld_flags2="-Bdynamic"
4378        fi
4379        ;;
4380    *hpux9*)
4381        mh_hpux9_flag=yes
4382        ;;
4383esac
4384
4385if test "$with_xaw3d" = yes; then
4386    MH_X11_LIBS="Xaw3d Xmu Xt X11"
4387else
4388    if test "$with_nextaw" = yes; then
4389        MH_X11_LIBS="neXtaw Xmu Xt X11"
4390    else
4391        MH_X11_LIBS="Xaw Xmu Xt X11"
4392    fi
4393fi
4394MH_X11R6_LIBS="SM ICE Xext"
4395mh_x11r6=no
4396
4397which dpkg-architecture > /dev/null
4398if test $? -eq 0; then
4399   multiarch_libdir="/usr/lib/`dpkg-architecture -qDEB_HOST_MULTIARCH`"
4400else
4401   multiarch_libdir=""
4402fi
4403
4404mh_lib_dirs="$multiarch_libdir /usr/lib64 /usr/lib/x86_64-linux-gnu /usr/lib/i386-linux-gnu $x_libraries `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`"
4405
4406for ac_dir in $mh_lib_dirs ; do
4407    for mh_xsm in libSM.a libSM.so libSM.sl libSM.dylib; do
4408      if test -r $ac_dir/$mh_xsm; then
4409        mh_x11r6=yes
4410        break 2
4411      fi
4412    done
4413done
4414
4415if test "$mh_x11r6" = yes ; then
4416    mh_libs="$MH_X11_LIBS $MH_X11R6_LIBS"
4417else
4418    mh_libs="$MH_X11_LIBS $extra_x_libs"
4419fi
4420
4421
4422
4423mh_prev_dir=""
4424mh_where_found=""
4425mh_where_found_dirs=""
4426mh_solaris_path=""
4427for mh_lib in $mh_libs; do
4428  mh_lib_found=no
4429  for ac_dir in $mh_lib_dirs ; do
4430    for mh_ext in a so sl dll.a dylib; do
4431      if test -r $ac_dir/lib$mh_lib.$mh_ext; then
4432        if test "x$mh_prev_dir" != "x$ac_dir" ; then
4433          if test "x$mh_prev_dir" = "x" ; then
4434             mh_where_found="$mh_where_found found in $ac_dir"
4435          else
4436             mh_where_found="$mh_where_found and in $ac_dir"
4437          fi
4438          mh_prev_dir=$ac_dir
4439          mh_where_found_dirs="$mh_where_found_dirs $ac_dir"
4440          MH_XLIBS="$MH_XLIBS -L$ac_dir"
4441          mh_solaris_path="${mh_solaris_path}:$ac_dir"
4442        fi
4443        MH_XLIBS="$MH_XLIBS -l$mh_lib"
4444        mh_lib_found=yes
4445        break 2
4446      fi
4447    done
4448  done
4449  if test "$mh_lib_found" = no; then
4450    as_fn_error $? "Cannot find required X library; lib$mh_lib. PDCurses cannot be configured" "$LINENO" 5
4451  fi
4452done
4453
4454mh_solaris_path=`echo $mh_solaris_path | sed 's/^://'`
4455if test "$mh_solaris_flag" = yes ; then
4456    MH_XLIBS="-R$mh_solaris_path $extra_ld_flags $MH_XLIBS $extra_libs $extra_ld_flags2"
4457else
4458    MH_XLIBS="$extra_ld_flags $MH_XLIBS $extra_libs $extra_ld_flags2"
4459fi
4460if test "$mh_hpux9_flag" = yes ; then
4461  grep -q XtSetLanguageProc $mh_x11_dir/Intrinsic.h
4462  if test $? -eq 0 ; then
4463    mh_found_xtshellstrings=no
4464    for mh_acdir in $mh_where_found_dirs ; do
4465      for mh_xaw in `ls $mh_acdir/libXaw.*` ; do
4466        nm $mh_xaw | grep XtShellStrings | grep -qv extern
4467        if test $? -eq 0 ; then
4468          mh_found_xtshellstrings=yes
4469        fi
4470      done
4471    done
4472    if test "$mh_found_xtshellstrings" = no ; then
4473      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The X11 development environment has not been installed correctly." >&5
4474$as_echo "$as_me: WARNING: The X11 development environment has not been installed correctly." >&2;}
4475      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The header file; Intrinsic.h" >&5
4476$as_echo "$as_me: WARNING: The header file; Intrinsic.h" >&2;}
4477      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Set library; libXaw is for X11R4.  This is a common problem with" >&5
4478$as_echo "$as_me: WARNING: Set library; libXaw is for X11R4.  This is a common problem with" >&2;}
4479      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HP-UX 9.x." >&5
4480$as_echo "$as_me: WARNING: HP-UX 9.x." >&2;}
4481      as_fn_error $? "X11 installation incomplete; cannot continue" "$LINENO" 5
4482    fi
4483  fi
4484fi
4485
4486
4487
4488
4489
4490save_CPPFLAGS="$CPPFLAGS"
4491CPPFLAGS="$CPPFLAGS $MH_XINC_DIR"
4492for mh_header in DECkeysym.h Sunkeysym.h xpm.h XF86keysym.h; do
4493    for ac_header in $mh_header
4494do :
4495  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4496ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4497if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4498  cat >>confdefs.h <<_ACEOF
4499#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4500_ACEOF
4501
4502fi
4503
4504done
4505
4506done
4507CPPFLAGS="$save_CPPFLAGS"
4508
4509
4510save_CPPFLAGS="$CPPFLAGS"
4511CPPFLAGS="$CPPFLAGS $MH_XINC_DIR"
4512for mh_keydef in XK_KP_Delete XK_KP_Insert XK_KP_End XK_KP_Down XK_KP_Next \
4513   XK_KP_Left XK_KP_Right XK_KP_Home XK_KP_Up XK_KP_Prior XK_KP_Begin; do
4514    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $mh_keydef in keysym.h" >&5
4515$as_echo_n "checking for $mh_keydef in keysym.h... " >&6; }
4516    mh_upper_name="HAVE_`echo $mh_keydef | tr 'a-z' 'A-Z'`"
4517    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518/* end confdefs.h.  */
4519#include <keysym.h>
4520int
4521main ()
4522{
4523int i = $mh_keydef;
4524  ;
4525  return 0;
4526}
4527_ACEOF
4528if ac_fn_c_try_compile "$LINENO"; then :
4529  mh_have_key=yes; cat >>confdefs.h <<_ACEOF
4530#define $mh_upper_name 1
4531_ACEOF
4532
4533else
4534  mh_have_key=no
4535fi
4536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4537    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_have_key" >&5
4538$as_echo "$mh_have_key" >&6; }
4539done
4540CPPFLAGS="$save_CPPFLAGS"
4541
4542
4543save_CPPFLAGS="$CPPFLAGS"
4544CPPFLAGS="$CPPFLAGS $SYS_DEFS $MH_XINC_DIR"
4545for td in XPointer ; do
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $td is typedefed:" >&5
4547$as_echo_n "checking if $td is typedefed:... " >&6; }
4548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549/* end confdefs.h.  */
4550#include "X11/Xlib.h"
4551int
4552main ()
4553{
4554$td fred
4555  ;
4556  return 0;
4557}
4558_ACEOF
4559if ac_fn_c_try_compile "$LINENO"; then :
4560  mh_td=yes
4561else
4562  mh_td=no
4563
4564fi
4565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566if test "$mh_td" = yes ; then
4567    TD_upper=`echo $td | tr a-z A-Z`
4568    cat >>confdefs.h <<_ACEOF
4569#define ${TD_upper}_TYPEDEFED 1
4570_ACEOF
4571
4572fi
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_td" >&5
4574$as_echo "$mh_td" >&6; }
4575done
4576CPPFLAGS="$save_CPPFLAGS"
4577
4578if test $ac_cv_header_xpm_h = yes; then
4579   MH_XLIBS="$MH_XLIBS -lXpm"
4580fi
4581# Check whether --enable-debug was given.
4582if test "${enable_debug+set}" = set; then :
4583  enableval=$enable_debug; with_debug=$enableval
4584else
4585  with_debug=no
4586fi
4587
4588cflags_g="`echo $CFLAGS | grep -c '\-g'`"
4589cflags_O="`echo $CFLAGS | grep -c '\-O'`"
4590
4591if test "$with_debug" = yes; then
4592   if test "$cflags_g" = "0"; then
4593      CFLAGS="${CFLAGS} -g"
4594   fi
4595   if test "$cflags_O" != "0"; then
4596      CFLAGS="`echo ${CFLAGS} | sed -e s/-O.//`"
4597   fi
4598   CFLAGS="${CFLAGS} -DPDCDEBUG"
4599else
4600   if test "$cflags_O" = "0"; then
4601      CFLAGS="${CFLAGS} -O"
4602   fi
4603   if test "$cflags_g" != "0"; then
4604      CFLAGS="`echo ${CFLAGS} | sed -e s/-g//`"
4605   fi
4606fi
4607if test "$ac_cv_prog_CC" = "gcc"; then
4608   if test "$with_debug" = yes; then
4609      CFLAGS="${CFLAGS} -Wall"
4610   else
4611      CFLAGS="-O2 -Wall -fomit-frame-pointer"
4612   fi
4613fi
4614if test "$on_qnx" = yes; then
4615   if test "$with_debug" = yes; then
4616      CFLAGS="-g"
4617   else
4618      CFLAGS="-Otax"
4619   fi
4620fi
4621
4622# Check whether --enable-widec was given.
4623if test "${enable_widec+set}" = set; then :
4624  enableval=$enable_widec; with_widec=$enableval
4625else
4626  with_widec=no
4627fi
4628
4629PDC_WIDE=""
4630if test "$with_widec" = yes; then
4631   PDC_WIDE="-DPDC_WIDE"
4632   SYS_DEFS="$SYS_DEFS $PDC_WIDE"
4633fi
4634
4635
4636# Check whether --enable-xim was given.
4637if test "${enable_xim+set}" = set; then :
4638  enableval=$enable_xim; with_xim=$enableval
4639else
4640  with_xim=no
4641fi
4642
4643if test "$with_xim" = yes; then
4644   SYS_DEFS="$SYS_DEFS -DPDC_XIM"
4645fi
4646
4647# Check whether --enable-force-utf8 was given.
4648if test "${enable_force_utf8+set}" = set; then :
4649  enableval=$enable_force_utf8; force_utf8=$enableval
4650else
4651  force_utf8=no
4652fi
4653
4654if test "$force_utf8" = yes; then
4655   SYS_DEFS="$SYS_DEFS -DPDC_FORCE_UTF8"
4656fi
4657
4658# Check whether --enable-purify was given.
4659if test "${enable_purify+set}" = set; then :
4660  enableval=$enable_purify; with_purify=$enableval
4661else
4662  with_purify=no
4663fi
4664
4665if test "$with_purify" = yes; then
4666   PURIFY="purify"
4667else
4668   PURIFY=""
4669fi
4670
4671
4672
4673# Check whether --with-xaw3d was given.
4674if test "${with_xaw3d+set}" = set; then :
4675  withval=$with_xaw3d; with_xaw3d=$withval
4676else
4677  with_xaw3d=no
4678fi
4679
4680if test "$with_xaw3d" = yes; then
4681
4682$as_echo "#define USE_XAW3D 1" >>confdefs.h
4683
4684fi
4685
4686
4687# Check whether --with-nextaw was given.
4688if test "${with_nextaw+set}" = set; then :
4689  withval=$with_nextaw; with_nextaw=$withval
4690else
4691  with_nextaw=no
4692fi
4693
4694if test "$with_nextaw" = yes; then
4695
4696$as_echo "#define USE_NEXTAW 1" >>confdefs.h
4697
4698fi
4699
4700USE_ABI=yes
4701
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking shared library extension" >&5
4703$as_echo_n "checking shared library extension... " >&6; }
4704SHLPST=".so"
4705
4706case "$target" in
4707        *hp-hpux*)
4708                SHLPST=".sl"
4709                ;;
4710        *ibm-aix*)
4711                SHLPST=".a"
4712                ;;
4713        *qnx*)
4714                SHLPST=""
4715                ;;
4716        *cygwin*)
4717                SHLPST=".dll"
4718                ;;
4719        *darwin*)
4720                SHLPST=".dylib"
4721                ;;
4722esac
4723
4724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLPST" >&5
4725$as_echo "$SHLPST" >&6; }
4726
4727
4728
4729AIX_DYN="no"
4730BEOS_DYN="no"
4731SHLFILE="XCurses"
4732SHLFILES="XCurses"
4733RXPACKEXPORTS=""
4734SHLPRE="lib"
4735LD_RXLIB1=""
4736BASE_INSTALL="installbase"
4737BASE_BINARY="binarybase"
4738# OTHER_INSTALLS is set to install a non-version numbered shared library
4739# by default; ie. no .\$(ABI) suffix. Set OTHER_INSTALLS="installabilib" if you
4740# are building a version numbered shared library.
4741OTHER_INSTALLS="installlib"
4742
4743
4744case "$target" in
4745    *hp-hpux*)
4746        SYS_DEFS="-D_HPUX_SOURCE"
4747        LD_RXLIB1="ld -b -q -n"
4748        ;;
4749    *ibm-aix*)
4750        SYS_DEFS="-D_ALL_SOURCE -DAIX"
4751        AIX_DYN="yes"
4752        DYN_COMP="-DDYNAMIC"
4753        LD_RXLIB1="ld -bnoentry -bM:SRE"
4754        RXPACKEXPORTS="-bE:$SHLFILE.exp"
4755        RXPACKEXP="$SHLFILE.exp"
4756        ;;
4757    *dec-osf*)
4758        if test "$ac_cv_prog_CC" = "gcc"; then
4759            SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE"
4760        else
4761            SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE -Olimit 800"
4762        fi
4763        LD_RXLIB1="ld -shared"
4764        ;;
4765    *sequent-dynix*|*esix*|*dgux*)
4766        LD_RXLIB1="ld -G"
4767        ;;
4768    *solaris*)
4769        if test "$ac_cv_prog_CC" = "gcc"; then
4770            LD_RXLIB1="gcc -shared"
4771        else
4772            LD_RXLIB1="ld -G"
4773        fi
4774        ;;
4775    sparc*sunos*)
4776        SYS_DEFS="-DSUNOS -DSUNOS_STRTOD_BUG"
4777        LD_RXLIB1="ld"
4778        ;;
4779    *atheos*|*nto-qnx*)
4780        LD_RXLIB1="${CC} -shared"
4781        ;;
4782    *linux*|*kfreebsd*-gnu*)
4783      LD_RXLIB1="${CC} -shared  -Wl,-soname,\$(@)"
4784      CAN_USE_ABI="yes"
4785      if test "$USE_ABI" = "yes"; then
4786         OTHER_INSTALLS="installabilib"
4787      fi
4788        ;;
4789    *freebsd*)
4790        LD_RXLIB1="ld -Bdynamic -Bshareable"
4791        ;;
4792    *pc-sco*)
4793        LD_RXLIB1="ld -dy -G"
4794        ;;
4795    *beos*)
4796        LD_RXLIB1="${CC} -Wl,-shared -nostart -Xlinker -soname=\$(@)"
4797        BEOS_DYN="yes"
4798        ;;
4799    *qnx*)
4800        SHLPRE=""
4801        DYN_COMP="-Q"   # force no check for dynamic loading
4802        SHLFILE=""
4803        ;;
4804    *cygwin)
4805        SHLPRE=""
4806        DYN_COMP="-DDYNAMIC"
4807        LD_RXLIB1="dllwrap --def \$(srcdir)/../win32/pdcurses.def --target i386-cygwin32 --dllname \$(@)"
4808# cygwininstall target MUST install the shared library itself because
4809# it puts it into $(bindir) not $(libdir) as all other platforms
4810        ;;
4811    *darwin*)
4812        DYN_COMP="-fno-common"
4813        LD_RXLIB1="${CC} -flat_namespace -undefined suppress -dynamiclib -install_name=\$(@)"
4814        ;;
4815    *)
4816        ;;
4817esac
4818
4819
4820if test "$DYN_COMP" = ""; then
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for a dynamic object" >&5
4822$as_echo_n "checking compiler flags for a dynamic object... " >&6; }
4823
4824cat > conftest.$ac_ext <<EOF
4825#line 4825 "configure"
4826int a=0
4827EOF
4828
4829    DYN_COMP=""
4830    mh_cv_stop=no
4831    save_cflags="$CFLAGS"
4832    mh_cv_flags="-fPIC -KPIC +Z"
4833    for a in $mh_cv_flags; do
4834        CFLAGS="-c $a"
4835
4836        mh_compile='${CC-cc} -c $CFLAGS conftest.$ac_ext > conftest.tmp 2>&1'
4837        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_compile\""; } >&5
4838  (eval $mh_compile) 2>&5
4839  ac_status=$?
4840  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4841  test $ac_status = 0; }; then
4842            DYN_COMP=""
4843        else
4844            slash="\\"
4845            mh_dyncomp="`egrep -c $slash$a conftest.tmp`"
4846            if test "$mh_dyncomp" = "0"; then
4847                DYN_COMP="$a -DDYNAMIC"
4848                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $a" >&5
4849$as_echo "$a" >&6; }
4850                break
4851            else
4852                DYN_COMP=""
4853            fi
4854        fi
4855    done
4856    if test "$DYN_COMP" = ""; then
4857        { $as_echo "$as_me:${as_lineno-$LINENO}: result: none of $mh_cv_flags supported" >&5
4858$as_echo "none of $mh_cv_flags supported" >&6; }
4859    fi
4860    if test "$LD_RXLIB1" = ""; then
4861
4862mh_compile='${CC-cc} -c $DYN_COMP conftest.$ac_ext 1>&5'
4863cat > conftest.$ac_ext <<EOF
4864#line 4864 "configure"
4865int foo()
4866{
4867return(0);
4868}
4869EOF
4870if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_compile\""; } >&5
4871  (eval $mh_compile) 2>&5
4872  ac_status=$?
4873  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4874  test $ac_status = 0; } && test -s conftest.o; then
4875    mh_dyn_link='ld -shared -o conftest.rxlib conftest.o -lc 1>&5'
4876#   mh_dyn_link='${CC} -Wl,-shared -o conftest.rxlib conftest.o -lc 1>&AC_FD_CC'
4877    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
4878  (eval $mh_dyn_link) 2>&5
4879  ac_status=$?
4880  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4881  test $ac_status = 0; } && test -s conftest.rxlib; then
4882        LD_RXLIB1="ld -shared"
4883#       LD_RXLIB1="${CC} -Wl,-shared"
4884        SHLPRE="lib"
4885        SHLPST=".so"
4886    else
4887        mh_dyn_link='ld -G -o conftest.rxlib conftest.o 1>&5'
4888#       mh_dyn_link='${CC} -Wl,-G -o conftest.rxlib conftest.o 1>&AC_FD_CC'
4889        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
4890  (eval $mh_dyn_link) 2>&5
4891  ac_status=$?
4892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4893  test $ac_status = 0; } && test -s conftest.rxlib; then
4894            LD_RXLIB1="ld -G"
4895#           LD_RXLIB1="${CC} -Wl,-G"
4896            SHLPRE="lib"
4897            SHLPST=".so"
4898        else
4899            LD_RXLIB1=""
4900            SHLPRE=""
4901            SHLPST=""
4902        fi
4903    fi
4904fi
4905rm -f conftest*
4906
4907    fi
4908    CFLAGS=$save_cflags
4909    rm -f conftest.*
4910fi
4911
4912
4913SHL_TARGETS=""
4914
4915if test "$AIX_DYN" = "yes"; then
4916    aix_exports="config.exports.aix"
4917    echo "" > $aix_exports
4918fi
4919
4920if 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
4921    EXPS="1,2,3,4,5,6,7,8,9"
4922    for a in $SHLFILES
4923    do
4924        if test "$USE_ABI" = "yes" -a "$CAN_USE_ABI" = "yes"; then
4925           SHL_TARGETS="${SHL_TARGETS} ${SHLPRE}${a}${SHLPST}.\$(ABI)"
4926        else
4927           SHL_TARGETS="${SHL_TARGETS} ${SHLPRE}${a}${SHLPST}"
4928        fi
4929        this=`echo $EXPS | cut -d, -f1`
4930        EXPS=`echo $EXPS | cut -d, -f2-`
4931        if test "$AIX_DYN" = "yes"; then
4932            echo "RXPACKEXP$this=$a.exp" >> $aix_exports
4933            echo "RXPACKEXPORTS$this=-bE:$a.exp" >> $aix_exports
4934        fi
4935    done
4936fi
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955# Extract the first word of "rpm", so it can be a program name with args.
4956set dummy rpm; ac_word=$2
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958$as_echo_n "checking for $ac_word... " >&6; }
4959if ${ac_cv_prog_mh_rpm_exists+:} false; then :
4960  $as_echo_n "(cached) " >&6
4961else
4962  if test -n "$mh_rpm_exists"; then
4963  ac_cv_prog_mh_rpm_exists="$mh_rpm_exists" # Let the user override the test.
4964else
4965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966for as_dir in $PATH
4967do
4968  IFS=$as_save_IFS
4969  test -z "$as_dir" && as_dir=.
4970    for ac_exec_ext in '' $ac_executable_extensions; do
4971  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4972    ac_cv_prog_mh_rpm_exists="yes"
4973    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974    break 2
4975  fi
4976done
4977  done
4978IFS=$as_save_IFS
4979
4980  test -z "$ac_cv_prog_mh_rpm_exists" && ac_cv_prog_mh_rpm_exists="no "
4981fi
4982fi
4983mh_rpm_exists=$ac_cv_prog_mh_rpm_exists
4984if test -n "$mh_rpm_exists"; then
4985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_rpm_exists" >&5
4986$as_echo "$mh_rpm_exists" >&6; }
4987else
4988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989$as_echo "no" >&6; }
4990fi
4991
4992
4993if test "$mh_rpm_exists" = yes; then
4994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where rpms are built" >&5
4995$as_echo_n "checking where rpms are built... " >&6; }
4996   RPMTOPDIR=`rpm --eval "%{_topdir}"`
4997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMTOPDIR" >&5
4998$as_echo "$RPMTOPDIR" >&6; }
4999
5000fi
5001
5002
5003# Extract the first word of "lsb_release", so it can be a program name with args.
5004set dummy lsb_release; ac_word=$2
5005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5006$as_echo_n "checking for $ac_word... " >&6; }
5007if ${ac_cv_prog_lsb_release+:} false; then :
5008  $as_echo_n "(cached) " >&6
5009else
5010  if test -n "$lsb_release"; then
5011  ac_cv_prog_lsb_release="$lsb_release" # Let the user override the test.
5012else
5013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014for as_dir in $PATH
5015do
5016  IFS=$as_save_IFS
5017  test -z "$as_dir" && as_dir=.
5018    for ac_exec_ext in '' $ac_executable_extensions; do
5019  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5020    ac_cv_prog_lsb_release="yes"
5021    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5022    break 2
5023  fi
5024done
5025  done
5026IFS=$as_save_IFS
5027
5028  test -z "$ac_cv_prog_lsb_release" && ac_cv_prog_lsb_release="no"
5029fi
5030fi
5031lsb_release=$ac_cv_prog_lsb_release
5032if test -n "$lsb_release"; then
5033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lsb_release" >&5
5034$as_echo "$lsb_release" >&6; }
5035else
5036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037$as_echo "no" >&6; }
5038fi
5039
5040
5041if test "$ac_cv_prog_lsb_release" = yes; then
5042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking OS distribution name" >&5
5043$as_echo_n "checking OS distribution name... " >&6; }
5044   MYDISTRO="`lsb_release -i | cut -f 2`-`lsb_release -r | cut -f 2`"
5045   MYDISTRO="`echo $MYDISTRO | sed \"s/ /_/g\"`"
5046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYDISTRO" >&5
5047$as_echo "$MYDISTRO" >&6; }
5048else
5049   case "$target" in
5050      *freebsd* | *openbsd*)
5051         MYDISTRO="`echo $target | cut -f3 -d-`"
5052      ;;
5053      *darwin*)
5054         MYDISTRO="`echo $target | cut -f2-3 -d-`"
5055      ;;
5056      *pc-solaris2*)
5057         MYDISTRO="`echo $target | cut -f2- -d-`"
5058      ;;
5059      *cygwin*)
5060         MYDISTRO="`echo $target | cut -f2- -d-`"
5061      ;;
5062      *)
5063         MYDISTRO="$target"
5064      ;;
5065   esac
5066fi
5067
5068
5069
5070# Check whether --enable-32bit was given.
5071if test "${enable_32bit+set}" = set; then :
5072  enableval=$enable_32bit; bitflag32=yes
5073else
5074  bitflag32=no
5075fi
5076
5077# Check whether --enable-64bit was given.
5078if test "${enable_64bit+set}" = set; then :
5079  enableval=$enable_64bit; bitflag64=yes
5080else
5081  bitflag64=no
5082fi
5083
5084
5085#
5086# Now do platform specific tests
5087#
5088gcc_64bit="-m64"
5089gcc_32bit="-m32"
5090on_osx="no"
5091osis64bit=no
5092bitflag=""
5093case "$target" in
5094   *hp-hpux*)
5095      ;;
5096   *ibm-aix*)
5097      rc=`lsconf -k | grep -c 64-bit`
5098      if test $rc -eq 1; then
5099         bitflag="64"
5100         osis64bit=yes
5101      fi
5102      #
5103      # AIX gcc has its own special bit switches :-(
5104      #
5105      gcc_64bit="-maix64"
5106      gcc_32bit="-maix32"
5107      ;;
5108   *dec-osf4*)
5109      ;;
5110   *dec-osf*)
5111      ;;
5112   *sequent-dynix*)
5113      ;;
5114   i*86*solaris*)
5115      ;;
5116   *solaris*)
5117      rc=`isainfo -v | grep -c 64-bit`
5118      if test $rc -eq 1; then
5119         bitflag="64"
5120         osis64bit=yes
5121      fi
5122      ;;
5123   sparc*sunos*)
5124      ;;
5125   *linux*|*kfreebsd*-gnu*)
5126      mach="`uname -m`"
5127      if test "$mach" = "x86_64" -o "$mach" = "ia86" -o "$mach" = "alpha" -o "$mach" = "ppc64" -o "$mach" = "s390x"; then
5128         bitflag="64"
5129         osis64bit=yes
5130      fi
5131      ;;
5132   *-freebsd*)
5133      mach="`uname -m`"
5134      if test "$mach" = "amd64"; then
5135         bitflag="64"
5136         osis64bit=yes
5137      fi
5138      ;;
5139   *nto-qnx*)
5140      ;;
5141   *qnx*)
5142      ;;
5143   *beos*)
5144      ;;
5145   *cygwin*)
5146      ;;
5147   *apple-darwin*)
5148      on_osx="yes"
5149      osx_64bit=`sysctl hw.cpu64bit_capable | cut -f2 -d' '`
5150      if test $osx_64bit -eq 1; then
5151         bitflag="64"
5152         osis64bit=yes
5153      fi
5154      ;;
5155esac
5156
5157if test "x$bitflag32" = "xyes" -a "x$bitflag64" = "xyes"; then
5158   as_fn_error $? "--enable-32bit and --enable-64bit flags cannot both be specified." "$LINENO" 5
5159fi
5160
5161if test "x$bitflag64" = "xyes" -a "$osis64bit" = "no"; then
5162   as_fn_error $? "--enable-64bit cannot be specified on non-64bit OS." "$LINENO" 5
5163fi
5164
5165binarybitprefix=""
5166if test "x$bitflag32" = "xyes"; then
5167   bitflag="32"
5168   if test "$osis64bit" = "yes"; then
5169      binarybitprefix="32"
5170   fi
5171elif test "x$bitflag64" = "xyes"; then
5172   bitflag="64"
5173fi
5174MACH_ARCH=`$ac_config_guess | cut -f1 -d-`
5175
5176
5177
5178if test "$on_osx" = "yes"; then
5179
5180valid_arch_flags=""
5181found_arch_flags=""
5182
5183# Check whether --with-arch was given.
5184if test "${with_arch+set}" = set; then :
5185  withval=$with_arch; with_arch=$withval
5186else
5187  with_arch=none
5188fi
5189
5190case "$with_arch" in
5191   none)
5192      arch_flags=""
5193      ;;
5194   all)
5195      arch_flags="-arch ppc -arch ppc64 -arch x86_64 -arch i386"
5196      ;;
5197   32bit)
5198      arch_flags="-arch ppc -arch i386"
5199      ;;
5200   64bit)
5201      arch_flags="-arch ppc64 -arch x86_64"
5202      ;;
5203   intel)
5204      arch_flags="-arch i386 -arch x86_64"
5205      ;;
5206   *)
5207      arch_flags="-arch $with_arch"
5208      ;;
5209esac
5210
5211valid_arch_flags=""
5212found_arch_flags=""
5213if test $on_osx = "yes"; then
5214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which Mac OSX -arch flags are supported for universal binaries" >&5
5215$as_echo_n "checking for which Mac OSX -arch flags are supported for universal binaries... " >&6; }
5216  for a in $arch_flags; do
5217    save_ldflags="$LDFLAGS"
5218    LDFLAGS="$LDFLAGS -arch $a"
5219    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220/* end confdefs.h.  */
5221#include <stdio.h>
5222int
5223main ()
5224{
5225exit(0)
5226  ;
5227  return 0;
5228}
5229_ACEOF
5230if ac_fn_c_try_link "$LINENO"; then :
5231  valid_arch_flags="$valid_arch_flags -arch $a";found_arch_flags="$found_arch_flags $a"
5232else
5233  a="$a"
5234
5235fi
5236rm -f core conftest.err conftest.$ac_objext \
5237    conftest$ac_exeext conftest.$ac_ext
5238    LDFLAGS="$save_ldflags"
5239  done
5240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_arch_flags" >&5
5241$as_echo "$found_arch_flags" >&6; }
5242
5243fi
5244
5245else
5246   if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++"; then
5247      if test "$bitflag" = "32"; then
5248         CFLAGS="${CFLAGS} $gcc_32bit"
5249         LDFLAGS="${LDFLAGS} $gcc_32bit"
5250      elif test "$bitflag" = "64"; then
5251         CFLAGS="${CFLAGS} $gcc_64bit"
5252         LDFLAGS="${LDFLAGS} $gcc_64bit"
5253      else
5254         bitflag="32"
5255      fi
5256   elif test "$ac_cv_prog_CC" = "xlc" -o "$ac_cv_prog_CC" = "xlC"; then
5257      if test "$bitflag" = "32"; then
5258         CFLAGS="${CFLAGS} -q32"
5259         LDFLAGS="${LDFLAGS} -q32"
5260      elif test "$bitflag" = "64"; then
5261         CFLAGS="${CFLAGS} -q64"
5262         LDFLAGS="${LDFLAGS} -q64"
5263      else
5264         bitflag="32"
5265      fi
5266   fi
5267fi
5268
5269#libdir_change=yes
5270# Check whether --enable-libdir-change was given.
5271if test "${enable_libdir_change+set}" = set; then :
5272  enableval=$enable_libdir_change; libdir_change=$enableval
5273else
5274  libdir_change=yes
5275fi
5276
5277echo "libdir: $libdir_change"
5278if test "$libdir_change" = yes; then
5279            if test "${libdir}" = '${exec_prefix}/lib'; then
5280               myprefix=$prefix
5281
5282  prefix_NONE=
5283  exec_prefix_NONE=
5284  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
5285  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
5286  eval ac_define_dir="\""$myprefix"\""
5287  eval ac_define_dir="\"$ac_define_dir\""
5288  MY_PREFIX="$ac_define_dir"
5289
5290  cat >>confdefs.h <<_ACEOF
5291#define MY_PREFIX "$ac_define_dir"
5292_ACEOF
5293
5294  test "$prefix_NONE" && prefix=NONE
5295  test "$exec_prefix_NONE" && exec_prefix=NONE
5296
5297      if test "${myprefix}" = "NONE"; then
5298         myprefix="$ac_default_prefix"
5299      fi
5300               if test -d "${myprefix}/lib/x86_64-linux-gnu"; then
5301         libdir64="${myprefix}/lib/x86_64-linux-gnu"
5302      elif test -d "${myprefix}/lib64"; then
5303         libdir64="${myprefix}/lib64"
5304      else
5305         libdir64="${myprefix}/lib"
5306      fi
5307               if test -d "${myprefix}/lib/i386-linux-gnu"; then
5308         libdir32="${myprefix}/lib/i386-linux-gnu"
5309      elif test -d "${myprefix}/lib32"; then
5310         libdir32="${myprefix}/lib32"
5311      else
5312         libdir32="${myprefix}/lib"
5313      fi
5314               if test "$bitflag" = "64"; then
5315         libdir="$libdir64"
5316      else
5317         libdir="$libdir32"
5318      fi
5319   else
5320      libdir64="$libdir"
5321      libdir32="$libdir"
5322   fi
5323else
5324   libdir64="$libdir"
5325   libdir32="$libdir"
5326fi
5327
5328
5329
5330
5331
5332ac_config_files="$ac_config_files Makefile xcurses-config"
5333
5334cat >confcache <<\_ACEOF
5335# This file is a shell script that caches the results of configure
5336# tests run on this system so they can be shared between configure
5337# scripts and configure runs, see configure's option --config-cache.
5338# It is not useful on other systems.  If it contains results you don't
5339# want to keep, you may remove or edit it.
5340#
5341# config.status only pays attention to the cache file if you give it
5342# the --recheck option to rerun configure.
5343#
5344# `ac_cv_env_foo' variables (set or unset) will be overridden when
5345# loading this file, other *unset* `ac_cv_foo' will be assigned the
5346# following values.
5347
5348_ACEOF
5349
5350# The following way of writing the cache mishandles newlines in values,
5351# but we know of no workaround that is simple, portable, and efficient.
5352# So, we kill variables containing newlines.
5353# Ultrix sh set writes to stderr and can't be redirected directly,
5354# and sets the high bit in the cache file unless we assign to the vars.
5355(
5356  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5357    eval ac_val=\$$ac_var
5358    case $ac_val in #(
5359    *${as_nl}*)
5360      case $ac_var in #(
5361      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5362$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5363      esac
5364      case $ac_var in #(
5365      _ | IFS | as_nl) ;; #(
5366      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5367      *) { eval $ac_var=; unset $ac_var;} ;;
5368      esac ;;
5369    esac
5370  done
5371
5372  (set) 2>&1 |
5373    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5374    *${as_nl}ac_space=\ *)
5375      # `set' does not quote correctly, so add quotes: double-quote
5376      # substitution turns \\\\ into \\, and sed turns \\ into \.
5377      sed -n \
5378	"s/'/'\\\\''/g;
5379	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5380      ;; #(
5381    *)
5382      # `set' quotes correctly as required by POSIX, so do not add quotes.
5383      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5384      ;;
5385    esac |
5386    sort
5387) |
5388  sed '
5389     /^ac_cv_env_/b end
5390     t clear
5391     :clear
5392     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5393     t end
5394     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5395     :end' >>confcache
5396if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5397  if test -w "$cache_file"; then
5398    if test "x$cache_file" != "x/dev/null"; then
5399      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5400$as_echo "$as_me: updating cache $cache_file" >&6;}
5401      if test ! -f "$cache_file" || test -h "$cache_file"; then
5402	cat confcache >"$cache_file"
5403      else
5404        case $cache_file in #(
5405        */* | ?:*)
5406	  mv -f confcache "$cache_file"$$ &&
5407	  mv -f "$cache_file"$$ "$cache_file" ;; #(
5408        *)
5409	  mv -f confcache "$cache_file" ;;
5410	esac
5411      fi
5412    fi
5413  else
5414    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5415$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5416  fi
5417fi
5418rm -f confcache
5419
5420test "x$prefix" = xNONE && prefix=$ac_default_prefix
5421# Let make expand exec_prefix.
5422test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5423
5424DEFS=-DHAVE_CONFIG_H
5425
5426ac_libobjs=
5427ac_ltlibobjs=
5428U=
5429for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5430  # 1. Remove the extension, and $U if already installed.
5431  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5432  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5433  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5434  #    will be set to the directory where LIBOBJS objects are built.
5435  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5436  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5437done
5438LIBOBJS=$ac_libobjs
5439
5440LTLIBOBJS=$ac_ltlibobjs
5441
5442
5443
5444: "${CONFIG_STATUS=./config.status}"
5445ac_write_fail=0
5446ac_clean_files_save=$ac_clean_files
5447ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5448{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5449$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5450as_write_fail=0
5451cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5452#! $SHELL
5453# Generated by $as_me.
5454# Run this file to recreate the current configuration.
5455# Compiler output produced by configure, useful for debugging
5456# configure, is in config.log if it exists.
5457
5458debug=false
5459ac_cs_recheck=false
5460ac_cs_silent=false
5461
5462SHELL=\${CONFIG_SHELL-$SHELL}
5463export SHELL
5464_ASEOF
5465cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5466## -------------------- ##
5467## M4sh Initialization. ##
5468## -------------------- ##
5469
5470# Be more Bourne compatible
5471DUALCASE=1; export DUALCASE # for MKS sh
5472if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5473  emulate sh
5474  NULLCMD=:
5475  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5476  # is contrary to our usage.  Disable this feature.
5477  alias -g '${1+"$@"}'='"$@"'
5478  setopt NO_GLOB_SUBST
5479else
5480  case `(set -o) 2>/dev/null` in #(
5481  *posix*) :
5482    set -o posix ;; #(
5483  *) :
5484     ;;
5485esac
5486fi
5487
5488
5489as_nl='
5490'
5491export as_nl
5492# Printing a long string crashes Solaris 7 /usr/bin/printf.
5493as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5494as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5495as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5496# Prefer a ksh shell builtin over an external printf program on Solaris,
5497# but without wasting forks for bash or zsh.
5498if test -z "$BASH_VERSION$ZSH_VERSION" \
5499    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5500  as_echo='print -r --'
5501  as_echo_n='print -rn --'
5502elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5503  as_echo='printf %s\n'
5504  as_echo_n='printf %s'
5505else
5506  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5507    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5508    as_echo_n='/usr/ucb/echo -n'
5509  else
5510    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5511    as_echo_n_body='eval
5512      arg=$1;
5513      case $arg in #(
5514      *"$as_nl"*)
5515	expr "X$arg" : "X\\(.*\\)$as_nl";
5516	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5517      esac;
5518      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5519    '
5520    export as_echo_n_body
5521    as_echo_n='sh -c $as_echo_n_body as_echo'
5522  fi
5523  export as_echo_body
5524  as_echo='sh -c $as_echo_body as_echo'
5525fi
5526
5527# The user is always right.
5528if test "${PATH_SEPARATOR+set}" != set; then
5529  PATH_SEPARATOR=:
5530  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5531    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5532      PATH_SEPARATOR=';'
5533  }
5534fi
5535
5536
5537# IFS
5538# We need space, tab and new line, in precisely that order.  Quoting is
5539# there to prevent editors from complaining about space-tab.
5540# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5541# splitting by setting IFS to empty value.)
5542IFS=" ""	$as_nl"
5543
5544# Find who we are.  Look in the path if we contain no directory separator.
5545as_myself=
5546case $0 in #((
5547  *[\\/]* ) as_myself=$0 ;;
5548  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549for as_dir in $PATH
5550do
5551  IFS=$as_save_IFS
5552  test -z "$as_dir" && as_dir=.
5553    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5554  done
5555IFS=$as_save_IFS
5556
5557     ;;
5558esac
5559# We did not find ourselves, most probably we were run as `sh COMMAND'
5560# in which case we are not to be found in the path.
5561if test "x$as_myself" = x; then
5562  as_myself=$0
5563fi
5564if test ! -f "$as_myself"; then
5565  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5566  exit 1
5567fi
5568
5569# Unset variables that we do not need and which cause bugs (e.g. in
5570# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5571# suppresses any "Segmentation fault" message there.  '((' could
5572# trigger a bug in pdksh 5.2.14.
5573for as_var in BASH_ENV ENV MAIL MAILPATH
5574do eval test x\${$as_var+set} = xset \
5575  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5576done
5577PS1='$ '
5578PS2='> '
5579PS4='+ '
5580
5581# NLS nuisances.
5582LC_ALL=C
5583export LC_ALL
5584LANGUAGE=C
5585export LANGUAGE
5586
5587# CDPATH.
5588(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5589
5590
5591# as_fn_error STATUS ERROR [LINENO LOG_FD]
5592# ----------------------------------------
5593# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5594# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5595# script with STATUS, using 1 if that was 0.
5596as_fn_error ()
5597{
5598  as_status=$1; test $as_status -eq 0 && as_status=1
5599  if test "$4"; then
5600    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5601    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5602  fi
5603  $as_echo "$as_me: error: $2" >&2
5604  as_fn_exit $as_status
5605} # as_fn_error
5606
5607
5608# as_fn_set_status STATUS
5609# -----------------------
5610# Set $? to STATUS, without forking.
5611as_fn_set_status ()
5612{
5613  return $1
5614} # as_fn_set_status
5615
5616# as_fn_exit STATUS
5617# -----------------
5618# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5619as_fn_exit ()
5620{
5621  set +e
5622  as_fn_set_status $1
5623  exit $1
5624} # as_fn_exit
5625
5626# as_fn_unset VAR
5627# ---------------
5628# Portably unset VAR.
5629as_fn_unset ()
5630{
5631  { eval $1=; unset $1;}
5632}
5633as_unset=as_fn_unset
5634# as_fn_append VAR VALUE
5635# ----------------------
5636# Append the text in VALUE to the end of the definition contained in VAR. Take
5637# advantage of any shell optimizations that allow amortized linear growth over
5638# repeated appends, instead of the typical quadratic growth present in naive
5639# implementations.
5640if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5641  eval 'as_fn_append ()
5642  {
5643    eval $1+=\$2
5644  }'
5645else
5646  as_fn_append ()
5647  {
5648    eval $1=\$$1\$2
5649  }
5650fi # as_fn_append
5651
5652# as_fn_arith ARG...
5653# ------------------
5654# Perform arithmetic evaluation on the ARGs, and store the result in the
5655# global $as_val. Take advantage of shells that can avoid forks. The arguments
5656# must be portable across $(()) and expr.
5657if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5658  eval 'as_fn_arith ()
5659  {
5660    as_val=$(( $* ))
5661  }'
5662else
5663  as_fn_arith ()
5664  {
5665    as_val=`expr "$@" || test $? -eq 1`
5666  }
5667fi # as_fn_arith
5668
5669
5670if expr a : '\(a\)' >/dev/null 2>&1 &&
5671   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5672  as_expr=expr
5673else
5674  as_expr=false
5675fi
5676
5677if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5678  as_basename=basename
5679else
5680  as_basename=false
5681fi
5682
5683if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5684  as_dirname=dirname
5685else
5686  as_dirname=false
5687fi
5688
5689as_me=`$as_basename -- "$0" ||
5690$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5691	 X"$0" : 'X\(//\)$' \| \
5692	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5693$as_echo X/"$0" |
5694    sed '/^.*\/\([^/][^/]*\)\/*$/{
5695	    s//\1/
5696	    q
5697	  }
5698	  /^X\/\(\/\/\)$/{
5699	    s//\1/
5700	    q
5701	  }
5702	  /^X\/\(\/\).*/{
5703	    s//\1/
5704	    q
5705	  }
5706	  s/.*/./; q'`
5707
5708# Avoid depending upon Character Ranges.
5709as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5710as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5711as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5712as_cr_digits='0123456789'
5713as_cr_alnum=$as_cr_Letters$as_cr_digits
5714
5715ECHO_C= ECHO_N= ECHO_T=
5716case `echo -n x` in #(((((
5717-n*)
5718  case `echo 'xy\c'` in
5719  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5720  xy)  ECHO_C='\c';;
5721  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5722       ECHO_T='	';;
5723  esac;;
5724*)
5725  ECHO_N='-n';;
5726esac
5727
5728rm -f conf$$ conf$$.exe conf$$.file
5729if test -d conf$$.dir; then
5730  rm -f conf$$.dir/conf$$.file
5731else
5732  rm -f conf$$.dir
5733  mkdir conf$$.dir 2>/dev/null
5734fi
5735if (echo >conf$$.file) 2>/dev/null; then
5736  if ln -s conf$$.file conf$$ 2>/dev/null; then
5737    as_ln_s='ln -s'
5738    # ... but there are two gotchas:
5739    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5740    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5741    # In both cases, we have to default to `cp -p'.
5742    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5743      as_ln_s='cp -p'
5744  elif ln conf$$.file conf$$ 2>/dev/null; then
5745    as_ln_s=ln
5746  else
5747    as_ln_s='cp -p'
5748  fi
5749else
5750  as_ln_s='cp -p'
5751fi
5752rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5753rmdir conf$$.dir 2>/dev/null
5754
5755
5756# as_fn_mkdir_p
5757# -------------
5758# Create "$as_dir" as a directory, including parents if necessary.
5759as_fn_mkdir_p ()
5760{
5761
5762  case $as_dir in #(
5763  -*) as_dir=./$as_dir;;
5764  esac
5765  test -d "$as_dir" || eval $as_mkdir_p || {
5766    as_dirs=
5767    while :; do
5768      case $as_dir in #(
5769      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5770      *) as_qdir=$as_dir;;
5771      esac
5772      as_dirs="'$as_qdir' $as_dirs"
5773      as_dir=`$as_dirname -- "$as_dir" ||
5774$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5775	 X"$as_dir" : 'X\(//\)[^/]' \| \
5776	 X"$as_dir" : 'X\(//\)$' \| \
5777	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5778$as_echo X"$as_dir" |
5779    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5780	    s//\1/
5781	    q
5782	  }
5783	  /^X\(\/\/\)[^/].*/{
5784	    s//\1/
5785	    q
5786	  }
5787	  /^X\(\/\/\)$/{
5788	    s//\1/
5789	    q
5790	  }
5791	  /^X\(\/\).*/{
5792	    s//\1/
5793	    q
5794	  }
5795	  s/.*/./; q'`
5796      test -d "$as_dir" && break
5797    done
5798    test -z "$as_dirs" || eval "mkdir $as_dirs"
5799  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5800
5801
5802} # as_fn_mkdir_p
5803if mkdir -p . 2>/dev/null; then
5804  as_mkdir_p='mkdir -p "$as_dir"'
5805else
5806  test -d ./-p && rmdir ./-p
5807  as_mkdir_p=false
5808fi
5809
5810if test -x / >/dev/null 2>&1; then
5811  as_test_x='test -x'
5812else
5813  if ls -dL / >/dev/null 2>&1; then
5814    as_ls_L_option=L
5815  else
5816    as_ls_L_option=
5817  fi
5818  as_test_x='
5819    eval sh -c '\''
5820      if test -d "$1"; then
5821	test -d "$1/.";
5822      else
5823	case $1 in #(
5824	-*)set "./$1";;
5825	esac;
5826	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5827	???[sx]*):;;*)false;;esac;fi
5828    '\'' sh
5829  '
5830fi
5831as_executable_p=$as_test_x
5832
5833# Sed expression to map a string onto a valid CPP name.
5834as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5835
5836# Sed expression to map a string onto a valid variable name.
5837as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5838
5839
5840exec 6>&1
5841## ----------------------------------- ##
5842## Main body of $CONFIG_STATUS script. ##
5843## ----------------------------------- ##
5844_ASEOF
5845test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5846
5847cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5848# Save the log message, to keep $0 and so on meaningful, and to
5849# report actual input values of CONFIG_FILES etc. instead of their
5850# values after options handling.
5851ac_log="
5852This file was extended by PDCurses $as_me 3.4, which was
5853generated by GNU Autoconf 2.68.  Invocation command line was
5854
5855  CONFIG_FILES    = $CONFIG_FILES
5856  CONFIG_HEADERS  = $CONFIG_HEADERS
5857  CONFIG_LINKS    = $CONFIG_LINKS
5858  CONFIG_COMMANDS = $CONFIG_COMMANDS
5859  $ $0 $@
5860
5861on `(hostname || uname -n) 2>/dev/null | sed 1q`
5862"
5863
5864_ACEOF
5865
5866case $ac_config_files in *"
5867"*) set x $ac_config_files; shift; ac_config_files=$*;;
5868esac
5869
5870case $ac_config_headers in *"
5871"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5872esac
5873
5874
5875cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5876# Files that config.status was made for.
5877config_files="$ac_config_files"
5878config_headers="$ac_config_headers"
5879
5880_ACEOF
5881
5882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5883ac_cs_usage="\
5884\`$as_me' instantiates files and other configuration actions
5885from templates according to the current configuration.  Unless the files
5886and actions are specified as TAGs, all are instantiated by default.
5887
5888Usage: $0 [OPTION]... [TAG]...
5889
5890  -h, --help       print this help, then exit
5891  -V, --version    print version number and configuration settings, then exit
5892      --config     print configuration, then exit
5893  -q, --quiet, --silent
5894                   do not print progress messages
5895  -d, --debug      don't remove temporary files
5896      --recheck    update $as_me by reconfiguring in the same conditions
5897      --file=FILE[:TEMPLATE]
5898                   instantiate the configuration file FILE
5899      --header=FILE[:TEMPLATE]
5900                   instantiate the configuration header FILE
5901
5902Configuration files:
5903$config_files
5904
5905Configuration headers:
5906$config_headers
5907
5908Report bugs to <wmcbrine@gmail.com>."
5909
5910_ACEOF
5911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5912ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5913ac_cs_version="\\
5914PDCurses config.status 3.4
5915configured by $0, generated by GNU Autoconf 2.68,
5916  with options \\"\$ac_cs_config\\"
5917
5918Copyright (C) 2010 Free Software Foundation, Inc.
5919This config.status script is free software; the Free Software Foundation
5920gives unlimited permission to copy, distribute and modify it."
5921
5922ac_pwd='$ac_pwd'
5923srcdir='$srcdir'
5924INSTALL='$INSTALL'
5925test -n "\$AWK" || AWK=awk
5926_ACEOF
5927
5928cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5929# The default lists apply if the user does not specify any file.
5930ac_need_defaults=:
5931while test $# != 0
5932do
5933  case $1 in
5934  --*=?*)
5935    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5936    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5937    ac_shift=:
5938    ;;
5939  --*=)
5940    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5941    ac_optarg=
5942    ac_shift=:
5943    ;;
5944  *)
5945    ac_option=$1
5946    ac_optarg=$2
5947    ac_shift=shift
5948    ;;
5949  esac
5950
5951  case $ac_option in
5952  # Handling of the options.
5953  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5954    ac_cs_recheck=: ;;
5955  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5956    $as_echo "$ac_cs_version"; exit ;;
5957  --config | --confi | --conf | --con | --co | --c )
5958    $as_echo "$ac_cs_config"; exit ;;
5959  --debug | --debu | --deb | --de | --d | -d )
5960    debug=: ;;
5961  --file | --fil | --fi | --f )
5962    $ac_shift
5963    case $ac_optarg in
5964    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5965    '') as_fn_error $? "missing file argument" ;;
5966    esac
5967    as_fn_append CONFIG_FILES " '$ac_optarg'"
5968    ac_need_defaults=false;;
5969  --header | --heade | --head | --hea )
5970    $ac_shift
5971    case $ac_optarg in
5972    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5973    esac
5974    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5975    ac_need_defaults=false;;
5976  --he | --h)
5977    # Conflict between --help and --header
5978    as_fn_error $? "ambiguous option: \`$1'
5979Try \`$0 --help' for more information.";;
5980  --help | --hel | -h )
5981    $as_echo "$ac_cs_usage"; exit ;;
5982  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5983  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5984    ac_cs_silent=: ;;
5985
5986  # This is an error.
5987  -*) as_fn_error $? "unrecognized option: \`$1'
5988Try \`$0 --help' for more information." ;;
5989
5990  *) as_fn_append ac_config_targets " $1"
5991     ac_need_defaults=false ;;
5992
5993  esac
5994  shift
5995done
5996
5997ac_configure_extra_args=
5998
5999if $ac_cs_silent; then
6000  exec 6>/dev/null
6001  ac_configure_extra_args="$ac_configure_extra_args --silent"
6002fi
6003
6004_ACEOF
6005cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6006if \$ac_cs_recheck; then
6007  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6008  shift
6009  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6010  CONFIG_SHELL='$SHELL'
6011  export CONFIG_SHELL
6012  exec "\$@"
6013fi
6014
6015_ACEOF
6016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6017exec 5>>config.log
6018{
6019  echo
6020  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6021## Running $as_me. ##
6022_ASBOX
6023  $as_echo "$ac_log"
6024} >&5
6025
6026_ACEOF
6027cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6028_ACEOF
6029
6030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6031
6032# Handling of arguments.
6033for ac_config_target in $ac_config_targets
6034do
6035  case $ac_config_target in
6036    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6037    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6038    "xcurses-config") CONFIG_FILES="$CONFIG_FILES xcurses-config" ;;
6039
6040  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6041  esac
6042done
6043
6044
6045# If the user did not use the arguments to specify the items to instantiate,
6046# then the envvar interface is used.  Set only those that are not.
6047# We use the long form for the default assignment because of an extremely
6048# bizarre bug on SunOS 4.1.3.
6049if $ac_need_defaults; then
6050  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6051  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6052fi
6053
6054# Have a temporary directory for convenience.  Make it in the build tree
6055# simply because there is no reason against having it here, and in addition,
6056# creating and moving files from /tmp can sometimes cause problems.
6057# Hook for its removal unless debugging.
6058# Note that there is a small window in which the directory will not be cleaned:
6059# after its creation but before its name has been assigned to `$tmp'.
6060$debug ||
6061{
6062  tmp= ac_tmp=
6063  trap 'exit_status=$?
6064  : "${ac_tmp:=$tmp}"
6065  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6066' 0
6067  trap 'as_fn_exit 1' 1 2 13 15
6068}
6069# Create a (secure) tmp directory for tmp files.
6070
6071{
6072  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6073  test -d "$tmp"
6074}  ||
6075{
6076  tmp=./conf$$-$RANDOM
6077  (umask 077 && mkdir "$tmp")
6078} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6079ac_tmp=$tmp
6080
6081# Set up the scripts for CONFIG_FILES section.
6082# No need to generate them if there are no CONFIG_FILES.
6083# This happens for instance with `./config.status config.h'.
6084if test -n "$CONFIG_FILES"; then
6085
6086
6087ac_cr=`echo X | tr X '\015'`
6088# On cygwin, bash can eat \r inside `` if the user requested igncr.
6089# But we know of no other shell where ac_cr would be empty at this
6090# point, so we can use a bashism as a fallback.
6091if test "x$ac_cr" = x; then
6092  eval ac_cr=\$\'\\r\'
6093fi
6094ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6095if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6096  ac_cs_awk_cr='\\r'
6097else
6098  ac_cs_awk_cr=$ac_cr
6099fi
6100
6101echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6102_ACEOF
6103
6104
6105{
6106  echo "cat >conf$$subs.awk <<_ACEOF" &&
6107  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6108  echo "_ACEOF"
6109} >conf$$subs.sh ||
6110  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6111ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6112ac_delim='%!_!# '
6113for ac_last_try in false false false false false :; do
6114  . ./conf$$subs.sh ||
6115    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6116
6117  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6118  if test $ac_delim_n = $ac_delim_num; then
6119    break
6120  elif $ac_last_try; then
6121    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6122  else
6123    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6124  fi
6125done
6126rm -f conf$$subs.sh
6127
6128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6129cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6130_ACEOF
6131sed -n '
6132h
6133s/^/S["/; s/!.*/"]=/
6134p
6135g
6136s/^[^!]*!//
6137:repl
6138t repl
6139s/'"$ac_delim"'$//
6140t delim
6141:nl
6142h
6143s/\(.\{148\}\)..*/\1/
6144t more1
6145s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6146p
6147n
6148b repl
6149:more1
6150s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6151p
6152g
6153s/.\{148\}//
6154t nl
6155:delim
6156h
6157s/\(.\{148\}\)..*/\1/
6158t more2
6159s/["\\]/\\&/g; s/^/"/; s/$/"/
6160p
6161b
6162:more2
6163s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6164p
6165g
6166s/.\{148\}//
6167t delim
6168' <conf$$subs.awk | sed '
6169/^[^""]/{
6170  N
6171  s/\n//
6172}
6173' >>$CONFIG_STATUS || ac_write_fail=1
6174rm -f conf$$subs.awk
6175cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6176_ACAWK
6177cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6178  for (key in S) S_is_set[key] = 1
6179  FS = ""
6180
6181}
6182{
6183  line = $ 0
6184  nfields = split(line, field, "@")
6185  substed = 0
6186  len = length(field[1])
6187  for (i = 2; i < nfields; i++) {
6188    key = field[i]
6189    keylen = length(key)
6190    if (S_is_set[key]) {
6191      value = S[key]
6192      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6193      len += length(value) + length(field[++i])
6194      substed = 1
6195    } else
6196      len += 1 + keylen
6197  }
6198
6199  print line
6200}
6201
6202_ACAWK
6203_ACEOF
6204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6205if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6206  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6207else
6208  cat
6209fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6210  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6211_ACEOF
6212
6213# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6214# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6215# trailing colons and then remove the whole line if VPATH becomes empty
6216# (actually we leave an empty line to preserve line numbers).
6217if test "x$srcdir" = x.; then
6218  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
6219h
6220s///
6221s/^/:/
6222s/[	 ]*$/:/
6223s/:\$(srcdir):/:/g
6224s/:\${srcdir}:/:/g
6225s/:@srcdir@:/:/g
6226s/^:*//
6227s/:*$//
6228x
6229s/\(=[	 ]*\).*/\1/
6230G
6231s/\n//
6232s/^[^=]*=[	 ]*$//
6233}'
6234fi
6235
6236cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6237fi # test -n "$CONFIG_FILES"
6238
6239# Set up the scripts for CONFIG_HEADERS section.
6240# No need to generate them if there are no CONFIG_HEADERS.
6241# This happens for instance with `./config.status Makefile'.
6242if test -n "$CONFIG_HEADERS"; then
6243cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6244BEGIN {
6245_ACEOF
6246
6247# Transform confdefs.h into an awk script `defines.awk', embedded as
6248# here-document in config.status, that substitutes the proper values into
6249# config.h.in to produce config.h.
6250
6251# Create a delimiter string that does not exist in confdefs.h, to ease
6252# handling of long lines.
6253ac_delim='%!_!# '
6254for ac_last_try in false false :; do
6255  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6256  if test -z "$ac_tt"; then
6257    break
6258  elif $ac_last_try; then
6259    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6260  else
6261    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6262  fi
6263done
6264
6265# For the awk script, D is an array of macro values keyed by name,
6266# likewise P contains macro parameters if any.  Preserve backslash
6267# newline sequences.
6268
6269ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6270sed -n '
6271s/.\{148\}/&'"$ac_delim"'/g
6272t rset
6273:rset
6274s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
6275t def
6276d
6277:def
6278s/\\$//
6279t bsnl
6280s/["\\]/\\&/g
6281s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6282D["\1"]=" \3"/p
6283s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
6284d
6285:bsnl
6286s/["\\]/\\&/g
6287s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6288D["\1"]=" \3\\\\\\n"\\/p
6289t cont
6290s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6291t cont
6292d
6293:cont
6294n
6295s/.\{148\}/&'"$ac_delim"'/g
6296t clear
6297:clear
6298s/\\$//
6299t bsnlc
6300s/["\\]/\\&/g; s/^/"/; s/$/"/p
6301d
6302:bsnlc
6303s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6304b cont
6305' <confdefs.h | sed '
6306s/'"$ac_delim"'/"\\\
6307"/g' >>$CONFIG_STATUS || ac_write_fail=1
6308
6309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6310  for (key in D) D_is_set[key] = 1
6311  FS = ""
6312}
6313/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6314  line = \$ 0
6315  split(line, arg, " ")
6316  if (arg[1] == "#") {
6317    defundef = arg[2]
6318    mac1 = arg[3]
6319  } else {
6320    defundef = substr(arg[1], 2)
6321    mac1 = arg[2]
6322  }
6323  split(mac1, mac2, "(") #)
6324  macro = mac2[1]
6325  prefix = substr(line, 1, index(line, defundef) - 1)
6326  if (D_is_set[macro]) {
6327    # Preserve the white space surrounding the "#".
6328    print prefix "define", macro P[macro] D[macro]
6329    next
6330  } else {
6331    # Replace #undef with comments.  This is necessary, for example,
6332    # in the case of _POSIX_SOURCE, which is predefined and required
6333    # on some systems where configure will not decide to define it.
6334    if (defundef == "undef") {
6335      print "/*", prefix defundef, macro, "*/"
6336      next
6337    }
6338  }
6339}
6340{ print }
6341_ACAWK
6342_ACEOF
6343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6344  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6345fi # test -n "$CONFIG_HEADERS"
6346
6347
6348eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
6349shift
6350for ac_tag
6351do
6352  case $ac_tag in
6353  :[FHLC]) ac_mode=$ac_tag; continue;;
6354  esac
6355  case $ac_mode$ac_tag in
6356  :[FHL]*:*);;
6357  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6358  :[FH]-) ac_tag=-:-;;
6359  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6360  esac
6361  ac_save_IFS=$IFS
6362  IFS=:
6363  set x $ac_tag
6364  IFS=$ac_save_IFS
6365  shift
6366  ac_file=$1
6367  shift
6368
6369  case $ac_mode in
6370  :L) ac_source=$1;;
6371  :[FH])
6372    ac_file_inputs=
6373    for ac_f
6374    do
6375      case $ac_f in
6376      -) ac_f="$ac_tmp/stdin";;
6377      *) # Look for the file first in the build tree, then in the source tree
6378	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
6379	 # because $ac_f cannot contain `:'.
6380	 test -f "$ac_f" ||
6381	   case $ac_f in
6382	   [\\/$]*) false;;
6383	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6384	   esac ||
6385	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6386      esac
6387      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6388      as_fn_append ac_file_inputs " '$ac_f'"
6389    done
6390
6391    # Let's still pretend it is `configure' which instantiates (i.e., don't
6392    # use $as_me), people would be surprised to read:
6393    #    /* config.h.  Generated by config.status.  */
6394    configure_input='Generated from '`
6395	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6396	`' by configure.'
6397    if test x"$ac_file" != x-; then
6398      configure_input="$ac_file.  $configure_input"
6399      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6400$as_echo "$as_me: creating $ac_file" >&6;}
6401    fi
6402    # Neutralize special characters interpreted by sed in replacement strings.
6403    case $configure_input in #(
6404    *\&* | *\|* | *\\* )
6405       ac_sed_conf_input=`$as_echo "$configure_input" |
6406       sed 's/[\\\\&|]/\\\\&/g'`;; #(
6407    *) ac_sed_conf_input=$configure_input;;
6408    esac
6409
6410    case $ac_tag in
6411    *:-:* | *:-) cat >"$ac_tmp/stdin" \
6412      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6413    esac
6414    ;;
6415  esac
6416
6417  ac_dir=`$as_dirname -- "$ac_file" ||
6418$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6419	 X"$ac_file" : 'X\(//\)[^/]' \| \
6420	 X"$ac_file" : 'X\(//\)$' \| \
6421	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6422$as_echo X"$ac_file" |
6423    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6424	    s//\1/
6425	    q
6426	  }
6427	  /^X\(\/\/\)[^/].*/{
6428	    s//\1/
6429	    q
6430	  }
6431	  /^X\(\/\/\)$/{
6432	    s//\1/
6433	    q
6434	  }
6435	  /^X\(\/\).*/{
6436	    s//\1/
6437	    q
6438	  }
6439	  s/.*/./; q'`
6440  as_dir="$ac_dir"; as_fn_mkdir_p
6441  ac_builddir=.
6442
6443case "$ac_dir" in
6444.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6445*)
6446  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6447  # A ".." for each directory in $ac_dir_suffix.
6448  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6449  case $ac_top_builddir_sub in
6450  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6451  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6452  esac ;;
6453esac
6454ac_abs_top_builddir=$ac_pwd
6455ac_abs_builddir=$ac_pwd$ac_dir_suffix
6456# for backward compatibility:
6457ac_top_builddir=$ac_top_build_prefix
6458
6459case $srcdir in
6460  .)  # We are building in place.
6461    ac_srcdir=.
6462    ac_top_srcdir=$ac_top_builddir_sub
6463    ac_abs_top_srcdir=$ac_pwd ;;
6464  [\\/]* | ?:[\\/]* )  # Absolute name.
6465    ac_srcdir=$srcdir$ac_dir_suffix;
6466    ac_top_srcdir=$srcdir
6467    ac_abs_top_srcdir=$srcdir ;;
6468  *) # Relative name.
6469    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6470    ac_top_srcdir=$ac_top_build_prefix$srcdir
6471    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6472esac
6473ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6474
6475
6476  case $ac_mode in
6477  :F)
6478  #
6479  # CONFIG_FILE
6480  #
6481
6482  case $INSTALL in
6483  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6484  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6485  esac
6486_ACEOF
6487
6488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6489# If the template does not know about datarootdir, expand it.
6490# FIXME: This hack should be removed a few years after 2.60.
6491ac_datarootdir_hack=; ac_datarootdir_seen=
6492ac_sed_dataroot='
6493/datarootdir/ {
6494  p
6495  q
6496}
6497/@datadir@/p
6498/@docdir@/p
6499/@infodir@/p
6500/@localedir@/p
6501/@mandir@/p'
6502case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6503*datarootdir*) ac_datarootdir_seen=yes;;
6504*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6505  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6506$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6507_ACEOF
6508cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6509  ac_datarootdir_hack='
6510  s&@datadir@&$datadir&g
6511  s&@docdir@&$docdir&g
6512  s&@infodir@&$infodir&g
6513  s&@localedir@&$localedir&g
6514  s&@mandir@&$mandir&g
6515  s&\\\${datarootdir}&$datarootdir&g' ;;
6516esac
6517_ACEOF
6518
6519# Neutralize VPATH when `$srcdir' = `.'.
6520# Shell code in configure.ac might set extrasub.
6521# FIXME: do we really want to maintain this feature?
6522cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6523ac_sed_extra="$ac_vpsub
6524$extrasub
6525_ACEOF
6526cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6527:t
6528/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6529s|@configure_input@|$ac_sed_conf_input|;t t
6530s&@top_builddir@&$ac_top_builddir_sub&;t t
6531s&@top_build_prefix@&$ac_top_build_prefix&;t t
6532s&@srcdir@&$ac_srcdir&;t t
6533s&@abs_srcdir@&$ac_abs_srcdir&;t t
6534s&@top_srcdir@&$ac_top_srcdir&;t t
6535s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6536s&@builddir@&$ac_builddir&;t t
6537s&@abs_builddir@&$ac_abs_builddir&;t t
6538s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6539s&@INSTALL@&$ac_INSTALL&;t t
6540$ac_datarootdir_hack
6541"
6542eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6543  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6544
6545test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6546  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6547  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
6548      "$ac_tmp/out"`; test -z "$ac_out"; } &&
6549  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6550which seems to be undefined.  Please make sure it is defined" >&5
6551$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6552which seems to be undefined.  Please make sure it is defined" >&2;}
6553
6554  rm -f "$ac_tmp/stdin"
6555  case $ac_file in
6556  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6557  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6558  esac \
6559  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6560 ;;
6561  :H)
6562  #
6563  # CONFIG_HEADER
6564  #
6565  if test x"$ac_file" != x-; then
6566    {
6567      $as_echo "/* $configure_input  */" \
6568      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6569    } >"$ac_tmp/config.h" \
6570      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6571    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6572      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6573$as_echo "$as_me: $ac_file is unchanged" >&6;}
6574    else
6575      rm -f "$ac_file"
6576      mv "$ac_tmp/config.h" "$ac_file" \
6577	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
6578    fi
6579  else
6580    $as_echo "/* $configure_input  */" \
6581      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6582      || as_fn_error $? "could not create -" "$LINENO" 5
6583  fi
6584 ;;
6585
6586
6587  esac
6588
6589done # for ac_tag
6590
6591
6592as_fn_exit 0
6593_ACEOF
6594ac_clean_files=$ac_clean_files_save
6595
6596test $ac_write_fail = 0 ||
6597  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6598
6599
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.
6608if test "$no_create" != yes; then
6609  ac_cs_success=:
6610  ac_config_status_args=
6611  test "$silent" = yes &&
6612    ac_config_status_args="$ac_config_status_args --quiet"
6613  exec 5>/dev/null
6614  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6615  exec 5>>config.log
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 || as_fn_exit 1
6619fi
6620if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6621  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6622$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6623fi
6624
6625
6626
6627$as_echo "#define PDC_MAX_SIGNALS /**/" >>confdefs.h
6628
6629
6630
6631$as_echo "#define HAVE_DECKEYSYM_H /**/" >>confdefs.h
6632
6633
6634
6635$as_echo "#define HAVE_SUNKEYSYM_H /**/" >>confdefs.h
6636
6637
6638
6639$as_echo "#define HAVE_XF86KEYSYM_H /**/" >>confdefs.h
6640
6641
6642
6643$as_echo "#define HAVE_XPM_H /**/" >>confdefs.h
6644
6645
6646
6647$as_echo "#define HAVE_XK_KP_DELETE /**/" >>confdefs.h
6648
6649
6650
6651$as_echo "#define HAVE_XK_KP_INSERT /**/" >>confdefs.h
6652
6653
6654
6655$as_echo "#define HAVE_XK_KP_END /**/" >>confdefs.h
6656
6657
6658
6659$as_echo "#define HAVE_XK_KP_DOWN /**/" >>confdefs.h
6660
6661
6662
6663$as_echo "#define HAVE_XK_KP_NEXT /**/" >>confdefs.h
6664
6665
6666
6667$as_echo "#define HAVE_XK_KP_LEFT /**/" >>confdefs.h
6668
6669
6670
6671$as_echo "#define HAVE_XK_KP_RIGHT /**/" >>confdefs.h
6672
6673
6674
6675$as_echo "#define HAVE_XK_KP_HOME /**/" >>confdefs.h
6676
6677
6678
6679$as_echo "#define HAVE_XK_KP_UP /**/" >>confdefs.h
6680
6681
6682
6683$as_echo "#define HAVE_XK_KP_PRIOR /**/" >>confdefs.h
6684
6685
6686
6687$as_echo "#define HAVE_XK_KP_BEGIN /**/" >>confdefs.h
6688
6689
6690
6691$as_echo "#define USE_XAW3D /**/" >>confdefs.h
6692
6693
6694
6695$as_echo "#define USE_NEXTAW /**/" >>confdefs.h
6696
6697
6698
6699$as_echo "#define XPOINTER_TYPEDEFED /**/" >>confdefs.h
6700
6701